{"_id":"@boteteam/a2ui-custom-kit","_rev":"7-c1751e58e6aba54c450a640efa37a86d","name":"@boteteam/a2ui-custom-kit","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"@boteteam/a2ui-custom-kit","version":"0.0.1","keywords":["a2ui","custom-component","web-components"],"license":"MIT","_id":"@boteteam/a2ui-custom-kit@0.0.1","maintainers":[{"name":"wujian666","email":"sunboyjian@126.com"}],"dist":{"shasum":"2c4bb97a38fa0244f629828459173546c2afc5e1","tarball":"https://registry.npmjs.org/@boteteam/a2ui-custom-kit/-/a2ui-custom-kit-0.0.1.tgz","fileCount":38,"integrity":"sha512-RhFbFmSNe0UvLT5016hHUDV1eLVq/HMwNEEv8A0Klxwe49by49YyQC8XUg+zKmHLpdqPb9IRbuj0GMB8+Pssbg==","signatures":[{"sig":"MEQCIGNPokNabQRJIS1CSlyTq8e27oX3gAe6psoDPRGivjbtAiAqsLuES8NbI+y/IuPYFdqcOo5hcEEQ9xIQoz2XjJhTlQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":97139},"types":"dist/esm/index.d.ts","module":"dist/esm/index.js","authors":["wujian"],"exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","default":"./dist/esm/index.js"},"./react-runtime":{"types":"./dist/esm/react-runtime/index.d.ts","import":"./dist/esm/react-runtime/index.js","default":"./dist/esm/react-runtime/index.js"},"./remote-runtime":{"types":"./dist/esm/remote-runtime/index.d.ts","import":"./dist/esm/remote-runtime/index.js","default":"./dist/esm/remote-runtime/index.js"}},"gitHead":"f5bb5f14e88d183f5a89cefe94c7143e16ed0b6d","scripts":{"dev":"father dev","build":"father build"},"_npmUser":{"name":"wujian666","email":"sunboyjian@126.com"},"_npmVersion":"10.9.3","description":"博特 A2UI 自定义组件开发框架与工具集","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.25.76","@a2ui/web_core":"^0.9.2","@boteteam/types":"0.0.1","zod-to-json-schema":"^3.24.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"17.x","father":"^4.4.5","react-dom":"17.x","@types/react":"^17.0.0","@types/react-dom":"^17.0.0"},"peerDependencies":{"react":"^17.x","react-dom":"^17.x"},"_npmOperationalInternal":{"tmp":"tmp/a2ui-custom-kit_0.0.1_1778900460908_0.682217886817698","host":"s3://npm-registry-packages-npm-production"}},"0.0.40":{"name":"@boteteam/a2ui-custom-kit","version":"0.0.40","keywords":["a2ui","custom-component","web-components"],"license":"MIT","_id":"@boteteam/a2ui-custom-kit@0.0.40","maintainers":[{"name":"wujian666","email":"sunboyjian@126.com"}],"dist":{"shasum":"c880380296ee27d07ef8c0ec4871b1e8674cb954","tarball":"https://registry.npmjs.org/@boteteam/a2ui-custom-kit/-/a2ui-custom-kit-0.0.40.tgz","fileCount":54,"integrity":"sha512-DX7Z26hEteokt1RzdtAW3xxq2N8RFDV4m8An/GDo45dF3tdY/YGEpC/p6M7eyWZ5j4w87ZcoiIWySdjkKdpGKw==","signatures":[{"sig":"MEYCIQCHrl1hoZG2zVOUCEHTEHsIWHgUG2vuOMVq4aYjd+QrHgIhAPcc83R91TS+QiA6HkluBwDUCTjxcvOsFmUP5bPsGXK+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":109440},"types":"dist/esm/index.d.ts","module":"dist/esm/index.js","authors":["wujian"],"exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","default":"./dist/esm/index.js"},"./react-runtime":{"types":"./dist/esm/react-runtime/index.d.ts","import":"./dist/esm/react-runtime/index.js","default":"./dist/esm/react-runtime/index.js"},"./remote-runtime":{"types":"./dist/esm/remote-runtime/index.d.ts","import":"./dist/esm/remote-runtime/index.js","default":"./dist/esm/remote-runtime/index.js"}},"gitHead":"4a722be82273acc055f37c7a5bdf59cd57ddcd57","scripts":{"dev":"father dev","build":"father build"},"_npmUser":{"name":"wujian666","email":"sunboyjian@126.com"},"_npmVersion":"lerna/4.0.0/node@v22.20.0+arm64 (darwin)","description":"博特 A2UI 自定义组件开发框架与工具集","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.25.76","@boteteam/types":"^0.0.40","zod-to-json-schema":"^3.24.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"17.x","father":"^4.4.5","react-dom":"17.x","@types/react":"^17.0.0","@types/react-dom":"^17.0.0"},"peerDependencies":{"react":"^17.x","react-dom":"^17.x"},"_npmOperationalInternal":{"tmp":"tmp/a2ui-custom-kit_0.0.40_1778911208782_0.7095420610908074","host":"s3://npm-registry-packages-npm-production"}},"0.0.41":{"name":"@boteteam/a2ui-custom-kit","version":"0.0.41","keywords":["a2ui","custom-component","web-components"],"license":"MIT","_id":"@boteteam/a2ui-custom-kit@0.0.41","maintainers":[{"name":"wujian666","email":"sunboyjian@126.com"}],"dist":{"shasum":"b218a7641f64fe21fed9be561b7aad2e9c259ec1","tarball":"https://registry.npmjs.org/@boteteam/a2ui-custom-kit/-/a2ui-custom-kit-0.0.41.tgz","fileCount":40,"integrity":"sha512-DDE3OnewOypCfgO8um6hdXVq/ZCkSEjqOs8aPJh3NZ72koBN9RY4K+pF/36DBQVW2XMd/Ronw1g2A7gErAC7EA==","signatures":[{"sig":"MEYCIQCGL3L/Dflpgzpt2hzcPwHVxLtDsVV2k2CO7FpW7FPkrgIhANonXJHKa/xwT5NW1gnHV4+45Z2FrI+cIHDRUm5VpWva","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":100488},"types":"dist/esm/index.d.ts","module":"dist/esm/index.js","authors":["wujian"],"exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","default":"./dist/esm/index.js"},"./react-runtime":{"types":"./dist/esm/react-runtime/index.d.ts","import":"./dist/esm/react-runtime/index.js","default":"./dist/esm/react-runtime/index.js"},"./remote-runtime":{"types":"./dist/esm/remote-runtime/index.d.ts","import":"./dist/esm/remote-runtime/index.js","default":"./dist/esm/remote-runtime/index.js"}},"gitHead":"a73d4dae2afabaa832f72ba49c6d2853c8d35c76","scripts":{"dev":"father dev","build":"father build"},"_npmUser":{"name":"wujian666","email":"sunboyjian@126.com"},"_npmVersion":"lerna/4.0.0/node@v22.20.0+arm64 (darwin)","description":"博特 A2UI 自定义组件开发框架与工具集","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.25.76","@boteteam/types":"^0.0.41","zod-to-json-schema":"^3.24.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"17.x","father":"^4.4.5","react-dom":"17.x","@types/react":"^17.0.0","@types/react-dom":"^17.0.0"},"peerDependencies":{"react":"^17.x","react-dom":"^17.x"},"_npmOperationalInternal":{"tmp":"tmp/a2ui-custom-kit_0.0.41_1779259543961_0.038102112350107964","host":"s3://npm-registry-packages-npm-production"}},"0.0.41-alpha.1":{"name":"@boteteam/a2ui-custom-kit","version":"0.0.41-alpha.1","keywords":["a2ui","custom-component","web-components"],"license":"MIT","_id":"@boteteam/a2ui-custom-kit@0.0.41-alpha.1","maintainers":[{"name":"wujian666","email":"sunboyjian@126.com"}],"dist":{"shasum":"1ca9ac88e6a28e72e8e2240dadd6a9e82c17ee4f","tarball":"https://registry.npmjs.org/@boteteam/a2ui-custom-kit/-/a2ui-custom-kit-0.0.41-alpha.1.tgz","fileCount":34,"integrity":"sha512-YLSywYnF7rLF1ske6l2TjKGbjH1GNEt8CoQAYkdXGmW2jzIEjjdzsV4m41pe2OKWdKbhzkyZYroXZgqdkrRtzw==","signatures":[{"sig":"MEUCIDem6BKM2bA/tzBJ5cdtS+3+0hW0/kgOpA5QfGK8kO4NAiEAqfXgW7IeeMstuOD92fqyxb1oErReX4Iv3mlH59axat8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56026},"types":"dist/esm/index.d.ts","module":"dist/esm/index.js","authors":["wujian"],"exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","default":"./dist/esm/index.js"},"./react-runtime":{"types":"./dist/esm/react-runtime/index.d.ts","import":"./dist/esm/react-runtime/index.js","default":"./dist/esm/react-runtime/index.js"},"./remote-runtime":{"types":"./dist/esm/remote-runtime/index.d.ts","import":"./dist/esm/remote-runtime/index.js","default":"./dist/esm/remote-runtime/index.js"}},"gitHead":"a73d4dae2afabaa832f72ba49c6d2853c8d35c76","scripts":{"dev":"father dev","build":"father build"},"_npmUser":{"name":"wujian666","email":"sunboyjian@126.com"},"_npmVersion":"10.9.3","description":"博特 A2UI 自定义组件开发框架与工具集","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.25.76","@boteteam/types":"^0.0.41","zod-to-json-schema":"^3.24.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"17.x","father":"^4.4.5","react-dom":"17.x","@types/react":"^17.0.0","@types/react-dom":"^17.0.0"},"peerDependencies":{"react":"^17.x","react-dom":"^17.x"},"_npmOperationalInternal":{"tmp":"tmp/a2ui-custom-kit_0.0.41-alpha.1_1779516645132_0.48284119288486504","host":"s3://npm-registry-packages-npm-production"}},"0.0.41-alpha.2":{"name":"@boteteam/a2ui-custom-kit","version":"0.0.41-alpha.2","keywords":["a2ui","custom-component","web-components"],"license":"MIT","_id":"@boteteam/a2ui-custom-kit@0.0.41-alpha.2","maintainers":[{"name":"wujian666","email":"sunboyjian@126.com"}],"dist":{"shasum":"849bcdff092adac5e1f219204350c1435dcd6aae","tarball":"https://registry.npmjs.org/@boteteam/a2ui-custom-kit/-/a2ui-custom-kit-0.0.41-alpha.2.tgz","fileCount":46,"integrity":"sha512-REIC/+za3sfeqQHlM46ZODdmFu3x+4FUja9k8PJKxWI622B8botW5JrU+ep8CWC9RzlzwkCcd7Xj/v37AEB2AQ==","signatures":[{"sig":"MEYCIQCNn+JVoqGjKM6+rDMCbmA8EhF85XxIObaCpFg7HRJ0aQIhAJRkwvolljiwr2Yorx/br8OTUkEdpUGFT3O4J9oJOglA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69576},"types":"dist/esm/index.d.ts","module":"dist/esm/index.js","authors":["wujian"],"exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","default":"./dist/esm/index.js"},"./react-runtime":{"types":"./dist/esm/react-runtime/index.d.ts","import":"./dist/esm/react-runtime/index.js","default":"./dist/esm/react-runtime/index.js"},"./remote-runtime":{"types":"./dist/esm/remote-runtime/index.d.ts","import":"./dist/esm/remote-runtime/index.js","default":"./dist/esm/remote-runtime/index.js"}},"gitHead":"a73d4dae2afabaa832f72ba49c6d2853c8d35c76","scripts":{"dev":"father dev","build":"father build"},"_npmUser":{"name":"wujian666","email":"sunboyjian@126.com"},"_npmVersion":"10.9.3","description":"博特 A2UI 自定义组件开发框架与工具集","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.25.76","@boteteam/types":"^0.0.41","zod-to-json-schema":"^3.24.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"17.x","father":"^4.4.5","react-dom":"17.x","@types/react":"^17.0.0","@types/react-dom":"^17.0.0"},"peerDependencies":{"react":"^17.x","react-dom":"^17.x"},"_npmOperationalInternal":{"tmp":"tmp/a2ui-custom-kit_0.0.41-alpha.2_1779689144267_0.9224908020640104","host":"s3://npm-registry-packages-npm-production"}},"0.0.42":{"name":"@boteteam/a2ui-custom-kit","version":"0.0.42","keywords":["a2ui","custom-component","web-components"],"license":"MIT","_id":"@boteteam/a2ui-custom-kit@0.0.42","maintainers":[{"name":"wujian666","email":"sunboyjian@126.com"}],"dist":{"shasum":"582d9cc24b00a151491a91b5d4a98d27dab87c05","tarball":"https://registry.npmjs.org/@boteteam/a2ui-custom-kit/-/a2ui-custom-kit-0.0.42.tgz","fileCount":46,"integrity":"sha512-umKSY837p/1GTGJbymKQ2F4RDKh053UAAMsqAWwAp7hFjtNVWAZ1iz0OcCFeD22QNwUnXJqsvQ4WBFh86aUU6g==","signatures":[{"sig":"MEYCIQDC63djaKPuNvoyCAAtFulA+AS6fUKmfR+lE/uw+Mhf6QIhAPFiLpE5imlibGUa9E+1PA6grX8wU0klsvGXnyhMAr7k","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69047},"types":"dist/esm/index.d.ts","module":"dist/esm/index.js","authors":["wujian"],"exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","default":"./dist/esm/index.js"},"./react-runtime":{"types":"./dist/esm/react-runtime/index.d.ts","import":"./dist/esm/react-runtime/index.js","default":"./dist/esm/react-runtime/index.js"},"./remote-runtime":{"types":"./dist/esm/remote-runtime/index.d.ts","import":"./dist/esm/remote-runtime/index.js","default":"./dist/esm/remote-runtime/index.js"}},"gitHead":"97d982fe556fbcfab0e08603e7e816f1e26a5910","scripts":{"dev":"father dev","build":"father build"},"_npmUser":{"name":"wujian666","email":"sunboyjian@126.com"},"_npmVersion":"lerna/4.0.0/node@v22.20.0+arm64 (darwin)","description":"博特 A2UI 自定义组件开发框架与工具集","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.25.76","@boteteam/types":"^0.0.42","zod-to-json-schema":"^3.24.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"17.x","father":"^4.4.5","react-dom":"17.x","@types/react":"^17.0.0","@types/react-dom":"^17.0.0"},"peerDependencies":{"react":"^17.x","react-dom":"^17.x"},"_npmOperationalInternal":{"tmp":"tmp/a2ui-custom-kit_0.0.42_1779848418728_0.2114190382859642","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@boteteam/a2ui-custom-kit","version":"0.1.0","description":"博特 A2UI 自定义组件开发框架与工具集","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","sideEffects":false,"exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","default":"./dist/esm/index.js"},"./remote-runtime":{"types":"./dist/esm/remote-runtime/index.d.ts","import":"./dist/esm/remote-runtime/index.js","default":"./dist/esm/remote-runtime/index.js"},"./react-runtime":{"types":"./dist/esm/react-runtime/index.d.ts","import":"./dist/esm/react-runtime/index.js","default":"./dist/esm/react-runtime/index.js"}},"scripts":{"dev":"father dev","build":"father build"},"keywords":["a2ui","custom-component","web-components"],"authors":["wujian"],"license":"MIT","publishConfig":{"access":"public"},"peerDependencies":{"react":"^17.x","react-dom":"^17.x"},"dependencies":{"zod":"^3.25.76","zod-to-json-schema":"^3.24.6"},"devDependencies":{"@types/react":"^17.0.0","@types/react-dom":"^17.0.0","father":"^4.4.5","react":"17.x","react-dom":"17.x"},"gitHead":"2e87d468eeb6ce7076781457d3790be2e3cf656b","_id":"@boteteam/a2ui-custom-kit@0.1.0","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-54JVKNG/wPQWeg4TJmwTiSpbjZMJxpPETrFHun6CP6ZmUV8HLI/JeS3xtoWKrkqVxAPqBNi0+hdnySCMGZcNvw==","shasum":"c42ea0825b00cb7235e0b4965e177a8e918a3ed6","tarball":"https://registry.npmjs.org/@boteteam/a2ui-custom-kit/-/a2ui-custom-kit-0.1.0.tgz","fileCount":34,"unpackedSize":60715,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICBDZRk2v8ouzp7rpdpZxqqsb6699US+X2g9I+Rl9d/rAiAsZohQt8V2EczyhgHrNnlfN4BxtoGNMv+9VZKHjRseag=="}]},"_npmUser":{"name":"wujian666","email":"sunboyjian@126.com"},"directories":{},"maintainers":[{"name":"wujian666","email":"sunboyjian@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/a2ui-custom-kit_0.1.0_1780476838322_0.6886621044365746"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-16T03:01:00.730Z","modified":"2026-06-03T08:53:58.614Z","0.0.1":"2026-05-16T03:01:01.087Z","0.0.40":"2026-05-16T06:00:08.941Z","0.0.41":"2026-05-20T06:45:44.133Z","0.0.41-alpha.1":"2026-05-23T06:10:45.269Z","0.0.41-alpha.2":"2026-05-25T06:05:44.419Z","0.0.42":"2026-05-27T02:20:18.859Z","0.1.0":"2026-06-03T08:53:58.493Z"},"license":"MIT","keywords":["a2ui","custom-component","web-components"],"description":"博特 A2UI 自定义组件开发框架与工具集","maintainers":[{"name":"wujian666","email":"sunboyjian@126.com"}],"readme":"# @boteteam/a2ui-custom-kit\n\n## 这个包是做什么的\n\n**帮你在 A2UI 里扩展「自己的那一块界面」。**\n\n**`@boteteam/a2ui-render`** 负责把协议消息画出来；当消息里出现**你们自定义的组件名**时，需要有人把这些名字**接到真正的实现**上。本包提供一套**更省事的做法**：约定组件有哪些属性、怎么注册进渲染器、用原生还是 React 来画等，减少和业务页面之间的重复胶水代码。\n\n若组件要打成独立脚本、在别的站点或微前端里加载，再对照 **`REMOTE_ESM_DEVELOPMENT.md`** 即可。\n\n**与 `@boteteam/a2ui-render` 的关系**：本包**不**声明对 `a2ui-render` 的依赖。**`A2UICustomComponentRegistry` 等类型**在 **`@boteteam/types`** 统一维护；本包从该处引用并再导出，便于只装 kit 时也能标注类型。业务页面若要渲染，再单独安装 **`@boteteam/a2ui-render`** 即可。\n\n## 怎么用\n\n1. 业务里同时依赖 **`@boteteam/a2ui-render`** 与本包。  \n2. 按 **`DEVELOPMENT_GUIDE.md`** 里推荐的步骤：先写组件的 API 描述，再写实际界面，最后**合并成注册表**交给 **`BaseRenderer` 的 `customComponents`**。  \n3. **`templates/`** 目录里有可直接拷贝改名的模板，适合从零起一个组件。\n\n最小串联关系可以理解为：\n\n- 本包：产出 **`customComponents`** 对象。  \n- **`BaseRenderer`**：接收 **`messages` + `customComponents`**，在界面上画出来。\n\n更细的步骤、字段约定和注意事项都在 **`DEVELOPMENT_GUIDE.md`**，本文不再展开。\n\n---\n\n\n","readmeFilename":"README.md"}