@uibot/registry 0.6.0 → 0.9.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.
Files changed (54) hide show
  1. package/dist/index.js +9 -9
  2. package/dist/shadcn/r/admin-dashboard.json +70 -0
  3. package/dist/shadcn/r/admin-shell.json +148 -0
  4. package/dist/shadcn/r/ai-chat.json +74 -0
  5. package/dist/shadcn/r/analytics-dashboard.json +65 -0
  6. package/dist/shadcn/r/app-shell-floating.json +54 -0
  7. package/dist/shadcn/r/app-shell-icon-rail.json +54 -0
  8. package/dist/shadcn/r/app-shell-inset.json +54 -0
  9. package/dist/shadcn/r/app-shell-settings.json +54 -0
  10. package/dist/shadcn/r/app-shell-sidebar.json +54 -0
  11. package/dist/shadcn/r/app-shell-workspace.json +54 -0
  12. package/dist/shadcn/r/auth.json +61 -0
  13. package/dist/shadcn/r/blog.json +64 -0
  14. package/dist/shadcn/r/charts.json +211 -0
  15. package/dist/shadcn/r/content.json +444 -0
  16. package/dist/shadcn/r/creation-html-generation.json +29 -0
  17. package/dist/shadcn/r/creation-reference-generation.json +29 -0
  18. package/dist/shadcn/r/creation-revision-export.json +27 -0
  19. package/dist/shadcn/r/creation-shared.json +24 -0
  20. package/dist/shadcn/r/creation-workspace.json +33 -0
  21. package/dist/shadcn/r/crm.json +67 -0
  22. package/dist/shadcn/r/dashboard.json +147 -0
  23. package/dist/shadcn/r/data-studio.json +368 -0
  24. package/dist/shadcn/r/data-table.json +224 -0
  25. package/dist/shadcn/r/data.json +320 -0
  26. package/dist/shadcn/r/ecommerce.json +65 -0
  27. package/dist/shadcn/r/feedback.json +300 -0
  28. package/dist/shadcn/r/field.json +164 -0
  29. package/dist/shadcn/r/form.json +425 -0
  30. package/dist/shadcn/r/grid.json +188 -0
  31. package/dist/shadcn/r/interactive.json +355 -0
  32. package/dist/shadcn/r/kanban.json +154 -0
  33. package/dist/shadcn/r/layout.json +529 -0
  34. package/dist/shadcn/r/lms.json +74 -0
  35. package/dist/shadcn/r/marketing.json +402 -0
  36. package/dist/shadcn/r/nav.json +257 -0
  37. package/dist/shadcn/r/portfolio.json +62 -0
  38. package/dist/shadcn/r/presentation.json +454 -0
  39. package/dist/shadcn/r/pricing.json +63 -0
  40. package/dist/shadcn/r/primitives.json +360 -0
  41. package/dist/shadcn/r/saas-landing.json +60 -0
  42. package/dist/shadcn/r/sections.json +734 -0
  43. package/dist/shadcn/r/settings.json +72 -0
  44. package/dist/shadcn/r/shadcn-admin-shell.json +49 -0
  45. package/dist/shadcn/r/shadcn-admin.json +76 -0
  46. package/dist/shadcn/r/store.json +75 -0
  47. package/dist/shadcn/r/support-inbox.json +63 -0
  48. package/dist/shadcn/r/team-directory.json +59 -0
  49. package/dist/shadcn/r/uibot-base.json +30 -0
  50. package/dist/shadcn/r/uibot-theme.json +86 -0
  51. package/dist/shadcn/r/workspace.json +174 -0
  52. package/dist/shadcn/registry.json +615 -0
  53. package/dist/shadcn.d.ts +10 -5
  54. package/package.json +2 -2
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "support-inbox",
4
+ "type": "registry:block",
5
+ "description": "Support Inbox",
6
+ "registryDependencies": [
7
+ "@uibot/data",
8
+ "@uibot/data-studio",
9
+ "@uibot/feedback",
10
+ "@uibot/form",
11
+ "@uibot/interactive",
12
+ "@uibot/layout"
13
+ ],
14
+ "files": [
15
+ {
16
+ "path": "lib/uibot/templates/support-inbox.uibot.yaml",
17
+ "target": "lib/uibot/templates/support-inbox.uibot.yaml",
18
+ "content": "version: \"2.0\"\npages:\n - id: support-inbox\n path: /\n title: Support Inbox\n state:\n selectedId: \"t-1\"\n blocks:\n - type: PageLayout\n props:\n title: Helpdesk\n slots:\n headerActions:\n - type: Button\n props:\n label: \"Compose\"\n size: sm\n children:\n - type: StatGrid\n props:\n cols: \"4\"\n items:\n - label: Open\n value: \"24\"\n - label: Waiting\n value: \"8\"\n - label: Resolved today\n value: \"57\"\n change: \"+12\"\n trend: up\n - label: First reply\n value: \"12m\"\n change: \"-3m\"\n trend: down\n - type: SplitMasterDetail\n props:\n selectKey: selectedId\n items:\n - id: t-1\n title: \"Can't reset my password\"\n subtitle: \"Jane Cooper · 4m ago\"\n - id: t-2\n title: \"Billing charged twice\"\n subtitle: \"Wade Warren · 22m ago\"\n - id: t-3\n title: \"Feature request: dark mode\"\n subtitle: \"Esther Howard · 1h ago\"\n - id: t-4\n title: \"API returns 500 on /orders\"\n subtitle: \"Cameron W. · 2h ago\"\n slots:\n detail:\n - type: Card\n props:\n title: \"Can't reset my password\"\n description: \"Jane Cooper · #t-1 · Open\"\n slots:\n actions:\n - type: BadgeGroup\n props:\n items:\n - label: Urgent\n tone: error\n - label: Auth\n tone: info\n children:\n - type: KeyValueGrid\n props:\n cols: \"2\"\n items:\n - key: Customer\n value: Jane Cooper\n - key: Plan\n value: Pro\n - key: Channel\n value: Email\n - key: Assignee\n value: You\n - type: Divider\n - type: Markdown\n props:\n content: |\n Hi team — the **reset password** link in my email returns\n *\"token expired\"* even seconds after I request it. I've tried\n three times on Chrome and Safari.\n - type: Form\n children:\n - type: \"Form.TextArea\"\n props:\n name: reply\n label: Reply\n rows: 3\n placeholder: \"Write a response…\"\n - type: \"Form.Submit\"\n props:\n label: Send reply\n",
19
+ "type": "registry:lib"
20
+ },
21
+ {
22
+ "path": "lib/uibot/templates/support-inbox.uibot.json",
23
+ "target": "lib/uibot/templates/support-inbox.uibot.json",
24
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"support-inbox\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"support-inbox.uibot.yaml\",\n \"contract\": {\n \"name\": \"support-inbox\",\n \"description\": \"Support Inbox\",\n \"level\": \"L4\",\n \"category\": \"template\",\n \"keywords\": [\n \"support-inbox\",\n \"support-inbox\",\n \"uibot-template\"\n ],\n \"composedFrom\": [\n \"BadgeGroup\",\n \"Button\",\n \"Card\",\n \"Divider\",\n \"Form\",\n \"Form.Submit\",\n \"Form.TextArea\",\n \"KeyValueGrid\",\n \"Markdown\",\n \"PageLayout\",\n \"SplitMasterDetail\",\n \"StatGrid\"\n ]\n }\n }\n}\n",
25
+ "type": "registry:lib"
26
+ }
27
+ ],
28
+ "meta": {
29
+ "uibot": {
30
+ "schema": "uibot.registry.item.v1",
31
+ "item": "support-inbox",
32
+ "channel": "public",
33
+ "template": {
34
+ "file": "support-inbox.uibot.yaml",
35
+ "contract": {
36
+ "name": "support-inbox",
37
+ "description": "Support Inbox",
38
+ "level": "L4",
39
+ "category": "template",
40
+ "keywords": [
41
+ "support-inbox",
42
+ "support-inbox",
43
+ "uibot-template"
44
+ ],
45
+ "composedFrom": [
46
+ "BadgeGroup",
47
+ "Button",
48
+ "Card",
49
+ "Divider",
50
+ "Form",
51
+ "Form.Submit",
52
+ "Form.TextArea",
53
+ "KeyValueGrid",
54
+ "Markdown",
55
+ "PageLayout",
56
+ "SplitMasterDetail",
57
+ "StatGrid"
58
+ ]
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "team-directory",
4
+ "type": "registry:block",
5
+ "description": "Team Directory",
6
+ "registryDependencies": [
7
+ "@uibot/data",
8
+ "@uibot/data-studio",
9
+ "@uibot/feedback",
10
+ "@uibot/interactive",
11
+ "@uibot/layout"
12
+ ],
13
+ "files": [
14
+ {
15
+ "path": "lib/uibot/templates/team-directory.uibot.yaml",
16
+ "target": "lib/uibot/templates/team-directory.uibot.yaml",
17
+ "content": "version: \"2.0\"\npages:\n - id: team-directory\n path: /\n title: Team Directory\n state:\n search: \"\"\n blocks:\n - type: PageLayout\n props:\n title: People\n slots:\n headerActions:\n - type: Button\n props:\n label: \"+ Invite\"\n size: sm\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between gap-4 mb-3 border-b border-border pb-3\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Team directory\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Demo roster · 6 people shown · live headcount n/a\"\n - type: BadgeGroup\n props:\n items:\n - label: 6 in this table\n tone: info\n - label: Directory source offline\n tone: warning\n - type: StatGrid\n props:\n cols: \"3\"\n items:\n - label: Shown here\n value: \"6\"\n description: \"sample rows\"\n - label: Departments\n value: \"4\"\n description: \"Platform · AI · Flight · Design\"\n - label: Live headcount\n value: \"n/a\"\n description: \"HRIS not connected\"\n - type: Card\n props:\n title: People\n description: \"Filter writes to state.search · empty copy is wired\"\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: SearchableTable\n props:\n searchKey: search\n placeholder: \"Search people…\"\n emptyText: No people match this search.\n columns:\n - key: name\n label: Name\n - key: role\n label: Role\n - key: dept\n label: Department\n - key: location\n label: Location\n rows:\n - name: Ada Lovelace\n role: Staff Engineer\n dept: Platform\n location: Lisbon\n - name: Grace Hopper\n role: Eng Manager\n dept: Platform\n location: Remote\n - name: Alan Turing\n role: Researcher\n dept: AI\n location: London\n - name: Katherine Johnson\n role: Data Scientist\n dept: AI\n location: NYC\n - name: Margaret Hamilton\n role: Principal Engineer\n dept: Flight Systems\n location: Boston\n - name: Hedy Lamarr\n role: Product Designer\n dept: Design\n location: Vienna\n",
18
+ "type": "registry:lib"
19
+ },
20
+ {
21
+ "path": "lib/uibot/templates/team-directory.uibot.json",
22
+ "target": "lib/uibot/templates/team-directory.uibot.json",
23
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"team-directory\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"team-directory.uibot.yaml\",\n \"contract\": {\n \"name\": \"team-directory\",\n \"description\": \"Team Directory\",\n \"level\": \"L4\",\n \"category\": \"template\",\n \"keywords\": [\n \"team-directory\",\n \"team-directory\",\n \"uibot-template\"\n ],\n \"composedFrom\": [\n \"BadgeGroup\",\n \"Box\",\n \"Button\",\n \"Card\",\n \"Heading\",\n \"PageLayout\",\n \"Paragraph\",\n \"SearchableTable\",\n \"StatGrid\"\n ]\n }\n }\n}\n",
24
+ "type": "registry:lib"
25
+ }
26
+ ],
27
+ "meta": {
28
+ "uibot": {
29
+ "schema": "uibot.registry.item.v1",
30
+ "item": "team-directory",
31
+ "channel": "public",
32
+ "template": {
33
+ "file": "team-directory.uibot.yaml",
34
+ "contract": {
35
+ "name": "team-directory",
36
+ "description": "Team Directory",
37
+ "level": "L4",
38
+ "category": "template",
39
+ "keywords": [
40
+ "team-directory",
41
+ "team-directory",
42
+ "uibot-template"
43
+ ],
44
+ "composedFrom": [
45
+ "BadgeGroup",
46
+ "Box",
47
+ "Button",
48
+ "Card",
49
+ "Heading",
50
+ "PageLayout",
51
+ "Paragraph",
52
+ "SearchableTable",
53
+ "StatGrid"
54
+ ]
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "uibot-base",
4
+ "type": "registry:lib",
5
+ "description": "UIBot runtime base: RendererComponent type shim + cn util. Pulled automatically by every UIBot block.",
6
+ "dependencies": [
7
+ "clsx",
8
+ "tailwind-merge"
9
+ ],
10
+ "files": [
11
+ {
12
+ "path": "lib/uibot-renderer.ts",
13
+ "content": "// uibot renderer shim — distributed alongside blocks so a consumer app does\n// not need @uibot/renderer-react installed. Type-only; no runtime.\n//\n// The shapes mirror the public RendererComponent surface the blocks reference:\n// `ctx.resolve.getState(...)` (interactive blocks read state) and\n// `ctx.dispatch(chain, scope)` (interactive blocks dispatch ActionChains). The\n// minimal ActionChain/PropValue types are inlined here so the shim stays\n// self-contained — a shadcn-only consumer never needs the contracts shim.\n\nexport type ShimPropValue =\n | string\n | number\n | boolean\n | null\n | { [key: string]: ShimPropValue }\n | ShimPropValue[];\n\nexport interface ShimAction {\n action: string;\n params: Record<string, ShimPropValue>;\n onSuccess?: ShimAction[];\n onError?: ShimAction[];\n}\n\nexport type ShimActionChain = ShimAction[];\n\nexport interface RendererResolveContext {\n readonly state: Record<string, unknown>;\n resolveProp(value: unknown): unknown;\n getState(path: string): unknown;\n}\n\nexport type RendererDispatch = (\n chain: ShimActionChain,\n scope?: { event?: unknown },\n) => void | Promise<void>;\n\nexport interface RendererComponentContext {\n readonly elementKey: string;\n readonly element: unknown;\n readonly status: string;\n readonly visible: boolean;\n readonly children: unknown[];\n readonly slots: Record<string, unknown[]>;\n readonly registry: unknown;\n readonly resolve: RendererResolveContext;\n readonly dispatch?: RendererDispatch;\n}\n\nexport type RendererComponent<TProps = Record<string, unknown>> = (\n props: TProps,\n context: RendererComponentContext,\n) => unknown;\n",
14
+ "type": "registry:lib"
15
+ },
16
+ {
17
+ "path": "lib/utils.ts",
18
+ "content": "// uibot cn util — clsx + tailwind-merge (shadcn convention).\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n",
19
+ "type": "registry:lib"
20
+ },
21
+ {
22
+ "path": "lib/uibot-contracts.ts",
23
+ "content": "// uibot contracts shim — distributed alongside studio blocks so a consumer app\n// does not need @uibot/contracts installed. Type-only; no runtime.\n\nexport type PropValue =\n | string\n | number\n | boolean\n | null\n | { [key: string]: PropValue }\n | PropValue[];\n\nexport interface Action {\n action: string;\n params: Record<string, PropValue>;\n onSuccess?: ActionChain;\n onError?: ActionChain;\n}\n\nexport type ActionChain = Action[];\n",
24
+ "type": "registry:lib"
25
+ }
26
+ ],
27
+ "meta": {
28
+ "base": true
29
+ }
30
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "uibot-theme",
4
+ "type": "registry:theme",
5
+ "description": "UIBot OKLCH palette for the semantic tokens the blocks use. Optional: skip it when the host defines its own.",
6
+ "files": [],
7
+ "cssVars": {
8
+ "light": {
9
+ "background": "oklch(1 0 0)",
10
+ "foreground": "oklch(0.141 0.005 285.823)",
11
+ "card": "oklch(1 0 0)",
12
+ "card-foreground": "oklch(0.141 0.005 285.823)",
13
+ "popover": "oklch(1 0 0)",
14
+ "popover-foreground": "oklch(0.141 0.005 285.823)",
15
+ "primary": "oklch(0.21 0.006 285.885)",
16
+ "primary-foreground": "oklch(0.985 0 0)",
17
+ "secondary": "oklch(0.967 0.001 286.375)",
18
+ "secondary-foreground": "oklch(0.21 0.006 285.885)",
19
+ "muted": "oklch(0.967 0.001 286.375)",
20
+ "muted-foreground": "oklch(0.552 0.016 285.938)",
21
+ "accent": "oklch(0.967 0.001 286.375)",
22
+ "accent-foreground": "oklch(0.21 0.006 285.885)",
23
+ "destructive": "oklch(0.577 0.245 27.325)",
24
+ "border": "oklch(0.92 0.004 286.32)",
25
+ "input": "oklch(0.92 0.004 286.32)",
26
+ "ring": "oklch(0.705 0.015 286.067)",
27
+ "radius": "0.5rem",
28
+ "sidebar": "oklch(0.985 0 0)",
29
+ "sidebar-foreground": "oklch(0.141 0.005 285.823)",
30
+ "sidebar-primary": "oklch(0.21 0.006 285.885)",
31
+ "sidebar-primary-foreground": "oklch(0.985 0 0)",
32
+ "sidebar-accent": "oklch(0.967 0.001 286.375)",
33
+ "sidebar-accent-foreground": "oklch(0.21 0.006 285.885)",
34
+ "sidebar-border": "oklch(0.92 0.004 286.32)",
35
+ "sidebar-ring": "oklch(0.705 0.015 286.067)",
36
+ "success": "oklch(0.527 0.154 150.069)",
37
+ "success-foreground": "oklch(1 0 0)",
38
+ "warning": "oklch(0.769 0.188 70.08)",
39
+ "warning-foreground": "oklch(0.141 0.005 285.823)",
40
+ "marketing-accent": "oklch(0.74 0.15 65)",
41
+ "marketing-accent-strong": "oklch(0.68 0.16 60)",
42
+ "marketing-accent-foreground": "oklch(0.16 0.02 60)",
43
+ "mk-accent-2": "oklch(0.7 0.1 200)",
44
+ "mk-accent-3": "oklch(0.72 0.12 20)",
45
+ "mk-accent-4": "oklch(0.62 0.13 265)"
46
+ },
47
+ "dark": {
48
+ "background": "oklch(0.141 0.005 285.823)",
49
+ "foreground": "oklch(0.985 0 0)",
50
+ "card": "oklch(0.21 0.006 285.885)",
51
+ "card-foreground": "oklch(0.985 0 0)",
52
+ "popover": "oklch(0.21 0.006 285.885)",
53
+ "popover-foreground": "oklch(0.985 0 0)",
54
+ "primary": "oklch(0.985 0 0)",
55
+ "primary-foreground": "oklch(0.21 0.006 285.885)",
56
+ "secondary": "oklch(0.269 0.007 285.885)",
57
+ "secondary-foreground": "oklch(0.985 0 0)",
58
+ "muted": "oklch(0.269 0.007 285.885)",
59
+ "muted-foreground": "oklch(0.705 0.015 286.067)",
60
+ "accent": "oklch(0.269 0.007 285.885)",
61
+ "accent-foreground": "oklch(0.985 0 0)",
62
+ "destructive": "oklch(0.704 0.191 22.216)",
63
+ "border": "oklch(1 0 0 / 10%)",
64
+ "input": "oklch(1 0 0 / 15%)",
65
+ "ring": "oklch(0.552 0.016 285.938)",
66
+ "sidebar": "oklch(0.21 0.006 285.885)",
67
+ "sidebar-foreground": "oklch(0.985 0 0)",
68
+ "sidebar-primary": "oklch(0.488 0.243 264.376)",
69
+ "sidebar-primary-foreground": "oklch(0.985 0 0)",
70
+ "sidebar-accent": "oklch(0.269 0.007 285.885)",
71
+ "sidebar-accent-foreground": "oklch(0.985 0 0)",
72
+ "sidebar-border": "oklch(1 0 0 / 10%)",
73
+ "sidebar-ring": "oklch(0.439 0.269 264.052)",
74
+ "success": "oklch(0.527 0.154 150.069)",
75
+ "success-foreground": "oklch(1 0 0)",
76
+ "warning": "oklch(0.769 0.188 70.08)",
77
+ "warning-foreground": "oklch(0.141 0.005 285.823)",
78
+ "marketing-accent": "oklch(0.79 0.15 67)",
79
+ "marketing-accent-strong": "oklch(0.83 0.14 70)",
80
+ "marketing-accent-foreground": "oklch(0.18 0.03 60)",
81
+ "mk-accent-2": "oklch(0.76 0.1 200)",
82
+ "mk-accent-3": "oklch(0.78 0.12 20)",
83
+ "mk-accent-4": "oklch(0.7 0.13 265)"
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,174 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "workspace",
4
+ "type": "registry:ui",
5
+ "description": "Searchable integrations with explicit capability availability",
6
+ "dependencies": [
7
+ "react"
8
+ ],
9
+ "registryDependencies": [
10
+ "@uibot/uibot-base"
11
+ ],
12
+ "files": [
13
+ {
14
+ "path": "components/uibot/workspace.tsx",
15
+ "target": "components/uibot/workspace.tsx",
16
+ "content": "import { useEffect, useRef, useState } from \"react\";\nimport type { RendererComponent } from \"@/lib/uibot-renderer\";\nimport { Icon } from \"./icons\";\nimport { BrandIcon } from \"./brand-icons\";\nimport { emit, records, submissionKey, text, type BlockContext } from \"./interaction\";\nfunction Integrations({ props, ctx }: { props: Record<string, unknown>; ctx: BlockContext }) {\n const [search, filter] = useState(\"\"),\n [status, setStatus] = useState(\"all\"),\n [sort, setSort] = useState(\"asc\");\n const items = records(props.items)\n .filter(\n (i) =>\n text(i.name).toLowerCase().includes(search.toLowerCase()) &&\n (status === \"all\" || (status === \"connected\") === (i.connected === true)),\n )\n .sort((a, b) => text(a.name).localeCompare(text(b.name)) * (sort === \"asc\" ? 1 : -1));\n return (\n <section data-uibot-type=\"IntegrationGrid\">\n <div className=\"mb-6 flex flex-wrap gap-2\">\n <input\n className=\"h-9 rounded-md border bg-background px-3 text-sm\"\n aria-label=\"Search apps\"\n placeholder=\"Filter apps...\"\n value={search}\n onChange={(e) => filter(e.target.value)}\n />\n <select\n aria-label=\"Connection status\"\n className=\"rounded-md border bg-background px-3 text-sm\"\n value={status}\n onChange={(e) => setStatus(e.target.value)}\n >\n <option value=\"all\">All apps</option>\n <option value=\"connected\">Connected</option>\n <option value=\"available\">Not connected</option>\n </select>\n <select\n className=\"ms-auto rounded-md border bg-background px-3 text-sm\"\n aria-label=\"Sort apps\"\n value={sort}\n onChange={(e) => setSort(e.target.value)}\n >\n <option value=\"asc\">Ascending</option>\n <option value=\"desc\">Descending</option>\n </select>\n </div>\n <div className=\"grid gap-4 md:grid-cols-2 xl:grid-cols-3\">\n {items.map((item) => (\n <article key={text(item.id)} className=\"rounded-xl border p-6\">\n <div className=\"mb-5 flex items-center justify-between\">\n <span className=\"grid size-11 place-items-center rounded-lg border bg-muted\">\n {typeof item.brand === \"string\" ? (\n <BrandIcon name={item.brand} />\n ) : (\n <Icon name={text(item.icon, \"boxes\")} size={24} />\n )}\n </span>\n <button\n type=\"button\"\n disabled={item.available !== true || props.pending === true}\n className=\"rounded-md border px-3 py-1.5 text-sm disabled:opacity-50\"\n onClick={() =>\n emit(ctx, \"onAction\", {\n id: text(item.id),\n action: item.connected === true ? \"disconnect\" : \"connect\",\n })\n }\n >\n {item.connected === true\n ? \"Connected\"\n : item.available === true\n ? \"Connect\"\n : \"Unavailable\"}\n </button>\n </div>\n <h3 className=\"font-semibold\">{text(item.name)}</h3>\n <p className=\"mt-2 text-sm text-muted-foreground\">{text(item.description)}</p>\n {props.configurable === true && (\n <button\n type=\"button\"\n className=\"mt-4 rounded-md border px-3 py-1.5 text-sm\"\n disabled={props.pending === true}\n aria-label={`Configure ${text(item.name)}`}\n onClick={() => {\n const config = records(props.configurations).find(\n (row) => row.provider === item.id,\n );\n const values =\n config?.config && typeof config.config === \"object\"\n ? (config.config as Record<string, unknown>)\n : {};\n emit(ctx, \"onConfigure\", {\n provider: text(item.id),\n id: text(config?.id),\n version: typeof config?.version === \"number\" ? config.version : null,\n enabled: config?.enabled === true,\n label: text(values.label, text(item.name)),\n channel: text(values.channel),\n });\n }}\n >\n Configure\n </button>\n )}\n </article>\n ))}\n </div>\n {!items.length && (\n <p className=\"py-16 text-center text-sm text-muted-foreground\">No apps found.</p>\n )}\n {Boolean(props.error) && (\n <p role=\"alert\" className=\"mt-4 text-sm text-destructive\">\n {text(props.error)}\n </p>\n )}\n </section>\n );\n}\nexport const IntegrationGrid: RendererComponent = (props, ctx) => (\n <Integrations props={props} ctx={ctx} />\n);\nfunction Chat({ props, ctx }: { props: Record<string, unknown>; ctx: BlockContext }) {\n const [search, setSearch] = useState(\"\"),\n [localId, setId] = useState(\"\"),\n [localDraft, setDraft] = useState(\"\");\n const draft = typeof props.draft === \"string\" ? props.draft : localDraft;\n const intent = useRef<object>({});\n useEffect(() => {\n if (!draft) intent.current = {};\n }, [draft]);\n const conversations = records(props.conversations),\n id = text(props.selectedId, localId),\n selected = conversations.find((c) => c.id === id),\n messages = records(props.messages)\n .filter((m) => m.conversationId === id)\n .sort((a, b) => {\n const first = Date.parse(text(a.createdAt)),\n second = Date.parse(text(b.createdAt));\n return Number.isFinite(first) && Number.isFinite(second) ? first - second : 0;\n });\n const matches = conversations.filter((c) =>\n text(c.name).toLowerCase().includes(search.trim().toLowerCase()),\n );\n const backButton = useRef<HTMLButtonElement>(null);\n const searchInput = useRef<HTMLInputElement>(null);\n const returnButton = useRef<HTMLButtonElement | null>(null);\n const navigationFocus = useRef<{\n id: string;\n fromId: string;\n origin: HTMLButtonElement;\n } | null>(null);\n const hasSelection = Boolean(selected);\n useEffect(() => {\n const request = navigationFocus.current;\n if (!request) return;\n if (request.id !== id) {\n if (request.fromId !== id) navigationFocus.current = null;\n return;\n }\n if (id && !hasSelection) return;\n navigationFocus.current = null;\n const document = request.origin.ownerDocument;\n if (document.activeElement !== request.origin && document.activeElement !== document.body)\n return;\n const target = id\n ? backButton.current\n : returnButton.current?.isConnected\n ? returnButton.current\n : searchInput.current;\n if (target?.getClientRects().length) target.focus({ preventScroll: true });\n }, [id, hasSelection]);\n const log = useRef<HTMLDivElement>(null);\n const content = useRef<HTMLDivElement>(null);\n const followLatest = useRef(true);\n const layout = useRef({ width: 0, height: 0, content: 0 });\n const previousId = useRef(id);\n const lastMessage = messages.at(-1);\n // biome-ignore lint/correctness/useExhaustiveDependencies: Scroll follows the latest message only while the reader is at the bottom.\n useEffect(() => {\n const element = log.current;\n if (previousId.current !== id) followLatest.current = true;\n previousId.current = id;\n if (!element) return;\n const scroll = () => {\n if (followLatest.current) element.scrollTop = element.scrollHeight;\n layout.current = {\n width: element.clientWidth,\n height: element.clientHeight,\n content: element.scrollHeight,\n };\n };\n scroll();\n if (typeof ResizeObserver === \"undefined\") return;\n const observer = new ResizeObserver(scroll);\n observer.observe(element);\n if (content.current) observer.observe(content.current);\n return () => observer.disconnect();\n }, [id, messages.length, lastMessage?.id, lastMessage?.text]);\n return (\n <>\n {Boolean(props.error) && (\n <p role=\"alert\" className=\"mb-3 text-sm text-destructive\">\n {text(props.error)}\n </p>\n )}\n <section\n data-uibot-type=\"ChatPanel\"\n className=\"flex min-h-[560px] overflow-hidden rounded-xl border\"\n >\n <aside\n className={`${selected ? \"hidden md:block\" : \"block\"} w-full shrink-0 border-e p-4 md:w-72`}\n >\n <div className=\"mb-4 flex items-center justify-between\">\n <h2 className=\"text-2xl font-bold\">Inbox</h2>\n <Icon name=\"message-circle\" />\n </div>\n <input\n ref={searchInput}\n aria-label=\"Search conversations\"\n placeholder=\"Search chat...\"\n className=\"mb-4 w-full rounded-md border bg-background px-3 py-2 text-sm\"\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n />\n {!matches.length && (\n <p role=\"status\" className=\"p-3 text-sm text-muted-foreground\">\n {search.trim() ? \"No conversations found.\" : \"No conversations yet.\"}\n </p>\n )}\n {matches.map((c) => (\n <button\n key={text(c.id)}\n type=\"button\"\n className={`mb-1 flex w-full gap-3 rounded-md p-3 text-start ${c.id === id ? \"bg-muted\" : \"hover:bg-muted/50\"}`}\n onClick={(event) => {\n returnButton.current = event.currentTarget;\n navigationFocus.current = {\n id: text(c.id),\n fromId: id,\n origin: event.currentTarget,\n };\n setId(text(c.id));\n emit(ctx, \"onSelect\", { id: text(c.id) }, text(c.id));\n }}\n >\n <span className=\"grid size-10 shrink-0 place-items-center rounded-full bg-muted text-xs font-medium\">\n {text(c.initials)}\n </span>\n <span className=\"min-w-0\">\n <span className=\"block text-sm font-semibold\">{text(c.name)}</span>\n <span className=\"block truncate text-xs text-muted-foreground\">\n {text(c.preview)}\n </span>\n </span>\n </button>\n ))}\n </aside>\n <div className={`${selected ? \"flex\" : \"hidden md:flex\"} min-w-0 flex-1 flex-col`}>\n {selected ? (\n <>\n <header className=\"flex items-center gap-3 border-b px-6 py-4\">\n <button\n ref={backButton}\n type=\"button\"\n className=\"text-sm md:hidden\"\n onClick={(event) => {\n navigationFocus.current = { id: \"\", fromId: id, origin: event.currentTarget };\n setId(\"\");\n emit(ctx, \"onSelect\", { id: \"\" }, \"\");\n }}\n >\n Back\n </button>\n <div>\n <h3 className=\"font-semibold\">{text(selected.name)}</h3>\n <p className=\"text-xs text-muted-foreground\">\n {text(selected.description, \"Conversation\")}\n </p>\n </div>\n </header>\n <div\n ref={log}\n onScroll={(event) => {\n const element = event.currentTarget;\n // Layout anchoring can emit scroll before ResizeObserver delivers.\n if (\n element.clientWidth === layout.current.width &&\n element.clientHeight === layout.current.height &&\n element.scrollHeight === layout.current.content\n ) {\n followLatest.current =\n element.scrollHeight - element.scrollTop - element.clientHeight < 48;\n }\n }}\n className=\"max-h-[480px] flex-1 overflow-auto p-6\"\n role=\"log\"\n aria-label=\"Messages\"\n >\n <div ref={content} className=\"flex flex-col gap-4\">\n {messages.map((m) => (\n <div\n key={text(m.id)}\n className={`max-w-[80%] shrink-0 rounded-xl px-4 py-2.5 text-sm ${m.own === true || (props.currentUserId && m.senderId === props.currentUserId) ? \"ms-auto bg-primary text-primary-foreground\" : \"me-auto bg-muted\"}`}\n >\n <p className=\"whitespace-pre-wrap [overflow-wrap:anywhere]\">{text(m.text)}</p>\n <time className=\"mt-1 block text-[11px] opacity-60\">\n {m.time\n ? text(m.time)\n : Number.isFinite(Date.parse(text(m.createdAt)))\n ? new Date(text(m.createdAt)).toLocaleTimeString(undefined, {\n hour: \"2-digit\",\n minute: \"2-digit\",\n })\n : \"\"}\n </time>\n </div>\n ))}\n </div>\n </div>\n <form\n className=\"m-4 flex gap-2\"\n onSubmit={(e) => {\n e.preventDefault();\n if (props.canSend === true && props.pending !== true && draft.trim())\n emit(ctx, \"onSend\", {\n conversationId: id,\n text: draft.trim(),\n requestId: submissionKey(intent.current, { id, text: draft.trim() }),\n });\n }}\n >\n <input\n aria-label=\"Message\"\n required\n maxLength={8000}\n className=\"min-w-0 flex-1 rounded-md border bg-background px-3 py-2 text-sm\"\n placeholder=\"Type your message...\"\n value={draft}\n onChange={(e) => {\n setDraft(e.target.value);\n emit(ctx, \"onDraftChange\", { text: e.target.value }, e.target.value);\n }}\n disabled={props.pending === true}\n />\n <button\n type=\"submit\"\n aria-label=\"Send message\"\n disabled={props.canSend !== true || props.pending === true || !draft.trim()}\n className=\"rounded-md bg-primary px-3 text-primary-foreground disabled:opacity-40\"\n >\n <Icon name=\"send\" />\n </button>\n </form>\n {props.canSend !== true && (\n <p className=\"px-4 pb-4 text-xs text-muted-foreground\">\n Messaging service is not configured.\n </p>\n )}\n </>\n ) : (\n <div className=\"m-auto flex flex-col items-center gap-3 p-6\">\n <Icon name=\"message-circle\" size={40} />\n <h2 className=\"text-xl font-semibold\">Your messages</h2>\n <p className=\"text-sm text-muted-foreground\">\n Select a conversation to start chatting.\n </p>\n </div>\n )}\n </div>\n </section>\n </>\n );\n}\nexport const ChatPanel: RendererComponent = (props, ctx) => <Chat props={props} ctx={ctx} />;\n",
17
+ "type": "registry:ui"
18
+ },
19
+ {
20
+ "path": "components/uibot/icons.tsx",
21
+ "target": "components/uibot/icons.tsx",
22
+ "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",
23
+ "type": "registry:ui"
24
+ },
25
+ {
26
+ "path": "components/uibot/brand-icons.tsx",
27
+ "target": "components/uibot/brand-icons.tsx",
28
+ "content": "/*\nMIT License\n\nCopyright (c) 2024 Sat Naing\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\nBrand icon artwork adapted from the supplied shadcn-admin reference.\n*/\nimport type { SVGProps } from \"react\";\nfunction brandClass(...values: (string | undefined)[]) {\n return values.filter(Boolean).join(\" \");\n}\n\nexport function IconDiscord({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>Discord</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M8 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0\" />\n <path d=\"M14 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0\" />\n <path d=\"M15.5 17c0 1 1.5 3 2 3c1.5 0 2.833 -1.667 3.5 -3c.667 -1.667 .5 -5.833 -1.5 -11.5c-1.457 -1.015 -3 -1.34 -4.5 -1.5l-.972 1.923a11.913 11.913 0 0 0 -4.053 0l-.975 -1.923c-1.5 .16 -3.043 .485 -4.5 1.5c-2 5.667 -2.167 9.833 -1.5 11.5c.667 1.333 2 3 3.5 3c.5 0 2 -2 2 -3\" />\n <path d=\"M7 16.5c3.5 1 6.5 1 10 0\" />\n </svg>\n );\n}\n\nexport function IconDocker({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>Docker</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M22 12.54c-1.804 -.345 -2.701 -1.08 -3.523 -2.94c-.487 .696 -1.102 1.568 -.92 2.4c.028 .238 -.32 1 -.557 1h-14c0 5.208 3.164 7 6.196 7c4.124 .022 7.828 -1.376 9.854 -5c1.146 -.101 2.296 -1.505 2.95 -2.46z\" />\n <path d=\"M5 10h3v3h-3z\" />\n <path d=\"M8 10h3v3h-3z\" />\n <path d=\"M11 10h3v3h-3z\" />\n <path d=\"M8 7h3v3h-3z\" />\n <path d=\"M11 7h3v3h-3z\" />\n <path d=\"M11 4h3v3h-3z\" />\n <path d=\"M4.571 18c1.5 0 2.047 -.074 2.958 -.78\" />\n <path d=\"M10 16l0 .01\" />\n </svg>\n );\n}\n\nexport function IconFacebook({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>Facebook</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3\" />\n </svg>\n );\n}\n\nexport function IconFigma({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>Figma</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0\" />\n <path d=\"M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z\" />\n <path d=\"M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15\" />\n </svg>\n );\n}\n\nexport function IconGithub({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>GitHub</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5\" />\n </svg>\n );\n}\n\nexport function IconGitlab({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>GitLab</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M21 14l-9 7l-9 -7l3 -11l3 7h6l3 -7z\" />\n </svg>\n );\n}\n\nexport function IconGmail({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>Gmail</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M16 20h3a1 1 0 0 0 1 -1v-14a1 1 0 0 0 -1 -1h-3v16z\" />\n <path d=\"M5 20h3v-16h-3a1 1 0 0 0 -1 1v14a1 1 0 0 0 1 1z\" />\n <path d=\"M16 4l-4 4l-4 -4\" />\n <path d=\"M4 6.5l8 7.5l8 -7.5\" />\n </svg>\n );\n}\n\nexport function IconMedium({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>Medium</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z\" />\n <path d=\"M8 9h1l3 3l3 -3h1\" />\n <path d=\"M8 15l2 0\" />\n <path d=\"M14 15l2 0\" />\n <path d=\"M9 9l0 6\" />\n <path d=\"M15 9l0 6\" />\n </svg>\n );\n}\n\nexport function IconNotion({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>Notion</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M11 17.5v-6.5h.5l4 6h.5v-6.5\" />\n <path d=\"M19.077 20.071l-11.53 .887a1 1 0 0 1 -.876 -.397l-2.471 -3.294a1 1 0 0 1 -.2 -.6v-10.741a1 1 0 0 1 .923 -.997l11.389 -.876a2 2 0 0 1 1.262 .33l1.535 1.023a2 2 0 0 1 .891 1.664v12.004a1 1 0 0 1 -.923 .997z\" />\n <path d=\"M4.5 5.5l2.5 2.5\" />\n <path d=\"M20 7l-13 1v12.5\" />\n </svg>\n );\n}\n\nexport function IconSkype({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>Skype</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M12 3a9 9 0 0 1 8.603 11.65a4.5 4.5 0 0 1 -5.953 5.953a9 9 0 0 1 -11.253 -11.253a4.5 4.5 0 0 1 5.953 -5.954a8.987 8.987 0 0 1 2.65 -.396z\" />\n <path d=\"M8 14.5c.5 2 2.358 2.5 4 2.5c2.905 0 4 -1.187 4 -2.5c0 -1.503 -1.927 -2.5 -4 -2.5s-4 -1 -4 -2.5c0 -1.313 1.095 -2.5 4 -2.5c1.642 0 3.5 .5 4 2.5\" />\n </svg>\n );\n}\n\nexport function IconSlack({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>Slack</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M12 12v-6a2 2 0 0 1 4 0v6m0 -2a2 2 0 1 1 2 2h-6\" />\n <path d=\"M12 12h6a2 2 0 0 1 0 4h-6m2 0a2 2 0 1 1 -2 2v-6\" />\n <path d=\"M12 12v6a2 2 0 0 1 -4 0v-6m0 2a2 2 0 1 1 -2 -2h6\" />\n <path d=\"M12 12h-6a2 2 0 0 1 0 -4h6m-2 0a2 2 0 1 1 2 -2v6\" />\n </svg>\n );\n}\n\nexport function IconStripe({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>Stripe</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M11.453 8.056c0 -.623 .518 -.979 1.442 -.979c1.69 0 3.41 .343 4.605 .923l.5 -4c-.948 -.449 -2.82 -1 -5.5 -1c-1.895 0 -3.373 .087 -4.5 1c-1.172 .956 -2 2.33 -2 4c0 3.03 1.958 4.906 5 6c1.961 .69 3 .743 3 1.5c0 .735 -.851 1.5 -2 1.5c-1.423 0 -3.963 -.609 -5.5 -1.5l-.5 4c1.321 .734 3.474 1.5 6 1.5c2 0 3.957 -.468 5.084 -1.36c1.263 -.979 1.916 -2.268 1.916 -4.14c0 -3.096 -1.915 -4.547 -5 -5.637c-1.646 -.605 -2.544 -1.07 -2.544 -1.807z\" />\n </svg>\n );\n}\n\nexport function IconTelegram({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>Telegram</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4\" />\n </svg>\n );\n}\n\nexport function IconTrello({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>Trello</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z\" />\n <path d=\"M7 7h3v10h-3z\" />\n <path d=\"M14 7h3v6h-3z\" />\n </svg>\n );\n}\n\nexport function IconWhatsapp({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>WhatsApp</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9\" />\n <path d=\"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1\" />\n </svg>\n );\n}\n\nexport function IconZoom({ className, ...props }: SVGProps<SVGSVGElement>) {\n return (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n className={brandClass(\"[&>path]:stroke-current\", className)}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n {...props}\n >\n <title>Zoom</title>\n <path strokeWidth=\"0\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M17.011 9.385v5.128l3.989 3.487v-12z\" />\n <path d=\"M3.887 6h10.08c1.468 0 3.033 1.203 3.033 2.803v8.196a.991 .991 0 0 1 -.975 1h-10.373c-1.667 0 -2.652 -1.5 -2.652 -3l.01 -8a.882 .882 0 0 1 .208 -.71a.841 .841 0 0 1 .67 -.287z\" />\n </svg>\n );\n}\n\nconst brands = {\n discord: IconDiscord,\n docker: IconDocker,\n facebook: IconFacebook,\n figma: IconFigma,\n github: IconGithub,\n gitlab: IconGitlab,\n gmail: IconGmail,\n medium: IconMedium,\n notion: IconNotion,\n skype: IconSkype,\n slack: IconSlack,\n stripe: IconStripe,\n telegram: IconTelegram,\n trello: IconTrello,\n whatsapp: IconWhatsapp,\n zoom: IconZoom,\n};\nexport function BrandIcon({ name }: { name: string }) {\n const Component = brands[name as keyof typeof brands];\n return Component ? <Component aria-hidden=\"true\" /> : null;\n}\n",
29
+ "type": "registry:ui"
30
+ },
31
+ {
32
+ "path": "components/uibot/interaction.ts",
33
+ "target": "components/uibot/interaction.ts",
34
+ "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",
35
+ "type": "registry:ui"
36
+ },
37
+ {
38
+ "path": "components/uibot/workspace.uibot.json",
39
+ "target": "components/uibot/workspace.uibot.json",
40
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"workspace\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"ChatPanel\",\n \"export\": \"ChatPanel\",\n \"module\": \"workspace.tsx\",\n \"catalog\": {\n \"name\": \"ChatPanel\",\n \"tags\": [\n \"interactive\"\n ],\n \"description\": \"Conversation selector and controlled message composition\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"props\": {\n \"draft\": {\n \"type\": \"string\"\n },\n \"currentUserId\": {\n \"type\": \"string\"\n },\n \"conversations\": {\n \"type\": \"array\"\n },\n \"messages\": {\n \"type\": \"array\"\n },\n \"selectedId\": {\n \"type\": \"string\"\n },\n \"pending\": {\n \"type\": \"boolean\"\n },\n \"canSend\": {\n \"type\": \"boolean\"\n },\n \"error\": {\n \"type\": \"string\"\n }\n },\n \"events\": {\n \"onDraftChange\": {\n \"description\": \"Draft text in event.value; clear only after confirmed persistence\"\n },\n \"onSelect\": {\n \"description\": \"Serializable values in event.values\"\n },\n \"onSend\": {\n \"description\": \"Serializable values in event.values\"\n }\n }\n }\n },\n {\n \"name\": \"IntegrationGrid\",\n \"export\": \"IntegrationGrid\",\n \"module\": \"workspace.tsx\",\n \"catalog\": {\n \"name\": \"IntegrationGrid\",\n \"tags\": [\n \"data\"\n ],\n \"description\": \"Searchable integrations with explicit capability availability\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"props\": {\n \"configurations\": {\n \"type\": \"array\"\n },\n \"configurable\": {\n \"type\": \"boolean\"\n },\n \"items\": {\n \"type\": \"array\"\n },\n \"pending\": {\n \"type\": \"boolean\"\n },\n \"error\": {\n \"type\": \"string\"\n }\n },\n \"events\": {\n \"onConfigure\": {\n \"description\": \"Workspace configuration intent and existing record version\"\n },\n \"onAction\": {\n \"description\": \"Serializable values in event.values\"\n }\n }\n }\n }\n ]\n}\n",
41
+ "type": "registry:ui"
42
+ }
43
+ ],
44
+ "meta": {
45
+ "category": "composite",
46
+ "level": "L2",
47
+ "props": {
48
+ "configurations": {
49
+ "type": "array"
50
+ },
51
+ "configurable": {
52
+ "type": "boolean"
53
+ },
54
+ "items": {
55
+ "type": "array"
56
+ },
57
+ "pending": {
58
+ "type": "boolean"
59
+ },
60
+ "error": {
61
+ "type": "string"
62
+ }
63
+ },
64
+ "events": {
65
+ "onConfigure": {
66
+ "description": "Workspace configuration intent and existing record version"
67
+ },
68
+ "onAction": {
69
+ "description": "Serializable values in event.values"
70
+ }
71
+ },
72
+ "provides": [
73
+ "IntegrationGrid",
74
+ "ChatPanel"
75
+ ],
76
+ "uibot": {
77
+ "schema": "uibot.registry.item.v1",
78
+ "item": "workspace",
79
+ "channel": "public",
80
+ "components": [
81
+ {
82
+ "name": "ChatPanel",
83
+ "export": "ChatPanel",
84
+ "module": "workspace.tsx",
85
+ "catalog": {
86
+ "name": "ChatPanel",
87
+ "tags": [
88
+ "interactive"
89
+ ],
90
+ "description": "Conversation selector and controlled message composition",
91
+ "category": "composite",
92
+ "level": "L2",
93
+ "props": {
94
+ "draft": {
95
+ "type": "string"
96
+ },
97
+ "currentUserId": {
98
+ "type": "string"
99
+ },
100
+ "conversations": {
101
+ "type": "array"
102
+ },
103
+ "messages": {
104
+ "type": "array"
105
+ },
106
+ "selectedId": {
107
+ "type": "string"
108
+ },
109
+ "pending": {
110
+ "type": "boolean"
111
+ },
112
+ "canSend": {
113
+ "type": "boolean"
114
+ },
115
+ "error": {
116
+ "type": "string"
117
+ }
118
+ },
119
+ "events": {
120
+ "onDraftChange": {
121
+ "description": "Draft text in event.value; clear only after confirmed persistence"
122
+ },
123
+ "onSelect": {
124
+ "description": "Serializable values in event.values"
125
+ },
126
+ "onSend": {
127
+ "description": "Serializable values in event.values"
128
+ }
129
+ }
130
+ }
131
+ },
132
+ {
133
+ "name": "IntegrationGrid",
134
+ "export": "IntegrationGrid",
135
+ "module": "workspace.tsx",
136
+ "catalog": {
137
+ "name": "IntegrationGrid",
138
+ "tags": [
139
+ "data"
140
+ ],
141
+ "description": "Searchable integrations with explicit capability availability",
142
+ "category": "composite",
143
+ "level": "L2",
144
+ "props": {
145
+ "configurations": {
146
+ "type": "array"
147
+ },
148
+ "configurable": {
149
+ "type": "boolean"
150
+ },
151
+ "items": {
152
+ "type": "array"
153
+ },
154
+ "pending": {
155
+ "type": "boolean"
156
+ },
157
+ "error": {
158
+ "type": "string"
159
+ }
160
+ },
161
+ "events": {
162
+ "onConfigure": {
163
+ "description": "Workspace configuration intent and existing record version"
164
+ },
165
+ "onAction": {
166
+ "description": "Serializable values in event.values"
167
+ }
168
+ }
169
+ }
170
+ }
171
+ ]
172
+ }
173
+ }
174
+ }