@hiai-gg/docsmint 0.5.8 → 0.6.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.
Files changed (45) hide show
  1. package/LICENSE +39 -8
  2. package/README.md +67 -43
  3. package/dist/backend/index.js +53 -14
  4. package/dist/client.d.ts +3 -1
  5. package/dist/client.js +2 -0
  6. package/dist/frontend/{CategoryDialog-BYAFjX7E.js → CategoryDialog-CbXBMBZB.js} +3 -3
  7. package/dist/frontend/HiAiEditor-DSVG3GNd.js +2986 -0
  8. package/dist/frontend/SettingsDialog-BDNgf5rv.js +969 -0
  9. package/dist/frontend/ShareDialog-2Mty7hm4.js +258 -0
  10. package/dist/frontend/{Sidebar-B-zCJT9i.js → Sidebar-DX08utdV.js} +15 -15
  11. package/dist/frontend/app-shell.js +122 -65
  12. package/dist/frontend/components/category-dialog.js +1 -1
  13. package/dist/frontend/components/editor/compact-editor.d.ts +3 -0
  14. package/dist/frontend/components/editor/compact-editor.js +36 -0
  15. package/dist/frontend/components/editor/document-editor.js +2 -2986
  16. package/dist/frontend/components/settings.js +1 -1
  17. package/dist/frontend/components/share-dialog.d.ts +2 -1
  18. package/dist/frontend/components/share-dialog.js +1 -1
  19. package/dist/frontend/components/sidebar.js +1 -1
  20. package/dist/frontend/dashboard.js +1 -1
  21. package/dist/frontend/editor-preferences.d.ts +4 -0
  22. package/dist/frontend/editor-preferences.js +2 -0
  23. package/dist/frontend/editor-preferences.svelte-Bt_A9k7n.js +61 -0
  24. package/dist/frontend/frontend.css +1 -1
  25. package/dist/frontend-ssr/app-shell.js +46 -2
  26. package/dist/frontend-ssr/assets/{CategoryDialog-BLxVoynx.js → CategoryDialog-QHEv_9N4.js} +4 -4
  27. package/dist/frontend-ssr/assets/HiAiEditor-CUOJmKzT.js +2358 -0
  28. package/dist/frontend-ssr/assets/{SettingsDialog-DVp0OxPO.js → SettingsDialog-BjJIiVLc.js} +2 -64
  29. package/dist/frontend-ssr/assets/{ShareDialog-BZd28sg-.js → ShareDialog-C9C-XTm4.js} +1 -1
  30. package/dist/frontend-ssr/assets/{Sidebar-CO9LZRPa.js → Sidebar-C2sUfGNk.js} +18 -18
  31. package/dist/frontend-ssr/assets/editor-preferences.svelte-iI5jJM1x.js +65 -0
  32. package/dist/frontend-ssr/components/category-dialog.js +1 -1
  33. package/dist/frontend-ssr/components/editor/compact-editor.js +19 -0
  34. package/dist/frontend-ssr/components/editor/document-editor.js +1 -2357
  35. package/dist/frontend-ssr/components/settings.js +1 -1
  36. package/dist/frontend-ssr/components/share-dialog.js +1 -1
  37. package/dist/frontend-ssr/components/sidebar.js +1 -1
  38. package/dist/frontend-ssr/dashboard.js +1 -1
  39. package/dist/frontend-ssr/editor-preferences.js +2 -0
  40. package/dist/types.d.ts +5 -0
  41. package/package.json +16 -2
  42. package/packages/cli/src/index.ts +1 -1
  43. package/packages/mcp-server/src/index.ts +1 -1
  44. package/dist/frontend/SettingsDialog-CyZSOjLE.js +0 -1024
  45. package/dist/frontend/ShareDialog-BC-Jl6v1.js +0 -257
@@ -0,0 +1,258 @@
1
+ import { $n as e, Ar as t, Br as n, Dr as r, Fr as i, Hr as a, Ir as o, Lr as s, Mr as c, Nr as l, Or as u, Pr as d, Rr as f, Ur as p, Vr as ee, Zn as m, jr as h, kr as g, or as _, zr as v } from "./messages-DIovIZrK.js";
2
+ import { a as y } from "./route-context-DYQlUfzL.js";
3
+ import { a as b, i as x, n as te, r as S, t as ne } from "./select-value-JCAp2PmU.js";
4
+ import { n as C } from "./share-D7JtkC85.js";
5
+ import { h as w, u as T } from "./keyboard.svelte-CApmX0vl.js";
6
+ import { t as E } from "./clipboard-Cgzxc0_R.js";
7
+ import "svelte/internal/disclose-version";
8
+ import * as D from "svelte/internal/client";
9
+ //#region src/lib/components/ShareDialog.svelte
10
+ var re = D.from_html("<label class=\"flex items-start gap-2 text-xs text-muted-foreground\"><input type=\"checkbox\" class=\"mt-0.5\"/> Allow anyone with the password to view. Commenting and editing still require an invited account.</label>"), ie = D.from_html("<input type=\"password\" class=\"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring\"/> <!>", 1), ae = D.from_html("<button> </button>"), oe = D.from_html("<!> <!> <!>", 1), se = D.from_html("<!> <!>", 1), ce = D.from_html("<span class=\"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs\"> <button class=\"text-muted-foreground hover:text-foreground\">&times;</button></span>"), le = D.from_html("<div class=\"flex flex-wrap gap-1.5\"></div>"), ue = D.from_html("<div class=\"space-y-2\"><span class=\"text-sm font-medium\"> </span> <div class=\"flex gap-2\"><input type=\"email\" placeholder=\"guest@email.com\" class=\"flex h-9 flex-1 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring\"/> <!> <button class=\"rounded-md border border-border px-3 py-1.5 text-sm font-medium hover:bg-accent\"> </button></div> <!></div>"), de = D.from_html("<p class=\"text-xs text-destructive\"> </p>"), fe = D.from_html("<div class=\"space-y-4\"><div class=\"grid grid-cols-2 gap-2 rounded-lg bg-muted p-1\" aria-label=\"Share access mode\"><button type=\"button\">Public link</button> <button type=\"button\">Specific people</button></div> <p class=\"rounded-md border border-border bg-muted/40 p-3 text-xs text-muted-foreground\"> </p> <div class=\"flex items-center justify-between\"><span class=\"text-sm font-medium\"> </span> <button role=\"switch\"><span></span></button></div> <!> <div class=\"space-y-2\"><span class=\"text-sm font-medium\"> </span> <div class=\"flex gap-2\"></div></div> <!> <!> <button class=\"w-full rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50\"> </button></div>"), O = D.from_html("<div class=\"space-y-4\"><p class=\"text-sm text-muted-foreground\"> </p> <div data-share-created-url=\"\" class=\"flex min-w-0 flex-col gap-2 sm:flex-row sm:items-center\"><code class=\"min-w-0 flex-1 break-all rounded-md bg-muted px-3 py-2 text-sm\"> </code> <button data-share-copy-action=\"\" class=\"w-full shrink-0 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 sm:w-auto\"> </button></div> <button class=\"w-full rounded-md border border-border px-4 py-2 text-sm font-medium hover:bg-accent\"> </button></div>"), k = D.from_html("<div class=\"fixed inset-0 layer-modal z-[100] flex items-center justify-center\"><button class=\"absolute inset-0 z-[100] bg-black/50\"></button> <div class=\"relative z-[101] w-full max-w-md rounded-lg border border-border bg-background p-6 shadow-lg\" role=\"dialog\" aria-modal=\"true\"><div class=\"mb-4 flex items-center justify-between\"><h2 class=\"text-lg font-semibold\"> </h2> <button class=\"rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-foreground\">&#10005;</button></div> <!></div></div>");
11
+ function A(A, j) {
12
+ D.push(j, !0);
13
+ let M = D.prop(j, "open", 15, !1), N = D.prop(j, "documentId", 3, ""), P = D.prop(j, "documentTitle", 3, ""), F = D.prop(j, "folderId", 3, ""), I = D.prop(j, "folderName", 3, ""), L = D.prop(j, "categoryId", 3, ""), R = D.prop(j, "categoryName", 3, ""), z = D.state(!1), B = D.state("public"), V = D.state(!1), H = D.state(""), U = D.state("7d"), W = D.state(""), G = D.state("viewer"), K = D.state(D.proxy([])), q = D.state(""), J = D.state(!1), Y = D.state(!1), X = D.state(""), pe = y();
14
+ D.user_effect(() => (T({
15
+ id: "share-dialog-escape",
16
+ keys: "escape",
17
+ description: "Close share dialog",
18
+ scope: "dialog",
19
+ enabled: M(),
20
+ overrideInput: !0,
21
+ handler: () => {
22
+ M() && Q();
23
+ }
24
+ }), () => {
25
+ w("share-dialog-escape");
26
+ }));
27
+ function Z() {
28
+ let e = D.get(W).trim();
29
+ e?.includes("@") && !D.get(K).some((t) => t.email === e.toLowerCase()) && (D.set(K, [...D.get(K), {
30
+ email: e.toLowerCase(),
31
+ role: D.get(G)
32
+ }], !0), D.set(W, ""));
33
+ }
34
+ function me(e) {
35
+ D.set(K, D.get(K).filter((t) => t.email !== e), !0);
36
+ }
37
+ async function he() {
38
+ D.set(Y, !0), D.set(X, "");
39
+ try {
40
+ let e = await C({
41
+ documentId: N() || void 0,
42
+ folderId: F() || void 0,
43
+ categoryId: L() || void 0,
44
+ password: D.get(z) ? D.get(H) : void 0,
45
+ expiresIn: D.get(U),
46
+ accessMode: D.get(B),
47
+ allowPasswordFallback: D.get(B) === "restricted" && D.get(z) ? D.get(V) : void 0,
48
+ guests: D.get(B) === "restricted" ? D.get(K) : void 0
49
+ }, pe.fetch);
50
+ D.set(q, `${window.location.origin}/s/${e.token}`), j.onCreated?.({
51
+ token: e.token,
52
+ url: D.get(q),
53
+ accessMode: D.get(B)
54
+ });
55
+ } catch (e) {
56
+ D.set(X, e instanceof Error ? e.message : _(), !0), console.error("ShareDialog: createShareLink failed", e);
57
+ } finally {
58
+ D.set(Y, !1);
59
+ }
60
+ }
61
+ async function ge() {
62
+ D.get(q) && (await E(D.get(q)), D.set(J, !0), setTimeout(() => {
63
+ D.set(J, !1);
64
+ }, 2e3));
65
+ }
66
+ function Q() {
67
+ M(!1), D.set(q, ""), D.set(z, !1), D.set(B, "public"), D.set(V, !1), D.set(H, ""), D.set(U, "7d"), D.set(K, [], !0), D.set(X, "");
68
+ }
69
+ var $ = D.comment(), _e = D.first_child($), ve = (_) => {
70
+ var y = k(), C = D.child(y), w = D.sibling(C, 2), T = D.child(w), E = D.child(T), A = D.child(E);
71
+ D.reset(E);
72
+ var j = D.sibling(E, 2);
73
+ D.reset(T);
74
+ var M = D.sibling(T, 2), N = (e) => {
75
+ var r = fe(), u = D.child(r), p = D.child(u), m = D.sibling(p, 2);
76
+ D.reset(u);
77
+ var g = D.sibling(u, 2), _ = D.child(g, !0);
78
+ D.reset(g);
79
+ var y = D.sibling(g, 2), C = D.child(y), w = D.child(C, !0);
80
+ D.reset(C);
81
+ var T = D.sibling(C, 2), E = D.child(T);
82
+ D.reset(T), D.reset(y);
83
+ var O = D.sibling(y, 2), k = (e) => {
84
+ var t = ie(), n = D.first_child(t);
85
+ D.remove_input_defaults(n);
86
+ var r = D.sibling(n, 2), i = (e) => {
87
+ var t = re(), n = D.child(t);
88
+ D.remove_input_defaults(n), D.next(), D.reset(t), D.bind_checked(n, () => D.get(V), (e) => D.set(V, e)), D.append(e, t);
89
+ };
90
+ D.if(r, (e) => {
91
+ D.get(B) === "restricted" && e(i);
92
+ }), D.template_effect((e) => D.set_attribute(n, "placeholder", e), [() => f()]), D.bind_value(n, () => D.get(H), (e) => D.set(H, e)), D.append(e, t);
93
+ };
94
+ D.if(O, (e) => {
95
+ D.get(z) && e(k);
96
+ });
97
+ var A = D.sibling(O, 2), j = D.child(A), M = D.child(j, !0);
98
+ D.reset(j);
99
+ var N = D.sibling(j, 2);
100
+ D.each(N, 21, () => [
101
+ ["1h", i()],
102
+ ["1d", d()],
103
+ ["7d", l()],
104
+ ["30d", c()],
105
+ ["never", o()]
106
+ ], D.index, (e, t) => {
107
+ var n = D.derived(() => D.to_array(D.get(t), 2));
108
+ let r = () => D.get(n)[0], i = () => D.get(n)[1];
109
+ var a = ae(), o = D.child(a, !0);
110
+ D.reset(a), D.template_effect(() => {
111
+ D.set_class(a, 1, `rounded-md border px-2.5 py-1 text-xs font-medium transition-colors
112
+ ${D.get(U) === r() ? "border-primary bg-primary text-primary-foreground" : "border-border text-muted-foreground hover:bg-accent"}`), D.set_text(o, i());
113
+ }), D.delegated("click", a, () => {
114
+ D.set(U, r(), !0);
115
+ }), D.append(e, a);
116
+ }), D.reset(N), D.reset(A);
117
+ var P = D.sibling(A, 2), F = (e) => {
118
+ var n = ue(), r = D.child(n), i = D.child(r, !0);
119
+ D.reset(r);
120
+ var a = D.sibling(r, 2), o = D.child(a);
121
+ D.remove_input_defaults(o);
122
+ var s = D.sibling(o, 2);
123
+ b(s, {
124
+ type: "single",
125
+ get value() {
126
+ return D.get(G);
127
+ },
128
+ onValueChange: (e) => {
129
+ (e === "viewer" || e === "commenter" || e === "editor") && D.set(G, e, !0);
130
+ },
131
+ children: (e, t) => {
132
+ var n = se(), r = D.first_child(n);
133
+ te(r, {
134
+ class: "h-9 w-32 justify-between px-3 text-sm",
135
+ "aria-label": "Guest role",
136
+ children: (e, t) => {
137
+ ne(e, {
138
+ placeholder: "Role",
139
+ children: (e, t) => {
140
+ D.next();
141
+ var n = D.text();
142
+ D.template_effect(() => D.set_text(n, D.get(G) === "viewer" ? "Viewer" : D.get(G) === "commenter" ? "Commenter" : "Editor")), D.append(e, n);
143
+ },
144
+ $$slots: { default: !0 }
145
+ });
146
+ },
147
+ $$slots: { default: !0 }
148
+ }), x(D.sibling(r, 2), {
149
+ children: (e, t) => {
150
+ var n = oe(), r = D.first_child(n);
151
+ S(r, {
152
+ value: "viewer",
153
+ children: (e, t) => {
154
+ D.next();
155
+ var n = D.text("Viewer");
156
+ D.append(e, n);
157
+ },
158
+ $$slots: { default: !0 }
159
+ });
160
+ var i = D.sibling(r, 2);
161
+ S(i, {
162
+ value: "commenter",
163
+ children: (e, t) => {
164
+ D.next();
165
+ var n = D.text("Commenter");
166
+ D.append(e, n);
167
+ },
168
+ $$slots: { default: !0 }
169
+ }), S(D.sibling(i, 2), {
170
+ value: "editor",
171
+ children: (e, t) => {
172
+ D.next();
173
+ var n = D.text("Editor");
174
+ D.append(e, n);
175
+ },
176
+ $$slots: { default: !0 }
177
+ }), D.append(e, n);
178
+ },
179
+ $$slots: { default: !0 }
180
+ }), D.append(e, n);
181
+ },
182
+ $$slots: { default: !0 }
183
+ });
184
+ var c = D.sibling(s, 2), l = D.child(c, !0);
185
+ D.reset(c), D.reset(a);
186
+ var u = D.sibling(a, 2), d = (e) => {
187
+ var t = le();
188
+ D.each(t, 21, () => D.get(K), D.index, (e, t) => {
189
+ var n = ce(), r = D.child(n), i = D.sibling(r);
190
+ D.reset(n), D.template_effect(() => D.set_text(r, `${D.get(t).email ?? ""} · ${D.get(t).role ?? ""} `)), D.delegated("click", i, () => me(D.get(t).email)), D.append(e, n);
191
+ }), D.reset(t), D.append(e, t);
192
+ };
193
+ D.if(u, (e) => {
194
+ D.get(K).length > 0 && e(d);
195
+ }), D.reset(n), D.template_effect((e, t) => {
196
+ D.set_text(i, e), D.set_text(l, t);
197
+ }, [() => h(), () => t()]), D.delegated("keydown", o, (e) => {
198
+ e.key === "Enter" && (e.preventDefault(), Z());
199
+ }), D.bind_value(o, () => D.get(W), (e) => D.set(W, e)), D.delegated("click", c, Z), D.append(e, n);
200
+ };
201
+ D.if(P, (e) => {
202
+ D.get(B) === "restricted" && e(F);
203
+ });
204
+ var I = D.sibling(P, 2), L = (e) => {
205
+ var t = de(), n = D.child(t, !0);
206
+ D.reset(t), D.template_effect(() => D.set_text(n, D.get(X))), D.append(e, t);
207
+ };
208
+ D.if(I, (e) => {
209
+ D.get(X) && e(L);
210
+ });
211
+ var R = D.sibling(I, 2), q = D.child(R, !0);
212
+ D.reset(R), D.reset(r), D.template_effect((e, t, n, r) => {
213
+ D.set_class(p, 1, `rounded-md px-3 py-2 text-sm font-medium ${D.get(B) === "public" ? "bg-background shadow-sm" : "text-muted-foreground"}`), D.set_class(m, 1, `rounded-md px-3 py-2 text-sm font-medium ${D.get(B) === "restricted" ? "bg-background shadow-sm" : "text-muted-foreground"}`), D.set_text(_, D.get(B) === "public" ? "Anyone with this link can view the document. The link may be forwarded." : "Only invited email addresses can comment or edit. A password fallback, when enabled, grants view-only access."), D.set_text(w, e), D.set_class(T, 1, `relative inline-flex h-5 w-9 items-center rounded-full transition-colors ${D.get(z) ? "bg-primary" : "bg-input"}`), D.set_attribute(T, "aria-checked", D.get(z)), D.set_attribute(T, "aria-label", t), D.set_class(E, 1, `inline-block h-4 w-4 rounded-full bg-white shadow transition-transform ${D.get(z) ? "translate-x-4" : "translate-x-0.5"}`), D.set_text(M, n), R.disabled = D.get(Y) || D.get(B) === "restricted" && D.get(K).length === 0 || D.get(z) && D.get(H).length < 8, D.set_text(q, r);
214
+ }, [
215
+ () => n(),
216
+ () => v(),
217
+ () => s(),
218
+ () => D.get(Y) ? ee() : a()
219
+ ]), D.delegated("click", p, () => {
220
+ D.set(B, "public"), D.set(K, [], !0), D.set(V, !1);
221
+ }), D.delegated("click", m, () => {
222
+ D.set(B, "restricted");
223
+ }), D.delegated("click", T, () => {
224
+ D.set(z, !D.get(z));
225
+ }), D.delegated("click", R, he), D.append(e, r);
226
+ }, F = (e) => {
227
+ var t = O(), n = D.child(t), i = D.child(n, !0);
228
+ D.reset(n);
229
+ var a = D.sibling(n, 2), o = D.child(a), s = D.child(o, !0);
230
+ D.reset(o);
231
+ var c = D.sibling(o, 2), l = D.child(c, !0);
232
+ D.reset(c), D.reset(a);
233
+ var d = D.sibling(a, 2), f = D.child(d, !0);
234
+ D.reset(d), D.reset(t), D.template_effect((e, t, n) => {
235
+ D.set_text(i, e), D.set_text(s, D.get(q)), D.set_text(l, t), D.set_text(f, n);
236
+ }, [
237
+ () => D.get(B) === "restricted" ? "Invitations were queued for delivery. This is not a public link." : r(),
238
+ () => D.get(J) ? u() : g(),
239
+ () => m()
240
+ ]), D.delegated("click", c, ge), D.delegated("click", d, Q), D.append(e, t);
241
+ };
242
+ D.if(M, (e) => {
243
+ D.get(q) ? e(F, -1) : e(N);
244
+ }), D.reset(w), D.reset(y), D.template_effect((e, t, n) => {
245
+ D.set_attribute(C, "aria-label", e), D.set_text(A, `${t ?? ""} "${(R() || I() || P()) ?? ""}"`), D.set_attribute(j, "aria-label", n);
246
+ }, [
247
+ () => e(),
248
+ () => p(),
249
+ () => e()
250
+ ]), D.delegated("click", C, Q), D.delegated("click", j, Q), D.append(_, y);
251
+ };
252
+ D.if(_e, (e) => {
253
+ M() && e(ve);
254
+ }), D.append(A, $), D.pop();
255
+ }
256
+ D.delegate(["click", "keydown"]);
257
+ //#endregion
258
+ export { A as t };
@@ -5,7 +5,7 @@ import { n as r, t as i } from "./folder-Cx60MRpi.js";
5
5
  import { t as a } from "./clock-Dz86E4Kz.js";
6
6
  import { t as o } from "./copy-CvCh4ZVt.js";
7
7
  import { n as s, r as c, t as l } from "./confirm-dialog-CzmoZw3a.js";
8
- import { t as u } from "./SettingsDialog-CyZSOjLE.js";
8
+ import { t as u } from "./SettingsDialog-BDNgf5rv.js";
9
9
  import { n as d, t as f } from "./tag-DhVFHMcV.js";
10
10
  import { t as p } from "./x-cfdlccjs.js";
11
11
  import { a as m, i as h, o as ee, r as g, t as te } from "./dropdown-menu-CJ_7V3N0.js";
@@ -25,8 +25,8 @@ import { c as Ve, i as He, r as Ue, s as We, t as Ge } from "./documents-CwCs1rA
25
25
  import { c as Ke, r as qe, s as Je, t as Ye } from "./folders-ONG03Dkv.js";
26
26
  import { t as Xe } from "./DeleteDialog-8k6JYWCx.js";
27
27
  import { t as Ze } from "./clipboard-Cgzxc0_R.js";
28
- import { t as Qe } from "./ShareDialog-BC-Jl6v1.js";
29
- import { t as $e } from "./CategoryDialog-BYAFjX7E.js";
28
+ import { t as Qe } from "./ShareDialog-2Mty7hm4.js";
29
+ import { t as $e } from "./CategoryDialog-CbXBMBZB.js";
30
30
  import { n as et, t as tt } from "./document-drop-coordinator-C4xHMjwC.js";
31
31
  import { a as nt, c as rt, d as it, f as at, i as ot, n as st, o as ct, p as lt, r as ut, s as dt, t as ft, u as pt } from "./subfolders-refresh-store.svelte-DxP21a1c.js";
32
32
  import { t as mt } from "./FolderNode-DAAn_T8_.js";
@@ -162,7 +162,7 @@ var At = (e, t = V.noop) => {
162
162
  c(r, { class: "size-4 shrink-0 text-muted-foreground" });
163
163
  var i = V.sibling(r, 2), a = V.child(i, !0);
164
164
  V.reset(i), V.reset(n), V.template_effect((e) => {
165
- V.set_attribute(n, "href", `/docs/${t().id}`), V.set_class(n, 1, e), V.set_text(a, t().title);
165
+ V.set_attribute(n, "href", `/docs/${t().id}`), V.set_class(n, 1, e, "svelte-1nshngr"), V.set_text(a, t().title);
166
166
  }, [() => V.clsx(F("flex w-full min-w-0 items-center gap-1.5 rounded-md px-2 py-1 text-sm transition-colors hover:bg-accent hover:text-accent-foreground", H.params.id === t().id && "bg-accent text-accent-foreground font-medium"))]), V.append(e, n);
167
167
  }, jt = V.from_html("<button><!></button>"), Mt = V.from_html("<!> <!> <!>", 1), Nt = V.from_html("<!> <!>", 1), Pt = V.from_html("<button type=\"button\"><!></button>"), Ft = V.from_html("<a data-sveltekit-noscroll=\"\"><span class=\"w-3.5 shrink-0\"></span> <!> <span class=\"min-w-0 truncate\"> </span></a>"), It = V.from_html("<p class=\"px-2 text-xs text-destructive\"> </p>"), Lt = V.from_html("<!> <!> <!> <!> <!> <!>", 1), Rt = V.from_html("<div><!></div>"), zt = V.from_html("<div class=\"group/doc flex w-full min-w-0 items-center gap-1\"><!> <!> <!></div>"), Bt = V.from_html("<div class=\"ml-0.5 space-y-0.5 border-l border-border pl-0.5\"><div></div> <div></div></div>"), Vt = V.from_html("<div class=\"group/bucket\"><div class=\"flex w-full min-w-0 items-center gap-0.5\"><button type=\"button\"><!> <span class=\"min-w-0 truncate\"> </span></button> <!></div> <!></div>"), Ht = V.from_html("<div class=\"group/bucket\"><div class=\"flex w-full min-w-0 items-center gap-0.5\"><button type=\"button\"><!> <span class=\"min-w-0 truncate\"> </span></button></div> <!></div>"), Ut = V.from_html("<p id=\"rename-input-error\" class=\"text-xs text-destructive\" role=\"alert\"> </p>"), Wt = V.from_html("<!> <form class=\"space-y-4\"><div class=\"space-y-2\"><!> <!> <!></div></form> <!>", 1), Gt = V.from_html("<div class=\"space-y-1\"><div class=\"mb-2 flex items-center justify-between gap-1\"><a class=\"block flex-1 px-2 text-xs font-medium uppercase tracking-wider text-muted-foreground transition-colors hover:text-foreground\"> </a> <button type=\"button\" class=\"inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"><!></button></div> <!> <!> <div class=\"min-h-[8px] space-y-1\"></div> <!> <button type=\"button\" class=\"flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground\"><!> <span> </span></button></div> <!> <!> <!> <!> <!>", 1);
168
168
  function Kt(e, i) {
@@ -180,11 +180,11 @@ function Kt(e, i) {
180
180
  V.attribute_effect(r, (e, t) => ({
181
181
  ...n(),
182
182
  type: "button",
183
- class: "inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-accent-foreground group-hover/doc:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
183
+ class: "sidebar-touch-action inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-accent-foreground group-hover/doc:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
184
184
  "aria-label": e,
185
185
  title: t,
186
186
  onclick: i
187
- }), [() => C(), () => C()]), ee(V.child(r), { class: "size-3.5" }), V.reset(r), V.append(e, r);
187
+ }), [() => C(), () => C()], void 0, void 0, "svelte-1nshngr"), ee(V.child(r), { class: "size-3.5" }), V.reset(r), V.append(e, r);
188
188
  },
189
189
  $$slots: { child: !0 }
190
190
  }), h(V.sibling(i, 2), {
@@ -236,7 +236,7 @@ function Kt(e, i) {
236
236
  V.if(i, (e) => {
237
237
  V.get(ln) === n().id ? e(a) : V.get(cn) === n().id ? e(s, 1) : e(c, -1);
238
238
  }), V.reset(r), V.template_effect((e, t) => {
239
- V.set_class(r, 1, `inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-accent-foreground group-hover/doc:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${V.get(cn) === n().id || V.get(ln) === n().id ? "opacity-100" : ""}`), V.set_attribute(r, "aria-label", e), V.set_attribute(r, "title", t), r.disabled = V.get(ln) === n().id;
239
+ V.set_class(r, 1, `sidebar-touch-action inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-accent-foreground group-hover/doc:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${V.get(cn) === n().id || V.get(ln) === n().id ? "opacity-100" : ""}`, "svelte-1nshngr"), V.set_attribute(r, "aria-label", e), V.set_attribute(r, "title", t), r.disabled = V.get(ln) === n().id;
240
240
  }, [() => re(), () => re()]), V.delegated("click", r, (e) => {
241
241
  e.preventDefault(), e.stopPropagation(), dn(n().id);
242
242
  }), V.append(e, r);
@@ -875,7 +875,7 @@ function Kt(e, i) {
875
875
  class: "inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-accent-foreground group-hover/bucket:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
876
876
  "aria-label": e,
877
877
  title: t
878
- }), [() => C(), () => C()]), ee(V.child(r), { class: "size-3.5" }), V.reset(r), V.append(e, r);
878
+ }), [() => C(), () => C()], void 0, void 0, "svelte-1nshngr"), ee(V.child(r), { class: "size-3.5" }), V.reset(r), V.append(e, r);
879
879
  },
880
880
  $$slots: { child: !0 }
881
881
  }), h(V.sibling(i, 2), {
@@ -980,7 +980,7 @@ function Kt(e, i) {
980
980
  useCursorForDetection: !0,
981
981
  centreDraggedOnCursor: !0
982
982
  })), V.reset(i), V.template_effect((e, t) => {
983
- V.set_class(o, 1, e), V.set_class(d, 1, t);
983
+ V.set_class(o, 1, e, "svelte-1nshngr"), V.set_class(d, 1, t, "svelte-1nshngr");
984
984
  }, [() => V.clsx(F("min-h-[8px] space-y-0.5 transition-all duration-150", V.get(L) && V.get(n).length === 0 && "min-h-[36px] bg-accent/20 rounded border border-dashed border-muted-foreground/20")), () => V.clsx(F("min-h-[8px] space-y-0.5 transition-all duration-150", V.get(it) && V.get(r).length === 0 && "min-h-[36px] bg-accent/20 rounded border border-dashed border-muted-foreground/20"))]), V.event("consider", o, function(...e) {
985
985
  V.get(s)?.apply(this, e);
986
986
  }), V.event("finalize", o, function(...e) {
@@ -994,7 +994,7 @@ function Kt(e, i) {
994
994
  V.if(y, (e) => {
995
995
  V.get(i) && e(b);
996
996
  }), V.reset(o), V.template_effect((e) => {
997
- V.set_attribute(o, "data-is-dnd-shadow-item-hint", V.get(t)[ze]), V.set_attribute(l, "aria-expanded", V.get(i)), V.set_class(l, 1, e), V.set_text(v, V.get(t).category.name);
997
+ V.set_attribute(o, "data-is-dnd-shadow-item-hint", V.get(t)[ze]), V.set_attribute(l, "aria-expanded", V.get(i)), V.set_class(l, 1, e, "svelte-1nshngr"), V.set_text(v, V.get(t).category.name);
998
998
  }, [() => V.clsx(F("flex min-w-0 flex-1 items-center gap-1.5 rounded-md px-2 py-1.5 text-xs font-medium uppercase tracking-wider text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground", V.get(R) && "hover:bg-accent/40 border border-dashed border-primary/30"))]), V.delegated("click", l, () => An(V.get(t).id)), V.event("mouseenter", l, () => {
999
999
  V.get(I) && !V.get(i) && hn(V.get(t).id);
1000
1000
  }), V.event("mouseleave", l, () => {
@@ -1046,7 +1046,7 @@ function Kt(e, i) {
1046
1046
  useCursorForDetection: !0,
1047
1047
  centreDraggedOnCursor: !0
1048
1048
  })), V.reset(n), V.template_effect((e, t) => {
1049
- V.set_class(r, 1, e), V.set_class(s, 1, t);
1049
+ V.set_class(r, 1, e, "svelte-1nshngr"), V.set_class(s, 1, t, "svelte-1nshngr");
1050
1050
  }, [() => V.clsx(F("min-h-[8px] space-y-0.5 transition-all duration-150", V.get(L) && V.get(t).length === 0 && "min-h-[36px] bg-accent/20 rounded border border-dashed border-muted-foreground/20")), () => V.clsx(F("min-h-[8px] space-y-0.5 transition-all duration-150", V.get(it) && V.get(xt).length === 0 && "min-h-[36px] bg-accent/20 rounded border border-dashed border-muted-foreground/20"))]), V.event("consider", r, function(...e) {
1051
1051
  V.get(i)?.apply(this, e);
1052
1052
  }), V.event("finalize", r, function(...e) {
@@ -1060,7 +1060,7 @@ function Kt(e, i) {
1060
1060
  V.if(m, (e) => {
1061
1061
  V.get(D) && e(h);
1062
1062
  }), V.reset(t), V.template_effect((e, t) => {
1063
- V.set_attribute(o, "aria-expanded", V.get(D)), V.set_class(o, 1, e), V.set_text(p, t);
1063
+ V.set_attribute(o, "aria-expanded", V.get(D)), V.set_class(o, 1, e, "svelte-1nshngr"), V.set_text(p, t);
1064
1064
  }, [() => V.clsx(F("flex min-w-0 flex-1 items-center gap-1.5 rounded-md px-2 py-1.5 text-xs font-medium uppercase tracking-wider text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground", V.get(R) && "hover:bg-accent/40 border border-dashed border-primary/30")), () => he()]), V.delegated("click", o, jn), V.event("mouseenter", o, () => {
1065
1065
  V.get(I) && !V.get(D) && hn($);
1066
1066
  }), V.event("mouseleave", o, () => {
@@ -1433,11 +1433,11 @@ function Zt(e, n) {
1433
1433
  V.attribute_effect(r, (e, t) => ({
1434
1434
  ...n(),
1435
1435
  type: "button",
1436
- class: "inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-accent-foreground group-hover/doc:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
1436
+ class: "sidebar-touch-action inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-accent-foreground group-hover/doc:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
1437
1437
  "aria-label": e,
1438
1438
  title: t,
1439
1439
  onclick: i
1440
- }), [() => C(), () => C()]), ee(V.child(r), { class: "size-3.5" }), V.reset(r), V.append(e, r);
1440
+ }), [() => C(), () => C()], void 0, void 0, "svelte-1uwxs9f"), ee(V.child(r), { class: "size-3.5" }), V.reset(r), V.append(e, r);
1441
1441
  },
1442
1442
  $$slots: { child: !0 }
1443
1443
  }), h(V.sibling(i, 2), {
@@ -1468,7 +1468,7 @@ function Zt(e, n) {
1468
1468
  },
1469
1469
  $$slots: { default: !0 }
1470
1470
  }), V.reset(r), V.template_effect((e, t, r) => {
1471
- V.set_attribute(i, "href", `/docs/${V.get(n).id}`), V.set_class(i, 1, e), V.set_text(p, V.get(n).title), V.set_text(v, V.get(n).updatedAt), V.set_class(y, 1, `inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-accent-foreground group-hover/doc:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${V.get(l) === V.get(n).id || V.get(u) === V.get(n).id ? "opacity-100" : ""}`), V.set_attribute(y, "aria-label", t), V.set_attribute(y, "title", r), y.disabled = V.get(u) === V.get(n).id;
1471
+ V.set_attribute(i, "href", `/docs/${V.get(n).id}`), V.set_class(i, 1, e, "svelte-1uwxs9f"), V.set_text(p, V.get(n).title), V.set_text(v, V.get(n).updatedAt), V.set_class(y, 1, `sidebar-touch-action inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-accent-foreground group-hover/doc:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${V.get(l) === V.get(n).id || V.get(u) === V.get(n).id ? "opacity-100" : ""}`, "svelte-1uwxs9f"), V.set_attribute(y, "aria-label", t), V.set_attribute(y, "title", r), y.disabled = V.get(u) === V.get(n).id;
1472
1472
  }, [
1473
1473
  () => V.clsx(F("flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-accent hover:text-accent-foreground", V.get(a) === V.get(n).id && "bg-accent text-accent-foreground")),
1474
1474
  () => re(),