{"_id":"@byteclaw/use-unique-id","_rev":"3-53a0f182fbb10c9933eee36e5c13385f","name":"@byteclaw/use-unique-id","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@byteclaw/use-unique-id","version":"1.0.0","description":"React hook to generate unique ids for your components","main":"dist/use-unique-id.js","module":"dist/use-unique-id.esm.js","unpkg":"dist/use-unique-id.umd.js","source":"src/index.ts","types":"dist/index.d.ts","typings":"dist/index.d.js","scripts":{"build":"microbundle build -o dist","prebuild":"rimraf dist","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","typecheck":"tsc --noEmit"},"peerDependencies":{"@types/react":"^16.9.11","react":"^16.12.0"},"devDependencies":{"@testing-library/react":"^9.3.2","react-dom":"^16.12.0"},"sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/byteclaw/hooks.git"},"keywords":["react","hooks","question","dialog","confirm","alert","notification","prompt"],"license":"MIT","bugs":{"url":"https://github.com/byteclaw/hooks/issues"},"homepage":"https://github.com/byteclaw/hooks/packages/use-unique-id#readme","contributors":[{"name":"Michal Kvasničák","url":"https://github.com/michalkvasnicak"},{"name":"Juraj Hríb","url":"https://github.com/jurajhrib"}],"publishConfig":{"access":"public"},"gitHead":"7d259fd7d780579fd2a158d96df4bb0da25b5fe7","_id":"@byteclaw/use-unique-id@1.0.0","_nodeVersion":"12.13.0","_npmVersion":"lerna/3.18.4/node@v12.13.0+x64 (darwin)","_npmUser":{"name":"michalkvasnicak","email":"michal.kvasnicak@gmail.com"},"dist":{"integrity":"sha512-TdZJAELQZS5xlXjATBbFkf9hKdYrJP6ZsoyuE3/AJvFxxKTK1Wp/DOoRJ4qn3RdsBXvblD4DmMSui+tQb1Q7dA==","shasum":"afb4caeee3eb923c1ea31c5c219de622aca401fd","tarball":"https://registry.npmjs.org/@byteclaw/use-unique-id/-/use-unique-id-1.0.0.tgz","fileCount":13,"unpackedSize":11684,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzocJCRA9TVsSAnZWagAA9D8P/RJptjcbaWYw6DsEDpCW\n4GNrv7ntfo8hiQm3WofnRiwxwYXjRLvYpSfEWJ/M/10kJa3MKVIXfJhZ0uPD\n/w7I6rRUfPpKUvQ3ekHuMA0OWteyd3M6dfLZfAAwEnfSNk7GHUfy4pql+aRk\nfZklVRG7XBTeZpdq/c3IeEU7KQhZ57Y2Bry3Abi5t5db/cwQGkTf7MyMKeu1\nPNJb6PlR0OCMtpPKAUNESyqXEm0bdUbogkPWI40ApB/hxdfj4Ub9LUmp/n5k\nwyUvGbpDmKHmAa73nLx28wRZJYYyAUighQExLI7NNdiuz9CMGjw0xyRwBqk4\nAXUVlPaNDGGQXSdIotbQIIg/hcx/nHI8WE9SnJzFR6wgNL65XNqCuRy0g5Hb\nY9DPBfgbWL/w8WnDDiOWSEeIVxrDtPESJ8aminYlgI9XOQtv5r8oiW8DEV8O\n/xETSprPKfdBdPL8xDq9OePV6SBYw9sJEc7FCe9BV5nYgj/Z98PKN1H2caG7\n4T2jLobfDRtUwQdfCpWYAR40F6IkJkcjnp6qEASGkFqZh4peYFVxukZ0QO8y\nlLmF17s71j9Gu7Vg6jDDGKR/ZV5/8i1dLyq3DjOrTl1PLfH20C/QahRrz9Hj\ntrofYxiJUbHr9kD81kkliCGKKGDILy7H4vr203gdPFsIRaJAcea3EwfrCs/8\n235y\r\n=DCOG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtB3wtsPDWB6Tv23fcGYuYPVRwvZYZtfUnVqL169pk1gIgFPs7rLwjRjrMX8u2Ut9SzYaZMEiitg8RQpeh+VCfTKw="}]},"maintainers":[{"name":"michalkvasnicak","email":"michal.kvasnicak@gmail.com"},{"name":"jurajhrib","email":"jurajhrib@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-unique-id_1.0.0_1573816072576_0.7592458026060378"},"_hasShrinkwrap":false},"1.0.1":{"name":"@byteclaw/use-unique-id","version":"1.0.1","description":"React hook to generate unique ids for your components","main":"dist/use-unique-id.js","module":"dist/use-unique-id.esm.js","unpkg":"dist/use-unique-id.umd.js","source":"src/index.ts","types":"dist/index.d.ts","typings":"dist/index.d.js","scripts":{"build":"microbundle build -o dist","prebuild":"rimraf dist","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","typecheck":"tsc --noEmit"},"peerDependencies":{"@types/react":"^16.9.11","react":"^16.12.0 || ^17.x"},"sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/byteclaw/hooks.git"},"keywords":["react","hooks","question","dialog","confirm","alert","notification","prompt"],"license":"MIT","bugs":{"url":"https://github.com/byteclaw/hooks/issues"},"homepage":"https://github.com/byteclaw/hooks/packages/use-unique-id#readme","contributors":[{"name":"Michal Kvasničák","url":"https://github.com/michalkvasnicak"},{"name":"Juraj Hríb","url":"https://github.com/jurajhrib"}],"publishConfig":{"access":"public"},"gitHead":"9a4673d3353b8ae334f377bc3aa1a4472d17b547","_id":"@byteclaw/use-unique-id@1.0.1","_nodeVersion":"12.20.0","_npmVersion":"lerna/3.21.0/node@v12.20.0+x64 (darwin)","dist":{"integrity":"sha512-+E81AxCwFCJroL1EWkC1X7e7+7BIpSGWGJo0y14MMb87smt+F0GaaMlPUzc4r9PcQ7VWYNQxxrF5/QRA0g3vBA==","shasum":"9fb204ca320b50407185f493224969570a047373","tarball":"https://registry.npmjs.org/@byteclaw/use-unique-id/-/use-unique-id-1.0.1.tgz","fileCount":14,"unpackedSize":11979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6eaSCRA9TVsSAnZWagAAhKMP/R1yhP50V3UVuvqEHtDD\nNwwXrqmODsosvrCVSQpTaqAnMSenma4gvfF6bsTiuREtlshgJhCRCZxd6mET\nbsx2Zkm88AqE/dRcPy3ZUhPe/rboybPE/2On1Bh5hDBZmI1JopHClp9aBITy\nXLW0pAg+STZcv9VDFUBBlGRXdxdOn6tNeSl+7MEe6E6EianGFVwlaBTgX1pw\nf9kG09hqQRtxrZvXWOBFwgxaAjo61q0R4dwcOFmepD5Hq8TnjK/OUfBeogB9\nUz8dWKxuaMCZelnrUsrU0DbWu+mvaEc6LrHV+7dteHHI2QHZ4faBEkCfe9sd\nRR+MG9ySfbh+g1oLVOVC6IJy2gW042bHw1eKOJjH6LbYn7LtsAcA89lUm6WH\nt/67WG9HbAyGU61F8O+YdNwDnYih+HmeEg+Z6ALUJFS2Y18SXo4tabqBGCXL\nD5xJRdvihKlbvhffUVbX+Tyao3xE6TKIXLdSoMDgw9vOItwsMHUd+OXHul90\nRGquknIJcdiN4S5DLyzyytaQIF/5ENLA2KJl3mcfk5WqCK+hbVMxBVcxUlcP\nzEknvUeSqaEEsbANNzcPHd7uG4+5N8HBqUBajqLR8Xxy2/SEBox9+79dSimB\nyjPgmo6KmI86X+o+WK6wxRbBf7Liio+5WyQqywciuguJ51TqUt5qdvRvYHBY\nNLoN\r\n=f1k0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAws+kaZ0ZhL2AlINLLKmZaEAHVEwOwQOSR1oRQhBRiJAiEA2aBlWijfJ5kwlagaBNmUih9IIy/wQa+mCfdGioYp0wI="}]},"_npmUser":{"name":"michalkvasnicak","email":"michal.kvasnicak@gmail.com"},"directories":{},"maintainers":[{"name":"jurajhrib","email":"jurajhrib@gmail.com"},{"name":"michalkvasnicak","email":"michal.kvasnicak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-unique-id_1.0.1_1609164434103_0.29201404007499443"},"_hasShrinkwrap":false},"1.0.2":{"name":"@byteclaw/use-unique-id","version":"1.0.2","description":"React hook to generate unique ids for your components","main":"dist/use-unique-id.js","module":"dist/use-unique-id.esm.js","unpkg":"dist/use-unique-id.umd.js","source":"src/index.ts","types":"dist/index.d.ts","typings":"dist/index.d.js","scripts":{"build":"microbundle build -o dist","prebuild":"rimraf dist","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","typecheck":"tsc --noEmit"},"peerDependencies":{"@types/react":"^16.9.11 || ^17.0.0","react":"^16.12.0 || ^17.x"},"sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/byteclaw/hooks.git"},"keywords":["react","hooks","question","dialog","confirm","alert","notification","prompt"],"license":"MIT","bugs":{"url":"https://github.com/byteclaw/hooks/issues"},"homepage":"https://github.com/Byteclaw/hooks/tree/master/packages/use-unique-id#readme","contributors":[{"name":"Michal Kvasničák","url":"https://github.com/michalkvasnicak"},{"name":"Juraj Hríb","url":"https://github.com/jurajhrib"}],"publishConfig":{"access":"public"},"gitHead":"bd08706851b765342eb00a3d8854d558b9017563","_id":"@byteclaw/use-unique-id@1.0.2","_nodeVersion":"12.21.0","_npmVersion":"lerna/4.0.0/node@v12.21.0+x64 (darwin)","dist":{"integrity":"sha512-77lUqTiNYf3AzH+IWNOoBAaLthrlLNYbftD14swUqZrajFlPDKqWypLLArPuJgynjoVDihQiadDj0BgnETdgqg==","shasum":"6e3b6360dfe61dbe51aa17967c6322ecb5fa4690","tarball":"https://registry.npmjs.org/@byteclaw/use-unique-id/-/use-unique-id-1.0.2.tgz","fileCount":13,"unpackedSize":11598,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgq1a/CRA9TVsSAnZWagAAyr8P/An4HTQHnyqhqAqiMvn3\n7+p+v4c97k31X8CgKQ7ZXiPdwYX4KuQof03WKkDt6FlhQdIL5d94UA4Mo3fx\n0Vk7fiy0PerPm/SJ/D8DuXRAVzlSgFQLLDHI9+LQCnySM6/gXLtpCUYK3SA9\nN5RN3wzBTlRV8ACGzmL6HtI7vZDiNoEoluKHDUJGg2TpjBU8Qzsepej7xYu5\n4+leLiwOpXE9gjfsvl8bipfSrXn3Nobh1uybX89y37rHmVvYeI5Rkg2OAtDM\nNcBtlL/6EqKdnPUzG3P+RsMmSk0sSeC6iYJxAvdeYPc3SvOK/4auKfllTj5o\nIIMrvT4cpYgM70E6TXlrQijfWsahQDtG5W7n67xKhqLVR/2a0clObB7IHxJw\n/KEIOi+Xg8oR/Eq9DPuSmgvZLDsTcaDcJrqxiH3nvn44f6TGOT0JECz5M3Ds\nsRcLJAy81149gCsYz2+CLC8xPkjCOVk746vo3N6JxOeXK45CCZlmsCUjk7aF\nXEoN6RukJdaJtv/I/jFhkAoVmINawLhxu7WXOB+pP6YbKKAuo+E5arHGBkmB\nETAIUDUBfVOKo7IjLe6uyi1F81ECiOPRwCp7gdYZWAuLaRs5Is/bVVIxe9zE\n9ecbQGkVWHYecCzsujNMk2YiI1ks9P6haPiei2BoXiaG0TERn5CyrEA77F6I\nGEzb\r\n=hjXa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrN0D16M104R7/715EgfQXQ2t7EytBo+WySMn3vViyCQIhAL2uh0i8dZPJ5Ud21VUsCNaBlFXL7pEixjVPgVw/DG+L"}]},"_npmUser":{"name":"michalkvasnicak","email":"michal.kvasnicak@gmail.com"},"directories":{},"maintainers":[{"name":"jurajhrib","email":"jurajhrib@gmail.com"},{"name":"michalkvasnicak","email":"michal.kvasnicak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-unique-id_1.0.2_1621841598897_0.14823524577687253"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-15T11:07:52.373Z","1.0.0":"2019-11-15T11:07:52.748Z","modified":"2022-04-04T21:21:31.082Z","1.0.1":"2020-12-28T14:07:14.274Z","1.0.2":"2021-05-24T07:33:19.057Z"},"maintainers":[{"name":"jurajhrib","email":"jurajhrib@gmail.com"},{"name":"michalkvasnicak","email":"michal.kvasnicak@gmail.com"}],"description":"React hook to generate unique ids for your components","homepage":"https://github.com/Byteclaw/hooks/tree/master/packages/use-unique-id#readme","keywords":["react","hooks","question","dialog","confirm","alert","notification","prompt"],"repository":{"type":"git","url":"git+https://github.com/byteclaw/hooks.git"},"contributors":[{"name":"Michal Kvasničák","url":"https://github.com/michalkvasnicak"},{"name":"Juraj Hríb","url":"https://github.com/jurajhrib"}],"bugs":{"url":"https://github.com/byteclaw/hooks/issues"},"license":"MIT","readme":"# @Byteclaw/use-unique-id\n\n[React](https://github.com/facebook/react) hook to generate unique ids for your components.\n\n## Installation\n\n```console\nnpm install @byteclaw/use-unique-id\nyarn add @byteclaw/use-unique-id\n```\n\n## Usage\n\n### Client side only\n\n```jsx\nimport { useUniqueId } from '@byteclaw/use-unique-id';\nimport React, { useCallback } from 'react';\n\nfunction Element() {\n  const id = useUniqueId();\n}\n\nfunction App() {\n  return <Element />;\n}\n```\n\n### Server side support\n\nIn order to have consistent unique ids across client and server side render please provider custom `UniqueIdProvider`.\n\n```jsx\nimport { UniqueIdProvider, useUniqueId } from '@byteclaw/use-unique-id';\nimport React, { useCallback } from 'react';\n\nfunction Element() {\n  const id = useUniqueId();\n}\n\nfunction App() {\n  return (\n    <UniqueIdProvider>\n      <Element />\n    </UniqueIdProvider>\n  );\n}\n```\n","readmeFilename":"README.md"}