@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
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ViteHubUIOptions, t as ViteHubUIIconOptions } from "./config-
|
|
1
|
+
import { r as ViteHubUIOptions, t as ViteHubUIIconOptions } from "./config-BYLPA0Ts.js";
|
|
2
2
|
/** Name of an icon in the ViteHub set, such as `kv` for `i-vitehub-kv`. */
|
|
3
3
|
type ViteHubIconName = "agent" | "auth" | "blob" | "browser" | "bundle" | "cache" | "channels" | "choices" | "cli" | "cms" | "codemods" | "comments" | "compare" | "connections" | "console" | "content" | "database" | "development" | "device" | "docs" | "email" | "env" | "forge" | "forms" | "gateways" | "guides" | "hosts" | "i18n" | "kv" | "logs" | "markdown-template" | "mcp" | "presets" | "queue" | "rate-limit" | "realtime" | "reference" | "runtime" | "sandbox" | "schedule" | "shell" | "site" | "skills" | "source" | "start" | "sync" | "ui" | "usage" | "web-container" | "webhooks" | "workflow" | "workspace";
|
|
4
4
|
/** The ViteHub icon set in the Iconify JSON format, as `@iconify-json/*` packages export it. */
|
|
@@ -27,7 +27,7 @@ interface ViteHubIconSet {
|
|
|
27
27
|
height: 24;
|
|
28
28
|
}
|
|
29
29
|
export declare const viteHubUIIcons: readonly string[];
|
|
30
|
-
export interface ViteHubUINuxtOptions extends Omit<ViteHubUIOptions, "
|
|
30
|
+
export interface ViteHubUINuxtOptions extends Omit<ViteHubUIOptions, "iconComponent" | "icons"> {
|
|
31
31
|
/** Prefix for auto-imported component names, for example `Vh` registers `VhTrace`. Use it when the app has its own `Message` or `Trace`. */
|
|
32
32
|
prefix?: string;
|
|
33
33
|
}
|
|
@@ -37,13 +37,11 @@ export interface ViteHubUINuxtModule {
|
|
|
37
37
|
}
|
|
38
38
|
declare module "@nuxt/schema" {
|
|
39
39
|
interface AppConfigInput {
|
|
40
|
-
/** The icons of the parts that Nuxt UI's `appConfig.ui.icons` has no name for, such as `edit` and `delete`. */
|
|
41
40
|
viteHubUI?: {
|
|
42
41
|
icons?: ViteHubUIIconOptions;
|
|
43
42
|
};
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
|
-
/** Vite's `resolve.alias`: a list of entries, or a record of replacements. The declarations do not import Vite, an optional peer. */
|
|
47
45
|
type ViteAliasOptions = readonly {
|
|
48
46
|
find: string | RegExp;
|
|
49
47
|
replacement: string;
|
package/dist/nuxt.js
CHANGED
|
@@ -214,71 +214,47 @@ const componentNames = [
|
|
|
214
214
|
];
|
|
215
215
|
// src/icons.ts
|
|
216
216
|
const viteHubUIIcons = [
|
|
217
|
-
"lucide:arrow-down",
|
|
218
217
|
"lucide:arrow-left",
|
|
219
|
-
"lucide:arrow-right",
|
|
220
218
|
"lucide:arrow-up",
|
|
221
|
-
"lucide:arrow-up-right",
|
|
222
219
|
"lucide:bold",
|
|
223
220
|
"lucide:check",
|
|
224
221
|
"lucide:chevron-down",
|
|
225
222
|
"lucide:chevron-left",
|
|
226
223
|
"lucide:chevron-right",
|
|
227
|
-
"lucide:
|
|
228
|
-
"lucide:chevrons-left",
|
|
229
|
-
"lucide:chevrons-right",
|
|
230
|
-
"lucide:circle-alert",
|
|
231
|
-
"lucide:circle-check",
|
|
224
|
+
"lucide:circle-x",
|
|
232
225
|
"lucide:code",
|
|
233
226
|
"lucide:copy",
|
|
234
227
|
"lucide:database",
|
|
235
228
|
"lucide:download",
|
|
236
229
|
"lucide:ellipsis",
|
|
237
230
|
"lucide:external-link",
|
|
238
|
-
"lucide:eye",
|
|
239
|
-
"lucide:eye-off",
|
|
240
231
|
"lucide:file",
|
|
241
|
-
"lucide:folder",
|
|
242
|
-
"lucide:folder-open",
|
|
243
232
|
"lucide:grip-vertical",
|
|
244
|
-
"lucide:hash",
|
|
245
233
|
"lucide:heading-1",
|
|
246
234
|
"lucide:heading-2",
|
|
247
235
|
"lucide:heading-3",
|
|
248
236
|
"lucide:image",
|
|
249
|
-
"lucide:info",
|
|
250
237
|
"lucide:italic",
|
|
251
|
-
"lucide:lightbulb",
|
|
252
238
|
"lucide:link",
|
|
253
239
|
"lucide:list",
|
|
254
240
|
"lucide:list-ordered",
|
|
255
241
|
"lucide:loader-circle",
|
|
256
|
-
"lucide:menu",
|
|
257
242
|
"lucide:message-circle",
|
|
258
243
|
"lucide:minus",
|
|
259
|
-
"lucide:monitor",
|
|
260
|
-
"lucide:moon",
|
|
261
244
|
"lucide:panel-left",
|
|
262
|
-
"lucide:panel-left-close",
|
|
263
|
-
"lucide:panel-left-open",
|
|
264
245
|
"lucide:pencil",
|
|
265
246
|
"lucide:play",
|
|
266
247
|
"lucide:plus",
|
|
267
248
|
"lucide:quote",
|
|
268
249
|
"lucide:refresh-cw",
|
|
269
250
|
"lucide:rotate-ccw",
|
|
270
|
-
"lucide:search",
|
|
271
251
|
"lucide:square",
|
|
272
252
|
"lucide:square-code",
|
|
273
253
|
"lucide:square-pen",
|
|
274
|
-
"lucide:star",
|
|
275
254
|
"lucide:strikethrough",
|
|
276
|
-
"lucide:sun",
|
|
277
255
|
"lucide:text-wrap",
|
|
278
256
|
"lucide:trash-2",
|
|
279
|
-
"lucide:triangle-alert",
|
|
280
257
|
"lucide:type",
|
|
281
|
-
"lucide:upload",
|
|
282
258
|
"lucide:x"
|
|
283
259
|
];
|
|
284
260
|
// src/nuxt.ts
|
|
@@ -298,14 +274,6 @@ function addViteHubUIRuntime(nuxt) {
|
|
|
298
274
|
});
|
|
299
275
|
inlineShikiWasm(nuxt.options.vite);
|
|
300
276
|
}
|
|
301
|
-
/**
|
|
302
|
-
* Comark highlights code with the `shiki` root, which loads `shiki/wasm` on demand. Nitro builds the server with Shiki's
|
|
303
|
-
* `unwasm` export condition, which points at the raw `onig.wasm`, and that file imports its JavaScript glue as `env`, so
|
|
304
|
-
* Rolldown stops with `failed to resolve import "env"`. Resolve `shiki/wasm` to the base64 module of the `default`
|
|
305
|
-
* condition, from this package's Shiki so that the app needs no direct dependency.
|
|
306
|
-
* The cause is in Nitro: Vite service environments resolve the `unwasm` condition, but only the Nitro environment runs
|
|
307
|
-
* unwasm. Remove when Nitro fixes it (https://github.com/nitrojs/nitro/issues/5150).
|
|
308
|
-
*/
|
|
309
277
|
function inlineShikiWasm(vite) {
|
|
310
278
|
const shiki = createRequire(import.meta.url).resolve("shiki/package.json");
|
|
311
279
|
const wasm = createRequire(shiki).resolve("@shikijs/engine-oniguruma/wasm-inlined");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as AgentSession, i as AgentSessionDetailsRow, r as AgentSessionDetailsSection, t as AgentSessionTimeline, s as AgentSessionTitle, n as AgentSessionWorkGroup, o as agentSessionProviderLabel } from "../../agent-session-
|
|
1
|
+
export { a as AgentSession, i as AgentSessionDetailsRow, r as AgentSessionDetailsSection, t as AgentSessionTimeline, s as AgentSessionTitle, n as AgentSessionWorkGroup, o as agentSessionProviderLabel } from "../../agent-session-D291hyRk.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as AvatarStack } from "../../avatar-stack-
|
|
1
|
+
export { t as AvatarStack } from "../../avatar-stack-Bi4CJPuU.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ChatMessage } from "../../ChatMessage-
|
|
1
|
+
export { t as ChatMessage } from "../../ChatMessage-DzjHnxMT.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ChatSession } from "../../chat-session-
|
|
1
|
+
export { t as ChatSession } from "../../chat-session-Bl-x4c9b.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Chat, n as chatActivity } from "../../Chat-
|
|
1
|
+
export { t as Chat, n as chatActivity } from "../../Chat-DYQitDw8.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as CodeBlockSize, a as _default$3, c as _default, d as CodeBlockCopyButtonProps, f as CodeBlockCopyButtonSlots, g as CodeBlockProps, h as CodeBlockLineSlots, i as _default$4, l as CodeBlockContentProps, m as CodeBlockLineProps, n as _default$6, o as _default$2, p as CodeBlockLineKind, r as _default$5, s as _default$1, t as _default$7, u as CodeBlockContentSlots, v as CodeBlockSlots, y as CodeBlockTone } from "../../code-block-
|
|
1
|
+
import { _ as CodeBlockSize, a as _default$3, c as _default, d as CodeBlockCopyButtonProps, f as CodeBlockCopyButtonSlots, g as CodeBlockProps, h as CodeBlockLineSlots, i as _default$4, l as CodeBlockContentProps, m as CodeBlockLineProps, n as _default$6, o as _default$2, p as CodeBlockLineKind, r as _default$5, s as _default$1, t as _default$7, u as CodeBlockContentSlots, v as CodeBlockSlots, y as CodeBlockTone } from "../../code-block-Bp8y-XJp.js";
|
|
2
2
|
export { _default as CodeBlock, _default$1 as CodeBlockActions, _default$2 as CodeBlockContent, type CodeBlockContentProps, type CodeBlockContentSlots, _default$3 as CodeBlockCopyButton, type CodeBlockCopyButtonProps, type CodeBlockCopyButtonSlots, _default$4 as CodeBlockFooter, _default$5 as CodeBlockHeader, _default$6 as CodeBlockLine, type CodeBlockLineKind, type CodeBlockLineProps, type CodeBlockLineSlots, type CodeBlockProps, type CodeBlockSize, type CodeBlockSlots, _default$7 as CodeBlockTitle, type CodeBlockTone };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as CodeBlockLine_default, r as CodeBlock_default, t as CodeBlockContent_default } from "../../CodeBlockContent-BjXJm8lO.js";
|
|
2
|
-
import { i as CodeBlockActions_default, n as CodeBlockHeader_default, r as CodeBlockCopyButton_default, t as CodeBlockTitle_default } from "../../CodeBlockTitle-
|
|
2
|
+
import { i as CodeBlockActions_default, n as CodeBlockHeader_default, r as CodeBlockCopyButton_default, t as CodeBlockTitle_default } from "../../CodeBlockTitle-DX13mCTi.js";
|
|
3
3
|
import { t as CodeBlockFooter_default } from "../../code-block-CMERLfew.js";
|
|
4
4
|
export { CodeBlock_default as CodeBlock, CodeBlockActions_default as CodeBlockActions, CodeBlockContent_default as CodeBlockContent, CodeBlockCopyButton_default as CodeBlockCopyButton, CodeBlockFooter_default as CodeBlockFooter, CodeBlockHeader_default as CodeBlockHeader, CodeBlockLine_default as CodeBlockLine, CodeBlockTitle_default as CodeBlockTitle };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CommentComposerSubmit, c as CommentMentionItemScope, i as CommentComposerSlots, n as CommentComposerFrame, o as CommentComposerVariant, r as CommentComposerSize, s as CommentMentionEmptyScope, t as CommentComposer } from "../../comment-composer-
|
|
1
|
+
import { a as CommentComposerSubmit, c as CommentMentionItemScope, i as CommentComposerSlots, n as CommentComposerFrame, o as CommentComposerVariant, r as CommentComposerSize, s as CommentMentionEmptyScope, t as CommentComposer } from "../../comment-composer-PmERtNNb.js";
|
|
2
2
|
export { CommentComposer, CommentComposerFrame, CommentComposerSize, CommentComposerSlots, CommentComposerSubmit, CommentComposerVariant, CommentMentionEmptyScope, CommentMentionItemScope };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CommentComposer } from "../../comment-composer-
|
|
1
|
+
export { t as CommentComposer } from "../../comment-composer-BtYrIT5W.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CommentPlacement, t as CommentLayer } from "../../comment-layer-
|
|
1
|
+
import { n as CommentPlacement, t as CommentLayer } from "../../comment-layer-BgQz1ixK.js";
|
|
2
2
|
export { CommentLayer, CommentPlacement };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CommentLayer } from "../../comment-layer-
|
|
1
|
+
export { t as CommentLayer } from "../../comment-layer-T8hN_7bN.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CommentPanelVariant, i as CommentPanelSlots, n as CommentGroupSlotScope, o as CommentUpload, r as CommentPanel, t as CommentGroup } from "../../comment-panel-
|
|
1
|
+
import { a as CommentPanelVariant, i as CommentPanelSlots, n as CommentGroupSlotScope, o as CommentUpload, r as CommentPanel, t as CommentGroup } from "../../comment-panel-Vo3m6rHB.js";
|
|
2
2
|
export { CommentGroup, CommentGroupSlotScope, CommentPanel, CommentPanelSlots, CommentPanelVariant, CommentUpload };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as RollNumber_default } from "../../RollNumber-
|
|
1
|
+
import { t as RollNumber_default } from "../../RollNumber-CkdLiy2i.js";
|
|
2
2
|
import { a as useCommentsContext, i as useComments, o as commentThreadKey, r as provideComments, s as useSelectedComment } from "../../comments-BaSrroRV.js";
|
|
3
3
|
import { t as uiErrorDiagnostics } from "../../error-diagnostics-BlgA9rI2.js";
|
|
4
|
-
import { n as rowSlotScope, r as useCommentAttachments, t as CommentRow_default } from "../../CommentRow-
|
|
5
|
-
import { i as deliveryAttributes, n as CommentThread, r as commentTitle } from "../../comment-thread-
|
|
4
|
+
import { n as rowSlotScope, r as useCommentAttachments, t as CommentRow_default } from "../../CommentRow-DLW77qch.js";
|
|
5
|
+
import { i as deliveryAttributes, n as CommentThread, r as commentTitle } from "../../comment-thread-CAexk1r7.js";
|
|
6
6
|
import { n as injectComments } from "../../comments-context-3js2YFl2.js";
|
|
7
|
-
import { t as CommentComposer } from "../../comment-composer-
|
|
8
|
-
import {
|
|
7
|
+
import { t as CommentComposer } from "../../comment-composer-BtYrIT5W.js";
|
|
8
|
+
import { n as ViteHubButton } from "../../stand-ins-C2oSoNwV.js";
|
|
9
9
|
import { computed, defineComponent, h, nextTick, ref, watch } from "vue";
|
|
10
10
|
// src/components/comment-panel.ts
|
|
11
11
|
const listSlots = /* @__PURE__ */ new Set([
|
|
@@ -75,7 +75,6 @@ const CommentPanel = defineComponent({
|
|
|
75
75
|
],
|
|
76
76
|
slots: Object,
|
|
77
77
|
setup(props, { emit, slots }) {
|
|
78
|
-
const UButton = useUIComponent("UButton");
|
|
79
78
|
const inherited = props.comments ?? injectComments();
|
|
80
79
|
if (!inherited && !props.subject) throw uiErrorDiagnostics.UI_R0002({ message: "CommentPanel needs a comments state: put it inside CommentLayer, pass `comments`, or pass a `subject`." });
|
|
81
80
|
const state = useCommentsContext(inherited ?? useComments({
|
|
@@ -231,7 +230,7 @@ const CommentPanel = defineComponent({
|
|
|
231
230
|
}) ?? label), items(threads, label)]));
|
|
232
231
|
const list = () => {
|
|
233
232
|
const counts = state.counts.value;
|
|
234
|
-
const filter = (value, label, count) => h(
|
|
233
|
+
const filter = (value, label, count) => h(ViteHubButton, {
|
|
235
234
|
"aria-checked": String(status.value === value),
|
|
236
235
|
color: "neutral",
|
|
237
236
|
"data-slot": "comment-panel-filter",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CommentSelectionBar } from "../../comment-selection-bar-
|
|
1
|
+
export { t as CommentSelectionBar } from "../../comment-selection-bar-BMFTtI3V.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CommentReplySlots, c as CommentThreadSlotScope, i as CommentReplySlotScope, l as CommentThreadSlots, n as CommentAttachmentUrl, o as CommentStatusSlotScope, r as CommentReply, s as CommentThread, t as CommentAttachmentLink, u as messagesSinceResolved } from "../../comment-thread-
|
|
1
|
+
import { a as CommentReplySlots, c as CommentThreadSlotScope, i as CommentReplySlotScope, l as CommentThreadSlots, n as CommentAttachmentUrl, o as CommentStatusSlotScope, r as CommentReply, s as CommentThread, t as CommentAttachmentLink, u as messagesSinceResolved } from "../../comment-thread-Cp9k80uv.js";
|
|
2
2
|
export { CommentAttachmentLink, CommentAttachmentUrl, CommentReply, CommentReplySlotScope, CommentReplySlots, CommentStatusSlotScope, CommentThread, CommentThreadSlotScope, CommentThreadSlots, messagesSinceResolved };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CommentReply, n as CommentThread, a as messagesSinceResolved } from "../../comment-thread-
|
|
1
|
+
export { t as CommentReply, n as CommentThread, a as messagesSinceResolved } from "../../comment-thread-CAexk1r7.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as CommentComposerSubmit, c as CommentMentionItemScope, i as CommentComposerSlots, n as CommentComposerFrame, o as CommentComposerVariant, r as CommentComposerSize, s as CommentMentionEmptyScope, t as CommentComposer } from "../../comment-composer-
|
|
1
|
+
import { a as CommentComposerSubmit, c as CommentMentionItemScope, i as CommentComposerSlots, n as CommentComposerFrame, o as CommentComposerVariant, r as CommentComposerSize, s as CommentMentionEmptyScope, t as CommentComposer } from "../../comment-composer-PmERtNNb.js";
|
|
2
2
|
import { a as CommentPinEmits, c as CommentRowProps, d as CommentSelectionBarEmits, f as CommentSelectionBarProps, g as CommentToolbarSlots, h as CommentToolbarProps, i as CommentListSlots, l as CommentRowSlotScope, m as CommentSelectionBarSlots, n as CommentListEmits, o as CommentPinProps, p as CommentSelectionBarSide, r as CommentListProps, s as CommentRowPartSlots, t as CommentFiltersProps, u as CommentRowSlots } from "../../types-CMU8Vmew.js";
|
|
3
|
-
import { a as CommentReplySlots, c as CommentThreadSlotScope, d as repliedSinceResolved, i as CommentReplySlotScope, l as CommentThreadSlots, n as CommentAttachmentUrl, o as CommentStatusSlotScope, r as CommentReply, s as CommentThread, t as CommentAttachmentLink, u as messagesSinceResolved } from "../../comment-thread-
|
|
4
|
-
import { a as CommentPanelVariant, i as CommentPanelSlots, n as CommentGroupSlotScope, o as CommentUpload, r as CommentPanel, t as CommentGroup } from "../../comment-panel-
|
|
5
|
-
import { n as CommentPlacement, t as CommentLayer } from "../../comment-layer-
|
|
3
|
+
import { a as CommentReplySlots, c as CommentThreadSlotScope, d as repliedSinceResolved, i as CommentReplySlotScope, l as CommentThreadSlots, n as CommentAttachmentUrl, o as CommentStatusSlotScope, r as CommentReply, s as CommentThread, t as CommentAttachmentLink, u as messagesSinceResolved } from "../../comment-thread-Cp9k80uv.js";
|
|
4
|
+
import { a as CommentPanelVariant, i as CommentPanelSlots, n as CommentGroupSlotScope, o as CommentUpload, r as CommentPanel, t as CommentGroup } from "../../comment-panel-Vo3m6rHB.js";
|
|
5
|
+
import { n as CommentPlacement, t as CommentLayer } from "../../comment-layer-BgQz1ixK.js";
|
|
6
6
|
import { t as CommentSelectionBar } from "../../comment-selection-bar-B_bchB2O.js";
|
|
7
|
-
import { i as _default, n as _default$2, r as _default$1, t as _default$3 } from "../../comments-
|
|
7
|
+
import { i as _default, n as _default$2, r as _default$1, t as _default$3 } from "../../comments-BBNiQTxK.js";
|
|
8
8
|
export { CommentAttachmentLink, CommentAttachmentUrl, CommentComposer, CommentComposerFrame, CommentComposerSize, CommentComposerSlots, CommentComposerSubmit, CommentComposerVariant, _default as CommentFilters, type CommentFiltersProps, CommentGroup, CommentGroupSlotScope, CommentLayer, _default$1 as CommentList, type CommentListEmits, type CommentListProps, type CommentListSlots, CommentMentionEmptyScope, CommentMentionItemScope, CommentPanel, CommentPanelSlots, CommentPanelVariant, _default$2 as CommentPin, type CommentPinEmits, type CommentPinProps, CommentPlacement, CommentReply, CommentReplySlotScope, CommentReplySlots, type CommentRowPartSlots, type CommentRowProps, type CommentRowSlotScope, type CommentRowSlots, CommentSelectionBar, type CommentSelectionBarEmits, type CommentSelectionBarProps, type CommentSelectionBarSide, type CommentSelectionBarSlots, CommentStatusSlotScope, CommentThread, CommentThreadSlotScope, CommentThreadSlots, _default$3 as CommentToolbar, type CommentToolbarProps, type CommentToolbarSlots, CommentUpload, messagesSinceResolved, repliedSinceResolved };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as CommentComposer } from "../../comment-composer-
|
|
2
|
-
import { a as CommentFilters_default, i as CommentList_default, n as CommentToolbar_default, r as CommentPin_default, t as CommentLayer } from "../../comment-layer-
|
|
1
|
+
import { t as CommentComposer } from "../../comment-composer-BtYrIT5W.js";
|
|
2
|
+
import { a as CommentFilters_default, i as CommentList_default, n as CommentToolbar_default, r as CommentPin_default, t as CommentLayer } from "../../comment-layer-T8hN_7bN.js";
|
|
3
3
|
import { CommentPanel } from "./comment-panel.js";
|
|
4
|
-
import { a as messagesSinceResolved, n as CommentThread, o as repliedSinceResolved, t as CommentReply } from "../../comment-thread-
|
|
5
|
-
import { t as CommentSelectionBar } from "../../comment-selection-bar-
|
|
4
|
+
import { a as messagesSinceResolved, n as CommentThread, o as repliedSinceResolved, t as CommentReply } from "../../comment-thread-CAexk1r7.js";
|
|
5
|
+
import { t as CommentSelectionBar } from "../../comment-selection-bar-BMFTtI3V.js";
|
|
6
6
|
export { CommentComposer, CommentFilters_default as CommentFilters, CommentLayer, CommentList_default as CommentList, CommentPanel, CommentPin_default as CommentPin, CommentReply, CommentSelectionBar, CommentThread, CommentToolbar_default as CommentToolbar, messagesSinceResolved, repliedSinceResolved };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CopyButton, n as useCopy } from "../../CopyButton-
|
|
1
|
+
export { t as CopyButton, n as useCopy } from "../../CopyButton-D-g6PWc8.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as DropField } from "../../drop-field-
|
|
1
|
+
export { t as DropField } from "../../drop-field-BkoJOWR9.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as HoldToDelete } from "../../hold-to-delete-
|
|
1
|
+
export { t as HoldToDelete } from "../../hold-to-delete-pyrlKzk0.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Markdown } from "../../Markdown-
|
|
1
|
+
export { t as Markdown } from "../../Markdown-3-Tvy5Kl.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as MessageParts } from "../../MessageParts-
|
|
1
|
+
export { t as MessageParts } from "../../MessageParts-BGSctG7Z.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as MotionListSlots, r as _default, s as MotionListProps } from "../../index-
|
|
1
|
+
import { c as MotionListSlots, r as _default, s as MotionListProps } from "../../index-BlQsW8ZZ.js";
|
|
2
2
|
export { _default as MotionList, type MotionListProps, type MotionListSlots };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as MotionList } from "../../motion-list-
|
|
1
|
+
export { t as MotionList } from "../../motion-list-DDVUyVYa.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as IconEnter, x as IconExit } from "../../motion-core-
|
|
2
|
-
import { a as MorphTextProps, d as RollNumberSlots, f as SwapIconProps, i as _default, l as MotionRenderProps, n as _default$1, o as MorphTextSlots, p as SwapIconSlots, t as _default$2, u as RollNumberProps } from "../../index-
|
|
1
|
+
import { b as IconEnter, x as IconExit } from "../../motion-core-BEwxN7Il.js";
|
|
2
|
+
import { a as MorphTextProps, d as RollNumberSlots, f as SwapIconProps, i as _default, l as MotionRenderProps, n as _default$1, o as MorphTextSlots, p as SwapIconSlots, t as _default$2, u as RollNumberProps } from "../../index-BlQsW8ZZ.js";
|
|
3
3
|
import { Directive } from "vue";
|
|
4
4
|
/**
|
|
5
5
|
* `v-ring="done"` rings the element once each time `done` becomes true, for a finished action such as saved or copied.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as ring } from "../../ring-
|
|
2
|
-
import { t as MorphText_default } from "../../MorphText-
|
|
3
|
-
import { t as RollNumber_default } from "../../RollNumber-
|
|
4
|
-
import { t as SwapIcon_default } from "../../SwapIcon-
|
|
1
|
+
import { t as ring } from "../../ring-C5lNUEAG.js";
|
|
2
|
+
import { t as MorphText_default } from "../../MorphText-DAHAswWX.js";
|
|
3
|
+
import { t as RollNumber_default } from "../../RollNumber-CkdLiy2i.js";
|
|
4
|
+
import { t as SwapIcon_default } from "../../SwapIcon-Bjkk7WlZ.js";
|
|
5
5
|
// src/components/motion.ts
|
|
6
6
|
/**
|
|
7
7
|
* `v-ring="done"` rings the element once each time `done` becomes true, for a finished action such as saved or copied.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Progress } from "../../progress-
|
|
1
|
+
export { t as Progress } from "../../progress-D7CyDkLW.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as PromptInputTextareaProps, a as _default$1, c as PromptInputAttachSlots, d as PromptInputProps, f as PromptInputSlotScope, g as PromptInputSubmitSlots, h as PromptInputSubmitProps, i as _default$2, l as PromptInputAttachmentsProps, m as PromptInputSubmitEvent, n as _default$4, o as _default, p as PromptInputSlots, r as _default$3, s as PromptInputAttachProps, t as _default$5, u as PromptInputEmits, v as PromptInputToolbarProps, y as PromptInputToolbarSlots } from "../../prompt-input-
|
|
1
|
+
import { _ as PromptInputTextareaProps, a as _default$1, c as PromptInputAttachSlots, d as PromptInputProps, f as PromptInputSlotScope, g as PromptInputSubmitSlots, h as PromptInputSubmitProps, i as _default$2, l as PromptInputAttachmentsProps, m as PromptInputSubmitEvent, n as _default$4, o as _default, p as PromptInputSlots, r as _default$3, s as PromptInputAttachProps, t as _default$5, u as PromptInputEmits, v as PromptInputToolbarProps, y as PromptInputToolbarSlots } from "../../prompt-input-DZM3E6WP.js";
|
|
2
2
|
export { _default as PromptInput, _default$1 as PromptInputAttach, type PromptInputAttachProps, type PromptInputAttachSlots, _default$2 as PromptInputAttachments, type PromptInputAttachmentsProps, type PromptInputEmits, type PromptInputProps, type PromptInputSlotScope, type PromptInputSlots, _default$3 as PromptInputSubmit, type PromptInputSubmitEvent, type PromptInputSubmitProps, type PromptInputSubmitSlots, _default$4 as PromptInputTextarea, type PromptInputTextareaProps, _default$5 as PromptInputToolbar, type PromptInputToolbarProps, type PromptInputToolbarSlots };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as SyncStatus, r as SyncStatusIndicator, n as SyncStatusLabel } from "../../sync-status-
|
|
1
|
+
export { t as SyncStatus, r as SyncStatusIndicator, n as SyncStatusLabel } from "../../sync-status-D27Qt7mk.js";
|
|
@@ -21,7 +21,6 @@ async function deflate(text) {
|
|
|
21
21
|
const stream = new Blob([new TextEncoder().encode(text)]).stream().pipeThrough(new CompressionStream("deflate-raw"));
|
|
22
22
|
return new Uint8Array(await new Response(stream).arrayBuffer());
|
|
23
23
|
}
|
|
24
|
-
/** Inflates at most `inflatedLimit` bytes, so a crafted link cannot fill the memory of the tab. Undefined above it. */
|
|
25
24
|
async function inflate(bytes) {
|
|
26
25
|
const reader = new Blob([bytes]).stream().pipeThrough(new DecompressionStream("deflate-raw")).getReader();
|
|
27
26
|
const decoder = new TextDecoder();
|
|
@@ -66,9 +66,9 @@ export declare const BrowserSupportNotice: import("vue").DefineComponent<import(
|
|
|
66
66
|
}>> & Readonly<{
|
|
67
67
|
onCopied?: ((url: string) => any) | undefined;
|
|
68
68
|
}>, {
|
|
69
|
+
description: string;
|
|
70
|
+
url: string;
|
|
69
71
|
supported: boolean | undefined;
|
|
70
72
|
reason: string;
|
|
71
73
|
browser: UnsupportedBrowser;
|
|
72
|
-
description: string;
|
|
73
|
-
url: string;
|
|
74
74
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as useCopy } from "../../CopyButton-
|
|
2
|
-
import { t as MorphText_default } from "../../MorphText-
|
|
3
|
-
import { t as SwapIcon_default } from "../../SwapIcon-
|
|
4
|
-
import { t as ring } from "../../ring-
|
|
1
|
+
import { n as useCopy } from "../../CopyButton-D-g6PWc8.js";
|
|
2
|
+
import { t as MorphText_default } from "../../MorphText-DAHAswWX.js";
|
|
3
|
+
import { t as SwapIcon_default } from "../../SwapIcon-Bjkk7WlZ.js";
|
|
4
|
+
import { t as ring } from "../../ring-C5lNUEAG.js";
|
|
5
5
|
import { icon } from "./icons.js";
|
|
6
6
|
import { defineComponent, h, onBeforeUnmount, onMounted, ref, useId } from "vue";
|
|
7
7
|
// src/workspace/browser-support-notice.ts
|
|
@@ -17,7 +17,6 @@ const syntaxScopes = {
|
|
|
17
17
|
type: "entity.name.type",
|
|
18
18
|
variable: "variable"
|
|
19
19
|
};
|
|
20
|
-
/** The `--vh-ws-code-*` syntax colors of one Pierre theme, the same ones that `FileView` paints. */
|
|
21
20
|
function syntaxColors(theme) {
|
|
22
21
|
const colors = {};
|
|
23
22
|
for (const [name, scope] of Object.entries(syntaxScopes)) {
|
|
@@ -169,9 +168,6 @@ async function languageFor(path) {
|
|
|
169
168
|
default: return;
|
|
170
169
|
}
|
|
171
170
|
}
|
|
172
|
-
/**
|
|
173
|
-
* Match the layout's Z key or the US Mac Option+Z chord (`Ω` on `KeyZ`). A physical `KeyZ` alone can be a typing key.
|
|
174
|
-
*/
|
|
175
171
|
function isToggleWrap(event) {
|
|
176
172
|
if (!event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return false;
|
|
177
173
|
return event.key.toLowerCase() === "z" || event.key === "Ω" && event.code === "KeyZ";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as useUIComponent } from "../../nuxt-ui-D3Qda35W.js";
|
|
2
1
|
import { icon, providerLogo } from "./icons.js";
|
|
2
|
+
import { n as ViteHubInput } from "../../components-D44u1fsy.js";
|
|
3
3
|
import { computed, defineComponent, h, ref, useId } from "vue";
|
|
4
4
|
// src/workspace/connect-panel.ts
|
|
5
5
|
const providerInfo = {
|
|
@@ -83,7 +83,6 @@ const ConnectProviderRow = defineComponent({
|
|
|
83
83
|
const open = ref(false);
|
|
84
84
|
const token = ref("");
|
|
85
85
|
const inputId = useId();
|
|
86
|
-
const UInput = useUIComponent("UInput");
|
|
87
86
|
const state = computed(() => props.state ?? defaultState(props.provider));
|
|
88
87
|
const label = computed(() => connectProviderLabel(props.provider.name));
|
|
89
88
|
function startEdit() {
|
|
@@ -172,7 +171,7 @@ const ConnectProviderRow = defineComponent({
|
|
|
172
171
|
for: inputId
|
|
173
172
|
}, `${label.value} token`),
|
|
174
173
|
h("div", { class: "vh-ws-token-row" }, [
|
|
175
|
-
h(
|
|
174
|
+
h(ViteHubInput, {
|
|
176
175
|
autocapitalize: "off",
|
|
177
176
|
autocomplete: "off",
|
|
178
177
|
autofocus: true,
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
2
|
// src/workspace/file-icons.ts
|
|
3
|
-
/**
|
|
4
|
-
* The colors of the file types: the brand colors of the languages, as in the Seti theme of VS Code, for light and dark
|
|
5
|
-
* pages. They are data, like brand logos, so they live here and not in the theme. A `--vh-ws-file-<type>` token on the
|
|
6
|
-
* page replaces one.
|
|
7
|
-
*/
|
|
8
3
|
const colors = {
|
|
9
4
|
astro: ["#7c3aed", "#a78bfa"],
|
|
10
5
|
js: ["#a16207", "#eab308"],
|
|
@@ -20,7 +15,6 @@ function color(type) {
|
|
|
20
15
|
const [light, dark] = colors[type];
|
|
21
16
|
return `var(--vh-ws-file-${type}, light-dark(${light}, ${dark}))`;
|
|
22
17
|
}
|
|
23
|
-
/** The glyph and its color, by file extension. */
|
|
24
18
|
const glyphs = {
|
|
25
19
|
astro: ["A", "astro"],
|
|
26
20
|
cjs: ["JS", "js"],
|
|
@@ -46,7 +40,6 @@ function extension(path) {
|
|
|
46
40
|
const dot = name.lastIndexOf(".");
|
|
47
41
|
return dot > 0 ? name.slice(dot + 1).toLowerCase() : "";
|
|
48
42
|
}
|
|
49
|
-
/** The inner SVG of the icon of `path`, in a 16x16 box. */
|
|
50
43
|
function iconBody(path) {
|
|
51
44
|
const type = extension(path);
|
|
52
45
|
if (type === "vue") return vueLogo;
|
|
@@ -58,7 +51,6 @@ const symbolIds = {
|
|
|
58
51
|
vue: "vh-ws-file-vue",
|
|
59
52
|
...Object.fromEntries(Object.keys(glyphs).map((type) => [type, `vh-ws-file-${type}`]))
|
|
60
53
|
};
|
|
61
|
-
/** The symbols that `fileTreeIcons` names, for the `spriteSheet` of a Pierre tree. */
|
|
62
54
|
const spriteSheet = `<svg xmlns="http://www.w3.org/2000/svg" style="display: none">${Object.entries(symbolIds).map(([type, id]) => `<symbol id="${id}" viewBox="0 0 16 16">${iconBody(type === "other" ? "" : `file.${type}`)}</symbol>`).join("")}</svg>`;
|
|
63
55
|
/** The `icons` option of a Pierre tree that draws these icons. A file of another type gets a muted dot. */
|
|
64
56
|
const fileTreeIcons = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as useCopy } from "../../../CopyButton-
|
|
1
|
+
import { n as useCopy } from "../../../CopyButton-D-g6PWc8.js";
|
|
2
2
|
import { ConnectPanel } from "../connect-panel.js";
|
|
3
3
|
import { useConnectStore } from "../connect-store.js";
|
|
4
|
-
import { t as WorkspaceBootStatus } from "../../../workspace-boot-status-
|
|
4
|
+
import { t as WorkspaceBootStatus } from "../../../workspace-boot-status-BDkpubHd.js";
|
|
5
5
|
import { WorkspacePreview, workspacePreviewScript } from "../workspace-preview.js";
|
|
6
6
|
import { WorkspaceTerminal } from "../workspace-terminal.js";
|
|
7
7
|
import { computed, getCurrentInstance, h, onMounted, onScopeDispose, ref, shallowRef, watch } from "vue";
|
|
@@ -38,9 +38,9 @@ export declare const WorkspaceBar: import("vue").DefineComponent<import("vue").E
|
|
|
38
38
|
}>> & Readonly<{
|
|
39
39
|
"onUpdate:sidebar"?: ((open: boolean) => any) | undefined;
|
|
40
40
|
}>, {
|
|
41
|
+
step: string;
|
|
41
42
|
sidebar: boolean;
|
|
42
43
|
sidebarId: string;
|
|
43
|
-
step: string;
|
|
44
44
|
}, SlotsType<{
|
|
45
45
|
lead?: () => VNode[];
|
|
46
46
|
examples?: () => VNode[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as ViteHubButton } from "../../stand-ins-C2oSoNwV.js";
|
|
2
2
|
import { defineComponent, h } from "vue";
|
|
3
3
|
// src/workspace/workspace-bar.ts
|
|
4
4
|
/**
|
|
@@ -26,9 +26,8 @@ const WorkspaceBar = defineComponent({
|
|
|
26
26
|
emits: { "update:sidebar": (open) => typeof open === "boolean" },
|
|
27
27
|
slots: Object,
|
|
28
28
|
setup(props, { emit, slots }) {
|
|
29
|
-
const UButton = useUIComponent("UButton");
|
|
30
29
|
return () => h("header", { class: "vh-ws-topbar" }, [
|
|
31
|
-
props.sidebar === void 0 ? void 0 : h(
|
|
30
|
+
props.sidebar === void 0 ? void 0 : h(ViteHubButton, {
|
|
32
31
|
"aria-controls": props.sidebarId,
|
|
33
32
|
"aria-expanded": String(props.sidebar),
|
|
34
33
|
"aria-label": props.sidebar ? "Close the sidebar" : "Open the sidebar",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as WorkspaceBootStatus, n as bootChecklist } from "../../workspace-boot-status-
|
|
1
|
+
export { t as WorkspaceBootStatus, n as bootChecklist } from "../../workspace-boot-status-BDkpubHd.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as useUIComponent } from "../../nuxt-ui-D3Qda35W.js";
|
|
2
1
|
import { fileIcon } from "./file-icons.js";
|
|
3
2
|
import { icon } from "./icons.js";
|
|
3
|
+
import { n as ViteHubButton } from "../../stand-ins-C2oSoNwV.js";
|
|
4
4
|
import { defineComponent, h } from "vue";
|
|
5
5
|
// src/workspace/workspace-editor-head.ts
|
|
6
6
|
/**
|
|
@@ -28,7 +28,6 @@ const WorkspaceEditorHead = defineComponent({
|
|
|
28
28
|
},
|
|
29
29
|
emits: { "update:wrap": (wrap) => typeof wrap === "boolean" },
|
|
30
30
|
setup(props, { emit, slots }) {
|
|
31
|
-
const UButton = useUIComponent("UButton");
|
|
32
31
|
return () => {
|
|
33
32
|
const folders = props.path.split("/").filter(Boolean);
|
|
34
33
|
const name = folders.pop() ?? props.path;
|
|
@@ -45,7 +44,7 @@ const WorkspaceEditorHead = defineComponent({
|
|
|
45
44
|
props.readonly ? h("span", { class: "vh-ws-readonly" }, [icon("lock", "vh-ws-readonly-icon"), "Read-only"]) : void 0,
|
|
46
45
|
h("span", { class: "vh-ws-file-head-spacer" }),
|
|
47
46
|
slots.default?.(),
|
|
48
|
-
h(
|
|
47
|
+
h(ViteHubButton, {
|
|
49
48
|
"aria-keyshortcuts": "Alt+Z",
|
|
50
49
|
"aria-label": "Wrap lines",
|
|
51
50
|
"aria-pressed": props.wrap ? "true" : "false",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as ViteHubButton } from "../../stand-ins-C2oSoNwV.js";
|
|
2
|
+
import { t as ViteHubDropdownMenu } from "../../components-D44u1fsy.js";
|
|
2
3
|
import { computed, defineComponent, h } from "vue";
|
|
3
4
|
// src/workspace/workspace-examples.ts
|
|
4
5
|
/** The examples by group, in the order of their first example. Examples without a group come first. */
|
|
@@ -37,8 +38,6 @@ const WorkspaceExamples = defineComponent({
|
|
|
37
38
|
},
|
|
38
39
|
emits: { "update:modelValue": (id) => typeof id === "string" },
|
|
39
40
|
setup(props, { emit }) {
|
|
40
|
-
const UButton = useUIComponent("UButton");
|
|
41
|
-
const UDropdownMenu = useUIComponent("UDropdownMenu");
|
|
42
41
|
const current = computed(() => props.modelValue === null ? void 0 : props.examples.find((example) => example.id === props.modelValue) ?? props.examples[0]);
|
|
43
42
|
const items = computed(() => groupExamples(props.examples).map(({ examples, group }) => [...group ? [{
|
|
44
43
|
label: group,
|
|
@@ -52,14 +51,14 @@ const WorkspaceExamples = defineComponent({
|
|
|
52
51
|
},
|
|
53
52
|
type: "checkbox"
|
|
54
53
|
}))]));
|
|
55
|
-
return () => h(
|
|
54
|
+
return () => h(ViteHubDropdownMenu, {
|
|
56
55
|
content: {
|
|
57
56
|
align: "start",
|
|
58
57
|
sideOffset: 6
|
|
59
58
|
},
|
|
60
59
|
items: items.value,
|
|
61
60
|
ui: { content: "vh-ws-examples-menu" }
|
|
62
|
-
}, () => h(
|
|
61
|
+
}, () => h(ViteHubButton, {
|
|
63
62
|
"aria-label": props.modelValue === null ? `Choose ${props.label.toLowerCase()}` : `${props.label}: ${current.value?.label ?? "none"}`,
|
|
64
63
|
class: "vh-ws-bar-button vh-ws-examples-button",
|
|
65
64
|
color: "neutral",
|
|
@@ -46,6 +46,6 @@ export declare const WorkspaceFileTree: import("vue").DefineComponent<import("vu
|
|
|
46
46
|
"onUpdate:selected"?: ((path: string) => any) | undefined;
|
|
47
47
|
}>, {
|
|
48
48
|
label: string;
|
|
49
|
-
edited:
|
|
49
|
+
edited: readonly string[] | ReadonlySet<string>;
|
|
50
50
|
selected: string;
|
|
51
51
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -45,6 +45,6 @@ export declare const WorkspaceGuide: import("vue").DefineComponent<import("vue")
|
|
|
45
45
|
"onUpdate:step"?: ((step: number) => any) | undefined;
|
|
46
46
|
}>, {
|
|
47
47
|
title: string;
|
|
48
|
-
steps: readonly WorkspaceStep[];
|
|
49
48
|
step: number;
|
|
49
|
+
steps: readonly WorkspaceStep[];
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as useUIComponent } from "../../nuxt-ui-D3Qda35W.js";
|
|
2
1
|
import { keepFocus, useStepModel } from "./workspace-steps.js";
|
|
2
|
+
import { n as ViteHubButton } from "../../stand-ins-C2oSoNwV.js";
|
|
3
3
|
import { defineComponent, h, ref, watch } from "vue";
|
|
4
4
|
// src/workspace/workspace-guide.ts
|
|
5
5
|
/**
|
|
@@ -29,7 +29,6 @@ const WorkspaceGuide = defineComponent({
|
|
|
29
29
|
emits: { "update:step": (step) => Number.isInteger(step) },
|
|
30
30
|
setup(props, { emit, slots }) {
|
|
31
31
|
const { current, go } = useStepModel(props, emit);
|
|
32
|
-
const UButton = useUIComponent("UButton");
|
|
33
32
|
const body = ref(null);
|
|
34
33
|
const nav = ref(null);
|
|
35
34
|
function move(index) {
|
|
@@ -50,7 +49,7 @@ const WorkspaceGuide = defineComponent({
|
|
|
50
49
|
step: index,
|
|
51
50
|
total
|
|
52
51
|
};
|
|
53
|
-
const content = slots.footer?.(slotProps) ?? (total > 1 ? [previous ? h(
|
|
52
|
+
const content = slots.footer?.(slotProps) ?? (total > 1 ? [previous ? h(ViteHubButton, {
|
|
54
53
|
"aria-label": `Back to step ${index}: ${previous.title}`,
|
|
55
54
|
class: "vh-ws-guide-back",
|
|
56
55
|
color: "neutral",
|
|
@@ -59,7 +58,7 @@ const WorkspaceGuide = defineComponent({
|
|
|
59
58
|
size: "sm",
|
|
60
59
|
variant: "ghost",
|
|
61
60
|
onClick: () => move(index - 1)
|
|
62
|
-
}) : h("span"), next ? h(
|
|
61
|
+
}) : h("span"), next ? h(ViteHubButton, {
|
|
63
62
|
class: "vh-ws-guide-next",
|
|
64
63
|
color: "neutral",
|
|
65
64
|
label: `Next: ${next.title}`,
|