@vite-hub/ui 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/{comment-composer-CzU7DdfD.js → comment-composer-BP-CJx7f.js} +2 -2
  2. package/dist/{comment-layer-DyVstrs-.d.ts → comment-layer-Ba2DV4L7.d.ts} +3 -3
  3. package/dist/{comment-list-CSK5o-Ua.d.ts → comment-list-BJdZu0DS.d.ts} +2 -2
  4. package/dist/{comment-panel-CEvOI3gk.d.ts → comment-panel-DISGe7yM.d.ts} +2 -2
  5. package/dist/{comment-send-DPzV9B8S.js → comment-send-CH46zawK.js} +1 -1
  6. package/dist/{comment-thread-CbPtoi8-.js → comment-thread-5h93DXds.js} +3 -3
  7. package/dist/{comment-thread-DGm1cGJt.d.ts → comment-thread-DSkWODKG.d.ts} +1 -1
  8. package/dist/{comments-DrE9DU-E.d.ts → comments-CnG_c-_c.d.ts} +1 -0
  9. package/dist/{comments-C0OdHh_F.js → comments-D9dONfs9.js} +7 -7
  10. package/dist/{config-DztmAYYn.js → config-BDvnaVUn.js} +1 -1
  11. package/dist/{editor-CGiEVOnB.js → editor-BuByBIkJ.js} +1 -1
  12. package/dist/{effects-g4QucvgO.js → effects-DEoFFycD.js} +7 -0
  13. package/dist/headless.d.ts +1 -1
  14. package/dist/headless.js +1 -1
  15. package/dist/{image-preview-DrLXrHpp.js → image-preview-EqfPcFZ9.js} +1 -1
  16. package/dist/index.d.ts +5 -5
  17. package/dist/index.js +8 -8
  18. package/dist/{install-Ba9mkkqI.js → install-qNaj4OY4.js} +1 -1
  19. package/dist/{markdown-renderer-DFS1vf1h.js → markdown-renderer-BgsmNqv7.js} +2 -2
  20. package/dist/motion/core.js +1 -1
  21. package/dist/motion.js +2 -2
  22. package/dist/parts/components/chat.js +1 -1
  23. package/dist/parts/components/comment-composer.js +1 -1
  24. package/dist/parts/components/comment-layer.d.ts +1 -1
  25. package/dist/parts/components/comment-layer.js +4 -7
  26. package/dist/parts/components/comment-list.d.ts +1 -1
  27. package/dist/parts/components/comment-list.js +2 -2
  28. package/dist/parts/components/comment-panel.d.ts +1 -1
  29. package/dist/parts/components/comment-panel.js +3 -3
  30. package/dist/parts/components/comment-selection-bar.js +1 -1
  31. package/dist/parts/components/comment-send.js +1 -1
  32. package/dist/parts/components/comment-thread.d.ts +1 -1
  33. package/dist/parts/components/comment-thread.js +2 -2
  34. package/dist/parts/components/comments.d.ts +4 -4
  35. package/dist/parts/components/comments.js +4 -4
  36. package/dist/parts/components/copy-button.js +1 -1
  37. package/dist/parts/components/markdown-renderer.js +1 -1
  38. package/dist/parts/components/markdown.js +1 -1
  39. package/dist/parts/components/message-parts.js +1 -1
  40. package/dist/parts/components/prompt-input.d.ts +3 -3
  41. package/dist/parts/components/prompt-input.js +2 -2
  42. package/dist/parts/headless/comments.d.ts +1 -1
  43. package/dist/parts/headless/comments.js +1 -1
  44. package/dist/parts/workspace/workspace.d.ts +1 -1
  45. package/dist/runtime/nuxt-plugin.js +1 -1
  46. package/dist/styles.css +7 -2
  47. package/dist/{vue-kCdzBu0N.js → vue-Cs_HmYsp.js} +1 -1
  48. package/package.json +6 -6
@@ -3,9 +3,9 @@ import { i as toPerson, t as displayName } from "./comment-person-D_IyIjXo.js";
3
3
  import { n as shake, t as travel } from "./travel-CwVhU_GS.js";
4
4
  import { i as matchesAccept } from "./attachments-DgwoQZKY.js";
5
5
  import { RollNumber } from "./parts/components/motion.js";
6
- import { a as useViteHubUIIcons } from "./config-DztmAYYn.js";
6
+ import { a as useViteHubUIIcons } from "./config-BDvnaVUn.js";
7
7
  import { t as createMotionList } from "./list-DUTAo0uC.js";
8
- import { t as ImagePreview } from "./image-preview-DrLXrHpp.js";
8
+ import { t as ImagePreview } from "./image-preview-EqfPcFZ9.js";
9
9
  import { r as useUIComponent } from "./nuxt-ui-7ByUrymx.js";
10
10
  import { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentGroup, AttachmentMedia, AttachmentTitle } from "./parts/components/attachment.js";
11
11
  import { AvatarStack } from "./parts/components/avatar-stack.js";
@@ -1,8 +1,8 @@
1
- import { s as CommentsState, t as CommentCan } from "./comments-DrE9DU-E.js";
1
+ import { s as CommentsState, t as CommentCan } from "./comments-CnG_c-_c.js";
2
2
  import { n as AvatarStackPerson } from "./avatar-stack-C0IKwj6g.js";
3
3
  import { r as CommentComposerSize } from "./comment-composer-BI6CNJyO.js";
4
- import { c as CommentUpload } from "./comment-panel-CEvOI3gk.js";
5
- import { n as CommentAttachmentUrl } from "./comment-thread-DGm1cGJt.js";
4
+ import { c as CommentUpload } from "./comment-panel-DISGe7yM.js";
5
+ import { n as CommentAttachmentUrl } from "./comment-thread-DSkWODKG.js";
6
6
  import { PropType } from "vue";
7
7
  import { CommentSubject, CommentUser, CommentsClient } from "@vite-hub/comments/client";
8
8
  /** Where a thread opens: in a card beside its pin, or in a column of cards on the right edge of the screen. */
@@ -1,6 +1,6 @@
1
- import { s as CommentsState } from "./comments-DrE9DU-E.js";
1
+ import { s as CommentsState } from "./comments-CnG_c-_c.js";
2
2
  import { n as AvatarStackPerson } from "./avatar-stack-C0IKwj6g.js";
3
- import { s as CommentRowSlots } from "./comment-panel-CEvOI3gk.js";
3
+ import { s as CommentRowSlots } from "./comment-panel-DISGe7yM.js";
4
4
  import { PropType, SlotsType } from "vue";
5
5
  declare const CommentFilters: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
6
  comments: {
@@ -1,5 +1,5 @@
1
- import { s as CommentsState, t as CommentCan } from "./comments-DrE9DU-E.js";
2
- import { l as CommentThreadSlots, n as CommentAttachmentUrl } from "./comment-thread-DGm1cGJt.js";
1
+ import { s as CommentsState, t as CommentCan } from "./comments-CnG_c-_c.js";
2
+ import { l as CommentThreadSlots, n as CommentAttachmentUrl } from "./comment-thread-DSkWODKG.js";
3
3
  import { PropType, SlotsType, VNode } from "vue";
4
4
  import { CommentStatus, CommentSubject, CommentThread, CommentUser, CommentsClient } from "@vite-hub/comments/client";
5
5
  type CommentPanelVariant = "docked" | "floating";
@@ -231,7 +231,7 @@ const CommentSend = defineComponent({
231
231
  "aria-hidden": "true",
232
232
  "data-slot": "comment-send-hold-copy"
233
233
  }, sendContent(current.count, lastInbox))])];
234
- case "sent": return [status(void 0, [icon("i-lucide-check"), current.inbox ? "In inbox" : "Sent"])];
234
+ case "sent": return [status(void 0, [icon("i-lucide-check"), current.inbox ? "In inbox" : "Sent"]), current.count > 0 ? sendButton(current.count, Boolean(current.agent && !current.agent.host)) : null].filter((part) => part !== null);
235
235
  case "working": return [
236
236
  status(void 0, [h("span", {
237
237
  "aria-hidden": "true",
@@ -1,9 +1,9 @@
1
1
  import { RollNumber } from "./parts/components/motion.js";
2
2
  import { i as consumedPointerEvents, l as swallowNextClick, n as injectComments, o as pathOf, r as commentThreadPortals, s as shakeDirtyComposers, u as useDocumentPointerDown } from "./comments-context-CrjhleVA.js";
3
- import { n as mentionPlugin, r as mentionTag, t as CommentComposer } from "./comment-composer-CzU7DdfD.js";
3
+ import { n as mentionPlugin, r as mentionTag, t as CommentComposer } from "./comment-composer-BP-CJx7f.js";
4
4
  import { a as writerName, o as writerPerson, t as displayName } from "./comment-person-D_IyIjXo.js";
5
- import { c as messagesSinceResolved, o as commentTitle, s as deliveryAttributes, t as defaultCommentCan } from "./comments-C0OdHh_F.js";
6
- import { a as useViteHubUIIcons } from "./config-DztmAYYn.js";
5
+ import { c as messagesSinceResolved, o as commentTitle, s as deliveryAttributes, t as defaultCommentCan } from "./comments-D9dONfs9.js";
6
+ import { a as useViteHubUIIcons } from "./config-BDvnaVUn.js";
7
7
  import { t as travel } from "./travel-CwVhU_GS.js";
8
8
  import { r as useUIComponent } from "./nuxt-ui-7ByUrymx.js";
9
9
  import { Attachment, AttachmentContent, AttachmentGroup, AttachmentMedia, AttachmentTitle } from "./parts/components/attachment.js";
@@ -1,4 +1,4 @@
1
- import { t as CommentCan } from "./comments-DrE9DU-E.js";
1
+ import { t as CommentCan } from "./comments-CnG_c-_c.js";
2
2
  import { i as CommentComposerSlots, r as CommentComposerSize } from "./comment-composer-BI6CNJyO.js";
3
3
  import { PropType, SlotsType, VNode } from "vue";
4
4
  import { CommentDelivery, CommentMessage, CommentThread, CommentUser } from "@vite-hub/comments/client";
@@ -113,6 +113,7 @@ interface CommentsState {
113
113
  readonly pageThreads: ComputedRef<CommentThread[]>;
114
114
  /** The threads that pass the filters, for the page or the whole site as `scope` says. The list shows them. */
115
115
  readonly listed: ComputedRef<CommentThread[]>;
116
+ readonly openThreads: ComputedRef<CommentThread[]>;
116
117
  readonly counts: ComputedRef<{
117
118
  open: number;
118
119
  resolved: number;
@@ -136,13 +136,12 @@ function useComments(options) {
136
136
  const onPage = (thread) => sameSubject(thread.subject, subject.value);
137
137
  const pageThreads = computed(() => threads.value.filter((thread) => onPage(thread) && passes(thread)));
138
138
  const listed = computed(() => threads.value.filter((thread) => (scope.value === "site" || onPage(thread)) && passes(thread)));
139
- const counts = computed(() => {
140
- const scoped = threads.value.filter((thread) => scope.value === "site" || onPage(thread));
141
- return {
142
- open: scoped.filter(isOpen).length,
143
- resolved: scoped.filter((thread) => thread.status === "resolved").length
144
- };
145
- });
139
+ const scoped = computed(() => threads.value.filter((thread) => scope.value === "site" || onPage(thread)));
140
+ const openThreads = computed(() => scoped.value.filter(isOpen));
141
+ const counts = computed(() => ({
142
+ open: openThreads.value.length,
143
+ resolved: scoped.value.filter((thread) => thread.status === "resolved").length
144
+ }));
146
145
  const opened = useSelectedComment(threads, openId);
147
146
  watch(opened, (thread) => {
148
147
  if (thread && thread.id !== openId.value) openId.value = thread.id;
@@ -513,6 +512,7 @@ function useComments(options) {
513
512
  },
514
513
  pageThreads,
515
514
  listed,
515
+ openThreads,
516
516
  counts,
517
517
  positions,
518
518
  draft,
@@ -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-Ba9mkkqI.js";
3
+ import { t as installMotion } from "./install-qNaj4OY4.js";
4
4
  import { computed, inject, toValue } from "vue";
5
5
  // src/config.ts
6
6
  const defaultOptions = {
@@ -1,4 +1,4 @@
1
- import { a as useViteHubUIIcons } from "./config-DztmAYYn.js";
1
+ import { a as useViteHubUIIcons } from "./config-BDvnaVUn.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";
@@ -2402,6 +2402,13 @@ function sideOf(box, rest, trigger) {
2402
2402
  const side = box.getAttribute("data-side");
2403
2403
  if (side === "top" || side === "bottom" || side === "left" || side === "right") return side;
2404
2404
  if (!trigger) return "top";
2405
+ const [clear, gap] = [
2406
+ ["top", trigger.top - rest.bottom],
2407
+ ["bottom", rest.top - trigger.bottom],
2408
+ ["left", trigger.left - rest.right],
2409
+ ["right", rest.left - trigger.right]
2410
+ ].reduce((best, next) => next[1] > best[1] ? next : best);
2411
+ if (gap >= 0) return clear;
2405
2412
  const dx = trigger.left + trigger.width / 2 - (rest.left + rest.width / 2);
2406
2413
  const dy = trigger.top + trigger.height / 2 - (rest.top + rest.height / 2);
2407
2414
  if (Math.abs(dy) >= Math.abs(dx)) return dy > 0 ? "top" : "bottom";
@@ -1,5 +1,5 @@
1
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-a6qaYHno.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-DrE9DU-E.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-CnG_c-_c.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-C0OdHh_F.js";
2
+ import { a as useCommentsContext, i as useComments, n as draftPositionKey, r as provideComments, t as defaultCommentCan } from "./comments-D9dONfs9.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-DztmAYYn.js";
1
+ import { a as useViteHubUIIcons } from "./config-BDvnaVUn.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
@@ -12,11 +12,11 @@ import { a as CodeViewLineSelection, c as DiffLineAnnotation, d as LineAnnotatio
12
12
  import { ChatSession } from "./parts/components/chat-session.js";
13
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-BI6CNJyO.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-DrE9DU-E.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-DGm1cGJt.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-CEvOI3gk.js";
18
- import { n as CommentPlacement, t as CommentLayer } from "./comment-layer-DyVstrs-.js";
19
- import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "./comment-list-CSK5o-Ua.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-CnG_c-_c.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-DSkWODKG.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-DISGe7yM.js";
18
+ import { n as CommentPlacement, t as CommentLayer } from "./comment-layer-Ba2DV4L7.js";
19
+ import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "./comment-list-BJdZu0DS.js";
20
20
  import { t as CommentPin } from "./comment-pin-C5UeLPTa.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";
package/dist/index.js CHANGED
@@ -15,21 +15,21 @@ 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-CzU7DdfD.js";
18
+ import { t as CommentComposer } from "./comment-composer-BP-CJx7f.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, c as messagesSinceResolved, i as useComments, l as repliedSinceResolved, n as draftPositionKey, r as provideComments, t as defaultCommentCan } from "./comments-C0OdHh_F.js";
22
+ import { a as useCommentsContext, c as messagesSinceResolved, i as useComments, l as repliedSinceResolved, n as draftPositionKey, r as provideComments, t as defaultCommentCan } from "./comments-D9dONfs9.js";
23
23
  import { DropField } from "./parts/components/drop-field.js";
24
24
  import { FilterSearch } from "./parts/components/filter-search.js";
25
25
  import { CommentFilters, CommentList, CommentToolbar } from "./parts/components/comment-list.js";
26
26
  import { CommentPin } from "./parts/components/comment-pin.js";
27
- import { n as CommentThread, t as CommentReply } from "./comment-thread-CbPtoi8-.js";
27
+ import { n as CommentThread, t as CommentReply } from "./comment-thread-5h93DXds.js";
28
28
  import { HoldToDelete } from "./parts/components/hold-to-delete.js";
29
29
  import { CommentLayer } from "./parts/components/comment-layer.js";
30
30
  import { CommentPanel } from "./parts/components/comment-panel.js";
31
31
  import { CommentSelectionBar } from "./parts/components/comment-selection-bar.js";
32
- import { t as CommentSend } from "./comment-send-DPzV9B8S.js";
32
+ import { t as CommentSend } from "./comment-send-CH46zawK.js";
33
33
  import "./parts/components/comments.js";
34
34
  import { Marker, MarkerContent, MarkerIcon } from "./parts/components/marker.js";
35
35
  import { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader } from "./parts/components/message.js";
@@ -45,7 +45,7 @@ import { SyncStatus, SyncStatusIndicator, SyncStatusLabel } from "./parts/compon
45
45
  import { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle } from "./parts/components/trace.js";
46
46
  import { n as fileToUIPart, r as useAgentAttachments, t as fileToDataUrl } from "./attachments-DgwoQZKY.js";
47
47
  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-DztmAYYn.js";
48
+ import { a as useViteHubUIIcons, i as useViteHubUI, n as createViteHubUI, r as resolveViteHubUIDefaults, t as ViteHubUIInjectionKey } from "./config-BDvnaVUn.js";
49
49
  import { r as useUIComponent } from "./nuxt-ui-7ByUrymx.js";
50
50
  import "./headless.js";
51
51
  import { Tabs, TabsList, TabsTab } from "@ui-sdk/vue/tabs";
@@ -667,9 +667,9 @@ const uiSdkComponents = {
667
667
  };
668
668
  }
669
669
  }),
670
- UEditorDragHandle: defineAsyncComponent(() => import("./editor-CGiEVOnB.js").then((parts) => parts.UEditorDragHandle)),
671
- UEditorSuggestionMenu: defineAsyncComponent(() => import("./editor-CGiEVOnB.js").then((parts) => parts.UEditorSuggestionMenu)),
672
- UEditorToolbar: defineAsyncComponent(() => import("./editor-CGiEVOnB.js").then((parts) => parts.UEditorToolbar)),
670
+ UEditorDragHandle: defineAsyncComponent(() => import("./editor-BuByBIkJ.js").then((parts) => parts.UEditorDragHandle)),
671
+ UEditorSuggestionMenu: defineAsyncComponent(() => import("./editor-BuByBIkJ.js").then((parts) => parts.UEditorSuggestionMenu)),
672
+ UEditorToolbar: defineAsyncComponent(() => import("./editor-BuByBIkJ.js").then((parts) => parts.UEditorToolbar)),
673
673
  UIcon,
674
674
  UInput,
675
675
  UModal,
@@ -1,4 +1,4 @@
1
- import { g as installMotion$1, t as motionEffects } from "./effects-g4QucvgO.js";
1
+ import { g as installMotion$1, t as motionEffects } from "./effects-DEoFFycD.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,7 +1,7 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-CahUhzF3.js";
2
2
  import { _ as childrenOf$31, c as addStyles$24, f as src_default$40, g as src_default$37, h as src_default$39, l as typesetCss, m as css$32, n as components$35, o as rawText$2, p as src_default$38, r as vue_exports$33, u as theme$30, v as isElement$35 } from "./vue-BlknIGIm.js";
3
3
  import { n as SERIES, t as INK } from "./colors-BghReA9C-DEq4bhEP.js";
4
- import { t as ImagePreview } from "./image-preview-DrLXrHpp.js";
4
+ import { t as ImagePreview } from "./image-preview-EqfPcFZ9.js";
5
5
  import { t as uiErrorDiagnostics } from "./error-diagnostics-BlgA9rI2.js";
6
6
  import { defineAsyncComponent, defineComponent, h, inject, onBeforeUnmount, onMounted, provide, shallowRef, useId, watch, watchEffect } from "vue";
7
7
  import { defineComarkPlugin } from "comark";
@@ -3573,7 +3573,7 @@ function startMermaid() {
3573
3573
  return start$11();
3574
3574
  }
3575
3575
  // ../../node_modules/.pnpm/comark-ui@0.12.2_@comark+html@0.9.2_katex@0.19.1_shiki@4.6.0__@tiptap+core@3.35.0_@tipt_cf2f734d482ac6e082eda4effd9c073f/node_modules/comark-ui/dist/vue-blocks-Cz7T78y2.mjs
3576
- const Pele = defineAsyncComponent(() => import("./vue-kCdzBu0N.js").then(({ createPeleComponent }) => createPeleComponent({
3576
+ const Pele = defineAsyncComponent(() => import("./vue-Cs_HmYsp.js").then(({ createPeleComponent }) => createPeleComponent({
3577
3577
  onRender: addMermaidStyles,
3578
3578
  onError: addMermaidStyles
3579
3579
  })));
@@ -1,4 +1,4 @@
1
- import { _ as divider, a as switchKnob, c as press, d as buttonIcon, f as label, g as installMotion, h as check, i as toast, l as panel, m as disclosure, n as appear, o as slider, p as jelly, r as tooltip, s as select, t as motionEffects, u as leave } from "../effects-g4QucvgO.js";
1
+ import { _ as divider, a as switchKnob, c as press, d as buttonIcon, f as label, g as installMotion, h as check, i as toast, l as panel, m as disclosure, n as appear, o as slider, p as jelly, r as tooltip, s as select, t as motionEffects, u as leave } from "../effects-DEoFFycD.js";
2
2
  import { a as listMotionEffects, n as defineMotionEffect, s as motionStateAttributes, u as writeMotionStyle } from "../registry-DAIjCjWd.js";
3
3
  import { c as forceReducedMotion, i as getMotionSlowFactor, l as onReducedMotionChange, o as setMotionSlowFactor, r as createSpring, s as springs, t as isMotionOff, u as prefersReducedMotion } from "../opt-out-D66l60sg.js";
4
4
  import { a as rollNumber, i as morphText, l as swapIcon } from "../text-BWzZFnGY.js";
package/dist/motion.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as divider, a as switchKnob, c as press, d as buttonIcon, f as label, h as check, i as toast, l as panel, m as disclosure, n as appear, o as slider, p as jelly, r as tooltip, s as select, t as motionEffects, u as leave } from "./effects-g4QucvgO.js";
1
+ import { _ as divider, a as switchKnob, c as press, d as buttonIcon, f as label, h as check, i as toast, l as panel, m as disclosure, n as appear, o as slider, p as jelly, r as tooltip, s as select, t as motionEffects, u as leave } from "./effects-DEoFFycD.js";
2
2
  import { t as createDropField } from "./drop-field-CNZgwFVO.js";
3
3
  import { t as createHoldToDelete } from "./hold-to-delete-Cludb56v.js";
4
4
  import { t as createMotionList } from "./list-DUTAo0uC.js";
@@ -8,6 +8,6 @@ import { a as listMotionEffects, n as defineMotionEffect, s as motionStateAttrib
8
8
  import { a as rollNumber, i as morphText, l as swapIcon } from "./text-BWzZFnGY.js";
9
9
  import { t as ring } from "./ring-BN4d8vtw.js";
10
10
  import { n as shake, t as travel } from "./travel-CwVhU_GS.js";
11
- import { t as installMotion } from "./install-Ba9mkkqI.js";
11
+ import { t as installMotion } from "./install-qNaj4OY4.js";
12
12
  import "./motion/core.js";
13
13
  export { appear as appearEffect, buttonIcon as buttonIconEffect, check as checkEffect, createDropField, createHoldToDelete, createMotionList, createProgress, createSpring, defineMotionEffect, disclosure as disclosureEffect, divider as dividerEffect, forceReducedMotion, getMotionSlowFactor, installMotion, isMotionOff, jelly as jellyEffect, label as labelEffect, leave as leaveEffect, listMotionEffects, morphText, motionEffects, motionStateAttributes, onReducedMotionChange, panel as panelEffect, prefersReducedMotion, press as pressEffect, ring, rollNumber, select as selectEffect, setMotionSlowFactor, shake, slider as sliderEffect, springs, swapIcon, switchKnob as switchEffect, toast as toastEffect, tooltip as tooltipEffect, travel, writeMotionStyle };
@@ -1,5 +1,5 @@
1
1
  import { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport } from "../headless/message-scroller.js";
2
- import { i as useViteHubUI } from "../../config-DztmAYYn.js";
2
+ import { i as useViteHubUI } from "../../config-BDvnaVUn.js";
3
3
  import { ChatMessage } from "./chat-message.js";
4
4
  import { r as useUIComponent } from "../../nuxt-ui-7ByUrymx.js";
5
5
  import { defineComponent, h } from "vue";
@@ -1 +1 @@
1
- export { t as CommentComposer } from "../../comment-composer-CzU7DdfD.js";
1
+ export { t as CommentComposer } from "../../comment-composer-BP-CJx7f.js";
@@ -1,2 +1,2 @@
1
- import { n as CommentPlacement, t as CommentLayer } from "../../comment-layer-DyVstrs-.js";
1
+ import { n as CommentPlacement, t as CommentLayer } from "../../comment-layer-Ba2DV4L7.js";
2
2
  export { CommentLayer, CommentPlacement };
@@ -1,14 +1,14 @@
1
- import { i as useComments, n as draftPositionKey, o as commentTitle, r as provideComments, s as deliveryAttributes, u as commentThreadKey } from "../../comments-C0OdHh_F.js";
1
+ import { i as useComments, n as draftPositionKey, o as commentTitle, r as provideComments, s as deliveryAttributes, u as commentThreadKey } from "../../comments-D9dONfs9.js";
2
2
  import { t as uiErrorDiagnostics } from "../../error-diagnostics-BlgA9rI2.js";
3
3
  import { t as useCommentAttachments } from "../../comment-attachments-CMpYOJod.js";
4
4
  import { i as consumedPointerEvents } from "../../comments-context-CrjhleVA.js";
5
5
  import { n as excerpt } from "../../comment-person-D_IyIjXo.js";
6
6
  import { n as threadRow } from "../../comment-row-DPMWI5Z0.js";
7
7
  import { t as createMotionList } from "../../list-DUTAo0uC.js";
8
- import { t as CommentComposer } from "../../comment-composer-CzU7DdfD.js";
8
+ import { t as CommentComposer } from "../../comment-composer-BP-CJx7f.js";
9
9
  import { CommentList, CommentToolbar } from "./comment-list.js";
10
10
  import { CommentPin } from "./comment-pin.js";
11
- import { n as CommentThread } from "../../comment-thread-CbPtoi8-.js";
11
+ import { n as CommentThread } from "../../comment-thread-5h93DXds.js";
12
12
  import { computed, defineComponent, h, nextTick, onBeforeUnmount, onMounted, onUpdated, reactive, ref, shallowRef, watch } from "vue";
13
13
  // src/components/comment-layer.ts
14
14
  const popoverWidth = 360;
@@ -588,10 +588,7 @@ const CommentLayer = defineComponent({
588
588
  ...draftColumn,
589
589
  "data-motion-appear": draftColumn ? void 0 : "[data-slot=comment-pin]",
590
590
  "data-slot": "comment-layer-popover",
591
- style: draftColumn?.style ?? {
592
- left: `${placement.left}px`,
593
- right: "auto"
594
- },
591
+ style: draftColumn?.style ?? { "--vh-comment-draft-left": `${placement.left}px` },
595
592
  ref: (element) => {
596
593
  draftCard.value = element instanceof HTMLElement ? element : null;
597
594
  if (draftColumn) measured(draftPositionKey)(element);
@@ -1,2 +1,2 @@
1
- import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "../../comment-list-CSK5o-Ua.js";
1
+ import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "../../comment-list-BJdZu0DS.js";
2
2
  export { CommentFilters, CommentList, CommentToolbar };
@@ -1,10 +1,10 @@
1
1
  import { RollNumber } from "./motion.js";
2
- import { a as useCommentsContext, s as deliveryAttributes } from "../../comments-C0OdHh_F.js";
2
+ import { a as useCommentsContext, s as deliveryAttributes } from "../../comments-D9dONfs9.js";
3
3
  import { n as threadRow, t as rowSlotScope } from "../../comment-row-DPMWI5Z0.js";
4
4
  import { AvatarStack } from "./avatar-stack.js";
5
5
  import { MotionList } from "./motion-list.js";
6
6
  import { r as useUIComponent } from "../../nuxt-ui-7ByUrymx.js";
7
- import { a as useViteHubUIIcons } from "../../config-DztmAYYn.js";
7
+ import { a as useViteHubUIIcons } from "../../config-BDvnaVUn.js";
8
8
  import { defineComponent, h } from "vue";
9
9
  // src/components/comment-list.ts
10
10
  const commentsProp = { type: Object };
@@ -1,2 +1,2 @@
1
- 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-CEvOI3gk.js";
1
+ 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-DISGe7yM.js";
2
2
  export { CommentGroup, CommentGroupSlotScope, CommentPanel, CommentPanelSlots, CommentPanelVariant, CommentRowSlotScope, CommentRowSlots, CommentUpload };
@@ -1,11 +1,11 @@
1
1
  import { RollNumber } from "./motion.js";
2
- import { a as useCommentsContext, d as useSelectedComment, i as useComments, l as repliedSinceResolved, o as commentTitle, r as provideComments, s as deliveryAttributes, u as commentThreadKey } from "../../comments-C0OdHh_F.js";
2
+ import { a as useCommentsContext, d as useSelectedComment, i as useComments, l as repliedSinceResolved, o as commentTitle, r as provideComments, s as deliveryAttributes, u as commentThreadKey } from "../../comments-D9dONfs9.js";
3
3
  import { t as uiErrorDiagnostics } from "../../error-diagnostics-BlgA9rI2.js";
4
4
  import { t as useCommentAttachments } from "../../comment-attachments-CMpYOJod.js";
5
5
  import { n as threadRow, t as rowSlotScope } from "../../comment-row-DPMWI5Z0.js";
6
6
  import { n as injectComments } from "../../comments-context-CrjhleVA.js";
7
- import { t as CommentComposer } from "../../comment-composer-CzU7DdfD.js";
8
- import { n as CommentThread } from "../../comment-thread-CbPtoi8-.js";
7
+ import { t as CommentComposer } from "../../comment-composer-BP-CJx7f.js";
8
+ import { n as CommentThread } from "../../comment-thread-5h93DXds.js";
9
9
  import { r as useUIComponent } from "../../nuxt-ui-7ByUrymx.js";
10
10
  import { computed, defineComponent, h, nextTick, ref, watch } from "vue";
11
11
  // src/components/comment-panel.ts
@@ -1,4 +1,4 @@
1
- import { a as useViteHubUIIcons } from "../../config-DztmAYYn.js";
1
+ import { a as useViteHubUIIcons } from "../../config-BDvnaVUn.js";
2
2
  import { n as useTooltipComponent, r as useUIComponent } from "../../nuxt-ui-7ByUrymx.js";
3
3
  import { defineComponent, h, onErrorCaptured, onMounted, ref } from "vue";
4
4
  // src/components/comment-selection-bar.ts
@@ -1 +1 @@
1
- export { t as CommentSend } from "../../comment-send-DPzV9B8S.js";
1
+ export { t as CommentSend } from "../../comment-send-CH46zawK.js";
@@ -1,2 +1,2 @@
1
- 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-DGm1cGJt.js";
1
+ 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-DSkWODKG.js";
2
2
  export { CommentAttachmentLink, CommentAttachmentUrl, CommentReply, CommentReplySlotScope, CommentReplySlots, CommentStatusSlotScope, CommentThread, CommentThreadSlotScope, CommentThreadSlots, messagesSinceResolved, repliedSinceResolved };
@@ -1,3 +1,3 @@
1
- import { c as messagesSinceResolved, l as repliedSinceResolved } from "../../comments-C0OdHh_F.js";
2
- import { n as CommentThread, t as CommentReply } from "../../comment-thread-CbPtoi8-.js";
1
+ import { c as messagesSinceResolved, l as repliedSinceResolved } from "../../comments-D9dONfs9.js";
2
+ import { n as CommentThread, t as CommentReply } from "../../comment-thread-5h93DXds.js";
3
3
  export { CommentReply, CommentThread, messagesSinceResolved, repliedSinceResolved };
@@ -1,9 +1,9 @@
1
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-BI6CNJyO.js";
2
- import { n as CommentPlacement, t as CommentLayer } from "../../comment-layer-DyVstrs-.js";
3
- import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "../../comment-list-CSK5o-Ua.js";
4
- 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-CEvOI3gk.js";
2
+ import { n as CommentPlacement, t as CommentLayer } from "../../comment-layer-Ba2DV4L7.js";
3
+ import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "../../comment-list-BJdZu0DS.js";
4
+ 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-DISGe7yM.js";
5
5
  import { t as CommentPin } from "../../comment-pin-C5UeLPTa.js";
6
- 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-DGm1cGJt.js";
6
+ 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-DSkWODKG.js";
7
7
  import { n as CommentSelectionBarSide, t as CommentSelectionBar } from "../../comment-selection-bar-CVuS-FNL.js";
8
8
  import { t as CommentSend } from "../../comment-send-MmxFsOQf.js";
9
9
  export { CommentAttachmentLink, CommentAttachmentUrl, CommentComposer, CommentComposerFrame, CommentComposerSize, CommentComposerSlots, CommentComposerSubmit, CommentComposerVariant, CommentFilters, CommentGroup, CommentGroupSlotScope, CommentLayer, CommentList, CommentMentionEmptyScope, CommentMentionItemScope, CommentPanel, CommentPanelSlots, CommentPanelVariant, CommentPin, CommentPlacement, CommentReply, CommentReplySlotScope, CommentReplySlots, CommentRowSlotScope, CommentRowSlots, CommentSelectionBar, CommentSelectionBarSide, CommentSend, CommentStatusSlotScope, CommentThread, CommentThreadSlotScope, CommentThreadSlots, CommentToolbar, CommentUpload, messagesSinceResolved, repliedSinceResolved };
@@ -1,10 +1,10 @@
1
- import { t as CommentComposer } from "../../comment-composer-CzU7DdfD.js";
2
- import { c as messagesSinceResolved, l as repliedSinceResolved } from "../../comments-C0OdHh_F.js";
1
+ import { t as CommentComposer } from "../../comment-composer-BP-CJx7f.js";
2
+ import { c as messagesSinceResolved, l as repliedSinceResolved } from "../../comments-D9dONfs9.js";
3
3
  import { CommentLayer } from "./comment-layer.js";
4
4
  import { CommentFilters, CommentList, CommentToolbar } from "./comment-list.js";
5
5
  import { CommentPanel } from "./comment-panel.js";
6
6
  import { CommentPin } from "./comment-pin.js";
7
- import { n as CommentThread, t as CommentReply } from "../../comment-thread-CbPtoi8-.js";
7
+ import { n as CommentThread, t as CommentReply } from "../../comment-thread-5h93DXds.js";
8
8
  import { CommentSelectionBar } from "./comment-selection-bar.js";
9
- import { t as CommentSend } from "../../comment-send-DPzV9B8S.js";
9
+ import { t as CommentSend } from "../../comment-send-CH46zawK.js";
10
10
  export { CommentComposer, CommentFilters, CommentLayer, CommentList, CommentPanel, CommentPin, CommentReply, CommentSelectionBar, CommentSend, CommentThread, CommentToolbar, messagesSinceResolved, repliedSinceResolved };
@@ -1,4 +1,4 @@
1
- import { a as useViteHubUIIcons } from "../../config-DztmAYYn.js";
1
+ import { a as useViteHubUIIcons } from "../../config-BDvnaVUn.js";
2
2
  import { t as uiErrorDiagnostics } from "../../error-diagnostics-BlgA9rI2.js";
3
3
  import { r as useUIComponent } from "../../nuxt-ui-7ByUrymx.js";
4
4
  import { n as prepareAnnouncer, t as announce } from "../../announce-B0DLwflT.js";
@@ -1 +1 @@
1
- export { t as MarkdownRenderer } from "../../markdown-renderer-DFS1vf1h.js";
1
+ export { t as MarkdownRenderer } from "../../markdown-renderer-BgsmNqv7.js";
@@ -1,4 +1,4 @@
1
- import { i as useViteHubUI } from "../../config-DztmAYYn.js";
1
+ import { i as useViteHubUI } from "../../config-BDvnaVUn.js";
2
2
  import { Suspense, defineAsyncComponent, defineComponent, getCurrentInstance, h } from "vue";
3
3
  // src/components/markdown.ts
4
4
  const MarkdownRenderer = defineAsyncComponent(() => import("./markdown-renderer.js").then((module) => module.MarkdownRenderer));
@@ -1,4 +1,4 @@
1
- import { t as ImagePreview } from "../../image-preview-DrLXrHpp.js";
1
+ import { t as ImagePreview } from "../../image-preview-EqfPcFZ9.js";
2
2
  import { Markdown } from "./markdown.js";
3
3
  import { defineComponent, h } from "vue";
4
4
  import { MessageParts as MessageParts$1 } from "comark-chat/vue";
@@ -60,7 +60,7 @@ export declare const PromptInput: import("vue").DefineComponent<import("vue").Ex
60
60
  };
61
61
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
62
62
  [key: string]: any;
63
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "submit" | "stop" | "update:modelValue" | "update:files" | "reload")[], "error" | "submit" | "stop" | "update:modelValue" | "update:files" | "reload", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
63
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "submit" | "stop" | "update:modelValue" | "reload" | "update:files")[], "error" | "submit" | "stop" | "update:modelValue" | "reload" | "update:files", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
64
64
  accept: {
65
65
  type: StringConstructor;
66
66
  };
@@ -126,9 +126,9 @@ export declare const PromptInput: import("vue").DefineComponent<import("vue").Ex
126
126
  disabled: boolean;
127
127
  modelValue: string;
128
128
  readonly: boolean;
129
+ status: ChatStatus;
129
130
  files: readonly FileUIPart[];
130
131
  attachments: boolean;
131
- attachVariant: "ghost" | "outline";
132
+ attachVariant: "outline" | "ghost";
132
133
  filesDisabled: boolean;
133
- status: ChatStatus;
134
134
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,8 +1,8 @@
1
1
  import { a as nextPromptFiles, n as fileToUIPart } from "../../attachments-DgwoQZKY.js";
2
- import { t as ImagePreview } from "../../image-preview-DrLXrHpp.js";
2
+ import { t as ImagePreview } from "../../image-preview-EqfPcFZ9.js";
3
3
  import { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentGroup, AttachmentMedia, AttachmentTitle } from "./attachment.js";
4
4
  import { r as useUIComponent } from "../../nuxt-ui-7ByUrymx.js";
5
- import { a as useViteHubUIIcons } from "../../config-DztmAYYn.js";
5
+ import { a as useViteHubUIIcons } from "../../config-BDvnaVUn.js";
6
6
  import { computed, defineComponent, h, onBeforeUnmount, onMounted, ref } from "vue";
7
7
  // src/components/prompt-input.ts
8
8
  const submitLabels = {
@@ -1,2 +1,2 @@
1
- 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-DrE9DU-E.js";
1
+ 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-CnG_c-_c.js";
2
2
  export { CommentCan, CommentDraft, CommentFilterState, CommentScope, CommentThreadAction, CommentsOutboxState, CommentsState, UseCommentsOptions, defaultCommentCan, draftPositionKey, provideComments, useComments, useCommentsContext };
@@ -1 +1 @@
1
- export { t as defaultCommentCan, n as draftPositionKey, r as provideComments, i as useComments, a as useCommentsContext } from "../../comments-C0OdHh_F.js";
1
+ export { t as defaultCommentCan, n as draftPositionKey, r as provideComments, i as useComments, a as useCommentsContext } from "../../comments-D9dONfs9.js";
@@ -230,9 +230,9 @@ export declare const Workspace: import("vue").DefineComponent<ExtractPropTypes<{
230
230
  };
231
231
  }>> & Readonly<{
232
232
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
233
+ "onUpdate:selected"?: ((path: string) => any) | undefined;
233
234
  "onUpdate:step"?: ((step: number) => any) | undefined;
234
235
  "onUpdate:example"?: ((id: string) => any) | undefined;
235
- "onUpdate:selected"?: ((path: string) => any) | undefined;
236
236
  }>, {
237
237
  name: string;
238
238
  label: string;
@@ -1,5 +1,5 @@
1
1
  import { n as provideRelativeNow, r as startRelativeClock } from "../relative-time-DJnw45tr.js";
2
- import { n as createViteHubUI } from "../config-DztmAYYn.js";
2
+ import { n as createViteHubUI } from "../config-BDvnaVUn.js";
3
3
  import { defineAsyncComponent } from "vue";
4
4
  import { defineNuxtPlugin, useAppConfig, useRuntimeConfig, useState } from "#app";
5
5
  // src/runtime/nuxt-plugin.ts
package/dist/styles.css CHANGED
@@ -1910,9 +1910,11 @@
1910
1910
  pointer-events: auto;
1911
1911
  }
1912
1912
 
1913
- /* The pin's look is Drop's, in comment-marks.css. Here its bottom-left corner sits on the spot. */
1913
+ /* The pin's look is Drop's, in comment-marks.css. Here its bottom-left corner sits on the spot. It moves with
1914
+ `translate`, so the zoom and the active size of comment-marks.css, which are its `transform`, still apply, and a
1915
+ page that places its pins another way sets its own `translate`. */
1914
1916
  [data-slot="comment-pin"] {
1915
- transform: translateY(-100%);
1917
+ translate: 0 -100%;
1916
1918
  }
1917
1919
 
1918
1920
  [data-slot="comment-pin"] [data-slot="avatar-stack"] {
@@ -2148,6 +2150,9 @@
2148
2150
  --vh-bubble-radius: 1.4375rem;
2149
2151
  border: 0;
2150
2152
  border-radius: 0.375rem var(--vh-bubble-radius) var(--vh-bubble-radius);
2153
+ /* The layer measures the bubble and sets its left edge, on either side of the pin, so it stays on screen. */
2154
+ left: var(--vh-comment-draft-left, 0.5rem);
2155
+ right: auto;
2151
2156
  box-shadow:
2152
2157
  0 0 0 1px var(--vh-bubble-edge),
2153
2158
  0 2px 4px color-mix(in oklab, var(--vh-comment-shadow) calc(100% / 3), transparent),
@@ -1,4 +1,4 @@
1
- import "./markdown-renderer-DFS1vf1h.js";
1
+ import "./markdown-renderer-BgsmNqv7.js";
2
2
  import { defineComponent, h, onBeforeUnmount, onMounted, ref, useId, watch } from "vue";
3
3
  import { escapeHtml } from "comark/utils";
4
4
  // ../../node_modules/.pnpm/pele@1.12.0/node_modules/pele/dist/pele.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vite-hub/ui",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "AI interface primitives for Vue and Nuxt.",
5
5
  "keywords": [
6
6
  "ai",
@@ -96,7 +96,7 @@
96
96
  "@shikijs/langs": "4.6.0",
97
97
  "@shikijs/themes": "4.6.0",
98
98
  "@types/node": "^24.19.2",
99
- "@vite-hub/comments": "0.5.1",
99
+ "@vite-hub/comments": "0.6.0",
100
100
  "@ui-sdk/core": "0.1.0-beta.14",
101
101
  "@ui-sdk/vue": "0.1.0-beta.14",
102
102
  "nostics": "1.4.0",
@@ -116,7 +116,7 @@
116
116
  "@codemirror/state": "6.7.6",
117
117
  "@codemirror/view": "6.43.15",
118
118
  "@lezer/highlight": "1.2.5",
119
- "@vite-hub/web-container": "0.5.1",
119
+ "@vite-hub/web-container": "0.6.0",
120
120
  "@xterm/addon-fit": "0.11.0",
121
121
  "@xterm/xterm": "6.0.0"
122
122
  },
@@ -135,7 +135,7 @@
135
135
  "@vitejs/plugin-vue": "^6.0.11",
136
136
  "@vite-hub/icons": "0.1.0",
137
137
  "@vite-hub/internal": "0.0.1",
138
- "@vite-hub/runtime": "0.5.1",
138
+ "@vite-hub/runtime": "0.6.0",
139
139
  "@vue/server-renderer": "3.5.46",
140
140
  "@vue/test-utils": "2.6.0",
141
141
  "ai": "7.0.179",
@@ -151,7 +151,7 @@
151
151
  "vue": "3.5.46",
152
152
  "@types/markdown-it": "^14.2.0",
153
153
  "comark-ui": "^0.12.2",
154
- "@vite-hub/content": "0.5.1",
154
+ "@vite-hub/content": "0.6.0",
155
155
  "playwright-core": "^1.65.1",
156
156
  "@tiptap/core": "^3.35.0",
157
157
  "@tiptap/extension-drag-handle": "3.35.0",
@@ -162,7 +162,7 @@
162
162
  "@tiptap/pm": "^3.35.0",
163
163
  "@tiptap/starter-kit": "^3.35.0",
164
164
  "@tiptap/vue-3": "3.35.0",
165
- "@vite-hub/blob": "0.5.1"
165
+ "@vite-hub/blob": "0.6.0"
166
166
  },
167
167
  "peerDependencies": {
168
168
  "@floating-ui/dom": "^1.0.0",