@vite-hub/ui 0.6.0 → 0.6.1
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 +1 -1
- package/dist/{colors-BghReA9C-DEq4bhEP.js → colors-BghReA9C-A4M9YE0s.js} +1 -1
- package/dist/{comment-attachments-CMpYOJod.js → comment-attachments-DAzUbRmJ.js} +4 -0
- package/dist/{comment-composer-BI6CNJyO.d.ts → comment-composer-DmDM3XYP.d.ts} +1 -1
- package/dist/{comment-composer-BP-CJx7f.js → comment-composer-X7vJKh5b.js} +4 -4
- package/dist/comment-layer-KnnVfdRV.d.ts +130 -0
- package/dist/{comment-list-BJdZu0DS.d.ts → comment-list-ncwaCSVX.d.ts} +2 -2
- package/dist/{comment-panel-DISGe7yM.d.ts → comment-panel-DoLDOw3E.d.ts} +2 -42
- package/dist/{comment-pin-C5UeLPTa.d.ts → comment-pin-hBJFiSYW.d.ts} +1 -1
- package/dist/{comment-send-CH46zawK.js → comment-send-CUkL3TbZ.js} +1 -1
- package/dist/comment-status-nsCdrRk_.js +20 -0
- package/dist/{comment-thread-DSkWODKG.d.ts → comment-thread-DPV2kqA4.d.ts} +4 -8
- package/dist/{comment-thread-5h93DXds.js → comment-thread-jqPx6aJ8.js} +9 -9
- package/dist/{comments-D9dONfs9.js → comments-9MDSNm-9.js} +33 -40
- package/dist/{comments-CnG_c-_c.d.ts → comments-OWjNidkP.d.ts} +6 -5
- package/dist/{comments-context-CrjhleVA.js → comments-context-3js2YFl2.js} +2 -2
- package/dist/{config-xL4EBeXw.d.ts → config-COSdO-ay.d.ts} +2 -1
- package/dist/{config-BDvnaVUn.js → config-LRonN53j.js} +9 -3
- package/dist/{draw-DzSmD7uo-Cb7s9kxJ.js → draw-DzSmD7uo-BvtKi0oE.js} +2 -2
- package/dist/{editor-BuByBIkJ.js → editor-Dmk3k6f6.js} +1 -1
- package/dist/{effects-DEoFFycD.js → effects-C1zYpSpg.js} +2 -2
- package/dist/{format-Bc9m7-r0.js → format-CPipR1FP.js} +4 -23
- package/dist/headless.d.ts +2 -2
- package/dist/headless.js +1 -1
- package/dist/{image-preview-EqfPcFZ9.js → image-preview-BKVUtfwQ.js} +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.js +10 -9
- package/dist/{install-qNaj4OY4.js → install-C4LwcJda.js} +1 -1
- package/dist/{markdown-editor-3gY9MLvy.js → markdown-editor-D1irG9Xl.js} +45 -11
- package/dist/markdown-editor.js +1 -1
- package/dist/{markdown-renderer-BgsmNqv7.js → markdown-renderer-DMyYKeil.js} +13062 -12372
- package/dist/{message-scroller-a6qaYHno.d.ts → message-scroller-BZqS63IX.d.ts} +2 -2
- package/dist/motion/core.d.ts +1 -1
- package/dist/motion/core.js +4 -4
- package/dist/{motion-core-DNl7TR1T.d.ts → motion-core-Dh20n5Se.d.ts} +2 -1
- package/dist/motion.d.ts +1 -1
- package/dist/motion.js +5 -5
- package/dist/nuxt.d.ts +1 -1
- package/dist/parts/components/agent-session.d.ts +46 -3
- package/dist/parts/components/agent-session.js +27 -7
- package/dist/parts/components/avatar-stack.js +1 -1
- package/dist/parts/components/chat.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 +20 -31
- package/dist/parts/components/comment-list.d.ts +1 -1
- package/dist/parts/components/comment-list.js +3 -2
- package/dist/parts/components/comment-panel.d.ts +1 -1
- package/dist/parts/components/comment-panel.js +32 -29
- package/dist/parts/components/comment-pin.d.ts +1 -1
- package/dist/parts/components/comment-selection-bar.js +1 -1
- package/dist/parts/components/comment-send.js +1 -1
- package/dist/parts/components/comment-thread.d.ts +2 -2
- package/dist/parts/components/comment-thread.js +3 -3
- package/dist/parts/components/comments.d.ts +6 -6
- package/dist/parts/components/comments.js +4 -4
- package/dist/parts/components/copy-button.js +2 -2
- package/dist/parts/components/markdown-editor.js +1 -1
- package/dist/parts/components/markdown-renderer.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.js +2 -2
- package/dist/parts/components/prompt-input.d.ts +2 -2
- package/dist/parts/components/prompt-input.js +2 -2
- package/dist/parts/components/trace-run.js +1 -1
- package/dist/parts/headless/comments.d.ts +1 -1
- package/dist/parts/headless/comments.js +1 -1
- package/dist/parts/headless/message-scroller.d.ts +1 -1
- package/dist/parts/workspace/browser-support-notice.d.ts +1 -1
- package/dist/parts/workspace/browser-support-notice.js +1 -1
- package/dist/parts/workspace/workspace-boot-status.js +1 -1
- package/dist/parts/workspace/workspace-sidebar.d.ts +1 -1
- package/dist/parts/workspace/workspace-sidebar.js +1 -1
- package/dist/parts/workspace/workspace.d.ts +1 -1
- package/dist/parts/workspace/workspace.js +1 -1
- package/dist/{ring-BN4d8vtw.js → ring-GaJsg32c.js} +63 -12
- package/dist/runtime/nuxt-plugin.js +1 -1
- package/dist/{sankey-CAYwt82B-BAAk7WkJ.js → sankey-CAYwt82B-e6k34wtW.js} +3 -3
- package/dist/styles.css +13 -0
- package/dist/{text-BWzZFnGY.js → text-gacox6bp.js} +1 -1
- package/dist/{travel-CwVhU_GS.js → travel-BliEidau.js} +1 -1
- package/dist/vue-d2Td6uu2.js +6587 -0
- package/dist/{vue-Cs_HmYsp.js → vue-vUGpdMct.js} +1 -1
- package/dist/workspace.js +1 -1
- package/package.json +7 -7
- package/dist/comment-layer-Ba2DV4L7.d.ts +0 -174
- package/dist/vue-BlknIGIm.js +0 -2501
|
@@ -21,8 +21,8 @@ function useDocumentPointerDown(handler) {
|
|
|
21
21
|
}
|
|
22
22
|
const shakeEventName = "comments:shake";
|
|
23
23
|
const dirtySelector = "[data-slot='comment-composer'][data-dirty='true']";
|
|
24
|
-
function hasDirtyComposer(root = document) {
|
|
25
|
-
return root.
|
|
24
|
+
function hasDirtyComposer(root = document, skip) {
|
|
25
|
+
return [...root.querySelectorAll(dirtySelector)].some((composer) => !skip || !composer.matches(skip));
|
|
26
26
|
}
|
|
27
27
|
function shakeDirtyComposers(root = document, escape = false) {
|
|
28
28
|
const dirty = [...root.querySelectorAll(dirtySelector)];
|
|
@@ -81,7 +81,8 @@ interface ResolvedViteHubUIDefaults {
|
|
|
81
81
|
declare const ViteHubUIInjectionKey: InjectionKey<ResolvedViteHubUIDefaults>;
|
|
82
82
|
declare function resolveViteHubUIDefaults(options?: ViteHubUIOptions): ResolvedViteHubUIDefaults;
|
|
83
83
|
declare function useViteHubUI(): ResolvedViteHubUIDefaults;
|
|
84
|
+
declare function useViteHubUIMotionEnabled(): boolean;
|
|
84
85
|
/** The icons that the parts render. It reads them on each render, so a reactive app config updates them. */
|
|
85
86
|
declare function useViteHubUIIcons(): ComputedRef<Required<ViteHubUIIconOptions>>;
|
|
86
87
|
declare function createViteHubUI(options?: ViteHubUIOptions): Plugin;
|
|
87
|
-
export { ViteHubUIOptions as a, useViteHubUI as c,
|
|
88
|
+
export { ViteHubUIOptions as a, useViteHubUI as c, ViteHubUIComponentName as d, ViteHubUIComponents as f, ViteHubUIInjectionKey as i, useViteHubUIIcons as l, ViteHubUIDefaults as n, createViteHubUI as o, ViteHubUIIconOptions as r, resolveViteHubUIDefaults as s, ResolvedViteHubUIDefaults as t, useViteHubUIMotionEnabled as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as uiComponentsKey } from "./nuxt-ui-7ByUrymx.js";
|
|
2
2
|
import { vRing } from "./parts/components/motion.js";
|
|
3
|
-
import { t as installMotion } from "./install-
|
|
3
|
+
import { t as installMotion } from "./install-C4LwcJda.js";
|
|
4
4
|
import { computed, inject, toValue } from "vue";
|
|
5
5
|
// src/config.ts
|
|
6
6
|
const defaultOptions = {
|
|
@@ -12,6 +12,7 @@ const defaultOptions = {
|
|
|
12
12
|
};
|
|
13
13
|
const ViteHubUIInjectionKey = Symbol("ViteHubUI");
|
|
14
14
|
const iconsKey = Symbol("ViteHubUIIcons");
|
|
15
|
+
const motionEnabledKey = Symbol("ViteHubUIMotionEnabled");
|
|
15
16
|
const defaultIcons = {
|
|
16
17
|
arrowLeft: "i-lucide-arrow-left",
|
|
17
18
|
arrowUp: "i-lucide-arrow-up",
|
|
@@ -49,6 +50,9 @@ function resolveViteHubUIDefaults(options = {}) {
|
|
|
49
50
|
function useViteHubUI() {
|
|
50
51
|
return inject(ViteHubUIInjectionKey, defaultOptions);
|
|
51
52
|
}
|
|
53
|
+
function useViteHubUIMotionEnabled() {
|
|
54
|
+
return inject(motionEnabledKey, true);
|
|
55
|
+
}
|
|
52
56
|
/** The icons that the parts render. It reads them on each render, so a reactive app config updates them. */
|
|
53
57
|
function useViteHubUIIcons() {
|
|
54
58
|
const icons = inject(iconsKey, void 0);
|
|
@@ -62,8 +66,10 @@ function createViteHubUI(options = {}) {
|
|
|
62
66
|
if (options.components) app.provide(uiComponentsKey, options.components);
|
|
63
67
|
if (options.icons) app.provide(iconsKey, options.icons);
|
|
64
68
|
app.provide(ViteHubUIInjectionKey, resolveViteHubUIDefaults(options));
|
|
65
|
-
|
|
69
|
+
const motionEnabled = options.motion !== false;
|
|
70
|
+
app.provide(motionEnabledKey, motionEnabled);
|
|
71
|
+
if (motionEnabled && typeof document !== "undefined") app.onUnmount(installMotion());
|
|
66
72
|
app.directive("ring", vRing);
|
|
67
73
|
} };
|
|
68
74
|
}
|
|
69
|
-
export { useViteHubUIIcons as a, useViteHubUI as i, createViteHubUI as n, resolveViteHubUIDefaults as r, ViteHubUIInjectionKey as t };
|
|
75
|
+
export { useViteHubUIIcons as a, useViteHubUI as i, createViteHubUI as n, useViteHubUIMotionEnabled as o, resolveViteHubUIDefaults as r, ViteHubUIInjectionKey as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll, r as __reExport } from "./rolldown-runtime-CahUhzF3.js";
|
|
2
|
-
import { n as SERIES, t as INK } from "./colors-BghReA9C-
|
|
2
|
+
import { n as SERIES, t as INK } from "./colors-BghReA9C-A4M9YE0s.js";
|
|
3
3
|
import { loader, read, responseType } from "vega-loader";
|
|
4
4
|
// ../../node_modules/.pnpm/flint-chart@0.5.1_vega-lite@6.5.0_vega@6.4.0__vega@6.4.0/node_modules/flint-chart/dist/vegalite/index.js
|
|
5
5
|
function applyEncodingOverrides(template, encodings, chartProperties) {
|
|
@@ -70903,7 +70903,7 @@ function assembleTopLevelModel(model, topLevelProperties, datasets = {}, usermet
|
|
|
70903
70903
|
};
|
|
70904
70904
|
}
|
|
70905
70905
|
pkg.version;
|
|
70906
|
-
// ../../node_modules/.pnpm/comark-charts@0.
|
|
70906
|
+
// ../../node_modules/.pnpm/comark-charts@0.14.3_@comark+html@0.9.2_katex@0.19.1_shiki@4.6.0__comark@0.9.2_katex@0._3dc1623b66c2ddc50c7ba6cd35e1abd0/node_modules/comark-charts/dist/draw-DzSmD7uo.mjs
|
|
70907
70907
|
const { logger, None, parse, View } = vega_module_exports;
|
|
70908
70908
|
const EM = [
|
|
70909
70909
|
[/\p{Extended_Pictographic}/u, 1.3],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useViteHubUIIcons } from "./config-
|
|
1
|
+
import { a as useViteHubUIIcons } from "./config-LRonN53j.js";
|
|
2
2
|
import { t as createMotionList } from "./list-DUTAo0uC.js";
|
|
3
3
|
import { n as editorHandlersKey, t as createEditorHandlers } from "./handlers-CnbkvXjX.js";
|
|
4
4
|
import { r as useUIComponent } from "./nuxt-ui-7ByUrymx.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as offsetIn, d as iconShape, n as morph, o as enterIcon, r as morphTarget, s as leaveIcon, t as discardMorph, u as findIcons } from "./text-
|
|
1
|
+
import { c as offsetIn, d as iconShape, n as morph, o as enterIcon, r as morphTarget, s as leaveIcon, t as discardMorph, u as findIcons } from "./text-gacox6bp.js";
|
|
2
2
|
import { i as getMotionSlowFactor, l as onReducedMotionChange, r as createSpring, s as springs, t as isMotionOff, u as prefersReducedMotion } from "./opt-out-D66l60sg.js";
|
|
3
3
|
import { a as listMotionEffects, c as onMotionEffectsChange, i as handOffMotionEffects, l as otherMotionLayer, o as motionEffectRegistrations, r as defineOwnEffect, s as motionStateAttributes, t as claimMotionLayer, u as writeMotionStyle } from "./registry-DAIjCjWd.js";
|
|
4
|
-
import { a as isOwnNode, c as own } from "./ring-
|
|
4
|
+
import { a as isOwnNode, c as own } from "./ring-GaJsg32c.js";
|
|
5
5
|
// src/motion/effects/divider.ts
|
|
6
6
|
const springBack = {
|
|
7
7
|
stiffness: 500,
|
|
@@ -1,32 +1,13 @@
|
|
|
1
1
|
// src/internal/format.ts
|
|
2
|
-
const milliseconds = new Intl.DurationFormat("en", {
|
|
3
|
-
style: "narrow",
|
|
4
|
-
millisecondsDisplay: "always"
|
|
5
|
-
});
|
|
6
|
-
const tenths = new Intl.DurationFormat("en", {
|
|
7
|
-
style: "narrow",
|
|
8
|
-
milliseconds: "numeric",
|
|
9
|
-
fractionalDigits: 1
|
|
10
|
-
});
|
|
11
|
-
const minutes = new Intl.DurationFormat("en", {
|
|
12
|
-
style: "narrow",
|
|
13
|
-
secondsDisplay: "always"
|
|
14
|
-
});
|
|
15
2
|
/** "320ms", "1.2s", "30s", or "1m 35s". Seconds round down, so a running counter never shows "60s". */
|
|
16
3
|
function formatDuration(ms) {
|
|
17
4
|
const whole = Math.round(ms);
|
|
18
|
-
if (whole < 1e3) return
|
|
5
|
+
if (whole < 1e3) return `${whole}ms`;
|
|
19
6
|
const elapsed = Math.max(ms, 1e3);
|
|
20
7
|
const seconds = Math.floor(elapsed / 1e3);
|
|
21
|
-
if (seconds < 10) return
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
});
|
|
25
|
-
if (seconds < 60) return minutes.format({ seconds });
|
|
26
|
-
return minutes.format({
|
|
27
|
-
minutes: Math.floor(seconds / 60),
|
|
28
|
-
seconds: seconds % 60
|
|
29
|
-
});
|
|
8
|
+
if (seconds < 10) return `${seconds}.${Math.floor(elapsed % 1e3 / 100)}s`;
|
|
9
|
+
if (seconds < 60) return `${seconds}s`;
|
|
10
|
+
return `${Math.floor(seconds / 60)}m ${seconds % 60}s`;
|
|
30
11
|
}
|
|
31
12
|
/** Two letters for an avatar without an image: `Ana Lopez` and `ana.lopez@vitehub.dev` are `AL`, `Ana` is `AN`. */
|
|
32
13
|
function initials(name) {
|
package/dist/headless.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as MessageScrollerContent, c as MessageScrollerViewport, i as MessageScrollerButton, l as calculatePrependScrollTop, n as MessageScrollPosition, o as MessageScrollerContext, r as MessageScroller, s as MessageScrollerItem, t as MessageScrollBehavior, u as useMessageScroller } from "./message-scroller-
|
|
2
|
-
import { a as CommentThreadAction, c as UseCommentsOptions, d as provideComments, f as useComments, i as CommentScope, l as defaultCommentCan, n as CommentDraft, o as CommentsOutboxState, p as useCommentsContext, r as CommentFilterState, s as CommentsState, t as CommentCan, u as draftPositionKey } from "./comments-
|
|
1
|
+
import { a as MessageScrollerContent, c as MessageScrollerViewport, i as MessageScrollerButton, l as calculatePrependScrollTop, n as MessageScrollPosition, o as MessageScrollerContext, r as MessageScroller, s as MessageScrollerItem, t as MessageScrollBehavior, u as useMessageScroller } from "./message-scroller-BZqS63IX.js";
|
|
2
|
+
import { a as CommentThreadAction, c as UseCommentsOptions, d as provideComments, f as useComments, i as CommentScope, l as defaultCommentCan, n as CommentDraft, o as CommentsOutboxState, p as useCommentsContext, r as CommentFilterState, s as CommentsState, t as CommentCan, u as draftPositionKey } from "./comments-OWjNidkP.js";
|
|
3
3
|
import { a as createCommentVisibility, i as commentLeaveMs, n as CommentVisibilityModel, r as CommentVisibilityOptions, t as CommentVisibility } from "./comment-visibility-CYctacNx.js";
|
|
4
4
|
import { a as ChoicesInputSource, i as ChoicesInputField, n as ChoicesInputClear, o as ChoicesInputState, r as ChoicesInputError, s as ChoicesInputStatus, t as ChoicesInput } from "./choices-input-BUf-QqGj.js";
|
|
5
5
|
export { ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputSource, ChoicesInputState, ChoicesInputStatus, CommentCan, CommentDraft, CommentFilterState, CommentScope, CommentThreadAction, CommentVisibility, CommentVisibilityModel, CommentVisibilityOptions, CommentsOutboxState, CommentsState, MessageScrollBehavior, MessageScrollPosition, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerContext, MessageScrollerItem, MessageScrollerViewport, UseCommentsOptions, calculatePrependScrollTop, commentLeaveMs, createCommentVisibility, defaultCommentCan, draftPositionKey, provideComments, useComments, useCommentsContext, useMessageScroller };
|
package/dist/headless.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, calculatePrependScrollTop, useMessageScroller } from "./parts/headless/message-scroller.js";
|
|
2
|
-
import { a as useCommentsContext, i as useComments, n as draftPositionKey, r as provideComments, t as defaultCommentCan } from "./comments-
|
|
2
|
+
import { a as useCommentsContext, i as useComments, n as draftPositionKey, r as provideComments, t as defaultCommentCan } from "./comments-9MDSNm-9.js";
|
|
3
3
|
import { commentLeaveMs, createCommentVisibility } from "./parts/headless/comment-visibility.js";
|
|
4
4
|
import { ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputStatus } from "./parts/headless/choices-input.js";
|
|
5
5
|
export { ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputStatus, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, calculatePrependScrollTop, commentLeaveMs, createCommentVisibility, defaultCommentCan, draftPositionKey, provideComments, useComments, useCommentsContext, useMessageScroller };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useViteHubUIIcons } from "./config-
|
|
1
|
+
import { a as useViteHubUIIcons } from "./config-LRonN53j.js";
|
|
2
2
|
import { r as useUIComponent } from "./nuxt-ui-7ByUrymx.js";
|
|
3
3
|
import { computed, defineComponent, h, ref, watch } from "vue";
|
|
4
4
|
// src/internal/image-preview.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -7,17 +7,17 @@ import { n as TraceRunView, r as TraceStepView, t as TraceEventLogEntry } from "
|
|
|
7
7
|
import { a as useFileTreeSelection, i as useFileTree, n as FileTreeModel, r as FileTreeOptions, t as FileTree } from "./file-tree-DOtkeBaq.js";
|
|
8
8
|
import { Markdown, MarkdownValue } from "./parts/components/markdown.js";
|
|
9
9
|
import { MessageParts } from "./parts/components/message-parts.js";
|
|
10
|
-
import { AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionItem, AgentSessionSurface, AgentSessionTimeline, AgentSessionWorkEntry, AgentSessionWorkGroup, AgentSessionWorkKind } from "./parts/components/agent-session.js";
|
|
10
|
+
import { AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionItem, AgentSessionSurface, AgentSessionTimeline, AgentSessionWorkDetailScope, AgentSessionWorkEntry, AgentSessionWorkGroup, AgentSessionWorkKind } from "./parts/components/agent-session.js";
|
|
11
11
|
import { a as CodeViewLineSelection, c as DiffLineAnnotation, d as LineAnnotation, f as SelectedLineRange, i as UnresolvedFileOptions, l as FileContents, m as FileOptions, n as parseDiffFromFile, o as CodeViewOptions, p as FileDiffOptions, r as getSingularPatch, s as CodeViewItem, t as parsePatchFiles, u as FileDiffMetadata } from "./index-B2cbt3py.js";
|
|
12
12
|
import { ChatSession } from "./parts/components/chat-session.js";
|
|
13
|
-
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-
|
|
13
|
+
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-DmDM3XYP.js";
|
|
14
14
|
import { a as createCommentVisibility, i as commentLeaveMs, n as CommentVisibilityModel, r as CommentVisibilityOptions, t as CommentVisibility } from "./comment-visibility-CYctacNx.js";
|
|
15
|
-
import { a as CommentThreadAction, c as UseCommentsOptions, d as provideComments, f as useComments, i as CommentScope, l as defaultCommentCan, n as CommentDraft, o as CommentsOutboxState, p as useCommentsContext, r as CommentFilterState, s as CommentsState, t as CommentCan, u as draftPositionKey } from "./comments-
|
|
16
|
-
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-
|
|
17
|
-
import { a as CommentPanelVariant, c as CommentUpload, i as CommentPanelSlots, n as CommentGroupSlotScope, o as CommentRowSlotScope, r as CommentPanel, s as CommentRowSlots, t as CommentGroup } from "./comment-panel-
|
|
18
|
-
import { n as CommentPlacement, t as CommentLayer } from "./comment-layer-
|
|
19
|
-
import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "./comment-list-
|
|
20
|
-
import { t as CommentPin } from "./comment-pin-
|
|
15
|
+
import { a as CommentThreadAction, c as UseCommentsOptions, d as provideComments, f as useComments, i as CommentScope, l as defaultCommentCan, n as CommentDraft, o as CommentsOutboxState, p as useCommentsContext, r as CommentFilterState, s as CommentsState, t as CommentCan, u as draftPositionKey } from "./comments-OWjNidkP.js";
|
|
16
|
+
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-DPV2kqA4.js";
|
|
17
|
+
import { a as CommentPanelVariant, c as CommentUpload, i as CommentPanelSlots, n as CommentGroupSlotScope, o as CommentRowSlotScope, r as CommentPanel, s as CommentRowSlots, t as CommentGroup } from "./comment-panel-DoLDOw3E.js";
|
|
18
|
+
import { n as CommentPlacement, t as CommentLayer } from "./comment-layer-KnnVfdRV.js";
|
|
19
|
+
import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "./comment-list-ncwaCSVX.js";
|
|
20
|
+
import { t as CommentPin } from "./comment-pin-hBJFiSYW.js";
|
|
21
21
|
import { n as CommentSelectionBarSide, t as CommentSelectionBar } from "./comment-selection-bar-CVuS-FNL.js";
|
|
22
22
|
import { t as CommentSend } from "./comment-send-MmxFsOQf.js";
|
|
23
23
|
import { ToolList } from "./parts/components/tool-list.js";
|
|
@@ -46,8 +46,8 @@ import { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigg
|
|
|
46
46
|
import { PlaygroundFiles } from "./parts/playground/share.js";
|
|
47
47
|
import { AgentAttachments, PendingAttachment, UseAgentAttachmentsOptions, fileToDataUrl, fileToUIPart, useAgentAttachments } from "./parts/composables/attachments.js";
|
|
48
48
|
import { useHighlightedCode } from "./parts/composables/highlighted-code.js";
|
|
49
|
-
import { a as MessageScrollerContent, c as MessageScrollerViewport, i as MessageScrollerButton, l as calculatePrependScrollTop, n as MessageScrollPosition, o as MessageScrollerContext, r as MessageScroller, s as MessageScrollerItem, t as MessageScrollBehavior, u as useMessageScroller } from "./message-scroller-
|
|
50
|
-
import { a as ViteHubUIOptions, c as useViteHubUI, d as ViteHubUIComponents, i as ViteHubUIInjectionKey, l as useViteHubUIIcons, n as ViteHubUIDefaults, o as createViteHubUI, r as ViteHubUIIconOptions, s as resolveViteHubUIDefaults, t as ResolvedViteHubUIDefaults, u as
|
|
49
|
+
import { a as MessageScrollerContent, c as MessageScrollerViewport, i as MessageScrollerButton, l as calculatePrependScrollTop, n as MessageScrollPosition, o as MessageScrollerContext, r as MessageScroller, s as MessageScrollerItem, t as MessageScrollBehavior, u as useMessageScroller } from "./message-scroller-BZqS63IX.js";
|
|
50
|
+
import { a as ViteHubUIOptions, c as useViteHubUI, d as ViteHubUIComponentName, f as ViteHubUIComponents, i as ViteHubUIInjectionKey, l as useViteHubUIIcons, n as ViteHubUIDefaults, o as createViteHubUI, r as ViteHubUIIconOptions, s as resolveViteHubUIDefaults, t as ResolvedViteHubUIDefaults, u as useViteHubUIMotionEnabled } from "./config-COSdO-ay.js";
|
|
51
51
|
import "./headless.js";
|
|
52
52
|
import { i as ViteHubUISession, n as AgentToolInspection, r as ViteHubUIMessage, t as AgentInspectionValue } from "./types-Ceh7h7NT.js";
|
|
53
53
|
/**
|
|
@@ -56,4 +56,4 @@ import { i as ViteHubUISession, n as AgentToolInspection, r as ViteHubUIMessage,
|
|
|
56
56
|
* `createViteHubUI({ icons })`, pass your own `UIcon` next to these.
|
|
57
57
|
*/
|
|
58
58
|
export declare const uiSdkComponents: ViteHubUIComponents;
|
|
59
|
-
export { AgentAttachments, type AgentInspectionValue, AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionItem, AgentSessionSurface, AgentSessionTimeline, AgentSessionWorkEntry, AgentSessionWorkGroup, AgentSessionWorkKind, type AgentToolInspection, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentOrientation, AttachmentSize, AttachmentState, AttachmentTitle, AttachmentTrigger, AvatarStack, AvatarStackPerson, AvatarStackSize, AvatarStackVariant, Bubble, BubbleAlign, BubbleContent, BubbleGroup, BubbleReactions, BubbleVariant, Chat, ChatMessage, ChatSession, ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputSource, ChoicesInputState, ChoicesInputStatus, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockLineVariant, CodeBlockSize, CodeBlockTitle, CodeBlockVariant, CodeView, type CodeViewItem, type CodeViewLineSelection, type CodeViewOptions, CommentAttachmentLink, CommentAttachmentUrl, CommentCan, CommentComposer, CommentComposerFrame, CommentComposerSize, CommentComposerSlots, CommentComposerSubmit, CommentComposerVariant, CommentDraft, CommentFilterState, CommentFilters, CommentGroup, CommentGroupSlotScope, CommentLayer, CommentList, CommentMentionEmptyScope, CommentMentionItemScope, CommentPanel, CommentPanelSlots, CommentPanelVariant, CommentPin, CommentPlacement, CommentReply, CommentReplySlotScope, CommentReplySlots, CommentRowSlotScope, CommentRowSlots, CommentScope, CommentSelectionBar, CommentSelectionBarSide, CommentSend, CommentStatusSlotScope, CommentThread, CommentThreadAction, CommentThreadSlotScope, CommentThreadSlots, CommentToolbar, CommentUpload, CommentVisibility, CommentVisibilityModel, CommentVisibilityOptions, CommentsOutboxState, CommentsState, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, ConnectionStatusState, ConnectionStatusValue, CopyButton, CopyButtonSize, CopyButtonVariant, CopyValue, DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, DeviceFrameBreakpoint, DeviceFramePreset, DeviceFrameSize, type DiffLineAnnotation, DropField, type DropFieldSlots, type FileContents, FileDiff, type FileDiffMetadata, type FileDiffOptions, type FileOptions, FileTree, FileTreeModel, FileTreeOptions, FileView, FilterSearch, FilterSearchSize, HoldToDelete, type LineAnnotation, Markdown, MarkdownValue, Marker, MarkerContent, MarkerIcon, MarkerVariant, Message, MessageAlign, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScrollBehavior, MessageScrollPosition, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerContext, MessageScrollerItem, MessageScrollerViewport, MorphText, MotionList, MultiFileDiff, PatchDiff, PendingAttachment, type PlaygroundFiles, Progress, PromptInput, PromptInputSubmit, RelativeTime, RelativeTimeFormat, RelativeTimeValue, ResolvedViteHubUIDefaults, RollNumber, type SelectedLineRange, Status, StatusSize, StatusTone, SwapIcon, SyncStatus, SyncStatusIndicator, SyncStatusLabel, SyncStatusValue, ToolList, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, type TraceEventLogEntry, TraceIcon, TraceLine, TraceLineStatus, TraceRun, type TraceRunView, type TraceStepView, TraceTitle, UnresolvedFile, type UnresolvedFileOptions, UseAgentAttachmentsOptions, UseCommentsOptions, UseCopyOptions, UseCopyReturn, type ViteHubUIComponentName, type ViteHubUIComponents, ViteHubUIDefaults, ViteHubUIIconOptions, ViteHubUIInjectionKey, type ViteHubUIMessage, ViteHubUIOptions, type ViteHubUISession, calculatePrependScrollTop, chatActivity, commentLeaveMs, createCommentVisibility, createViteHubUI, defaultCommentCan, draftPositionKey, fileToDataUrl, fileToUIPart, getSingularPatch, messagesSinceResolved, parseDiffFromFile, parsePatchFiles, provideComments, provideRelativeNow, repliedSinceResolved, resolveViteHubUIDefaults, useAgentAttachments, useComments, useCommentsContext, useCopy, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useViteHubUI, useViteHubUIIcons, vRing };
|
|
59
|
+
export { AgentAttachments, type AgentInspectionValue, AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionItem, AgentSessionSurface, AgentSessionTimeline, AgentSessionWorkDetailScope, AgentSessionWorkEntry, AgentSessionWorkGroup, AgentSessionWorkKind, type AgentToolInspection, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentOrientation, AttachmentSize, AttachmentState, AttachmentTitle, AttachmentTrigger, AvatarStack, AvatarStackPerson, AvatarStackSize, AvatarStackVariant, Bubble, BubbleAlign, BubbleContent, BubbleGroup, BubbleReactions, BubbleVariant, Chat, ChatMessage, ChatSession, ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputSource, ChoicesInputState, ChoicesInputStatus, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockLineVariant, CodeBlockSize, CodeBlockTitle, CodeBlockVariant, CodeView, type CodeViewItem, type CodeViewLineSelection, type CodeViewOptions, CommentAttachmentLink, CommentAttachmentUrl, CommentCan, CommentComposer, CommentComposerFrame, CommentComposerSize, CommentComposerSlots, CommentComposerSubmit, CommentComposerVariant, CommentDraft, CommentFilterState, CommentFilters, CommentGroup, CommentGroupSlotScope, CommentLayer, CommentList, CommentMentionEmptyScope, CommentMentionItemScope, CommentPanel, CommentPanelSlots, CommentPanelVariant, CommentPin, CommentPlacement, CommentReply, CommentReplySlotScope, CommentReplySlots, CommentRowSlotScope, CommentRowSlots, CommentScope, CommentSelectionBar, CommentSelectionBarSide, CommentSend, CommentStatusSlotScope, CommentThread, CommentThreadAction, CommentThreadSlotScope, CommentThreadSlots, CommentToolbar, CommentUpload, CommentVisibility, CommentVisibilityModel, CommentVisibilityOptions, CommentsOutboxState, CommentsState, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, ConnectionStatusState, ConnectionStatusValue, CopyButton, CopyButtonSize, CopyButtonVariant, CopyValue, DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, DeviceFrameBreakpoint, DeviceFramePreset, DeviceFrameSize, type DiffLineAnnotation, DropField, type DropFieldSlots, type FileContents, FileDiff, type FileDiffMetadata, type FileDiffOptions, type FileOptions, FileTree, FileTreeModel, FileTreeOptions, FileView, FilterSearch, FilterSearchSize, HoldToDelete, type LineAnnotation, Markdown, MarkdownValue, Marker, MarkerContent, MarkerIcon, MarkerVariant, Message, MessageAlign, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScrollBehavior, MessageScrollPosition, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerContext, MessageScrollerItem, MessageScrollerViewport, MorphText, MotionList, MultiFileDiff, PatchDiff, PendingAttachment, type PlaygroundFiles, Progress, PromptInput, PromptInputSubmit, RelativeTime, RelativeTimeFormat, RelativeTimeValue, ResolvedViteHubUIDefaults, RollNumber, type SelectedLineRange, Status, StatusSize, StatusTone, SwapIcon, SyncStatus, SyncStatusIndicator, SyncStatusLabel, SyncStatusValue, ToolList, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, type TraceEventLogEntry, TraceIcon, TraceLine, TraceLineStatus, TraceRun, type TraceRunView, type TraceStepView, TraceTitle, UnresolvedFile, type UnresolvedFileOptions, UseAgentAttachmentsOptions, UseCommentsOptions, UseCopyOptions, UseCopyReturn, type ViteHubUIComponentName, type ViteHubUIComponents, ViteHubUIDefaults, ViteHubUIIconOptions, ViteHubUIInjectionKey, type ViteHubUIMessage, ViteHubUIOptions, type ViteHubUISession, calculatePrependScrollTop, chatActivity, commentLeaveMs, createCommentVisibility, createViteHubUI, defaultCommentCan, draftPositionKey, fileToDataUrl, fileToUIPart, getSingularPatch, messagesSinceResolved, parseDiffFromFile, parsePatchFiles, provideComments, provideRelativeNow, repliedSinceResolved, resolveViteHubUIDefaults, useAgentAttachments, useComments, useCommentsContext, useCopy, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useViteHubUI, useViteHubUIIcons, useViteHubUIMotionEnabled, vRing };
|
package/dist/index.js
CHANGED
|
@@ -15,21 +15,22 @@ import { AvatarStack } from "./parts/components/avatar-stack.js";
|
|
|
15
15
|
import { Bubble, BubbleContent, BubbleGroup, BubbleReactions } from "./parts/components/bubble.js";
|
|
16
16
|
import { CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle } from "./parts/components/code-block.js";
|
|
17
17
|
import { ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel } from "./parts/components/connection-status.js";
|
|
18
|
-
import { t as CommentComposer } from "./comment-composer-
|
|
18
|
+
import { t as CommentComposer } from "./comment-composer-X7vJKh5b.js";
|
|
19
19
|
import { CopyButton, useCopy } from "./parts/components/copy-button.js";
|
|
20
20
|
import { DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame } from "./parts/components/device-frame.js";
|
|
21
21
|
import { commentLeaveMs, createCommentVisibility } from "./parts/headless/comment-visibility.js";
|
|
22
|
-
import { a as useCommentsContext,
|
|
22
|
+
import { a as useCommentsContext, i as useComments, n as draftPositionKey, r as provideComments, t as defaultCommentCan } from "./comments-9MDSNm-9.js";
|
|
23
23
|
import { DropField } from "./parts/components/drop-field.js";
|
|
24
|
+
import { i as repliedSinceResolved, r as messagesSinceResolved } from "./comment-status-nsCdrRk_.js";
|
|
24
25
|
import { FilterSearch } from "./parts/components/filter-search.js";
|
|
25
26
|
import { CommentFilters, CommentList, CommentToolbar } from "./parts/components/comment-list.js";
|
|
26
27
|
import { CommentPin } from "./parts/components/comment-pin.js";
|
|
27
|
-
import { n as CommentThread, t as CommentReply } from "./comment-thread-
|
|
28
|
+
import { n as CommentThread, t as CommentReply } from "./comment-thread-jqPx6aJ8.js";
|
|
28
29
|
import { HoldToDelete } from "./parts/components/hold-to-delete.js";
|
|
29
30
|
import { CommentLayer } from "./parts/components/comment-layer.js";
|
|
30
31
|
import { CommentPanel } from "./parts/components/comment-panel.js";
|
|
31
32
|
import { CommentSelectionBar } from "./parts/components/comment-selection-bar.js";
|
|
32
|
-
import { t as CommentSend } from "./comment-send-
|
|
33
|
+
import { t as CommentSend } from "./comment-send-CUkL3TbZ.js";
|
|
33
34
|
import "./parts/components/comments.js";
|
|
34
35
|
import { Marker, MarkerContent, MarkerIcon } from "./parts/components/marker.js";
|
|
35
36
|
import { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader } from "./parts/components/message.js";
|
|
@@ -45,7 +46,7 @@ import { SyncStatus, SyncStatusIndicator, SyncStatusLabel } from "./parts/compon
|
|
|
45
46
|
import { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle } from "./parts/components/trace.js";
|
|
46
47
|
import { n as fileToUIPart, r as useAgentAttachments, t as fileToDataUrl } from "./attachments-DgwoQZKY.js";
|
|
47
48
|
import { useHighlightedCode } from "./parts/composables/highlighted-code.js";
|
|
48
|
-
import { a as useViteHubUIIcons, i as useViteHubUI, n as createViteHubUI, r as resolveViteHubUIDefaults, t as ViteHubUIInjectionKey } from "./config-
|
|
49
|
+
import { a as useViteHubUIIcons, i as useViteHubUI, n as createViteHubUI, o as useViteHubUIMotionEnabled, r as resolveViteHubUIDefaults, t as ViteHubUIInjectionKey } from "./config-LRonN53j.js";
|
|
49
50
|
import { r as useUIComponent } from "./nuxt-ui-7ByUrymx.js";
|
|
50
51
|
import "./headless.js";
|
|
51
52
|
import { Tabs, TabsList, TabsTab } from "@ui-sdk/vue/tabs";
|
|
@@ -667,12 +668,12 @@ const uiSdkComponents = {
|
|
|
667
668
|
};
|
|
668
669
|
}
|
|
669
670
|
}),
|
|
670
|
-
UEditorDragHandle: defineAsyncComponent(() => import("./editor-
|
|
671
|
-
UEditorSuggestionMenu: defineAsyncComponent(() => import("./editor-
|
|
672
|
-
UEditorToolbar: defineAsyncComponent(() => import("./editor-
|
|
671
|
+
UEditorDragHandle: defineAsyncComponent(() => import("./editor-Dmk3k6f6.js").then((parts) => parts.UEditorDragHandle)),
|
|
672
|
+
UEditorSuggestionMenu: defineAsyncComponent(() => import("./editor-Dmk3k6f6.js").then((parts) => parts.UEditorSuggestionMenu)),
|
|
673
|
+
UEditorToolbar: defineAsyncComponent(() => import("./editor-Dmk3k6f6.js").then((parts) => parts.UEditorToolbar)),
|
|
673
674
|
UIcon,
|
|
674
675
|
UInput,
|
|
675
676
|
UModal,
|
|
676
677
|
UTabs
|
|
677
678
|
};
|
|
678
|
-
export { AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionTimeline, AgentSessionWorkGroup, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, AvatarStack, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Chat, ChatMessage, ChatSession, ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputStatus, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, CodeView, CommentComposer, CommentFilters, CommentLayer, CommentList, CommentPanel, CommentPin, CommentReply, CommentSelectionBar, CommentSend, CommentThread, CommentToolbar, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, CopyButton, DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, DropField, FileDiff, FileTree, FileView, FilterSearch, HoldToDelete, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, MorphText, MotionList, MultiFileDiff, PatchDiff, Progress, PromptInput, RelativeTime, RollNumber, Status, SwapIcon, SyncStatus, SyncStatusIndicator, SyncStatusLabel, ToolList, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceRun, TraceTitle, UnresolvedFile, ViteHubUIInjectionKey, calculatePrependScrollTop, chatActivity, commentLeaveMs, createCommentVisibility, createViteHubUI, defaultCommentCan, draftPositionKey, fileToDataUrl, fileToUIPart, getSingularPatch, messagesSinceResolved, parseDiffFromFile, parsePatchFiles, provideComments, provideRelativeNow, repliedSinceResolved, resolveViteHubUIDefaults, uiSdkComponents, useAgentAttachments, useComments, useCommentsContext, useCopy, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useViteHubUI, useViteHubUIIcons, vRing };
|
|
679
|
+
export { AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionTimeline, AgentSessionWorkGroup, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, AvatarStack, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Chat, ChatMessage, ChatSession, ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputStatus, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, CodeView, CommentComposer, CommentFilters, CommentLayer, CommentList, CommentPanel, CommentPin, CommentReply, CommentSelectionBar, CommentSend, CommentThread, CommentToolbar, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, CopyButton, DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, DropField, FileDiff, FileTree, FileView, FilterSearch, HoldToDelete, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, MorphText, MotionList, MultiFileDiff, PatchDiff, Progress, PromptInput, RelativeTime, RollNumber, Status, SwapIcon, SyncStatus, SyncStatusIndicator, SyncStatusLabel, ToolList, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceRun, TraceTitle, UnresolvedFile, ViteHubUIInjectionKey, calculatePrependScrollTop, chatActivity, commentLeaveMs, createCommentVisibility, createViteHubUI, defaultCommentCan, draftPositionKey, fileToDataUrl, fileToUIPart, getSingularPatch, messagesSinceResolved, parseDiffFromFile, parsePatchFiles, provideComments, provideRelativeNow, repliedSinceResolved, resolveViteHubUIDefaults, uiSdkComponents, useAgentAttachments, useComments, useCommentsContext, useCopy, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useViteHubUI, useViteHubUIIcons, useViteHubUIMotionEnabled, vRing };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as installMotion$1, t as motionEffects } from "./effects-
|
|
1
|
+
import { g as installMotion$1, t as motionEffects } from "./effects-C1zYpSpg.js";
|
|
2
2
|
// src/motion/install.ts
|
|
3
3
|
/**
|
|
4
4
|
* Starts the motion layer with every built-in effect: press, toggle, select, drag, and appear motion for every element
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as shikiDark, S as theme, T as isElement$2, c as createProgress, d as src_default, f as src_default$2, g as hash, h as src_default$3, m as src_default$1, o as rowsOf, t as Properties, u as addStyles, v as scalar, w as childrenOf$1, x as typesetCss } from "./vue-d2Td6uu2.js";
|
|
2
2
|
import { t as uiErrorDiagnostics } from "./error-diagnostics-BlgA9rI2.js";
|
|
3
3
|
import { n as editorHandlersKey, t as createEditorHandlers } from "./handlers-CnbkvXjX.js";
|
|
4
4
|
import { r as useUIComponent } from "./nuxt-ui-7ByUrymx.js";
|
|
@@ -227,7 +227,7 @@ function sendWithProgress(url, init, onProgress) {
|
|
|
227
227
|
request.send(init.body);
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
// ../../node_modules/.pnpm/comark-ui@0.
|
|
230
|
+
// ../../node_modules/.pnpm/comark-ui@0.14.3_@comark+html@0.9.2_katex@0.19.1_shiki@4.6.0__@tiptap+core@3.35.0_@tipt_12c0f6863a75018f6c283382c6d06ad0/node_modules/comark-ui/dist/editor-Z2zhidij.mjs
|
|
231
231
|
const typesWithProps = [
|
|
232
232
|
"paragraph",
|
|
233
233
|
"heading",
|
|
@@ -1399,6 +1399,24 @@ async function readPage(markdown, { plugins = [], registerDefaultPlugins }) {
|
|
|
1399
1399
|
registerDefaultPlugins,
|
|
1400
1400
|
plugins: [sourceKey(), ...plugins]
|
|
1401
1401
|
});
|
|
1402
|
+
let tooltip = 0;
|
|
1403
|
+
const normalize = (nodes, properties = false) => {
|
|
1404
|
+
for (const node of nodes) {
|
|
1405
|
+
if (!Array.isArray(node)) continue;
|
|
1406
|
+
const inProperties = properties || node[0] === "properties";
|
|
1407
|
+
if (inProperties && node[0] === "time" && node[1].class === "ctm") {
|
|
1408
|
+
const id = node[1]["aria-describedby"];
|
|
1409
|
+
const tip = node.slice(2).find((child) => Array.isArray(child) && child[0] === "span" && child[1].class === "ctm-tip" && child[1].role === "tooltip" && child[1].id === id);
|
|
1410
|
+
if (typeof id === "string" && id.startsWith("cfm-") && Array.isArray(tip)) {
|
|
1411
|
+
const canonical = `cfm-tooltip-${tooltip++}`;
|
|
1412
|
+
node[1]["aria-describedby"] = canonical;
|
|
1413
|
+
tip[1].id = canonical;
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
normalize(node.slice(2), inProperties);
|
|
1417
|
+
}
|
|
1418
|
+
};
|
|
1419
|
+
normalize(tree.nodes);
|
|
1402
1420
|
const read = JSON.stringify({
|
|
1403
1421
|
nodes: tree.nodes,
|
|
1404
1422
|
frontmatter: tree.frontmatter
|
|
@@ -1418,8 +1436,7 @@ const uploadCss = `@layer comark{${[
|
|
|
1418
1436
|
`.cue-upload>img,.cue-upload>video{grid-area:1/1;width:100%;max-height:10rem;object-fit:cover;opacity:.55}`,
|
|
1419
1437
|
`.cue-upload-label{grid-area:1/1;align-self:end;padding:.375rem .5rem .5rem;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}`,
|
|
1420
1438
|
`.cue-upload>img~.cue-upload-label,.cue-upload>video~.cue-upload-label{background:color-mix(in srgb,var(--_comark-background) 80%,transparent)}`,
|
|
1421
|
-
`.cue-upload
|
|
1422
|
-
`@media (prefers-reduced-motion:reduce){.cue-upload::after{transition:none}}`
|
|
1439
|
+
`.cue-upload-bar{grid-area:2/1;padding:0 .5rem .375rem;color:var(--_comark-primary);--vh-progress-rail:var(--_comark-border)}`
|
|
1423
1440
|
].join("")}}`;
|
|
1424
1441
|
function placeholder(pending) {
|
|
1425
1442
|
addStyles("editor-upload", uploadCss);
|
|
@@ -1441,15 +1458,19 @@ function placeholder(pending) {
|
|
|
1441
1458
|
const label = document.createElement("span");
|
|
1442
1459
|
label.className = "cue-upload-label";
|
|
1443
1460
|
label.setAttribute("role", "status");
|
|
1444
|
-
|
|
1461
|
+
const bar = document.createElement("span");
|
|
1462
|
+
bar.className = "cue-upload-bar";
|
|
1463
|
+
root.append(label, bar);
|
|
1464
|
+
const progress = createProgress(bar, { label: `Upload ${pending.file.name}` });
|
|
1445
1465
|
const show = (fraction) => {
|
|
1446
|
-
|
|
1466
|
+
progress.set(fraction === null || fraction >= 1 ? null : fraction);
|
|
1447
1467
|
label.textContent = fraction === null ? `Uploading ${pending.file.name}` : `Uploading ${pending.file.name}, ${Math.round(fraction * 100)}%`;
|
|
1448
1468
|
};
|
|
1449
1469
|
show(pending.fraction);
|
|
1450
1470
|
return {
|
|
1451
1471
|
root,
|
|
1452
|
-
show
|
|
1472
|
+
show,
|
|
1473
|
+
progress
|
|
1453
1474
|
};
|
|
1454
1475
|
}
|
|
1455
1476
|
/**
|
|
@@ -1531,6 +1552,7 @@ function insertImage(tr, pos, image) {
|
|
|
1531
1552
|
let nextId = 1;
|
|
1532
1553
|
const pendingUploads = /* @__PURE__ */ new Map();
|
|
1533
1554
|
const elements = /* @__PURE__ */ new Map();
|
|
1555
|
+
const bars = /* @__PURE__ */ new WeakMap();
|
|
1534
1556
|
function uploadWidget(pos, id, batch) {
|
|
1535
1557
|
return Decoration.widget(pos, () => {
|
|
1536
1558
|
const element = placeholder(pendingUploads.get(id) ?? {
|
|
@@ -1539,13 +1561,17 @@ function uploadWidget(pos, id, batch) {
|
|
|
1539
1561
|
fraction: null
|
|
1540
1562
|
});
|
|
1541
1563
|
elements.set(id, element);
|
|
1564
|
+
bars.set(element.root, element.progress);
|
|
1542
1565
|
return element.root;
|
|
1543
1566
|
}, {
|
|
1544
1567
|
id,
|
|
1545
1568
|
batch,
|
|
1546
1569
|
key: String(id),
|
|
1547
1570
|
side: -1,
|
|
1548
|
-
destroy: () =>
|
|
1571
|
+
destroy: (node) => {
|
|
1572
|
+
bars.get(node)?.destroy();
|
|
1573
|
+
if (elements.get(id)?.root === node) elements.delete(id);
|
|
1574
|
+
}
|
|
1549
1575
|
});
|
|
1550
1576
|
}
|
|
1551
1577
|
/** The plugin alone, for a ProseMirror editor without Tiptap. */
|
|
@@ -1689,7 +1715,7 @@ Extension.create({
|
|
|
1689
1715
|
})];
|
|
1690
1716
|
}
|
|
1691
1717
|
});
|
|
1692
|
-
// ../../node_modules/.pnpm/comark-ui@0.
|
|
1718
|
+
// ../../node_modules/.pnpm/comark-ui@0.14.3_@comark+html@0.9.2_katex@0.19.1_shiki@4.6.0__@tiptap+core@3.35.0_@tipt_12c0f6863a75018f6c283382c6d06ad0/node_modules/comark-ui/dist/editor-vue.mjs
|
|
1693
1719
|
function readProp(props, name, type) {
|
|
1694
1720
|
if (Object.hasOwn(props, name)) {
|
|
1695
1721
|
const value = props[name];
|
|
@@ -1730,6 +1756,7 @@ const shown = (value) => isString(value) ? value : JSON.stringify(value);
|
|
|
1730
1756
|
const CHROME = "data-cev-chrome";
|
|
1731
1757
|
const stopEvent = ({ event }) => event.target instanceof Element && event.target.closest(`[${CHROME}]`) !== null;
|
|
1732
1758
|
let count = 0;
|
|
1759
|
+
const anchored = () => CSS.supports("(anchor-name: --a) and (position-area: top) and (position-try-fallbacks: flip-block) and (justify-self: anchor-center)");
|
|
1733
1760
|
/** Places an open panel under its button, or above it when there's no room below, inside the viewport. */
|
|
1734
1761
|
function place(panel, anchor) {
|
|
1735
1762
|
const box = anchor.getBoundingClientRect();
|
|
@@ -1767,8 +1794,9 @@ const ComponentView = defineComponent({
|
|
|
1767
1794
|
value: ""
|
|
1768
1795
|
});
|
|
1769
1796
|
const drafts = ref(/* @__PURE__ */ new Map());
|
|
1797
|
+
let follow = false;
|
|
1770
1798
|
const reposition = () => {
|
|
1771
|
-
if (panel.value && button.value && panel.value.matches(":popover-open")) place(panel.value, button.value);
|
|
1799
|
+
if (follow && panel.value && button.value && panel.value.matches(":popover-open")) place(panel.value, button.value);
|
|
1772
1800
|
};
|
|
1773
1801
|
function toggle() {
|
|
1774
1802
|
if (!panel.value?.matches(":popover-open")) return;
|
|
@@ -1778,6 +1806,8 @@ const ComponentView = defineComponent({
|
|
|
1778
1806
|
}
|
|
1779
1807
|
onMounted(() => {
|
|
1780
1808
|
addStyles("editor-component-view", componentViewCss);
|
|
1809
|
+
if (anchored()) return;
|
|
1810
|
+
follow = true;
|
|
1781
1811
|
addEventListener("scroll", reposition, true);
|
|
1782
1812
|
addEventListener("resize", reposition);
|
|
1783
1813
|
});
|
|
@@ -1939,6 +1969,7 @@ const ComponentView = defineComponent({
|
|
|
1939
1969
|
ref: panel,
|
|
1940
1970
|
id,
|
|
1941
1971
|
class: "cev-panel",
|
|
1972
|
+
style: `position-anchor:--${id}`,
|
|
1942
1973
|
popover: "auto",
|
|
1943
1974
|
[CHROME]: "",
|
|
1944
1975
|
contenteditable: "false",
|
|
@@ -1967,6 +1998,7 @@ const ComponentView = defineComponent({
|
|
|
1967
1998
|
ref: button,
|
|
1968
1999
|
type: "button",
|
|
1969
2000
|
class: "cev-tag",
|
|
2001
|
+
style: `anchor-name:--${id}`,
|
|
1970
2002
|
popovertarget: id,
|
|
1971
2003
|
title: summary || void 0,
|
|
1972
2004
|
contenteditable: "false",
|
|
@@ -1994,6 +2026,7 @@ const ComponentView = defineComponent({
|
|
|
1994
2026
|
ref: button,
|
|
1995
2027
|
type: "button",
|
|
1996
2028
|
class: "cev-props",
|
|
2029
|
+
style: `anchor-name:--${id}`,
|
|
1997
2030
|
popovertarget: id
|
|
1998
2031
|
}, [h("span", { class: "cev-visually-hidden" }, `Props of ${title}: `), summary || (can ? "Add props" : "No props")]),
|
|
1999
2032
|
html ? null : content
|
|
@@ -2035,8 +2068,9 @@ const componentViewCss = `@layer comark{${[
|
|
|
2035
2068
|
`.cev-block [data-comark-slot]::before{content:"#" attr(data-comark-slot);display:block;padding-top:.25rem;color:var(--_comark-muted);font:500 .6875rem/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;user-select:none}`,
|
|
2036
2069
|
`.cev-inline{padding:0 .125rem 0 .25rem;border:1px solid var(--_comark-border);border-radius:calc(var(--_comark-radius)*.75);background:var(--_comark-accent)}`,
|
|
2037
2070
|
`.cev-tag{display:inline-flex;align-items:center;gap:.25rem;margin-inline-start:.25rem;padding:0 .25rem;border:0;border-radius:calc(var(--_comark-radius)*.5);background:none;color:var(--_comark-muted);font:500 max(.75em,.6875rem)/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;vertical-align:baseline;cursor:pointer;user-select:none}`,
|
|
2038
|
-
`.cev-panel{position:fixed;inset:auto;margin:0;width:18rem;max-height:min(24rem,
|
|
2071
|
+
`.cev-panel{position:fixed;inset:auto;margin:0;width:18rem;max-height:min(24rem,50vh - 3.5rem);overflow:auto;padding:.75rem;border:1px solid var(--_comark-border);border-radius:var(--_comark-radius);background:var(--_comark-background);color:var(--_comark-foreground);box-shadow:var(--_comark-shadow);font:400 .8125rem/1.4 var(--_comark-font);white-space:normal}`,
|
|
2039
2072
|
`.cev-panel:popover-open{display:grid;gap:.625rem}`,
|
|
2073
|
+
`@supports (anchor-name: --a) and (position-area: top) and (position-try-fallbacks: flip-block) and (justify-self: anchor-center){.cev-panel{position-area:block-end span-inline-end;position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline;margin:4px 8px 8px 0}}`,
|
|
2040
2074
|
`.cev-panel-title{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;margin:0;font-weight:600}`,
|
|
2041
2075
|
`.cev-panel-title .cev-code,.cev-tag-name{color:var(--_comark-muted);font-weight:500}`,
|
|
2042
2076
|
`.cev-field{display:grid;gap:.25rem}`,
|
package/dist/markdown-editor.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as blobUpload, t as MarkdownEditor } from "./markdown-editor-
|
|
1
|
+
import { n as blobUpload, t as MarkdownEditor } from "./markdown-editor-D1irG9Xl.js";
|
|
2
2
|
import { n as editorHandlersKey, r as mapEditorItems, t as createEditorHandlers } from "./handlers-CnbkvXjX.js";
|
|
3
3
|
export { MarkdownEditor, blobUpload, createEditorHandlers, editorHandlersKey, mapEditorItems };
|