{"_id":"@airship/with-unstated","_rev":"10-2275aeae534df6ba4c8daba34a9a8a57","name":"@airship/with-unstated","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@airship/with-unstated","version":"1.0.0","description":"HOC for Unstated state management","main":"index.js","repository":{"type":"git","url":"git+https://github.com/teamairship/with-unstated.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["react","unstated"],"author":{"name":"Alex Hinson"},"license":"MIT","bugs":{"url":"https://github.com/teamairship/with-unstated/issues"},"dependencies":{"hoist-non-react-statics":"^3.2.1","unstated":"^2.0.0"},"homepage":"https://github.com/teamairship/with-unstated#readme","gitHead":"259e6d466a2999a0232c4dbdcf0277f963b4abac","_id":"@airship/with-unstated@1.0.0","_npmVersion":"6.2.0","_nodeVersion":"10.8.0","_npmUser":{"name":"amhinson","email":"alex@teamairship.com"},"dist":{"integrity":"sha512-MxFYFfqmDw/L5ZouzNyTrMW6XeNgq6h9DrkTB9UDdRLXr0skZuTxFtHeFeEiaODBQooGuL6Z6Rsb/7YMtEd+2g==","shasum":"3309d834d85235ddf0b3454996eeb1e4cdf3b874","tarball":"https://registry.npmjs.org/@airship/with-unstated/-/with-unstated-1.0.0.tgz","fileCount":4,"unpackedSize":3785,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcQis9CRA9TVsSAnZWagAA6O8P/3Gl0HmcLcYV+BzfPUFm\nbTimajkGVAqa/kxTmTKss36SpqnEU9WBevQwdUXFgx19EWrT8ooGFrsGS9KU\nxHB6nBS7eCDR9VEqTekg9bkiv+DBdWGNVZ9jgZo56cViyRrWKwabN42V3Ocu\nIfyJYMPOIHuf6/00WRLamYRpBchdekFY1/X9Sir12i1MISPDFYmM2iAgAInX\ns6hun1KGMsi3yDZB6Jcew1bAMNiCjE494tTE73A3zjmW+MlfRALPA4/fw+aY\nhMPqi9d/lZ7N1dUwU4YJ+vJ2Yt0rbheA1XufhsgP/rZzoY0Tw+gSpflJbIcf\n0QbEOlFQ6/+CyM+ngBGZCDv+iEUDUH4f6aRc4iVvFqwUpP5LVA/vuoH3Yk+7\npgIfBkHCLMDxQ8cQVbxhbPdo6uvwa0tv3o+8EATgcrVq69fBLTJY8vD5f07U\nKX/9+/zRFibSrV7iZelS9IGo44Jan+ZE7p6hH0PQJJmgJbNKGh7z2hqK+EOa\n0uM+CawIQEJ21TzYPcHLbVn7NnpcumsPz07SXHyDAbx+sEfVZKhg/RCa9dn7\nT4s6z7Rb+8/Yfhaa/bNHP0MPWWQVIY+4AUQJ8dSDUzlZUN37RBXWMIecrrCJ\n++RemyYGN4nRgOWXO98J8hyVPMR9Ar8arWtVQA1gr/MckdY100HF6U+2tbAY\ny8OZ\r\n=ORUA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH8YDvVohQJBihBrTPEsdkKnnxvKGW1HmJEty5a3RIuIAiAUiXMnBFfDawwzgnrjZmqXbngEm0xD2jog/FXHq9RAew=="}]},"maintainers":[{"name":"sethalexander","email":"sethalexander@pm.me"},{"name":"trenton","email":"t2kocurek@gmail.com"},{"name":"amhinson","email":"alex@teamairship.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/with-unstated_1.0.0_1547840317093_0.9938116316824712"},"_hasShrinkwrap":false},"1.0.1":{"name":"@airship/with-unstated","version":"1.0.1","description":"HOC for Unstated state management","main":"lib/with-unstated.js","types":"lib/with-unstated.d.ts","repository":{"type":"git","url":"git+https://github.com/teamairship/with-unstated.git"},"scripts":{"clean":"rm -rf lib","build":"rollup -c && cp src/with-unstated.d.ts lib/with-unstated.d.ts","prepublish":"yarn clean && yarn build"},"keywords":["react","unstated"],"author":{"name":"Alex Hinson"},"license":"MIT","bugs":{"url":"https://github.com/teamairship/with-unstated/issues"},"dependencies":{"hoist-non-react-statics":"^3.2.1"},"devDependencies":{"@types/react":"^16.0.36","babel-core":"^6.26.0","babel-plugin-transform-class-properties":"^6.24.1","babel-preset-env":"^1.6.1","babel-preset-flow":"^6.23.0","babel-preset-react":"^6.24.1","babel-register":"^6.26.0","parcel-bundler":"^1.5.1","react":"^16.2.0","react-dom":"^16.2.0","rollup":"^0.55.3","rollup-plugin-babel":"^3.0.3"},"peerDependencies":{"react":"^15.0.0 || ^16.0.0","unstated":"^2.0.0"},"homepage":"https://github.com/teamairship/with-unstated#readme","gitHead":"ac4149ffb7269e158bcf653b4713828175eb2328","_id":"@airship/with-unstated@1.0.1","_npmVersion":"6.2.0","_nodeVersion":"10.8.0","_npmUser":{"name":"amhinson","email":"alex@teamairship.com"},"dist":{"integrity":"sha512-ABjpso+CoRzmUGZWEg4VTMiIxykWeVB3/OWqHSgaZyk2u4LpKz6VVPf2AcUtgK+Tn5M3g1HJVcyFIhWW6CuT3Q==","shasum":"d6a27842dcccdf2ecfbe26b47c9920963640d94f","tarball":"https://registry.npmjs.org/@airship/with-unstated/-/with-unstated-1.0.1.tgz","fileCount":5,"unpackedSize":6429,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcQjfZCRA9TVsSAnZWagAA6A0QAInDq7Je2FF0l9mR2sWO\nx77FDawMNGX9LPLqHtz4R54dGIbqGnjjD0tM/9Kzijan8pRwdXmPxxv2BlzV\nrhs4p5UUuxZGnjseDyE8+y22yJHStueZ2XNRS+Bp9xmhA6GrBelxBqqgfaGV\nxqIdeECtNfobORd6AvJTWwksqXuZcBXu562YSPXCzQRnFwIA36rD8GGTFo1P\n4rgj8h95ZSqkcOS1KuCT/cFoluGM1vKUcodHYMxVF0UjI6VnQysCxkofVXUm\nwEWul6BWH/MT7spXvRBUmeOaOPIrWfK8k6rLf9s8mcdKQ8DIRJ6JnG0VX9kV\nGwaotBVhlOTfnH2pcOVH4WZ+SwHvI7sUj5/QB7Nyd5Du5xZUDqsh5l1TzhaT\nYb7UjdqJdBJRmo8z4WKcwQceW/vtxojXq9L0LDg/6LcMfP5E5+uxV0ce4J0K\no1iP/SxPKw3ejSnHD97Z2fLQef+FILqF0XRqHQPRRMmnIOFJDcmP0tYOJTna\ng37BI6R7TQ9LDk6GcUtkyNQHL2j8pkMPkpewzkv6PZPBkSNp3xdIkN3UO6s3\ndS026oalC0/U55F0iBzw8U3RpK54T7yQr07K3h5glZ3k5fXptANoadc49Bz5\neiQRUt7JYvruDuJxdX7apEXLeLk0PRHXeOrYgrx1Ae4QI+D5tCD+2iutCHpB\nXt/5\r\n=0UCA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDqujJf6I033Xj7ypMtUwJ4A1W83EI66AOSm9Xoud1TEAiEA/G+HTDPbUirbbIP9ERBq6/x8xgOw1/JOv02JAghgdaw="}]},"maintainers":[{"name":"amhinson","email":"alex@teamairship.com"},{"name":"sethalexander","email":"sethalexander@pm.me"},{"name":"trenton","email":"t2kocurek@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/with-unstated_1.0.1_1547843544986_0.703246725737434"},"_hasShrinkwrap":false}},"time":{"created":"2019-01-18T19:38:36.953Z","1.0.0":"2019-01-18T19:38:37.221Z","modified":"2023-08-21T15:38:23.852Z","1.0.1":"2019-01-18T20:32:25.082Z"},"maintainers":[{"email":"andy.block88@gmail.com","name":"ablock25"},{"email":"brantley.english@unosquare.com","name":"brantley_english"},{"email":"t2kocurek@gmail.com","name":"trenton"},{"email":"austin@teamairship.com","name":"aualdrich"}],"description":"HOC for Unstated state management","homepage":"https://github.com/teamairship/with-unstated#readme","keywords":["react","unstated"],"repository":{"type":"git","url":"git+https://github.com/teamairship/with-unstated.git"},"author":{"name":"Alex Hinson"},"bugs":{"url":"https://github.com/teamairship/with-unstated/issues"},"license":"MIT","readme":"# withUnstated\n\nHigher Order Component for [Unstated](https://github.com/jamiebuilds/unstated) state management\n\n## Install\n\n```bash\nyarn add @airship/with-unstated\n```\n\nor\n\n```bash\nnpm install @airship/with-unstated\n```\n\n## Usage\n\nYou can use this HoC to wrap a component so that you can have access to\nthe Unstated Containers in life-cycle methods.\n\n```jsx\nimport React, { Component } from 'react';\n\nimport { ContainerOne, ContainerTwo } from './containers';\nimport withUnstated from '@airship/with-unstated';\n\nclass MyComponent extends Component {\n  componentDidMount() {\n    this.props.containerOne.doSomething();\n  }\n\n  componentDidUpdate() {\n    this.props.containerTwo.doSomethingElse();\n  }\n\n  // ...\n}\n\nexport default withUnstated(MyComponent, {\n  containerOne: ContainerOne,\n  containerTwo: ContainerTwo\n});\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at [https://github.com/teamairship/with-unstated](https://github.com/teamairship/with-unstated). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.\n\n## License\n\nThis package is available as open source under the terms of the [MIT License](https://github.com/teamairship/with-unstated/blob/master/LICENSE).\n","readmeFilename":"README.md"}