@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,2 @@
|
|
|
1
|
+
import { a as getTag, c as updateTag, i as deleteTag, l as updateTagInputSchema, n as createTag, o as listTags, r as createTagInputSchema, s as removeTagFromDocument, t as addTagToDocument } from "../assets/tags-BId2wdYd.js";
|
|
2
|
+
export { addTagToDocument, createTag, createTagInputSchema, deleteTag, getTag, listTags, removeTagFromDocument, updateTag, updateTagInputSchema };
|
|
@@ -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 };
|