@hiai-gg/docsmint 0.3.7 → 0.3.8

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 (196) hide show
  1. package/backend/src/lib/logger.ts +45 -15
  2. package/dist/backend/index.js +238 -150
  3. package/dist/frontend/CategoryDialog-DphkZqIB.js +611 -0
  4. package/dist/frontend/ConfirmDialog-BLF3x_hr.js +214 -0
  5. package/dist/frontend/CreateSnapshotDialog-D5vPvFTL.js +216 -0
  6. package/dist/frontend/DatePicker-CLNTdvTk.js +259 -0
  7. package/dist/frontend/DeleteDialog-DxYFJivN.js +174 -0
  8. package/dist/frontend/FolderDialog-CRVZM2Oi.js +250 -0
  9. package/dist/frontend/FolderNode-C2zG7uii.js +298 -0
  10. package/dist/frontend/FolderTreeSelector-CyB8y2Sm.js +103 -0
  11. package/dist/frontend/Icon-CooFj4Ee.js +64 -0
  12. package/dist/frontend/SettingsDialog-DCM4-N6_.js +1016 -0
  13. package/dist/frontend/ShareDialog-DYu3RKQu.js +165 -0
  14. package/dist/frontend/TagCreateDialog-DXQs2bL9.js +260 -0
  15. package/dist/frontend/camera-iKXDOOWT.js +29 -0
  16. package/dist/frontend/check-D-UuvBuh.js +25 -0
  17. package/dist/frontend/chevron-down-CiPtYyFh.js +25 -0
  18. package/dist/frontend/circle-check-tSPE1V6t.js +29 -0
  19. package/dist/frontend/clock-DJHbHZb8.js +29 -0
  20. package/dist/frontend/{bundle-mjs-CP6Owz-8.js → clsx-C7bIvsDS.js} +16 -1
  21. package/dist/frontend/components/category-dialog.js +1 -1
  22. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  23. package/dist/frontend/components/delete-dialog.js +1 -1
  24. package/dist/frontend/components/editor/document-editor.js +1364 -1353
  25. package/dist/frontend/components/editor/document-title.js +25 -25
  26. package/dist/frontend/components/editor/markdown-toggle.js +45 -45
  27. package/dist/frontend/components/folder-node.js +1 -1
  28. package/dist/frontend/components/folder-tree-selector.js +1 -1
  29. package/dist/frontend/components/save-as-dialog.js +169 -151
  30. package/dist/frontend/components/settings.js +1 -1
  31. package/dist/frontend/components/share-dialog.js +1 -1
  32. package/dist/frontend/components/sidebar.js +1161 -1153
  33. package/dist/frontend/components/tag-create-dialog.js +1 -1
  34. package/dist/frontend/components/version-history.js +188 -187
  35. package/dist/frontend/copy-GppwRMjX.js +32 -0
  36. package/dist/frontend/dashboard.js +1188 -1156
  37. package/dist/frontend/dialog-D6NxYVmy.js +213 -0
  38. package/dist/frontend/doc-tabs.js +2 -2
  39. package/dist/frontend/ellipsis-vertical-P9MHvCps.js +530 -0
  40. package/dist/frontend/extension.js +8 -8
  41. package/dist/frontend/{floating-layer-anchor-C51M4l6v.js → floating-layer-anchor-CPwucTfd.js} +1414 -1412
  42. package/dist/frontend/folder-DeWhnD7O.js +45 -0
  43. package/dist/frontend/folder-refresh.js +1 -1
  44. package/dist/frontend/input-B5Rak-5G.js +23 -0
  45. package/dist/frontend/keyboard.js +1 -1
  46. package/dist/frontend/{keyboard.svelte-D7H8DihC.js → keyboard.svelte-CApmX0vl.js} +53 -53
  47. package/dist/frontend/label-CW9rxoAb.js +30 -0
  48. package/dist/frontend/{loader-circle-Bk-WFz9g.js → loader-circle-BA6aLO71.js} +86 -85
  49. package/dist/frontend/rotate-ccw-B4Q7brmV.js +25 -0
  50. package/dist/frontend/search.js +680 -654
  51. package/dist/frontend/select-value-sF86Geyh.js +1446 -0
  52. package/dist/frontend/shared-document.js +94 -94
  53. package/dist/frontend/subfolders-refresh-store.svelte-B2dKVmgz.js +65 -0
  54. package/dist/frontend/tag-HxRazVN_.js +54 -0
  55. package/dist/frontend/tag-store.svelte-CqrUXo0o.js +29 -0
  56. package/dist/frontend/textarea-i1720bE7.js +23 -0
  57. package/dist/frontend/theme.js +1 -1
  58. package/dist/frontend/theme.svelte-DKfCy12k.js +49 -0
  59. package/dist/frontend/{utils-C0OW2678.js → utils-CffiyuTo.js} +2 -3
  60. package/dist/frontend/{utils-D8kmM3ub.js → utils-hzdMVeCv.js} +2 -3
  61. package/dist/frontend/utils.js +1 -1
  62. package/dist/frontend/x-CzBsnJ2x.js +25 -0
  63. package/dist/frontend-ssr/api/attachments.js +2 -0
  64. package/dist/frontend-ssr/api/categories.js +2 -0
  65. package/dist/frontend-ssr/api/documents.js +2 -0
  66. package/dist/frontend-ssr/api/folders.js +2 -0
  67. package/dist/frontend-ssr/api/settings.js +2 -0
  68. package/dist/frontend-ssr/api/share.js +2 -0
  69. package/dist/frontend-ssr/api/tags.js +2 -0
  70. package/dist/frontend-ssr/assets/CategoryDialog-C2xaZKHq.js +584 -0
  71. package/dist/frontend-ssr/assets/ConfirmDialog-DjMFKc0V.js +420 -0
  72. package/dist/frontend-ssr/assets/CreateSnapshotDialog-BRw1xJW1.js +214 -0
  73. package/dist/frontend-ssr/assets/DatePicker-DnXniwlZ.js +312 -0
  74. package/dist/frontend-ssr/assets/DeleteDialog-BCfZy3Zn.js +154 -0
  75. package/dist/frontend-ssr/assets/FolderDialog-Dq7I2cKZ.js +429 -0
  76. package/dist/frontend-ssr/assets/FolderNode-DRfBfpft.js +171 -0
  77. package/dist/frontend-ssr/assets/FolderTreeSelector-DZNZ2oI6.js +147 -0
  78. package/dist/frontend-ssr/assets/Icon-B0Zqppjo.js +231 -0
  79. package/dist/frontend-ssr/assets/SettingsDialog-CX8Noa8A.js +1107 -0
  80. package/dist/frontend-ssr/assets/ShareDialog-Cge49ZdJ.js +54 -0
  81. package/dist/frontend-ssr/assets/TagCreateDialog-EAChgBF-.js +264 -0
  82. package/dist/frontend-ssr/assets/api-keys-DFqX39MT.js +35 -0
  83. package/dist/frontend-ssr/assets/attachments-CWBxE3Vz.js +85 -0
  84. package/dist/frontend-ssr/assets/auth-client-x26kqY8Z.js +1286 -0
  85. package/dist/frontend-ssr/assets/camera-CdxscTw-.js +84 -0
  86. package/dist/frontend-ssr/assets/categories-AOqgcsn4.js +75 -0
  87. package/dist/frontend-ssr/assets/chevron-down-CSSNGNh_.js +80 -0
  88. package/dist/frontend-ssr/assets/chevron-right-B4p7Sk6X.js +80 -0
  89. package/dist/frontend-ssr/assets/circle-check-CI1v4vYh.js +84 -0
  90. package/dist/frontend-ssr/assets/client-DZMkDkDn.js +129 -0
  91. package/dist/frontend-ssr/assets/clipboard-CXOaoz2W.js +30 -0
  92. package/dist/frontend-ssr/assets/clock-IL-eX2di.js +84 -0
  93. package/dist/frontend-ssr/assets/context-jz1GGEUi.js +45 -0
  94. package/dist/frontend-ssr/assets/copy-CjV57nGQ.js +87 -0
  95. package/dist/frontend-ssr/assets/db-CnxeO66n.js +65 -0
  96. package/dist/frontend-ssr/assets/dialog-BOV1u6zP.js +157 -0
  97. package/dist/frontend-ssr/assets/dndzone-DMvTO_Jz.js +2114 -0
  98. package/dist/frontend-ssr/assets/document-drop-coordinator-CEaYACsC.js +109 -0
  99. package/dist/frontend-ssr/assets/documents-BnOTRdTY.js +108 -0
  100. package/dist/frontend-ssr/assets/editorExtensions-DUzwndMy.js +186 -0
  101. package/dist/frontend-ssr/assets/ellipsis-vertical-C-0hgkZn.js +555 -0
  102. package/dist/frontend-ssr/assets/floating-layer-anchor-uzw9K8qN.js +6114 -0
  103. package/dist/frontend-ssr/assets/folder-DChhG7qN.js +80 -0
  104. package/dist/frontend-ssr/assets/folders-CTfbS24J.js +127 -0
  105. package/dist/frontend-ssr/assets/identity-B3uHoDtf.js +99 -0
  106. package/dist/frontend-ssr/assets/input-DezGsU3y.js +19 -0
  107. package/dist/frontend-ssr/assets/keyboard.svelte-BgF47N3L.js +174 -0
  108. package/dist/frontend-ssr/assets/label-Bj8-TfFN.js +21 -0
  109. package/dist/frontend-ssr/assets/loader-circle-DZsrZ-er.js +80 -0
  110. package/dist/frontend-ssr/assets/markdown-CjqvGi5W.js +20 -0
  111. package/dist/frontend-ssr/assets/messages-DhXqlcJI.js +11125 -0
  112. package/dist/frontend-ssr/assets/resolve-BqHozBXl.js +32 -0
  113. package/dist/frontend-ssr/assets/rotate-ccw-BlgWwaiq.js +80 -0
  114. package/dist/frontend-ssr/assets/select-value-DngdSmLI.js +1526 -0
  115. package/dist/frontend-ssr/assets/settings-E6qSAWM2.js +64 -0
  116. package/dist/frontend-ssr/assets/share-BTBJelxA.js +30 -0
  117. package/dist/frontend-ssr/assets/subfolders-refresh-store.svelte-DAh4gT16.js +77 -0
  118. package/dist/frontend-ssr/assets/tag-GZEuGWk1.js +166 -0
  119. package/dist/frontend-ssr/assets/tag-store.svelte-DPodKj6Z.js +21 -0
  120. package/dist/frontend-ssr/assets/tags-BId2wdYd.js +49 -0
  121. package/dist/frontend-ssr/assets/textarea-Dev-qSEc.js +21 -0
  122. package/dist/frontend-ssr/assets/theme.svelte-Co0-ssaD.js +67 -0
  123. package/dist/frontend-ssr/assets/utils-DtlPPXpJ.js +9 -0
  124. package/dist/frontend-ssr/assets/utils-DvZnctjz.js +23 -0
  125. package/dist/frontend-ssr/collaboration.js +39 -0
  126. package/dist/frontend-ssr/components/category-dialog.js +2 -0
  127. package/dist/frontend-ssr/components/create-snapshot-dialog.js +2 -0
  128. package/dist/frontend-ssr/components/delete-dialog.js +2 -0
  129. package/dist/frontend-ssr/components/editor/document-editor.js +2499 -0
  130. package/dist/frontend-ssr/components/editor/document-title.js +11 -0
  131. package/dist/frontend-ssr/components/editor/docx-serializer.js +186 -0
  132. package/dist/frontend-ssr/components/editor/extensions.js +2 -0
  133. package/dist/frontend-ssr/components/editor/markdown-toggle.js +20 -0
  134. package/dist/frontend-ssr/components/editor/markdown.js +2 -0
  135. package/dist/frontend-ssr/components/folder-node.js +2 -0
  136. package/dist/frontend-ssr/components/folder-tree-selector.js +2 -0
  137. package/dist/frontend-ssr/components/save-as-dialog.js +280 -0
  138. package/dist/frontend-ssr/components/settings.js +2 -0
  139. package/dist/frontend-ssr/components/share-dialog.js +2 -0
  140. package/dist/frontend-ssr/components/sidebar.js +2033 -0
  141. package/dist/frontend-ssr/components/tag-create-dialog.js +2 -0
  142. package/dist/frontend-ssr/components/version-history.js +370 -0
  143. package/dist/frontend-ssr/dashboard.js +2542 -0
  144. package/dist/frontend-ssr/doc-tabs.js +23 -0
  145. package/dist/frontend-ssr/document-drop-coordinator.js +2 -0
  146. package/dist/frontend-ssr/extension.js +13 -0
  147. package/dist/frontend-ssr/folder-refresh.js +2 -0
  148. package/dist/frontend-ssr/i18n.js +10 -0
  149. package/dist/frontend-ssr/keyboard.js +2 -0
  150. package/dist/frontend-ssr/offline/identity.js +2 -0
  151. package/dist/frontend-ssr/search.js +332 -0
  152. package/dist/frontend-ssr/shared-document.js +273 -0
  153. package/dist/frontend-ssr/theme.js +9 -0
  154. package/dist/frontend-ssr/types.js +1 -0
  155. package/dist/frontend-ssr/utils/clipboard.js +2 -0
  156. package/dist/frontend-ssr/utils/dndzone.js +2 -0
  157. package/dist/frontend-ssr/utils.js +2 -0
  158. package/package.json +22 -1
  159. package/packages/cli/src/index.ts +1 -1
  160. package/packages/db/src/schema.ts +3 -0
  161. package/packages/mcp-server/src/index.ts +1 -1
  162. package/dist/frontend/CategoryDialog--rIE7FrH.js +0 -580
  163. package/dist/frontend/ConfirmDialog-Cpzyb55f.js +0 -212
  164. package/dist/frontend/CreateSnapshotDialog-CmkV-n2A.js +0 -216
  165. package/dist/frontend/DatePicker-Byynca7V.js +0 -257
  166. package/dist/frontend/DeleteDialog-ap6nOywZ.js +0 -174
  167. package/dist/frontend/FolderDialog-DmN_trV0.js +0 -247
  168. package/dist/frontend/FolderNode-C4B8a2fd.js +0 -317
  169. package/dist/frontend/FolderTreeSelector-D6ijiZTA.js +0 -100
  170. package/dist/frontend/Icon-DtNo0N1U.js +0 -64
  171. package/dist/frontend/SettingsDialog-2kTaTXAs.js +0 -992
  172. package/dist/frontend/ShareDialog-BBDGNF5n.js +0 -165
  173. package/dist/frontend/TagCreateDialog-DiLZnJo4.js +0 -258
  174. package/dist/frontend/camera-B7dAOd4s.js +0 -28
  175. package/dist/frontend/check-CDwRlG9T.js +0 -24
  176. package/dist/frontend/chevron-down-B7ZrjUmT.js +0 -24
  177. package/dist/frontend/circle-check-CDqeMB2d.js +0 -28
  178. package/dist/frontend/client-Bc5Fzx40.js +0 -2785
  179. package/dist/frontend/clock-Ck5Sn-Zl.js +0 -28
  180. package/dist/frontend/clsx-nmtDPO_P.js +0 -16
  181. package/dist/frontend/copy-CMAA6GP0.js +0 -31
  182. package/dist/frontend/dialog-BDkiG42a.js +0 -213
  183. package/dist/frontend/disclose-version-5I57E3LD.js +0 -3
  184. package/dist/frontend/ellipsis-vertical-BBuPldbW.js +0 -519
  185. package/dist/frontend/folder-TQjKY4yn.js +0 -44
  186. package/dist/frontend/index-client-jobkrWVL.js +0 -86
  187. package/dist/frontend/input-CBI6p4Xl.js +0 -23
  188. package/dist/frontend/label-C-GkhEp4.js +0 -30
  189. package/dist/frontend/rotate-ccw-CleZtJ5D.js +0 -24
  190. package/dist/frontend/select-value-CvrWRkXW.js +0 -1436
  191. package/dist/frontend/subfolders-refresh-store.svelte-BsheoQma.js +0 -65
  192. package/dist/frontend/tag-Dx3SmucJ.js +0 -53
  193. package/dist/frontend/tag-store.svelte-CIaF4sdZ.js +0 -29
  194. package/dist/frontend/textarea-Dfp78XlL.js +0 -23
  195. package/dist/frontend/theme.svelte-CROg1Hi5.js +0 -49
  196. package/dist/frontend/x-DaTdeDXv.js +0 -24
@@ -1,212 +0,0 @@
1
- import "./disclose-version-5I57E3LD.js";
2
- import { $ as e, A as t, B as n, E as r, F as i, H as a, K as o, M as s, N as c, Q as l, R as u, S as d, T as f, V as p, Z as m, _t as h, a as g, at as _, ct as v, dt as y, et as b, ft as x, gt as S, i as C, j as w, k as T, l as E, n as D, rt as O, t as k, w as A, y as j, yt as M } from "./client-Bc5Fzx40.js";
3
- import { a as N, i as P, n as F, o as I, r as L, t as R } from "./dialog-BDkiG42a.js";
4
- import "./Icon-DtNo0N1U.js";
5
- import { t as z } from "./textarea-Dfp78XlL.js";
6
- //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/defaultAttributes.js
7
- var B = {
8
- xmlns: "http://www.w3.org/2000/svg",
9
- width: 24,
10
- height: 24,
11
- viewBox: "0 0 24 24",
12
- fill: "none",
13
- stroke: "currentColor",
14
- "stroke-width": 2,
15
- "stroke-linecap": "round",
16
- "stroke-linejoin": "round"
17
- }, V = (e) => {
18
- for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
19
- return !1;
20
- }, H = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), U = c("<svg><!><!></svg>");
21
- function W(r, i) {
22
- let o = k(i, [
23
- "children",
24
- "$$slots",
25
- "$$events",
26
- "$$legacy"
27
- ]), s = k(o, [
28
- "name",
29
- "color",
30
- "size",
31
- "strokeWidth",
32
- "absoluteStrokeWidth",
33
- "iconNode"
34
- ]);
35
- x(i, !1);
36
- let c = D(i, "name", 8, void 0), u = D(i, "color", 8, "currentColor"), m = D(i, "size", 8, 24), _ = D(i, "strokeWidth", 8, 2), S = D(i, "absoluteStrokeWidth", 8, !1), C = D(i, "iconNode", 24, () => []);
37
- g();
38
- var T = U();
39
- E(T, (e, t, n) => ({
40
- ...B,
41
- ...e,
42
- ...s,
43
- width: m(),
44
- height: m(),
45
- stroke: u(),
46
- "stroke-width": t,
47
- class: n
48
- }), [
49
- () => V(s) ? void 0 : { "aria-hidden": "true" },
50
- () => (n(S()), n(_()), n(m()), a(() => S() ? Number(_()) * 24 / Number(m()) : _())),
51
- () => (n(H), n(c()), n(o), a(() => H("lucide-icon", "lucide", c() ? `lucide-${c()}` : "", o.class)))
52
- ]);
53
- var O = l(T);
54
- A(O, 1, C, f, (n, r) => {
55
- var i = v(() => M(p(r), 2));
56
- let a = () => p(i)[0], o = () => p(i)[1];
57
- var s = w();
58
- j(e(s), a, !0, (e, t) => {
59
- E(e, () => ({ ...o() }));
60
- }), t(n, s);
61
- }), d(b(O), i, "default", {}, null), h(T), t(r, T), y();
62
- }
63
- //#endregion
64
- //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/loader-circle.svelte
65
- function G(n, r) {
66
- let i = k(r, [
67
- "children",
68
- "$$slots",
69
- "$$events",
70
- "$$legacy"
71
- ]), a = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }]];
72
- W(n, C({ name: "loader-circle" }, () => i, {
73
- get iconNode() {
74
- return a;
75
- },
76
- children: (n, i) => {
77
- var a = w();
78
- d(e(a), r, "default", {}, null), t(n, a);
79
- },
80
- $$slots: { default: !0 }
81
- }));
82
- }
83
- //#endregion
84
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/confirm-dialog/ConfirmDialog.svelte
85
- var K = s("<!> <!>", 1), q = s("<div class=\"grid gap-2 py-2\"><label for=\"confirm-dialog-reason\" class=\"text-sm font-medium\"> </label> <!></div>"), J = s("<!> ", 1), Y = s("<!> <!> <!>", 1);
86
- function X(n, a) {
87
- x(a, !0);
88
- let s = D(a, "open", 15, !1), c = D(a, "confirmLabel", 3, "Confirm"), d = D(a, "cancelLabel", 3, "Cancel"), f = D(a, "variant", 3, "default"), g = D(a, "busy", 3, !1), C = D(a, "requireReason", 3, !1), w = D(a, "reasonLabel", 3, "Reason"), E = D(a, "reasonPlaceholder", 3, "Provide a reason..."), k = _(""), A = v(() => C() && p(k).trim().length === 0);
89
- function j() {
90
- O(k, "");
91
- }
92
- function M() {
93
- p(A) || (a.onConfirm?.(C() ? p(k) : void 0), j());
94
- }
95
- function B() {
96
- g() || (s(!1), a.onCancel?.(), j());
97
- }
98
- function V(e) {
99
- e.key === "Escape" && !g() && s() && (e.preventDefault(), B());
100
- }
101
- u("keydown", m, V), N(n, {
102
- onOpenChange: (e) => {
103
- e || (j(), a.onCancel?.());
104
- },
105
- get open() {
106
- return s();
107
- },
108
- set open(e) {
109
- s(e);
110
- },
111
- children: (n, s) => {
112
- var u = Y(), m = e(u);
113
- F(m, {
114
- children: (n, s) => {
115
- var c = K(), l = e(c);
116
- R(l, {
117
- children: (e, n) => {
118
- S();
119
- var r = i();
120
- o(() => T(r, a.title)), t(e, r);
121
- },
122
- $$slots: { default: !0 }
123
- });
124
- var u = b(l, 2), d = (e) => {
125
- P(e, {
126
- children: (e, n) => {
127
- S();
128
- var r = i();
129
- o(() => T(r, a.description)), t(e, r);
130
- },
131
- $$slots: { default: !0 }
132
- });
133
- };
134
- r(u, (e) => {
135
- a.description && e(d);
136
- }), t(n, c);
137
- },
138
- $$slots: { default: !0 }
139
- });
140
- var _ = b(m, 2), y = (e) => {
141
- var n = q(), r = l(n), i = l(r, !0);
142
- h(r), z(b(r, 2), {
143
- id: "confirm-dialog-reason",
144
- rows: 3,
145
- get placeholder() {
146
- return E();
147
- },
148
- get disabled() {
149
- return g();
150
- },
151
- get value() {
152
- return p(k);
153
- },
154
- set value(e) {
155
- O(k, e, !0);
156
- }
157
- }), h(n), o(() => T(i, w())), t(e, n);
158
- };
159
- r(_, (e) => {
160
- C() && e(y);
161
- }), L(b(_, 2), {
162
- children: (n, a) => {
163
- var s = K(), l = e(s);
164
- I(l, {
165
- variant: "outline",
166
- type: "button",
167
- onclick: B,
168
- get disabled() {
169
- return g();
170
- },
171
- children: (e, n) => {
172
- S();
173
- var r = i();
174
- o(() => T(r, d())), t(e, r);
175
- },
176
- $$slots: { default: !0 }
177
- });
178
- var u = b(l, 2);
179
- {
180
- let n = v(() => f() === "destructive" ? "destructive" : "default"), i = v(() => g() || p(A));
181
- I(u, {
182
- type: "button",
183
- get variant() {
184
- return p(n);
185
- },
186
- onclick: M,
187
- get disabled() {
188
- return p(i);
189
- },
190
- children: (n, i) => {
191
- var a = J(), s = e(a), l = (e) => {
192
- G(e, { class: "mr-1 size-4 animate-spin" });
193
- };
194
- r(s, (e) => {
195
- g() && e(l);
196
- });
197
- var u = b(s);
198
- o(() => T(u, ` ${c() ?? ""}`)), t(n, a);
199
- },
200
- $$slots: { default: !0 }
201
- });
202
- }
203
- t(n, s);
204
- },
205
- $$slots: { default: !0 }
206
- }), t(n, u);
207
- },
208
- $$slots: { default: !0 }
209
- }), y();
210
- }
211
- //#endregion
212
- export { X as t };
@@ -1,216 +0,0 @@
1
- import "./disclose-version-5I57E3LD.js";
2
- import { $ as e, A as t, E as n, F as r, K as i, M as a, Q as o, R as s, V as c, _t as l, at as u, ct as d, dt as f, et as p, ft as m, gt as h, j as g, k as _, n as v, rt as y } from "./client-Bc5Fzx40.js";
3
- import { t as b } from "./loader-circle-Bk-WFz9g.js";
4
- import { a as x, i as S, n as C, o as w, r as ee, t as T } from "./dialog-BDkiG42a.js";
5
- import { t as te } from "./textarea-Dfp78XlL.js";
6
- import { n as E, t as D } from "./client-GbtOH90i.js";
7
- import { $t as ne, Qt as O, an as k, en as A, in as j, nn as M, qt as N, rn as re, rr as P, tn as ie, tr as F, z as I } from "./messages-BpYaLbzE.js";
8
- import { t as L } from "./input-CBI6p4Xl.js";
9
- //#region src/lib/components/CreateSnapshotDialog.svelte
10
- var R = a("<!> <!>", 1), z = a("<p id=\"snapshot-label-error\" class=\"text-xs text-destructive\"> </p>"), B = a("<p class=\"text-xs text-destructive\" role=\"alert\"> </p>"), V = a("<!> ", 1), H = a("<!> <form class=\"space-y-4\"><div class=\"space-y-2\"><label for=\"snapshot-label\" class=\"text-sm font-medium\"> </label> <!> <!></div> <div class=\"space-y-2\"><label for=\"snapshot-description\" class=\"text-sm font-medium\"> </label> <!></div> <!></form> <!>", 1);
11
- function U(a, U) {
12
- m(U, !0);
13
- let W = v(U, "open", 15, !1), G = u(""), K = u(""), q = u(null), J = u(null), Y = u(!1);
14
- function X() {
15
- y(G, ""), y(K, ""), y(q, null), y(J, null), y(Y, !1);
16
- }
17
- function ae() {
18
- c(Y) || (W(!1), X());
19
- }
20
- function Z(e) {
21
- e ? X() : c(Y) || (W(!1), X());
22
- }
23
- function Q(e) {
24
- if (e?.preventDefault(), c(Y)) return;
25
- let t = c(G).trim();
26
- if (t.length === 0) {
27
- y(q, k(), !0);
28
- return;
29
- }
30
- if (t.length > 100) {
31
- y(q, I(), !0);
32
- return;
33
- }
34
- let n = c(K).trim();
35
- if (n.length > 500) {
36
- y(J, I(), !0);
37
- return;
38
- }
39
- $(t, n);
40
- }
41
- async function $(e, t) {
42
- y(Y, !0), y(q, null), y(J, null);
43
- try {
44
- let n = { label: e };
45
- t.length > 0 && (n.description = t), await E(`/api/documents/${U.documentId}/versions`, {
46
- method: "POST",
47
- body: JSON.stringify(n)
48
- }), U.onSuccess?.(), W(!1), X();
49
- } catch (e) {
50
- e instanceof D ? y(J, `${N()}: ${e.message}`) : y(J, e instanceof Error ? e.message : P(), !0), console.error("CreateSnapshotDialog: failed", e);
51
- } finally {
52
- y(Y, !1);
53
- }
54
- }
55
- function oe(e) {
56
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q());
57
- }
58
- x(a, {
59
- onOpenChange: Z,
60
- get open() {
61
- return W();
62
- },
63
- set open(e) {
64
- W(e);
65
- },
66
- children: (a, u) => {
67
- var f = H(), m = e(f);
68
- C(m, {
69
- children: (n, a) => {
70
- var o = R(), s = e(o);
71
- T(s, {
72
- children: (e, n) => {
73
- h();
74
- var a = r();
75
- i((e) => _(a, e), [() => ne()]), t(e, a);
76
- },
77
- $$slots: { default: !0 }
78
- }), S(p(s, 2), {
79
- children: (e, n) => {
80
- h();
81
- var a = r();
82
- i((e) => _(a, e), [() => O()]), t(e, a);
83
- },
84
- $$slots: { default: !0 }
85
- }), t(n, o);
86
- },
87
- $$slots: { default: !0 }
88
- });
89
- var v = p(m, 2), x = o(v), E = o(x), D = o(E, !0);
90
- l(E);
91
- var N = p(E, 2);
92
- {
93
- let e = d(() => re()), t = d(() => c(q) ? "true" : void 0), n = d(() => c(q) ? "snapshot-label-error" : void 0);
94
- L(N, {
95
- id: "snapshot-label",
96
- name: "label",
97
- type: "text",
98
- get placeholder() {
99
- return c(e);
100
- },
101
- maxlength: 100,
102
- required: !0,
103
- get disabled() {
104
- return c(Y);
105
- },
106
- get "aria-invalid"() {
107
- return c(t);
108
- },
109
- get "aria-describedby"() {
110
- return c(n);
111
- },
112
- autocomplete: "off",
113
- onkeydown: oe,
114
- get value() {
115
- return c(G);
116
- },
117
- set value(e) {
118
- y(G, e, !0);
119
- }
120
- });
121
- }
122
- var P = p(N, 2), I = (e) => {
123
- var n = z(), r = o(n, !0);
124
- l(n), i(() => _(r, c(q))), t(e, n);
125
- };
126
- n(P, (e) => {
127
- c(q) && e(I);
128
- }), l(x);
129
- var U = p(x, 2), W = o(U), X = o(W, !0);
130
- l(W);
131
- var Z = p(W, 2);
132
- {
133
- let e = d(() => M());
134
- te(Z, {
135
- id: "snapshot-description",
136
- name: "description",
137
- get placeholder() {
138
- return c(e);
139
- },
140
- maxlength: 500,
141
- rows: 3,
142
- get disabled() {
143
- return c(Y);
144
- },
145
- get value() {
146
- return c(K);
147
- },
148
- set value(e) {
149
- y(K, e, !0);
150
- }
151
- });
152
- }
153
- l(U);
154
- var $ = p(U, 2), se = (e) => {
155
- var n = B(), r = o(n, !0);
156
- l(n), i(() => _(r, c(J))), t(e, n);
157
- };
158
- n($, (e) => {
159
- c(J) && e(se);
160
- }), l(v), ee(p(v, 2), {
161
- children: (a, o) => {
162
- var s = R(), l = e(s);
163
- w(l, {
164
- variant: "outline",
165
- type: "button",
166
- onclick: ae,
167
- get disabled() {
168
- return c(Y);
169
- },
170
- children: (e, n) => {
171
- h();
172
- var a = r();
173
- i((e) => _(a, e), [() => F()]), t(e, a);
174
- },
175
- $$slots: { default: !0 }
176
- });
177
- var u = p(l, 2);
178
- {
179
- let a = d(() => c(Y) || c(G).trim().length === 0);
180
- w(u, {
181
- type: "button",
182
- onclick: () => Q(),
183
- get disabled() {
184
- return c(a);
185
- },
186
- children: (a, o) => {
187
- var s = g(), l = e(s), u = (n) => {
188
- var r = V(), a = e(r);
189
- b(a, { class: "mr-1 size-4 animate-spin" });
190
- var o = p(a);
191
- i((e) => _(o, ` ${e ?? ""}`), [() => A()]), t(n, r);
192
- }, d = (e) => {
193
- var n = r();
194
- i((e) => _(n, e), [() => ie()]), t(e, n);
195
- };
196
- n(l, (e) => {
197
- c(Y) ? e(u) : e(d, -1);
198
- }), t(a, s);
199
- },
200
- $$slots: { default: !0 }
201
- });
202
- }
203
- t(a, s);
204
- },
205
- $$slots: { default: !0 }
206
- }), i((e, t) => {
207
- _(D, e), _(X, t);
208
- }, [() => k(), () => j()]), s("submit", v, (e) => {
209
- e.preventDefault(), Q();
210
- }), t(a, f);
211
- },
212
- $$slots: { default: !0 }
213
- }), f();
214
- }
215
- //#endregion
216
- export { U as t };
@@ -1,257 +0,0 @@
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, O as s, Q as c, S as l, T as u, V as d, _t as f, at as p, ct as m, d as h, dt as g, et as _, ft as v, g as y, h as b, i as x, j as S, k as C, l as w, n as T, o as E, q as D, r as O, rt as k, t as A, tt as j, w as M } from "./client-Bc5Fzx40.js";
3
- import { n as N } from "./loader-circle-Bk-WFz9g.js";
4
- import { t as P } from "./utils-D8kmM3ub.js";
5
- import { t as F } from "./Icon-DtNo0N1U.js";
6
- import { n as ee } from "./folder-TQjKY4yn.js";
7
- import { $ as te, B as ne, G as re, H as ie, J as ae, K as oe, Q as se, U as ce, V as le, W as ue, X as de, Y as fe, Z as pe, at as I, ct as L, et as R, it as z, lt as B, nt as me, ot as he, q as ge, rt as _e, st as ve, tt as ye } from "./messages-BpYaLbzE.js";
8
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/badge.svelte
9
- var V = /* @__PURE__ */ new Set([
10
- "$$slots",
11
- "$$events",
12
- "$$legacy",
13
- "ref",
14
- "class",
15
- "variant",
16
- "children"
17
- ]), H = o("<div><!></div>");
18
- function U(r, i) {
19
- v(i, !0);
20
- let a = T(i, "ref", 15, null), o = T(i, "variant", 3, "default"), l = O(i, V);
21
- var u = H();
22
- w(u, (e) => ({
23
- class: e,
24
- ...l
25
- }), [() => P(W({ variant: o() }), i.class)]);
26
- var d = c(u), p = (n) => {
27
- var r = S();
28
- s(e(r), () => i.children), t(n, r);
29
- };
30
- n(d, (e) => {
31
- i.children && e(p);
32
- }), f(u), E(u, (e) => a(e), () => a()), t(r, u), g();
33
- }
34
- //#endregion
35
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/index.js
36
- var W = N({
37
- 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",
38
- variants: { variant: {
39
- default: "border-transparent bg-primary text-primary-foreground shadow",
40
- secondary: "border-transparent bg-secondary text-secondary-foreground",
41
- destructive: "border-transparent bg-destructive text-destructive-foreground shadow",
42
- outline: "text-foreground"
43
- } },
44
- defaultVariants: { variant: "default" }
45
- });
46
- //#endregion
47
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/calendar.svelte
48
- function G(n, r) {
49
- let i = A(r, [
50
- "children",
51
- "$$slots",
52
- "$$events",
53
- "$$legacy"
54
- ]), a = [
55
- ["path", { d: "M8 2v4" }],
56
- ["path", { d: "M16 2v4" }],
57
- ["rect", {
58
- width: "18",
59
- height: "18",
60
- x: "3",
61
- y: "4",
62
- rx: "2"
63
- }],
64
- ["path", { d: "M3 10h18" }]
65
- ];
66
- F(n, x({ name: "calendar" }, () => i, {
67
- get iconNode() {
68
- return a;
69
- },
70
- children: (n, i) => {
71
- var a = S();
72
- l(e(a), r, "default", {}, null), t(n, a);
73
- },
74
- $$slots: { default: !0 }
75
- }));
76
- }
77
- //#endregion
78
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/chevron-left.svelte
79
- function K(n, r) {
80
- let i = A(r, [
81
- "children",
82
- "$$slots",
83
- "$$events",
84
- "$$legacy"
85
- ]), a = [["path", { d: "m15 18-6-6 6-6" }]];
86
- F(n, x({ name: "chevron-left" }, () => i, {
87
- get iconNode() {
88
- return a;
89
- },
90
- children: (n, i) => {
91
- var a = S();
92
- l(e(a), r, "default", {}, null), t(n, a);
93
- },
94
- $$slots: { default: !0 }
95
- }));
96
- }
97
- //#endregion
98
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/folder-kanban.svelte
99
- function q(n, r) {
100
- let i = A(r, [
101
- "children",
102
- "$$slots",
103
- "$$events",
104
- "$$legacy"
105
- ]), a = [
106
- ["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" }],
107
- ["path", { d: "M8 10v4" }],
108
- ["path", { d: "M12 10v2" }],
109
- ["path", { d: "M16 10v6" }]
110
- ];
111
- F(n, x({ name: "folder-kanban" }, () => i, {
112
- get iconNode() {
113
- return a;
114
- },
115
- children: (n, i) => {
116
- var a = S();
117
- l(e(a), r, "default", {}, null), t(n, a);
118
- },
119
- $$slots: { default: !0 }
120
- }));
121
- }
122
- //#endregion
123
- //#region src/lib/components/DatePicker.svelte
124
- var be = o("<span class=\"dp-weekday svelte-zmry26\"> </span>"), xe = o("<span class=\"dp-empty svelte-zmry26\"></span>"), Se = o("<button type=\"button\"> </button>"), Ce = o("<button type=\"button\" class=\"dp-clear svelte-zmry26\"> </button>"), we = o("<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>"), Te = o("<div class=\"datepicker svelte-zmry26\"><button type=\"button\" aria-haspopup=\"dialog\" class=\"dp-trigger svelte-zmry26\"><!> <span> </span></button> <!></div>");
125
- function J(r, o) {
126
- v(o, !0);
127
- let s = T(o, "value", 15, ""), l = T(o, "ariaLabel", 19, () => ie()), x = T(o, "placeholder", 19, () => ue()), w = p(!1), O = p(null), A = [
128
- pe(),
129
- de(),
130
- fe(),
131
- ae(),
132
- ge(),
133
- oe(),
134
- re()
135
- ], N = [
136
- B(),
137
- L(),
138
- ve(),
139
- he(),
140
- I(),
141
- z(),
142
- _e(),
143
- me(),
144
- ye(),
145
- R(),
146
- te(),
147
- se()
148
- ];
149
- function P(e) {
150
- return String(e).padStart(2, "0");
151
- }
152
- function F(e) {
153
- let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
154
- return t ? {
155
- y: Number(t[1]),
156
- m: Number(t[2]) - 1,
157
- d: Number(t[3])
158
- } : null;
159
- }
160
- let V = /* @__PURE__ */ new Date(), H = p(j(V.getFullYear())), U = p(j(V.getMonth()));
161
- D(() => {
162
- if (d(w)) {
163
- let e = F(s());
164
- e && (k(H, e.y, !0), k(U, e.m, !0));
165
- }
166
- });
167
- let W = m(() => F(s()));
168
- function q() {
169
- let e = (new Date(d(H), d(U), 1).getDay() + 6) % 7, t = new Date(d(H), d(U) + 1, 0).getDate(), n = [];
170
- for (let t = 0; t < e; t++) n.push(null);
171
- for (let e = 1; e <= t; e++) n.push(e);
172
- return n;
173
- }
174
- function J(e) {
175
- return e === V.getDate() && d(U) === V.getMonth() && d(H) === V.getFullYear();
176
- }
177
- function Ee(e) {
178
- return d(W) !== null && d(W).y === d(H) && d(W).m === d(U) && d(W).d === e;
179
- }
180
- function De(e) {
181
- s(`${d(H)}-${P(d(U) + 1)}-${P(e)}`), k(w, !1), o.onchange?.();
182
- }
183
- function Y() {
184
- s(""), k(w, !1), o.onchange?.();
185
- }
186
- function Oe() {
187
- d(U) === 0 ? (k(U, 11), k(H, d(H) - 1)) : k(U, d(U) - 1);
188
- }
189
- function ke() {
190
- d(U) === 11 ? (k(U, 0), k(H, d(H) + 1)) : k(U, d(U) + 1);
191
- }
192
- D(() => {
193
- if (!d(w)) return;
194
- function e(e) {
195
- d(O) && !d(O).contains(e.target) && k(w, !1);
196
- }
197
- function t(e) {
198
- e.key === "Escape" && k(w, !1);
199
- }
200
- return document.addEventListener("pointerdown", e), document.addEventListener("keydown", t), () => {
201
- document.removeEventListener("pointerdown", e), document.removeEventListener("keydown", t);
202
- };
203
- });
204
- var X = Te(), Z = c(X), Q = c(Z);
205
- G(Q, { class: "size-3.5 shrink-0 opacity-70" });
206
- var $ = _(Q, 2), Ae = c($, !0);
207
- f($), f(Z);
208
- var je = _(Z, 2), Me = (r) => {
209
- var o = we(), p = c(o), m = c(p);
210
- K(c(m), { class: "size-4" }), f(m);
211
- var g = _(m, 2), v = c(g);
212
- f(g);
213
- var y = _(g, 2);
214
- ee(c(y), { class: "size-4" }), f(y), f(p);
215
- var x = _(p, 2);
216
- M(x, 20, () => A, (e) => e, (e, n) => {
217
- var r = be(), a = c(r, !0);
218
- f(r), i(() => C(a, n)), t(e, r);
219
- }), f(x);
220
- var w = _(x, 2);
221
- M(w, 21, q, u, (r, o) => {
222
- var s = S(), l = e(s), u = (e) => {
223
- t(e, xe());
224
- }, p = (e) => {
225
- var n = Se();
226
- let r;
227
- var s = c(n, !0);
228
- f(n), i((e) => {
229
- r = b(n, 1, "dp-day svelte-zmry26", null, r, e), C(s, d(o));
230
- }, [() => ({
231
- selected: Ee(d(o)),
232
- today: J(d(o))
233
- })]), a("click", n, () => De(d(o))), t(e, n);
234
- };
235
- n(l, (e) => {
236
- d(o) === null ? e(u) : e(p, -1);
237
- }), t(r, s);
238
- }), f(w);
239
- var T = _(w, 2), E = (e) => {
240
- var n = Ce(), r = c(n, !0);
241
- f(n), i((e) => C(r, e), [() => ce()]), a("click", n, Y), t(e, n);
242
- };
243
- n(T, (e) => {
244
- s() && e(E);
245
- }), f(o), i((e, t) => {
246
- h(o, "aria-label", l()), h(m, "aria-label", e), C(v, `${N[d(U)] ?? ""} ${d(H) ?? ""}`), h(y, "aria-label", t);
247
- }, [() => le(), () => ne()]), a("click", m, Oe), a("click", y, ke), t(r, o);
248
- };
249
- n(je, (e) => {
250
- d(w) && e(Me);
251
- }), f(X), E(X, (e) => k(O, e), () => d(O)), i(() => {
252
- h(Z, "id", o.id), h(Z, "aria-label", l()), h(Z, "aria-expanded", d(w)), b($, 1, y(s() ? "" : "dp-placeholder"), "svelte-zmry26"), C(Ae, s() || x());
253
- }), a("click", Z, () => k(w, !d(w))), t(r, X), g();
254
- }
255
- r(["click"]);
256
- //#endregion
257
- export { U as a, G as i, q as n, K as r, J as t };