{"name":"rc-resize-observer","version":"1.4.1","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 .doc","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.1","gitHead":"08421c0852904242a2178084aa93fd2efc8662a3","types":"./lib/index.d.ts","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-JbAeFDsaaZRPwaTlXnCqgeO9c6E7qoaE/hxsub08cdnnPn6767c/j9+r/TifUdfvwXtdcfHygKbZ7ecM/PXo/Q==","shasum":"1f6b75ecf27ee900f8a2dbd122c0b222d31aeb49","tarball":"http://registry-npm.ywwl.com/rc-resize-observer/download/rc-resize-observer-1.4.1.tgz","fileCount":59,"unpackedSize":1184394,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICezX2Br/62A4cyw35PohL12uhYUlOC1etZPJNxtM+6qAiEA2lNDS841JpYhvUauqIRTeb3nCT6bwPTHBRYC9kDaHog="}],"size":365519,"noattachment":false,"key":"/rc-resize-observer/-/rc-resize-observer-1.4.1.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rc-resize-observer_1.4.1_1733899430613_0.7725078777475662"},"_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":1733899430895,"maintainers":[{"name":"afc163","email":"afc163@gmail.com"},{"name":"zombiej","email":"smith3816@gmail.com"}],"_cnpm_publish_time":1733899430895,"dist-tags":{"latest":"1.4.3"}}