@uibot/registry 0.19.0 → 0.22.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/dist/component-replacement.d.ts +10 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2117 -12
- package/dist/materialize-templates.d.ts +28 -0
- package/dist/materialize.d.ts +63 -0
- package/dist/resources.d.ts +5 -0
- package/dist/resources.js +2108 -3
- package/dist/shadcn/r/admin-apps.json +1 -1
- package/dist/shadcn/r/admin-chats.json +1 -1
- package/dist/shadcn/r/admin-settings-account.json +1 -1
- package/dist/shadcn/r/admin-settings-appearance.json +1 -1
- package/dist/shadcn/r/admin-settings-display.json +1 -1
- package/dist/shadcn/r/admin-settings-notifications.json +1 -1
- package/dist/shadcn/r/admin-settings-profile.json +1 -1
- package/dist/shadcn/r/admin-settings.json +1 -1
- package/dist/shadcn/r/admin-shell.json +16 -3
- package/dist/shadcn/r/admin-tasks.json +1 -1
- package/dist/shadcn/r/admin-users.json +1 -1
- package/dist/shadcn/r/agent-run-console.json +64 -0
- package/dist/shadcn/r/auth-minimal.json +59 -0
- package/dist/shadcn/r/billing-overview.json +66 -0
- package/dist/shadcn/r/billing-usage-ledger.json +66 -0
- package/dist/shadcn/r/charts.json +44 -17
- package/dist/shadcn/r/chat-workspace.json +1 -1
- package/dist/shadcn/r/collection-cell-editor.json +1 -1
- package/dist/shadcn/r/collection-kanban.json +134 -0
- package/dist/shadcn/r/collection-panel-drawer.json +1 -1
- package/dist/shadcn/r/collection-record-menu.json +1 -1
- package/dist/shadcn/r/collection-shared.json +1 -1
- package/dist/shadcn/r/commerce-workspace.json +1 -1
- package/dist/shadcn/r/console-billing.json +1 -1
- package/dist/shadcn/r/console-page.json +14 -14
- package/dist/shadcn/r/console-shell.json +2 -2
- package/dist/shadcn/r/creation-html-generation.json +2 -2
- package/dist/shadcn/r/creation-reference-generation.json +2 -2
- package/dist/shadcn/r/creation-revision-export.json +2 -2
- package/dist/shadcn/r/creation-shared.json +2 -2
- package/dist/shadcn/r/creation-variant-compare.json +3 -3
- package/dist/shadcn/r/creation-workspace.json +3 -3
- package/dist/shadcn/r/crm-workspace.json +1 -1
- package/dist/shadcn/r/dashboard-01.json +78 -0
- package/dist/shadcn/r/dashboard.json +113 -3
- package/dist/shadcn/r/data-crud-gallery.json +66 -0
- package/dist/shadcn/r/data-crud-kanban.json +66 -0
- package/dist/shadcn/r/data-crud-master-detail.json +66 -0
- package/dist/shadcn/r/data-crud-table.json +66 -0
- package/dist/shadcn/r/data-table.json +120 -10
- package/dist/shadcn/r/data.json +9 -2
- package/dist/shadcn/r/document-assistant.json +1 -1
- package/dist/shadcn/r/document-workspace.json +1 -1
- package/dist/shadcn/r/drilldown-menu.json +1 -1
- package/dist/shadcn/r/education-workspace.json +1 -1
- package/dist/shadcn/r/feedback.json +15 -2
- package/dist/shadcn/r/form.json +1 -1
- package/dist/shadcn/r/launch-site.json +72 -0
- package/dist/shadcn/r/layout.json +57 -22
- package/dist/shadcn/r/nav.json +38 -10
- package/dist/shadcn/r/onboarding-checklist.json +63 -0
- package/dist/shadcn/r/onboarding-wizard.json +66 -0
- package/dist/shadcn/r/prompt-eval-workbench.json +65 -0
- package/dist/shadcn/r/record-master-detail.json +132 -0
- package/dist/shadcn/r/shadcn-admin.json +1 -1
- package/dist/shadcn/r/sidebar-primitives.json +1 -1
- package/dist/shadcn/r/workspace.json +9 -2
- package/dist/shadcn/registry.json +229 -27
- package/dist/solution-regions.d.ts +12 -2
- package/dist/spec-blueprint.d.ts +11 -0
- package/dist/spec-patch.d.ts +10 -0
- package/dist/variant-swap.d.ts +22 -0
- package/package.json +2 -2
package/dist/shadcn/r/nav.json
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
"type": "registry:ui",
|
|
5
5
|
"description": "Vertical sidebar navigation. Place MenuLink or MenuGroup blocks as children. Usually placed in the PageLayout sidebar slot.",
|
|
6
6
|
"dependencies": [
|
|
7
|
-
"react@19.3.0"
|
|
7
|
+
"react@19.3.0",
|
|
8
|
+
"radix-ui@1.4.3"
|
|
8
9
|
],
|
|
9
10
|
"registryDependencies": [
|
|
10
11
|
"@uibot/uibot-base"
|
|
@@ -13,13 +14,31 @@
|
|
|
13
14
|
{
|
|
14
15
|
"path": "components/uibot/nav.tsx",
|
|
15
16
|
"target": "components/uibot/nav.tsx",
|
|
16
|
-
"content": "import type { RendererComponent } from \"@/lib/uibot-renderer\";\nimport type { ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\n/**\n * Resolve the visual class for a Link `variant`. Exported so a host that\n * overrides the `Link` renderer (e.g. a router-aware SPA bridge) can reuse the\n * exact same chrome without re-declaring it.\n *\n * - `button` — filled primary button styling (CTA).\n * - `outline` — bordered secondary button styling (CTA pair).\n * - `muted` — muted inline link (header actions).\n * - default — primary inline hyperlink.\n */\nexport function linkVariantClass(variant: unknown): string {\n if (variant === \"button\") {\n return \"inline-flex items-center rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground hover:bg-primary/90\";\n }\n if (variant === \"outline\") {\n return \"inline-flex items-center rounded-md border border-border bg-background px-3 py-1.5 text-sm font-medium text-foreground hover:bg-accent\";\n }\n if (variant === \"muted\") {\n return \"text-muted-foreground hover:text-foreground underline-offset-4 hover:underline\";\n }\n return \"text-primary underline-offset-4 hover:underline\";\n}\n\n/** Sidebar navigation menu */\nexport const PageSiderMenu: RendererComponent = (props, ctx) => (\n <nav\n className=\"uibot-sider-menu flex h-full w-full flex-col bg-muted/30\"\n data-uibot-type=\"PageSiderMenu\"\n aria-label={\n typeof props[\"label\"] === \"string\"\n ? props[\"label\"]\n : typeof props.title === \"string\"\n ? props.title\n : \"Sidebar\"\n }\n >\n {ctx.slots[\"header\"] && (\n <div className=\"shrink-0 border-b px-3 py-3\">{ctx.slots[\"header\"] as ReactNode[]}</div>\n )}\n {typeof props[\"title\"] === \"string\" && (\n <div className=\"uibot-sider-title shrink-0 border-b px-4 py-4\">\n <span className=\"uibot-sider-full-title text-sm font-semibold tracking-tight\">\n {props[\"title\"]}\n </span>\n <span className=\"uibot-sider-abbreviation hidden text-sm font-semibold\" aria-hidden=\"true\">\n {Array.from(props.title.trim())[0] || \"•\"}\n </span>\n </div>\n )}\n <
|
|
17
|
+
"content": "import type { RendererComponent } from \"@/lib/uibot-renderer\";\nimport type { ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\nimport { ScrollArea } from \"./scroll-area\";\nimport { Icon } from \"./icons\";\nimport { emit } from \"./interaction\";\n\n/**\n * Resolve the visual class for a Link `variant`. Exported so a host that\n * overrides the `Link` renderer (e.g. a router-aware SPA bridge) can reuse the\n * exact same chrome without re-declaring it.\n *\n * - `button` — filled primary button styling (CTA).\n * - `outline` — bordered secondary button styling (CTA pair).\n * - `muted` — muted inline link (header actions).\n * - default — primary inline hyperlink.\n */\nexport function linkVariantClass(variant: unknown): string {\n if (variant === \"button\") {\n return \"inline-flex items-center rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground hover:bg-primary/90\";\n }\n if (variant === \"outline\") {\n return \"inline-flex items-center rounded-md border border-border bg-background px-3 py-1.5 text-sm font-medium text-foreground hover:bg-accent\";\n }\n if (variant === \"muted\") {\n return \"text-muted-foreground hover:text-foreground underline-offset-4 hover:underline\";\n }\n return \"text-primary underline-offset-4 hover:underline\";\n}\n\n/** Sidebar navigation menu */\nexport const PageSiderMenu: RendererComponent = (props, ctx) => (\n <nav\n className=\"uibot-sider-menu flex h-full w-full flex-col bg-muted/30\"\n data-uibot-type=\"PageSiderMenu\"\n aria-label={\n typeof props[\"label\"] === \"string\"\n ? props[\"label\"]\n : typeof props.title === \"string\"\n ? props.title\n : \"Sidebar\"\n }\n >\n {ctx.slots[\"header\"] && (\n <div className=\"shrink-0 border-b px-3 py-3\">{ctx.slots[\"header\"] as ReactNode[]}</div>\n )}\n {typeof props[\"title\"] === \"string\" && (\n <div className=\"uibot-sider-title shrink-0 border-b px-4 py-4\">\n <span className=\"uibot-sider-full-title text-sm font-semibold tracking-tight\">\n {props[\"title\"]}\n </span>\n <span className=\"uibot-sider-abbreviation hidden text-sm font-semibold\" aria-hidden=\"true\">\n {Array.from(props.title.trim())[0] || \"•\"}\n </span>\n </div>\n )}\n <ScrollArea\n className=\"uibot-menu-scroll flex-1\"\n fillContent\n viewportProps={{ \"aria-label\": \"Menu links\" }}\n >\n <ul className=\"py-2\" role=\"list\">\n {ctx.children as ReactNode[]}\n </ul>\n </ScrollArea>\n {ctx.slots[\"footer\"] && (\n <div className=\"uibot-sider-footer shrink-0 border-t px-3 py-3\">\n {ctx.slots[\"footer\"] as ReactNode[]}\n </div>\n )}\n </nav>\n);\n\n/** Labeled group of MenuLink items inside PageSiderMenu */\nexport const MenuGroup: RendererComponent = (props, ctx) => (\n <li className=\"uibot-menu-group list-none\" data-uibot-type=\"MenuGroup\">\n {typeof props[\"title\"] === \"string\" && (\n <div className=\"uibot-menu-group-title px-4 pb-1 pt-3 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground\">\n {props[\"title\"]}\n </div>\n )}\n <ul className=\"space-y-0.5\" role=\"list\">\n {ctx.children as ReactNode[]}\n </ul>\n </li>\n);\n\n/** Single navigation menu item */\nexport const MenuLink: RendererComponent = (props, ctx) => {\n const active = props[\"active\"] === true;\n const icon = typeof props.icon === \"string\" && props.icon.trim() ? props.icon : null;\n const label = typeof props.label === \"string\" ? props.label : \"Link\";\n const iconName =\n typeof props.iconName === \"string\" && props.iconName.trim() ? props.iconName : null;\n const action = !!ctx.element?.events?.onClick?.length;\n const Tag = action ? \"button\" : \"a\";\n\n return (\n <li>\n <Tag\n {...(action\n ? { type: \"button\" as const, onClick: () => emit(ctx, \"onClick\") }\n : { href: typeof props.href === \"string\" ? props.href : \"#\" })}\n className={cn(\n \"uibot-menu-link mx-2 flex items-center gap-2.5 rounded-md px-3 py-2 text-start text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\",\n action && \"w-[calc(100%-1rem)]\",\n active\n ? \"bg-accent text-accent-foreground\"\n : \"text-muted-foreground hover:bg-accent/50 hover:text-foreground\",\n )}\n data-uibot-type=\"MenuLink\"\n aria-current={active ? \"page\" : undefined}\n aria-label={label}\n title={label}\n >\n {iconName && <Icon name={iconName} size={18} />}\n {!iconName && icon && (\n <span className=\"text-base leading-none\" aria-hidden=\"true\">\n {icon}\n </span>\n )}\n {!iconName && !icon && (\n <span className=\"uibot-menu-fallback hidden text-base leading-none\" aria-hidden=\"true\">\n {Array.from(label.trim())[0] || \"•\"}\n </span>\n )}\n <span className=\"uibot-menu-label\">{label}</span>\n {props[\"badge\"] !== undefined && (\n <span className=\"uibot-menu-badge ml-auto rounded-full bg-primary px-1.5 py-0.5 text-[10px] font-medium text-primary-foreground\">\n {String(props[\"badge\"])}\n </span>\n )}\n </Tag>\n </li>\n );\n};\n\n/** Inline hyperlink */\nexport const Link: RendererComponent = (props, ctx) => {\n const children = ctx.children as ReactNode[];\n\n return (\n <a\n href={typeof props[\"href\"] === \"string\" ? props[\"href\"] : \"#\"}\n target={typeof props[\"target\"] === \"string\" ? props[\"target\"] : \"_self\"}\n className={cn(\n \"uibot-link transition-colors\",\n linkVariantClass(props[\"variant\"]),\n typeof props[\"className\"] === \"string\" ? props[\"className\"] : undefined,\n )}\n data-uibot-type=\"Link\"\n >\n {children.length > 0\n ? children\n : typeof props[\"label\"] === \"string\"\n ? props[\"label\"]\n : \"Link\"}\n </a>\n );\n};\n\n/** Parse breadcrumb items — accepts Array<{label,href}> or JSON string */\nfunction parseBreadcrumbItems(raw: unknown): Array<{ label: string; href?: string }> {\n if (Array.isArray(raw)) return raw as Array<{ label: string; href?: string }>;\n if (typeof raw === \"string\") {\n try {\n const parsed = JSON.parse(raw) as unknown;\n if (Array.isArray(parsed)) return parsed as Array<{ label: string; href?: string }>;\n } catch {\n /* ignore */\n }\n }\n return [];\n}\n\n/** Breadcrumb navigation trail */\nexport const Breadcrumb: RendererComponent = (props) => {\n const items = parseBreadcrumbItems(props[\"items\"]);\n\n return (\n <nav aria-label=\"Breadcrumb\" className=\"uibot-breadcrumb\" data-uibot-type=\"Breadcrumb\">\n <ol className=\"flex flex-wrap items-center gap-1 text-sm text-muted-foreground\">\n {items.map((item, i) => (\n <li key={i} className=\"flex items-center gap-1\">\n {i > 0 && (\n <svg\n aria-hidden=\"true\"\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 14 14\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"shrink-0 opacity-50\"\n >\n <polyline points=\"4 2 10 7 4 12\" />\n </svg>\n )}\n {item.href ? (\n <a\n href={item.href}\n className=\"transition-colors hover:text-foreground hover:underline underline-offset-4\"\n >\n {item.label}\n </a>\n ) : (\n <span aria-current=\"page\" className=\"font-medium text-foreground\">\n {item.label}\n </span>\n )}\n </li>\n ))}\n </ol>\n </nav>\n );\n};\n",
|
|
18
|
+
"type": "registry:ui"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"path": "components/uibot/scroll-area.tsx",
|
|
22
|
+
"target": "components/uibot/scroll-area.tsx",
|
|
23
|
+
"content": "// Adapted from shadcn/ui Scroll Area (MIT).\nimport type { ComponentProps } from \"react\";\nimport { ScrollArea as Primitive } from \"radix-ui\";\n\nconst styles = `\n.uibot-scroll-area{position:relative;min-width:0;min-height:0;overflow:hidden}\n.uibot-scroll-viewport{width:100%;height:100%;max-height:inherit;border-radius:inherit;outline:none}\n.uibot-scroll-viewport:focus-visible{outline:2px solid var(--ring,#94a3b8);outline-offset:-2px}\n.uibot-scroll-viewport>div{display:block!important;min-width:100%}\n.uibot-scroll-area[data-fill-content=true]>.uibot-scroll-viewport>div{display:flex!important;flex-direction:column;min-height:100%}\n.uibot-scroll-area[data-scrollbars=horizontal]>.uibot-scroll-viewport{height:auto}\n.uibot-scrollbar{display:flex;touch-action:none;user-select:none;padding:1px;z-index:20}\n.uibot-scrollbar[data-orientation=vertical]{width:10px;border-inline-start:1px solid transparent}\n.uibot-scrollbar[data-orientation=horizontal]{height:10px;flex-direction:column;border-top:1px solid transparent}\n.uibot-scroll-thumb{position:relative;flex:1;border-radius:9999px;background:var(--nui-border,var(--border,#d4d4d8))}\n.uibot-scroll-thumb:hover,.uibot-scrollbar[data-state=visible]:active .uibot-scroll-thumb{background:var(--muted-foreground,#71717a)}\n`;\n\n/** Shared presentation primitive; refs and scroll events belong to the actual viewport. */\nexport function ScrollArea({\n children,\n className,\n scrollbars = \"vertical\",\n viewportProps,\n fillContent = false,\n ...props\n}: ComponentProps<typeof Primitive.Root> & {\n scrollbars?: \"vertical\" | \"horizontal\" | \"both\";\n viewportProps?: ComponentProps<typeof Primitive.Viewport>;\n fillContent?: boolean;\n}) {\n const { className: viewportClassName, ...viewportRest } = viewportProps ?? {};\n return (\n <Primitive.Root\n data-slot=\"scroll-area\"\n data-scrollbars={scrollbars}\n data-fill-content={fillContent}\n className={`uibot-scroll-area ${className ?? \"\"}`}\n type=\"auto\"\n {...props}\n >\n <style>{styles}</style>\n <Primitive.Viewport\n data-slot=\"scroll-area-viewport\"\n className={`uibot-scroll-viewport ${viewportClassName ?? \"\"}`}\n tabIndex={0}\n {...viewportRest}\n >\n {children}\n </Primitive.Viewport>\n {scrollbars !== \"horizontal\" && <ScrollBar />}\n {scrollbars !== \"vertical\" && <ScrollBar orientation=\"horizontal\" />}\n <Primitive.Corner />\n </Primitive.Root>\n );\n}\n\nexport function ScrollBar({\n className,\n orientation = \"vertical\",\n ...props\n}: ComponentProps<typeof Primitive.Scrollbar>) {\n return (\n <Primitive.Scrollbar\n data-slot=\"scroll-area-scrollbar\"\n orientation={orientation}\n className={`uibot-scrollbar ${className ?? \"\"}`}\n {...props}\n >\n <Primitive.Thumb data-slot=\"scroll-area-thumb\" className=\"uibot-scroll-thumb\" />\n </Primitive.Scrollbar>\n );\n}\n",
|
|
24
|
+
"type": "registry:ui"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "components/uibot/icons.tsx",
|
|
28
|
+
"target": "components/uibot/icons.tsx",
|
|
29
|
+
"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",
|
|
30
|
+
"type": "registry:ui"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "components/uibot/interaction.ts",
|
|
34
|
+
"target": "components/uibot/interaction.ts",
|
|
35
|
+
"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",
|
|
17
36
|
"type": "registry:ui"
|
|
18
37
|
},
|
|
19
38
|
{
|
|
20
39
|
"path": "components/uibot/nav.uibot.json",
|
|
21
40
|
"target": "components/uibot/nav.uibot.json",
|
|
22
|
-
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"nav\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"Breadcrumb\",\n \"export\": \"Breadcrumb\",\n \"module\": \"nav.tsx\",\n \"catalog\": {\n \"name\": \"Breadcrumb\",\n \"description\": \"Hierarchical page path trail. Pass an items array of {label, href?}.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"breadcrumb\",\n \"nav\"\n ],\n \"props\": {\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"href\": {\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"Path segments\"\n }\n },\n \"usageScenarios\": [\n \"Page location context in an admin CRUD view\",\n \"Multi-step wizard progress\"\n ],\n \"constraints\": []\n }\n },\n {\n \"name\": \"Link\",\n \"export\": \"Link\",\n \"module\": \"nav.tsx\",\n \"catalog\": {\n \"name\": \"Link\",\n \"description\": \"Inline hyperlink. Variants: default (blue underline), muted (gray), button (filled CTA), outline (bordered CTA).\",\n \"category\": \"primitive\",\n \"level\": \"L1\",\n \"tags\": [\n \"link\"\n ],\n \"props\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"href\": {\n \"type\": \"string\"\n },\n \"variant\": {\n \"type\": \"string\",\n \"enum\": [\n \"default\",\n \"muted\",\n \"button\",\n \"outline\"\n ],\n \"default\": \"default\"\n },\n \"target\": {\n \"type\": \"string\",\n \"enum\": [\n \"_self\",\n \"_blank\"\n ],\n \"default\": \"_self\"\n },\n \"className\": {\n \"type\": \"string\",\n \"description\": \"Additional utility classes\"\n }\n },\n \"usageScenarios\": [\n \"Inline 'Read more' link in a paragraph\",\n \"CTA button-style link in a hero section\"\n ],\n \"constraints\": []\n }\n },\n {\n \"name\": \"MenuGroup\",\n \"export\": \"MenuGroup\",\n \"module\": \"nav.tsx\",\n \"catalog\": {\n \"name\": \"MenuGroup\",\n \"description\": \"Labeled group of MenuLink items inside PageSiderMenu.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"sidebar\",\n \"nav\"\n ],\n \"props\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"Group heading shown above the links\"\n }\n },\n \"usageScenarios\": [\n \"Platform vs Workspace nav groups\",\n \"Settings section grouping\"\n ],\n \"constraints\": [\n \"
|
|
41
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"nav\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"Breadcrumb\",\n \"export\": \"Breadcrumb\",\n \"module\": \"nav.tsx\",\n \"catalog\": {\n \"name\": \"Breadcrumb\",\n \"description\": \"Hierarchical page path trail. Pass an items array of {label, href?}.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"breadcrumb\",\n \"nav\"\n ],\n \"props\": {\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"href\": {\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"Path segments\"\n }\n },\n \"usageScenarios\": [\n \"Page location context in an admin CRUD view\",\n \"Multi-step wizard progress\"\n ],\n \"constraints\": []\n }\n },\n {\n \"name\": \"Link\",\n \"export\": \"Link\",\n \"module\": \"nav.tsx\",\n \"catalog\": {\n \"name\": \"Link\",\n \"description\": \"Inline hyperlink. Variants: default (blue underline), muted (gray), button (filled CTA), outline (bordered CTA).\",\n \"category\": \"primitive\",\n \"level\": \"L1\",\n \"tags\": [\n \"link\"\n ],\n \"props\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"href\": {\n \"type\": \"string\"\n },\n \"variant\": {\n \"type\": \"string\",\n \"enum\": [\n \"default\",\n \"muted\",\n \"button\",\n \"outline\"\n ],\n \"default\": \"default\"\n },\n \"target\": {\n \"type\": \"string\",\n \"enum\": [\n \"_self\",\n \"_blank\"\n ],\n \"default\": \"_self\"\n },\n \"className\": {\n \"type\": \"string\",\n \"description\": \"Additional utility classes\"\n }\n },\n \"usageScenarios\": [\n \"Inline 'Read more' link in a paragraph\",\n \"CTA button-style link in a hero section\"\n ],\n \"constraints\": []\n }\n },\n {\n \"name\": \"MenuGroup\",\n \"export\": \"MenuGroup\",\n \"module\": \"nav.tsx\",\n \"catalog\": {\n \"name\": \"MenuGroup\",\n \"description\": \"Labeled group of MenuLink items inside PageSiderMenu.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"sidebar\",\n \"nav\"\n ],\n \"props\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"Group heading shown above the links\"\n }\n },\n \"usageScenarios\": [\n \"Platform vs Workspace nav groups\",\n \"Settings section grouping\"\n ],\n \"constraints\": [\n \"Child of PageSiderMenu\"\n ]\n }\n },\n {\n \"name\": \"MenuLink\",\n \"export\": \"MenuLink\",\n \"module\": \"nav.tsx\",\n \"catalog\": {\n \"name\": \"MenuLink\",\n \"description\": \"Sidebar link with icon/badge. An onClick chain renders an action button.\",\n \"category\": \"primitive\",\n \"level\": \"L1\",\n \"tags\": [\n \"nav\",\n \"link\"\n ],\n \"props\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"href\": {\n \"type\": \"string\"\n },\n \"icon\": {\n \"type\": \"string\",\n \"description\": \"Emoji or Unicode glyph\"\n },\n \"iconName\": {\n \"type\": \"string\",\n \"description\": \"Lucide name\"\n },\n \"badge\": {\n \"type\": \"string\",\n \"description\": \"Trailing count/label\"\n },\n \"active\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n \"usageScenarios\": [\n \"Dashboard menu item\",\n \"Settings section link with unread badge\"\n ],\n \"constraints\": [\n \"Child of PageSiderMenu/MenuGroup\"\n ],\n \"events\": {\n \"onClick\": {\n \"description\": \"Renders a button; ignores href\"\n }\n }\n }\n },\n {\n \"name\": \"PageSiderMenu\",\n \"export\": \"PageSiderMenu\",\n \"module\": \"nav.tsx\",\n \"catalog\": {\n \"name\": \"PageSiderMenu\",\n \"description\": \"Vertical sidebar navigation. Place MenuLink or MenuGroup blocks as children. Usually placed in the PageLayout sidebar slot.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"sidebar\",\n \"nav\"\n ],\n \"props\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"Section heading above menu items\"\n }\n },\n \"slots\": {\n \"header\": {\n \"description\": \"Workspace switcher or brand above the menu list\"\n },\n \"footer\": {\n \"description\": \"User card or secondary links below the menu list\"\n }\n },\n \"usageScenarios\": [\n \"Admin left nav (Dashboard, Users, Settings)\",\n \"Docs section navigation\"\n ],\n \"constraints\": [\n \"Use in the PageLayout sidebar slot, not main content\"\n ]\n }\n }\n ]\n}\n",
|
|
23
42
|
"type": "registry:ui"
|
|
24
43
|
}
|
|
25
44
|
],
|
|
@@ -45,7 +64,7 @@
|
|
|
45
64
|
"Docs section navigation"
|
|
46
65
|
],
|
|
47
66
|
"constraints": [
|
|
48
|
-
"
|
|
67
|
+
"Use in the PageLayout sidebar slot, not main content"
|
|
49
68
|
],
|
|
50
69
|
"provides": [
|
|
51
70
|
"PageSiderMenu",
|
|
@@ -169,7 +188,7 @@
|
|
|
169
188
|
"Settings section grouping"
|
|
170
189
|
],
|
|
171
190
|
"constraints": [
|
|
172
|
-
"
|
|
191
|
+
"Child of PageSiderMenu"
|
|
173
192
|
]
|
|
174
193
|
}
|
|
175
194
|
},
|
|
@@ -179,7 +198,7 @@
|
|
|
179
198
|
"module": "nav.tsx",
|
|
180
199
|
"catalog": {
|
|
181
200
|
"name": "MenuLink",
|
|
182
|
-
"description": "
|
|
201
|
+
"description": "Sidebar link with icon/badge. An onClick chain renders an action button.",
|
|
183
202
|
"category": "primitive",
|
|
184
203
|
"level": "L1",
|
|
185
204
|
"tags": [
|
|
@@ -197,9 +216,13 @@
|
|
|
197
216
|
"type": "string",
|
|
198
217
|
"description": "Emoji or Unicode glyph"
|
|
199
218
|
},
|
|
219
|
+
"iconName": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"description": "Lucide name"
|
|
222
|
+
},
|
|
200
223
|
"badge": {
|
|
201
224
|
"type": "string",
|
|
202
|
-
"description": "
|
|
225
|
+
"description": "Trailing count/label"
|
|
203
226
|
},
|
|
204
227
|
"active": {
|
|
205
228
|
"type": "boolean",
|
|
@@ -211,8 +234,13 @@
|
|
|
211
234
|
"Settings section link with unread badge"
|
|
212
235
|
],
|
|
213
236
|
"constraints": [
|
|
214
|
-
"
|
|
215
|
-
]
|
|
237
|
+
"Child of PageSiderMenu/MenuGroup"
|
|
238
|
+
],
|
|
239
|
+
"events": {
|
|
240
|
+
"onClick": {
|
|
241
|
+
"description": "Renders a button; ignores href"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
216
244
|
}
|
|
217
245
|
},
|
|
218
246
|
{
|
|
@@ -247,7 +275,7 @@
|
|
|
247
275
|
"Docs section navigation"
|
|
248
276
|
],
|
|
249
277
|
"constraints": [
|
|
250
|
-
"
|
|
278
|
+
"Use in the PageLayout sidebar slot, not main content"
|
|
251
279
|
]
|
|
252
280
|
}
|
|
253
281
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "onboarding-checklist",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Single-screen activation checklist paired with workspace quick settings, hot-swappable with onboarding-wizard.",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"@uibot/data",
|
|
8
|
+
"@uibot/feedback",
|
|
9
|
+
"@uibot/form",
|
|
10
|
+
"@uibot/layout",
|
|
11
|
+
"@uibot/primitives"
|
|
12
|
+
],
|
|
13
|
+
"files": [
|
|
14
|
+
{
|
|
15
|
+
"path": "lib/uibot/templates/onboarding-checklist.uibot.yaml",
|
|
16
|
+
"target": "lib/uibot/templates/onboarding-checklist.uibot.yaml",
|
|
17
|
+
"content": "version: \"2.0\"\npages:\n - id: onboarding\n path: /onboarding\n title: Workspace Launch Checklist\n state:\n step: workspace\n workspaceName: Acme Studio\n teamSize: 11-50\n primaryGoal: internal-tools\n inviteEmails: alex@acme.dev, maya@acme.dev\n enableSso: false\n stepWorkspaceDone: true\n stepDataDone: false\n stepTeamDone: false\n completed: false\n statusMessage: \"\"\n blocks:\n - id: onboarding-root\n type: Box\n props:\n className: mx-auto flex max-w-4xl flex-col gap-6 p-6\n children:\n - id: onboarding-header\n type: Box\n props:\n className: flex flex-wrap items-center justify-between gap-3\n children:\n - id: onboarding-title-group\n type: Box\n props:\n className: flex flex-col gap-1\n children:\n - id: onboarding-title\n type: Heading\n props:\n level: 1\n text: Workspace launch checklist\n - id: onboarding-subtitle\n type: Paragraph\n props:\n muted: true\n size: sm\n text: Track activation milestones and finalize initial workspace configuration\n in one view.\n - id: onboarding-finish-btn\n type: Button\n props:\n label: Complete setup\n events:\n onClick:\n - action: SetState\n params:\n path: stepWorkspaceDone\n value: true\n - action: SetState\n params:\n path: stepDataDone\n value: true\n - action: SetState\n params:\n path: stepTeamDone\n value: true\n - action: SetState\n params:\n path: completed\n value: true\n - action: SetState\n params:\n path: statusMessage\n value: All activation checks marked complete in demo mode. Wire your host\n onboarding endpoint for persistence.\n - id: onboarding-complete-alert\n type: Alert\n visible:\n _state: completed\n props:\n variant: success\n title: Activation complete\n description:\n _state: statusMessage\n - id: onboarding-checklist-grid\n type: Box\n props:\n className: grid gap-4 md:grid-cols-2\n children:\n - id: onboarding-checklist-card\n type: Card\n props:\n title: Activation checklist\n description: Check off each milestone as your team prepares for launch.\n children:\n - id: check-workspace\n type: Form.Checkbox\n props:\n name: stepWorkspaceDone\n label: Name workspace and choose team size\n checked:\n _bindState: stepWorkspaceDone\n - id: check-data\n type: Form.Checkbox\n props:\n name: stepDataDone\n label: Select starter workflow & SSO policy\n checked:\n _bindState: stepDataDone\n - id: check-team\n type: Form.Checkbox\n props:\n name: stepTeamDone\n label: Prepare teammate invitations\n checked:\n _bindState: stepTeamDone\n - id: onboarding-quick-profile-card\n type: Card\n props:\n title: Workspace quick settings\n description: Adjust name, goal, and invite list before launch.\n children:\n - id: onboarding-name-input\n type: Form.Input\n props:\n name: workspaceName\n label: Workspace name\n value:\n _bindState: workspaceName\n - id: onboarding-goal-select\n type: Form.Select\n props:\n name: primaryGoal\n label: Primary workflow\n value:\n _bindState: primaryGoal\n options:\n - value: internal-tools\n label: Internal ops & CRUD tables\n - value: ai-copilot\n label: AI assistant & agent console\n - value: customer-portal\n label: Customer portal & billing\n - id: onboarding-invite-input\n type: Form.Input\n props:\n name: inviteEmails\n label: Teammate emails\n value:\n _bindState: inviteEmails\n",
|
|
18
|
+
"type": "registry:lib"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"path": "lib/uibot/templates/onboarding-checklist.uibot.json",
|
|
22
|
+
"target": "lib/uibot/templates/onboarding-checklist.uibot.json",
|
|
23
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"onboarding-checklist\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"onboarding-checklist.uibot.yaml\",\n \"contract\": {\n \"name\": \"onboarding-checklist\",\n \"description\": \"Single-screen activation checklist paired with workspace quick settings, hot-swappable with onboarding-wizard.\",\n \"level\": \"L4\",\n \"category\": \"page\",\n \"keywords\": [\n \"onboarding-checklist\",\n \"工作区启动清单\",\n \"Workspace launch checklist\",\n \"onboarding\",\n \"profile\",\n \"workspace\",\n \"guided-setup\"\n ],\n \"composedFrom\": [\n \"Box\",\n \"Heading\",\n \"Paragraph\",\n \"Button\",\n \"Alert\",\n \"Card\",\n \"Form.Checkbox\",\n \"Form.Input\",\n \"Form.Select\"\n ]\n }\n }\n}\n",
|
|
24
|
+
"type": "registry:lib"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"meta": {
|
|
28
|
+
"uibot": {
|
|
29
|
+
"schema": "uibot.registry.item.v1",
|
|
30
|
+
"item": "onboarding-checklist",
|
|
31
|
+
"channel": "public",
|
|
32
|
+
"template": {
|
|
33
|
+
"file": "onboarding-checklist.uibot.yaml",
|
|
34
|
+
"contract": {
|
|
35
|
+
"name": "onboarding-checklist",
|
|
36
|
+
"description": "Single-screen activation checklist paired with workspace quick settings, hot-swappable with onboarding-wizard.",
|
|
37
|
+
"level": "L4",
|
|
38
|
+
"category": "page",
|
|
39
|
+
"keywords": [
|
|
40
|
+
"onboarding-checklist",
|
|
41
|
+
"工作区启动清单",
|
|
42
|
+
"Workspace launch checklist",
|
|
43
|
+
"onboarding",
|
|
44
|
+
"profile",
|
|
45
|
+
"workspace",
|
|
46
|
+
"guided-setup"
|
|
47
|
+
],
|
|
48
|
+
"composedFrom": [
|
|
49
|
+
"Box",
|
|
50
|
+
"Heading",
|
|
51
|
+
"Paragraph",
|
|
52
|
+
"Button",
|
|
53
|
+
"Alert",
|
|
54
|
+
"Card",
|
|
55
|
+
"Form.Checkbox",
|
|
56
|
+
"Form.Input",
|
|
57
|
+
"Form.Select"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "onboarding-wizard",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Multi-step interactive workspace onboarding wizard covering profile setup, starter workflow selection, and team invitations.",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"@uibot/data",
|
|
8
|
+
"@uibot/feedback",
|
|
9
|
+
"@uibot/form",
|
|
10
|
+
"@uibot/layout",
|
|
11
|
+
"@uibot/primitives"
|
|
12
|
+
],
|
|
13
|
+
"files": [
|
|
14
|
+
{
|
|
15
|
+
"path": "lib/uibot/templates/onboarding-wizard.uibot.yaml",
|
|
16
|
+
"target": "lib/uibot/templates/onboarding-wizard.uibot.yaml",
|
|
17
|
+
"content": "version: \"2.0\"\npages:\n - id: onboarding\n path: /onboarding\n title: Guided Onboarding Wizard\n state:\n step: workspace\n workspaceName: Acme Studio\n teamSize: 11-50\n primaryGoal: internal-tools\n inviteEmails: alex@acme.dev, maya@acme.dev\n enableSso: false\n stepWorkspaceDone: true\n stepDataDone: false\n stepTeamDone: false\n completed: false\n statusMessage: \"\"\n blocks:\n - id: onboarding-root\n type: Box\n props:\n className: mx-auto flex max-w-3xl flex-col gap-6 p-6\n children:\n - id: onboarding-header\n type: Box\n props:\n className: flex flex-wrap items-center justify-between gap-3\n children:\n - id: onboarding-title-group\n type: Box\n props:\n className: flex flex-col gap-1\n children:\n - id: onboarding-title\n type: Heading\n props:\n level: 1\n text: Set up your workspace\n - id: onboarding-subtitle\n type: Paragraph\n props:\n muted: true\n size: sm\n text: Configure workspace defaults, pick a starter workflow, and invite\n collaborators.\n - id: onboarding-stage-badge\n type: Badge\n props:\n variant: secondary\n label:\n _state: step\n - id: onboarding-step-nav\n type: Box\n props:\n direction: row\n className: flex flex-wrap gap-2\n children:\n - id: step-btn-workspace\n type: Button\n props:\n label: 1. Workspace\n variant: outline\n size: sm\n events:\n onClick:\n - action: SetState\n params:\n path: step\n value: workspace\n - id: step-btn-workflow\n type: Button\n props:\n label: 2. Starter Goal\n variant: outline\n size: sm\n events:\n onClick:\n - action: SetState\n params:\n path: step\n value: workflow\n - id: step-btn-team\n type: Button\n props:\n label: 3. Invite Team\n variant: outline\n size: sm\n events:\n onClick:\n - action: SetState\n params:\n path: step\n value: team\n - id: onboarding-complete-alert\n type: Alert\n visible:\n _state: completed\n props:\n variant: success\n title: Workspace ready\n description:\n _state: statusMessage\n - id: onboarding-step-workspace-card\n type: Card\n visible:\n _eq:\n - _state: step\n - workspace\n props:\n title: Step 1 · Workspace profile\n description: Choose a display name and team size for your workspace.\n children:\n - id: onboarding-workspace-form\n type: Form\n props:\n label: Workspace details\n idempotent: true\n events:\n onSubmit:\n - action: SetState\n params:\n path: stepWorkspaceDone\n value: true\n - action: SetState\n params:\n path: step\n value: workflow\n children:\n - id: onboarding-name-input\n type: Form.Input\n props:\n name: workspaceName\n label: Workspace name\n placeholder: e.g. Acme Product Ops\n required: true\n value:\n _bindState: workspaceName\n - id: onboarding-team-size\n type: Form.Select\n props:\n name: teamSize\n label: Team size\n value:\n _bindState: teamSize\n options:\n - value: 1-10\n label: 1–10 people\n - value: 11-50\n label: 11–50 people\n - value: 51-200\n label: 51–200 people\n - value: 200+\n label: 200+ people\n - id: onboarding-step1-next\n type: Form.Submit\n props:\n label: Continue to starter goal\n - id: onboarding-step-workflow-card\n type: Card\n visible:\n _eq:\n - _state: step\n - workflow\n props:\n title: Step 2 · Primary use case\n description: Tailor default views and connection templates to your main\n workflow.\n children:\n - id: onboarding-goal-select\n type: Form.Select\n props:\n name: primaryGoal\n label: Primary workflow\n value:\n _bindState: primaryGoal\n options:\n - value: internal-tools\n label: Internal ops & CRUD tables\n - value: ai-copilot\n label: AI assistant & agent console\n - value: customer-portal\n label: Customer portal & billing\n - id: onboarding-sso-checkbox\n type: Form.Checkbox\n props:\n name: enableSso\n label: Require enterprise SSO after launch\n description: Host identity provider wiring is configured after onboarding.\n checked:\n _bindState: enableSso\n - id: onboarding-step2-actions\n type: Box\n props:\n direction: row\n className: flex gap-2 pt-3\n children:\n - id: onboarding-step2-back\n type: Button\n props:\n label: Back\n variant: outline\n events:\n onClick:\n - action: SetState\n params:\n path: step\n value: workspace\n - id: onboarding-step2-next\n type: Button\n props:\n label: Continue to team invite\n events:\n onClick:\n - action: SetState\n params:\n path: stepDataDone\n value: true\n - action: SetState\n params:\n path: step\n value: team\n - id: onboarding-step-team-card\n type: Card\n visible:\n _eq:\n - _state: step\n - team\n props:\n title: Step 3 · Invite teammates\n description: Enter comma-separated emails to prepare initial workspace\n invitations.\n children:\n - id: onboarding-invite-input\n type: Form.Input\n props:\n name: inviteEmails\n label: Teammate emails\n placeholder: alex@acme.dev, maya@acme.dev\n value:\n _bindState: inviteEmails\n - id: onboarding-step3-actions\n type: Box\n props:\n direction: row\n className: flex gap-2 pt-3\n children:\n - id: onboarding-step3-back\n type: Button\n props:\n label: Back\n variant: outline\n events:\n onClick:\n - action: SetState\n params:\n path: step\n value: workflow\n - id: onboarding-finish-btn\n type: Button\n props:\n label: Finish onboarding\n events:\n onClick:\n - action: SetState\n params:\n path: stepTeamDone\n value: true\n - action: SetState\n params:\n path: completed\n value: true\n - action: SetState\n params:\n path: statusMessage\n value: Local demo setup saved. Connect your host provisioning API to create real\n workspaces and send invites.\n",
|
|
18
|
+
"type": "registry:lib"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"path": "lib/uibot/templates/onboarding-wizard.uibot.json",
|
|
22
|
+
"target": "lib/uibot/templates/onboarding-wizard.uibot.json",
|
|
23
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"onboarding-wizard\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"onboarding-wizard.uibot.yaml\",\n \"contract\": {\n \"name\": \"onboarding-wizard\",\n \"description\": \"Multi-step interactive workspace onboarding wizard covering profile setup, starter workflow selection, and team invitations.\",\n \"level\": \"L5\",\n \"category\": \"app\",\n \"keywords\": [\n \"onboarding-wizard\",\n \"引导式新手向导\",\n \"Guided onboarding wizard\",\n \"onboarding\",\n \"welcome\",\n \"workspace\",\n \"guided-setup\"\n ],\n \"composedFrom\": [\n \"Box\",\n \"Heading\",\n \"Paragraph\",\n \"Badge\",\n \"Button\",\n \"Alert\",\n \"Card\",\n \"Form\",\n \"Form.Input\",\n \"Form.Select\",\n \"Form.Submit\",\n \"Form.Checkbox\"\n ]\n }\n }\n}\n",
|
|
24
|
+
"type": "registry:lib"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"meta": {
|
|
28
|
+
"uibot": {
|
|
29
|
+
"schema": "uibot.registry.item.v1",
|
|
30
|
+
"item": "onboarding-wizard",
|
|
31
|
+
"channel": "public",
|
|
32
|
+
"template": {
|
|
33
|
+
"file": "onboarding-wizard.uibot.yaml",
|
|
34
|
+
"contract": {
|
|
35
|
+
"name": "onboarding-wizard",
|
|
36
|
+
"description": "Multi-step interactive workspace onboarding wizard covering profile setup, starter workflow selection, and team invitations.",
|
|
37
|
+
"level": "L5",
|
|
38
|
+
"category": "app",
|
|
39
|
+
"keywords": [
|
|
40
|
+
"onboarding-wizard",
|
|
41
|
+
"引导式新手向导",
|
|
42
|
+
"Guided onboarding wizard",
|
|
43
|
+
"onboarding",
|
|
44
|
+
"welcome",
|
|
45
|
+
"workspace",
|
|
46
|
+
"guided-setup"
|
|
47
|
+
],
|
|
48
|
+
"composedFrom": [
|
|
49
|
+
"Box",
|
|
50
|
+
"Heading",
|
|
51
|
+
"Paragraph",
|
|
52
|
+
"Badge",
|
|
53
|
+
"Button",
|
|
54
|
+
"Alert",
|
|
55
|
+
"Card",
|
|
56
|
+
"Form",
|
|
57
|
+
"Form.Input",
|
|
58
|
+
"Form.Select",
|
|
59
|
+
"Form.Submit",
|
|
60
|
+
"Form.Checkbox"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "prompt-eval-workbench",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Prompt iteration and case-by-case evaluation workbench with master-detail scoring and embedded sandbox chat, hot-swappable with agent-run-console.",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"@uibot/chat-workspace",
|
|
8
|
+
"@uibot/data",
|
|
9
|
+
"@uibot/feedback",
|
|
10
|
+
"@uibot/form",
|
|
11
|
+
"@uibot/layout",
|
|
12
|
+
"@uibot/record-master-detail"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
{
|
|
16
|
+
"path": "lib/uibot/templates/prompt-eval-workbench.uibot.yaml",
|
|
17
|
+
"target": "lib/uibot/templates/prompt-eval-workbench.uibot.yaml",
|
|
18
|
+
"content": "version: \"2.0\"\ndata:\n entities:\n agentRuns:\n key: id\n version: version\n fields:\n id:\n type: string\n readOnly: true\n version:\n type: number\n readOnly: true\n title:\n type: string\n status:\n type: string\n model:\n type: string\n score:\n type: string\n latencyMs:\n type: string\n summary:\n type: string\nconnections:\n - id: agent-runs-db\n type: Collection\n entity: agentRuns\n mock:\n seed:\n - id: RUN-401\n title: Release notes synthesis\n status: completed\n model: gpt-6.2-sol\n score: 96 / 100\n latencyMs: 1,240 ms\n summary: Compiled 14 PR diffs into changelog sections with 0 citation drift.\n version: 1\n - id: RUN-402\n title: Support ticket triage batch\n status: running\n model: gemini-3.1-flash\n score: 91 / 100\n latencyMs: 680 ms\n summary: Classifying 48 inbound support threads with confidence thresholds.\n version: 1\n - id: RUN-403\n title: SQL migration policy audit\n status: failed\n model: claude-4.5-sonnet\n score: 54 / 100\n latencyMs: 2,110 ms\n summary: Tool guard blocked destructive DROP statement pending human approval.\n version: 1\npages:\n - id: ai-workspace\n path: /prompt-eval-workbench\n title: Prompt Evaluation Workbench\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: agent-runs-db\n request:\n id: find-agent-runs\n connectionId: agent-runs-db\n payload:\n operation: Find\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n state:\n rows:\n - id: RUN-401\n title: Release notes synthesis\n status: completed\n model: gpt-6.2-sol\n score: 96 / 100\n latencyMs: 1,240 ms\n summary: Compiled 14 PR diffs into changelog sections with 0 citation drift.\n version: 1\n - id: RUN-402\n title: Support ticket triage batch\n status: running\n model: gemini-3.1-flash\n score: 91 / 100\n latencyMs: 680 ms\n summary: Classifying 48 inbound support threads with confidence thresholds.\n version: 1\n - id: RUN-403\n title: SQL migration policy audit\n status: failed\n model: claude-4.5-sonnet\n score: 54 / 100\n latencyMs: 2,110 ms\n summary: Tool guard blocked destructive DROP statement pending human approval.\n version: 1\n loading: false\n uiError: \"\"\n statusFilter: all\n selectedRunId: RUN-401\n promptDraft: Summarize failed tool calls and propose safe retry parameters.\n newRunTitle: Regression eval batch\n newRunModel: gpt-6.2-sol\n computed:\n filteredRuns:\n _filter:\n - _state: rows\n - _or:\n - _eq:\n - _state: statusFilter\n - all\n - _eq:\n - _item: status\n - _state: statusFilter\n blocks:\n - id: ai-workspace-shell\n type: PageLayout\n props:\n title: Prompt Evaluation Workbench\n appearance: admin\n routes:\n - label: Prompt Evaluation Workbench\n href: /prompt-eval-workbench\n children:\n - id: ai-ops-root\n type: Box\n props:\n className: mx-auto flex max-w-6xl flex-col gap-6 p-6\n children:\n - id: ai-ops-header\n type: Box\n props:\n className: flex flex-wrap items-center justify-between gap-3\n children:\n - id: ai-ops-heading-group\n type: Box\n props:\n className: flex flex-col gap-1\n children:\n - id: ai-ops-title\n type: Heading\n props:\n level: 1\n text: Prompt evaluation workbench\n - id: ai-ops-subtitle\n type: Paragraph\n props:\n muted: true\n size: sm\n text: Iterate on system prompts, compare case scores side-by-side, and log new\n evaluation runs.\n - id: ai-ops-trigger-btn\n type: Button\n props:\n label: Run evaluation case\n size: sm\n events:\n onClick:\n - action: Request\n params:\n connectionId: agent-runs-db\n request:\n id: insert-eval-run\n connectionId: agent-runs-db\n payload:\n operation: InsertOne\n data:\n title:\n _state: newRunTitle\n status: completed\n model:\n _state: newRunModel\n score: 95 / 100\n latencyMs: 870 ms\n summary:\n _state: promptDraft\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: agent-runs-db\n request:\n id: find-agent-runs\n connectionId: agent-runs-db\n payload:\n operation: Find\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n - id: ai-eval-prompt-card\n type: Card\n props:\n title: Candidate prompt & filter\n description: Draft prompt instructions and filter evaluation cases by status.\n children:\n - id: ai-eval-prompt-input\n type: Form.TextArea\n props:\n name: promptDraft\n label: System prompt template\n value:\n _bindState: promptDraft\n - id: ai-ops-filter\n type: Form.Select\n props:\n name: statusFilter\n label: Case status\n value:\n _bindState: statusFilter\n options:\n - value: all\n label: All cases\n - value: completed\n label: Passed\n - value: running\n label: Running\n - value: failed\n label: Failed\n - id: ai-eval-master-detail\n type: RecordMasterDetail\n props:\n label: Evaluation cases\n rows:\n _computed: filteredRuns\n selectedId:\n _state: selectedRunId\n titleField: title\n subtitleField: model\n badgeField: score\n fields:\n - key: id\n label: Case ID\n - key: status\n label: Status\n - key: model\n label: Model\n - key: latencyMs\n label: Latency\n - key: summary\n label: Evaluation notes\n events:\n onSelect:\n - action: SetState\n params:\n path: selectedRunId\n value:\n _event: id\n - id: ai-ops-chat\n type: ChatWorkspace\n props:\n bindingId: agent-console\n variant: focused\n title: Prompt test sandbox\n showSuggestions: true\n previewState: ready\n",
|
|
19
|
+
"type": "registry:lib"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "lib/uibot/templates/prompt-eval-workbench.uibot.json",
|
|
23
|
+
"target": "lib/uibot/templates/prompt-eval-workbench.uibot.json",
|
|
24
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"prompt-eval-workbench\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"prompt-eval-workbench.uibot.yaml\",\n \"contract\": {\n \"name\": \"prompt-eval-workbench\",\n \"description\": \"Prompt iteration and case-by-case evaluation workbench with master-detail scoring and embedded sandbox chat, hot-swappable with agent-run-console.\",\n \"level\": \"L4\",\n \"category\": \"page\",\n \"keywords\": [\n \"prompt-eval-workbench\",\n \"Prompt 评测工作台\",\n \"Prompt evaluation workbench\",\n \"chat\",\n \"analytics\",\n \"copilot\",\n \"metrics\"\n ],\n \"composedFrom\": [\n \"PageLayout\",\n \"Box\",\n \"Heading\",\n \"Paragraph\",\n \"Button\",\n \"Card\",\n \"Form.TextArea\",\n \"Form.Select\",\n \"RecordMasterDetail\",\n \"ChatWorkspace\"\n ]\n }\n }\n}\n",
|
|
25
|
+
"type": "registry:lib"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"meta": {
|
|
29
|
+
"uibot": {
|
|
30
|
+
"schema": "uibot.registry.item.v1",
|
|
31
|
+
"item": "prompt-eval-workbench",
|
|
32
|
+
"channel": "public",
|
|
33
|
+
"template": {
|
|
34
|
+
"file": "prompt-eval-workbench.uibot.yaml",
|
|
35
|
+
"contract": {
|
|
36
|
+
"name": "prompt-eval-workbench",
|
|
37
|
+
"description": "Prompt iteration and case-by-case evaluation workbench with master-detail scoring and embedded sandbox chat, hot-swappable with agent-run-console.",
|
|
38
|
+
"level": "L4",
|
|
39
|
+
"category": "page",
|
|
40
|
+
"keywords": [
|
|
41
|
+
"prompt-eval-workbench",
|
|
42
|
+
"Prompt 评测工作台",
|
|
43
|
+
"Prompt evaluation workbench",
|
|
44
|
+
"chat",
|
|
45
|
+
"analytics",
|
|
46
|
+
"copilot",
|
|
47
|
+
"metrics"
|
|
48
|
+
],
|
|
49
|
+
"composedFrom": [
|
|
50
|
+
"PageLayout",
|
|
51
|
+
"Box",
|
|
52
|
+
"Heading",
|
|
53
|
+
"Paragraph",
|
|
54
|
+
"Button",
|
|
55
|
+
"Card",
|
|
56
|
+
"Form.TextArea",
|
|
57
|
+
"Form.Select",
|
|
58
|
+
"RecordMasterDetail",
|
|
59
|
+
"ChatWorkspace"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|