@vite-hub/ui 0.1.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +244 -18
- package/dist/attachments-BzTwqRTU.js +90 -0
- package/dist/choices-input-ByXJvDn1.d.ts +94 -0
- package/dist/{code-view-J4OsgEdh.js → code-view-D0bqhogi.js} +20 -4
- package/dist/colors-BghReA9C-CjF9gnmy.js +28 -0
- package/dist/comment-composer-Cc8Jvu6u.d.ts +243 -0
- package/dist/comment-composer-jYv2ULNP.js +591 -0
- package/dist/comment-layer-ClH4MLj4.d.ts +165 -0
- package/dist/comment-list-B8hphLfS.d.ts +62 -0
- package/dist/comment-marks.css +234 -0
- package/dist/comment-panel-fcKSKwLC.d.ts +197 -0
- package/dist/comment-person-CLPlW_SS.js +40 -0
- package/dist/comment-pin-CvwgRSDR.d.ts +68 -0
- package/dist/comment-row-Bbm9WwuF.js +39 -0
- package/dist/comment-thread-CoTLrdal.d.ts +368 -0
- package/dist/comment-visibility-DsVuVndP.d.ts +40 -0
- package/dist/{comments-ChNJkV1d.d.ts → comments-Bx2WRsYy.d.ts} +69 -7
- package/dist/{comments-C08J3z4e.js → comments-CkWc2Khc.js} +155 -60
- package/dist/comments-context-C2lOZyQ5.js +38 -0
- package/dist/config-DgxBW013.d.ts +80 -0
- package/dist/config-Dk67emQt.js +63 -0
- package/dist/copy-button-CRN3kmSD.js +253 -0
- package/dist/draw-DzSmD7uo-Dwz8zoH2.js +72976 -0
- package/dist/editor-C_wt4RRV.js +582 -0
- package/dist/error-diagnostics-SXtnk6bz.js +38 -0
- package/dist/{file-tree-C1pv4_AI.js → file-tree-C4OYgbV-.js} +292 -145
- package/dist/{file-tree-Ctb8hZ_g.d.ts → file-tree-DlT9RGhu.d.ts} +51 -15
- package/dist/format-Du58PlsG.js +18 -0
- package/dist/handlers-DMl-Na3x.js +182 -0
- package/dist/headless.d.ts +5 -176
- package/dist/headless.js +5 -3
- package/dist/icon-swap.css +69 -0
- package/dist/{image-preview-VfknBEFu.js → image-preview-C9tdkmEj.js} +8 -5
- package/dist/{index-DcH0QSI5.d.ts → index-BD1e8vx5.d.ts} +8 -0
- package/dist/{code-view-vDM-hph-.d.ts → index-CNY1uNTh.d.ts} +14 -228
- package/dist/index.d.ts +53 -56
- package/dist/index.js +677 -25
- package/dist/markdown-editor-CMbNZOdN.js +2394 -0
- package/dist/markdown-editor-DqdZfIEn.d.ts +195 -0
- package/dist/markdown-editor.d.ts +108 -0
- package/dist/markdown-editor.js +3 -0
- package/dist/message-scroller-Bm1YWTeY.d.ts +175 -0
- package/dist/nuxt-ui-DSQFzq3s.js +38 -0
- package/dist/nuxt.d.ts +84 -2
- package/dist/nuxt.js +237 -35
- package/dist/parts/components/agent-session.d.ts +254 -0
- package/dist/parts/components/agent-session.js +640 -0
- package/dist/{attachment-BBndG9_P.d.ts → parts/components/attachment.d.ts} +13 -14
- package/dist/{attachment-B3dXC7jM.js → parts/components/attachment.js} +6 -4
- package/dist/{avatar-stack.d.ts → parts/components/avatar-stack.d.ts} +1 -1
- package/dist/{avatar-stack-DM6HRnc0.js → parts/components/avatar-stack.js} +2 -5
- package/dist/{bubble-BJH2rfii.d.ts → parts/components/bubble.d.ts} +8 -9
- package/dist/{bubble-BPyFQlW7.js → parts/components/bubble.js} +2 -2
- package/dist/{chat-message-mpDmZbIC.d.ts → parts/components/chat-message.d.ts} +2 -3
- package/dist/{chat-message-BNK9G7xF.js → parts/components/chat-message.js} +4 -4
- package/dist/{chat-session-D6C7VJBR.d.ts → parts/components/chat-session.d.ts} +3 -4
- package/dist/{chat-session-DYEHB1HC.js → parts/components/chat-session.js} +2 -2
- package/dist/{chat-B9HlZWA2.d.ts → parts/components/chat.d.ts} +8 -4
- package/dist/{chat-BoFHlu9V.js → parts/components/chat.js} +42 -9
- package/dist/{highlighted-code-Dzf6o54i.d.ts → parts/components/code-block.d.ts} +16 -24
- package/dist/{code-block-Br-02hn-.js → parts/components/code-block.js} +9 -38
- package/dist/parts/components/code-view.d.ts +270 -0
- package/dist/parts/components/code-view.js +2 -0
- package/dist/parts/components/comment-composer.d.ts +2 -0
- package/dist/parts/components/comment-composer.js +2 -0
- package/dist/parts/components/comment-layer.d.ts +2 -0
- package/dist/parts/components/comment-layer.js +618 -0
- package/dist/parts/components/comment-list.d.ts +2 -0
- package/dist/parts/components/comment-list.js +167 -0
- package/dist/parts/components/comment-panel.d.ts +2 -0
- package/dist/parts/components/comment-panel.js +299 -0
- package/dist/parts/components/comment-pin.d.ts +2 -0
- package/dist/parts/components/comment-pin.js +75 -0
- package/dist/parts/components/comment-thread.d.ts +2 -0
- package/dist/parts/components/comment-thread.js +571 -0
- package/dist/parts/components/comments.d.ts +7 -0
- package/dist/parts/components/comments.js +8 -0
- package/dist/{connection-status-DjGBw6xX.d.ts → parts/components/connection-status.d.ts} +6 -7
- package/dist/{connection-status-CzuWBENf.js → parts/components/connection-status.js} +1 -1
- package/dist/parts/components/copy-button.d.ts +118 -0
- package/dist/parts/components/copy-button.js +2 -0
- package/dist/parts/components/device-frame.d.ts +130 -0
- package/dist/parts/components/device-frame.js +471 -0
- package/dist/parts/components/file-tree.d.ts +2 -0
- package/dist/parts/components/file-tree.js +2 -0
- package/dist/parts/components/filter-search.d.ts +47 -0
- package/dist/parts/components/filter-search.js +58 -0
- package/dist/parts/components/markdown-editor.d.ts +2 -0
- package/dist/parts/components/markdown-editor.js +2 -0
- package/dist/parts/components/markdown-renderer.d.ts +52 -0
- package/dist/parts/components/markdown-renderer.js +23077 -0
- package/dist/{markdown-Dse5ldJe.d.ts → parts/components/markdown.d.ts} +7 -7
- package/dist/parts/components/markdown.js +47 -0
- package/dist/{marker-ea-tvx-J.d.ts → parts/components/marker.d.ts} +5 -6
- package/dist/{marker-Di2ZG_k1.js → parts/components/marker.js} +2 -2
- package/dist/{message-parts-BBFUkluC.d.ts → parts/components/message-parts.d.ts} +2 -3
- package/dist/{message-parts-DQnfioAH.js → parts/components/message-parts.js} +6 -6
- package/dist/{message-CW_paC1k.d.ts → parts/components/message.d.ts} +8 -9
- package/dist/{message-DiyBthIq.js → parts/components/message.js} +2 -2
- package/dist/parts/components/patch-parsers.d.ts +2 -0
- package/dist/parts/components/patch-parsers.js +2 -0
- package/dist/{prompt-input-Cy_Ue6B5.d.ts → parts/components/prompt-input.d.ts} +54 -11
- package/dist/{prompt-input-BbnCb80O.js → parts/components/prompt-input.js} +66 -111
- package/dist/parts/components/relative-time.d.ts +73 -0
- package/dist/parts/components/relative-time.js +2 -0
- package/dist/parts/components/status.d.ts +60 -0
- package/dist/parts/components/status.js +48 -0
- package/dist/{sync-status-refELOZn.d.ts → parts/components/sync-status.d.ts} +5 -6
- package/dist/{sync-status-BpxYdZIJ.js → parts/components/sync-status.js} +1 -1
- package/dist/{tool-list-E7CA52rz.d.ts → parts/components/tool-list.d.ts} +3 -4
- package/dist/{tool-list-BdSr5CT4.js → parts/components/tool-list.js} +7 -38
- package/dist/{trace-run-COeXn46Z.d.ts → parts/components/trace-run.d.ts} +3 -4
- package/dist/{trace-run-BIQ17CED.js → parts/components/trace-run.js} +15 -23
- package/dist/{trace-V7rM3Pyd.d.ts → parts/components/trace.d.ts} +10 -11
- package/dist/{trace-llBCDiSW.js → parts/components/trace.js} +20 -13
- package/dist/parts/composables/attachments.d.ts +32 -0
- package/dist/parts/composables/attachments.js +2 -0
- package/dist/parts/composables/highlighted-code.d.ts +9 -0
- package/dist/{highlighted-code-Ck4zexJX.js → parts/composables/highlighted-code.js} +5 -2
- package/dist/parts/headless/choices-input.d.ts +2 -0
- package/dist/parts/headless/choices-input.js +162 -0
- package/dist/parts/headless/comment-visibility.d.ts +2 -0
- package/dist/parts/headless/comment-visibility.js +128 -0
- package/dist/parts/headless/comments.d.ts +2 -0
- package/dist/parts/headless/comments.js +2 -0
- package/dist/parts/headless/message-scroller.d.ts +2 -0
- package/dist/{message-scroller-CX6NJTdm.js → parts/headless/message-scroller.js} +2 -2
- package/dist/parts/playground/highlight.d.ts +5 -0
- package/dist/parts/playground/highlight.js +23 -0
- package/dist/parts/playground/paths.d.ts +4 -0
- package/dist/parts/playground/paths.js +7 -0
- package/dist/parts/playground/playground-render.d.ts +126 -0
- package/dist/parts/playground/playground-render.js +356 -0
- package/dist/parts/playground/share.d.ts +2 -0
- package/dist/parts/playground/share.js +92 -0
- package/dist/parts/playground/zip.d.ts +6 -0
- package/dist/parts/playground/zip.js +76 -0
- package/dist/parts/workspace/browser-support-notice.d.ts +76 -0
- package/dist/parts/workspace/browser-support-notice.js +105 -0
- package/dist/parts/workspace/codemirror.d.ts +16 -0
- package/dist/parts/workspace/codemirror.js +243 -0
- package/dist/parts/workspace/connect-panel.d.ts +129 -0
- package/dist/parts/workspace/connect-panel.js +285 -0
- package/dist/parts/workspace/connect-store.d.ts +26 -0
- package/dist/parts/workspace/connect-store.js +59 -0
- package/dist/parts/workspace/icons.d.ts +34 -0
- package/dist/parts/workspace/icons.js +46 -0
- package/dist/parts/workspace/playground-container.d.ts +192 -0
- package/dist/parts/workspace/playground-container.js +603 -0
- package/dist/parts/workspace/workspace-boot-status.d.ts +75 -0
- package/dist/parts/workspace/workspace-boot-status.js +207 -0
- package/dist/parts/workspace/workspace-editor.d.ts +43 -0
- package/dist/parts/workspace/workspace-editor.js +54 -0
- package/dist/parts/workspace/workspace-file-tree.d.ts +53 -0
- package/dist/parts/workspace/workspace-file-tree.js +68 -0
- package/dist/parts/workspace/workspace-preview.d.ts +72 -0
- package/dist/parts/workspace/workspace-preview.js +307 -0
- package/dist/parts/workspace/workspace-shell.d.ts +88 -0
- package/dist/parts/workspace/workspace-shell.js +291 -0
- package/dist/parts/workspace/workspace-terminal.d.ts +39 -0
- package/dist/parts/workspace/workspace-terminal.js +130 -0
- package/dist/payload-text-sjkYAwvw.js +32 -0
- package/dist/{pierre-code-view-T7V67hwT.js → pierre-code-view-xgBL6DO7.js} +209 -86
- package/dist/{pierre-dark-DDWDl8g6.js → pierre-dark-CzUmjETS.js} +3 -1
- package/dist/{pierre-light-CWhW4NrH.js → pierre-light-Dn6E0sWv.js} +3 -1
- package/dist/playground.d.ts +4 -0
- package/dist/playground.js +4 -0
- package/dist/relative-time-BVmjOsYG.js +309 -0
- package/dist/rolldown-runtime-C9mWXvCC.js +29 -0
- package/dist/runtime/nuxt-plugin.js +23 -4
- package/dist/sankey-CAYwt82B-D4uDQoMR.js +2887 -0
- package/dist/share-DM4eNy4q.d.ts +37 -0
- package/dist/{slot-part-C7Ocxn3b.js → slot-part-Doic71uh.js} +7 -1
- package/dist/styles.css +2465 -594
- package/dist/temml-BilSAAws.js +12362 -0
- package/dist/theme-focus-ring.css +42 -0
- package/dist/theme.css +376 -0
- package/dist/theme.d.ts +355 -0
- package/dist/theme.js +265 -0
- package/dist/{types-CqDwuJAm.d.ts → types-Dyr6CfBW.d.ts} +1 -1
- package/dist/vue-BDmSCtay.js +30779 -0
- package/dist/vue-DGstVdGn.js +2492 -0
- package/dist/workspace.d.ts +15 -0
- package/dist/workspace.js +12 -0
- package/package.json +136 -150
- package/dist/andromeeda-BASpqCeJ.js +0 -4
- package/dist/attachment.d.ts +0 -2
- package/dist/attachment.js +0 -2
- package/dist/aurora-x-DugsLcii.js +0 -4
- package/dist/avatar-stack.js +0 -2
- package/dist/ayu-dark-BT3qdi3o.js +0 -4
- package/dist/ayu-light-BVZyHoh9.js +0 -4
- package/dist/ayu-mirage-XFwUVZQZ.js +0 -4
- package/dist/bubble.d.ts +0 -2
- package/dist/bubble.js +0 -2
- package/dist/catppuccin-frappe-D20KODDN.js +0 -4
- package/dist/catppuccin-latte-eGLVHIUJ.js +0 -4
- package/dist/catppuccin-macchiato-bQGch4PY.js +0 -4
- package/dist/catppuccin-mocha-Bes8-0Mr.js +0 -4
- package/dist/chat-message.d.ts +0 -2
- package/dist/chat-message.js +0 -2
- package/dist/chat-session.d.ts +0 -2
- package/dist/chat-session.js +0 -2
- package/dist/chat.d.ts +0 -2
- package/dist/chat.js +0 -2
- package/dist/code-block.d.ts +0 -2
- package/dist/code-block.js +0 -3
- package/dist/code-view.d.ts +0 -2
- package/dist/code-view.js +0 -2
- package/dist/comment-layer-CBlxJ8eK.js +0 -1113
- package/dist/comments-Cq5eewsu.d.ts +0 -537
- package/dist/comments.d.ts +0 -2
- package/dist/comments.js +0 -2
- package/dist/config-Bux_AJzm.d.ts +0 -29
- package/dist/config-bHqE4JOs.js +0 -38
- package/dist/connection-status.d.ts +0 -2
- package/dist/connection-status.js +0 -2
- package/dist/dark-plus-BGuiqa1B.js +0 -4
- package/dist/dracula-0CVA2XY5.js +0 -4
- package/dist/dracula-soft-Dk9bpbVU.js +0 -4
- package/dist/error-diagnostics-B4hMpJRL.js +0 -13
- package/dist/everforest-dark-CRjTbhh5.js +0 -4
- package/dist/everforest-light-CEeYFLn8.js +0 -4
- package/dist/file-diff.d.ts +0 -2
- package/dist/file-diff.js +0 -2
- package/dist/file-tree.d.ts +0 -2
- package/dist/file-tree.js +0 -2
- package/dist/file-view.d.ts +0 -2
- package/dist/file-view.js +0 -2
- package/dist/github-dark-BXgKmOw_.js +0 -4
- package/dist/github-dark-default-DzJQXksd.js +0 -4
- package/dist/github-dark-dimmed-B1pEmGtS.js +0 -4
- package/dist/github-dark-high-contrast-BkHIa6jc.js +0 -4
- package/dist/github-light-BKRlUbaB.js +0 -4
- package/dist/github-light-default-BU3eYkzs.js +0 -4
- package/dist/github-light-high-contrast-B3MumDcI.js +0 -4
- package/dist/gruvbox-dark-hard-B0ecF443.js +0 -4
- package/dist/gruvbox-dark-medium-BQnpC39k.js +0 -4
- package/dist/gruvbox-dark-soft-DFZUgESr.js +0 -4
- package/dist/gruvbox-light-hard-CuB_LOJr.js +0 -4
- package/dist/gruvbox-light-medium-idDHgxjs.js +0 -4
- package/dist/gruvbox-light-soft-CfWH49MY.js +0 -4
- package/dist/horizon-bright-Ba6M8QSV.js +0 -4
- package/dist/horizon-h92C5OlZ.js +0 -4
- package/dist/houston-EQnPegWq.js +0 -4
- package/dist/kanagawa-dragon-DgDvwi3B.js +0 -4
- package/dist/kanagawa-lotus-BgoQro20.js +0 -4
- package/dist/kanagawa-wave-DgXEowHs.js +0 -4
- package/dist/laserwave-IxBH_3yW.js +0 -4
- package/dist/light-plus-S8JBx6is.js +0 -4
- package/dist/markdown-BoLBN0qH.js +0 -197
- package/dist/markdown.d.ts +0 -2
- package/dist/markdown.js +0 -2
- package/dist/marker.d.ts +0 -2
- package/dist/marker.js +0 -2
- package/dist/material-theme-D1f3HBq-.js +0 -4
- package/dist/material-theme-darker-ExzYhT0j.js +0 -4
- package/dist/material-theme-lighter-D6gH9nnA.js +0 -4
- package/dist/material-theme-ocean-D1w5BPAa.js +0 -4
- package/dist/material-theme-palenight-CkqWmVpF.js +0 -4
- package/dist/message-parts.d.ts +0 -2
- package/dist/message-parts.js +0 -2
- package/dist/message.d.ts +0 -2
- package/dist/message.js +0 -2
- package/dist/min-dark-npsJH98j.js +0 -4
- package/dist/min-light-DUk1XsVt.js +0 -4
- package/dist/monokai-CfFRWUNl.js +0 -4
- package/dist/multi-file-diff.d.ts +0 -2
- package/dist/multi-file-diff.js +0 -2
- package/dist/night-owl-BS7V-av_.js +0 -4
- package/dist/night-owl-light-CZtRawYE.js +0 -4
- package/dist/nord-BFh54Nqz.js +0 -4
- package/dist/one-dark-pro-zDovGosB.js +0 -4
- package/dist/one-light-gmHK3iK6.js +0 -4
- package/dist/patch-diff.d.ts +0 -2
- package/dist/patch-diff.js +0 -2
- package/dist/plastic-DtdaCjub.js +0 -4
- package/dist/poimandres-Hdda6aHK.js +0 -4
- package/dist/primitive-rail.d.ts +0 -222
- package/dist/primitive-rail.js +0 -348
- package/dist/prompt-input.d.ts +0 -2
- package/dist/prompt-input.js +0 -2
- package/dist/red-VqZFRByZ.js +0 -4
- package/dist/rose-pine-DiTkEueR.js +0 -4
- package/dist/rose-pine-dawn-tfo5y2X0.js +0 -4
- package/dist/rose-pine-moon-C0gON9XN.js +0 -4
- package/dist/runtime-type-DlCscMfw.js +0 -59
- package/dist/slack-dark-v8P_eXr6.js +0 -4
- package/dist/slack-ochin-D8SyEdKz.js +0 -4
- package/dist/snazzy-light-BtkQkvXb.js +0 -4
- package/dist/solarized-dark-B8nAdMfM.js +0 -4
- package/dist/solarized-light-B-3F1INj.js +0 -4
- package/dist/sync-status.d.ts +0 -2
- package/dist/sync-status.js +0 -2
- package/dist/synthwave-84-DcsXCF_c.js +0 -4
- package/dist/tokyo-night-Bvpqduda.js +0 -4
- package/dist/tool-list.d.ts +0 -2
- package/dist/tool-list.js +0 -2
- package/dist/trace-run.d.ts +0 -2
- package/dist/trace-run.js +0 -2
- package/dist/trace.d.ts +0 -2
- package/dist/trace.js +0 -2
- package/dist/unresolved-file.d.ts +0 -2
- package/dist/unresolved-file.js +0 -2
- package/dist/vesper-CfxmMOy3.js +0 -4
- package/dist/vitesse-black-D9-_1mjV.js +0 -4
- package/dist/vitesse-dark-DlSMLlr9.js +0 -4
- package/dist/vitesse-light-KRWWWztf.js +0 -4
|
@@ -1,537 +0,0 @@
|
|
|
1
|
-
import { n as AvatarStackPerson } from "./avatar-stack-DXmCQhxd.js";
|
|
2
|
-
import { i as CommentsState } from "./comments-ChNJkV1d.js";
|
|
3
|
-
import { PropType } from "vue";
|
|
4
|
-
import { CommentMessage, CommentStatus, CommentSubject, CommentThread, CommentUser, CommentsClient } from "@vite-hub/comments/client";
|
|
5
|
-
//#region src/components/comment-composer.d.ts
|
|
6
|
-
type CommentComposerVariant = "comment" | "reply" | "edit";
|
|
7
|
-
/** What `submit` sends: the text and the ids of the people mentioned in it. */
|
|
8
|
-
interface CommentComposerSubmit {
|
|
9
|
-
body: string;
|
|
10
|
-
mentions: string[];
|
|
11
|
-
}
|
|
12
|
-
declare const CommentComposer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
-
modelValue: {
|
|
14
|
-
default: string;
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
};
|
|
17
|
-
/** The ids of the people mentioned so far. */
|
|
18
|
-
mentions: {
|
|
19
|
-
default: () => never[];
|
|
20
|
-
type: PropType<string[]>;
|
|
21
|
-
};
|
|
22
|
-
/** Whose avatar shows beside the box. */
|
|
23
|
-
user: {
|
|
24
|
-
type: PropType<CommentUser>;
|
|
25
|
-
};
|
|
26
|
-
variant: {
|
|
27
|
-
default: string;
|
|
28
|
-
type: PropType<CommentComposerVariant>;
|
|
29
|
-
};
|
|
30
|
-
placeholder: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
};
|
|
33
|
-
/** A send is running. The box keeps its text and cannot send again. */
|
|
34
|
-
busy: {
|
|
35
|
-
default: boolean;
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
};
|
|
38
|
-
/** Why the last send failed. */
|
|
39
|
-
error: {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
};
|
|
42
|
-
/** Focus the box when it appears. */
|
|
43
|
-
autofocus: {
|
|
44
|
-
default: boolean;
|
|
45
|
-
type: BooleanConstructor;
|
|
46
|
-
};
|
|
47
|
-
/** Treat a click outside as a close, or as a shake when there is text. Turn it off when the parent decides. */
|
|
48
|
-
guard: {
|
|
49
|
-
default: boolean;
|
|
50
|
-
type: BooleanConstructor;
|
|
51
|
-
};
|
|
52
|
-
/** People whose names the text may hold, such as the authors of a thread. Only mentions of a person whose `@name` is still in the text are sent. */
|
|
53
|
-
people: {
|
|
54
|
-
default: () => never[];
|
|
55
|
-
type: PropType<CommentUser[]>;
|
|
56
|
-
};
|
|
57
|
-
/** Finds people for `@mentions`. Without it the box has no mention menu. */
|
|
58
|
-
users: {
|
|
59
|
-
type: PropType<(query: string) => Promise<CommentUser[]>>;
|
|
60
|
-
};
|
|
61
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
62
|
-
[key: string]: any;
|
|
63
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "submit" | "update:modelValue" | "update:mentions")[], "cancel" | "submit" | "update:modelValue" | "update:mentions", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
-
modelValue: {
|
|
65
|
-
default: string;
|
|
66
|
-
type: StringConstructor;
|
|
67
|
-
};
|
|
68
|
-
/** The ids of the people mentioned so far. */
|
|
69
|
-
mentions: {
|
|
70
|
-
default: () => never[];
|
|
71
|
-
type: PropType<string[]>;
|
|
72
|
-
};
|
|
73
|
-
/** Whose avatar shows beside the box. */
|
|
74
|
-
user: {
|
|
75
|
-
type: PropType<CommentUser>;
|
|
76
|
-
};
|
|
77
|
-
variant: {
|
|
78
|
-
default: string;
|
|
79
|
-
type: PropType<CommentComposerVariant>;
|
|
80
|
-
};
|
|
81
|
-
placeholder: {
|
|
82
|
-
type: StringConstructor;
|
|
83
|
-
};
|
|
84
|
-
/** A send is running. The box keeps its text and cannot send again. */
|
|
85
|
-
busy: {
|
|
86
|
-
default: boolean;
|
|
87
|
-
type: BooleanConstructor;
|
|
88
|
-
};
|
|
89
|
-
/** Why the last send failed. */
|
|
90
|
-
error: {
|
|
91
|
-
type: StringConstructor;
|
|
92
|
-
};
|
|
93
|
-
/** Focus the box when it appears. */
|
|
94
|
-
autofocus: {
|
|
95
|
-
default: boolean;
|
|
96
|
-
type: BooleanConstructor;
|
|
97
|
-
};
|
|
98
|
-
/** Treat a click outside as a close, or as a shake when there is text. Turn it off when the parent decides. */
|
|
99
|
-
guard: {
|
|
100
|
-
default: boolean;
|
|
101
|
-
type: BooleanConstructor;
|
|
102
|
-
};
|
|
103
|
-
/** People whose names the text may hold, such as the authors of a thread. Only mentions of a person whose `@name` is still in the text are sent. */
|
|
104
|
-
people: {
|
|
105
|
-
default: () => never[];
|
|
106
|
-
type: PropType<CommentUser[]>;
|
|
107
|
-
};
|
|
108
|
-
/** Finds people for `@mentions`. Without it the box has no mention menu. */
|
|
109
|
-
users: {
|
|
110
|
-
type: PropType<(query: string) => Promise<CommentUser[]>>;
|
|
111
|
-
};
|
|
112
|
-
}>> & Readonly<{
|
|
113
|
-
onCancel?: ((...args: any[]) => any) | undefined;
|
|
114
|
-
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
115
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
116
|
-
"onUpdate:mentions"?: ((...args: any[]) => any) | undefined;
|
|
117
|
-
}>, {
|
|
118
|
-
people: CommentUser[];
|
|
119
|
-
variant: CommentComposerVariant;
|
|
120
|
-
modelValue: string;
|
|
121
|
-
mentions: string[];
|
|
122
|
-
busy: boolean;
|
|
123
|
-
autofocus: boolean;
|
|
124
|
-
guard: boolean;
|
|
125
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
126
|
-
//#endregion
|
|
127
|
-
//#region src/components/comment-layer.d.ts
|
|
128
|
-
declare const CommentLayer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
129
|
-
client: {
|
|
130
|
-
type: PropType<CommentsClient>;
|
|
131
|
-
};
|
|
132
|
-
/** What the threads of this page are about. For a page, `{ kind: "page", id: "/pricing" }`. */
|
|
133
|
-
subject: {
|
|
134
|
-
type: PropType<CommentSubject>;
|
|
135
|
-
};
|
|
136
|
-
/** The signed-in user. Defaults to the client's user. */
|
|
137
|
-
user: {
|
|
138
|
-
type: PropType<CommentUser>;
|
|
139
|
-
};
|
|
140
|
-
/** A state from `useComments()`, instead of `client` and `subject`. */
|
|
141
|
-
comments: {
|
|
142
|
-
type: PropType<CommentsState>;
|
|
143
|
-
};
|
|
144
|
-
/** The people on this page, shown in the toolbar. */
|
|
145
|
-
people: {
|
|
146
|
-
default: () => never[];
|
|
147
|
-
type: PropType<AvatarStackPerson[]>;
|
|
148
|
-
};
|
|
149
|
-
/** The key that toggles comment mode. `false` turns it off. */
|
|
150
|
-
hotkey: {
|
|
151
|
-
default: string;
|
|
152
|
-
type: PropType<string | false>;
|
|
153
|
-
};
|
|
154
|
-
/** Hide thread mutation controls when the viewer may only read. */
|
|
155
|
-
readOnly: {
|
|
156
|
-
default: boolean;
|
|
157
|
-
type: BooleanConstructor;
|
|
158
|
-
};
|
|
159
|
-
/** The URL of the page that a subject lives on, for the links of threads that are not page threads. */
|
|
160
|
-
subjectUrl: {
|
|
161
|
-
type: PropType<(subject: CommentSubject) => string | undefined>;
|
|
162
|
-
};
|
|
163
|
-
/** Navigates to the page of a thread from the list. Defaults to `location.assign`. */
|
|
164
|
-
navigate: {
|
|
165
|
-
type: PropType<(href: string) => void>;
|
|
166
|
-
};
|
|
167
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
168
|
-
[key: string]: any;
|
|
169
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
170
|
-
client: {
|
|
171
|
-
type: PropType<CommentsClient>;
|
|
172
|
-
};
|
|
173
|
-
/** What the threads of this page are about. For a page, `{ kind: "page", id: "/pricing" }`. */
|
|
174
|
-
subject: {
|
|
175
|
-
type: PropType<CommentSubject>;
|
|
176
|
-
};
|
|
177
|
-
/** The signed-in user. Defaults to the client's user. */
|
|
178
|
-
user: {
|
|
179
|
-
type: PropType<CommentUser>;
|
|
180
|
-
};
|
|
181
|
-
/** A state from `useComments()`, instead of `client` and `subject`. */
|
|
182
|
-
comments: {
|
|
183
|
-
type: PropType<CommentsState>;
|
|
184
|
-
};
|
|
185
|
-
/** The people on this page, shown in the toolbar. */
|
|
186
|
-
people: {
|
|
187
|
-
default: () => never[];
|
|
188
|
-
type: PropType<AvatarStackPerson[]>;
|
|
189
|
-
};
|
|
190
|
-
/** The key that toggles comment mode. `false` turns it off. */
|
|
191
|
-
hotkey: {
|
|
192
|
-
default: string;
|
|
193
|
-
type: PropType<string | false>;
|
|
194
|
-
};
|
|
195
|
-
/** Hide thread mutation controls when the viewer may only read. */
|
|
196
|
-
readOnly: {
|
|
197
|
-
default: boolean;
|
|
198
|
-
type: BooleanConstructor;
|
|
199
|
-
};
|
|
200
|
-
/** The URL of the page that a subject lives on, for the links of threads that are not page threads. */
|
|
201
|
-
subjectUrl: {
|
|
202
|
-
type: PropType<(subject: CommentSubject) => string | undefined>;
|
|
203
|
-
};
|
|
204
|
-
/** Navigates to the page of a thread from the list. Defaults to `location.assign`. */
|
|
205
|
-
navigate: {
|
|
206
|
-
type: PropType<(href: string) => void>;
|
|
207
|
-
};
|
|
208
|
-
}>> & Readonly<{}>, {
|
|
209
|
-
people: AvatarStackPerson[];
|
|
210
|
-
readOnly: boolean;
|
|
211
|
-
hotkey: string | false;
|
|
212
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
213
|
-
//#endregion
|
|
214
|
-
//#region src/components/comment-list.d.ts
|
|
215
|
-
declare const CommentFilters: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
216
|
-
comments: {
|
|
217
|
-
type: PropType<CommentsState>;
|
|
218
|
-
};
|
|
219
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
220
|
-
[key: string]: any;
|
|
221
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
222
|
-
comments: {
|
|
223
|
-
type: PropType<CommentsState>;
|
|
224
|
-
};
|
|
225
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
226
|
-
declare const CommentList: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
227
|
-
comments: {
|
|
228
|
-
type: PropType<CommentsState>;
|
|
229
|
-
};
|
|
230
|
-
/** Goes to the page of a thread that is not on this page. Defaults to `location.assign`. */
|
|
231
|
-
navigate: {
|
|
232
|
-
type: PropType<(href: string) => void>;
|
|
233
|
-
};
|
|
234
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
235
|
-
[key: string]: any;
|
|
236
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
237
|
-
comments: {
|
|
238
|
-
type: PropType<CommentsState>;
|
|
239
|
-
};
|
|
240
|
-
/** Goes to the page of a thread that is not on this page. Defaults to `location.assign`. */
|
|
241
|
-
navigate: {
|
|
242
|
-
type: PropType<(href: string) => void>;
|
|
243
|
-
};
|
|
244
|
-
}>> & Readonly<{
|
|
245
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
246
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
247
|
-
declare const CommentToolbar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
248
|
-
comments: {
|
|
249
|
-
type: PropType<CommentsState>;
|
|
250
|
-
};
|
|
251
|
-
/** The people on this page, from Realtime. Shown as a stack of avatars. */
|
|
252
|
-
people: {
|
|
253
|
-
default: () => never[];
|
|
254
|
-
type: PropType<AvatarStackPerson[]>;
|
|
255
|
-
};
|
|
256
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
257
|
-
[key: string]: any;
|
|
258
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
259
|
-
comments: {
|
|
260
|
-
type: PropType<CommentsState>;
|
|
261
|
-
};
|
|
262
|
-
/** The people on this page, from Realtime. Shown as a stack of avatars. */
|
|
263
|
-
people: {
|
|
264
|
-
default: () => never[];
|
|
265
|
-
type: PropType<AvatarStackPerson[]>;
|
|
266
|
-
};
|
|
267
|
-
}>> & Readonly<{}>, {
|
|
268
|
-
people: AvatarStackPerson[];
|
|
269
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
270
|
-
//#endregion
|
|
271
|
-
//#region src/components/comment-pin.d.ts
|
|
272
|
-
declare const CommentPin: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
273
|
-
/** The thread number. A draft has none. */
|
|
274
|
-
n: {
|
|
275
|
-
type: NumberConstructor;
|
|
276
|
-
};
|
|
277
|
-
author: {
|
|
278
|
-
type: PropType<CommentUser>;
|
|
279
|
-
};
|
|
280
|
-
status: {
|
|
281
|
-
default: string;
|
|
282
|
-
type: PropType<CommentStatus>;
|
|
283
|
-
};
|
|
284
|
-
/** A short piece of the comment. It is part of the label that a screen reader says. */
|
|
285
|
-
excerpt: {
|
|
286
|
-
type: StringConstructor;
|
|
287
|
-
};
|
|
288
|
-
/** The thread of this pin is open. */
|
|
289
|
-
active: {
|
|
290
|
-
default: boolean;
|
|
291
|
-
type: BooleanConstructor;
|
|
292
|
-
};
|
|
293
|
-
/** The comment is still being written. */
|
|
294
|
-
draft: {
|
|
295
|
-
default: boolean;
|
|
296
|
-
type: BooleanConstructor;
|
|
297
|
-
};
|
|
298
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
299
|
-
[key: string]: any;
|
|
300
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "hover" | "leave")[], "select" | "hover" | "leave", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
301
|
-
/** The thread number. A draft has none. */
|
|
302
|
-
n: {
|
|
303
|
-
type: NumberConstructor;
|
|
304
|
-
};
|
|
305
|
-
author: {
|
|
306
|
-
type: PropType<CommentUser>;
|
|
307
|
-
};
|
|
308
|
-
status: {
|
|
309
|
-
default: string;
|
|
310
|
-
type: PropType<CommentStatus>;
|
|
311
|
-
};
|
|
312
|
-
/** A short piece of the comment. It is part of the label that a screen reader says. */
|
|
313
|
-
excerpt: {
|
|
314
|
-
type: StringConstructor;
|
|
315
|
-
};
|
|
316
|
-
/** The thread of this pin is open. */
|
|
317
|
-
active: {
|
|
318
|
-
default: boolean;
|
|
319
|
-
type: BooleanConstructor;
|
|
320
|
-
};
|
|
321
|
-
/** The comment is still being written. */
|
|
322
|
-
draft: {
|
|
323
|
-
default: boolean;
|
|
324
|
-
type: BooleanConstructor;
|
|
325
|
-
};
|
|
326
|
-
}>> & Readonly<{
|
|
327
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
328
|
-
onHover?: ((...args: any[]) => any) | undefined;
|
|
329
|
-
onLeave?: ((...args: any[]) => any) | undefined;
|
|
330
|
-
}>, {
|
|
331
|
-
status: CommentStatus;
|
|
332
|
-
active: boolean;
|
|
333
|
-
draft: boolean;
|
|
334
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
335
|
-
//#endregion
|
|
336
|
-
//#region src/components/comment-thread.d.ts
|
|
337
|
-
type Done = Promise<unknown> | void;
|
|
338
|
-
declare const CommentReply: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
339
|
-
message: {
|
|
340
|
-
required: true;
|
|
341
|
-
type: PropType<CommentMessage>;
|
|
342
|
-
};
|
|
343
|
-
/** The signed-in user may edit and delete this message. */
|
|
344
|
-
editable: {
|
|
345
|
-
default: boolean;
|
|
346
|
-
type: BooleanConstructor;
|
|
347
|
-
};
|
|
348
|
-
/** The message, and its author, show in one line without actions. */
|
|
349
|
-
compact: {
|
|
350
|
-
default: boolean;
|
|
351
|
-
type: BooleanConstructor;
|
|
352
|
-
};
|
|
353
|
-
/** Deleting asks first. Deleting the first message of a thread deletes the whole thread, so a thread sets it there. */
|
|
354
|
-
confirmDelete: {
|
|
355
|
-
default: boolean;
|
|
356
|
-
type: BooleanConstructor;
|
|
357
|
-
};
|
|
358
|
-
/** People whose `@name` the message may hold, so an edit keeps their mentions. */
|
|
359
|
-
people: {
|
|
360
|
-
default: () => never[];
|
|
361
|
-
type: PropType<CommentUser[]>;
|
|
362
|
-
};
|
|
363
|
-
users: {
|
|
364
|
-
type: PropType<(query: string) => Promise<CommentUser[]>>;
|
|
365
|
-
};
|
|
366
|
-
/** Saves an edit. Gets `(messageId, body, mentions)`. */
|
|
367
|
-
onEdit: {
|
|
368
|
-
type: PropType<(messageId: string, body: string, mentions: string[]) => Done>;
|
|
369
|
-
};
|
|
370
|
-
/** Deletes the message. Gets `(messageId)`. */
|
|
371
|
-
onDelete: {
|
|
372
|
-
type: PropType<(messageId: string) => Done>;
|
|
373
|
-
};
|
|
374
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
375
|
-
[key: string]: any;
|
|
376
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
377
|
-
message: {
|
|
378
|
-
required: true;
|
|
379
|
-
type: PropType<CommentMessage>;
|
|
380
|
-
};
|
|
381
|
-
/** The signed-in user may edit and delete this message. */
|
|
382
|
-
editable: {
|
|
383
|
-
default: boolean;
|
|
384
|
-
type: BooleanConstructor;
|
|
385
|
-
};
|
|
386
|
-
/** The message, and its author, show in one line without actions. */
|
|
387
|
-
compact: {
|
|
388
|
-
default: boolean;
|
|
389
|
-
type: BooleanConstructor;
|
|
390
|
-
};
|
|
391
|
-
/** Deleting asks first. Deleting the first message of a thread deletes the whole thread, so a thread sets it there. */
|
|
392
|
-
confirmDelete: {
|
|
393
|
-
default: boolean;
|
|
394
|
-
type: BooleanConstructor;
|
|
395
|
-
};
|
|
396
|
-
/** People whose `@name` the message may hold, so an edit keeps their mentions. */
|
|
397
|
-
people: {
|
|
398
|
-
default: () => never[];
|
|
399
|
-
type: PropType<CommentUser[]>;
|
|
400
|
-
};
|
|
401
|
-
users: {
|
|
402
|
-
type: PropType<(query: string) => Promise<CommentUser[]>>;
|
|
403
|
-
};
|
|
404
|
-
/** Saves an edit. Gets `(messageId, body, mentions)`. */
|
|
405
|
-
onEdit: {
|
|
406
|
-
type: PropType<(messageId: string, body: string, mentions: string[]) => Done>;
|
|
407
|
-
};
|
|
408
|
-
/** Deletes the message. Gets `(messageId)`. */
|
|
409
|
-
onDelete: {
|
|
410
|
-
type: PropType<(messageId: string) => Done>;
|
|
411
|
-
};
|
|
412
|
-
}>> & Readonly<{}>, {
|
|
413
|
-
compact: boolean;
|
|
414
|
-
people: CommentUser[];
|
|
415
|
-
editable: boolean;
|
|
416
|
-
confirmDelete: boolean;
|
|
417
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
418
|
-
declare const CommentThread$1: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
419
|
-
thread: {
|
|
420
|
-
required: true;
|
|
421
|
-
type: PropType<CommentThread>;
|
|
422
|
-
};
|
|
423
|
-
/** The signed-in user. Their messages can be edited and deleted. */
|
|
424
|
-
user: {
|
|
425
|
-
type: PropType<CommentUser>;
|
|
426
|
-
};
|
|
427
|
-
/** A read-only card for hovering a pin. */
|
|
428
|
-
preview: {
|
|
429
|
-
default: boolean;
|
|
430
|
-
type: BooleanConstructor;
|
|
431
|
-
};
|
|
432
|
-
/** Keep the full thread readable without reply, edit, delete, or status controls. */
|
|
433
|
-
readOnly: {
|
|
434
|
-
default: boolean;
|
|
435
|
-
type: BooleanConstructor;
|
|
436
|
-
};
|
|
437
|
-
/** Show a reply as being sent, on top of the thread's own tracking. */
|
|
438
|
-
busy: {
|
|
439
|
-
default: boolean;
|
|
440
|
-
type: BooleanConstructor;
|
|
441
|
-
};
|
|
442
|
-
/** An error to show, on top of the ones from the handlers. */
|
|
443
|
-
error: {
|
|
444
|
-
type: StringConstructor;
|
|
445
|
-
};
|
|
446
|
-
/** The thread is no longer on the page, so no pin shows where it was. */
|
|
447
|
-
detached: {
|
|
448
|
-
default: boolean;
|
|
449
|
-
type: BooleanConstructor;
|
|
450
|
-
};
|
|
451
|
-
users: {
|
|
452
|
-
type: PropType<(query: string) => Promise<CommentUser[]>>;
|
|
453
|
-
};
|
|
454
|
-
/** Sends a reply. Gets `(body, mentions)`. */
|
|
455
|
-
onReply: {
|
|
456
|
-
type: PropType<(body: string, mentions: string[]) => Done>;
|
|
457
|
-
};
|
|
458
|
-
/** Saves an edited message. Gets `(messageId, body, mentions)`. */
|
|
459
|
-
onEdit: {
|
|
460
|
-
type: PropType<(messageId: string, body: string, mentions: string[]) => Done>;
|
|
461
|
-
};
|
|
462
|
-
/** Deletes a message. Gets `(messageId)`. Deleting the first message deletes the thread. */
|
|
463
|
-
onDelete: {
|
|
464
|
-
type: PropType<(messageId: string) => Done>;
|
|
465
|
-
};
|
|
466
|
-
onResolve: {
|
|
467
|
-
type: PropType<() => Done>;
|
|
468
|
-
};
|
|
469
|
-
onReopen: {
|
|
470
|
-
type: PropType<() => Done>;
|
|
471
|
-
};
|
|
472
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
473
|
-
[key: string]: any;
|
|
474
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
475
|
-
thread: {
|
|
476
|
-
required: true;
|
|
477
|
-
type: PropType<CommentThread>;
|
|
478
|
-
};
|
|
479
|
-
/** The signed-in user. Their messages can be edited and deleted. */
|
|
480
|
-
user: {
|
|
481
|
-
type: PropType<CommentUser>;
|
|
482
|
-
};
|
|
483
|
-
/** A read-only card for hovering a pin. */
|
|
484
|
-
preview: {
|
|
485
|
-
default: boolean;
|
|
486
|
-
type: BooleanConstructor;
|
|
487
|
-
};
|
|
488
|
-
/** Keep the full thread readable without reply, edit, delete, or status controls. */
|
|
489
|
-
readOnly: {
|
|
490
|
-
default: boolean;
|
|
491
|
-
type: BooleanConstructor;
|
|
492
|
-
};
|
|
493
|
-
/** Show a reply as being sent, on top of the thread's own tracking. */
|
|
494
|
-
busy: {
|
|
495
|
-
default: boolean;
|
|
496
|
-
type: BooleanConstructor;
|
|
497
|
-
};
|
|
498
|
-
/** An error to show, on top of the ones from the handlers. */
|
|
499
|
-
error: {
|
|
500
|
-
type: StringConstructor;
|
|
501
|
-
};
|
|
502
|
-
/** The thread is no longer on the page, so no pin shows where it was. */
|
|
503
|
-
detached: {
|
|
504
|
-
default: boolean;
|
|
505
|
-
type: BooleanConstructor;
|
|
506
|
-
};
|
|
507
|
-
users: {
|
|
508
|
-
type: PropType<(query: string) => Promise<CommentUser[]>>;
|
|
509
|
-
};
|
|
510
|
-
/** Sends a reply. Gets `(body, mentions)`. */
|
|
511
|
-
onReply: {
|
|
512
|
-
type: PropType<(body: string, mentions: string[]) => Done>;
|
|
513
|
-
};
|
|
514
|
-
/** Saves an edited message. Gets `(messageId, body, mentions)`. */
|
|
515
|
-
onEdit: {
|
|
516
|
-
type: PropType<(messageId: string, body: string, mentions: string[]) => Done>;
|
|
517
|
-
};
|
|
518
|
-
/** Deletes a message. Gets `(messageId)`. Deleting the first message deletes the thread. */
|
|
519
|
-
onDelete: {
|
|
520
|
-
type: PropType<(messageId: string) => Done>;
|
|
521
|
-
};
|
|
522
|
-
onResolve: {
|
|
523
|
-
type: PropType<() => Done>;
|
|
524
|
-
};
|
|
525
|
-
onReopen: {
|
|
526
|
-
type: PropType<() => Done>;
|
|
527
|
-
};
|
|
528
|
-
}>> & Readonly<{
|
|
529
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
530
|
-
}>, {
|
|
531
|
-
busy: boolean;
|
|
532
|
-
preview: boolean;
|
|
533
|
-
readOnly: boolean;
|
|
534
|
-
detached: boolean;
|
|
535
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
536
|
-
//#endregion
|
|
537
|
-
export { CommentList as a, CommentComposer as c, CommentFilters as i, CommentComposerSubmit as l, CommentThread$1 as n, CommentToolbar as o, CommentPin as r, CommentLayer as s, CommentReply as t, CommentComposerVariant as u };
|
package/dist/comments.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as CommentList, c as CommentComposer, i as CommentFilters, l as CommentComposerSubmit, n as CommentThread, o as CommentToolbar, r as CommentPin, s as CommentLayer, t as CommentReply, u as CommentComposerVariant } from "./comments-Cq5eewsu.js";
|
|
2
|
-
export { CommentComposer, CommentComposerSubmit, CommentComposerVariant, CommentFilters, CommentLayer, CommentList, CommentPin, CommentReply, CommentThread, CommentToolbar };
|
package/dist/comments.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as CommentFilters, c as CommentComposer, i as CommentPin, n as CommentReply, o as CommentList, r as CommentThread, s as CommentToolbar, t as CommentLayer } from "./comment-layer-CBlxJ8eK.js";
|
|
2
|
-
export { CommentComposer, CommentFilters, CommentLayer, CommentList, CommentPin, CommentReply, CommentThread, CommentToolbar };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { InjectionKey, Plugin } from "vue";
|
|
2
|
-
//#region src/config.d.ts
|
|
3
|
-
interface ViteHubUIDefaults {
|
|
4
|
-
markdown?: {
|
|
5
|
-
class?: string;
|
|
6
|
-
};
|
|
7
|
-
messageScroller?: {
|
|
8
|
-
edgeThreshold?: number;
|
|
9
|
-
previousItemPeek?: number;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
interface ViteHubUIOptions {
|
|
13
|
-
defaults?: ViteHubUIDefaults;
|
|
14
|
-
}
|
|
15
|
-
interface ResolvedViteHubUIDefaults {
|
|
16
|
-
markdown: {
|
|
17
|
-
class: string;
|
|
18
|
-
};
|
|
19
|
-
messageScroller: {
|
|
20
|
-
edgeThreshold: number;
|
|
21
|
-
previousItemPeek: number;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
declare const ViteHubUIInjectionKey: InjectionKey<ResolvedViteHubUIDefaults>;
|
|
25
|
-
declare function resolveViteHubUIDefaults(options?: ViteHubUIOptions): ResolvedViteHubUIDefaults;
|
|
26
|
-
declare function useViteHubUI(): ResolvedViteHubUIDefaults;
|
|
27
|
-
declare function createViteHubUI(options?: ViteHubUIOptions): Plugin;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { createViteHubUI as a, ViteHubUIOptions as i, ViteHubUIDefaults as n, resolveViteHubUIDefaults as o, ViteHubUIInjectionKey as r, useViteHubUI as s, ResolvedViteHubUIDefaults as t };
|
package/dist/config-bHqE4JOs.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent, inject } from "vue";
|
|
2
|
-
//#region src/config.ts
|
|
3
|
-
const defaultOptions = {
|
|
4
|
-
markdown: { class: "vh-typeset vh-typeset-chat" },
|
|
5
|
-
messageScroller: {
|
|
6
|
-
edgeThreshold: 8,
|
|
7
|
-
previousItemPeek: 64
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
const runtimeComponents = {
|
|
11
|
-
UButton: defineAsyncComponent(() => import("@nuxt/ui/components/Button.vue")),
|
|
12
|
-
UIcon: defineAsyncComponent(() => import("@nuxt/ui/runtime/vue/components/Icon.vue")),
|
|
13
|
-
UModal: defineAsyncComponent(() => import("@nuxt/ui/components/Modal.vue"))
|
|
14
|
-
};
|
|
15
|
-
const ViteHubUIInjectionKey = Symbol("ViteHubUI");
|
|
16
|
-
function resolveViteHubUIDefaults(options = {}) {
|
|
17
|
-
return {
|
|
18
|
-
markdown: {
|
|
19
|
-
...defaultOptions.markdown,
|
|
20
|
-
...options.defaults?.markdown
|
|
21
|
-
},
|
|
22
|
-
messageScroller: {
|
|
23
|
-
...defaultOptions.messageScroller,
|
|
24
|
-
...options.defaults?.messageScroller
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
function useViteHubUI() {
|
|
29
|
-
return inject(ViteHubUIInjectionKey, defaultOptions);
|
|
30
|
-
}
|
|
31
|
-
function createViteHubUI(options = {}) {
|
|
32
|
-
return { install(app) {
|
|
33
|
-
for (const [name, component] of Object.entries(runtimeComponents)) if (!app.component(name)) app.component(name, component);
|
|
34
|
-
app.provide(ViteHubUIInjectionKey, resolveViteHubUIDefaults(options));
|
|
35
|
-
} };
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
export { useViteHubUI as i, createViteHubUI as n, resolveViteHubUIDefaults as r, ViteHubUIInjectionKey as t };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as ConnectionStatusValue, i as ConnectionStatusState, n as ConnectionStatusIndicator, r as ConnectionStatusLabel, t as ConnectionStatus } from "./connection-status-DjGBw6xX.js";
|
|
2
|
-
export { ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, ConnectionStatusState, ConnectionStatusValue };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@shikijs+themes@4.5.0/node_modules/@shikijs/themes/dist/dark-plus.mjs
|
|
2
|
-
var dark_plus_default = Object.freeze(JSON.parse("{\"colors\":{\"actionBar.toggledBackground\":\"#383a49\",\"activityBarBadge.background\":\"#007ACC\",\"checkbox.border\":\"#6B6B6B\",\"editor.background\":\"#1E1E1E\",\"editor.foreground\":\"#D4D4D4\",\"editor.inactiveSelectionBackground\":\"#3A3D41\",\"editor.selectionHighlightBackground\":\"#ADD6FF26\",\"editorIndentGuide.activeBackground1\":\"#707070\",\"editorIndentGuide.background1\":\"#404040\",\"input.placeholderForeground\":\"#A6A6A6\",\"list.activeSelectionIconForeground\":\"#FFF\",\"list.dropBackground\":\"#383B3D\",\"menu.background\":\"#252526\",\"menu.border\":\"#454545\",\"menu.foreground\":\"#CCCCCC\",\"menu.selectionBackground\":\"#0078d4\",\"menu.separatorBackground\":\"#454545\",\"ports.iconRunningProcessForeground\":\"#369432\",\"sideBarSectionHeader.background\":\"#0000\",\"sideBarSectionHeader.border\":\"#ccc3\",\"sideBarTitle.foreground\":\"#BBBBBB\",\"statusBarItem.remoteBackground\":\"#16825D\",\"statusBarItem.remoteForeground\":\"#FFF\",\"tab.lastPinnedBorder\":\"#ccc3\",\"tab.selectedBackground\":\"#222222\",\"tab.selectedForeground\":\"#ffffffa0\",\"terminal.inactiveSelectionBackground\":\"#3A3D41\",\"widget.border\":\"#303031\"},\"displayName\":\"Dark Plus\",\"name\":\"dark-plus\",\"semanticHighlighting\":true,\"semanticTokenColors\":{\"customLiteral\":\"#DCDCAA\",\"newOperator\":\"#C586C0\",\"numberLiteral\":\"#b5cea8\",\"stringLiteral\":\"#ce9178\"},\"tokenColors\":[{\"scope\":[\"meta.embedded\",\"source.groovy.embedded\",\"string meta.image.inline.markdown\",\"variable.legacy.builtin.python\"],\"settings\":{\"foreground\":\"#D4D4D4\"}},{\"scope\":\"emphasis\",\"settings\":{\"fontStyle\":\"italic\"}},{\"scope\":\"strong\",\"settings\":{\"fontStyle\":\"bold\"}},{\"scope\":\"header\",\"settings\":{\"foreground\":\"#000080\"}},{\"scope\":\"comment\",\"settings\":{\"foreground\":\"#6A9955\"}},{\"scope\":\"constant.language\",\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":[\"constant.numeric\",\"variable.other.enummember\",\"keyword.operator.plus.exponent\",\"keyword.operator.minus.exponent\"],\"settings\":{\"foreground\":\"#b5cea8\"}},{\"scope\":\"constant.regexp\",\"settings\":{\"foreground\":\"#646695\"}},{\"scope\":\"entity.name.tag\",\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":[\"entity.name.tag.css\",\"entity.name.tag.less\"],\"settings\":{\"foreground\":\"#d7ba7d\"}},{\"scope\":\"entity.other.attribute-name\",\"settings\":{\"foreground\":\"#9cdcfe\"}},{\"scope\":[\"entity.other.attribute-name.class.css\",\"source.css entity.other.attribute-name.class\",\"entity.other.attribute-name.id.css\",\"entity.other.attribute-name.parent-selector.css\",\"entity.other.attribute-name.parent.less\",\"source.css entity.other.attribute-name.pseudo-class\",\"entity.other.attribute-name.pseudo-element.css\",\"source.css.less entity.other.attribute-name.id\",\"entity.other.attribute-name.scss\"],\"settings\":{\"foreground\":\"#d7ba7d\"}},{\"scope\":\"invalid\",\"settings\":{\"foreground\":\"#f44747\"}},{\"scope\":\"markup.underline\",\"settings\":{\"fontStyle\":\"underline\"}},{\"scope\":\"markup.bold\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#569cd6\"}},{\"scope\":\"markup.heading\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#569cd6\"}},{\"scope\":\"markup.italic\",\"settings\":{\"fontStyle\":\"italic\"}},{\"scope\":\"markup.strikethrough\",\"settings\":{\"fontStyle\":\"strikethrough\"}},{\"scope\":\"markup.inserted\",\"settings\":{\"foreground\":\"#b5cea8\"}},{\"scope\":\"markup.deleted\",\"settings\":{\"foreground\":\"#ce9178\"}},{\"scope\":\"markup.changed\",\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":\"punctuation.definition.quote.begin.markdown\",\"settings\":{\"foreground\":\"#6A9955\"}},{\"scope\":\"punctuation.definition.list.begin.markdown\",\"settings\":{\"foreground\":\"#6796e6\"}},{\"scope\":\"markup.inline.raw\",\"settings\":{\"foreground\":\"#ce9178\"}},{\"scope\":\"punctuation.definition.tag\",\"settings\":{\"foreground\":\"#808080\"}},{\"scope\":[\"meta.preprocessor\",\"entity.name.function.preprocessor\"],\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":\"meta.preprocessor.string\",\"settings\":{\"foreground\":\"#ce9178\"}},{\"scope\":\"meta.preprocessor.numeric\",\"settings\":{\"foreground\":\"#b5cea8\"}},{\"scope\":\"meta.structure.dictionary.key.python\",\"settings\":{\"foreground\":\"#9cdcfe\"}},{\"scope\":\"meta.diff.header\",\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":\"storage\",\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":\"storage.type\",\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":[\"storage.modifier\",\"keyword.operator.noexcept\"],\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":[\"string\",\"meta.embedded.assembly\"],\"settings\":{\"foreground\":\"#ce9178\"}},{\"scope\":\"string.tag\",\"settings\":{\"foreground\":\"#ce9178\"}},{\"scope\":\"string.value\",\"settings\":{\"foreground\":\"#ce9178\"}},{\"scope\":\"string.regexp\",\"settings\":{\"foreground\":\"#d16969\"}},{\"scope\":[\"punctuation.definition.template-expression.begin\",\"punctuation.definition.template-expression.end\",\"punctuation.section.embedded\"],\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":[\"meta.template.expression\"],\"settings\":{\"foreground\":\"#d4d4d4\"}},{\"scope\":[\"support.type.vendored.property-name\",\"support.type.property-name\",\"source.css variable\",\"source.coffee.embedded\"],\"settings\":{\"foreground\":\"#9cdcfe\"}},{\"scope\":\"keyword\",\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":\"keyword.control\",\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":\"keyword.operator\",\"settings\":{\"foreground\":\"#d4d4d4\"}},{\"scope\":[\"keyword.operator.new\",\"keyword.operator.expression\",\"keyword.operator.cast\",\"keyword.operator.sizeof\",\"keyword.operator.alignof\",\"keyword.operator.typeid\",\"keyword.operator.alignas\",\"keyword.operator.instanceof\",\"keyword.operator.logical.python\",\"keyword.operator.wordlike\"],\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":\"keyword.other.unit\",\"settings\":{\"foreground\":\"#b5cea8\"}},{\"scope\":[\"punctuation.section.embedded.begin.php\",\"punctuation.section.embedded.end.php\"],\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":\"support.function.git-rebase\",\"settings\":{\"foreground\":\"#9cdcfe\"}},{\"scope\":\"constant.sha.git-rebase\",\"settings\":{\"foreground\":\"#b5cea8\"}},{\"scope\":[\"storage.modifier.import.java\",\"variable.language.wildcard.java\",\"storage.modifier.package.java\"],\"settings\":{\"foreground\":\"#d4d4d4\"}},{\"scope\":\"variable.language\",\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":[\"entity.name.function\",\"support.function\",\"support.constant.handlebars\",\"source.powershell variable.other.member\",\"entity.name.operator.custom-literal\"],\"settings\":{\"foreground\":\"#DCDCAA\"}},{\"scope\":[\"support.class\",\"support.type\",\"entity.name.type\",\"entity.name.namespace\",\"entity.other.attribute\",\"entity.name.scope-resolution\",\"entity.name.class\",\"storage.type.numeric.go\",\"storage.type.byte.go\",\"storage.type.boolean.go\",\"storage.type.string.go\",\"storage.type.uintptr.go\",\"storage.type.error.go\",\"storage.type.rune.go\",\"storage.type.cs\",\"storage.type.generic.cs\",\"storage.type.modifier.cs\",\"storage.type.variable.cs\",\"storage.type.annotation.java\",\"storage.type.generic.java\",\"storage.type.java\",\"storage.type.object.array.java\",\"storage.type.primitive.array.java\",\"storage.type.primitive.java\",\"storage.type.token.java\",\"storage.type.groovy\",\"storage.type.annotation.groovy\",\"storage.type.parameters.groovy\",\"storage.type.generic.groovy\",\"storage.type.object.array.groovy\",\"storage.type.primitive.array.groovy\",\"storage.type.primitive.groovy\"],\"settings\":{\"foreground\":\"#4EC9B0\"}},{\"scope\":[\"meta.type.cast.expr\",\"meta.type.new.expr\",\"support.constant.math\",\"support.constant.dom\",\"support.constant.json\",\"entity.other.inherited-class\",\"punctuation.separator.namespace.ruby\"],\"settings\":{\"foreground\":\"#4EC9B0\"}},{\"scope\":[\"keyword.control\",\"source.cpp keyword.operator.new\",\"keyword.operator.delete\",\"keyword.other.using\",\"keyword.other.directive.using\",\"keyword.other.operator\",\"entity.name.operator\"],\"settings\":{\"foreground\":\"#C586C0\"}},{\"scope\":[\"variable\",\"meta.definition.variable.name\",\"support.variable\",\"entity.name.variable\",\"constant.other.placeholder\"],\"settings\":{\"foreground\":\"#9CDCFE\"}},{\"scope\":[\"variable.other.constant\",\"variable.other.enummember\"],\"settings\":{\"foreground\":\"#4FC1FF\"}},{\"scope\":[\"meta.object-literal.key\"],\"settings\":{\"foreground\":\"#9CDCFE\"}},{\"scope\":[\"support.constant.property-value\",\"support.constant.font-name\",\"support.constant.media-type\",\"support.constant.media\",\"constant.other.color.rgb-value\",\"constant.other.rgb-value\",\"support.constant.color\"],\"settings\":{\"foreground\":\"#CE9178\"}},{\"scope\":[\"punctuation.definition.group.regexp\",\"punctuation.definition.group.assertion.regexp\",\"punctuation.definition.character-class.regexp\",\"punctuation.character.set.begin.regexp\",\"punctuation.character.set.end.regexp\",\"keyword.operator.negation.regexp\",\"support.other.parenthesis.regexp\"],\"settings\":{\"foreground\":\"#CE9178\"}},{\"scope\":[\"constant.character.character-class.regexp\",\"constant.other.character-class.set.regexp\",\"constant.other.character-class.regexp\",\"constant.character.set.regexp\"],\"settings\":{\"foreground\":\"#d16969\"}},{\"scope\":[\"keyword.operator.or.regexp\",\"keyword.control.anchor.regexp\"],\"settings\":{\"foreground\":\"#DCDCAA\"}},{\"scope\":\"keyword.operator.quantifier.regexp\",\"settings\":{\"foreground\":\"#d7ba7d\"}},{\"scope\":[\"constant.character\",\"constant.other.option\"],\"settings\":{\"foreground\":\"#569cd6\"}},{\"scope\":\"constant.character.escape\",\"settings\":{\"foreground\":\"#d7ba7d\"}},{\"scope\":\"entity.name.label\",\"settings\":{\"foreground\":\"#C8C8C8\"}}],\"type\":\"dark\"}"));
|
|
3
|
-
//#endregion
|
|
4
|
-
export { dark_plus_default as default };
|