{"_id":"@unrevealed/react","_rev":"49-41fedbb007dc88dc74da3c1a45c24a75","time":{"created":"2022-09-25T13:26:07.045Z","0.0.1-rc.1":"2022-09-25T11:34:47.753Z","modified":"2023-12-01T15:20:51.970Z","0.0.1-rc.2":"2022-09-25T13:26:07.308Z","0.0.2":"2022-09-25T13:29:38.098Z","0.0.3":"2022-09-25T13:56:30.231Z","0.0.4":"2022-09-26T08:13:30.658Z","0.0.5-rc.1":"2022-09-28T19:24:18.115Z","0.0.5-rc.2":"2022-09-28T19:31:33.478Z","0.0.5-rc.3":"2022-09-28T19:42:45.291Z","0.0.5":"2022-09-28T20:23:00.144Z","0.0.6-rc.1":"2022-09-30T15:34:23.563Z","0.0.6-rc.2":"2022-09-30T15:39:02.677Z","0.0.6":"2022-09-30T15:41:10.287Z","0.0.7-rc.1":"2022-12-05T18:08:11.329Z","0.0.7":"2022-12-05T18:32:04.905Z","0.0.8-rc.1":"2022-12-11T14:22:54.187Z","0.0.8":"2022-12-11T14:41:53.964Z","0.0.9-rc.1":"2022-12-18T12:45:15.578Z","0.0.9":"2022-12-18T14:07:50.539Z","0.0.10-rc.1":"2023-01-21T13:37:32.226Z","0.0.10":"2023-01-21T14:35:58.506Z","0.0.11-rc.1":"2023-01-31T16:06:32.027Z","0.0.11-rc.2":"2023-01-31T16:11:17.208Z","0.0.11":"2023-01-31T16:40:48.766Z","0.0.12":"2023-02-17T14:47:33.036Z","0.0.13":"2023-02-25T08:23:18.077Z","0.0.14-rc.1":"2023-03-13T17:43:59.236Z","0.0.14-rc.2":"2023-03-13T18:04:28.676Z","0.0.14":"2023-03-14T13:13:04.424Z","0.0.15-rc.1":"2023-03-14T14:58:05.068Z","0.0.15":"2023-03-14T15:28:21.100Z","0.0.16":"2023-03-30T15:39:13.000Z","0.1.0":"2023-04-23T17:16:44.777Z","0.1.1-rc.1":"2023-07-14T07:02:03.379Z","0.1.1":"2023-07-14T07:22:01.174Z","0.2.0-rc.1":"2023-09-14T21:00:37.221Z","0.2.0-rc.2":"2023-09-14T21:05:50.684Z","0.2.0-rc.3":"2023-09-14T21:26:42.959Z","0.2.0-rc.4":"2023-09-14T21:29:07.199Z","0.2.0-rc.5":"2023-09-14T21:35:19.894Z","0.2.0-rc.6":"2023-09-14T21:39:08.544Z","0.2.0-rc.7":"2023-09-14T21:48:59.967Z","0.2.0-rc.8":"2023-09-14T21:55:35.907Z","0.2.0":"2023-09-14T21:57:09.016Z","0.3.0-rc.1":"2023-10-14T07:08:45.106Z","0.3.0-rc.2":"2023-10-14T07:16:49.963Z","0.3.0":"2023-10-14T07:19:27.040Z","0.3.1":"2023-11-29T13:17:00.783Z","0.3.2":"2023-12-01T15:20:51.802Z"},"name":"@unrevealed/react","dist-tags":{"latest":"0.3.2","canary":"0.3.0-rc.2"},"versions":{"0.0.1-rc.2":{"name":"@unrevealed/react","version":"0.0.1-rc.2","description":"React SDK for Unrevealed","main":"dist/main.js","scripts":{"build":"rollup -c rollup.config.js","prepare":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://github.com/unrevealedtech/react#readme","peerDependencies":{"react":">= 16"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","react":"^18.2.0","tslib":"^2.4.0","typescript":"^4.8.3"},"dependencies":{"prettier":"^2.7.1"},"types":"./dist/main.d.ts","gitHead":"550e16feea5a606b486fd6b45e966a2a01e26d81","_id":"@unrevealed/react@0.0.1-rc.2","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-a+cbSr7wiZbape1HOUSchLZxdyplzVS4YSh08FyDucnVa/WBNkz2WMHkzC6oq7Yd6veQpovy1wwo/LgFkFCAYg==","shasum":"9c81ffaa43e9e5dd95c9aa61d85701ba47a351cf","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.1-rc.2.tgz","fileCount":12,"unpackedSize":6749,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnfqdm7ej9wgHpKKjb6n2wrQr3E8qN+ka/rN0FCvW56QIgarzlB7el3BA6kj92O3eSkVds6/8HpyzybjPyitdc1IY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMFbvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrCWhAAnaYklGLOMYfZJJ7CNo1wE/fW18nt5ViGxSIyR+35XCR9J6a5\r\nUS40rsbPc3ww09kribQPOPNtdL4zAQUmfMH0UwzfQPbpT3QKojjmjOdCyNYf\r\nWnTIjWKBvVL8dSlqb25e/WFwneRC8kciU8wwa1R1SLfJq/93RTwfl+gef4CV\r\ndkqPWxj0nb3O5JbosoSZP0b5pzKuIsdlZ1ZgjPbQkZJ0l/m0U7gwvTnZZVJ0\r\nV+LLsYPSFnR8AsfntvfP04L1Tkm3WL44IeIk7stVOEuKTijhgZad29oc9OEi\r\nvmM95QDZ9lttLNtVOZgVrOj1huxodH9w9EWl7eBjziOexsnk+SZhAcKnSOIn\r\nvFRx2ecH/T7lnSRTTep5DnwrMW/Br0QHYScxdC6tdJmgSnKljxc7kR68ZHPz\r\nmY+zv/lYXIsaSBP9lf4EY47sKfMfBJIRR0oQXn1GZZCPZALw28w7pc018gRw\r\n5swTyFQZ4un5U2l2l3PY61/yhchaBIUCDl4Tw0IdRbX0a7Dj8xZWIlufQ6UB\r\nxt2Csq4FirgHenj1HJXjd0FvZM3luSv8OyeMiv36U/QKwf8JJg2QupB4Qree\r\nN8BlvHsHUFdBo1nut3IvuXZL73A/NXgDz/RYxFAVfOG52AgUmrF0qE4QdQVm\r\nVp2snBJ5AazCtS6MTJv1IFr0YEB30KA5aX0=\r\n=FGsm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.1-rc.2_1664112367121_0.5842000577799229"},"_hasShrinkwrap":false},"0.0.2":{"name":"@unrevealed/react","version":"0.0.2","description":"React SDK for Unrevealed","main":"dist/main.js","scripts":{"build":"rollup -c rollup.config.js","prepare":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://github.com/unrevealedtech/react#readme","peerDependencies":{"react":">= 16"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","react":"^18.2.0","tslib":"^2.4.0","typescript":"^4.8.3"},"dependencies":{"prettier":"^2.7.1"},"types":"./dist/main.d.ts","gitHead":"550e16feea5a606b486fd6b45e966a2a01e26d81","_id":"@unrevealed/react@0.0.2","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-ewvQXZCUX3RXQqGqXGwc6xmX/YRuoeH6aT56oXJM9f+vIkgVaK8yDMwWRWi5LX3jgbKU/ZFzE1X9kNiH56+q5w==","shasum":"b0cda5f9c718951b1f8ec2e210a25b46949d8373","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.2.tgz","fileCount":12,"unpackedSize":6744,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD26ijsdE7E4Ok2HsLd73qwn2ma2+LUJKh+A2IlbIM26QIgYkb79WBqkKemR1hNwEluReapUUAoh16XSDgix4wxX/k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMFfCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHYQ//W/k4sYV2BlQYjjz0GCiAi9ElCUcSu3Wn1opLFEsd2PAuM2Be\r\nmQME9i1L4Lv/IkMCppMIGeeKDSPgB5G9GBoWIVSzn3bBiTZqWayA5C9RjEqS\r\nJVKpaMz8UR/5zXHAInFkJv3Wk4ozbY2vhSPRXNpCkyUe9mqJWaxgubJ26yZz\r\n6jChrcfH7tkk8Mr2YWvoMzsX58Mzw6gxc0sL0xuLlhAA7DqDpK9b4YR/qwop\r\nLHkkhbxVUBvX0gmo6hkqYMgiagR4Y7IKzqmjbL4qWZBBP/gUfyHoJXQKNOzD\r\nuCG9ngq+Ya5s1pb7vFMQSeff61NdBpLYAkLRB3NdlAeBLkCAsjZJf4oxIrVk\r\nHeKfFq3CVDtKwOdBbHzVkF7LXK5O8V2E+1NNd8aJ6pPb/iqIkMtZMS3m2DSU\r\njhX3qJgGizUfFSIWExaI8k0h9X3XN73wNPuhTzLEnXlofiGHLl3KiEx6m2j1\r\nZz9ej5j0Co6Qho4b0W50Kzc7z6WR15Qf4DYPl6hRSP01ijpAbw2d4fBT/+b1\r\nth7qx2ZWir1XL+DtrN4iIuHFCXx4tdfY/2RRc5qlrrwkJQr3dGZ9eYcEavtl\r\nUsjWkLwKpYvePoYAFn2v/qHXlGMd8f+I37A+Zb+zclrmTzl04Sq8TOYXj/Gs\r\n2quvYNG2Bi8DWq7wVkueulYwwmDUsLgr6+8=\r\n=iOA9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.2_1664112577944_0.21844744241568015"},"_hasShrinkwrap":false},"0.0.3":{"name":"@unrevealed/react","version":"0.0.3","description":"React SDK for Unrevealed","main":"dist/main.js","scripts":{"build":"rollup -c rollup.config.js","prepare":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","peerDependencies":{"react":">= 16"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","react":"^18.2.0","tslib":"^2.4.0","typescript":"^4.8.3"},"dependencies":{"prettier":"^2.7.1"},"types":"./dist/main.d.ts","gitHead":"9b3cd61b8a6ae017ede3b861f371d47f4a344047","_id":"@unrevealed/react@0.0.3","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-3SYAK3lMBh1k1fyuCS7x3PSXMJKYbske8YDLy45DrvO4olDqsZJyHDZARBKljKZX2kWO+jtncu4t7qFizEJ27Q==","shasum":"5d4f6c5e742bdb9b56bd5e784db3bc2a97c8981f","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.3.tgz","fileCount":12,"unpackedSize":7968,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCV6+ZoBg/aDOTPpP+g1f8RcWD5hrc68F9rPEwNdV6EtgIhAI97Z66mwLhzsKdSsnXl/rBt7zCPjsiEui9C3LDsEiLb"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMF4OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTgQ/+KkEtrAxdkZRHR4u3GOBKyLB4lEfzfqFsFTNh00BLtP/9W9he\r\nV6ZxjUs/b3vNW9qJtWXqKOuTQZdoL/37GaUWaclS2wgxXz2K/HBRTx/CikPV\r\nLn5hf19tEWwfnCgrUGzyXgQYKSf9zkVtUmqPW+r/FQrsCTFutwIAWPHsN+cF\r\nDckg3Yb1xaoECC2kKQvki0lFUjgdqWn4vRoKlB47ssYmrXZxIe8QZCTs4RBH\r\nTPuVfLhANkkKUDPgPgFt3eEsWWyoR+38mp8DZW0YETkp6KEzeECsy1YVgdFH\r\nFMlfSP1S5l8sbI+7HuMGZ9Hj3S190US5JzNprrobjVmkcGz6H4gVZXGOblYz\r\njh6J2i039fKQukabd0h3NmatXIGJzLqulVNTGlSWDJbfsOQk/HnhP8+K7UHZ\r\nzDE17ZzkNLEYkJmbeDujwuuu18WHtSiUGrzgTKdjfNvpN6NTRQ0axWKXawDe\r\nTKtgoKfEOgijImuBcXY6jMymKDCra2OzMIIg4Q6ETIJ5gVP58Jv+Bp7IWhZ5\r\nF1RbwREY3ieNDwqdz/2q9cd7xjI6paKCsG1U1gCOF4PPAvgdbGlYhON6IxgS\r\nbSLbf1TVmognhK5hNk1Txo6HYjjvryoA8ONjs6S3SVXm6iW72S4Vodb2PaIv\r\nU7iDYNLwc73n7/rr6FrJxn03Lh4L9WKDKsI=\r\n=bHbO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.3_1664114189987_0.2876447401798401"},"_hasShrinkwrap":false},"0.0.4":{"name":"@unrevealed/react","version":"0.0.4","description":"React SDK for Unrevealed","main":"dist/main.js","scripts":{"build":"rollup -c rollup.config.js","prepare":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","react":"^18.2.0","tslib":"^2.4.0","typescript":"^4.8.3"},"dependencies":{"prettier":"^2.7.1"},"types":"./dist/main.d.ts","gitHead":"71d4f2f2f80077660ff0594b5984a90c0baec475","_id":"@unrevealed/react@0.0.4","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-v4xF1v6vsj266ZRvb2aqnlmwL4Ecpn5EuK+l59P2+XZcgUPDjP0bMnA6kYJDPNvEmKXglfv5Ea+LZDGB3GSyfQ==","shasum":"714b9d2c01ed5e9d773a34789bb332dc7e4e2be9","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.4.tgz","fileCount":12,"unpackedSize":8084,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICg1TKlGo5nRAU1vg7EM3uutdK4j55Gs9E5ZdnjtPAo1AiBMxU0y8BJMwqXbZN9RHCgDFHrfVTC+P5nXKm/fczOkUA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMV8qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoI2A//TF8p+lWlGEtYLPdnQSKrp66VkV8JJiUR+bQ8+5qX9nwO+1c4\r\nZOcWBg4fr6FUMxJzt9hIw3usWFZWzfLqO4z8i47k6fMgoes7Th0nuugARzJb\r\nNLrIaUCzH+GT1cVc4XkJ/58x/LT7xgYnAA920WYYA7hzkUGD1U6rBknAyt1m\r\nShJbrfDvA+/X5AZSs/mFgro/Iks69rF+dsfGeuXID5m2OEQdssmax7K6s26g\r\nKmsJ2oXYd+wLAiT8+kZwq/nrINkDYYbPbwAzd0lnVhD7nbJkJ9d9E48rOH0J\r\nhSRwyT6963qZ4nmXbElDTVe/Yk5ImPK8F6yopRzyeUHwIPjPKe7Av7HZcOUh\r\n7iZ3GDGzenYG8s8bVJDEmNLMs3j+5YLKLRFiJnJBtIXcX6Q4ViWiC/zP3kE8\r\n/ymAgazRoRrwsYg72JlKPlV1tn0SwIoCHcfzE4qAm9v+TwNNw3dBZDI4PCUK\r\nUN/ARogZUvk0njxwomzzAZlBSMxC337mqQGZJ+I+UW12pDfMvxl4cLRUZz8/\r\nMEPaime+4Lhl/FCMWRQ1yuKSm9FGoOvbBQT0gSqmXrZdxU6eVLBeZEzwH0sj\r\n9s5J9B2927xtzfjA6nEV5MKImF2ucgQv3VZlNYQG5Mk81yT62r8sJYhIndMc\r\nywU537mHWdbEWrpp91SbG6by2cf3UJsfEQc=\r\n=WBy8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.4_1664180010427_0.10470304929262086"},"_hasShrinkwrap":false},"0.0.5-rc.1":{"name":"@unrevealed/react","version":"0.0.5-rc.1","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","react":"^18.2.0","tslib":"^2.4.0","typescript":"^4.8.3"},"dependencies":{"prettier":"^2.7.1"},"scripts":{"build":"rollup -c rollup.config.js"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.5-rc.1","_integrity":"sha512-kB/5FukRXZ5Qtz7MhZP74LhhPQ9Z2AsOleqOR8auj678mPmJ7cltwBJjZ61vQAaralIsshl6l6WAGjvglnUkCw==","_resolved":"/private/var/folders/5q/rn9c12rd69z4fyps01p6dk9c0000gn/T/4fcac2698da4c89dab3aa80bcc12fe88/unrevealed-react-0.0.5-rc.1.tgz","_from":"file:unrevealed-react-0.0.5-rc.1.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-kB/5FukRXZ5Qtz7MhZP74LhhPQ9Z2AsOleqOR8auj678mPmJ7cltwBJjZ61vQAaralIsshl6l6WAGjvglnUkCw==","shasum":"0f45c4dba510d1b76c01497b61c60d82f9eea133","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.5-rc.1.tgz","fileCount":18,"unpackedSize":12645,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDesfc9rZet2L5SmGRJIWUrycy2aN6adasBJYzkJi+KQIgB3v0+0LjJHQlhszPf5890Ct+4c1Cd23kaZlLB55VEiI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNJ9iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7IhAAg3PLsIRHhR/VLuAykzj07POz6dF3n+9jZH0PmTfMpX05mmhU\r\nPCPkx+0MO8tHGeR1sxCEmb/LRl669m0adNEVuo0EMWOFXK5Sab+YpJCFnh/m\r\nDba8btKVuZVjzpRM3tCernICst5jNPWqJyMhOIfndvYeOijuV4NAypq03a04\r\n+7twsrq/XtDMbv7VWSbU12/ffQIAtqp40SoVqpufnoIUVbK+9CHZR86ahasx\r\nvNZuFuxTG1DnxlwBCekJ9DqGeATtUFg5z41TQKu0xHsDCW2iLs3acL9NJRba\r\nrx5xiX0XTiJvXpdSMmgJcWs67FmBLhPK9q+5DaYtEwJdBafcnXlC9zgwDQa5\r\noaBC6jAPvRo2yIl99vrIcCABRLtNbf8DP0bp8MAriWG3e/PEty5tIyldYyQV\r\nqi/VTnoLYsaXUnI8mu/mK/sOvlUduPGBnlCahLahPxNNL793w7XM2nMjRvkY\r\nY+4BHQkfZdtrbtyUNgMgUQnqbbnSLnHf+4UqNInR249z9V4eX0ACzP5ZzbDr\r\nZW/w3Z+637YbJps6rtn/MKE/iZ4Xp+bnAdUD9DF9MBxsZpe71SuQExPwRQLE\r\nbAkbdAUAirzpCxTbuvsILmZGMEYqZVD84dAzATQcA8yOam0U9SE9t2tWvfrN\r\ne5kgw9pnHWKwoY4RDF6UDBms2XFDvoNnIsc=\r\n=yMZV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.5-rc.1_1664393057869_0.2339284539114086"},"_hasShrinkwrap":false},"0.0.5-rc.2":{"name":"@unrevealed/react","version":"0.0.5-rc.2","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"build":"rollup -c rollup.config.js"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.5-rc.2","_integrity":"sha512-R+qmJf0qePINR0Uuu/o+b+kfhu6KSuDFqAj92LukORQE6dUXBRBW+JgJF7bOvM/1jTDpw/3yfRx3k43ofq/M1w==","_resolved":"/private/var/folders/5q/rn9c12rd69z4fyps01p6dk9c0000gn/T/f4ac6156cc260542df5c24c270b5ba1f/unrevealed-react-0.0.5-rc.2.tgz","_from":"file:unrevealed-react-0.0.5-rc.2.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-R+qmJf0qePINR0Uuu/o+b+kfhu6KSuDFqAj92LukORQE6dUXBRBW+JgJF7bOvM/1jTDpw/3yfRx3k43ofq/M1w==","shasum":"52c15139cbb197eb41d86e79377dba80902e3480","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.5-rc.2.tgz","fileCount":18,"unpackedSize":12646,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHjrZHww7Ywf1vBQzNKCkMV4W8J13JEiqU5IAGZa2wQvAiEAp0iFs2hOZeEjxoVkVovfN5eIy4jGPlTA+CN4veKCPyw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNKEVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq77Q//fiWAmxx8rkO2IZntD7qLmRvfyO4qv/3Q1H8zFGo2LAu5Yo/C\r\nc6iM9XB75Y6l/MzR4DfWUPSst7LdMVY1Q1KUoNk81wuBe/a3qgmQ6v4YAVGd\r\n5z1xyMO51d6kOOMJZd3FB0t8KdLjcn30thJT7md0YNu/mrHG2QBYIt0o6tF9\r\nJw1Rc4w+SvVSPxcxDFVOig8iUasNKtmHgiS0u5oBD0fY9rjouRlhFwW9OLet\r\nYUdxrfCPx513OTvPv2WaDz07DL5/5+FIKFolUdkGeYD5BmsbvFixgori5pzt\r\nU6lEGSfsqhx7e/AhYYm1Fy+sLzXnmtCKN5/ag+C+tq6q8aBF6Pj7BuAAjRz2\r\n0SLemn4Tqi4tvkHK7dnX4xr0zCmcsZXG6rYu41iGCOOmIElOXbZn3HK1yaJN\r\nb1ttmYnNi/3EBzwRqu3bq48JObPCAqeOg37njk0abbCXff2Bb1yUBx0doz4a\r\neECcUE03yPpCg4Fhlpod0kFhWz6tacmSrl/L3DfCW1JfJO3BzN4se3pxGfyg\r\n3xdPqZJItm31c6YN6nyOucxfRj4/y59hZJKu2Cs/Vs/QSM4CFPG4dxPjrich\r\nhLYMDzgotztAIlDHkOCzDnCCrv99bCTVCO+biMyoCTy7f9cSMgM5KmY69Jds\r\ng+ckktE6zD8wmEoAB3bEmxulW6fDoAsva8c=\r\n=w4QV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.5-rc.2_1664393493295_0.7097086637840695"},"_hasShrinkwrap":false},"0.0.5-rc.3":{"name":"@unrevealed/react","version":"0.0.5-rc.3","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"build":"rollup -c rollup.config.js"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.5-rc.3","_integrity":"sha512-ii4gDT8JsEpfx+//M32r4ZmdogP0IB6wmiwHq1srqP6yyRKE4pLSc+/rhuSBp9k6aPQ6GssZ0WGWpXKgb4P9pA==","_resolved":"/private/var/folders/5q/rn9c12rd69z4fyps01p6dk9c0000gn/T/440a3dea9d768c7e932099e1643ac93c/unrevealed-react-0.0.5-rc.3.tgz","_from":"file:unrevealed-react-0.0.5-rc.3.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-ii4gDT8JsEpfx+//M32r4ZmdogP0IB6wmiwHq1srqP6yyRKE4pLSc+/rhuSBp9k6aPQ6GssZ0WGWpXKgb4P9pA==","shasum":"4ac739de20cf332ec224e9c78964478c5151bec8","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.5-rc.3.tgz","fileCount":18,"unpackedSize":12664,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYNFVvwxUECw5BXvcjm0Mez3k0oHtLEwS0lFbAb1sf4AiEA+fXyZgZ3gYtn6wbEtYxH3cXsXGO2HnAsVanSHErXbzo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNKO1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8qBAAgWFuJ+FVgMvdkawdilbc3sLA467DY7vUOZKEDh1vkqbz0V7n\r\n/VfnZq70dBrw/5urW5z/96cSJftc1QedAyvH3QNvjGpQoKGiVTM5qtMGXShG\r\n9ZvMPYBHD/DThMH/TgvFwAZ+k8Bn6ffaPY1pM5CLzyfKp4uvsPCjj1P64gmF\r\nBbD55L3vvI4S8phTZc4dEGS7rnMYHKR7WKnwkvouw49F9uxPPRRJ792jeGHz\r\nHbdF/Qt4a3/pgE931tOyFxWOOOVfbbTon2LPX+Y8j2X5okg8IxX0GH5Ppzzy\r\nssfznb8CnmtwT/qOp/7tvYQCEoIUj5eVGdfqDTUJCKalDRjXLDrI0xv95g2S\r\nL9AujHZdqP0t5bAXXzqsbIUI6AGdyKHBJn/kmRTVwNUSaOtUJ30XgoZvwCJj\r\nE/YfStJSBH8+seZ2RSrLZpXPSyRcAUD3kjB3hCU3wTH6Mhx1wK/ALg7DeQj2\r\nmTrupl+YlEL+OpHY7QGwwIdHJsnJODO3es9NDQO3+jhN1YxJsHXnoSrNSWBC\r\n/nl75RwT8eKxPZecI30scScM0KGZiFentPKbiWXiPGUxEMm+13kDyBGRWj22\r\niMU64DSC4tKAMaD6FPtjQaT+sq6+IAvIACHl28LhQNn3dXUJ9eSxPwaN+zhh\r\nWXxk9pbA8JOf/KOUo/t8INJ4ZgTmcwjn8g8=\r\n=AdHE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.5-rc.3_1664394165107_0.42202562549272105"},"_hasShrinkwrap":false},"0.0.5":{"name":"@unrevealed/react","version":"0.0.5","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"build":"rollup -c rollup.config.js"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.5","_integrity":"sha512-O3lXkZWRb9sAZ8swjW5hZpV+3ghR58GMU8o17YsCVuBNV+tg4NJ2ooAxI8oCrH0Y7HQ7t/0m13TUFMCjjH+JUg==","_resolved":"/private/var/folders/5q/rn9c12rd69z4fyps01p6dk9c0000gn/T/f34624e06efb694b8f0c9eb6b231f51c/unrevealed-react-0.0.5.tgz","_from":"file:unrevealed-react-0.0.5.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-O3lXkZWRb9sAZ8swjW5hZpV+3ghR58GMU8o17YsCVuBNV+tg4NJ2ooAxI8oCrH0Y7HQ7t/0m13TUFMCjjH+JUg==","shasum":"7291d50aa3ee5244bf7393fa6b6595a1a7dba5ad","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.5.tgz","fileCount":18,"unpackedSize":12659,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDPqSJmp2XeMTwP8kKd0T+vRugqNG5vnv6igLZH3/tCmAiEAgBnj8TaxNGYM954eLD6/AEl3rp5Xhrwu9oVGs8vCLiE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNK0kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolNA/8CggJpXDEj4gYb8zF/l3glSaBQnq7zn6vVszEi4zfmFzTRmut\r\nwsMfZxJDU2wtDpmL9GmWb57CliE+dJjA1LbYYltR4iechaKnoy+MtM7HjWjW\r\napPlEN7RdeeLtSISj6JzqUYZ+KhHQoWWqqH+U9oXMYlkQh2t2yJ/Ubh67GZ+\r\n4ISAdNBNK0+i6em/Fho8q/quEijek8KmiulxaEhdsLZNXFgrO6H1nJpP+M8x\r\nZhxKY8IOim6qVZob8J1xZx7KVHkvATsKJItRRHc7eUVTGqoZzgiZEfemQXT9\r\nyD66XdTfrVcL6MoVZo5fd5AN0tUIaoU4uY9WBWAd0/Yoq82liyx3k47s3JdN\r\nF99/oTO8ye+pDBw9Ec+rM/FHwhPl3zOiqMBMY4rzAltF/hNRWNUnG7PwAGCe\r\nZ4bLbJyUdEN0AW4iI4J9rgHKJ4NVfuhKGrAQv6PUm/ILMS/Glq3k8EcxETyM\r\nDat7Dd8/rPUwmOgeDebN4T47tuTukP/2esPeVDfymA1cX409I09V+efHWimF\r\nFIHJwOe5Naef+4zwWFPEmXRwNYgPNqLAsWk+IZWuik+RLj+kI00NapVQQ/p1\r\nc68SJbXxENRXWw2EqDzjR7uE9Ho+5ju7gSUVY3D8jX4el6+hs6/CYy78fCtr\r\n/Lt1g/6kPxMGIApMR7hxuWSBggHFKMy/Pxk=\r\n=b4iI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.5_1664396579924_0.43229361991066484"},"_hasShrinkwrap":false},"0.0.6-rc.1":{"name":"@unrevealed/react","version":"0.0.6-rc.1","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.6-rc.1","_integrity":"sha512-Rfq+7ZiPwVsr+sVb1h+eyQaGaWztHH2ALQKAj/o9oNGLYqgoSBdVvcuWWaYX9a0aN739sQgnaVkKPdKoqm1VgA==","_resolved":"/private/var/folders/5q/rn9c12rd69z4fyps01p6dk9c0000gn/T/f29a2b719a4abe073c91eb09ec92e275/unrevealed-react-0.0.6-rc.1.tgz","_from":"file:unrevealed-react-0.0.6-rc.1.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-Rfq+7ZiPwVsr+sVb1h+eyQaGaWztHH2ALQKAj/o9oNGLYqgoSBdVvcuWWaYX9a0aN739sQgnaVkKPdKoqm1VgA==","shasum":"ceba17a9e47b238ae2b438c01f853ee45577a340","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.6-rc.1.tgz","fileCount":21,"unpackedSize":35920,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICjT7Gzuy3/Eu11gZNbre1pODcFOBVkN1crDgDhIVKneAiASOllfR6iXqJUgNqCnWCvTKw7JFFoLggoQKvD0zNCwbg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNwx/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrYAhAAnFucrczqvARERKLA/DeeHn2omBhacyXxsDWWl6bUBoI/eIIq\r\nxGOCktckn3iELu6dBqSUvqJ4SqLPiVSIl0N3MVFpcbLDRvGynRoGVIxiP1tk\r\nf1HvHD8Rc1qtt/GNhE/D8tVQMQqQXnPFt+DJ1qMYPLNnKlfF45U8ms7R4XLs\r\nbOTR+q9bHbH2wVLgKIZYsAS2TKA0ZWrKrvrUcsXMpe3a7ESIFRXwUe/0QX2R\r\ndDmjFfepEzbGeFdPtxkXBCbj2f5BFnkRRBFJ2R3IOqI78oMGuYYVdLDA0ATG\r\nBYPC4+GX204x5jj9ittDjJmHBtQWc1H3j6XyXsPEbKHJdwEaRcnzFh2bodSU\r\n2jsYGAw0/g8ys5KDpANA2lZJAKyChOBfLyx/LFYQRkwzPRC5Kkb6XLAxmLBR\r\nV9uLfzJLSssieE2oc783+/M85aie+nljMqqVa4kicezUReYMKD0DhbTOpCXN\r\n3gOo1CU4EWzvhhdSof4EaOUNk/HrQ+h02r2UjkOmt7woUOAgRUDv+DowUObY\r\nv3vMvP5OaZE1ruXESVzsPNWLSGR4uBlC+nQ0CeR/2GIj1HIu/KdNraRhod3x\r\nG2rt8iHHABIW9VH507smD3/Nr0C2sJvk5uUiknXwbK/EW92VoXdk8ppLOUiQ\r\nSftI78ICkTdcQfH25QlxDAl/f+UPMySSGM4=\r\n=XMng\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.6-rc.1_1664552063334_0.7791645845961412"},"_hasShrinkwrap":false},"0.0.6-rc.2":{"name":"@unrevealed/react","version":"0.0.6-rc.2","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK for Unrevealed\n\nReact sdk for [Unrevealed](https://unrevealed.tech/).\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nAdd the provider at the root of your app. You can create a client key from your settings\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider\n      clientKey={yourClientKey}\n      user={userObject}\n      wait={loading}\n    >\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n| Provider Prop | Type    | Note                                                                                                             | Default value |\n| ------------- | ------- | ---------------------------------------------------------------------------------------------------------------- | ------------- |\n| `clientKey`\\* | string  | Generate the client key on Unrevealed                                                                            | N/A           |\n| `user`        | Object  | Optional user object if you have user targetting on your features. The object should have a unique `id` property | `undefined`   |\n| `wait`        | boolean | Set `wait` to `true` if you're still loading the user and want to avoid Unrevealed making 2 requests             | `false`       |\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n- `loading` will be set to `true` while Unrevealed is fetching the enabled feature flags\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to see what your UI looks like when a feature is disabled. To avoid having to change your feature's state in the webapp, you can drop the feature toggler in your app.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.0.6-rc.2","_integrity":"sha512-Z008z3B1Ll3MEcxOEa/oXzVrqf6bNAFzKqwZur7yronsc2fJ9yodXGFU2inRTXV1rEu+gf8aY8AVussxXuCLrQ==","_resolved":"/private/var/folders/5q/rn9c12rd69z4fyps01p6dk9c0000gn/T/1e33181b4e8279e6aa0db7e685692b6d/unrevealed-react-0.0.6-rc.2.tgz","_from":"file:unrevealed-react-0.0.6-rc.2.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-Z008z3B1Ll3MEcxOEa/oXzVrqf6bNAFzKqwZur7yronsc2fJ9yodXGFU2inRTXV1rEu+gf8aY8AVussxXuCLrQ==","shasum":"f9f7c9481890adbec1cf2b1507289f0e8206a2a3","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.6-rc.2.tgz","fileCount":21,"unpackedSize":35920,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFYcAc/eSBHbo10kDWkFrtCB5E3sSXwmDZYRLZqCxLZOAiA0KbdIYc0+XcWNPSVFj5wmY3p5FeJyZGgdBAaYQZT7RA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNw2WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRFxAAgRrwYdHzVhRXf/0eil+EcRYAV6HqvoVK9gctMJPfYEiGnz9O\r\nwF/GvPf5xBni69kUXW3lVkJPm8iTKmQdZBuGx2SMukQrEIyfElWIXapk4qxo\r\niDE0lpEUaO2JbdVmPxNnSdJShczCA/qYWUSpPiwW2i3/gKKazGKZxEfwpKLn\r\nNquynzTlzI+7smQLOtkbKITTTf4P5J4XG7ZvYxRelhUnrPPVzcGziwdttVeH\r\n29Z9X+IEf4CKf4MQV+yEHVdwZAdswrgMUV7VNKhE2Ylt9G1c2aI4wjZfOzVv\r\n9KARllm9yrnxcFbRbAwu7qrxJjxoLC6OFZSihReBQL7cis1lxXT+1d1WjLpb\r\nq7TQZZlh7aae2ox7W+ICZ30c2CEVDG31zhW3M4/6oM2M8xJ/po8saDJibb7Z\r\nlCN+kPKwoR2+Hh5g4axycYwvombi12kT/jxgjEjNbZ8v4MGuoC0Ix23BZCLm\r\nZ5DhGz/4WZgyzLzeEeET5U2BDQMdkpwEvgx0Tf+vAyRhOyFSAYGdHCpL3prv\r\ny2wFsrfu8DXE4zSWuoOg5T7SUS0t7C++Bze1U33qUrDhJ1hg4MEdgt0lO1gB\r\nc+2G7L4yMM+N4TNTxpYcYo1FQd7Hmrw7dy3CyXUbda92ZpWos7CQtYldGoBj\r\nJqBVmQ3CH+G1gVHJndcjA4pKg083CAmvpLs=\r\n=+3AF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.6-rc.2_1664552342520_0.933999612903025"},"_hasShrinkwrap":false},"0.0.6":{"name":"@unrevealed/react","version":"0.0.6","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.6","_integrity":"sha512-yqJyrVI2eu2WHiEgxBhlH8EPcYHm1KJNqPxz21gYLKtUNL4oPja3x80OZ2rY7L8zU5UjUq6F6LPSIoA0vdwaLg==","_resolved":"/private/var/folders/5q/rn9c12rd69z4fyps01p6dk9c0000gn/T/7cf20200683b7172eeb3aa577513a205/unrevealed-react-0.0.6.tgz","_from":"file:unrevealed-react-0.0.6.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-yqJyrVI2eu2WHiEgxBhlH8EPcYHm1KJNqPxz21gYLKtUNL4oPja3x80OZ2rY7L8zU5UjUq6F6LPSIoA0vdwaLg==","shasum":"fc59b9faf87cd9549c00e549a558b63771151542","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.6.tgz","fileCount":21,"unpackedSize":35915,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAFFn0Fn2OUCcTN35tNxcTdtxd9LU9TnHZyO+vyiIgo8AiEAimKVQbmeJE4elxV8P7MnOhdw8JdxNi5kIAfuJ85i4zA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNw4WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUcg/+LSUpLr4lDYyFIfEMjeb37cf3+xx6B+THl1+p07W5RjC88SgO\r\nnipfRzPLJN2PSRhVUHuQsYpJ4vqNBLLZBw8z/JUrMQIWLM78M7ZwxzMrAGC9\r\nrjZhJw/jFN/m9qxRHcLUjWH/q2CbyRF4eq3yp+zUq4dtxWVgnZ+fVlJ78zoK\r\nV5axsKtgQhmAjBhapsWBH0fzxSn1JiUB10cYOpPHlH9Df6WYvJQDVRq6I7Ug\r\nm8R9m86CeOXIx85PrLTOKq8nhl8GviaPqvxPeZGfsuzBtC3LHlP37FrAG0ov\r\nYKEzzl8UanzreRL3k9nt0/SsbEOQvCu2pPWGotAPUhU5STYgIWVFWm66BSPh\r\nplHvV6qy2UbcvgLbHkDehKoDA4giiFkTWSeRNsI4mLoXE59z4i/n5nxlYSXw\r\nafFdIw6pZYjwSHf1+Gtecdss6m2boLVoqmBBTa5W/nlf28MkTmWbtSQ8YURg\r\nLGeiygYSdXvjwjnHpvwhNLcXcRJuXO608+5yhczp6cgxd9bwu4Np94+lBF+I\r\nc8rD6WuFsGI8Tkyu+2Eo2Bfgmw69drUBI7XPpUPJRFfsCoLIAefzuup7L9de\r\nCK7gn9/90IpOjUKUSiw8HLpllazbN/47kPQdfBiZ2ME2WHdZTP1h1eo7VTtl\r\no/p15ksvaVR7e72G7x0j6nzrWZ0frl2yVZs=\r\n=dCtB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.6_1664552470074_0.4650265244464822"},"_hasShrinkwrap":false},"0.0.7-rc.1":{"name":"@unrevealed/react","version":"0.0.7-rc.1","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.7-rc.1","_integrity":"sha512-oCMGx6OmADycprq9D696q+krIBr/S42DhM45P8kCpKQY97ndV9JmQfqaXJ04xKlWFRUE13OBZZF1IsL+Nb9Fkw==","_resolved":"/private/var/folders/5q/rn9c12rd69z4fyps01p6dk9c0000gn/T/473267af75c9db9db56d08788fc7be13/unrevealed-react-0.0.7-rc.1.tgz","_from":"file:unrevealed-react-0.0.7-rc.1.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-oCMGx6OmADycprq9D696q+krIBr/S42DhM45P8kCpKQY97ndV9JmQfqaXJ04xKlWFRUE13OBZZF1IsL+Nb9Fkw==","shasum":"f110a4916b9ce8778a3619e0c903a8a76a15ef5b","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.7-rc.1.tgz","fileCount":21,"unpackedSize":37894,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEHVyRJP5fzD9Agmj2l9IDSL6Xe6bCPBYngmbaoSNlYJAiEA9rWp5B8slYD5e6n/9x5peXEulHdq3RMyKs5+yJ7yA0w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjjOLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMTA/9GsNW+G2ssKQrwjQcdpzaL1epp3DNefQqjKx3kP46GkkN+uZO\r\nPFTYID15Oxg1Bs1hyVeQhv9ArVIVd4qni0EEQldP7GhzVnsMSVpPSOfY+jGk\r\n4uPuEhZovTrOjogikPKy4aoibnmuhMqVr6uqvH1/OGsbPePs48nsvYwywIMp\r\nDditZJIN/u6dbbQgFnpqqViyWl9JDMEauwVg132W6i9mvul1g9zaqM472f2F\r\n0EiyiY7E8CVTUCFwCA8TDCcuK6cdiJHSUWurH7yOB+5PvvnSPyctVTaR1sDF\r\nlTPpXcfAAU007YUAkK9BXt9/PWGMIGP8HER6BWIqvy8Cct+amcxWmYkLoXeb\r\nXKuHotsqjyyo0GHQzWoos2APM9tIBUpG6Da9qBXET8d698SV9hQpQPT4rtMt\r\nK7iQwIyE/L5wB5pp6H0r77ZaDVVIrjeF2ko/mNW42Ebxhv2gGKof/MBagyqI\r\n6BL4jmymHapYDs/INyv+wPo6b9N/VDgY2+gxBufmVfsDJgjmWb0pt2Z+Yo3a\r\nvGOS5lCrtQroZ9Z6RG6yp0xdf58wGYguINmiNy/AqpmOrYXLxvZRGvzoLeTy\r\nabhZCTwNINVpgrzgoE/791iRA6hGIQiS9E+2LmLO0gW+n9rWltwgXuIa1xmK\r\nDZzWtk+qCrfrZL37zoXPTjxCptep1rfHsWQ=\r\n=c5G2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.7-rc.1_1670263691187_0.6822191207409329"},"_hasShrinkwrap":false},"0.0.7":{"name":"@unrevealed/react","version":"0.0.7","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.7","_integrity":"sha512-GXjCfadYNl7BYdE5zmM1+3Dmac7tm+h2zr0713DZSLLwN3091IkO8qt79wwdsZLK6FOcp93Ggeah+pG/My3/bg==","_resolved":"/private/var/folders/5q/rn9c12rd69z4fyps01p6dk9c0000gn/T/d81ac09f90774f98ba1d8f1c379ca68b/unrevealed-react-0.0.7.tgz","_from":"file:unrevealed-react-0.0.7.tgz","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-GXjCfadYNl7BYdE5zmM1+3Dmac7tm+h2zr0713DZSLLwN3091IkO8qt79wwdsZLK6FOcp93Ggeah+pG/My3/bg==","shasum":"90993bee2ac4a3aeb9f8c353f6d229935d815bac","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.7.tgz","fileCount":21,"unpackedSize":37991,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7iDtLY6vAztCLLZO/Zhhuza0Y9bN5L6ttYcwOFqoCygIgMq/yxe0MlskRekYnc5QJ23CL/1xA/ndODimkoWq8JZ8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjjkkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSMg//fy6tmaCPv1DR8cjznTfhHMNFjIG7bfmjLI1F6SEMenOrV/h2\r\nDlzPTsU5At6A8nrqmY/nHa9MqC4Evmf1QM43gzBW7EUAwJ5Svqm4EMqxOdsC\r\nKaCG7yYT8VMequHkovkLu/Y6mdPp07SR8IHeKC+LUnTeYL1M8fgp+1yavdKw\r\njmt0tJXHBRUnqEC6eyR1I8P+F7C1IbELzPR0Dlci7fh8PHpH74agWgE3+ij1\r\n9SFLoE5nxc8xhhw6lWZ+5yrxafUja/IyWcFR9qQzMnr9IZy8c2SZhREhSTJC\r\nKHhOqFXo1nw/435Q8QuHyYwQEHNcKTeTn7fefHhz1aR77qdeQABcwyKmEbBi\r\nHlslZWWxhIvhlAkIMjktbcBH+oqW4FgbMpw97kEw0sJVjs3eFLF8dTsEu/yp\r\nD9AliLF1x8E8zNVPnMq5/IrN3Y1h+1B9uAugv1O8vXhyKUd6gBS2kYEj4TuK\r\nkugpTZv+bg8NesJULwd2HDbWsl/Si+765EXD0eQ0r5skohCokXyaDT9V0AKx\r\nWyVOyiIrhQu+AivSZs535HO5GZWGuLUCsvu9NcVJXpZ0bpFDyvw88DeZ4OV7\r\nlabPDDbyoHKaJlyNJ4349Z2gXqPNCPvCAGzOUfZAOsTvXtbETQ8TNOFvucDZ\r\nSJbcrJEFVIR5DvY7rZN39GYM7Hsse+BE9mc=\r\n=pRuh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.7_1670265124716_0.9080253829947462"},"_hasShrinkwrap":false},"0.0.8-rc.1":{"name":"@unrevealed/react","version":"0.0.8-rc.1","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK for Unrevealed\n\nReact sdk for [Unrevealed](https://unrevealed.tech/).\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nAdd the provider at the root of your app. You can create a client key from your settings\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider\n      clientKey={yourClientKey}\n      user={userObject}\n      wait={loading}\n    >\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n| Provider Prop | Type    | Note                                                                                                             | Default value |\n| ------------- | ------- | ---------------------------------------------------------------------------------------------------------------- | ------------- |\n| `clientKey`\\* | string  | Generate the client key on Unrevealed                                                                            | N/A           |\n| `user`        | Object  | Optional user object if you have user targetting on your features. The object should have a unique `id` property | `undefined`   |\n| `wait`        | boolean | Set `wait` to `true` if you're still loading the user and want to avoid Unrevealed making 2 requests             | `false`       |\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n- `loading` will be set to `true` while Unrevealed is fetching the enabled feature flags\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to see what your UI looks like when a feature is disabled. To avoid having to change your feature's state in the webapp, you can drop the feature toggler in your app.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.0.8-rc.1","_integrity":"sha512-sjdH+jWJfBiJes61DlPGdMXXGzOIlg+ZCURzUdPmROKeZlF/jWi421gBEmjjujZ8go+4cihIWfQ8m09cRhq7bw==","_resolved":"/private/var/folders/5q/rn9c12rd69z4fyps01p6dk9c0000gn/T/2abf3dde0d14ffc1a2aa62eba74a302d/unrevealed-react-0.0.8-rc.1.tgz","_from":"file:unrevealed-react-0.0.8-rc.1.tgz","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-sjdH+jWJfBiJes61DlPGdMXXGzOIlg+ZCURzUdPmROKeZlF/jWi421gBEmjjujZ8go+4cihIWfQ8m09cRhq7bw==","shasum":"98d95bff30fea7e7d30e030aa93326755aa8e83e","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.8-rc.1.tgz","fileCount":23,"unpackedSize":38282,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICzFEyYv2pXv6M9TgAo5meihCQZnf0JQKbU19BhgilfdAiEAwpJkeFemaKZQ61dyDU/5th15UdQW4YYOxzxsTr2Dfuk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjlee+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8JRAAgQvBOrZaGaAZZOZGmKl4zafzawpEMYmOsII/j6VuyFHyrsBO\r\nK3EekvSEhjz+o9Fx5VraAm2g1Q052nvdPpdrR9xkrloDfiKENDTd9KCi140S\r\n0W7JagNhrpjGqvt+SNSLaq4UmiNTpIY0Sn2m1j0z4mlowY5nDDIxORZoykwy\r\n+QkDCyS/3zkdroz2OxFuOa2Bb96Oy+rRHoVrxn3Sa/pvkuDn2wRkwe/+3Ty9\r\nOHlqV4/rqlildFvdU0i/54HqGJBOfIn8F+raFOttCI4khUMFJGLqZtLKqYVT\r\n0CI/wqLDONybGMg78f7Sr2zKR+pFoatS2ltb/yPLFC8T7FCw9URTnXSzed3y\r\nzGcjjHVdV35PK42JsRzn9TCiMS8Eu+EmlHBt+U2vrepMl19sR0I+9xBgM+pZ\r\nW5bltrbCdPjK+2KyOuiC1uS9qAp2mm8TPQi0zPR80ioBwUpcKged1fZnyTd7\r\n0xzO/sU1beyarhiN/fFZwPnJCvHzg5jngWtQXZysH2U1pluV93CIY0DbJjvR\r\nGXsQ86bZrdsyCLrPyLp7YTEdhyGVH2LcwBHwdfPO9dAIcb2SKLw0WJXhKlMj\r\nE8fN6y+xmo23IIxuB1a5TletZKWvUUX3fLNOvRUcSXTv2/fEqKWnRd5Oygm0\r\n1VFrO4Uhgo3B+8xuhzz8+e3/1L6P4z+Gts4=\r\n=2E79\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.8-rc.1_1670768574012_0.5977596881981504"},"_hasShrinkwrap":false},"0.0.8":{"name":"@unrevealed/react","version":"0.0.8","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.8","_integrity":"sha512-aPYfm1FXm98g3WQgj2kmWm6Uix7nFgU4KVyUj4pOUiFi3o4VjJZCXI3rdIwFxNFEJgrgVCs7FOtMEz73TJxwew==","_resolved":"/private/var/folders/5q/rn9c12rd69z4fyps01p6dk9c0000gn/T/d92aab35f445742b1173327d52aea381/unrevealed-react-0.0.8.tgz","_from":"file:unrevealed-react-0.0.8.tgz","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-aPYfm1FXm98g3WQgj2kmWm6Uix7nFgU4KVyUj4pOUiFi3o4VjJZCXI3rdIwFxNFEJgrgVCs7FOtMEz73TJxwew==","shasum":"96d3735c222ca07930a4b7cc2fac910409aa1e03","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.8.tgz","fileCount":23,"unpackedSize":38277,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRWThcmrVhTJxFbBMGOHW8E31jXNOXTO/SCYzL/B7OfAIhAJz4q22eblEzL55ALsgF7FuFiuZMMSSp+HpDD28Qqp1D"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjlewyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/8g/5AH2S5JtoMCVBX4NdyJGFh7UtIKQd50yda/VkiAzJq8sAAZ4e\r\nPANbs2gaW9aGN+Fz/A1j9fFo2hpNqq5J02BFcvgFQhKY30FAjmfixqePiu7a\r\ninNeh5mKR5ewuoU4jszx3/lcFodNEVd+h5UNooulcL0PziJ6mucRsexSK/KP\r\nxVVqgR1MFd0TLYSoLuBp16LixCUS4/5d/8PrbEMdYF8BzRq5RILX6j4WGad2\r\ndi1PBClizXXtpL9QxHQvSVOhDlcaXaIlDX0jiGrFuM6ax73Jl43yuo3ZkWs6\r\nFn2gH6UUevv5uQ5ziEkRJdAXPDekSL4I4No7XBPL/ntF8kGgi9WyadtxGNst\r\n1PsuSvzkuz/Rh16UAj4gOxp1F9f/aT4uFbXzylOgESrsot3whULAYPwAEUdr\r\nx9ra92tZ7J7aG9hL10zlHIt4atFYLHe/xhiSZG63+tfJ0YkbMePXiTY5wh3X\r\nnIppJSO3KPnCw59ARZu6AqmyYW+fl7p6dzWwspdp5CagBUrrx98zNp8QDv6C\r\nGsJNkBbs1RmRPtYPDPpW4A7605w0la7Y/NskH9Q05cRnW7MLNEfd2gj/aHgx\r\nxXTxb6s1cRoHgeSGHd3uEWzt5rVxjBsxwYVg7EAEDm9W76JNeCn0RTLP977z\r\nGa0r2dA2N9wEJkpDJPD7cO+qs6IhJl8wJ4Y=\r\n=n+7H\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.8_1670769713775_0.9838008642107336"},"_hasShrinkwrap":false},"0.0.9-rc.1":{"name":"@unrevealed/react","version":"0.0.9-rc.1","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK for Unrevealed\n\nReact sdk for [Unrevealed](https://unrevealed.tech/).\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nAdd the provider at the root of your app. You can create a client key from your settings\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider\n      clientKey={yourClientKey}\n      user={userObject}\n      wait={loading}\n    >\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n| Provider Prop | Type    | Note                                                                                                             | Default value |\n| ------------- | ------- | ---------------------------------------------------------------------------------------------------------------- | ------------- |\n| `clientKey`\\* | string  | Generate the client key on Unrevealed                                                                            | N/A           |\n| `user`        | Object  | Optional user object if you have user targetting on your features. The object should have a unique `id` property | `undefined`   |\n| `wait`        | boolean | Set `wait` to `true` if you're still loading the user and want to avoid Unrevealed making 2 requests             | `false`       |\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n- `loading` will be set to `true` while Unrevealed is fetching the enabled feature flags\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to see what your UI looks like when a feature is disabled. To avoid having to change your feature's state in the webapp, you can drop the feature toggler in your app.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.0.9-rc.1","_integrity":"sha512-OAU1j+nvvV3O9vf6sJlqeAsq5nrxn7Com/qvIe2xVBoQMqD6haGXlKFFgQ5OpDa1nC4o3CXfPMGl7PZthATv+g==","_resolved":"/private/var/folders/5q/rn9c12rd69z4fyps01p6dk9c0000gn/T/fffc0934c20e28acc3950a8f3d2599d9/unrevealed-react-0.0.9-rc.1.tgz","_from":"file:unrevealed-react-0.0.9-rc.1.tgz","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-OAU1j+nvvV3O9vf6sJlqeAsq5nrxn7Com/qvIe2xVBoQMqD6haGXlKFFgQ5OpDa1nC4o3CXfPMGl7PZthATv+g==","shasum":"b24a59363a8205482947f6b93546cbacee1ef152","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.9-rc.1.tgz","fileCount":23,"unpackedSize":38915,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB+AR1AJaXJzQ3GIyJS5xDcAlQ7BssL4Dl2/OGz+OEtNAiBmiJ6LYTs5+rxKvrDnhvMkIeo/jymGk/DtmXNzUUfEPg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnwtbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpt2A//SNYlBfj1GNmK/CgBFR7wVvSv2Eu0OYvkSk6O6aIXEB06T8aE\r\nw2Sb4R2evic3xQnAiPV/AakXM0fJf3PUWBsNTzxG/R5UjxO2q+U/QFjSXsTJ\r\nZE2/13PvNhgG8Oayl1twKrbw65s/wG9PBcDmieGpOSAAizv0SdGB0xiKXTD8\r\nKqIZf97mneFhUUfMLf1Vn0hsB1sxBSp6/1BZl0s3BBbsQCEtXeUddvVz1MQC\r\nUgA/7ouDLlyuZuhe1qN41YN3vmq6CKG2KTqoxgXD4lp+nv0ljEq+tBbbOmR2\r\n9EKWhWdIgaJsEtv5A4/73gutsZyHogFsbCAJrOTlc7Q1rzy9qjOdo9J/GZeB\r\nN4eOZ3E5ihsI1s9YxnjVCNBFyGfwx/bGYt4/qWAFMcX3skpDa2ul0VMBrOVK\r\nN5Bi2dg/XGjMcB7H2cjisHj1TukwSlkfqvJPDEUwZVX+AAhDBO/iLbo6byc9\r\ngILtpdAgW9mQcmH5LXm4q9Xy1IL1kalszyuqTEy6/Zf/5V/Y3bg0MVn8yidt\r\nhAusbxJK+tYVuDbjDCT36kenDgk0cAoXWnql5KdJC7pH7hQa/6Kdgyl4rJpa\r\nBmiGQBS9uc6MzxoFvi+LXQah8g6HqLcSILqsGkAo6IMySf6oNSm6Q/EZkMv0\r\ndeTiOo6eR2cj5NpcsDyH0+3VQscwzWXpMTA=\r\n=qilo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.9-rc.1_1671367515383_0.39256953409841966"},"_hasShrinkwrap":false},"0.0.9":{"name":"@unrevealed/react","version":"0.0.9","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.9","_integrity":"sha512-U46OkIFJtilz3GzN9IyJKWQv1YE0prS+WMGCJR+BETKnlPMC9lr9NaOLgM/r/r3gPExMdhZl2WYr2nwzfwnQ1A==","_resolved":"/private/var/folders/5q/rn9c12rd69z4fyps01p6dk9c0000gn/T/f6904ae958ead15d22f64738e2ec74d2/unrevealed-react-0.0.9.tgz","_from":"file:unrevealed-react-0.0.9.tgz","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-U46OkIFJtilz3GzN9IyJKWQv1YE0prS+WMGCJR+BETKnlPMC9lr9NaOLgM/r/r3gPExMdhZl2WYr2nwzfwnQ1A==","shasum":"a7d654d96097bbc1a557c6e2bd35edd5b437854f","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.9.tgz","fileCount":23,"unpackedSize":39495,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEQPcoG3nHle7BUP8uge/LwX3utcr/0AiFsm5OP1tK7HAiEAg0NswaYl/mM5czeJg8rNIpQVSYwcv+P9GLf/jDkG+mM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnx62ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9PA/6ArXpu3wJK69npMCAVNCFftRMBRy0xTBOMaF2gaO2l7YffWmP\r\nLaau9Vp7ohLSAVb/d/RG3z5pmh70LuhTI9ATJSNk+RXeDBnD9jBrvC6zpufu\r\nSIj+GBeKn9AV27VX+euMfMUcYfBXABjaTwlsnOqsYJufunRhH5BeFNR8f///\r\nLnLemUVQbHlk8QfiUqbrEpGo7f3ExiLocwWDYf93bVFMck7D9iGKCbnSjfpL\r\n4PF32ybDiVKW84P57nyPNeJXikU56hXIfLSbx8uS9P7TJ3tLqjihHzNATM+s\r\nPkkx+ledMqLemVjdIyTil6c4wLVAME9BD5ymA0K3GOE3+cEo3PAtmlDGg6gB\r\nYMHC3mNPwdB2HxHDrrT/WiPSxXqxNnrpb49762hA2+63wSRQob5mHSip8Yk9\r\ngHF+9ioDc7FFd29BsthbmA0123EXgMJcZ0GfEguKOtZap/VBTZWgdoeotuYZ\r\nRnHAnWpEF3wL+tjr2ziVHnvcgjTlxT/wNxIct6S8dzkbpXK4kWOJlHta3qcZ\r\nmYVlTG1KsNOLQtk0EF30J/rxVMufQt8SK8iJtTSI3BrS0vNKAMKvOtWo0nWy\r\n7eSAK7aVVkpW0WjRPGxUESzUjdnJEk5ENISO96lCIiuiuDCf1IWWnqD06btF\r\npllZbxbPEG7mfsiOdIw0TcD1Fl9onESxrEo=\r\n=aiHy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.9_1671372470337_0.9743710887196959"},"_hasShrinkwrap":false},"0.0.10-rc.1":{"name":"@unrevealed/react","version":"0.0.10-rc.1","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK for Unrevealed\n\nReact sdk for [Unrevealed](https://unrevealed.tech/).\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nAdd the provider at the root of your app. You can create a client key from your settings\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider\n      clientKey={yourClientKey}\n      user={userObject}\n      team={teamObject}\n      wait={loading}\n    >\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type    | Note                                                                                                 | Default value |\n| ------------- | ------- | ---------------------------------------------------------------------------------------------------- | ------------- |\n| `clientKey`\\* | string  | Generate the client key on Unrevealed                                                                | N/A           |\n| `user`        | Object  | Optional user object                                                                                 | `undefined`   |\n| `team`        | Object  | Optional team object                                                                                 | `undefined`   |\n| `wait`        | boolean | Set `wait` to `true` if you're still loading the user and want to avoid Unrevealed making 2 requests | `false`       |\n\n**Reserved properties**\n\nThe following properties of the `user` object have special meaning to Unrevealed:\n`id`: used to uniquely identify a user\n`email`, `name`, `firstName`, `lastName`: Unrevealed will make these properties searchable if they are valid strings\n\nThe following properties of the `team` object have special meaning to Unrevealed:\n`id`: used to uniquely identify a team\n`name`: Unrevealed will make this property searchable if it's a valid string\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n- `loading` will be set to `true` while Unrevealed is fetching the enabled feature flags\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to see what your UI looks like when a feature is disabled. To avoid having to change your feature's state in the webapp, you can drop the feature toggler in your app.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.0.10-rc.1","_integrity":"sha512-We6pD93+yYWG/+qPwe1j2OljxzVBFo9gORtMgc4QHS5PP9k7xEqWlUpNdzBZnxHeZ19zEted2tT+U3E4dzOMjQ==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/50b8c373db4e38e48538e3b95ccd81b2/unrevealed-react-0.0.10-rc.1.tgz","_from":"file:unrevealed-react-0.0.10-rc.1.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-We6pD93+yYWG/+qPwe1j2OljxzVBFo9gORtMgc4QHS5PP9k7xEqWlUpNdzBZnxHeZ19zEted2tT+U3E4dzOMjQ==","shasum":"cd49a3f7d8e9414e70573759c456781f6b4edea7","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.10-rc.1.tgz","fileCount":27,"unpackedSize":52776,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG77XKFbZLyOarkQccWqeMUmnQnCjQJHNDFIQSZx3mVHAiB18edp8GOL+t70bsSgc5uMwhqOFHj5K9OA8gWhnip6vg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjy+qcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDfQ/9FZnT8eFz/bpw9ZpPk72U8qOhe4g9Q83jy+7luoHLyYW28ifM\r\nan+dFaTxez4xtNmRsFbc854JIORLF8aBWHFWoPsaVpyihdhZoxcJvQFhwD9L\r\nfUdiYIR0cbdqQUCvU5r1t6PWnLjcHoqXXKxRSA1ACP/il8eU3WWuo2WvDQKH\r\n1rPK9NeqQHepus5eWmVVPDhqExaef3bBSe32aZzKyZ4ZqYm5OOLR+R9+WdDj\r\noIAE8Om1R7E/tbZzskYzQ6wyUSwYjZUwcwXheV1BQ5vbrQDJrdqIXR/TWfeo\r\nd5YpvROrPZ5/oGy0UwnURFlQ4xZbvaVuNQUt6hZn60JADrmYr3CzgJLq8Jac\r\nVT0VTSn7pHkFlwOWVamUWJTDZ16qgQp4dlxHSu3pQuH7H+q0p53tTKHGx0Zv\r\nlMNrgT3l8qlZOuR9ajre6XvE0OsR/BQVpOvM0TtFjsllN2zXz55/U3REw2a0\r\nPzHJB9/yG4QPHR5OTN6Z1L2RRQtX0zE69ALoFuv8uIDhP+qMTljQcOsAKnpS\r\nbAhcz9L7CMcfm8xXiUdHVYQlpMOuT7P/LLukQ6QvfBtrNvvge+S/K+dEtT3a\r\nIIXkFhdSmQmRJP+BkCFh61F75PnPVAWbAy4vrr/Y/8n0OLZZVIK07NsJzGXP\r\nKyV+kbW5mDVE23YHPvQ1HW19waruaOd1xzk=\r\n=udY6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.10-rc.1_1674308252089_0.6241507652366689"},"_hasShrinkwrap":false},"0.0.10":{"name":"@unrevealed/react","version":"0.0.10","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Thomas Groutars"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.10","_integrity":"sha512-gRg/4Ujo7A8sLAWhuonP/JrwBC/5OT313+IUMXeiJnBd90Y1F5nVISFE6dIeSAA36MxpgvsK3PvuC0EEZ+jsrw==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/6d086f234ac14fe4cf9c8e8824c75536/unrevealed-react-0.0.10.tgz","_from":"file:unrevealed-react-0.0.10.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-gRg/4Ujo7A8sLAWhuonP/JrwBC/5OT313+IUMXeiJnBd90Y1F5nVISFE6dIeSAA36MxpgvsK3PvuC0EEZ+jsrw==","shasum":"9f4fcb475bca613bf9de38cdd72238b942e85a1f","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.10.tgz","fileCount":27,"unpackedSize":52601,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGE7Wg4ZaCDcI534fi7VMlKZ5LIMgrEaogdSR25KeiDWAiAPdzskh6ZvBAyJAnD0QBsunWSH1CyH8wErwx9so4auUA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjy/hOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrIig/+OCeqKoNToB2kCrE+zlLsSrm1Ag1iMB9mAIb/r08HOaVqjCdW\r\nCgFb1o01CWuLasAbaqqEw+Is3GXRHUqSuj0xXEtMencecNFlKwEPPOgAaRiC\r\nHSjoXEXSrsH4iYtQilZfXBfBkswTIQGivOhJsbzul901pGgT3/CmALN7Hol4\r\nH8u5VU/UOKZLNJLZTz5x17paQNbh4P0YoDTsB+Z8cDi+XmWlgAc6i/LbBNrB\r\nrt5lrzA4AB/q6UVYlRQ3Re4ka4bSbJAi5gpo1STfSu9fHwonqdu6ccrt+dAS\r\nrSj2OTLXrUwkPD1feH+fg/FEDF2EkOiFsJ7/d397XxbI8uIhqNSvt5aK4Pp4\r\nLEuN7KjsPW2U7sr/enExvjNCGQUmk4gnGd6sKnJg1Refgivh+T0BKir9NeB4\r\nbnc1OPiGhyHtBjd89Hd71LG1Sc4jCB6ct0TICYjkqyJBQtP1xNIlxyR92HkM\r\nI8AIoCyRee4jkwNNcN1cikFFt//Z5sTQy+Way8RNiIItrQWNrr1CNXxkArBH\r\nHzSpZUm3UN4YOlfJSKbEIjrIGNLfTBrNytS7X9qkcK/kabWmGPMNEvdnDV6I\r\nP0HrUZLGLzEqAz2VTlytAfnFW3xtw0gMB0tRSB5SZzd3Ly5Id3VvkIaJQWDP\r\nVVBsdyKf9vGSsobOKaQq7zZduyJd9M0OJ38=\r\n=Rvgr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.10_1674311758353_0.10557369016394547"},"_hasShrinkwrap":false},"0.0.11-rc.1":{"name":"@unrevealed/react","version":"0.0.11-rc.1","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK for Unrevealed\n\nReact sdk for [Unrevealed](https://unrevealed.tech/).\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nAdd the provider at the root of your app. You can create a client key from your settings\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                  | Default value |\n| ------------- | ------ | ------------------------------------- | ------------- |\n| `clientKey`\\* | string | Generate the client key on Unrevealed | N/A           |\n\n### Identify\n\nYou can use `identify` to set the current user and team. You'll want to call it whenever the current user or the current team changes\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n**Reserved traits**\n\nThe following traits of the `user` object have special meaning to Unrevealed:\n`email`, `name`, `firstName`, `lastName`: Unrevealed will make these properties searchable if they are valid strings\n\nThe following traits of the `team` object have special meaning to Unrevealed:\n`name`: Unrevealed will make this property searchable if it's a valid string\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n- `loading` will be set to `true` while Unrevealed is fetching the enabled feature flags\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to see what your UI looks like when a feature is disabled. To avoid having to change your feature's state in the webapp, you can drop the feature toggler in your app.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.0.11-rc.1","_integrity":"sha512-+374wByrgKJLh7T8Od327ECKQBGbPfxaIs4iMaRkJAr2x6zcBOX7rbUK7OgYYRxnLM6fLJAmqAi1nToQMdBc1g==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/d34010cfb432128e64143d76d5b69aa1/unrevealed-react-0.0.11-rc.1.tgz","_from":"file:unrevealed-react-0.0.11-rc.1.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-+374wByrgKJLh7T8Od327ECKQBGbPfxaIs4iMaRkJAr2x6zcBOX7rbUK7OgYYRxnLM6fLJAmqAi1nToQMdBc1g==","shasum":"9a762aac5d80da414aaa313dde48b45e1462d01b","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.11-rc.1.tgz","fileCount":28,"unpackedSize":42366,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjDH1SB5MiY2Cxtm5rCO8Yrp7dMIk3fGZ6C/cEoqZsugIhAJ+IZ0lTT2S9uE/FWvunsuv2idCy+EPK6LAbf5TKO3z9"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2TyIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpq1w/+IohWI9L77Z8tcJcRBvwSZ4gj++93ianqWcgBmueWt2R5ZzGe\r\nIkX1Y/3RDxhhJLUV+CPqz/mqz8REJ3j/I7e1Qo0QygN3tlkKhe2yVm3vDb8q\r\nKPIltiYrxpx1H8tbzhS4xZuNJCk68Kz5577reJ7EyIHSa0HHzwN698Ys8v1g\r\ni+yAJYsg/mo1JYegYdt+XLgCxYMqpbQj0la9WSogJUMETO8jXz8AEMOS5Ksr\r\nAmgTwnUWfbQoji6xBEv5yiepwbnKP8CBGAAzKezB2MAPME5MCHSNdY7cboyR\r\nXfu6Cgz4GUaLvGW6kKK0hvrUSQ/g+m97HyBKrG/Te0yCWdMnjSDYZhqbntcR\r\nO3CFmYW3rpb8t12txVENq2Vahv+whXXysl9ikCjpHoaQwxX6DOxeEI2syDIi\r\nEXYI/RfaIUIH1dypmdcwROITzAjkeKb5xkMMlfEjCKBTuSRcS9MAU63ay09d\r\nMexm1fcyj94UTQnf4CNRFWPTi+mRyRo7JF0TTE+htwi72KqvCZtPLPFCgJ2A\r\nCRI8dheTp8TwNXIw0AwGTrhuIxJ+LDsXXGgwDaICPGmZAn37j/LxY+6hoSkd\r\nG7RLz//DEi1CTS7VPdUNdUSZjp0c2NGNuHU9GkAoI0prAwxXbxB843zk/e5u\r\n3j6VMyrpQLwA9BGaWpDRpoaTkNtZEl+NBJw=\r\n=UUwm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.11-rc.1_1675181191861_0.21969609174234828"},"_hasShrinkwrap":false},"0.0.11-rc.2":{"name":"@unrevealed/react","version":"0.0.11-rc.2","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK for Unrevealed\n\nReact sdk for [Unrevealed](https://unrevealed.tech/).\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nAdd the provider at the root of your app. You can create a client key from your settings\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                  | Default value |\n| ------------- | ------ | ------------------------------------- | ------------- |\n| `clientKey`\\* | string | Generate the client key on Unrevealed | N/A           |\n\n### Identify\n\nYou can use `identify` to set the current user and team. You'll want to call it whenever the current user or the current team changes\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n**Reserved traits**\n\nThe following traits of the `user` object have special meaning to Unrevealed:\n`email`, `name`, `firstName`, `lastName`: Unrevealed will make these properties searchable if they are valid strings\n\nThe following traits of the `team` object have special meaning to Unrevealed:\n`name`: Unrevealed will make this property searchable if it's a valid string\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n- `loading` will be set to `true` while Unrevealed is fetching the enabled feature flags\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to see what your UI looks like when a feature is disabled. To avoid having to change your feature's state in the webapp, you can drop the feature toggler in your app.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.0.11-rc.2","_integrity":"sha512-93hpROEag8bj5Y8eMvCcn/O57m92KrnJDw2j55T4PNB13WgpQ+oHJgbter+mcik9VuRAoFcflFYvzm+uocFFwg==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/edbc34f34896326d61ddf08b50f5e17e/unrevealed-react-0.0.11-rc.2.tgz","_from":"file:unrevealed-react-0.0.11-rc.2.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-93hpROEag8bj5Y8eMvCcn/O57m92KrnJDw2j55T4PNB13WgpQ+oHJgbter+mcik9VuRAoFcflFYvzm+uocFFwg==","shasum":"921247e81648c2f53c14f84c973a4b88beec7d51","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.11-rc.2.tgz","fileCount":28,"unpackedSize":47152,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHzNJRLmSgDPqLNlYtYYhuAstih1QkiT1L4KT/mn4WabAiBcjwbyAxx9Ks0wRS3woj2cWha5SdjTneG/kVdqAWes1w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2T2lACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqo7A/+NzhYKVH+e90YXOFtJjfO4UbsW4cfeVWX383iRI25wdycjg7J\r\nb8mGSO/xAviwffJJG/52mvG2bWrTAqlV9lSZlaYB30OjFFe6ue718GZuNWmg\r\neWkaalWn6Ye/JU9Eem7aQIP9M2WgQ+MFdcWJa2ni6BCZqxFcEG+XwD4N+O66\r\nU0najJHBX/9PFytRW/V1VOJOz+2dQ0Ynjofbdl7XV4+gxtNjyqxC1S6+oa2S\r\nLna511RMLvAWtL8zYglMhrXJLYpQ/Zm7ufaOoThR/zIMNyDqjfUVuQ9UNPIf\r\nxn80WHjhU9JFSuQHU0CPYwFGDO/hCNroBumAy/tdeRz+6dBJYJP29zNbdhJS\r\nZLAWjSogPMM0Ci1djAbqRYQMDZwynrvMIKCf/G8AzPaOgsNf5DH0mf9IXDaO\r\nXEwgAsSFwzWbbeUwgXchM9FIIoKEs5+AbIXUn0AXiBKxMX6y+TI3v1ugwdRu\r\nf51gfSBLUeollxXYASnpx36sDtMwf+numNiuQJD4K9G/BWiggknx27BD59kB\r\nu0/E7wFem0fPDQ8pTrWYqBwJ4wt1EbqOaaWeZx9SWd5l31ypd3EvZuCUNhBF\r\nkCg48E9i3KY8YhIAllxIwcNk1pheQ3XNVwdENR09ru0flXTPBJJwtQlH8gLT\r\noLFT/TfYap/r3F0x+fxgKjNAukNbzfZFtsY=\r\n=0IDY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.11-rc.2_1675181477069_0.40858230852293786"},"_hasShrinkwrap":false},"0.0.11":{"name":"@unrevealed/react","version":"0.0.11","description":"React SDK for Unrevealed","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.11","_integrity":"sha512-HvraaExVk8C7A4jWPgDkV/A9xy9qm0jUYhy7i9dUeHW5/edaaDu5Q8Kd9C3WRZcCm8CGDNpMu6WxSGP+CfX8+w==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/5f694e23197a1a5c2334dcd747ace7e5/unrevealed-react-0.0.11.tgz","_from":"file:unrevealed-react-0.0.11.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-HvraaExVk8C7A4jWPgDkV/A9xy9qm0jUYhy7i9dUeHW5/edaaDu5Q8Kd9C3WRZcCm8CGDNpMu6WxSGP+CfX8+w==","shasum":"eb1fa3f517157431b332657e8a63f033909a2688","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.11.tgz","fileCount":28,"unpackedSize":47147,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDu7mPCfbAzOwJoswOdL76xugu1qzOsQ/V/eylf08jLyQIgM76Ig8BBiiTyenvp2pQfIL5aWcLAiMSzWU5qxY7IINo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2USQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoI2w/+N1lDWszNibRCbfZaR2sysYBq0WK8wSIdi9MORm0ujDE5xyKP\r\njL8Xvp18ux9jsnhSSxM1wmsuGu2296uJUAVkgH5AQ/v2OiHby56ct8Num9k8\r\nf8xD8HaJHh/nes2WO9Rh9uMUqCTjG+AX3ayxArUhEmbuRXd/QT33RwX/t1Pw\r\n98KBK51Esf16suzhfABGDP4F/SzAm2nzmxKVppoPiaz092iFdbELTuqD+JAS\r\n8qiTC+PzsESr8g+dIx+swgLSmOD/pF4+r1C7altFGznLC1cnyUctDM3rONx2\r\ni2Kkv9xeWf5VacA691PfCSuJmYxMuL1jPZ6n6bJVuV4sE44nqLMybhefzf8P\r\nIwGAJ2yqK9mlgTFygzB8g5nI6ezhcQvesfqhGFi3D7Sf2olKDzZUXlFxzX8A\r\nbPITP1J+MO4uwmhzZ8n0W1wU1IkPwz2YYhvHEnFsl6zSCXVNnojulyKfMv5M\r\nf2yItn0gVhG2Iki875WLpp071Cf28/SugzSoIpTjBqVVwr3/SPhae1KurnPI\r\nv0B/PqaC2n3e8mWwE3Si09N7Ltc5RVIH9bc7ZJdg/5pc6oziFx3oGk7+3Ogx\r\nqOW1U3/+pDyjzPid1txNvJJtGBHEq7zOJost/rgEEXCiQIEDBpBUOttYlAOT\r\ncptY5BxgUPwUb8nQDwk5AwqIzX8Nc7aR1ls=\r\n=n2ZP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.11_1675183248579_0.7723036688392666"},"_hasShrinkwrap":false},"0.0.12":{"name":"@unrevealed/react","version":"0.0.12","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.12","_integrity":"sha512-SIudpWSVVe6D+p7/87HeOHaKXjVBNMjd2BFPn0rDjqe0ZWJ3HyepqRBgLE4MAy7FpQrVnZD1gLPzKj0nS3rZ0A==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/0806c76a1dcd1678af9401fc8692c627/unrevealed-react-0.0.12.tgz","_from":"file:unrevealed-react-0.0.12.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-SIudpWSVVe6D+p7/87HeOHaKXjVBNMjd2BFPn0rDjqe0ZWJ3HyepqRBgLE4MAy7FpQrVnZD1gLPzKj0nS3rZ0A==","shasum":"9f2a28007fcddce6e34bbf0be69acd69b1028d4c","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.12.tgz","fileCount":28,"unpackedSize":47551,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKcMNMLQh8BUpcmRnCCRK/cnhEW83USHZff9cxCJHdQAIgJemq1D2rJvsW6TDtnlCgp8IflLS9F9yos58o/1bx+Rw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj75OFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbaA//XORB8eG6SlQB04F2wGxwkna2SpkxO9OZaeIqErjp5NrZU5PS\r\nwhi275bnf2cMjweD27ae5JrbyGMU9QzkFTThn5xgD9KJfBeDfZ8Zz683unTv\r\nyTIFfKOLSdNiv6Oafocy6/klF4+XacqSzUyelk9GKAeiCvEWHyfUB6Epv07p\r\nI2w5ug0xgEUiA2YVcXhVDuhCprs+91L2tY1yma+Par7ghpJXOye1AQsyj8Ut\r\nZ021USCmF3PUI85xkYkM9TwuSqiwnqK8nxwFU4gJX4qVNsxZpSeqSkIF+OdL\r\nE/hD+OxVoXaAlCfGr3ovrI6kGlkt513//mkxApvwBlNNdtJ+Cc4CZY9a/fGB\r\njtWIbayXP/T6gxKPs6OfMBwNeRK0ZVUbwFCJf2yUi4VhUYBf9B1+ubjBUmTu\r\nHKEyCzRBwyQJ3KYlhf73VmgPpuBc15cgFbb62dcdv7f8BvB/I1yfuGVfhh9s\r\nqzTZWwqoKohKiIDUYUWdYCEfxdmGBelKSV99aq/phGIO74WocJAQLsWLaEN+\r\nhqVRQRmA8cGTZKpk9IEcen6/BPqxflI4hUyuK2akFg8y3SczAjfGEo0poIMK\r\nQlVelc2bSf2UtQLpBz05xU9Yr23IJJXBrvgYmDNh1GbsA9QhKGJdkFS/PXWx\r\nVu9VhFNFIzA1fir6mswKrxhJrImTIZzEoxk=\r\n=AgEm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.12_1676645252833_0.5574228234980407"},"_hasShrinkwrap":false},"0.0.13":{"name":"@unrevealed/react","version":"0.0.13","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.13","_integrity":"sha512-03WmLRxhfR6QWM2E7i3fLubn6OdFBeR2ey81H8Uf0Is/bweUC+zb46ORsJNq66tUtEU1l81lZoXxV2vc/t42VA==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/6929afa905fa99eeb3fb70e5220b82d3/unrevealed-react-0.0.13.tgz","_from":"file:unrevealed-react-0.0.13.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-03WmLRxhfR6QWM2E7i3fLubn6OdFBeR2ey81H8Uf0Is/bweUC+zb46ORsJNq66tUtEU1l81lZoXxV2vc/t42VA==","shasum":"5d772b73f38f6183db300d6852d452ef8b2db71b","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.13.tgz","fileCount":28,"unpackedSize":47471,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICBcPin2eu2qSBiVgjIEPCEvs6hJenXTTHQb5jDOgWfWAiEA/CShYKSjiHiSB6fL5oTt+h7M206RQJybs1Xfr8iYyyc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+cV2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFgBAAimGJDb9iepr+Dvz2OYS0+mLquTLR8gt+xIGsD/Sf7yDQdcV0\r\nwNzLOFsJhHKL6thIHaQMKQwQ0ZjhgId0Rn7sewhVrOKjTBfe+1RSk4Yy8pPN\r\nYr5PAQr+kCrfRTc3NGj+7LF5KLXaAVJl6CVvhkJXnYHncPSEIY0lR2ZKmRF6\r\nkWuTXTwjAUCZpUAz7NKWMhZVoIFocWRoFPhoBHmg8zood9TNf+Ma+SS8l79P\r\nlRHTMv2jDqCYxWv2Ne5dp1merCNjiyRG5hiBjtmrHJ1DOIy/nciyduszVTh2\r\n0rqN3WaMJXRMmVDHw1KWN19toUhnR/5VAnnCbBUGKkcnDl4TwzOBFFcBJWQ5\r\ntm4JTXOdzU0u1g/pjNOiC8I0EyzqKxiTuGVaeZoUDBsqRy9g6c/tjJ4E1HkY\r\nFTd0tj6KA4HpabR1pvAapamCfJycfDcRXd/2hVxFARvPNRymai40WmgJQZgF\r\nGo7pcNgdXq/yC5DUNZvt39VQPVtFZb3ESvtewsuC+ns2OHss/XpB28mzY4h0\r\nGqN2P3wVADzZIRqxZqtpbFpfWVydSvL+G77oPaVOFPg1xfoLECgYfk7mRJs1\r\nCzwXWBNPVISphwFW7zI8qxntlbseC0kZMDfNq5D9wsI3A5T7XlpS3AVHrykR\r\nuvfs9hXcb7f0MeeQK0yMqXSAUiy7XXODoo8=\r\n=z7Fe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.13_1677313397913_0.1596944260431552"},"_hasShrinkwrap":false},"0.0.14-rc.1":{"name":"@unrevealed/react","version":"0.0.14-rc.1","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK for Unrevealed\n\nReact sdk for [Unrevealed](https://unrevealed.tech/).\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nAdd the provider at the root of your app. You can create a client key from your settings\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                  | Default value |\n| ------------- | ------ | ------------------------------------- | ------------- |\n| `clientKey`\\* | string | Generate the client key on Unrevealed | N/A           |\n\n### Identify\n\nYou can use `identify` to set the current user and team. You'll want to call it whenever the current user or the current team changes\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n**Reserved traits**\n\nThe following traits of the `user` object have special meaning to Unrevealed:\n`email`, `name`, `firstName`, `lastName`: Unrevealed will make these properties searchable if they are valid strings\n\nThe following traits of the `team` object have special meaning to Unrevealed:\n`name`: Unrevealed will make this property searchable if it's a valid string\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n- `loading` will be set to `true` while Unrevealed is fetching the enabled feature flags\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to see what your UI looks like when a feature is disabled. To avoid having to change your feature's state in the webapp, you can drop the feature toggler in your app.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.0.14-rc.1","_integrity":"sha512-OQ6AbAGSpZCza4JiK6KdzIrgCenLbWNa8aky/UY6BoGe4JQDloIrXmgwneOwHXRGlv6rq+5ertqRmXTEE3eEjg==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/c79118f6ce2e009a33d1af7a2f9b09d4/unrevealed-react-0.0.14-rc.1.tgz","_from":"file:unrevealed-react-0.0.14-rc.1.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-OQ6AbAGSpZCza4JiK6KdzIrgCenLbWNa8aky/UY6BoGe4JQDloIrXmgwneOwHXRGlv6rq+5ertqRmXTEE3eEjg==","shasum":"2a12f65684e9955e4306e6a8bc0a40227fd29bf2","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.14-rc.1.tgz","fileCount":28,"unpackedSize":47995,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDK3r9OM1qI0y2/Cqg08QMC7d6qHy2hKXVkR/RvtMmHjAiAkuuW9WGylqRC73fjnRDtppOpo9yAmpHAX0S/ompG+yg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD2DfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpcFg/9EHeghWvg8FRflqjFcFViAYcGPIvUWyKjblMldhWbpRVE3dDs\r\nZZVrVEIXk1nrihvmCtdFinetChzRVNsdgNGNAmzgHz9AuiGwwm4bdFjiC6DT\r\nTDnIr8vG8IKL5riEqhLXARUaHpY6ej/OjA3P+f8pmHxQoIhyR6xZ8GzUFVAM\r\nbTbc4jDBgJHGG2kbc4uwrBIjhCjhfHpol5mHhY5gK09GAOdonS1XStQFxGhc\r\nPMNeUTJzRNQqd9+/iPLMaXkNNBzRH8b6ZdLn3r+RM/sL3b9n8zk6jqWEMn03\r\nFVIBGnf2zsJ70aISUF8p57aKCwZN7kkI/uQ6JvJ90u493dZeZrYr4BcUD6l2\r\nbv5JjPK1lGjrdLwa3XunwmT19jMyMmJBFKZO6ajbEaPxrrMEwCrZ91mpk09y\r\ngm2F2zFaf0wWxQJa38qOO2pNrfPWZ6NIN75ACq7OPrRPpQyJuZfUcggwGNea\r\nuefUIZPqH9bYlVCGikSwJuz064kJRfIFYB7f36rfwEkburpXR7LLDf1DN3Mb\r\nhe93KC1QwVL6GKUhRFf6nxxJ3u61bgr80Bd4Fdf4m1u3g8E7fKr8xfjdvUsx\r\n0IqEDvOGzreBWIy23YR1NOVGdiKnkbu0UsQA3kK7FAfq4SQvaNPnrhY3ui58\r\nciMY97tXvTy6mszCGt+WdRsWpzfuZmgj6sw=\r\n=v0/u\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.14-rc.1_1678729439046_0.08507536786648995"},"_hasShrinkwrap":false},"0.0.14-rc.2":{"name":"@unrevealed/react","version":"0.0.14-rc.2","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK for Unrevealed\n\nReact sdk for [Unrevealed](https://unrevealed.tech/).\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nAdd the provider at the root of your app. You can create a client key from your settings\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                  | Default value |\n| ------------- | ------ | ------------------------------------- | ------------- |\n| `clientKey`\\* | string | Generate the client key on Unrevealed | N/A           |\n\n### Identify\n\nYou can use `identify` to set the current user and team. You'll want to call it whenever the current user or the current team changes\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n**Reserved traits**\n\nThe following traits of the `user` object have special meaning to Unrevealed:\n`email`, `name`, `firstName`, `lastName`: Unrevealed will make these properties searchable if they are valid strings\n\nThe following traits of the `team` object have special meaning to Unrevealed:\n`name`: Unrevealed will make this property searchable if it's a valid string\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n- `loading` will be set to `true` while Unrevealed is fetching the enabled feature flags\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to see what your UI looks like when a feature is disabled. To avoid having to change your feature's state in the webapp, you can drop the feature toggler in your app.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.0.14-rc.2","_integrity":"sha512-Jk680PKAQrWczcZNYHGlbdKeZMBLgAGef/yskHL1ljmyVMl3HyI6F4JG84QLiSJeRHtMzfRdFjT7zIxzm95+8Q==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/5fc754c91844ec1bd3c75df045006d60/unrevealed-react-0.0.14-rc.2.tgz","_from":"file:unrevealed-react-0.0.14-rc.2.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Jk680PKAQrWczcZNYHGlbdKeZMBLgAGef/yskHL1ljmyVMl3HyI6F4JG84QLiSJeRHtMzfRdFjT7zIxzm95+8Q==","shasum":"4112d00c68adcef62fbd6fd00f09db7a3857e790","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.14-rc.2.tgz","fileCount":27,"unpackedSize":47421,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCq1XtOeJ59GjyrIC1LsJtYBobHLbhUWpMMSvYOYxotJwIhALc/Zpu/RM6eJCM8/gqKFa/TyObPzdqxwRBupjCkYYcw"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD2WsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrxEQ//V2x5dENRLqqeytLyaSTfvbsycLPc3wZlsxsoTOZHCSN61Xp+\r\naU9akFERZUNPUhn92KhoS+n8Uwt+CUJ90LugMmttFJTXcGQmNvlhCFdyLtp2\r\n2NcG6BCGXjkDR/wGSAhwSQ554VK2PmPfuJsqvBTMYw8TjVL6+hVoswJee1mZ\r\nu6dM24N6cLvo3y5gGwZEGILRSXi9kb0o/JPp2ulWcFwvaGgfFXm9ZyqqZtho\r\nfh4vKM1sxzyTMjChmhbmNA2qhMo9ZkspTYEwbVcmtohzEbXHbd2MtCyb5kiH\r\noZ0QJfGMmcJhMnJQPsLBAuXe00ez1krB3t/N5ibXwKmqgS1rmnZzZbnyxD+v\r\nTYr4xEhT4eDBa22B6N759NNRG1syE81HBUNbtehWSWUr1Rt6pnwCk4QBbjZF\r\nzq59msgWAZakUkuCNd4HX8jSCmfJd2WaFQnNoyiuahGnCx0OF0uWg7asCMYZ\r\n9ltXQusXwgvyb0iIT/55RrREQGjgHMNHTWYicbsXozDu1r71YlQ94v9+OW3G\r\nA1rsxBSnr3WHQxIyhsPhWKSVFQSh/fX6rjkNojp0WF3jPmPLbilN5S1pkm2V\r\nqabIH9rP3OQHxwpiSfSXICNzHhZdFOLPyTHEcgp0mTv23QoIi9TE5aZETdIT\r\n1g5Xts+7rFdiYxAY02Jryyh5bAmpnl15vPA=\r\n=6mgh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.14-rc.2_1678730668458_0.7833833169598203"},"_hasShrinkwrap":false},"0.0.14":{"name":"@unrevealed/react","version":"0.0.14","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.14","_integrity":"sha512-xKy1TBeRVWauYftM9jJHstsjugy76JDyCkrYGKII7yATQgMq1cyNIiAIDoXCBV6jBwdd8z5jO2OOnnLiITqVug==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/0bca8de93082f2c01fff6786f2427d7a/unrevealed-react-0.0.14.tgz","_from":"file:unrevealed-react-0.0.14.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-xKy1TBeRVWauYftM9jJHstsjugy76JDyCkrYGKII7yATQgMq1cyNIiAIDoXCBV6jBwdd8z5jO2OOnnLiITqVug==","shasum":"bfad6deb8461307cd18cf881cc21d8c3f87c62c5","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.14.tgz","fileCount":27,"unpackedSize":47416,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBlOywQTaKriuDzwW+7MGWEdvdBFlUel+ilLoxJM/UalAiBZKyGpJp7CGlUtvfy6h9BDqbakQFeA2wSrt9i/Utl/Dw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEHLgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrLg//ePZbAZC5AMKu1nnyCDZ4AzYPLx1a7xu6eEGsAjMI1BtwnVVw\r\nQZGI3EYPAV/sbgA1na34PfzBR0LRDYhNvjazC437WozDAC+NMcxwGJyI9VoF\r\nBnxqHl+YBZmBytvOMk763Wc0S/w/7qZ+pSZkn1oGuoA6lLg8zvBwt+8zORh3\r\nN04GC6eDEgEZuyaIK3BIxB4V72Bev+F3RSKFeyGy1Y2Yih78cntBkUTtFJu+\r\n1vOTXDZcesejBFvOfi4Me/zw+CvtUmSUfKz+Fz9IKbNzcHDUmg37XoDRfCvC\r\ntbOFKfTUSZpagsnHOCfLvI2JVl1tA0lwGTo6aRyzM2WSFbrQ/QEUokc5JDv/\r\ngxw5pQwsAmf3Zy+vx2SFw+OgrFPEp0PvjPfEhXkB/ylZu/tNEIr/MRyJ2kvM\r\nCxP2b0lQXURJhprfT0rGhI+sc0WIp6GhyvXMhdDkug/FtpNBWngBrMbT5AGM\r\n/eBVUA7iS5aaUoUxyziG2rE4yR65RXHM6jQKsnwnaZScwQCIhIF1Wtulmq2V\r\nR41f9NoZhiOoHz5K+GzuVXD8qnMDrsLdIxbPi43t+IBAx2AnfPy/g7ptpy5U\r\nCDCm5J7dekXlXxTRyM6LbOpYopz2szRX5ZpYqY6ESjN/m66NorcIgJ2oUR4C\r\nP4ZSTNl2gcQeMSw01CUhqYCWqkVkW8jpMgE=\r\n=VbU2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.14_1678799584252_0.544451553644163"},"_hasShrinkwrap":false},"0.0.15-rc.1":{"name":"@unrevealed/react","version":"0.0.15-rc.1","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK for Unrevealed\n\nReact sdk for [Unrevealed](https://unrevealed.tech/).\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nAdd the provider at the root of your app. You can create a client key from your settings\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                  | Default value |\n| ------------- | ------ | ------------------------------------- | ------------- |\n| `clientKey`\\* | string | Generate the client key on Unrevealed | N/A           |\n\n### Identify\n\nYou can use `identify` to set the current user and team. You'll want to call it whenever the current user or the current team changes\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n**Reserved traits**\n\nThe following traits of the `user` object have special meaning to Unrevealed:\n`email`, `name`, `firstName`, `lastName`: Unrevealed will make these properties searchable if they are valid strings\n\nThe following traits of the `team` object have special meaning to Unrevealed:\n`name`: Unrevealed will make this property searchable if it's a valid string\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n- `loading` will be set to `true` while Unrevealed is fetching the enabled feature flags\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to see what your UI looks like when a feature is disabled. To avoid having to change your feature's state in the webapp, you can drop the feature toggler in your app.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.0.15-rc.1","_integrity":"sha512-jI+eLEM4jaGAUkFNL122/L7HQl9N8pliAOL4ax8a+q/PAAXbNjBunSZd3nCNpPouHPpcTo0Zh9oZoof6E2MdmQ==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/f6450f18bd20e6f0a53833d54a2cab05/unrevealed-react-0.0.15-rc.1.tgz","_from":"file:unrevealed-react-0.0.15-rc.1.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-jI+eLEM4jaGAUkFNL122/L7HQl9N8pliAOL4ax8a+q/PAAXbNjBunSZd3nCNpPouHPpcTo0Zh9oZoof6E2MdmQ==","shasum":"dc9a91c7cee55f6baee1baa5fcc63235a56cb7aa","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.15-rc.1.tgz","fileCount":27,"unpackedSize":47247,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDE60NsaIrIzlUpV5hWIJk2q3T61cTNCEp1tHv/kzR8zAiEAt0yeCSxxjzp7KxsXp1BO1x9g4igAwfCXyW1xh3wRhB4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEIt9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSfw/+J9nj1+HvtM8D7x0KzEz4tqO80pHDNtYbyT6mYn6lBSo0PiO9\r\nFr0WPaXd32+JWHA26SKlnTPSelaJvAtdMxwZab0JKkDhjoK8jsose2s+HZ2f\r\nWwMq+SqDJ5Z/ryaVsc5Io11j38s9loF71f+8z4JVJNmY0OkX25arQfB5+pQj\r\niH3PgQ5ki2n7+1+keE4ByuRh3f1mndH9tJ5vddeh2u/6fFK7b0f7KtcgDpyI\r\nl5c9ic0S8kcaShSoTjezawcxPPggbCBTEcWmhLEwxXle1pz05cASDK2t8hyu\r\nNvBL1KgfhSGfZmQlO7hihwW9pGcbTRUJWKomCAkbVbuq8xpHkJn4jj5Ka9Eo\r\nkxPeASV0aN4t3dY7ikVrEaE8QcAvwuvW3+etmavQ21OZ5stTTKmMdKgVc2nr\r\noMkUxugffwlHCiLhfZW/ImWxLLRCXBAbp6w59GpjYK8eurgQ0w+6pD/8vYb3\r\new0qamXl0xTX8viiyJwWkPnw7dLIf8NWHZGR9ycrAT3WcSDXyWQHhHCIHNVJ\r\npA2Fx+YapYc8cTuZfGn5y6M9XU9TSW4pn3kNmM6xgLksJGf5VOhYd7tE9N2g\r\nGxXoby7xybVJVWA6SDfEE2RyfL3bOan+2H+ydqY04o0eKNgpG4WxIWFacfEf\r\neNhi/hVL4BjgRNSh/xAGueOa3DA6EVGiXGQ=\r\n=Rw+D\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.15-rc.1_1678805884850_0.7400740305348243"},"_hasShrinkwrap":false},"0.0.15":{"name":"@unrevealed/react","version":"0.0.15","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/react.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/react/issues"},"homepage":"https://unrevealed.tech","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.15","_integrity":"sha512-I8kRE74ZGxg51b0phRdHlVu/jb0LPPPv8n7g+o0UoUf8PQ/qse+LwZoPkFtSf09iatgaU4YtPzUXhQNDhuR0kQ==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/b2b74cc6bdba28d9d46a758aafb85aa7/unrevealed-react-0.0.15.tgz","_from":"file:unrevealed-react-0.0.15.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-I8kRE74ZGxg51b0phRdHlVu/jb0LPPPv8n7g+o0UoUf8PQ/qse+LwZoPkFtSf09iatgaU4YtPzUXhQNDhuR0kQ==","shasum":"8fc14b313f21bc6482bc2c94d53e73ad9aa0c966","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.15.tgz","fileCount":27,"unpackedSize":47242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3oMt+wnajD7dHDha9ASDiJZe++k4o6vidNJ6GNQRSpAIgNInKbUTIOab4us6yHbQukBZyRFxP0X2/VOVzTpJTlEM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEJKVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqu5A//Z+yGtlrY5eIehWoZQb1YaZSMAdiymGUE4zMK0PgQjL/25Q7s\r\n97td58WC9a7QdQTmraE1xwpP9wAIL6E4id4SnLpyslM01SO8XH2MIoPiIEWl\r\nm/GcaiA3W1oQSyDs2yAC8wGcY+ZdAnrKjyRLvB2c4pVF6PTvfpEnl2O9Va5F\r\nsWWATWqhuwbGygGPdhr9i7Alv48RZuAZMMDO6WQWCm6WPXCUXFlIkG9DERhL\r\n1SQjSexFaKhfOAPck/1P2q8FV9UQl+XLitWSotj8KYJa4FpWG3pCsENZt1It\r\nbJHt1tZ2jNKqbCWK5tC4pV2TnVkfUKbs9AGUL2nvK/R6ELXiD1qVVJaqlT/7\r\nmuAefXpcbqpFNJszu3p+rfnbUqvNu6G1mKjg5VCL5wtimaQZwo5RLfxYQiQI\r\n9bobog3xI/Iwp91SP0S7JPd3vegCN5R4ONxSIU1Q8NZqVWwiJktIQBq1Qngm\r\nATvhjUO2On7MHT67Do5MHfYboLoU7F7aQysj2ASR+M34uGdXl8EG3b19vlCl\r\nxqJK+Ryly4odeBY2lcb+PWP2Meo4nOvCvEA1gcKwkZoE28SK+dCatnqH8Mw/\r\nVQoMow+hvt9ePhtQiTcg9Ia819o6hlZ4LfxB5LmKRwfO7ZfxolehxZLefR6f\r\nFC6IcADlWhFWpxlDZmFgnJ6CElp5nDfeCmo=\r\n=wzWD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.15_1678807700943_0.32237703312517896"},"_hasShrinkwrap":false},"0.0.16":{"name":"@unrevealed/react","version":"0.0.16","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.0.16","_integrity":"sha512-Z+oVzKnsHDnsZ3DTo1w8NEiT1eBAI5/0EWBGh39wrvPxMKpiPEWNr7vq43ge/yDg8BnXTfA+edLpO/4Jwi3nTA==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/d10c2201cda62dc7dabe7c4aea9edd89/unrevealed-react-0.0.16.tgz","_from":"file:unrevealed-react-0.0.16.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Z+oVzKnsHDnsZ3DTo1w8NEiT1eBAI5/0EWBGh39wrvPxMKpiPEWNr7vq43ge/yDg8BnXTfA+edLpO/4Jwi3nTA==","shasum":"101a0bdbcbadf773e9b7d928464cb3ca9be0af4d","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.0.16.tgz","fileCount":33,"unpackedSize":52294,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGid/6h3wjYqL7QuwZXWy9Vlc+DBpXNKNPa304F+vpwhAiEAgSWlnFYuyQHBe7OfLdlpXKIutYZJaCyUb9qdhRVR8a0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJa0hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmog/g//Wsz1p/s3aY6f/QeUuwJQxkGjigmeOzNA4uoIbw9JcjdUMvUZ\r\nwyv0guzLcmlUyLXo7p7Lr+wNK+tAGoq0ZDW1ITf3FDFcEwAVQJem+ZhfZ/ph\r\nQujJceBzToXAWRvZgP1MSnfvMcFpbz4xkdovhUY5ZDPX+MrQ76OcwT2EUayI\r\nVbbvV2nJKVrOAMFho5DfY9FYp2DoUcbBHsC5ofYzYm1UHTtoWQmyqTtNT1OS\r\nlQz53vWDBVClXBo5r2vlAAK9mfh62+Y0dig3nk7tvH4M2VS7flbnve8qmUVP\r\n9eGHQdBKvJ04XsZ08PkU31e3tCqsme4Oedv0QKHK/xjwZa4gzNRbeZKJl5Bc\r\n7a6G7cQPU/I/SGKfoQp7JcaH9YsrBdnPzcT0IRhCfrpM7kr5spvUD0RU+P5a\r\n5WVxu7Kv7yfj/NZSeguTodZcqHT5t0AfnFCQqPYuDzIldvkdZ/QKXgkCCK4H\r\n/DqtuWRroMfRpf52b0QxnsS2YAR+0wKNwKJ/ukewneReFOIrv99CyZucxCby\r\nNjrh8ILwXRb7S9aV8UDmkjp7bzsseyOoTW5hte82ZD04Yn7ewzBjKukyLRQC\r\ntaUVK5GRrwv2d1X7iPW7aFjpuaXhAfS4ZpyvrSWeBJkAZ32ygvraHdMVWLHb\r\nzlifx5qim/fCsa/O+9yujHgRyHCo1ArG6gY=\r\n=+cZE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.0.16_1680190752763_0.5708993009133561"},"_hasShrinkwrap":false},"0.1.0":{"name":"@unrevealed/react","version":"0.1.0","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.38.1","@typescript-eslint/parser":"^5.38.1","eslint":"^8.24.0","eslint-plugin-react":"^7.31.8","prettier":"^2.7.1","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.1.0","_integrity":"sha512-4RJFaoFhA9Zx4ojXZ0gXtnvFonIHS4cX/KOwa3ejVHgCH3A7INISf+/Y7jgVBzsSr8Tmrdd+BJruKJ3RpBSU0g==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/3f1f03c3b834dce890c1eb24d14e2cfe/unrevealed-react-0.1.0.tgz","_from":"file:unrevealed-react-0.1.0.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-4RJFaoFhA9Zx4ojXZ0gXtnvFonIHS4cX/KOwa3ejVHgCH3A7INISf+/Y7jgVBzsSr8Tmrdd+BJruKJ3RpBSU0g==","shasum":"f4365100a68f082242bca3adab90001859a6c3cf","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.1.0.tgz","fileCount":33,"unpackedSize":52684,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDlVkdEwynQs8sxtRGRTgY48EI+ZeylBSXo973InLmgQIhAI4D0VVqA0Th8zmmABLt4MFQjO3qYIQmwzNPPuniBOll"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRWf8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpBHQ//ZcLVSCIMFT68A3M3ySxHkdTUsNv+4bCHhZgpHdOQyTcj37ZA\r\nkPgKRN+oO3Qcz85wKb7v47tEN+H4rVsZxLTLxH8cC2yc125P8r/CxMezZsV+\r\ndw0AN7Q0LKsrG+T9+6FxpxpDFyQIcl3umLTKFShRT+xriZp7AqZG4Qhyo7Q8\r\nPQoABLpMYH6/Dddrl9n4lcCuQH8v2nblP+FSgMowZEe+P0TSZPKykjyEVK6g\r\ntyamTqYYbKISBkJJKief6wMuDcr+MRl//Hebdr8Fn4qguiyG/rsFDawIaFrG\r\naz7fBbOmZJq0/WQ0wPHivFL0UNhw8/PXZxEyTZuk22/NZdS3JSxnwSzHSK0N\r\nF0+nN5BJpK3UfR8RNBTQzm+O2spIz7dh1Fs9NcAzPHlNB9FJOZO5ZLS0BZur\r\nJP0RZpsnZNJDxFIElCt6R/tvizNNVcUveh8ILLoN9Xc9KqQPPFz81KL6o5Ug\r\nYmYCnu8W4+vGd6gwZ45jtXDnoxwFCExvttXTZ0G53Jz77lT8Ow/oq3H1p+fP\r\nj4VC0nEr4BNdIJK7HwgVVk01ltyk1QpPyZjzZUwpnlo11xzYPite96TM5Yog\r\nqJMC6c4jeREWyfmsUTksGHiPBGn3IqbpQ8yxH8JqbDK5Khpe0C7+y0/kQN0R\r\nkway0ltcobVgyor7wUO2RmCH3QIqWgfYVkA=\r\n=BGuL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.1.0_1682270204622_0.05291467340182665"},"_hasShrinkwrap":false},"0.1.1-rc.1":{"name":"@unrevealed/react","version":"0.1.1-rc.1","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK\n\nIntegrate Unrevealed in your front-end applications\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nThe first thing you need to do is add the Unrevealed provider at the root of your app. To generate a client key, go to the Api Keys menu in the app and create one. Select Client as the target SDK.\n\nYou should use different API keys for different environments.\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourApiKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                               |\n| ------------- | ------ | -------------------------------------------------- |\n| `clientKey`\\* | string | Generate an API key of type `Client` on Unrevealed |\n\n### Identify\n\nYou can use the `identify` function returned from the `useIdentify` hook to set the current user and team. Both are optional, but if your logged in user is part of an organization, or is currently in the context of a specific workspace of your app, we highly recommend you pass both.\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n    // you don't have to check this every time, but it can be useful if your users experience unwanted flickering in your app\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n### Type safety\n\nYou can make the `identify` function and `useFeature` hooks type safe by using the [code generator](/docs/code-generation), and defining the traits of your users and teams in the app.\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to check how the UI responds when a feature is disabled. You can do this without changing the feature's stage in the webapp, or changing your code, by using the Feature Toggler.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n<figure>\n  <img\n    src=\"https://docs.unrevealed.tech/img/docs/sdk/feature-toggler.gif\"\n    alt=\"Toggle feature on and off in development\"\n  />\n  <figcaption>Toggle feature on and off in development</figcaption>\n</figure>\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.1.1-rc.1","_integrity":"sha512-BoPEc5IoyQmVLp705lFe1hF/46XMIcpoetLOHSgYHNwFoh89elDMgzj+9Ne65MjcyKj1jcGGI7Xh1+uqI/h75g==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/5198ba32c4a9e238069d589d5980a321/unrevealed-react-0.1.1-rc.1.tgz","_from":"file:unrevealed-react-0.1.1-rc.1.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-BoPEc5IoyQmVLp705lFe1hF/46XMIcpoetLOHSgYHNwFoh89elDMgzj+9Ne65MjcyKj1jcGGI7Xh1+uqI/h75g==","shasum":"61d47aa6db34338c9f74b8efa8ba0bf88743c741","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.1.1-rc.1.tgz","fileCount":33,"unpackedSize":52525,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFQG0WbFR6+NTpFIcrHxys9d5lbIER84fCFKOej1dcsjAiEAr9u9wFgEm9sxVOvDbvAd9RLzdK1OkmqsA9he78KWrIg="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.1.1-rc.1_1689318123185_0.45741125315556963"},"_hasShrinkwrap":false},"0.1.1":{"name":"@unrevealed/react","version":"0.1.1","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.1.1","_integrity":"sha512-AMqyXUbK6H2AIQzTE3LmVnwsYjd5MY+j1k+Ru4A3jsVWoEY9sLyCgXWrB0QCxcJITvlcpkUwqW5QCDjcKBxA9w==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/53d0af1d0a19bc8c325bb201a984255f/unrevealed-react-0.1.1.tgz","_from":"file:unrevealed-react-0.1.1.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-AMqyXUbK6H2AIQzTE3LmVnwsYjd5MY+j1k+Ru4A3jsVWoEY9sLyCgXWrB0QCxcJITvlcpkUwqW5QCDjcKBxA9w==","shasum":"fd5ef6150713e984d871b58b21a24ef83998789e","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.1.1.tgz","fileCount":33,"unpackedSize":52700,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMGbzJUKnWjlzVUkgqVr+jo2CKsCK4ZytH0vgAXJ0qUAIgG/SX1ZVYcQdVMgaNuVPrOoNct3K+8B0mbwexKQ/RJIw="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.1.1_1689319320946_0.27010897569887926"},"_hasShrinkwrap":false},"0.2.0-rc.1":{"name":"@unrevealed/react","version":"0.2.0-rc.1","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK\n\nIntegrate Unrevealed in your front-end applications\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nThe first thing you need to do is add the Unrevealed provider at the root of your app. To generate a client key, go to the Api Keys menu in the app and create one. Select Client as the target SDK.\n\nYou should use different API keys for different environments.\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourApiKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                               |\n| ------------- | ------ | -------------------------------------------------- |\n| `clientKey`\\* | string | Generate an API key of type `Client` on Unrevealed |\n\n### Identify\n\nYou can use the `identify` function returned from the `useIdentify` hook to set the current user and team. Both are optional, but if your logged in user is part of an organization, or is currently in the context of a specific workspace of your app, we highly recommend you pass both.\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n    // you don't have to check this every time, but it can be useful if your users experience unwanted flickering in your app\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n### Type safety\n\nYou can make the `identify` function and `useFeature` hooks type safe by using the [code generator](/docs/code-generation), and defining the traits of your users and teams in the app.\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to check how the UI responds when a feature is disabled. You can do this without changing the feature's stage in the webapp, or changing your code, by using the Feature Toggler.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n<figure>\n  <img\n    src=\"https://docs.unrevealed.tech/img/docs/sdk/feature-toggler.gif\"\n    alt=\"Toggle feature on and off in development\"\n  />\n  <figcaption>Toggle feature on and off in development</figcaption>\n</figure>\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.2.0-rc.1","_integrity":"sha512-qlk6zOUo+7THMT4Jdl4H77oomkO2+lX8hqqsrSTdWTvm+osNh6RtP3qdQAZ7k5H0EEXf2aYyrW8904dHjEF52g==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/b5bfe27a59237c19e0a4af54f0156972/unrevealed-react-0.2.0-rc.1.tgz","_from":"file:unrevealed-react-0.2.0-rc.1.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-qlk6zOUo+7THMT4Jdl4H77oomkO2+lX8hqqsrSTdWTvm+osNh6RtP3qdQAZ7k5H0EEXf2aYyrW8904dHjEF52g==","shasum":"e597a4d9afe3da4a2a1d9f082932f4ff53f09321","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.2.0-rc.1.tgz","fileCount":35,"unpackedSize":53765,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgm9npQtuRt7jmqCy6Imuwo9m7QB3xn0R1BfeTfLW2TgIgOAQhT8WH+X63siMJMNO/16ly6jxkEcn6tQOjd5HuRAY="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.2.0-rc.1_1694725236955_0.6637370268513818"},"_hasShrinkwrap":false},"0.2.0-rc.2":{"name":"@unrevealed/react","version":"0.2.0-rc.2","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK\n\nIntegrate Unrevealed in your front-end applications\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nThe first thing you need to do is add the Unrevealed provider at the root of your app. To generate a client key, go to the Api Keys menu in the app and create one. Select Client as the target SDK.\n\nYou should use different API keys for different environments.\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourApiKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                               |\n| ------------- | ------ | -------------------------------------------------- |\n| `clientKey`\\* | string | Generate an API key of type `Client` on Unrevealed |\n\n### Identify\n\nYou can use the `identify` function returned from the `useIdentify` hook to set the current user and team. Both are optional, but if your logged in user is part of an organization, or is currently in the context of a specific workspace of your app, we highly recommend you pass both.\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n    // you don't have to check this every time, but it can be useful if your users experience unwanted flickering in your app\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n### Type safety\n\nYou can make the `identify` function and `useFeature` hooks type safe by using the [code generator](/docs/code-generation), and defining the traits of your users and teams in the app.\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to check how the UI responds when a feature is disabled. You can do this without changing the feature's stage in the webapp, or changing your code, by using the Feature Toggler.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n<figure>\n  <img\n    src=\"https://docs.unrevealed.tech/img/docs/sdk/feature-toggler.gif\"\n    alt=\"Toggle feature on and off in development\"\n  />\n  <figcaption>Toggle feature on and off in development</figcaption>\n</figure>\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.2.0-rc.2","_integrity":"sha512-CYqL0ZB8bPI9hicdhmaJfCl4aUMLxPiE38mNygmRP6uSSvwNEEcLBZfUwrV5DZxlsRqAkiIH0piG3bpZfTGG1A==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/1e1991b4cc001e6f2eec69161227ede9/unrevealed-react-0.2.0-rc.2.tgz","_from":"file:unrevealed-react-0.2.0-rc.2.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-CYqL0ZB8bPI9hicdhmaJfCl4aUMLxPiE38mNygmRP6uSSvwNEEcLBZfUwrV5DZxlsRqAkiIH0piG3bpZfTGG1A==","shasum":"186a111fb23bc27811f9fe49325b100626f88fc3","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.2.0-rc.2.tgz","fileCount":35,"unpackedSize":54508,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4eKYIb+9aZKg0PSRnvLgizF7Xz8oN6qI19u7zui46MgIgVaboPtAiBPiWjieuNDehzKQmWHRfjF29GQG0OkLq7GE="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.2.0-rc.2_1694725550485_0.018991966962988105"},"_hasShrinkwrap":false},"0.2.0-rc.3":{"name":"@unrevealed/react","version":"0.2.0-rc.3","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK\n\nIntegrate Unrevealed in your front-end applications\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nThe first thing you need to do is add the Unrevealed provider at the root of your app. To generate a client key, go to the Api Keys menu in the app and create one. Select Client as the target SDK.\n\nYou should use different API keys for different environments.\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourApiKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                               |\n| ------------- | ------ | -------------------------------------------------- |\n| `clientKey`\\* | string | Generate an API key of type `Client` on Unrevealed |\n\n### Identify\n\nYou can use the `identify` function returned from the `useIdentify` hook to set the current user and team. Both are optional, but if your logged in user is part of an organization, or is currently in the context of a specific workspace of your app, we highly recommend you pass both.\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n    // you don't have to check this every time, but it can be useful if your users experience unwanted flickering in your app\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n### Type safety\n\nYou can make the `identify` function and `useFeature` hooks type safe by using the [code generator](/docs/code-generation), and defining the traits of your users and teams in the app.\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to check how the UI responds when a feature is disabled. You can do this without changing the feature's stage in the webapp, or changing your code, by using the Feature Toggler.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n<figure>\n  <img\n    src=\"https://docs.unrevealed.tech/img/docs/sdk/feature-toggler.gif\"\n    alt=\"Toggle feature on and off in development\"\n  />\n  <figcaption>Toggle feature on and off in development</figcaption>\n</figure>\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.2.0-rc.3","_integrity":"sha512-wHptc7O36TF3qykUO/di06ifJUgKUT1dsgMoNRe8Vj+Djt3lpiiamrUjYjXEhTRDGC8o+AurI4T/wU2xY0qltQ==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/539a262d70e65f64979a873b8d67db60/unrevealed-react-0.2.0-rc.3.tgz","_from":"file:unrevealed-react-0.2.0-rc.3.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-wHptc7O36TF3qykUO/di06ifJUgKUT1dsgMoNRe8Vj+Djt3lpiiamrUjYjXEhTRDGC8o+AurI4T/wU2xY0qltQ==","shasum":"cd1d869e0f6809882b19d9c64494169ef1cd8fe3","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.2.0-rc.3.tgz","fileCount":36,"unpackedSize":56628,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG09VXrGobgmvdMZF5LG5PVPx1bQIOsqqoUPdtYcLaFwAiB4NjU4QsaqfH0MYrdpCG1/GVRcvRZqkQqfqqiyEEBLgQ=="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.2.0-rc.3_1694726802684_0.004815413025340831"},"_hasShrinkwrap":false},"0.2.0-rc.4":{"name":"@unrevealed/react","version":"0.2.0-rc.4","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK\n\nIntegrate Unrevealed in your front-end applications\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nThe first thing you need to do is add the Unrevealed provider at the root of your app. To generate a client key, go to the Api Keys menu in the app and create one. Select Client as the target SDK.\n\nYou should use different API keys for different environments.\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourApiKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                               |\n| ------------- | ------ | -------------------------------------------------- |\n| `clientKey`\\* | string | Generate an API key of type `Client` on Unrevealed |\n\n### Identify\n\nYou can use the `identify` function returned from the `useIdentify` hook to set the current user and team. Both are optional, but if your logged in user is part of an organization, or is currently in the context of a specific workspace of your app, we highly recommend you pass both.\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n    // you don't have to check this every time, but it can be useful if your users experience unwanted flickering in your app\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n### Type safety\n\nYou can make the `identify` function and `useFeature` hooks type safe by using the [code generator](/docs/code-generation), and defining the traits of your users and teams in the app.\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to check how the UI responds when a feature is disabled. You can do this without changing the feature's stage in the webapp, or changing your code, by using the Feature Toggler.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n<figure>\n  <img\n    src=\"https://docs.unrevealed.tech/img/docs/sdk/feature-toggler.gif\"\n    alt=\"Toggle feature on and off in development\"\n  />\n  <figcaption>Toggle feature on and off in development</figcaption>\n</figure>\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.2.0-rc.4","_integrity":"sha512-jSAK8sWVOOjsFUZPsx56xcfhbZ2gRgZOEELbKxU9JYZldrkjnMs5ZTWgpc19iX24Y6V/VpRZ7c0FphTEDZRf4A==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/dd14f751697bf877e80ca956ea0931bd/unrevealed-react-0.2.0-rc.4.tgz","_from":"file:unrevealed-react-0.2.0-rc.4.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-jSAK8sWVOOjsFUZPsx56xcfhbZ2gRgZOEELbKxU9JYZldrkjnMs5ZTWgpc19iX24Y6V/VpRZ7c0FphTEDZRf4A==","shasum":"fd078bab74dafa8d8297dd98a3780f510abf6221","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.2.0-rc.4.tgz","fileCount":36,"unpackedSize":56649,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA/SsSMsYTBR9F74f63K01Yudn5obMQFAMNZecQXnWvFAiBGmDx/pL8IUGYm4M3lxrdxFJrKJShd4b15TQQYxDGnOA=="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.2.0-rc.4_1694726946943_0.9804694386569848"},"_hasShrinkwrap":false},"0.2.0-rc.5":{"name":"@unrevealed/react","version":"0.2.0-rc.5","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK\n\nIntegrate Unrevealed in your front-end applications\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nThe first thing you need to do is add the Unrevealed provider at the root of your app. To generate a client key, go to the Api Keys menu in the app and create one. Select Client as the target SDK.\n\nYou should use different API keys for different environments.\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourApiKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                               |\n| ------------- | ------ | -------------------------------------------------- |\n| `clientKey`\\* | string | Generate an API key of type `Client` on Unrevealed |\n\n### Identify\n\nYou can use the `identify` function returned from the `useIdentify` hook to set the current user and team. Both are optional, but if your logged in user is part of an organization, or is currently in the context of a specific workspace of your app, we highly recommend you pass both.\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n    // you don't have to check this every time, but it can be useful if your users experience unwanted flickering in your app\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n### Type safety\n\nYou can make the `identify` function and `useFeature` hooks type safe by using the [code generator](/docs/code-generation), and defining the traits of your users and teams in the app.\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to check how the UI responds when a feature is disabled. You can do this without changing the feature's stage in the webapp, or changing your code, by using the Feature Toggler.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n<figure>\n  <img\n    src=\"https://docs.unrevealed.tech/img/docs/sdk/feature-toggler.gif\"\n    alt=\"Toggle feature on and off in development\"\n  />\n  <figcaption>Toggle feature on and off in development</figcaption>\n</figure>\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.2.0-rc.5","_integrity":"sha512-AcBndhrgnrZrs9wMiBcnAgec97TWhKJE1nDREcrEWoQjm1MzvhK8KP3wBKnhj/p7jVCG13gzxL+JdM4U2JrrwA==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/d24e340408051a340f26be49e1dca619/unrevealed-react-0.2.0-rc.5.tgz","_from":"file:unrevealed-react-0.2.0-rc.5.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-AcBndhrgnrZrs9wMiBcnAgec97TWhKJE1nDREcrEWoQjm1MzvhK8KP3wBKnhj/p7jVCG13gzxL+JdM4U2JrrwA==","shasum":"c3d4b3016f40340a80f3731dd41f3956bcbf7d57","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.2.0-rc.5.tgz","fileCount":36,"unpackedSize":56782,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE6SQAoTeWhkYixyuX8yEjfWw3B8DqPuI2pawkk7MCDuAiEA84Eu+gQSCz7S66QWjBKFOJ/IZyOUr/8ee4I9aK9YIts="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.2.0-rc.5_1694727319674_0.43632678907401456"},"_hasShrinkwrap":false},"0.2.0-rc.6":{"name":"@unrevealed/react","version":"0.2.0-rc.6","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK\n\nIntegrate Unrevealed in your front-end applications\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nThe first thing you need to do is add the Unrevealed provider at the root of your app. To generate a client key, go to the Api Keys menu in the app and create one. Select Client as the target SDK.\n\nYou should use different API keys for different environments.\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourApiKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                               |\n| ------------- | ------ | -------------------------------------------------- |\n| `clientKey`\\* | string | Generate an API key of type `Client` on Unrevealed |\n\n### Identify\n\nYou can use the `identify` function returned from the `useIdentify` hook to set the current user and team. Both are optional, but if your logged in user is part of an organization, or is currently in the context of a specific workspace of your app, we highly recommend you pass both.\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n    // you don't have to check this every time, but it can be useful if your users experience unwanted flickering in your app\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n### Type safety\n\nYou can make the `identify` function and `useFeature` hooks type safe by using the [code generator](/docs/code-generation), and defining the traits of your users and teams in the app.\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to check how the UI responds when a feature is disabled. You can do this without changing the feature's stage in the webapp, or changing your code, by using the Feature Toggler.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n<figure>\n  <img\n    src=\"https://docs.unrevealed.tech/img/docs/sdk/feature-toggler.gif\"\n    alt=\"Toggle feature on and off in development\"\n  />\n  <figcaption>Toggle feature on and off in development</figcaption>\n</figure>\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.2.0-rc.6","_integrity":"sha512-f9NsoEuMfmwbAph/sArdJAuF1ih5V+bPNIXuStJgDay17VwDLfIo3/i0m7sK69FVQCIoPPo1iSgeqy/0afOSgA==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/8fa6fbdf7d83053c4c61da7c5fd18c80/unrevealed-react-0.2.0-rc.6.tgz","_from":"file:unrevealed-react-0.2.0-rc.6.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-f9NsoEuMfmwbAph/sArdJAuF1ih5V+bPNIXuStJgDay17VwDLfIo3/i0m7sK69FVQCIoPPo1iSgeqy/0afOSgA==","shasum":"1e416774cd77399856f8a645bcb966633b6c1721","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.2.0-rc.6.tgz","fileCount":36,"unpackedSize":56863,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9zhLf+HtmGtAas6DqNICfsrkw8cC6VHeWv7qs/UyB7AIgbw5c/n4if6GX8dVQTrgQ0n1D42M/4Kw618LI313DccQ="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.2.0-rc.6_1694727548233_0.628605861285142"},"_hasShrinkwrap":false},"0.2.0-rc.7":{"name":"@unrevealed/react","version":"0.2.0-rc.7","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK\n\nIntegrate Unrevealed in your front-end applications\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nThe first thing you need to do is add the Unrevealed provider at the root of your app. To generate a client key, go to the Api Keys menu in the app and create one. Select Client as the target SDK.\n\nYou should use different API keys for different environments.\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourApiKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                               |\n| ------------- | ------ | -------------------------------------------------- |\n| `clientKey`\\* | string | Generate an API key of type `Client` on Unrevealed |\n\n### Identify\n\nYou can use the `identify` function returned from the `useIdentify` hook to set the current user and team. Both are optional, but if your logged in user is part of an organization, or is currently in the context of a specific workspace of your app, we highly recommend you pass both.\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n    // you don't have to check this every time, but it can be useful if your users experience unwanted flickering in your app\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n### Type safety\n\nYou can make the `identify` function and `useFeature` hooks type safe by using the [code generator](/docs/code-generation), and defining the traits of your users and teams in the app.\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to check how the UI responds when a feature is disabled. You can do this without changing the feature's stage in the webapp, or changing your code, by using the Feature Toggler.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n<figure>\n  <img\n    src=\"https://docs.unrevealed.tech/img/docs/sdk/feature-toggler.gif\"\n    alt=\"Toggle feature on and off in development\"\n  />\n  <figcaption>Toggle feature on and off in development</figcaption>\n</figure>\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.2.0-rc.7","_integrity":"sha512-AUzHpyrMEeYr+Rp4flD514nOmBC3ctvB6KK1RYUGN3ntPK9h25fn+hP7JHJtRBd83Rw+Mfae+x0tNZeuesHWpQ==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/4e83822cd693e7e9685f348390001b19/unrevealed-react-0.2.0-rc.7.tgz","_from":"file:unrevealed-react-0.2.0-rc.7.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-AUzHpyrMEeYr+Rp4flD514nOmBC3ctvB6KK1RYUGN3ntPK9h25fn+hP7JHJtRBd83Rw+Mfae+x0tNZeuesHWpQ==","shasum":"0ed00389f2e58984066f85eb393d5f273cfb531d","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.2.0-rc.7.tgz","fileCount":36,"unpackedSize":56296,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMJpDiOUKMctlA/RRxhsHlMgR9ZROdgJH6qLm3g8bhhQIgUsVIvvc8IOloLDe0iTkctp5yfxhvs7L7PgNCozmgBiE="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.2.0-rc.7_1694728139768_0.045139698831175856"},"_hasShrinkwrap":false},"0.2.0-rc.8":{"name":"@unrevealed/react","version":"0.2.0-rc.8","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK\n\nIntegrate Unrevealed in your front-end applications\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nThe first thing you need to do is add the Unrevealed provider at the root of your app. To generate a client key, go to the Api Keys menu in the app and create one. Select Client as the target SDK.\n\nYou should use different API keys for different environments.\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourApiKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                               |\n| ------------- | ------ | -------------------------------------------------- |\n| `clientKey`\\* | string | Generate an API key of type `Client` on Unrevealed |\n\n### Identify\n\nYou can use the `identify` function returned from the `useIdentify` hook to set the current user and team. Both are optional, but if your logged in user is part of an organization, or is currently in the context of a specific workspace of your app, we highly recommend you pass both.\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n    // you don't have to check this every time, but it can be useful if your users experience unwanted flickering in your app\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n### Type safety\n\nYou can make the `identify` function and `useFeature` hooks type safe by using the [code generator](/docs/code-generation), and defining the traits of your users and teams in the app.\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to check how the UI responds when a feature is disabled. You can do this without changing the feature's stage in the webapp, or changing your code, by using the Feature Toggler.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n<figure>\n  <img\n    src=\"https://docs.unrevealed.tech/img/docs/sdk/feature-toggler.gif\"\n    alt=\"Toggle feature on and off in development\"\n  />\n  <figcaption>Toggle feature on and off in development</figcaption>\n</figure>\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.2.0-rc.8","_integrity":"sha512-V1QBAbsG8/ZL7CxZ49aodN6eOZwdmIy281QgSe0uPRg+VsnJU/UZOKN6KglLSbtbxVF6DJLbMcNenr2MHY1TyA==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/784e0453e5f02736e534774f11959087/unrevealed-react-0.2.0-rc.8.tgz","_from":"file:unrevealed-react-0.2.0-rc.8.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-V1QBAbsG8/ZL7CxZ49aodN6eOZwdmIy281QgSe0uPRg+VsnJU/UZOKN6KglLSbtbxVF6DJLbMcNenr2MHY1TyA==","shasum":"4e4d49af6038189af05287355b77c3ad8ec1343c","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.2.0-rc.8.tgz","fileCount":36,"unpackedSize":56547,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGhnw0fKnOIPJwmYO3sz8VFo2a0o0SxXGwmqXxW89Z3FAiBFRWrlXXIdNycQllSbv2EDjoJv3QYPFpCHywjBgPolhQ=="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.2.0-rc.8_1694728535688_0.48046186106575894"},"_hasShrinkwrap":false},"0.2.0":{"name":"@unrevealed/react","version":"0.2.0","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.2.0","_integrity":"sha512-yLms67YW2Kv2TuyCudWJrDfXNQuJi90U8cDjH1VveFRsftcMIktHoF3gYEf2G11Y5ZNBfjSwOeqYRaOtyKYOlQ==","_resolved":"/private/var/folders/h_/z499vmf91kzgcpf3wwpxrnzc0000gn/T/9f1d99466e71868aafe0de89e609a28e/unrevealed-react-0.2.0.tgz","_from":"file:unrevealed-react-0.2.0.tgz","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-yLms67YW2Kv2TuyCudWJrDfXNQuJi90U8cDjH1VveFRsftcMIktHoF3gYEf2G11Y5ZNBfjSwOeqYRaOtyKYOlQ==","shasum":"8875787dd05dca69f98f47cab805c237a0253b25","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.2.0.tgz","fileCount":36,"unpackedSize":56542,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFpD0+fwESA2ti7hhJGQgpO3kEz78SsN4QvyVb+LXq3wAiB9811XatyQ4atKPoEss/beHX46d8QIlK73Q7mAExVIcQ=="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.2.0_1694728628723_0.6693771511190554"},"_hasShrinkwrap":false},"0.3.0-rc.1":{"name":"@unrevealed/react","version":"0.3.0-rc.1","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK\n\nIntegrate Unrevealed in your front-end applications\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nThe first thing you need to do is add the Unrevealed provider at the root of your app. To generate a client key, go to the Api Keys menu in the app and create one. Select Client as the target SDK.\n\nYou should use different API keys for different environments.\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourApiKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                               |\n| ------------- | ------ | -------------------------------------------------- |\n| `clientKey`\\* | string | Generate an API key of type `Client` on Unrevealed |\n\n### Identify\n\nYou can use the `identify` function returned from the `useIdentify` hook to set the current user and team. Both are optional, but if your logged in user is part of an organization, or is currently in the context of a specific workspace of your app, we highly recommend you pass both.\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n    // you don't have to check this every time, but it can be useful if your users experience unwanted flickering in your app\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n### Type safety\n\nYou can make the `identify` function and `useFeature` hooks type safe by using the [code generator](/docs/code-generation), and defining the traits of your users and teams in the app.\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to check how the UI responds when a feature is disabled. You can do this without changing the feature's stage in the webapp, or changing your code, by using the Feature Toggler.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n<figure>\n  <img\n    src=\"https://docs.unrevealed.tech/img/docs/sdk/feature-toggler.gif\"\n    alt=\"Toggle feature on and off in development\"\n  />\n  <figcaption>Toggle feature on and off in development</figcaption>\n</figure>\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.3.0-rc.1","_integrity":"sha512-eU0kUnRzFFXRHozwMHe4WjKpjAksfvhSFGn7BrLh1biSIXQMkwyYv+Y0AuAYM6BY68kP/cgJ4JE4pirEC2HC6A==","_resolved":"/private/var/folders/dx/r9_mgl11691bwtqztzldm8rw0000gn/T/95afa68989392072cf6be2b2cec2705e/unrevealed-react-0.3.0-rc.1.tgz","_from":"file:unrevealed-react-0.3.0-rc.1.tgz","_nodeVersion":"18.18.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-eU0kUnRzFFXRHozwMHe4WjKpjAksfvhSFGn7BrLh1biSIXQMkwyYv+Y0AuAYM6BY68kP/cgJ4JE4pirEC2HC6A==","shasum":"8e20f467ab5f321f261111b972a5d3c679d4089a","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.3.0-rc.1.tgz","fileCount":34,"unpackedSize":60658,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUsC2r2xDyNwXY/7tfslqQa0fY3NJu0urrlIUz7gnuHAIgSZI5hmKi/inxPUv2k9ftq95Xi5F72URCaHzgsq8uzU4="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.3.0-rc.1_1697267324894_0.671075469195878"},"_hasShrinkwrap":false},"0.3.0-rc.2":{"name":"@unrevealed/react","version":"0.3.0-rc.2","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","readme":"# React SDK\n\nIntegrate Unrevealed in your front-end applications\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nThe first thing you need to do is add the Unrevealed provider at the root of your app. To generate a client key, go to the Api Keys menu in the app and create one. Select Client as the target SDK.\n\nYou should use different API keys for different environments.\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourApiKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                               |\n| ------------- | ------ | -------------------------------------------------- |\n| `clientKey`\\* | string | Generate an API key of type `Client` on Unrevealed |\n\n### Identify\n\nYou can use the `identify` function returned from the `useIdentify` hook to set the current user and team. Both are optional, but if your logged in user is part of an organization, or is currently in the context of a specific workspace of your app, we highly recommend you pass both.\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n    // you don't have to check this every time, but it can be useful if your users experience unwanted flickering in your app\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n### Type safety\n\nYou can make the `identify` function and `useFeature` hooks type safe by using the [code generator](/docs/code-generation), and defining the traits of your users and teams in the app.\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to check how the UI responds when a feature is disabled. You can do this without changing the feature's stage in the webapp, or changing your code, by using the Feature Toggler.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n<figure>\n  <img\n    src=\"https://docs.unrevealed.tech/img/docs/sdk/feature-toggler.gif\"\n    alt=\"Toggle feature on and off in development\"\n  />\n  <figcaption>Toggle feature on and off in development</figcaption>\n</figure>\n","readmeFilename":"README.md","_id":"@unrevealed/react@0.3.0-rc.2","_integrity":"sha512-pT93FqUSDWMhuYwkzfqgWY+NWLp/IVcOk2ObIemYKFDTPNxLn+bEU2KNhK3KWSKPPCQx6i8BWOp8E1POCTVZ5g==","_resolved":"/private/var/folders/dx/r9_mgl11691bwtqztzldm8rw0000gn/T/52b9abd1e363147b560ba63a1c8d48f1/unrevealed-react-0.3.0-rc.2.tgz","_from":"file:unrevealed-react-0.3.0-rc.2.tgz","_nodeVersion":"18.18.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-pT93FqUSDWMhuYwkzfqgWY+NWLp/IVcOk2ObIemYKFDTPNxLn+bEU2KNhK3KWSKPPCQx6i8BWOp8E1POCTVZ5g==","shasum":"2b39b0863ca67972dc173691acd881dd96590f41","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.3.0-rc.2.tgz","fileCount":34,"unpackedSize":60666,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8bN+jHsh3CMyAsF1m7HnAxiOfU+owT95N16JmWSJU1AIgCr5nMwuxiqP6tZZuO+cMwhKwAYNPzvgPUpQ8cyDLcE4="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.3.0-rc.2_1697267809733_0.7540883925453512"},"_hasShrinkwrap":false},"0.3.0":{"name":"@unrevealed/react","version":"0.3.0","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.3.0","_integrity":"sha512-Qy/5kLQ+wl5REYlcOU4tnjQcqiQGgKA7+gEYY+oWgSOpkITdFCA3xCSbZUF0H5YM1A9/pZjxjrd8R92J2mkw7g==","_resolved":"/private/var/folders/dx/r9_mgl11691bwtqztzldm8rw0000gn/T/5dd74cc167117704d344f2d9af53e3c9/unrevealed-react-0.3.0.tgz","_from":"file:unrevealed-react-0.3.0.tgz","_nodeVersion":"18.18.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-Qy/5kLQ+wl5REYlcOU4tnjQcqiQGgKA7+gEYY+oWgSOpkITdFCA3xCSbZUF0H5YM1A9/pZjxjrd8R92J2mkw7g==","shasum":"aa4c44ec1e027f2ed645c7adff8b0fe1ad773293","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.3.0.tgz","fileCount":34,"unpackedSize":60661,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHwgRsP13UenTAwjL/rLgz6GGUIlz9JjXy5pGb7v0i6yAiEAzTBncXR74TDO01CvIgtLErC+eEqQIlO8HTDerPoTMQE="}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.3.0_1697267966805_0.48971986800715706"},"_hasShrinkwrap":false},"0.3.1":{"name":"@unrevealed/react","version":"0.3.1","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.3.1","_integrity":"sha512-Eu3axvFmJirrhWgbSCkt+4C79rOpLDbFT+6XAqwadehWouOx9PQdu8xkldcL+1pHd6JFRZ49jZESNzWzM6Gi6w==","_resolved":"/private/var/folders/dx/r9_mgl11691bwtqztzldm8rw0000gn/T/ece587be919a2dd2442f56144e28d776/unrevealed-react-0.3.1.tgz","_from":"file:unrevealed-react-0.3.1.tgz","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-Eu3axvFmJirrhWgbSCkt+4C79rOpLDbFT+6XAqwadehWouOx9PQdu8xkldcL+1pHd6JFRZ49jZESNzWzM6Gi6w==","shasum":"f637b337ba5d22783fa895363f1e3377ac6f2a36","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.3.1.tgz","fileCount":34,"unpackedSize":61666,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2odAjF3a+jJzAc0IXUPC+Vpv6OmNKKTlKfBKc1ehe8gIhAPQaggvJjdf6hqX8sM9uRMzxhdKSudQGEzD/MacKeTt3"}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.3.1_1701263820631_0.5528741601742715"},"_hasShrinkwrap":false},"0.3.2":{"name":"@unrevealed/react","version":"0.3.2","description":"Unrevealed SDK for React","main":"dist/main.js","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"license":"MIT","bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"homepage":"https://docs.unrevealed.tech/docs/react","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"],"peerDependencies":{"react":">= 16.8"},"devDependencies":{"@rollup/plugin-typescript":"^8.5.0","@types/react":"^18.0.21","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.2","eslint":"^8.24.0","eslint-plugin-react":"^7.32.2","prettier":"^2.8.8","react":"^18.2.0","rollup":"^2.79.1","rollup-plugin-import-css":"^3.2.1","tslib":"^2.4.0","typescript":"^4.8.3"},"scripts":{"publish-canary":"pnpm publish --tag canary","publish-latest":"pnpm publish --tag latest","build":"rollup -c rollup.config.js","lint":"pnpm eslint src/"},"types":"./dist/main.d.ts","_id":"@unrevealed/react@0.3.2","_integrity":"sha512-ThVIXQ/b1qR6LZ5amP3TY+JJ63V/0MdOmmbxHb+eGjPmUTo/n7+EkIz3Y2pTe+vdu7g1LvT7kCh2QeLf9FiBTA==","_resolved":"/private/var/folders/dx/r9_mgl11691bwtqztzldm8rw0000gn/T/04ba4e5312b4f8001e1c4e30fc69fb4f/unrevealed-react-0.3.2.tgz","_from":"file:unrevealed-react-0.3.2.tgz","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-ThVIXQ/b1qR6LZ5amP3TY+JJ63V/0MdOmmbxHb+eGjPmUTo/n7+EkIz3Y2pTe+vdu7g1LvT7kCh2QeLf9FiBTA==","shasum":"cebd1fbd911f0f677c0fb19b24d7846fbe8bb39e","tarball":"https://registry.npmjs.org/@unrevealed/react/-/react-0.3.2.tgz","fileCount":36,"unpackedSize":63367,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH/+avzbDTexqVszB2NQBlR3kyYgPhZKK45XX8B7EnGgIhAKHEdfYq3zO94SbP+VnAwPdxuTQzfB7c77h7VXMOf4lC"}]},"_npmUser":{"name":"tgroutars","email":"tgroutars@gmail.com"},"directories":{},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_0.3.2_1701444051558_0.10341241893842623"},"_hasShrinkwrap":false}},"maintainers":[{"name":"tgroutars","email":"tgroutars@gmail.com"}],"description":"Unrevealed SDK for React","homepage":"https://docs.unrevealed.tech/docs/react","repository":{"type":"git","url":"git+https://github.com/unrevealedtech/unrevealed.git"},"author":{"name":"Unrevealed"},"bugs":{"url":"https://github.com/unrevealedtech/unrevealed/issues"},"license":"MIT","readme":"# React SDK\n\nIntegrate Unrevealed in your front-end applications\n\n## Getting Started\n\n```bash\nnpm install @unrevealed/react\n```\n\n```bash\nyarn add @unrevealed/react\n```\n\n```bash\npnpm install @unrevealed/react\n```\n\n## Usage\n\n### Provider\n\nThe first thing you need to do is add the Unrevealed provider at the root of your app. To generate a client key, go to the Api Keys menu in the app and create one. Select Client as the target SDK.\n\nYou should use different API keys for different environments.\n\n```tsx\nimport { UnrevealedProvider } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourApiKey}>\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n**Props**\n\n| Provider Prop | Type   | Note                                               |\n| ------------- | ------ | -------------------------------------------------- |\n| `clientKey`\\* | string | Generate an API key of type `Client` on Unrevealed |\n\n### Identify\n\nYou can use the `identify` function returned from the `useIdentify` hook to set the current user and team. Both are optional, but if your logged in user is part of an organization, or is currently in the context of a specific workspace of your app, we highly recommend you pass both.\n\n```tsx\nimport { useIdentify } from '@unrevealed/react';\n\nfunction Login() {\n  const { identify } = useIdentify();\n  // ...\n\n  const login = () => {\n    // ...\n    identify({\n      user: {\n        id: user.id,\n        traits: {\n          email: user.email,\n          name: user.name,\n          // ...\n        },\n      },\n      team: {\n        id: team.id,\n        traits: {\n          name: team.name,\n          plan: team.plan,\n          // ...\n        },\n      },\n    });\n  };\n}\n```\n\n### Checking if a feature is enabled\n\n```ts\nimport { useFeature } from '@unrevealed/react';\n\nfunction Component() {\n  const { enabled, loading } = useFeature('user-access');\n\n  if (loading) {\n    // sdk is loading features\n    // you don't have to check this every time, but it can be useful if your users experience unwanted flickering in your app\n  }\n\n  if (enabled) {\n    // feature is enabled for the current user\n  } else {\n    // feature is disabled\n  }\n}\n```\n\n### Type safety\n\nYou can make the `identify` function and `useFeature` hooks type safe by using the [code generator](/docs/code-generation), and defining the traits of your users and teams in the app.\n\n### Feature Toggler Widget\n\nWhen using Unrevealed in development, you might need to check how the UI responds when a feature is disabled. You can do this without changing the feature's stage in the webapp, or changing your code, by using the Feature Toggler.\n\n```tsx\nimport { UnrevealedProvider, FeatureToggler } from '@unrevealed/react';\n\nfunction App() {\n  return (\n    <UnrevealedProvider clientKey={yourClientKey}>\n      {process.env.NODE_ENV === 'development' && <FeatureToggler />}\n      <MainApp />\n    </UnrevealedProvider>\n  );\n}\n```\n\n<figure>\n  <img\n    src=\"https://docs.unrevealed.tech/img/docs/sdk/feature-toggler.gif\"\n    alt=\"Toggle feature on and off in development\"\n  />\n  <figcaption>Toggle feature on and off in development</figcaption>\n</figure>\n","readmeFilename":"README.md","keywords":["unrevealed","react","feature flag","feature toggle","feature switch","release"]}