@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.
- package/backend/src/lib/api-key-facade.ts +1 -0
- package/dist/backend/index.js +38379 -18500
- package/dist/backend-api-key-facade.js +772 -0
- package/dist/client.js +2 -7
- package/dist/frontend/{CategoryDialog-CxVyaBV5.js → CategoryDialog-DyytjQn6.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-BZRBluzF.js → DatePicker-BkaaNS1l.js} +34 -34
- package/dist/frontend/{DeleteDialog-CvAr2WPu.js → DeleteDialog-8k6JYWCx.js} +3 -3
- package/dist/frontend/{FolderNode--l1g8bcL.js → FolderNode-DAGPgi-M.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-ChZogJtW.js +166 -0
- package/dist/frontend/Sidebar-BdB8CfXS.js +2037 -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 +1169 -1168
- 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 +1025 -1011
- 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-Cre80-CJ.js} +2 -2
- 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 +99 -99
- 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-CLAGMZPz.js} +12 -10
- 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-Ty6fMbDu.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-C-9VDKSz.js} +3 -1
- package/dist/frontend-ssr/assets/{Sidebar-DKqmwreh.js → Sidebar-DzbIUZFc.js} +45 -55
- 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-CGkf8-rb.js} +6 -10
- 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/{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 +108 -186
- 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 +7 -5
- 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 +78 -113
- package/dist/frontend-ssr/i18n.js +1 -1
- package/dist/frontend-ssr/search.js +15 -19
- 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 +2 -2
- 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/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
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
1
|
+
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
2
2
|
import * as $ from "svelte/internal/server";
|
|
3
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
3
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/camera.svelte
|
|
4
4
|
function Camera($$renderer, $$props) {
|
|
5
5
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-svelte
|
|
7
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* ISC License
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2026 Lucide
|
|
11
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
12
12
|
*
|
|
13
13
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
14
14
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -24,13 +24,9 @@ function Camera($$renderer, $$props) {
|
|
|
24
24
|
*
|
|
25
25
|
* ---
|
|
26
26
|
*
|
|
27
|
-
* The
|
|
27
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) 2013-present Cole Bemis
|
|
29
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
34
30
|
*
|
|
35
31
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
32
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -6,7 +6,6 @@ var createCategoryInputSchema = z.object({
|
|
|
6
6
|
apiMode: z.enum([
|
|
7
7
|
"unavailable",
|
|
8
8
|
"global",
|
|
9
|
-
"general",
|
|
10
9
|
"category"
|
|
11
10
|
]).optional(),
|
|
12
11
|
apiPermissionRead: z.boolean().optional(),
|
|
@@ -19,7 +18,6 @@ var updateCategoryInputSchema = z.object({
|
|
|
19
18
|
apiMode: z.enum([
|
|
20
19
|
"unavailable",
|
|
21
20
|
"global",
|
|
22
|
-
"general",
|
|
23
21
|
"category"
|
|
24
22
|
]).optional(),
|
|
25
23
|
apiPermissionRead: z.boolean().optional(),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
1
|
+
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
2
2
|
import * as $ from "svelte/internal/server";
|
|
3
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
3
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/chevron-down.svelte
|
|
4
4
|
function Chevron_down($$renderer, $$props) {
|
|
5
5
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-svelte
|
|
7
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* ISC License
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2026 Lucide
|
|
11
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
12
12
|
*
|
|
13
13
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
14
14
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -24,13 +24,9 @@ function Chevron_down($$renderer, $$props) {
|
|
|
24
24
|
*
|
|
25
25
|
* ---
|
|
26
26
|
*
|
|
27
|
-
* The
|
|
27
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) 2013-present Cole Bemis
|
|
29
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
34
30
|
*
|
|
35
31
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
32
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
1
|
+
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
2
2
|
import * as $ from "svelte/internal/server";
|
|
3
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
3
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/chevron-right.svelte
|
|
4
4
|
function Chevron_right($$renderer, $$props) {
|
|
5
5
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-svelte
|
|
7
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* ISC License
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2026 Lucide
|
|
11
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
12
12
|
*
|
|
13
13
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
14
14
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -24,13 +24,9 @@ function Chevron_right($$renderer, $$props) {
|
|
|
24
24
|
*
|
|
25
25
|
* ---
|
|
26
26
|
*
|
|
27
|
-
* The
|
|
27
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) 2013-present Cole Bemis
|
|
29
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
34
30
|
*
|
|
35
31
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
32
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
1
|
+
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
2
2
|
import * as $ from "svelte/internal/server";
|
|
3
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
3
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/circle-check.svelte
|
|
4
4
|
function Circle_check($$renderer, $$props) {
|
|
5
5
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-svelte
|
|
7
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* ISC License
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2026 Lucide
|
|
11
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
12
12
|
*
|
|
13
13
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
14
14
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -24,13 +24,9 @@ function Circle_check($$renderer, $$props) {
|
|
|
24
24
|
*
|
|
25
25
|
* ---
|
|
26
26
|
*
|
|
27
|
-
* The
|
|
27
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) 2013-present Cole Bemis
|
|
29
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
34
30
|
*
|
|
35
31
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
32
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
1
|
+
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
2
2
|
import * as $ from "svelte/internal/server";
|
|
3
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
3
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/clock.svelte
|
|
4
4
|
function Clock($$renderer, $$props) {
|
|
5
5
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-svelte
|
|
7
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* ISC License
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2026 Lucide
|
|
11
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
12
12
|
*
|
|
13
13
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
14
14
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -24,13 +24,9 @@ function Clock($$renderer, $$props) {
|
|
|
24
24
|
*
|
|
25
25
|
* ---
|
|
26
26
|
*
|
|
27
|
-
* The
|
|
27
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) 2013-present Cole Bemis
|
|
29
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
34
30
|
*
|
|
35
31
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
32
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Icon } from "./Icon-
|
|
3
|
-
import { t as Circle_check } from "./circle-check-
|
|
4
|
-
import { t as Loader_circle } from "./loader-circle-
|
|
1
|
+
import { O as doc_new_folder_name, Sr as folders_new, _n as action_cancel, bn as error_generic, mn as action_create, vn as action_save, yr as folders_rename } from "./messages-D-auzk9H.js";
|
|
2
|
+
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
3
|
+
import { t as Circle_check } from "./circle-check-CPS9dKEo.js";
|
|
4
|
+
import { t as Loader_circle } from "./loader-circle-CIEWGyfP.js";
|
|
5
5
|
import { a as Dialog, i as Dialog_description, n as Dialog_header, o as Button, r as Dialog_footer, t as Dialog_title } from "./dialog-BOV1u6zP.js";
|
|
6
6
|
import { t as Input } from "./input-DezGsU3y.js";
|
|
7
7
|
import { t as Label } from "./label-Bj8-TfFN.js";
|
|
8
|
-
import "./ConfirmDialog-
|
|
8
|
+
import "./ConfirmDialog-BhAelejz.js";
|
|
9
9
|
import * as $ from "svelte/internal/server";
|
|
10
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
10
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/check.svelte
|
|
11
11
|
function Check($$renderer, $$props) {
|
|
12
12
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
13
13
|
/**
|
|
14
|
-
* @license lucide-svelte
|
|
14
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
15
15
|
*
|
|
16
16
|
* ISC License
|
|
17
17
|
*
|
|
18
|
-
* Copyright (c) 2026 Lucide
|
|
18
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
19
19
|
*
|
|
20
20
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
21
21
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -31,13 +31,9 @@ function Check($$renderer, $$props) {
|
|
|
31
31
|
*
|
|
32
32
|
* ---
|
|
33
33
|
*
|
|
34
|
-
* The
|
|
34
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
35
35
|
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
39
|
-
*
|
|
40
|
-
* Copyright (c) 2013-present Cole Bemis
|
|
36
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
41
37
|
*
|
|
42
38
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
43
39
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -84,15 +80,15 @@ function Check($$renderer, $$props) {
|
|
|
84
80
|
]));
|
|
85
81
|
}
|
|
86
82
|
//#endregion
|
|
87
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
83
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/file-text.svelte
|
|
88
84
|
function File_text($$renderer, $$props) {
|
|
89
85
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
90
86
|
/**
|
|
91
|
-
* @license lucide-svelte
|
|
87
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
92
88
|
*
|
|
93
89
|
* ISC License
|
|
94
90
|
*
|
|
95
|
-
* Copyright (c) 2026 Lucide
|
|
91
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
96
92
|
*
|
|
97
93
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
98
94
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -108,13 +104,9 @@ function File_text($$renderer, $$props) {
|
|
|
108
104
|
*
|
|
109
105
|
* ---
|
|
110
106
|
*
|
|
111
|
-
* The
|
|
112
|
-
*
|
|
113
|
-
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
107
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
114
108
|
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* Copyright (c) 2013-present Cole Bemis
|
|
109
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
118
110
|
*
|
|
119
111
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
120
112
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -167,15 +159,15 @@ function File_text($$renderer, $$props) {
|
|
|
167
159
|
]));
|
|
168
160
|
}
|
|
169
161
|
//#endregion
|
|
170
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
162
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/plus.svelte
|
|
171
163
|
function Plus($$renderer, $$props) {
|
|
172
164
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
173
165
|
/**
|
|
174
|
-
* @license lucide-svelte
|
|
166
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
175
167
|
*
|
|
176
168
|
* ISC License
|
|
177
169
|
*
|
|
178
|
-
* Copyright (c) 2026 Lucide
|
|
170
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
179
171
|
*
|
|
180
172
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
181
173
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -191,13 +183,9 @@ function Plus($$renderer, $$props) {
|
|
|
191
183
|
*
|
|
192
184
|
* ---
|
|
193
185
|
*
|
|
194
|
-
* The
|
|
195
|
-
*
|
|
196
|
-
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
197
|
-
*
|
|
198
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
186
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
199
187
|
*
|
|
200
|
-
* Copyright (c) 2013-
|
|
188
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
201
189
|
*
|
|
202
190
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
203
191
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
1
|
+
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
2
2
|
import * as $ from "svelte/internal/server";
|
|
3
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
3
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/copy.svelte
|
|
4
4
|
function Copy($$renderer, $$props) {
|
|
5
5
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-svelte
|
|
7
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* ISC License
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2026 Lucide
|
|
11
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
12
12
|
*
|
|
13
13
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
14
14
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -24,13 +24,9 @@ function Copy($$renderer, $$props) {
|
|
|
24
24
|
*
|
|
25
25
|
* ---
|
|
26
26
|
*
|
|
27
|
-
* The
|
|
27
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) 2013-present Cole Bemis
|
|
29
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
34
30
|
*
|
|
35
31
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
32
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -78,15 +78,18 @@ function deleteDocument(id, fetcher) {
|
|
|
78
78
|
clearDocumentsCache();
|
|
79
79
|
return apiFetch(`/api/documents/${id}`, { method: "DELETE" }, fetcher);
|
|
80
80
|
}
|
|
81
|
-
function importDocument(file, folderId, fetcher) {
|
|
81
|
+
async function importDocument(file, folderId, fetcher) {
|
|
82
82
|
clearDocumentsCache();
|
|
83
83
|
const formData = new FormData();
|
|
84
84
|
formData.append("file", file);
|
|
85
85
|
if (folderId) formData.append("folderId", folderId);
|
|
86
|
-
|
|
86
|
+
const result = (await apiFetch("/api/documents/import", {
|
|
87
87
|
method: "POST",
|
|
88
|
-
body: formData
|
|
89
|
-
|
|
88
|
+
body: formData,
|
|
89
|
+
timeout: 12e4
|
|
90
|
+
}, fetcher)).items[0];
|
|
91
|
+
if (result?.status === "ok" && result.document) return result.document;
|
|
92
|
+
throw new Error(result?.error ?? `Failed to import "${file.name}"`);
|
|
90
93
|
}
|
|
91
94
|
/**
|
|
92
95
|
* Import one or more documents. Accepts any combination of supported
|
|
@@ -94,15 +97,58 @@ function importDocument(file, folderId, fetcher) {
|
|
|
94
97
|
* a multipart body with multiple `file` parts and returns an
|
|
95
98
|
* `ImportResponse` describing per-file success/failure.
|
|
96
99
|
*/
|
|
97
|
-
function importDocuments(files, folderId, fetcher) {
|
|
100
|
+
async function importDocuments(files, folderId, fetcher, options = {}) {
|
|
98
101
|
clearDocumentsCache();
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
if (files.length === 0) return {
|
|
103
|
+
items: [],
|
|
104
|
+
imported: 0,
|
|
105
|
+
failed: 0
|
|
106
|
+
};
|
|
107
|
+
const requestedConcurrency = options.concurrency ?? 3;
|
|
108
|
+
const concurrency = Math.max(1, Math.min(3, files.length, Math.floor(requestedConcurrency) || 1));
|
|
109
|
+
const results = new Array(files.length);
|
|
110
|
+
let nextIndex = 0;
|
|
111
|
+
const importOne = async (file, index) => {
|
|
112
|
+
options.onItemStarted?.(index);
|
|
113
|
+
const formData = new FormData();
|
|
114
|
+
formData.append("file", file);
|
|
115
|
+
if (folderId) formData.append("folderId", folderId);
|
|
116
|
+
let result;
|
|
117
|
+
try {
|
|
118
|
+
result = (await apiFetch("/api/documents/import", {
|
|
119
|
+
method: "POST",
|
|
120
|
+
body: formData,
|
|
121
|
+
timeout: 12e4
|
|
122
|
+
}, fetcher)).items[0] ?? {
|
|
123
|
+
filename: file.name,
|
|
124
|
+
status: "error",
|
|
125
|
+
error: "Import response did not include a file result"
|
|
126
|
+
};
|
|
127
|
+
} catch (error) {
|
|
128
|
+
result = {
|
|
129
|
+
filename: file.name,
|
|
130
|
+
status: "error",
|
|
131
|
+
error: error instanceof Error ? error.message : "Import failed"
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
results[index] = result;
|
|
135
|
+
options.onItemSettled?.(result, index);
|
|
136
|
+
};
|
|
137
|
+
const worker = async () => {
|
|
138
|
+
while (nextIndex < files.length) {
|
|
139
|
+
const index = nextIndex;
|
|
140
|
+
nextIndex += 1;
|
|
141
|
+
const file = files[index];
|
|
142
|
+
if (file) await importOne(file, index);
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
await Promise.all(Array.from({ length: concurrency }, () => worker()));
|
|
146
|
+
const imported = results.filter((result) => result.status === "ok").length;
|
|
147
|
+
return {
|
|
148
|
+
items: results,
|
|
149
|
+
imported,
|
|
150
|
+
failed: results.length - imported
|
|
151
|
+
};
|
|
106
152
|
}
|
|
107
153
|
//#endregion
|
|
108
154
|
export { importDocument as a, updateDocument as c, getDocument as i, createDocument as n, importDocuments as o, deleteDocument as r, listDocuments as s, clearDocumentsCache as t };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
1
|
+
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
2
2
|
import { t as cn } from "./utils-DtlPPXpJ.js";
|
|
3
3
|
import { $ as boxWith, Z as mergeProps, a as Floating_layer, c as MenuContentState, d as MenuMenuState, f as MenuRootState, i as createId, n as Popper_layer_force_mount, o as getFloatingContentCSSVars, p as MenuSeparatorState, r as Popper_layer, s as DropdownMenuTriggerState, t as Floating_layer_anchor, u as MenuItemState, v as noop } from "./floating-layer-anchor-CYIE8Oj6.js";
|
|
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/ellipsis-vertical.svelte
|
|
6
6
|
function Ellipsis_vertical($$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 Ellipsis_vertical($$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,14 +1,14 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
1
|
+
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
2
2
|
import * as $ from "svelte/internal/server";
|
|
3
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
3
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/folder.svelte
|
|
4
4
|
function Folder($$renderer, $$props) {
|
|
5
5
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-svelte
|
|
7
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* ISC License
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2026 Lucide
|
|
11
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
12
12
|
*
|
|
13
13
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
14
14
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -24,13 +24,9 @@ function Folder($$renderer, $$props) {
|
|
|
24
24
|
*
|
|
25
25
|
* ---
|
|
26
26
|
*
|
|
27
|
-
* The
|
|
27
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) 2013-present Cole Bemis
|
|
29
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
34
30
|
*
|
|
35
31
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
32
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
1
|
+
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
2
2
|
import * as $ from "svelte/internal/server";
|
|
3
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
3
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/loader-circle.svelte
|
|
4
4
|
function Loader_circle($$renderer, $$props) {
|
|
5
5
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-svelte
|
|
7
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* ISC License
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2026 Lucide
|
|
11
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
12
12
|
*
|
|
13
13
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
14
14
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -24,13 +24,9 @@ function Loader_circle($$renderer, $$props) {
|
|
|
24
24
|
*
|
|
25
25
|
* ---
|
|
26
26
|
*
|
|
27
|
-
* The
|
|
27
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) 2013-present Cole Bemis
|
|
29
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
34
30
|
*
|
|
35
31
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
32
|
* of this software and associated documentation files (the "Software"), to deal
|