{"name":"rc-resize-observer","version":"1.4.3","description":"Resize observer for React","keywords":["react","react-component","react-resize-observer","resize-observer"],"main":"./lib/index","module":"./es/index","homepage":"https://react-component.github.io/resize-observer","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/resize-observer.git"},"bugs":{"url":"http://github.com/react-component/resize-observer/issues"},"license":"MIT","scripts":{"start":"dumi dev","build":"dumi build","compile":"father build && lessc assets/index.less assets/index.css","deploy":"UMI_ENV=gh npm run build && gh-pages -d dist","gh-pages":"npm run deploy","prepare":"dumi setup","prepublishOnly":"npm run compile && np --no-cleanup --yolo --no-publish","postpublish":"npm run gh-pages","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","test":"rc-test","coverage":"rc-test --coverage","now-build":"npm run build"},"dependencies":{"@babel/runtime":"^7.20.7","classnames":"^2.2.1","rc-util":"^5.44.1","resize-observer-polyfill":"^1.5.1"},"devDependencies":{"@rc-component/father-plugin":"^1.0.0","@testing-library/react":"^12.1.5","@types/jest":"^29.5.10","@types/react-dom":"^18.0.11","@types/react":"^18.0.28","@umijs/fabric":"^2.0.9","coveralls":"^3.0.6","cross-env":"^7.0.2","dumi":"^2.0.0","enzyme":"^3.0.0","enzyme-adapter-react-16":"^1.15.6","enzyme-to-json":"^3.4.0","father":"^4.0.0","gh-pages":"^6.1.0","glob":"^7.1.6","less":"^4.1.3","np":"^9.0.0","prettier":"^3.2.5","pretty-quick":"^4.0.0","rc-test":"^7.0.15","react":"^16.0.0","react-dom":"^16.0.0","cheerio":"1.0.0-rc.12","regenerator-runtime":"^0.14.0"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"rc-resize-observer@1.4.3","gitHead":"fb18ff2102a69d2189a6a0acd05936ca8a248071","types":"./lib/index.d.ts","_nodeVersion":"22.8.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-YZLjUbyIWox8E9i9C3Tm7ia+W7euPItNWSPX5sCcQTYbnwDb5uNpnLHQCG1f22oZWUhLw4Mv2tFmeWe68CDQRQ==","shasum":"4fd41fa561ba51362b5155a07c35d7c89a1ea569","tarball":"http://registry-npm.ywwl.com/rc-resize-observer/download/rc-resize-observer-1.4.3.tgz","fileCount":25,"unpackedSize":36516,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEAnvs0rgM1LCyk3MFMnRf2MTJEA99GZoNwbXDiQbfwAIgMwfz680jDmQF03AaSfQ9U/yvVDJgkaauAXtkjPMt7J0="}],"size":8313,"noattachment":false,"key":"/rc-resize-observer/-/rc-resize-observer-1.4.3.tgz"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":"afc163@gmail.com"},{"name":"zombiej","email":"smith3816@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rc-resize-observer_1.4.3_1734583206111_0.7323375513074555"},"_hasShrinkwrap":false,"readme":"# rc-resize-observer\n\n[![NPM version][npm-image]][npm-url] [![dumi](https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square)](https://github.com/umijs/dumi) [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-resize-observer.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-resize-observer\n[github-actions-image]: https://github.com/react-component/resize-observer/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/resize-observer/actions\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/resize-observer/master.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/react-component/resize-observer/branch/master\n[download-image]: https://img.shields.io/npm/dm/rc-resize-observer.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-resize-observer\n\nResize observer for React.\n\n## Live Demo\n\nhttps://react-component.github.io/resize-observer/\n\n## Install\n\n[![rc-resize-observer](https://nodei.co/npm/rc-resize-observer.png)](https://npmjs.org/package/rc-resize-observer)\n\n## Usage\n\n```js\nimport ResizeObserver from 'rc-resize-observer';\nimport { render } from 'react-dom';\n\nrender(\n  <ResizeObserver\n    onResize={() => {\n      console.log('resized!');\n    }}\n  >\n    <textarea />\n  </ResizeObserver>,\n  mountNode,\n);\n```\n\n## API\n\n| Property | Type                        | Default | Description                     |\n| -------- | --------------------------- | ------- | ------------------------------- |\n| disabled | boolean                     | false   |                                 |\n| onResize | ({ width, height }) => void | -       | Trigger when child node resized |\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## License\n\nrc-resize-observer is released under the MIT license.\n","publish_time":1734583206280,"_cnpm_publish_time":1734583206280,"dist-tags":{"latest":"1.4.3"}}