{"_id":"@a2ui-sdk/react","_rev":"11-dc9f4a681c4c2aa8900e4cddd86bb85d","name":"@a2ui-sdk/react","dist-tags":{"latest":"0.4.0"},"versions":{"0.0.0":{"name":"@a2ui-sdk/react","version":"0.0.0","license":"Apache-2.0","_id":"@a2ui-sdk/react@0.0.0","maintainers":[{"name":"weareoutman","email":"wangshenwei@qq.com"},{"name":"easyops-eve","email":"wangshenwei@foxmail.com"}],"homepage":"https://easyops-cn.github.io/a2ui-sdk/","bugs":{"url":"https://github.com/easyops-cn/a2ui-sdk/issues"},"dist":{"shasum":"1f47ae7c969be2142f70fa7828da5a71543f8b11","tarball":"https://registry.npmjs.org/@a2ui-sdk/react/-/react-0.0.0.tgz","fileCount":174,"integrity":"sha512-AkCzzVKHycsWsOySox0qU+zOCxp1q/3zQV9hYB7OnL7NWyUsShB+ITMQyG4Wp86Rc1DANm9wONzXeI9bdj9wug==","signatures":[{"sig":"MEQCIHGuvOMz9qaN7P2MUTZZ0/hvrX6lCSJ0+bAPzVuBtJ1mAiBzc6UgtJKxACZTGkIuvVHHsHSw3PJzPDnk1dfi44MEXQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":180829},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./0.8":{"types":"./dist/0.8/index.d.ts","default":"./dist/0.8/index.js"},"./0.9":{"types":"./dist/0.9/index.d.ts","default":"./dist/0.9/index.js"}},"gitHead":"a1c07f2d21ad38ec8776caabe7eaff89971f200f","scripts":{"dev":"vite","test":"vitest","build":"tsc -b && vite build","test:run":"vitest run","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"easyops-eve","email":"wangshenwei@foxmail.com"},"repository":{"url":"git+ssh://git@github.com/easyops-cn/a2ui-sdk.git","type":"git","directory":"packages/react"},"_npmVersion":"10.9.4","description":"A2UI SDK for React","directories":{},"_nodeVersion":"22.21.1","dependencies":{"clsx":"^2.1.1","lucide-react":"^0.562.0","tailwind-merge":"^3.4.0","@radix-ui/react-slot":"^1.2.4","@radix-ui/react-tabs":"^1.1.13","@radix-ui/react-label":"^2.1.8","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-select":"^2.2.6","@radix-ui/react-slider":"^1.3.6","@radix-ui/react-checkbox":"^1.3.3","class-variance-authority":"^0.7.1","@radix-ui/react-separator":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","jsdom":"^27.4.0","react":"^19.2.3","vitest":"^4.0.16","react-dom":"^19.2.3","typescript":"~5.9.3","@a2ui-sdk/types":"^0.0.0","@a2ui-sdk/utils":"^0.0.0","vite-plugin-dts":"^4.5.4","@vitest/coverage-v8":"^4.0.16","vite-tsconfig-paths":"^6.0.4","@testing-library/dom":"^10.4.1","@vitejs/plugin-react":"^5.1.2","@testing-library/react":"^16.3.1","@testing-library/jest-dom":"^6.9.1","@testing-library/user-event":"^14.6.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.0.0_1768289706587_0.697525969655076","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@a2ui-sdk/react","version":"0.0.2","license":"Apache-2.0","_id":"@a2ui-sdk/react@0.0.2","maintainers":[{"name":"weareoutman","email":"wangshenwei@qq.com"},{"name":"easyops-eve","email":"wangshenwei@foxmail.com"}],"homepage":"https://easyops-cn.github.io/a2ui-sdk/","bugs":{"url":"https://github.com/easyops-cn/a2ui-sdk/issues"},"dist":{"shasum":"d338726633b1aca72083eb2fb9808c0a23c73a16","tarball":"https://registry.npmjs.org/@a2ui-sdk/react/-/react-0.0.2.tgz","fileCount":174,"integrity":"sha512-wjtw5mVFJmQEgorlhUbwK+A9sK6rGXFJvd0Am6SI8RGl/dahmzuhS2FAkpZqFc1eGb75PnrTWYONCXxeipn4qw==","signatures":[{"sig":"MEUCIGkZraGh5tKEibqp9p+po0thLP4Wpk5IfZAlm8/DNhkMAiEA35Atzm937ORsnQIFFV+O6Kuo95rwZ3YlJ73ZnjiPCeI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":180827},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./0.8":{"types":"./dist/0.8/index.d.ts","default":"./dist/0.8/index.js"},"./0.9":{"types":"./dist/0.9/index.d.ts","default":"./dist/0.9/index.js"}},"gitHead":"fb5606b4faefb1ceb6f3f6ed8ea2e453ad4dc24d","scripts":{"dev":"vite","test":"vitest","build":"tsc -b && vite build","test:run":"vitest run","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"easyops-eve","email":"wangshenwei@foxmail.com"},"repository":{"url":"git+ssh://git@github.com/easyops-cn/a2ui-sdk.git","type":"git","directory":"packages/react"},"_npmVersion":"10.9.4","description":"A2UI SDK for React","directories":{},"_nodeVersion":"22.21.1","dependencies":{"clsx":"^2.1.1","lucide-react":"^0.562.0","tailwind-merge":"^3.4.0","@radix-ui/react-slot":"^1.2.4","@radix-ui/react-tabs":"^1.1.13","@radix-ui/react-label":"^2.1.8","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-select":"^2.2.6","@radix-ui/react-slider":"^1.3.6","@radix-ui/react-checkbox":"^1.3.3","class-variance-authority":"^0.7.1","@radix-ui/react-separator":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","jsdom":"^27.4.0","react":"^19.2.3","vitest":"^4.0.16","react-dom":"^19.2.3","typescript":"~5.9.3","@a2ui-sdk/types":"0.0.2","@a2ui-sdk/utils":"0.0.2","vite-plugin-dts":"^4.5.4","@vitest/coverage-v8":"^4.0.16","vite-tsconfig-paths":"^6.0.4","@testing-library/dom":"^10.4.1","@vitejs/plugin-react":"^5.1.2","@testing-library/react":"^16.3.1","@testing-library/jest-dom":"^6.9.1","@testing-library/user-event":"^14.6.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.0.2_1768291035726_0.4193732861683752","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@a2ui-sdk/react","version":"0.0.3","license":"Apache-2.0","_id":"@a2ui-sdk/react@0.0.3","maintainers":[{"name":"weareoutman","email":"wangshenwei@qq.com"},{"name":"easyops-eve","email":"wangshenwei@foxmail.com"}],"homepage":"https://easyops-cn.github.io/a2ui-sdk/","bugs":{"url":"https://github.com/easyops-cn/a2ui-sdk/issues"},"dist":{"shasum":"8ce0d2c484b3fcd656ef21552d45599d41e9be37","tarball":"https://registry.npmjs.org/@a2ui-sdk/react/-/react-0.0.3.tgz","fileCount":174,"integrity":"sha512-DMba2pZ8VCVbqKWRX7HT7WTiVU6kzwTNBhA9I4ZHbPZ6d/vCyt4cqoZ2vi3LXLIyVyZx0V/JwFtFm0VB6yPfyw==","signatures":[{"sig":"MEQCIFLejUixnqanl6YLFNvqAwZzvEHzTzlZlvpi9o88/sefAiAN4eG1qowX692Dhqd6WGvd4pe5IFQadinI105JIvCJCQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":180827},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./0.8":{"types":"./dist/0.8/index.d.ts","default":"./dist/0.8/index.js"},"./0.9":{"types":"./dist/0.9/index.d.ts","default":"./dist/0.9/index.js"}},"gitHead":"fe0dd5a44434ea02fd15720d5d0162b3149a1ac0","scripts":{"dev":"vite","test":"vitest","build":"tsc -b && vite build","test:run":"vitest run","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"easyops-eve","email":"wangshenwei@foxmail.com"},"repository":{"url":"git+ssh://git@github.com/easyops-cn/a2ui-sdk.git","type":"git","directory":"packages/react"},"_npmVersion":"10.9.4","description":"A2UI SDK for React","directories":{},"_nodeVersion":"22.21.1","dependencies":{"clsx":"^2.1.1","lucide-react":"^0.562.0","tailwind-merge":"^3.4.0","@radix-ui/react-slot":"^1.2.4","@radix-ui/react-tabs":"^1.1.13","@radix-ui/react-label":"^2.1.8","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-select":"^2.2.6","@radix-ui/react-slider":"^1.3.6","@radix-ui/react-checkbox":"^1.3.3","class-variance-authority":"^0.7.1","@radix-ui/react-separator":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","jsdom":"^27.4.0","react":"^19.2.3","vitest":"^4.0.16","react-dom":"^19.2.3","typescript":"~5.9.3","@a2ui-sdk/types":"0.0.3","@a2ui-sdk/utils":"0.0.3","vite-plugin-dts":"^4.5.4","@vitest/coverage-v8":"^4.0.16","vite-tsconfig-paths":"^6.0.4","@testing-library/dom":"^10.4.1","@vitejs/plugin-react":"^5.1.2","@testing-library/react":"^16.3.1","@testing-library/jest-dom":"^6.9.1","@testing-library/user-event":"^14.6.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.0.3_1768293603506_0.19593123208031948","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@a2ui-sdk/react","version":"0.1.0","license":"Apache-2.0","_id":"@a2ui-sdk/react@0.1.0","maintainers":[{"name":"weareoutman","email":"wangshenwei@qq.com"},{"name":"easyops-eve","email":"wangshenwei@foxmail.com"}],"homepage":"https://easyops-cn.github.io/a2ui-sdk/","bugs":{"url":"https://github.com/easyops-cn/a2ui-sdk/issues"},"dist":{"shasum":"56d1f159816efc9977fab095a3e295565ae8f4e8","tarball":"https://registry.npmjs.org/@a2ui-sdk/react/-/react-0.1.0.tgz","fileCount":165,"integrity":"sha512-gn/sgj9IgUXtBfjnFM471v+FJGef8by5k6ECHpjXZFbKq10BHTz9Sri4ocoJmcHAfFkZVEZBr48QtOB+8eZ8hA==","signatures":[{"sig":"MEQCICEjBYxqqcyy+MINwb/uLdVqfXGSWavl1Ytp6FZD0uF7AiAHTU5S0o99tfpe6BuPRK89AfZ2FyFgfnUJjy8eBbDHBw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":159673},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./0.8":{"types":"./dist/0.8/index.d.ts","default":"./dist/0.8/index.js"},"./0.9":{"types":"./dist/0.9/index.d.ts","default":"./dist/0.9/index.js"}},"gitHead":"152fa148b3a576a984205292fb1af235a4bf4c92","scripts":{"dev":"vite","test":"vitest","build":"tsc -b && vite build","test:run":"vitest run","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"easyops-eve","email":"wangshenwei@foxmail.com"},"repository":{"url":"git+ssh://git@github.com/easyops-cn/a2ui-sdk.git","type":"git","directory":"packages/react"},"_npmVersion":"10.9.4","description":"A2UI SDK for React","directories":{},"_nodeVersion":"22.21.1","dependencies":{"clsx":"^2.1.1","lucide-react":"^0.562.0","tailwind-merge":"^3.4.0","@radix-ui/react-slot":"^1.2.4","@radix-ui/react-tabs":"^1.1.13","@radix-ui/react-label":"^2.1.8","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-select":"^2.2.6","@radix-ui/react-slider":"^1.3.6","@radix-ui/react-checkbox":"^1.3.3","class-variance-authority":"^0.7.1","@radix-ui/react-separator":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","jsdom":"^27.4.0","react":"^19.2.3","vitest":"^4.0.16","react-dom":"^19.2.3","typescript":"~5.9.3","@a2ui-sdk/types":"0.1.0","@a2ui-sdk/utils":"0.1.0","vite-plugin-dts":"^4.5.4","@vitest/coverage-v8":"^4.0.16","vite-tsconfig-paths":"^6.0.4","@testing-library/dom":"^10.4.1","@vitejs/plugin-react":"^5.1.2","@testing-library/react":"^16.3.1","@testing-library/jest-dom":"^6.9.1","@testing-library/user-event":"^14.6.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.1.0_1768304646460_0.24526621407382665","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@a2ui-sdk/react","version":"0.1.1","license":"Apache-2.0","_id":"@a2ui-sdk/react@0.1.1","maintainers":[{"name":"weareoutman","email":"wangshenwei@qq.com"},{"name":"easyops-eve","email":"wangshenwei@foxmail.com"}],"homepage":"https://a2ui-sdk.js.org/","bugs":{"url":"https://github.com/easyops-cn/a2ui-sdk/issues"},"dist":{"shasum":"452cc8dc0e5dd34e9888b2c1e6120aae569f6a94","tarball":"https://registry.npmjs.org/@a2ui-sdk/react/-/react-0.1.1.tgz","fileCount":165,"integrity":"sha512-pcnERWynLgaAvBvnXdpqtWtAF0RdENG4SkrUQB58oWh0XMaB4BPpJkGCSTOecDAoIhGJY2SOvtcmcp6bmtfIeQ==","signatures":[{"sig":"MEUCIGXG4kj8J0m+vMmBnib7fhpQxzjMD7b4YoqhDmUSXr6rAiEAvFGdiZDyCussPM7IDXyA4Q0PQ4/1UuEBzLu2Iu9OtYo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":159645},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./0.8":{"types":"./dist/0.8/index.d.ts","default":"./dist/0.8/index.js"},"./0.9":{"types":"./dist/0.9/index.d.ts","default":"./dist/0.9/index.js"}},"gitHead":"cf9c9ad46fed380a06d151ef22c1bc8f1bd7fec0","scripts":{"dev":"vite","test":"vitest","build":"tsc -b && vite build","test:run":"vitest run","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"easyops-eve","email":"wangshenwei@foxmail.com"},"repository":{"url":"git+ssh://git@github.com/easyops-cn/a2ui-sdk.git","type":"git","directory":"packages/react"},"_npmVersion":"10.9.4","description":"A2UI SDK for React","directories":{},"_nodeVersion":"22.21.1","dependencies":{"clsx":"^2.1.1","lucide-react":"^0.562.0","tailwind-merge":"^3.4.0","@radix-ui/react-slot":"^1.2.4","@radix-ui/react-tabs":"^1.1.13","@radix-ui/react-label":"^2.1.8","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-select":"^2.2.6","@radix-ui/react-slider":"^1.3.6","@radix-ui/react-checkbox":"^1.3.3","class-variance-authority":"^0.7.1","@radix-ui/react-separator":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","jsdom":"^27.4.0","react":"^19.2.3","vitest":"^4.0.16","react-dom":"^19.2.3","typescript":"~5.9.3","@a2ui-sdk/types":"0.1.1","@a2ui-sdk/utils":"0.1.1","vite-plugin-dts":"^4.5.4","@vitest/coverage-v8":"^4.0.16","vite-tsconfig-paths":"^6.0.4","@testing-library/dom":"^10.4.1","@vitejs/plugin-react":"^5.1.2","@testing-library/react":"^16.3.1","@testing-library/jest-dom":"^6.9.1","@testing-library/user-event":"^14.6.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.1.1_1768317530782_0.40095139461640583","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@a2ui-sdk/react","version":"0.2.0","license":"Apache-2.0","_id":"@a2ui-sdk/react@0.2.0","maintainers":[{"name":"weareoutman","email":"wangshenwei@qq.com"},{"name":"easyops-eve","email":"wangshenwei@foxmail.com"}],"homepage":"https://a2ui-sdk.js.org/","bugs":{"url":"https://github.com/easyops-cn/a2ui-sdk/issues"},"dist":{"shasum":"a44e42a69ef9faaba3c90f12aca210a4a388b4d4","tarball":"https://registry.npmjs.org/@a2ui-sdk/react/-/react-0.2.0.tgz","fileCount":170,"integrity":"sha512-4lyVA/iFmLrQe0lsx3q4PTp9hHxK1Hc8uKvU6UXhi1m+vZxpyzbAfJQiNZxKCByg4K/s3QAFTUArTbk8w78nLQ==","signatures":[{"sig":"MEYCIQDi/2NX3gldpsIvbOx4HwM66aqwMERWmpu6H3I6boPWBwIhALk4vfZO3eFSbebZ1LxTeHS+JqnAHKclU9569myDfjhk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":166824},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./0.8":{"types":"./dist/0.8/index.d.ts","default":"./dist/0.8/index.js"},"./0.9":{"types":"./dist/0.9/index.d.ts","default":"./dist/0.9/index.js"},"./0.8/standard-catalog":{"types":"./dist/0.8/standard-catalog/index.d.ts","default":"./dist/0.8/standard-catalog/index.js"},"./0.9/standard-catalog":{"types":"./dist/0.9/standard-catalog/index.d.ts","default":"./dist/0.9/standard-catalog/index.js"}},"gitHead":"0b05b7b44f87013ba864942909ed6cdd9916cdbf","scripts":{"dev":"vite","test":"vitest","build":"tsc -b tsconfig.build.json && vite build","test:run":"vitest run","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"easyops-eve","email":"wangshenwei@foxmail.com"},"repository":{"url":"git+ssh://git@github.com/easyops-cn/a2ui-sdk.git","type":"git","directory":"packages/react"},"_npmVersion":"10.9.4","description":"A2UI SDK for React","directories":{},"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{"clsx":"^2.1.1","lucide-react":"^0.562.0","tailwind-merge":"^3.4.0","@radix-ui/react-slot":"^1.2.4","@radix-ui/react-tabs":"^1.1.13","@radix-ui/react-label":"^2.1.8","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-select":"^2.2.6","@radix-ui/react-slider":"^1.3.6","@radix-ui/react-checkbox":"^1.3.3","class-variance-authority":"^0.7.1","@radix-ui/react-separator":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","jsdom":"^27.4.0","react":"^19.2.3","vitest":"^4.0.16","react-dom":"^19.2.3","typescript":"~5.9.3","@a2ui-sdk/types":"0.2.0","@a2ui-sdk/utils":"0.2.0","vite-plugin-dts":"^4.5.4","@vitest/coverage-v8":"^4.0.16","vite-tsconfig-paths":"^6.0.4","@testing-library/dom":"^10.4.1","@vitejs/plugin-react":"^5.1.2","@testing-library/react":"^16.3.1","@testing-library/jest-dom":"^6.9.1","@testing-library/user-event":"^14.6.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.2.0_1768362475369_0.9221079739644464","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@a2ui-sdk/react","version":"0.2.1","license":"Apache-2.0","_id":"@a2ui-sdk/react@0.2.1","maintainers":[{"name":"weareoutman","email":"wangshenwei@qq.com"},{"name":"easyops-eve","email":"wangshenwei@foxmail.com"}],"homepage":"https://a2ui-sdk.js.org/","bugs":{"url":"https://github.com/easyops-cn/a2ui-sdk/issues"},"dist":{"shasum":"4bc28e1b181ba00cf35465d033bc33aa32537cc7","tarball":"https://registry.npmjs.org/@a2ui-sdk/react/-/react-0.2.1.tgz","fileCount":170,"integrity":"sha512-OOQp+A9UMzoW+6FZMFPf/yJoN1Os+OgobfMr5coFam9FsMIFDjixAZQ8TkAYNYUU7SXSE5/VBVkPDN2svA5dEA==","signatures":[{"sig":"MEUCIDNjNdoI/cAMNFALXlNGNelO7uDYrtUElbbl1L0lBlScAiEAuhz8FmtAMMmah9famf+hKiH9tgDqsrMim/dG9i8sfFA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":166824},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./0.8":{"types":"./dist/0.8/index.d.ts","default":"./dist/0.8/index.js"},"./0.9":{"types":"./dist/0.9/index.d.ts","default":"./dist/0.9/index.js"},"./0.8/standard-catalog":{"types":"./dist/0.8/standard-catalog/index.d.ts","default":"./dist/0.8/standard-catalog/index.js"},"./0.9/standard-catalog":{"types":"./dist/0.9/standard-catalog/index.d.ts","default":"./dist/0.9/standard-catalog/index.js"}},"gitHead":"414788597a7559e4cdbaa73a3344e96538020b03","scripts":{"dev":"vite","test":"vitest","build":"tsc -b tsconfig.build.json && vite build","test:run":"vitest run","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"easyops-eve","email":"wangshenwei@foxmail.com"},"repository":{"url":"git+ssh://git@github.com/easyops-cn/a2ui-sdk.git","type":"git","directory":"packages/react"},"_npmVersion":"10.9.4","description":"A2UI SDK for React","directories":{},"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{"clsx":"^2.1.1","lucide-react":"^0.562.0","tailwind-merge":"^3.4.0","@a2ui-sdk/types":"0.2.1","@a2ui-sdk/utils":"0.2.1","@radix-ui/react-slot":"^1.2.4","@radix-ui/react-tabs":"^1.1.13","@radix-ui/react-label":"^2.1.8","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-select":"^2.2.6","@radix-ui/react-slider":"^1.3.6","@radix-ui/react-checkbox":"^1.3.3","class-variance-authority":"^0.7.1","@radix-ui/react-separator":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","jsdom":"^27.4.0","react":"^19.2.3","vitest":"^4.0.16","react-dom":"^19.2.3","typescript":"~5.9.3","vite-plugin-dts":"^4.5.4","@vitest/coverage-v8":"^4.0.16","vite-tsconfig-paths":"^6.0.4","@testing-library/dom":"^10.4.1","@vitejs/plugin-react":"^5.1.2","@testing-library/react":"^16.3.1","@testing-library/jest-dom":"^6.9.1","@testing-library/user-event":"^14.6.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.2.1_1768378787037_0.5042301485665701","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@a2ui-sdk/react","version":"0.2.2","license":"Apache-2.0","_id":"@a2ui-sdk/react@0.2.2","maintainers":[{"name":"weareoutman","email":"wangshenwei@qq.com"},{"name":"easyops-eve","email":"wangshenwei@foxmail.com"}],"homepage":"https://a2ui-sdk.js.org/","bugs":{"url":"https://github.com/easyops-cn/a2ui-sdk/issues"},"dist":{"shasum":"2bb3cbafa7d85fa8b19f00ce1d7da672839c3c69","tarball":"https://registry.npmjs.org/@a2ui-sdk/react/-/react-0.2.2.tgz","fileCount":174,"integrity":"sha512-mNA4QXzL4TF2Ip7j9JHzqljRZCK0HOXloRylifwtkTBu2Ril7mfC2094WCRv0ULEM1G4dYB0K3aD2PQV2N0Rbg==","signatures":[{"sig":"MEYCIQDxQS0sKXWwp0+3Ebb9+Kmdm23x9UhtcuwzJMa/P1YbjAIhAK/0TSmCtVHdrbUEA444NCMlLezvXPm4I1NypJb8aaov","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":173210},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./0.8":{"types":"./dist/0.8/index.d.ts","default":"./dist/0.8/index.js"},"./0.9":{"types":"./dist/0.9/index.d.ts","default":"./dist/0.9/index.js"},"./0.8/standard-catalog":{"types":"./dist/0.8/standard-catalog/index.d.ts","default":"./dist/0.8/standard-catalog/index.js"},"./0.9/standard-catalog":{"types":"./dist/0.9/standard-catalog/index.d.ts","default":"./dist/0.9/standard-catalog/index.js"}},"gitHead":"e6b6116400d88cf2af296044140c51db8841e469","scripts":{"dev":"vite","test":"vitest","build":"tsc -b tsconfig.build.json && vite build","test:run":"vitest run","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"easyops-eve","email":"wangshenwei@foxmail.com"},"repository":{"url":"git+ssh://git@github.com/easyops-cn/a2ui-sdk.git","type":"git","directory":"packages/react"},"_npmVersion":"10.9.4","description":"A2UI SDK for React","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"clsx":"^2.1.1","lucide-react":"^0.562.0","tailwind-merge":"^3.4.0","@a2ui-sdk/types":"0.2.2","@a2ui-sdk/utils":"0.2.2","@radix-ui/react-slot":"^1.2.4","@radix-ui/react-tabs":"^1.1.13","@radix-ui/react-label":"^2.1.8","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-select":"^2.2.6","@radix-ui/react-slider":"^1.3.6","@radix-ui/react-checkbox":"^1.3.3","class-variance-authority":"^0.7.1","@radix-ui/react-separator":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","jsdom":"^27.4.0","react":"^19.2.3","vitest":"^4.0.16","react-dom":"^19.2.3","typescript":"~5.9.3","vite-plugin-dts":"^4.5.4","@vitest/coverage-v8":"^4.0.16","vite-tsconfig-paths":"^6.0.4","@testing-library/dom":"^10.4.1","@vitejs/plugin-react":"^5.1.2","@testing-library/react":"^16.3.1","@testing-library/jest-dom":"^6.9.1","@testing-library/user-event":"^14.6.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.2.2_1769509829601_0.06629721031096047","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@a2ui-sdk/react","version":"0.3.0","license":"Apache-2.0","_id":"@a2ui-sdk/react@0.3.0","maintainers":[{"name":"weareoutman","email":"wangshenwei@qq.com"},{"name":"easyops-eve","email":"wangshenwei@foxmail.com"}],"homepage":"https://a2ui-sdk.js.org/","bugs":{"url":"https://github.com/easyops-cn/a2ui-sdk/issues"},"dist":{"shasum":"5bbfa77fa1ea36c2757e925931f5c53b3564854f","tarball":"https://registry.npmjs.org/@a2ui-sdk/react/-/react-0.3.0.tgz","fileCount":174,"integrity":"sha512-KLNrGDkBVrx3Mlvt5yKoa8/0ovbn3C9jKCaDbpSBvMm8m81DVSeglJOpnT4z+ugE34j+TfvVF+v7tPwkWDf0YQ==","signatures":[{"sig":"MEQCIHkousw0bIaNK2Nrraa2aRIrQcvEPJmCowyuTBWGpZayAiADk/LKj7tZnJEVerWleQU3YyKjwME/5lwOOxz2YtwTsQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":174930},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./0.8":{"types":"./dist/0.8/index.d.ts","default":"./dist/0.8/index.js"},"./0.9":{"types":"./dist/0.9/index.d.ts","default":"./dist/0.9/index.js"},"./0.8/standard-catalog":{"types":"./dist/0.8/standard-catalog/index.d.ts","default":"./dist/0.8/standard-catalog/index.js"},"./0.9/standard-catalog":{"types":"./dist/0.9/standard-catalog/index.d.ts","default":"./dist/0.9/standard-catalog/index.js"}},"gitHead":"7f38b45fe97c084f26bcc5f6c280a07fbface243","scripts":{"dev":"vite","test":"vitest","build":"tsc -b tsconfig.build.json && vite build","test:run":"vitest run","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"easyops-eve","email":"wangshenwei@foxmail.com"},"repository":{"url":"git+ssh://git@github.com/easyops-cn/a2ui-sdk.git","type":"git","directory":"packages/react"},"_npmVersion":"10.9.4","description":"A2UI SDK for React","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"clsx":"^2.1.1","lucide-react":"^0.562.0","tailwind-merge":"^3.4.0","@a2ui-sdk/types":"0.3.0","@a2ui-sdk/utils":"0.3.0","@radix-ui/react-slot":"^1.2.4","@radix-ui/react-tabs":"^1.1.13","@radix-ui/react-label":"^2.1.8","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-select":"^2.2.6","@radix-ui/react-slider":"^1.3.6","@radix-ui/react-checkbox":"^1.3.3","class-variance-authority":"^0.7.1","@radix-ui/react-separator":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","jsdom":"^27.4.0","react":"^19.2.3","vitest":"^4.0.16","react-dom":"^19.2.3","typescript":"~5.9.3","vite-plugin-dts":"^4.5.4","@vitest/coverage-v8":"^4.0.16","vite-tsconfig-paths":"^6.0.4","@testing-library/dom":"^10.4.1","@vitejs/plugin-react":"^5.1.2","@testing-library/react":"^16.3.1","@testing-library/jest-dom":"^6.9.1","@testing-library/user-event":"^14.6.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.3.0_1769566269514_0.30209466826903975","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@a2ui-sdk/react","version":"0.3.1","license":"Apache-2.0","_id":"@a2ui-sdk/react@0.3.1","maintainers":[{"name":"weareoutman","email":"wangshenwei@qq.com"},{"name":"easyops-eve","email":"wangshenwei@foxmail.com"}],"homepage":"https://a2ui-sdk.js.org/","bugs":{"url":"https://github.com/easyops-cn/a2ui-sdk/issues"},"dist":{"shasum":"76afda14891c3df458556a100c64ac16d4b2e31c","tarball":"https://registry.npmjs.org/@a2ui-sdk/react/-/react-0.3.1.tgz","fileCount":174,"integrity":"sha512-aSHE3sb956SIUIZelpAbWmrulxS9RxCcJSb3ifUA/QZTsDrsSbs4Z7YScwyPtn/LUPJ9OKDHlVCGZ3SSHsDhFw==","signatures":[{"sig":"MEUCIQDmufCQosydX/mHqFa0Vlx+tkdLgq4wL+lEpT/h3x8oNAIgFEwzPWV06R7XkzilooeVLVLmhtU8E4D33q7hsn85xQo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":175186},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./0.8":{"types":"./dist/0.8/index.d.ts","default":"./dist/0.8/index.js"},"./0.9":{"types":"./dist/0.9/index.d.ts","default":"./dist/0.9/index.js"},"./0.8/standard-catalog":{"types":"./dist/0.8/standard-catalog/index.d.ts","default":"./dist/0.8/standard-catalog/index.js"},"./0.9/standard-catalog":{"types":"./dist/0.9/standard-catalog/index.d.ts","default":"./dist/0.9/standard-catalog/index.js"}},"gitHead":"e27ca13b11f800ff153357bc0fe3a6a6d768174e","scripts":{"dev":"vite","test":"vitest","build":"tsc -b tsconfig.build.json && vite build","test:run":"vitest run","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"easyops-eve","email":"wangshenwei@foxmail.com"},"repository":{"url":"git+ssh://git@github.com/easyops-cn/a2ui-sdk.git","type":"git","directory":"packages/react"},"_npmVersion":"10.9.4","description":"A2UI SDK for React","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"clsx":"^2.1.1","lucide-react":"^0.562.0","tailwind-merge":"^3.4.0","@a2ui-sdk/types":"0.3.1","@a2ui-sdk/utils":"0.3.1","@radix-ui/react-slot":"^1.2.4","@radix-ui/react-tabs":"^1.1.13","@radix-ui/react-label":"^2.1.8","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-select":"^2.2.6","@radix-ui/react-slider":"^1.3.6","@radix-ui/react-checkbox":"^1.3.3","class-variance-authority":"^0.7.1","@radix-ui/react-separator":"^1.1.8"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","jsdom":"^27.4.0","react":"^19.2.3","vitest":"^4.0.16","react-dom":"^19.2.3","typescript":"~5.9.3","vite-plugin-dts":"^4.5.4","@vitest/coverage-v8":"^4.0.16","vite-tsconfig-paths":"^6.0.4","@testing-library/dom":"^10.4.1","@vitejs/plugin-react":"^5.1.2","@testing-library/react":"^16.3.1","@testing-library/jest-dom":"^6.9.1","@testing-library/user-event":"^14.6.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react_0.3.1_1769997023724_0.9728837217774142","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@a2ui-sdk/react","version":"0.4.0","description":"A2UI SDK for React","homepage":"https://a2ui-sdk.js.org/","repository":{"type":"git","url":"git+ssh://git@github.com/easyops-cn/a2ui-sdk.git","directory":"packages/react"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./0.8":{"types":"./dist/0.8/index.d.ts","default":"./dist/0.8/index.js"},"./0.8/standard-catalog":{"types":"./dist/0.8/standard-catalog/index.d.ts","default":"./dist/0.8/standard-catalog/index.js"},"./0.9":{"types":"./dist/0.9/index.d.ts","default":"./dist/0.9/index.js"},"./0.9/standard-catalog":{"types":"./dist/0.9/standard-catalog/index.d.ts","default":"./dist/0.9/standard-catalog/index.js"}},"scripts":{"dev":"vite","build":"tsc -b tsconfig.build.json && vite build","test":"vitest","test:run":"vitest run","test:coverage":"vitest run --coverage"},"license":"Apache-2.0","peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0"},"devDependencies":{"@testing-library/dom":"^10.4.1","@testing-library/jest-dom":"^6.9.1","@testing-library/react":"^16.3.1","@testing-library/user-event":"^14.6.1","@vitejs/plugin-react":"^5.1.2","@vitest/coverage-v8":"^4.0.16","jsdom":"^27.4.0","react":"^19.2.3","react-dom":"^19.2.3","typescript":"~5.9.3","vite":"^7.3.1","vite-plugin-dts":"^4.5.4","vite-tsconfig-paths":"^6.0.4","vitest":"^4.0.16"},"dependencies":{"@a2ui-sdk/types":"0.4.0","@a2ui-sdk/utils":"0.4.0","@radix-ui/react-checkbox":"^1.3.3","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-label":"^2.1.8","@radix-ui/react-select":"^2.2.6","@radix-ui/react-separator":"^1.1.8","@radix-ui/react-slider":"^1.3.6","@radix-ui/react-slot":"^1.2.4","@radix-ui/react-tabs":"^1.1.13","class-variance-authority":"^0.7.1","clsx":"^2.1.1","lucide-react":"^0.562.0","tailwind-merge":"^3.4.0"},"_id":"@a2ui-sdk/react@0.4.0","gitHead":"1543427bd792b1d6b2ba6c3f5f5d154f6ec480a9","bugs":{"url":"https://github.com/easyops-cn/a2ui-sdk/issues"},"_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-d6LVKkANvnFMI1fEp6Q6JGROSbSmLl5qOcBgDR04F/NSkyAHa1s57S+YeFydomXCANvSoyZjPnU3pjZ2xe4mEg==","shasum":"11d9de5f56dcc41a4660ca329e2e21a1726e0522","tarball":"https://registry.npmjs.org/@a2ui-sdk/react/-/react-0.4.0.tgz","fileCount":174,"unpackedSize":178335,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCO/jlw3U53l4vxpDWdqxKjGdPFYD8gsWqwxyLeLi7mWAIhANtjPnwoS5tb+qlMqAJ0Jbazb2x56btF23kC2X2dVy5U"}]},"_npmUser":{"name":"easyops-eve","email":"wangshenwei@foxmail.com"},"directories":{},"maintainers":[{"name":"weareoutman","email":"wangshenwei@qq.com"},{"name":"easyops-eve","email":"wangshenwei@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react_0.4.0_1770017980751_0.537457109055606"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-13T07:35:06.506Z","modified":"2026-02-02T07:39:41.066Z","0.0.0":"2026-01-13T07:35:06.730Z","0.0.2":"2026-01-13T07:57:15.956Z","0.0.3":"2026-01-13T08:40:03.725Z","0.1.0":"2026-01-13T11:44:06.613Z","0.1.1":"2026-01-13T15:18:50.960Z","0.2.0":"2026-01-14T03:47:55.535Z","0.2.1":"2026-01-14T08:19:47.171Z","0.2.2":"2026-01-27T10:30:29.741Z","0.3.0":"2026-01-28T02:11:09.663Z","0.3.1":"2026-02-02T01:50:23.871Z","0.4.0":"2026-02-02T07:39:40.900Z"},"bugs":{"url":"https://github.com/easyops-cn/a2ui-sdk/issues"},"license":"Apache-2.0","homepage":"https://a2ui-sdk.js.org/","repository":{"type":"git","url":"git+ssh://git@github.com/easyops-cn/a2ui-sdk.git","directory":"packages/react"},"description":"A2UI SDK for React","maintainers":[{"name":"weareoutman","email":"wangshenwei@qq.com"},{"name":"easyops-eve","email":"wangshenwei@foxmail.com"}],"readme":"# @a2ui-sdk/react\n\nReact implementation for rendering A2UI protocol. This package provides React components and hooks for integrating A2UI renderer into your application.\n\n## Installation\n\n```bash\nnpm install @a2ui-sdk/react\n```\n\n### Peer Dependencies\n\n- `react` ^19.0.0\n- `react-dom` ^19.0.0\n\n## Usage\n\n### v0.8\n\n#### Basic Usage\n\n```tsx\nimport {\n  A2UIProvider,\n  A2UIRenderer,\n  type A2UIMessage,\n  type A2UIAction,\n} from '@a2ui-sdk/react/0.8'\n\nfunction App() {\n  const messages: A2UIMessage[] = [\n    // A2UI messages from your backend\n  ]\n\n  const handleAction = (action: A2UIAction) => {\n    console.log('Action received:', action)\n  }\n\n  return (\n    <A2UIProvider messages={messages}>\n      <A2UIRenderer onAction={handleAction} />\n    </A2UIProvider>\n  )\n}\n```\n\n#### Custom Components\n\nYou can override default components or add new custom components via the `catalog` prop on `A2UIProvider`. Use `standardCatalog` as a base and extend it with your custom components.\n\n```tsx\nimport {\n  A2UIProvider,\n  A2UIRenderer,\n  standardCatalog,\n  type A2UIMessage,\n  type A2UIAction,\n} from '@a2ui-sdk/react/0.8'\n\n// Extend standard catalog with custom components\nconst customCatalog = {\n  ...standardCatalog,\n  components: {\n    ...standardCatalog.components,\n    // Override default Button component with a custom one\n    Button: CustomButtonComponent,\n    // Add a new custom Switch component\n    Switch: CustomSwitchComponent,\n  },\n}\n\nfunction App() {\n  return (\n    <A2UIProvider catalog={customCatalog} messages={messages}>\n      <A2UIRenderer onAction={handleAction} />\n    </A2UIProvider>\n  )\n}\n```\n\nImplementing a custom button component with action dispatch:\n\n```tsx\nimport {\n  useDispatchAction,\n  ComponentRenderer,\n  type ButtonComponentProps,\n} from '@a2ui-sdk/react/0.8'\n\nexport function CustomButtonComponent({\n  surfaceId,\n  componentId,\n  child,\n  action,\n}: ButtonComponentProps) {\n  const dispatchAction = useDispatchAction()\n\n  const handleClick = () => {\n    if (action) {\n      dispatchAction(surfaceId, componentId, action)\n    }\n  }\n\n  return (\n    <button onClick={handleClick}>\n      <ComponentRenderer surfaceId={surfaceId} componentId={child} />\n    </button>\n  )\n}\n```\n\nImplementing a custom switch component with data binding:\n\n```tsx\nimport { useDataBinding, useFormBinding } from '@a2ui-sdk/react/0.8'\n\nexport function CustomSwitchComponent({\n  surfaceId,\n  componentId,\n  label,\n  value,\n}: SwitchComponentProps) {\n  const labelText = useDataBinding<string>(surfaceId, label, '')\n  const [checked, setChecked] = useFormBinding<boolean>(surfaceId, value, false)\n\n  const handleChange = (newChecked: boolean) => {\n    setChecked(newChecked)\n  }\n\n  return (\n    <Switch checked={checked} onChange={handleChange}>\n      {labelText}\n    </Switch>\n  )\n}\n```\n\n### v0.9\n\n#### Basic Usage\n\n```tsx\nimport {\n  A2UIProvider,\n  A2UIRenderer,\n  type A2UIMessage,\n  type A2UIAction,\n} from '@a2ui-sdk/react/0.9'\n\nfunction App() {\n  const messages: A2UIMessage[] = [\n    // A2UI messages from your backend\n  ]\n\n  const handleAction = (action: A2UIAction) => {\n    console.log('Action:', action.name, action.context)\n  }\n\n  return (\n    <A2UIProvider messages={messages}>\n      <A2UIRenderer onAction={handleAction} />\n    </A2UIProvider>\n  )\n}\n```\n\n#### Custom Components\n\nOverride or extend the standard catalog the same way as in v0.8:\n\n```tsx\nimport {\n  A2UIProvider,\n  A2UIRenderer,\n  standardCatalog,\n  type A2UIMessage,\n  type A2UIAction,\n} from '@a2ui-sdk/react/0.9'\n\n// Extend standard catalog with custom components\nconst customCatalog = {\n  ...standardCatalog,\n  components: {\n    ...standardCatalog.components,\n    // Override default components or add new ones\n    Button: CustomButtonComponent,\n  },\n}\n\nfunction App() {\n  return (\n    <A2UIProvider catalog={customCatalog} messages={messages}>\n      <A2UIRenderer onAction={handleAction} />\n    </A2UIProvider>\n  )\n}\n```\n\n## Exports\n\n### v0.9 (Latest)\n\n```tsx\nimport {\n  // Components\n  A2UIProvider,\n  A2UIRenderer,\n  ComponentRenderer,\n\n  // Catalog\n  standardCatalog,\n\n  // Hooks\n  useDispatchAction,\n  useDataBinding,\n  useFormBinding,\n  useStringBinding,\n  useDataModel,\n  useValidation,\n  useSurfaceContext,\n  useScope,\n  useScopeBasePath,\n  useA2UIMessageHandler,\n\n  // Context Providers & Hooks\n  ActionProvider,\n  useActionContext,\n\n  // Types\n  type A2UIMessage,\n  type A2UIAction,\n  type A2UIProviderProps,\n  type A2UIRendererProps,\n  type ComponentsMap,\n  type Component,\n  type Action,\n  type DynamicValue,\n  type DynamicString,\n  type DynamicNumber,\n  type DynamicBoolean,\n  type DynamicStringList,\n  type ChildList,\n  type TemplateBinding,\n  type CheckRule,\n  type Checkable,\n  type ValidationResult,\n  type ScopeValue,\n  type DataModel,\n  type A2UIMessageHandler,\n} from '@a2ui-sdk/react/0.9'\n```\n\n### v0.8\n\n```tsx\nimport {\n  // Components\n  A2UIProvider,\n  A2UIRenderer,\n  ComponentRenderer,\n\n  // Catalog\n  standardCatalog,\n\n  // Hooks\n  useDispatchAction,\n  useDataBinding,\n  useFormBinding,\n  useSurfaceContext,\n  useDataModelContext,\n  useScope,\n  useScopeBasePath,\n  useA2UIMessageHandler,\n\n  // Context Providers & Hooks\n  ActionProvider,\n  useActionContext,\n\n  // Types\n  type A2UIMessage,\n  type A2UIAction,\n  type A2UIProviderProps,\n  type A2UIRendererProps,\n  type ComponentsMap,\n  type Action,\n  type ValueSource,\n  type ScopeValue,\n  type A2UIMessageHandler,\n} from '@a2ui-sdk/react/0.8'\n```\n\n### Namespace Import\n\n```tsx\nimport { v0_8, v0_9 } from '@a2ui-sdk/react'\n\n// Use v0.9 API\nconst { A2UIProvider, A2UIRenderer } = v0_9\n```\n\n## Incremental Message Handling\n\n**New in v0.8 & v0.9**: For applications that receive messages incrementally (e.g., via WebSocket or SSE), you can use the `useA2UIMessageHandler` hook to push new messages without clearing state. This preserves user edits.\n\n### Problem\n\nWhen using the `messages` prop on `A2UIProvider`, changing the messages array causes the provider to clear all state and reprocess from scratch. This loses user edits:\n\n```tsx\n// ❌ This loses user edits when new messages arrive\nfunction App() {\n  const [messages, setMessages] = useState<A2UIMessage[]>([])\n\n  useEffect(() => {\n    const ws = new WebSocket('ws://example.com')\n    ws.onmessage = (event) => {\n      const newMessage = JSON.parse(event.data)\n      setMessages((prev) => [...prev, newMessage]) // Triggers full clear & reprocess!\n    }\n  }, [])\n\n  return (\n    <A2UIProvider messages={messages}>\n      <A2UIRenderer onAction={handleAction} />\n    </A2UIProvider>\n  )\n}\n```\n\n### Solution\n\nUse `useA2UIMessageHandler` hook to process messages incrementally:\n\n```tsx\nimport {\n  A2UIProvider,\n  A2UIRenderer,\n  useA2UIMessageHandler,\n  type A2UIMessage,\n  type A2UIAction,\n} from '@a2ui-sdk/react/0.8' // or '@a2ui-sdk/react/0.9'\n\nfunction App() {\n  const handleAction = (action: A2UIAction) => {\n    console.log('Action:', action)\n  }\n\n  return (\n    <A2UIProvider>\n      <MessageHandler>\n        <A2UIRenderer onAction={handleAction} />\n      </MessageHandler>\n    </A2UIProvider>\n  )\n}\n\nfunction MessageHandler({ children }: { children: React.ReactNode }) {\n  const { processMessage } = useA2UIMessageHandler()\n\n  useEffect(() => {\n    // Listen for incremental updates\n    const ws = new WebSocket('ws://example.com')\n    ws.onmessage = (event) => {\n      const newMessage = JSON.parse(event.data)\n      processMessage(newMessage) // Incremental - preserves user edits!\n    }\n\n    return () => ws.close()\n  }, [processMessage])\n\n  return <>{children}</>\n}\n```\n\nThe `useA2UIMessageHandler` hook returns:\n\n- **`processMessage(message: A2UIMessage)`**: Process a single message incrementally\n- **`processMessages(messages: A2UIMessage[])`**: Process multiple messages in order\n- **`clear()`**: Clear all surfaces and state (rarely needed)\n\n## Hooks\n\n### useA2UIMessageHandler\n\nSee [Incremental Message Handling](#incremental-message-handling) above for usage details.\n\n### useDataBinding\n\nResolves a dynamic value from the data model:\n\n```tsx\nconst value = useDataBinding({ path: '/user/name' })\n// Returns the value at /user/name in the data model\n```\n\n### useFormBinding\n\nTwo-way binding for form components:\n\n```tsx\nconst [value, setValue] = useFormBinding({ path: '/form/email' })\n// value: current value\n// setValue: update the data model\n```\n\n### useDispatchAction\n\nDispatch actions from custom components:\n\n```tsx\nconst dispatch = useDispatchAction()\n\nconst handleClick = () => {\n  dispatch({\n    name: 'submit',\n    context: { formId: 'contact' },\n  })\n}\n```\n\n### useValidation\n\nValidate form inputs against check rules:\n\n```tsx\nconst { valid, errors } = useValidation(checks)\n// valid: boolean\n// errors: string[] - list of failed validation messages\n```\n\n### ActionProvider & useActionContext\n\nFor advanced use cases, you can create custom action handling middleware by using `ActionProvider` and `useActionContext` directly. This is useful when you need to intercept, transform, or augment actions before they reach your action handler.\n\n```tsx\nimport {\n  A2UIProvider,\n  A2UIRenderer,\n  ActionProvider,\n  useActionContext,\n} from '@a2ui-sdk/react/0.9'\n\nfunction ActionLogger({ children }: { children: React.ReactNode }) {\n  const { onAction } = useActionContext()\n\n  // You can access the action handler here\n  // and potentially wrap it with logging or other middleware logic\n\n  return <>{children}</>\n}\n\nfunction App() {\n  const handleAction = (action: A2UIAction) => {\n    console.log('Action:', action)\n  }\n\n  return (\n    <A2UIProvider messages={messages}>\n      <ActionProvider onAction={handleAction}>\n        <ActionLogger>\n          <A2UIRenderer />\n        </ActionLogger>\n      </ActionProvider>\n    </A2UIProvider>\n  )\n}\n```\n\n**Note:** In most cases, you don't need to use `ActionProvider` directly as `A2UIProvider` already includes it. Use this only for advanced customization scenarios.\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md"}