@hiai-gg/docsmint 0.4.8 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) 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 +772 -0
  4. package/dist/client.js +2 -7
  5. package/dist/frontend/{CategoryDialog-CxVyaBV5.js → CategoryDialog-DyytjQn6.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-BZRBluzF.js → DatePicker-BkaaNS1l.js} +34 -34
  9. package/dist/frontend/{DeleteDialog-CvAr2WPu.js → DeleteDialog-8k6JYWCx.js} +3 -3
  10. package/dist/frontend/{FolderNode--l1g8bcL.js → FolderNode-DAGPgi-M.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-ChZogJtW.js +166 -0
  15. package/dist/frontend/Sidebar-BdB8CfXS.js +2037 -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 +1169 -1168
  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 +1025 -1011
  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-Cre80-CJ.js} +2 -2
  56. package/dist/frontend/{folder-DeWhnD7O.js → folder-Cx60MRpi.js} +3 -3
  57. package/dist/frontend/i18n.js +3 -3
  58. package/dist/frontend/{messages-C5Q890i2.js → messages-DIovIZrK.js} +46 -44
  59. package/dist/frontend/{rotate-ccw-B4Q7brmV.js → rotate-ccw-ta4NosZ0.js} +2 -2
  60. package/dist/frontend/{route-context-BqQQ5c4i.js → route-context-DYQlUfzL.js} +14 -11
  61. package/dist/frontend/search.js +99 -99
  62. package/dist/frontend/{share-Cu7SSJuJ.js → share-D7JtkC85.js} +2 -2
  63. package/dist/frontend/{tag-HxRazVN_.js → tag-DhVFHMcV.js} +3 -3
  64. package/dist/frontend/{tag-store.svelte-CG7RrlDT.js → tag-store.svelte-ogVCMCbv.js} +1 -1
  65. package/dist/frontend/{tags-CtCV0Djo.js → tags-BdCaMGfj.js} +18 -18
  66. package/dist/frontend/{x-CzBsnJ2x.js → x-cfdlccjs.js} +2 -2
  67. package/dist/frontend-ssr/api/attachments.js +1 -1
  68. package/dist/frontend-ssr/api/categories.js +1 -1
  69. package/dist/frontend-ssr/api/documents.js +1 -1
  70. package/dist/frontend-ssr/api/share.js +1 -1
  71. package/dist/frontend-ssr/api/tags.js +1 -1
  72. package/dist/frontend-ssr/app-shell.js +30 -26
  73. package/dist/frontend-ssr/assets/{CategoryDialog-BcGW8-Kf.js → CategoryDialog-CLAGMZPz.js} +12 -10
  74. package/dist/frontend-ssr/assets/ConfirmDialog-BhAelejz.js +131 -0
  75. package/dist/frontend-ssr/assets/{CreateSnapshotDialog-1bROJ-Rn.js → CreateSnapshotDialog-DNAjd4eD.js} +2 -2
  76. package/dist/frontend-ssr/assets/{DatePicker-B1ML8OVz.js → DatePicker-Cp6Qmgdb.js} +17 -29
  77. package/dist/frontend-ssr/assets/{DeleteDialog-tBYaP0L3.js → DeleteDialog-DG9Lm38J.js} +2 -2
  78. package/dist/frontend-ssr/assets/{FolderNode-CpHrpOED.js → FolderNode-Ty6fMbDu.js} +5 -5
  79. package/dist/frontend-ssr/assets/{FolderTreeSelector-DZNZ2oI6.js → FolderTreeSelector-Bxi8EqMm.js} +8 -12
  80. package/dist/frontend-ssr/assets/{Icon-B0Zqppjo.js → Icon-QwirKi9Y.js} +16 -28
  81. package/dist/frontend-ssr/assets/{SettingsDialog-C2SMWJL8.js → SettingsDialog-BymUxBgg.js} +20 -27
  82. package/dist/frontend-ssr/assets/{ShareDialog-vMvJLRfn.js → ShareDialog-C-9VDKSz.js} +3 -1
  83. package/dist/frontend-ssr/assets/{Sidebar-DKqmwreh.js → Sidebar-DzbIUZFc.js} +45 -55
  84. package/dist/frontend-ssr/assets/{TagCreateDialog-B0DPEfmQ.js → TagCreateDialog-B7wDbVqG.js} +7 -5
  85. package/dist/frontend-ssr/assets/{api-keys-DFqX39MT.js → api-keys-DIbclwj5.js} +10 -10
  86. package/dist/frontend-ssr/assets/{attachments-CWBxE3Vz.js → attachments-CXgatN0B.js} +9 -9
  87. package/dist/frontend-ssr/assets/{camera-CdxscTw-.js → camera-D6s20LDi.js} +6 -10
  88. package/dist/frontend-ssr/assets/{categories-CTCtdv7V.js → categories-av9xjeg5.js} +0 -2
  89. package/dist/frontend-ssr/assets/{chevron-down-CSSNGNh_.js → chevron-down-CvqKATjM.js} +6 -10
  90. package/dist/frontend-ssr/assets/{chevron-right-B4p7Sk6X.js → chevron-right-DKD7WXjz.js} +6 -10
  91. package/dist/frontend-ssr/assets/{circle-check-CI1v4vYh.js → circle-check-CPS9dKEo.js} +6 -10
  92. package/dist/frontend-ssr/assets/{clock-IL-eX2di.js → clock-CzsE58TH.js} +6 -10
  93. package/dist/frontend-ssr/assets/{confirm-dialog-BCthVwUY.js → confirm-dialog-B3C0WeMn.js} +20 -32
  94. package/dist/frontend-ssr/assets/{copy-CjV57nGQ.js → copy-DkkCPkBL.js} +6 -10
  95. package/dist/frontend-ssr/assets/{documents-PObdTOiT.js → documents-CZ-wQohy.js} +58 -12
  96. package/dist/frontend-ssr/assets/{dropdown-menu-Bj5rbqbB.js → dropdown-menu-CGkf8-rb.js} +6 -10
  97. package/dist/frontend-ssr/assets/{folder-DChhG7qN.js → folder-DYIE-XPP.js} +6 -10
  98. package/dist/frontend-ssr/assets/{loader-circle-DZsrZ-er.js → loader-circle-CIEWGyfP.js} +6 -10
  99. package/dist/frontend-ssr/assets/{messages-CvqpZNJe.js → messages-D-auzk9H.js} +23 -1
  100. package/dist/frontend-ssr/assets/{rotate-ccw-BlgWwaiq.js → rotate-ccw-dJSqPyTd.js} +6 -10
  101. package/dist/frontend-ssr/assets/{route-context-uca_b2Px.js → route-context-BPRerEtZ.js} +11 -8
  102. package/dist/frontend-ssr/assets/{share-BTBJelxA.js → share-qTqvd6Lu.js} +2 -2
  103. package/dist/frontend-ssr/assets/{tag-GZEuGWk1.js → tag-BmiVU_Ej.js} +11 -19
  104. package/dist/frontend-ssr/assets/{tag-store.svelte-DvgUduhd.js → tag-store.svelte-BM1lUI_P.js} +1 -1
  105. package/dist/frontend-ssr/assets/{tags-BId2wdYd.js → tags-BQsI_6OW.js} +12 -12
  106. package/dist/frontend-ssr/collaboration.js +37 -12
  107. package/dist/frontend-ssr/components/category-dialog.js +1 -1
  108. package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
  109. package/dist/frontend-ssr/components/delete-dialog.js +1 -1
  110. package/dist/frontend-ssr/components/editor/document-editor.js +108 -186
  111. package/dist/frontend-ssr/components/editor/document-title.js +1 -1
  112. package/dist/frontend-ssr/components/editor/markdown-toggle.js +2 -2
  113. package/dist/frontend-ssr/components/folder-node.js +1 -1
  114. package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
  115. package/dist/frontend-ssr/components/save-as-dialog.js +7 -5
  116. package/dist/frontend-ssr/components/settings.js +1 -1
  117. package/dist/frontend-ssr/components/share-dialog.js +1 -1
  118. package/dist/frontend-ssr/components/sidebar.js +1 -1
  119. package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
  120. package/dist/frontend-ssr/components/version-history.js +19 -27
  121. package/dist/frontend-ssr/dashboard.js +78 -113
  122. package/dist/frontend-ssr/i18n.js +1 -1
  123. package/dist/frontend-ssr/search.js +15 -19
  124. package/dist/index.d.ts +1 -1
  125. package/dist/index.js +1 -1
  126. package/dist/types.d.ts +1 -3
  127. package/dist/workspace.d.ts +0 -2
  128. package/dist/workspace.js +0 -2
  129. package/package.json +2 -2
  130. package/packages/cli/src/index.ts +1 -1
  131. package/packages/db/src/with-tenant.ts +2 -0
  132. package/packages/mcp-server/src/index.ts +1 -1
  133. package/dist/frontend/ConfirmDialog-NFGXRa3E.js +0 -214
  134. package/dist/frontend/ShareDialog-BUOkYSlw.js +0 -165
  135. package/dist/frontend/Sidebar-fbtYC3qs.js +0 -2037
  136. package/dist/frontend/TagCreateDialog-B9YZBNHi.js +0 -260
  137. package/dist/frontend-ssr/assets/ConfirmDialog-DjMFKc0V.js +0 -420
@@ -1,11 +1,11 @@
1
1
  import * as $ from "svelte/internal/server";
2
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/defaultAttributes.js
2
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/defaultAttributes.js
3
3
  /**
4
- * @license lucide-svelte v1.0.1 - ISC
4
+ * @license lucide-svelte v0.577.0 - ISC
5
5
  *
6
6
  * ISC License
7
7
  *
8
- * Copyright (c) 2026 Lucide Icons and Contributors
8
+ * 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.
9
9
  *
10
10
  * Permission to use, copy, modify, and/or distribute this software for any
11
11
  * purpose with or without fee is hereby granted, provided that the above
@@ -21,13 +21,9 @@ import * as $ from "svelte/internal/server";
21
21
  *
22
22
  * ---
23
23
  *
24
- * The following Lucide icons are derived from the Feather project:
24
+ * The MIT License (MIT) (for portions derived from Feather)
25
25
  *
26
- * 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
27
- *
28
- * The MIT License (MIT) (for the icons listed above)
29
- *
30
- * Copyright (c) 2013-present Cole Bemis
26
+ * Copyright (c) 2013-2026 Cole Bemis
31
27
  *
32
28
  * Permission is hereby granted, free of charge, to any person obtaining a copy
33
29
  * of this software and associated documentation files (the "Software"), to deal
@@ -60,13 +56,13 @@ var defaultAttributes = {
60
56
  "stroke-linejoin": "round"
61
57
  };
62
58
  //#endregion
63
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/utils/hasA11yProp.js
59
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/utils/hasA11yProp.js
64
60
  /**
65
- * @license lucide-svelte v1.0.1 - ISC
61
+ * @license lucide-svelte v0.577.0 - ISC
66
62
  *
67
63
  * ISC License
68
64
  *
69
- * Copyright (c) 2026 Lucide Icons and Contributors
65
+ * 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.
70
66
  *
71
67
  * Permission to use, copy, modify, and/or distribute this software for any
72
68
  * purpose with or without fee is hereby granted, provided that the above
@@ -82,13 +78,9 @@ var defaultAttributes = {
82
78
  *
83
79
  * ---
84
80
  *
85
- * The following Lucide icons are derived from the Feather project:
86
- *
87
- * 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
81
+ * The MIT License (MIT) (for portions derived from Feather)
88
82
  *
89
- * The MIT License (MIT) (for the icons listed above)
90
- *
91
- * Copyright (c) 2013-present Cole Bemis
83
+ * Copyright (c) 2013-2026 Cole Bemis
92
84
  *
93
85
  * Permission is hereby granted, free of charge, to any person obtaining a copy
94
86
  * of this software and associated documentation files (the "Software"), to deal
@@ -120,13 +112,13 @@ var hasA11yProp = (props) => {
120
112
  return false;
121
113
  };
122
114
  //#endregion
123
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/utils/mergeClasses.js
115
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/utils/mergeClasses.js
124
116
  /**
125
- * @license lucide-svelte v1.0.1 - ISC
117
+ * @license lucide-svelte v0.577.0 - ISC
126
118
  *
127
119
  * ISC License
128
120
  *
129
- * Copyright (c) 2026 Lucide Icons and Contributors
121
+ * 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.
130
122
  *
131
123
  * Permission to use, copy, modify, and/or distribute this software for any
132
124
  * purpose with or without fee is hereby granted, provided that the above
@@ -142,13 +134,9 @@ var hasA11yProp = (props) => {
142
134
  *
143
135
  * ---
144
136
  *
145
- * The following Lucide icons are derived from the Feather project:
146
- *
147
- * 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
148
- *
149
- * The MIT License (MIT) (for the icons listed above)
137
+ * The MIT License (MIT) (for portions derived from Feather)
150
138
  *
151
- * Copyright (c) 2013-present Cole Bemis
139
+ * Copyright (c) 2013-2026 Cole Bemis
152
140
  *
153
141
  * Permission is hereby granted, free of charge, to any person obtaining a copy
154
142
  * of this software and associated documentation files (the "Software"), to deal
@@ -179,7 +167,7 @@ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
179
167
  return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
180
168
  }).join(" ").trim();
181
169
  //#endregion
182
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/Icon.svelte
170
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/Icon.svelte
183
171
  function Icon($$renderer, $$props) {
184
172
  const $$sanitized_props = $.sanitize_props($$props);
185
173
  const $$restProps = $.rest_props($$sanitized_props, [
@@ -1,14 +1,14 @@
1
- import { An as theme_system, Cn as confirm_password, Dn as settings_name, En as settings_save, Fn as settings_account, In as settings_profile, Ln as settings_title, Mn as theme_light, Nn as settings_theme, On as settings_email_change_warning, Pn as settings_appearance, Sn as change_password, Tn as password_label, bn as auth_logout, fn as action_close, jn as theme_dark, kn as settings_email, wn as new_password, xn as auth_password } from "./messages-CvqpZNJe.js";
2
- import { t as Icon } from "./Icon-B0Zqppjo.js";
3
- import { n as getDocsmintRouteAdapter, r as navigateDocsmintRoute } from "./route-context-uca_b2Px.js";
1
+ import { An as settings_email, Cn as change_password, Dn as settings_save, En as password_label, Fn as settings_appearance, In as settings_account, Ln as settings_profile, Mn as theme_dark, Nn as theme_light, On as settings_name, Pn as settings_theme, Rn as settings_title, Sn as auth_password, Tn as new_password, jn as theme_system, kn as settings_email_change_warning, pn as action_close, wn as confirm_password, xn as auth_logout } from "./messages-D-auzk9H.js";
2
+ import { t as Icon } from "./Icon-QwirKi9Y.js";
3
+ import { a as getDocsmintRequestAdapter, n as navigateDocsmintRoute, t as getDocsmintRouteAdapter } from "./route-context-BPRerEtZ.js";
4
4
  import { t as cn } from "./utils-DtlPPXpJ.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
8
  import { r as signOut } from "./auth-client-x26kqY8Z.js";
9
9
  import { r as getProfile } from "./settings-Bk5Hk9Vq.js";
10
- import { a as listApiKeys, i as createGlobalApiKey, n as categoryIdFromScopes, o as revealCategoryApiKey, s as revokeApiKey, t as apiKeyClipboardValue } from "./api-keys-DFqX39MT.js";
11
- import { i as listCategories } from "./categories-CTCtdv7V.js";
10
+ import { a as listApiKeys, i as createGlobalApiKey, n as categoryIdFromScopes, o as revealCategoryApiKey, s as revokeApiKey, t as apiKeyClipboardValue } from "./api-keys-DIbclwj5.js";
11
+ import { i as listCategories } from "./categories-av9xjeg5.js";
12
12
  import { t as getFrontendExtensions } from "./context-BtCMqdVe.js";
13
13
  import { t as resolveExtensions } from "./resolve-BqHozBXl.js";
14
14
  import { a as resolveOfflineIdentity, t as disableOfflineAccess } from "./identity-B3uHoDtf.js";
@@ -17,15 +17,15 @@ import { t as themeStore } from "./theme.svelte-Co0-ssaD.js";
17
17
  import * as $ from "svelte/internal/server";
18
18
  import { onMount } from "svelte";
19
19
  import { page } from "$app/state";
20
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/log-out.svelte
20
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/log-out.svelte
21
21
  function Log_out($$renderer, $$props) {
22
22
  const $$sanitized_props = $.sanitize_props($$props);
23
23
  /**
24
- * @license lucide-svelte v1.0.1 - ISC
24
+ * @license lucide-svelte v0.577.0 - ISC
25
25
  *
26
26
  * ISC License
27
27
  *
28
- * Copyright (c) 2026 Lucide Icons and Contributors
28
+ * 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.
29
29
  *
30
30
  * Permission to use, copy, modify, and/or distribute this software for any
31
31
  * purpose with or without fee is hereby granted, provided that the above
@@ -41,13 +41,9 @@ function Log_out($$renderer, $$props) {
41
41
  *
42
42
  * ---
43
43
  *
44
- * The following Lucide icons are derived from the Feather project:
44
+ * The MIT License (MIT) (for portions derived from Feather)
45
45
  *
46
- * 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
47
- *
48
- * The MIT License (MIT) (for the icons listed above)
49
- *
50
- * Copyright (c) 2013-present Cole Bemis
46
+ * Copyright (c) 2013-2026 Cole Bemis
51
47
  *
52
48
  * Permission is hereby granted, free of charge, to any person obtaining a copy
53
49
  * of this software and associated documentation files (the "Software"), to deal
@@ -98,15 +94,15 @@ function Log_out($$renderer, $$props) {
98
94
  ]));
99
95
  }
100
96
  //#endregion
101
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/save.svelte
97
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/save.svelte
102
98
  function Save($$renderer, $$props) {
103
99
  const $$sanitized_props = $.sanitize_props($$props);
104
100
  /**
105
- * @license lucide-svelte v1.0.1 - ISC
101
+ * @license lucide-svelte v0.577.0 - ISC
106
102
  *
107
103
  * ISC License
108
104
  *
109
- * Copyright (c) 2026 Lucide Icons and Contributors
105
+ * 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.
110
106
  *
111
107
  * Permission to use, copy, modify, and/or distribute this software for any
112
108
  * purpose with or without fee is hereby granted, provided that the above
@@ -122,13 +118,9 @@ function Save($$renderer, $$props) {
122
118
  *
123
119
  * ---
124
120
  *
125
- * The following Lucide icons are derived from the Feather project:
126
- *
127
- * 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
128
- *
129
- * The MIT License (MIT) (for the icons listed above)
121
+ * The MIT License (MIT) (for portions derived from Feather)
130
122
  *
131
- * Copyright (c) 2013-present Cole Bemis
123
+ * Copyright (c) 2013-2026 Cole Bemis
132
124
  *
133
125
  * Permission is hereby granted, free of charge, to any person obtaining a copy
134
126
  * of this software and associated documentation files (the "Software"), to deal
@@ -252,6 +244,7 @@ function ApiAccessSettings($$renderer, $$props) {
252
244
  let busy = false;
253
245
  let error = null;
254
246
  const latestIssuedKey = $.derived(() => latestIssuedId ? issuedKeys[latestIssuedId] : void 0);
247
+ const request = getDocsmintRequestAdapter();
255
248
  const globalKeys = $.derived(() => keys.filter((key) => key.scopes.includes("global")));
256
249
  const categoryKeys = $.derived(() => keys.filter((key) => categoryIdFromScopes(key.scopes) !== null));
257
250
  function categoryName(id) {
@@ -261,7 +254,7 @@ function ApiAccessSettings($$renderer, $$props) {
261
254
  loading = true;
262
255
  error = null;
263
256
  try {
264
- const [keyResult, categoryResult] = await Promise.all([listApiKeys(), listCategories()]);
257
+ const [keyResult, categoryResult] = await Promise.all([listApiKeys(request.fetch), listCategories(request.fetch)]);
265
258
  keys = keyResult.keys;
266
259
  categories = categoryResult;
267
260
  } catch (err) {
@@ -275,7 +268,7 @@ function ApiAccessSettings($$renderer, $$props) {
275
268
  busy = true;
276
269
  error = null;
277
270
  try {
278
- const issued = await createGlobalApiKey(keyName.trim() || void 0);
271
+ const issued = await createGlobalApiKey(keyName.trim() || void 0, request.fetch);
279
272
  issuedKeys = {
280
273
  ...issuedKeys,
281
274
  [issued.id]: issued.key
@@ -291,7 +284,7 @@ function ApiAccessSettings($$renderer, $$props) {
291
284
  async function revoke(id) {
292
285
  busy = true;
293
286
  try {
294
- await revokeApiKey(id);
287
+ await revokeApiKey(id, request.fetch);
295
288
  const { [id]: _revoked, ...remainingIssuedKeys } = issuedKeys;
296
289
  issuedKeys = remainingIssuedKeys;
297
290
  if (latestIssuedId === id) latestIssuedId = null;
@@ -301,7 +294,7 @@ function ApiAccessSettings($$renderer, $$props) {
301
294
  }
302
295
  }
303
296
  async function copyKey(key) {
304
- const rawKey = issuedKeys[key.id] ?? await revealCategoryApiKey(key.id);
297
+ const rawKey = issuedKeys[key.id] ?? await revealCategoryApiKey(key.id, request.fetch);
305
298
  await navigator.clipboard.writeText(apiKeyClipboardValue(key, rawKey));
306
299
  }
307
300
  let $$settled = true;
@@ -1,4 +1,5 @@
1
- import { Bn as share_expires_30d, Gn as share_expires, Hn as share_expires_1d, Jn as share_create_link, Kn as share_toggle_password, Rn as share_add, Un as share_expires_1h, Vn as share_expires_7d, Wn as share_expires_never, Yn as share_create_title, fn as action_close, qn as share_password_protection, zn as share_guest_access } from "./messages-CvqpZNJe.js";
1
+ import { Bn as share_guest_access, Gn as share_expires_never, Hn as share_expires_7d, Jn as share_password_protection, Kn as share_expires, Un as share_expires_1d, Vn as share_expires_30d, Wn as share_expires_1h, Xn as share_create_title, Yn as share_create_link, pn as action_close, qn as share_toggle_password, zn as share_add } from "./messages-D-auzk9H.js";
2
+ import { a as getDocsmintRequestAdapter } from "./route-context-BPRerEtZ.js";
2
3
  import "./keyboard.svelte-BgF47N3L.js";
3
4
  import * as $ from "svelte/internal/server";
4
5
  //#region src/lib/components/ShareDialog.svelte
@@ -10,6 +11,7 @@ function ShareDialog($$renderer, $$props) {
10
11
  let guestEmail = "";
11
12
  let guestEmails = [];
12
13
  let creating = false;
14
+ getDocsmintRequestAdapter();
13
15
  if (open) {
14
16
  $$renderer.push("<!--[0-->");
15
17
  $$renderer.push(`<div class="fixed inset-0 layer-modal flex items-center justify-center"><button class="absolute inset-0 bg-black/50"${$.attr("aria-label", action_close())}></button> <div class="relative z-10 w-full max-w-md rounded-lg border border-border bg-background p-6 shadow-lg" role="dialog" aria-modal="true"><div class="mb-4 flex items-center justify-between"><h2 class="text-lg font-semibold">${$.escape(share_create_title())} "${$.escape(categoryName || folderName || documentTitle)}"</h2> <button class="rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-foreground"${$.attr("aria-label", action_close())}>✕</button></div> `);
@@ -1,50 +1,50 @@
1
- import { $n as search_placeholder, Ar as doc_delete_success_description, Dr as doc_delete, E as sidebar_powered_by, Ln as settings_title, Lr as dashboard_new_document, Mr as doc_delete_confirm, Or as doc_share, Pr as doc_title_label, S as categories_new, _n as action_save, _t as tags_load_error, an as sidebar_recent, d as sidebar_uncategorized, er as search_title, fr as folders_name_placeholder, gn as action_cancel, gr as folders_delete_title, hn as action_delete, in as sidebar_folders, jr as doc_delete_success, kr as doc_tags, ln as action_loading, mn as action_edit, mr as folders_delete_success, nr as tags_delete_description, or as tags_new, pr as folders_delete_success_description, rr as tags_delete_title, tr as tags_add, un as action_go_to, vr as folders_rename, vt as action_copy_content, xr as folders_new, yn as error_generic, yt as editor_more_options, zr as dashboard_title } from "./messages-CvqpZNJe.js";
2
- import { t as Icon } from "./Icon-B0Zqppjo.js";
3
- import { i as Check, n as Plus, r as File_text, t as FolderDialog } from "./confirm-dialog-BCthVwUY.js";
4
- import { t as Chevron_down } from "./chevron-down-CSSNGNh_.js";
5
- import { t as Chevron_right } from "./chevron-right-B4p7Sk6X.js";
6
- import { t as Clock } from "./clock-IL-eX2di.js";
7
- import { t as Copy } from "./copy-CjV57nGQ.js";
8
- import { t as Folder } from "./folder-DChhG7qN.js";
9
- import { t as SettingsDialog } from "./SettingsDialog-C2SMWJL8.js";
10
- import { n as Search, t as Tag } from "./tag-GZEuGWk1.js";
11
- import { a as Dropdown_menu, i as Dropdown_menu_content, o as Ellipsis_vertical, r as Dropdown_menu_item, t as Dropdown_menu_trigger } from "./dropdown-menu-Bj5rbqbB.js";
12
- import { t as Loader_circle } from "./loader-circle-DZsrZ-er.js";
13
- import { n as getDocsmintRouteAdapter, o as resolveDocsmintRoute, r as navigateDocsmintRoute, t as getDocsmintRequestAdapter } from "./route-context-uca_b2Px.js";
1
+ import { Ar as doc_tags, Br as dashboard_title, C as categories_new, D as sidebar_powered_by, Fr as doc_title_label, Mr as doc_delete_success, Nr as doc_delete_confirm, Or as doc_delete, Rn as settings_title, Rr as dashboard_new_document, Sr as folders_new, _n as action_cancel, _r as folders_delete_title, an as sidebar_folders, bn as error_generic, bt as editor_more_options, dn as action_go_to, er as search_placeholder, f as sidebar_uncategorized, gn as action_delete, hn as action_edit, hr as folders_delete_success, ir as tags_delete_title, jr as doc_delete_success_description, kr as doc_share, mr as folders_delete_success_description, nr as tags_add, on as sidebar_recent, pr as folders_name_placeholder, rr as tags_delete_description, sr as tags_new, tr as search_title, un as action_loading, vn as action_save, vt as tags_load_error, yr as folders_rename, yt as action_copy_content } from "./messages-D-auzk9H.js";
2
+ import { t as Icon } from "./Icon-QwirKi9Y.js";
3
+ import { i as Check, n as Plus, r as File_text, t as FolderDialog } from "./confirm-dialog-B3C0WeMn.js";
4
+ import { t as Chevron_down } from "./chevron-down-CvqKATjM.js";
5
+ import { t as Chevron_right } from "./chevron-right-DKD7WXjz.js";
6
+ import { t as Clock } from "./clock-CzsE58TH.js";
7
+ import { t as Copy } from "./copy-DkkCPkBL.js";
8
+ import { t as Folder } from "./folder-DYIE-XPP.js";
9
+ import { t as SettingsDialog } from "./SettingsDialog-BymUxBgg.js";
10
+ import { n as Search, t as Tag } from "./tag-BmiVU_Ej.js";
11
+ import { a as Dropdown_menu, i as Dropdown_menu_content, o as Ellipsis_vertical, r as Dropdown_menu_item, t as Dropdown_menu_trigger } from "./dropdown-menu-CGkf8-rb.js";
12
+ import { t as Loader_circle } from "./loader-circle-CIEWGyfP.js";
13
+ import { a as getDocsmintRequestAdapter, i as resolveDocsmintRoute, n as navigateDocsmintRoute, t as getDocsmintRouteAdapter } from "./route-context-BPRerEtZ.js";
14
14
  import { t as cn } from "./utils-DvZnctjz.js";
15
15
  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";
16
16
  import { t as Input } from "./input-DezGsU3y.js";
17
17
  import { t as Label } from "./label-Bj8-TfFN.js";
18
18
  import { n as apiFetch } from "./client-DZMkDkDn.js";
19
- import { i as listCategories, r as deleteCategory } from "./categories-CTCtdv7V.js";
19
+ import { i as listCategories, r as deleteCategory } from "./categories-av9xjeg5.js";
20
20
  import { t as getFrontendExtensions } from "./context-BtCMqdVe.js";
21
21
  import { t as resolveExtensions } from "./resolve-BqHozBXl.js";
22
22
  import { n as SHADOW_ITEM_MARKER_PROPERTY_NAME } from "./dndzone-DMvTO_Jz.js";
23
- import { c as updateDocument, r as deleteDocument, s as listDocuments, t as clearDocumentsCache } from "./documents-PObdTOiT.js";
23
+ import { c as updateDocument, r as deleteDocument, s as listDocuments, t as clearDocumentsCache } from "./documents-CZ-wQohy.js";
24
24
  import { c as updateFolder, r as deleteFolder, s as listFolders, t as createFolder } from "./folders-BX30gHv6.js";
25
- import { t as DeleteDialog } from "./DeleteDialog-tBYaP0L3.js";
26
- import { t as ShareDialog } from "./ShareDialog-vMvJLRfn.js";
27
- import { t as CategoryDialog } from "./CategoryDialog-BcGW8-Kf.js";
25
+ import { t as DeleteDialog } from "./DeleteDialog-DG9Lm38J.js";
26
+ import { t as ShareDialog } from "./ShareDialog-C-9VDKSz.js";
27
+ import { t as CategoryDialog } from "./CategoryDialog-CLAGMZPz.js";
28
28
  import { n as createDocumentPlacementWriter, t as createDocumentDropCoordinator } from "./document-drop-coordinator-CEaYACsC.js";
29
29
  import { a as getFolderFromRegistry, c as getPendingDocumentPlacement, f as registerDocument, n as bumpSubfoldersRefresh, p as registerFolder, r as getDocumentFromRegistry, t as acknowledgeDocumentPlacement, u as publishDocumentPlacement } from "./subfolders-refresh-store.svelte-DAh4gT16.js";
30
- import { t as FolderNode } from "./FolderNode-CpHrpOED.js";
31
- import { i as setSelectedTag, n as refreshDocs, r as refreshTags, t as getSelectedTag } from "./tag-store.svelte-DvgUduhd.js";
32
- import { t as ConfirmDialog } from "./ConfirmDialog-DjMFKc0V.js";
33
- import { i as deleteTag, o as listTags } from "./tags-BId2wdYd.js";
34
- import { t as TagCreateDialog } from "./TagCreateDialog-B0DPEfmQ.js";
30
+ import { t as FolderNode } from "./FolderNode-Ty6fMbDu.js";
31
+ import { i as setSelectedTag, n as refreshDocs, r as refreshTags, t as getSelectedTag } from "./tag-store.svelte-BM1lUI_P.js";
32
+ import { t as ConfirmDialog } from "./ConfirmDialog-BhAelejz.js";
33
+ import { i as deleteTag, o as listTags } from "./tags-BQsI_6OW.js";
34
+ import { t as TagCreateDialog } from "./TagCreateDialog-B7wDbVqG.js";
35
35
  import * as $ from "svelte/internal/server";
36
36
  import { onDestroy, onMount } from "svelte";
37
37
  import { page } from "$app/state";
38
38
  import "svelte/animate";
39
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/panel-left-close.svelte
39
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/panel-left-close.svelte
40
40
  function Panel_left_close($$renderer, $$props) {
41
41
  const $$sanitized_props = $.sanitize_props($$props);
42
42
  /**
43
- * @license lucide-svelte v1.0.1 - ISC
43
+ * @license lucide-svelte v0.577.0 - ISC
44
44
  *
45
45
  * ISC License
46
46
  *
47
- * Copyright (c) 2026 Lucide Icons and Contributors
47
+ * 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.
48
48
  *
49
49
  * Permission to use, copy, modify, and/or distribute this software for any
50
50
  * purpose with or without fee is hereby granted, provided that the above
@@ -60,13 +60,9 @@ function Panel_left_close($$renderer, $$props) {
60
60
  *
61
61
  * ---
62
62
  *
63
- * The following Lucide icons are derived from the Feather project:
63
+ * The MIT License (MIT) (for portions derived from Feather)
64
64
  *
65
- * 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
66
- *
67
- * The MIT License (MIT) (for the icons listed above)
68
- *
69
- * Copyright (c) 2013-present Cole Bemis
65
+ * Copyright (c) 2013-2026 Cole Bemis
70
66
  *
71
67
  * Permission is hereby granted, free of charge, to any person obtaining a copy
72
68
  * of this software and associated documentation files (the "Software"), to deal
@@ -123,15 +119,15 @@ function Panel_left_close($$renderer, $$props) {
123
119
  ]));
124
120
  }
125
121
  //#endregion
126
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/panel-left-open.svelte
122
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/panel-left-open.svelte
127
123
  function Panel_left_open($$renderer, $$props) {
128
124
  const $$sanitized_props = $.sanitize_props($$props);
129
125
  /**
130
- * @license lucide-svelte v1.0.1 - ISC
126
+ * @license lucide-svelte v0.577.0 - ISC
131
127
  *
132
128
  * ISC License
133
129
  *
134
- * Copyright (c) 2026 Lucide Icons and Contributors
130
+ * 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.
135
131
  *
136
132
  * Permission to use, copy, modify, and/or distribute this software for any
137
133
  * purpose with or without fee is hereby granted, provided that the above
@@ -147,13 +143,9 @@ function Panel_left_open($$renderer, $$props) {
147
143
  *
148
144
  * ---
149
145
  *
150
- * The following Lucide icons are derived from the Feather project:
151
- *
152
- * 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
153
- *
154
- * The MIT License (MIT) (for the icons listed above)
146
+ * The MIT License (MIT) (for portions derived from Feather)
155
147
  *
156
- * Copyright (c) 2013-present Cole Bemis
148
+ * Copyright (c) 2013-2026 Cole Bemis
157
149
  *
158
150
  * Permission is hereby granted, free of charge, to any person obtaining a copy
159
151
  * of this software and associated documentation files (the "Software"), to deal
@@ -210,15 +202,15 @@ function Panel_left_open($$renderer, $$props) {
210
202
  ]));
211
203
  }
212
204
  //#endregion
213
- //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/settings.svelte
205
+ //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/settings.svelte
214
206
  function Settings($$renderer, $$props) {
215
207
  const $$sanitized_props = $.sanitize_props($$props);
216
208
  /**
217
- * @license lucide-svelte v1.0.1 - ISC
209
+ * @license lucide-svelte v0.577.0 - ISC
218
210
  *
219
211
  * ISC License
220
212
  *
221
- * Copyright (c) 2026 Lucide Icons and Contributors
213
+ * 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.
222
214
  *
223
215
  * Permission to use, copy, modify, and/or distribute this software for any
224
216
  * purpose with or without fee is hereby granted, provided that the above
@@ -234,13 +226,9 @@ function Settings($$renderer, $$props) {
234
226
  *
235
227
  * ---
236
228
  *
237
- * The following Lucide icons are derived from the Feather project:
229
+ * The MIT License (MIT) (for portions derived from Feather)
238
230
  *
239
- * 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
240
- *
241
- * The MIT License (MIT) (for the icons listed above)
242
- *
243
- * Copyright (c) 2013-present Cole Bemis
231
+ * Copyright (c) 2013-2026 Cole Bemis
244
232
  *
245
233
  * Permission is hereby granted, free of charge, to any person obtaining a copy
246
234
  * of this software and associated documentation files (the "Software"), to deal
@@ -1399,6 +1387,7 @@ function FolderTree($$renderer, $$props) {
1399
1387
  //#region src/lib/components/sidebar/RecentDocs.svelte
1400
1388
  function RecentDocs($$renderer, $$props) {
1401
1389
  $$renderer.component(($$renderer) => {
1390
+ const request = getDocsmintRequestAdapter();
1402
1391
  let recentDocs = [];
1403
1392
  let activeId = null;
1404
1393
  let loadError = null;
@@ -1419,7 +1408,7 @@ function RecentDocs($$renderer, $$props) {
1419
1408
  recentDocs = (await listDocuments({
1420
1409
  limit: 6,
1421
1410
  ...tag ? { tag } : {}
1422
- })).items;
1411
+ }, request.fetch)).items;
1423
1412
  loadError = null;
1424
1413
  } catch (e) {
1425
1414
  console.error("RecentDocs: failed to load recent documents", e);
@@ -1471,7 +1460,7 @@ function RecentDocs($$renderer, $$props) {
1471
1460
  }
1472
1461
  renameSubmitting = true;
1473
1462
  try {
1474
- await updateDocument(target.id, { title: trimmed });
1463
+ await updateDocument(target.id, { title: trimmed }, request.fetch);
1475
1464
  closeRenameDialog();
1476
1465
  await fetchRecentDocs();
1477
1466
  refreshDocs();
@@ -1499,7 +1488,7 @@ function RecentDocs($$renderer, $$props) {
1499
1488
  if (!target || deleteBusy) return;
1500
1489
  deleteBusy = true;
1501
1490
  try {
1502
- await deleteDocument(target.id);
1491
+ await deleteDocument(target.id, request.fetch);
1503
1492
  cancelDelete();
1504
1493
  await fetchRecentDocs();
1505
1494
  refreshDocs();
@@ -1712,6 +1701,7 @@ function RecentDocs($$renderer, $$props) {
1712
1701
  //#region src/lib/components/sidebar/TagList.svelte
1713
1702
  function TagList($$renderer, $$props) {
1714
1703
  $$renderer.component(($$renderer) => {
1704
+ const request = getDocsmintRequestAdapter();
1715
1705
  let tags = [];
1716
1706
  let loadError = null;
1717
1707
  let showCreateDialog = false;
@@ -1721,7 +1711,7 @@ function TagList($$renderer, $$props) {
1721
1711
  let busy = false;
1722
1712
  async function refresh() {
1723
1713
  try {
1724
- tags = await listTags();
1714
+ tags = await listTags(request.fetch);
1725
1715
  } catch (e) {
1726
1716
  console.error("TagList: failed to load tags", e);
1727
1717
  loadError = tags_load_error();
@@ -1759,7 +1749,7 @@ function TagList($$renderer, $$props) {
1759
1749
  if (!t || busy) return;
1760
1750
  busy = true;
1761
1751
  try {
1762
- await deleteTag(t.id);
1752
+ await deleteTag(t.id, request.fetch);
1763
1753
  tags = tags.filter((tag) => tag.id !== t.id);
1764
1754
  if (getSelectedTag() === t.id) setSelectedTag(null);
1765
1755
  showDeleteDialog = false;
@@ -1,14 +1,16 @@
1
- import { _n as action_save, ar as tags_edit, gn as action_cancel, ir as tags_name_placeholder, ln as action_loading, or as tags_new, pn as action_create, yn as error_generic } from "./messages-CvqpZNJe.js";
2
- import { t as Loader_circle } from "./loader-circle-DZsrZ-er.js";
1
+ import { _n as action_cancel, ar as tags_name_placeholder, bn as error_generic, mn as action_create, or as tags_edit, sr as tags_new, un as action_loading, vn as action_save } from "./messages-D-auzk9H.js";
2
+ import { t as Loader_circle } from "./loader-circle-CIEWGyfP.js";
3
+ import { a as getDocsmintRequestAdapter } from "./route-context-BPRerEtZ.js";
3
4
  import { t as cn } from "./utils-DvZnctjz.js";
4
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";
5
6
  import { t as Input } from "./input-DezGsU3y.js";
6
7
  import { t as Label } from "./label-Bj8-TfFN.js";
7
- import { c as updateTag, l as updateTagInputSchema, n as createTag, r as createTagInputSchema } from "./tags-BId2wdYd.js";
8
+ import { c as updateTag, l as updateTagInputSchema, n as createTag, r as createTagInputSchema } from "./tags-BQsI_6OW.js";
8
9
  import * as $ from "svelte/internal/server";
9
10
  //#region src/lib/components/TagCreateDialog.svelte
10
11
  function TagCreateDialog($$renderer, $$props) {
11
12
  $$renderer.component(($$renderer) => {
13
+ const request = getDocsmintRequestAdapter();
12
14
  const PRESET_COLORS = [
13
15
  "#ef4444",
14
16
  "#f97316",
@@ -97,7 +99,7 @@ function TagCreateDialog($$renderer, $$props) {
97
99
  async function doCreate(trimmed, pickedColor) {
98
100
  submitting = true;
99
101
  try {
100
- const created = await createTag(trimmed, pickedColor);
102
+ const created = await createTag(trimmed, pickedColor, request.fetch);
101
103
  onCreated?.(created);
102
104
  close();
103
105
  } catch (e) {
@@ -110,7 +112,7 @@ function TagCreateDialog($$renderer, $$props) {
110
112
  async function doUpdate(id, data) {
111
113
  submitting = true;
112
114
  try {
113
- const updated = await updateTag(id, data);
115
+ const updated = await updateTag(id, data, request.fetch);
114
116
  onUpdated?.(updated);
115
117
  close();
116
118
  } catch (e) {
@@ -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/");