@hiai-gg/docsmint 0.3.8 → 0.4.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/dist/backend/index.js +1 -1
- 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-BLF3x_hr.js → ConfirmDialog-NFGXRa3E.js} +2 -2
- package/dist/frontend/{CreateSnapshotDialog-D5vPvFTL.js → CreateSnapshotDialog-BDgFTeFn.js} +40 -40
- package/dist/frontend/{DatePicker-CLNTdvTk.js → DatePicker-BZRBluzF.js} +102 -105
- package/dist/frontend/{DeleteDialog-DxYFJivN.js → DeleteDialog-CvAr2WPu.js} +39 -39
- package/dist/frontend/FolderNode--l1g8bcL.js +298 -0
- package/dist/frontend/HiaiDocsExtensionProvider-DHWLzRUu.js +11 -0
- package/dist/frontend/SettingsDialog-LyZUxxku.js +1016 -0
- package/dist/frontend/{ShareDialog-DYu3RKQu.js → ShareDialog-BUOkYSlw.js} +35 -35
- package/dist/frontend/Sidebar-BsJsD1mJ.js +2021 -0
- package/dist/frontend/{TagCreateDialog-DXQs2bL9.js → TagCreateDialog-B9YZBNHi.js} +38 -38
- package/dist/frontend/api/categories.js +1 -1
- package/dist/frontend/api/documents.js +1 -1
- package/dist/frontend/api/folders.js +1 -1
- package/dist/frontend/api/settings.js +1 -1
- package/dist/frontend/app-shell.d.ts +8 -0
- package/dist/frontend/app-shell.js +298 -0
- package/dist/frontend/{clsx-C7bIvsDS.js → bundle-mjs-DllmqUxV.js} +583 -583
- package/dist/frontend/{categories-izQovv2w.js → categories-Drnns7N6.js} +14 -14
- 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 +1102 -1102
- package/dist/frontend/components/editor/document-title.js +2 -2
- package/dist/frontend/components/editor/markdown-toggle.js +1 -1
- package/dist/frontend/components/folder-node.js +1 -1
- package/dist/frontend/components/save-as-dialog.js +75 -75
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.js +1 -1
- package/dist/frontend/components/sidebar.js +2 -2021
- package/dist/frontend/components/tag-create-dialog.js +1 -1
- package/dist/frontend/components/version-history.js +58 -58
- package/dist/frontend/{FolderDialog-CRVZM2Oi.js → confirm-dialog-C4jTRbiS.js} +69 -69
- package/dist/frontend/dashboard.js +1139 -1137
- package/dist/frontend/{dialog-D6NxYVmy.js → dialog-Bevp9mmM.js} +2 -2
- package/dist/frontend/{loader-circle-BA6aLO71.js → dist-C3857Spp.js} +81 -81
- package/dist/frontend/{documents-BsDkvzCm.js → documents-Bc7b_MSZ.js} +15 -15
- package/dist/frontend/{ellipsis-vertical-P9MHvCps.js → dropdown-menu-CRSby3e9.js} +182 -182
- package/dist/frontend/extension.js +2 -11
- package/dist/frontend/{floating-layer-anchor-CPwucTfd.js → floating-layer-anchor-BDs7vO-M.js} +1 -1
- package/dist/frontend/{folders-CTuV_JtU.js → folders-ONG03Dkv.js} +10 -10
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/i18n.js +2 -2
- package/dist/frontend/{input-B5Rak-5G.js → input-BWlOML_m.js} +1 -1
- package/dist/frontend/{label-CW9rxoAb.js → label-C2HfJNQ2.js} +1 -1
- package/dist/frontend/{messages-BpYaLbzE.js → messages-C5Q890i2.js} +8 -8
- package/dist/frontend/route-context-BqQQ5c4i.js +29 -0
- package/dist/frontend/search.js +629 -629
- package/dist/frontend/{select-value-sF86Geyh.js → select-value-GXwx90Pr.js} +2 -2
- package/dist/frontend/{settings-blyobazp.js → settings-DSrUl4hW.js} +9 -9
- package/dist/frontend/{tag-store.svelte-CqrUXo0o.js → tag-store.svelte-CG7RrlDT.js} +1 -1
- package/dist/frontend/{textarea-i1720bE7.js → textarea-DOAE-h42.js} +1 -1
- package/dist/frontend/{utils-hzdMVeCv.js → utils-BPDRytUU.js} +1 -1
- package/dist/frontend/{utils-CffiyuTo.js → utils-DrfHTcei.js} +1 -1
- package/dist/frontend/utils.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/folders.js +1 -1
- package/dist/frontend-ssr/api/settings.js +1 -1
- package/dist/frontend-ssr/app-shell.js +303 -0
- package/dist/frontend-ssr/assets/{CategoryDialog-C2xaZKHq.js → CategoryDialog-BcGW8-Kf.js} +4 -4
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-BRw1xJW1.js → CreateSnapshotDialog-1bROJ-Rn.js} +4 -4
- package/dist/frontend-ssr/assets/{DatePicker-DnXniwlZ.js → DatePicker-B1ML8OVz.js} +33 -33
- package/dist/frontend-ssr/assets/{FolderNode-DRfBfpft.js → FolderNode-CpHrpOED.js} +8 -6
- package/dist/frontend-ssr/assets/HiaiDocsExtensionProvider-DAM-lX4R.js +13 -0
- package/dist/frontend-ssr/assets/{SettingsDialog-CX8Noa8A.js → SettingsDialog-Dg97vv83.js} +20 -19
- package/dist/frontend-ssr/assets/{ShareDialog-Cge49ZdJ.js → ShareDialog-vMvJLRfn.js} +1 -1
- package/dist/frontend-ssr/assets/Sidebar-CrDk_HYY.js +2037 -0
- package/dist/frontend-ssr/assets/{TagCreateDialog-EAChgBF-.js → TagCreateDialog-B0DPEfmQ.js} +3 -3
- package/dist/frontend-ssr/assets/{categories-AOqgcsn4.js → categories-CTCtdv7V.js} +10 -10
- package/dist/frontend-ssr/assets/{FolderDialog-Dq7I2cKZ.js → confirm-dialog-BCthVwUY.js} +4 -4
- package/dist/frontend-ssr/assets/{documents-BnOTRdTY.js → documents-PObdTOiT.js} +8 -8
- package/dist/frontend-ssr/assets/{ellipsis-vertical-C-0hgkZn.js → dropdown-menu-Bj5rbqbB.js} +96 -96
- package/dist/frontend-ssr/assets/{folders-CTfbS24J.js → folders-BX30gHv6.js} +10 -10
- package/dist/frontend-ssr/assets/{messages-DhXqlcJI.js → messages-CvqpZNJe.js} +1 -1
- package/dist/frontend-ssr/assets/route-context-uca_b2Px.js +36 -0
- package/dist/frontend-ssr/assets/{select-value-DngdSmLI.js → select-value-6Lk0ToYd.js} +1 -1
- package/dist/frontend-ssr/assets/{tag-store.svelte-DPodKj6Z.js → tag-store.svelte-DvgUduhd.js} +1 -1
- 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 +5 -5
- package/dist/frontend-ssr/components/editor/document-title.js +1 -1
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +1 -1
- package/dist/frontend-ssr/components/folder-node.js +1 -1
- package/dist/frontend-ssr/components/save-as-dialog.js +5 -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 -2032
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
- package/dist/frontend-ssr/components/version-history.js +3 -3
- package/dist/frontend-ssr/dashboard.js +45 -37
- package/dist/frontend-ssr/extension.js +1 -12
- package/dist/frontend-ssr/i18n.js +1 -1
- package/dist/frontend-ssr/search.js +9 -7
- package/package.json +7 -1
- package/packages/cli/src/index.ts +1 -1
- package/packages/mcp-server/src/index.ts +1 -1
- package/dist/frontend/CategoryDialog-DphkZqIB.js +0 -611
- package/dist/frontend/FolderNode-C2zG7uii.js +0 -298
- package/dist/frontend/SettingsDialog-DCM4-N6_.js +0 -1016
- package/dist/frontend-ssr/assets/{DeleteDialog-BCfZy3Zn.js → DeleteDialog-tBYaP0L3.js} +1 -1
- package/dist/frontend-ssr/assets/{floating-layer-anchor-uzw9K8qN.js → floating-layer-anchor-CYIE8Oj6.js} +1 -1
- package/dist/frontend-ssr/assets/{settings-E6qSAWM2.js → settings-Bk5Hk9Vq.js} +1 -1
package/dist/frontend-ssr/assets/{TagCreateDialog-EAChgBF-.js → TagCreateDialog-B0DPEfmQ.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
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";
|
|
3
|
-
import { t as Label } from "./label-Bj8-TfFN.js";
|
|
1
|
+
import { _n as action_save, ar as tags_edit, gn as action_cancel, ir as tags_name_placeholder, ln as action_loading, or as tags_new, pn as action_create, yn as error_generic } from "./messages-CvqpZNJe.js";
|
|
4
2
|
import { t as Loader_circle } from "./loader-circle-DZsrZ-er.js";
|
|
5
3
|
import { t as cn } from "./utils-DvZnctjz.js";
|
|
4
|
+
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
5
|
import { t as Input } from "./input-DezGsU3y.js";
|
|
6
|
+
import { t as Label } from "./label-Bj8-TfFN.js";
|
|
7
7
|
import { c as updateTag, l as updateTagInputSchema, n as createTag, r as createTagInputSchema } from "./tags-BId2wdYd.js";
|
|
8
8
|
import * as $ from "svelte/internal/server";
|
|
9
9
|
//#region src/lib/components/TagCreateDialog.svelte
|
|
@@ -34,42 +34,42 @@ function listCategories(fetcher) {
|
|
|
34
34
|
* Create a new category. The backend enforces name uniqueness per owner
|
|
35
35
|
* and returns 409 if a category with the same name already exists.
|
|
36
36
|
*/
|
|
37
|
-
function createCategory(inputOrName) {
|
|
37
|
+
function createCategory(inputOrName, fetcher) {
|
|
38
38
|
const input = createCategoryInputSchema.parse(typeof inputOrName === "string" ? { name: inputOrName } : inputOrName);
|
|
39
39
|
return apiFetch("/api/categories", {
|
|
40
40
|
method: "POST",
|
|
41
41
|
body: JSON.stringify(input)
|
|
42
|
-
});
|
|
42
|
+
}, fetcher);
|
|
43
43
|
}
|
|
44
44
|
/** Rename a category or update its order. */
|
|
45
|
-
function updateCategory(id, data) {
|
|
45
|
+
function updateCategory(id, data, fetcher) {
|
|
46
46
|
const input = updateCategoryInputSchema.parse(data);
|
|
47
47
|
return apiFetch(`/api/categories/${encodeURIComponent(id)}`, {
|
|
48
48
|
method: "PATCH",
|
|
49
49
|
body: JSON.stringify(input)
|
|
50
|
-
});
|
|
50
|
+
}, fetcher);
|
|
51
51
|
}
|
|
52
52
|
/** Delete a category. The backend uses `ON DELETE SET NULL` to detach
|
|
53
53
|
* the category from any folders/documents. */
|
|
54
|
-
function deleteCategory(id) {
|
|
55
|
-
return apiFetch(`/api/categories/${encodeURIComponent(id)}`, { method: "DELETE" });
|
|
54
|
+
function deleteCategory(id, fetcher) {
|
|
55
|
+
return apiFetch(`/api/categories/${encodeURIComponent(id)}`, { method: "DELETE" }, fetcher);
|
|
56
56
|
}
|
|
57
57
|
/** Assign (or clear) the category on a document. Uses the existing
|
|
58
58
|
* `PATCH /api/documents/:id` endpoint which already accepts a
|
|
59
59
|
* `categoryId` field (see `backend/src/api/routes/documents.ts`).
|
|
60
60
|
* Pass `null` to remove the category from the document. */
|
|
61
|
-
function setDocumentCategory(docId, categoryId) {
|
|
61
|
+
function setDocumentCategory(docId, categoryId, fetcher) {
|
|
62
62
|
return apiFetch(`/api/documents/${encodeURIComponent(docId)}`, {
|
|
63
63
|
method: "PATCH",
|
|
64
64
|
body: JSON.stringify({ categoryId })
|
|
65
|
-
});
|
|
65
|
+
}, fetcher);
|
|
66
66
|
}
|
|
67
67
|
/** Assign (or clear) the category on a folder. Pass `null` to clear. */
|
|
68
|
-
function setFolderCategory(folderId, categoryId) {
|
|
68
|
+
function setFolderCategory(folderId, categoryId, fetcher) {
|
|
69
69
|
return apiFetch(`/api/folders/${encodeURIComponent(folderId)}`, {
|
|
70
70
|
method: "PATCH",
|
|
71
71
|
body: JSON.stringify({ categoryId })
|
|
72
|
-
});
|
|
72
|
+
}, fetcher);
|
|
73
73
|
}
|
|
74
74
|
//#endregion
|
|
75
75
|
export { setDocumentCategory as a, updateCategoryInputSchema as c, listCategories as i, createCategoryInputSchema as n, setFolderCategory as o, deleteCategory as r, updateCategory as s, createCategory as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
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";
|
|
3
|
-
import { t as Label } from "./label-Bj8-TfFN.js";
|
|
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";
|
|
4
2
|
import { t as Icon } from "./Icon-B0Zqppjo.js";
|
|
5
3
|
import { t as Circle_check } from "./circle-check-CI1v4vYh.js";
|
|
6
4
|
import { t as Loader_circle } from "./loader-circle-DZsrZ-er.js";
|
|
7
|
-
import "./
|
|
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";
|
|
8
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
9
|
import * as $ from "svelte/internal/server";
|
|
10
10
|
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/check.svelte
|
|
11
11
|
function Check($$renderer, $$props) {
|
|
@@ -67,18 +67,18 @@ function createDocument(data, fetcher) {
|
|
|
67
67
|
body: JSON.stringify(data)
|
|
68
68
|
}, fetcher);
|
|
69
69
|
}
|
|
70
|
-
function updateDocument(id, data) {
|
|
70
|
+
function updateDocument(id, data, fetcher) {
|
|
71
71
|
clearDocumentsCache();
|
|
72
72
|
return apiFetch(`/api/documents/${id}`, {
|
|
73
73
|
method: "PATCH",
|
|
74
74
|
body: JSON.stringify(data)
|
|
75
|
-
});
|
|
75
|
+
}, fetcher);
|
|
76
76
|
}
|
|
77
|
-
function deleteDocument(id) {
|
|
77
|
+
function deleteDocument(id, fetcher) {
|
|
78
78
|
clearDocumentsCache();
|
|
79
|
-
return apiFetch(`/api/documents/${id}`, { method: "DELETE" });
|
|
79
|
+
return apiFetch(`/api/documents/${id}`, { method: "DELETE" }, fetcher);
|
|
80
80
|
}
|
|
81
|
-
function importDocument(file, folderId) {
|
|
81
|
+
function importDocument(file, folderId, fetcher) {
|
|
82
82
|
clearDocumentsCache();
|
|
83
83
|
const formData = new FormData();
|
|
84
84
|
formData.append("file", file);
|
|
@@ -86,7 +86,7 @@ function importDocument(file, folderId) {
|
|
|
86
86
|
return apiFetch("/api/documents/import", {
|
|
87
87
|
method: "POST",
|
|
88
88
|
body: formData
|
|
89
|
-
});
|
|
89
|
+
}, fetcher);
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* Import one or more documents. Accepts any combination of supported
|
|
@@ -94,7 +94,7 @@ function importDocument(file, folderId) {
|
|
|
94
94
|
* a multipart body with multiple `file` parts and returns an
|
|
95
95
|
* `ImportResponse` describing per-file success/failure.
|
|
96
96
|
*/
|
|
97
|
-
function importDocuments(files, folderId) {
|
|
97
|
+
function importDocuments(files, folderId, fetcher) {
|
|
98
98
|
clearDocumentsCache();
|
|
99
99
|
const formData = new FormData();
|
|
100
100
|
for (const file of files) formData.append("file", file);
|
|
@@ -102,7 +102,7 @@ function importDocuments(files, folderId) {
|
|
|
102
102
|
return apiFetch("/api/documents/import", {
|
|
103
103
|
method: "POST",
|
|
104
104
|
body: formData
|
|
105
|
-
});
|
|
105
|
+
}, fetcher);
|
|
106
106
|
}
|
|
107
107
|
//#endregion
|
|
108
108
|
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 };
|
package/dist/frontend-ssr/assets/{ellipsis-vertical-C-0hgkZn.js → dropdown-menu-Bj5rbqbB.js}
RENAMED
|
@@ -1,7 +1,100 @@
|
|
|
1
|
-
import { t as cn } from "./utils-DtlPPXpJ.js";
|
|
2
|
-
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-uzw9K8qN.js";
|
|
3
1
|
import { t as Icon } from "./Icon-B0Zqppjo.js";
|
|
2
|
+
import { t as cn } from "./utils-DtlPPXpJ.js";
|
|
3
|
+
import { $ as boxWith, Z as mergeProps, a as Floating_layer, c as MenuContentState, d as MenuMenuState, f as MenuRootState, i as createId, n as Popper_layer_force_mount, o as getFloatingContentCSSVars, p as MenuSeparatorState, r as Popper_layer, s as DropdownMenuTriggerState, t as Floating_layer_anchor, u as MenuItemState, v as noop } from "./floating-layer-anchor-CYIE8Oj6.js";
|
|
4
4
|
import * as $ from "svelte/internal/server";
|
|
5
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/ellipsis-vertical.svelte
|
|
6
|
+
function Ellipsis_vertical($$renderer, $$props) {
|
|
7
|
+
const $$sanitized_props = $.sanitize_props($$props);
|
|
8
|
+
/**
|
|
9
|
+
* @license lucide-svelte v1.0.1 - ISC
|
|
10
|
+
*
|
|
11
|
+
* ISC License
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
14
|
+
*
|
|
15
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
16
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
17
|
+
* copyright notice and this permission notice appear in all copies.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
20
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
21
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
22
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
23
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
24
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
25
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
26
|
+
*
|
|
27
|
+
* ---
|
|
28
|
+
*
|
|
29
|
+
* The following Lucide icons are derived from the Feather project:
|
|
30
|
+
*
|
|
31
|
+
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
32
|
+
*
|
|
33
|
+
* The MIT License (MIT) (for the icons listed above)
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) 2013-present Cole Bemis
|
|
36
|
+
*
|
|
37
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
38
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
39
|
+
* in the Software without restriction, including without limitation the rights
|
|
40
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
41
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
42
|
+
* furnished to do so, subject to the following conditions:
|
|
43
|
+
*
|
|
44
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
45
|
+
* copies or substantial portions of the Software.
|
|
46
|
+
*
|
|
47
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
48
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
49
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
50
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
51
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
52
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
53
|
+
* SOFTWARE.
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
Icon($$renderer, $.spread_props([
|
|
57
|
+
{ name: "ellipsis-vertical" },
|
|
58
|
+
$$sanitized_props,
|
|
59
|
+
{
|
|
60
|
+
/**
|
|
61
|
+
* @component @name EllipsisVertical
|
|
62
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
63
|
+
*
|
|
64
|
+
* @preview  - https://lucide.dev/icons/ellipsis-vertical
|
|
65
|
+
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
66
|
+
*
|
|
67
|
+
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
68
|
+
* @returns {FunctionalComponent} Svelte component
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
iconNode: [
|
|
72
|
+
["circle", {
|
|
73
|
+
"cx": "12",
|
|
74
|
+
"cy": "12",
|
|
75
|
+
"r": "1"
|
|
76
|
+
}],
|
|
77
|
+
["circle", {
|
|
78
|
+
"cx": "12",
|
|
79
|
+
"cy": "5",
|
|
80
|
+
"r": "1"
|
|
81
|
+
}],
|
|
82
|
+
["circle", {
|
|
83
|
+
"cx": "12",
|
|
84
|
+
"cy": "19",
|
|
85
|
+
"r": "1"
|
|
86
|
+
}]
|
|
87
|
+
],
|
|
88
|
+
children: ($$renderer) => {
|
|
89
|
+
$$renderer.push(`<!--[-->`);
|
|
90
|
+
$.slot($$renderer, $$props, "default", {}, null);
|
|
91
|
+
$$renderer.push(`<!--]-->`);
|
|
92
|
+
},
|
|
93
|
+
$$slots: { default: true }
|
|
94
|
+
}
|
|
95
|
+
]));
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
5
98
|
//#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/menu/components/menu.svelte
|
|
6
99
|
function Menu($$renderer, $$props) {
|
|
7
100
|
$$renderer.component(($$renderer) => {
|
|
@@ -459,97 +552,4 @@ function Dropdown_menu_trigger($$renderer, $$props) {
|
|
|
459
552
|
});
|
|
460
553
|
}
|
|
461
554
|
//#endregion
|
|
462
|
-
|
|
463
|
-
function Ellipsis_vertical($$renderer, $$props) {
|
|
464
|
-
const $$sanitized_props = $.sanitize_props($$props);
|
|
465
|
-
/**
|
|
466
|
-
* @license lucide-svelte v1.0.1 - ISC
|
|
467
|
-
*
|
|
468
|
-
* ISC License
|
|
469
|
-
*
|
|
470
|
-
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
471
|
-
*
|
|
472
|
-
* Permission to use, copy, modify, and/or distribute this software for any
|
|
473
|
-
* purpose with or without fee is hereby granted, provided that the above
|
|
474
|
-
* copyright notice and this permission notice appear in all copies.
|
|
475
|
-
*
|
|
476
|
-
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
477
|
-
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
478
|
-
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
479
|
-
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
480
|
-
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
481
|
-
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
482
|
-
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
483
|
-
*
|
|
484
|
-
* ---
|
|
485
|
-
*
|
|
486
|
-
* The following Lucide icons are derived from the Feather project:
|
|
487
|
-
*
|
|
488
|
-
* 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
|
|
489
|
-
*
|
|
490
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
491
|
-
*
|
|
492
|
-
* Copyright (c) 2013-present Cole Bemis
|
|
493
|
-
*
|
|
494
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
495
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
496
|
-
* in the Software without restriction, including without limitation the rights
|
|
497
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
498
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
499
|
-
* furnished to do so, subject to the following conditions:
|
|
500
|
-
*
|
|
501
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
502
|
-
* copies or substantial portions of the Software.
|
|
503
|
-
*
|
|
504
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
505
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
506
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
507
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
508
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
509
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
510
|
-
* SOFTWARE.
|
|
511
|
-
*
|
|
512
|
-
*/
|
|
513
|
-
Icon($$renderer, $.spread_props([
|
|
514
|
-
{ name: "ellipsis-vertical" },
|
|
515
|
-
$$sanitized_props,
|
|
516
|
-
{
|
|
517
|
-
/**
|
|
518
|
-
* @component @name EllipsisVertical
|
|
519
|
-
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
520
|
-
*
|
|
521
|
-
* @preview  - https://lucide.dev/icons/ellipsis-vertical
|
|
522
|
-
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
523
|
-
*
|
|
524
|
-
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
525
|
-
* @returns {FunctionalComponent} Svelte component
|
|
526
|
-
*
|
|
527
|
-
*/
|
|
528
|
-
iconNode: [
|
|
529
|
-
["circle", {
|
|
530
|
-
"cx": "12",
|
|
531
|
-
"cy": "12",
|
|
532
|
-
"r": "1"
|
|
533
|
-
}],
|
|
534
|
-
["circle", {
|
|
535
|
-
"cx": "12",
|
|
536
|
-
"cy": "5",
|
|
537
|
-
"r": "1"
|
|
538
|
-
}],
|
|
539
|
-
["circle", {
|
|
540
|
-
"cx": "12",
|
|
541
|
-
"cy": "19",
|
|
542
|
-
"r": "1"
|
|
543
|
-
}]
|
|
544
|
-
],
|
|
545
|
-
children: ($$renderer) => {
|
|
546
|
-
$$renderer.push(`<!--[-->`);
|
|
547
|
-
$.slot($$renderer, $$props, "default", {}, null);
|
|
548
|
-
$$renderer.push(`<!--]-->`);
|
|
549
|
-
},
|
|
550
|
-
$$slots: { default: true }
|
|
551
|
-
}
|
|
552
|
-
]));
|
|
553
|
-
}
|
|
554
|
-
//#endregion
|
|
555
|
-
export { Dropdown_menu_content as a, Dropdown_menu_item as i, Dropdown_menu_trigger as n, Dropdown_menu as o, Dropdown_menu_separator as r, Ellipsis_vertical as t };
|
|
555
|
+
export { Dropdown_menu as a, Dropdown_menu_content as i, Dropdown_menu_separator as n, Ellipsis_vertical as o, Dropdown_menu_item as r, Dropdown_menu_trigger as t };
|
|
@@ -95,33 +95,33 @@ async function getFolderPath(folderId, fetcher) {
|
|
|
95
95
|
return path;
|
|
96
96
|
}
|
|
97
97
|
/** Create a new folder. Backend: `POST /api/folders`. */
|
|
98
|
-
async function createFolder(data) {
|
|
98
|
+
async function createFolder(data, fetcher) {
|
|
99
99
|
return toFolder(await apiFetch("/api/folders", {
|
|
100
100
|
method: "POST",
|
|
101
101
|
body: JSON.stringify(data)
|
|
102
|
-
}));
|
|
102
|
+
}, fetcher));
|
|
103
103
|
}
|
|
104
104
|
/** Update a folder (rename or move). Backend: `PATCH /api/folders/:id`. */
|
|
105
|
-
async function updateFolder(id, data) {
|
|
105
|
+
async function updateFolder(id, data, fetcher) {
|
|
106
106
|
return toFolder(await apiFetch(`/api/folders/${encodeURIComponent(id)}`, {
|
|
107
107
|
method: "PATCH",
|
|
108
108
|
body: JSON.stringify(data)
|
|
109
|
-
}));
|
|
109
|
+
}, fetcher));
|
|
110
110
|
}
|
|
111
111
|
/** Delete a folder. Backend: `DELETE /api/folders/:id`. */
|
|
112
|
-
async function deleteFolder(id) {
|
|
113
|
-
await apiFetch(`/api/folders/${encodeURIComponent(id)}`, { method: "DELETE" });
|
|
112
|
+
async function deleteFolder(id, fetcher) {
|
|
113
|
+
await apiFetch(`/api/folders/${encodeURIComponent(id)}`, { method: "DELETE" }, fetcher);
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
116
|
* Duplicate a document. The new copy is suffixed with ` (Copy)` on the title.
|
|
117
117
|
* Backend: `POST /api/documents/:id/duplicate`.
|
|
118
118
|
*/
|
|
119
|
-
async function duplicateDocument(docId) {
|
|
120
|
-
return toDocument(await apiFetch(`/api/documents/${encodeURIComponent(docId)}/duplicate`, { method: "POST" }));
|
|
119
|
+
async function duplicateDocument(docId, fetcher) {
|
|
120
|
+
return toDocument(await apiFetch(`/api/documents/${encodeURIComponent(docId)}/duplicate`, { method: "POST" }, fetcher));
|
|
121
121
|
}
|
|
122
122
|
/** Delete a document. Backend: `DELETE /api/documents/:id`. */
|
|
123
|
-
async function deleteDocument(docId) {
|
|
124
|
-
await apiFetch(`/api/documents/${encodeURIComponent(docId)}`, { method: "DELETE" });
|
|
123
|
+
async function deleteDocument(docId, fetcher) {
|
|
124
|
+
await apiFetch(`/api/documents/${encodeURIComponent(docId)}`, { method: "DELETE" }, fetcher);
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
127
|
export { getFolder as a, updateFolder as c, duplicateDocument as i, deleteDocument as n, getFolderPath as o, deleteFolder as r, listFolders as s, createFolder as t };
|
|
@@ -11122,4 +11122,4 @@ var messages_exports = /* @__PURE__ */ __exportAll({
|
|
|
11122
11122
|
weekday_we: () => weekday_we
|
|
11123
11123
|
});
|
|
11124
11124
|
//#endregion
|
|
11125
|
-
export {
|
|
11125
|
+
export { month_july as $, search_placeholder as $n, editor_toolbar_image as $t, editor_highlight_pink as A, theme_system as An, doc_delete_success_description as Ar, version_snapshot_label_placeholder as At, date_picker_placeholder as B, share_expires_30d as Bn, nav_documents as Br, editor_content_label as Bt, categories_title as C, confirm_password as Cn, doc_duplicate as Cr, version_filter_snapshots as Ct, doc_new_folder_name as D, settings_name as Dn, doc_delete as Dr, version_snapshot_creating as Dt, sidebar_powered_by as E, settings_save as En, doc_updated as Er, version_snapshot_dialog_title as Et, editor_highlight_orange as F, settings_account as Fn, doc_title_placeholder as Fr, version_restore_short as Ft, weekday_we as G, share_expires as Gn, editor_toolbar_text_formatting as Gt, weekday_sa as H, share_expires_1d as Hn, locales as Hr, editor_toolbar_copy as Ht, editor_highlight_yellow as I, settings_profile as In, dashboard_page_title as Ir, version_restore as It, month_december as J, share_create_link as Jn, editor_toolbar_undo as Jt, weekday_tu as K, share_toggle_password as Kn, editor_toolbar_highlight as Kt, editor_anonymous as L, settings_title as Ln, dashboard_new_document as Lr, version_history_title as Lt, editor_highlight_blue as M, theme_light as Mn, doc_delete_confirm as Mr, version_snapshot_label as Mt, editor_highlight_green as N, settings_theme as Nn, doc_content_placeholder as Nr, version_create_snapshot as Nt, dashboard_import as O, settings_email_change_warning as On, doc_share as Or, version_snapshot_create as Ot, editor_highlight_red as P, settings_appearance as Pn, doc_title_label as Pr, version_restore_confirm as Pt, month_august as Q, search_tags as Qn, editor_toolbar_list as Qt, error_validation as R, share_add as Rn, dashboard_subtitle as Rr, editor_markdown_label as Rt, categories_new as S, change_password as Sn, doc_move_to_folder as Sr, version_badge_snapshot as St, scroll_to_top_aria as T, password_label as Tn, doc_open_menu as Tr, version_snapshot_dialog_description as Tt, weekday_fr as U, share_expires_1h as Un, setLocale as Ur, editor_toolbar_align as Ut, weekday_su as V, share_expires_7d as Vn, app_name as Vr, editor_enter_url as Vt, weekday_th as W, share_expires_never as Wn, editor_toolbar_emoji as Wt, month_october as X, search_date_to as Xn, editor_toolbar_code_block as Xt, month_november as Y, share_create_title as Yn, editor_toolbar_horizontal_rule as Yt, month_september as Z, search_date_from as Zn, editor_toolbar_heading as Zt, categories_update_error as _, action_save as _n, folders_delete as _r, tags_load_error as _t, import_progress_error as a, sidebar_recent as an, tags_edit as ar, month_january as at, categories_edit_title as b, auth_logout as bn, folders_empty as br, version_restore_failed as bt, import_progress_uploading as c, time_minutes_ago as cn, folders_subfolder as cr, search_empty_title as ct, sidebar_uncategorized as d, action_back as dn, folders_documents as dr, search_clear_all_filters as dt, editor_toolbar_link as en, search_title as er, month_june as et, categories_delete_success_description as f, action_close as fn, folders_name_placeholder as fr, search_toggle_filters as ft, categories_delete_error as g, action_cancel as gn, folders_delete_title as gr, folder_page_title as gt, categories_delete_title as h, action_delete as hn, folders_delete_description as hr, share_copied as ht, import_progress_summary as i, sidebar_folders as in, tags_name_placeholder as ir, month_february as it, editor_highlight_purple as j, theme_dark as jn, doc_delete_success as jr, version_snapshot_description as jt, editor_highlight_gray as k, settings_email as kn, doc_tags as kr, version_snapshot_description_placeholder as kt, import_progress_total as l, action_loading as ln, folders_subfolders as lr, search_date_range as lt, categories_delete_description as m, action_edit as mn, folders_delete_success as mr, search_title_with_query as mt, import_progress_empty as n, editor_toolbar_italic as nn, tags_delete_description as nr, month_april as nt, import_progress_done as o, time_days_ago as on, tags_new as or, search_popular as ot, categories_delete_success as p, action_create as pn, folders_delete_success_description as pr, search_input_placeholder as pt, weekday_mo as q, share_password_protection as qn, editor_toolbar_redo as qt, import_progress_close as r, editor_toolbar_bold as rn, tags_delete_title as rr, month_march as rt, import_progress_processing as s, time_hours_ago as sn, folders_move as sr, search_empty_description as st, messages_exports as t, editor_toolbar_underline as tn, tags_add as tr, month_may as tt, import_progress_title as u, action_go_to as un, folders_document as ur, search_folders as ut, categories_create_error as v, error_server as vn, folders_rename as vr, action_copy_content as vt, version_history_empty as w, new_password as wn, doc_open as wr, version_filter_all as wt, categories_create_title as x, auth_password as xn, folders_new as xr, version_restored_from as xt, categories_name_placeholder as y, error_generic as yn, folders_empty_description as yr, editor_more_options as yt, date_picker_aria as z, share_guest_access as zn, dashboard_title as zr, editor_markdown_placeholder as zt };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { getContext, setContext } from "svelte";
|
|
2
|
+
import { goto } from "$app/navigation";
|
|
3
|
+
//#region src/lib/hosts/route-context.ts
|
|
4
|
+
var ROUTE_ADAPTER = Symbol("docsmint-route-adapter");
|
|
5
|
+
var REQUEST_ADAPTER = Symbol("docsmint-request-adapter");
|
|
6
|
+
var standaloneRoute = {
|
|
7
|
+
pathname: "/",
|
|
8
|
+
resolve: (path) => path,
|
|
9
|
+
navigate: (path, options) => goto(path, options)
|
|
10
|
+
};
|
|
11
|
+
/** Makes a route adapter available to every public host child. */
|
|
12
|
+
function provideDocsmintRouteAdapter(adapter) {
|
|
13
|
+
setContext(ROUTE_ADAPTER, adapter);
|
|
14
|
+
}
|
|
15
|
+
function provideDocsmintRequestAdapter(adapter) {
|
|
16
|
+
setContext(REQUEST_ADAPTER, adapter);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Reads the embedding route adapter, preserving the standalone SvelteKit
|
|
20
|
+
* behaviour when a public host is rendered without DocsmintAppShellHost.
|
|
21
|
+
*/
|
|
22
|
+
function getDocsmintRouteAdapter() {
|
|
23
|
+
return getContext(ROUTE_ADAPTER) ?? standaloneRoute;
|
|
24
|
+
}
|
|
25
|
+
function getDocsmintRequestAdapter() {
|
|
26
|
+
return getContext(REQUEST_ADAPTER) ?? { fetch };
|
|
27
|
+
}
|
|
28
|
+
function resolveDocsmintRoute(route, path) {
|
|
29
|
+
return /^(?:[a-z][a-z\d+.-]*:|#|\/\/)/i.test(path) ? path : route.resolve(path);
|
|
30
|
+
}
|
|
31
|
+
function navigateDocsmintRoute(route, path, options) {
|
|
32
|
+
const resolved = resolveDocsmintRoute(route, path);
|
|
33
|
+
return route.navigate?.(resolved, options) ?? goto(resolved, options);
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { provideDocsmintRouteAdapter as a, provideDocsmintRequestAdapter as i, getDocsmintRouteAdapter as n, resolveDocsmintRoute as o, navigateDocsmintRoute as r, getDocsmintRequestAdapter as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cn } from "./utils-DtlPPXpJ.js";
|
|
2
|
-
import { $ as boxWith, A as isIOS, C as prev, D as createBitsAttrs, E as boolToTrueOrUndef, G as watch, H as PAGE_UP, J as DOMContext, K as Context, O as getDataOpenClosed, P as ARROW_UP, Q as styleToString, S as next, T as boolToStr, V as PAGE_DOWN, W as Previous, Y as afterTick, Z as mergeProps, _ as boxAutoReset, a as Floating_layer, b as forward, g as DOMTypeahead, h as PresenceManager, i as createId, j as ARROW_DOWN, k as getDataTransitionAttrs, n as Popper_layer_force_mount, o as getFloatingContentCSSVars, q as attachRef, r as Popper_layer, t as Floating_layer_anchor, v as noop, w as boolToEmptyStrOrUndef, x as getNextMatch, y as backward, z as HOME } from "./floating-layer-anchor-
|
|
2
|
+
import { $ as boxWith, A as isIOS, C as prev, D as createBitsAttrs, E as boolToTrueOrUndef, G as watch, H as PAGE_UP, J as DOMContext, K as Context, O as getDataOpenClosed, P as ARROW_UP, Q as styleToString, S as next, T as boolToStr, V as PAGE_DOWN, W as Previous, Y as afterTick, Z as mergeProps, _ as boxAutoReset, a as Floating_layer, b as forward, g as DOMTypeahead, h as PresenceManager, i as createId, j as ARROW_DOWN, k as getDataTransitionAttrs, n as Popper_layer_force_mount, o as getFloatingContentCSSVars, q as attachRef, r as Popper_layer, t as Floating_layer_anchor, v as noop, w as boolToEmptyStrOrUndef, x as getNextMatch, y as backward, z as HOME } from "./floating-layer-anchor-CYIE8Oj6.js";
|
|
3
3
|
import * as $ from "svelte/internal/server";
|
|
4
4
|
import "svelte";
|
|
5
5
|
import { on } from "svelte/events";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CategoryDialog } from "../assets/CategoryDialog-
|
|
1
|
+
import { t as CategoryDialog } from "../assets/CategoryDialog-BcGW8-Kf.js";
|
|
2
2
|
export { CategoryDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CreateSnapshotDialog } from "../assets/CreateSnapshotDialog-
|
|
1
|
+
import { t as CreateSnapshotDialog } from "../assets/CreateSnapshotDialog-1bROJ-Rn.js";
|
|
2
2
|
export { CreateSnapshotDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DeleteDialog } from "../assets/DeleteDialog-
|
|
1
|
+
import { t as DeleteDialog } from "../assets/DeleteDialog-tBYaP0L3.js";
|
|
2
2
|
export { DeleteDialog };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { $t as
|
|
2
|
-
import { a as Dialog, n as Dialog_header, o as Button, r as Dialog_footer, t as Dialog_title } from "../../assets/dialog-BOV1u6zP.js";
|
|
1
|
+
import { $t as editor_toolbar_image, A as editor_highlight_pink, Bt as editor_content_label, F as editor_highlight_orange, Gt as editor_toolbar_text_formatting, Ht as editor_toolbar_copy, I as editor_highlight_yellow, Jt as editor_toolbar_undo, Kt as editor_toolbar_highlight, L as editor_anonymous, M as editor_highlight_blue, N as editor_highlight_green, Nr as doc_content_placeholder, Nt as version_create_snapshot, P as editor_highlight_red, Qt as editor_toolbar_list, Ut as editor_toolbar_align, Vt as editor_enter_url, Wt as editor_toolbar_emoji, Xt as editor_toolbar_code_block, Yt as editor_toolbar_horizontal_rule, Zt as editor_toolbar_heading, _n as action_save, en as editor_toolbar_link, gn as action_cancel, j as editor_highlight_purple, k as editor_highlight_gray, nn as editor_toolbar_italic, qt as editor_toolbar_redo, rn as editor_toolbar_bold, tn as editor_toolbar_underline } from "../../assets/messages-CvqpZNJe.js";
|
|
3
2
|
import { t as Icon } from "../../assets/Icon-B0Zqppjo.js";
|
|
4
3
|
import { t as Camera } from "../../assets/camera-CdxscTw-.js";
|
|
5
4
|
import { t as Chevron_down } from "../../assets/chevron-down-CSSNGNh_.js";
|
|
6
5
|
import { t as Copy } from "../../assets/copy-CjV57nGQ.js";
|
|
6
|
+
import { a as Dialog, n as Dialog_header, o as Button, r as Dialog_footer, t as Dialog_title } from "../../assets/dialog-BOV1u6zP.js";
|
|
7
7
|
import { t as Input } from "../../assets/input-DezGsU3y.js";
|
|
8
|
-
import { h as unregisterShortcut, u as registerShortcut } from "../../assets/keyboard.svelte-BgF47N3L.js";
|
|
9
|
-
import { t as CreateSnapshotDialog } from "../../assets/CreateSnapshotDialog-BRw1xJW1.js";
|
|
10
8
|
import { a as resolveOfflineIdentity } from "../../assets/identity-B3uHoDtf.js";
|
|
9
|
+
import { n as getOfflineDB } from "../../assets/db-CnxeO66n.js";
|
|
10
|
+
import { h as unregisterShortcut, u as registerShortcut } from "../../assets/keyboard.svelte-BgF47N3L.js";
|
|
11
|
+
import { t as CreateSnapshotDialog } from "../../assets/CreateSnapshotDialog-1bROJ-Rn.js";
|
|
11
12
|
import { r as editorExtensions } from "../../assets/editorExtensions-DUzwndMy.js";
|
|
12
13
|
import { t as markdownToJson } from "../../assets/markdown-CjqvGi5W.js";
|
|
13
|
-
import { n as getOfflineDB } from "../../assets/db-CnxeO66n.js";
|
|
14
14
|
import * as $ from "svelte/internal/server";
|
|
15
15
|
import { onDestroy, onMount, tick } from "svelte";
|
|
16
16
|
import "svelte/reactivity";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fr as doc_title_placeholder, Pr as doc_title_label } from "../../assets/messages-CvqpZNJe.js";
|
|
2
2
|
import * as $ from "svelte/internal/server";
|
|
3
3
|
//#region src/lib/components/editor/DocumentTitle.svelte
|
|
4
4
|
function DocumentTitle($$renderer, $$props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Rt as editor_markdown_label, zt as editor_markdown_placeholder } from "../../assets/messages-CvqpZNJe.js";
|
|
2
2
|
import { t as Copy } from "../../assets/copy-CjV57nGQ.js";
|
|
3
3
|
import "../../assets/markdown-CjqvGi5W.js";
|
|
4
4
|
import * as $ from "svelte/internal/server";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FolderNode } from "../assets/FolderNode-
|
|
1
|
+
import { t as FolderNode } from "../assets/FolderNode-CpHrpOED.js";
|
|
2
2
|
export { FolderNode };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as Dialog, i as Dialog_description, n as Dialog_header, o as Button, r as Dialog_footer, t as Dialog_title } from "../assets/dialog-BOV1u6zP.js";
|
|
3
|
-
import { a as Select, i as Select_content, n as Select_trigger, r as Select_item, t as Select_value } from "../assets/select-value-DngdSmLI.js";
|
|
4
|
-
import { t as Label } from "../assets/label-Bj8-TfFN.js";
|
|
1
|
+
import { _n as action_save, gn as action_cancel } from "../assets/messages-CvqpZNJe.js";
|
|
5
2
|
import { t as Chevron_down } from "../assets/chevron-down-CSSNGNh_.js";
|
|
6
3
|
import { t as FolderTreeSelector } from "../assets/FolderTreeSelector-DZNZ2oI6.js";
|
|
7
4
|
import { t as Loader_circle } from "../assets/loader-circle-DZsrZ-er.js";
|
|
8
|
-
import "../assets/
|
|
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 "../assets/dialog-BOV1u6zP.js";
|
|
6
|
+
import { t as Label } from "../assets/label-Bj8-TfFN.js";
|
|
7
|
+
import "../assets/categories-CTCtdv7V.js";
|
|
8
|
+
import { a as Select, i as Select_content, n as Select_trigger, r as Select_item, t as Select_value } from "../assets/select-value-6Lk0ToYd.js";
|
|
9
9
|
import { d as refreshFolders } from "../assets/subfolders-refresh-store.svelte-DAh4gT16.js";
|
|
10
10
|
import * as $ from "svelte/internal/server";
|
|
11
11
|
//#region src/lib/components/SaveAsDialog.svelte
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SettingsDialog } from "../assets/SettingsDialog-
|
|
1
|
+
import { t as SettingsDialog } from "../assets/SettingsDialog-Dg97vv83.js";
|
|
2
2
|
export { SettingsDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ShareDialog } from "../assets/ShareDialog-
|
|
1
|
+
import { t as ShareDialog } from "../assets/ShareDialog-vMvJLRfn.js";
|
|
2
2
|
export { ShareDialog };
|