@hiai-gg/docsmint 0.3.6 → 0.3.7
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/dist/backend/index.js +1 -1
- package/dist/frontend/CategoryDialog--rIE7FrH.js +580 -0
- package/dist/frontend/ConfirmDialog-Cpzyb55f.js +212 -0
- package/dist/frontend/CreateSnapshotDialog-CmkV-n2A.js +216 -0
- package/dist/frontend/DatePicker-Byynca7V.js +257 -0
- package/dist/frontend/DeleteDialog-ap6nOywZ.js +174 -0
- package/dist/frontend/FolderDialog-DmN_trV0.js +247 -0
- package/dist/frontend/FolderNode-C4B8a2fd.js +317 -0
- package/dist/frontend/FolderTreeSelector-D6ijiZTA.js +100 -0
- package/dist/frontend/Icon-DtNo0N1U.js +64 -0
- package/dist/frontend/SettingsDialog-2kTaTXAs.js +992 -0
- package/dist/frontend/ShareDialog-BBDGNF5n.js +165 -0
- package/dist/frontend/TagCreateDialog-DiLZnJo4.js +258 -0
- package/dist/frontend/api/attachments.d.ts +6 -0
- package/dist/frontend/api/attachments.js +2 -0
- package/dist/frontend/api/categories.js +1 -1
- package/dist/frontend/api/documents.js +1 -1
- package/dist/frontend/api/folders.js +1 -1
- package/dist/frontend/api/settings.js +1 -1
- package/dist/frontend/api/share.d.ts +5 -0
- package/dist/frontend/api/share.js +2 -0
- package/dist/frontend/api/tags.js +1 -1
- package/dist/frontend/api-keys-CpkrA8rD.js +35 -0
- package/dist/frontend/attachments-BuILSs56.js +50 -0
- package/dist/frontend/{settings-PCrOtied.js → auth-client-Cygmp1I2.js} +205 -265
- package/dist/frontend/awareness-snQ3RD9f.js +3714 -0
- package/dist/frontend/bundle-mjs-CP6Owz-8.js +1723 -0
- package/dist/frontend/camera-B7dAOd4s.js +28 -0
- package/dist/frontend/{categories-BE6ZpZl8.js → categories-izQovv2w.js} +1 -1
- package/dist/frontend/check-CDwRlG9T.js +24 -0
- package/dist/frontend/chevron-down-B7ZrjUmT.js +24 -0
- package/dist/frontend/circle-check-CDqeMB2d.js +28 -0
- package/dist/frontend/{client-C6QQGb0e.js → client-Bc5Fzx40.js} +833 -814
- package/dist/frontend/{client-B9hzI0W8.js → client-GbtOH90i.js} +1 -1
- package/dist/frontend/clipboard-Cgzxc0_R.js +16 -0
- package/dist/frontend/clock-Ck5Sn-Zl.js +28 -0
- package/dist/frontend/clsx-nmtDPO_P.js +16 -0
- package/dist/frontend/collaboration.d.ts +6 -0
- package/dist/frontend/collaboration.js +182 -0
- package/dist/frontend/components/category-dialog.d.ts +2 -0
- package/dist/frontend/components/category-dialog.js +2 -0
- package/dist/frontend/components/create-snapshot-dialog.d.ts +2 -0
- package/dist/frontend/components/create-snapshot-dialog.js +2 -0
- package/dist/frontend/components/delete-dialog.d.ts +2 -0
- package/dist/frontend/components/delete-dialog.js +2 -0
- package/dist/frontend/components/editor/document-editor.d.ts +3 -0
- package/dist/frontend/components/editor/document-editor.js +3021 -0
- package/dist/frontend/components/editor/document-title.d.ts +2 -0
- package/dist/frontend/components/editor/document-title.js +31 -0
- package/dist/frontend/components/editor/docx-serializer.d.ts +2 -0
- package/dist/frontend/components/editor/docx-serializer.js +14600 -0
- package/dist/frontend/components/editor/extensions.d.ts +2 -0
- package/dist/frontend/components/editor/extensions.js +2 -0
- package/dist/frontend/components/editor/markdown-toggle.d.ts +2 -0
- package/dist/frontend/components/editor/markdown-toggle.js +72 -0
- package/dist/frontend/components/editor/markdown.d.ts +1 -0
- package/dist/frontend/components/editor/markdown.js +2 -0
- package/dist/frontend/components/folder-node.d.ts +3 -0
- package/dist/frontend/components/folder-node.js +2 -0
- package/dist/frontend/components/folder-tree-selector.d.ts +2 -0
- package/dist/frontend/components/folder-tree-selector.js +2 -0
- package/dist/frontend/components/save-as-dialog.d.ts +2 -0
- package/dist/frontend/components/save-as-dialog.js +254 -0
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.d.ts +2 -0
- package/dist/frontend/components/share-dialog.js +2 -0
- package/dist/frontend/components/sidebar.js +1206 -3762
- package/dist/frontend/components/tag-create-dialog.d.ts +2 -0
- package/dist/frontend/components/tag-create-dialog.js +2 -0
- package/dist/frontend/components/version-history.d.ts +2 -0
- package/dist/frontend/components/version-history.js +293 -0
- package/dist/frontend/{context-DbnW5yib.js → context-BMD6XTPe.js} +0 -3
- package/dist/frontend/copy-CMAA6GP0.js +31 -0
- package/dist/frontend/dashboard.js +1148 -1224
- package/dist/frontend/{SettingsDialog-D4pgFD0D.js → db-ByrlYfaI.js} +923 -2002
- package/dist/frontend/dialog-BDkiG42a.js +213 -0
- package/dist/frontend/disclose-version-5I57E3LD.js +3 -0
- package/dist/frontend/dndzone-BzsOINtP.js +1199 -0
- package/dist/frontend/doc-tabs.d.ts +7 -0
- package/dist/frontend/doc-tabs.js +14 -0
- package/dist/frontend/document-drop-coordinator-C4xHMjwC.js +68 -0
- package/dist/frontend/document-drop-coordinator.d.ts +2 -0
- package/dist/frontend/document-drop-coordinator.js +2 -0
- package/dist/frontend/{documents-DFVS9SsL.js → documents-BsDkvzCm.js} +1 -1
- package/dist/frontend/editorExtensions-BMHvUbdk.js +27021 -0
- package/dist/frontend/ellipsis-vertical-BBuPldbW.js +519 -0
- package/dist/frontend/extension.js +6 -5
- package/dist/frontend/floating-layer-anchor-C51M4l6v.js +4513 -0
- package/dist/frontend/folder-TQjKY4yn.js +44 -0
- package/dist/frontend/folder-refresh.d.ts +8 -0
- package/dist/frontend/folder-refresh.js +2 -0
- package/dist/frontend/{folders-CGe9diAG.js → folders-CTuV_JtU.js} +1 -1
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/i18n.js +1 -1
- package/dist/frontend/identity-DyWeNzu_.js +69 -0
- package/dist/frontend/index-client-jobkrWVL.js +86 -0
- package/dist/frontend/input-CBI6p4Xl.js +23 -0
- package/dist/frontend/keyboard.d.ts +14 -0
- package/dist/frontend/keyboard.js +2 -0
- package/dist/frontend/keyboard.svelte-D7H8DihC.js +133 -0
- package/dist/frontend/label-C-GkhEp4.js +30 -0
- package/dist/frontend/loader-circle-Bk-WFz9g.js +267 -0
- package/dist/frontend/markdown-BwnyjITU.js +11 -0
- package/dist/frontend/messages-BpYaLbzE.js +1091 -0
- package/dist/frontend/offline/identity.d.ts +6 -0
- package/dist/frontend/offline/identity.js +2 -0
- package/dist/frontend/resolve-BG4HgzpN.js +19 -0
- package/dist/frontend/rolldown-runtime-CWhphoD1.js +23 -0
- package/dist/frontend/rotate-ccw-CleZtJ5D.js +24 -0
- package/dist/frontend/search.js +637 -628
- package/dist/frontend/select-value-CvrWRkXW.js +1436 -0
- package/dist/frontend/settings-blyobazp.js +62 -0
- package/dist/frontend/share-Cu7SSJuJ.js +28 -0
- package/dist/frontend/shared-document.js +41 -40
- package/dist/frontend/subfolders-refresh-store.svelte-BsheoQma.js +65 -0
- package/dist/frontend/{tag-C5xrg-bb.js → tag-Dx3SmucJ.js} +7 -7
- package/dist/frontend/tag-store.svelte-CIaF4sdZ.js +29 -0
- package/dist/frontend/{tags-DVXTut0p.js → tags-CtCV0Djo.js} +1 -1
- package/dist/frontend/textarea-Dfp78XlL.js +23 -0
- package/dist/frontend/theme.js +1 -1
- package/dist/frontend/{theme.svelte-ei0QxXa8.js → theme.svelte-CROg1Hi5.js} +7 -7
- package/dist/frontend/types.d.ts +6 -0
- package/dist/frontend/types.js +0 -0
- package/dist/frontend/utils/clipboard.d.ts +1 -0
- package/dist/frontend/utils/clipboard.js +2 -0
- package/dist/frontend/utils/dndzone.d.ts +4 -0
- package/dist/frontend/utils/dndzone.js +2 -0
- package/dist/frontend/utils-C0OW2678.js +20 -0
- package/dist/frontend/utils-D8kmM3ub.js +8 -0
- package/dist/frontend/utils.d.ts +4 -0
- package/dist/frontend/utils.js +2 -0
- package/dist/frontend/x-DaTdeDXv.js +24 -0
- package/package.json +109 -1
- package/packages/cli/src/index.ts +1 -1
- package/packages/mcp-server/src/index.ts +1 -1
- package/dist/frontend/DatePicker-BcMD49PV.js +0 -275
- package/dist/frontend/ShareDialog-Dzh7rV7J.js +0 -1317
- package/dist/frontend/input-ieWIt8I7.js +0 -257
- package/dist/frontend/messages-CTGAsqFu.js +0 -1106
- package/dist/frontend/resolve-Bl6xmJl_.js +0 -2068
- package/dist/frontend/tag-store.svelte-B3839FYq.js +0 -6152
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import "../disclose-version-5I57E3LD.js";
|
|
2
|
+
import { $ as e, A as t, E as n, I as r, K as i, L as a, M as o, Q as s, S as c, V as l, _t as u, at as d, ct as f, d as p, dt as m, et as h, ft as g, h as _, i as v, j as y, k as b, q as x, rt as S, t as C, tt as w, w as T } from "../client-Bc5Fzx40.js";
|
|
3
|
+
import { t as E } from "../loader-circle-Bk-WFz9g.js";
|
|
4
|
+
import { t as D } from "../Icon-DtNo0N1U.js";
|
|
5
|
+
import { t as O } from "../camera-B7dAOd4s.js";
|
|
6
|
+
import { t as ee } from "../clock-Ck5Sn-Zl.js";
|
|
7
|
+
import { t as te } from "../rotate-ccw-CleZtJ5D.js";
|
|
8
|
+
import { t as ne } from "../circle-check-CDqeMB2d.js";
|
|
9
|
+
import { t as k } from "../ConfirmDialog-Cpzyb55f.js";
|
|
10
|
+
import { n as A, t as j } from "../client-GbtOH90i.js";
|
|
11
|
+
import { Gn as M, Jt as re, Kn as N, T as ie, Wn as ae, Xt as oe, Yt as P, Zt as F, cn as I, ir as se, ln as L, on as R, qn as ce, qt as le, sn as z, tr as ue, un as de } from "../messages-BpYaLbzE.js";
|
|
12
|
+
import { t as fe } from "../CreateSnapshotDialog-CmkV-n2A.js";
|
|
13
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/history.svelte
|
|
14
|
+
function pe(n, r) {
|
|
15
|
+
let i = C(r, [
|
|
16
|
+
"children",
|
|
17
|
+
"$$slots",
|
|
18
|
+
"$$events",
|
|
19
|
+
"$$legacy"
|
|
20
|
+
]), a = [
|
|
21
|
+
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }],
|
|
22
|
+
["path", { d: "M3 3v5h5" }],
|
|
23
|
+
["path", { d: "M12 7v5l4 2" }]
|
|
24
|
+
];
|
|
25
|
+
D(n, v({ name: "history" }, () => i, {
|
|
26
|
+
get iconNode() {
|
|
27
|
+
return a;
|
|
28
|
+
},
|
|
29
|
+
children: (n, i) => {
|
|
30
|
+
var a = y();
|
|
31
|
+
c(e(a), r, "default", {}, null), t(n, a);
|
|
32
|
+
},
|
|
33
|
+
$$slots: { default: !0 }
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/star.svelte
|
|
38
|
+
function B(n, r) {
|
|
39
|
+
let i = C(r, [
|
|
40
|
+
"children",
|
|
41
|
+
"$$slots",
|
|
42
|
+
"$$events",
|
|
43
|
+
"$$legacy"
|
|
44
|
+
]), a = [["path", { d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" }]];
|
|
45
|
+
D(n, v({ name: "star" }, () => i, {
|
|
46
|
+
get iconNode() {
|
|
47
|
+
return a;
|
|
48
|
+
},
|
|
49
|
+
children: (n, i) => {
|
|
50
|
+
var a = y();
|
|
51
|
+
c(e(a), r, "default", {}, null), t(n, a);
|
|
52
|
+
},
|
|
53
|
+
$$slots: { default: !0 }
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/lib/components/VersionHistory.svelte
|
|
58
|
+
var me = o("<div class=\"inline-flex w-full overflow-hidden rounded-md border border-border text-xs\" role=\"tablist\"><button type=\"button\" role=\"tab\"> </button> <button type=\"button\" role=\"tab\"> </button></div>"), he = o("<div class=\"flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground\"><!> <span> </span></div>"), ge = o("<p class=\"py-4 text-center text-xs text-destructive\"> </p>"), _e = o("<p class=\"py-4 text-center text-xs text-muted-foreground\"> </p>"), ve = o("<span class=\"truncate text-xs font-medium text-foreground\"> </span>"), ye = o("<span class=\"truncate text-[11px] text-muted-foreground\"> </span>"), be = o("<div class=\"mt-1 flex flex-wrap items-center gap-1\"><span class=\"inline-flex items-center gap-1 rounded-full bg-amber-100 px-2 py-0.5 text-[10px] font-medium text-amber-800 dark:bg-amber-900/30 dark:text-amber-300\"><!> </span> <!></div>"), xe = o("<div class=\"mt-1 inline-flex items-center gap-1 text-[11px] text-muted-foreground\"><!> <code class=\"rounded bg-muted px-1 font-mono text-[10px]\"> </code></div>"), Se = o("<div class=\"flex items-start gap-3 rounded-md border border-border p-3 text-sm hover:bg-accent transition-colors\"><!> <div class=\"flex-1 min-w-0\"><div class=\"flex items-center justify-between gap-2\"><div class=\"flex flex-col gap-0.5 min-w-0\"><!> <span class=\"text-xs text-muted-foreground\"> </span></div> <button type=\"button\" class=\"inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs text-muted-foreground hover:bg-background hover:text-foreground transition-colors\"><!> </button></div> <!> <!> <p class=\"mt-1 truncate text-xs text-muted-foreground\"> </p></div></div>"), Ce = o("<div class=\"flex flex-col gap-1 overflow-y-auto max-h-80\"></div>"), we = o("<p class=\"sr-only\" role=\"alert\"> </p>"), Te = o("<div class=\"flex flex-col gap-2 p-4\"><div class=\"flex items-center justify-between gap-2\"><div class=\"flex items-center gap-2 text-sm font-medium text-foreground\"><!> <span> </span></div> <button type=\"button\" class=\"inline-flex items-center gap-1 rounded-md border border-border bg-background px-2 py-1 text-xs font-medium hover:bg-accent disabled:opacity-50\"><!> </button></div> <!> <!></div> <!> <!> <!>", 1);
|
|
59
|
+
function V(r, o) {
|
|
60
|
+
g(o, !0);
|
|
61
|
+
let c = d(w([])), v = d(!0), y = d(null), C = d("all"), D = d(!1), V = d(!1), H = d(null), U = d(!1), W = d(null);
|
|
62
|
+
async function G() {
|
|
63
|
+
S(v, !0), S(y, null);
|
|
64
|
+
try {
|
|
65
|
+
S(c, await A(`/api/documents/${o.documentId}/versions`), !0);
|
|
66
|
+
} catch (e) {
|
|
67
|
+
S(y, e instanceof Error ? e.message : String(e), !0), console.error("Failed to load versions", e);
|
|
68
|
+
} finally {
|
|
69
|
+
S(v, !1);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
x(() => {
|
|
73
|
+
o.documentId, G();
|
|
74
|
+
}), x(() => {
|
|
75
|
+
l(V) || l(U) || l(H) !== null && S(H, null);
|
|
76
|
+
});
|
|
77
|
+
let K = f(() => l(C) === "snapshots" ? l(c).filter((e) => e.isSnapshot === !0) : l(c)), Ee = f(() => l(c).reduce((e, t) => t.isSnapshot ? e + 1 : e, 0)), De = f(() => l(H)?.label ? `${z()} (${l(H).label})` : z());
|
|
78
|
+
function q(e) {
|
|
79
|
+
if (!e) return "";
|
|
80
|
+
let t = e.replace(/```[\s\S]*?```/g, "").replace(/[#*_`>~-]/g, "").replace(/\s+/g, " ").trim();
|
|
81
|
+
return t.length > 100 ? `${t.slice(0, 100)}…` : t;
|
|
82
|
+
}
|
|
83
|
+
function Oe(e) {
|
|
84
|
+
let t = typeof e == "string" ? new Date(e) : e, n = Date.now() - t.getTime();
|
|
85
|
+
if (Number.isNaN(n)) return "";
|
|
86
|
+
let r = Math.floor(n / 6e4);
|
|
87
|
+
if (r < 1) return N({ count: 0 });
|
|
88
|
+
if (r < 60) return N({ count: r });
|
|
89
|
+
let i = Math.floor(r / 60);
|
|
90
|
+
return i < 24 ? M({ count: i }) : ae({ count: Math.floor(i / 24) });
|
|
91
|
+
}
|
|
92
|
+
function ke(e) {
|
|
93
|
+
S(H, e, !0), S(W, null), S(V, !0);
|
|
94
|
+
}
|
|
95
|
+
function Ae() {
|
|
96
|
+
l(U) || (S(H, null), S(W, null));
|
|
97
|
+
}
|
|
98
|
+
async function je() {
|
|
99
|
+
let e = l(H);
|
|
100
|
+
if (!(!e || l(U))) {
|
|
101
|
+
S(U, !0), S(W, null);
|
|
102
|
+
try {
|
|
103
|
+
await A(`/api/documents/${o.documentId}/versions/${e.id}/restore`, { method: "POST" }), await G(), S(H, null), S(V, !1), o.onRestored?.(e), typeof window < "u" && window.dispatchEvent(new CustomEvent("version-restored", { detail: {
|
|
104
|
+
documentId: o.documentId,
|
|
105
|
+
versionId: e.id
|
|
106
|
+
} }));
|
|
107
|
+
} catch (e) {
|
|
108
|
+
e instanceof j ? S(W, `${le()}: ${e.message}`) : S(W, e instanceof Error ? e.message : se(), !0), console.error("Failed to restore version", e);
|
|
109
|
+
} finally {
|
|
110
|
+
S(U, !1);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function Me() {
|
|
115
|
+
G();
|
|
116
|
+
}
|
|
117
|
+
function Ne(e) {
|
|
118
|
+
if (!e) return null;
|
|
119
|
+
let t = l(c).find((t) => t.id === e);
|
|
120
|
+
return t ? t.label ?? e.slice(0, 8) : e.slice(0, 8);
|
|
121
|
+
}
|
|
122
|
+
var J = Te(), Y = e(J), X = s(Y), Z = s(X), Q = s(Z);
|
|
123
|
+
pe(Q, { class: "h-4 w-4" });
|
|
124
|
+
var Pe = h(Q, 2), Fe = s(Pe, !0);
|
|
125
|
+
u(Pe), u(Z);
|
|
126
|
+
var $ = h(Z, 2), Ie = s($);
|
|
127
|
+
O(Ie, { class: "h-3 w-3" });
|
|
128
|
+
var Le = h(Ie);
|
|
129
|
+
u($), u(X);
|
|
130
|
+
var Re = h(X, 2), ze = (e) => {
|
|
131
|
+
var n = me(), r = s(n), o = s(r);
|
|
132
|
+
u(r);
|
|
133
|
+
var d = h(r, 2), f = s(d);
|
|
134
|
+
u(d), u(n), i((e, t, i) => {
|
|
135
|
+
p(n, "aria-label", e), p(r, "aria-selected", l(C) === "all"), _(r, 1, `flex-1 px-2 py-1 transition-colors ${l(C) === "all" ? "bg-primary text-primary-foreground" : "bg-background text-muted-foreground hover:bg-accent"}`), b(o, `${t ?? ""} (${l(c).length ?? ""})`), p(d, "aria-selected", l(C) === "snapshots"), _(d, 1, `flex-1 px-2 py-1 transition-colors ${l(C) === "snapshots" ? "bg-primary text-primary-foreground" : "bg-background text-muted-foreground hover:bg-accent"}`), b(f, `${i ?? ""} (${l(Ee) ?? ""})`);
|
|
136
|
+
}, [
|
|
137
|
+
() => F(),
|
|
138
|
+
() => F(),
|
|
139
|
+
() => oe()
|
|
140
|
+
]), a("click", r, () => S(C, "all")), a("click", d, () => S(C, "snapshots")), t(e, n);
|
|
141
|
+
};
|
|
142
|
+
n(Re, (e) => {
|
|
143
|
+
l(c).length > 0 && e(ze);
|
|
144
|
+
});
|
|
145
|
+
var Be = h(Re, 2), Ve = (e) => {
|
|
146
|
+
var n = he(), r = s(n);
|
|
147
|
+
E(r, { class: "h-3.5 w-3.5 animate-spin" });
|
|
148
|
+
var a = h(r, 2), o = s(a, !0);
|
|
149
|
+
u(a), u(n), i((e) => b(o, e), [() => ce()]), t(e, n);
|
|
150
|
+
}, He = (e) => {
|
|
151
|
+
var n = ge(), r = s(n, !0);
|
|
152
|
+
u(n), i(() => b(r, l(y))), t(e, n);
|
|
153
|
+
}, Ue = (e) => {
|
|
154
|
+
var n = _e(), r = s(n, !0);
|
|
155
|
+
u(n), i((e) => b(r, e), [() => ie()]), t(e, n);
|
|
156
|
+
}, We = (e) => {
|
|
157
|
+
var r = Ce();
|
|
158
|
+
T(r, 21, () => l(K), (e) => e.id, (e, r) => {
|
|
159
|
+
var o = Se(), c = s(o), d = (e) => {
|
|
160
|
+
{
|
|
161
|
+
let t = f(() => P());
|
|
162
|
+
B(e, {
|
|
163
|
+
class: "mt-0.5 h-3.5 w-3.5 shrink-0 fill-amber-400 text-amber-500",
|
|
164
|
+
get "aria-label"() {
|
|
165
|
+
return l(t);
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}, m = (e) => {
|
|
170
|
+
ee(e, { class: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" });
|
|
171
|
+
};
|
|
172
|
+
n(c, (e) => {
|
|
173
|
+
l(r).isSnapshot ? e(d) : e(m, -1);
|
|
174
|
+
});
|
|
175
|
+
var g = h(c, 2), _ = s(g), v = s(_), y = s(v), x = (e) => {
|
|
176
|
+
var n = ve(), a = s(n, !0);
|
|
177
|
+
u(n), i(() => {
|
|
178
|
+
p(n, "title", l(r).label), b(a, l(r).label);
|
|
179
|
+
}), t(e, n);
|
|
180
|
+
};
|
|
181
|
+
n(y, (e) => {
|
|
182
|
+
l(r).label && e(x);
|
|
183
|
+
});
|
|
184
|
+
var S = h(y, 2), C = s(S, !0);
|
|
185
|
+
u(S), u(v);
|
|
186
|
+
var w = h(v, 2), T = s(w);
|
|
187
|
+
te(T, { class: "h-3 w-3" });
|
|
188
|
+
var E = h(T);
|
|
189
|
+
u(w), u(_);
|
|
190
|
+
var D = h(_, 2), O = (e) => {
|
|
191
|
+
var a = be(), o = s(a), c = s(o);
|
|
192
|
+
B(c, { class: "h-2.5 w-2.5" });
|
|
193
|
+
var d = h(c);
|
|
194
|
+
u(o);
|
|
195
|
+
var f = h(o, 2), m = (e) => {
|
|
196
|
+
var n = ye(), a = s(n, !0);
|
|
197
|
+
u(n), i(() => {
|
|
198
|
+
p(n, "title", l(r).description), b(a, l(r).description);
|
|
199
|
+
}), t(e, n);
|
|
200
|
+
};
|
|
201
|
+
n(f, (e) => {
|
|
202
|
+
l(r).description && e(m);
|
|
203
|
+
}), u(a), i((e) => b(d, ` ${e ?? ""}`), [() => P()]), t(e, a);
|
|
204
|
+
};
|
|
205
|
+
n(D, (e) => {
|
|
206
|
+
l(r).isSnapshot && e(O);
|
|
207
|
+
});
|
|
208
|
+
var k = h(D, 2), A = (e) => {
|
|
209
|
+
var n = xe(), a = s(n);
|
|
210
|
+
ne(a, { class: "h-3 w-3" });
|
|
211
|
+
var o = h(a), c = h(o), d = s(c, !0);
|
|
212
|
+
u(c), u(n), i((e, t) => {
|
|
213
|
+
b(o, ` ${e ?? ""} `), b(d, t);
|
|
214
|
+
}, [() => re(), () => Ne(l(r).restoredFrom) ?? "—"]), t(e, n);
|
|
215
|
+
};
|
|
216
|
+
n(k, (e) => {
|
|
217
|
+
l(r).restoredFrom && e(A);
|
|
218
|
+
});
|
|
219
|
+
var j = h(k, 2), M = s(j, !0);
|
|
220
|
+
u(j), u(g), u(o), i((e, t, n, r, i, a) => {
|
|
221
|
+
b(C, e), p(w, "title", t), p(w, "aria-label", n), b(E, ` ${r ?? ""}`), p(j, "title", i), b(M, a);
|
|
222
|
+
}, [
|
|
223
|
+
() => Oe(l(r).createdAt),
|
|
224
|
+
() => L(),
|
|
225
|
+
() => L(),
|
|
226
|
+
() => I(),
|
|
227
|
+
() => q(l(r).content),
|
|
228
|
+
() => q(l(r).content)
|
|
229
|
+
]), a("click", w, () => ke(l(r))), t(e, o);
|
|
230
|
+
}), u(r), t(e, r);
|
|
231
|
+
};
|
|
232
|
+
n(Be, (e) => {
|
|
233
|
+
l(v) ? e(Ve) : l(y) ? e(He, 1) : l(K).length === 0 ? e(Ue, 2) : e(We, -1);
|
|
234
|
+
}), u(Y);
|
|
235
|
+
var Ge = h(Y, 2);
|
|
236
|
+
{
|
|
237
|
+
let e = f(() => L()), t = f(() => I()), n = f(() => ue());
|
|
238
|
+
k(Ge, {
|
|
239
|
+
get title() {
|
|
240
|
+
return l(e);
|
|
241
|
+
},
|
|
242
|
+
get description() {
|
|
243
|
+
return l(De);
|
|
244
|
+
},
|
|
245
|
+
get confirmLabel() {
|
|
246
|
+
return l(t);
|
|
247
|
+
},
|
|
248
|
+
get cancelLabel() {
|
|
249
|
+
return l(n);
|
|
250
|
+
},
|
|
251
|
+
variant: "default",
|
|
252
|
+
get busy() {
|
|
253
|
+
return l(U);
|
|
254
|
+
},
|
|
255
|
+
onConfirm: je,
|
|
256
|
+
onCancel: Ae,
|
|
257
|
+
get open() {
|
|
258
|
+
return l(V);
|
|
259
|
+
},
|
|
260
|
+
set open(e) {
|
|
261
|
+
S(V, e, !0);
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
var Ke = h(Ge, 2), qe = (e) => {
|
|
266
|
+
var n = we(), r = s(n, !0);
|
|
267
|
+
u(n), i(() => b(r, l(W))), t(e, n);
|
|
268
|
+
};
|
|
269
|
+
n(Ke, (e) => {
|
|
270
|
+
l(W) && e(qe);
|
|
271
|
+
}), fe(h(Ke, 2), {
|
|
272
|
+
get documentId() {
|
|
273
|
+
return o.documentId;
|
|
274
|
+
},
|
|
275
|
+
onSuccess: Me,
|
|
276
|
+
get open() {
|
|
277
|
+
return l(D);
|
|
278
|
+
},
|
|
279
|
+
set open(e) {
|
|
280
|
+
S(D, e, !0);
|
|
281
|
+
}
|
|
282
|
+
}), i((e, t, n, r) => {
|
|
283
|
+
b(Fe, e), $.disabled = l(v), p($, "title", t), p($, "aria-label", n), b(Le, ` ${r ?? ""}`);
|
|
284
|
+
}, [
|
|
285
|
+
() => de(),
|
|
286
|
+
() => R(),
|
|
287
|
+
() => R(),
|
|
288
|
+
() => R()
|
|
289
|
+
]), a("click", $, () => S(D, !0)), t(r, J), m();
|
|
290
|
+
}
|
|
291
|
+
r(["click"]);
|
|
292
|
+
//#endregion
|
|
293
|
+
export { V as VersionHistory };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { createContext as e } from "svelte";
|
|
2
|
-
//#region ../node_modules/.bun/svelte@5.56.4/node_modules/svelte/src/internal/disclose-version.js
|
|
3
|
-
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
4
|
-
//#endregion
|
|
5
2
|
//#region src/lib/extensions/context.ts
|
|
6
3
|
function t(e = {}) {
|
|
7
4
|
return {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "./disclose-version-5I57E3LD.js";
|
|
2
|
+
import { $ as e, A as t, S as n, i as r, j as i, t as a } from "./client-Bc5Fzx40.js";
|
|
3
|
+
import { t as o } from "./Icon-DtNo0N1U.js";
|
|
4
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/copy.svelte
|
|
5
|
+
function s(s, c) {
|
|
6
|
+
let l = a(c, [
|
|
7
|
+
"children",
|
|
8
|
+
"$$slots",
|
|
9
|
+
"$$events",
|
|
10
|
+
"$$legacy"
|
|
11
|
+
]), u = [["rect", {
|
|
12
|
+
width: "14",
|
|
13
|
+
height: "14",
|
|
14
|
+
x: "8",
|
|
15
|
+
y: "8",
|
|
16
|
+
rx: "2",
|
|
17
|
+
ry: "2"
|
|
18
|
+
}], ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]];
|
|
19
|
+
o(s, r({ name: "copy" }, () => l, {
|
|
20
|
+
get iconNode() {
|
|
21
|
+
return u;
|
|
22
|
+
},
|
|
23
|
+
children: (r, a) => {
|
|
24
|
+
var o = i();
|
|
25
|
+
n(e(o), c, "default", {}, null), t(r, o);
|
|
26
|
+
},
|
|
27
|
+
$$slots: { default: !0 }
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { s as t };
|