{"name":"react-virtualized-auto-sizer","version":"1.0.25","keywords":["react","reactjs","virtual","window","windowed","list","scrolling","infinite","virtualized","table","grid","spreadsheet"],"author":{"url":"https://github.com/bvaughn/","name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","_id":"react-virtualized-auto-sizer@1.0.25","maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"shhnjk","email":"shhnjk@gmail.com"}],"contributors":[{"url":"https://github.com/bvaughn/","name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"}],"homepage":"https://github.com/bvaughn/react-virtualized-auto-sizer#readme","bugs":{"url":"https://github.com/bvaughn/react-virtualized-auto-sizer/issues"},"dist":{"shasum":"b13cbc528ac200be2bd1ffa40c8bb19bcc60ac3f","tarball":"http://registry-npm.ywwl.com/react-virtualized-auto-sizer/download/react-virtualized-auto-sizer-1.0.25.tgz","fileCount":16,"integrity":"sha512-YHsksEGDfsHbHuaBVDYwJmcktblcHGafz4ZVuYPQYuSHMUGjpwmUCrAOcvMSGMwwk1eFWj1M/1GwYpNPuyhaBg==","signatures":[{"sig":"MEUCIQDFtM7xSBvAfKcTg9CNEB7NDYvRdQWIe1eTlpEhDRm67QIgU6gzkiSuy6erNXkNWF/4WXGlApJ3aD/p5k19A+qQMo4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45105,"size":9568,"noattachment":false,"key":"/react-virtualized-auto-sizer/-/react-virtualized-auto-sizer-1.0.25.tgz"},"main":"dist/react-virtualized-auto-sizer.cjs.js","types":"dist/react-virtualized-auto-sizer.cjs.d.ts","module":"dist/react-virtualized-auto-sizer.esm.js","exports":{".":{"types":{"import":"./dist/react-virtualized-auto-sizer.cjs.mjs","default":"./dist/react-virtualized-auto-sizer.cjs.js"},"import":"./dist/react-virtualized-auto-sizer.cjs.mjs","module":"./dist/react-virtualized-auto-sizer.esm.js","default":"./dist/react-virtualized-auto-sizer.cjs.js"},"./package.json":"./package.json"},"gitHead":"2dc8808e2654e4b2753a6f330dc87bb72c2958ee","scripts":{"test":"jest","clear":"npm run clear:builds & npm run clear:node_modules","prettier":"prettier --write \"**/*.{css,html,js,json,jsx,ts,tsx}\"","prerelease":"preconstruct build","test:watch":"jest --watch","typescript":"tsc --noEmit","prettier:ci":"prettier --check \"**/*.{css,html,js,json,jsx,ts,tsx}\"","clear:builds":"rm -rf ./dist","typescript:watch":"tsc --noEmit --watch","clear:node_modules":"rm -rf ./node_modules"},"_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"repository":{"url":"git+https://github.com/bvaughn/react-virtualized-auto-sizer.git","type":"git"},"_npmVersion":"9.6.6","description":"Standalone version of the AutoSizer component from react-virtualized","directories":{},"lint-staged":{"**/*.js":"eslint --max-warnings 0","{example,src}/**/*.{js,json,css}":["prettier --write","git add"]},"_nodeVersion":"20.2.0","preconstruct":{"exports":{"importConditionDefaultExport":"default"},"___experimentalFlags_WILL_CHANGE_IN_PATCH":{"importsConditions":true}},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","react":"^18","ts-jest":"^29.1.0","prettier":"^2.8.6","react-dom":"^18","typescript":"^4.1.2","@babel/core":"^7.21.4","@types/jest":"^26.0.15","@types/react":"^18","@types/react-dom":"^18","@preconstruct/cli":"^2.8.1","jest-environment-jsdom":"^29.5.0","@babel/preset-typescript":"^7.21.5","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/helper-create-class-features-plugin":"^7.21.4","@babel/plugin-proposal-nullish-coalescing-operator":"^7.18.6"},"peerDependencies":{"react":"^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0 || ^19.0.0","react-dom":"^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0 || ^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-virtualized-auto-sizer_1.0.25_1734399596613_0.5574324569567313","host":"s3://npm-registry-packages-npm-production"},"readme":"<img src=\"https://react-virtualized-auto-sizer.vercel.app/og.png\" alt=\"react-virtualized-auto-sizer logo\" width=\"400\" height=\"210\" />\n\n`react-virtualized-auto-sizer`: Measures the available width and height of an `HTMLElement` and passes those values as props to a `Child` component. Refer to [the docs](https://react-virtualized-auto-sizer.vercel.app/examples/basic-usage) for usage examples.\n\n> [!NOTE]\n> This package began as a fork of the `AutoSizer` component from [react-virtualized](https://github.com/bvaughn/react-virtualized), and was intended for use with earlier versions of [react-window](https://github.com/bvaughn/react-virtualized). More recent versions of `react-window` use `ResizeObserver` natively and do not require this package.\n\n### If you like this project, 🎉 [become a sponsor](https://github.com/sponsors/bvaughn/) or ☕ [buy me a coffee](http://givebrian.coffee/)\n\n## Install\n\n```bash\nnpm install --save react-virtualized-auto-sizer\n```\n\n## FAQs\n\nFrequently asked questions can be found [here](https://react-virtualized-auto-sizer.vercel.app/common-questions).\n\n## Documentation\n\n### AutoSizer\n\n<!-- AutoSizer:description:begin -->\nMeasures the available width and height of its parent `HTMLElement` and passes those values as `width` and `height` props to its `children`.\n\nℹ️ This component began as a fork of the [javascript-detect-element-resize](https://www.npmjs.com/package/javascript-detect-element-resize) package.\n<!-- AutoSizer:description:end -->\n\n#### Required props\n\n<!-- AutoSizer:required-props:begin -->\nNone\n<!-- AutoSizer:required-props:end -->\n\n#### Optional props\n\n<!-- AutoSizer:optional-props:begin -->\n\n<table>\n  <thead>\n    <tr>\n      <th>Name</th>\n      <th>Description</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>box</td>\n      <td><p>Corresponds to the <code>ResizeObserver</code> <a href=\"https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe#box\">box</a> parameter.\nSets which box model the observer will observe changes to.</p>\n<ul>\n<li><code>border-box</code>: Size of the box border area as defined in CSS.</li>\n<li><code>content-box</code>: Size of the content area as defined in CSS.</li>\n<li><code>device-pixel-content-box</code>: The size of the content area as defined in CSS, in device pixels, before applying any CSS transforms on the element or its ancestors.</li>\n</ul>\n</td>\n    </tr>\n    <tr>\n      <td>className</td>\n      <td><p>Class name to be applied to the auto-sizer <code>HTMLElement</code>.</p>\n</td>\n    </tr>\n    <tr>\n      <td>data-testid</td>\n      <td><p>Test id attribute to interop with frameworks like <a href=\"https://testing-library.com/docs/queries/bytestid/\">Testing Library</a>.</p>\n</td>\n    </tr>\n    <tr>\n      <td>id</td>\n      <td><p>Unique id attribute to attach to root DOM element.</p>\n</td>\n    </tr>\n    <tr>\n      <td>nonce</td>\n      <td><p><a href=\"https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute\">Nonce</a> used for inline <code>StyleSheet</code>\nin browsers/environments that do not support the <code>ResizeObserver</code> API.</p>\n</td>\n    </tr>\n    <tr>\n      <td>onResize</td>\n      <td><p>Optional callback notified after a resize.\n@param size New width and height of parent element</p>\n</td>\n    </tr>\n    <tr>\n      <td>style</td>\n      <td><p>Style properties to be applied to the auto-sizer <code>HTMLElement</code>.</p>\n</td>\n    </tr>\n    <tr>\n      <td>tagName</td>\n      <td><p>Optional HTML tag name for root HTMLElement; defaults to <code>&quot;div&quot;</code>.</p>\n</td>\n    </tr>\n    <tr>\n      <td>Child</td>\n      <td><p>Child component to be passed the available width and height values as props.\n@deprecated Use the <code>ChildComponent</code> or <code>renderProp</code> props instead.</p>\n</td>\n    </tr>\n    <tr>\n      <td>ChildComponent</td>\n      <td><p>Child component to be passed the available width and height values as props.</p>\n<p>ℹ️ Use <code>renderProp</code> instead if you need access to local state.</p>\n<p>⚠️ Width and height are undefined during the during the initial render (including server-rendering).</p>\n</td>\n    </tr>\n    <tr>\n      <td>renderProp</td>\n      <td><p>Render prop to be passed the available width and height values as props.</p>\n<p>ℹ️ Use <code>ChildComponent</code> instead for better memoization if you do not need access to local state.</p>\n<p>⚠️ Width and height are undefined during the during the initial render (including server-rendering).</p>\n</td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- AutoSizer:optional-props:end -->\n","publish_time":1734399596821,"_cnpm_publish_time":1734399596821,"dist-tags":{"latest":"2.0.4"}}