{"name":"rc-resize-observer","version":"1.4.2","keywords":["react","react-component","react-resize-observer","resize-observer"],"license":"MIT","_id":"rc-resize-observer@1.4.2","maintainers":[{"name":"afc163","email":"afc163@gmail.com"},{"name":"zombiej","email":"smith3816@gmail.com"}],"homepage":"https://react-component.github.io/resize-observer","bugs":{"url":"http://github.com/react-component/resize-observer/issues"},"cnpm":{"mode":"npm"},"dist":{"shasum":"e78fa820a41801171f5c2123393c653747e91002","tarball":"http://registry-npm.ywwl.com/rc-resize-observer/download/rc-resize-observer-1.4.2.tgz","fileCount":25,"integrity":"sha512-LPRGBSaHnXrKfG62eeUhFuy5w4vk7fIIx7oo1NsffFXn3fOHTdVhOJex/PlLL6UO3PsvXWd5nA0TWy12yOcsJg==","signatures":[{"sig":"MEQCIH0tYkEziJ9Ixoe5ITIZYKzrMpx86DvPt6k0tNz4ZWRMAiBIz/yvBh3PevyEMcB2irhIz/J4b47L1Qf+4uTBccTgnA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36516,"size":8311,"noattachment":false,"key":"/rc-resize-observer/-/rc-resize-observer-1.4.2.tgz"},"main":"./lib/index","tnpm":{"mode":"npm"},"types":"./lib/index.d.ts","module":"./es/index","gitHead":"5a59c863ed6fa6f4163a8120f7642d251addf938","scripts":{"lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"rc-test","build":"dumi build","start":"dumi dev","deploy":"UMI_ENV=gh npm run build && gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","prepare":"dumi setup","coverage":"rc-test --coverage","gh-pages":"npm run deploy","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","now-build":"npm run build","postpublish":"npm run gh-pages","prepublishOnly":"npm run compile && np --no-cleanup --yolo --no-publish"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-component/resize-observer.git","type":"git"},"_npmVersion":"10.8.3","description":"Resize observer for React","directories":{},"_nodeVersion":"22.8.0","dependencies":{"rc-util":"^5.44.1","classnames":"^2.2.1","@babel/runtime":"^7.20.7","resize-observer-polyfill":"^1.5.1"},"_hasShrinkwrap":false,"devDependencies":{"np":"^9.0.0","dumi":"^2.0.0","glob":"^7.1.6","less":"^4.1.3","react":"^16.0.0","enzyme":"^3.0.0","father":"^4.0.0","cheerio":"1.0.0-rc.12","rc-test":"^7.0.15","gh-pages":"^6.1.0","prettier":"^3.2.5","coveralls":"^3.0.6","cross-env":"^7.0.2","react-dom":"^16.0.0","@types/jest":"^29.5.10","@types/react":"^18.0.28","pretty-quick":"^4.0.0","@umijs/fabric":"^2.0.9","enzyme-to-json":"^3.4.0","@types/react-dom":"^18.0.11","regenerator-runtime":"^0.14.0","@testing-library/react":"^12.1.5","enzyme-adapter-react-16":"^1.15.6","@rc-component/father-plugin":"^1.0.0"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"_npmOperationalInternal":{"tmp":"tmp/rc-resize-observer_1.4.2_1734582962844_0.23791036692174772","host":"s3://npm-registry-packages-npm-production"},"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":1734582963004,"_cnpm_publish_time":1734582963004,"dist-tags":{"latest":"1.4.3"}}