@hiai-gg/docsmint 0.4.9 → 0.5.1

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 (142) hide show
  1. package/backend/src/lib/api-key-facade.ts +1 -0
  2. package/dist/backend/index.js +38379 -18500
  3. package/dist/backend-api-key-facade.js +23 -0
  4. package/dist/client.js +2 -7
  5. package/dist/frontend/{CategoryDialog-CxVyaBV5.js → CategoryDialog-DmlX0Z97.js} +109 -108
  6. package/dist/frontend/ConfirmDialog-DgMTQBq4.js +134 -0
  7. package/dist/frontend/{CreateSnapshotDialog-BDgFTeFn.js → CreateSnapshotDialog-CXW4sCuf.js} +29 -29
  8. package/dist/frontend/DatePicker-D6E-EEtZ.js +340 -0
  9. package/dist/frontend/{DeleteDialog-CvAr2WPu.js → DeleteDialog-8k6JYWCx.js} +3 -3
  10. package/dist/frontend/{FolderNode--l1g8bcL.js → FolderNode-D3rN3yLV.js} +8 -8
  11. package/dist/frontend/{FolderTreeSelector-CyB8y2Sm.js → FolderTreeSelector-BMB1MS9N.js} +3 -3
  12. package/dist/frontend/{Icon-CooFj4Ee.js → Icon-Db-o32_E.js} +1 -1
  13. package/dist/frontend/{SettingsDialog-BB7h7GWw.js → SettingsDialog-DEx1eEZm.js} +290 -290
  14. package/dist/frontend/ShareDialog-uEf8Ks02.js +166 -0
  15. package/dist/frontend/Sidebar-BthP-jOS.js +2043 -0
  16. package/dist/frontend/TagCreateDialog-Bb0-Vtzh.js +261 -0
  17. package/dist/frontend/api/attachments.js +1 -1
  18. package/dist/frontend/api/categories.d.ts +3 -3
  19. package/dist/frontend/api/categories.js +1 -1
  20. package/dist/frontend/api/documents.js +1 -1
  21. package/dist/frontend/api/share.js +1 -1
  22. package/dist/frontend/api/tags.js +1 -1
  23. package/dist/frontend/{api-keys-CpkrA8rD.js → api-keys-DIwAdYkg.js} +10 -10
  24. package/dist/frontend/app-shell.d.ts +5 -1
  25. package/dist/frontend/app-shell.js +83 -72
  26. package/dist/frontend/{attachments-BuILSs56.js → attachments-C2DBzU-r.js} +13 -13
  27. package/dist/frontend/{camera-iKXDOOWT.js → camera-CzCxBOpc.js} +2 -2
  28. package/dist/frontend/{categories-Drnns7N6.js → categories-X7gK8azc.js} +0 -2
  29. package/dist/frontend/{check-D-UuvBuh.js → check-BIi-Ghti.js} +2 -2
  30. package/dist/frontend/{chevron-down-CiPtYyFh.js → chevron-down-C2ft7XUV.js} +2 -2
  31. package/dist/frontend/{circle-check-tSPE1V6t.js → circle-check-BrqfiQH1.js} +2 -2
  32. package/dist/frontend/{clock-DJHbHZb8.js → clock-Dz86E4Kz.js} +2 -2
  33. package/dist/frontend/collaboration.d.ts +4 -2
  34. package/dist/frontend/collaboration.js +114 -89
  35. package/dist/frontend/components/category-dialog.js +1 -1
  36. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  37. package/dist/frontend/components/delete-dialog.js +1 -1
  38. package/dist/frontend/components/editor/document-editor.js +1203 -1190
  39. package/dist/frontend/components/editor/document-title.js +2 -2
  40. package/dist/frontend/components/editor/markdown-toggle.js +4 -4
  41. package/dist/frontend/components/folder-node.js +1 -1
  42. package/dist/frontend/components/folder-tree-selector.js +1 -1
  43. package/dist/frontend/components/save-as-dialog.js +145 -144
  44. package/dist/frontend/components/settings.js +1 -1
  45. package/dist/frontend/components/share-dialog.js +1 -1
  46. package/dist/frontend/components/sidebar.js +1 -1
  47. package/dist/frontend/components/tag-create-dialog.js +1 -1
  48. package/dist/frontend/components/version-history.js +34 -34
  49. package/dist/frontend/{confirm-dialog-C4jTRbiS.js → confirm-dialog-CzmoZw3a.js} +20 -20
  50. package/dist/frontend/{copy-GppwRMjX.js → copy-CvCh4ZVt.js} +2 -2
  51. package/dist/frontend/dashboard.js +1133 -1087
  52. package/dist/frontend/{dialog-Bevp9mmM.js → dialog-Ce79C9fd.js} +1 -1
  53. package/dist/frontend/{dist-C3857Spp.js → dist-DQa_OHOa.js} +2 -2
  54. package/dist/frontend/{documents-Bc7b_MSZ.js → documents-CwCs1rA7.js} +52 -12
  55. package/dist/frontend/{dropdown-menu-CRSby3e9.js → dropdown-menu-CJ_7V3N0.js} +45 -45
  56. package/dist/frontend/{floating-layer-anchor-BDs7vO-M.js → floating-layer-anchor-S5RSefGN.js} +1 -1
  57. package/dist/frontend/{folder-DeWhnD7O.js → folder-Cx60MRpi.js} +3 -3
  58. package/dist/frontend/i18n.js +3 -3
  59. package/dist/frontend/{messages-C5Q890i2.js → messages-DIovIZrK.js} +46 -44
  60. package/dist/frontend/{rotate-ccw-B4Q7brmV.js → rotate-ccw-ta4NosZ0.js} +2 -2
  61. package/dist/frontend/{route-context-BqQQ5c4i.js → route-context-DYQlUfzL.js} +14 -11
  62. package/dist/frontend/search.js +431 -415
  63. package/dist/frontend/{select-value-GXwx90Pr.js → select-value-JCAp2PmU.js} +466 -466
  64. package/dist/frontend/{share-Cu7SSJuJ.js → share-D7JtkC85.js} +2 -2
  65. package/dist/frontend/{tag-HxRazVN_.js → tag-DhVFHMcV.js} +3 -3
  66. package/dist/frontend/{tag-store.svelte-CG7RrlDT.js → tag-store.svelte-ogVCMCbv.js} +1 -1
  67. package/dist/frontend/{tags-CtCV0Djo.js → tags-BdCaMGfj.js} +18 -18
  68. package/dist/frontend/{x-CzBsnJ2x.js → x-cfdlccjs.js} +2 -2
  69. package/dist/frontend-ssr/api/attachments.js +1 -1
  70. package/dist/frontend-ssr/api/categories.js +1 -1
  71. package/dist/frontend-ssr/api/documents.js +1 -1
  72. package/dist/frontend-ssr/api/share.js +1 -1
  73. package/dist/frontend-ssr/api/tags.js +1 -1
  74. package/dist/frontend-ssr/app-shell.js +30 -26
  75. package/dist/frontend-ssr/assets/{CategoryDialog-BcGW8-Kf.js → CategoryDialog-DDu37Oub.js} +13 -11
  76. package/dist/frontend-ssr/assets/ConfirmDialog-BhAelejz.js +131 -0
  77. package/dist/frontend-ssr/assets/{CreateSnapshotDialog-1bROJ-Rn.js → CreateSnapshotDialog-DNAjd4eD.js} +2 -2
  78. package/dist/frontend-ssr/assets/{DatePicker-B1ML8OVz.js → DatePicker-Cp6Qmgdb.js} +17 -29
  79. package/dist/frontend-ssr/assets/{DeleteDialog-tBYaP0L3.js → DeleteDialog-DG9Lm38J.js} +2 -2
  80. package/dist/frontend-ssr/assets/{FolderNode-CpHrpOED.js → FolderNode-CrLWqHJH.js} +5 -5
  81. package/dist/frontend-ssr/assets/{FolderTreeSelector-DZNZ2oI6.js → FolderTreeSelector-Bxi8EqMm.js} +8 -12
  82. package/dist/frontend-ssr/assets/{Icon-B0Zqppjo.js → Icon-QwirKi9Y.js} +16 -28
  83. package/dist/frontend-ssr/assets/{SettingsDialog-C2SMWJL8.js → SettingsDialog-BymUxBgg.js} +20 -27
  84. package/dist/frontend-ssr/assets/{ShareDialog-vMvJLRfn.js → ShareDialog-B82t8oJi.js} +4 -2
  85. package/dist/frontend-ssr/assets/{Sidebar-DKqmwreh.js → Sidebar-CI8YKbrY.js} +55 -57
  86. package/dist/frontend-ssr/assets/{TagCreateDialog-B0DPEfmQ.js → TagCreateDialog-B7wDbVqG.js} +7 -5
  87. package/dist/frontend-ssr/assets/{api-keys-DFqX39MT.js → api-keys-DIbclwj5.js} +10 -10
  88. package/dist/frontend-ssr/assets/{attachments-CWBxE3Vz.js → attachments-CXgatN0B.js} +9 -9
  89. package/dist/frontend-ssr/assets/{camera-CdxscTw-.js → camera-D6s20LDi.js} +6 -10
  90. package/dist/frontend-ssr/assets/{categories-CTCtdv7V.js → categories-av9xjeg5.js} +0 -2
  91. package/dist/frontend-ssr/assets/{chevron-down-CSSNGNh_.js → chevron-down-CvqKATjM.js} +6 -10
  92. package/dist/frontend-ssr/assets/{chevron-right-B4p7Sk6X.js → chevron-right-DKD7WXjz.js} +6 -10
  93. package/dist/frontend-ssr/assets/{circle-check-CI1v4vYh.js → circle-check-CPS9dKEo.js} +6 -10
  94. package/dist/frontend-ssr/assets/{clock-IL-eX2di.js → clock-CzsE58TH.js} +6 -10
  95. package/dist/frontend-ssr/assets/{confirm-dialog-BCthVwUY.js → confirm-dialog-B3C0WeMn.js} +20 -32
  96. package/dist/frontend-ssr/assets/{copy-CjV57nGQ.js → copy-DkkCPkBL.js} +6 -10
  97. package/dist/frontend-ssr/assets/{documents-PObdTOiT.js → documents-CZ-wQohy.js} +58 -12
  98. package/dist/frontend-ssr/assets/{dropdown-menu-Bj5rbqbB.js → dropdown-menu-Dn_vQq9b.js} +7 -11
  99. package/dist/frontend-ssr/assets/{floating-layer-anchor-CYIE8Oj6.js → floating-layer-anchor-BIAu-252.js} +1 -1
  100. package/dist/frontend-ssr/assets/{folder-DChhG7qN.js → folder-DYIE-XPP.js} +6 -10
  101. package/dist/frontend-ssr/assets/{loader-circle-DZsrZ-er.js → loader-circle-CIEWGyfP.js} +6 -10
  102. package/dist/frontend-ssr/assets/{messages-CvqpZNJe.js → messages-D-auzk9H.js} +23 -1
  103. package/dist/frontend-ssr/assets/{rotate-ccw-BlgWwaiq.js → rotate-ccw-dJSqPyTd.js} +6 -10
  104. package/dist/frontend-ssr/assets/{route-context-uca_b2Px.js → route-context-BPRerEtZ.js} +11 -8
  105. package/dist/frontend-ssr/assets/{select-value-6Lk0ToYd.js → select-value-DBhbkNcc.js} +1 -1
  106. package/dist/frontend-ssr/assets/{share-BTBJelxA.js → share-qTqvd6Lu.js} +2 -2
  107. package/dist/frontend-ssr/assets/{tag-GZEuGWk1.js → tag-BmiVU_Ej.js} +11 -19
  108. package/dist/frontend-ssr/assets/{tag-store.svelte-DvgUduhd.js → tag-store.svelte-BM1lUI_P.js} +1 -1
  109. package/dist/frontend-ssr/assets/{tags-BId2wdYd.js → tags-BQsI_6OW.js} +12 -12
  110. package/dist/frontend-ssr/collaboration.js +37 -12
  111. package/dist/frontend-ssr/components/category-dialog.js +1 -1
  112. package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
  113. package/dist/frontend-ssr/components/delete-dialog.js +1 -1
  114. package/dist/frontend-ssr/components/editor/document-editor.js +143 -207
  115. package/dist/frontend-ssr/components/editor/document-title.js +1 -1
  116. package/dist/frontend-ssr/components/editor/markdown-toggle.js +2 -2
  117. package/dist/frontend-ssr/components/folder-node.js +1 -1
  118. package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
  119. package/dist/frontend-ssr/components/save-as-dialog.js +8 -6
  120. package/dist/frontend-ssr/components/settings.js +1 -1
  121. package/dist/frontend-ssr/components/share-dialog.js +1 -1
  122. package/dist/frontend-ssr/components/sidebar.js +1 -1
  123. package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
  124. package/dist/frontend-ssr/components/version-history.js +19 -27
  125. package/dist/frontend-ssr/dashboard.js +344 -185
  126. package/dist/frontend-ssr/i18n.js +1 -1
  127. package/dist/frontend-ssr/search.js +16 -20
  128. package/dist/index.d.ts +1 -1
  129. package/dist/index.js +1 -1
  130. package/dist/types.d.ts +1 -3
  131. package/dist/workspace.d.ts +0 -2
  132. package/dist/workspace.js +0 -2
  133. package/package.json +1 -1
  134. package/packages/cli/src/index.ts +1 -1
  135. package/packages/db/src/with-tenant.ts +2 -0
  136. package/packages/mcp-server/src/index.ts +1 -1
  137. package/dist/frontend/ConfirmDialog-NFGXRa3E.js +0 -214
  138. package/dist/frontend/DatePicker-BZRBluzF.js +0 -256
  139. package/dist/frontend/ShareDialog-BUOkYSlw.js +0 -165
  140. package/dist/frontend/Sidebar-fbtYC3qs.js +0 -2037
  141. package/dist/frontend/TagCreateDialog-B9YZBNHi.js +0 -260
  142. package/dist/frontend-ssr/assets/ConfirmDialog-DjMFKc0V.js +0 -420
@@ -1,25 +1,25 @@
1
1
  import { n as apiFetch } from "./client-DZMkDkDn.js";
2
2
  //#region src/lib/api/api-keys.ts
3
- function listApiKeys() {
4
- return apiFetch("/api/keys");
3
+ function listApiKeys(fetcher) {
4
+ return apiFetch("/api/keys", {}, fetcher);
5
5
  }
6
- function createGlobalApiKey(name) {
6
+ function createGlobalApiKey(name, fetcher) {
7
7
  return apiFetch("/api/keys/global", {
8
8
  method: "POST",
9
9
  body: { name }
10
- });
10
+ }, fetcher);
11
11
  }
12
- function createCategoryApiKey(categoryId, name) {
12
+ function createCategoryApiKey(categoryId, name, fetcher) {
13
13
  return apiFetch(`/api/categories/${encodeURIComponent(categoryId)}/keys`, {
14
14
  method: "POST",
15
15
  body: { name }
16
- });
16
+ }, fetcher);
17
17
  }
18
- function revokeApiKey(id) {
19
- return apiFetch(`/api/keys/${encodeURIComponent(id)}`, { method: "DELETE" });
18
+ function revokeApiKey(id, fetcher) {
19
+ return apiFetch(`/api/keys/${encodeURIComponent(id)}`, { method: "DELETE" }, fetcher);
20
20
  }
21
- async function revealCategoryApiKey(id) {
22
- return (await apiFetch(`/api/keys/${encodeURIComponent(id)}/secret`)).key;
21
+ async function revealCategoryApiKey(id, fetcher) {
22
+ return (await apiFetch(`/api/keys/${encodeURIComponent(id)}/secret`, {}, fetcher)).key;
23
23
  }
24
24
  function categoryIdFromScopes(scopes) {
25
25
  for (const scope of scopes) {
@@ -14,7 +14,7 @@ var MAX_FILE_SIZE = 25 * 1024 * 1024;
14
14
  * scoped to a single storage object and expires after `expiresIn` seconds.
15
15
  * No file bytes cross the wire in this call.
16
16
  */
17
- function presignAttachment(documentId, file) {
17
+ function presignAttachment(documentId, file, fetcher) {
18
18
  return apiFetch(`/api/documents/${documentId}/attachments/presign`, {
19
19
  method: "POST",
20
20
  body: {
@@ -22,14 +22,14 @@ function presignAttachment(documentId, file) {
22
22
  contentType: file.type,
23
23
  size: file.size
24
24
  }
25
- });
25
+ }, fetcher);
26
26
  }
27
27
  /**
28
28
  * Tell the backend to record an attachment row for an object that has
29
29
  * already been PUT to storage. The backend verifies the object exists
30
30
  * before inserting.
31
31
  */
32
- function confirmAttachment(documentId, key, file) {
32
+ function confirmAttachment(documentId, key, file, fetcher) {
33
33
  return apiFetch(`/api/documents/${documentId}/attachments/confirm`, {
34
34
  method: "POST",
35
35
  body: {
@@ -38,7 +38,7 @@ function confirmAttachment(documentId, key, file) {
38
38
  contentType: file.type,
39
39
  size: file.size
40
40
  }
41
- });
41
+ }, fetcher);
42
42
  }
43
43
  /**
44
44
  * Upload an image attachment using the presigned-URL flow:
@@ -54,8 +54,8 @@ function confirmAttachment(documentId, key, file) {
54
54
  * touches `/api/*`, so the Bun/Elysia global body-size cap is irrelevant
55
55
  * and large images (up to `MAX_FILE_SIZE`) upload without 413.
56
56
  */
57
- async function uploadAttachment(documentId, file) {
58
- const presign = await presignAttachment(documentId, file);
57
+ async function uploadAttachment(documentId, file, fetcher) {
58
+ const presign = await presignAttachment(documentId, file, fetcher);
59
59
  const putController = new AbortController();
60
60
  const putTimeout = setTimeout(() => putController.abort(), 5 * 6e4);
61
61
  let putResponse;
@@ -70,10 +70,10 @@ async function uploadAttachment(documentId, file) {
70
70
  clearTimeout(putTimeout);
71
71
  }
72
72
  if (!putResponse.ok) throw new Error(`Storage upload failed: ${putResponse.status} ${putResponse.statusText}`);
73
- return confirmAttachment(documentId, presign.key, file);
73
+ return confirmAttachment(documentId, presign.key, file, fetcher);
74
74
  }
75
- function listAttachments(documentId) {
76
- return apiFetch(`/api/documents/${documentId}/attachments`);
75
+ function listAttachments(documentId, fetcher) {
76
+ return apiFetch(`/api/documents/${documentId}/attachments`, {}, fetcher);
77
77
  }
78
78
  function isImageFile(file) {
79
79
  return file.type.startsWith("image/");
@@ -1,14 +1,14 @@
1
- import { t as Icon } from "./Icon-B0Zqppjo.js";
1
+ import { t as Icon } from "./Icon-QwirKi9Y.js";
2
2
  import * as $ from "svelte/internal/server";
3
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/camera.svelte
3
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/camera.svelte
4
4
  function Camera($$renderer, $$props) {
5
5
  const $$sanitized_props = $.sanitize_props($$props);
6
6
  /**
7
- * @license lucide-svelte v1.0.1 - ISC
7
+ * @license lucide-svelte v0.577.0 - ISC
8
8
  *
9
9
  * ISC License
10
10
  *
11
- * Copyright (c) 2026 Lucide Icons and Contributors
11
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
12
12
  *
13
13
  * Permission to use, copy, modify, and/or distribute this software for any
14
14
  * purpose with or without fee is hereby granted, provided that the above
@@ -24,13 +24,9 @@ function Camera($$renderer, $$props) {
24
24
  *
25
25
  * ---
26
26
  *
27
- * The following Lucide icons are derived from the Feather project:
27
+ * The MIT License (MIT) (for portions derived from Feather)
28
28
  *
29
- * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
30
- *
31
- * The MIT License (MIT) (for the icons listed above)
32
- *
33
- * Copyright (c) 2013-present Cole Bemis
29
+ * Copyright (c) 2013-2026 Cole Bemis
34
30
  *
35
31
  * Permission is hereby granted, free of charge, to any person obtaining a copy
36
32
  * of this software and associated documentation files (the "Software"), to deal
@@ -6,7 +6,6 @@ var createCategoryInputSchema = z.object({
6
6
  apiMode: z.enum([
7
7
  "unavailable",
8
8
  "global",
9
- "general",
10
9
  "category"
11
10
  ]).optional(),
12
11
  apiPermissionRead: z.boolean().optional(),
@@ -19,7 +18,6 @@ var updateCategoryInputSchema = z.object({
19
18
  apiMode: z.enum([
20
19
  "unavailable",
21
20
  "global",
22
- "general",
23
21
  "category"
24
22
  ]).optional(),
25
23
  apiPermissionRead: z.boolean().optional(),
@@ -1,14 +1,14 @@
1
- import { t as Icon } from "./Icon-B0Zqppjo.js";
1
+ import { t as Icon } from "./Icon-QwirKi9Y.js";
2
2
  import * as $ from "svelte/internal/server";
3
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/chevron-down.svelte
3
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/chevron-down.svelte
4
4
  function Chevron_down($$renderer, $$props) {
5
5
  const $$sanitized_props = $.sanitize_props($$props);
6
6
  /**
7
- * @license lucide-svelte v1.0.1 - ISC
7
+ * @license lucide-svelte v0.577.0 - ISC
8
8
  *
9
9
  * ISC License
10
10
  *
11
- * Copyright (c) 2026 Lucide Icons and Contributors
11
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
12
12
  *
13
13
  * Permission to use, copy, modify, and/or distribute this software for any
14
14
  * purpose with or without fee is hereby granted, provided that the above
@@ -24,13 +24,9 @@ function Chevron_down($$renderer, $$props) {
24
24
  *
25
25
  * ---
26
26
  *
27
- * The following Lucide icons are derived from the Feather project:
27
+ * The MIT License (MIT) (for portions derived from Feather)
28
28
  *
29
- * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
30
- *
31
- * The MIT License (MIT) (for the icons listed above)
32
- *
33
- * Copyright (c) 2013-present Cole Bemis
29
+ * Copyright (c) 2013-2026 Cole Bemis
34
30
  *
35
31
  * Permission is hereby granted, free of charge, to any person obtaining a copy
36
32
  * of this software and associated documentation files (the "Software"), to deal
@@ -1,14 +1,14 @@
1
- import { t as Icon } from "./Icon-B0Zqppjo.js";
1
+ import { t as Icon } from "./Icon-QwirKi9Y.js";
2
2
  import * as $ from "svelte/internal/server";
3
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/chevron-right.svelte
3
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/chevron-right.svelte
4
4
  function Chevron_right($$renderer, $$props) {
5
5
  const $$sanitized_props = $.sanitize_props($$props);
6
6
  /**
7
- * @license lucide-svelte v1.0.1 - ISC
7
+ * @license lucide-svelte v0.577.0 - ISC
8
8
  *
9
9
  * ISC License
10
10
  *
11
- * Copyright (c) 2026 Lucide Icons and Contributors
11
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
12
12
  *
13
13
  * Permission to use, copy, modify, and/or distribute this software for any
14
14
  * purpose with or without fee is hereby granted, provided that the above
@@ -24,13 +24,9 @@ function Chevron_right($$renderer, $$props) {
24
24
  *
25
25
  * ---
26
26
  *
27
- * The following Lucide icons are derived from the Feather project:
27
+ * The MIT License (MIT) (for portions derived from Feather)
28
28
  *
29
- * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
30
- *
31
- * The MIT License (MIT) (for the icons listed above)
32
- *
33
- * Copyright (c) 2013-present Cole Bemis
29
+ * Copyright (c) 2013-2026 Cole Bemis
34
30
  *
35
31
  * Permission is hereby granted, free of charge, to any person obtaining a copy
36
32
  * of this software and associated documentation files (the "Software"), to deal
@@ -1,14 +1,14 @@
1
- import { t as Icon } from "./Icon-B0Zqppjo.js";
1
+ import { t as Icon } from "./Icon-QwirKi9Y.js";
2
2
  import * as $ from "svelte/internal/server";
3
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/circle-check.svelte
3
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/circle-check.svelte
4
4
  function Circle_check($$renderer, $$props) {
5
5
  const $$sanitized_props = $.sanitize_props($$props);
6
6
  /**
7
- * @license lucide-svelte v1.0.1 - ISC
7
+ * @license lucide-svelte v0.577.0 - ISC
8
8
  *
9
9
  * ISC License
10
10
  *
11
- * Copyright (c) 2026 Lucide Icons and Contributors
11
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
12
12
  *
13
13
  * Permission to use, copy, modify, and/or distribute this software for any
14
14
  * purpose with or without fee is hereby granted, provided that the above
@@ -24,13 +24,9 @@ function Circle_check($$renderer, $$props) {
24
24
  *
25
25
  * ---
26
26
  *
27
- * The following Lucide icons are derived from the Feather project:
27
+ * The MIT License (MIT) (for portions derived from Feather)
28
28
  *
29
- * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
30
- *
31
- * The MIT License (MIT) (for the icons listed above)
32
- *
33
- * Copyright (c) 2013-present Cole Bemis
29
+ * Copyright (c) 2013-2026 Cole Bemis
34
30
  *
35
31
  * Permission is hereby granted, free of charge, to any person obtaining a copy
36
32
  * of this software and associated documentation files (the "Software"), to deal
@@ -1,14 +1,14 @@
1
- import { t as Icon } from "./Icon-B0Zqppjo.js";
1
+ import { t as Icon } from "./Icon-QwirKi9Y.js";
2
2
  import * as $ from "svelte/internal/server";
3
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/clock.svelte
3
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/clock.svelte
4
4
  function Clock($$renderer, $$props) {
5
5
  const $$sanitized_props = $.sanitize_props($$props);
6
6
  /**
7
- * @license lucide-svelte v1.0.1 - ISC
7
+ * @license lucide-svelte v0.577.0 - ISC
8
8
  *
9
9
  * ISC License
10
10
  *
11
- * Copyright (c) 2026 Lucide Icons and Contributors
11
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
12
12
  *
13
13
  * Permission to use, copy, modify, and/or distribute this software for any
14
14
  * purpose with or without fee is hereby granted, provided that the above
@@ -24,13 +24,9 @@ function Clock($$renderer, $$props) {
24
24
  *
25
25
  * ---
26
26
  *
27
- * The following Lucide icons are derived from the Feather project:
27
+ * The MIT License (MIT) (for portions derived from Feather)
28
28
  *
29
- * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
30
- *
31
- * The MIT License (MIT) (for the icons listed above)
32
- *
33
- * Copyright (c) 2013-present Cole Bemis
29
+ * Copyright (c) 2013-2026 Cole Bemis
34
30
  *
35
31
  * Permission is hereby granted, free of charge, to any person obtaining a copy
36
32
  * of this software and associated documentation files (the "Software"), to deal
@@ -1,21 +1,21 @@
1
- import { D as doc_new_folder_name, _n as action_save, gn as action_cancel, pn as action_create, vr as folders_rename, xr as folders_new, yn as error_generic } from "./messages-CvqpZNJe.js";
2
- import { t as Icon } from "./Icon-B0Zqppjo.js";
3
- import { t as Circle_check } from "./circle-check-CI1v4vYh.js";
4
- import { t as Loader_circle } from "./loader-circle-DZsrZ-er.js";
1
+ import { O as doc_new_folder_name, Sr as folders_new, _n as action_cancel, bn as error_generic, mn as action_create, vn as action_save, yr as folders_rename } from "./messages-D-auzk9H.js";
2
+ import { t as Icon } from "./Icon-QwirKi9Y.js";
3
+ import { t as Circle_check } from "./circle-check-CPS9dKEo.js";
4
+ import { t as Loader_circle } from "./loader-circle-CIEWGyfP.js";
5
5
  import { a as Dialog, i as Dialog_description, n as Dialog_header, o as Button, r as Dialog_footer, t as Dialog_title } from "./dialog-BOV1u6zP.js";
6
6
  import { t as Input } from "./input-DezGsU3y.js";
7
7
  import { t as Label } from "./label-Bj8-TfFN.js";
8
- import "./ConfirmDialog-DjMFKc0V.js";
8
+ import "./ConfirmDialog-BhAelejz.js";
9
9
  import * as $ from "svelte/internal/server";
10
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/check.svelte
10
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/check.svelte
11
11
  function Check($$renderer, $$props) {
12
12
  const $$sanitized_props = $.sanitize_props($$props);
13
13
  /**
14
- * @license lucide-svelte v1.0.1 - ISC
14
+ * @license lucide-svelte v0.577.0 - ISC
15
15
  *
16
16
  * ISC License
17
17
  *
18
- * Copyright (c) 2026 Lucide Icons and Contributors
18
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
19
19
  *
20
20
  * Permission to use, copy, modify, and/or distribute this software for any
21
21
  * purpose with or without fee is hereby granted, provided that the above
@@ -31,13 +31,9 @@ function Check($$renderer, $$props) {
31
31
  *
32
32
  * ---
33
33
  *
34
- * The following Lucide icons are derived from the Feather project:
34
+ * The MIT License (MIT) (for portions derived from Feather)
35
35
  *
36
- * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
37
- *
38
- * The MIT License (MIT) (for the icons listed above)
39
- *
40
- * Copyright (c) 2013-present Cole Bemis
36
+ * Copyright (c) 2013-2026 Cole Bemis
41
37
  *
42
38
  * Permission is hereby granted, free of charge, to any person obtaining a copy
43
39
  * of this software and associated documentation files (the "Software"), to deal
@@ -84,15 +80,15 @@ function Check($$renderer, $$props) {
84
80
  ]));
85
81
  }
86
82
  //#endregion
87
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/file-text.svelte
83
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/file-text.svelte
88
84
  function File_text($$renderer, $$props) {
89
85
  const $$sanitized_props = $.sanitize_props($$props);
90
86
  /**
91
- * @license lucide-svelte v1.0.1 - ISC
87
+ * @license lucide-svelte v0.577.0 - ISC
92
88
  *
93
89
  * ISC License
94
90
  *
95
- * Copyright (c) 2026 Lucide Icons and Contributors
91
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
96
92
  *
97
93
  * Permission to use, copy, modify, and/or distribute this software for any
98
94
  * purpose with or without fee is hereby granted, provided that the above
@@ -108,13 +104,9 @@ function File_text($$renderer, $$props) {
108
104
  *
109
105
  * ---
110
106
  *
111
- * The following Lucide icons are derived from the Feather project:
112
- *
113
- * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
107
+ * The MIT License (MIT) (for portions derived from Feather)
114
108
  *
115
- * The MIT License (MIT) (for the icons listed above)
116
- *
117
- * Copyright (c) 2013-present Cole Bemis
109
+ * Copyright (c) 2013-2026 Cole Bemis
118
110
  *
119
111
  * Permission is hereby granted, free of charge, to any person obtaining a copy
120
112
  * of this software and associated documentation files (the "Software"), to deal
@@ -167,15 +159,15 @@ function File_text($$renderer, $$props) {
167
159
  ]));
168
160
  }
169
161
  //#endregion
170
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/plus.svelte
162
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/plus.svelte
171
163
  function Plus($$renderer, $$props) {
172
164
  const $$sanitized_props = $.sanitize_props($$props);
173
165
  /**
174
- * @license lucide-svelte v1.0.1 - ISC
166
+ * @license lucide-svelte v0.577.0 - ISC
175
167
  *
176
168
  * ISC License
177
169
  *
178
- * Copyright (c) 2026 Lucide Icons and Contributors
170
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
179
171
  *
180
172
  * Permission to use, copy, modify, and/or distribute this software for any
181
173
  * purpose with or without fee is hereby granted, provided that the above
@@ -191,13 +183,9 @@ function Plus($$renderer, $$props) {
191
183
  *
192
184
  * ---
193
185
  *
194
- * The following Lucide icons are derived from the Feather project:
195
- *
196
- * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
197
- *
198
- * The MIT License (MIT) (for the icons listed above)
186
+ * The MIT License (MIT) (for portions derived from Feather)
199
187
  *
200
- * Copyright (c) 2013-present Cole Bemis
188
+ * Copyright (c) 2013-2026 Cole Bemis
201
189
  *
202
190
  * Permission is hereby granted, free of charge, to any person obtaining a copy
203
191
  * of this software and associated documentation files (the "Software"), to deal
@@ -1,14 +1,14 @@
1
- import { t as Icon } from "./Icon-B0Zqppjo.js";
1
+ import { t as Icon } from "./Icon-QwirKi9Y.js";
2
2
  import * as $ from "svelte/internal/server";
3
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/copy.svelte
3
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/copy.svelte
4
4
  function Copy($$renderer, $$props) {
5
5
  const $$sanitized_props = $.sanitize_props($$props);
6
6
  /**
7
- * @license lucide-svelte v1.0.1 - ISC
7
+ * @license lucide-svelte v0.577.0 - ISC
8
8
  *
9
9
  * ISC License
10
10
  *
11
- * Copyright (c) 2026 Lucide Icons and Contributors
11
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
12
12
  *
13
13
  * Permission to use, copy, modify, and/or distribute this software for any
14
14
  * purpose with or without fee is hereby granted, provided that the above
@@ -24,13 +24,9 @@ function Copy($$renderer, $$props) {
24
24
  *
25
25
  * ---
26
26
  *
27
- * The following Lucide icons are derived from the Feather project:
27
+ * The MIT License (MIT) (for portions derived from Feather)
28
28
  *
29
- * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
30
- *
31
- * The MIT License (MIT) (for the icons listed above)
32
- *
33
- * Copyright (c) 2013-present Cole Bemis
29
+ * Copyright (c) 2013-2026 Cole Bemis
34
30
  *
35
31
  * Permission is hereby granted, free of charge, to any person obtaining a copy
36
32
  * of this software and associated documentation files (the "Software"), to deal
@@ -78,15 +78,18 @@ function deleteDocument(id, fetcher) {
78
78
  clearDocumentsCache();
79
79
  return apiFetch(`/api/documents/${id}`, { method: "DELETE" }, fetcher);
80
80
  }
81
- function importDocument(file, folderId, fetcher) {
81
+ async function importDocument(file, folderId, fetcher) {
82
82
  clearDocumentsCache();
83
83
  const formData = new FormData();
84
84
  formData.append("file", file);
85
85
  if (folderId) formData.append("folderId", folderId);
86
- return apiFetch("/api/documents/import", {
86
+ const result = (await apiFetch("/api/documents/import", {
87
87
  method: "POST",
88
- body: formData
89
- }, fetcher);
88
+ body: formData,
89
+ timeout: 12e4
90
+ }, fetcher)).items[0];
91
+ if (result?.status === "ok" && result.document) return result.document;
92
+ throw new Error(result?.error ?? `Failed to import "${file.name}"`);
90
93
  }
91
94
  /**
92
95
  * Import one or more documents. Accepts any combination of supported
@@ -94,15 +97,58 @@ function importDocument(file, folderId, fetcher) {
94
97
  * a multipart body with multiple `file` parts and returns an
95
98
  * `ImportResponse` describing per-file success/failure.
96
99
  */
97
- function importDocuments(files, folderId, fetcher) {
100
+ async function importDocuments(files, folderId, fetcher, options = {}) {
98
101
  clearDocumentsCache();
99
- const formData = new FormData();
100
- for (const file of files) formData.append("file", file);
101
- if (folderId) formData.append("folderId", folderId);
102
- return apiFetch("/api/documents/import", {
103
- method: "POST",
104
- body: formData
105
- }, fetcher);
102
+ if (files.length === 0) return {
103
+ items: [],
104
+ imported: 0,
105
+ failed: 0
106
+ };
107
+ const requestedConcurrency = options.concurrency ?? 3;
108
+ const concurrency = Math.max(1, Math.min(3, files.length, Math.floor(requestedConcurrency) || 1));
109
+ const results = new Array(files.length);
110
+ let nextIndex = 0;
111
+ const importOne = async (file, index) => {
112
+ options.onItemStarted?.(index);
113
+ const formData = new FormData();
114
+ formData.append("file", file);
115
+ if (folderId) formData.append("folderId", folderId);
116
+ let result;
117
+ try {
118
+ result = (await apiFetch("/api/documents/import", {
119
+ method: "POST",
120
+ body: formData,
121
+ timeout: 12e4
122
+ }, fetcher)).items[0] ?? {
123
+ filename: file.name,
124
+ status: "error",
125
+ error: "Import response did not include a file result"
126
+ };
127
+ } catch (error) {
128
+ result = {
129
+ filename: file.name,
130
+ status: "error",
131
+ error: error instanceof Error ? error.message : "Import failed"
132
+ };
133
+ }
134
+ results[index] = result;
135
+ options.onItemSettled?.(result, index);
136
+ };
137
+ const worker = async () => {
138
+ while (nextIndex < files.length) {
139
+ const index = nextIndex;
140
+ nextIndex += 1;
141
+ const file = files[index];
142
+ if (file) await importOne(file, index);
143
+ }
144
+ };
145
+ await Promise.all(Array.from({ length: concurrency }, () => worker()));
146
+ const imported = results.filter((result) => result.status === "ok").length;
147
+ return {
148
+ items: results,
149
+ imported,
150
+ failed: results.length - imported
151
+ };
106
152
  }
107
153
  //#endregion
108
154
  export { importDocument as a, updateDocument as c, getDocument as i, createDocument as n, importDocuments as o, deleteDocument as r, listDocuments as s, clearDocumentsCache as t };
@@ -1,16 +1,16 @@
1
- import { t as Icon } from "./Icon-B0Zqppjo.js";
1
+ import { t as Icon } from "./Icon-QwirKi9Y.js";
2
2
  import { t as cn } from "./utils-DtlPPXpJ.js";
3
- import { $ as boxWith, Z as mergeProps, a as Floating_layer, c as MenuContentState, d as MenuMenuState, f as MenuRootState, i as createId, n as Popper_layer_force_mount, o as getFloatingContentCSSVars, p as MenuSeparatorState, r as Popper_layer, s as DropdownMenuTriggerState, t as Floating_layer_anchor, u as MenuItemState, v as noop } from "./floating-layer-anchor-CYIE8Oj6.js";
3
+ import { Q as mergeProps, a as Floating_layer, c as MenuContentState, d as MenuMenuState, et as boxWith, f as MenuRootState, i as createId, n as Popper_layer_force_mount, o as getFloatingContentCSSVars, p as MenuSeparatorState, r as Popper_layer, s as DropdownMenuTriggerState, t as Floating_layer_anchor, u as MenuItemState, v as noop } from "./floating-layer-anchor-BIAu-252.js";
4
4
  import * as $ from "svelte/internal/server";
5
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/ellipsis-vertical.svelte
5
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/ellipsis-vertical.svelte
6
6
  function Ellipsis_vertical($$renderer, $$props) {
7
7
  const $$sanitized_props = $.sanitize_props($$props);
8
8
  /**
9
- * @license lucide-svelte v1.0.1 - ISC
9
+ * @license lucide-svelte v0.577.0 - ISC
10
10
  *
11
11
  * ISC License
12
12
  *
13
- * Copyright (c) 2026 Lucide Icons and Contributors
13
+ * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
14
14
  *
15
15
  * Permission to use, copy, modify, and/or distribute this software for any
16
16
  * purpose with or without fee is hereby granted, provided that the above
@@ -26,13 +26,9 @@ function Ellipsis_vertical($$renderer, $$props) {
26
26
  *
27
27
  * ---
28
28
  *
29
- * The following Lucide icons are derived from the Feather project:
29
+ * The MIT License (MIT) (for portions derived from Feather)
30
30
  *
31
- * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
32
- *
33
- * The MIT License (MIT) (for the icons listed above)
34
- *
35
- * Copyright (c) 2013-present Cole Bemis
31
+ * Copyright (c) 2013-2026 Cole Bemis
36
32
  *
37
33
  * Permission is hereby granted, free of charge, to any person obtaining a copy
38
34
  * of this software and associated documentation files (the "Software"), to deal
@@ -6111,4 +6111,4 @@ function Floating_layer_anchor($$renderer, $$props) {
6111
6111
  });
6112
6112
  }
6113
6113
  //#endregion
6114
- export { boxWith as $, isIOS as A, META as B, prev as C, createBitsAttrs as D, boolToTrueOrUndef as E, CAPS_LOCK as F, watch as G, PAGE_UP as H, CONTROL as I, DOMContext as J, Context as K, ENTER as L, ARROW_LEFT as M, ARROW_RIGHT as N, getDataOpenClosed as O, ARROW_UP as P, styleToString as Q, ESCAPE as R, next as S, boolToStr as T, SHIFT as U, PAGE_DOWN as V, Previous as W, onDestroyEffect as X, afterTick as Y, mergeProps as Z, boxAutoReset as _, Floating_layer as a, forward as b, MenuContentState as c, MenuMenuState as d, MenuRootState as f, DOMTypeahead as g, PresenceManager as h, createId as i, ARROW_DOWN as j, getDataTransitionAttrs as k, MenuGroupState as l, MenuSubmenuState as m, Popper_layer_force_mount as n, getFloatingContentCSSVars as o, MenuSeparatorState as p, attachRef as q, Popper_layer as r, DropdownMenuTriggerState as s, Floating_layer_anchor as t, MenuItemState as u, noop as v, boolToEmptyStrOrUndef as w, getNextMatch as x, backward as y, HOME as z };
6114
+ export { styleToString as $, isBrowser as A, HOME as B, prev as C, createBitsAttrs as D, boolToTrueOrUndef as E, ARROW_UP as F, Previous as G, PAGE_DOWN as H, CAPS_LOCK as I, attachRef as J, watch as K, CONTROL as L, ARROW_DOWN as M, ARROW_LEFT as N, getDataOpenClosed as O, ARROW_RIGHT as P, mergeProps as Q, ENTER as R, next as S, boolToStr as T, PAGE_UP as U, META as V, SHIFT as W, afterTick as X, DOMContext as Y, onDestroyEffect as Z, boxAutoReset as _, Floating_layer as a, forward as b, MenuContentState as c, MenuMenuState as d, boxWith as et, MenuRootState as f, DOMTypeahead as g, PresenceManager as h, createId as i, isIOS as j, getDataTransitionAttrs as k, MenuGroupState as l, MenuSubmenuState as m, Popper_layer_force_mount as n, getFloatingContentCSSVars as o, MenuSeparatorState as p, Context as q, Popper_layer as r, DropdownMenuTriggerState as s, Floating_layer_anchor as t, MenuItemState as u, noop as v, boolToEmptyStrOrUndef as w, getNextMatch as x, backward as y, ESCAPE as z };