@hiai-gg/docsmint 0.3.7 → 0.3.9
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/logger.ts +45 -15
- package/dist/backend/index.js +238 -150
- package/dist/client.d.ts +11 -0
- package/dist/client.js +9 -0
- package/dist/frontend/CategoryDialog-CxVyaBV5.js +611 -0
- package/dist/frontend/ConfirmDialog-NFGXRa3E.js +214 -0
- package/dist/frontend/CreateSnapshotDialog-BDgFTeFn.js +216 -0
- package/dist/frontend/DatePicker-BZRBluzF.js +256 -0
- package/dist/frontend/DeleteDialog-CvAr2WPu.js +174 -0
- package/dist/frontend/FolderNode-C6FJv99G.js +298 -0
- package/dist/frontend/FolderTreeSelector-CyB8y2Sm.js +103 -0
- package/dist/frontend/HiaiDocsExtensionProvider-DHWLzRUu.js +11 -0
- package/dist/frontend/Icon-CooFj4Ee.js +64 -0
- package/dist/frontend/SettingsDialog-BHh68rTB.js +1016 -0
- package/dist/frontend/ShareDialog-BUOkYSlw.js +165 -0
- package/dist/frontend/Sidebar-Cu3JrKDC.js +2021 -0
- package/dist/frontend/TagCreateDialog-B9YZBNHi.js +260 -0
- package/dist/frontend/api/settings.js +1 -1
- package/dist/frontend/app-shell.d.ts +8 -0
- package/dist/frontend/app-shell.js +291 -0
- package/dist/frontend/{bundle-mjs-CP6Owz-8.js → bundle-mjs-DllmqUxV.js} +583 -568
- package/dist/frontend/camera-iKXDOOWT.js +29 -0
- package/dist/frontend/check-D-UuvBuh.js +25 -0
- package/dist/frontend/chevron-down-CiPtYyFh.js +25 -0
- package/dist/frontend/circle-check-tSPE1V6t.js +29 -0
- package/dist/frontend/clock-DJHbHZb8.js +29 -0
- 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 +1367 -1356
- package/dist/frontend/components/editor/document-title.js +25 -25
- package/dist/frontend/components/editor/markdown-toggle.js +45 -45
- 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 +169 -151
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.js +1 -1
- package/dist/frontend/components/sidebar.js +2 -2013
- package/dist/frontend/components/tag-create-dialog.js +1 -1
- package/dist/frontend/components/version-history.js +188 -187
- package/dist/frontend/confirm-dialog-C4jTRbiS.js +250 -0
- package/dist/frontend/copy-GppwRMjX.js +32 -0
- package/dist/frontend/dashboard.js +1187 -1155
- package/dist/frontend/dialog-Bevp9mmM.js +213 -0
- package/dist/frontend/{loader-circle-Bk-WFz9g.js → dist-C3857Spp.js} +93 -92
- package/dist/frontend/doc-tabs.js +2 -2
- package/dist/frontend/dropdown-menu-CRSby3e9.js +530 -0
- package/dist/frontend/extension.js +2 -11
- package/dist/frontend/{floating-layer-anchor-C51M4l6v.js → floating-layer-anchor-BDs7vO-M.js} +1414 -1412
- package/dist/frontend/folder-DeWhnD7O.js +45 -0
- package/dist/frontend/folder-refresh.js +1 -1
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/i18n.js +2 -2
- package/dist/frontend/input-BWlOML_m.js +23 -0
- package/dist/frontend/keyboard.js +1 -1
- package/dist/frontend/{keyboard.svelte-D7H8DihC.js → keyboard.svelte-CApmX0vl.js} +53 -53
- package/dist/frontend/label-C2HfJNQ2.js +30 -0
- package/dist/frontend/{messages-BpYaLbzE.js → messages-C5Q890i2.js} +8 -8
- package/dist/frontend/rotate-ccw-B4Q7brmV.js +25 -0
- package/dist/frontend/search.js +673 -647
- package/dist/frontend/select-value-GXwx90Pr.js +1446 -0
- package/dist/frontend/{settings-blyobazp.js → settings-DSrUl4hW.js} +9 -9
- package/dist/frontend/shared-document.js +94 -94
- package/dist/frontend/subfolders-refresh-store.svelte-B2dKVmgz.js +65 -0
- package/dist/frontend/tag-HxRazVN_.js +54 -0
- package/dist/frontend/tag-store.svelte-CqrUXo0o.js +29 -0
- package/dist/frontend/textarea-DOAE-h42.js +23 -0
- package/dist/frontend/theme.js +1 -1
- package/dist/frontend/theme.svelte-DKfCy12k.js +49 -0
- package/dist/frontend/{utils-D8kmM3ub.js → utils-BPDRytUU.js} +2 -3
- package/dist/frontend/{utils-C0OW2678.js → utils-DrfHTcei.js} +2 -3
- package/dist/frontend/utils.js +1 -1
- package/dist/frontend/x-CzBsnJ2x.js +25 -0
- package/dist/frontend-ssr/api/attachments.js +2 -0
- package/dist/frontend-ssr/api/categories.js +2 -0
- package/dist/frontend-ssr/api/documents.js +2 -0
- package/dist/frontend-ssr/api/folders.js +2 -0
- package/dist/frontend-ssr/api/settings.js +2 -0
- package/dist/frontend-ssr/api/share.js +2 -0
- package/dist/frontend-ssr/api/tags.js +2 -0
- package/dist/frontend-ssr/app-shell.js +294 -0
- package/dist/frontend-ssr/assets/CategoryDialog-BcGW8-Kf.js +584 -0
- package/dist/frontend-ssr/assets/ConfirmDialog-DjMFKc0V.js +420 -0
- package/dist/frontend-ssr/assets/CreateSnapshotDialog-1bROJ-Rn.js +214 -0
- package/dist/frontend-ssr/assets/DatePicker-B1ML8OVz.js +312 -0
- package/dist/frontend-ssr/assets/DeleteDialog-tBYaP0L3.js +154 -0
- package/dist/frontend-ssr/assets/FolderNode-BZ0Q2QUS.js +171 -0
- package/dist/frontend-ssr/assets/FolderTreeSelector-DZNZ2oI6.js +147 -0
- package/dist/frontend-ssr/assets/HiaiDocsExtensionProvider-DAM-lX4R.js +13 -0
- package/dist/frontend-ssr/assets/Icon-B0Zqppjo.js +231 -0
- package/dist/frontend-ssr/assets/SettingsDialog-B8L_YqNA.js +1107 -0
- package/dist/frontend-ssr/assets/ShareDialog-vMvJLRfn.js +54 -0
- package/dist/frontend-ssr/assets/Sidebar-EHuUAx3W.js +2033 -0
- package/dist/frontend-ssr/assets/TagCreateDialog-B0DPEfmQ.js +264 -0
- package/dist/frontend-ssr/assets/api-keys-DFqX39MT.js +35 -0
- package/dist/frontend-ssr/assets/attachments-CWBxE3Vz.js +85 -0
- package/dist/frontend-ssr/assets/auth-client-x26kqY8Z.js +1286 -0
- package/dist/frontend-ssr/assets/camera-CdxscTw-.js +84 -0
- package/dist/frontend-ssr/assets/categories-AOqgcsn4.js +75 -0
- package/dist/frontend-ssr/assets/chevron-down-CSSNGNh_.js +80 -0
- package/dist/frontend-ssr/assets/chevron-right-B4p7Sk6X.js +80 -0
- package/dist/frontend-ssr/assets/circle-check-CI1v4vYh.js +84 -0
- package/dist/frontend-ssr/assets/client-DZMkDkDn.js +129 -0
- package/dist/frontend-ssr/assets/clipboard-CXOaoz2W.js +30 -0
- package/dist/frontend-ssr/assets/clock-IL-eX2di.js +84 -0
- package/dist/frontend-ssr/assets/confirm-dialog-BCthVwUY.js +429 -0
- package/dist/frontend-ssr/assets/context-jz1GGEUi.js +45 -0
- package/dist/frontend-ssr/assets/copy-CjV57nGQ.js +87 -0
- package/dist/frontend-ssr/assets/db-CnxeO66n.js +65 -0
- package/dist/frontend-ssr/assets/dialog-BOV1u6zP.js +157 -0
- package/dist/frontend-ssr/assets/dndzone-DMvTO_Jz.js +2114 -0
- package/dist/frontend-ssr/assets/document-drop-coordinator-CEaYACsC.js +109 -0
- package/dist/frontend-ssr/assets/documents-BnOTRdTY.js +108 -0
- package/dist/frontend-ssr/assets/dropdown-menu-Bj5rbqbB.js +555 -0
- package/dist/frontend-ssr/assets/editorExtensions-DUzwndMy.js +186 -0
- package/dist/frontend-ssr/assets/floating-layer-anchor-CYIE8Oj6.js +6114 -0
- package/dist/frontend-ssr/assets/folder-DChhG7qN.js +80 -0
- package/dist/frontend-ssr/assets/folders-CTfbS24J.js +127 -0
- package/dist/frontend-ssr/assets/identity-B3uHoDtf.js +99 -0
- package/dist/frontend-ssr/assets/input-DezGsU3y.js +19 -0
- package/dist/frontend-ssr/assets/keyboard.svelte-BgF47N3L.js +174 -0
- package/dist/frontend-ssr/assets/label-Bj8-TfFN.js +21 -0
- package/dist/frontend-ssr/assets/loader-circle-DZsrZ-er.js +80 -0
- package/dist/frontend-ssr/assets/markdown-CjqvGi5W.js +20 -0
- package/dist/frontend-ssr/assets/messages-CvqpZNJe.js +11125 -0
- package/dist/frontend-ssr/assets/resolve-BqHozBXl.js +32 -0
- package/dist/frontend-ssr/assets/rotate-ccw-BlgWwaiq.js +80 -0
- package/dist/frontend-ssr/assets/select-value-6Lk0ToYd.js +1526 -0
- package/dist/frontend-ssr/assets/settings-Bk5Hk9Vq.js +64 -0
- package/dist/frontend-ssr/assets/share-BTBJelxA.js +30 -0
- package/dist/frontend-ssr/assets/subfolders-refresh-store.svelte-DAh4gT16.js +77 -0
- package/dist/frontend-ssr/assets/tag-GZEuGWk1.js +166 -0
- package/dist/frontend-ssr/assets/tag-store.svelte-DPodKj6Z.js +21 -0
- package/dist/frontend-ssr/assets/tags-BId2wdYd.js +49 -0
- package/dist/frontend-ssr/assets/textarea-Dev-qSEc.js +21 -0
- package/dist/frontend-ssr/assets/theme.svelte-Co0-ssaD.js +67 -0
- package/dist/frontend-ssr/assets/utils-DtlPPXpJ.js +9 -0
- package/dist/frontend-ssr/assets/utils-DvZnctjz.js +23 -0
- package/dist/frontend-ssr/collaboration.js +39 -0
- package/dist/frontend-ssr/components/category-dialog.js +2 -0
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +2 -0
- package/dist/frontend-ssr/components/delete-dialog.js +2 -0
- package/dist/frontend-ssr/components/editor/document-editor.js +2499 -0
- package/dist/frontend-ssr/components/editor/document-title.js +11 -0
- package/dist/frontend-ssr/components/editor/docx-serializer.js +186 -0
- package/dist/frontend-ssr/components/editor/extensions.js +2 -0
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +20 -0
- package/dist/frontend-ssr/components/editor/markdown.js +2 -0
- package/dist/frontend-ssr/components/folder-node.js +2 -0
- package/dist/frontend-ssr/components/folder-tree-selector.js +2 -0
- package/dist/frontend-ssr/components/save-as-dialog.js +280 -0
- package/dist/frontend-ssr/components/settings.js +2 -0
- package/dist/frontend-ssr/components/share-dialog.js +2 -0
- package/dist/frontend-ssr/components/sidebar.js +2 -0
- package/dist/frontend-ssr/components/tag-create-dialog.js +2 -0
- package/dist/frontend-ssr/components/version-history.js +370 -0
- package/dist/frontend-ssr/dashboard.js +2542 -0
- package/dist/frontend-ssr/doc-tabs.js +23 -0
- package/dist/frontend-ssr/document-drop-coordinator.js +2 -0
- package/dist/frontend-ssr/extension.js +2 -0
- package/dist/frontend-ssr/folder-refresh.js +2 -0
- package/dist/frontend-ssr/i18n.js +10 -0
- package/dist/frontend-ssr/keyboard.js +2 -0
- package/dist/frontend-ssr/offline/identity.js +2 -0
- package/dist/frontend-ssr/search.js +332 -0
- package/dist/frontend-ssr/shared-document.js +273 -0
- package/dist/frontend-ssr/theme.js +9 -0
- package/dist/frontend-ssr/types.js +1 -0
- package/dist/frontend-ssr/utils/clipboard.js +2 -0
- package/dist/frontend-ssr/utils/dndzone.js +2 -0
- package/dist/frontend-ssr/utils.js +2 -0
- package/package.json +28 -1
- package/packages/cli/src/index.ts +1 -1
- package/packages/db/src/schema.ts +3 -0
- package/packages/mcp-server/src/index.ts +1 -1
- package/dist/frontend/CategoryDialog--rIE7FrH.js +0 -580
- package/dist/frontend/ConfirmDialog-Cpzyb55f.js +0 -212
- package/dist/frontend/CreateSnapshotDialog-CmkV-n2A.js +0 -216
- package/dist/frontend/DatePicker-Byynca7V.js +0 -257
- package/dist/frontend/DeleteDialog-ap6nOywZ.js +0 -174
- package/dist/frontend/FolderDialog-DmN_trV0.js +0 -247
- package/dist/frontend/FolderNode-C4B8a2fd.js +0 -317
- package/dist/frontend/FolderTreeSelector-D6ijiZTA.js +0 -100
- package/dist/frontend/Icon-DtNo0N1U.js +0 -64
- package/dist/frontend/SettingsDialog-2kTaTXAs.js +0 -992
- package/dist/frontend/ShareDialog-BBDGNF5n.js +0 -165
- package/dist/frontend/TagCreateDialog-DiLZnJo4.js +0 -258
- package/dist/frontend/camera-B7dAOd4s.js +0 -28
- package/dist/frontend/check-CDwRlG9T.js +0 -24
- package/dist/frontend/chevron-down-B7ZrjUmT.js +0 -24
- package/dist/frontend/circle-check-CDqeMB2d.js +0 -28
- package/dist/frontend/client-Bc5Fzx40.js +0 -2785
- package/dist/frontend/clock-Ck5Sn-Zl.js +0 -28
- package/dist/frontend/clsx-nmtDPO_P.js +0 -16
- package/dist/frontend/copy-CMAA6GP0.js +0 -31
- package/dist/frontend/dialog-BDkiG42a.js +0 -213
- package/dist/frontend/disclose-version-5I57E3LD.js +0 -3
- package/dist/frontend/ellipsis-vertical-BBuPldbW.js +0 -519
- package/dist/frontend/folder-TQjKY4yn.js +0 -44
- package/dist/frontend/index-client-jobkrWVL.js +0 -86
- package/dist/frontend/input-CBI6p4Xl.js +0 -23
- package/dist/frontend/label-C-GkhEp4.js +0 -30
- package/dist/frontend/rotate-ccw-CleZtJ5D.js +0 -24
- package/dist/frontend/select-value-CvrWRkXW.js +0 -1436
- package/dist/frontend/subfolders-refresh-store.svelte-BsheoQma.js +0 -65
- package/dist/frontend/tag-Dx3SmucJ.js +0 -53
- package/dist/frontend/tag-store.svelte-CIaF4sdZ.js +0 -29
- package/dist/frontend/textarea-Dfp78XlL.js +0 -23
- package/dist/frontend/theme.svelte-CROg1Hi5.js +0 -49
- package/dist/frontend/x-DaTdeDXv.js +0 -24
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
import { D as doc_new_folder_name, _n as action_save, gn as action_cancel, pn as action_create, vr as folders_rename, xr as folders_new, yn as error_generic } from "./messages-CvqpZNJe.js";
|
|
2
|
+
import { t as Icon } from "./Icon-B0Zqppjo.js";
|
|
3
|
+
import { t as Circle_check } from "./circle-check-CI1v4vYh.js";
|
|
4
|
+
import { t as Loader_circle } from "./loader-circle-DZsrZ-er.js";
|
|
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
|
+
import { t as Input } from "./input-DezGsU3y.js";
|
|
7
|
+
import { t as Label } from "./label-Bj8-TfFN.js";
|
|
8
|
+
import "./ConfirmDialog-DjMFKc0V.js";
|
|
9
|
+
import * as $ from "svelte/internal/server";
|
|
10
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/check.svelte
|
|
11
|
+
function Check($$renderer, $$props) {
|
|
12
|
+
const $$sanitized_props = $.sanitize_props($$props);
|
|
13
|
+
/**
|
|
14
|
+
* @license lucide-svelte v1.0.1 - ISC
|
|
15
|
+
*
|
|
16
|
+
* ISC License
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
19
|
+
*
|
|
20
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
21
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
22
|
+
* copyright notice and this permission notice appear in all copies.
|
|
23
|
+
*
|
|
24
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
25
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
26
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
27
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
28
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
29
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
30
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
31
|
+
*
|
|
32
|
+
* ---
|
|
33
|
+
*
|
|
34
|
+
* The following Lucide icons are derived from the Feather project:
|
|
35
|
+
*
|
|
36
|
+
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
37
|
+
*
|
|
38
|
+
* The MIT License (MIT) (for the icons listed above)
|
|
39
|
+
*
|
|
40
|
+
* Copyright (c) 2013-present Cole Bemis
|
|
41
|
+
*
|
|
42
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
43
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
44
|
+
* in the Software without restriction, including without limitation the rights
|
|
45
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
46
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
47
|
+
* furnished to do so, subject to the following conditions:
|
|
48
|
+
*
|
|
49
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
50
|
+
* copies or substantial portions of the Software.
|
|
51
|
+
*
|
|
52
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
53
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
54
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
55
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
56
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
57
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
58
|
+
* SOFTWARE.
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
Icon($$renderer, $.spread_props([
|
|
62
|
+
{ name: "check" },
|
|
63
|
+
$$sanitized_props,
|
|
64
|
+
{
|
|
65
|
+
/**
|
|
66
|
+
* @component @name Check
|
|
67
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
68
|
+
*
|
|
69
|
+
* @preview  - https://lucide.dev/icons/check
|
|
70
|
+
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
71
|
+
*
|
|
72
|
+
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
73
|
+
* @returns {FunctionalComponent} Svelte component
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
iconNode: [["path", { "d": "M20 6 9 17l-5-5" }]],
|
|
77
|
+
children: ($$renderer) => {
|
|
78
|
+
$$renderer.push(`<!--[-->`);
|
|
79
|
+
$.slot($$renderer, $$props, "default", {}, null);
|
|
80
|
+
$$renderer.push(`<!--]-->`);
|
|
81
|
+
},
|
|
82
|
+
$$slots: { default: true }
|
|
83
|
+
}
|
|
84
|
+
]));
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/file-text.svelte
|
|
88
|
+
function File_text($$renderer, $$props) {
|
|
89
|
+
const $$sanitized_props = $.sanitize_props($$props);
|
|
90
|
+
/**
|
|
91
|
+
* @license lucide-svelte v1.0.1 - ISC
|
|
92
|
+
*
|
|
93
|
+
* ISC License
|
|
94
|
+
*
|
|
95
|
+
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
96
|
+
*
|
|
97
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
98
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
99
|
+
* copyright notice and this permission notice appear in all copies.
|
|
100
|
+
*
|
|
101
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
102
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
103
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
104
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
105
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
106
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
107
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
108
|
+
*
|
|
109
|
+
* ---
|
|
110
|
+
*
|
|
111
|
+
* The following Lucide icons are derived from the Feather project:
|
|
112
|
+
*
|
|
113
|
+
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
114
|
+
*
|
|
115
|
+
* The MIT License (MIT) (for the icons listed above)
|
|
116
|
+
*
|
|
117
|
+
* Copyright (c) 2013-present Cole Bemis
|
|
118
|
+
*
|
|
119
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
120
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
121
|
+
* in the Software without restriction, including without limitation the rights
|
|
122
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
123
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
124
|
+
* furnished to do so, subject to the following conditions:
|
|
125
|
+
*
|
|
126
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
127
|
+
* copies or substantial portions of the Software.
|
|
128
|
+
*
|
|
129
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
130
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
131
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
132
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
133
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
134
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
135
|
+
* SOFTWARE.
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
Icon($$renderer, $.spread_props([
|
|
139
|
+
{ name: "file-text" },
|
|
140
|
+
$$sanitized_props,
|
|
141
|
+
{
|
|
142
|
+
/**
|
|
143
|
+
* @component @name FileText
|
|
144
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
145
|
+
*
|
|
146
|
+
* @preview  - https://lucide.dev/icons/file-text
|
|
147
|
+
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
148
|
+
*
|
|
149
|
+
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
150
|
+
* @returns {FunctionalComponent} Svelte component
|
|
151
|
+
*
|
|
152
|
+
*/
|
|
153
|
+
iconNode: [
|
|
154
|
+
["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }],
|
|
155
|
+
["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }],
|
|
156
|
+
["path", { "d": "M10 9H8" }],
|
|
157
|
+
["path", { "d": "M16 13H8" }],
|
|
158
|
+
["path", { "d": "M16 17H8" }]
|
|
159
|
+
],
|
|
160
|
+
children: ($$renderer) => {
|
|
161
|
+
$$renderer.push(`<!--[-->`);
|
|
162
|
+
$.slot($$renderer, $$props, "default", {}, null);
|
|
163
|
+
$$renderer.push(`<!--]-->`);
|
|
164
|
+
},
|
|
165
|
+
$$slots: { default: true }
|
|
166
|
+
}
|
|
167
|
+
]));
|
|
168
|
+
}
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/plus.svelte
|
|
171
|
+
function Plus($$renderer, $$props) {
|
|
172
|
+
const $$sanitized_props = $.sanitize_props($$props);
|
|
173
|
+
/**
|
|
174
|
+
* @license lucide-svelte v1.0.1 - ISC
|
|
175
|
+
*
|
|
176
|
+
* ISC License
|
|
177
|
+
*
|
|
178
|
+
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
179
|
+
*
|
|
180
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
181
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
182
|
+
* copyright notice and this permission notice appear in all copies.
|
|
183
|
+
*
|
|
184
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
185
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
186
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
187
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
188
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
189
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
190
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
191
|
+
*
|
|
192
|
+
* ---
|
|
193
|
+
*
|
|
194
|
+
* The following Lucide icons are derived from the Feather project:
|
|
195
|
+
*
|
|
196
|
+
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
197
|
+
*
|
|
198
|
+
* The MIT License (MIT) (for the icons listed above)
|
|
199
|
+
*
|
|
200
|
+
* Copyright (c) 2013-present Cole Bemis
|
|
201
|
+
*
|
|
202
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
203
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
204
|
+
* in the Software without restriction, including without limitation the rights
|
|
205
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
206
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
207
|
+
* furnished to do so, subject to the following conditions:
|
|
208
|
+
*
|
|
209
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
210
|
+
* copies or substantial portions of the Software.
|
|
211
|
+
*
|
|
212
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
213
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
214
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
215
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
216
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
217
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
218
|
+
* SOFTWARE.
|
|
219
|
+
*
|
|
220
|
+
*/
|
|
221
|
+
Icon($$renderer, $.spread_props([
|
|
222
|
+
{ name: "plus" },
|
|
223
|
+
$$sanitized_props,
|
|
224
|
+
{
|
|
225
|
+
/**
|
|
226
|
+
* @component @name Plus
|
|
227
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
228
|
+
*
|
|
229
|
+
* @preview  - https://lucide.dev/icons/plus
|
|
230
|
+
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
231
|
+
*
|
|
232
|
+
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
233
|
+
* @returns {FunctionalComponent} Svelte component
|
|
234
|
+
*
|
|
235
|
+
*/
|
|
236
|
+
iconNode: [["path", { "d": "M5 12h14" }], ["path", { "d": "M12 5v14" }]],
|
|
237
|
+
children: ($$renderer) => {
|
|
238
|
+
$$renderer.push(`<!--[-->`);
|
|
239
|
+
$.slot($$renderer, $$props, "default", {}, null);
|
|
240
|
+
$$renderer.push(`<!--]-->`);
|
|
241
|
+
},
|
|
242
|
+
$$slots: { default: true }
|
|
243
|
+
}
|
|
244
|
+
]));
|
|
245
|
+
}
|
|
246
|
+
//#endregion
|
|
247
|
+
//#region src/lib/components/FolderDialog.svelte
|
|
248
|
+
function FolderDialog($$renderer, $$props) {
|
|
249
|
+
$$renderer.component(($$renderer) => {
|
|
250
|
+
let { open = false, mode, folder, onSave, onClose, closeOnSave = true } = $$props;
|
|
251
|
+
let name = "";
|
|
252
|
+
let error = null;
|
|
253
|
+
let busy = false;
|
|
254
|
+
let createdFolderName = null;
|
|
255
|
+
const trimmedName = $.derived(() => name.trim());
|
|
256
|
+
const title = $.derived(() => mode === "edit" ? folders_rename() : folders_new());
|
|
257
|
+
const submitLabel = $.derived(() => mode === "edit" ? action_save() : action_create());
|
|
258
|
+
async function handleSubmit(e) {
|
|
259
|
+
e?.preventDefault();
|
|
260
|
+
if (busy) return;
|
|
261
|
+
if (trimmedName().length === 0) {
|
|
262
|
+
error = "Folder name is required";
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
if (!onSave) {
|
|
266
|
+
close();
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
busy = true;
|
|
270
|
+
try {
|
|
271
|
+
const savedFolder = await onSave(trimmedName());
|
|
272
|
+
if (closeOnSave) close(true);
|
|
273
|
+
else createdFolderName = typeof savedFolder === "object" && savedFolder !== null && "name" in savedFolder && typeof savedFolder.name === "string" ? savedFolder.name : trimmedName();
|
|
274
|
+
} catch (err) {
|
|
275
|
+
console.error("FolderDialog: save failed", err);
|
|
276
|
+
error = err instanceof Error ? err.message : error_generic();
|
|
277
|
+
} finally {
|
|
278
|
+
busy = false;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
function createAnother() {
|
|
282
|
+
createdFolderName = null;
|
|
283
|
+
name = "";
|
|
284
|
+
error = null;
|
|
285
|
+
}
|
|
286
|
+
function close(force = false) {
|
|
287
|
+
if (busy && !force) return;
|
|
288
|
+
open = false;
|
|
289
|
+
onClose?.();
|
|
290
|
+
}
|
|
291
|
+
let $$settled = true;
|
|
292
|
+
let $$inner_renderer;
|
|
293
|
+
function $$render_inner($$renderer) {
|
|
294
|
+
Dialog($$renderer, {
|
|
295
|
+
onOpenChange: (next) => {
|
|
296
|
+
if (!next) close();
|
|
297
|
+
},
|
|
298
|
+
get open() {
|
|
299
|
+
return open;
|
|
300
|
+
},
|
|
301
|
+
set open($$value) {
|
|
302
|
+
open = $$value;
|
|
303
|
+
$$settled = false;
|
|
304
|
+
},
|
|
305
|
+
children: ($$renderer) => {
|
|
306
|
+
Dialog_header($$renderer, {
|
|
307
|
+
children: ($$renderer) => {
|
|
308
|
+
Dialog_title($$renderer, {
|
|
309
|
+
children: ($$renderer) => {
|
|
310
|
+
$$renderer.push(`<!---->${$.escape(title())}`);
|
|
311
|
+
},
|
|
312
|
+
$$slots: { default: true }
|
|
313
|
+
});
|
|
314
|
+
$$renderer.push(`<!----> `);
|
|
315
|
+
Dialog_description($$renderer, {
|
|
316
|
+
children: ($$renderer) => {
|
|
317
|
+
$$renderer.push(`<!---->${$.escape(mode === "edit" ? folders_rename() : doc_new_folder_name())}`);
|
|
318
|
+
},
|
|
319
|
+
$$slots: { default: true }
|
|
320
|
+
});
|
|
321
|
+
$$renderer.push(`<!---->`);
|
|
322
|
+
},
|
|
323
|
+
$$slots: { default: true }
|
|
324
|
+
});
|
|
325
|
+
$$renderer.push(`<!----> `);
|
|
326
|
+
if (createdFolderName) {
|
|
327
|
+
$$renderer.push("<!--[0-->");
|
|
328
|
+
$$renderer.push(`<div class="space-y-3 rounded-lg border border-primary/30 bg-primary/10 p-4" role="status" aria-live="polite"><div class="flex items-start gap-3">`);
|
|
329
|
+
Circle_check($$renderer, { class: "mt-0.5 size-5 shrink-0 text-primary" });
|
|
330
|
+
$$renderer.push(`<!----> <div><p class="text-sm font-medium text-foreground">Folder created</p> <p class="text-sm text-muted-foreground">${$.escape(createdFolderName)} is ready to use.</p></div></div></div>`);
|
|
331
|
+
} else {
|
|
332
|
+
$$renderer.push("<!--[-1-->");
|
|
333
|
+
$$renderer.push(`<form class="space-y-4"><div class="space-y-2">`);
|
|
334
|
+
Label($$renderer, {
|
|
335
|
+
for: "folder-dialog-name",
|
|
336
|
+
children: ($$renderer) => {
|
|
337
|
+
$$renderer.push(`<!---->${$.escape(doc_new_folder_name())}`);
|
|
338
|
+
},
|
|
339
|
+
$$slots: { default: true }
|
|
340
|
+
});
|
|
341
|
+
$$renderer.push(`<!----> `);
|
|
342
|
+
Input($$renderer, {
|
|
343
|
+
id: "folder-dialog-name",
|
|
344
|
+
name: "name",
|
|
345
|
+
type: "text",
|
|
346
|
+
placeholder: doc_new_folder_name(),
|
|
347
|
+
maxlength: 255,
|
|
348
|
+
required: true,
|
|
349
|
+
disabled: busy,
|
|
350
|
+
"aria-invalid": error ? "true" : void 0,
|
|
351
|
+
"aria-describedby": error ? "folder-dialog-name-error" : void 0,
|
|
352
|
+
autocomplete: "off",
|
|
353
|
+
get value() {
|
|
354
|
+
return name;
|
|
355
|
+
},
|
|
356
|
+
set value($$value) {
|
|
357
|
+
name = $$value;
|
|
358
|
+
$$settled = false;
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
$$renderer.push(`<!----> `);
|
|
362
|
+
if (error) {
|
|
363
|
+
$$renderer.push("<!--[0-->");
|
|
364
|
+
$$renderer.push(`<p id="folder-dialog-name-error" class="text-xs text-destructive" role="alert">${$.escape(error)}</p>`);
|
|
365
|
+
} else $$renderer.push("<!--[-1-->");
|
|
366
|
+
$$renderer.push(`<!--]--></div></form>`);
|
|
367
|
+
}
|
|
368
|
+
$$renderer.push(`<!--]--> `);
|
|
369
|
+
Dialog_footer($$renderer, {
|
|
370
|
+
class: "gap-2 max-sm:flex-col max-sm:items-stretch",
|
|
371
|
+
children: ($$renderer) => {
|
|
372
|
+
if (createdFolderName) {
|
|
373
|
+
$$renderer.push("<!--[0-->");
|
|
374
|
+
Button($$renderer, {
|
|
375
|
+
variant: "outline",
|
|
376
|
+
type: "button",
|
|
377
|
+
onclick: createAnother,
|
|
378
|
+
children: ($$renderer) => {
|
|
379
|
+
$$renderer.push(`<!---->Create another`);
|
|
380
|
+
},
|
|
381
|
+
$$slots: { default: true }
|
|
382
|
+
});
|
|
383
|
+
} else {
|
|
384
|
+
$$renderer.push("<!--[-1-->");
|
|
385
|
+
Button($$renderer, {
|
|
386
|
+
variant: "outline",
|
|
387
|
+
type: "button",
|
|
388
|
+
onclick: () => close(),
|
|
389
|
+
disabled: busy,
|
|
390
|
+
children: ($$renderer) => {
|
|
391
|
+
$$renderer.push(`<!---->${$.escape(action_cancel())}`);
|
|
392
|
+
},
|
|
393
|
+
$$slots: { default: true }
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
$$renderer.push(`<!--]--> `);
|
|
397
|
+
Button($$renderer, {
|
|
398
|
+
type: "submit",
|
|
399
|
+
onclick: createdFolderName ? () => close() : handleSubmit,
|
|
400
|
+
disabled: busy || !createdFolderName && trimmedName().length === 0,
|
|
401
|
+
children: ($$renderer) => {
|
|
402
|
+
if (busy) {
|
|
403
|
+
$$renderer.push("<!--[0-->");
|
|
404
|
+
Loader_circle($$renderer, { class: "mr-1 size-4 animate-spin" });
|
|
405
|
+
} else $$renderer.push("<!--[-1-->");
|
|
406
|
+
$$renderer.push(`<!--]--> ${$.escape(createdFolderName ? "Done" : submitLabel())}`);
|
|
407
|
+
},
|
|
408
|
+
$$slots: { default: true }
|
|
409
|
+
});
|
|
410
|
+
$$renderer.push(`<!---->`);
|
|
411
|
+
},
|
|
412
|
+
$$slots: { default: true }
|
|
413
|
+
});
|
|
414
|
+
$$renderer.push(`<!---->`);
|
|
415
|
+
},
|
|
416
|
+
$$slots: { default: true }
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
do {
|
|
420
|
+
$$settled = true;
|
|
421
|
+
$$inner_renderer = $$renderer.copy();
|
|
422
|
+
$$render_inner($$inner_renderer);
|
|
423
|
+
} while (!$$settled);
|
|
424
|
+
$$renderer.subsume($$inner_renderer);
|
|
425
|
+
$.bind_props($$props, { open });
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
//#endregion
|
|
429
|
+
export { Check as i, Plus as n, File_text as r, FolderDialog as t };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createContext } from "svelte";
|
|
2
|
+
//#region src/lib/extensions/context.ts
|
|
3
|
+
/**
|
|
4
|
+
* Create a fresh manifest for one app/request.
|
|
5
|
+
*
|
|
6
|
+
* A new array is created for every category so an SSR request or HMR update
|
|
7
|
+
* cannot mutate another request's extension set.
|
|
8
|
+
*/
|
|
9
|
+
function createFrontendExtensions(initial = {}) {
|
|
10
|
+
return {
|
|
11
|
+
navigation: [...initial.navigation ?? []],
|
|
12
|
+
dashboardWidgets: [...initial.dashboardWidgets ?? []],
|
|
13
|
+
searchWidgets: [...initial.searchWidgets ?? []],
|
|
14
|
+
documentTabs: [...initial.documentTabs ?? []],
|
|
15
|
+
editorActions: [...initial.editorActions ?? []],
|
|
16
|
+
documentMenuActions: [...initial.documentMenuActions ?? []],
|
|
17
|
+
settingsSections: [...initial.settingsSections ?? []],
|
|
18
|
+
commandPaletteActions: [...initial.commandPaletteActions ?? []],
|
|
19
|
+
sharedDocumentHeaderActions: [...initial.sharedDocumentHeaderActions ?? []],
|
|
20
|
+
sharedDocumentTabs: [...initial.sharedDocumentTabs ?? []],
|
|
21
|
+
sharedDocumentNotesModes: [...initial.sharedDocumentNotesModes ?? []],
|
|
22
|
+
sharedDocumentEditorModes: [...initial.sharedDocumentEditorModes ?? []]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Svelte's context storage is scoped to a component tree, which makes this
|
|
27
|
+
* safe for concurrent SSR requests. Do not replace this with a module-level
|
|
28
|
+
* mutable registry.
|
|
29
|
+
*/
|
|
30
|
+
var [getProvidedFrontendExtensions, setFrontendExtensions] = createContext();
|
|
31
|
+
/**
|
|
32
|
+
* Read the request-scoped manifest, defaulting to an empty manifest for the
|
|
33
|
+
* standalone open-source application. This keeps every host backward
|
|
34
|
+
* compatible when no extension provider is mounted above it.
|
|
35
|
+
*/
|
|
36
|
+
function getFrontendExtensions() {
|
|
37
|
+
return getProvidedFrontendExtensions() ?? createFrontendExtensions();
|
|
38
|
+
}
|
|
39
|
+
function provideFrontendExtensions(initial = {}) {
|
|
40
|
+
const extensions = createFrontendExtensions(initial);
|
|
41
|
+
setFrontendExtensions(extensions);
|
|
42
|
+
return extensions;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { provideFrontendExtensions as n, getFrontendExtensions as t };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { t as Icon } from "./Icon-B0Zqppjo.js";
|
|
2
|
+
import * as $ from "svelte/internal/server";
|
|
3
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/copy.svelte
|
|
4
|
+
function Copy($$renderer, $$props) {
|
|
5
|
+
const $$sanitized_props = $.sanitize_props($$props);
|
|
6
|
+
/**
|
|
7
|
+
* @license lucide-svelte v1.0.1 - ISC
|
|
8
|
+
*
|
|
9
|
+
* ISC License
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
12
|
+
*
|
|
13
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
14
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
15
|
+
* copyright notice and this permission notice appear in all copies.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
18
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
19
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
20
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
21
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
22
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
23
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
24
|
+
*
|
|
25
|
+
* ---
|
|
26
|
+
*
|
|
27
|
+
* The following Lucide icons are derived from the Feather project:
|
|
28
|
+
*
|
|
29
|
+
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
30
|
+
*
|
|
31
|
+
* The MIT License (MIT) (for the icons listed above)
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) 2013-present Cole Bemis
|
|
34
|
+
*
|
|
35
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
37
|
+
* in the Software without restriction, including without limitation the rights
|
|
38
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
39
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
40
|
+
* furnished to do so, subject to the following conditions:
|
|
41
|
+
*
|
|
42
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
43
|
+
* copies or substantial portions of the Software.
|
|
44
|
+
*
|
|
45
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
46
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
47
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
48
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
49
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
50
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
51
|
+
* SOFTWARE.
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
Icon($$renderer, $.spread_props([
|
|
55
|
+
{ name: "copy" },
|
|
56
|
+
$$sanitized_props,
|
|
57
|
+
{
|
|
58
|
+
/**
|
|
59
|
+
* @component @name Copy
|
|
60
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
61
|
+
*
|
|
62
|
+
* @preview  - https://lucide.dev/icons/copy
|
|
63
|
+
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
64
|
+
*
|
|
65
|
+
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
66
|
+
* @returns {FunctionalComponent} Svelte component
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
iconNode: [["rect", {
|
|
70
|
+
"width": "14",
|
|
71
|
+
"height": "14",
|
|
72
|
+
"x": "8",
|
|
73
|
+
"y": "8",
|
|
74
|
+
"rx": "2",
|
|
75
|
+
"ry": "2"
|
|
76
|
+
}], ["path", { "d": "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]],
|
|
77
|
+
children: ($$renderer) => {
|
|
78
|
+
$$renderer.push(`<!--[-->`);
|
|
79
|
+
$.slot($$renderer, $$props, "default", {}, null);
|
|
80
|
+
$$renderer.push(`<!--]-->`);
|
|
81
|
+
},
|
|
82
|
+
$$slots: { default: true }
|
|
83
|
+
}
|
|
84
|
+
]));
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
export { Copy as t };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { i as offlineDbName } from "./identity-B3uHoDtf.js";
|
|
2
|
+
import Dexie from "dexie";
|
|
3
|
+
//#region src/lib/db/index.ts
|
|
4
|
+
/**
|
|
5
|
+
* Dexie-backed offline database. One instance per offline identity; the
|
|
6
|
+
* instance is scoped by `offlineDbName(identity)`.
|
|
7
|
+
*/
|
|
8
|
+
var OfflineDB = class extends Dexie {
|
|
9
|
+
documents;
|
|
10
|
+
folders;
|
|
11
|
+
drafts;
|
|
12
|
+
mutationQueue;
|
|
13
|
+
metadata;
|
|
14
|
+
constructor(identity) {
|
|
15
|
+
super(offlineDbName(identity));
|
|
16
|
+
this.version(1).stores({
|
|
17
|
+
documents: "id, ownerId, tenantId, folderId, updatedAt",
|
|
18
|
+
folders: "id, ownerId, tenantId, parentId, name",
|
|
19
|
+
drafts: "docId, ownerId, tenantId, updatedAt",
|
|
20
|
+
mutationQueue: "++id, docId, op, status",
|
|
21
|
+
metadata: "key"
|
|
22
|
+
});
|
|
23
|
+
this.version(2).stores({
|
|
24
|
+
documents: "id, ownerId, tenantId, folderId, updatedAt",
|
|
25
|
+
folders: "id, ownerId, tenantId, parentId, name",
|
|
26
|
+
drafts: "docId, ownerId, tenantId, updatedAt",
|
|
27
|
+
mutationQueue: "++id, docId, op, status, createdAt",
|
|
28
|
+
metadata: "key"
|
|
29
|
+
});
|
|
30
|
+
this.version(3).stores({
|
|
31
|
+
documents: "id, ownerId, tenantId, folderId, updatedAt",
|
|
32
|
+
folders: "id, ownerId, tenantId, parentId, name",
|
|
33
|
+
drafts: "docId, ownerId, tenantId, updatedAt",
|
|
34
|
+
mutationQueue: null,
|
|
35
|
+
metadata: "key"
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
var dbCache = /* @__PURE__ */ new Map();
|
|
40
|
+
/**
|
|
41
|
+
* Get (or create and cache) the offline DB for the given identity. The same
|
|
42
|
+
* identity always returns the same Dexie instance so connections and
|
|
43
|
+
* in-flight transactions are shared.
|
|
44
|
+
*/
|
|
45
|
+
function getOfflineDB(identity) {
|
|
46
|
+
const name = offlineDbName(identity);
|
|
47
|
+
let db = dbCache.get(name);
|
|
48
|
+
if (!db) {
|
|
49
|
+
db = new OfflineDB(identity);
|
|
50
|
+
dbCache.set(name, db);
|
|
51
|
+
}
|
|
52
|
+
return db;
|
|
53
|
+
}
|
|
54
|
+
async function deleteOfflineDB(identity) {
|
|
55
|
+
const name = offlineDbName(identity);
|
|
56
|
+
const db = dbCache.get(name);
|
|
57
|
+
if (db) {
|
|
58
|
+
await db.delete();
|
|
59
|
+
dbCache.delete(name);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
await Dexie.delete(name);
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
export { getOfflineDB as n, deleteOfflineDB as t };
|