@vite-hub/ui 0.8.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.
- package/README.md +66 -50
- package/dist/{Chat-CuSthJVg.js → Chat-DYQitDw8.js} +1 -1
- package/dist/{ChatMessage-CFQs0v4N.js → ChatMessage-DzjHnxMT.js} +1 -1
- package/dist/{CodeBlockTitle-DIu8Ef3V.js → CodeBlockTitle-DX13mCTi.js} +1 -1
- package/dist/{CommentRow-XY3FNp30.js → CommentRow-DLW77qch.js} +2 -2
- package/dist/{CopyButton-Bs6DT-Z8.js → CopyButton-D-g6PWc8.js} +3 -3
- package/dist/{Markdown-Da5t-931.js → Markdown-3-Tvy5Kl.js} +1 -1
- package/dist/{MarkdownCodeBlock-BWDLOWPO.js → MarkdownCodeBlock-CALGW0iw.js} +1 -1
- package/dist/{MessageParts-CyJLG34y.js → MessageParts-BGSctG7Z.js} +1 -1
- package/dist/{MorphText-B6MWdeIv.js → MorphText-DAHAswWX.js} +1 -1
- package/dist/{RollNumber-CnF52zJM.js → RollNumber-CkdLiy2i.js} +1 -1
- package/dist/{SwapIcon-CUIq1TU5.js → SwapIcon-Bjkk7WlZ.js} +1 -1
- package/dist/{agent-session-2j2gbGpp.js → agent-session-D291hyRk.js} +1 -1
- package/dist/{avatar-stack-CoLlsmwJ.js → avatar-stack-Bi4CJPuU.js} +1 -1
- package/dist/{chat-session-cxUzvwdj.js → chat-session-Bl-x4c9b.js} +1 -1
- package/dist/{code-block-BqOEVWPh.d.ts → code-block-Bp8y-XJp.d.ts} +1 -1
- package/dist/{comment-composer-D_mcH3Ts.js → comment-composer-BtYrIT5W.js} +14 -19
- package/dist/{comment-composer-CsVOvG9j.d.ts → comment-composer-PmERtNNb.d.ts} +6 -6
- package/dist/{comment-layer-C3xmg-0_.d.ts → comment-layer-BgQz1ixK.d.ts} +6 -6
- package/dist/{comment-layer-Ci6ipGi2.js → comment-layer-T8hN_7bN.js} +11 -12
- package/dist/{comment-panel-DxN21VoY.d.ts → comment-panel-Vo3m6rHB.d.ts} +8 -8
- package/dist/{comment-selection-bar-DZAtiRZ9.js → comment-selection-bar-BMFTtI3V.js} +2 -3
- package/dist/{comment-thread-BzOZVqF2.js → comment-thread-CAexk1r7.js} +78 -38
- package/dist/{comment-thread-BmsqcjVQ.d.ts → comment-thread-Cp9k80uv.d.ts} +53 -5
- package/dist/{comments-BU8cTt5o.d.ts → comments-BBNiQTxK.d.ts} +4 -4
- package/dist/{components-B_2Q0dJ3.js → components-D44u1fsy.js} +22 -47
- package/dist/{config-BDQYUjjp.js → config-7CiYbXk6.js} +8 -5
- package/dist/{config-JmsTI7gs.d.ts → config-BYLPA0Ts.d.ts} +8 -6
- package/dist/{drop-field-DeIvKoJs.js → drop-field-BkoJOWR9.js} +1 -1
- package/dist/{editor-hXea1i46.js → editor-CE_q2Yzb.js} +89 -49
- package/dist/{editor-BsOTjnnN.d.ts → editor-DZxaa6vs.d.ts} +8 -7
- package/dist/editor.d.ts +2 -2
- package/dist/editor.js +2 -2
- package/dist/{hold-to-delete-DazElJT2.js → hold-to-delete-pyrlKzk0.js} +1 -1
- package/dist/{hold-to-delete-D1Vy40w5.js → hold-to-delete-sscThmPW.js} +1 -1
- package/dist/icon-component-ofUeRW4L.js +4 -0
- package/dist/{index-CffOzibW.d.ts → index-BlQsW8ZZ.d.ts} +1 -1
- package/dist/index.d.ts +11 -18
- package/dist/index.js +23 -24
- package/dist/{markdown-_0HhbsOo.js → markdown-CqVyNG-h.js} +2 -2
- package/dist/markdown-editor.d.ts +1 -1
- package/dist/markdown-editor.js +4 -4
- package/dist/markdown.js +1 -1
- package/dist/motion/core.d.ts +1 -1
- package/dist/motion/core.js +4 -4
- package/dist/{motion-BhARaNBB.js → motion-C8P5yWaA.js} +1 -1
- package/dist/{motion-core-gfsTPLbh.d.ts → motion-core-BEwxN7Il.d.ts} +0 -2
- package/dist/{motion-core-JZZiPKEk.js → motion-core-pkL0M4Y1.js} +3 -46
- package/dist/{motion-list-9vD1hSS0.js → motion-list-DDVUyVYa.js} +1 -1
- package/dist/motion.d.ts +1 -1
- package/dist/motion.js +5 -5
- package/dist/nuxt.d.ts +2 -4
- package/dist/nuxt.js +1 -33
- package/dist/parts/components/agent-session.js +1 -1
- package/dist/parts/components/avatar-stack.js +1 -1
- package/dist/parts/components/chat-message.js +1 -1
- package/dist/parts/components/chat-session.js +1 -1
- package/dist/parts/components/chat.js +1 -1
- package/dist/parts/components/code-block.d.ts +1 -1
- package/dist/parts/components/code-block.js +1 -1
- package/dist/parts/components/comment-composer.d.ts +1 -1
- package/dist/parts/components/comment-composer.js +1 -1
- package/dist/parts/components/comment-layer.d.ts +1 -1
- package/dist/parts/components/comment-layer.js +1 -1
- package/dist/parts/components/comment-panel.d.ts +1 -1
- package/dist/parts/components/comment-panel.js +6 -7
- package/dist/parts/components/comment-selection-bar.js +1 -1
- package/dist/parts/components/comment-thread.d.ts +1 -1
- package/dist/parts/components/comment-thread.js +1 -1
- package/dist/parts/components/comments.d.ts +5 -5
- package/dist/parts/components/comments.js +4 -4
- package/dist/parts/components/copy-button.js +1 -1
- package/dist/parts/components/drop-field.js +1 -1
- package/dist/parts/components/hold-to-delete.js +1 -1
- package/dist/parts/components/markdown.js +1 -1
- package/dist/parts/components/message-parts.js +1 -1
- package/dist/parts/components/motion-list.d.ts +1 -1
- package/dist/parts/components/motion-list.js +1 -1
- package/dist/parts/components/motion.d.ts +2 -2
- package/dist/parts/components/motion.js +4 -4
- package/dist/parts/components/progress.js +1 -1
- package/dist/parts/components/prompt-input.d.ts +1 -1
- package/dist/parts/components/sync-status.js +1 -1
- package/dist/parts/playground/share.js +0 -1
- package/dist/parts/workspace/browser-support-notice.d.ts +2 -2
- package/dist/parts/workspace/browser-support-notice.js +4 -4
- package/dist/parts/workspace/codemirror.js +0 -4
- package/dist/parts/workspace/connect-panel.js +2 -3
- package/dist/parts/workspace/file-icons.js +0 -8
- package/dist/parts/workspace/runners/web-container.js +2 -2
- package/dist/parts/workspace/workspace-bar.d.ts +1 -1
- package/dist/parts/workspace/workspace-bar.js +2 -3
- package/dist/parts/workspace/workspace-boot-status.js +1 -1
- package/dist/parts/workspace/workspace-editor-head.js +2 -3
- package/dist/parts/workspace/workspace-examples.js +4 -5
- package/dist/parts/workspace/workspace-file-tree.d.ts +1 -1
- package/dist/parts/workspace/workspace-guide.d.ts +1 -1
- package/dist/parts/workspace/workspace-guide.js +3 -4
- package/dist/parts/workspace/workspace-preview.d.ts +1 -1
- package/dist/parts/workspace/workspace-preview.js +2 -4
- package/dist/parts/workspace/workspace-shell.d.ts +1 -1
- package/dist/parts/workspace/workspace-shell.js +2 -7
- package/dist/parts/workspace/workspace-sidebar.d.ts +3 -3
- package/dist/parts/workspace/workspace-sidebar.js +5 -6
- package/dist/parts/workspace/workspace-start.d.ts +1 -1
- package/dist/parts/workspace/workspace-start.js +2 -3
- package/dist/parts/workspace/workspace-steps.js +6 -7
- package/dist/parts/workspace/workspace-terminal.js +0 -6
- package/dist/parts/workspace/workspace.d.ts +5 -5
- package/dist/parts/workspace/workspace.js +15 -18
- package/dist/{progress-8P8RLYMy.js → progress-D7CyDkLW.js} +1 -1
- package/dist/{prompt-input-j4OFTF5p.d.ts → prompt-input-DZM3E6WP.d.ts} +2 -2
- package/dist/{ring-B0nZBnU0.js → ring-C5lNUEAG.js} +1 -1
- package/dist/runtime/nuxt-plugin.js +27 -1
- package/dist/{stand-ins-CuKM1UH1.js → stand-ins-C2oSoNwV.js} +29 -84
- package/dist/styles.css +27 -9
- package/dist/{sync-status-B29eG_n-.js → sync-status-D27Qt7mk.js} +1 -1
- package/dist/theme-focus-ring.css +1 -1
- package/dist/{tween-1W-LlKk9.js → tween-DGAmrS3r.js} +0 -2
- package/dist/{vue-BdA18K5-.js → vue-D70TZJhJ.js} +1 -1
- package/dist/{workspace-boot-status-CyGlJS06.js → workspace-boot-status-BDkpubHd.js} +0 -1
- package/dist/{workspace-shell-B4A7CINd.d.ts → workspace-shell-CwEQT_1s.d.ts} +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +1 -1
- package/package.json +10 -15
- package/dist/nuxt-ui-D3Qda35W.js +0 -22
- package/dist/theme.css +0 -379
- package/dist/theme.d.ts +0 -410
- package/dist/theme.js +0 -290
- package/dist/ui-components-CKQAPI-W.js +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { defineComponent,
|
|
1
|
+
import { t as iconComponentKey } from "./icon-component-ofUeRW4L.js";
|
|
2
|
+
import { defineComponent, h, inject } from "vue";
|
|
3
3
|
import { Button } from "@ui-sdk/vue/button";
|
|
4
4
|
// src/internal/icon-shapes.ts
|
|
5
5
|
/** The stroke of every Lucide icon. An icon drawn from shapes without it sets it on its `<svg>`. */
|
|
@@ -12,29 +12,18 @@ const lucideStroke = {
|
|
|
12
12
|
};
|
|
13
13
|
// src/ui-sdk/icons.ts
|
|
14
14
|
const uiSdkIcons = {
|
|
15
|
-
"i-lucide-arrow-down": [["path", { "d": "M12 5v14m7-7l-7 7l-7-7" }]],
|
|
16
15
|
"i-lucide-arrow-left": [["path", { "d": "m12 19l-7-7l7-7m7 7H5" }]],
|
|
17
|
-
"i-lucide-arrow-right": [["path", { "d": "M5 12h14m-7-7l7 7l-7 7" }]],
|
|
18
16
|
"i-lucide-arrow-up": [["path", { "d": "m5 12l7-7l7 7m-7 7V5" }]],
|
|
19
|
-
"i-lucide-arrow-up-right": [["path", { "d": "M7 7h10v10M7 17L17 7" }]],
|
|
20
17
|
"i-lucide-bold": [["path", { "d": "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" }]],
|
|
21
18
|
"i-lucide-check": [["path", { "d": "M20 6L9 17l-5-5" }]],
|
|
22
19
|
"i-lucide-chevron-down": [["path", { "d": "m6 9l6 6l6-6" }]],
|
|
23
20
|
"i-lucide-chevron-left": [["path", { "d": "m15 18l-6-6l6-6" }]],
|
|
24
21
|
"i-lucide-chevron-right": [["path", { "d": "m9 18l6-6l-6-6" }]],
|
|
25
|
-
"i-lucide-
|
|
26
|
-
"i-lucide-chevrons-left": [["path", { "d": "m11 17l-5-5l5-5m7 10l-5-5l5-5" }]],
|
|
27
|
-
"i-lucide-chevrons-right": [["path", { "d": "m6 17l5-5l-5-5m7 10l5-5l-5-5" }]],
|
|
28
|
-
"i-lucide-circle-alert": [["circle", {
|
|
22
|
+
"i-lucide-circle-x": [["circle", {
|
|
29
23
|
"cx": "12",
|
|
30
24
|
"cy": "12",
|
|
31
25
|
"r": "10"
|
|
32
|
-
}], ["path", { "d": "
|
|
33
|
-
"i-lucide-circle-check": [["circle", {
|
|
34
|
-
"cx": "12",
|
|
35
|
-
"cy": "12",
|
|
36
|
-
"r": "10"
|
|
37
|
-
}], ["path", { "d": "m16 9l-5.5 5.5L8 12" }]],
|
|
26
|
+
}], ["path", { "d": "m15 9l-6 6m0-6l6 6" }]],
|
|
38
27
|
"i-lucide-code": [["path", { "d": "m16 18l6-6l-6-6M8 6l-6 6l6 6" }]],
|
|
39
28
|
"i-lucide-copy": [["rect", {
|
|
40
29
|
"width": "14",
|
|
@@ -73,15 +62,7 @@ const uiSdkIcons = {
|
|
|
73
62
|
}]
|
|
74
63
|
],
|
|
75
64
|
"i-lucide-external-link": [["path", { "d": "M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }]],
|
|
76
|
-
"i-lucide-eye": [["path", { "d": "M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0" }], ["circle", {
|
|
77
|
-
"cx": "12",
|
|
78
|
-
"cy": "12",
|
|
79
|
-
"r": "3"
|
|
80
|
-
}]],
|
|
81
|
-
"i-lucide-eye-off": [["path", { "d": "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242" }], ["path", { "d": "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20" }]],
|
|
82
65
|
"i-lucide-file": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }]],
|
|
83
|
-
"i-lucide-folder": [["path", { "d": "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]],
|
|
84
|
-
"i-lucide-folder-open": [["path", { "d": "m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" }]],
|
|
85
66
|
"i-lucide-grip-vertical": [
|
|
86
67
|
["circle", {
|
|
87
68
|
"cx": "9",
|
|
@@ -114,7 +95,6 @@ const uiSdkIcons = {
|
|
|
114
95
|
"r": "1"
|
|
115
96
|
}]
|
|
116
97
|
],
|
|
117
|
-
"i-lucide-hash": [["path", { "d": "M4 9h16M4 15h16M10 3L8 21m8-18l-2 18" }]],
|
|
118
98
|
"i-lucide-heading-1": [["path", { "d": "M4 12h8m-8 6V6m8 12V6m5 6l3-2v8" }]],
|
|
119
99
|
"i-lucide-heading-2": [["path", { "d": "M4 12h8m-8 6V6m8 12V6m9 12h-4c0-4 4-3 4-6c0-1.5-2-2.5-4-1" }]],
|
|
120
100
|
"i-lucide-heading-3": [["path", { "d": "M4 12h8m-8 6V6m8 12V6m5.5 4.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2m-2 3.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2" }]],
|
|
@@ -134,28 +114,13 @@ const uiSdkIcons = {
|
|
|
134
114
|
}],
|
|
135
115
|
["path", { "d": "m21 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]
|
|
136
116
|
],
|
|
137
|
-
"i-lucide-info": [["circle", {
|
|
138
|
-
"cx": "12",
|
|
139
|
-
"cy": "12",
|
|
140
|
-
"r": "10"
|
|
141
|
-
}], ["path", { "d": "M12 16v-4m0-4h.01" }]],
|
|
142
117
|
"i-lucide-italic": [["path", { "d": "M19 4h-9m4 16H5M15 4L9 20" }]],
|
|
143
|
-
"i-lucide-lightbulb": [["path", { "d": "M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4" }]],
|
|
144
118
|
"i-lucide-link": [["path", { "d": "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }], ["path", { "d": "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" }]],
|
|
145
119
|
"i-lucide-list": [["path", { "d": "M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13" }]],
|
|
146
120
|
"i-lucide-list-ordered": [["path", { "d": "M11 5h10m-10 7h10m-10 7h10M4 4h1v5M4 9h2m.5 11H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02" }]],
|
|
147
121
|
"i-lucide-loader-circle": [["path", { "d": "M21 12a9 9 0 1 1-6.219-8.56" }]],
|
|
148
|
-
"i-lucide-menu": [["path", { "d": "M4 5h16M4 12h16M4 19h16" }]],
|
|
149
122
|
"i-lucide-message-circle": [["path", { "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.092a10 10 0 1 0-4.777-4.719" }]],
|
|
150
123
|
"i-lucide-minus": [["path", { "d": "M5 12h14" }]],
|
|
151
|
-
"i-lucide-monitor": [["rect", {
|
|
152
|
-
"width": "20",
|
|
153
|
-
"height": "14",
|
|
154
|
-
"x": "2",
|
|
155
|
-
"y": "3",
|
|
156
|
-
"rx": "2"
|
|
157
|
-
}], ["path", { "d": "M8 21h8m-4-4v4" }]],
|
|
158
|
-
"i-lucide-moon": [["path", { "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" }]],
|
|
159
124
|
"i-lucide-panel-left": [["rect", {
|
|
160
125
|
"width": "18",
|
|
161
126
|
"height": "18",
|
|
@@ -163,20 +128,6 @@ const uiSdkIcons = {
|
|
|
163
128
|
"y": "3",
|
|
164
129
|
"rx": "2"
|
|
165
130
|
}], ["path", { "d": "M9 3v18" }]],
|
|
166
|
-
"i-lucide-panel-left-close": [["rect", {
|
|
167
|
-
"width": "18",
|
|
168
|
-
"height": "18",
|
|
169
|
-
"x": "3",
|
|
170
|
-
"y": "3",
|
|
171
|
-
"rx": "2"
|
|
172
|
-
}], ["path", { "d": "M9 3v18m7-6l-3-3l3-3" }]],
|
|
173
|
-
"i-lucide-panel-left-open": [["rect", {
|
|
174
|
-
"width": "18",
|
|
175
|
-
"height": "18",
|
|
176
|
-
"x": "3",
|
|
177
|
-
"y": "3",
|
|
178
|
-
"rx": "2"
|
|
179
|
-
}], ["path", { "d": "M9 3v18m5-12l3 3l-3 3" }]],
|
|
180
131
|
"i-lucide-pencil": [["path", { "d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497zM15 5l4 4" }]],
|
|
181
132
|
"i-lucide-play": [["path", { "d": "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" }]],
|
|
182
133
|
"i-lucide-plus": [["path", { "d": "M5 12h14m-7-7v14" }]],
|
|
@@ -187,11 +138,6 @@ const uiSdkIcons = {
|
|
|
187
138
|
["path", { "d": "M8 16H3v5" }]
|
|
188
139
|
],
|
|
189
140
|
"i-lucide-rotate-ccw": [["path", { "d": "M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }]],
|
|
190
|
-
"i-lucide-search": [["path", { "d": "m21 21l-4.34-4.34" }], ["circle", {
|
|
191
|
-
"cx": "11",
|
|
192
|
-
"cy": "11",
|
|
193
|
-
"r": "8"
|
|
194
|
-
}]],
|
|
195
141
|
"i-lucide-square": [["rect", {
|
|
196
142
|
"width": "18",
|
|
197
143
|
"height": "18",
|
|
@@ -207,24 +153,16 @@ const uiSdkIcons = {
|
|
|
207
153
|
"rx": "2"
|
|
208
154
|
}]],
|
|
209
155
|
"i-lucide-square-pen": [["path", { "d": "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }], ["path", { "d": "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" }]],
|
|
210
|
-
"i-lucide-star": [["path", { "d": "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z" }]],
|
|
211
156
|
"i-lucide-strikethrough": [["path", { "d": "M16 4H9a3 3 0 0 0-2.83 4M14 12a4 4 0 0 1 0 8H6m-2-8h16" }]],
|
|
212
|
-
"i-lucide-sun": [["circle", {
|
|
213
|
-
"cx": "12",
|
|
214
|
-
"cy": "12",
|
|
215
|
-
"r": "4"
|
|
216
|
-
}], ["path", { "d": "M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41" }]],
|
|
217
157
|
"i-lucide-text-wrap": [["path", { "d": "m16 16l-3 3l3 3" }], ["path", { "d": "M3 12h14.5a1 1 0 0 1 0 7H13M3 19h6M3 5h18" }]],
|
|
218
158
|
"i-lucide-trash-2": [["path", { "d": "M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]],
|
|
219
|
-
"i-lucide-triangle-alert": [["path", { "d": "m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01" }]],
|
|
220
159
|
"i-lucide-type": [["path", { "d": "M12 4v16M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2M9 20h6" }]],
|
|
221
|
-
"i-lucide-upload": [["path", { "d": "M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]],
|
|
222
160
|
"i-lucide-x": [["path", { "d": "M18 6L6 18M6 6l12 12" }]]
|
|
223
161
|
};
|
|
224
162
|
// src/ui-sdk/stand-ins.ts
|
|
225
|
-
/**
|
|
226
|
-
const
|
|
227
|
-
name: "
|
|
163
|
+
/** The Lucide icons that the parts draw themselves. Other names draw nothing. */
|
|
164
|
+
const DrawnIcon = defineComponent({
|
|
165
|
+
name: "ViteHubDrawnIcon",
|
|
228
166
|
inheritAttrs: false,
|
|
229
167
|
props: { name: {
|
|
230
168
|
default: "",
|
|
@@ -241,6 +179,22 @@ const UIcon = defineComponent({
|
|
|
241
179
|
}, uiSdkIcons[props.name]?.map(([tag, shape]) => h(tag, shape)));
|
|
242
180
|
}
|
|
243
181
|
});
|
|
182
|
+
/** The icon of the parts: the component of `createViteHubUI({ iconComponent })`, else the drawn Lucide icons. */
|
|
183
|
+
const ViteHubIcon = defineComponent({
|
|
184
|
+
name: "ViteHubIcon",
|
|
185
|
+
inheritAttrs: false,
|
|
186
|
+
props: { name: {
|
|
187
|
+
default: "",
|
|
188
|
+
type: String
|
|
189
|
+
} },
|
|
190
|
+
setup(props, { attrs }) {
|
|
191
|
+
const own = inject(iconComponentKey, void 0);
|
|
192
|
+
return () => h(own ?? DrawnIcon, {
|
|
193
|
+
...attrs,
|
|
194
|
+
name: props.name
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
});
|
|
244
198
|
/** Reads an attribute that has to be a string. Attributes reach a component untyped. */
|
|
245
199
|
const text = (value) => typeof value === "string" ? value : void 0;
|
|
246
200
|
const Button$1 = Button;
|
|
@@ -251,11 +205,11 @@ function buttonVariant(color, variant) {
|
|
|
251
205
|
return variant === "solid" ? "solid" : void 0;
|
|
252
206
|
}
|
|
253
207
|
/**
|
|
254
|
-
* Nuxt UI's `UButton`
|
|
208
|
+
* The button of the parts, with the props of Nuxt UI's `UButton` that the parts use. A part that names its button, such as `data-slot="copy-button"`, finds the
|
|
255
209
|
* name in `data-part`, because `data-slot="button"` is what the kit styles.
|
|
256
210
|
*/
|
|
257
|
-
const
|
|
258
|
-
name: "
|
|
211
|
+
const ViteHubButton = defineComponent({
|
|
212
|
+
name: "ViteHubButton",
|
|
259
213
|
inheritAttrs: false,
|
|
260
214
|
props: {
|
|
261
215
|
color: {
|
|
@@ -297,7 +251,6 @@ const UButton = defineComponent({
|
|
|
297
251
|
}
|
|
298
252
|
},
|
|
299
253
|
setup(props, { attrs, slots }) {
|
|
300
|
-
const UIcon = useStandIn("UIcon");
|
|
301
254
|
return () => {
|
|
302
255
|
const shared = {
|
|
303
256
|
...attrs,
|
|
@@ -309,12 +262,12 @@ const UButton = defineComponent({
|
|
|
309
262
|
};
|
|
310
263
|
const leading = props.loading ? "i-lucide-loader-circle" : props.icon;
|
|
311
264
|
const content = () => [
|
|
312
|
-
slots.leading ? slots.leading({}) : leading ? h(
|
|
265
|
+
slots.leading ? slots.leading({}) : leading ? h(ViteHubIcon, {
|
|
313
266
|
"data-slot": props.loading ? "spinner" : void 0,
|
|
314
267
|
name: leading
|
|
315
268
|
}) : null,
|
|
316
269
|
slots.default ? slots.default() : props.label ? h("span", props.label) : null,
|
|
317
|
-
props.trailingIcon ? h(
|
|
270
|
+
props.trailingIcon ? h(ViteHubIcon, { name: props.trailingIcon }) : null
|
|
318
271
|
];
|
|
319
272
|
if (props.to) return h("a", {
|
|
320
273
|
...shared,
|
|
@@ -328,12 +281,4 @@ const UButton = defineComponent({
|
|
|
328
281
|
};
|
|
329
282
|
}
|
|
330
283
|
});
|
|
331
|
-
|
|
332
|
-
UButton,
|
|
333
|
-
UIcon
|
|
334
|
-
};
|
|
335
|
-
/** The component that the editor parts render for `name`: the one given to `createViteHubUI({ components })` or registered globally, else the ui-sdk one. */
|
|
336
|
-
function useStandIn(name) {
|
|
337
|
-
return inject(uiComponentsKey, void 0)?.[name] ?? getCurrentInstance()?.appContext.components[name] ?? standIns[name];
|
|
338
|
-
}
|
|
339
|
-
export { useStandIn as i, UIcon as n, text as r, UButton as t };
|
|
284
|
+
export { text as i, ViteHubButton as n, ViteHubIcon as r, DrawnIcon as t };
|
package/dist/styles.css
CHANGED
|
@@ -2181,8 +2181,8 @@
|
|
|
2181
2181
|
}
|
|
2182
2182
|
|
|
2183
2183
|
/*
|
|
2184
|
-
* The editor parts
|
|
2185
|
-
* rules give them the shape of Nuxt UI's editor parts.
|
|
2184
|
+
* The editor parts (`EditorToolbar`, `EditorSuggestionMenu`, `EditorDragHandle`). The kit style family draws their
|
|
2185
|
+
* ui-sdk parts, and these rules give them the shape of Nuxt UI's editor parts.
|
|
2186
2186
|
*/
|
|
2187
2187
|
@layer components {
|
|
2188
2188
|
/* The bubble toolbar floats as a popup does: a ring and a soft shadow, no border. */
|
|
@@ -2233,7 +2233,7 @@
|
|
|
2233
2233
|
white-space: nowrap;
|
|
2234
2234
|
}
|
|
2235
2235
|
|
|
2236
|
-
/* The handle moves to the block under the pointer with the list mover of the motion layer (
|
|
2236
|
+
/* The handle moves to the block under the pointer with the list mover of the motion layer (EditorDragHandle). A
|
|
2237
2237
|
narrow screen has no room beside the text, as in Nuxt UI. */
|
|
2238
2238
|
.vh-editor-drag-handle {
|
|
2239
2239
|
align-items: center;
|
|
@@ -2923,11 +2923,17 @@
|
|
|
2923
2923
|
font-weight: 500;
|
|
2924
2924
|
}
|
|
2925
2925
|
|
|
2926
|
-
:is([data-slot="comment-reply-time"], [data-slot="comment-reply-edited"]) {
|
|
2926
|
+
:is([data-slot="comment-reply-time"], [data-slot="comment-reply-edited"], [data-slot="comment-reply-via"]) {
|
|
2927
2927
|
color: var(--vh-muted);
|
|
2928
2928
|
font-size: 0.75rem;
|
|
2929
2929
|
}
|
|
2930
2930
|
|
|
2931
|
+
[data-slot="comment-reply-via"] > a {
|
|
2932
|
+
color: inherit;
|
|
2933
|
+
text-decoration: underline;
|
|
2934
|
+
text-underline-offset: 2px;
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2931
2937
|
[data-slot="comment-reply-body"] {
|
|
2932
2938
|
overflow-wrap: anywhere;
|
|
2933
2939
|
}
|
|
@@ -3277,7 +3283,7 @@
|
|
|
3277
3283
|
border-radius: inherit;
|
|
3278
3284
|
}
|
|
3279
3285
|
|
|
3280
|
-
& [data-slot="comment-image-stack-remove"] {
|
|
3286
|
+
& :is([data-part="comment-image-stack-remove"], [data-slot="comment-image-stack-remove"]) {
|
|
3281
3287
|
position: absolute;
|
|
3282
3288
|
right: -0.375rem;
|
|
3283
3289
|
top: -0.375rem;
|
|
@@ -3318,7 +3324,7 @@
|
|
|
3318
3324
|
width: 3.5rem;
|
|
3319
3325
|
z-index: auto;
|
|
3320
3326
|
|
|
3321
|
-
& [data-slot="comment-image-stack-remove"] {
|
|
3327
|
+
& :is([data-part="comment-image-stack-remove"], [data-slot="comment-image-stack-remove"]) {
|
|
3322
3328
|
visibility: visible;
|
|
3323
3329
|
}
|
|
3324
3330
|
}
|
|
@@ -4853,6 +4859,11 @@
|
|
|
4853
4859
|
*/
|
|
4854
4860
|
.vh-image-overlay {
|
|
4855
4861
|
background: rgb(from var(--vh-media-scrim, var(--vh-bg-elevated)) r g b / 80%);
|
|
4862
|
+
border: 0;
|
|
4863
|
+
inset: 0;
|
|
4864
|
+
margin: 0;
|
|
4865
|
+
padding: 0;
|
|
4866
|
+
position: fixed;
|
|
4856
4867
|
transition: opacity 150ms;
|
|
4857
4868
|
z-index: 59;
|
|
4858
4869
|
}
|
|
@@ -4864,11 +4875,20 @@
|
|
|
4864
4875
|
|
|
4865
4876
|
.vh-image-dialog {
|
|
4866
4877
|
background: transparent;
|
|
4878
|
+
border: 0;
|
|
4867
4879
|
border-radius: 0;
|
|
4868
4880
|
box-shadow: none;
|
|
4881
|
+
display: flex;
|
|
4882
|
+
flex-direction: column;
|
|
4883
|
+
gap: 0;
|
|
4884
|
+
height: fit-content;
|
|
4885
|
+
inset: 0;
|
|
4886
|
+
margin: auto;
|
|
4869
4887
|
max-height: 92dvh;
|
|
4870
4888
|
max-width: 92vw;
|
|
4871
4889
|
overflow: visible;
|
|
4890
|
+
padding: 0;
|
|
4891
|
+
position: fixed;
|
|
4872
4892
|
width: max-content;
|
|
4873
4893
|
z-index: 60;
|
|
4874
4894
|
}
|
|
@@ -5055,9 +5075,7 @@
|
|
|
5055
5075
|
width: 1.125rem;
|
|
5056
5076
|
}
|
|
5057
5077
|
|
|
5058
|
-
|
|
5059
|
-
Nuxt UI button, so this rule stays outside a layer to win over its classes. */
|
|
5060
|
-
[data-slot="comment-image-stack-remove"] {
|
|
5078
|
+
:is([data-part="comment-image-stack-remove"], [data-slot="comment-image-stack-remove"]) {
|
|
5061
5079
|
background: var(--vh-highlighted);
|
|
5062
5080
|
border: 0;
|
|
5063
5081
|
border-radius: 9999px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MorphText_default } from "./MorphText-
|
|
1
|
+
import { t as MorphText_default } from "./MorphText-DAHAswWX.js";
|
|
2
2
|
import { createElementBlock, createVNode, defineComponent, inject, openBlock, provide, ref, renderSlot, toRef, unref } from "vue";
|
|
3
3
|
// registry/sync-status/context.ts
|
|
4
4
|
const syncStatusKey = Symbol("SyncStatus");
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
outline-offset: 2px;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
/* Row comment fields share this frame through
|
|
7
|
+
/* Row comment fields share this frame through styles.css. Its specificity keeps the row's soft
|
|
8
8
|
focus and drag states above the theme's general data-focus-frame rule, regardless of import order. */
|
|
9
9
|
[data-slot="comment-composer"][data-layout="row"] {
|
|
10
10
|
& [data-slot="prompt-input-textarea"]:focus-visible {
|
|
@@ -44,7 +44,6 @@ function forceReducedMotion(reduced) {
|
|
|
44
44
|
// src/motion/spring.ts
|
|
45
45
|
/** The named springs of docs/design/motion.md. Use them, not numbers of your own. */
|
|
46
46
|
const springs = {
|
|
47
|
-
/** Moves and resizes: a toast, a list row, a width that follows its label. `glide` moves a selection with no overshoot. */
|
|
48
47
|
snappy: {
|
|
49
48
|
stiffness: 520,
|
|
50
49
|
damping: 34
|
|
@@ -53,7 +52,6 @@ const springs = {
|
|
|
53
52
|
stiffness: 800,
|
|
54
53
|
damping: 57
|
|
55
54
|
},
|
|
56
|
-
/** Wobbles and settles: a toggled icon, a knob that lands. */
|
|
57
55
|
soft: {
|
|
58
56
|
stiffness: 380,
|
|
59
57
|
damping: 20
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./markdown-
|
|
1
|
+
import "./markdown-CqVyNG-h.js";
|
|
2
2
|
import { defineComponent, h, onBeforeUnmount, onMounted, ref, useId, watch } from "vue";
|
|
3
3
|
import { escapeHtml } from "comark/utils";
|
|
4
4
|
// ../../node_modules/.pnpm/pele@1.12.0/node_modules/pele/dist/pele.js
|
|
@@ -34,7 +34,6 @@ const checklist = [
|
|
|
34
34
|
stage: "starting"
|
|
35
35
|
}
|
|
36
36
|
];
|
|
37
|
-
/** The install hint shows after this many milliseconds. */
|
|
38
37
|
const slowInstallMs = 2e4;
|
|
39
38
|
/** Maps the steps of `@vite-hub/web-container` to the five rows of the checklist. */
|
|
40
39
|
function bootChecklist(steps, status, now) {
|
|
@@ -102,9 +102,9 @@ declare const WorkspaceShell: import("vue").DefineComponent<import("vue").Extrac
|
|
|
102
102
|
}>, {
|
|
103
103
|
label: string;
|
|
104
104
|
layout: WorkspaceLayout;
|
|
105
|
-
storageKey: string | false;
|
|
106
105
|
tab: WorkspaceTab;
|
|
107
106
|
tabs: readonly WorkspaceTabItem[];
|
|
107
|
+
storageKey: string | false;
|
|
108
108
|
covered: boolean;
|
|
109
109
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
110
110
|
export { WorkspaceTabItem as a, WorkspaceTab as i, WorkspaceShell as n, WorkspaceSplits as r, WorkspaceLayout as t };
|
package/dist/workspace.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { WorkspaceFileTree } from "./parts/workspace/workspace-file-tree.js";
|
|
|
14
14
|
import { WorkspaceGuide } from "./parts/workspace/workspace-guide.js";
|
|
15
15
|
import { WorkspaceIssue, WorkspaceIssues } from "./parts/workspace/workspace-issues.js";
|
|
16
16
|
import { WorkspacePreview, WorkspacePreviewDevice, workspacePreviewScript } from "./parts/workspace/workspace-preview.js";
|
|
17
|
-
import { a as WorkspaceTabItem, i as WorkspaceTab, n as WorkspaceShell, r as WorkspaceSplits, t as WorkspaceLayout } from "./workspace-shell-
|
|
17
|
+
import { a as WorkspaceTabItem, i as WorkspaceTab, n as WorkspaceShell, r as WorkspaceSplits, t as WorkspaceLayout } from "./workspace-shell-CwEQT_1s.js";
|
|
18
18
|
import { WorkspaceSidebar, WorkspaceSidebarAction } from "./parts/workspace/workspace-sidebar.js";
|
|
19
19
|
import { WorkspaceStart } from "./parts/workspace/workspace-start.js";
|
|
20
20
|
import { WorkspaceCursor, WorkspaceStatus, workspaceLanguage } from "./parts/workspace/workspace-status.js";
|
package/dist/workspace.js
CHANGED
|
@@ -5,7 +5,7 @@ import { render } from "./parts/workspace/runners/render.js";
|
|
|
5
5
|
import { webContainer } from "./parts/workspace/runners/web-container.js";
|
|
6
6
|
import { Workspace, useWorkspace, useWorkspaceDevice } from "./parts/workspace/workspace.js";
|
|
7
7
|
import { WorkspaceBar } from "./parts/workspace/workspace-bar.js";
|
|
8
|
-
import { n as bootChecklist, r as formatDuration, t as WorkspaceBootStatus } from "./workspace-boot-status-
|
|
8
|
+
import { n as bootChecklist, r as formatDuration, t as WorkspaceBootStatus } from "./workspace-boot-status-BDkpubHd.js";
|
|
9
9
|
import { WorkspaceEditor } from "./parts/workspace/workspace-editor.js";
|
|
10
10
|
import { WorkspaceEditorHead } from "./parts/workspace/workspace-editor-head.js";
|
|
11
11
|
import { WorkspaceExamples, groupExamples } from "./parts/workspace/workspace-examples.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vite-hub/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "AI interface primitives for Vue and Nuxt.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
"type": "module",
|
|
29
29
|
"sideEffects": [
|
|
30
30
|
"./dist/comment-marks.css",
|
|
31
|
-
"./dist/styles.css"
|
|
32
|
-
"./dist/theme.css"
|
|
31
|
+
"./dist/styles.css"
|
|
33
32
|
],
|
|
34
33
|
"types": "./dist/index.d.ts",
|
|
35
34
|
"exports": {
|
|
@@ -98,11 +97,6 @@
|
|
|
98
97
|
"import": "./dist/playground.js",
|
|
99
98
|
"default": "./dist/playground.js"
|
|
100
99
|
},
|
|
101
|
-
"./theme": {
|
|
102
|
-
"types": "./dist/theme.d.ts",
|
|
103
|
-
"import": "./dist/theme.js",
|
|
104
|
-
"default": "./dist/theme.js"
|
|
105
|
-
},
|
|
106
100
|
"./vite": {
|
|
107
101
|
"types": "./dist/vite.d.ts",
|
|
108
102
|
"import": "./dist/vite.js",
|
|
@@ -115,8 +109,7 @@
|
|
|
115
109
|
},
|
|
116
110
|
"./package.json": "./package.json",
|
|
117
111
|
"./styles.css": "./dist/styles.css",
|
|
118
|
-
"./comment-marks.css": "./dist/comment-marks.css"
|
|
119
|
-
"./theme.css": "./dist/theme.css"
|
|
112
|
+
"./comment-marks.css": "./dist/comment-marks.css"
|
|
120
113
|
},
|
|
121
114
|
"dependencies": {
|
|
122
115
|
"reka-ui": "^2.11.0",
|
|
@@ -126,7 +119,7 @@
|
|
|
126
119
|
"@shikijs/langs": "4.6.0",
|
|
127
120
|
"@shikijs/themes": "4.6.0",
|
|
128
121
|
"@types/node": "^24.19.2",
|
|
129
|
-
"@vite-hub/comments": "0.
|
|
122
|
+
"@vite-hub/comments": "0.9.0",
|
|
130
123
|
"@ui-sdk/core": "0.1.0-beta.20",
|
|
131
124
|
"@ui-sdk/vue": "0.1.0-beta.20",
|
|
132
125
|
"nostics": "1.4.0",
|
|
@@ -147,7 +140,7 @@
|
|
|
147
140
|
"@codemirror/view": "6.43.15",
|
|
148
141
|
"@lezer/highlight": "1.2.5",
|
|
149
142
|
"@lucide/vue": "1.80.0",
|
|
150
|
-
"@vite-hub/web-container": "0.
|
|
143
|
+
"@vite-hub/web-container": "0.9.0",
|
|
151
144
|
"@xterm/addon-fit": "0.11.0",
|
|
152
145
|
"@xterm/xterm": "6.0.0"
|
|
153
146
|
},
|
|
@@ -164,10 +157,11 @@
|
|
|
164
157
|
"@pierre/diffs": "1.7.1",
|
|
165
158
|
"@pierre/theme": "2.1.0",
|
|
166
159
|
"@pierre/trees": "1.0.0",
|
|
160
|
+
"@tailwindcss/vite": "^4.3.5",
|
|
167
161
|
"@vitejs/plugin-vue": "^6.0.11",
|
|
168
162
|
"@vite-hub/icons": "0.1.0",
|
|
169
163
|
"@vite-hub/internal": "0.0.1",
|
|
170
|
-
"@vite-hub/runtime": "0.
|
|
164
|
+
"@vite-hub/runtime": "0.9.0",
|
|
171
165
|
"@vue/server-renderer": "3.5.46",
|
|
172
166
|
"@vue/test-utils": "2.6.0",
|
|
173
167
|
"ai": "7.0.179",
|
|
@@ -185,7 +179,7 @@
|
|
|
185
179
|
"vue-tsc": "^3.3.14",
|
|
186
180
|
"@types/markdown-it": "^14.2.0",
|
|
187
181
|
"comark-ui": "^0.14.3",
|
|
188
|
-
"@vite-hub/content": "0.
|
|
182
|
+
"@vite-hub/content": "0.9.0",
|
|
189
183
|
"playwright-core": "^1.65.1",
|
|
190
184
|
"@tiptap/core": "^3.35.0",
|
|
191
185
|
"@tiptap/extension-drag-handle": "3.35.0",
|
|
@@ -196,7 +190,7 @@
|
|
|
196
190
|
"@tiptap/pm": "^3.35.0",
|
|
197
191
|
"@tiptap/starter-kit": "^3.35.0",
|
|
198
192
|
"@tiptap/vue-3": "3.35.0",
|
|
199
|
-
"@vite-hub/blob": "0.
|
|
193
|
+
"@vite-hub/blob": "0.9.0"
|
|
200
194
|
},
|
|
201
195
|
"peerDependencies": {
|
|
202
196
|
"@floating-ui/dom": "^1.0.0",
|
|
@@ -266,6 +260,7 @@
|
|
|
266
260
|
"test:browser": "vp run --cache -t @vite-hub/ui#build && node --test test/browser/workspace.browser.mjs",
|
|
267
261
|
"test:bridge": "node --test test/browser/tailwind-bridge.browser.mjs",
|
|
268
262
|
"test:kit-parts": "node --test test/browser/kit-parts.browser.mjs",
|
|
263
|
+
"test:form-parts": "node --test test/browser/form-parts.browser.mjs",
|
|
269
264
|
"test:parity": "node --test test/browser/parity.browser.mjs",
|
|
270
265
|
"test:anchored": "node --test test/browser/anchored.browser.mjs",
|
|
271
266
|
"test:ui-sdk": "node --test test/browser/ui-sdk.browser.mjs",
|
package/dist/nuxt-ui-D3Qda35W.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { n as useUIComponentOverride } from "./ui-components-CKQAPI-W.js";
|
|
2
|
-
import { defineAsyncComponent } from "vue";
|
|
3
|
-
// src/internal/nuxt-ui.ts
|
|
4
|
-
function uiSdk(name) {
|
|
5
|
-
return defineAsyncComponent({
|
|
6
|
-
loader: () => import("./components-B_2Q0dJ3.js").then((n) => n.t).then((parts) => parts.uiSdkComponents[name]),
|
|
7
|
-
suspensible: false
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
const defaults = /* @__PURE__ */ new Map();
|
|
11
|
-
/**
|
|
12
|
-
* The component that a part renders for `name`: the one given to `createViteHubUI({ components })`, else one that the
|
|
13
|
-
* app registered globally under that name, else the ui-sdk one from `uiSdkComponents`. Call it in `setup()`.
|
|
14
|
-
*/
|
|
15
|
-
function useUIComponent(name) {
|
|
16
|
-
const own = useUIComponentOverride(name);
|
|
17
|
-
if (own) return own;
|
|
18
|
-
const component = defaults.get(name) ?? uiSdk(name);
|
|
19
|
-
defaults.set(name, component);
|
|
20
|
-
return component;
|
|
21
|
-
}
|
|
22
|
-
export { useUIComponent as t };
|