@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.
- package/backend/src/lib/api-key-facade.ts +1 -0
- package/dist/backend/index.js +38379 -18500
- package/dist/backend-api-key-facade.js +23 -0
- package/dist/client.js +2 -7
- package/dist/frontend/{CategoryDialog-CxVyaBV5.js → CategoryDialog-DmlX0Z97.js} +109 -108
- package/dist/frontend/ConfirmDialog-DgMTQBq4.js +134 -0
- package/dist/frontend/{CreateSnapshotDialog-BDgFTeFn.js → CreateSnapshotDialog-CXW4sCuf.js} +29 -29
- package/dist/frontend/DatePicker-D6E-EEtZ.js +340 -0
- package/dist/frontend/{DeleteDialog-CvAr2WPu.js → DeleteDialog-8k6JYWCx.js} +3 -3
- package/dist/frontend/{FolderNode--l1g8bcL.js → FolderNode-D3rN3yLV.js} +8 -8
- package/dist/frontend/{FolderTreeSelector-CyB8y2Sm.js → FolderTreeSelector-BMB1MS9N.js} +3 -3
- package/dist/frontend/{Icon-CooFj4Ee.js → Icon-Db-o32_E.js} +1 -1
- package/dist/frontend/{SettingsDialog-BB7h7GWw.js → SettingsDialog-DEx1eEZm.js} +290 -290
- package/dist/frontend/ShareDialog-uEf8Ks02.js +166 -0
- package/dist/frontend/Sidebar-BthP-jOS.js +2043 -0
- package/dist/frontend/TagCreateDialog-Bb0-Vtzh.js +261 -0
- package/dist/frontend/api/attachments.js +1 -1
- package/dist/frontend/api/categories.d.ts +3 -3
- package/dist/frontend/api/categories.js +1 -1
- package/dist/frontend/api/documents.js +1 -1
- package/dist/frontend/api/share.js +1 -1
- package/dist/frontend/api/tags.js +1 -1
- package/dist/frontend/{api-keys-CpkrA8rD.js → api-keys-DIwAdYkg.js} +10 -10
- package/dist/frontend/app-shell.d.ts +5 -1
- package/dist/frontend/app-shell.js +83 -72
- package/dist/frontend/{attachments-BuILSs56.js → attachments-C2DBzU-r.js} +13 -13
- package/dist/frontend/{camera-iKXDOOWT.js → camera-CzCxBOpc.js} +2 -2
- package/dist/frontend/{categories-Drnns7N6.js → categories-X7gK8azc.js} +0 -2
- package/dist/frontend/{check-D-UuvBuh.js → check-BIi-Ghti.js} +2 -2
- package/dist/frontend/{chevron-down-CiPtYyFh.js → chevron-down-C2ft7XUV.js} +2 -2
- package/dist/frontend/{circle-check-tSPE1V6t.js → circle-check-BrqfiQH1.js} +2 -2
- package/dist/frontend/{clock-DJHbHZb8.js → clock-Dz86E4Kz.js} +2 -2
- package/dist/frontend/collaboration.d.ts +4 -2
- package/dist/frontend/collaboration.js +114 -89
- package/dist/frontend/components/category-dialog.js +1 -1
- package/dist/frontend/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend/components/delete-dialog.js +1 -1
- package/dist/frontend/components/editor/document-editor.js +1203 -1190
- package/dist/frontend/components/editor/document-title.js +2 -2
- package/dist/frontend/components/editor/markdown-toggle.js +4 -4
- package/dist/frontend/components/folder-node.js +1 -1
- package/dist/frontend/components/folder-tree-selector.js +1 -1
- package/dist/frontend/components/save-as-dialog.js +145 -144
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.js +1 -1
- package/dist/frontend/components/sidebar.js +1 -1
- package/dist/frontend/components/tag-create-dialog.js +1 -1
- package/dist/frontend/components/version-history.js +34 -34
- package/dist/frontend/{confirm-dialog-C4jTRbiS.js → confirm-dialog-CzmoZw3a.js} +20 -20
- package/dist/frontend/{copy-GppwRMjX.js → copy-CvCh4ZVt.js} +2 -2
- package/dist/frontend/dashboard.js +1133 -1087
- package/dist/frontend/{dialog-Bevp9mmM.js → dialog-Ce79C9fd.js} +1 -1
- package/dist/frontend/{dist-C3857Spp.js → dist-DQa_OHOa.js} +2 -2
- package/dist/frontend/{documents-Bc7b_MSZ.js → documents-CwCs1rA7.js} +52 -12
- package/dist/frontend/{dropdown-menu-CRSby3e9.js → dropdown-menu-CJ_7V3N0.js} +45 -45
- package/dist/frontend/{floating-layer-anchor-BDs7vO-M.js → floating-layer-anchor-S5RSefGN.js} +1 -1
- package/dist/frontend/{folder-DeWhnD7O.js → folder-Cx60MRpi.js} +3 -3
- package/dist/frontend/i18n.js +3 -3
- package/dist/frontend/{messages-C5Q890i2.js → messages-DIovIZrK.js} +46 -44
- package/dist/frontend/{rotate-ccw-B4Q7brmV.js → rotate-ccw-ta4NosZ0.js} +2 -2
- package/dist/frontend/{route-context-BqQQ5c4i.js → route-context-DYQlUfzL.js} +14 -11
- package/dist/frontend/search.js +431 -415
- package/dist/frontend/{select-value-GXwx90Pr.js → select-value-JCAp2PmU.js} +466 -466
- package/dist/frontend/{share-Cu7SSJuJ.js → share-D7JtkC85.js} +2 -2
- package/dist/frontend/{tag-HxRazVN_.js → tag-DhVFHMcV.js} +3 -3
- package/dist/frontend/{tag-store.svelte-CG7RrlDT.js → tag-store.svelte-ogVCMCbv.js} +1 -1
- package/dist/frontend/{tags-CtCV0Djo.js → tags-BdCaMGfj.js} +18 -18
- package/dist/frontend/{x-CzBsnJ2x.js → x-cfdlccjs.js} +2 -2
- package/dist/frontend-ssr/api/attachments.js +1 -1
- package/dist/frontend-ssr/api/categories.js +1 -1
- package/dist/frontend-ssr/api/documents.js +1 -1
- package/dist/frontend-ssr/api/share.js +1 -1
- package/dist/frontend-ssr/api/tags.js +1 -1
- package/dist/frontend-ssr/app-shell.js +30 -26
- package/dist/frontend-ssr/assets/{CategoryDialog-BcGW8-Kf.js → CategoryDialog-DDu37Oub.js} +13 -11
- package/dist/frontend-ssr/assets/ConfirmDialog-BhAelejz.js +131 -0
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-1bROJ-Rn.js → CreateSnapshotDialog-DNAjd4eD.js} +2 -2
- package/dist/frontend-ssr/assets/{DatePicker-B1ML8OVz.js → DatePicker-Cp6Qmgdb.js} +17 -29
- package/dist/frontend-ssr/assets/{DeleteDialog-tBYaP0L3.js → DeleteDialog-DG9Lm38J.js} +2 -2
- package/dist/frontend-ssr/assets/{FolderNode-CpHrpOED.js → FolderNode-CrLWqHJH.js} +5 -5
- package/dist/frontend-ssr/assets/{FolderTreeSelector-DZNZ2oI6.js → FolderTreeSelector-Bxi8EqMm.js} +8 -12
- package/dist/frontend-ssr/assets/{Icon-B0Zqppjo.js → Icon-QwirKi9Y.js} +16 -28
- package/dist/frontend-ssr/assets/{SettingsDialog-C2SMWJL8.js → SettingsDialog-BymUxBgg.js} +20 -27
- package/dist/frontend-ssr/assets/{ShareDialog-vMvJLRfn.js → ShareDialog-B82t8oJi.js} +4 -2
- package/dist/frontend-ssr/assets/{Sidebar-DKqmwreh.js → Sidebar-CI8YKbrY.js} +55 -57
- package/dist/frontend-ssr/assets/{TagCreateDialog-B0DPEfmQ.js → TagCreateDialog-B7wDbVqG.js} +7 -5
- package/dist/frontend-ssr/assets/{api-keys-DFqX39MT.js → api-keys-DIbclwj5.js} +10 -10
- package/dist/frontend-ssr/assets/{attachments-CWBxE3Vz.js → attachments-CXgatN0B.js} +9 -9
- package/dist/frontend-ssr/assets/{camera-CdxscTw-.js → camera-D6s20LDi.js} +6 -10
- package/dist/frontend-ssr/assets/{categories-CTCtdv7V.js → categories-av9xjeg5.js} +0 -2
- package/dist/frontend-ssr/assets/{chevron-down-CSSNGNh_.js → chevron-down-CvqKATjM.js} +6 -10
- package/dist/frontend-ssr/assets/{chevron-right-B4p7Sk6X.js → chevron-right-DKD7WXjz.js} +6 -10
- package/dist/frontend-ssr/assets/{circle-check-CI1v4vYh.js → circle-check-CPS9dKEo.js} +6 -10
- package/dist/frontend-ssr/assets/{clock-IL-eX2di.js → clock-CzsE58TH.js} +6 -10
- package/dist/frontend-ssr/assets/{confirm-dialog-BCthVwUY.js → confirm-dialog-B3C0WeMn.js} +20 -32
- package/dist/frontend-ssr/assets/{copy-CjV57nGQ.js → copy-DkkCPkBL.js} +6 -10
- package/dist/frontend-ssr/assets/{documents-PObdTOiT.js → documents-CZ-wQohy.js} +58 -12
- package/dist/frontend-ssr/assets/{dropdown-menu-Bj5rbqbB.js → dropdown-menu-Dn_vQq9b.js} +7 -11
- package/dist/frontend-ssr/assets/{floating-layer-anchor-CYIE8Oj6.js → floating-layer-anchor-BIAu-252.js} +1 -1
- package/dist/frontend-ssr/assets/{folder-DChhG7qN.js → folder-DYIE-XPP.js} +6 -10
- package/dist/frontend-ssr/assets/{loader-circle-DZsrZ-er.js → loader-circle-CIEWGyfP.js} +6 -10
- package/dist/frontend-ssr/assets/{messages-CvqpZNJe.js → messages-D-auzk9H.js} +23 -1
- package/dist/frontend-ssr/assets/{rotate-ccw-BlgWwaiq.js → rotate-ccw-dJSqPyTd.js} +6 -10
- package/dist/frontend-ssr/assets/{route-context-uca_b2Px.js → route-context-BPRerEtZ.js} +11 -8
- package/dist/frontend-ssr/assets/{select-value-6Lk0ToYd.js → select-value-DBhbkNcc.js} +1 -1
- package/dist/frontend-ssr/assets/{share-BTBJelxA.js → share-qTqvd6Lu.js} +2 -2
- package/dist/frontend-ssr/assets/{tag-GZEuGWk1.js → tag-BmiVU_Ej.js} +11 -19
- package/dist/frontend-ssr/assets/{tag-store.svelte-DvgUduhd.js → tag-store.svelte-BM1lUI_P.js} +1 -1
- package/dist/frontend-ssr/assets/{tags-BId2wdYd.js → tags-BQsI_6OW.js} +12 -12
- package/dist/frontend-ssr/collaboration.js +37 -12
- package/dist/frontend-ssr/components/category-dialog.js +1 -1
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend-ssr/components/delete-dialog.js +1 -1
- package/dist/frontend-ssr/components/editor/document-editor.js +143 -207
- package/dist/frontend-ssr/components/editor/document-title.js +1 -1
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +2 -2
- package/dist/frontend-ssr/components/folder-node.js +1 -1
- package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
- package/dist/frontend-ssr/components/save-as-dialog.js +8 -6
- package/dist/frontend-ssr/components/settings.js +1 -1
- package/dist/frontend-ssr/components/share-dialog.js +1 -1
- package/dist/frontend-ssr/components/sidebar.js +1 -1
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
- package/dist/frontend-ssr/components/version-history.js +19 -27
- package/dist/frontend-ssr/dashboard.js +344 -185
- package/dist/frontend-ssr/i18n.js +1 -1
- package/dist/frontend-ssr/search.js +16 -20
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/types.d.ts +1 -3
- package/dist/workspace.d.ts +0 -2
- package/dist/workspace.js +0 -2
- package/package.json +1 -1
- package/packages/cli/src/index.ts +1 -1
- package/packages/db/src/with-tenant.ts +2 -0
- package/packages/mcp-server/src/index.ts +1 -1
- package/dist/frontend/ConfirmDialog-NFGXRa3E.js +0 -214
- package/dist/frontend/DatePicker-BZRBluzF.js +0 -256
- package/dist/frontend/ShareDialog-BUOkYSlw.js +0 -165
- package/dist/frontend/Sidebar-fbtYC3qs.js +0 -2037
- package/dist/frontend/TagCreateDialog-B9YZBNHi.js +0 -260
- package/dist/frontend-ssr/assets/ConfirmDialog-DjMFKc0V.js +0 -420
package/dist/frontend-ssr/assets/{FolderTreeSelector-DZNZ2oI6.js → FolderTreeSelector-Bxi8EqMm.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
2
|
-
import { t as Chevron_right } from "./chevron-right-
|
|
3
|
-
import { t as Folder } from "./folder-
|
|
1
|
+
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
2
|
+
import { t as Chevron_right } from "./chevron-right-DKD7WXjz.js";
|
|
3
|
+
import { t as Folder } from "./folder-DYIE-XPP.js";
|
|
4
4
|
import * as $ from "svelte/internal/server";
|
|
5
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
5
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/folder-open.svelte
|
|
6
6
|
function Folder_open($$renderer, $$props) {
|
|
7
7
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
8
8
|
/**
|
|
9
|
-
* @license lucide-svelte
|
|
9
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
10
10
|
*
|
|
11
11
|
* ISC License
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c) 2026 Lucide
|
|
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 Folder_open($$renderer, $$props) {
|
|
|
26
26
|
*
|
|
27
27
|
* ---
|
|
28
28
|
*
|
|
29
|
-
* The
|
|
29
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
30
30
|
*
|
|
31
|
-
*
|
|
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
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as $ from "svelte/internal/server";
|
|
2
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
2
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/defaultAttributes.js
|
|
3
3
|
/**
|
|
4
|
-
* @license lucide-svelte
|
|
4
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
5
5
|
*
|
|
6
6
|
* ISC License
|
|
7
7
|
*
|
|
8
|
-
* Copyright (c) 2026 Lucide
|
|
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
|
|
24
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
25
25
|
*
|
|
26
|
-
*
|
|
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@
|
|
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
|
|
61
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
66
62
|
*
|
|
67
63
|
* ISC License
|
|
68
64
|
*
|
|
69
|
-
* Copyright (c) 2026 Lucide
|
|
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
|
|
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
|
-
*
|
|
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@
|
|
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
|
|
117
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
126
118
|
*
|
|
127
119
|
* ISC License
|
|
128
120
|
*
|
|
129
|
-
* Copyright (c) 2026 Lucide
|
|
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
|
|
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-
|
|
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@
|
|
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
|
|
2
|
-
import { t as Icon } from "./Icon-
|
|
3
|
-
import {
|
|
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-
|
|
11
|
-
import { i as listCategories } from "./categories-
|
|
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@
|
|
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
|
|
24
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
25
25
|
*
|
|
26
26
|
* ISC License
|
|
27
27
|
*
|
|
28
|
-
* Copyright (c) 2026 Lucide
|
|
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
|
|
44
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
45
45
|
*
|
|
46
|
-
*
|
|
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@
|
|
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
|
|
101
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
106
102
|
*
|
|
107
103
|
* ISC License
|
|
108
104
|
*
|
|
109
|
-
* Copyright (c) 2026 Lucide
|
|
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
|
|
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-
|
|
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
|
|
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,9 +11,10 @@ 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
|
-
$$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-
|
|
17
|
+
$$renderer.push(`<div class="fixed inset-0 layer-modal z-[100] flex items-center justify-center"><button class="absolute inset-0 z-[100] bg-black/50"${$.attr("aria-label", action_close())}></button> <div class="relative z-[101] w-full max-w-md rounded-lg border border-border bg-background p-6 shadow-lg" role="dialog" aria-modal="true"><div class="mb-4 flex items-center justify-between"><h2 class="text-lg font-semibold">${$.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> `);
|
|
16
18
|
{
|
|
17
19
|
$$renderer.push("<!--[0-->");
|
|
18
20
|
$$renderer.push(`<div class="space-y-4"><div class="flex items-center justify-between"><span class="text-sm font-medium">${$.escape(share_password_protection())}</span> <button${$.attr_class(`relative inline-flex h-5 w-9 items-center rounded-full transition-colors bg-input`)} role="switch"${$.attr("aria-checked", usePassword)}${$.attr("aria-label", share_toggle_password())}><span${$.attr_class(`inline-block h-4 w-4 rounded-full bg-white shadow transition-transform translate-x-0.5`)}></span></button></div> `);
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Icon } from "./Icon-
|
|
3
|
-
import { i as Check, n as Plus, r as File_text, t as FolderDialog } from "./confirm-dialog-
|
|
4
|
-
import { t as Chevron_down } from "./chevron-down-
|
|
5
|
-
import { t as Chevron_right } from "./chevron-right-
|
|
6
|
-
import { t as Clock } from "./clock-
|
|
7
|
-
import { t as Copy } from "./copy-
|
|
8
|
-
import { t as Folder } from "./folder-
|
|
9
|
-
import { t as SettingsDialog } from "./SettingsDialog-
|
|
10
|
-
import { n as Search, t as Tag } from "./tag-
|
|
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-
|
|
12
|
-
import { t as Loader_circle } from "./loader-circle-
|
|
13
|
-
import {
|
|
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-Dn_vQq9b.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-
|
|
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-
|
|
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-
|
|
26
|
-
import { t as ShareDialog } from "./ShareDialog-
|
|
27
|
-
import { t as CategoryDialog } from "./CategoryDialog-
|
|
25
|
+
import { t as DeleteDialog } from "./DeleteDialog-DG9Lm38J.js";
|
|
26
|
+
import { t as ShareDialog } from "./ShareDialog-B82t8oJi.js";
|
|
27
|
+
import { t as CategoryDialog } from "./CategoryDialog-DDu37Oub.js";
|
|
28
28
|
import { n as createDocumentPlacementWriter, t as createDocumentDropCoordinator } from "./document-drop-coordinator-CEaYACsC.js";
|
|
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-
|
|
31
|
-
import { i as setSelectedTag, n as refreshDocs, r as refreshTags, t as getSelectedTag } from "./tag-store.svelte-
|
|
32
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
33
|
-
import { i as deleteTag, o as listTags } from "./tags-
|
|
34
|
-
import { t as TagCreateDialog } from "./TagCreateDialog-
|
|
29
|
+
import { a as getFolderFromRegistry, c as getPendingDocumentPlacement, d as refreshFolders, 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-CrLWqHJH.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@
|
|
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
|
|
43
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
44
44
|
*
|
|
45
45
|
* ISC License
|
|
46
46
|
*
|
|
47
|
-
* Copyright (c) 2026 Lucide
|
|
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
|
|
63
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
64
64
|
*
|
|
65
|
-
*
|
|
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@
|
|
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
|
|
126
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
131
127
|
*
|
|
132
128
|
* ISC License
|
|
133
129
|
*
|
|
134
|
-
* Copyright (c) 2026 Lucide
|
|
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
|
|
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
|
|
146
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
153
147
|
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
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@
|
|
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
|
|
209
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
218
210
|
*
|
|
219
211
|
* ISC License
|
|
220
212
|
*
|
|
221
|
-
* Copyright (c) 2026 Lucide
|
|
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
|
|
238
|
-
*
|
|
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)
|
|
229
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
242
230
|
*
|
|
243
|
-
* Copyright (c) 2013-
|
|
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
|
|
@@ -1056,7 +1044,7 @@ function FolderTree($$renderer, $$props) {
|
|
|
1056
1044
|
let $$settled = true;
|
|
1057
1045
|
let $$inner_renderer;
|
|
1058
1046
|
function $$render_inner($$renderer) {
|
|
1059
|
-
$$renderer.push(`<div class="space-y-1"><div class="mb-2 flex items-center justify-between gap-1"><a
|
|
1047
|
+
$$renderer.push(`<div class="space-y-1"><div class="mb-2 flex items-center justify-between gap-1"><a${$.attr("href", resolveDocsmintRoute(route, "/"))} class="block flex-1 px-2 text-xs font-medium uppercase tracking-wider text-muted-foreground transition-colors hover:text-foreground"${$.attr("title", dashboard_title())}>${$.escape(sidebar_folders())}</a> <button type="button" class="inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"${$.attr("aria-label", categories_new())}${$.attr("title", categories_new())}>`);
|
|
1060
1048
|
Plus($$renderer, { class: "size-3.5" });
|
|
1061
1049
|
$$renderer.push(`<!----></button></div> `);
|
|
1062
1050
|
if (loadError) {
|
|
@@ -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;
|
|
@@ -1900,6 +1890,14 @@ function Sidebar($$renderer, $$props) {
|
|
|
1900
1890
|
const frontendExtensions = getFrontendExtensions();
|
|
1901
1891
|
const sidebarTopExtensions = $.derived(() => resolveExtensions(frontendExtensions.sidebarTop, { pathname: page.url.pathname }));
|
|
1902
1892
|
const navigationExtensions = $.derived(() => resolveExtensions(frontendExtensions.navigation, { pathname: page.url.pathname }));
|
|
1893
|
+
onMount(() => {
|
|
1894
|
+
const refreshWorkspaceViews = () => {
|
|
1895
|
+
refreshFolders();
|
|
1896
|
+
refreshDocs();
|
|
1897
|
+
};
|
|
1898
|
+
window.addEventListener("hiai-docs:documents-updated", refreshWorkspaceViews);
|
|
1899
|
+
return () => window.removeEventListener("hiai-docs:documents-updated", refreshWorkspaceViews);
|
|
1900
|
+
});
|
|
1903
1901
|
let $$settled = true;
|
|
1904
1902
|
let $$inner_renderer;
|
|
1905
1903
|
function $$render_inner($$renderer) {
|
package/dist/frontend-ssr/assets/{TagCreateDialog-B0DPEfmQ.js → TagCreateDialog-B7wDbVqG.js}
RENAMED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { _n as
|
|
2
|
-
import { t as Loader_circle } from "./loader-circle-
|
|
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-
|
|
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) {
|