@uibot/registry 0.11.0 → 0.12.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/shadcn/r/collection-cell-editor.json +1 -1
- 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/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-workspace.json +2 -2
- package/dist/shadcn/r/preview-device-frame.json +25 -0
- package/dist/shadcn/registry.json +26 -14
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Design-system cell editors for PagedCollectionGrid's renderCellEditor: text, number, long text, checkbox, single/multiple select, calendar dates (timestamps keep their time) and a searchable relation picker.",
|
|
6
6
|
"dependencies": [
|
|
7
7
|
"react",
|
|
8
|
-
"@uibot/renderer-react@^0.
|
|
8
|
+
"@uibot/renderer-react@^0.12.0",
|
|
9
9
|
"cmdk@^1",
|
|
10
10
|
"date-fns@^4",
|
|
11
11
|
"lucide-react",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Right-hand drawer for PagedCollectionWorkspace's renderPanel; a busy panel stays open and unsaved edits ask before closing.",
|
|
6
6
|
"dependencies": [
|
|
7
7
|
"react",
|
|
8
|
-
"@uibot/renderer-react@^0.
|
|
8
|
+
"@uibot/renderer-react@^0.12.0"
|
|
9
9
|
],
|
|
10
10
|
"registryDependencies": [
|
|
11
11
|
"button",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Right-click record actions (expand, duplicate, copy cells, delete) for renderRecordContextMenu.",
|
|
6
6
|
"dependencies": [
|
|
7
7
|
"react",
|
|
8
|
-
"@uibot/renderer-react@^0.
|
|
8
|
+
"@uibot/renderer-react@^0.12.0"
|
|
9
9
|
],
|
|
10
10
|
"registryDependencies": [
|
|
11
11
|
"context-menu",
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"description": "Generate a new HTML artifact or rewrite the current revision, with at-most-once dispatch and reconcile from @uibot/creation-kit.",
|
|
6
6
|
"dependencies": [
|
|
7
7
|
"react",
|
|
8
|
-
"@uibot/contracts@^0.
|
|
9
|
-
"@uibot/creation-kit@^0.
|
|
8
|
+
"@uibot/contracts@^0.12.0",
|
|
9
|
+
"@uibot/creation-kit@^0.12.0"
|
|
10
10
|
],
|
|
11
11
|
"registryDependencies": [
|
|
12
12
|
"button",
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"description": "Generate a presentation from an explicitly chosen saved HTML revision.",
|
|
6
6
|
"dependencies": [
|
|
7
7
|
"react",
|
|
8
|
-
"@uibot/contracts@^0.
|
|
9
|
-
"@uibot/creation-kit@^0.
|
|
8
|
+
"@uibot/contracts@^0.12.0",
|
|
9
|
+
"@uibot/creation-kit@^0.12.0"
|
|
10
10
|
],
|
|
11
11
|
"registryDependencies": [
|
|
12
12
|
"button",
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"description": "Download a saved HTML revision (PPTX for presentations) once no model request is open; the host supplies the export transport.",
|
|
6
6
|
"dependencies": [
|
|
7
7
|
"react",
|
|
8
|
-
"@uibot/contracts@^0.
|
|
9
|
-
"@uibot/creation-kit@^0.
|
|
8
|
+
"@uibot/contracts@^0.12.0",
|
|
9
|
+
"@uibot/creation-kit@^0.12.0"
|
|
10
10
|
],
|
|
11
11
|
"registryDependencies": [
|
|
12
12
|
"button",
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"description": "Copy (zh/en), domain filters and run checks shared by the UIBot creation blocks.",
|
|
6
6
|
"dependencies": [
|
|
7
7
|
"react",
|
|
8
|
-
"@uibot/contracts@^0.
|
|
9
|
-
"@uibot/creation-kit@^0.
|
|
8
|
+
"@uibot/contracts@^0.12.0",
|
|
9
|
+
"@uibot/creation-kit@^0.12.0"
|
|
10
10
|
],
|
|
11
11
|
"registryDependencies": [],
|
|
12
12
|
"files": [
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"description": "Manual HTML creation workspace (projects, artifacts, CAS saves with a conflict step, generation, export) over useCreationWorkspace; the host renders the editor.",
|
|
6
6
|
"dependencies": [
|
|
7
7
|
"react",
|
|
8
|
-
"@uibot/contracts@^0.
|
|
9
|
-
"@uibot/creation-kit@^0.
|
|
8
|
+
"@uibot/contracts@^0.12.0",
|
|
9
|
+
"@uibot/creation-kit@^0.12.0"
|
|
10
10
|
],
|
|
11
11
|
"registryDependencies": [
|
|
12
12
|
"button",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "preview-device-frame",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "CSS-only preview shell with a phone / tablet / desktop width switch (no nested iframe).",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"react",
|
|
8
|
+
"lucide-react"
|
|
9
|
+
],
|
|
10
|
+
"registryDependencies": [
|
|
11
|
+
"button"
|
|
12
|
+
],
|
|
13
|
+
"files": [
|
|
14
|
+
{
|
|
15
|
+
"path": "components/uibot/preview/preview-device-frame.tsx",
|
|
16
|
+
"target": "components/uibot/preview/preview-device-frame.tsx",
|
|
17
|
+
"content": "import { Button } from \"@/components/ui/button\";\nimport { Monitor, Smartphone, Tablet } from \"lucide-react\";\nimport { type ReactNode, useState } from \"react\";\n\nexport type DeviceFramePreset = \"phone\" | \"tablet\" | \"desktop\";\nexport type DeviceFrameLocale = \"zh\" | \"en\";\n\n/** Phone and tablet cap the width; desktop is fluid. */\nexport const DEVICE_FRAME_WIDTHS: Record<DeviceFramePreset, string | null> = {\n phone: \"390px\",\n tablet: \"768px\",\n desktop: null,\n};\n\nconst MESSAGES = {\n zh: { toolbar: \"预览设备尺寸\", phone: \"手机\", tablet: \"平板\", desktop: \"桌面\" },\n en: { toolbar: \"Preview device size\", phone: \"Phone\", tablet: \"Tablet\", desktop: \"Desktop\" },\n};\n\nconst ICONS = { phone: Smartphone, tablet: Tablet, desktop: Monitor };\n\nexport interface DeviceFrameProps {\n children: ReactNode;\n /** Controlled preset; omit to keep it internal (default phone). */\n preset?: DeviceFramePreset;\n onPresetChange?: (preset: DeviceFramePreset) => void;\n locale?: DeviceFrameLocale;\n className?: string;\n}\n\n/** CSS-only preview shell with a phone / tablet / desktop switch. No nested iframe. */\nexport function DeviceFrame({\n children,\n preset: controlled,\n onPresetChange,\n locale = \"en\",\n className,\n}: DeviceFrameProps) {\n const t = MESSAGES[locale];\n const [internal, setInternal] = useState<DeviceFramePreset>(\"phone\");\n const preset = controlled ?? internal;\n const setPreset = (next: DeviceFramePreset) => {\n if (controlled === undefined) setInternal(next);\n onPresetChange?.(next);\n };\n const maxWidth = DEVICE_FRAME_WIDTHS[preset];\n return (\n <div className={`flex min-h-0 flex-1 flex-col gap-2${className ? ` ${className}` : \"\"}`}>\n <fieldset\n aria-label={t.toolbar}\n className=\"m-0 flex min-w-0 shrink-0 items-center gap-1 border-0 p-0\"\n >\n {(Object.keys(DEVICE_FRAME_WIDTHS) as DeviceFramePreset[]).map((key) => {\n const Icon = ICONS[key];\n return (\n <Button\n key={key}\n type=\"button\"\n size=\"sm\"\n variant={preset === key ? \"secondary\" : \"ghost\"}\n aria-pressed={preset === key}\n onClick={() => setPreset(key)}\n >\n <Icon />\n {t[key]}\n </Button>\n );\n })}\n </fieldset>\n <div className=\"flex min-h-0 flex-1 justify-center overflow-auto p-1\">\n <div\n data-preset={preset}\n className={\n preset === \"desktop\"\n ? \"flex min-h-0 w-full flex-1 flex-col overflow-hidden rounded-md border bg-background\"\n : \"flex min-h-0 w-full flex-1 flex-col overflow-hidden rounded-[1.25rem] border bg-background shadow-sm\"\n }\n style={maxWidth ? { maxWidth, width: \"100%\" } : { width: \"100%\" }}\n >\n {children}\n </div>\n </div>\n </div>\n );\n}\n",
|
|
18
|
+
"type": "registry:component"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"meta": {
|
|
22
|
+
"composite": true,
|
|
23
|
+
"channel": "public"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -541,8 +541,8 @@
|
|
|
541
541
|
"registryDependencies": [],
|
|
542
542
|
"dependencies": [
|
|
543
543
|
"react",
|
|
544
|
-
"@uibot/contracts@^0.
|
|
545
|
-
"@uibot/creation-kit@^0.
|
|
544
|
+
"@uibot/contracts@^0.12.0",
|
|
545
|
+
"@uibot/creation-kit@^0.12.0"
|
|
546
546
|
]
|
|
547
547
|
},
|
|
548
548
|
{
|
|
@@ -557,8 +557,8 @@
|
|
|
557
557
|
],
|
|
558
558
|
"dependencies": [
|
|
559
559
|
"react",
|
|
560
|
-
"@uibot/contracts@^0.
|
|
561
|
-
"@uibot/creation-kit@^0.
|
|
560
|
+
"@uibot/contracts@^0.12.0",
|
|
561
|
+
"@uibot/creation-kit@^0.12.0"
|
|
562
562
|
]
|
|
563
563
|
},
|
|
564
564
|
{
|
|
@@ -573,8 +573,8 @@
|
|
|
573
573
|
],
|
|
574
574
|
"dependencies": [
|
|
575
575
|
"react",
|
|
576
|
-
"@uibot/contracts@^0.
|
|
577
|
-
"@uibot/creation-kit@^0.
|
|
576
|
+
"@uibot/contracts@^0.12.0",
|
|
577
|
+
"@uibot/creation-kit@^0.12.0"
|
|
578
578
|
]
|
|
579
579
|
},
|
|
580
580
|
{
|
|
@@ -587,8 +587,8 @@
|
|
|
587
587
|
],
|
|
588
588
|
"dependencies": [
|
|
589
589
|
"react",
|
|
590
|
-
"@uibot/contracts@^0.
|
|
591
|
-
"@uibot/creation-kit@^0.
|
|
590
|
+
"@uibot/contracts@^0.12.0",
|
|
591
|
+
"@uibot/creation-kit@^0.12.0"
|
|
592
592
|
]
|
|
593
593
|
},
|
|
594
594
|
{
|
|
@@ -607,8 +607,8 @@
|
|
|
607
607
|
],
|
|
608
608
|
"dependencies": [
|
|
609
609
|
"react",
|
|
610
|
-
"@uibot/contracts@^0.
|
|
611
|
-
"@uibot/creation-kit@^0.
|
|
610
|
+
"@uibot/contracts@^0.12.0",
|
|
611
|
+
"@uibot/creation-kit@^0.12.0"
|
|
612
612
|
]
|
|
613
613
|
},
|
|
614
614
|
{
|
|
@@ -618,7 +618,7 @@
|
|
|
618
618
|
"registryDependencies": [],
|
|
619
619
|
"dependencies": [
|
|
620
620
|
"react",
|
|
621
|
-
"@uibot/renderer-react@^0.
|
|
621
|
+
"@uibot/renderer-react@^0.12.0"
|
|
622
622
|
]
|
|
623
623
|
},
|
|
624
624
|
{
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
],
|
|
637
637
|
"dependencies": [
|
|
638
638
|
"react",
|
|
639
|
-
"@uibot/renderer-react@^0.
|
|
639
|
+
"@uibot/renderer-react@^0.12.0",
|
|
640
640
|
"cmdk@^1",
|
|
641
641
|
"date-fns@^4",
|
|
642
642
|
"lucide-react",
|
|
@@ -653,7 +653,7 @@
|
|
|
653
653
|
],
|
|
654
654
|
"dependencies": [
|
|
655
655
|
"react",
|
|
656
|
-
"@uibot/renderer-react@^0.
|
|
656
|
+
"@uibot/renderer-react@^0.12.0"
|
|
657
657
|
]
|
|
658
658
|
},
|
|
659
659
|
{
|
|
@@ -667,7 +667,19 @@
|
|
|
667
667
|
],
|
|
668
668
|
"dependencies": [
|
|
669
669
|
"react",
|
|
670
|
-
"@uibot/renderer-react@^0.
|
|
670
|
+
"@uibot/renderer-react@^0.12.0"
|
|
671
|
+
]
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"name": "preview-device-frame",
|
|
675
|
+
"type": "registry:block",
|
|
676
|
+
"description": "CSS-only preview shell with a phone / tablet / desktop width switch (no nested iframe).",
|
|
677
|
+
"registryDependencies": [
|
|
678
|
+
"button"
|
|
679
|
+
],
|
|
680
|
+
"dependencies": [
|
|
681
|
+
"react",
|
|
682
|
+
"lucide-react"
|
|
671
683
|
]
|
|
672
684
|
}
|
|
673
685
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uibot/registry",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@uibot/contracts": "^0.
|
|
30
|
+
"@uibot/contracts": "^0.12.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "rm -rf dist tsconfig.tsbuildinfo && bun build --minify ./src/index.ts --outdir ./dist --format esm --target bun && bun x tsc -b",
|