@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
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import "./comment-composer-CIsbz-78.js";
|
|
2
|
+
import "./comment-layer-BlVNORgj.js";
|
|
3
|
+
import "./comment-panel-Djx-KxVa.js";
|
|
4
|
+
import "./comment-thread-X6gYMNay.js";
|
|
5
|
+
import { _ as CommentToolbarSlots, g as CommentToolbarProps, h as CommentSendProps, i as CommentListSlots, o as CommentPinProps, r as CommentListProps, t as CommentFiltersProps } from "./types-BF_U0tgp.js";
|
|
6
|
+
import { t as AvatarStackPerson } from "./types-CTk3aNb5.js";
|
|
7
|
+
import "./comment-selection-bar-CbOEI98x.js";
|
|
8
|
+
import { Component } from "vue";
|
|
9
|
+
import { CommentThread } from "@vite-hub/comments/client";
|
|
10
|
+
declare const __VLS_export$4: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<CommentFiltersProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<CommentFiltersProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default$4: typeof __VLS_export$4;
|
|
12
|
+
type __VLS_Slots$1 = CommentListSlots;
|
|
13
|
+
declare const __VLS_base$1: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<CommentListProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
|
|
14
|
+
select: (event: {
|
|
15
|
+
thread: CommentThread;
|
|
16
|
+
}) => any;
|
|
17
|
+
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<CommentListProps> & Readonly<{
|
|
18
|
+
onSelect?: ((event: {
|
|
19
|
+
thread: CommentThread;
|
|
20
|
+
}) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export$3: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
23
|
+
declare const _default$3: typeof __VLS_export$3;
|
|
24
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_export$2: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<CommentPinProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
|
|
30
|
+
select: () => any;
|
|
31
|
+
hover: () => any;
|
|
32
|
+
leave: () => any;
|
|
33
|
+
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<CommentPinProps> & Readonly<{
|
|
34
|
+
onSelect?: (() => any) | undefined;
|
|
35
|
+
onHover?: (() => any) | undefined;
|
|
36
|
+
onLeave?: (() => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const _default$2: typeof __VLS_export$2;
|
|
39
|
+
declare const __VLS_export$1: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<CommentSendProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<CommentSendProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
41
|
+
type __VLS_Slots = CommentToolbarSlots;
|
|
42
|
+
declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<CommentToolbarProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<CommentToolbarProps> & Readonly<{}>, {
|
|
43
|
+
people: AvatarStackPerson[];
|
|
44
|
+
}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export { _default$4 as a, _default$3 as i, _default$1 as n, _default$2 as r, _default as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as uiErrorDiagnostics } from "./error-diagnostics-BlgA9rI2.js";
|
|
2
2
|
import { createCommentVisibility } from "./parts/headless/comment-visibility.js";
|
|
3
|
-
import { a as hasDirtyComposer, n as injectComments, s as shakeDirtyComposers, t as commentsKey } from "./comments-context-
|
|
3
|
+
import { a as hasDirtyComposer, n as injectComments, s as shakeDirtyComposers, t as commentsKey } from "./comments-context-3js2YFl2.js";
|
|
4
4
|
import { computed, getCurrentInstance, isRef, onBeforeUnmount, onMounted, provide, reactive, ref, shallowRef, toRaw, toValue, watch } from "vue";
|
|
5
|
-
import { createAnchor, resolveAnchor } from "@vite-hub/comments/client";
|
|
5
|
+
import { appCommentsBase, commentsApiCan, commentsGuestUser, createAnchor, createCommentsClient, createCommentsRestRequest, onCommentsGuestSaved, readCommentsGuest, resolveAnchor } from "@vite-hub/comments/client";
|
|
6
6
|
// src/internal/comment-selection.ts
|
|
7
7
|
function commentThreadKey(thread) {
|
|
8
8
|
return thread.requestId === void 0 ? thread.id : JSON.stringify([
|
|
@@ -26,29 +26,6 @@ function useSelectedComment(threads, id) {
|
|
|
26
26
|
});
|
|
27
27
|
return computed(() => selection.value.thread);
|
|
28
28
|
}
|
|
29
|
-
// src/internal/comment-status.ts
|
|
30
|
-
/** The messages written after the thread was resolved. Empty for an open thread. */
|
|
31
|
-
function messagesSinceResolved(thread) {
|
|
32
|
-
const { resolvedAt } = thread;
|
|
33
|
-
if (thread.status !== "resolved" || resolvedAt === void 0) return [];
|
|
34
|
-
return thread.messages.filter((message) => message.createdAt > resolvedAt);
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Whether someone replied after the thread was resolved, such as an agent that says what it changed. The thread stays
|
|
38
|
-
* resolved, and lists show it with the open threads until someone resolves it again.
|
|
39
|
-
*/
|
|
40
|
-
const repliedSinceResolved = (thread) => messagesSinceResolved(thread).length > 0;
|
|
41
|
-
/** "Comment 3". A comment that waits in the outbox has no number yet. */
|
|
42
|
-
function commentTitle(thread) {
|
|
43
|
-
return thread.n ? `Comment ${thread.n}` : "Comment";
|
|
44
|
-
}
|
|
45
|
-
/** `data-pending` or `data-failed` for a thread, message, or row that the outbox holds. */
|
|
46
|
-
function deliveryAttributes(delivery) {
|
|
47
|
-
return {
|
|
48
|
-
"data-failed": delivery?.status === "failed" ? "true" : void 0,
|
|
49
|
-
"data-pending": delivery?.status === "pending" ? "true" : void 0
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
29
|
// src/headless/comments.ts
|
|
53
30
|
/**
|
|
54
31
|
* The permissions that the parts assume without a `can` option: a signed-in user may reply to and resolve any thread,
|
|
@@ -63,6 +40,7 @@ function defaultCommentCan(user) {
|
|
|
63
40
|
}
|
|
64
41
|
const draftPositionKey = "draft";
|
|
65
42
|
const uiSelector = "[data-comments-ui]";
|
|
43
|
+
const draftComposerSelector = "[data-draft] [data-slot='comment-composer']";
|
|
66
44
|
function defaultIgnore(element) {
|
|
67
45
|
for (let node = element; node;) {
|
|
68
46
|
if (node.closest(uiSelector)) return true;
|
|
@@ -82,17 +60,22 @@ function samePosition(a, b) {
|
|
|
82
60
|
}
|
|
83
61
|
const editableSelector = "input, textarea, select, [contenteditable]:not([contenteditable='false']), [role='textbox'], [role='combobox'], [role='searchbox']";
|
|
84
62
|
const isEditable = (path) => path.some((element) => element.matches(editableSelector));
|
|
63
|
+
const someFiles = (files) => files !== void 0 && (!Array.isArray(files) || files.length > 0);
|
|
85
64
|
function describeError(error) {
|
|
86
65
|
return error instanceof Error ? error.message : "The comment could not be sent. Try again.";
|
|
87
66
|
}
|
|
88
67
|
/** The comment state of one page. The styled parts, `CommentLayer` and the others, are built on it. */
|
|
89
68
|
function useComments(options) {
|
|
90
|
-
const
|
|
69
|
+
const client = options.client ?? createCommentsClient();
|
|
70
|
+
const serverUser = shallowRef();
|
|
71
|
+
const savedGuest = shallowRef(options.client ? void 0 : readCommentsGuest());
|
|
72
|
+
const pageCan = shallowRef();
|
|
73
|
+
const sessionUser = computed(() => serverUser.value ?? (savedGuest.value ? commentsGuestUser(savedGuest.value) : void 0));
|
|
91
74
|
const param = options.param ?? "comment";
|
|
92
75
|
const hotkey = options.hotkey === void 0 ? "c" : options.hotkey === false ? false : options.hotkey.toLowerCase();
|
|
93
76
|
const ignore = options.ignore ?? defaultIgnore;
|
|
94
77
|
const subject = computed(() => toValue(options.subject));
|
|
95
|
-
const user = computed(() => toValue(options.user) ?? client.user);
|
|
78
|
+
const user = computed(() => toValue(options.user) ?? client.user ?? sessionUser.value);
|
|
96
79
|
const active = ref(false);
|
|
97
80
|
const scopeValue = ref("page");
|
|
98
81
|
const scope = computed({
|
|
@@ -128,7 +111,7 @@ function useComments(options) {
|
|
|
128
111
|
const hoverId = ref(null);
|
|
129
112
|
const listOpen = ref(false);
|
|
130
113
|
const blocked = ref(0);
|
|
131
|
-
const isOpen = (thread) => thread.status === "open"
|
|
114
|
+
const isOpen = (thread) => thread.status === "open";
|
|
132
115
|
const passes = (thread) => {
|
|
133
116
|
if (!(filters.open && isOpen(thread) || filters.resolved && thread.status === "resolved")) return false;
|
|
134
117
|
return !filters.mine || thread.author.id === user.value?.id;
|
|
@@ -184,7 +167,7 @@ function useComments(options) {
|
|
|
184
167
|
const previous = positions.value;
|
|
185
168
|
if (!(next.size === previous.size && [...next].every(([key, position]) => samePosition(position, previous.get(key))))) positions.value = next;
|
|
186
169
|
}
|
|
187
|
-
const hasText = () => (draft.value?.body.trim().length ?? 0) > 0 || hasDirtyComposer(uiRoot());
|
|
170
|
+
const hasText = () => (draft.value?.body.trim().length ?? 0) > 0 || hasDirtyComposer(uiRoot(), draft.value ? void 0 : draftComposerSelector);
|
|
188
171
|
const block = (escape = false) => {
|
|
189
172
|
blocked.value++;
|
|
190
173
|
shakeDirtyComposers(uiRoot(), escape);
|
|
@@ -267,22 +250,36 @@ function useComments(options) {
|
|
|
267
250
|
async function send(sendOptions = {}) {
|
|
268
251
|
const current = draft.value;
|
|
269
252
|
const body = current?.body.trim() ?? "";
|
|
270
|
-
const files = sendOptions.files
|
|
271
|
-
|
|
253
|
+
const files = sendOptions.files;
|
|
254
|
+
const hasFiles = someFiles(files);
|
|
255
|
+
if (!current || current.busy || !body && current.attachments.length === 0 && !hasFiles) return void 0;
|
|
272
256
|
const submittedBody = current.body;
|
|
273
257
|
const mentions = [...current.mentions];
|
|
274
258
|
const attachments = [...current.attachments];
|
|
275
|
-
|
|
259
|
+
const input = {
|
|
260
|
+
subject: subject.value,
|
|
261
|
+
anchor: toRaw(current.anchor),
|
|
262
|
+
body,
|
|
263
|
+
mentions,
|
|
264
|
+
...attachments.length > 0 ? { attachments } : {},
|
|
265
|
+
...hasFiles ? { files } : {}
|
|
266
|
+
};
|
|
276
267
|
current.error = void 0;
|
|
268
|
+
if (client.outbox) {
|
|
269
|
+
draft.value = null;
|
|
270
|
+
try {
|
|
271
|
+
const thread = await client.create(input);
|
|
272
|
+
flash(thread.id);
|
|
273
|
+
return thread;
|
|
274
|
+
} catch (error) {
|
|
275
|
+
current.error = describeError(error);
|
|
276
|
+
if (!draft.value) draft.value = current;
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
current.busy = true;
|
|
277
281
|
try {
|
|
278
|
-
const thread = await client.create(
|
|
279
|
-
subject: subject.value,
|
|
280
|
-
anchor: toRaw(current.anchor),
|
|
281
|
-
body,
|
|
282
|
-
mentions,
|
|
283
|
-
...attachments.length > 0 ? { attachments } : {},
|
|
284
|
-
...files.length > 0 ? { files } : {}
|
|
285
|
-
});
|
|
282
|
+
const thread = await client.create(input);
|
|
286
283
|
current.busy = false;
|
|
287
284
|
flash(thread.id);
|
|
288
285
|
if (draft.value === current && current.body === submittedBody && current.mentions.length === mentions.length && current.mentions.every((id, index) => id === mentions[index])) draft.value = null;
|
|
@@ -371,6 +368,29 @@ function useComments(options) {
|
|
|
371
368
|
status.value = client.status;
|
|
372
369
|
threads.value = client.threads;
|
|
373
370
|
stops.push(client.start());
|
|
371
|
+
if (!options.client) {
|
|
372
|
+
const request = createCommentsRestRequest({
|
|
373
|
+
base: appCommentsBase(),
|
|
374
|
+
guest: readCommentsGuest
|
|
375
|
+
});
|
|
376
|
+
stops.push(watch([() => subject.value.kind, () => subject.value.id], ([kind, id], _, onCleanup) => {
|
|
377
|
+
pageCan.value = void 0;
|
|
378
|
+
const controller = new AbortController();
|
|
379
|
+
onCleanup(() => controller.abort());
|
|
380
|
+
const query = new URLSearchParams({
|
|
381
|
+
subjectKind: kind,
|
|
382
|
+
subjectId: id
|
|
383
|
+
});
|
|
384
|
+
request(`/session?${query}`, { signal: controller.signal }).then(({ data }) => {
|
|
385
|
+
if (controller.signal.aborted) return;
|
|
386
|
+
serverUser.value = data.user ?? void 0;
|
|
387
|
+
pageCan.value = data.can;
|
|
388
|
+
}, () => {});
|
|
389
|
+
}, { immediate: true }));
|
|
390
|
+
stops.push(onCommentsGuestSaved((guest) => {
|
|
391
|
+
savedGuest.value = guest;
|
|
392
|
+
}));
|
|
393
|
+
}
|
|
374
394
|
document.addEventListener("keydown", onKeydown);
|
|
375
395
|
stops.push(() => document.removeEventListener("keydown", onKeydown));
|
|
376
396
|
let frame = 0;
|
|
@@ -486,7 +506,8 @@ function useComments(options) {
|
|
|
486
506
|
}
|
|
487
507
|
return result;
|
|
488
508
|
}
|
|
489
|
-
const
|
|
509
|
+
const apiCan = (action, target) => commentsApiCan(user.value, pageCan.value, action, target);
|
|
510
|
+
const can = (action, target) => user.value !== void 0 && (options.can ?? (options.client ? defaultCommentCan(user.value) : apiCan))(action, target);
|
|
490
511
|
const state = {
|
|
491
512
|
client,
|
|
492
513
|
subject,
|
|
@@ -542,7 +563,7 @@ function useComments(options) {
|
|
|
542
563
|
body,
|
|
543
564
|
mentions,
|
|
544
565
|
...attachments?.length ? { attachments } : {},
|
|
545
|
-
...files
|
|
566
|
+
...someFiles(files) ? { files } : {}
|
|
546
567
|
});
|
|
547
568
|
flash(thread.id);
|
|
548
569
|
return thread;
|
|
@@ -553,7 +574,7 @@ function useComments(options) {
|
|
|
553
574
|
body,
|
|
554
575
|
mentions,
|
|
555
576
|
...attachments?.length ? { attachments } : {},
|
|
556
|
-
...files
|
|
577
|
+
...someFiles(files) ? { files } : {}
|
|
557
578
|
});
|
|
558
579
|
flash(threadId);
|
|
559
580
|
return thread;
|
|
@@ -601,4 +622,4 @@ function useCommentsContext(state) {
|
|
|
601
622
|
if (!found) throw uiErrorDiagnostics.UI_R0002({ message: "Comment parts need a comments state. Put them inside CommentLayer, or pass the result of useComments() as the `comments` prop." });
|
|
602
623
|
return found;
|
|
603
624
|
}
|
|
604
|
-
export { useCommentsContext as a,
|
|
625
|
+
export { useCommentsContext as a, useComments as i, draftPositionKey as n, commentThreadKey as o, provideComments as r, useSelectedComment as s, defaultCommentCan as t };
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { n as prepareAnnouncer, t as announce } from "./announce-CJNXaYbT.js";
|
|
2
|
+
import { t as useCopy } from "./use-copy-DK1SSZkh.js";
|
|
3
|
+
import { c as createSpring, o as isMotionOff } from "./tween-lVMRCUEv.js";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, onBeforeUnmount, onBeforeUpdate, onMounted, onUpdated, openBlock, shallowRef, toDisplayString, unref, useTemplateRef, watch } from "vue";
|
|
5
|
+
import { ArrowUpRight, Check, CircleAlert, Copy, Inbox, Link, LoaderCircle, RotateCcw, Send, X } from "@lucide/vue";
|
|
6
|
+
// registry/comments/agent-logos.ts
|
|
7
|
+
const agentLogos = {
|
|
8
|
+
t3: {
|
|
9
|
+
viewBox: "15.5309 37 94.3941 56.96",
|
|
10
|
+
path: "M33.4509 93V47.56H15.5309V37H64.3309V47.56H46.4109V93H33.4509ZM86.7253 93.96C82.832 93.96 78.9653 93.4533 75.1253 92.44C71.2853 91.3733 68.032 89.88 65.3653 87.96L70.4053 78.04C72.5386 79.5867 75.0186 80.8133 77.8453 81.72C80.672 82.6267 83.5253 83.08 86.4053 83.08C89.6586 83.08 92.2186 82.44 94.0853 81.16C95.952 79.88 96.8853 78.12 96.8853 75.88C96.8853 73.7467 96.0586 72.0667 94.4053 70.84C92.752 69.6133 90.0853 69 86.4053 69H80.4853V60.44L96.0853 42.76L97.5253 47.4H68.1653V37H107.365V45.4L91.8453 63.08L85.2853 59.32H89.0453C95.9253 59.32 101.125 60.8667 104.645 63.96C108.165 67.0533 109.925 71.0267 109.925 75.88C109.925 79.0267 109.099 81.9867 107.445 84.76C105.792 87.48 103.259 89.6933 99.8453 91.4C96.432 93.1067 92.0586 93.96 86.7253 93.96Z",
|
|
11
|
+
thread: "T3 thread"
|
|
12
|
+
},
|
|
13
|
+
claude: {
|
|
14
|
+
viewBox: "0 0 24 24",
|
|
15
|
+
path: "m4.714 15.956l4.718-2.648l.079-.23l-.08-.128h-.23l-.79-.048l-2.695-.073l-2.337-.097l-2.265-.122l-.57-.121l-.535-.704l.055-.353l.48-.321l.685.06l1.518.104l2.277.157l1.651.098l2.447.255h.389l.054-.158l-.133-.097l-.103-.098l-2.356-1.596l-2.55-1.688l-1.336-.972l-.722-.491L2 6.223l-.158-1.008l.656-.722l.88.06l.224.061l.893.686l1.906 1.476l2.49 1.833l.364.304l.146-.104l.018-.072l-.164-.274l-1.354-2.446l-1.445-2.49l-.644-1.032l-.17-.619a3 3 0 0 1-.103-.729L6.287.133L6.7 0l.995.134l.42.364l.619 1.415L9.735 4.14l1.555 3.03l.455.898l.243.832l.09.255h.159V9.01l.127-1.706l.237-2.095l.23-2.695l.08-.76l.376-.91l.747-.492l.583.28l.48.685l-.067.444l-.286 1.851l-.558 2.903l-.365 1.942h.213l.243-.242l.983-1.306l1.652-2.064l.728-.82l.85-.904l.547-.431h1.032l.759 1.129l-.34 1.166l-1.063 1.347l-.88 1.142l-1.263 1.7l-.79 1.36l.074.11l.188-.02l2.853-.606l1.542-.28l1.84-.315l.832.388l.09.395l-.327.807l-1.967.486l-2.307.462l-3.436.813l-.043.03l.049.061l1.548.146l.662.036h1.62l3.018.225l.79.522l.473.638l-.08.485l-1.213.62l-1.64-.389l-3.825-.91l-1.31-.329h-.183v.11l1.093 1.068l2.003 1.81l2.508 2.33l.127.578l-.321.455l-.34-.049l-2.204-1.657l-.85-.747l-1.925-1.62h-.127v.17l.443.649l2.343 3.521l.122 1.08l-.17.353l-.607.213l-.668-.122l-1.372-1.924l-1.415-2.168l-1.141-1.943l-.14.08l-.674 7.254l-.316.37l-.728.28l-.607-.461l-.322-.747l.322-1.476l.388-1.924l.316-1.53l.285-1.9l.17-.632l-.012-.042l-.14.018l-1.432 1.967l-2.18 2.945l-1.724 1.845l-.413.164l-.716-.37l.066-.662l.401-.589l2.386-3.036l1.439-1.882l.929-1.086l-.006-.158h-.055L4.138 18.56l-1.13.146l-.485-.456l.06-.746l.231-.243l1.907-1.312Z",
|
|
16
|
+
thread: "Claude Code session"
|
|
17
|
+
},
|
|
18
|
+
codex: {
|
|
19
|
+
viewBox: "0 0 24 24",
|
|
20
|
+
path: "M22.282 9.821a6 6 0 0 0-.516-4.91a6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a6 6 0 0 0-3.998 2.9a6.05 6.05 0 0 0 .743 7.097a5.98 5.98 0 0 0 .51 4.911a6.05 6.05 0 0 0 6.515 2.9A6 6 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206a6 6 0 0 0 3.997-2.9a6.06 6.06 0 0 0-.747-7.073M13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081l4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085l4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354l-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855l-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667m2.01-3.023l-.141-.085l-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135l-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.8.8 0 0 0-.393.681zm1.097-2.365l2.602-1.5l2.607 1.5v2.999l-2.597 1.5l-2.607-1.5Z",
|
|
21
|
+
thread: "Codex thread"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
// registry/comments/CommentSend.vue?vue&type=script&setup=true&lang.ts
|
|
25
|
+
const _hoisted_1 = [
|
|
26
|
+
"data-status",
|
|
27
|
+
"data-reason",
|
|
28
|
+
"hidden"
|
|
29
|
+
];
|
|
30
|
+
const _hoisted_2 = {
|
|
31
|
+
key: 0,
|
|
32
|
+
"data-slot": "comment-send-status",
|
|
33
|
+
"data-tone": "warning"
|
|
34
|
+
};
|
|
35
|
+
const _hoisted_3 = {
|
|
36
|
+
key: 1,
|
|
37
|
+
"data-slot": "comment-send-status",
|
|
38
|
+
"data-tone": "error"
|
|
39
|
+
};
|
|
40
|
+
const _hoisted_4 = { "data-slot": "comment-send-status" };
|
|
41
|
+
const _hoisted_5 = ["data-logo"];
|
|
42
|
+
const _hoisted_6 = ["viewBox"];
|
|
43
|
+
const _hoisted_7 = ["d"];
|
|
44
|
+
const _hoisted_8 = { "data-slot": "comment-send-message" };
|
|
45
|
+
const _hoisted_9 = {
|
|
46
|
+
"data-slot": "comment-send-status",
|
|
47
|
+
"aria-label": "Waiting for the agent",
|
|
48
|
+
"data-icon": "",
|
|
49
|
+
role: "img"
|
|
50
|
+
};
|
|
51
|
+
const _hoisted_10 = { "data-slot": "comment-send-status" };
|
|
52
|
+
const _hoisted_11 = ["data-logo"];
|
|
53
|
+
const _hoisted_12 = ["viewBox"];
|
|
54
|
+
const _hoisted_13 = ["d"];
|
|
55
|
+
const _hoisted_14 = ["title"];
|
|
56
|
+
const _hoisted_15 = ["aria-label", "title"];
|
|
57
|
+
const _hoisted_16 = {
|
|
58
|
+
key: 6,
|
|
59
|
+
"data-slot": "comment-send-hold"
|
|
60
|
+
};
|
|
61
|
+
const _hoisted_17 = { "data-slot": "comment-send-status" };
|
|
62
|
+
const _hoisted_18 = {
|
|
63
|
+
"aria-hidden": "true",
|
|
64
|
+
"data-slot": "comment-send-hold-copy"
|
|
65
|
+
};
|
|
66
|
+
const _hoisted_19 = { "data-slot": "comment-send-count" };
|
|
67
|
+
const _hoisted_20 = {
|
|
68
|
+
key: 7,
|
|
69
|
+
"data-slot": "comment-send-status"
|
|
70
|
+
};
|
|
71
|
+
const _hoisted_21 = ["aria-label", "href"];
|
|
72
|
+
const _hoisted_22 = ["aria-label", "title"];
|
|
73
|
+
const _hoisted_23 = { "data-slot": "comment-send-count" };
|
|
74
|
+
const _hoisted_24 = ["title"];
|
|
75
|
+
const _hoisted_25 = ["aria-label"];
|
|
76
|
+
const _hoisted_26 = {
|
|
77
|
+
key: 12,
|
|
78
|
+
"data-slot": "comment-send-status",
|
|
79
|
+
"data-tone": "warning"
|
|
80
|
+
};
|
|
81
|
+
// registry/comments/CommentSend.vue
|
|
82
|
+
var CommentSend_default = /* @__PURE__ */ defineComponent({
|
|
83
|
+
name: "CommentSend",
|
|
84
|
+
__name: "CommentSend",
|
|
85
|
+
props: { client: {} },
|
|
86
|
+
setup(__props) {
|
|
87
|
+
const props = __props;
|
|
88
|
+
const time = new Intl.DateTimeFormat(void 0, {
|
|
89
|
+
hour: "2-digit",
|
|
90
|
+
minute: "2-digit",
|
|
91
|
+
hourCycle: "h23"
|
|
92
|
+
});
|
|
93
|
+
const comments = (count) => `${count} ${count === 1 ? "comment" : "comments"}`;
|
|
94
|
+
function message(state) {
|
|
95
|
+
switch (state.status) {
|
|
96
|
+
case "pairing":
|
|
97
|
+
if (state.reason === "expired") return "Setup code expired.";
|
|
98
|
+
if (state.reason === "refused") return `That URL isn't ${state.agent.host}.`;
|
|
99
|
+
return `Setup prompt copied. Paste it in the ${agentLogos[state.agent.logo].thread} that should get your comments.`;
|
|
100
|
+
case "confirm": return `${state.agent.name} at ${state.agent.host} wants your comments from this site.`;
|
|
101
|
+
case "sent": return state.inbox ? "In inbox." : "Sent.";
|
|
102
|
+
case "working": return "Working.";
|
|
103
|
+
case "failed": return "Not delivered.";
|
|
104
|
+
case "limited": return `Limit reached, try at ${time.format(state.retryAt)}.`;
|
|
105
|
+
default: return;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const { copy } = useCopy();
|
|
109
|
+
const copyPrompt = (prompt) => copy(() => prompt);
|
|
110
|
+
const state = shallowRef(props.client.state);
|
|
111
|
+
const root = useTemplateRef("root");
|
|
112
|
+
let stop;
|
|
113
|
+
let unsubscribe;
|
|
114
|
+
function follow(client) {
|
|
115
|
+
unsubscribe?.();
|
|
116
|
+
stop?.();
|
|
117
|
+
state.value = client.state;
|
|
118
|
+
unsubscribe = client.onChange(() => state.value = client.state);
|
|
119
|
+
stop = client.start();
|
|
120
|
+
}
|
|
121
|
+
onMounted(() => {
|
|
122
|
+
prepareAnnouncer(root.value);
|
|
123
|
+
follow(props.client);
|
|
124
|
+
});
|
|
125
|
+
watch(() => props.client, follow);
|
|
126
|
+
onBeforeUnmount(() => {
|
|
127
|
+
unsubscribe?.();
|
|
128
|
+
stop?.();
|
|
129
|
+
});
|
|
130
|
+
watch(() => state.value.status === "pairing" ? `${state.value.status}:${state.value.reason ?? ""}` : state.value.status, () => {
|
|
131
|
+
const text = message(state.value);
|
|
132
|
+
if (text) announce(root.value, text);
|
|
133
|
+
});
|
|
134
|
+
function onKeydown(event) {
|
|
135
|
+
if (event.key !== "Escape" || event.defaultPrevented) return;
|
|
136
|
+
if (state.value.status !== "pairing" && state.value.status !== "confirm") return;
|
|
137
|
+
event.preventDefault();
|
|
138
|
+
props.client.cancel();
|
|
139
|
+
}
|
|
140
|
+
watch(() => state.value.status === "pairing" || state.value.status === "confirm", (listening) => {
|
|
141
|
+
if (listening) document.addEventListener("keydown", onKeydown);
|
|
142
|
+
else document.removeEventListener("keydown", onKeydown);
|
|
143
|
+
});
|
|
144
|
+
onBeforeUnmount(() => document.removeEventListener("keydown", onKeydown));
|
|
145
|
+
let before = 0;
|
|
146
|
+
let focused = false;
|
|
147
|
+
function clearWidth(element) {
|
|
148
|
+
element.style.removeProperty("width");
|
|
149
|
+
element.style.removeProperty("overflow");
|
|
150
|
+
element.style.removeProperty("box-sizing");
|
|
151
|
+
}
|
|
152
|
+
function renderWidth(value) {
|
|
153
|
+
const element = root.value;
|
|
154
|
+
if (!element) return;
|
|
155
|
+
if (!width.active) return clearWidth(element);
|
|
156
|
+
element.style.boxSizing = "border-box";
|
|
157
|
+
element.style.overflow = "hidden";
|
|
158
|
+
element.style.width = `${value}px`;
|
|
159
|
+
}
|
|
160
|
+
const width = createSpring(0, renderWidth);
|
|
161
|
+
onBeforeUnmount(() => width.stop());
|
|
162
|
+
const motionSkipped = (element) => !element.isConnected || typeof requestAnimationFrame !== "function" || isMotionOff(element);
|
|
163
|
+
const activeElement = () => {
|
|
164
|
+
const node = root.value?.getRootNode();
|
|
165
|
+
return node instanceof Document || node instanceof ShadowRoot ? node.activeElement : null;
|
|
166
|
+
};
|
|
167
|
+
onBeforeUpdate(() => {
|
|
168
|
+
before = root.value?.offsetWidth ?? 0;
|
|
169
|
+
const active = activeElement();
|
|
170
|
+
focused ||= Boolean(active && root.value?.contains(active));
|
|
171
|
+
});
|
|
172
|
+
onUpdated(() => {
|
|
173
|
+
const element = root.value;
|
|
174
|
+
if (!element) return;
|
|
175
|
+
clearWidth(element);
|
|
176
|
+
const after = element.offsetWidth;
|
|
177
|
+
if (before && after && before !== after && !motionSkipped(element)) {
|
|
178
|
+
if (!width.active) width.set(before);
|
|
179
|
+
width.to(after);
|
|
180
|
+
if (width.active) renderWidth(width.value);
|
|
181
|
+
} else width.stop();
|
|
182
|
+
const active = activeElement();
|
|
183
|
+
if (!focused || active && active !== element.ownerDocument.body && !element.contains(active)) return void (focused = false);
|
|
184
|
+
if (active && element.contains(active)) return;
|
|
185
|
+
const next = element.querySelector("button, a");
|
|
186
|
+
if (!next) return;
|
|
187
|
+
focused = false;
|
|
188
|
+
nextTick(() => next.focus({ preventScroll: true }));
|
|
189
|
+
});
|
|
190
|
+
let lastInbox = false;
|
|
191
|
+
const sendAs = computed(() => {
|
|
192
|
+
const current = state.value;
|
|
193
|
+
if (current.status === "idle") return current.count > 0 ? {
|
|
194
|
+
count: current.count,
|
|
195
|
+
inbox: current.inbox
|
|
196
|
+
} : void 0;
|
|
197
|
+
if (current.status === "sent" || current.status === "working") return current.count > 0 ? {
|
|
198
|
+
count: current.count,
|
|
199
|
+
inbox: Boolean(current.agent && !current.agent.host)
|
|
200
|
+
} : void 0;
|
|
201
|
+
});
|
|
202
|
+
watch(sendAs, (send) => {
|
|
203
|
+
if (send) lastInbox = send.inbox;
|
|
204
|
+
}, {
|
|
205
|
+
flush: "sync",
|
|
206
|
+
immediate: true
|
|
207
|
+
});
|
|
208
|
+
const held = computed(() => state.value.status === "sending" ? {
|
|
209
|
+
count: state.value.count,
|
|
210
|
+
inbox: lastInbox
|
|
211
|
+
} : void 0);
|
|
212
|
+
const empty = computed(() => state.value.status === "idle" && state.value.count === 0);
|
|
213
|
+
const contentKey = computed(() => state.value.status === "pairing" ? `pairing-${state.value.reason ?? ""}` : state.value.status);
|
|
214
|
+
const send = () => void props.client.send(copyPrompt);
|
|
215
|
+
return (_ctx, _cache) => {
|
|
216
|
+
return openBlock(), createElementBlock("div", {
|
|
217
|
+
ref_key: "root",
|
|
218
|
+
ref: root,
|
|
219
|
+
"data-slot": "comment-send",
|
|
220
|
+
role: "group",
|
|
221
|
+
"aria-label": "Send comments to your agent",
|
|
222
|
+
"data-status": state.value.status,
|
|
223
|
+
"data-reason": state.value.status === "pairing" ? state.value.reason : void 0,
|
|
224
|
+
hidden: empty.value || void 0
|
|
225
|
+
}, [(openBlock(), createElementBlock("span", {
|
|
226
|
+
key: contentKey.value,
|
|
227
|
+
"data-slot": "comment-send-content"
|
|
228
|
+
}, [
|
|
229
|
+
state.value.status === "pairing" && state.value.reason === "expired" ? (openBlock(), createElementBlock("span", _hoisted_2, [createVNode(unref(CircleAlert), {
|
|
230
|
+
class: "vh-comment-send-icon",
|
|
231
|
+
"aria-hidden": "true"
|
|
232
|
+
}), _cache[4] || (_cache[4] = createTextVNode("Setup code expired", -1))])) : state.value.status === "pairing" && state.value.reason === "refused" ? (openBlock(), createElementBlock("span", _hoisted_3, [createVNode(unref(CircleAlert), {
|
|
233
|
+
class: "vh-comment-send-icon",
|
|
234
|
+
"aria-hidden": "true"
|
|
235
|
+
}), createTextVNode("That URL isn't " + toDisplayString(state.value.agent.host), 1)])) : state.value.status === "pairing" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createElementVNode("span", _hoisted_4, [createElementVNode("span", {
|
|
236
|
+
"aria-hidden": "true",
|
|
237
|
+
"data-logo": state.value.agent.logo,
|
|
238
|
+
"data-slot": "comment-send-logo"
|
|
239
|
+
}, [(openBlock(), createElementBlock("svg", {
|
|
240
|
+
fill: "currentColor",
|
|
241
|
+
viewBox: unref(agentLogos)[state.value.agent.logo].viewBox,
|
|
242
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
243
|
+
}, [createElementVNode("path", { d: unref(agentLogos)[state.value.agent.logo].path }, null, 8, _hoisted_7)], 8, _hoisted_6))], 8, _hoisted_5), createElementVNode("span", _hoisted_8, [
|
|
244
|
+
_cache[5] || (_cache[5] = createElementVNode("span", { "data-wide": "" }, "Setup prompt copied. ", -1)),
|
|
245
|
+
createElementVNode("b", null, "Paste it in the " + toDisplayString(unref(agentLogos)[state.value.agent.logo].thread), 1),
|
|
246
|
+
_cache[6] || (_cache[6] = createElementVNode("span", { "data-wide": "" }, " that should get your comments", -1))
|
|
247
|
+
])]), createElementVNode("span", _hoisted_9, [createVNode(unref(LoaderCircle), {
|
|
248
|
+
class: "vh-comment-send-icon vh-comment-send-spin",
|
|
249
|
+
"aria-hidden": "true"
|
|
250
|
+
})])], 64)) : createCommentVNode("v-if", true),
|
|
251
|
+
state.value.status === "pairing" && state.value.reason ? (openBlock(), createElementBlock("button", {
|
|
252
|
+
key: 3,
|
|
253
|
+
type: "button",
|
|
254
|
+
"data-slot": "comment-send-action",
|
|
255
|
+
"data-action": "copy-again",
|
|
256
|
+
onClick: _cache[0] || (_cache[0] = ($event) => void props.client.copyAgain(copyPrompt))
|
|
257
|
+
}, [createVNode(unref(Copy), {
|
|
258
|
+
class: "vh-comment-send-icon",
|
|
259
|
+
"aria-hidden": "true"
|
|
260
|
+
}), _cache[7] || (_cache[7] = createTextVNode("Copy again", -1))])) : createCommentVNode("v-if", true),
|
|
261
|
+
state.value.status === "confirm" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [createElementVNode("span", _hoisted_10, [createElementVNode("span", {
|
|
262
|
+
"aria-hidden": "true",
|
|
263
|
+
"data-logo": state.value.agent.logo,
|
|
264
|
+
"data-slot": "comment-send-logo"
|
|
265
|
+
}, [(openBlock(), createElementBlock("svg", {
|
|
266
|
+
fill: "currentColor",
|
|
267
|
+
viewBox: unref(agentLogos)[state.value.agent.logo].viewBox,
|
|
268
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
269
|
+
}, [createElementVNode("path", { d: unref(agentLogos)[state.value.agent.logo].path }, null, 8, _hoisted_13)], 8, _hoisted_12))], 8, _hoisted_11), createElementVNode("span", {
|
|
270
|
+
"data-slot": "comment-send-message",
|
|
271
|
+
title: state.value.agent.host
|
|
272
|
+
}, [
|
|
273
|
+
createElementVNode("b", null, toDisplayString(state.value.agent.name), 1),
|
|
274
|
+
state.value.agent.host ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(" · " + toDisplayString(state.value.agent.host), 1)], 64)) : createCommentVNode("v-if", true),
|
|
275
|
+
_cache[8] || (_cache[8] = createElementVNode("span", { "data-wide": "" }, " wants your comments from this site", -1))
|
|
276
|
+
], 8, _hoisted_14)]), createElementVNode("button", {
|
|
277
|
+
type: "button",
|
|
278
|
+
"data-slot": "comment-send-action",
|
|
279
|
+
"data-action": "allow",
|
|
280
|
+
"data-variant": "on",
|
|
281
|
+
onClick: _cache[1] || (_cache[1] = ($event) => void props.client.allow())
|
|
282
|
+
}, [createVNode(unref(Check), {
|
|
283
|
+
class: "vh-comment-send-icon",
|
|
284
|
+
"aria-hidden": "true"
|
|
285
|
+
}), createTextVNode("Allow and send " + toDisplayString(state.value.count), 1)])], 64)) : createCommentVNode("v-if", true),
|
|
286
|
+
state.value.status === "pairing" || state.value.status === "confirm" ? (openBlock(), createElementBlock("button", {
|
|
287
|
+
key: 5,
|
|
288
|
+
type: "button",
|
|
289
|
+
"data-slot": "comment-send-action",
|
|
290
|
+
"data-action": "cancel",
|
|
291
|
+
"data-icon": "",
|
|
292
|
+
"aria-label": state.value.status === "confirm" ? `Don't allow` : "Cancel connect",
|
|
293
|
+
title: `${state.value.status === "confirm" ? `Don't allow` : "Cancel connect"} (Esc)`,
|
|
294
|
+
onClick: _cache[2] || (_cache[2] = ($event) => props.client.cancel())
|
|
295
|
+
}, [createVNode(unref(X), {
|
|
296
|
+
class: "vh-comment-send-icon",
|
|
297
|
+
"aria-hidden": "true"
|
|
298
|
+
})], 8, _hoisted_15)) : createCommentVNode("v-if", true),
|
|
299
|
+
held.value ? (openBlock(), createElementBlock("span", _hoisted_16, [createElementVNode("span", _hoisted_17, [createVNode(unref(LoaderCircle), {
|
|
300
|
+
class: "vh-comment-send-icon vh-comment-send-spin",
|
|
301
|
+
"aria-hidden": "true"
|
|
302
|
+
}), _cache[9] || (_cache[9] = createTextVNode("Sending", -1))]), createElementVNode("span", _hoisted_18, [
|
|
303
|
+
held.value.inbox ? (openBlock(), createBlock(unref(Inbox), {
|
|
304
|
+
key: 0,
|
|
305
|
+
class: "vh-comment-send-icon",
|
|
306
|
+
"aria-hidden": "true"
|
|
307
|
+
})) : (openBlock(), createBlock(unref(Send), {
|
|
308
|
+
key: 1,
|
|
309
|
+
class: "vh-comment-send-icon",
|
|
310
|
+
"aria-hidden": "true"
|
|
311
|
+
})),
|
|
312
|
+
createTextVNode(toDisplayString(held.value.inbox ? "To inbox" : "Send"), 1),
|
|
313
|
+
createElementVNode("span", _hoisted_19, toDisplayString(held.value.count), 1)
|
|
314
|
+
])])) : createCommentVNode("v-if", true),
|
|
315
|
+
state.value.status === "sent" ? (openBlock(), createElementBlock("span", _hoisted_20, [createVNode(unref(Check), {
|
|
316
|
+
class: "vh-comment-send-icon",
|
|
317
|
+
"aria-hidden": "true"
|
|
318
|
+
}), createTextVNode(toDisplayString(state.value.inbox ? "In inbox" : "Sent"), 1)])) : createCommentVNode("v-if", true),
|
|
319
|
+
state.value.status === "working" ? (openBlock(), createElementBlock(Fragment, { key: 8 }, [_cache[11] || (_cache[11] = createElementVNode("span", { "data-slot": "comment-send-status" }, [createElementVNode("span", {
|
|
320
|
+
"aria-hidden": "true",
|
|
321
|
+
"data-slot": "comment-send-dot"
|
|
322
|
+
}), createTextVNode("Working")], -1)), state.value.thread ? (openBlock(), createElementBlock("a", {
|
|
323
|
+
key: 0,
|
|
324
|
+
"data-slot": "comment-send-action",
|
|
325
|
+
"data-action": "open",
|
|
326
|
+
"aria-label": `Open the ${state.value.agent?.name ?? "agent"} thread`,
|
|
327
|
+
href: state.value.thread,
|
|
328
|
+
rel: "noopener",
|
|
329
|
+
target: "_blank"
|
|
330
|
+
}, [_cache[10] || (_cache[10] = createTextVNode("Open thread", -1)), createVNode(unref(ArrowUpRight), {
|
|
331
|
+
class: "vh-comment-send-icon",
|
|
332
|
+
"aria-hidden": "true"
|
|
333
|
+
})], 8, _hoisted_21)) : createCommentVNode("v-if", true)], 64)) : createCommentVNode("v-if", true),
|
|
334
|
+
sendAs.value ? (openBlock(), createElementBlock("button", {
|
|
335
|
+
key: 9,
|
|
336
|
+
type: "button",
|
|
337
|
+
"data-slot": "comment-send-action",
|
|
338
|
+
"data-action": "send",
|
|
339
|
+
"aria-label": `${sendAs.value.inbox ? "Send to inbox" : "Send"}: ${comments(sendAs.value.count)}`,
|
|
340
|
+
title: `Send ${comments(sendAs.value.count)} that wait for an answer to your agent`,
|
|
341
|
+
onClick: send
|
|
342
|
+
}, [
|
|
343
|
+
sendAs.value.inbox ? (openBlock(), createBlock(unref(Inbox), {
|
|
344
|
+
key: 0,
|
|
345
|
+
class: "vh-comment-send-icon",
|
|
346
|
+
"aria-hidden": "true"
|
|
347
|
+
})) : (openBlock(), createBlock(unref(Send), {
|
|
348
|
+
key: 1,
|
|
349
|
+
class: "vh-comment-send-icon",
|
|
350
|
+
"aria-hidden": "true"
|
|
351
|
+
})),
|
|
352
|
+
createTextVNode(toDisplayString(sendAs.value.inbox ? "To inbox" : "Send"), 1),
|
|
353
|
+
createElementVNode("span", _hoisted_23, toDisplayString(sendAs.value.count), 1)
|
|
354
|
+
], 8, _hoisted_22)) : createCommentVNode("v-if", true),
|
|
355
|
+
state.value.status === "idle" && state.value.count > 0 && state.value.canPairAnother ? (openBlock(), createElementBlock("button", {
|
|
356
|
+
key: 10,
|
|
357
|
+
type: "button",
|
|
358
|
+
"data-slot": "comment-send-action",
|
|
359
|
+
"data-action": "pair-another",
|
|
360
|
+
onClick: _cache[3] || (_cache[3] = ($event) => void props.client.pairAnother(copyPrompt))
|
|
361
|
+
}, [createVNode(unref(Link), {
|
|
362
|
+
class: "vh-comment-send-icon",
|
|
363
|
+
"aria-hidden": "true"
|
|
364
|
+
}), _cache[12] || (_cache[12] = createTextVNode("Pair another agent", -1))])) : createCommentVNode("v-if", true),
|
|
365
|
+
state.value.status === "failed" ? (openBlock(), createElementBlock(Fragment, { key: 11 }, [createElementVNode("span", {
|
|
366
|
+
"data-slot": "comment-send-status",
|
|
367
|
+
"data-tone": "error",
|
|
368
|
+
title: state.value.reason
|
|
369
|
+
}, [createVNode(unref(CircleAlert), {
|
|
370
|
+
class: "vh-comment-send-icon",
|
|
371
|
+
"aria-hidden": "true"
|
|
372
|
+
}), _cache[13] || (_cache[13] = createTextVNode("Not delivered", -1))], 8, _hoisted_24), createElementVNode("button", {
|
|
373
|
+
type: "button",
|
|
374
|
+
"data-slot": "comment-send-action",
|
|
375
|
+
"data-action": "retry",
|
|
376
|
+
"aria-label": `Retry: send ${comments(state.value.count)} again`,
|
|
377
|
+
onClick: send
|
|
378
|
+
}, [createVNode(unref(RotateCcw), {
|
|
379
|
+
class: "vh-comment-send-icon",
|
|
380
|
+
"aria-hidden": "true"
|
|
381
|
+
}), _cache[14] || (_cache[14] = createTextVNode("Retry", -1))], 8, _hoisted_25)], 64)) : createCommentVNode("v-if", true),
|
|
382
|
+
state.value.status === "limited" ? (openBlock(), createElementBlock("span", _hoisted_26, [createVNode(unref(CircleAlert), {
|
|
383
|
+
class: "vh-comment-send-icon",
|
|
384
|
+
"aria-hidden": "true"
|
|
385
|
+
}), createTextVNode("Limit reached, try at " + toDisplayString(unref(time).format(state.value.retryAt)), 1)])) : createCommentVNode("v-if", true)
|
|
386
|
+
]))], 8, _hoisted_1);
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
});
|
|
390
|
+
export { CommentSend_default as t };
|