@uibot/cli 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/cli.js +152 -148
- package/dist/commands/app.d.ts +10 -0
- package/dist/commands/resource.d.ts +1 -0
- package/dist/distribution-snapshot.d.ts +38 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12029 -214
- package/dist/resource-runtime.d.ts +1 -0
- package/dist/resources/bundle.json +1 -1
- package/dist/shells/shadcn-admin-shell.yaml +5 -4
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/licenses/UIBot-LICENSE +21 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/licenses/blocks-icons-LICENSE +46 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/licenses/shadcn-THIRD_PARTY_LICENSE +21 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-apps.json +61 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-chats.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-dashboard.json +70 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-error-401.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-error-403.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-error-404.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-error-500.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-error-503.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-forgot-password.json +59 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-help.json +53 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-otp.json +59 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-overview.json +62 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-settings-account.json +61 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-settings-appearance.json +61 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-settings-display.json +61 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-settings-notifications.json +61 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-settings-profile.json +61 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-settings.json +65 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-shell.json +160 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-sign-in-2.json +67 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-sign-in.json +59 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-sign-up.json +59 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-tasks.json +66 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/admin-users.json +66 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/ai-chat.json +74 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/analytics-dashboard.json +65 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/app-shell-floating.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/app-shell-icon-rail.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/app-shell-inset.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/app-shell-settings.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/app-shell-sidebar.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/app-shell-workspace.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/auth-centered.json +61 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/auth-enterprise.json +61 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/auth-recovery.json +64 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/auth-registration.json +63 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/auth-split.json +67 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/auth.json +61 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/blog.json +64 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/charts.json +211 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/chat-artifact.json +49 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/chat-focused.json +49 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/chat-history.json +49 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/chat-knowledge.json +49 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/chat-support.json +49 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/chat-workspace.json +136 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/collection-shared.json +23 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/commerce-workspace.json +69 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/console-billing.json +68 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/console-page.json +289 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/console-shell.json +29 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/content.json +444 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/creation-shared.json +24 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/crm-workspace.json +73 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/crm.json +67 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/dashboard.json +147 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/data-studio.json +368 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/data-table.json +242 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/data.json +398 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/document-assistant.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/document-library.json +49 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/document-reading.json +49 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/document-workspace.json +164 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/document-writing.json +49 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/drilldown-menu.json +233 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/ecommerce.json +65 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/education-workspace.json +82 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/feedback.json +331 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/field.json +164 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/form.json +429 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/grid.json +188 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/interactive.json +355 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/item-grid.json +219 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/kanban.json +154 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/layout.json +771 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/lms.json +74 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/marketing.json +402 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/nav.json +257 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/portfolio.json +62 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/presentation.json +454 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/pricing.json +63 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/primitives.json +360 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/saas-landing.json +60 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sections.json +734 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/settings.json +72 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/shadcn-admin-shell.json +49 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/shadcn-admin.json +77 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-01.json +42 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-02.json +42 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-03.json +30 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-04.json +30 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-05.json +36 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-06.json +42 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-07.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-08.json +54 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-09.json +36 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-10.json +66 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-11.json +30 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-12.json +48 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-13.json +30 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-14.json +30 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-15.json +84 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-16.json +66 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-drilldown.json +29 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/sidebar-primitives.json +155 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/store.json +75 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/support-inbox.json +63 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/team-directory.json +59 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/uibot-base.json +30 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/r/workspace.json +174 -0
- package/dist/snapshots/b21e710e6bf4850f18adb9af1b9d48aa59852516ad54fa63926aed9b07943545/snapshot.json +1 -0
- package/dist/templates/auth.yaml +84 -67
- package/dist/templates/shadcn-admin.yaml +12210 -122
- package/package.json +9 -9
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "document-workspace",
|
|
4
|
+
"type": "registry:ui",
|
|
5
|
+
"description": "Rich document editing using the shared editor and host-owned revision/CAS client.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"react@19.3.0",
|
|
8
|
+
"@uibot/document-editor@0.19.0"
|
|
9
|
+
],
|
|
10
|
+
"registryDependencies": [
|
|
11
|
+
"@uibot/uibot-base"
|
|
12
|
+
],
|
|
13
|
+
"files": [
|
|
14
|
+
{
|
|
15
|
+
"path": "components/uibot/document-workspace.tsx",
|
|
16
|
+
"target": "components/uibot/document-workspace.tsx",
|
|
17
|
+
"content": "import { createElement } from \"react\";\nimport { DocumentWorkspace as View } from \"@uibot/document-editor/spec\";\nexport function DocumentWorkspace(props: Record<string, unknown>) {\n return createElement(View, props);\n}\n",
|
|
18
|
+
"type": "registry:ui"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"path": "components/uibot/document-workspace.uibot.json",
|
|
22
|
+
"target": "components/uibot/document-workspace.uibot.json",
|
|
23
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"document-workspace\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"DocumentWorkspace\",\n \"export\": \"DocumentWorkspace\",\n \"module\": \"document-workspace.tsx\",\n \"catalog\": {\n \"name\": \"DocumentWorkspace\",\n \"description\": \"Rich document editing using the shared editor and host-owned revision/CAS client.\",\n \"category\": \"feature\",\n \"level\": \"L2\",\n \"props\": {\n \"variant\": {\n \"enum\": [\n \"writing\",\n \"reading\",\n \"library\",\n \"assistant\"\n ],\n \"default\": \"writing\"\n },\n \"bindingId\": {\n \"type\": \"string\",\n \"default\": \"document\"\n },\n \"title\": {\n \"type\": \"string\",\n \"default\": \"Untitled / 无标题\"\n },\n \"markdown\": {\n \"type\": \"string\",\n \"default\": \"# Your next idea\\n\\nWrite something useful.\"\n },\n \"readOnly\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"autoSaveMs\": {\n \"type\": \"number\",\n \"default\": 1500\n },\n \"locale\": {\n \"enum\": [\n \"zh-CN\",\n \"en\"\n ],\n \"default\": \"zh-CN\"\n },\n \"previewState\": {\n \"enum\": [\n \"ready\",\n \"empty\",\n \"loading\",\n \"error\",\n \"conflict\",\n \"readonly\"\n ],\n \"default\": \"ready\"\n }\n },\n \"events\": {},\n \"tags\": [\n \"interactive\",\n \"documents\",\n \"editor\",\n \"writing\"\n ],\n \"constraints\": [\n \"Inject an authorized document/client binding. Local preview saves are not persistence receipts.\"\n ]\n }\n }\n ]\n}\n",
|
|
24
|
+
"type": "registry:ui"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"meta": {
|
|
28
|
+
"category": "feature",
|
|
29
|
+
"level": "L2",
|
|
30
|
+
"props": {
|
|
31
|
+
"variant": {
|
|
32
|
+
"enum": [
|
|
33
|
+
"writing",
|
|
34
|
+
"reading",
|
|
35
|
+
"library",
|
|
36
|
+
"assistant"
|
|
37
|
+
],
|
|
38
|
+
"default": "writing"
|
|
39
|
+
},
|
|
40
|
+
"bindingId": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"default": "document"
|
|
43
|
+
},
|
|
44
|
+
"title": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"default": "Untitled / 无标题"
|
|
47
|
+
},
|
|
48
|
+
"markdown": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"default": "# Your next idea\n\nWrite something useful."
|
|
51
|
+
},
|
|
52
|
+
"readOnly": {
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"default": false
|
|
55
|
+
},
|
|
56
|
+
"autoSaveMs": {
|
|
57
|
+
"type": "number",
|
|
58
|
+
"default": 1500
|
|
59
|
+
},
|
|
60
|
+
"locale": {
|
|
61
|
+
"enum": [
|
|
62
|
+
"zh-CN",
|
|
63
|
+
"en"
|
|
64
|
+
],
|
|
65
|
+
"default": "zh-CN"
|
|
66
|
+
},
|
|
67
|
+
"previewState": {
|
|
68
|
+
"enum": [
|
|
69
|
+
"ready",
|
|
70
|
+
"empty",
|
|
71
|
+
"loading",
|
|
72
|
+
"error",
|
|
73
|
+
"conflict",
|
|
74
|
+
"readonly"
|
|
75
|
+
],
|
|
76
|
+
"default": "ready"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"events": {},
|
|
80
|
+
"constraints": [
|
|
81
|
+
"Inject an authorized document/client binding. Local preview saves are not persistence receipts."
|
|
82
|
+
],
|
|
83
|
+
"provides": [
|
|
84
|
+
"DocumentWorkspace"
|
|
85
|
+
],
|
|
86
|
+
"uibot": {
|
|
87
|
+
"schema": "uibot.registry.item.v1",
|
|
88
|
+
"item": "document-workspace",
|
|
89
|
+
"channel": "public",
|
|
90
|
+
"components": [
|
|
91
|
+
{
|
|
92
|
+
"name": "DocumentWorkspace",
|
|
93
|
+
"export": "DocumentWorkspace",
|
|
94
|
+
"module": "document-workspace.tsx",
|
|
95
|
+
"catalog": {
|
|
96
|
+
"name": "DocumentWorkspace",
|
|
97
|
+
"description": "Rich document editing using the shared editor and host-owned revision/CAS client.",
|
|
98
|
+
"category": "feature",
|
|
99
|
+
"level": "L2",
|
|
100
|
+
"props": {
|
|
101
|
+
"variant": {
|
|
102
|
+
"enum": [
|
|
103
|
+
"writing",
|
|
104
|
+
"reading",
|
|
105
|
+
"library",
|
|
106
|
+
"assistant"
|
|
107
|
+
],
|
|
108
|
+
"default": "writing"
|
|
109
|
+
},
|
|
110
|
+
"bindingId": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"default": "document"
|
|
113
|
+
},
|
|
114
|
+
"title": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"default": "Untitled / 无标题"
|
|
117
|
+
},
|
|
118
|
+
"markdown": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"default": "# Your next idea\n\nWrite something useful."
|
|
121
|
+
},
|
|
122
|
+
"readOnly": {
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"default": false
|
|
125
|
+
},
|
|
126
|
+
"autoSaveMs": {
|
|
127
|
+
"type": "number",
|
|
128
|
+
"default": 1500
|
|
129
|
+
},
|
|
130
|
+
"locale": {
|
|
131
|
+
"enum": [
|
|
132
|
+
"zh-CN",
|
|
133
|
+
"en"
|
|
134
|
+
],
|
|
135
|
+
"default": "zh-CN"
|
|
136
|
+
},
|
|
137
|
+
"previewState": {
|
|
138
|
+
"enum": [
|
|
139
|
+
"ready",
|
|
140
|
+
"empty",
|
|
141
|
+
"loading",
|
|
142
|
+
"error",
|
|
143
|
+
"conflict",
|
|
144
|
+
"readonly"
|
|
145
|
+
],
|
|
146
|
+
"default": "ready"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"events": {},
|
|
150
|
+
"tags": [
|
|
151
|
+
"interactive",
|
|
152
|
+
"documents",
|
|
153
|
+
"editor",
|
|
154
|
+
"writing"
|
|
155
|
+
],
|
|
156
|
+
"constraints": [
|
|
157
|
+
"Inject an authorized document/client binding. Local preview saves are not persistence receipts."
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "document-writing",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Focused writing: shared rich editor with revision-aware host saves and protected drafts.",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"@uibot/document-workspace"
|
|
8
|
+
],
|
|
9
|
+
"files": [
|
|
10
|
+
{
|
|
11
|
+
"path": "lib/uibot/templates/document-writing.uibot.yaml",
|
|
12
|
+
"target": "lib/uibot/templates/document-writing.uibot.yaml",
|
|
13
|
+
"content": "version: \"2.0\"\npages:\n - id: document-writing\n path: /document-writing\n title: Focused writing\n blocks:\n - id: document-writing-editor\n type: DocumentWorkspace\n props:\n bindingId: document\n title: Focused writing\n markdown: |-\n # Project notes\n\n Capture the decisions behind your next idea.\n\n ## Overview\n\n Write, select text, and explore the formatting controls.\n\n ## Next steps\n\n - Review the draft\n - Connect your document host\n readOnly: false\n autoSaveMs: 1500\n locale: zh-CN\n previewState: ready\n variant: writing\n",
|
|
14
|
+
"type": "registry:lib"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"path": "lib/uibot/templates/document-writing.uibot.json",
|
|
18
|
+
"target": "lib/uibot/templates/document-writing.uibot.json",
|
|
19
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"document-writing\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"document-writing.uibot.yaml\",\n \"contract\": {\n \"name\": \"document-writing\",\n \"description\": \"Focused writing: shared rich editor with revision-aware host saves and protected drafts.\",\n \"level\": \"L4\",\n \"category\": \"page\",\n \"keywords\": [\n \"document-writing\",\n \"专注写作\",\n \"Focused writing\",\n \"documents\",\n \"writing\"\n ],\n \"composedFrom\": [\n \"DocumentWorkspace\"\n ]\n }\n }\n}\n",
|
|
20
|
+
"type": "registry:lib"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"meta": {
|
|
24
|
+
"uibot": {
|
|
25
|
+
"schema": "uibot.registry.item.v1",
|
|
26
|
+
"item": "document-writing",
|
|
27
|
+
"channel": "public",
|
|
28
|
+
"template": {
|
|
29
|
+
"file": "document-writing.uibot.yaml",
|
|
30
|
+
"contract": {
|
|
31
|
+
"name": "document-writing",
|
|
32
|
+
"description": "Focused writing: shared rich editor with revision-aware host saves and protected drafts.",
|
|
33
|
+
"level": "L4",
|
|
34
|
+
"category": "page",
|
|
35
|
+
"keywords": [
|
|
36
|
+
"document-writing",
|
|
37
|
+
"专注写作",
|
|
38
|
+
"Focused writing",
|
|
39
|
+
"documents",
|
|
40
|
+
"writing"
|
|
41
|
+
],
|
|
42
|
+
"composedFrom": [
|
|
43
|
+
"DocumentWorkspace"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "drilldown-menu",
|
|
4
|
+
"type": "registry:ui",
|
|
5
|
+
"description": "Drilldown section navigation; host owns routing.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"react@19.3.0",
|
|
8
|
+
"clsx@2.1.1",
|
|
9
|
+
"lucide-react@1.56.0",
|
|
10
|
+
"radix-ui@1.4.3",
|
|
11
|
+
"tailwind-merge@3.7.0"
|
|
12
|
+
],
|
|
13
|
+
"registryDependencies": [
|
|
14
|
+
"@uibot/uibot-base"
|
|
15
|
+
],
|
|
16
|
+
"files": [
|
|
17
|
+
{
|
|
18
|
+
"path": "components/uibot/drilldown-menu.tsx",
|
|
19
|
+
"target": "components/uibot/drilldown-menu.tsx",
|
|
20
|
+
"content": "import type { RendererComponent } from \"@/lib/uibot-renderer\";\nimport type { ReactNode } from \"react\";\nimport { useState } from \"react\";\nimport {\n DrilldownNavigation,\n type DrilldownNavigationProps,\n type DrilldownSection,\n} from \"./sidebars/drilldown-navigation\";\nimport { DrilldownWorkspacePicker } from \"./sidebars/workspace-picker\";\nimport { Icon } from \"./icons\";\nimport {\n Braces,\n Building2,\n CreditCard,\n ChevronsUpDown,\n KeyRound,\n Bot,\n House,\n LayoutDashboard,\n MessageCircle,\n Boxes,\n Shield,\n Settings,\n Workflow,\n Wrench,\n} from \"lucide-react\";\nconst navigationIcons = {\n braces: Braces,\n workflow: Workflow,\n wrench: Wrench,\n house: House,\n \"building-2\": Building2,\n \"chevrons-up-down\": ChevronsUpDown,\n \"credit-card\": CreditCard,\n \"key-round\": KeyRound,\n bot: Bot,\n \"layout-dashboard\": LayoutDashboard,\n \"message-circle\": MessageCircle,\n boxes: Boxes,\n shield: Shield,\n settings: Settings,\n};\nimport { emit, records, text } from \"./interaction\";\n\nfunction SpecDrilldownNavigation({\n navigateOnEnter,\n ...props\n}: DrilldownNavigationProps & { navigateOnEnter: boolean }) {\n const [localPanel, setLocalPanel] = useState(props.defaultPanelId ?? null);\n const localRouting = navigateOnEnter && props.panelId === undefined;\n return (\n <DrilldownNavigation\n {...props}\n navigateOnEnter={navigateOnEnter}\n {...(localRouting\n ? {\n panelId: localPanel,\n onPanelChange: (id: string | null) => {\n setLocalPanel(id);\n props.onPanelChange?.(id);\n },\n }\n : {})}\n onEnter={(id, href) => {\n // Cached pages retain forms; leave their sidebar at its own route default.\n if (localRouting && href) setLocalPanel(props.defaultPanelId ?? null);\n props.onEnter?.(id, href);\n }}\n />\n );\n}\n\n/** Bounded JSON adapter; navigation and panel state remain explicit host events. */\nexport const DrilldownMenu: RendererComponent = (props, ctx) => {\n let remaining = 256;\n const ids = new Set<string>();\n const parse = (input: unknown, depth = 0): DrilldownSection[] => {\n if (depth > 5) throw new Error(\"DrilldownMenu supports at most six levels\");\n return records(input).map((section) => ({\n id: text(section.id),\n label: text(section.label),\n items: records(section.items).map((item) => {\n const id = text(item.id);\n if (--remaining < 0 || !id || ids.has(id))\n throw new Error(\"Invalid DrilldownMenu item IDs or size\");\n ids.add(id);\n const NavigationIcon = navigationIcons[text(item.icon) as keyof typeof navigationIcons];\n return {\n id,\n label: text(item.label),\n ...(typeof item.href === \"string\" ? { href: item.href } : {}),\n ...(typeof item.icon === \"string\"\n ? {\n icon: NavigationIcon ? (\n <NavigationIcon size={18} aria-hidden=\"true\" />\n ) : (\n <Icon name={item.icon} size={18} />\n ),\n }\n : {}),\n ...(Array.isArray(item.children) ? { children: parse(item.children, depth + 1) } : {}),\n };\n }),\n }));\n };\n return (\n <SpecDrilldownNavigation\n key={text(props.activeHref)}\n navigateOnEnter={props.navigateOnEnter === true}\n sections={parse(props.sections)}\n activeHref={text(props.activeHref)}\n {...(typeof props.panelId === \"string\" ? { panelId: props.panelId || null } : {})}\n defaultPanelId={text(props.defaultPanelId) || null}\n {...(ctx.element.events?.onPanelChange?.length\n ? {\n onPanelChange: (id: string | null) =>\n emit(ctx, \"onPanelChange\", { panelId: id ?? \"\" }, id ?? \"\"),\n }\n : {})}\n {...(ctx.element.events?.onNavigate?.length\n ? { onNavigate: (href: string) => emit(ctx, \"onNavigate\", { href }, href) }\n : {})}\n {...(ctx.element.events?.onEnter?.length || props.navigateOnEnter === true\n ? {\n onEnter: (id: string, href?: string) => {\n emit(ctx, \"onEnter\", { id, ...(href !== undefined ? { href } : {}) }, href ?? \"\");\n if (props.navigateOnEnter === true && href)\n void ctx.dispatch?.([{ action: \"Link\", params: { path: href } }]);\n },\n }\n : {})}\n showActiveLabel={props.showActiveLabel === true}\n label={text(props.label, \"Main navigation\")}\n backLabel={text(props.backLabel, \"Back to all sections\")}\n header={ctx.slots.header as ReactNode}\n panelHeader={\n (ctx.slots.panelHeader as ReactNode) ??\n (typeof props.workspaceLabel === \"string\" ? (\n <DrilldownWorkspacePicker\n label={props.workspaceLabel}\n {...(ctx.element.events?.onWorkspaceAction?.length\n ? {\n onCreate: () => emit(ctx, \"onWorkspaceAction\", { action: \"create\" }, \"create\"),\n onManage: () => emit(ctx, \"onWorkspaceAction\", { action: \"manage\" }, \"manage\"),\n }\n : {})}\n />\n ) : undefined)\n }\n footer={ctx.slots.footer as ReactNode}\n />\n );\n};\n",
|
|
21
|
+
"type": "registry:ui"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "components/uibot/sidebars/drilldown-navigation.tsx",
|
|
25
|
+
"target": "components/uibot/sidebars/drilldown-navigation.tsx",
|
|
26
|
+
"content": "import { useLayoutEffect, useRef, useState, type ReactNode, type MouseEvent } from \"react\";\nimport { ArrowLeft, ChevronRight } from \"lucide-react\";\n\nexport interface DrilldownItem {\n /** Unique within the entire navigation tree. */\n id: string;\n label: string;\n icon?: ReactNode;\n href?: string;\n children?: DrilldownSection[];\n}\nexport interface DrilldownSection {\n id: string;\n label?: string;\n items: DrilldownItem[];\n}\nexport interface DrilldownNavigationProps {\n sections: DrilldownSection[];\n activeHref?: string;\n /** null shows the root. Omit to keep panel state in this mounted session. */\n panelId?: string | null;\n defaultPanelId?: string | null;\n onPanelChange?: (panelId: string | null) => void;\n /** Only ordinary primary clicks are intercepted. No implicit router or storage. */\n onNavigate?: (href: string) => void;\n /** Called only when entering a branch with children. */\n onEnter?: (itemId: string, href?: string) => void;\n /** Render branch hrefs as links; onEnter handles ordinary clicks. */\n navigateOnEnter?: boolean;\n /** Show the active leaf label beside root branches. */\n showActiveLabel?: boolean;\n label?: string;\n backLabel?: string;\n header?: ReactNode;\n panelHeader?: ReactNode;\n footer?: ReactNode;\n className?: string;\n}\n\nfunction findPath(sections: DrilldownSection[], id: string): DrilldownItem[] | undefined {\n for (const section of sections)\n for (const item of section.items) {\n if (item.id === id && item.children?.length) return [item];\n const nested = item.children && findPath(item.children, id);\n if (nested) return [item, ...nested];\n }\n return undefined;\n}\nfunction containsHref(item: DrilldownItem, href?: string): boolean {\n return Boolean(\n href &&\n (item.href === href ||\n item.children?.some((section) => section.items.some((child) => containsHref(child, href)))),\n );\n}\nfunction activeLeafLabel(item: DrilldownItem, href?: string): string | undefined {\n if (!href) return undefined;\n for (const section of item.children ?? [])\n for (const child of section.items) {\n const label = activeLeafLabel(child, href);\n if (label) return label;\n }\n return item.children?.length ? undefined : item.href === href ? item.label : undefined;\n}\nexport function DrilldownNavigation({\n sections,\n activeHref,\n panelId,\n defaultPanelId = null,\n onPanelChange,\n onNavigate,\n onEnter,\n navigateOnEnter = false,\n showActiveLabel = false,\n label = \"Main navigation\",\n backLabel = \"Back to all sections\",\n header,\n panelHeader,\n footer,\n className = \"\",\n}: DrilldownNavigationProps) {\n const [localPanel, setLocalPanel] = useState(defaultPanelId);\n const selected = panelId === undefined ? localPanel : panelId;\n const path = selected ? (findPath(sections, selected) ?? []) : [];\n const current = path.at(-1);\n const visible = current?.children ?? sections;\n const heading = useRef<HTMLHeadingElement>(null);\n const buttons = useRef(new Map<string, HTMLElement>());\n const pendingFocus = useRef<string | true | null>(null);\n const canChange = panelId === undefined || Boolean(onPanelChange);\n const change = (id: string | null, focus: string | true) => {\n pendingFocus.current = focus;\n if (panelId === undefined) setLocalPanel(id);\n onPanelChange?.(id);\n };\n const back = () => {\n if (current && canChange) change(path.at(-2)?.id ?? null, current.id);\n };\n const enter = (item: DrilldownItem) => {\n if (!canChange) return;\n change(item.id, true);\n onEnter?.(item.id, item.href);\n };\n useLayoutEffect(() => {\n const target = pendingFocus.current;\n if (target === true) heading.current?.focus();\n else if (target) buttons.current.get(target)?.focus();\n pendingFocus.current = null;\n });\n function navigate(event: MouseEvent<HTMLAnchorElement>, href: string) {\n if (\n !onNavigate ||\n event.defaultPrevented ||\n event.button !== 0 ||\n event.metaKey ||\n event.ctrlKey ||\n event.shiftKey ||\n event.altKey\n )\n return;\n event.preventDefault();\n onNavigate(href);\n }\n return (\n <nav\n aria-label={label}\n data-uibot-escape-boundary={current && canChange ? \"\" : undefined}\n className={`uibot-drilldown ${className}`}\n onKeyDown={(event) => {\n if (event.key === \"Escape\" && current && canChange) {\n event.preventDefault();\n event.stopPropagation();\n back();\n }\n }}\n >\n <style>{`.uibot-drilldown{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--background);color:var(--foreground);font-size:14px}.uibot-drilldown-scroll{flex:1;overflow:auto;padding:12px 8px}.uibot-drilldown ul{list-style:none;margin:0;padding:0}.uibot-drilldown-section+.uibot-drilldown-section{margin-top:20px}.uibot-drilldown-label{margin:0;padding:8px;color:var(--muted-foreground);font-size:12px;font-weight:400}.uibot-drilldown-row{display:flex;width:100%;align-items:center;gap:12px;min-height:36px;margin:0;padding:8px;border:0;border-radius:7px;background:transparent;color:var(--muted-foreground);text-align:start;text-decoration:none;font:inherit;cursor:pointer}@media(hover:hover){.uibot-drilldown-row:not(:disabled):not([aria-disabled=true]):hover{background:var(--muted);color:var(--foreground)}}.uibot-drilldown-row[data-active=true]{background:var(--muted);color:var(--foreground)}.uibot-drilldown-row:focus-visible{outline:2px solid var(--ring,var(--primary));outline-offset:-2px}.uibot-drilldown-row:disabled,.uibot-drilldown-row[aria-disabled=true]{opacity:.5;cursor:default}.uibot-drilldown-row>svg{width:18px;height:18px;flex:none;stroke-width:1.6}.uibot-drilldown-item-label{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uibot-drilldown-active-label{min-width:0;max-width:34%;margin-inline-start:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted-foreground);font-size:12px}.uibot-drilldown-chevron{margin-inline-start:8px;flex:none}.uibot-drilldown-back{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding-inline:8px}.uibot-drilldown-back h2{font-size:16px;font-weight:500;margin:0;outline:none}.uibot-drilldown-back button{width:32px;flex:none;justify-content:center;padding:6px}.uibot-drilldown-panel-header{margin:0 8px 10px}.uibot-drilldown-footer{border-top:1px solid var(--border);padding:14px 16px}.uibot-drilldown-header{padding:14px 16px;border-bottom:1px solid var(--border)}`}</style>\n {header && <div className=\"uibot-drilldown-header\">{header}</div>}\n <div className=\"uibot-drilldown-scroll\">\n {current && (\n <div className=\"uibot-drilldown-back\">\n <button\n type=\"button\"\n className=\"uibot-drilldown-row\"\n onClick={back}\n disabled={!canChange}\n aria-label={path.length > 1 ? `Back to ${path.at(-2)?.label}` : backLabel}\n >\n <ArrowLeft aria-hidden=\"true\" />\n </button>\n <h2 ref={heading} tabIndex={-1}>\n {current.label}\n </h2>\n </div>\n )}\n {current && panelHeader && (\n <div className=\"uibot-drilldown-panel-header\">{panelHeader}</div>\n )}\n {visible.map((section) => (\n <section key={section.id} className=\"uibot-drilldown-section\" aria-label={section.label}>\n {section.label && <h3 className=\"uibot-drilldown-label\">{section.label}</h3>}\n <ul>\n {section.items.map((item) => {\n const active = containsHref(item, activeHref);\n const activeLabel = showActiveLabel ? activeLeafLabel(item, activeHref) : undefined;\n const branchContent = (\n <>\n {item.icon}\n <span className=\"uibot-drilldown-item-label\">{item.label}</span>\n {activeLabel && (\n <span className=\"uibot-drilldown-active-label\" title={activeLabel}>\n {activeLabel}\n </span>\n )}\n <ChevronRight className=\"uibot-drilldown-chevron\" aria-hidden=\"true\" />\n </>\n );\n return (\n <li key={item.id}>\n {item.children?.length && navigateOnEnter && item.href ? (\n <a\n href={canChange ? item.href : undefined}\n className=\"uibot-drilldown-row\"\n data-active={active}\n aria-disabled={!canChange || undefined}\n ref={(element) => {\n if (element) buttons.current.set(item.id, element);\n else buttons.current.delete(item.id);\n }}\n onClick={(event) => {\n if (\n event.defaultPrevented ||\n event.button !== 0 ||\n event.metaKey ||\n event.ctrlKey ||\n event.shiftKey ||\n event.altKey\n )\n return;\n event.preventDefault();\n enter(item);\n }}\n >\n {branchContent}\n </a>\n ) : item.children?.length ? (\n <button\n type=\"button\"\n className=\"uibot-drilldown-row\"\n data-active={active}\n ref={(element) => {\n if (element) buttons.current.set(item.id, element);\n else buttons.current.delete(item.id);\n }}\n disabled={!canChange}\n onClick={() => enter(item)}\n >\n {branchContent}\n </button>\n ) : item.href ? (\n <a\n href={item.href}\n className=\"uibot-drilldown-row\"\n data-active={active}\n aria-current={active ? \"page\" : undefined}\n onClick={(event) => navigate(event, item.href ?? \"\")}\n >\n {item.icon}\n <span>{item.label}</span>\n </a>\n ) : (\n <span className=\"uibot-drilldown-row\" aria-disabled=\"true\">\n {item.icon}\n <span>{item.label}</span>\n </span>\n )}\n </li>\n );\n })}\n </ul>\n </section>\n ))}\n </div>\n {footer && <div className=\"uibot-drilldown-footer\">{footer}</div>}\n </nav>\n );\n}\n",
|
|
27
|
+
"type": "registry:ui"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "components/uibot/sidebars/workspace-picker.tsx",
|
|
31
|
+
"target": "components/uibot/sidebars/workspace-picker.tsx",
|
|
32
|
+
"content": "import { useId } from \"react\";\nimport { Check, ChevronDown, Square } from \"lucide-react\";\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"./ui-dropdown-menu\";\n\nexport interface DrilldownWorkspace {\n id: string;\n label: string;\n}\nexport interface DrilldownWorkspacePickerProps {\n /** Legacy single-workspace display. */\n label?: string;\n workspaces?: readonly DrilldownWorkspace[];\n selectedId?: string;\n onChange?: (id: string) => void;\n loading?: boolean;\n disabled?: boolean;\n onCreate?: () => void;\n onManage?: () => void;\n copy?: Partial<{\n label: string;\n placeholder: string;\n loading: string;\n create: string;\n manage: string;\n }>;\n}\n\n/** Selection requests never change the host-confirmed selectedId. */\nexport function DrilldownWorkspacePicker({\n label,\n onCreate,\n onManage,\n workspaces,\n selectedId,\n onChange,\n loading = false,\n disabled = false,\n copy,\n}: DrilldownWorkspacePickerProps) {\n const id = useId();\n const current = workspaces?.find((workspace) => workspace.id === selectedId);\n const display = loading\n ? (copy?.loading ?? \"Loading workspaces\")\n : (current?.label ??\n (workspaces ? undefined : label) ??\n copy?.placeholder ??\n \"Select workspace\");\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <button\n type=\"button\"\n className=\"uibot-drilldown-workspace\"\n id={id}\n disabled={disabled || loading}\n aria-label={copy?.label ?? \"Workspace\"}\n aria-busy={loading || undefined}\n >\n <Square size={12} fill=\"currentColor\" aria-hidden=\"true\" />\n {display}\n <ChevronDown size={14} aria-hidden=\"true\" />\n </button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"start\">\n {workspaces ? (\n workspaces.map((workspace) => (\n <DropdownMenuItem\n key={workspace.id}\n disabled={disabled || loading || !onChange}\n onSelect={() => onChange?.(workspace.id)}\n aria-current={workspace.id === selectedId ? \"true\" : undefined}\n data-workspace-id={workspace.id}\n >\n {workspace.id === selectedId ? (\n <Check size={14} aria-hidden=\"true\" />\n ) : (\n <span style={{ width: 14 }} />\n )}\n {workspace.label}\n </DropdownMenuItem>\n ))\n ) : (\n <DropdownMenuItem disabled>\n <Check size={14} aria-hidden=\"true\" />\n {label}\n </DropdownMenuItem>\n )}\n <DropdownMenuItem disabled={disabled || loading || !onCreate} onSelect={onCreate}>\n {copy?.create ?? \"Create workspace\"}\n </DropdownMenuItem>\n <DropdownMenuItem disabled={disabled || loading || !onManage} onSelect={onManage}>\n {copy?.manage ?? \"Manage workspaces\"}\n </DropdownMenuItem>\n </DropdownMenuContent>\n <style>{`.uibot-drilldown-workspace{display:flex;align-items:center;gap:10px;width:100%;padding:7px 10px;border:1px solid var(--border);border-radius:8px;background:var(--muted);color:inherit;font:inherit;text-align:start;cursor:pointer;margin-bottom:12px}.uibot-drilldown-workspace>svg:first-child{color:#a498df}.uibot-drilldown-workspace>svg:last-child{margin-inline-start:auto}`}</style>\n </DropdownMenu>\n );\n}\n",
|
|
33
|
+
"type": "registry:ui"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "components/uibot/sidebars/ui-dropdown-menu.tsx",
|
|
37
|
+
"target": "components/uibot/sidebars/ui-dropdown-menu.tsx",
|
|
38
|
+
"content": "// Adapted from shadcn/ui (MIT). See THIRD_PARTY_LICENSE and provenance.json.\n\"use client\";\n\nimport type * as React from \"react\";\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"./utils\";\nimport { CheckIcon, ChevronRightIcon, CircleIcon } from \"lucide-react\";\nimport { DropdownMenu as DropdownMenuPrimitive } from \"radix-ui\";\n\nfunction DropdownMenu({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n return <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />;\n}\n\nfunction DropdownMenuPortal({\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.Portal>) {\n return <DropdownMenuPrimitive.Portal data-slot=\"dropdown-menu-portal\" {...props} />;\n}\n\nfunction DropdownMenuTrigger({\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n return <DropdownMenuPrimitive.Trigger data-slot=\"dropdown-menu-trigger\" {...props} />;\n}\n\nfunction DropdownMenuContent({\n className,\n sideOffset = 4,\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.Content>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n data-slot=\"dropdown-menu-content\"\n sideOffset={sideOffset}\n className={cn(\n \"z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95\",\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\nfunction DropdownMenuGroup({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Group>) {\n return <DropdownMenuPrimitive.Group data-slot=\"dropdown-menu-group\" {...props} />;\n}\n\nfunction DropdownMenuItem({\n className,\n inset,\n variant = \"default\",\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean;\n variant?: \"default\" | \"destructive\";\n}) {\n return (\n <DropdownMenuPrimitive.Item\n data-slot=\"dropdown-menu-item\"\n data-inset={inset}\n data-variant={variant}\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuCheckboxItem({\n className,\n children,\n checked,\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {\n return (\n <DropdownMenuPrimitive.CheckboxItem\n data-slot=\"dropdown-menu-checkbox-item\"\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\nfunction DropdownMenuRadioGroup({\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {\n return <DropdownMenuPrimitive.RadioGroup data-slot=\"dropdown-menu-radio-group\" {...props} />;\n}\n\nfunction DropdownMenuRadioItem({\n className,\n children,\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.RadioItem>) {\n return (\n <DropdownMenuPrimitive.RadioItem\n data-slot=\"dropdown-menu-radio-item\"\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CircleIcon className=\"size-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n );\n}\n\nfunction DropdownMenuLabel({\n className,\n inset,\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.Label\n data-slot=\"dropdown-menu-label\"\n data-inset={inset}\n className={cn(\"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8\", className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSeparator({\n className,\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.Separator>) {\n return (\n <DropdownMenuPrimitive.Separator\n data-slot=\"dropdown-menu-separator\"\n className={cn(\"-mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuShortcut({ className, ...props }: ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"dropdown-menu-shortcut\"\n className={cn(\"ml-auto text-xs tracking-widest text-muted-foreground\", className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSub({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Sub>) {\n return <DropdownMenuPrimitive.Sub data-slot=\"dropdown-menu-sub\" {...props} />;\n}\n\nfunction DropdownMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.SubTrigger\n data-slot=\"dropdown-menu-sub-trigger\"\n data-inset={inset}\n className={cn(\n \"flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground\",\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n );\n}\n\nfunction DropdownMenuSubContent({\n className,\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {\n return (\n <DropdownMenuPrimitive.SubContent\n data-slot=\"dropdown-menu-sub-content\"\n className={cn(\n \"z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport {\n DropdownMenu,\n DropdownMenuPortal,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuLabel,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubTrigger,\n DropdownMenuSubContent,\n};\n",
|
|
39
|
+
"type": "registry:ui"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "components/uibot/sidebars/utils.ts",
|
|
43
|
+
"target": "components/uibot/sidebars/utils.ts",
|
|
44
|
+
"content": "import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n",
|
|
45
|
+
"type": "registry:ui"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "components/uibot/icons.tsx",
|
|
49
|
+
"target": "components/uibot/icons.tsx",
|
|
50
|
+
"content": "/*\nISC License\n\nCopyright (c) 2026 Lucide Icons and Contributors\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n\n---\n\nThe following Lucide icons are derived from the Feather project:\n\nairplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out\n\nThe MIT License (MIT) (for the icons listed above)\n\nCopyright (c) 2013-present Cole Bemis\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n*/\n// Icon paths from lucide-react 1.8.0 (ISC); see docs/shadcn-admin-attribution.md.\nimport { createElement } from \"react\";\nconst paths: Record<string, [string, Record<string, string>][]> = {\n \"panel-left\": [\n [\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"3\", rx: \"2\", key: \"afitv7\" }],\n [\"path\", { d: \"M9 3v18\", key: \"fh3hqa\" }],\n ],\n \"layout-dashboard\": [\n [\"rect\", { width: \"7\", height: \"9\", x: \"3\", y: \"3\", rx: \"1\", key: \"10lvy0\" }],\n [\"rect\", { width: \"7\", height: \"5\", x: \"14\", y: \"3\", rx: \"1\", key: \"16une8\" }],\n [\"rect\", { width: \"7\", height: \"9\", x: \"14\", y: \"12\", rx: \"1\", key: \"1hutg5\" }],\n [\"rect\", { width: \"7\", height: \"5\", x: \"3\", y: \"16\", rx: \"1\", key: \"ldoo1y\" }],\n ],\n \"list-todo\": [\n [\"path\", { d: \"M13 5h8\", key: \"a7qcls\" }],\n [\"path\", { d: \"M13 12h8\", key: \"h98zly\" }],\n [\"path\", { d: \"M13 19h8\", key: \"c3s6r1\" }],\n [\"path\", { d: \"m3 17 2 2 4-4\", key: \"1jhpwq\" }],\n [\"rect\", { x: \"3\", y: \"4\", width: \"6\", height: \"6\", rx: \"1\", key: \"cif1o7\" }],\n ],\n users: [\n [\"path\", { d: \"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\", key: \"1yyitq\" }],\n [\"path\", { d: \"M16 3.128a4 4 0 0 1 0 7.744\", key: \"16gr8j\" }],\n [\"path\", { d: \"M22 21v-2a4 4 0 0 0-3-3.87\", key: \"kshegd\" }],\n [\"circle\", { cx: \"9\", cy: \"7\", r: \"4\", key: \"nufk8\" }],\n ],\n settings: [\n [\n \"path\",\n {\n d: \"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915\",\n key: \"1i5ecw\",\n },\n ],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"3\", key: \"1v7zrd\" }],\n ],\n \"message-circle\": [\n [\n \"path\",\n {\n d: \"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719\",\n key: \"1sd12s\",\n },\n ],\n ],\n command: [\n [\n \"path\",\n {\n d: \"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3\",\n key: \"11bfej\",\n },\n ],\n ],\n search: [\n [\"path\", { d: \"m21 21-4.34-4.34\", key: \"14j7rj\" }],\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }],\n ],\n sun: [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"4\", key: \"4exip2\" }],\n [\"path\", { d: \"M12 2v2\", key: \"tus03m\" }],\n [\"path\", { d: \"M12 20v2\", key: \"1lh1kg\" }],\n [\"path\", { d: \"m4.93 4.93 1.41 1.41\", key: \"149t6j\" }],\n [\"path\", { d: \"m17.66 17.66 1.41 1.41\", key: \"ptbguv\" }],\n [\"path\", { d: \"M2 12h2\", key: \"1t8f8n\" }],\n [\"path\", { d: \"M20 12h2\", key: \"1q8mjw\" }],\n [\"path\", { d: \"m6.34 17.66-1.41 1.41\", key: \"1m8zz5\" }],\n [\"path\", { d: \"m19.07 4.93-1.41 1.41\", key: \"1shlcs\" }],\n ],\n moon: [\n [\n \"path\",\n {\n d: \"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\",\n key: \"kfwtm\",\n },\n ],\n ],\n \"chevron-down\": [[\"path\", { d: \"m6 9 6 6 6-6\", key: \"qrunsl\" }]],\n \"chevron-right\": [[\"path\", { d: \"m9 18 6-6-6-6\", key: \"mthhwq\" }]],\n \"chevrons-up-down\": [\n [\"path\", { d: \"m7 15 5 5 5-5\", key: \"1hf1tw\" }],\n [\"path\", { d: \"m7 9 5-5 5 5\", key: \"sgt6xg\" }],\n ],\n plus: [\n [\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }],\n [\"path\", { d: \"M12 5v14\", key: \"s699le\" }],\n ],\n download: [\n [\"path\", { d: \"M12 15V3\", key: \"m9g1x1\" }],\n [\"path\", { d: \"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\", key: \"ih7n3h\" }],\n [\"path\", { d: \"m7 10 5 5 5-5\", key: \"brsn70\" }],\n ],\n \"sliders-horizontal\": [\n [\"path\", { d: \"M10 5H3\", key: \"1qgfaw\" }],\n [\"path\", { d: \"M12 19H3\", key: \"yhmn1j\" }],\n [\"path\", { d: \"M14 3v4\", key: \"1sua03\" }],\n [\"path\", { d: \"M16 17v4\", key: \"1q0r14\" }],\n [\"path\", { d: \"M21 12h-9\", key: \"1o4lsq\" }],\n [\"path\", { d: \"M21 19h-5\", key: \"1rlt1p\" }],\n [\"path\", { d: \"M21 5h-7\", key: \"1oszz2\" }],\n [\"path\", { d: \"M8 10v4\", key: \"tgpxqk\" }],\n [\"path\", { d: \"M8 12H3\", key: \"a7s4jb\" }],\n ],\n shield: [\n [\n \"path\",\n {\n d: \"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\",\n key: \"oel41y\",\n },\n ],\n ],\n \"log-out\": [\n [\"path\", { d: \"m16 17 5-5-5-5\", key: \"1bji2h\" }],\n [\"path\", { d: \"M21 12H9\", key: \"dn1m92\" }],\n [\"path\", { d: \"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\", key: \"1uf3rs\" }],\n ],\n boxes: [\n [\n \"path\",\n {\n d: \"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z\",\n key: \"lc1i9w\",\n },\n ],\n [\"path\", { d: \"m7 16.5-4.74-2.85\", key: \"1o9zyk\" }],\n [\"path\", { d: \"m7 16.5 5-3\", key: \"va8pkn\" }],\n [\"path\", { d: \"M7 16.5v5.17\", key: \"jnp8gn\" }],\n [\n \"path\",\n {\n d: \"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z\",\n key: \"8zsnat\",\n },\n ],\n [\"path\", { d: \"m17 16.5-5-3\", key: \"8arw3v\" }],\n [\"path\", { d: \"m17 16.5 4.74-2.85\", key: \"8rfmw\" }],\n [\"path\", { d: \"M17 16.5v5.17\", key: \"k6z78m\" }],\n [\n \"path\",\n {\n d: \"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z\",\n key: \"1xygjf\",\n },\n ],\n [\"path\", { d: \"M12 8 7.26 5.15\", key: \"1vbdud\" }],\n [\"path\", { d: \"m12 8 4.74-2.85\", key: \"3rx089\" }],\n [\"path\", { d: \"M12 13.5V8\", key: \"1io7kd\" }],\n ],\n \"chart-no-axes-column\": [\n [\"path\", { d: \"M5 21v-6\", key: \"1hz6c0\" }],\n [\"path\", { d: \"M12 21V3\", key: \"1lcnhd\" }],\n [\"path\", { d: \"M19 21V9\", key: \"unv183\" }],\n ],\n ellipsis: [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"1\", key: \"41hilf\" }],\n [\"circle\", { cx: \"19\", cy: \"12\", r: \"1\", key: \"1wjl8i\" }],\n [\"circle\", { cx: \"5\", cy: \"12\", r: \"1\", key: \"1pcz8c\" }],\n ],\n \"arrow-up\": [\n [\"path\", { d: \"m5 12 7-7 7 7\", key: \"hav0vg\" }],\n [\"path\", { d: \"M12 19V5\", key: \"x0mq9r\" }],\n ],\n \"arrow-down\": [\n [\"path\", { d: \"M12 5v14\", key: \"s699le\" }],\n [\"path\", { d: \"m19 12-7 7-7-7\", key: \"1idqje\" }],\n ],\n x: [\n [\"path\", { d: \"M18 6 6 18\", key: \"1bl5f8\" }],\n [\"path\", { d: \"m6 6 12 12\", key: \"d8bk6v\" }],\n ],\n check: [[\"path\", { d: \"M20 6 9 17l-5-5\", key: \"1gmf2c\" }]],\n send: [\n [\n \"path\",\n {\n d: \"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z\",\n key: \"1ffxy3\",\n },\n ],\n [\"path\", { d: \"m21.854 2.147-10.94 10.939\", key: \"12cjpa\" }],\n ],\n mail: [\n [\"path\", { d: \"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7\", key: \"132q7q\" }],\n [\"rect\", { x: \"2\", y: \"4\", width: \"20\", height: \"16\", rx: \"2\", key: \"izxlao\" }],\n ],\n calendar: [\n [\"path\", { d: \"M8 2v4\", key: \"1cmpym\" }],\n [\"path\", { d: \"M16 2v4\", key: \"4m81vk\" }],\n [\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"4\", rx: \"2\", key: \"1hopcy\" }],\n [\"path\", { d: \"M3 10h18\", key: \"8toen8\" }],\n ],\n eye: [\n [\n \"path\",\n {\n d: \"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\",\n key: \"1nclc0\",\n },\n ],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"3\", key: \"1v7zrd\" }],\n ],\n \"eye-off\": [\n [\n \"path\",\n {\n d: \"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49\",\n key: \"ct8e1f\",\n },\n ],\n [\"path\", { d: \"M14.084 14.158a3 3 0 0 1-4.242-4.242\", key: \"151rxh\" }],\n [\n \"path\",\n {\n d: \"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143\",\n key: \"13bj9a\",\n },\n ],\n [\"path\", { d: \"m2 2 20 20\", key: \"1ooewy\" }],\n ],\n};\nexport function Icon({ name, size = 18 }: { name: string; size?: number }) {\n const nodes = paths[name] ?? paths.boxes ?? [];\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.75\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n style={{ flexShrink: 0 }}\n >\n {nodes.map(([tag, attributes]) => createElement(tag, attributes))}\n </svg>\n );\n}\n",
|
|
51
|
+
"type": "registry:ui"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"path": "components/uibot/interaction.ts",
|
|
55
|
+
"target": "components/uibot/interaction.ts",
|
|
56
|
+
"content": "import type { RendererComponent } from \"@/lib/uibot-renderer\";\nexport type BlockContext = Parameters<RendererComponent>[1];\nexport type Chain = Parameters<NonNullable<BlockContext[\"dispatch\"]>>[0];\nexport type EventValue = string | number | boolean | null;\nexport function emit(\n ctx: BlockContext,\n name: string,\n values: Record<string, EventValue | EventValue[]> = {},\n value?: EventValue,\n): void {\n const element = ctx.element as { events?: Record<string, Chain> };\n const chain = element.events?.[name];\n if (chain?.length)\n void ctx.dispatch?.(chain, {\n event: { type: name, values, ...(value !== undefined ? { value } : {}) },\n });\n}\nexport function text(value: unknown, fallback = \"\"): string {\n return value == null ? fallback : String(value);\n}\nexport function records(value: unknown): Record<string, unknown>[] {\n return Array.isArray(value)\n ? value.filter(\n (v): v is Record<string, unknown> => !!v && typeof v === \"object\" && !Array.isArray(v),\n )\n : [];\n}\n\nconst submissions = new WeakMap<object, { payload: string; key: string }>();\n/** A new owner represents a new user intent; an unchanged failed submission keeps its key. */\nexport function submissionKey(owner: object, values: unknown): string {\n const payload = JSON.stringify(values);\n const previous = submissions.get(owner);\n if (previous?.payload === payload) return previous.key;\n const key = crypto.randomUUID();\n submissions.set(owner, { payload, key });\n return key;\n}\n",
|
|
57
|
+
"type": "registry:ui"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": "components/uibot/drilldown-menu.uibot.json",
|
|
61
|
+
"target": "components/uibot/drilldown-menu.uibot.json",
|
|
62
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"drilldown-menu\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"DrilldownMenu\",\n \"export\": \"DrilldownMenu\",\n \"module\": \"drilldown-menu.tsx\",\n \"catalog\": {\n \"name\": \"DrilldownMenu\",\n \"description\": \"Drilldown section navigation; host owns routing.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"sidebar\",\n \"navigation\",\n \"drilldown\",\n \"nested\"\n ],\n \"props\": {\n \"sections\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\"\n },\n \"description\": \"[{id,label?,items:[{id,label,icon?,href?,children?:sections}]}]; unique IDs, max256/6 levels.\"\n },\n \"activeHref\": {\n \"type\": \"string\"\n },\n \"panelId\": {\n \"type\": \"string\",\n \"description\": \"Bind panelId+onPanelChange; empty=root.\"\n },\n \"defaultPanelId\": {\n \"type\": \"string\"\n },\n \"showActiveLabel\": {\n \"type\": \"boolean\"\n },\n \"navigateOnEnter\": {\n \"type\": \"boolean\"\n },\n \"workspaceLabel\": {\n \"type\": \"string\"\n },\n \"label\": {\n \"type\": \"string\",\n \"default\": \"Main navigation\"\n },\n \"backLabel\": {\n \"type\": \"string\",\n \"default\": \"Back to all sections\"\n }\n },\n \"slots\": {\n \"header\": {\n \"description\": \"Optional brand content\"\n },\n \"panelHeader\": {\n \"description\": \"Below section heading\"\n },\n \"footer\": {\n \"description\": \"Account or organization switcher\"\n }\n },\n \"events\": {\n \"onPanelChange\": {\n \"description\": \"event.values.panelId; empty=root.\"\n },\n \"onNavigate\": {\n \"description\": \"event.values.href.\"\n },\n \"onEnter\": {\n \"description\": \"Branch only: event.value=href; values.id/href.\"\n },\n \"onWorkspaceAction\": {\n \"description\": \"event.value=create|manage.\"\n }\n },\n \"usageScenarios\": [\n \"Console section navigation\",\n \"Billing and settings secondary navigation\"\n ],\n \"constraints\": [\n \"Host owns routing; no persistence.\"\n ]\n }\n }\n ]\n}\n",
|
|
63
|
+
"type": "registry:ui"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"meta": {
|
|
67
|
+
"category": "composite",
|
|
68
|
+
"level": "L2",
|
|
69
|
+
"props": {
|
|
70
|
+
"sections": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": {
|
|
73
|
+
"type": "object"
|
|
74
|
+
},
|
|
75
|
+
"description": "[{id,label?,items:[{id,label,icon?,href?,children?:sections}]}]; unique IDs, max256/6 levels."
|
|
76
|
+
},
|
|
77
|
+
"activeHref": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"panelId": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "Bind panelId+onPanelChange; empty=root."
|
|
83
|
+
},
|
|
84
|
+
"defaultPanelId": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"showActiveLabel": {
|
|
88
|
+
"type": "boolean"
|
|
89
|
+
},
|
|
90
|
+
"navigateOnEnter": {
|
|
91
|
+
"type": "boolean"
|
|
92
|
+
},
|
|
93
|
+
"workspaceLabel": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"label": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"default": "Main navigation"
|
|
99
|
+
},
|
|
100
|
+
"backLabel": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"default": "Back to all sections"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"slots": {
|
|
106
|
+
"header": {
|
|
107
|
+
"description": "Optional brand content"
|
|
108
|
+
},
|
|
109
|
+
"panelHeader": {
|
|
110
|
+
"description": "Below section heading"
|
|
111
|
+
},
|
|
112
|
+
"footer": {
|
|
113
|
+
"description": "Account or organization switcher"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"events": {
|
|
117
|
+
"onPanelChange": {
|
|
118
|
+
"description": "event.values.panelId; empty=root."
|
|
119
|
+
},
|
|
120
|
+
"onNavigate": {
|
|
121
|
+
"description": "event.values.href."
|
|
122
|
+
},
|
|
123
|
+
"onEnter": {
|
|
124
|
+
"description": "Branch only: event.value=href; values.id/href."
|
|
125
|
+
},
|
|
126
|
+
"onWorkspaceAction": {
|
|
127
|
+
"description": "event.value=create|manage."
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"scenarios": [
|
|
131
|
+
"Console section navigation",
|
|
132
|
+
"Billing and settings secondary navigation"
|
|
133
|
+
],
|
|
134
|
+
"constraints": [
|
|
135
|
+
"Host owns routing; no persistence."
|
|
136
|
+
],
|
|
137
|
+
"provides": [
|
|
138
|
+
"DrilldownMenu"
|
|
139
|
+
],
|
|
140
|
+
"uibot": {
|
|
141
|
+
"schema": "uibot.registry.item.v1",
|
|
142
|
+
"item": "drilldown-menu",
|
|
143
|
+
"channel": "public",
|
|
144
|
+
"components": [
|
|
145
|
+
{
|
|
146
|
+
"name": "DrilldownMenu",
|
|
147
|
+
"export": "DrilldownMenu",
|
|
148
|
+
"module": "drilldown-menu.tsx",
|
|
149
|
+
"catalog": {
|
|
150
|
+
"name": "DrilldownMenu",
|
|
151
|
+
"description": "Drilldown section navigation; host owns routing.",
|
|
152
|
+
"category": "composite",
|
|
153
|
+
"level": "L2",
|
|
154
|
+
"tags": [
|
|
155
|
+
"sidebar",
|
|
156
|
+
"navigation",
|
|
157
|
+
"drilldown",
|
|
158
|
+
"nested"
|
|
159
|
+
],
|
|
160
|
+
"props": {
|
|
161
|
+
"sections": {
|
|
162
|
+
"type": "array",
|
|
163
|
+
"items": {
|
|
164
|
+
"type": "object"
|
|
165
|
+
},
|
|
166
|
+
"description": "[{id,label?,items:[{id,label,icon?,href?,children?:sections}]}]; unique IDs, max256/6 levels."
|
|
167
|
+
},
|
|
168
|
+
"activeHref": {
|
|
169
|
+
"type": "string"
|
|
170
|
+
},
|
|
171
|
+
"panelId": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"description": "Bind panelId+onPanelChange; empty=root."
|
|
174
|
+
},
|
|
175
|
+
"defaultPanelId": {
|
|
176
|
+
"type": "string"
|
|
177
|
+
},
|
|
178
|
+
"showActiveLabel": {
|
|
179
|
+
"type": "boolean"
|
|
180
|
+
},
|
|
181
|
+
"navigateOnEnter": {
|
|
182
|
+
"type": "boolean"
|
|
183
|
+
},
|
|
184
|
+
"workspaceLabel": {
|
|
185
|
+
"type": "string"
|
|
186
|
+
},
|
|
187
|
+
"label": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"default": "Main navigation"
|
|
190
|
+
},
|
|
191
|
+
"backLabel": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"default": "Back to all sections"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"slots": {
|
|
197
|
+
"header": {
|
|
198
|
+
"description": "Optional brand content"
|
|
199
|
+
},
|
|
200
|
+
"panelHeader": {
|
|
201
|
+
"description": "Below section heading"
|
|
202
|
+
},
|
|
203
|
+
"footer": {
|
|
204
|
+
"description": "Account or organization switcher"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"events": {
|
|
208
|
+
"onPanelChange": {
|
|
209
|
+
"description": "event.values.panelId; empty=root."
|
|
210
|
+
},
|
|
211
|
+
"onNavigate": {
|
|
212
|
+
"description": "event.values.href."
|
|
213
|
+
},
|
|
214
|
+
"onEnter": {
|
|
215
|
+
"description": "Branch only: event.value=href; values.id/href."
|
|
216
|
+
},
|
|
217
|
+
"onWorkspaceAction": {
|
|
218
|
+
"description": "event.value=create|manage."
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"usageScenarios": [
|
|
222
|
+
"Console section navigation",
|
|
223
|
+
"Billing and settings secondary navigation"
|
|
224
|
+
],
|
|
225
|
+
"constraints": [
|
|
226
|
+
"Host owns routing; no persistence."
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "ecommerce",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Shop — All products",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"@uibot/data",
|
|
8
|
+
"@uibot/feedback",
|
|
9
|
+
"@uibot/form",
|
|
10
|
+
"@uibot/grid",
|
|
11
|
+
"@uibot/interactive",
|
|
12
|
+
"@uibot/layout",
|
|
13
|
+
"@uibot/nav"
|
|
14
|
+
],
|
|
15
|
+
"files": [
|
|
16
|
+
{
|
|
17
|
+
"path": "lib/uibot/templates/ecommerce.uibot.yaml",
|
|
18
|
+
"target": "lib/uibot/templates/ecommerce.uibot.yaml",
|
|
19
|
+
"content": "version: \"2.0\"\npages:\n - id: ecommerce\n path: /\n title: Shop — All products\n blocks:\n - type: PageLayout\n props:\n title: Atelier\n slots:\n headerActions:\n - type: Link\n props:\n label: \"Cart · 2\"\n href: \"#\"\n variant: button\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between mb-4 border-b border-border pb-4\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: \"New arrivals\"\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Demo catalog · 4 sample SKUs · photos not attached\"\n - type: Box\n props:\n className: \"w-48\"\n children:\n - type: Form\n children:\n - type: \"Form.Select\"\n props:\n name: sort\n options:\n - value: featured\n label: Featured\n - value: price-asc\n label: \"Price: low to high\"\n - value: newest\n label: Newest\n - type: \"Form.Submit\"\n props:\n label: Apply\n variant: ghost\n - type: Grid\n props:\n cols: \"4\"\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-40 -mx-6 -mt-6 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"No image\"\n - type: BadgeGroup\n props:\n items:\n - label: New\n tone: success\n - type: Heading\n props:\n level: 4\n text: \"Linen Overshirt\"\n - type: Stat\n props:\n value: \"$128\"\n description: \"sample price\"\n - type: Button\n props:\n label: Add to cart\n full: true\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-40 -mx-6 -mt-6 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"No image\"\n - type: Heading\n props:\n level: 4\n text: \"Wool Trousers\"\n - type: Stat\n props:\n value: \"$96\"\n change: \"$120\"\n description: \"was $120 · sample\"\n - type: Button\n props:\n label: Add to cart\n full: true\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-40 -mx-6 -mt-6 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"No image\"\n - type: Heading\n props:\n level: 4\n text: \"Canvas Tote\"\n - type: Stat\n props:\n value: \"$54\"\n description: \"sample price\"\n - type: Button\n props:\n label: Add to cart\n full: true\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-40 -mx-6 -mt-6 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"No image\"\n - type: BadgeGroup\n props:\n items:\n - label: Low stock\n tone: warning\n - type: Heading\n props:\n level: 4\n text: \"Leather Belt\"\n - type: Stat\n props:\n value: \"$72\"\n description: \"2 left in demo\"\n - type: Button\n props:\n label: Add to cart\n full: true\n",
|
|
20
|
+
"type": "registry:lib"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"path": "lib/uibot/templates/ecommerce.uibot.json",
|
|
24
|
+
"target": "lib/uibot/templates/ecommerce.uibot.json",
|
|
25
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"ecommerce\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"ecommerce.uibot.yaml\",\n \"contract\": {\n \"name\": \"ecommerce\",\n \"description\": \"Shop — All products\",\n \"level\": \"L4\",\n \"category\": \"template\",\n \"keywords\": [\n \"ecommerce\",\n \"ecommerce\",\n \"uibot-template\"\n ],\n \"composedFrom\": [\n \"BadgeGroup\",\n \"Box\",\n \"Button\",\n \"Card\",\n \"Form\",\n \"Form.Select\",\n \"Form.Submit\",\n \"Grid\",\n \"Heading\",\n \"Link\",\n \"PageLayout\",\n \"Paragraph\",\n \"Stat\"\n ]\n }\n }\n}\n",
|
|
26
|
+
"type": "registry:lib"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"meta": {
|
|
30
|
+
"uibot": {
|
|
31
|
+
"schema": "uibot.registry.item.v1",
|
|
32
|
+
"item": "ecommerce",
|
|
33
|
+
"channel": "public",
|
|
34
|
+
"template": {
|
|
35
|
+
"file": "ecommerce.uibot.yaml",
|
|
36
|
+
"contract": {
|
|
37
|
+
"name": "ecommerce",
|
|
38
|
+
"description": "Shop — All products",
|
|
39
|
+
"level": "L4",
|
|
40
|
+
"category": "template",
|
|
41
|
+
"keywords": [
|
|
42
|
+
"ecommerce",
|
|
43
|
+
"ecommerce",
|
|
44
|
+
"uibot-template"
|
|
45
|
+
],
|
|
46
|
+
"composedFrom": [
|
|
47
|
+
"BadgeGroup",
|
|
48
|
+
"Box",
|
|
49
|
+
"Button",
|
|
50
|
+
"Card",
|
|
51
|
+
"Form",
|
|
52
|
+
"Form.Select",
|
|
53
|
+
"Form.Submit",
|
|
54
|
+
"Grid",
|
|
55
|
+
"Heading",
|
|
56
|
+
"Link",
|
|
57
|
+
"PageLayout",
|
|
58
|
+
"Paragraph",
|
|
59
|
+
"Stat"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|