@hiai-gg/docsmint 0.3.8 → 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/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-C2zG7uii.js → FolderNode-C6FJv99G.js} +41 -41
- package/dist/frontend/HiaiDocsExtensionProvider-DHWLzRUu.js +11 -0
- package/dist/frontend/SettingsDialog-BHh68rTB.js +1016 -0
- package/dist/frontend/{ShareDialog-DYu3RKQu.js → ShareDialog-BUOkYSlw.js} +35 -35
- package/dist/frontend/Sidebar-Cu3JrKDC.js +2021 -0
- package/dist/frontend/{TagCreateDialog-DXQs2bL9.js → TagCreateDialog-B9YZBNHi.js} +38 -38
- 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/{clsx-C7bIvsDS.js → bundle-mjs-DllmqUxV.js} +583 -583
- 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 +1118 -1118
- 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/{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/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/search.js +613 -613
- 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/{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/settings.js +1 -1
- package/dist/frontend-ssr/app-shell.js +294 -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-BZ0Q2QUS.js} +3 -3
- package/dist/frontend-ssr/assets/HiaiDocsExtensionProvider-DAM-lX4R.js +13 -0
- package/dist/frontend-ssr/assets/{SettingsDialog-CX8Noa8A.js → SettingsDialog-B8L_YqNA.js} +16 -16
- package/dist/frontend-ssr/assets/{ShareDialog-Cge49ZdJ.js → ShareDialog-vMvJLRfn.js} +1 -1
- package/dist/frontend-ssr/assets/Sidebar-EHuUAx3W.js +2033 -0
- package/dist/frontend-ssr/assets/{TagCreateDialog-EAChgBF-.js → TagCreateDialog-B0DPEfmQ.js} +3 -3
- package/dist/frontend-ssr/assets/{FolderDialog-Dq7I2cKZ.js → confirm-dialog-BCthVwUY.js} +4 -4
- package/dist/frontend-ssr/assets/{ellipsis-vertical-C-0hgkZn.js → dropdown-menu-Bj5rbqbB.js} +96 -96
- package/dist/frontend-ssr/assets/{messages-DhXqlcJI.js → messages-CvqpZNJe.js} +1 -1
- package/dist/frontend-ssr/assets/{select-value-DngdSmLI.js → select-value-6Lk0ToYd.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 +4 -4
- 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 +15 -15
- package/dist/frontend-ssr/extension.js +1 -12
- package/dist/frontend-ssr/i18n.js +1 -1
- package/dist/frontend-ssr/search.js +3 -3
- 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/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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./utils-
|
|
2
|
-
import { $ as t, A as n, C as r, D as i, E as a, G as o, H as s, J as c, K as l, O as u, P as d, Q as f, S as p, T as m, V as h, W as g, X as _, Y as v, Z as y, _ as b, a as x, b as S, g as C, h as w, i as T, j as ee, k as te, n as ne, o as E, q as D, r as O, t as k, v as A, w as j, x as re, y as ie, z as ae } from "./floating-layer-anchor-
|
|
1
|
+
import { t as e } from "./utils-BPDRytUU.js";
|
|
2
|
+
import { $ as t, A as n, C as r, D as i, E as a, G as o, H as s, J as c, K as l, O as u, P as d, Q as f, S as p, T as m, V as h, W as g, X as _, Y as v, Z as y, _ as b, a as x, b as S, g as C, h as w, i as T, j as ee, k as te, n as ne, o as E, q as D, r as O, t as k, v as A, w as j, x as re, y as ie, z as ae } from "./floating-layer-anchor-BDs7vO-M.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as M from "svelte/internal/client";
|
|
5
5
|
import { untrack as oe } from "svelte";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { t as e } from "./auth-client-Cygmp1I2.js";
|
|
2
|
+
import { n as t } from "./client-GbtOH90i.js";
|
|
3
3
|
//#region src/lib/api/settings.ts
|
|
4
4
|
async function n() {
|
|
5
5
|
try {
|
|
6
|
-
let
|
|
7
|
-
if (
|
|
6
|
+
let e = await t("/api/auth/get-session");
|
|
7
|
+
if (e.user?.name || e.user?.email) return e.user;
|
|
8
8
|
} catch {}
|
|
9
|
-
let { data: n } = await
|
|
9
|
+
let { data: n } = await e.getSession();
|
|
10
10
|
return n?.user ? {
|
|
11
11
|
id: n.user.id ?? "",
|
|
12
12
|
name: n.user.name ?? "User",
|
|
@@ -19,10 +19,10 @@ async function n() {
|
|
|
19
19
|
avatar: null
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
async function r(
|
|
23
|
-
return
|
|
22
|
+
async function r(e) {
|
|
23
|
+
return t("/api/auth/update-user", {
|
|
24
24
|
method: "POST",
|
|
25
|
-
body: JSON.stringify({ name:
|
|
25
|
+
body: JSON.stringify({ name: e.name })
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
var i = "hiai-docs:embedding-config";
|
|
@@ -56,7 +56,7 @@ function o(e) {
|
|
|
56
56
|
return localStorage.setItem(i, JSON.stringify(t)), t;
|
|
57
57
|
}
|
|
58
58
|
async function s() {
|
|
59
|
-
await
|
|
59
|
+
await t("/api/auth/delete-user", { method: "POST" });
|
|
60
60
|
}
|
|
61
61
|
//#endregion
|
|
62
62
|
export { r as a, o as i, a as n, n as r, s as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./utils-
|
|
1
|
+
import { t as e } from "./utils-BPDRytUU.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as t from "svelte/internal/client";
|
|
4
4
|
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/textarea/textarea.svelte
|
package/dist/frontend/utils.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./utils-
|
|
1
|
+
import { n as e, t } from "./utils-DrfHTcei.js";
|
|
2
2
|
export { t as cn, e as formatRelativeTime };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as updateProfile, i as updateEmbeddingConfig, n as getEmbeddingConfig, r as getProfile, t as deleteAccount } from "../assets/settings-
|
|
1
|
+
import { a as updateProfile, i as updateEmbeddingConfig, n as getEmbeddingConfig, r as getProfile, t as deleteAccount } from "../assets/settings-Bk5Hk9Vq.js";
|
|
2
2
|
export { deleteAccount, getEmbeddingConfig, getProfile, updateEmbeddingConfig, updateProfile };
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { T as scroll_to_top_aria } from "./assets/messages-CvqpZNJe.js";
|
|
2
|
+
import { t as Icon } from "./assets/Icon-B0Zqppjo.js";
|
|
3
|
+
import { n as searchPreferences, r as editorPreferences } from "./assets/SettingsDialog-B8L_YqNA.js";
|
|
4
|
+
import { t as Sidebar } from "./assets/Sidebar-EHuUAx3W.js";
|
|
5
|
+
import { t as HiaiDocsExtensionProvider } from "./assets/HiaiDocsExtensionProvider-DAM-lX4R.js";
|
|
6
|
+
import * as $ from "svelte/internal/server";
|
|
7
|
+
import { onDestroy } from "svelte";
|
|
8
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/arrow-up.svelte
|
|
9
|
+
function Arrow_up($$renderer, $$props) {
|
|
10
|
+
const $$sanitized_props = $.sanitize_props($$props);
|
|
11
|
+
/**
|
|
12
|
+
* @license lucide-svelte v1.0.1 - ISC
|
|
13
|
+
*
|
|
14
|
+
* ISC License
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
17
|
+
*
|
|
18
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
19
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
20
|
+
* copyright notice and this permission notice appear in all copies.
|
|
21
|
+
*
|
|
22
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
23
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
24
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
25
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
26
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
27
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
28
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
29
|
+
*
|
|
30
|
+
* ---
|
|
31
|
+
*
|
|
32
|
+
* The following Lucide icons are derived from the Feather project:
|
|
33
|
+
*
|
|
34
|
+
* 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
|
|
35
|
+
*
|
|
36
|
+
* The MIT License (MIT) (for the icons listed above)
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) 2013-present Cole Bemis
|
|
39
|
+
*
|
|
40
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
41
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
42
|
+
* in the Software without restriction, including without limitation the rights
|
|
43
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
44
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
45
|
+
* furnished to do so, subject to the following conditions:
|
|
46
|
+
*
|
|
47
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
48
|
+
* copies or substantial portions of the Software.
|
|
49
|
+
*
|
|
50
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
51
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
52
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
53
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
54
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
55
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
56
|
+
* SOFTWARE.
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
Icon($$renderer, $.spread_props([
|
|
60
|
+
{ name: "arrow-up" },
|
|
61
|
+
$$sanitized_props,
|
|
62
|
+
{
|
|
63
|
+
/**
|
|
64
|
+
* @component @name ArrowUp
|
|
65
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
66
|
+
*
|
|
67
|
+
* @preview  - https://lucide.dev/icons/arrow-up
|
|
68
|
+
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
69
|
+
*
|
|
70
|
+
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
71
|
+
* @returns {FunctionalComponent} Svelte component
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
iconNode: [["path", { "d": "m5 12 7-7 7 7" }], ["path", { "d": "M12 19V5" }]],
|
|
75
|
+
children: ($$renderer) => {
|
|
76
|
+
$$renderer.push(`<!--[-->`);
|
|
77
|
+
$.slot($$renderer, $$props, "default", {}, null);
|
|
78
|
+
$$renderer.push(`<!--]-->`);
|
|
79
|
+
},
|
|
80
|
+
$$slots: { default: true }
|
|
81
|
+
}
|
|
82
|
+
]));
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/menu.svelte
|
|
86
|
+
function Menu($$renderer, $$props) {
|
|
87
|
+
const $$sanitized_props = $.sanitize_props($$props);
|
|
88
|
+
/**
|
|
89
|
+
* @license lucide-svelte v1.0.1 - ISC
|
|
90
|
+
*
|
|
91
|
+
* ISC License
|
|
92
|
+
*
|
|
93
|
+
* Copyright (c) 2026 Lucide Icons and Contributors
|
|
94
|
+
*
|
|
95
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
96
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
97
|
+
* copyright notice and this permission notice appear in all copies.
|
|
98
|
+
*
|
|
99
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
100
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
101
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
102
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
103
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
104
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
105
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
106
|
+
*
|
|
107
|
+
* ---
|
|
108
|
+
*
|
|
109
|
+
* The following Lucide icons are derived from the Feather project:
|
|
110
|
+
*
|
|
111
|
+
* 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
|
|
112
|
+
*
|
|
113
|
+
* The MIT License (MIT) (for the icons listed above)
|
|
114
|
+
*
|
|
115
|
+
* Copyright (c) 2013-present Cole Bemis
|
|
116
|
+
*
|
|
117
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
118
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
119
|
+
* in the Software without restriction, including without limitation the rights
|
|
120
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
121
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
122
|
+
* furnished to do so, subject to the following conditions:
|
|
123
|
+
*
|
|
124
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
125
|
+
* copies or substantial portions of the Software.
|
|
126
|
+
*
|
|
127
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
128
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
129
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
130
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
131
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
132
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
133
|
+
* SOFTWARE.
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
136
|
+
Icon($$renderer, $.spread_props([
|
|
137
|
+
{ name: "menu" },
|
|
138
|
+
$$sanitized_props,
|
|
139
|
+
{
|
|
140
|
+
/**
|
|
141
|
+
* @component @name Menu
|
|
142
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
143
|
+
*
|
|
144
|
+
* @preview  - https://lucide.dev/icons/menu
|
|
145
|
+
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
146
|
+
*
|
|
147
|
+
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
148
|
+
* @returns {FunctionalComponent} Svelte component
|
|
149
|
+
*
|
|
150
|
+
*/
|
|
151
|
+
iconNode: [
|
|
152
|
+
["path", { "d": "M4 5h16" }],
|
|
153
|
+
["path", { "d": "M4 12h16" }],
|
|
154
|
+
["path", { "d": "M4 19h16" }]
|
|
155
|
+
],
|
|
156
|
+
children: ($$renderer) => {
|
|
157
|
+
$$renderer.push(`<!--[-->`);
|
|
158
|
+
$.slot($$renderer, $$props, "default", {}, null);
|
|
159
|
+
$$renderer.push(`<!--]-->`);
|
|
160
|
+
},
|
|
161
|
+
$$slots: { default: true }
|
|
162
|
+
}
|
|
163
|
+
]));
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/lib/stores/mobile-sidebar.svelte.ts
|
|
167
|
+
var open = false;
|
|
168
|
+
var mobileSidebar = {
|
|
169
|
+
get open() {
|
|
170
|
+
return open;
|
|
171
|
+
},
|
|
172
|
+
set open(value) {
|
|
173
|
+
open = value;
|
|
174
|
+
},
|
|
175
|
+
toggle() {
|
|
176
|
+
open = !open;
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/lib/components/MobileSidebarToggle.svelte
|
|
181
|
+
function MobileSidebarToggle($$renderer, $$props) {
|
|
182
|
+
$$renderer.component(($$renderer) => {
|
|
183
|
+
let { buttonRef = null, controls = "mobile-navigation" } = $$props;
|
|
184
|
+
$$renderer.push("<!--[0-->");
|
|
185
|
+
$$renderer.push(`<button type="button"${$.attr("aria-label", mobileSidebar.open ? "Close navigation menu" : "Open navigation menu")}${$.attr("aria-expanded", mobileSidebar.open)}${$.attr("aria-controls", controls)} class="mobile-sidebar-toggle fixed left-3 top-3 flex size-11 items-center justify-center rounded-md border border-border bg-background text-foreground shadow-sm transition-colors hover:bg-accent md:hidden" style="top: calc(0.75rem + env(safe-area-inset-top));">`);
|
|
186
|
+
Menu($$renderer, { class: "size-5" });
|
|
187
|
+
$$renderer.push(`<!----></button>`);
|
|
188
|
+
$$renderer.push(`<!--]-->`);
|
|
189
|
+
$.bind_props($$props, { buttonRef });
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/lib/components/ScrollToTop.svelte
|
|
194
|
+
function ScrollToTop($$renderer, $$props) {
|
|
195
|
+
$$renderer.component(($$renderer) => {
|
|
196
|
+
const SCROLL_THRESHOLD = 300;
|
|
197
|
+
let { scrollTarget, avoidEditorToolbar = false } = $$props;
|
|
198
|
+
let visible = false;
|
|
199
|
+
let activeTarget = null;
|
|
200
|
+
let editorDockBottom = void 0;
|
|
201
|
+
function handleScroll() {
|
|
202
|
+
visible = (activeTarget ? activeTarget.scrollTop : window.scrollY) > SCROLL_THRESHOLD;
|
|
203
|
+
}
|
|
204
|
+
function detach() {
|
|
205
|
+
if (activeTarget) activeTarget.removeEventListener("scroll", handleScroll);
|
|
206
|
+
activeTarget = null;
|
|
207
|
+
}
|
|
208
|
+
onDestroy(() => {
|
|
209
|
+
detach();
|
|
210
|
+
visible = false;
|
|
211
|
+
});
|
|
212
|
+
$$renderer.push(`<button type="button"${$.attr_class(`scroll-to-top fixed bottom-6 right-6 z-50 inline-flex size-10 items-center justify-center rounded-full border border-border bg-card text-muted-foreground shadow-md transition-all hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${visible ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none"}`, void 0, {
|
|
213
|
+
"above-editor-toolbar": false,
|
|
214
|
+
"below-editor-fab": false
|
|
215
|
+
})}${$.attr("aria-label", scroll_to_top_aria())}${$.attr("title", scroll_to_top_aria())}${$.attr_style("", { bottom: editorDockBottom })}>`);
|
|
216
|
+
Arrow_up($$renderer, { class: "size-5" });
|
|
217
|
+
$$renderer.push(`<!----></button>`);
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region src/lib/hosts/DocsmintAppShellHost.svelte
|
|
222
|
+
function DocsmintAppShellHost($$renderer, $$props) {
|
|
223
|
+
$$renderer.component(($$renderer) => {
|
|
224
|
+
const { route, extensions = {}, children } = $$props;
|
|
225
|
+
editorPreferences.init();
|
|
226
|
+
searchPreferences.init();
|
|
227
|
+
let mainElement = null;
|
|
228
|
+
let sidebarElement = null;
|
|
229
|
+
let toggleButton = null;
|
|
230
|
+
let isMobile = false;
|
|
231
|
+
[
|
|
232
|
+
"a[href]",
|
|
233
|
+
"button:not([disabled])",
|
|
234
|
+
"input:not([disabled])",
|
|
235
|
+
"select:not([disabled])",
|
|
236
|
+
"textarea:not([disabled])",
|
|
237
|
+
"[tabindex]:not([tabindex=\"-1\"])"
|
|
238
|
+
].join(",");
|
|
239
|
+
let $$settled = true;
|
|
240
|
+
let $$inner_renderer;
|
|
241
|
+
function $$render_inner($$renderer) {
|
|
242
|
+
HiaiDocsExtensionProvider($$renderer, {
|
|
243
|
+
extensions,
|
|
244
|
+
children: ($$renderer) => {
|
|
245
|
+
$$renderer.push(`<div class="flex h-screen" data-docsmint-app-shell-host="">`);
|
|
246
|
+
Sidebar($$renderer, {
|
|
247
|
+
mobile: isMobile,
|
|
248
|
+
mobileOpen: mobileSidebar.open,
|
|
249
|
+
get element() {
|
|
250
|
+
return sidebarElement;
|
|
251
|
+
},
|
|
252
|
+
set element($$value) {
|
|
253
|
+
sidebarElement = $$value;
|
|
254
|
+
$$settled = false;
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
$$renderer.push(`<!----> <main id="main-content"${$.attr("inert", isMobile, true)} class="relative z-0 flex-1 overflow-auto">`);
|
|
258
|
+
children($$renderer);
|
|
259
|
+
$$renderer.push(`<!----></main></div> `);
|
|
260
|
+
MobileSidebarToggle($$renderer, {
|
|
261
|
+
get buttonRef() {
|
|
262
|
+
return toggleButton;
|
|
263
|
+
},
|
|
264
|
+
set buttonRef($$value) {
|
|
265
|
+
toggleButton = $$value;
|
|
266
|
+
$$settled = false;
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
$$renderer.push(`<!----> `);
|
|
270
|
+
$$renderer.push("<!--[-1-->");
|
|
271
|
+
$$renderer.push(`<!--]-->`);
|
|
272
|
+
},
|
|
273
|
+
$$slots: { default: true }
|
|
274
|
+
});
|
|
275
|
+
$$renderer.push(`<!----> `);
|
|
276
|
+
if (editorPreferences.showScrollToTop) {
|
|
277
|
+
$$renderer.push("<!--[0-->");
|
|
278
|
+
ScrollToTop($$renderer, {
|
|
279
|
+
scrollTarget: mainElement,
|
|
280
|
+
avoidEditorToolbar: route.pathname.startsWith("/docs/")
|
|
281
|
+
});
|
|
282
|
+
} else $$renderer.push("<!--[-1-->");
|
|
283
|
+
$$renderer.push(`<!--]-->`);
|
|
284
|
+
}
|
|
285
|
+
do {
|
|
286
|
+
$$settled = true;
|
|
287
|
+
$$inner_renderer = $$renderer.copy();
|
|
288
|
+
$$render_inner($$inner_renderer);
|
|
289
|
+
} while (!$$settled);
|
|
290
|
+
$$renderer.subsume($$inner_renderer);
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
//#endregion
|
|
294
|
+
export { DocsmintAppShellHost };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as categories_update_error,
|
|
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 { a as Select, i as Select_content, n as Select_trigger, r as Select_item, t as Select_value } from "./select-value-DngdSmLI.js";
|
|
4
|
-
import { t as Label } from "./label-Bj8-TfFN.js";
|
|
1
|
+
import { _ as categories_update_error, _n as action_save, b as categories_edit_title, f as categories_delete_success_description, g as categories_delete_error, gn as action_cancel, h as categories_delete_title, hn as action_delete, m as categories_delete_description, p as categories_delete_success, pn as action_create, v as categories_create_error, x as categories_create_title, y as categories_name_placeholder } from "./messages-CvqpZNJe.js";
|
|
5
2
|
import { t as Copy } from "./copy-CjV57nGQ.js";
|
|
6
3
|
import { t as Circle_check } from "./circle-check-CI1v4vYh.js";
|
|
7
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";
|
|
8
6
|
import { t as Input } from "./input-DezGsU3y.js";
|
|
7
|
+
import { t as Label } from "./label-Bj8-TfFN.js";
|
|
9
8
|
import { a as listApiKeys, n as categoryIdFromScopes, o as revealCategoryApiKey, r as createCategoryApiKey, s as revokeApiKey, t as apiKeyClipboardValue } from "./api-keys-DFqX39MT.js";
|
|
9
|
+
import { a as Select, i as Select_content, n as Select_trigger, r as Select_item, t as Select_value } from "./select-value-6Lk0ToYd.js";
|
|
10
10
|
import * as $ from "svelte/internal/server";
|
|
11
11
|
//#region src/lib/components/sidebar/category-dialog-feedback.ts
|
|
12
12
|
function categoryDialogErrorMessage(error, fallback) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { At as
|
|
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";
|
|
1
|
+
import { At as version_snapshot_label_placeholder, Dt as version_snapshot_creating, Et as version_snapshot_dialog_title, Mt as version_snapshot_label, Ot as version_snapshot_create, R as error_validation, Tt as version_snapshot_dialog_description, bt as version_restore_failed, gn as action_cancel, jt as version_snapshot_description, kt as version_snapshot_description_placeholder, vn as error_server } from "./messages-CvqpZNJe.js";
|
|
3
2
|
import { t as Loader_circle } from "./loader-circle-DZsrZ-er.js";
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as apiFetch, t as ApiError } from "./client-DZMkDkDn.js";
|
|
3
|
+
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
4
|
import { t as Input } from "./input-DezGsU3y.js";
|
|
5
|
+
import { n as apiFetch, t as ApiError } from "./client-DZMkDkDn.js";
|
|
6
|
+
import { t as Textarea } from "./textarea-Dev-qSEc.js";
|
|
7
7
|
import * as $ from "svelte/internal/server";
|
|
8
8
|
//#region src/lib/components/CreateSnapshotDialog.svelte
|
|
9
9
|
function CreateSnapshotDialog($$renderer, $$props) {
|
|
@@ -1,38 +1,8 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { t as cn } from "./utils-DtlPPXpJ.js";
|
|
1
|
+
import { $ as month_july, B as date_picker_placeholder, G as weekday_we, H as weekday_sa, J as month_december, K as weekday_tu, Q as month_august, U as weekday_fr, V as weekday_su, W as weekday_th, X as month_october, Y as month_november, Z as month_september, at as month_january, et as month_june, it as month_february, nt as month_april, q as weekday_mo, rt as month_march, tt as month_may, z as date_picker_aria } from "./messages-CvqpZNJe.js";
|
|
3
2
|
import { t as Icon } from "./Icon-B0Zqppjo.js";
|
|
3
|
+
import { t as cn } from "./utils-DtlPPXpJ.js";
|
|
4
4
|
import * as $ from "svelte/internal/server";
|
|
5
5
|
import { tv } from "tailwind-variants";
|
|
6
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/badge.svelte
|
|
7
|
-
function Badge($$renderer, $$props) {
|
|
8
|
-
$$renderer.component(($$renderer) => {
|
|
9
|
-
let { ref = null, class: className, variant = "default", children, $$slots, $$events, ...restProps } = $$props;
|
|
10
|
-
$$renderer.push(`<div${$.attributes({
|
|
11
|
-
class: $.clsx(cn(badgeVariants({ variant }), className)),
|
|
12
|
-
...restProps
|
|
13
|
-
})}>`);
|
|
14
|
-
if (children) {
|
|
15
|
-
$$renderer.push("<!--[0-->");
|
|
16
|
-
children($$renderer);
|
|
17
|
-
$$renderer.push(`<!---->`);
|
|
18
|
-
} else $$renderer.push("<!--[-1-->");
|
|
19
|
-
$$renderer.push(`<!--]--></div>`);
|
|
20
|
-
$.bind_props($$props, { ref });
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/index.js
|
|
25
|
-
var badgeVariants = tv({
|
|
26
|
-
base: "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
27
|
-
variants: { variant: {
|
|
28
|
-
default: "border-transparent bg-primary text-primary-foreground shadow",
|
|
29
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground",
|
|
30
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground shadow",
|
|
31
|
-
outline: "text-foreground"
|
|
32
|
-
} },
|
|
33
|
-
defaultVariants: { variant: "default" }
|
|
34
|
-
});
|
|
35
|
-
//#endregion
|
|
36
6
|
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/calendar.svelte
|
|
37
7
|
function Calendar($$renderer, $$props) {
|
|
38
8
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
@@ -280,6 +250,36 @@ function X($$renderer, $$props) {
|
|
|
280
250
|
]));
|
|
281
251
|
}
|
|
282
252
|
//#endregion
|
|
253
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/badge.svelte
|
|
254
|
+
function Badge($$renderer, $$props) {
|
|
255
|
+
$$renderer.component(($$renderer) => {
|
|
256
|
+
let { ref = null, class: className, variant = "default", children, $$slots, $$events, ...restProps } = $$props;
|
|
257
|
+
$$renderer.push(`<div${$.attributes({
|
|
258
|
+
class: $.clsx(cn(badgeVariants({ variant }), className)),
|
|
259
|
+
...restProps
|
|
260
|
+
})}>`);
|
|
261
|
+
if (children) {
|
|
262
|
+
$$renderer.push("<!--[0-->");
|
|
263
|
+
children($$renderer);
|
|
264
|
+
$$renderer.push(`<!---->`);
|
|
265
|
+
} else $$renderer.push("<!--[-1-->");
|
|
266
|
+
$$renderer.push(`<!--]--></div>`);
|
|
267
|
+
$.bind_props($$props, { ref });
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/index.js
|
|
272
|
+
var badgeVariants = tv({
|
|
273
|
+
base: "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
274
|
+
variants: { variant: {
|
|
275
|
+
default: "border-transparent bg-primary text-primary-foreground shadow",
|
|
276
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground",
|
|
277
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground shadow",
|
|
278
|
+
outline: "text-foreground"
|
|
279
|
+
} },
|
|
280
|
+
defaultVariants: { variant: "default" }
|
|
281
|
+
});
|
|
282
|
+
//#endregion
|
|
283
283
|
//#region src/lib/components/DatePicker.svelte
|
|
284
284
|
function DatePicker($$renderer, $$props) {
|
|
285
285
|
$$renderer.component(($$renderer) => {
|
|
@@ -309,4 +309,4 @@ function DatePicker($$renderer, $$props) {
|
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
311
|
//#endregion
|
|
312
|
-
export {
|
|
312
|
+
export { Calendar as a, Folder_kanban as i, Badge as n, X as r, DatePicker as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as Dropdown_menu_content, i as Dropdown_menu_item, n as Dropdown_menu_trigger, o as Dropdown_menu, t as Ellipsis_vertical } from "./ellipsis-vertical-C-0hgkZn.js";
|
|
1
|
+
import { Lr as dashboard_new_document, Or as doc_share, _r as folders_delete, un as action_go_to, vr as folders_rename, xr as folders_new, yt as editor_more_options } from "./messages-CvqpZNJe.js";
|
|
3
2
|
import { t as Chevron_right } from "./chevron-right-B4p7Sk6X.js";
|
|
4
3
|
import { t as Folder } from "./folder-DChhG7qN.js";
|
|
5
|
-
import "./
|
|
4
|
+
import { a as Dropdown_menu, i as Dropdown_menu_content, o as Ellipsis_vertical, r as Dropdown_menu_item, t as Dropdown_menu_trigger } from "./dropdown-menu-Bj5rbqbB.js";
|
|
6
5
|
import { t as cn } from "./utils-DvZnctjz.js";
|
|
7
6
|
import "./dndzone-DMvTO_Jz.js";
|
|
7
|
+
import "./subfolders-refresh-store.svelte-DAh4gT16.js";
|
|
8
8
|
import * as $ from "svelte/internal/server";
|
|
9
9
|
import { goto } from "$app/navigation";
|
|
10
10
|
import { page } from "$app/state";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { n as provideFrontendExtensions } from "./context-jz1GGEUi.js";
|
|
2
|
+
import "svelte/internal/server";
|
|
3
|
+
//#region src/lib/hosts/HiaiDocsExtensionProvider.svelte
|
|
4
|
+
function HiaiDocsExtensionProvider($$renderer, $$props) {
|
|
5
|
+
$$renderer.component(($$renderer) => {
|
|
6
|
+
const { extensions = {}, children } = $$props;
|
|
7
|
+
provideFrontendExtensions(extensions);
|
|
8
|
+
children($$renderer);
|
|
9
|
+
$$renderer.push(`<!---->`);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { HiaiDocsExtensionProvider as t };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { An as
|
|
1
|
+
import { An as theme_system, Cn as confirm_password, Dn as settings_name, En as settings_save, Fn as settings_account, In as settings_profile, Ln as settings_title, Mn as theme_light, Nn as settings_theme, On as settings_email_change_warning, Pn as settings_appearance, Sn as change_password, Tn as password_label, bn as auth_logout, fn as action_close, jn as theme_dark, kn as settings_email, wn as new_password, xn as auth_password } from "./messages-CvqpZNJe.js";
|
|
2
|
+
import { t as Icon } from "./Icon-B0Zqppjo.js";
|
|
2
3
|
import { t as cn } from "./utils-DtlPPXpJ.js";
|
|
3
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";
|
|
5
|
+
import { t as Input } from "./input-DezGsU3y.js";
|
|
4
6
|
import { t as Label } from "./label-Bj8-TfFN.js";
|
|
5
|
-
import {
|
|
7
|
+
import { r as signOut } from "./auth-client-x26kqY8Z.js";
|
|
8
|
+
import { r as getProfile } from "./settings-Bk5Hk9Vq.js";
|
|
9
|
+
import { a as listApiKeys, i as createGlobalApiKey, n as categoryIdFromScopes, o as revealCategoryApiKey, s as revokeApiKey, t as apiKeyClipboardValue } from "./api-keys-DFqX39MT.js";
|
|
6
10
|
import { i as listCategories } from "./categories-AOqgcsn4.js";
|
|
7
|
-
import { t as Input } from "./input-DezGsU3y.js";
|
|
8
11
|
import { t as getFrontendExtensions } from "./context-jz1GGEUi.js";
|
|
9
12
|
import { t as resolveExtensions } from "./resolve-BqHozBXl.js";
|
|
10
|
-
import { r as signOut } from "./auth-client-x26kqY8Z.js";
|
|
11
|
-
import { r as getProfile } from "./settings-E6qSAWM2.js";
|
|
12
|
-
import { a as listApiKeys, i as createGlobalApiKey, n as categoryIdFromScopes, o as revealCategoryApiKey, s as revokeApiKey, t as apiKeyClipboardValue } from "./api-keys-DFqX39MT.js";
|
|
13
13
|
import { a as resolveOfflineIdentity, t as disableOfflineAccess } from "./identity-B3uHoDtf.js";
|
|
14
14
|
import { n as getOfflineDB, t as deleteOfflineDB } from "./db-CnxeO66n.js";
|
|
15
15
|
import { t as themeStore } from "./theme.svelte-Co0-ssaD.js";
|
|
@@ -179,15 +179,6 @@ function Save($$renderer, $$props) {
|
|
|
179
179
|
]));
|
|
180
180
|
}
|
|
181
181
|
//#endregion
|
|
182
|
-
//#region src/lib/stores/search-preferences.ts
|
|
183
|
-
var DEFAULT_SEARCH_PREFERENCES = { graphSearchEnabled: true };
|
|
184
|
-
var SEARCH_PREFERENCES_KEY = "docsmint:search-preferences";
|
|
185
|
-
function normalizeSearchPreferences(value) {
|
|
186
|
-
if (!value || typeof value !== "object") return { ...DEFAULT_SEARCH_PREFERENCES };
|
|
187
|
-
const candidate = value;
|
|
188
|
-
return { graphSearchEnabled: typeof candidate.graphSearchEnabled === "boolean" ? candidate.graphSearchEnabled : DEFAULT_SEARCH_PREFERENCES.graphSearchEnabled };
|
|
189
|
-
}
|
|
190
|
-
//#endregion
|
|
191
182
|
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs.svelte
|
|
192
183
|
function Tabs($$renderer, $$props) {
|
|
193
184
|
$$renderer.component(($$renderer) => {
|
|
@@ -535,6 +526,15 @@ var editorPreferences = {
|
|
|
535
526
|
update: update$1
|
|
536
527
|
};
|
|
537
528
|
//#endregion
|
|
529
|
+
//#region src/lib/stores/search-preferences.ts
|
|
530
|
+
var DEFAULT_SEARCH_PREFERENCES = { graphSearchEnabled: true };
|
|
531
|
+
var SEARCH_PREFERENCES_KEY = "docsmint:search-preferences";
|
|
532
|
+
function normalizeSearchPreferences(value) {
|
|
533
|
+
if (!value || typeof value !== "object") return { ...DEFAULT_SEARCH_PREFERENCES };
|
|
534
|
+
const candidate = value;
|
|
535
|
+
return { graphSearchEnabled: typeof candidate.graphSearchEnabled === "boolean" ? candidate.graphSearchEnabled : DEFAULT_SEARCH_PREFERENCES.graphSearchEnabled };
|
|
536
|
+
}
|
|
537
|
+
//#endregion
|
|
538
538
|
//#region src/lib/stores/search-preferences.svelte.ts
|
|
539
539
|
var initialized = false;
|
|
540
540
|
var preferences = { ...DEFAULT_SEARCH_PREFERENCES };
|
|
@@ -1104,4 +1104,4 @@ function SettingsDialog($$renderer, $$props) {
|
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
1106
|
//#endregion
|
|
1107
|
-
export { SettingsDialog as t };
|
|
1107
|
+
export { searchPreferences as n, editorPreferences as r, SettingsDialog as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bn as
|
|
1
|
+
import { Bn as share_expires_30d, Gn as share_expires, Hn as share_expires_1d, Jn as share_create_link, Kn as share_toggle_password, Rn as share_add, Un as share_expires_1h, Vn as share_expires_7d, Wn as share_expires_never, Yn as share_create_title, fn as action_close, qn as share_password_protection, zn as share_guest_access } from "./messages-CvqpZNJe.js";
|
|
2
2
|
import "./keyboard.svelte-BgF47N3L.js";
|
|
3
3
|
import * as $ from "svelte/internal/server";
|
|
4
4
|
//#region src/lib/components/ShareDialog.svelte
|