@vite-hub/ui 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +106 -46
- package/dist/AttachmentTitle-BWw0ck0T.js +110 -0
- package/dist/BubbleContent-B1a4e3vE.js +45 -0
- package/dist/Chat-BZxkf3Tt.js +112 -0
- package/dist/ChatMessage-Blr5F-zi.js +94 -0
- package/dist/CodeBlockContent-BjXJm8lO.js +92 -0
- package/dist/CodeBlockTitle-DYrYpc1U.js +99 -0
- package/dist/CommentRow-ViZ7r8nr.js +86 -0
- package/dist/CopyButton-Dtg_Oc9_.js +115 -0
- package/dist/Markdown-_w7feFzl.js +70 -0
- package/dist/MarkdownCodeBlock-B4j7x0H6.js +127 -0
- package/dist/MarkdownImage-CJN3myt4.js +111 -0
- package/dist/MessageHeader-CJ9eBHSS.js +61 -0
- package/dist/MessageParts-FVyYZNsn.js +57 -0
- package/dist/MessageScrollerViewport-BaTlWLki.js +142 -0
- package/dist/MorphText-CYTndbyp.js +36 -0
- package/dist/RollNumber-Bo2tzfAp.js +49 -0
- package/dist/TraceTitle-Cp0y7RRD.js +133 -0
- package/dist/agent-session-BwZSMi4S.d.ts +312 -0
- package/dist/agent-session-DhlTKCQG.js +875 -0
- package/dist/{announce-B0DLwflT.js → announce-CJNXaYbT.js} +1 -3
- package/dist/appendItems-hQ4aBd9Q.js +4047 -0
- package/dist/attachment-BllgHx9Q.d.ts +124 -0
- package/dist/attachment-DQMJNfj0.js +35 -0
- package/dist/avatar-stack-Bj1xUkzY.d.ts +4 -0
- package/dist/avatar-stack-nQErr0qn.js +72 -0
- package/dist/bubble-D3M2_InY.js +32 -0
- package/dist/bubble-DmplVxLr.d.ts +64 -0
- package/dist/chat-DWdyMSuj.d.ts +13 -0
- package/dist/chat-message-QLHnX_ED.d.ts +11 -0
- package/dist/chat-session-BOj5L3Ey.d.ts +29 -0
- package/dist/chat-session-hjZRL6jY.js +43 -0
- package/dist/choices-input-DqgXl5a-.d.ts +97 -0
- package/dist/client-BG-oCUtv-5i4sRwXP.js +6587 -0
- package/dist/code-block-Bp8y-XJp.d.ts +182 -0
- package/dist/code-block-CMERLfew.js +14 -0
- package/dist/code-view-26RY6dX8.js +137 -0
- package/dist/code-view-D8yYdFUc.d.ts +184 -0
- package/dist/{colors-BghReA9C-DEq4bhEP.js → colors-BghReA9C-A4M9YE0s.js} +1 -1
- package/dist/{comment-composer-BP-CJx7f.js → comment-composer-BUt6vbnr.js} +176 -38
- package/dist/{comment-composer-BI6CNJyO.d.ts → comment-composer-CIsbz-78.d.ts} +7 -7
- package/dist/comment-layer-BlVNORgj.d.ts +139 -0
- package/dist/comment-layer-Ck2H24oJ.js +1206 -0
- package/dist/comment-panel-Djx-KxVa.d.ts +173 -0
- package/dist/comment-selection-bar-CbOEI98x.d.ts +33 -0
- package/dist/comment-selection-bar-CxPkJxVl.js +145 -0
- package/dist/comment-send.css +2 -2
- package/dist/{comment-thread-5h93DXds.js → comment-thread-C_Q4UDaV.js} +78 -53
- package/dist/{comment-thread-DSkWODKG.d.ts → comment-thread-X6gYMNay.d.ts} +11 -14
- package/dist/comments-B1itauwb.d.ts +52 -0
- package/dist/{comments-D9dONfs9.js → comments-BaSrroRV.js} +65 -44
- package/dist/comments-BtD28xEn.js +390 -0
- package/dist/{comments-CnG_c-_c.d.ts → comments-ZfV6IZs8.d.ts} +15 -7
- package/dist/{comments-context-CrjhleVA.js → comments-context-3js2YFl2.js} +2 -2
- package/dist/components-CM5mZe0a.js +269 -0
- package/dist/{config-BDvnaVUn.js → config-CFwvNt4Y.js} +16 -29
- package/dist/{config-xL4EBeXw.d.ts → config-JmsTI7gs.d.ts} +21 -33
- package/dist/connection-status-BVSH2ZVo.js +72 -0
- package/dist/connection-status-g62BTn44.d.ts +37 -0
- package/dist/copy-button-CRiXUFsl.d.ts +17 -0
- package/dist/device-frame-BW6IjB6P.d.ts +78 -0
- package/dist/device-frame-DDWoyB-G.js +515 -0
- package/dist/diffs-BTKaVnsb.d.ts +272 -0
- package/dist/diffs.d.ts +3 -0
- package/dist/{pierre-code-view-C49BVDrc.js → diffs.js} +147 -4223
- package/dist/{draw-DzSmD7uo-Cb7s9kxJ.js → draw-DzSmD7uo-BvtKi0oE.js} +2 -2
- package/dist/drop-field-C0bXv1J-.d.ts +35 -0
- package/dist/drop-field-DKpYQ3tO.js +77 -0
- package/dist/editor-BsOTjnnN.d.ts +540 -0
- package/dist/{markdown-editor-3gY9MLvy.js → editor-DJPUs1nt.js} +877 -116
- package/dist/editor.d.ts +2 -0
- package/dist/editor.js +3 -0
- package/dist/element-BpjNQvZ0.js +6 -0
- package/dist/{file-tree-CRFIdtzw.js → file-tree-B4JKbp4r.js} +19 -18
- package/dist/{file-tree-DOtkeBaq.d.ts → file-tree-BdnKA6UA.d.ts} +33 -8
- package/dist/file-tree-DDSIafDn.d.ts +22 -0
- package/dist/file-tree-DS5shGSL.js +46 -0
- package/dist/file-tree.d.ts +2 -0
- package/dist/file-tree.js +1 -0
- package/dist/files-cuVXzWlx.js +30 -0
- package/dist/filter-search-C9e6sGij.d.ts +28 -0
- package/dist/filter-search-COZsoRiR.js +73 -0
- package/dist/formatCSSVariablePrefix-DLS1Ed1_.js +5 -0
- package/dist/headless-2IcUWHMq.d.ts +51 -0
- package/dist/headless.d.ts +7 -4
- package/dist/headless.js +5 -3
- package/dist/highlight.d.ts +2 -0
- package/dist/highlight.js +1 -0
- package/dist/{highlights-C2AbEdDI.js → highlights-8Al0-h-v.js} +3 -2
- package/dist/{hold-to-delete-BSMrpE-i.d.ts → hold-to-delete-CQc1JaG_.d.ts} +7 -0
- package/dist/{hold-to-delete-Cludb56v.js → hold-to-delete-CcQbfiQx.js} +111 -20
- package/dist/hold-to-delete-cOPqQ9FJ.js +85 -0
- package/dist/hold-to-delete-ksBE7wxc.d.ts +58 -0
- package/dist/index-9Z6Gwtnf.d.ts +77 -0
- package/dist/{index-B2cbt3py.d.ts → index-D3-uYBqH.d.ts} +1 -1
- package/dist/index.d.ts +165 -52
- package/dist/index.js +127 -670
- package/dist/markdown-BLALLOc0.d.ts +45 -0
- package/dist/{markdown-renderer-BgsmNqv7.js → markdown-DDyOdYq_.js} +13044 -12356
- package/dist/{parts/components/markdown-renderer.d.ts → markdown-DkDxdpMU.d.ts} +10 -7
- package/dist/markdown-editor.d.ts +51 -98
- package/dist/markdown-editor.js +70 -3
- package/dist/markdown.d.ts +2 -0
- package/dist/markdown.js +1 -0
- package/dist/marker-CvcWZ3Zp.d.ts +59 -0
- package/dist/marker-DNL6QR3L.js +63 -0
- package/dist/message-BwivYIEl.js +13 -0
- package/dist/message-DEq4K5cQ.d.ts +72 -0
- package/dist/message-parts-B1BZFVKe.d.ts +3 -0
- package/dist/message-parts-CG3gNWn8.d.ts +11 -0
- package/dist/message-parts.d.ts +2 -0
- package/dist/message-parts.js +1 -0
- package/dist/message-scroller-D7AvM31v.d.ts +41 -0
- package/dist/motion/core.d.ts +4 -4
- package/dist/motion/core.js +5 -11
- package/dist/motion-BH6ShUam.d.ts +12 -0
- package/dist/{effects-DEoFFycD.js → motion-core-BdTfxAhY.js} +1779 -55
- package/dist/{motion-core-DNl7TR1T.d.ts → motion-core-BfIefToe.d.ts} +32 -74
- package/dist/motion-dPwxx3Wk.js +76 -0
- package/dist/{install-qNaj4OY4.js → motion-itHFtXwA.js} +1 -1
- package/dist/motion-list-BBbz93WT.js +49 -0
- package/dist/motion.d.ts +5 -14
- package/dist/motion.js +6 -13
- package/dist/nuxt-ui-CPdiTwwD.js +22 -0
- package/dist/nuxt.d.ts +9 -5
- package/dist/nuxt.js +28 -32
- package/dist/parts/components/agent-session.d.ts +2 -252
- package/dist/parts/components/agent-session.js +1 -639
- package/dist/parts/components/attachment.d.ts +2 -85
- package/dist/parts/components/attachment.js +3 -72
- package/dist/parts/components/avatar-stack.d.ts +3 -2
- package/dist/parts/components/avatar-stack.js +1 -60
- package/dist/parts/components/bubble.d.ts +2 -69
- package/dist/parts/components/bubble.js +3 -52
- package/dist/parts/components/chat-message.d.ts +3 -25
- package/dist/parts/components/chat-message.js +1 -50
- package/dist/parts/components/chat-session.d.ts +2 -26
- package/dist/parts/components/chat-session.js +1 -37
- package/dist/parts/components/chat.d.ts +3 -52
- package/dist/parts/components/chat.js +1 -105
- package/dist/parts/components/code-block.d.ts +2 -102
- package/dist/parts/components/code-block.js +4 -109
- package/dist/parts/components/code-view.d.ts +3 -268
- package/dist/parts/components/code-view.js +1 -1
- package/dist/parts/components/comment-composer.d.ts +1 -1
- package/dist/parts/components/comment-composer.js +1 -1
- package/dist/parts/components/comment-layer.d.ts +1 -1
- package/dist/parts/components/comment-layer.js +1 -645
- package/dist/parts/components/comment-panel.d.ts +2 -2
- package/dist/parts/components/comment-panel.js +49 -40
- package/dist/parts/components/comment-selection-bar.d.ts +2 -2
- package/dist/parts/components/comment-selection-bar.js +1 -116
- package/dist/parts/components/comment-thread.d.ts +2 -2
- package/dist/parts/components/comment-thread.js +1 -3
- package/dist/parts/components/comments.d.ts +8 -9
- package/dist/parts/components/comments.js +6 -9
- package/dist/parts/components/connection-status.d.ts +2 -36
- package/dist/parts/components/connection-status.js +1 -64
- package/dist/parts/components/copy-button.d.ts +3 -126
- package/dist/parts/components/copy-button.js +3 -226
- package/dist/parts/components/device-frame.d.ts +2 -128
- package/dist/parts/components/device-frame.js +1 -470
- package/dist/parts/components/drop-field.d.ts +2 -67
- package/dist/parts/components/drop-field.js +1 -76
- package/dist/parts/components/file-tree.d.ts +3 -2
- package/dist/parts/components/file-tree.js +3 -1
- package/dist/parts/components/filter-search.d.ts +2 -45
- package/dist/parts/components/filter-search.js +1 -57
- package/dist/parts/components/hold-to-delete.d.ts +2 -80
- package/dist/parts/components/hold-to-delete.js +1 -75
- package/dist/parts/components/markdown.d.ts +3 -45
- package/dist/parts/components/markdown.js +1 -46
- package/dist/parts/components/marker.d.ts +2 -32
- package/dist/parts/components/marker.js +1 -22
- package/dist/parts/components/message-parts.d.ts +3 -25
- package/dist/parts/components/message-parts.js +1 -45
- package/dist/parts/components/message.d.ts +2 -32
- package/dist/parts/components/message.js +3 -22
- package/dist/parts/components/motion-list.d.ts +2 -40
- package/dist/parts/components/motion-list.js +1 -41
- package/dist/parts/components/motion.d.ts +5 -118
- package/dist/parts/components/motion.js +4 -171
- package/dist/parts/components/patch-parsers.d.ts +1 -1
- package/dist/parts/components/progress.d.ts +2 -39
- package/dist/parts/components/progress.js +1 -53
- package/dist/parts/components/prompt-input.d.ts +2 -134
- package/dist/parts/components/prompt-input.js +1 -253
- package/dist/parts/components/relative-time.d.ts +2 -71
- package/dist/parts/components/relative-time.js +1 -1
- package/dist/parts/components/status.d.ts +2 -58
- package/dist/parts/components/status.js +1 -47
- package/dist/parts/components/sync-status.d.ts +2 -22
- package/dist/parts/components/sync-status.js +1 -48
- package/dist/parts/components/tool-list.d.ts +2 -28
- package/dist/parts/components/tool-list.js +1 -118
- package/dist/parts/components/trace-run.d.ts +2 -25
- package/dist/parts/components/trace-run.js +1 -89
- package/dist/parts/components/trace.d.ts +2 -59
- package/dist/parts/components/trace.js +1 -76
- package/dist/parts/composables/attachments.js +75 -1
- package/dist/parts/headless/choices-input.d.ts +2 -2
- package/dist/parts/headless/choices-input.js +49 -37
- package/dist/parts/headless/comments.d.ts +1 -1
- package/dist/parts/headless/comments.js +1 -1
- package/dist/parts/headless/message-scroller.d.ts +2 -2
- package/dist/parts/headless/message-scroller.js +211 -309
- package/dist/parts/headless/relative-time.d.ts +2 -0
- package/dist/parts/headless/relative-time.js +1 -0
- package/dist/parts/workspace/browser-support-notice.d.ts +1 -1
- package/dist/parts/workspace/browser-support-notice.js +6 -5
- package/dist/parts/workspace/connect-panel.js +1 -1
- package/dist/parts/workspace/runners/web-container.js +2 -2
- package/dist/parts/workspace/workspace-bar.d.ts +1 -1
- package/dist/parts/workspace/workspace-bar.js +1 -1
- package/dist/parts/workspace/workspace-boot-status.d.ts +1 -1
- package/dist/parts/workspace/workspace-boot-status.js +1 -206
- package/dist/parts/workspace/workspace-editor-head.d.ts +1 -1
- package/dist/parts/workspace/workspace-editor-head.js +1 -1
- package/dist/parts/workspace/workspace-editor.d.ts +2 -2
- package/dist/parts/workspace/workspace-examples.js +1 -1
- package/dist/parts/workspace/workspace-file-tree.d.ts +1 -1
- package/dist/parts/workspace/workspace-file-tree.js +3 -2
- package/dist/parts/workspace/workspace-guide.js +1 -1
- package/dist/parts/workspace/workspace-preview.d.ts +1 -1
- package/dist/parts/workspace/workspace-preview.js +14 -12
- package/dist/parts/workspace/workspace-shell.d.ts +1 -1
- package/dist/parts/workspace/workspace-shell.js +11 -11
- package/dist/parts/workspace/workspace-sidebar.d.ts +3 -3
- package/dist/parts/workspace/workspace-sidebar.js +2 -2
- package/dist/parts/workspace/workspace-start.js +1 -1
- package/dist/parts/workspace/workspace-steps.js +1 -1
- package/dist/parts/workspace/workspace.d.ts +4 -4
- package/dist/parts/workspace/workspace.js +5 -5
- package/dist/press-BuEC-XvZ.d.ts +83 -0
- package/dist/progress-Ch0fA-bf.d.ts +8 -0
- package/dist/progress-D_9sG648.js +47 -0
- package/dist/prompt-input-CRXEJBAK.js +412 -0
- package/dist/prompt-input-j4OFTF5p.d.ts +116 -0
- package/dist/relative-time-BnJfjeEm.js +131 -0
- package/dist/relative-time-BuP-Gvzn.d.ts +43 -0
- package/dist/{relative-time-DJnw45tr.js → relative-time-Dz2DR4eb.js} +64 -114
- package/dist/relative-time-grHFu1kY.d.ts +11 -0
- package/dist/{ring-BN4d8vtw.js → ring-DoL9jivj.js} +64 -14
- package/dist/runtime/nuxt-plugin.js +2 -5
- package/dist/{sankey-CAYwt82B-BAAk7WkJ.js → sankey-CAYwt82B-e6k34wtW.js} +3 -3
- package/dist/{shiki-CbfEu_Az.js → shiki-CxzM_xNo.js} +3 -2
- package/dist/stand-ins-CuKM1UH1.js +339 -0
- package/dist/status-B2Yhrwv8.js +67 -0
- package/dist/status-ySiRa-8O.d.ts +38 -0
- package/dist/{stream-tokenizer-ByC3l0HQ.js → stream-tokenizer-BsjV6wxW.js} +1 -1
- package/dist/styles.css +4315 -3362
- package/dist/sync-status-BRroyOre.js +59 -0
- package/dist/sync-status-D4KdGO6y.d.ts +35 -0
- package/dist/theme.css +3 -0
- package/dist/theme.d.ts +14 -0
- package/dist/theme.js +19 -8
- package/dist/{themes-DKugPHlg.js → themes-B0_ioVT0.js} +1 -1
- package/dist/tool-list-DDaCqpR6.js +209 -0
- package/dist/tool-list-DMRPM0Yi.d.ts +50 -0
- package/dist/trace-KCBvOsw_.d.ts +113 -0
- package/dist/trace-run-Dk962P5a.d.ts +49 -0
- package/dist/trace-run-nh6FIsl6.js +202 -0
- package/dist/{opt-out-D66l60sg.js → tween-lVMRCUEv.js} +60 -1
- package/dist/types-BF_U0tgp.d.ts +74 -0
- package/dist/types-CTk3aNb5.d.ts +15 -0
- package/dist/types-D0a3i4Fw.d.ts +21 -0
- package/dist/types-DTecvcsZ.d.ts +35 -0
- package/dist/types-D_BWab7g.d.ts +75 -0
- package/dist/types-RHaQ4gj1.d.ts +27 -0
- package/dist/ui-components-CKQAPI-W.js +7 -0
- package/dist/unwrapDefault-CExq-4rm.js +5 -0
- package/dist/use-copy-DK1SSZkh.js +66 -0
- package/dist/utils-hi9-xROt.js +37 -0
- package/dist/vite.d.ts +0 -1
- package/dist/vite.js +8 -14
- package/dist/{vue-Cs_HmYsp.js → vue-DdYvDVOr.js} +1 -1
- package/dist/workspace-boot-status-CyGlJS06.js +216 -0
- package/dist/{workspace-shell-ChCwWPyv.d.ts → workspace-shell-B4A7CINd.d.ts} +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +1 -2
- package/package.json +49 -15
- package/dist/attachments-DgwoQZKY.js +0 -88
- package/dist/avatar-stack-C0IKwj6g.d.ts +0 -57
- package/dist/choices-input-BUf-QqGj.d.ts +0 -92
- package/dist/code-view-Cg4nyTNA.js +0 -172
- package/dist/comment-attachments-CMpYOJod.js +0 -19
- package/dist/comment-layer-Ba2DV4L7.d.ts +0 -174
- package/dist/comment-list-BJdZu0DS.d.ts +0 -60
- package/dist/comment-panel-DISGe7yM.d.ts +0 -206
- package/dist/comment-person-D_IyIjXo.js +0 -39
- package/dist/comment-pin-C5UeLPTa.d.ts +0 -66
- package/dist/comment-row-DPMWI5Z0.js +0 -38
- package/dist/comment-selection-bar-CVuS-FNL.d.ts +0 -40
- package/dist/comment-send-CH46zawK.js +0 -275
- package/dist/comment-send-MmxFsOQf.d.ts +0 -23
- package/dist/drop-field-CNZgwFVO.js +0 -162
- package/dist/editor-BuByBIkJ.js +0 -620
- package/dist/format-Bc9m7-r0.js +0 -38
- package/dist/handlers-CnbkvXjX.js +0 -181
- package/dist/icon-XZaCUZTG.d.ts +0 -29
- package/dist/image-preview-EqfPcFZ9.js +0 -104
- package/dist/index-B_PSX-5h.d.ts +0 -69
- package/dist/list-DUTAo0uC.js +0 -270
- package/dist/markdown-editor-B7gD60tp.d.ts +0 -189
- package/dist/message-scroller-a6qaYHno.d.ts +0 -173
- package/dist/nuxt-ui-7ByUrymx.js +0 -43
- package/dist/parts/components/comment-list.d.ts +0 -2
- package/dist/parts/components/comment-list.js +0 -172
- package/dist/parts/components/comment-pin.d.ts +0 -2
- package/dist/parts/components/comment-pin.js +0 -74
- package/dist/parts/components/comment-send.d.ts +0 -2
- package/dist/parts/components/comment-send.js +0 -1
- package/dist/parts/components/markdown-editor.d.ts +0 -2
- package/dist/parts/components/markdown-editor.js +0 -1
- package/dist/parts/components/markdown-renderer.js +0 -1
- package/dist/payload-text-DQNRbJY5.js +0 -31
- package/dist/progress-DL9k-ERG.js +0 -265
- package/dist/registry-DAIjCjWd.js +0 -77
- package/dist/slot-part-BWHvQ3mK.js +0 -25
- package/dist/text-BWzZFnGY.js +0 -822
- package/dist/travel-CwVhU_GS.js +0 -180
- package/dist/tween-Dv3IIIQG.js +0 -61
- package/dist/types-Ceh7h7NT.d.ts +0 -31
- package/dist/visual-copy-CHHBfJ6O.js +0 -14
- package/dist/vue-BlknIGIm.js +0 -2501
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://github.com/vite-hub/vitehub/blob/main/LICENSE)
|
|
6
6
|
[](https://vitehub.dev/docs)
|
|
7
7
|
|
|
8
|
-
Vue primitives for AI chat, traces, diffs, and file trees. The styled components
|
|
8
|
+
Vue primitives for AI chat, traces, diffs, and file trees. The styled components render [ui-sdk](https://ui-sdk.dev) components by default, or the [Nuxt UI](https://ui.nuxt.com/) ones that an app passes, and render [AI SDK](https://ai-sdk.dev/) message contracts; the headless entry point provides message-scrolling behavior without the styled component layer.
|
|
9
9
|
|
|
10
10
|
`Markdown` accepts a string or a parsed Content page. Comark UI block components and document styles are bundled, so readers do not install Comark packages or assemble a component map. `vite-hub/nuxt` auto-imports the primitive; Vite apps import it from `@vite-hub/ui`.
|
|
11
11
|
|
|
@@ -18,28 +18,31 @@ Markdown images and image attachments use compact thumbnails with an expanded pr
|
|
|
18
18
|
| `@vite-hub/ui` | Every styled component: chat, prompt, Markdown, session, trace, diff, file tree, comments, and the shadcn/ui part families | State, transport, persistence, routes, and authorization |
|
|
19
19
|
| `@vite-hub/ui/headless` | Message viewport, live-edge following, prepend preservation, message jumps, `useComments()`, and the Choices input parts | Markup and styles; Nuxt UI is not required |
|
|
20
20
|
| `@vite-hub/ui/markdown-editor` | `MarkdownEditor`, with Tiptap | Uploads and where the Markdown is saved |
|
|
21
|
+
| `@vite-hub/ui/markdown` | `MarkdownRenderer`, the Comark renderer that the `markdown` item wraps. No Nuxt UI | The component map and the plugins |
|
|
22
|
+
| `@vite-hub/ui/message-parts` | `MessagePartsRenderer`, the comark-chat renderer that the `message-parts` item wraps. No Nuxt UI | The Markdown and file slots |
|
|
23
|
+
| `@vite-hub/ui/editor` | `useMarkdownEditor()`, `blobUpload()`, the editor handlers, and the ui-sdk editor menus that the `markdown-editor` item uses. No Nuxt UI | Uploads and where the Markdown is saved |
|
|
21
24
|
| `@vite-hub/ui/workspace` | A live app in the browser: editor, terminal, preview, boot checklist, Connect, and `Workspace` with the `webContainer()` and `render()` runners, with CodeMirror and xterm | Files, tokens, and the cross-origin isolated route |
|
|
22
25
|
| `@vite-hub/ui/motion` | The motion layer: press, toggle, select, drag, and appear motion by role, the shared spring engine, and reduced motion. No Vue, so a plain TypeScript page or a shadow root can use it | Nothing: `createViteHubUI()` and the Nuxt module install it |
|
|
23
26
|
| `@vite-hub/ui/motion/core` | The same layer, where `installMotion(root, { effects })` runs only the effects that you list, such as `pressEffect`, so a small script bundles only those | Which effects the script runs |
|
|
24
27
|
| `@vite-hub/ui/playground` | Share links and zips for any playground, with no UI. It runs in Node too | Where the links and zips go |
|
|
25
28
|
| `@vite-hub/ui/theme` and `@vite-hub/ui/theme.css` | `vitehubTheme`, the Nuxt UI app config, and the tokens and focus ring. The tokens use shadcn/ui names, such as `--background` and `--radius`, which an app can override. Import the theme in `nuxt.config` or `app.config` | Loading Nuxt UI and Tailwind CSS |
|
|
26
|
-
| `@vite-hub/ui/vite` | Vue with Vite setup | Configures the
|
|
27
|
-
| `@vite-hub/ui/styles.css` | The styles of every part | Tailwind CSS and the Nuxt UI
|
|
29
|
+
| `@vite-hub/ui/vite` | Vue with Vite setup | Configures the Comark Vite plugin |
|
|
30
|
+
| `@vite-hub/ui/styles.css` | The styles of every part | The `@vite-hub/kit` style family, or Tailwind CSS and Nuxt UI when the app passes Nuxt UI components |
|
|
28
31
|
| `@vite-hub/ui/comment-marks.css` | Comment pins, areas, and text highlights in plain CSS, for a page or a shadow root without Vue. `styles.css` includes it | Rendering the marks with their data attributes |
|
|
29
32
|
|
|
30
33
|
Import components from the root. A production build keeps only the components that the app imports. `markdown-editor` and `workspace` have their own entries because their dependencies are large, and a chat page must not load them. The components do not need a ViteHub Agent: `Chat` and `PromptInput` render the messages and status of any AI SDK chat, such as `new Chat()` of `@ai-sdk/vue` on a route that returns `streamText().toUIMessageStreamResponse()`.
|
|
31
34
|
|
|
32
35
|
`vite-hub/nuxt` registers the `vitehub` Iconify collection, so `i-vitehub-kv` works in `UIcon`. The icon rail of ViteHub docs and the Console is in `@vite-hub/docs/primitive-rail`. Its styles stay in `@vite-hub/ui/styles.css`.
|
|
33
36
|
|
|
34
|
-
The parts `Message`, `Bubble`, `Marker`, `Trace`, and `Attachment` follow the [shadcn/ui agentic components](https://ui.shadcn.com/docs/changelog/2026-10-ai-elements): the same part names
|
|
37
|
+
The parts `Message`, `Bubble`, `Marker`, `Trace`, and `Attachment` follow the [shadcn/ui agentic components](https://ui.shadcn.com/docs/changelog/2026-10-ai-elements): the same part names and `data-slot` attributes. `Message`, `Bubble`, `Attachment`, and `PromptInput` are also `@vitehub` registry items, with the props of the ViteHub contract. Their default styles map shadcn/ui tokens to Nuxt UI tokens and live in the `components` layer of `styles.css`, so Tailwind utility classes on a part override them. Import them under another name, for example `import { Message as VhMessage } from "@vite-hub/ui"`, when the application already has a `Message` or `Trace` component.
|
|
35
38
|
|
|
36
|
-
The package
|
|
39
|
+
The package declares `vue` and `ai` as required peers. The Vite integration requires `vite`, an optional peer. The styled components need no Nuxt UI: they render the ui-sdk components unless the app passes others (see [the ui-sdk set](#the-ui-sdk-set)).
|
|
37
40
|
|
|
38
|
-
`RelativeTime`
|
|
41
|
+
`RelativeTime` shows the full date in a ui-sdk tooltip, the `@vitehub/tooltip` item, once it mounts. Set `plain` to leave it out.
|
|
39
42
|
|
|
40
43
|
## Edit Markdown
|
|
41
44
|
|
|
42
|
-
`MarkdownEditor` from `@vite-hub/ui/markdown-editor` edits Markdown with [comark-ui's editor](https://comark-ui.onmax.me/guide/editor/), a bubble toolbar, a "/" menu, and a drag handle
|
|
45
|
+
`MarkdownEditor` from `@vite-hub/ui/markdown-editor` edits Markdown with [comark-ui's editor](https://comark-ui.onmax.me/guide/editor/), a bubble toolbar, a "/" menu, and a drag handle. The editor uses ui-sdk parts unless the app overrides them. Bind the Markdown with `v-model`, or pass `editor` with a Tiptap editor the app made, such as a Realtime room's. A document that the editor can't save unchanged opens read-only.
|
|
43
46
|
|
|
44
47
|
Pass `upload` to take pasted and dropped images, video, and audio, and to add Image to the "/" menu, which opens the file picker. Each file shows a placeholder with its percentage only on your screen, so a collaborative room never holds a half-uploaded file. A string is a route that returns `blob.handleUpload()`, and the store must be served (`blob.serve`) so the file has a URL:
|
|
45
48
|
|
|
@@ -52,7 +55,7 @@ const markdown = ref("# Release notes\n");
|
|
|
52
55
|
</script>
|
|
53
56
|
|
|
54
57
|
<template>
|
|
55
|
-
<MarkdownEditor v-model="markdown" upload="/api/uploads" @
|
|
58
|
+
<MarkdownEditor v-model="markdown" upload="/api/uploads" @error="({ error, file }) => console.error(file.name, error)" />
|
|
56
59
|
</template>
|
|
57
60
|
```
|
|
58
61
|
|
|
@@ -71,7 +74,7 @@ export default defineEventHandler(async (event) => {
|
|
|
71
74
|
});
|
|
72
75
|
```
|
|
73
76
|
|
|
74
|
-
`upload` also takes a function, `(file, progress) => Promise<url>`, for any other storage; `blobUpload(route)` is the one a string uses. The default slot receives `{ editor }` for more menus. The entry isn't in the root barrel, so pages that only render Markdown don't load Tiptap. It needs
|
|
77
|
+
`upload` also takes a function, `(file, progress) => Promise<url>`, for any other storage; `blobUpload(route)` is the one a string uses. The default slot receives `{ editor }` for more menus. The entry isn't in the root barrel, so pages that only render Markdown don't load Tiptap. It needs these Tiptap packages: `@tiptap/core`, `@tiptap/pm`, `@tiptap/vue-3`, `@tiptap/starter-kit`, `@tiptap/extension-image`, `@tiptap/extension-list`, `@tiptap/extension-table`, `@tiptap/extension-drag-handle`, `@tiptap/extension-drag-handle-vue-3`, and `@floating-ui/dom`. The `@vitehub/markdown-editor` item adds them to the app. Start without `v-model` with `defaultValue`. A failed upload emits `error` with `{ error, file }`.
|
|
75
78
|
|
|
76
79
|
The menus run each item's `kind`, such as `{ kind: "heading", level: 2 }`, through the handlers that the editor provides. `createEditorHandlers()` returns them, and `mapEditorItems(editor, items)` turns editor items into dropdown entries with `active`, `disabled`, and `onSelect`, as Nuxt UI's `mapEditorItems()` does. Provide your own under `editorHandlersKey` to add kinds; both sets read them.
|
|
77
80
|
|
|
@@ -203,16 +206,18 @@ Load Tailwind, Nuxt UI, and the package styles in that order:
|
|
|
203
206
|
@import "@vite-hub/ui/styles.css";
|
|
204
207
|
```
|
|
205
208
|
|
|
206
|
-
|
|
209
|
+
The parts render the ui-sdk components by default. To keep Nuxt UI's look, pass the Nuxt UI components in a plugin, as [Nuxt UI apps](#nuxt-ui-apps) shows.
|
|
210
|
+
|
|
211
|
+
`vite-hub/nuxt` gives the components their icon names and adds the icons that they use to the `@nuxt/icon` client bundle, because `@nuxt/icon` does not scan dependencies. It also registers the `vitehub` collection, so names such as `<UIcon name="i-vitehub-kv" />` keep working. The Lucide collection must be installed in the application. It auto-imports public components such as `Chat`, `Markdown`, and `TraceRun`. No separate Vue plugin registration is needed. The stylesheet stays an explicit import.
|
|
207
212
|
|
|
208
213
|
`@vite-hub/ui/nuxt` is internal. `vite-hub/nuxt` and `@vite-hub/docs/nuxt` load it, and it can change in any release. Do not add it to Nuxt `modules`.
|
|
209
214
|
|
|
210
215
|
## Vue with Vite
|
|
211
216
|
|
|
212
|
-
Add the runtime peers to an existing Vue and Vite application:
|
|
217
|
+
Add the runtime peers and the kit style family to an existing Vue and Vite application:
|
|
213
218
|
|
|
214
219
|
```bash
|
|
215
|
-
pnpm add @vite-hub/ui @
|
|
220
|
+
pnpm add @vite-hub/ui @vite-hub/kit ai vue
|
|
216
221
|
pnpm add -D vite @vitejs/plugin-vue
|
|
217
222
|
```
|
|
218
223
|
|
|
@@ -229,36 +234,42 @@ export default defineConfig({
|
|
|
229
234
|
});
|
|
230
235
|
```
|
|
231
236
|
|
|
232
|
-
Register the
|
|
237
|
+
Register the ViteHub UI Vue plugin:
|
|
233
238
|
|
|
234
239
|
```ts
|
|
235
240
|
// src/main.ts
|
|
236
|
-
import NuxtUI from "@nuxt/ui/vue-plugin";
|
|
237
241
|
import { createViteHubUI } from "@vite-hub/ui";
|
|
238
242
|
import { createApp } from "vue";
|
|
239
243
|
import App from "./App.vue";
|
|
240
244
|
import "./assets/main.css";
|
|
241
245
|
|
|
242
|
-
createApp(App).use(
|
|
246
|
+
createApp(App).use(createViteHubUI()).mount("#app");
|
|
243
247
|
```
|
|
244
248
|
|
|
245
|
-
Load
|
|
249
|
+
Load the kit style family before the package styles:
|
|
246
250
|
|
|
247
251
|
```css
|
|
248
252
|
/* src/assets/main.css */
|
|
249
|
-
@
|
|
250
|
-
@import "@
|
|
253
|
+
@layer theme, base, kit, comark, components, utilities;
|
|
254
|
+
@import "@vite-hub/kit/styles/tokens.css";
|
|
255
|
+
@import "@vite-hub/kit/styles/default.css" layer(kit);
|
|
251
256
|
@import "@vite-hub/ui/styles.css";
|
|
252
257
|
```
|
|
253
258
|
|
|
259
|
+
For Nuxt UI's look, see [Nuxt UI apps](#nuxt-ui-apps).
|
|
260
|
+
|
|
254
261
|
Unlike `vite-hub/nuxt`, the Vite integration does not auto-register ViteHub UI components. Import them from `@vite-hub/ui` in each component or use the application's component-registration convention.
|
|
255
262
|
|
|
256
263
|
## Motion
|
|
257
264
|
|
|
258
|
-
Controls get the same motion from what a person does with them, not from code of their own (see [docs/design/motion.md](../../docs/design/motion.md)). `createViteHubUI()` installs the motion layer in the browser, and the Nuxt module does it through the same plugin.
|
|
265
|
+
Controls get the same motion from what a person does with them, not from code of their own (see [docs/design/motion.md](../../docs/design/motion.md)). `createViteHubUI()` installs the motion layer in the browser, and the Nuxt module does it through the same plugin. By default (press mode `"buttons"`), only compact native buttons squash on a pointer press: a `button` or an `input` of type `button`, `submit`, or `reset`. The control must have no `role` or `role="button"`, be under 48px high, and be at most four times as wide as it is high. Links, tabs, radios, options, menu items, `summary`, checkboxes, wide buttons, and `[role=button]` on other elements stay still. At its settled pressed scale, the control shrinks by at most 6px along its longer side in untransformed layout. The spring can briefly squash farther. An icon-only control squashes its icon by 15% and keeps its background still. Space and Enter do not squash. A pressed switch still grows its knob on a pointer or key press instead of squashing the whole control. Non-transformable inline controls keep their layout and do not squash, and a pointer press near the edge of a control stays still if a squash would risk missing the click. Under `prefers-reduced-motion`, the press stays still.
|
|
259
266
|
|
|
260
|
-
-
|
|
261
|
-
- Turn
|
|
267
|
+
- Opt any element into press squash with `data-motion-press`, or squash only its icon with `data-motion-press="icon"`. An opt-in does not pass down to children.
|
|
268
|
+
- Turn press squash off on an element or a subtree with `data-motion-press="none"`. An element's own `data-motion-press` beats `"none"` on an ancestor.
|
|
269
|
+
- Set the app press mode with `createViteHubUI({ motion: { press: "buttons" | "opt-in" | "all" } })`. `"buttons"` is the default, `"opt-in"` squashes only elements with `data-motion-press`, and `"all"` squashes every control role.
|
|
270
|
+
- Turn the whole layer off for one subtree with `data-motion="none"`, such as a canvas or an animated figure that draws its own motion.
|
|
271
|
+
- Turn the layer off for the app with `createViteHubUI({ motion: false })`.
|
|
272
|
+
- Without Vue, set the press mode with `setMotionPressMode("opt-in")` from `@vite-hub/ui/motion` before or after `installMotion()`.
|
|
262
273
|
- Without Vue, call it yourself. With no argument it covers the document. A surface on someone else's page, such as a bar in a shadow root, passes its host element and its shadow roots instead, so the page around it does not move:
|
|
263
274
|
|
|
264
275
|
```ts
|
|
@@ -281,13 +292,16 @@ const uninstall = installMotion(bar.attachShadow({ mode: "open" }), { effects: [
|
|
|
281
292
|
|
|
282
293
|
Four parts move with the helpers of the motion layer, for events that only the component knows:
|
|
283
294
|
|
|
284
|
-
- `MotionList` replaces `<TransitionGroup>`. Render keyed items in its slot: neighbors spring to their new place, a new item grows from `origin` (the row it duplicates) or from its slot, and a removed item folds away.
|
|
295
|
+
- `MotionList` replaces `<TransitionGroup>`. Render keyed items in its slot: neighbors spring to their new place, a new item grows from `origin` (the row it duplicates) or from its slot, and a removed item folds away. It renders a `div` with `data-slot="motion-list"`. The `#render` slot renders a `ul` or an `ol`.
|
|
285
296
|
- `Progress` shows work that runs: `value` from 0 to 1 fills the bar with a head, `null` shows a wave while the total is not known, and `done` draws a dot into a check. It has `role="progressbar"` and `aria-valuenow`.
|
|
286
|
-
- `DropField` is a label around a file input. The dots behind its text lean toward a dragged file. A click and the keyboard open the file picker. It emits `files`.
|
|
287
|
-
- `HoldToDelete` is a button that deletes when it is held. It emits `delete` (hide the item), shows Undo for `undoFor` ms (emits `undo`), and only then calls `commit`. Unmounting it during the Undo window commits. A click from a screen reader asks `confirm` first.
|
|
297
|
+
- `DropField` is a label around a file input. The dots behind its text lean toward a dragged file. A click and the keyboard open the file picker. It emits `select` with `{ files }`.
|
|
298
|
+
- `HoldToDelete` is a button that deletes when it is held. It emits `delete` (hide the item), shows Undo for `undoFor` ms (emits `undo`), and only then calls `commit`. Unmounting it during the Undo window commits. A click from a screen reader asks `confirm` first. `change` gets `{ status }` when its phase changes, and `error` gets `{ error }`.
|
|
288
299
|
|
|
289
300
|
```vue
|
|
290
|
-
<MotionList
|
|
301
|
+
<MotionList>
|
|
302
|
+
<template #render="{ props, children }">
|
|
303
|
+
<ul v-bind="props"><component :is="children" /></ul>
|
|
304
|
+
</template>
|
|
291
305
|
<li v-for="file in files" :key="file.id">{{ file.name }}</li>
|
|
292
306
|
</MotionList>
|
|
293
307
|
<Progress :value="upload.progress" :done="upload.done" label="Upload cover.png" />
|
|
@@ -305,9 +319,9 @@ For everything else, use the component or the helper:
|
|
|
305
319
|
| Vue | Helper in `@vite-hub/ui/motion` | Use it for |
|
|
306
320
|
| --- | --- | --- |
|
|
307
321
|
| `<MorphText :text="copied ? 'Copied' : 'Copy link'" />` | `morphText(element, text)` | A label outside a `UButton` |
|
|
308
|
-
| `<SwapIcon :name="icon" enter="draw"
|
|
322
|
+
| `<SwapIcon :name="icon" enter="draw" v-slot="{ name }"><UIcon :name="name" /></SwapIcon>` | `swapIcon(container, icon, { exit, enter })` | An icon that says what happened: `exit: "right"` for an arrow that leaves the way it points, `enter: "draw"` for a check or a spinner |
|
|
309
323
|
| `<RollNumber :value="count" />` | `rollNumber(element, value, format?)` | A count: only the changed digits roll, up when it grows, down when it shrinks |
|
|
310
|
-
| `<UButton v-ring="saved" />` | `ring(element)` | A finished action, such as saved or copied: a ring in the border color grows once and fades |
|
|
324
|
+
| `<UButton v-ring="saved" />` | `ring(element)` | A finished action, such as saved or copied: a ring in the border color grows once and fades. A button joined to others in a `UFieldGroup` rings the whole group |
|
|
311
325
|
|
|
312
326
|
`CopyButton` uses all of them. Each helper can be called again in the middle of its motion and continues from where it is. The element keeps the final text for screen readers the whole time and holds plain text again at the end. Under reduced motion a label, an icon, or a digit crossfades in 150ms, and there is no ring. Inside `data-motion="none"` the change happens at once.
|
|
313
327
|
|
|
@@ -315,33 +329,79 @@ The entry also has the spring engine (`createSpring`, `springs.snappy`, `springs
|
|
|
315
329
|
|
|
316
330
|
## The ui-sdk set
|
|
317
331
|
|
|
318
|
-
The styled parts render a few Nuxt UI
|
|
319
|
-
|
|
320
|
-
```ts
|
|
321
|
-
// src/main.ts
|
|
322
|
-
import { createViteHubUI, uiSdkComponents } from "@vite-hub/ui";
|
|
323
|
-
import { createApp } from "vue";
|
|
324
|
-
import App from "./App.vue";
|
|
325
|
-
import "./assets/main.css";
|
|
326
|
-
|
|
327
|
-
createApp(App).use(createViteHubUI({ components: uiSdkComponents })).mount("#app");
|
|
328
|
-
```
|
|
332
|
+
The styled parts render a few components by Nuxt UI's names: `UButton`, `UIcon`, `UInput`, `UModal`, `UTabs`, `UTooltip`, and `UDropdownMenu`. By default they render `uiSdkComponents`, the same names built on [ui-sdk](https://ui-sdk.dev) and styled by the `@vite-hub/kit` style family. The editor's `UEditorToolbar`, `UEditorSuggestionMenu`, and `UEditorDragHandle` defaults live in the editor entry so other parts do not pull in Tiptap. Load the kit styles:
|
|
329
333
|
|
|
330
334
|
```css
|
|
331
335
|
/* src/assets/main.css */
|
|
332
|
-
@layer theme, base,
|
|
336
|
+
@layer theme, base, kit, comark, components, utilities;
|
|
333
337
|
@import "@vite-hub/kit/styles/tokens.css";
|
|
334
|
-
@import "@vite-hub/kit/styles/default.css";
|
|
338
|
+
@import "@vite-hub/kit/styles/default.css" layer(kit);
|
|
335
339
|
@import "@vite-hub/ui/styles.css";
|
|
336
340
|
```
|
|
337
341
|
|
|
338
|
-
- `UIcon` draws the Lucide icons that the parts use. To show other names, such as your own in `createViteHubUI({ icons })`, pass your own `
|
|
342
|
+
- `UIcon` draws the Lucide icons that the parts use. To show other names, such as your own in `createViteHubUI({ icons })`, pass your own: `createViteHubUI({ components: { UIcon: MyIcon } })`.
|
|
339
343
|
- The buttons and fields keep the kit's `data-slot` (`button`, `input`), so a part's own name moves to `data-part`, for example `data-part="copy-button"`.
|
|
340
|
-
-
|
|
344
|
+
- `UTooltip` puts ui-sdk's `Tooltip` on the trigger. The content opens on hover and focus, above the trigger by default.
|
|
341
345
|
- The set also replaces the editor parts of `MarkdownEditor`: `UEditorToolbar` on ui-sdk's `Toolbar` and `Toggle`, which says the pressed state with `aria-pressed`, `UEditorSuggestionMenu` on ui-sdk's `TriggerMenu`, a listbox at the caret while focus stays in the editor, and `UEditorDragHandle` on Tiptap's drag handle. They take the props, slots, and events of Nuxt UI's, and load on first render.
|
|
342
346
|
- In the "/" menu, Escape closes the list until the trigger is typed again or Control+Space reopens it, and a disabled item can be highlighted but not chosen, as the listbox pattern asks.
|
|
343
347
|
|
|
344
|
-
|
|
348
|
+
A part uses a component given to `createViteHubUI({ components })` first, then a global one with the same name from `app.component()`, then the ui-sdk one.
|
|
349
|
+
|
|
350
|
+
### Nuxt UI apps
|
|
351
|
+
|
|
352
|
+
A Nuxt UI app keeps Nuxt UI's look when it passes the Nuxt UI components by name. The ViteHub Console and the docs do this for now. `@nuxt/ui/vue-plugin` registers no components, so pass them:
|
|
353
|
+
|
|
354
|
+
In Nuxt, [register the overrides globally](https://vitehub.dev/docs/ui/installation#nuxt-ui-components) without reinstalling the ViteHub UI plugin. In Vue with Vite, pass the overrides when you install the plugin in `src/main.ts`:
|
|
355
|
+
|
|
356
|
+
```ts fragment
|
|
357
|
+
import { createViteHubUI } from "@vite-hub/ui";
|
|
358
|
+
import { defineAsyncComponent } from "vue";
|
|
359
|
+
|
|
360
|
+
app.use(createViteHubUI({
|
|
361
|
+
components: {
|
|
362
|
+
UButton: defineAsyncComponent(() => import("@nuxt/ui/components/Button.vue")),
|
|
363
|
+
UDropdownMenu: defineAsyncComponent(() => import("@nuxt/ui/components/DropdownMenu.vue")),
|
|
364
|
+
UIcon: defineAsyncComponent(() => import("@nuxt/ui/components/Icon.vue")),
|
|
365
|
+
UInput: defineAsyncComponent(() => import("@nuxt/ui/components/Input.vue")),
|
|
366
|
+
UModal: defineAsyncComponent(() => import("@nuxt/ui/components/Modal.vue")),
|
|
367
|
+
UTabs: defineAsyncComponent(() => import("@nuxt/ui/components/Tabs.vue")),
|
|
368
|
+
UTooltip: defineAsyncComponent(() => import("@nuxt/ui/components/Tooltip.vue")),
|
|
369
|
+
},
|
|
370
|
+
}));
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
Add `UEditorToolbar`, `UEditorSuggestionMenu`, and `UEditorDragHandle` for `MarkdownEditor`. Load Tailwind CSS and `@nuxt/ui` before `@vite-hub/ui/styles.css`, and do not load the kit's `default.css` next to Nuxt UI. In Vue with Vite, add `@nuxt/ui/vite` to the plugins before `viteHubUI()`.
|
|
374
|
+
|
|
375
|
+
`pnpm --filter @vite-hub/ui test:ui-sdk` renders every part that uses these names with the default set and drives each one with the keyboard. `pnpm --filter @vite-hub/ui test:editor` drives the editor parts with the keyboard and the pointer, with Nuxt UI's parts and with the set.
|
|
376
|
+
|
|
377
|
+
## Registry
|
|
378
|
+
|
|
379
|
+
The `@vitehub` registry in the shadcn-vue format is built from the same files as the npm package. Each item lives in `registry/<item>/`. `src/` re-exports the components from there, so `@vite-hub/ui` and `shadcn-vue add` ship the same `.vue` files.
|
|
380
|
+
|
|
381
|
+
`pnpm --filter @vite-hub/ui build:registry` writes the registry to `docs/public/r/`, which vitehub.dev serves at `https://vitehub.dev/r/{name}.json`. `test/registry.test.ts` fails when those files are out of date or do not match the vendored shadcn-vue 2.9.0 schema.
|
|
382
|
+
|
|
383
|
+
The builder reads `registry/registry.json`. An item without `files` publishes every file in `registry/<item>/` to `components/vitehub/<item>/`. It derives the rest from the imports:
|
|
384
|
+
|
|
385
|
+
- `../<name>` becomes the registry dependency `@vitehub/<name>`. An item can depend only on `@vitehub` items, because a stock shadcn-vue item installs Reka UI.
|
|
386
|
+
- A bare import, static or dynamic, becomes an npm dependency. `@ui-sdk/*` is pinned to the exact version in `package.json`. Imports of `@vite-hub/ui/highlight`, `@vite-hub/ui/diffs`, `@vite-hub/ui/file-tree`, `@vite-hub/ui/markdown`, `@vite-hub/ui/message-parts`, or `@vite-hub/ui/editor` require `@vite-hub/ui` at `>=0.6.2 <1.0.0`. Other `@vite-hub/ui` imports, such as `@vite-hub/ui/motion`, use `^0.6.1`. Inside this package `registrySourceStyles()` resolves those imports to `src/`.
|
|
387
|
+
- `registry.json` carries no file content. Each `<item>.json` does.
|
|
388
|
+
|
|
389
|
+
| Item | Type | What `shadcn-vue add` writes |
|
|
390
|
+
| --- | --- | --- |
|
|
391
|
+
| `base` | `registry:base` | The preset for `shadcn-vue init --preset https://vitehub.dev/r/base.json`: Lucide icons, the `@vitehub` registry, `theme`, and `core` |
|
|
392
|
+
| `theme` | `registry:theme` | The tokens from `@vite-hub/kit`, light and dark, into the app's CSS |
|
|
393
|
+
| `core` | `registry:file` | `vitehub.css` (ui-sdk's `web.css`, the `--ui-*` and `--vh-*` aliases), the live region helper, and one `@layer components` rule in the app's CSS |
|
|
394
|
+
| `status`, `copy-button`, `motion`, `sync-status`, `connection-status`, `progress`, `drop-field`, `hold-to-delete`, `avatar-stack`, `marker`, `relative-time`, `filter-search`, `device-frame`, `message`, `bubble`, `attachment`, `prompt-input`, `code-block`, `code-view`, `file-tree`, `markdown`, `markdown-editor`, `comments`, `chat`, `chat-message`, `message-parts`, `tool-list`, `chat-session`, `trace`, `trace-run`, `agent-session` | `registry:component` | The component and its CSS in `components/vitehub/<item>/` |
|
|
395
|
+
| `example-<item>` | `registry:block` | One page that uses the item |
|
|
396
|
+
| `chat-app` | `registry:block` | A chat page with a session list, `chat-session`, and `prompt-input` |
|
|
397
|
+
|
|
398
|
+
`AppShell` closes its mobile sidebar when `current` changes. When you pass a custom `link` component, set `current` from the committed route, not from the click. `SidebarProvider` handles Ctrl+B or Command+B when focus is inside the provider and outside an editable field.
|
|
399
|
+
|
|
400
|
+
An item component follows one contract: compound parts, `data-slot` on the root, `variant`, `size`, and `tone` as `data-<prop>`, boolean props as presence attributes, label props with English defaults, and icon slots with `@lucide/vue` defaults. Its CSS is in `@layer components`. The npm build replaces the CSS imports of the item files with an empty module and puts the item CSS in `styles.css`, because `core` imports ui-sdk's `web.css`, which styles `a`, `kbd`, and `button` and sets the same `--ui-*` names as Nuxt UI.
|
|
401
|
+
|
|
402
|
+
`core` also writes `:where([data-slot]) { box-sizing: border-box }` in `@layer components` into the app's CSS. That rule changes nothing, but it keeps the `components` layer after `base`. Without it, Tailwind 4 emits an empty `components` layer as the statement `@layer components;`, and when the app's CSS keeps an external `@import`, such as the Google Fonts line from `shadcn-vue init`, Vite's postcss-import (16.2.0 in Vite 8.4) moves that statement to the top. Then `components` is the first layer, and Tailwind's Preflight in `base` removes the padding and background of a button.
|
|
403
|
+
|
|
404
|
+
`node --test test/registry-install/install.mjs` (from the repository root, after `build:registry`) serves `docs/public/r/` on a local port and makes four apps: Vite + Vue + Tailwind 4 from `init --preset`, Nuxt 5, Vite with stock shadcn-vue and Reka UI, and Nuxt 5 with Nuxt UI. It runs `shadcn-vue@2.9.0 add` for every item, installs `@vite-hub/ui` and `@vite-hub/comments` packed from this checkout, builds each app, and renders every example in Chromium. Build UI and its workspace dependencies first with `corepack pnpm exec vp run --cache -t @vite-hub/ui#build`. The check fails on a console error, a root without `data-slot`, a copy button that lost its padding or background to Preflight, or Reka UI in the item files of the first two apps. It needs the npm registry. `REGISTRY_APPS=vite-vue,nuxt` runs some apps, `REGISTRY_INSTALL_DIR` keeps them, and `REGISTRY_SCREENSHOTS` saves a screenshot of each.
|
|
345
405
|
|
|
346
406
|
## Verify the setup
|
|
347
407
|
|
|
@@ -363,9 +423,9 @@ The page displays **ViteHub UI is ready.** in bold. This confirms the public com
|
|
|
363
423
|
|
|
364
424
|
- Published builds require Node.js 24.15 or newer. The package is pre-1.0, so pin its version and review changes before upgrading.
|
|
365
425
|
- The components render state supplied by the application. They do not send messages, fetch Agent Invocations, choose routes, persist sessions, or authorize access to instruction and trace data.
|
|
366
|
-
- `PromptInput` submits only in the ready state after attachment conversion finishes. It preserves the draft while blocked; Stop and Retry remain separate actions.
|
|
426
|
+
- `PromptInput` submits only in the ready state after attachment conversion finishes. It preserves the draft while blocked; Stop and Retry remain separate actions. The default slot of `PromptInput` receives `canSubmit` and `preparing` for a custom submit button. The application owns draft recovery and clearing after a send; unmount the prompt when switching sessions with pending file reads.
|
|
367
427
|
- Primary chat and trace output supports Vue server rendering. Scrolling observers, clipboard actions, and attachment conversion use browser APIs and become interactive after hydration. Upload and persist raw files yourself when data URLs are not appropriate.
|
|
368
|
-
- The styled components depend on Nuxt UI components and tokens. `@vite-hub/ui/styles.css` adds ViteHub presentation but
|
|
428
|
+
- The styled components depend on the ui-sdk components and the kit tokens, or on the Nuxt UI components and tokens that the app passes. `@vite-hub/ui/styles.css` adds ViteHub presentation but does not replace those styles.
|
|
369
429
|
- The package supplies accessible defaults for its message log, prompt, scroll controls, lists, and built-in actions. The application remains responsible for accessible names on custom controls and slots, meaningful status and error copy, focus behavior around application-owned navigation, and testing the completed interface.
|
|
370
430
|
- `FileTree` names its search input **Search files** by default. Pass `search-label` for a localized or context-specific accessible name.
|
|
371
431
|
- The headless entry point owns scrolling behavior, not appearance. Importing `@vite-hub/ui/headless` does not load the stylesheet or register Nuxt UI components.
|
|
@@ -383,4 +443,4 @@ The page displays **ViteHub UI is ready.** in bold. This confirms the public com
|
|
|
383
443
|
|
|
384
444
|
## Console views
|
|
385
445
|
|
|
386
|
-
The Agent Invocation list, view, inspector, timeline, and Capability inspector render ViteHub runtime records, so they live in the Console in `vite-hub`. Import `AgentInvocationList`, `AgentInvocation`, `AgentInvocationInspector`, and `AgentCapabilityInspector` from `vite-hub/console/ui`. Build an application-owned inspection page from the parts, such as `Trace` and `CodeBlock`, and from `ToolList`, which also documents Capability tool contracts. `ToolList` emits `select` with
|
|
446
|
+
The Agent Invocation list, view, inspector, timeline, and Capability inspector render ViteHub runtime records, so they live in the Console in `vite-hub`. Import `AgentInvocationList`, `AgentInvocation`, `AgentInvocationInspector`, and `AgentCapabilityInspector` from `vite-hub/console/ui`. Build an application-owned inspection page from the parts, such as `Trace` and `CodeBlock`, and from `ToolList`, which also documents Capability tool contracts. `ToolList` emits `select` with `{ tool }` when a viewer chooses one, and draws icons through its `icon` slot. The model maker and provider marks of the Console come from [Lobe Icons](https://github.com/lobehub/lobe-icons) (MIT).
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { createElementBlock, createVNode, defineComponent, openBlock, renderSlot, unref } from "vue";
|
|
2
|
+
import { X } from "@lucide/vue";
|
|
3
|
+
// registry/attachment/Attachment.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
const _hoisted_1$6 = [
|
|
5
|
+
"data-status",
|
|
6
|
+
"data-size",
|
|
7
|
+
"data-orientation"
|
|
8
|
+
];
|
|
9
|
+
// registry/attachment/Attachment.vue
|
|
10
|
+
var Attachment_default = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "Attachment",
|
|
12
|
+
props: {
|
|
13
|
+
status: { default: "done" },
|
|
14
|
+
size: { default: "md" },
|
|
15
|
+
orientation: { default: "horizontal" }
|
|
16
|
+
},
|
|
17
|
+
setup(__props) {
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createElementBlock("div", {
|
|
20
|
+
"data-slot": "attachment",
|
|
21
|
+
"data-status": __props.status,
|
|
22
|
+
"data-size": __props.size,
|
|
23
|
+
"data-orientation": __props.orientation
|
|
24
|
+
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$6);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
// registry/attachment/AttachmentAction.vue?vue&type=script&setup=true&lang.ts
|
|
29
|
+
const _hoisted_1$5 = ["aria-label", "disabled"];
|
|
30
|
+
// registry/attachment/AttachmentAction.vue
|
|
31
|
+
var AttachmentAction_default = /* @__PURE__ */ defineComponent({
|
|
32
|
+
__name: "AttachmentAction",
|
|
33
|
+
props: {
|
|
34
|
+
label: { default: "Remove" },
|
|
35
|
+
disabled: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: false
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
setup(__props) {
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createElementBlock("button", {
|
|
43
|
+
type: "button",
|
|
44
|
+
"data-slot": "attachment-action",
|
|
45
|
+
"aria-label": __props.label,
|
|
46
|
+
disabled: __props.disabled
|
|
47
|
+
}, [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(unref(X), { "aria-hidden": "true" })])], 8, _hoisted_1$5);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
// registry/attachment/AttachmentActions.vue?vue&type=script&setup=true&lang.ts
|
|
52
|
+
const _hoisted_1$4 = { "data-slot": "attachment-actions" };
|
|
53
|
+
// registry/attachment/AttachmentActions.vue
|
|
54
|
+
var AttachmentActions_default = /* @__PURE__ */ defineComponent({
|
|
55
|
+
__name: "AttachmentActions",
|
|
56
|
+
setup(__props) {
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [renderSlot(_ctx.$slots, "default")]);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
// registry/attachment/AttachmentContent.vue?vue&type=script&setup=true&lang.ts
|
|
63
|
+
const _hoisted_1$3 = { "data-slot": "attachment-content" };
|
|
64
|
+
// registry/attachment/AttachmentContent.vue
|
|
65
|
+
var AttachmentContent_default = /* @__PURE__ */ defineComponent({
|
|
66
|
+
__name: "AttachmentContent",
|
|
67
|
+
setup(__props) {
|
|
68
|
+
return (_ctx, _cache) => {
|
|
69
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [renderSlot(_ctx.$slots, "default")]);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
// registry/attachment/AttachmentGroup.vue?vue&type=script&setup=true&lang.ts
|
|
74
|
+
const _hoisted_1$2 = { "data-slot": "attachment-group" };
|
|
75
|
+
// registry/attachment/AttachmentGroup.vue
|
|
76
|
+
var AttachmentGroup_default = /* @__PURE__ */ defineComponent({
|
|
77
|
+
__name: "AttachmentGroup",
|
|
78
|
+
setup(__props) {
|
|
79
|
+
return (_ctx, _cache) => {
|
|
80
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [renderSlot(_ctx.$slots, "default")]);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
// registry/attachment/AttachmentMedia.vue?vue&type=script&setup=true&lang.ts
|
|
85
|
+
const _hoisted_1$1 = ["data-kind"];
|
|
86
|
+
// registry/attachment/AttachmentMedia.vue
|
|
87
|
+
var AttachmentMedia_default = /* @__PURE__ */ defineComponent({
|
|
88
|
+
__name: "AttachmentMedia",
|
|
89
|
+
props: { kind: { default: "icon" } },
|
|
90
|
+
setup(__props) {
|
|
91
|
+
return (_ctx, _cache) => {
|
|
92
|
+
return openBlock(), createElementBlock("div", {
|
|
93
|
+
"data-slot": "attachment-media",
|
|
94
|
+
"data-kind": __props.kind
|
|
95
|
+
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$1);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
// registry/attachment/AttachmentTitle.vue?vue&type=script&setup=true&lang.ts
|
|
100
|
+
const _hoisted_1 = { "data-slot": "attachment-title" };
|
|
101
|
+
// registry/attachment/AttachmentTitle.vue
|
|
102
|
+
var AttachmentTitle_default = /* @__PURE__ */ defineComponent({
|
|
103
|
+
__name: "AttachmentTitle",
|
|
104
|
+
setup(__props) {
|
|
105
|
+
return (_ctx, _cache) => {
|
|
106
|
+
return openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "default")]);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
export { AttachmentActions_default as a, AttachmentContent_default as i, AttachmentMedia_default as n, AttachmentAction_default as o, AttachmentGroup_default as r, Attachment_default as s, AttachmentTitle_default as t };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, renderSlot, useSlots } from "vue";
|
|
2
|
+
// registry/bubble/Bubble.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
const _hoisted_1 = [
|
|
4
|
+
"data-align",
|
|
5
|
+
"data-variant",
|
|
6
|
+
"data-tone"
|
|
7
|
+
];
|
|
8
|
+
// registry/bubble/Bubble.vue
|
|
9
|
+
var Bubble_default = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "Bubble",
|
|
11
|
+
props: {
|
|
12
|
+
align: { default: "start" },
|
|
13
|
+
variant: { default: "solid" },
|
|
14
|
+
tone: { default: "neutral" }
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return openBlock(), createElementBlock("div", {
|
|
19
|
+
"data-slot": "bubble",
|
|
20
|
+
"data-align": __props.align,
|
|
21
|
+
"data-variant": __props.variant,
|
|
22
|
+
"data-tone": __props.tone
|
|
23
|
+
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
// registry/bubble/BubbleContent.vue
|
|
28
|
+
var BubbleContent_default = /* @__PURE__ */ defineComponent({
|
|
29
|
+
inheritAttrs: false,
|
|
30
|
+
__name: "BubbleContent",
|
|
31
|
+
setup(__props) {
|
|
32
|
+
const slots = useSlots();
|
|
33
|
+
const children = () => slots.default?.();
|
|
34
|
+
return (_ctx, _cache) => {
|
|
35
|
+
return renderSlot(_ctx.$slots, "render", {
|
|
36
|
+
props: {
|
|
37
|
+
..._ctx.$attrs,
|
|
38
|
+
"data-slot": "bubble-content"
|
|
39
|
+
},
|
|
40
|
+
children
|
|
41
|
+
}, () => [createElementVNode("div", mergeProps(_ctx.$attrs, { "data-slot": "bubble-content" }), [renderSlot(_ctx.$slots, "default")], 16)]);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export { Bubble_default as n, BubbleContent_default as t };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { t as ChatMessage_default } from "./ChatMessage-Blr5F-zi.js";
|
|
2
|
+
import { a as MessageScroller_default, i as MessageScrollerButton_default, n as MessageScrollerItem_default, r as MessageScrollerContent_default, t as MessageScrollerViewport_default } from "./MessageScrollerViewport-BaTlWLki.js";
|
|
3
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, openBlock, renderList, renderSlot, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
4
|
+
import { ChevronDown } from "@lucide/vue";
|
|
5
|
+
// registry/chat/activity.ts
|
|
6
|
+
const inProgressTool = /* @__PURE__ */ new Set([
|
|
7
|
+
"approval-requested",
|
|
8
|
+
"approval-responded",
|
|
9
|
+
"input-available",
|
|
10
|
+
"input-streaming"
|
|
11
|
+
]);
|
|
12
|
+
function showsProgress(part) {
|
|
13
|
+
if (part.type === "text" || part.type === "reasoning") return part.state !== "done";
|
|
14
|
+
return "toolCallId" in part && inProgressTool.has(part.state);
|
|
15
|
+
}
|
|
16
|
+
function chatActivity(messages, status) {
|
|
17
|
+
if (status !== "submitted" && status !== "streaming") return void 0;
|
|
18
|
+
const last = messages.at(-1);
|
|
19
|
+
const part = last?.role === "assistant" ? last.parts.findLast((item) => !item.type.startsWith("data-") && item.type !== "step-start") : void 0;
|
|
20
|
+
return part && showsProgress(part) ? void 0 : "Working";
|
|
21
|
+
}
|
|
22
|
+
// registry/chat/Chat.vue?vue&type=script&setup=true&lang.ts
|
|
23
|
+
const _hoisted_1 = {
|
|
24
|
+
"data-slot": "chat-status",
|
|
25
|
+
role: "status"
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_2 = { "data-slot": "chat-status-label" };
|
|
28
|
+
const _hoisted_3 = {
|
|
29
|
+
key: 0,
|
|
30
|
+
"data-slot": "chat-composer"
|
|
31
|
+
};
|
|
32
|
+
// registry/chat/Chat.vue
|
|
33
|
+
var Chat_default = /* @__PURE__ */ defineComponent({
|
|
34
|
+
name: "Chat",
|
|
35
|
+
inheritAttrs: false,
|
|
36
|
+
__name: "Chat",
|
|
37
|
+
props: {
|
|
38
|
+
messages: { default: () => [] },
|
|
39
|
+
status: { default: "ready" },
|
|
40
|
+
scrollButtonLabel: { default: "Scroll to end" },
|
|
41
|
+
edgeThreshold: { default: 8 },
|
|
42
|
+
previousItemPeek: { default: 64 }
|
|
43
|
+
},
|
|
44
|
+
setup(__props) {
|
|
45
|
+
const slots = useSlots();
|
|
46
|
+
const own = /* @__PURE__ */ new Set([
|
|
47
|
+
"composer",
|
|
48
|
+
"default",
|
|
49
|
+
"message",
|
|
50
|
+
"scroll-button",
|
|
51
|
+
"scroll-button-icon",
|
|
52
|
+
"status"
|
|
53
|
+
]);
|
|
54
|
+
const messageSlots = () => Object.keys(slots).filter((name) => !own.has(name));
|
|
55
|
+
const busy = computed(() => __props.status === "streaming" || __props.status === "submitted");
|
|
56
|
+
const activity = computed(() => chatActivity(__props.messages, __props.status));
|
|
57
|
+
const ids = computed(() => __props.messages.map((message) => message.id));
|
|
58
|
+
return (_ctx, _cache) => {
|
|
59
|
+
return openBlock(), createBlock(MessageScroller_default, {
|
|
60
|
+
"edge-threshold": __props.edgeThreshold,
|
|
61
|
+
"previous-item-peek": __props.previousItemPeek
|
|
62
|
+
}, {
|
|
63
|
+
render: withCtx(({ props: part }) => [createElementVNode("div", mergeProps({
|
|
64
|
+
...part,
|
|
65
|
+
..._ctx.$attrs
|
|
66
|
+
}, { "data-slot": "chat" }), [
|
|
67
|
+
createVNode(MessageScrollerViewport_default, null, {
|
|
68
|
+
default: withCtx(() => [createVNode(MessageScrollerContent_default, {
|
|
69
|
+
"aria-busy": busy.value ? "true" : void 0,
|
|
70
|
+
items: ids.value
|
|
71
|
+
}, {
|
|
72
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.messages, (message, index) => {
|
|
73
|
+
return openBlock(), createBlock(MessageScrollerItem_default, {
|
|
74
|
+
key: message.id,
|
|
75
|
+
"message-id": message.id,
|
|
76
|
+
"scroll-anchor": message.role === "user" && index === __props.messages.length - 1 && __props.status !== "submitted"
|
|
77
|
+
}, {
|
|
78
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "message", {
|
|
79
|
+
message,
|
|
80
|
+
index
|
|
81
|
+
}, () => [createVNode(unref(ChatMessage_default), {
|
|
82
|
+
message,
|
|
83
|
+
streaming: index === __props.messages.length - 1 && busy.value
|
|
84
|
+
}, createSlots({ _: 2 }, [renderList(messageSlots(), (name) => {
|
|
85
|
+
return {
|
|
86
|
+
name,
|
|
87
|
+
fn: withCtx((scope) => [renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, scope))])
|
|
88
|
+
};
|
|
89
|
+
})]), 1032, ["message", "streaming"])])]),
|
|
90
|
+
_: 2
|
|
91
|
+
}, 1032, ["message-id", "scroll-anchor"]);
|
|
92
|
+
}), 128)), activity.value ? renderSlot(_ctx.$slots, "status", { label: activity.value }, () => [createElementVNode("p", _hoisted_1, [_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
93
|
+
"aria-hidden": "true",
|
|
94
|
+
"data-slot": "chat-status-dot"
|
|
95
|
+
}, null, -1)), createElementVNode("span", _hoisted_2, toDisplayString(activity.value), 1)])], void 0, 0) : createCommentVNode("v-if", true)]),
|
|
96
|
+
_: 3
|
|
97
|
+
}, 8, ["aria-busy", "items"])]),
|
|
98
|
+
_: 3
|
|
99
|
+
}),
|
|
100
|
+
createVNode(MessageScrollerButton_default, { "aria-label": __props.scrollButtonLabel }, {
|
|
101
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "scroll-button-icon", {}, () => [createVNode(unref(ChevronDown), { "aria-hidden": "true" })]), renderSlot(_ctx.$slots, "scroll-button", {}, () => [createTextVNode(toDisplayString(__props.scrollButtonLabel), 1)])]),
|
|
102
|
+
_: 3
|
|
103
|
+
}, 8, ["aria-label"]),
|
|
104
|
+
slots.composer ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(_ctx.$slots, "composer")])) : createCommentVNode("v-if", true),
|
|
105
|
+
renderSlot(_ctx.$slots, "default")
|
|
106
|
+
], 16)]),
|
|
107
|
+
_: 3
|
|
108
|
+
}, 8, ["edge-threshold", "previous-item-peek"]);
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
export { chatActivity as n, Chat_default as t };
|