{"_id":"@botfather/units-react-adapter","name":"@botfather/units-react-adapter","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@botfather/units-react-adapter","version":"0.1.1","description":"React element tree adapter for Units UiNode IR.","license":"MIT","type":"module","repository":{"type":"git","url":"git+https://github.com/Botfather/units.git","directory":"packages/units-react-adapter"},"homepage":"https://github.com/Botfather/units/tree/main/packages/units-react-adapter","bugs":{"url":"https://github.com/Botfather/units/issues"},"main":"./index.js","types":"./index.d.ts","dependencies":{"@botfather/units-ui-ir":"0.1.1"},"peerDependencies":{"react":">=18"},"publishConfig":{"access":"public"},"_id":"@botfather/units-react-adapter@0.1.1","_integrity":"sha512-P//+DZ4Bb3JAEoJ2Myry7WSwJknHiwBfwxvLDnlNg8ar7dJhzEys/vjKqeM+1L6wyk6s5l1n1ZY+PLalR96Jxg==","_resolved":"/tmp/a908b6fc4e682b71a2f46d4c6d5fc651/botfather-units-react-adapter-0.1.1.tgz","_from":"file:botfather-units-react-adapter-0.1.1.tgz","_nodeVersion":"22.14.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-P//+DZ4Bb3JAEoJ2Myry7WSwJknHiwBfwxvLDnlNg8ar7dJhzEys/vjKqeM+1L6wyk6s5l1n1ZY+PLalR96Jxg==","shasum":"05d44d6ca7131dcd6960d4b03a56dfffc3d71843","tarball":"https://registry.npmjs.org/@botfather/units-react-adapter/-/units-react-adapter-0.1.1.tgz","fileCount":5,"unpackedSize":13249,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@botfather%2funits-react-adapter@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCBaPGzJYm6le1CLJEP7wDOaWE4cv/ZZzyUJUMEsXmbtQIhANc44HYk69MN3SLcGfOtoEgvaZ4Y6y8xuQqpF8DA+0kP"}]},"_npmUser":{"name":"botfather","email":"mohan.tushar.11@gmail.com"},"directories":{},"maintainers":[{"name":"botfather","email":"mohan.tushar.11@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/units-react-adapter_0.1.1_1782196782586_0.033298862223316794"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-23T06:39:42.363Z","0.1.1":"2026-06-23T06:39:42.734Z","modified":"2026-06-23T06:39:43.162Z"},"maintainers":[{"name":"botfather","email":"mohan.tushar.11@gmail.com"}],"description":"React element tree adapter for Units UiNode IR.","homepage":"https://github.com/Botfather/units/tree/main/packages/units-react-adapter","repository":{"type":"git","url":"git+https://github.com/Botfather/units.git","directory":"packages/units-react-adapter"},"bugs":{"url":"https://github.com/Botfather/units/issues"},"license":"MIT","readme":"# @botfather/units-react-adapter\n\nReact element tree adapter that converts JSX/React elements into the Units `UiNode` IR.\n\n## Install\n\n```sh\nnpm install @botfather/units-react-adapter @botfather/units-ui-ir\n```\n\n## Usage\n\n```js\nimport { normalizeReactTree } from \"@botfather/units-react-adapter\";\n\nconst uiIr = normalizeReactTree(reactElementTree);\n```\n\nThe output `uiIr` is compatible with:\n- `@botfather/units-compiler` (`sourceType: \"ir\"` or `\"react\"`)\n- `@botfather/units-agent-plugin` (`sourceType: \"react\"`)\n- transform/reward/middleware pipelines that expect Units IR.\n\n## Exports\n\n- `isReactElementLike(value)`\n- `normalizeReactNode(input, path, options?)`\n- `normalizeReactTree(input, options?)`\n- alias: `reactElementToUiNode(input, options?)`\n","readmeFilename":"README.md","_rev":"1-2c71b254a9ed31c55cb104c6c5e8fab3"}