{"_id":"@allkic/lowcode-plugin-custom-component","_rev":"3-b04dc462a76c96562e2f0fd34dec41e0","name":"@allkic/lowcode-plugin-custom-component","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@allkic/lowcode-plugin-custom-component","version":"1.0.0","keywords":["lowcode","lowcode-engine","plugin","custom-component","wrapper"],"author":"","license":"MIT","_id":"@allkic/lowcode-plugin-custom-component@1.0.0","maintainers":[{"name":"dorabighead","email":"2378643343@qq.com"},{"name":"allkic01","email":"942623159@qq.com"}],"dist":{"shasum":"d48fa7d595de1a4baffc81995a7b7ce8edb86e63","tarball":"https://registry.npmjs.org/@allkic/lowcode-plugin-custom-component/-/lowcode-plugin-custom-component-1.0.0.tgz","fileCount":30,"integrity":"sha512-Li2ly8GYAYRTam3GVK+h4g41UVvZ1gvviSaGw+TD3ysdQcbzOUOe5ru0dkEVIO3JJLQ0x8ppSzt8qKf9E4i5sw==","signatures":[{"sig":"MEUCIQDCA/VsGkCFWXfbhuKt0rfyymZ/gP1M93HEr8XLMC7YxwIgPVWi32F9dBy2to2y7uBAboOZ4YwMim5Im4skFnE+gV8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":76029},"main":"lib/index.js","types":"lib/index.d.ts","module":"es/index.js","gitHead":"a73f8df103161ec9dfcea3b0fd4a8888a1efdb3f","scripts":{"dev":"tsc --watch --outDir lib --module commonjs","build":"npm run build:lib && npm run build:es","proto":"node ./scripts/proto.js","build:es":"tsc --outDir es --module es2015","build:lib":"tsc --outDir lib --module commonjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"dorabighead","email":"2378643343@qq.com"},"_npmVersion":"11.13.0","description":"Custom Component Wrapper Plugin for Allkic Lowcode Engine","directories":{},"_nodeVersion":"24.0.0","dependencies":{"@bufbuild/protobuf":"^2.7.0","@connectrpc/connect":"^2.1.0","@connectrpc/connect-web":"^2.1.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"glob":"^11.0.3","react":"^16.14.0","react-dom":"^16.14.0","typescript":"^4.9.5","@alifd/next":"^1.26.4","@types/react":"^16.8.3","@types/react-dom":"^16.8.2","protoc-gen-validate":"^1.0.11","@alilc/lowcode-types":"^1.1.1","@alilc/lowcode-utils":"^1.3.4","@alilc/lowcode-engine":"^1.1.2","@bufbuild/protoc-gen-es":"^2.7.0","@alilc/lowcode-react-renderer":"^1.0.18"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0 || ^18.0.0","react-dom":"^16.8.0 || ^17.0.0 || ^18.0.0","@alifd/next":"^1.0.0","@alilc/lowcode-types":"^1.0.0","@alilc/lowcode-utils":"^1.0.0","@alilc/lowcode-engine":"^1.0.0","@alilc/lowcode-react-renderer":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lowcode-plugin-custom-component_1.0.0_1784256361590_0.5017763035761791","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@allkic/lowcode-plugin-custom-component","version":"1.0.1","keywords":["lowcode","lowcode-engine","plugin","custom-component","wrapper"],"author":"","license":"MIT","_id":"@allkic/lowcode-plugin-custom-component@1.0.1","maintainers":[{"name":"dorabighead","email":"2378643343@qq.com"},{"name":"allkic01","email":"942623159@qq.com"}],"dist":{"shasum":"2a17a939ac9b50ce749e6ff556a32eb1e5563ec0","tarball":"https://registry.npmjs.org/@allkic/lowcode-plugin-custom-component/-/lowcode-plugin-custom-component-1.0.1.tgz","fileCount":30,"integrity":"sha512-FOV62NhiCefBfiWsqtU78Hn3Im+s/PJtZqv8ppIP4MZjj/LG3UhSh7T6POPLvKu4hbOuj3WJ3C2Hi12EtfV20Q==","signatures":[{"sig":"MEUCIQDWq9mwLOXyzIA0RFDmTMPdV49/u0sWeenCWUjQGMCKJAIgXTZYkf4DZySF6KH3LcIYorAybXDMLc9rrCuk5ibMnYY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":76971},"main":"lib/index.js","types":"lib/index.d.ts","module":"es/index.js","gitHead":"05d1fc71facd5c5c6daf231adf3fca6e8b106539","scripts":{"dev":"tsc --watch --outDir lib --module commonjs","build":"npm run build:lib && npm run build:es","proto":"node ./scripts/proto.js","build:es":"tsc --outDir es --module es2015","build:lib":"tsc --outDir lib --module commonjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"dorabighead","email":"2378643343@qq.com"},"_npmVersion":"11.13.0","description":"Custom Component Wrapper Plugin for Allkic Lowcode Engine","directories":{},"_nodeVersion":"24.0.0","dependencies":{"@bufbuild/protobuf":"^2.7.0","@connectrpc/connect":"^2.1.0","@connectrpc/connect-web":"^2.1.0","@allkic/lowcode-plugin-ai-assistant":"^1.3.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"glob":"^11.0.3","react":"^16.14.0","react-dom":"^16.14.0","typescript":"^4.9.5","@alifd/next":"^1.26.4","@types/react":"^16.8.3","@types/react-dom":"^16.8.2","protoc-gen-validate":"^1.0.11","@alilc/lowcode-types":"^1.1.1","@alilc/lowcode-utils":"^1.3.4","@alilc/lowcode-engine":"^1.1.2","@bufbuild/protoc-gen-es":"^2.7.0","@alilc/lowcode-react-renderer":"^1.0.18"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0 || ^18.0.0","react-dom":"^16.8.0 || ^17.0.0 || ^18.0.0","@alifd/next":"^1.0.0","@alilc/lowcode-types":"^1.0.0","@alilc/lowcode-utils":"^1.0.0","@alilc/lowcode-engine":"^1.0.0","@alilc/lowcode-react-renderer":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lowcode-plugin-custom-component_1.0.1_1784700804728_0.14635356945152544","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@allkic/lowcode-plugin-custom-component","version":"1.0.2","description":"Custom Component Wrapper Plugin for Allkic Lowcode Engine","main":"lib/index.js","module":"es/index.js","types":"lib/index.d.ts","scripts":{"build":"npm run build:lib && npm run build:es","build:lib":"tsc --outDir lib --module commonjs","build:es":"tsc --outDir es --module es2015","dev":"tsc --watch --outDir lib --module commonjs","proto":"node ./scripts/proto.js","prepublishOnly":"npm run build"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"keywords":["lowcode","lowcode-engine","plugin","custom-component","wrapper"],"author":"","license":"MIT","dependencies":{"@allkic/lowcode-plugin-ai-assistant":"^1.3.0","@bufbuild/protobuf":"^2.7.0","@connectrpc/connect":"^2.1.0","@connectrpc/connect-web":"^2.1.0"},"peerDependencies":{"@alifd/next":"^1.0.0","@alilc/lowcode-engine":"^1.0.0","@alilc/lowcode-react-renderer":"^1.0.0","@alilc/lowcode-types":"^1.0.0","@alilc/lowcode-utils":"^1.0.0","react":"^16.8.0 || ^17.0.0 || ^18.0.0","react-dom":"^16.8.0 || ^17.0.0 || ^18.0.0"},"devDependencies":{"@alifd/next":"^1.26.4","@alilc/lowcode-engine":"^1.1.2","@alilc/lowcode-react-renderer":"^1.0.18","@alilc/lowcode-types":"^1.1.1","@alilc/lowcode-utils":"^1.3.4","@bufbuild/protoc-gen-es":"^2.7.0","@types/react":"^16.8.3","@types/react-dom":"^16.8.2","glob":"^11.0.3","protoc-gen-validate":"^1.0.11","react":"^16.14.0","react-dom":"^16.14.0","typescript":"^4.9.5"},"gitHead":"05d1fc71facd5c5c6daf231adf3fca6e8b106539","_id":"@allkic/lowcode-plugin-custom-component@1.0.2","_nodeVersion":"24.0.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-jwZo3Q3ZU6Tg+7x3WQSqB1pVZ6BUynR62tP1XtuCX+OozmBD+ypHQ6nAe8JFs/DvfoZ0lVJ4OnPCf3RdL+WvCw==","shasum":"6f549cb502930d5cf2f4f9928d9bb901a0146c23","tarball":"https://registry.npmjs.org/@allkic/lowcode-plugin-custom-component/-/lowcode-plugin-custom-component-1.0.2.tgz","fileCount":30,"unpackedSize":78754,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDXwfuKiU9g3hDGT0DJjWxmm0ujc7TXN8gdLewYninrqwIgcqV3nC4KWdBjHTRKNPL6GcmRqd1frEN9Ct/ufWJZ8VU="}]},"_npmUser":{"name":"dorabighead","email":"2378643343@qq.com"},"directories":{},"maintainers":[{"name":"dorabighead","email":"2378643343@qq.com"},{"name":"allkic01","email":"942623159@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lowcode-plugin-custom-component_1.0.2_1784701511673_0.5894692086085429"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-17T02:46:01.388Z","modified":"2026-07-22T06:25:11.990Z","1.0.0":"2026-07-17T02:46:01.714Z","1.0.1":"2026-07-22T06:13:24.890Z","1.0.2":"2026-07-22T06:25:11.814Z"},"license":"MIT","keywords":["lowcode","lowcode-engine","plugin","custom-component","wrapper"],"description":"Custom Component Wrapper Plugin for Allkic Lowcode Engine","maintainers":[{"name":"dorabighead","email":"2378643343@qq.com"},{"name":"allkic01","email":"942623159@qq.com"}],"readme":"# @allkic/lowcode-plugin-custom-component\r\n\r\n自定义组件封装插件，用于阿里低代码引擎。\r\n\r\n## 功能\r\n\r\n- 在顶部导航栏添加\"封装组件\"和\"查看组件\"按钮\r\n- 选择画布中的组件进行封装保存\r\n- 查看和管理已封装的自定义组件\r\n- 组件数据持久化在 MCP HTTP Server 的 SQLite 数据库（`custom_components` 表）\r\n\r\n## 配置\r\n\r\n```typescript\r\nawait plugins.register(CustomComponentPlugin, {\r\n  apiBaseUrl: 'http://localhost:4000', // MCP HTTP Server 地址\r\n  teamId: 'team_001',                   // 可选，团队 ID\r\n});\r\n```\r\n\r\n## API\r\n\r\n| 方法 | 路径 | 说明 |\r\n|------|------|------|\r\n| GET | `/api/custom-components` | 获取列表 |\r\n| GET | `/api/custom-components/:id` | 获取详情 |\r\n| POST | `/api/custom-components` | 创建封装组件 |\r\n| DELETE | `/api/custom-components/:id` | 删除封装组件 |\r\n\r\n## 安装\r\n\r\n```bash\r\nnpm install @allkic/lowcode-plugin-custom-component\r\n```\r\n\r\n## 使用\r\n\r\n```typescript\r\nimport CustomComponentPlugin from '@allkic/lowcode-plugin-custom-component';\r\n\r\n// 注册插件\r\nawait plugins.register(CustomComponentPlugin);\r\n```\r\n\r\n## 开发\r\n\r\n```bash\r\n# 安装依赖\r\nnpm install\r\n\r\n# 开发模式（监听文件变化）\r\nnpm run dev\r\n\r\n# 构建\r\nnpm run build\r\n```\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md"}