@vite-hub/ui 0.7.0 → 0.8.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 +3 -3
- package/dist/{Chat-BZxkf3Tt.js → Chat-CuSthJVg.js} +1 -1
- package/dist/{ChatMessage-Blr5F-zi.js → ChatMessage-CFQs0v4N.js} +1 -1
- package/dist/{CodeBlockTitle-DYrYpc1U.js → CodeBlockTitle-DIu8Ef3V.js} +1 -1
- package/dist/{CommentRow-ViZ7r8nr.js → CommentRow-XY3FNp30.js} +2 -2
- package/dist/CopyButton-Bs6DT-Z8.js +188 -0
- package/dist/{Markdown-_w7feFzl.js → Markdown-Da5t-931.js} +1 -1
- package/dist/{MarkdownCodeBlock-B4j7x0H6.js → MarkdownCodeBlock-BWDLOWPO.js} +1 -1
- package/dist/{MessageParts-FVyYZNsn.js → MessageParts-CyJLG34y.js} +1 -1
- package/dist/{MorphText-CYTndbyp.js → MorphText-B6MWdeIv.js} +1 -1
- package/dist/{RollNumber-Bo2tzfAp.js → RollNumber-CnF52zJM.js} +1 -1
- package/dist/{motion-dPwxx3Wk.js → SwapIcon-CUIq1TU5.js} +2 -11
- package/dist/{agent-session-DhlTKCQG.js → agent-session-2j2gbGpp.js} +1 -1
- package/dist/{avatar-stack-nQErr0qn.js → avatar-stack-CoLlsmwJ.js} +1 -1
- package/dist/{chat-session-hjZRL6jY.js → chat-session-cxUzvwdj.js} +1 -1
- package/dist/{code-block-Bp8y-XJp.d.ts → code-block-BqOEVWPh.d.ts} +1 -1
- package/dist/{comment-composer-CIsbz-78.d.ts → comment-composer-CsVOvG9j.d.ts} +3 -3
- package/dist/{comment-composer-BUt6vbnr.js → comment-composer-D_mcH3Ts.js} +5 -5
- package/dist/{comment-layer-BlVNORgj.d.ts → comment-layer-C3xmg-0_.d.ts} +6 -6
- package/dist/{comment-layer-Ck2H24oJ.js → comment-layer-Ci6ipGi2.js} +9 -9
- package/dist/{comment-panel-Djx-KxVa.d.ts → comment-panel-DxN21VoY.d.ts} +9 -9
- package/dist/{comment-selection-bar-CbOEI98x.d.ts → comment-selection-bar-B_bchB2O.d.ts} +1 -1
- package/dist/{comment-selection-bar-CxPkJxVl.js → comment-selection-bar-DZAtiRZ9.js} +1 -2
- package/dist/{comment-thread-X6gYMNay.d.ts → comment-thread-BmsqcjVQ.d.ts} +4 -4
- package/dist/{comment-thread-C_Q4UDaV.js → comment-thread-BzOZVqF2.js} +8 -8
- package/dist/{comments-B1itauwb.d.ts → comments-BU8cTt5o.d.ts} +12 -14
- package/dist/{components-CM5mZe0a.js → components-B_2Q0dJ3.js} +2 -2
- package/dist/{config-CFwvNt4Y.js → config-BDQYUjjp.js} +3 -3
- package/dist/{drop-field-DKpYQ3tO.js → drop-field-DeIvKoJs.js} +1 -1
- package/dist/{editor-DJPUs1nt.js → editor-hXea1i46.js} +2 -2
- package/dist/editor.js +1 -1
- package/dist/{hold-to-delete-CcQbfiQx.js → hold-to-delete-D1Vy40w5.js} +30 -3
- package/dist/{hold-to-delete-cOPqQ9FJ.js → hold-to-delete-DazElJT2.js} +1 -1
- package/dist/{index-9Z6Gwtnf.d.ts → index-CffOzibW.d.ts} +1 -1
- package/dist/index.d.ts +32 -32
- package/dist/index.js +26 -26
- package/dist/{markdown-DDyOdYq_.js → markdown-_0HhbsOo.js} +2 -2
- package/dist/markdown-editor.js +1 -1
- package/dist/markdown.js +1 -1
- package/dist/motion/core.d.ts +1 -1
- package/dist/motion/core.js +4 -4
- package/dist/{motion-itHFtXwA.js → motion-BhARaNBB.js} +1 -1
- package/dist/{motion-core-BdTfxAhY.js → motion-core-JZZiPKEk.js} +57 -72
- package/dist/{motion-core-BfIefToe.d.ts → motion-core-gfsTPLbh.d.ts} +5 -1
- package/dist/{motion-list-BBbz93WT.js → motion-list-9vD1hSS0.js} +1 -1
- package/dist/motion.d.ts +1 -1
- package/dist/motion.js +5 -5
- package/dist/{nuxt-ui-CPdiTwwD.js → nuxt-ui-D3Qda35W.js} +1 -1
- package/dist/nuxt.js +0 -1
- package/dist/parts/components/agent-session.js +1 -1
- package/dist/parts/components/avatar-stack.js +1 -1
- package/dist/parts/components/chat-message.js +1 -1
- package/dist/parts/components/chat-session.js +1 -1
- package/dist/parts/components/chat.js +1 -1
- package/dist/parts/components/code-block.d.ts +1 -1
- package/dist/parts/components/code-block.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 -1
- package/dist/parts/components/comment-panel.d.ts +1 -1
- package/dist/parts/components/comment-panel.js +5 -5
- package/dist/parts/components/comment-selection-bar.d.ts +1 -1
- package/dist/parts/components/comment-selection-bar.js +1 -1
- package/dist/parts/components/comment-thread.d.ts +1 -1
- package/dist/parts/components/comment-thread.js +1 -1
- package/dist/parts/components/comments.d.ts +8 -8
- package/dist/parts/components/comments.js +5 -6
- package/dist/parts/components/copy-button.js +1 -3
- package/dist/parts/components/drop-field.js +1 -1
- package/dist/parts/components/hold-to-delete.js +1 -1
- package/dist/parts/components/markdown.js +1 -1
- package/dist/parts/components/message-parts.js +1 -1
- package/dist/parts/components/motion-list.d.ts +1 -1
- package/dist/parts/components/motion-list.js +1 -1
- package/dist/parts/components/motion.d.ts +2 -2
- package/dist/parts/components/motion.js +12 -3
- package/dist/parts/components/progress.js +1 -1
- package/dist/parts/components/sync-status.js +1 -1
- package/dist/parts/workspace/browser-support-notice.d.ts +1 -1
- package/dist/parts/workspace/browser-support-notice.js +4 -4
- package/dist/parts/workspace/connect-panel.js +1 -1
- package/dist/parts/workspace/runners/web-container.js +1 -1
- package/dist/parts/workspace/workspace-bar.js +1 -1
- package/dist/parts/workspace/workspace-editor-head.js +1 -1
- package/dist/parts/workspace/workspace-examples.js +1 -1
- package/dist/parts/workspace/workspace-guide.d.ts +1 -1
- 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 +1 -1
- package/dist/parts/workspace/workspace-shell.js +1 -1
- package/dist/parts/workspace/workspace-sidebar.d.ts +2 -2
- package/dist/parts/workspace/workspace-sidebar.js +2 -2
- package/dist/parts/workspace/workspace-start.d.ts +1 -1
- 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 +2 -2
- package/dist/parts/workspace/workspace.js +3 -3
- package/dist/{progress-D_9sG648.js → progress-8P8RLYMy.js} +1 -1
- package/dist/{ring-DoL9jivj.js → ring-B0nZBnU0.js} +1 -1
- package/dist/runtime/nuxt-plugin.js +1 -1
- package/dist/styles.css +10 -12
- package/dist/{sync-status-BRroyOre.js → sync-status-B29eG_n-.js} +1 -1
- package/dist/{tween-lVMRCUEv.js → tween-1W-LlKk9.js} +5 -1
- package/dist/{types-BF_U0tgp.d.ts → types-CMU8Vmew.d.ts} +2 -5
- package/dist/{vue-DdYvDVOr.js → vue-BdA18K5-.js} +1 -1
- package/package.json +6 -9
- package/dist/CopyButton-Dtg_Oc9_.js +0 -115
- package/dist/announce-CJNXaYbT.js +0 -29
- package/dist/comment-send.css +0 -267
- package/dist/comments-BtD28xEn.js +0 -390
- package/dist/use-copy-DK1SSZkh.js +0 -66
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ const markdown = ref("# Release notes\n");
|
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
```ts [server/api/uploads.post.ts]
|
|
63
|
-
import { defineEventHandler } from "h3";
|
|
63
|
+
import { defineEventHandler } from "nitro/h3";
|
|
64
64
|
import { blob } from "vite-hub/blob";
|
|
65
65
|
|
|
66
66
|
// Check who may upload before this call
|
|
@@ -378,7 +378,7 @@ Add `UEditorToolbar`, `UEditorSuggestionMenu`, and `UEditorDragHandle` for `Mark
|
|
|
378
378
|
|
|
379
379
|
The `@vitehub` registry in the shadcn-vue format is built from the same files as the npm package. Each item lives in `registry/<item>/`. `src/` re-exports the components from there, so `@vite-hub/ui` and `shadcn-vue add` ship the same `.vue` files.
|
|
380
380
|
|
|
381
|
-
`pnpm --filter @vite-hub/ui build:registry` writes the registry to `docs/public/r/`, which vitehub.dev serves at `https://vitehub.dev/r/{name}.json`. `test/registry.test.ts` fails when
|
|
381
|
+
`pnpm --filter @vite-hub/ui build:registry` writes the registry to `docs/public/r/`, which vitehub.dev serves at `https://vitehub.dev/r/{name}.json`. Git ignores that folder. The docs site writes it again each time `nuxi dev`, `nuxi build`, or `nuxi prepare` starts. `test/registry.test.ts` fails when the built files do not match the vendored shadcn-vue 2.9.0 schema.
|
|
382
382
|
|
|
383
383
|
The builder reads `registry/registry.json`. An item without `files` publishes every file in `registry/<item>/` to `components/vitehub/<item>/`. It derives the rest from the imports:
|
|
384
384
|
|
|
@@ -401,7 +401,7 @@ An item component follows one contract: compound parts, `data-slot` on the root,
|
|
|
401
401
|
|
|
402
402
|
`core` also writes `:where([data-slot]) { box-sizing: border-box }` in `@layer components` into the app's CSS. That rule changes nothing, but it keeps the `components` layer after `base`. Without it, Tailwind 4 emits an empty `components` layer as the statement `@layer components;`, and when the app's CSS keeps an external `@import`, such as the Google Fonts line from `shadcn-vue init`, Vite's postcss-import (16.2.0 in Vite 8.4) moves that statement to the top. Then `components` is the first layer, and Tailwind's Preflight in `base` removes the padding and background of a button.
|
|
403
403
|
|
|
404
|
-
`node --test test/registry-install/install.mjs` (from the repository root
|
|
404
|
+
`node --test test/registry-install/install.mjs` (from the repository root) runs `build:registry` and serves `docs/public/r/` on a local port and makes four apps: Vite + Vue + Tailwind 4 from `init --preset`, Nuxt 5, Vite with stock shadcn-vue and Reka UI, and Nuxt 5 with Nuxt UI. It runs `shadcn-vue@2.9.0 add` for every item, installs `@vite-hub/ui` and `@vite-hub/comments` packed from this checkout, builds each app, and renders every example in Chromium. Build UI and its workspace dependencies first with `corepack pnpm exec vp run --cache -t @vite-hub/ui#build`. The check fails on a console error, a root without `data-slot`, a copy button that lost its padding or background to Preflight, or Reka UI in the item files of the first two apps. It needs the npm registry. `REGISTRY_APPS=vite-vue,nuxt` runs some apps, `REGISTRY_INSTALL_DIR` keeps them, and `REGISTRY_SCREENSHOTS` saves a screenshot of each.
|
|
405
405
|
|
|
406
406
|
## Verify the setup
|
|
407
407
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ChatMessage_default } from "./ChatMessage-
|
|
1
|
+
import { t as ChatMessage_default } from "./ChatMessage-CFQs0v4N.js";
|
|
2
2
|
import { a as MessageScroller_default, i as MessageScrollerButton_default, n as MessageScrollerItem_default, r as MessageScrollerContent_default, t as MessageScrollerViewport_default } from "./MessageScrollerViewport-BaTlWLki.js";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, openBlock, renderList, renderSlot, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
4
4
|
import { ChevronDown } from "@lucide/vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as Bubble_default, t as BubbleContent_default } from "./BubbleContent-B1a4e3vE.js";
|
|
2
2
|
import { a as Message_default, i as MessageAvatar_default, n as MessageFooter_default, r as MessageContent_default, t as MessageHeader_default } from "./MessageHeader-CJ9eBHSS.js";
|
|
3
|
-
import { t as MessageParts_default } from "./MessageParts-
|
|
3
|
+
import { t as MessageParts_default } from "./MessageParts-CyJLG34y.js";
|
|
4
4
|
import { computed, createBlock, createCommentVNode, createElementBlock, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderList, renderSlot, unref, useSlots, withCtx } from "vue";
|
|
5
5
|
// registry/chat-message/ChatMessage.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
const _hoisted_1 = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as CopyButton_default } from "./CopyButton-
|
|
1
|
+
import { t as CopyButton_default } from "./CopyButton-Bs6DT-Z8.js";
|
|
2
2
|
import { createBlock, createElementBlock, createSlots, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, withCtx } from "vue";
|
|
3
3
|
// registry/code-block/CodeBlockActions.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
const _hoisted_1$2 = { "data-slot": "code-block-actions" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as AvatarStack_default } from "./avatar-stack-
|
|
2
|
-
import { c as writerName, l as writerPerson, o as plainText } from "./comment-composer-
|
|
1
|
+
import { t as AvatarStack_default } from "./avatar-stack-CoLlsmwJ.js";
|
|
2
|
+
import { c as writerName, l as writerPerson, o as plainText } from "./comment-composer-D_mcH3Ts.js";
|
|
3
3
|
import { t as RelativeTime_default } from "./relative-time-BnJfjeEm.js";
|
|
4
4
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, renderSlot, toDisplayString, unref } from "vue";
|
|
5
5
|
// src/internal/comment-attachments.ts
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { m as prepareAnnouncer, p as announce } from "./hold-to-delete-D1Vy40w5.js";
|
|
2
|
+
import { t as MorphText_default } from "./MorphText-B6MWdeIv.js";
|
|
3
|
+
import { t as SwapIcon_default } from "./SwapIcon-CUIq1TU5.js";
|
|
4
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentScope, mergeProps, onMounted, onScopeDispose, openBlock, readonly, ref, renderSlot, resolveDynamicComponent, toValue, unref, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
5
|
+
import { Check, Copy, LoaderCircle } from "@lucide/vue";
|
|
6
|
+
import { Button } from "@ui-sdk/vue/button";
|
|
7
|
+
// registry/copy-button/use-copy.ts
|
|
8
|
+
async function writeClipboard(value) {
|
|
9
|
+
const text = typeof value === "function" ? value() : value;
|
|
10
|
+
try {
|
|
11
|
+
if (await writeClipboardApi(text)) return true;
|
|
12
|
+
} catch {}
|
|
13
|
+
return copyWithCommand(await text);
|
|
14
|
+
}
|
|
15
|
+
async function writeClipboardApi(text) {
|
|
16
|
+
const clipboard = globalThis.navigator?.clipboard;
|
|
17
|
+
if (typeof clipboard?.writeText !== "function") return false;
|
|
18
|
+
if (typeof text === "string") await clipboard.writeText(text);
|
|
19
|
+
else if (typeof ClipboardItem === "function" && typeof clipboard.write === "function") await clipboard.write([new ClipboardItem({ "text/plain": text.then((resolved) => new Blob([resolved], { type: "text/plain" })) })]);
|
|
20
|
+
else await clipboard.writeText(await text);
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
function copyWithCommand(text) {
|
|
24
|
+
const doc = globalThis.document;
|
|
25
|
+
if (typeof doc?.execCommand !== "function" || !doc.body) return false;
|
|
26
|
+
const focused = doc.activeElement;
|
|
27
|
+
const area = doc.createElement("textarea");
|
|
28
|
+
area.value = text;
|
|
29
|
+
area.readOnly = true;
|
|
30
|
+
area.style.position = "fixed";
|
|
31
|
+
area.style.opacity = "0";
|
|
32
|
+
doc.body.append(area);
|
|
33
|
+
area.focus({ preventScroll: true });
|
|
34
|
+
area.select();
|
|
35
|
+
try {
|
|
36
|
+
return doc.execCommand("copy");
|
|
37
|
+
} catch {
|
|
38
|
+
return false;
|
|
39
|
+
} finally {
|
|
40
|
+
area.remove();
|
|
41
|
+
if (focused instanceof HTMLElement) focused.focus({ preventScroll: true });
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function useCopy(options = {}) {
|
|
45
|
+
const copied = ref(false);
|
|
46
|
+
const failed = ref(false);
|
|
47
|
+
let timer;
|
|
48
|
+
if (getCurrentScope()) onScopeDispose(() => clearTimeout(timer));
|
|
49
|
+
async function copy(value) {
|
|
50
|
+
clearTimeout(timer);
|
|
51
|
+
copied.value = false;
|
|
52
|
+
failed.value = false;
|
|
53
|
+
try {
|
|
54
|
+
copied.value = await writeClipboard(value);
|
|
55
|
+
} catch {
|
|
56
|
+
copied.value = false;
|
|
57
|
+
}
|
|
58
|
+
failed.value = !copied.value;
|
|
59
|
+
timer = setTimeout(() => {
|
|
60
|
+
copied.value = false;
|
|
61
|
+
failed.value = false;
|
|
62
|
+
}, toValue(options.duration) ?? 2e3);
|
|
63
|
+
return copied.value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
copy,
|
|
67
|
+
copied: readonly(copied),
|
|
68
|
+
failed: readonly(failed)
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
// registry/copy-button/CopyButton.vue?vue&type=script&setup=true&lang.ts
|
|
72
|
+
const _hoisted_1 = {
|
|
73
|
+
key: 0,
|
|
74
|
+
"data-slot": "copy-button-label"
|
|
75
|
+
};
|
|
76
|
+
// registry/copy-button/CopyButton.vue
|
|
77
|
+
var CopyButton_default = /* @__PURE__ */ defineComponent({
|
|
78
|
+
__name: "CopyButton",
|
|
79
|
+
props: {
|
|
80
|
+
value: { type: [String, Function] },
|
|
81
|
+
label: {},
|
|
82
|
+
copyLabel: { default: "Copy" },
|
|
83
|
+
copiedLabel: { default: "Copied" },
|
|
84
|
+
failedLabel: { default: "Copy failed" },
|
|
85
|
+
variant: { default: "ghost" },
|
|
86
|
+
size: { default: "sm" },
|
|
87
|
+
duration: { default: 2e3 },
|
|
88
|
+
preload: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: false
|
|
91
|
+
},
|
|
92
|
+
disabled: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
emits: ["copy", "error"],
|
|
98
|
+
setup(__props, { emit: __emit }) {
|
|
99
|
+
const emit = __emit;
|
|
100
|
+
const slots = useSlots();
|
|
101
|
+
const { copy, copied } = useCopy({ duration: () => __props.duration });
|
|
102
|
+
const root = useTemplateRef("root");
|
|
103
|
+
const element = () => root.value?.$el instanceof Element ? root.value.$el : void 0;
|
|
104
|
+
onMounted(() => prepareAnnouncer(element()));
|
|
105
|
+
let preloaded;
|
|
106
|
+
watch(() => __props.value, () => preloaded = void 0);
|
|
107
|
+
function startPreload() {
|
|
108
|
+
if (!__props.preload || preloaded || typeof __props.value !== "function") return;
|
|
109
|
+
const entry = { text: callValue(__props.value) };
|
|
110
|
+
preloaded = entry;
|
|
111
|
+
if (typeof entry.text === "string") return;
|
|
112
|
+
entry.text.then((text) => {
|
|
113
|
+
if (preloaded === entry) entry.text = text;
|
|
114
|
+
}, () => {
|
|
115
|
+
if (preloaded === entry) preloaded = void 0;
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
const loading = ref(false);
|
|
119
|
+
async function onClick() {
|
|
120
|
+
let text = __props.value;
|
|
121
|
+
if (typeof text === "function") {
|
|
122
|
+
const pending = preloaded?.text ?? callValue(text);
|
|
123
|
+
preloaded = void 0;
|
|
124
|
+
text = typeof pending === "string" ? pending : () => pending;
|
|
125
|
+
loading.value = typeof pending !== "string";
|
|
126
|
+
}
|
|
127
|
+
const ok = await copy(text);
|
|
128
|
+
loading.value = false;
|
|
129
|
+
announce(element(), ok ? __props.copiedLabel : __props.failedLabel, __props.duration);
|
|
130
|
+
if (ok) emit("copy");
|
|
131
|
+
else emit("error");
|
|
132
|
+
}
|
|
133
|
+
const name = computed(() => __props.label || slots.default ? void 0 : __props.copyLabel);
|
|
134
|
+
const icon = computed(() => loading.value ? "loading" : copied.value ? "copied" : "copy");
|
|
135
|
+
function callValue(read) {
|
|
136
|
+
try {
|
|
137
|
+
return read();
|
|
138
|
+
} catch (error) {
|
|
139
|
+
return Promise.reject(error);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return (_ctx, _cache) => {
|
|
143
|
+
return openBlock(), createBlock(unref(Button), {
|
|
144
|
+
ref_key: "root",
|
|
145
|
+
ref: root,
|
|
146
|
+
"data-slot": "copy-button",
|
|
147
|
+
"data-variant": __props.variant,
|
|
148
|
+
"data-size": __props.size,
|
|
149
|
+
"data-copied": unref(copied) ? "" : void 0,
|
|
150
|
+
"data-loading": loading.value ? "" : void 0,
|
|
151
|
+
"aria-label": name.value,
|
|
152
|
+
disabled: __props.disabled || loading.value,
|
|
153
|
+
onClick,
|
|
154
|
+
onFocus: startPreload,
|
|
155
|
+
onPointerenter: startPreload
|
|
156
|
+
}, {
|
|
157
|
+
render: withCtx(({ props: part, children }) => [createElementVNode("button", mergeProps(part, { "data-slot": "copy-button" }), [(openBlock(), createBlock(resolveDynamicComponent(children)))], 16)]),
|
|
158
|
+
default: withCtx(() => [createVNode(unref(SwapIcon_default), {
|
|
159
|
+
name: icon.value,
|
|
160
|
+
enter: icon.value === "copy" ? "blur" : "draw"
|
|
161
|
+
}, {
|
|
162
|
+
default: withCtx(({ name: shown }) => [shown === "loading" ? (openBlock(), createBlock(unref(LoaderCircle), {
|
|
163
|
+
key: 0,
|
|
164
|
+
"data-slot": "copy-button-icon",
|
|
165
|
+
"data-copy-button-loader": "",
|
|
166
|
+
"aria-hidden": "true"
|
|
167
|
+
})) : shown === "copied" ? renderSlot(_ctx.$slots, "copied-icon", {}, () => [createVNode(unref(Check), {
|
|
168
|
+
"data-slot": "copy-button-icon",
|
|
169
|
+
"aria-hidden": "true"
|
|
170
|
+
})], void 0, 1) : renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(unref(Copy), {
|
|
171
|
+
"data-slot": "copy-button-icon",
|
|
172
|
+
"aria-hidden": "true"
|
|
173
|
+
})], void 0, 2)]),
|
|
174
|
+
_: 3
|
|
175
|
+
}, 8, ["name", "enter"]), __props.label || unref(slots).default ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(unref(MorphText_default), { text: unref(copied) ? __props.copiedLabel : __props.label ?? "" }, null, 8, ["text"])])])) : createCommentVNode("v-if", true)]),
|
|
176
|
+
_: 3
|
|
177
|
+
}, 8, [
|
|
178
|
+
"data-variant",
|
|
179
|
+
"data-size",
|
|
180
|
+
"data-copied",
|
|
181
|
+
"data-loading",
|
|
182
|
+
"aria-label",
|
|
183
|
+
"disabled"
|
|
184
|
+
]);
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
export { useCopy as n, CopyButton_default as t };
|
|
@@ -17,7 +17,7 @@ var Markdown_default = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
setup(__props) {
|
|
18
18
|
const props = __props;
|
|
19
19
|
const MarkdownRenderer = defineAsyncComponent(() => import("./markdown.js").then((module) => module.MarkdownRenderer));
|
|
20
|
-
const MarkdownCodeBlock = defineAsyncComponent(() => import("./MarkdownCodeBlock-
|
|
20
|
+
const MarkdownCodeBlock = defineAsyncComponent(() => import("./MarkdownCodeBlock-BWDLOWPO.js"));
|
|
21
21
|
const MarkdownImage = defineAsyncComponent(() => import("./MarkdownImage-CJN3myt4.js").then((n) => n.n));
|
|
22
22
|
const instance = getCurrentInstance();
|
|
23
23
|
const hasParentSuspense = Boolean(instance && "suspense" in instance && instance.suspense);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as CodeBlockLine_default, r as CodeBlock_default, t as CodeBlockContent_default } from "./CodeBlockContent-BjXJm8lO.js";
|
|
2
|
-
import { i as CodeBlockActions_default, n as CodeBlockHeader_default, r as CodeBlockCopyButton_default, t as CodeBlockTitle_default } from "./CodeBlockTitle-
|
|
2
|
+
import { i as CodeBlockActions_default, n as CodeBlockHeader_default, r as CodeBlockCopyButton_default, t as CodeBlockTitle_default } from "./CodeBlockTitle-DIu8Ef3V.js";
|
|
3
3
|
import { Comment, Fragment, Text, computed, createBlock, createTextVNode, createVNode, defineComponent, h, isVNode, normalizeClass, openBlock, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
4
4
|
// registry/markdown/MarkdownCodeBlock.vue
|
|
5
5
|
var MarkdownCodeBlock_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MessagePartsRenderer } from "./message-parts.js";
|
|
2
|
-
import { t as Markdown_default } from "./Markdown-
|
|
2
|
+
import { t as Markdown_default } from "./Markdown-Da5t-931.js";
|
|
3
3
|
import { t as MarkdownImage_default } from "./MarkdownImage-CJN3myt4.js";
|
|
4
4
|
import { createBlock, createCommentVNode, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderList, renderSlot, unref, useSlots, withCtx } from "vue";
|
|
5
5
|
// registry/message-parts/MessageParts.vue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as morphText } from "./motion-core-
|
|
1
|
+
import { b as morphText } from "./motion-core-JZZiPKEk.js";
|
|
2
2
|
import { t as elementOf } from "./element-BpjNQvZ0.js";
|
|
3
3
|
import { createElementVNode, createTextVNode, defineComponent, mergeProps, renderSlot, toDisplayString, unref, watch } from "vue";
|
|
4
4
|
// registry/motion/MorphText.vue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as rollNumber } from "./motion-core-
|
|
1
|
+
import { o as rollNumber } from "./motion-core-JZZiPKEk.js";
|
|
2
2
|
import { t as elementOf } from "./element-BpjNQvZ0.js";
|
|
3
3
|
import { createElementVNode, createTextVNode, defineComponent, mergeProps, renderSlot, shallowRef, toDisplayString, unref, watch } from "vue";
|
|
4
4
|
// registry/motion/RollNumber.vue
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { x as swapIcon } from "./motion-core-BdTfxAhY.js";
|
|
1
|
+
import { x as swapIcon } from "./motion-core-JZZiPKEk.js";
|
|
3
2
|
import { Fragment, createCommentVNode, createElementBlock, defineComponent, mergeProps, nextTick, openBlock, ref, renderList, renderSlot, useTemplateRef, watch } from "vue";
|
|
4
3
|
// registry/motion/SwapIcon.vue?vue&type=script&setup=true&lang.ts
|
|
5
4
|
const _hoisted_1 = ["data-icon-key", "data-spin"];
|
|
@@ -65,12 +64,4 @@ var SwapIcon_default = /* @__PURE__ */ defineComponent({
|
|
|
65
64
|
};
|
|
66
65
|
}
|
|
67
66
|
});
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* `v-ring="done"` rings the element once each time `done` becomes true, for a finished action such as saved or copied.
|
|
71
|
-
* `createViteHubUI()` registers it as `v-ring`.
|
|
72
|
-
*/
|
|
73
|
-
const vRing = { updated(element, binding) {
|
|
74
|
-
if (binding.value && !binding.oldValue) ring(element);
|
|
75
|
-
} };
|
|
76
|
-
export { SwapIcon_default as n, vRing as t };
|
|
67
|
+
export { SwapIcon_default as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Markdown_default } from "./Markdown-
|
|
1
|
+
import { t as Markdown_default } from "./Markdown-Da5t-931.js";
|
|
2
2
|
import { Comment, Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, isVNode, mergeProps, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
3
3
|
import { Bot, Brain, ChevronDown, CircleX, FilePenLine, FileText, Globe, ListChecks, Maximize2, Minimize2, PanelRight, Plug, Plus, Search, Sparkles, SquareMenu, Terminal, Wrench, X } from "@lucide/vue";
|
|
4
4
|
import { Tabs, TabsList, TabsPanel, TabsTab } from "@ui-sdk/vue/tabs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as RollNumber_default } from "./RollNumber-
|
|
1
|
+
import { t as RollNumber_default } from "./RollNumber-CnF52zJM.js";
|
|
2
2
|
import { Fragment, computed, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, normalizeStyle, openBlock, renderList, toDisplayString, unref } from "vue";
|
|
3
3
|
// registry/avatar-stack/initials.ts
|
|
4
4
|
function initials(name) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Chat_default } from "./Chat-
|
|
1
|
+
import { t as Chat_default } from "./Chat-CuSthJVg.js";
|
|
2
2
|
import { createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderList, renderSlot, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
3
3
|
// registry/chat-session/ChatSession.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
const _hoisted_1 = ["aria-label", "data-session-id"];
|
|
@@ -121,8 +121,8 @@ declare const __VLS_base$4: import("vue", { with: { "resolution-mode": "import"
|
|
|
121
121
|
preload: BooleanConstructor;
|
|
122
122
|
disabled: BooleanConstructor;
|
|
123
123
|
}>> & Readonly<{}>, {
|
|
124
|
-
variant: CopyButtonVariant | undefined;
|
|
125
124
|
size: CopyButtonSize | undefined;
|
|
125
|
+
variant: CopyButtonVariant | undefined;
|
|
126
126
|
disabled: boolean;
|
|
127
127
|
copyLabel: string;
|
|
128
128
|
copiedLabel: string;
|
|
@@ -224,17 +224,17 @@ declare const CommentComposer: import("vue").DefineComponent<import("vue").Extra
|
|
|
224
224
|
"onUpdate:mentions"?: ((...args: any[]) => any) | undefined;
|
|
225
225
|
"onUpdate:files"?: ((...args: any[]) => any) | undefined;
|
|
226
226
|
}>, {
|
|
227
|
-
|
|
228
|
-
allowEmpty: boolean;
|
|
227
|
+
size: CommentComposerSize;
|
|
229
228
|
people: CommentUser[];
|
|
230
229
|
busy: boolean;
|
|
231
230
|
attachments: boolean;
|
|
232
|
-
|
|
231
|
+
variant: CommentComposerVariant;
|
|
233
232
|
modelValue: string;
|
|
234
233
|
mentions: string[];
|
|
235
234
|
autofocus: boolean;
|
|
236
235
|
guard: boolean;
|
|
237
236
|
participants: string[];
|
|
237
|
+
allowEmpty: boolean;
|
|
238
238
|
layout: "box" | "row";
|
|
239
239
|
frame: CommentComposerFrame;
|
|
240
240
|
}, SlotsType<CommentComposerSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c as shakeEventName, i as consumedPointerEvents, l as swallowNextClick, n as injectComments, o as pathOf, u as useDocumentPointerDown } from "./comments-context-3js2YFl2.js";
|
|
2
|
-
import { a as shake, i as travel, r as createMotionList } from "./motion-core-
|
|
2
|
+
import { a as shake, i as travel, r as createMotionList } from "./motion-core-JZZiPKEk.js";
|
|
3
3
|
import { n as matchesAccept } from "./files-cuVXzWlx.js";
|
|
4
|
-
import { t as RollNumber_default } from "./RollNumber-
|
|
5
|
-
import { n as useViteHubUIIcons } from "./config-
|
|
6
|
-
import { t as useUIComponent } from "./nuxt-ui-
|
|
4
|
+
import { t as RollNumber_default } from "./RollNumber-CnF52zJM.js";
|
|
5
|
+
import { n as useViteHubUIIcons } from "./config-BDQYUjjp.js";
|
|
6
|
+
import { t as useUIComponent } from "./nuxt-ui-D3Qda35W.js";
|
|
7
7
|
import { a as AttachmentActions_default, i as AttachmentContent_default, n as AttachmentMedia_default, o as AttachmentAction_default, r as AttachmentGroup_default, s as Attachment_default, t as AttachmentTitle_default } from "./AttachmentTitle-BWw0ck0T.js";
|
|
8
|
-
import { t as AvatarStack_default } from "./avatar-stack-
|
|
8
|
+
import { t as AvatarStack_default } from "./avatar-stack-CoLlsmwJ.js";
|
|
9
9
|
import { i as PromptInputSubmit_default, n as PromptInputToolbar_default, o as PromptInputAttach_default, r as PromptInputTextarea_default, t as PromptInput_default } from "./prompt-input-CRXEJBAK.js";
|
|
10
10
|
import { computed, defineComponent, h, nextTick, onBeforeUnmount, onBeforeUpdate, onMounted, onUpdated, ref, useId, watch } from "vue";
|
|
11
11
|
import { foldName } from "@vite-hub/comments/client";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { s as CommentsState, t as CommentCan } from "./comments-ZfV6IZs8.js";
|
|
2
2
|
import { t as AvatarStackPerson } from "./types-CTk3aNb5.js";
|
|
3
|
-
import { r as CommentComposerSize } from "./comment-composer-
|
|
4
|
-
import { o as CommentUpload } from "./comment-panel-
|
|
5
|
-
import { n as CommentAttachmentUrl } from "./comment-thread-
|
|
3
|
+
import { r as CommentComposerSize } from "./comment-composer-CsVOvG9j.js";
|
|
4
|
+
import { o as CommentUpload } from "./comment-panel-DxN21VoY.js";
|
|
5
|
+
import { n as CommentAttachmentUrl } from "./comment-thread-BmsqcjVQ.js";
|
|
6
6
|
import { PropType } from "vue";
|
|
7
7
|
import { CommentSubject, CommentUser, CommentsClient } from "@vite-hub/comments/client";
|
|
8
8
|
/** Where a thread opens: in a card beside its pin, or in a column of cards on the right edge of the screen. */
|
|
@@ -128,12 +128,12 @@ declare const CommentLayer: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
128
128
|
type: PropType<CommentComposerSize>;
|
|
129
129
|
};
|
|
130
130
|
}>> & Readonly<{}>, {
|
|
131
|
-
readOnly: boolean;
|
|
132
|
-
queueFiles: boolean;
|
|
133
|
-
people: AvatarStackPerson[];
|
|
134
131
|
size: CommentComposerSize;
|
|
132
|
+
people: AvatarStackPerson[];
|
|
135
133
|
hotkey: string | false;
|
|
134
|
+
readOnly: boolean;
|
|
136
135
|
canComment: boolean;
|
|
136
|
+
queueFiles: boolean;
|
|
137
137
|
placement: CommentPlacement;
|
|
138
138
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
139
139
|
export { CommentPlacement as n, CommentLayer as t };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as useCommentsContext, i as useComments, n as draftPositionKey, o as commentThreadKey, r as provideComments } from "./comments-BaSrroRV.js";
|
|
2
2
|
import { t as uiErrorDiagnostics } from "./error-diagnostics-BlgA9rI2.js";
|
|
3
|
-
import { n as rowSlotScope, r as useCommentAttachments, t as CommentRow_default } from "./CommentRow-
|
|
3
|
+
import { n as rowSlotScope, r as useCommentAttachments, t as CommentRow_default } from "./CommentRow-XY3FNp30.js";
|
|
4
4
|
import { a as hasDirtyComposer, i as consumedPointerEvents, l as swallowNextClick, o as pathOf, r as commentThreadPortals, s as shakeDirtyComposers, u as useDocumentPointerDown } from "./comments-context-3js2YFl2.js";
|
|
5
|
-
import { t as AvatarStack_default } from "./avatar-stack-
|
|
6
|
-
import { n as useViteHubUIIcons } from "./config-
|
|
7
|
-
import { b as morphText, r as createMotionList } from "./motion-core-
|
|
8
|
-
import { a as excerpt, i as displayName, l as writerPerson, s as toPerson, t as CommentComposer } from "./comment-composer-
|
|
9
|
-
import { t as useUIComponent } from "./nuxt-ui-
|
|
10
|
-
import { i as deliveryAttributes, n as CommentThread, r as commentTitle } from "./comment-thread-
|
|
11
|
-
import { t as MotionList_default } from "./motion-list-
|
|
12
|
-
import { t as RollNumber_default } from "./RollNumber-
|
|
5
|
+
import { t as AvatarStack_default } from "./avatar-stack-CoLlsmwJ.js";
|
|
6
|
+
import { n as useViteHubUIIcons } from "./config-BDQYUjjp.js";
|
|
7
|
+
import { b as morphText, r as createMotionList } from "./motion-core-JZZiPKEk.js";
|
|
8
|
+
import { a as excerpt, i as displayName, l as writerPerson, s as toPerson, t as CommentComposer } from "./comment-composer-D_mcH3Ts.js";
|
|
9
|
+
import { t as useUIComponent } from "./nuxt-ui-D3Qda35W.js";
|
|
10
|
+
import { i as deliveryAttributes, n as CommentThread, r as commentTitle } from "./comment-thread-BzOZVqF2.js";
|
|
11
|
+
import { t as MotionList_default } from "./motion-list-9vD1hSS0.js";
|
|
12
|
+
import { t as RollNumber_default } from "./RollNumber-CnF52zJM.js";
|
|
13
13
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, h, mergeProps, nextTick, onBeforeUnmount, onMounted, onUpdated, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, watch, withCtx } from "vue";
|
|
14
14
|
import { List, MessageCircle, SquarePen } from "@lucide/vue";
|
|
15
15
|
// src/internal/comment-page-island.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as CommentsState, t as CommentCan } from "./comments-ZfV6IZs8.js";
|
|
2
|
-
import { u as CommentRowSlots } from "./types-
|
|
3
|
-
import { l as CommentThreadSlots, n as CommentAttachmentUrl } from "./comment-thread-
|
|
2
|
+
import { u as CommentRowSlots } from "./types-CMU8Vmew.js";
|
|
3
|
+
import { l as CommentThreadSlots, n as CommentAttachmentUrl } from "./comment-thread-BmsqcjVQ.js";
|
|
4
4
|
import { PropType, SlotsType, VNode } from "vue";
|
|
5
5
|
import { CommentStatus, CommentSubject, CommentThread, CommentUser, CommentsClient } from "@vite-hub/comments/client";
|
|
6
6
|
type CommentPanelVariant = "docked" | "floating";
|
|
@@ -88,7 +88,7 @@ declare const CommentPanel: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
88
88
|
};
|
|
89
89
|
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
90
90
|
[key: string]: any;
|
|
91
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
91
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:thread" | "update:status")[], "select" | "update:thread" | "update:status", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
92
|
comments: {
|
|
93
93
|
type: PropType<CommentsState>;
|
|
94
94
|
};
|
|
@@ -156,18 +156,18 @@ declare const CommentPanel: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
156
156
|
type: PropType<CommentGroup>;
|
|
157
157
|
};
|
|
158
158
|
}>> & Readonly<{
|
|
159
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
159
160
|
"onUpdate:thread"?: ((...args: any[]) => any) | undefined;
|
|
160
161
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
161
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
162
162
|
}>, {
|
|
163
|
-
variant: CommentPanelVariant;
|
|
164
|
-
thread: string | null;
|
|
165
163
|
title: string;
|
|
166
|
-
|
|
167
|
-
composer: boolean;
|
|
164
|
+
people: CommentUser[];
|
|
168
165
|
readOnly: boolean;
|
|
169
166
|
queueFiles: boolean;
|
|
167
|
+
thread: string | null;
|
|
168
|
+
variant: CommentPanelVariant;
|
|
170
169
|
allowEmpty: boolean;
|
|
171
|
-
|
|
170
|
+
composer: boolean;
|
|
171
|
+
heading: boolean;
|
|
172
172
|
}, SlotsType<CommentPanelSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
173
173
|
export { CommentPanelVariant as a, CommentPanelSlots as i, CommentGroupSlotScope as n, CommentUpload as o, CommentPanel as r, CommentGroup as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as CommentSelectionBarSlots, p as CommentSelectionBarSide } from "./types-
|
|
1
|
+
import { m as CommentSelectionBarSlots, p as CommentSelectionBarSide } from "./types-CMU8Vmew.js";
|
|
2
2
|
import { PropType, SlotsType } from "vue";
|
|
3
3
|
declare const CommentSelectionBar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
side: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as useUIComponent } from "./nuxt-ui-
|
|
1
|
+
import { t as useUIComponent } from "./nuxt-ui-D3Qda35W.js";
|
|
2
2
|
import { Fragment, cloneVNode, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, defineComponent, h, mergeProps, onErrorCaptured, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, withCtx, withModifiers } from "vue";
|
|
3
3
|
import { MessageCircle, Pencil } from "@lucide/vue";
|
|
4
4
|
// registry/comments/CommentSelectionBar.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -45,7 +45,6 @@ var CommentSelectionBar_default = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
return (_ctx, _cache) => {
|
|
46
46
|
return openBlock(), createElementBlock("div", {
|
|
47
47
|
"data-slot": "comment-selection-bar",
|
|
48
|
-
"data-motion-appear": "",
|
|
49
48
|
"data-side": __props.side,
|
|
50
49
|
role: "group",
|
|
51
50
|
"aria-label": "Selected text",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as CommentCan } from "./comments-ZfV6IZs8.js";
|
|
2
|
-
import { i as CommentComposerSlots, r as CommentComposerSize } from "./comment-composer-
|
|
2
|
+
import { i as CommentComposerSlots, r as CommentComposerSize } from "./comment-composer-CsVOvG9j.js";
|
|
3
3
|
import { PropType, SlotsType, VNode } from "vue";
|
|
4
4
|
import { CommentDelivery, CommentMessage, CommentThread, CommentUser } from "@vite-hub/comments/client";
|
|
5
5
|
declare function messagesSinceResolved(thread: Pick<CommentThread, "status" | "resolvedAt" | "messages">): CommentMessage[];
|
|
@@ -169,8 +169,8 @@ declare const CommentReply: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
169
169
|
type: PropType<(messageId: string) => Done>;
|
|
170
170
|
};
|
|
171
171
|
}>> & Readonly<{}>, {
|
|
172
|
-
people: CommentUser[];
|
|
173
172
|
size: CommentComposerSize;
|
|
173
|
+
people: CommentUser[];
|
|
174
174
|
editable: boolean;
|
|
175
175
|
deletable: boolean;
|
|
176
176
|
compact: boolean;
|
|
@@ -365,14 +365,14 @@ declare const CommentThread$1: import("vue").DefineComponent<import("vue").Extra
|
|
|
365
365
|
}>> & Readonly<{
|
|
366
366
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
367
367
|
}>, {
|
|
368
|
-
|
|
368
|
+
size: CommentComposerSize;
|
|
369
369
|
people: CommentUser[];
|
|
370
|
+
readOnly: boolean;
|
|
370
371
|
preview: boolean;
|
|
371
372
|
busy: boolean;
|
|
372
373
|
detached: boolean;
|
|
373
374
|
attachments: boolean;
|
|
374
375
|
navigation: "close" | "back";
|
|
375
376
|
dismissible: boolean;
|
|
376
|
-
size: CommentComposerSize;
|
|
377
377
|
}, SlotsType<CommentThreadSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
378
378
|
export { CommentReplySlots as a, CommentThreadSlotScope as c, repliedSinceResolved as d, CommentReplySlotScope as i, CommentThreadSlots as l, CommentAttachmentUrl as n, CommentStatusSlotScope as o, CommentReply as r, CommentThread$1 as s, CommentAttachmentLink as t, messagesSinceResolved as u };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as RollNumber_default } from "./RollNumber-
|
|
1
|
+
import { t as RollNumber_default } from "./RollNumber-CnF52zJM.js";
|
|
2
2
|
import { i as consumedPointerEvents, l as swallowNextClick, n as injectComments, o as pathOf, r as commentThreadPortals, s as shakeDirtyComposers, u as useDocumentPointerDown } from "./comments-context-3js2YFl2.js";
|
|
3
|
-
import { c as writerName, i as displayName, l as writerPerson, n as mentionPlugin, r as mentionTag, t as CommentComposer } from "./comment-composer-
|
|
3
|
+
import { c as writerName, i as displayName, l as writerPerson, n as mentionPlugin, r as mentionTag, t as CommentComposer } from "./comment-composer-D_mcH3Ts.js";
|
|
4
4
|
import { t as defaultCommentCan } from "./comments-BaSrroRV.js";
|
|
5
|
-
import { n as useViteHubUIIcons } from "./config-
|
|
6
|
-
import { i as travel } from "./motion-core-
|
|
7
|
-
import { t as useUIComponent } from "./nuxt-ui-
|
|
5
|
+
import { n as useViteHubUIIcons } from "./config-BDQYUjjp.js";
|
|
6
|
+
import { i as travel } from "./motion-core-JZZiPKEk.js";
|
|
7
|
+
import { t as useUIComponent } from "./nuxt-ui-D3Qda35W.js";
|
|
8
8
|
import { i as AttachmentContent_default, n as AttachmentMedia_default, r as AttachmentGroup_default, s as Attachment_default, t as AttachmentTitle_default } from "./AttachmentTitle-BWw0ck0T.js";
|
|
9
|
-
import { t as AvatarStack_default } from "./avatar-stack-
|
|
10
|
-
import { t as Markdown_default } from "./Markdown-
|
|
9
|
+
import { t as AvatarStack_default } from "./avatar-stack-CoLlsmwJ.js";
|
|
10
|
+
import { t as Markdown_default } from "./Markdown-Da5t-931.js";
|
|
11
11
|
import { i as Marker_default, r as MarkerContent_default } from "./marker-DNL6QR3L.js";
|
|
12
|
-
import { t as MotionList_default } from "./motion-list-
|
|
12
|
+
import { t as MotionList_default } from "./motion-list-9vD1hSS0.js";
|
|
13
13
|
import { t as RelativeTime_default } from "./relative-time-BnJfjeEm.js";
|
|
14
14
|
import { computed, defineComponent, h, inject, nextTick, onBeforeUnmount, provide, ref, watch } from "vue";
|
|
15
15
|
// registry/comments/status.ts
|