@vite-hub/ui 0.3.1 → 0.5.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 (176) hide show
  1. package/README.md +107 -81
  2. package/dist/announce-Cy_Tn9wW.js +32 -0
  3. package/dist/{code-view-D0bqhogi.js → code-view-DsU-xzic.js} +4 -4
  4. package/dist/comment-attachments-C4yNbcx5.js +20 -0
  5. package/dist/{comment-composer-jYv2ULNP.js → comment-composer-D7ZytyER.js} +257 -10
  6. package/dist/{comment-composer-Cc8Jvu6u.d.ts → comment-composer-DvKMTrAi.d.ts} +1 -1
  7. package/dist/{comment-layer-ClH4MLj4.d.ts → comment-layer-GTsLdABl.d.ts} +17 -6
  8. package/dist/{comment-list-B8hphLfS.d.ts → comment-list-BI96empx.d.ts} +2 -2
  9. package/dist/comment-marks.css +18 -22
  10. package/dist/{comment-panel-fcKSKwLC.d.ts → comment-panel-CsKWTms_.d.ts} +15 -4
  11. package/dist/{comment-row-Bbm9WwuF.js → comment-row-JmTC0uXr.js} +2 -2
  12. package/dist/comment-selection-bar-CyVBNYl9.d.ts +42 -0
  13. package/dist/comment-send-7bg4NEEM.js +277 -0
  14. package/dist/comment-send-C45dHC22.d.ts +25 -0
  15. package/dist/comment-send.css +267 -0
  16. package/dist/comment-thread-B_Sc2QX6.js +797 -0
  17. package/dist/{comment-thread-CoTLrdal.d.ts → comment-thread-C6U-bsK_.d.ts} +23 -6
  18. package/dist/{comments-CkWc2Khc.js → comments-B88zg9gC.js} +66 -10
  19. package/dist/{comments-Bx2WRsYy.d.ts → comments-D8hulVPy.d.ts} +34 -6
  20. package/dist/{comments-context-C2lOZyQ5.js → comments-context-DhbIdYQ1.js} +2 -1
  21. package/dist/{config-Dk67emQt.js → config-B1u7zqMB.js} +8 -1
  22. package/dist/{config-DgxBW013.d.ts → config-pHazYdq6.d.ts} +11 -0
  23. package/dist/drop-field-3CDRFFRm.js +163 -0
  24. package/dist/{editor-C_wt4RRV.js → editor-BHYGLgty.js} +42 -3
  25. package/dist/effects-Ql6VzCRa.js +2971 -0
  26. package/dist/format-orwcdZL_.js +39 -0
  27. package/dist/headless.d.ts +2 -2
  28. package/dist/headless.js +1 -1
  29. package/dist/hold-to-delete-DjWzRDyY.d.ts +51 -0
  30. package/dist/hold-to-delete-ROLQRZg_.js +434 -0
  31. package/dist/icon-c5Jb_Tl7.d.ts +31 -0
  32. package/dist/{image-preview-C9tdkmEj.js → image-preview-BigoAvb3.js} +2 -2
  33. package/dist/{index-BD1e8vx5.d.ts → index-YUvL2nV8.d.ts} +10 -6
  34. package/dist/index.d.ts +18 -12
  35. package/dist/index.js +47 -45
  36. package/dist/install-D5f6msEU.js +17 -0
  37. package/dist/list-RCbNZ14q.js +271 -0
  38. package/dist/{markdown-editor-CMbNZOdN.js → markdown-editor-Dfl2DgPS.js} +1 -1
  39. package/dist/{markdown-editor-DqdZfIEn.d.ts → markdown-editor-wQF0yD5o.d.ts} +1 -1
  40. package/dist/markdown-editor.d.ts +1 -1
  41. package/dist/markdown-editor.js +1 -1
  42. package/dist/motion/core.d.ts +4 -0
  43. package/dist/motion/core.js +11 -0
  44. package/dist/motion-core-lHRF8PZz.d.ts +456 -0
  45. package/dist/motion.d.ts +16 -0
  46. package/dist/motion.js +13 -0
  47. package/dist/{nuxt-ui-DSQFzq3s.js → nuxt-ui-CgvMzO5v.js} +20 -14
  48. package/dist/nuxt.d.ts +2 -2
  49. package/dist/nuxt.js +20 -5
  50. package/dist/opt-out-b6bnUjIT.js +208 -0
  51. package/dist/parts/components/agent-session.js +1 -1
  52. package/dist/parts/components/attachment.js +1 -1
  53. package/dist/parts/components/avatar-stack.js +3 -2
  54. package/dist/parts/components/chat-session.d.ts +1 -1
  55. package/dist/parts/components/chat.js +2 -2
  56. package/dist/parts/components/code-block.js +1 -1
  57. package/dist/parts/components/code-view.js +1 -1
  58. package/dist/parts/components/comment-composer.d.ts +1 -1
  59. package/dist/parts/components/comment-composer.js +1 -1
  60. package/dist/parts/components/comment-layer.d.ts +1 -1
  61. package/dist/parts/components/comment-layer.js +54 -23
  62. package/dist/parts/components/comment-list.d.ts +1 -1
  63. package/dist/parts/components/comment-list.js +13 -7
  64. package/dist/parts/components/comment-panel.d.ts +1 -1
  65. package/dist/parts/components/comment-panel.js +46 -20
  66. package/dist/parts/components/comment-pin.js +1 -1
  67. package/dist/parts/components/comment-selection-bar.d.ts +2 -0
  68. package/dist/parts/components/comment-selection-bar.js +117 -0
  69. package/dist/parts/components/comment-send.d.ts +2 -0
  70. package/dist/parts/components/comment-send.js +2 -0
  71. package/dist/parts/components/comment-thread.d.ts +2 -2
  72. package/dist/parts/components/comment-thread.js +2 -570
  73. package/dist/parts/components/comments.d.ts +8 -6
  74. package/dist/parts/components/comments.js +6 -4
  75. package/dist/parts/components/copy-button.d.ts +12 -2
  76. package/dist/parts/components/copy-button.js +226 -1
  77. package/dist/parts/components/drop-field.d.ts +69 -0
  78. package/dist/parts/components/drop-field.js +77 -0
  79. package/dist/parts/components/filter-search.js +1 -1
  80. package/dist/parts/components/hold-to-delete.d.ts +82 -0
  81. package/dist/parts/components/hold-to-delete.js +76 -0
  82. package/dist/parts/components/markdown-editor.d.ts +1 -1
  83. package/dist/parts/components/markdown-editor.js +1 -1
  84. package/dist/parts/components/markdown-renderer.js +1 -1
  85. package/dist/parts/components/markdown.js +1 -1
  86. package/dist/parts/components/message-parts.js +13 -5
  87. package/dist/parts/components/motion-list.d.ts +42 -0
  88. package/dist/parts/components/motion-list.js +42 -0
  89. package/dist/parts/components/motion.d.ts +124 -0
  90. package/dist/parts/components/motion.js +172 -0
  91. package/dist/parts/components/progress.d.ts +41 -0
  92. package/dist/parts/components/progress.js +54 -0
  93. package/dist/parts/components/prompt-input.d.ts +3 -3
  94. package/dist/parts/components/prompt-input.js +3 -3
  95. package/dist/parts/components/relative-time.js +1 -1
  96. package/dist/parts/components/sync-status.js +2 -1
  97. package/dist/parts/components/tool-list.d.ts +1 -1
  98. package/dist/parts/components/trace-run.d.ts +1 -1
  99. package/dist/parts/components/trace-run.js +2 -2
  100. package/dist/parts/headless/comments.d.ts +2 -2
  101. package/dist/parts/headless/comments.js +1 -1
  102. package/dist/parts/playground/share.d.ts +36 -2
  103. package/dist/parts/workspace/browser-support-notice.js +12 -4
  104. package/dist/parts/workspace/codemirror.d.ts +9 -0
  105. package/dist/parts/workspace/codemirror.js +37 -4
  106. package/dist/parts/workspace/connect-panel.js +1 -1
  107. package/dist/parts/workspace/file-icons.d.ts +16 -0
  108. package/dist/parts/workspace/file-icons.js +82 -0
  109. package/dist/parts/workspace/icons.d.ts +1 -0
  110. package/dist/parts/workspace/icons.js +1 -0
  111. package/dist/parts/workspace/runners/render.d.ts +26 -0
  112. package/dist/parts/workspace/runners/render.js +124 -0
  113. package/dist/parts/workspace/runners/web-container.d.ts +29 -0
  114. package/dist/parts/workspace/runners/web-container.js +186 -0
  115. package/dist/parts/workspace/workspace-bar.d.ts +51 -0
  116. package/dist/parts/workspace/workspace-bar.js +51 -0
  117. package/dist/parts/workspace/workspace-boot-status.js +1 -1
  118. package/dist/parts/workspace/workspace-editor-head.d.ts +47 -0
  119. package/dist/parts/workspace/workspace-editor-head.js +66 -0
  120. package/dist/parts/workspace/workspace-editor.d.ts +17 -0
  121. package/dist/parts/workspace/workspace-editor.js +29 -3
  122. package/dist/parts/workspace/workspace-examples.d.ts +74 -0
  123. package/dist/parts/workspace/workspace-examples.js +72 -0
  124. package/dist/parts/workspace/workspace-file-link.d.ts +35 -0
  125. package/dist/parts/workspace/workspace-file-link.js +39 -0
  126. package/dist/parts/workspace/workspace-file-tree.d.ts +8 -8
  127. package/dist/parts/workspace/workspace-file-tree.js +26 -19
  128. package/dist/parts/workspace/workspace-guide.d.ts +52 -0
  129. package/dist/parts/workspace/workspace-guide.js +91 -0
  130. package/dist/parts/workspace/workspace-issues.d.ts +46 -0
  131. package/dist/parts/workspace/workspace-issues.js +49 -0
  132. package/dist/parts/workspace/workspace-preview.js +1 -1
  133. package/dist/parts/workspace/workspace-shell.d.ts +2 -88
  134. package/dist/parts/workspace/workspace-shell.js +131 -78
  135. package/dist/parts/workspace/workspace-sidebar.d.ts +75 -0
  136. package/dist/parts/workspace/workspace-sidebar.js +132 -0
  137. package/dist/parts/workspace/workspace-start.d.ts +47 -0
  138. package/dist/parts/workspace/workspace-start.js +60 -0
  139. package/dist/parts/workspace/workspace-status.d.ts +69 -0
  140. package/dist/parts/workspace/workspace-status.js +74 -0
  141. package/dist/parts/workspace/workspace-steps.d.ts +2 -0
  142. package/dist/parts/workspace/workspace-steps.js +128 -0
  143. package/dist/parts/workspace/workspace-task.d.ts +20 -0
  144. package/dist/parts/workspace/workspace-task.js +20 -0
  145. package/dist/parts/workspace/workspace.d.ts +251 -0
  146. package/dist/parts/workspace/workspace.js +665 -0
  147. package/dist/{pierre-code-view-xgBL6DO7.js → pierre-code-view-NE35tkmR.js} +37 -17
  148. package/dist/playground.d.ts +1 -1
  149. package/dist/progress-C7afI5vq.js +266 -0
  150. package/dist/registry-D3-ysX7l.js +78 -0
  151. package/dist/{relative-time-BVmjOsYG.js → relative-time-DgSS3zKN.js} +1 -1
  152. package/dist/ring-B7Qxu7zd.js +175 -0
  153. package/dist/runtime/nuxt-plugin.js +2 -2
  154. package/dist/styles.css +657 -526
  155. package/dist/text-BCJflBJf.js +826 -0
  156. package/dist/theme.d.ts +43 -0
  157. package/dist/theme.js +22 -7
  158. package/dist/travel-C87xd5Wh.js +182 -0
  159. package/dist/tween-CO24nMpf.js +62 -0
  160. package/dist/{types-Dyr6CfBW.d.ts → types-BX64qHlV.d.ts} +1 -1
  161. package/dist/visual-copy-CrVc3z4n.js +15 -0
  162. package/dist/workspace-shell-BJGnoF3p.d.ts +112 -0
  163. package/dist/workspace-steps-Bgph2rpr.d.ts +72 -0
  164. package/dist/workspace.d.ts +17 -4
  165. package/dist/workspace.js +16 -3
  166. package/package.json +22 -11
  167. package/dist/copy-button-CRN3kmSD.js +0 -253
  168. package/dist/format-Du58PlsG.js +0 -18
  169. package/dist/icon-swap.css +0 -69
  170. package/dist/parts/playground/highlight.d.ts +0 -5
  171. package/dist/parts/playground/highlight.js +0 -23
  172. package/dist/parts/playground/playground-render.d.ts +0 -126
  173. package/dist/parts/playground/playground-render.js +0 -356
  174. package/dist/parts/workspace/playground-container.d.ts +0 -192
  175. package/dist/parts/workspace/playground-container.js +0 -603
  176. package/dist/share-DM4eNy4q.d.ts +0 -37
package/dist/index.d.ts CHANGED
@@ -3,33 +3,40 @@ import { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, Att
3
3
  import { i as AvatarStackVariant, n as AvatarStackPerson, r as AvatarStackSize, t as AvatarStack } from "./avatar-stack-DXmCQhxd.js";
4
4
  import { Bubble, BubbleAlign, BubbleContent, BubbleGroup, BubbleReactions, BubbleVariant } from "./parts/components/bubble.js";
5
5
  import { ChatMessage } from "./parts/components/chat-message.js";
6
- import { n as TraceRunView, r as TraceStepView, t as TraceEventLogEntry } from "./index-BD1e8vx5.js";
7
- import { i as ViteHubUISession, n as AgentToolInspection, r as ViteHubUIMessage, t as AgentInspectionValue } from "./types-Dyr6CfBW.js";
6
+ import { n as TraceRunView, r as TraceStepView, t as TraceEventLogEntry } from "./index-YUvL2nV8.js";
7
+ import { i as ViteHubUISession, n as AgentToolInspection, r as ViteHubUIMessage, t as AgentInspectionValue } from "./types-BX64qHlV.js";
8
8
  import { ChatSession } from "./parts/components/chat-session.js";
9
9
  import { Chat, chatActivity } from "./parts/components/chat.js";
10
10
  import { CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockLineVariant, CodeBlockSize, CodeBlockTitle, CodeBlockVariant } from "./parts/components/code-block.js";
11
11
  import { a as CodeViewLineSelection, c as FileOptions, d as FileContents, f as FileDiffMetadata, i as UnresolvedFileOptions, l as CodeViewItem, m as SelectedLineRange, n as parseDiffFromFile, o as CodeViewOptions, p as LineAnnotation, r as getSingularPatch, s as FileDiffOptions, t as parsePatchFiles, u as DiffLineAnnotation } from "./index-CNY1uNTh.js";
12
12
  import { CodeView, FileDiff, FileView, MultiFileDiff, PatchDiff, UnresolvedFile } from "./parts/components/code-view.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-Cc8Jvu6u.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-DvKMTrAi.js";
14
14
  import { a as createCommentVisibility, i as commentLeaveMs, n as CommentVisibilityModel, r as CommentVisibilityOptions, t as CommentVisibility } from "./comment-visibility-DsVuVndP.js";
15
- import { a as CommentThreadAction, c as defaultCommentCan, d as useComments, f as useCommentsContext, i as CommentScope, l as draftPositionKey, n as CommentDraft, o as CommentsState, r as CommentFilterState, s as UseCommentsOptions, t as CommentCan, u as provideComments } from "./comments-Bx2WRsYy.js";
16
- import { a as CommentReplySlots, c as CommentThreadSlots, i as CommentReplySlotScope, l as messagesSinceResolved, n as CommentAttachmentUrl, o as CommentThread, r as CommentReply, s as CommentThreadSlotScope, t as CommentAttachmentLink, u as repliedSinceResolved } from "./comment-thread-CoTLrdal.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-fcKSKwLC.js";
18
- import { n as CommentPlacement, t as CommentLayer } from "./comment-layer-ClH4MLj4.js";
19
- import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "./comment-list-B8hphLfS.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-D8hulVPy.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-C6U-bsK_.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-CsKWTms_.js";
18
+ import { n as CommentPlacement, t as CommentLayer } from "./comment-layer-GTsLdABl.js";
19
+ import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "./comment-list-BI96empx.js";
20
20
  import { t as CommentPin } from "./comment-pin-CvwgRSDR.js";
21
+ import { n as CommentSelectionBarSide, t as CommentSelectionBar } from "./comment-selection-bar-CyVBNYl9.js";
22
+ import { t as CommentSend } from "./comment-send-C45dHC22.js";
21
23
  import "./parts/components/comments.js";
22
24
  import { ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, ConnectionStatusState, ConnectionStatusValue } from "./parts/components/connection-status.js";
23
25
  import { CopyButton, CopyButtonSize, CopyButtonVariant, CopyValue, UseCopyOptions, UseCopyReturn, useCopy } from "./parts/components/copy-button.js";
24
26
  import { DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, DeviceFrameBreakpoint, DeviceFramePreset, DeviceFrameSize } from "./parts/components/device-frame.js";
27
+ import { DropField, DropFieldSlots } from "./parts/components/drop-field.js";
25
28
  import { a as useFileTreeSelection, i as useFileTree, n as FileTreeModel, r as FileTreeOptions, t as FileTree } from "./file-tree-DlT9RGhu.js";
26
29
  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-ByXJvDn1.js";
27
30
  import { FilterSearch, FilterSearchSize } from "./parts/components/filter-search.js";
31
+ import { HoldToDelete } from "./parts/components/hold-to-delete.js";
28
32
  import { Markdown, MarkdownValue } from "./parts/components/markdown.js";
29
33
  import { Marker, MarkerContent, MarkerIcon, MarkerVariant } from "./parts/components/marker.js";
30
34
  import { MessageParts } from "./parts/components/message-parts.js";
31
35
  import { Message, MessageAlign, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader } from "./parts/components/message.js";
36
+ import { MotionList } from "./parts/components/motion-list.js";
37
+ import { MorphText, RollNumber, SwapIcon, vRing } from "./parts/components/motion.js";
32
38
  import "./parts/components/patch-parsers.js";
39
+ import { Progress } from "./parts/components/progress.js";
33
40
  import { PromptInput, PromptInputSubmit } from "./parts/components/prompt-input.js";
34
41
  import { RelativeTime, RelativeTimeFormat, RelativeTimeValue, provideRelativeNow } from "./parts/components/relative-time.js";
35
42
  import { Status, StatusSize, StatusTone } from "./parts/components/status.js";
@@ -41,9 +48,8 @@ import { AgentAttachments, PendingAttachment, UseAgentAttachmentsOptions, fileTo
41
48
  import { useHighlightedCode } from "./parts/composables/highlighted-code.js";
42
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-Bm1YWTeY.js";
43
50
  import "./headless.js";
44
- import { t as PlaygroundFiles } from "./share-DM4eNy4q.js";
45
- import { PlaygroundIssue, PlaygroundOpenEvent, PlaygroundPane, PlaygroundPaneSlotProps, PlaygroundPreset, PlaygroundRender, PlaygroundRenderer, PlaygroundResult } from "./parts/playground/playground-render.js";
46
- 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 ViteHubUIComponentName } from "./config-DgxBW013.js";
51
+ import { PlaygroundFiles } from "./parts/playground/share.js";
52
+ 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 ViteHubUIComponentName } from "./config-pHazYdq6.js";
47
53
  //#region src/ui-sdk/components.d.ts
48
54
  /**
49
55
  * The components that the parts render, on ui-sdk instead of Nuxt UI. Give them to `createViteHubUI({ components })`
@@ -52,4 +58,4 @@ import { a as ViteHubUIOptions, c as useViteHubUI, d as ViteHubUIComponents, i a
52
58
  */
53
59
  export declare const uiSdkComponents: ViteHubUIComponents;
54
60
  //#endregion
55
- 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, CommentThread, CommentThreadAction, CommentThreadSlotScope, CommentThreadSlots, CommentToolbar, CommentUpload, CommentVisibility, CommentVisibilityModel, CommentVisibilityOptions, CommentsState, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, ConnectionStatusState, ConnectionStatusValue, CopyButton, CopyButtonSize, CopyButtonVariant, CopyValue, DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, DeviceFrameBreakpoint, DeviceFramePreset, DeviceFrameSize, type DiffLineAnnotation, type FileContents, FileDiff, type FileDiffMetadata, type FileDiffOptions, type FileOptions, FileTree, FileTreeModel, FileTreeOptions, FileView, FilterSearch, FilterSearchSize, type LineAnnotation, Markdown, MarkdownValue, Marker, MarkerContent, MarkerIcon, MarkerVariant, Message, MessageAlign, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScrollBehavior, MessageScrollPosition, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerContext, MessageScrollerItem, MessageScrollerViewport, MultiFileDiff, PatchDiff, PendingAttachment, type PlaygroundFiles, type PlaygroundIssue, type PlaygroundOpenEvent, type PlaygroundPane, type PlaygroundPaneSlotProps, type PlaygroundPreset, PlaygroundRender, type PlaygroundRenderer, type PlaygroundResult, PromptInput, PromptInputSubmit, RelativeTime, RelativeTimeFormat, RelativeTimeValue, ResolvedViteHubUIDefaults, type SelectedLineRange, Status, StatusSize, StatusTone, 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 };
61
+ 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 };
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
- import { r as useUIComponent } from "./nuxt-ui-DSQFzq3s.js";
2
- import { a as useViteHubUIIcons, i as useViteHubUI, n as createViteHubUI, r as resolveViteHubUIDefaults, t as ViteHubUIInjectionKey } from "./config-Dk67emQt.js";
1
+ import { r as useUIComponent } from "./nuxt-ui-CgvMzO5v.js";
2
+ import { MorphText, RollNumber, SwapIcon, vRing } from "./parts/components/motion.js";
3
+ import { a as useViteHubUIIcons, i as useViteHubUI, n as createViteHubUI, r as resolveViteHubUIDefaults, t as ViteHubUIInjectionKey } from "./config-B1u7zqMB.js";
3
4
  import { Markdown } from "./parts/components/markdown.js";
4
5
  import { AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionTimeline, AgentSessionWorkGroup } from "./parts/components/agent-session.js";
5
6
  import { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger } from "./parts/components/attachment.js";
@@ -11,43 +12,48 @@ import { ChatMessage } from "./parts/components/chat-message.js";
11
12
  import { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, calculatePrependScrollTop, useMessageScroller } from "./parts/headless/message-scroller.js";
12
13
  import { Chat, chatActivity } from "./parts/components/chat.js";
13
14
  import { ChatSession } from "./parts/components/chat-session.js";
14
- import { n as useCopy, t as CopyButton } from "./copy-button-CRN3kmSD.js";
15
+ import { CopyButton, useCopy } from "./parts/components/copy-button.js";
15
16
  import { CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle } from "./parts/components/code-block.js";
16
- import { a as PatchDiff, i as MultiFileDiff, n as FileDiff, o as UnresolvedFile, r as FileView, t as CodeView } from "./code-view-D0bqhogi.js";
17
- import { t as CommentComposer } from "./comment-composer-jYv2ULNP.js";
17
+ import { a as PatchDiff, i as MultiFileDiff, n as FileDiff, o as UnresolvedFile, r as FileView, t as CodeView } from "./code-view-DsU-xzic.js";
18
+ import { t as CommentComposer } from "./comment-composer-D7ZytyER.js";
18
19
  import { n as fileToUIPart, r as useAgentAttachments, t as fileToDataUrl } from "./attachments-BzTwqRTU.js";
19
20
  import { PromptInput } from "./parts/components/prompt-input.js";
20
21
  import { commentLeaveMs, createCommentVisibility } from "./parts/headless/comment-visibility.js";
21
- import { a as useCommentsContext, i as useComments, n as draftPositionKey, o as messagesSinceResolved, r as provideComments, s as repliedSinceResolved, t as defaultCommentCan } from "./comments-CkWc2Khc.js";
22
- import { n as provideRelativeNow, t as RelativeTime } from "./relative-time-BVmjOsYG.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-B88zg9gC.js";
23
+ import { n as provideRelativeNow, t as RelativeTime } from "./relative-time-DgSS3zKN.js";
24
+ import { MotionList } from "./parts/components/motion-list.js";
23
25
  import { CommentFilters, CommentList, CommentToolbar } from "./parts/components/comment-list.js";
24
26
  import { CommentPin } from "./parts/components/comment-pin.js";
27
+ import { n as CommentThread, t as CommentReply } from "./comment-thread-B_Sc2QX6.js";
25
28
  import { Marker, MarkerContent, MarkerIcon } from "./parts/components/marker.js";
26
- import { CommentReply, CommentThread } from "./parts/components/comment-thread.js";
27
29
  import { CommentLayer } from "./parts/components/comment-layer.js";
28
30
  import { CommentPanel } from "./parts/components/comment-panel.js";
31
+ import { CommentSelectionBar } from "./parts/components/comment-selection-bar.js";
32
+ import { t as CommentSend } from "./comment-send-7bg4NEEM.js";
29
33
  import "./parts/components/comments.js";
30
34
  import { ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel } from "./parts/components/connection-status.js";
31
35
  import { DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame } from "./parts/components/device-frame.js";
36
+ import { DropField } from "./parts/components/drop-field.js";
32
37
  import { n as useFileTree, r as useFileTreeSelection, t as FileTree } from "./file-tree-C4OYgbV-.js";
33
38
  import { ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputStatus } from "./parts/headless/choices-input.js";
34
39
  import { FilterSearch } from "./parts/components/filter-search.js";
40
+ import { HoldToDelete } from "./parts/components/hold-to-delete.js";
35
41
  import { a as parsePatchFiles, n as parseDiffFromFile, t as getSingularPatch } from "./getSingularPatch-Dsb8EgxR.js";
36
42
  import "./parts/components/patch-parsers.js";
43
+ import { Progress } from "./parts/components/progress.js";
37
44
  import { Status } from "./parts/components/status.js";
38
45
  import { SyncStatus, SyncStatusIndicator, SyncStatusLabel } from "./parts/components/sync-status.js";
39
46
  import { ToolList } from "./parts/components/tool-list.js";
40
47
  import { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle } from "./parts/components/trace.js";
41
48
  import { TraceRun } from "./parts/components/trace-run.js";
42
49
  import { useHighlightedCode } from "./parts/composables/highlighted-code.js";
43
- import { PlaygroundRender } from "./parts/playground/playground-render.js";
44
50
  import "./headless.js";
45
51
  import { Tabs, TabsList, TabsTab } from "@ui-sdk/vue/tabs";
46
52
  import { cloneVNode, computed, defineAsyncComponent, defineComponent, h, isVNode, nextTick, onMounted, ref } from "vue";
47
53
  import { Button } from "@ui-sdk/vue/button";
48
54
  import { Dialog, DialogBackdrop, DialogClose, DialogContent, DialogDescription, DialogTitle, DialogTrigger } from "@ui-sdk/vue/dialog";
49
55
  import { Input, InputGroup } from "@ui-sdk/vue/input";
50
- import { Menu, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuItemIcon, MenuSeparator, MenuTrigger } from "@ui-sdk/vue/menu";
56
+ import { Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuItemIcon, MenuItemIndicator, MenuSeparator, MenuTrigger } from "@ui-sdk/vue/menu";
51
57
  //#region src/internal/icon-shapes.ts
52
58
  /** The stroke of every Lucide icon. An icon drawn from shapes without it sets it on its `<svg>`. */
53
59
  const lucideStroke = {
@@ -66,7 +72,6 @@ const uiSdkIcons = {
66
72
  "i-lucide-arrow-up": [["path", { "d": "m5 12l7-7l7 7m-7 7V5" }]],
67
73
  "i-lucide-arrow-up-right": [["path", { "d": "M7 7h10v10M7 17L17 7" }]],
68
74
  "i-lucide-bold": [["path", { "d": "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" }]],
69
- "i-lucide-box": [["path", { "d": "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z" }], ["path", { "d": "m3.3 7l8.7 5l8.7-5M12 22V12" }]],
70
75
  "i-lucide-brain": [
71
76
  ["path", { "d": "M12 18V5m3 8a4.17 4.17 0 0 1-3-4a4.17 4.17 0 0 1-3 4m8.598-6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5" }],
72
77
  ["path", { "d": "M17.997 5.125a4 4 0 0 1 2.526 5.77" }],
@@ -215,35 +220,13 @@ const uiSdkIcons = {
215
220
  }],
216
221
  ["path", { "d": "m21 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]
217
222
  ],
223
+ "i-lucide-inbox": [["path", { "d": "M22 12h-6l-2 3h-4l-2-3H2" }], ["path", { "d": "M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11" }]],
218
224
  "i-lucide-info": [["circle", {
219
225
  "cx": "12",
220
226
  "cy": "12",
221
227
  "r": "10"
222
228
  }], ["path", { "d": "M12 16v-4m0-4h.01" }]],
223
229
  "i-lucide-italic": [["path", { "d": "M19 4h-9m4 16H5M15 4L9 20" }]],
224
- "i-lucide-layout-template": [
225
- ["rect", {
226
- "width": "18",
227
- "height": "7",
228
- "x": "3",
229
- "y": "3",
230
- "rx": "1"
231
- }],
232
- ["rect", {
233
- "width": "9",
234
- "height": "7",
235
- "x": "3",
236
- "y": "14",
237
- "rx": "1"
238
- }],
239
- ["rect", {
240
- "width": "5",
241
- "height": "7",
242
- "x": "16",
243
- "y": "14",
244
- "rx": "1"
245
- }]
246
- ],
247
230
  "i-lucide-lightbulb": [["path", { "d": "M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4" }]],
248
231
  "i-lucide-link": [["path", { "d": "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }], ["path", { "d": "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" }]],
249
232
  "i-lucide-list": [["path", { "d": "M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13" }]],
@@ -263,6 +246,13 @@ const uiSdkIcons = {
263
246
  "rx": "2"
264
247
  }], ["path", { "d": "M8 21h8m-4-4v4" }]],
265
248
  "i-lucide-moon": [["path", { "d": "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" }]],
249
+ "i-lucide-panel-left": [["rect", {
250
+ "width": "18",
251
+ "height": "18",
252
+ "x": "3",
253
+ "y": "3",
254
+ "rx": "2"
255
+ }], ["path", { "d": "M9 3v18" }]],
266
256
  "i-lucide-panel-left-close": [["rect", {
267
257
  "width": "18",
268
258
  "height": "18",
@@ -300,6 +290,7 @@ const uiSdkIcons = {
300
290
  "cy": "11",
301
291
  "r": "8"
302
292
  }]],
293
+ "i-lucide-send": [["path", { "d": "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11zm7.318-19.539l-10.94 10.939" }]],
303
294
  "i-lucide-sparkles": [["path", { "d": "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594zM20 2v4m2-2h-4" }], ["circle", {
304
295
  "cx": "4",
305
296
  "cy": "20",
@@ -335,6 +326,7 @@ const uiSdkIcons = {
335
326
  "r": "4"
336
327
  }], ["path", { "d": "M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41" }]],
337
328
  "i-lucide-terminal": [["path", { "d": "M12 19h8M4 17l6-6l-6-6" }]],
329
+ "i-lucide-text-wrap": [["path", { "d": "m16 16l-3 3l3 3" }], ["path", { "d": "M3 12h14.5a1 1 0 0 1 0 7H13M3 19h6M3 5h18" }]],
338
330
  "i-lucide-trash-2": [["path", { "d": "M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]],
339
331
  "i-lucide-triangle-alert": [["path", { "d": "m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01" }]],
340
332
  "i-lucide-type": [["path", { "d": "M12 4v16M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2M9 20h6" }]],
@@ -644,36 +636,46 @@ const uiSdkComponents = {
644
636
  emits: { "update:open": (_open) => true },
645
637
  setup(props, { emit, slots }) {
646
638
  const UIcon = useUIComponent("UIcon");
647
- const entry = (item, index) => {
639
+ const entry = (item, index, group) => {
648
640
  if (item.type === "label") return h(MenuGroupLabel, { key: index }, () => item.label);
649
641
  if (item.type === "separator") return h(MenuSeparator, { key: index });
642
+ const body = () => [
643
+ item.icon ? h(MenuItemIcon, () => h(UIcon, { name: item.icon })) : null,
644
+ h("span", item.label),
645
+ item.description ? h("span", { "data-slot": "menu-item-description" }, item.description) : null
646
+ ];
647
+ if (item.type === "checkbox") return h(MenuCheckboxItem, {
648
+ checked: item.checked ?? false,
649
+ closeOnSelect: true,
650
+ disabled: item.disabled,
651
+ key: index,
652
+ label: item.label,
653
+ value: `${group}-${index}`,
654
+ onCheckedChange: (_checked, details) => item.onSelect?.(details.event ?? new Event("select"))
655
+ }, () => [h(MenuItemIndicator), ...body()]);
650
656
  return h(MenuItem, {
651
657
  disabled: item.disabled,
652
658
  key: index,
653
659
  label: item.label,
654
660
  onSelect: item.onSelect
655
- }, () => [
656
- item.icon ? h(MenuItemIcon, () => h(UIcon, { name: item.icon })) : null,
657
- h("span", item.label),
658
- item.description ? h("span", { "data-slot": "menu-item-description" }, item.description) : null
659
- ]);
661
+ }, body);
660
662
  };
661
663
  return () => {
662
664
  const groups = props.items.length && Array.isArray(props.items[0]) ? props.items : [props.items];
663
665
  return h(Menu, { onOpenChange: (open) => emit("update:open", open) }, () => [h(MenuTrigger, null, { render: ({ props: trigger }) => asTrigger(slots.default?.(), trigger) }), h(MenuContent, {
664
666
  ...props.content,
665
667
  class: props.ui.content
666
- }, () => groups.flatMap((group, index) => [index ? h(MenuSeparator, { key: `separator-${index}` }) : null, h(MenuGroup, { key: `group-${index}` }, () => group.map(entry))]))]);
668
+ }, () => groups.flatMap((group, index) => [index ? h(MenuSeparator, { key: `separator-${index}` }) : null, h(MenuGroup, { key: `group-${index}` }, () => group.map((item, position) => entry(item, position, index)))]))]);
667
669
  };
668
670
  }
669
671
  }),
670
- UEditorDragHandle: defineAsyncComponent(() => import("./editor-C_wt4RRV.js").then((parts) => parts.UEditorDragHandle)),
671
- UEditorSuggestionMenu: defineAsyncComponent(() => import("./editor-C_wt4RRV.js").then((parts) => parts.UEditorSuggestionMenu)),
672
- UEditorToolbar: defineAsyncComponent(() => import("./editor-C_wt4RRV.js").then((parts) => parts.UEditorToolbar)),
672
+ UEditorDragHandle: defineAsyncComponent(() => import("./editor-BHYGLgty.js").then((parts) => parts.UEditorDragHandle)),
673
+ UEditorSuggestionMenu: defineAsyncComponent(() => import("./editor-BHYGLgty.js").then((parts) => parts.UEditorSuggestionMenu)),
674
+ UEditorToolbar: defineAsyncComponent(() => import("./editor-BHYGLgty.js").then((parts) => parts.UEditorToolbar)),
673
675
  UIcon,
674
676
  UInput,
675
677
  UModal,
676
678
  UTabs
677
679
  };
678
680
  //#endregion
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, CommentThread, CommentToolbar, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, CopyButton, DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, FileDiff, FileTree, FileView, FilterSearch, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, MultiFileDiff, PatchDiff, PlaygroundRender, PromptInput, RelativeTime, Status, 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 };
681
+ 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 };
@@ -0,0 +1,17 @@
1
+ import { g as installMotion$1, t as motionEffects } from "./effects-Ql6VzCRa.js";
2
+ //#region src/motion/install.ts
3
+ /**
4
+ * Starts the motion layer with every built-in effect: press, toggle, select, drag, and appear motion for every element
5
+ * by its role, in `root`: the document by default, a shadow root, or an element and everything in it. `createViteHubUI()`
6
+ * and the Nuxt module call it for the document. A surface with its own bundle, such as the page pill, takes
7
+ * `installMotion` from `@vite-hub/ui/motion/core` instead and lists the effects it runs, so the others stay out of its
8
+ * bundle.
9
+ *
10
+ * It is safe to call more than once. Returns a function that stops this install. On the server it does nothing.
11
+ */
12
+ function installMotion(root) {
13
+ if (typeof document === "undefined") return () => {};
14
+ return installMotion$1(root ?? document, { effects: motionEffects });
15
+ }
16
+ //#endregion
17
+ export { installMotion as t };
@@ -0,0 +1,271 @@
1
+ import { r as createSpring, s as springs, t as isMotionOff, u as prefersReducedMotion } from "./opt-out-b6bnUjIT.js";
2
+ import { u as writeMotionStyle } from "./registry-D3-ysX7l.js";
3
+ import { i as playTween, t as cubicBezier } from "./tween-CO24nMpf.js";
4
+ import { t as visualCopy } from "./visual-copy-CrVc3z4n.js";
5
+ //#region src/motion/list.ts
6
+ const grow = {
7
+ stiffness: 380,
8
+ damping: 26
9
+ };
10
+ const fold = {
11
+ stiffness: 260,
12
+ damping: 28
13
+ };
14
+ const slotScale = .9;
15
+ const leaveDuration = .32;
16
+ const leaveEasing = cubicBezier(.5, 0, .75, 0);
17
+ const ghostAttribute = "data-motion-ghost";
18
+ const center = (rect) => ({
19
+ x: rect.left + rect.width / 2,
20
+ y: rect.top + rect.height / 2
21
+ });
22
+ function onScreen(rect) {
23
+ return rect.bottom > 0 && rect.right > 0 && rect.top < innerHeight && rect.left < innerWidth && rect.width + rect.height > 0;
24
+ }
25
+ function defaultItems(container) {
26
+ return [...container.children].filter((child) => child instanceof HTMLElement && !child.hasAttribute(ghostAttribute));
27
+ }
28
+ /**
29
+ * The list mover of docs/design/motion.md: "Items are added, removed, or reordered". It is FLIP with the springs of the
30
+ * motion layer. Call `measure()` before a change and `play()` after it.
31
+ *
32
+ * Neighbors spring to their new place and keep their speed when a second change comes before they settle. A new item
33
+ * grows from its origin, such as the row it duplicates, or from its slot. A removed item folds away, or leaves toward
34
+ * `target`. Items that are off screen before and after the change do not move, so a long list costs one read per item.
35
+ * Under reduced motion nothing travels: a new item and a removed item cross-fade in 150ms. Inside `data-motion="none"`
36
+ * nothing moves.
37
+ */
38
+ function createMotionList(container, options = {}) {
39
+ const items = options.items ?? defaultItems;
40
+ const motions = /* @__PURE__ */ new Map();
41
+ const ghosts = /* @__PURE__ */ new Set();
42
+ let snapshot = /* @__PURE__ */ new Map();
43
+ let starting = false;
44
+ function offset(motion) {
45
+ if (!motion) return {
46
+ x: 0,
47
+ y: 0
48
+ };
49
+ const rest = 1 - motion.grow.value;
50
+ return {
51
+ x: motion.x.value + motion.from.x * rest,
52
+ y: motion.y.value + motion.from.y * rest
53
+ };
54
+ }
55
+ function write(element, motion) {
56
+ const { x, y, grow, from } = motion;
57
+ if (!x.active && !y.active && !grow.active && x.value === 0 && y.value === 0 && grow.value === 1) {
58
+ writeMotionStyle(element, {
59
+ translate: null,
60
+ scale: null,
61
+ opacity: null
62
+ });
63
+ if (!starting) motions.delete(element);
64
+ return;
65
+ }
66
+ const { x: dx, y: dy } = offset(motion);
67
+ const scale = from.scale + (1 - from.scale) * grow.value;
68
+ writeMotionStyle(element, {
69
+ translate: dx || dy ? `${dx.toFixed(2)}px ${dy.toFixed(2)}px` : null,
70
+ scale: scale === 1 ? null : scale.toFixed(4),
71
+ opacity: grow.value >= 1 ? null : Math.max(0, Math.min(1, grow.value)).toFixed(3)
72
+ });
73
+ }
74
+ function motionOf(element) {
75
+ let motion = motions.get(element);
76
+ if (motion) return motion;
77
+ const draw = () => motion && write(element, motion);
78
+ motion = {
79
+ x: createSpring(0, draw, springs.snappy),
80
+ y: createSpring(0, draw, springs.snappy),
81
+ grow: createSpring(1, draw, grow),
82
+ from: {
83
+ x: 0,
84
+ y: 0,
85
+ scale: 1
86
+ }
87
+ };
88
+ motions.set(element, motion);
89
+ return motion;
90
+ }
91
+ function stopItem(element) {
92
+ const motion = motions.get(element);
93
+ if (!motion) return;
94
+ motions.delete(element);
95
+ motion.x.stop();
96
+ motion.y.stop();
97
+ motion.grow.stop();
98
+ writeMotionStyle(element, {
99
+ translate: null,
100
+ scale: null,
101
+ opacity: null
102
+ });
103
+ }
104
+ function travel(spring, from) {
105
+ const velocity = spring.velocity;
106
+ spring.set(from);
107
+ spring.to(0, {
108
+ preset: springs.snappy,
109
+ velocity
110
+ });
111
+ }
112
+ function leave(element, before, target) {
113
+ if (!onScreen(before)) return;
114
+ const box = container.getBoundingClientRect();
115
+ if (getComputedStyle(container).position === "static") container.style.position = "relative";
116
+ const ghost = visualCopy(element);
117
+ ghost.setAttribute(ghostAttribute, "");
118
+ Object.assign(ghost.style, {
119
+ boxSizing: "border-box",
120
+ height: `${before.height}px`,
121
+ left: `${before.left - box.left - container.clientLeft + container.scrollLeft}px`,
122
+ margin: "0",
123
+ pointerEvents: "none",
124
+ position: "absolute",
125
+ top: `${before.top - box.top - container.clientTop + container.scrollTop}px`,
126
+ width: `${before.width}px`
127
+ });
128
+ writeMotionStyle(ghost, {
129
+ translate: null,
130
+ scale: null,
131
+ opacity: null,
132
+ filter: null
133
+ });
134
+ container.append(ghost);
135
+ const entry = {
136
+ element: ghost,
137
+ stop: () => {}
138
+ };
139
+ const end = () => {
140
+ entry.stop();
141
+ ghost.remove();
142
+ ghosts.delete(entry);
143
+ };
144
+ ghosts.add(entry);
145
+ if (prefersReducedMotion()) {
146
+ const tween = playTween(.15, (p) => writeMotionStyle(ghost, { opacity: (1 - p).toFixed(3) }));
147
+ entry.stop = tween.stop;
148
+ tween.done.then(end);
149
+ return;
150
+ }
151
+ if (target) {
152
+ const to = center(target.getBoundingClientRect());
153
+ const from = center(before);
154
+ const tween = playTween(leaveDuration, (p) => {
155
+ writeMotionStyle(ghost, {
156
+ translate: `${((to.x - from.x) * p).toFixed(2)}px ${((to.y - from.y) * p).toFixed(2)}px`,
157
+ scale: (1 - .8 * p).toFixed(4),
158
+ opacity: (1 - p).toFixed(3),
159
+ filter: p > 0 ? `blur(${(3 * p).toFixed(2)}px)` : null
160
+ });
161
+ }, leaveEasing);
162
+ entry.stop = tween.stop;
163
+ tween.done.then(end);
164
+ return;
165
+ }
166
+ const spring = createSpring(1, (value) => {
167
+ writeMotionStyle(ghost, {
168
+ scale: (slotScale + .09999999999999998 * value).toFixed(4),
169
+ opacity: Math.max(0, value).toFixed(3)
170
+ });
171
+ if (value < .02) end();
172
+ }, fold);
173
+ entry.stop = () => spring.stop();
174
+ spring.to(0);
175
+ }
176
+ return {
177
+ measure() {
178
+ snapshot = /* @__PURE__ */ new Map();
179
+ for (const element of items(container)) {
180
+ const rect = element.getBoundingClientRect();
181
+ if (!rect.width && !rect.height) continue;
182
+ const now = center(rect);
183
+ const shift = offset(motions.get(element));
184
+ snapshot.set(element, {
185
+ x: now.x - shift.x,
186
+ y: now.y - shift.y,
187
+ rect
188
+ });
189
+ }
190
+ },
191
+ play(play = {}) {
192
+ const before = snapshot;
193
+ snapshot = /* @__PURE__ */ new Map();
194
+ const off = isMotionOff(container);
195
+ const current = items(container);
196
+ const present = new Set(current);
197
+ const reads = current.map((element) => {
198
+ const rect = element.getBoundingClientRect();
199
+ const shift = offset(motions.get(element));
200
+ const now = center(rect);
201
+ return {
202
+ element,
203
+ rect,
204
+ layout: {
205
+ x: now.x - shift.x,
206
+ y: now.y - shift.y
207
+ }
208
+ };
209
+ });
210
+ const origins = reads.map(({ element }) => {
211
+ if (before.has(element) || !play.origin) return void 0;
212
+ return (typeof play.origin === "function" ? play.origin(element) : play.origin)?.getBoundingClientRect();
213
+ });
214
+ for (const [element, { rect }] of before) {
215
+ if (present.has(element)) continue;
216
+ stopItem(element);
217
+ if (!off && !options.movesOnly && !element.hasAttribute("data-motion-leaving")) leave(element, rect, play.target);
218
+ }
219
+ starting = true;
220
+ reads.forEach(({ element, rect, layout }, index) => {
221
+ if (off) return stopItem(element);
222
+ const old = before.get(element);
223
+ if (old) {
224
+ const dx = old.x - layout.x;
225
+ const dy = old.y - layout.y;
226
+ if (Math.abs(dx) < .5 && Math.abs(dy) < .5) return;
227
+ if (!onScreen(old.rect) && !onScreen(rect)) return stopItem(element);
228
+ const motion = motionOf(element);
229
+ travel(motion.x, motion.x.value + dx);
230
+ travel(motion.y, motion.y.value + dy);
231
+ return;
232
+ }
233
+ if (!onScreen(rect) || options.movesOnly) return;
234
+ const motion = motionOf(element);
235
+ const origin = origins[index];
236
+ if (prefersReducedMotion()) motion.from = {
237
+ x: 0,
238
+ y: 0,
239
+ scale: 1
240
+ };
241
+ else if (origin) {
242
+ const start = center(origin);
243
+ const scale = Math.min(1, Math.max(.2, Math.min(origin.width / (rect.width || 1), origin.height / (rect.height || 1))));
244
+ motion.from = {
245
+ x: start.x - layout.x,
246
+ y: start.y - layout.y,
247
+ scale
248
+ };
249
+ } else motion.from = {
250
+ x: 0,
251
+ y: 0,
252
+ scale: slotScale
253
+ };
254
+ motion.grow.set(0);
255
+ motion.grow.to(1, prefersReducedMotion() ? { tween: .15 } : { preset: grow });
256
+ });
257
+ starting = false;
258
+ },
259
+ destroy() {
260
+ for (const element of motions.keys()) stopItem(element);
261
+ for (const ghost of ghosts) {
262
+ ghost.stop();
263
+ ghost.element.remove();
264
+ }
265
+ ghosts.clear();
266
+ snapshot = /* @__PURE__ */ new Map();
267
+ }
268
+ };
269
+ }
270
+ //#endregion
271
+ export { createMotionList as t };
@@ -1,4 +1,4 @@
1
- import { r as useUIComponent } from "./nuxt-ui-DSQFzq3s.js";
1
+ import { r as useUIComponent } from "./nuxt-ui-CgvMzO5v.js";
2
2
  import { t as uiErrorDiagnostics } from "./error-diagnostics-SXtnk6bz.js";
3
3
  import { a as addStyles, c as src_default, d as src_default$1, f as src_default$3, i as rowsOf, l as src_default$2, m as isElement$2, o as typesetCss, p as childrenOf$1, s as theme, t as Properties } from "./vue-DGstVdGn.js";
4
4
  import { n as editorHandlersKey, t as createEditorHandlers } from "./handlers-DMl-Na3x.js";
@@ -187,8 +187,8 @@ declare const MarkdownEditor: import("vue").DefineComponent<import("vue").Extrac
187
187
  modelValue: string;
188
188
  accept: (file: File) => boolean;
189
189
  plugins: readonly import("comark").ComarkPlugin<any, any>[];
190
- editor: Editor;
191
190
  upload: string | MarkdownEditorUpload;
191
+ editor: Editor;
192
192
  extensions: AnyExtension[];
193
193
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
194
194
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as MarkdownEditorUpload, r as blobUpload, t as MarkdownEditor } from "./markdown-editor-DqdZfIEn.js";
1
+ import { n as MarkdownEditorUpload, r as blobUpload, t as MarkdownEditor } from "./markdown-editor-wQF0yD5o.js";
2
2
  import { PropType, VNode } from "vue";
3
3
  import { Editor, JSONContent } from "@tiptap/core";
4
4
  import { PluginKey } from "@tiptap/pm/state";
@@ -1,3 +1,3 @@
1
- import { n as blobUpload, t as MarkdownEditor } from "./markdown-editor-CMbNZOdN.js";
1
+ import { n as blobUpload, t as MarkdownEditor } from "./markdown-editor-Dfl2DgPS.js";
2
2
  import { n as editorHandlersKey, r as mapEditorItems, t as createEditorHandlers } from "./handlers-DMl-Na3x.js";
3
3
  export { MarkdownEditor, blobUpload, createEditorHandlers, editorHandlersKey, mapEditorItems };
@@ -0,0 +1,4 @@
1
+ import { i as createHoldToDelete, n as HoldToDeleteOptions, r as HoldToDeleteState, t as HoldToDelete } from "../hold-to-delete-DjWzRDyY.js";
2
+ import { i as swapIcon, n as IconExit, r as SwapIconOptions, t as IconEnter } from "../icon-c5Jb_Tl7.js";
3
+ import { $ as MotionStateChange, A as tooltip, B as jelly, C as SpringPreset, D as setMotionSlowFactor, E as getMotionSlowFactor, F as press, G as InstallMotionOptions, H as disclosure, I as panel, J as MotionContentChange, K as installMotion, L as leave, M as switchKnob, N as slider, O as springs, P as select, Q as MotionStateAttribute, R as buttonIcon, S as SpringFrame, T as createSpring, U as check, V as divider, W as motionEffects, X as MotionPress, Y as MotionEffect, Z as MotionRoot, _ as shake, a as ProgressOptions, at as forceReducedMotion, b as morphText, c as MotionList, d as MotionListPlay, et as MotionStyleProperty, f as createMotionList, g as travel, h as TravelOptions, i as Progress, it as writeMotionStyle, j as toast, k as appear, l as MotionListOptions, m as TravelBox, n as DropFieldOptions, nt as listMotionEffects, o as ProgressPhase, ot as onReducedMotionChange, p as Travel, q as isMotionOff, r as createDropField, rt as motionStateAttributes, s as createProgress, st as prefersReducedMotion, t as DropField, tt as defineMotionEffect, u as MotionListOrigin, v as ring, w as SpringTarget, x as Spring, y as rollNumber, z as label } from "../motion-core-lHRF8PZz.js";
4
+ export { type DropField, type DropFieldOptions, type HoldToDelete, type HoldToDeleteOptions, type HoldToDeleteState, type IconEnter, type IconExit, type InstallMotionOptions, type MotionContentChange, type MotionEffect, type MotionList, type MotionListOptions, type MotionListOrigin, type MotionListPlay, type MotionPress, type MotionRoot, type MotionStateAttribute, type MotionStateChange, type MotionStyleProperty, type Progress, type ProgressOptions, type ProgressPhase, type Spring, type SpringFrame, type SpringPreset, type SpringTarget, type SwapIconOptions, type Travel, type TravelBox, type TravelOptions, 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 };