@hiai-gg/docsmint 0.3.7 → 0.3.9
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/backend/src/lib/logger.ts +45 -15
- package/dist/backend/index.js +238 -150
- package/dist/client.d.ts +11 -0
- package/dist/client.js +9 -0
- package/dist/frontend/CategoryDialog-CxVyaBV5.js +611 -0
- package/dist/frontend/ConfirmDialog-NFGXRa3E.js +214 -0
- package/dist/frontend/CreateSnapshotDialog-BDgFTeFn.js +216 -0
- package/dist/frontend/DatePicker-BZRBluzF.js +256 -0
- package/dist/frontend/DeleteDialog-CvAr2WPu.js +174 -0
- package/dist/frontend/FolderNode-C6FJv99G.js +298 -0
- package/dist/frontend/FolderTreeSelector-CyB8y2Sm.js +103 -0
- package/dist/frontend/HiaiDocsExtensionProvider-DHWLzRUu.js +11 -0
- package/dist/frontend/Icon-CooFj4Ee.js +64 -0
- package/dist/frontend/SettingsDialog-BHh68rTB.js +1016 -0
- package/dist/frontend/ShareDialog-BUOkYSlw.js +165 -0
- package/dist/frontend/Sidebar-Cu3JrKDC.js +2021 -0
- package/dist/frontend/TagCreateDialog-B9YZBNHi.js +260 -0
- package/dist/frontend/api/settings.js +1 -1
- package/dist/frontend/app-shell.d.ts +8 -0
- package/dist/frontend/app-shell.js +291 -0
- package/dist/frontend/{bundle-mjs-CP6Owz-8.js → bundle-mjs-DllmqUxV.js} +583 -568
- package/dist/frontend/camera-iKXDOOWT.js +29 -0
- package/dist/frontend/check-D-UuvBuh.js +25 -0
- package/dist/frontend/chevron-down-CiPtYyFh.js +25 -0
- package/dist/frontend/circle-check-tSPE1V6t.js +29 -0
- package/dist/frontend/clock-DJHbHZb8.js +29 -0
- package/dist/frontend/components/category-dialog.js +1 -1
- package/dist/frontend/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend/components/delete-dialog.js +1 -1
- package/dist/frontend/components/editor/document-editor.js +1367 -1356
- package/dist/frontend/components/editor/document-title.js +25 -25
- package/dist/frontend/components/editor/markdown-toggle.js +45 -45
- package/dist/frontend/components/folder-node.js +1 -1
- package/dist/frontend/components/folder-tree-selector.js +1 -1
- package/dist/frontend/components/save-as-dialog.js +169 -151
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.js +1 -1
- package/dist/frontend/components/sidebar.js +2 -2013
- package/dist/frontend/components/tag-create-dialog.js +1 -1
- package/dist/frontend/components/version-history.js +188 -187
- package/dist/frontend/confirm-dialog-C4jTRbiS.js +250 -0
- package/dist/frontend/copy-GppwRMjX.js +32 -0
- package/dist/frontend/dashboard.js +1187 -1155
- package/dist/frontend/dialog-Bevp9mmM.js +213 -0
- package/dist/frontend/{loader-circle-Bk-WFz9g.js → dist-C3857Spp.js} +93 -92
- package/dist/frontend/doc-tabs.js +2 -2
- package/dist/frontend/dropdown-menu-CRSby3e9.js +530 -0
- package/dist/frontend/extension.js +2 -11
- package/dist/frontend/{floating-layer-anchor-C51M4l6v.js → floating-layer-anchor-BDs7vO-M.js} +1414 -1412
- package/dist/frontend/folder-DeWhnD7O.js +45 -0
- package/dist/frontend/folder-refresh.js +1 -1
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/i18n.js +2 -2
- package/dist/frontend/input-BWlOML_m.js +23 -0
- package/dist/frontend/keyboard.js +1 -1
- package/dist/frontend/{keyboard.svelte-D7H8DihC.js → keyboard.svelte-CApmX0vl.js} +53 -53
- package/dist/frontend/label-C2HfJNQ2.js +30 -0
- package/dist/frontend/{messages-BpYaLbzE.js → messages-C5Q890i2.js} +8 -8
- package/dist/frontend/rotate-ccw-B4Q7brmV.js +25 -0
- package/dist/frontend/search.js +673 -647
- package/dist/frontend/select-value-GXwx90Pr.js +1446 -0
- package/dist/frontend/{settings-blyobazp.js → settings-DSrUl4hW.js} +9 -9
- package/dist/frontend/shared-document.js +94 -94
- package/dist/frontend/subfolders-refresh-store.svelte-B2dKVmgz.js +65 -0
- package/dist/frontend/tag-HxRazVN_.js +54 -0
- package/dist/frontend/tag-store.svelte-CqrUXo0o.js +29 -0
- package/dist/frontend/textarea-DOAE-h42.js +23 -0
- package/dist/frontend/theme.js +1 -1
- package/dist/frontend/theme.svelte-DKfCy12k.js +49 -0
- package/dist/frontend/{utils-D8kmM3ub.js → utils-BPDRytUU.js} +2 -3
- package/dist/frontend/{utils-C0OW2678.js → utils-DrfHTcei.js} +2 -3
- package/dist/frontend/utils.js +1 -1
- package/dist/frontend/x-CzBsnJ2x.js +25 -0
- package/dist/frontend-ssr/api/attachments.js +2 -0
- package/dist/frontend-ssr/api/categories.js +2 -0
- package/dist/frontend-ssr/api/documents.js +2 -0
- package/dist/frontend-ssr/api/folders.js +2 -0
- package/dist/frontend-ssr/api/settings.js +2 -0
- package/dist/frontend-ssr/api/share.js +2 -0
- package/dist/frontend-ssr/api/tags.js +2 -0
- package/dist/frontend-ssr/app-shell.js +294 -0
- package/dist/frontend-ssr/assets/CategoryDialog-BcGW8-Kf.js +584 -0
- package/dist/frontend-ssr/assets/ConfirmDialog-DjMFKc0V.js +420 -0
- package/dist/frontend-ssr/assets/CreateSnapshotDialog-1bROJ-Rn.js +214 -0
- package/dist/frontend-ssr/assets/DatePicker-B1ML8OVz.js +312 -0
- package/dist/frontend-ssr/assets/DeleteDialog-tBYaP0L3.js +154 -0
- package/dist/frontend-ssr/assets/FolderNode-BZ0Q2QUS.js +171 -0
- package/dist/frontend-ssr/assets/FolderTreeSelector-DZNZ2oI6.js +147 -0
- package/dist/frontend-ssr/assets/HiaiDocsExtensionProvider-DAM-lX4R.js +13 -0
- package/dist/frontend-ssr/assets/Icon-B0Zqppjo.js +231 -0
- package/dist/frontend-ssr/assets/SettingsDialog-B8L_YqNA.js +1107 -0
- package/dist/frontend-ssr/assets/ShareDialog-vMvJLRfn.js +54 -0
- package/dist/frontend-ssr/assets/Sidebar-EHuUAx3W.js +2033 -0
- package/dist/frontend-ssr/assets/TagCreateDialog-B0DPEfmQ.js +264 -0
- package/dist/frontend-ssr/assets/api-keys-DFqX39MT.js +35 -0
- package/dist/frontend-ssr/assets/attachments-CWBxE3Vz.js +85 -0
- package/dist/frontend-ssr/assets/auth-client-x26kqY8Z.js +1286 -0
- package/dist/frontend-ssr/assets/camera-CdxscTw-.js +84 -0
- package/dist/frontend-ssr/assets/categories-AOqgcsn4.js +75 -0
- package/dist/frontend-ssr/assets/chevron-down-CSSNGNh_.js +80 -0
- package/dist/frontend-ssr/assets/chevron-right-B4p7Sk6X.js +80 -0
- package/dist/frontend-ssr/assets/circle-check-CI1v4vYh.js +84 -0
- package/dist/frontend-ssr/assets/client-DZMkDkDn.js +129 -0
- package/dist/frontend-ssr/assets/clipboard-CXOaoz2W.js +30 -0
- package/dist/frontend-ssr/assets/clock-IL-eX2di.js +84 -0
- package/dist/frontend-ssr/assets/confirm-dialog-BCthVwUY.js +429 -0
- package/dist/frontend-ssr/assets/context-jz1GGEUi.js +45 -0
- package/dist/frontend-ssr/assets/copy-CjV57nGQ.js +87 -0
- package/dist/frontend-ssr/assets/db-CnxeO66n.js +65 -0
- package/dist/frontend-ssr/assets/dialog-BOV1u6zP.js +157 -0
- package/dist/frontend-ssr/assets/dndzone-DMvTO_Jz.js +2114 -0
- package/dist/frontend-ssr/assets/document-drop-coordinator-CEaYACsC.js +109 -0
- package/dist/frontend-ssr/assets/documents-BnOTRdTY.js +108 -0
- package/dist/frontend-ssr/assets/dropdown-menu-Bj5rbqbB.js +555 -0
- package/dist/frontend-ssr/assets/editorExtensions-DUzwndMy.js +186 -0
- package/dist/frontend-ssr/assets/floating-layer-anchor-CYIE8Oj6.js +6114 -0
- package/dist/frontend-ssr/assets/folder-DChhG7qN.js +80 -0
- package/dist/frontend-ssr/assets/folders-CTfbS24J.js +127 -0
- package/dist/frontend-ssr/assets/identity-B3uHoDtf.js +99 -0
- package/dist/frontend-ssr/assets/input-DezGsU3y.js +19 -0
- package/dist/frontend-ssr/assets/keyboard.svelte-BgF47N3L.js +174 -0
- package/dist/frontend-ssr/assets/label-Bj8-TfFN.js +21 -0
- package/dist/frontend-ssr/assets/loader-circle-DZsrZ-er.js +80 -0
- package/dist/frontend-ssr/assets/markdown-CjqvGi5W.js +20 -0
- package/dist/frontend-ssr/assets/messages-CvqpZNJe.js +11125 -0
- package/dist/frontend-ssr/assets/resolve-BqHozBXl.js +32 -0
- package/dist/frontend-ssr/assets/rotate-ccw-BlgWwaiq.js +80 -0
- package/dist/frontend-ssr/assets/select-value-6Lk0ToYd.js +1526 -0
- package/dist/frontend-ssr/assets/settings-Bk5Hk9Vq.js +64 -0
- package/dist/frontend-ssr/assets/share-BTBJelxA.js +30 -0
- package/dist/frontend-ssr/assets/subfolders-refresh-store.svelte-DAh4gT16.js +77 -0
- package/dist/frontend-ssr/assets/tag-GZEuGWk1.js +166 -0
- package/dist/frontend-ssr/assets/tag-store.svelte-DPodKj6Z.js +21 -0
- package/dist/frontend-ssr/assets/tags-BId2wdYd.js +49 -0
- package/dist/frontend-ssr/assets/textarea-Dev-qSEc.js +21 -0
- package/dist/frontend-ssr/assets/theme.svelte-Co0-ssaD.js +67 -0
- package/dist/frontend-ssr/assets/utils-DtlPPXpJ.js +9 -0
- package/dist/frontend-ssr/assets/utils-DvZnctjz.js +23 -0
- package/dist/frontend-ssr/collaboration.js +39 -0
- package/dist/frontend-ssr/components/category-dialog.js +2 -0
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +2 -0
- package/dist/frontend-ssr/components/delete-dialog.js +2 -0
- package/dist/frontend-ssr/components/editor/document-editor.js +2499 -0
- package/dist/frontend-ssr/components/editor/document-title.js +11 -0
- package/dist/frontend-ssr/components/editor/docx-serializer.js +186 -0
- package/dist/frontend-ssr/components/editor/extensions.js +2 -0
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +20 -0
- package/dist/frontend-ssr/components/editor/markdown.js +2 -0
- package/dist/frontend-ssr/components/folder-node.js +2 -0
- package/dist/frontend-ssr/components/folder-tree-selector.js +2 -0
- package/dist/frontend-ssr/components/save-as-dialog.js +280 -0
- package/dist/frontend-ssr/components/settings.js +2 -0
- package/dist/frontend-ssr/components/share-dialog.js +2 -0
- package/dist/frontend-ssr/components/sidebar.js +2 -0
- package/dist/frontend-ssr/components/tag-create-dialog.js +2 -0
- package/dist/frontend-ssr/components/version-history.js +370 -0
- package/dist/frontend-ssr/dashboard.js +2542 -0
- package/dist/frontend-ssr/doc-tabs.js +23 -0
- package/dist/frontend-ssr/document-drop-coordinator.js +2 -0
- package/dist/frontend-ssr/extension.js +2 -0
- package/dist/frontend-ssr/folder-refresh.js +2 -0
- package/dist/frontend-ssr/i18n.js +10 -0
- package/dist/frontend-ssr/keyboard.js +2 -0
- package/dist/frontend-ssr/offline/identity.js +2 -0
- package/dist/frontend-ssr/search.js +332 -0
- package/dist/frontend-ssr/shared-document.js +273 -0
- package/dist/frontend-ssr/theme.js +9 -0
- package/dist/frontend-ssr/types.js +1 -0
- package/dist/frontend-ssr/utils/clipboard.js +2 -0
- package/dist/frontend-ssr/utils/dndzone.js +2 -0
- package/dist/frontend-ssr/utils.js +2 -0
- package/package.json +28 -1
- package/packages/cli/src/index.ts +1 -1
- package/packages/db/src/schema.ts +3 -0
- package/packages/mcp-server/src/index.ts +1 -1
- package/dist/frontend/CategoryDialog--rIE7FrH.js +0 -580
- package/dist/frontend/ConfirmDialog-Cpzyb55f.js +0 -212
- package/dist/frontend/CreateSnapshotDialog-CmkV-n2A.js +0 -216
- package/dist/frontend/DatePicker-Byynca7V.js +0 -257
- package/dist/frontend/DeleteDialog-ap6nOywZ.js +0 -174
- package/dist/frontend/FolderDialog-DmN_trV0.js +0 -247
- package/dist/frontend/FolderNode-C4B8a2fd.js +0 -317
- package/dist/frontend/FolderTreeSelector-D6ijiZTA.js +0 -100
- package/dist/frontend/Icon-DtNo0N1U.js +0 -64
- package/dist/frontend/SettingsDialog-2kTaTXAs.js +0 -992
- package/dist/frontend/ShareDialog-BBDGNF5n.js +0 -165
- package/dist/frontend/TagCreateDialog-DiLZnJo4.js +0 -258
- package/dist/frontend/camera-B7dAOd4s.js +0 -28
- package/dist/frontend/check-CDwRlG9T.js +0 -24
- package/dist/frontend/chevron-down-B7ZrjUmT.js +0 -24
- package/dist/frontend/circle-check-CDqeMB2d.js +0 -28
- package/dist/frontend/client-Bc5Fzx40.js +0 -2785
- package/dist/frontend/clock-Ck5Sn-Zl.js +0 -28
- package/dist/frontend/clsx-nmtDPO_P.js +0 -16
- package/dist/frontend/copy-CMAA6GP0.js +0 -31
- package/dist/frontend/dialog-BDkiG42a.js +0 -213
- package/dist/frontend/disclose-version-5I57E3LD.js +0 -3
- package/dist/frontend/ellipsis-vertical-BBuPldbW.js +0 -519
- package/dist/frontend/folder-TQjKY4yn.js +0 -44
- package/dist/frontend/index-client-jobkrWVL.js +0 -86
- package/dist/frontend/input-CBI6p4Xl.js +0 -23
- package/dist/frontend/label-C-GkhEp4.js +0 -30
- package/dist/frontend/rotate-ccw-CleZtJ5D.js +0 -24
- package/dist/frontend/select-value-CvrWRkXW.js +0 -1436
- package/dist/frontend/subfolders-refresh-store.svelte-BsheoQma.js +0 -65
- package/dist/frontend/tag-Dx3SmucJ.js +0 -53
- package/dist/frontend/tag-store.svelte-CIaF4sdZ.js +0 -29
- package/dist/frontend/textarea-Dfp78XlL.js +0 -23
- package/dist/frontend/theme.svelte-CROg1Hi5.js +0 -49
- package/dist/frontend/x-DaTdeDXv.js +0 -24
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { n as e } from "./dist-C3857Spp.js";
|
|
2
|
+
import { $n as t, Jn as n, ar as r, ei as i, ni as a, nr as o, rr as s, ti as c } from "./messages-C5Q890i2.js";
|
|
3
|
+
import { t as l } from "./utils-DrfHTcei.js";
|
|
4
|
+
import { a as u, i as d, n as f, o as p, r as m, t as h } from "./dialog-Bevp9mmM.js";
|
|
5
|
+
import { t as g } from "./input-BWlOML_m.js";
|
|
6
|
+
import { t as _ } from "./label-C2HfJNQ2.js";
|
|
7
|
+
import { c as v, l as y, n as b, r as x } from "./tags-CtCV0Djo.js";
|
|
8
|
+
import "svelte/internal/disclose-version";
|
|
9
|
+
import * as S from "svelte/internal/client";
|
|
10
|
+
//#region src/lib/components/TagCreateDialog.svelte
|
|
11
|
+
var C = S.from_html("<!> <!>", 1), w = S.from_html("<p id=\"tag-name-error\" class=\"text-xs text-destructive\"> </p>"), T = S.from_html("<button type=\"button\"></button>"), E = S.from_html("<p class=\"text-xs text-destructive\" role=\"alert\"> </p>"), D = S.from_html("<!> ", 1), O = S.from_html("<!> <form class=\"space-y-4\"><div class=\"space-y-2\"><!> <!> <!></div> <div class=\"space-y-2\"><!> <div id=\"tag-color\" class=\"flex flex-wrap gap-2\"><!> <label title=\"Custom color\"><input type=\"color\" class=\"absolute inset-0 h-full w-full cursor-pointer opacity-0\" aria-label=\"Custom color\"/></label></div></div> <!></form> <!>", 1);
|
|
12
|
+
function k(k, A) {
|
|
13
|
+
S.push(A, !0);
|
|
14
|
+
let j = [
|
|
15
|
+
"#ef4444",
|
|
16
|
+
"#f97316",
|
|
17
|
+
"#f59e0b",
|
|
18
|
+
"#eab308",
|
|
19
|
+
"#84cc16",
|
|
20
|
+
"#22c55e",
|
|
21
|
+
"#10b981",
|
|
22
|
+
"#06b6d4",
|
|
23
|
+
"#3b82f6",
|
|
24
|
+
"#8b5cf6",
|
|
25
|
+
"#ec4899"
|
|
26
|
+
], M = j[9], N = S.prop(A, "open", 15, !1), P = S.prop(A, "mode", 3, "create"), F = S.prop(A, "tag", 3, null), I = S.state(""), L = S.state(S.proxy(M)), R = S.state(null), z = S.state(null), B = S.state(!1), V = S.derived(() => P() === "edit"), H = S.derived(() => S.get(V) ? c() : a()), U = S.derived(() => S.get(B) ? n() : S.get(V) ? s() : t());
|
|
27
|
+
function W() {
|
|
28
|
+
S.set(I, ""), S.set(L, M, !0), S.set(R, null), S.set(z, null), S.set(B, !1);
|
|
29
|
+
}
|
|
30
|
+
function G(e) {
|
|
31
|
+
if (!e) {
|
|
32
|
+
W();
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
S.set(I, e.name, !0), S.set(L, e.color ?? M, !0), S.set(R, null), S.set(z, null), S.set(B, !1);
|
|
36
|
+
}
|
|
37
|
+
function K() {
|
|
38
|
+
N(!1), W(), A.onClose?.();
|
|
39
|
+
}
|
|
40
|
+
function q(e) {
|
|
41
|
+
e ? G(F()) : (W(), N(!1), A.onClose?.());
|
|
42
|
+
}
|
|
43
|
+
function J(e) {
|
|
44
|
+
e.preventDefault(), S.set(R, null), S.set(z, null);
|
|
45
|
+
let t = S.get(I).trim();
|
|
46
|
+
if (t.length === 0) {
|
|
47
|
+
S.set(R, i(), !0);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (S.get(V) && F()) {
|
|
51
|
+
let e = y.safeParse({
|
|
52
|
+
name: t,
|
|
53
|
+
color: S.get(L)
|
|
54
|
+
});
|
|
55
|
+
if (!e.success) {
|
|
56
|
+
let t = e.error.issues[0];
|
|
57
|
+
S.set(R, t?.message ?? r(), !0);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
X(F().id, e.data);
|
|
61
|
+
} else {
|
|
62
|
+
let e = x.safeParse({
|
|
63
|
+
name: t,
|
|
64
|
+
color: S.get(L)
|
|
65
|
+
});
|
|
66
|
+
if (!e.success) {
|
|
67
|
+
let t = e.error.issues[0];
|
|
68
|
+
S.set(R, t?.message ?? r(), !0);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
Y(e.data.name, S.get(L));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
async function Y(e, t) {
|
|
75
|
+
S.set(B, !0);
|
|
76
|
+
try {
|
|
77
|
+
let n = await b(e, t);
|
|
78
|
+
A.onCreated?.(n), K();
|
|
79
|
+
} catch (e) {
|
|
80
|
+
S.set(z, e instanceof Error ? e.message : r(), !0), console.error("TagCreateDialog: createTag failed", e);
|
|
81
|
+
} finally {
|
|
82
|
+
S.set(B, !1);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
async function X(e, t) {
|
|
86
|
+
S.set(B, !0);
|
|
87
|
+
try {
|
|
88
|
+
let n = await v(e, t);
|
|
89
|
+
A.onUpdated?.(n), K();
|
|
90
|
+
} catch (e) {
|
|
91
|
+
S.set(z, e instanceof Error ? e.message : r(), !0), console.error("TagCreateDialog: updateTag failed", e);
|
|
92
|
+
} finally {
|
|
93
|
+
S.set(B, !1);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function Z(e) {
|
|
97
|
+
e.key === "Enter" && !S.get(B) && (e.preventDefault(), J(new Event("submit")));
|
|
98
|
+
}
|
|
99
|
+
S.user_effect(() => {
|
|
100
|
+
N() && P() === "edit" && F() && (S.set(I, F().name, !0), S.set(L, F().color ?? M, !0), S.set(R, null), S.set(z, null));
|
|
101
|
+
}), u(k, {
|
|
102
|
+
onOpenChange: q,
|
|
103
|
+
get open() {
|
|
104
|
+
return N();
|
|
105
|
+
},
|
|
106
|
+
set open(e) {
|
|
107
|
+
N(e);
|
|
108
|
+
},
|
|
109
|
+
children: (t, n) => {
|
|
110
|
+
var r = O(), a = S.first_child(r);
|
|
111
|
+
f(a, {
|
|
112
|
+
children: (e, t) => {
|
|
113
|
+
var n = C(), r = S.first_child(n);
|
|
114
|
+
h(r, {
|
|
115
|
+
children: (e, t) => {
|
|
116
|
+
S.next();
|
|
117
|
+
var n = S.text();
|
|
118
|
+
S.template_effect(() => S.set_text(n, S.get(H))), S.append(e, n);
|
|
119
|
+
},
|
|
120
|
+
$$slots: { default: !0 }
|
|
121
|
+
}), d(S.sibling(r, 2), {
|
|
122
|
+
children: (e, t) => {
|
|
123
|
+
S.next();
|
|
124
|
+
var n = S.text();
|
|
125
|
+
S.template_effect((e) => S.set_text(n, e), [() => i()]), S.append(e, n);
|
|
126
|
+
},
|
|
127
|
+
$$slots: { default: !0 }
|
|
128
|
+
}), S.append(e, n);
|
|
129
|
+
},
|
|
130
|
+
$$slots: { default: !0 }
|
|
131
|
+
});
|
|
132
|
+
var s = S.sibling(a, 2), c = S.child(s), u = S.child(c);
|
|
133
|
+
_(u, {
|
|
134
|
+
for: "tag-name",
|
|
135
|
+
class: "sr-only",
|
|
136
|
+
children: (e, t) => {
|
|
137
|
+
S.next();
|
|
138
|
+
var n = S.text();
|
|
139
|
+
S.template_effect((e) => S.set_text(n, e), [() => i()]), S.append(e, n);
|
|
140
|
+
},
|
|
141
|
+
$$slots: { default: !0 }
|
|
142
|
+
});
|
|
143
|
+
var v = S.sibling(u, 2);
|
|
144
|
+
{
|
|
145
|
+
let e = S.derived(() => i()), t = S.derived(() => S.get(R) ? "true" : void 0), n = S.derived(() => S.get(R) ? "tag-name-error" : void 0);
|
|
146
|
+
g(v, {
|
|
147
|
+
id: "tag-name",
|
|
148
|
+
name: "name",
|
|
149
|
+
type: "text",
|
|
150
|
+
get placeholder() {
|
|
151
|
+
return S.get(e);
|
|
152
|
+
},
|
|
153
|
+
maxlength: 50,
|
|
154
|
+
required: !0,
|
|
155
|
+
get disabled() {
|
|
156
|
+
return S.get(B);
|
|
157
|
+
},
|
|
158
|
+
get "aria-invalid"() {
|
|
159
|
+
return S.get(t);
|
|
160
|
+
},
|
|
161
|
+
get "aria-describedby"() {
|
|
162
|
+
return S.get(n);
|
|
163
|
+
},
|
|
164
|
+
autocomplete: "off",
|
|
165
|
+
onkeydown: Z,
|
|
166
|
+
get value() {
|
|
167
|
+
return S.get(I);
|
|
168
|
+
},
|
|
169
|
+
set value(e) {
|
|
170
|
+
S.set(I, e, !0);
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
var y = S.sibling(v, 2), b = (e) => {
|
|
175
|
+
var t = w(), n = S.child(t, !0);
|
|
176
|
+
S.reset(t), S.template_effect(() => S.set_text(n, S.get(R))), S.append(e, t);
|
|
177
|
+
};
|
|
178
|
+
S.if(y, (e) => {
|
|
179
|
+
S.get(R) && e(b);
|
|
180
|
+
}), S.reset(c);
|
|
181
|
+
var x = S.sibling(c, 2), k = S.child(x);
|
|
182
|
+
_(k, {
|
|
183
|
+
for: "tag-color",
|
|
184
|
+
class: "text-xs text-muted-foreground",
|
|
185
|
+
children: (e, t) => {
|
|
186
|
+
S.next();
|
|
187
|
+
var n = S.text("Color");
|
|
188
|
+
S.append(e, n);
|
|
189
|
+
},
|
|
190
|
+
$$slots: { default: !0 }
|
|
191
|
+
});
|
|
192
|
+
var A = S.sibling(k, 2), M = S.child(A);
|
|
193
|
+
S.each(M, 16, () => j, (e) => e, (e, t) => {
|
|
194
|
+
let n = S.derived(() => S.get(L) === t);
|
|
195
|
+
var r = T();
|
|
196
|
+
S.template_effect((e) => {
|
|
197
|
+
S.set_class(r, 1, e), S.set_style(r, `background-color: ${t ?? ""};`), S.set_attribute(r, "aria-label", `Color ${t ?? ""}`), S.set_attribute(r, "aria-pressed", S.get(n)), r.disabled = S.get(B);
|
|
198
|
+
}, [() => S.clsx(l("size-6 shrink-0 rounded-full border-2 transition-all", S.get(n) ? "scale-110 border-foreground" : "border-transparent hover:scale-105"))]), S.delegated("click", r, () => S.set(L, t, !0)), S.append(e, r);
|
|
199
|
+
});
|
|
200
|
+
var N = S.sibling(M, 2), P = S.child(N);
|
|
201
|
+
S.remove_input_defaults(P), S.reset(N), S.reset(A), S.reset(x);
|
|
202
|
+
var F = S.sibling(x, 2), V = (e) => {
|
|
203
|
+
var t = E(), n = S.child(t, !0);
|
|
204
|
+
S.reset(t), S.template_effect(() => S.set_text(n, S.get(z))), S.append(e, t);
|
|
205
|
+
};
|
|
206
|
+
S.if(F, (e) => {
|
|
207
|
+
S.get(z) && e(V);
|
|
208
|
+
}), S.reset(s), m(S.sibling(s, 2), {
|
|
209
|
+
class: "gap-2 max-sm:flex-col max-sm:items-stretch",
|
|
210
|
+
children: (t, n) => {
|
|
211
|
+
var r = C(), i = S.first_child(r);
|
|
212
|
+
p(i, {
|
|
213
|
+
variant: "outline",
|
|
214
|
+
type: "button",
|
|
215
|
+
onclick: K,
|
|
216
|
+
get disabled() {
|
|
217
|
+
return S.get(B);
|
|
218
|
+
},
|
|
219
|
+
children: (e, t) => {
|
|
220
|
+
S.next();
|
|
221
|
+
var n = S.text();
|
|
222
|
+
S.template_effect((e) => S.set_text(n, e), [() => o()]), S.append(e, n);
|
|
223
|
+
},
|
|
224
|
+
$$slots: { default: !0 }
|
|
225
|
+
});
|
|
226
|
+
var a = S.sibling(i, 2);
|
|
227
|
+
{
|
|
228
|
+
let t = S.derived(() => S.get(B) || S.get(I).trim().length === 0);
|
|
229
|
+
p(a, {
|
|
230
|
+
type: "submit",
|
|
231
|
+
onclick: J,
|
|
232
|
+
get disabled() {
|
|
233
|
+
return S.get(t);
|
|
234
|
+
},
|
|
235
|
+
children: (t, n) => {
|
|
236
|
+
var r = D(), i = S.first_child(r), a = (t) => {
|
|
237
|
+
e(t, { class: "mr-1 size-4 animate-spin" });
|
|
238
|
+
};
|
|
239
|
+
S.if(i, (e) => {
|
|
240
|
+
S.get(B) && e(a);
|
|
241
|
+
});
|
|
242
|
+
var o = S.sibling(i);
|
|
243
|
+
S.template_effect(() => S.set_text(o, ` ${S.get(U) ?? ""}`)), S.append(t, r);
|
|
244
|
+
},
|
|
245
|
+
$$slots: { default: !0 }
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
S.append(t, r);
|
|
249
|
+
},
|
|
250
|
+
$$slots: { default: !0 }
|
|
251
|
+
}), S.template_effect((e) => {
|
|
252
|
+
S.set_class(N, 1, e), S.set_style(N, `background-color: ${S.get(L) ?? ""};`), S.set_value(P, S.get(L)), P.disabled = S.get(B);
|
|
253
|
+
}, [() => S.clsx(l("relative inline-flex size-6 shrink-0 cursor-pointer items-center justify-center overflow-hidden rounded-full border-2 transition-all", j.includes(S.get(L)) ? "border-transparent hover:scale-105" : "scale-110 border-foreground"))]), S.event("submit", s, J), S.delegated("input", P, (e) => S.set(L, e.currentTarget.value, !0)), S.append(t, r);
|
|
254
|
+
},
|
|
255
|
+
$$slots: { default: !0 }
|
|
256
|
+
}), S.pop();
|
|
257
|
+
}
|
|
258
|
+
S.delegate(["click", "input"]);
|
|
259
|
+
//#endregion
|
|
260
|
+
export { k as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "../settings-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "../settings-DSrUl4hW.js";
|
|
2
2
|
export { i as deleteAccount, n as getEmbeddingConfig, r as getProfile, t as updateEmbeddingConfig, e as updateProfile };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Component, Snippet } from "svelte";
|
|
2
|
+
export interface DocsmintRouteAdapter {
|
|
3
|
+
pathname: string;
|
|
4
|
+
resolve(path: string): string;
|
|
5
|
+
navigate?(path: string): void | Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export interface DocsmintAppShellHostProps { route: DocsmintRouteAdapter; extensions?: Record<string, unknown>; children: Snippet; }
|
|
8
|
+
export declare const DocsmintAppShellHost: Component<DocsmintAppShellHostProps>;
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { t as e } from "./Icon-CooFj4Ee.js";
|
|
2
|
+
import { n as t, r as n } from "./SettingsDialog-BHh68rTB.js";
|
|
3
|
+
import { t as r } from "./Sidebar-Cu3JrKDC.js";
|
|
4
|
+
import { E as i } from "./messages-C5Q890i2.js";
|
|
5
|
+
import { t as a } from "./HiaiDocsExtensionProvider-DHWLzRUu.js";
|
|
6
|
+
import "svelte/internal/disclose-version";
|
|
7
|
+
import * as o from "svelte/internal/client";
|
|
8
|
+
import "svelte/internal/flags/legacy";
|
|
9
|
+
import { onDestroy as s } from "svelte";
|
|
10
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/arrow-up.svelte
|
|
11
|
+
function c(t, n) {
|
|
12
|
+
let r = o.legacy_rest_props(n, [
|
|
13
|
+
"children",
|
|
14
|
+
"$$slots",
|
|
15
|
+
"$$events",
|
|
16
|
+
"$$legacy"
|
|
17
|
+
]), i = [["path", { d: "m5 12 7-7 7 7" }], ["path", { d: "M12 19V5" }]];
|
|
18
|
+
e(t, o.spread_props({ name: "arrow-up" }, () => r, {
|
|
19
|
+
get iconNode() {
|
|
20
|
+
return i;
|
|
21
|
+
},
|
|
22
|
+
children: (e, t) => {
|
|
23
|
+
var r = o.comment(), i = o.first_child(r);
|
|
24
|
+
o.slot(i, n, "default", {}, null), o.append(e, r);
|
|
25
|
+
},
|
|
26
|
+
$$slots: { default: !0 }
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/menu.svelte
|
|
31
|
+
function l(t, n) {
|
|
32
|
+
let r = o.legacy_rest_props(n, [
|
|
33
|
+
"children",
|
|
34
|
+
"$$slots",
|
|
35
|
+
"$$events",
|
|
36
|
+
"$$legacy"
|
|
37
|
+
]), i = [
|
|
38
|
+
["path", { d: "M4 5h16" }],
|
|
39
|
+
["path", { d: "M4 12h16" }],
|
|
40
|
+
["path", { d: "M4 19h16" }]
|
|
41
|
+
];
|
|
42
|
+
e(t, o.spread_props({ name: "menu" }, () => r, {
|
|
43
|
+
get iconNode() {
|
|
44
|
+
return i;
|
|
45
|
+
},
|
|
46
|
+
children: (e, t) => {
|
|
47
|
+
var r = o.comment(), i = o.first_child(r);
|
|
48
|
+
o.slot(i, n, "default", {}, null), o.append(e, r);
|
|
49
|
+
},
|
|
50
|
+
$$slots: { default: !0 }
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/lib/stores/mobile-sidebar.svelte.ts
|
|
55
|
+
var u = o.state(!1), d = {
|
|
56
|
+
get open() {
|
|
57
|
+
return o.get(u);
|
|
58
|
+
},
|
|
59
|
+
set open(e) {
|
|
60
|
+
o.set(u, e, !0);
|
|
61
|
+
},
|
|
62
|
+
toggle() {
|
|
63
|
+
o.set(u, !o.get(u));
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
function f() {
|
|
67
|
+
o.set(u, !1);
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/lib/components/MobileSidebarToggle.svelte
|
|
71
|
+
var p = o.from_html("<button type=\"button\" class=\"mobile-sidebar-toggle fixed left-3 top-3 flex size-11 items-center justify-center rounded-md border border-border bg-background text-foreground shadow-sm transition-colors hover:bg-accent md:hidden\" style=\"top: calc(0.75rem + env(safe-area-inset-top));\"><!></button>");
|
|
72
|
+
function m(e, t) {
|
|
73
|
+
o.push(t, !0);
|
|
74
|
+
let n = o.prop(t, "buttonRef", 15, null), r = o.prop(t, "controls", 3, "mobile-navigation"), i = o.state(!1);
|
|
75
|
+
function a() {
|
|
76
|
+
let e = Array.from(document.querySelectorAll("[role=\"dialog\"][aria-modal=\"true\"]"));
|
|
77
|
+
o.set(i, e.length > 0), document.documentElement.classList.toggle("nested-sidebar-modal-open", e.some((e) => e.tagName !== "ASIDE"));
|
|
78
|
+
}
|
|
79
|
+
o.user_effect(() => {
|
|
80
|
+
if (typeof document > "u") return;
|
|
81
|
+
let e = new MutationObserver(a);
|
|
82
|
+
return e.observe(document.body, {
|
|
83
|
+
childList: !0,
|
|
84
|
+
subtree: !0,
|
|
85
|
+
attributes: !0,
|
|
86
|
+
attributeFilter: ["role", "aria-modal"]
|
|
87
|
+
}), a(), () => {
|
|
88
|
+
e.disconnect(), document.documentElement.classList.remove("nested-sidebar-modal-open");
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
function s() {
|
|
92
|
+
d.toggle();
|
|
93
|
+
}
|
|
94
|
+
var c = o.comment(), u = o.first_child(c), f = (e) => {
|
|
95
|
+
var t = p();
|
|
96
|
+
l(o.child(t), { class: "size-5" }), o.reset(t), o.bind_this(t, (e) => n(e), () => n()), o.template_effect(() => {
|
|
97
|
+
o.set_attribute(t, "aria-label", d.open ? "Close navigation menu" : "Open navigation menu"), o.set_attribute(t, "aria-expanded", d.open), o.set_attribute(t, "aria-controls", r());
|
|
98
|
+
}), o.delegated("click", t, s), o.append(e, t);
|
|
99
|
+
};
|
|
100
|
+
o.if(u, (e) => {
|
|
101
|
+
o.get(i) || e(f);
|
|
102
|
+
}), o.append(e, c), o.pop();
|
|
103
|
+
}
|
|
104
|
+
o.delegate(["click"]);
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/lib/components/ScrollToTop.svelte
|
|
107
|
+
var h = o.from_html("<button type=\"button\"><!></button>");
|
|
108
|
+
function g(e, t) {
|
|
109
|
+
o.push(t, !0);
|
|
110
|
+
let n = o.prop(t, "avoidEditorToolbar", 3, !1), r = o.state(!1), a = null, l = o.state("none"), u = o.state(void 0);
|
|
111
|
+
function d() {
|
|
112
|
+
o.set(r, (a ? a.scrollTop : window.scrollY) > 300);
|
|
113
|
+
}
|
|
114
|
+
function f() {
|
|
115
|
+
a ? a.scrollTo({
|
|
116
|
+
top: 0,
|
|
117
|
+
behavior: "smooth"
|
|
118
|
+
}) : window.scrollTo({
|
|
119
|
+
top: 0,
|
|
120
|
+
behavior: "smooth"
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function p(e) {
|
|
124
|
+
m(), e && (a = e, e.addEventListener("scroll", d, { passive: !0 }), d());
|
|
125
|
+
}
|
|
126
|
+
function m() {
|
|
127
|
+
a && a.removeEventListener("scroll", d), a = null;
|
|
128
|
+
}
|
|
129
|
+
o.user_effect(() => {
|
|
130
|
+
let e = t.scrollTarget;
|
|
131
|
+
return p(e), e ? () => {
|
|
132
|
+
m();
|
|
133
|
+
} : (window.addEventListener("scroll", d, { passive: !0 }), d(), () => {
|
|
134
|
+
window.removeEventListener("scroll", d);
|
|
135
|
+
});
|
|
136
|
+
}), s(() => {
|
|
137
|
+
m(), o.set(r, !1);
|
|
138
|
+
}), o.user_effect(() => {
|
|
139
|
+
if (!n() || typeof document > "u") {
|
|
140
|
+
o.set(l, "none"), o.set(u, void 0);
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
let e = () => {
|
|
144
|
+
let e = document.querySelector(".toolbar.floating-bar");
|
|
145
|
+
if (e) {
|
|
146
|
+
let t = e.getBoundingClientRect();
|
|
147
|
+
o.set(l, "toolbar"), o.set(u, `${Math.max(0, window.innerHeight - t.top + 12)}px`);
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
let t = document.querySelector(".floating-fab");
|
|
151
|
+
if (t) {
|
|
152
|
+
let e = t.getBoundingClientRect();
|
|
153
|
+
o.set(l, "fab"), o.set(u, `${Math.max(12, window.innerHeight - e.bottom - 12 - 40)}px`);
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
o.set(l, "none"), o.set(u, void 0);
|
|
157
|
+
}, t = new MutationObserver(e);
|
|
158
|
+
t.observe(document.body, {
|
|
159
|
+
childList: !0,
|
|
160
|
+
subtree: !0,
|
|
161
|
+
attributes: !0,
|
|
162
|
+
attributeFilter: ["class"]
|
|
163
|
+
});
|
|
164
|
+
let r = new ResizeObserver(e);
|
|
165
|
+
return r.observe(document.body), window.addEventListener("resize", e, { passive: !0 }), e(), () => {
|
|
166
|
+
t.disconnect(), r.disconnect(), window.removeEventListener("resize", e);
|
|
167
|
+
};
|
|
168
|
+
});
|
|
169
|
+
var g = h();
|
|
170
|
+
let _, v;
|
|
171
|
+
c(o.child(g), { class: "size-5" }), o.reset(g), o.template_effect((e, t) => {
|
|
172
|
+
_ = o.set_class(g, 1, `scroll-to-top fixed bottom-6 right-6 z-50 inline-flex size-10 items-center justify-center rounded-full border border-border bg-card text-muted-foreground shadow-md transition-all hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${o.get(r) ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none"}`, null, _, {
|
|
173
|
+
"above-editor-toolbar": o.get(l) === "toolbar",
|
|
174
|
+
"below-editor-fab": o.get(l) === "fab"
|
|
175
|
+
}), o.set_attribute(g, "aria-label", e), o.set_attribute(g, "title", t), v = o.set_style(g, "", v, { bottom: o.get(u) });
|
|
176
|
+
}, [() => i(), () => i()]), o.delegated("click", g, f), o.append(e, g), o.pop();
|
|
177
|
+
}
|
|
178
|
+
o.delegate(["click"]);
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/lib/hosts/DocsmintAppShellHost.svelte
|
|
181
|
+
var _ = o.from_html("<button type=\"button\" tabindex=\"-1\" aria-label=\"Close navigation menu\" class=\"fixed inset-0 z-40 bg-black/50\"></button>"), v = o.from_html("<div class=\"flex h-screen\" data-docsmint-app-shell-host=\"\"><!> <main id=\"main-content\" class=\"relative z-0 flex-1 overflow-auto\"><!></main></div> <!> <!>", 1), y = o.from_html("<!> <!>", 1);
|
|
182
|
+
function b(e, i) {
|
|
183
|
+
o.push(i, !0);
|
|
184
|
+
let s = o.prop(i, "extensions", 19, () => ({}));
|
|
185
|
+
n.init(), t.init();
|
|
186
|
+
let c = o.state(null), l = o.state(null), u = o.state(null), p = o.state(!1), h = [
|
|
187
|
+
"a[href]",
|
|
188
|
+
"button:not([disabled])",
|
|
189
|
+
"input:not([disabled])",
|
|
190
|
+
"select:not([disabled])",
|
|
191
|
+
"textarea:not([disabled])",
|
|
192
|
+
"[tabindex]:not([tabindex=\"-1\"])"
|
|
193
|
+
].join(",");
|
|
194
|
+
o.user_effect(() => {
|
|
195
|
+
let e = window.matchMedia("(max-width: 767px)"), t = () => {
|
|
196
|
+
o.set(p, e.matches, !0), o.get(p) || f();
|
|
197
|
+
};
|
|
198
|
+
return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
199
|
+
}), o.user_effect(() => {
|
|
200
|
+
i.route.pathname, f();
|
|
201
|
+
}), o.user_effect(() => {
|
|
202
|
+
if (!o.get(p) || !d.open || !o.get(l)) return;
|
|
203
|
+
let e = document.activeElement instanceof HTMLElement ? document.activeElement : o.get(u), t = document.body.style.overflow;
|
|
204
|
+
document.body.style.overflow = "hidden";
|
|
205
|
+
let n = () => Array.from(o.get(l)?.querySelectorAll(h) ?? []).filter((e) => !e.hasAttribute("disabled")), r = (e) => {
|
|
206
|
+
let t = e.target instanceof Element ? e.target.closest("[role=\"dialog\"]") : null;
|
|
207
|
+
if (t && t !== o.get(l)) return;
|
|
208
|
+
if (e.key === "Escape") {
|
|
209
|
+
e.preventDefault(), f();
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
if (e.key !== "Tab") return;
|
|
213
|
+
let r = n(), i = r.at(0), a = r.at(-1);
|
|
214
|
+
if (!i || !a) {
|
|
215
|
+
e.preventDefault(), o.get(l)?.focus();
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
e.shiftKey && document.activeElement === i ? (e.preventDefault(), a.focus()) : !e.shiftKey && document.activeElement === a && (e.preventDefault(), i.focus());
|
|
219
|
+
};
|
|
220
|
+
document.addEventListener("keydown", r);
|
|
221
|
+
let i = requestAnimationFrame(() => {
|
|
222
|
+
(n().at(0) ?? o.get(l))?.focus();
|
|
223
|
+
});
|
|
224
|
+
return () => {
|
|
225
|
+
cancelAnimationFrame(i), document.removeEventListener("keydown", r), document.body.style.overflow = t, e?.isConnected && e.focus();
|
|
226
|
+
};
|
|
227
|
+
});
|
|
228
|
+
var b = y(), x = o.first_child(b);
|
|
229
|
+
a(x, {
|
|
230
|
+
get extensions() {
|
|
231
|
+
return s();
|
|
232
|
+
},
|
|
233
|
+
children: (e, t) => {
|
|
234
|
+
var n = v(), a = o.first_child(n), s = o.child(a);
|
|
235
|
+
r(s, {
|
|
236
|
+
get mobile() {
|
|
237
|
+
return o.get(p);
|
|
238
|
+
},
|
|
239
|
+
get mobileOpen() {
|
|
240
|
+
return d.open;
|
|
241
|
+
},
|
|
242
|
+
get element() {
|
|
243
|
+
return o.get(l);
|
|
244
|
+
},
|
|
245
|
+
set element(e) {
|
|
246
|
+
o.set(l, e, !0);
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
var h = o.sibling(s, 2), g = o.child(h);
|
|
250
|
+
o.snippet(g, () => i.children), o.reset(h), o.bind_this(h, (e) => o.set(c, e), () => o.get(c)), o.reset(a);
|
|
251
|
+
var y = o.sibling(a, 2);
|
|
252
|
+
m(y, {
|
|
253
|
+
get buttonRef() {
|
|
254
|
+
return o.get(u);
|
|
255
|
+
},
|
|
256
|
+
set buttonRef(e) {
|
|
257
|
+
o.set(u, e, !0);
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
var b = o.sibling(y, 2), x = (e) => {
|
|
261
|
+
var t = _();
|
|
262
|
+
o.delegated("click", t, function(...e) {
|
|
263
|
+
f?.apply(this, e);
|
|
264
|
+
}), o.append(e, t);
|
|
265
|
+
};
|
|
266
|
+
o.if(b, (e) => {
|
|
267
|
+
o.get(p) && d.open && e(x);
|
|
268
|
+
}), o.template_effect(() => h.inert = o.get(p) && d.open), o.append(e, n);
|
|
269
|
+
},
|
|
270
|
+
$$slots: { default: !0 }
|
|
271
|
+
});
|
|
272
|
+
var S = o.sibling(x, 2), C = (e) => {
|
|
273
|
+
{
|
|
274
|
+
let t = o.derived(() => i.route.pathname.startsWith("/docs/"));
|
|
275
|
+
g(e, {
|
|
276
|
+
get scrollTarget() {
|
|
277
|
+
return o.get(c);
|
|
278
|
+
},
|
|
279
|
+
get avoidEditorToolbar() {
|
|
280
|
+
return o.get(t);
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
o.if(S, (e) => {
|
|
286
|
+
n.showScrollToTop && e(C);
|
|
287
|
+
}), o.append(e, b), o.pop();
|
|
288
|
+
}
|
|
289
|
+
o.delegate(["click"]);
|
|
290
|
+
//#endregion
|
|
291
|
+
export { b as DocsmintAppShellHost };
|