{"_id":"babel-plugin-transform-next-use-client","_rev":"3-5ddf74b96f5d72e495e2c0d94696531e","name":"babel-plugin-transform-next-use-client","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"babel-plugin-transform-next-use-client","version":"1.0.0","description":"A Babel plugin that adds the \"use client\" directive for React components that are using client-only APIs","main":"dist/index.js","keywords":["babel","babel-plugin","react","next","client-component","use-client"],"author":{"name":"Kyle Tsang"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kyletsang/babel-plugin-transform-next-use-client.git"},"bugs":{"url":"https://github.com/kyletsang/babel-plugin-transform-next-use-client/issues"},"scripts":{"build":"tsc -p tsconfig.build.json","prebuild":"rimraf dist","test":"jest"},"devDependencies":{"@babel/core":"^7.22.5","@babel/preset-env":"^7.22.5","@babel/preset-react":"^7.22.5","@babel/preset-typescript":"^7.22.5","@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@types/jest":"^29.5.2","@types/react":"^18.2.12","babel-jest":"^29.5.0","babel-plugin-tester":"^11.0.4","jest":"^29.5.0","rimraf":"^5.0.1","semantic-release":"^21.0.5","ts-node":"^10.9.1","typescript":"^5.1.3"},"peerDependencies":{"@babel/core":"^7.22.5"},"gitHead":"d66b62a32ac06e55c5ae75b8b2cd8ea3ca2e37f5","homepage":"https://github.com/kyletsang/babel-plugin-transform-next-use-client#readme","_id":"babel-plugin-transform-next-use-client@1.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.7.1","dist":{"integrity":"sha512-ZDjSGpGmyExU9bOsScVJfjbFrF16oRg4AEmlISKpsTbRbBhFMn2FEMqN4q8SbWE7ZxGEI+234A0d9a2nEyZn3g==","shasum":"cf1db8231b786ac085e09d94c3ee81f4d97941e3","tarball":"https://registry.npmjs.org/babel-plugin-transform-next-use-client/-/babel-plugin-transform-next-use-client-1.0.0.tgz","fileCount":4,"unpackedSize":6637,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEX6JRgPZ94hJzxo0hxw8VWc+7YSGwdSTjQiD+hVNTB5AiEAvXKkzm2Ge98VHIbN067YIoJN2LgPizc433LWBW0Ve/I="}]},"_npmUser":{"name":"kytsang","email":"ktsang.work@gmail.com"},"directories":{},"maintainers":[{"name":"kytsang","email":"ktsang.work@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-next-use-client_1.0.0_1687239149580_0.02654254151801827"},"_hasShrinkwrap":false},"1.0.1":{"name":"babel-plugin-transform-next-use-client","version":"1.0.1","description":"A Babel plugin that adds the \"use client\" directive for React components that are using client-only APIs","main":"dist/index.js","keywords":["babel","babel-plugin","react","next","client-component","use-client"],"author":{"name":"Kyle Tsang"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kyletsang/babel-plugin-transform-next-use-client.git"},"bugs":{"url":"https://github.com/kyletsang/babel-plugin-transform-next-use-client/issues"},"scripts":{"build":"tsc -p tsconfig.build.json","prebuild":"rimraf dist","test":"jest"},"devDependencies":{"@babel/core":"^7.22.5","@babel/preset-env":"^7.22.5","@babel/preset-react":"^7.22.5","@babel/preset-typescript":"^7.22.5","@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@types/jest":"^29.5.2","@types/react":"^18.2.12","babel-jest":"^29.5.0","babel-plugin-tester":"^11.0.4","jest":"^29.5.0","rimraf":"^5.0.1","semantic-release":"^21.0.5","ts-node":"^10.9.1","typescript":"^5.1.3"},"peerDependencies":{"@babel/core":"^7.22.5"},"gitHead":"6ae6c8c35fd8609535e1d8cea90576f10712fd17","homepage":"https://github.com/kyletsang/babel-plugin-transform-next-use-client#readme","_id":"babel-plugin-transform-next-use-client@1.0.1","_nodeVersion":"18.16.0","_npmVersion":"9.7.1","dist":{"integrity":"sha512-PHPslluHdM9Zj/OJCNIQwQwiXuLlhWsY5mrNHKId8CGKe2zqSMvMSWhcP8IcTIqxv7GH1PI7Nol+IoKvGCwNnA==","shasum":"ee22ad065a1be7cf42c1d693b566da258b40db31","tarball":"https://registry.npmjs.org/babel-plugin-transform-next-use-client/-/babel-plugin-transform-next-use-client-1.0.1.tgz","fileCount":4,"unpackedSize":6890,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMge7+Tvpz0g02lVKnEVjDuXrb/bXYXHuJjTi/c/HsgwIhAMuPEj/VXnXMoFu1J/nPq2Y89vokfBM1rTu8RrZNhGRI"}]},"_npmUser":{"name":"kytsang","email":"ktsang.work@gmail.com"},"directories":{},"maintainers":[{"name":"kytsang","email":"ktsang.work@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-next-use-client_1.0.1_1687316873945_0.1087262352763183"},"_hasShrinkwrap":false},"1.1.0":{"name":"babel-plugin-transform-next-use-client","version":"1.1.0","description":"A Babel plugin that adds the \"use client\" directive for React components that are using client-only APIs","main":"dist/index.js","keywords":["babel","babel-plugin","react","next","client-component","use-client"],"author":{"name":"Kyle Tsang"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kyletsang/babel-plugin-transform-next-use-client.git"},"bugs":{"url":"https://github.com/kyletsang/babel-plugin-transform-next-use-client/issues"},"scripts":{"build":"tsc -p tsconfig.build.json","prebuild":"rimraf dist","test":"jest"},"devDependencies":{"@babel/core":"^7.22.5","@babel/preset-env":"^7.22.5","@babel/preset-react":"^7.22.5","@babel/preset-typescript":"^7.22.5","@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@types/jest":"^29.5.2","@types/react":"^18.2.13","babel-jest":"^29.5.0","babel-plugin-tester":"^11.0.4","jest":"^29.5.0","rimraf":"^5.0.1","semantic-release":"^21.0.5","ts-node":"^10.9.1","typescript":"^5.1.3"},"peerDependencies":{"@babel/core":"^7.22.5"},"gitHead":"637360ef8b6dcc382d3a9cf1deca6e6a4ceeb234","homepage":"https://github.com/kyletsang/babel-plugin-transform-next-use-client#readme","_id":"babel-plugin-transform-next-use-client@1.1.0","_nodeVersion":"18.16.0","_npmVersion":"9.7.1","dist":{"integrity":"sha512-hcCxTtTxUqjzzrc8KEoSnd+6y6+b+DtT3VsUao1q5t4TcxqAKUIpKp7PPwuC5q8H36TlqPbvuA1XxkePaHBYiQ==","shasum":"6e0e4e73f9e36c73e37b2ec643fd27812e4a27f2","tarball":"https://registry.npmjs.org/babel-plugin-transform-next-use-client/-/babel-plugin-transform-next-use-client-1.1.0.tgz","fileCount":4,"unpackedSize":7481,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDX3VhEFPnlhwEPaq9WEhqXrjiB6A/F1GX1waUL8PlmCAIgK5bTpWfFiTzaxqU0rQBsffy8smHqM6cUF9Ki+5x8FNk="}]},"_npmUser":{"name":"kytsang","email":"ktsang.work@gmail.com"},"directories":{},"maintainers":[{"name":"kytsang","email":"ktsang.work@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-next-use-client_1.1.0_1687676230883_0.02371233447349308"},"_hasShrinkwrap":false},"1.1.1":{"name":"babel-plugin-transform-next-use-client","version":"1.1.1","description":"A Babel plugin that adds the \"use client\" directive for React components that are using client-only APIs","main":"dist/index.js","keywords":["babel","babel-plugin","react","next","client-component","use-client"],"author":{"name":"Kyle Tsang"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kyletsang/babel-plugin-transform-next-use-client.git"},"bugs":{"url":"https://github.com/kyletsang/babel-plugin-transform-next-use-client/issues"},"scripts":{"build":"tsc -p tsconfig.build.json","prebuild":"rimraf dist","test":"jest"},"devDependencies":{"@babel/core":"^7.22.5","@babel/preset-env":"^7.22.5","@babel/preset-react":"^7.22.5","@babel/preset-typescript":"^7.22.5","@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@types/jest":"^29.5.2","@types/react":"^18.2.14","babel-jest":"^29.5.0","babel-plugin-tester":"^11.0.4","jest":"^29.5.0","rimraf":"^5.0.1","semantic-release":"^21.0.5","ts-node":"^10.9.1","typescript":"^5.1.3"},"peerDependencies":{"@babel/core":"^7.22.5"},"gitHead":"97a7350dcbe9ce3183dec1c7e45daf9792c6fea2","homepage":"https://github.com/kyletsang/babel-plugin-transform-next-use-client#readme","_id":"babel-plugin-transform-next-use-client@1.1.1","_nodeVersion":"18.16.0","_npmVersion":"9.7.1","dist":{"integrity":"sha512-qqyurXN5ZWP7kqmgzzXaEgF0fCi8d72tE+wCQwSCrjfN+LC0fI1+ejhNE+DtVECY1EvYkUoO0tcr9izwC9xexg==","shasum":"648f3b3de16a09b490f5d0bc34143516ef91a4df","tarball":"https://registry.npmjs.org/babel-plugin-transform-next-use-client/-/babel-plugin-transform-next-use-client-1.1.1.tgz","fileCount":4,"unpackedSize":8066,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBJjb/B1XLQigwFcU2u7TECLtTohmFnFatYh2/TqqXVFAiAMYRO6BfiNGNaE2LhYEezxevCrIPgVzSw2GQxMgfkecA=="}]},"_npmUser":{"name":"kytsang","email":"ktsang.work@gmail.com"},"directories":{},"maintainers":[{"name":"kytsang","email":"ktsang.work@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-next-use-client_1.1.1_1687933888054_0.2642079826180228"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-20T05:32:29.579Z","1.0.0":"2023-06-20T05:32:29.731Z","modified":"2023-06-28T06:31:28.848Z","1.0.1":"2023-06-21T03:07:54.097Z","1.1.0":"2023-06-25T06:57:11.062Z","1.1.1":"2023-06-28T06:31:28.736Z"},"maintainers":[{"name":"kytsang","email":"ktsang.work@gmail.com"}],"description":"A Babel plugin that adds the \"use client\" directive for React components that are using client-only APIs","homepage":"https://github.com/kyletsang/babel-plugin-transform-next-use-client#readme","keywords":["babel","babel-plugin","react","next","client-component","use-client"],"repository":{"type":"git","url":"git+https://github.com/kyletsang/babel-plugin-transform-next-use-client.git"},"author":{"name":"Kyle Tsang"},"bugs":{"url":"https://github.com/kyletsang/babel-plugin-transform-next-use-client/issues"},"license":"MIT","readme":"# babel-plugin-transform-next-use-client\n\nA Babel plugin that adds the `\"use client\"` directive for React components that\nare using client-only APIs such as `useEffect` and `useState`.\n\n## Installation\n\n**npm:**\n\n```sh\nnpm install babel-plugin-transform-next-use-client\n```\n\n**yarn:**\n\n```sh\nyarn add babel-plugin-transform-next-use-client\n```\n\n## Setup\n\n```\n{\n  plugins: ['babel-plugin-transform-next-use-client']\n}\n```\n\n### React client APIs in custom modules\n\nIf you are using React client APIs in modules that are imported into your\ncomponents, you will need to specify an additional option `customClientImports`\nso the plugin will add the directive appropriately. This option accepts an array\nof names corresponding to the functions that use the React client APIs.\n\n```\n{\n  plugins: [\n    [\n      'babel-plugin-transform-next-use-client',\n      {\n        customClientImports: [\n          'useCustomHook'\n        ]\n      }\n    ]\n  ]\n}\n```\n","readmeFilename":"README.md"}