@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.
Files changed (141) hide show
  1. package/dist/backend/index.js +1 -1
  2. package/dist/frontend/CategoryDialog--rIE7FrH.js +580 -0
  3. package/dist/frontend/ConfirmDialog-Cpzyb55f.js +212 -0
  4. package/dist/frontend/CreateSnapshotDialog-CmkV-n2A.js +216 -0
  5. package/dist/frontend/DatePicker-Byynca7V.js +257 -0
  6. package/dist/frontend/DeleteDialog-ap6nOywZ.js +174 -0
  7. package/dist/frontend/FolderDialog-DmN_trV0.js +247 -0
  8. package/dist/frontend/FolderNode-C4B8a2fd.js +317 -0
  9. package/dist/frontend/FolderTreeSelector-D6ijiZTA.js +100 -0
  10. package/dist/frontend/Icon-DtNo0N1U.js +64 -0
  11. package/dist/frontend/SettingsDialog-2kTaTXAs.js +992 -0
  12. package/dist/frontend/ShareDialog-BBDGNF5n.js +165 -0
  13. package/dist/frontend/TagCreateDialog-DiLZnJo4.js +258 -0
  14. package/dist/frontend/api/attachments.d.ts +6 -0
  15. package/dist/frontend/api/attachments.js +2 -0
  16. package/dist/frontend/api/categories.js +1 -1
  17. package/dist/frontend/api/documents.js +1 -1
  18. package/dist/frontend/api/folders.js +1 -1
  19. package/dist/frontend/api/settings.js +1 -1
  20. package/dist/frontend/api/share.d.ts +5 -0
  21. package/dist/frontend/api/share.js +2 -0
  22. package/dist/frontend/api/tags.js +1 -1
  23. package/dist/frontend/api-keys-CpkrA8rD.js +35 -0
  24. package/dist/frontend/attachments-BuILSs56.js +50 -0
  25. package/dist/frontend/{settings-PCrOtied.js → auth-client-Cygmp1I2.js} +205 -265
  26. package/dist/frontend/awareness-snQ3RD9f.js +3714 -0
  27. package/dist/frontend/bundle-mjs-CP6Owz-8.js +1723 -0
  28. package/dist/frontend/camera-B7dAOd4s.js +28 -0
  29. package/dist/frontend/{categories-BE6ZpZl8.js → categories-izQovv2w.js} +1 -1
  30. package/dist/frontend/check-CDwRlG9T.js +24 -0
  31. package/dist/frontend/chevron-down-B7ZrjUmT.js +24 -0
  32. package/dist/frontend/circle-check-CDqeMB2d.js +28 -0
  33. package/dist/frontend/{client-C6QQGb0e.js → client-Bc5Fzx40.js} +833 -814
  34. package/dist/frontend/{client-B9hzI0W8.js → client-GbtOH90i.js} +1 -1
  35. package/dist/frontend/clipboard-Cgzxc0_R.js +16 -0
  36. package/dist/frontend/clock-Ck5Sn-Zl.js +28 -0
  37. package/dist/frontend/clsx-nmtDPO_P.js +16 -0
  38. package/dist/frontend/collaboration.d.ts +6 -0
  39. package/dist/frontend/collaboration.js +182 -0
  40. package/dist/frontend/components/category-dialog.d.ts +2 -0
  41. package/dist/frontend/components/category-dialog.js +2 -0
  42. package/dist/frontend/components/create-snapshot-dialog.d.ts +2 -0
  43. package/dist/frontend/components/create-snapshot-dialog.js +2 -0
  44. package/dist/frontend/components/delete-dialog.d.ts +2 -0
  45. package/dist/frontend/components/delete-dialog.js +2 -0
  46. package/dist/frontend/components/editor/document-editor.d.ts +3 -0
  47. package/dist/frontend/components/editor/document-editor.js +3021 -0
  48. package/dist/frontend/components/editor/document-title.d.ts +2 -0
  49. package/dist/frontend/components/editor/document-title.js +31 -0
  50. package/dist/frontend/components/editor/docx-serializer.d.ts +2 -0
  51. package/dist/frontend/components/editor/docx-serializer.js +14600 -0
  52. package/dist/frontend/components/editor/extensions.d.ts +2 -0
  53. package/dist/frontend/components/editor/extensions.js +2 -0
  54. package/dist/frontend/components/editor/markdown-toggle.d.ts +2 -0
  55. package/dist/frontend/components/editor/markdown-toggle.js +72 -0
  56. package/dist/frontend/components/editor/markdown.d.ts +1 -0
  57. package/dist/frontend/components/editor/markdown.js +2 -0
  58. package/dist/frontend/components/folder-node.d.ts +3 -0
  59. package/dist/frontend/components/folder-node.js +2 -0
  60. package/dist/frontend/components/folder-tree-selector.d.ts +2 -0
  61. package/dist/frontend/components/folder-tree-selector.js +2 -0
  62. package/dist/frontend/components/save-as-dialog.d.ts +2 -0
  63. package/dist/frontend/components/save-as-dialog.js +254 -0
  64. package/dist/frontend/components/settings.js +1 -1
  65. package/dist/frontend/components/share-dialog.d.ts +2 -0
  66. package/dist/frontend/components/share-dialog.js +2 -0
  67. package/dist/frontend/components/sidebar.js +1206 -3762
  68. package/dist/frontend/components/tag-create-dialog.d.ts +2 -0
  69. package/dist/frontend/components/tag-create-dialog.js +2 -0
  70. package/dist/frontend/components/version-history.d.ts +2 -0
  71. package/dist/frontend/components/version-history.js +293 -0
  72. package/dist/frontend/{context-DbnW5yib.js → context-BMD6XTPe.js} +0 -3
  73. package/dist/frontend/copy-CMAA6GP0.js +31 -0
  74. package/dist/frontend/dashboard.js +1148 -1224
  75. package/dist/frontend/{SettingsDialog-D4pgFD0D.js → db-ByrlYfaI.js} +923 -2002
  76. package/dist/frontend/dialog-BDkiG42a.js +213 -0
  77. package/dist/frontend/disclose-version-5I57E3LD.js +3 -0
  78. package/dist/frontend/dndzone-BzsOINtP.js +1199 -0
  79. package/dist/frontend/doc-tabs.d.ts +7 -0
  80. package/dist/frontend/doc-tabs.js +14 -0
  81. package/dist/frontend/document-drop-coordinator-C4xHMjwC.js +68 -0
  82. package/dist/frontend/document-drop-coordinator.d.ts +2 -0
  83. package/dist/frontend/document-drop-coordinator.js +2 -0
  84. package/dist/frontend/{documents-DFVS9SsL.js → documents-BsDkvzCm.js} +1 -1
  85. package/dist/frontend/editorExtensions-BMHvUbdk.js +27021 -0
  86. package/dist/frontend/ellipsis-vertical-BBuPldbW.js +519 -0
  87. package/dist/frontend/extension.js +6 -5
  88. package/dist/frontend/floating-layer-anchor-C51M4l6v.js +4513 -0
  89. package/dist/frontend/folder-TQjKY4yn.js +44 -0
  90. package/dist/frontend/folder-refresh.d.ts +8 -0
  91. package/dist/frontend/folder-refresh.js +2 -0
  92. package/dist/frontend/{folders-CGe9diAG.js → folders-CTuV_JtU.js} +1 -1
  93. package/dist/frontend/frontend.css +1 -1
  94. package/dist/frontend/i18n.js +1 -1
  95. package/dist/frontend/identity-DyWeNzu_.js +69 -0
  96. package/dist/frontend/index-client-jobkrWVL.js +86 -0
  97. package/dist/frontend/input-CBI6p4Xl.js +23 -0
  98. package/dist/frontend/keyboard.d.ts +14 -0
  99. package/dist/frontend/keyboard.js +2 -0
  100. package/dist/frontend/keyboard.svelte-D7H8DihC.js +133 -0
  101. package/dist/frontend/label-C-GkhEp4.js +30 -0
  102. package/dist/frontend/loader-circle-Bk-WFz9g.js +267 -0
  103. package/dist/frontend/markdown-BwnyjITU.js +11 -0
  104. package/dist/frontend/messages-BpYaLbzE.js +1091 -0
  105. package/dist/frontend/offline/identity.d.ts +6 -0
  106. package/dist/frontend/offline/identity.js +2 -0
  107. package/dist/frontend/resolve-BG4HgzpN.js +19 -0
  108. package/dist/frontend/rolldown-runtime-CWhphoD1.js +23 -0
  109. package/dist/frontend/rotate-ccw-CleZtJ5D.js +24 -0
  110. package/dist/frontend/search.js +637 -628
  111. package/dist/frontend/select-value-CvrWRkXW.js +1436 -0
  112. package/dist/frontend/settings-blyobazp.js +62 -0
  113. package/dist/frontend/share-Cu7SSJuJ.js +28 -0
  114. package/dist/frontend/shared-document.js +41 -40
  115. package/dist/frontend/subfolders-refresh-store.svelte-BsheoQma.js +65 -0
  116. package/dist/frontend/{tag-C5xrg-bb.js → tag-Dx3SmucJ.js} +7 -7
  117. package/dist/frontend/tag-store.svelte-CIaF4sdZ.js +29 -0
  118. package/dist/frontend/{tags-DVXTut0p.js → tags-CtCV0Djo.js} +1 -1
  119. package/dist/frontend/textarea-Dfp78XlL.js +23 -0
  120. package/dist/frontend/theme.js +1 -1
  121. package/dist/frontend/{theme.svelte-ei0QxXa8.js → theme.svelte-CROg1Hi5.js} +7 -7
  122. package/dist/frontend/types.d.ts +6 -0
  123. package/dist/frontend/types.js +0 -0
  124. package/dist/frontend/utils/clipboard.d.ts +1 -0
  125. package/dist/frontend/utils/clipboard.js +2 -0
  126. package/dist/frontend/utils/dndzone.d.ts +4 -0
  127. package/dist/frontend/utils/dndzone.js +2 -0
  128. package/dist/frontend/utils-C0OW2678.js +20 -0
  129. package/dist/frontend/utils-D8kmM3ub.js +8 -0
  130. package/dist/frontend/utils.d.ts +4 -0
  131. package/dist/frontend/utils.js +2 -0
  132. package/dist/frontend/x-DaTdeDXv.js +24 -0
  133. package/package.json +109 -1
  134. package/packages/cli/src/index.ts +1 -1
  135. package/packages/mcp-server/src/index.ts +1 -1
  136. package/dist/frontend/DatePicker-BcMD49PV.js +0 -275
  137. package/dist/frontend/ShareDialog-Dzh7rV7J.js +0 -1317
  138. package/dist/frontend/input-ieWIt8I7.js +0 -257
  139. package/dist/frontend/messages-CTGAsqFu.js +0 -1106
  140. package/dist/frontend/resolve-Bl6xmJl_.js +0 -2068
  141. package/dist/frontend/tag-store.svelte-B3839FYq.js +0 -6152
@@ -1,275 +0,0 @@
1
- import { A as e, B as t, F as n, G as r, H as i, I as a, J as o, K as s, L as c, M as ee, N as l, P as u, Q as d, R as te, U as ne, V as re, W as ie, X as ae, Y as oe, Z as se, j as ce, k as le, q as ue, z as de } from "./messages-CTGAsqFu.js";
2
- import "./context-DbnW5yib.js";
3
- import { $ as f, A as p, C as m, D as h, E as fe, H as g, J as _, L as v, M as y, N as b, R as x, T as S, _t as C, d as w, dt as T, et as E, ft as pe, g as me, h as he, i as D, it as O, j as k, k as A, l as j, lt as ge, n as M, nt as N, o as P, ot as F, q as I, r as L, t as R, tt as z } from "./client-C6QQGb0e.js";
4
- import { a as B, i as V, r as H } from "./resolve-Bl6xmJl_.js";
5
- import { u as _e } from "./tag-store.svelte-B3839FYq.js";
6
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/badge.svelte
7
- var U = /* @__PURE__ */ new Set([
8
- "$$slots",
9
- "$$events",
10
- "$$legacy",
11
- "ref",
12
- "class",
13
- "variant",
14
- "children"
15
- ]), W = b("<div><!></div>");
16
- function G(e, t) {
17
- pe(t, !0);
18
- let n = M(t, "ref", 15, null), r = M(t, "variant", 3, "default"), i = L(t, U);
19
- var a = W();
20
- j(a, (e) => ({
21
- class: e,
22
- ...i
23
- }), [() => V(K({ variant: r() }), t.class)]);
24
- var o = f(a), s = (e) => {
25
- var n = y();
26
- A(E(n), () => t.children), k(e, n);
27
- };
28
- h(o, (e) => {
29
- t.children && e(s);
30
- }), C(a), P(a, (e) => n(e), () => n()), k(e, a), T();
31
- }
32
- //#endregion
33
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/index.js
34
- var K = B({
35
- base: "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
36
- variants: { variant: {
37
- default: "border-transparent bg-primary text-primary-foreground shadow",
38
- secondary: "border-transparent bg-secondary text-secondary-foreground",
39
- destructive: "border-transparent bg-destructive text-destructive-foreground shadow",
40
- outline: "text-foreground"
41
- } },
42
- defaultVariants: { variant: "default" }
43
- });
44
- //#endregion
45
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/calendar.svelte
46
- function q(e, t) {
47
- let n = R(t, [
48
- "children",
49
- "$$slots",
50
- "$$events",
51
- "$$legacy"
52
- ]), r = [
53
- ["path", { d: "M8 2v4" }],
54
- ["path", { d: "M16 2v4" }],
55
- ["rect", {
56
- width: "18",
57
- height: "18",
58
- x: "3",
59
- y: "4",
60
- rx: "2"
61
- }],
62
- ["path", { d: "M3 10h18" }]
63
- ];
64
- H(e, D({ name: "calendar" }, () => n, {
65
- get iconNode() {
66
- return r;
67
- },
68
- children: (e, n) => {
69
- var r = y();
70
- m(E(r), t, "default", {}, null), k(e, r);
71
- },
72
- $$slots: { default: !0 }
73
- }));
74
- }
75
- //#endregion
76
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/chevron-left.svelte
77
- function J(e, t) {
78
- let n = R(t, [
79
- "children",
80
- "$$slots",
81
- "$$events",
82
- "$$legacy"
83
- ]), r = [["path", { d: "m15 18-6-6 6-6" }]];
84
- H(e, D({ name: "chevron-left" }, () => n, {
85
- get iconNode() {
86
- return r;
87
- },
88
- children: (e, n) => {
89
- var r = y();
90
- m(E(r), t, "default", {}, null), k(e, r);
91
- },
92
- $$slots: { default: !0 }
93
- }));
94
- }
95
- //#endregion
96
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/folder-kanban.svelte
97
- function Y(e, t) {
98
- let n = R(t, [
99
- "children",
100
- "$$slots",
101
- "$$events",
102
- "$$legacy"
103
- ]), r = [
104
- ["path", { d: "M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z" }],
105
- ["path", { d: "M8 10v4" }],
106
- ["path", { d: "M12 10v2" }],
107
- ["path", { d: "M16 10v6" }]
108
- ];
109
- H(e, D({ name: "folder-kanban" }, () => n, {
110
- get iconNode() {
111
- return r;
112
- },
113
- children: (e, n) => {
114
- var r = y();
115
- m(E(r), t, "default", {}, null), k(e, r);
116
- },
117
- $$slots: { default: !0 }
118
- }));
119
- }
120
- //#endregion
121
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/rotate-ccw.svelte
122
- function X(e, t) {
123
- let n = R(t, [
124
- "children",
125
- "$$slots",
126
- "$$events",
127
- "$$legacy"
128
- ]), r = [["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { d: "M3 3v5h5" }]];
129
- H(e, D({ name: "rotate-ccw" }, () => n, {
130
- get iconNode() {
131
- return r;
132
- },
133
- children: (e, n) => {
134
- var r = y();
135
- m(E(r), t, "default", {}, null), k(e, r);
136
- },
137
- $$slots: { default: !0 }
138
- }));
139
- }
140
- //#endregion
141
- //#region src/lib/components/DatePicker.svelte
142
- var ve = b("<span class=\"dp-weekday svelte-zmry26\"> </span>"), ye = b("<span class=\"dp-empty svelte-zmry26\"></span>"), be = b("<button type=\"button\"> </button>"), xe = b("<button type=\"button\" class=\"dp-clear svelte-zmry26\"> </button>"), Se = b("<div class=\"dp-popover svelte-zmry26\" role=\"dialog\"><div class=\"dp-header svelte-zmry26\"><button type=\"button\" class=\"dp-nav svelte-zmry26\"><!></button> <span class=\"dp-title svelte-zmry26\"> </span> <button type=\"button\" class=\"dp-nav svelte-zmry26\"><!></button></div> <div class=\"dp-weekdays svelte-zmry26\"></div> <div class=\"dp-grid svelte-zmry26\"></div> <!></div>"), Ce = b("<div class=\"datepicker svelte-zmry26\"><button type=\"button\" aria-haspopup=\"dialog\" class=\"dp-trigger svelte-zmry26\"><!> <span> </span></button> <!></div>");
143
- function we(m, v) {
144
- pe(v, !0);
145
- let b = M(v, "value", 15, ""), D = M(v, "ariaLabel", 19, () => ce()), A = M(v, "placeholder", 19, () => l()), j = F(!1), L = F(null), R = [
146
- t(),
147
- de(),
148
- te(),
149
- c(),
150
- a(),
151
- n(),
152
- u()
153
- ], B = [
154
- d(),
155
- se(),
156
- ae(),
157
- oe(),
158
- o(),
159
- ue(),
160
- s(),
161
- r(),
162
- ie(),
163
- ne(),
164
- i(),
165
- re()
166
- ];
167
- function V(e) {
168
- return String(e).padStart(2, "0");
169
- }
170
- function H(e) {
171
- let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
172
- return t ? {
173
- y: Number(t[1]),
174
- m: Number(t[2]) - 1,
175
- d: Number(t[3])
176
- } : null;
177
- }
178
- let U = /* @__PURE__ */ new Date(), W = F(N(U.getFullYear())), G = F(N(U.getMonth()));
179
- _(() => {
180
- if (g(j)) {
181
- let e = H(b());
182
- e && (O(W, e.y, !0), O(G, e.m, !0));
183
- }
184
- });
185
- let K = ge(() => H(b()));
186
- function Y() {
187
- let e = (new Date(g(W), g(G), 1).getDay() + 6) % 7, t = new Date(g(W), g(G) + 1, 0).getDate(), n = [];
188
- for (let t = 0; t < e; t++) n.push(null);
189
- for (let e = 1; e <= t; e++) n.push(e);
190
- return n;
191
- }
192
- function X(e) {
193
- return e === U.getDate() && g(G) === U.getMonth() && g(W) === U.getFullYear();
194
- }
195
- function we(e) {
196
- return g(K) !== null && g(K).y === g(W) && g(K).m === g(G) && g(K).d === e;
197
- }
198
- function Te(e) {
199
- b(`${g(W)}-${V(g(G) + 1)}-${V(e)}`), O(j, !1), v.onchange?.();
200
- }
201
- function Ee() {
202
- b(""), O(j, !1), v.onchange?.();
203
- }
204
- function De() {
205
- g(G) === 0 ? (O(G, 11), O(W, g(W) - 1)) : O(G, g(G) - 1);
206
- }
207
- function Oe() {
208
- g(G) === 11 ? (O(G, 0), O(W, g(W) + 1)) : O(G, g(G) + 1);
209
- }
210
- _(() => {
211
- if (!g(j)) return;
212
- function e(e) {
213
- g(L) && !g(L).contains(e.target) && O(j, !1);
214
- }
215
- function t(e) {
216
- e.key === "Escape" && O(j, !1);
217
- }
218
- return document.addEventListener("pointerdown", e), document.addEventListener("keydown", t), () => {
219
- document.removeEventListener("pointerdown", e), document.removeEventListener("keydown", t);
220
- };
221
- });
222
- var Z = Ce(), Q = f(Z), ke = f(Q);
223
- q(ke, { class: "size-3.5 shrink-0 opacity-70" });
224
- var $ = z(ke, 2), Ae = f($, !0);
225
- C($), C(Q);
226
- var je = z(Q, 2), Me = (t) => {
227
- var n = Se(), r = f(n), i = f(r);
228
- J(f(i), { class: "size-4" }), C(i);
229
- var a = z(i, 2), o = f(a);
230
- C(a);
231
- var s = z(a, 2);
232
- _e(f(s), { class: "size-4" }), C(s), C(r);
233
- var c = z(r, 2);
234
- S(c, 20, () => R, (e) => e, (e, t) => {
235
- var n = ve(), r = f(n, !0);
236
- C(n), I(() => p(r, t)), k(e, n);
237
- }), C(c);
238
- var l = z(c, 2);
239
- S(l, 21, Y, fe, (e, t) => {
240
- var n = y(), r = E(n), i = (e) => {
241
- k(e, ye());
242
- }, a = (e) => {
243
- var n = be();
244
- let r;
245
- var i = f(n, !0);
246
- C(n), I((e) => {
247
- r = he(n, 1, "dp-day svelte-zmry26", null, r, e), p(i, g(t));
248
- }, [() => ({
249
- selected: we(g(t)),
250
- today: X(g(t))
251
- })]), x("click", n, () => Te(g(t))), k(e, n);
252
- };
253
- h(r, (e) => {
254
- g(t) === null ? e(i) : e(a, -1);
255
- }), k(e, n);
256
- }), C(l);
257
- var u = z(l, 2), d = (e) => {
258
- var t = xe(), n = f(t, !0);
259
- C(t), I((e) => p(n, e), [() => ee()]), x("click", t, Ee), k(e, t);
260
- };
261
- h(u, (e) => {
262
- b() && e(d);
263
- }), C(n), I((e, t) => {
264
- w(n, "aria-label", D()), w(i, "aria-label", e), p(o, `${B[g(G)] ?? ""} ${g(W) ?? ""}`), w(s, "aria-label", t);
265
- }, [() => e(), () => le()]), x("click", i, De), x("click", s, Oe), k(t, n);
266
- };
267
- h(je, (e) => {
268
- g(j) && e(Me);
269
- }), C(Z), P(Z, (e) => O(L, e), () => g(L)), I(() => {
270
- w(Q, "id", v.id), w(Q, "aria-label", D()), w(Q, "aria-expanded", g(j)), he($, 1, me(b() ? "" : "dp-placeholder"), "svelte-zmry26"), p(Ae, b() || A());
271
- }), x("click", Q, () => O(j, !g(j))), k(m, Z), T();
272
- }
273
- v(["click"]);
274
- //#endregion
275
- export { q as a, J as i, X as n, G as o, Y as r, we as t };