@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.
Files changed (107) hide show
  1. package/dist/backend/index.js +1 -1
  2. package/dist/client.d.ts +11 -0
  3. package/dist/client.js +9 -0
  4. package/dist/frontend/CategoryDialog-CxVyaBV5.js +611 -0
  5. package/dist/frontend/{ConfirmDialog-BLF3x_hr.js → ConfirmDialog-NFGXRa3E.js} +2 -2
  6. package/dist/frontend/{CreateSnapshotDialog-D5vPvFTL.js → CreateSnapshotDialog-BDgFTeFn.js} +40 -40
  7. package/dist/frontend/{DatePicker-CLNTdvTk.js → DatePicker-BZRBluzF.js} +102 -105
  8. package/dist/frontend/{DeleteDialog-DxYFJivN.js → DeleteDialog-CvAr2WPu.js} +39 -39
  9. package/dist/frontend/FolderNode--l1g8bcL.js +298 -0
  10. package/dist/frontend/HiaiDocsExtensionProvider-DHWLzRUu.js +11 -0
  11. package/dist/frontend/SettingsDialog-LyZUxxku.js +1016 -0
  12. package/dist/frontend/{ShareDialog-DYu3RKQu.js → ShareDialog-BUOkYSlw.js} +35 -35
  13. package/dist/frontend/Sidebar-BsJsD1mJ.js +2021 -0
  14. package/dist/frontend/{TagCreateDialog-DXQs2bL9.js → TagCreateDialog-B9YZBNHi.js} +38 -38
  15. package/dist/frontend/api/categories.js +1 -1
  16. package/dist/frontend/api/documents.js +1 -1
  17. package/dist/frontend/api/folders.js +1 -1
  18. package/dist/frontend/api/settings.js +1 -1
  19. package/dist/frontend/app-shell.d.ts +8 -0
  20. package/dist/frontend/app-shell.js +298 -0
  21. package/dist/frontend/{clsx-C7bIvsDS.js → bundle-mjs-DllmqUxV.js} +583 -583
  22. package/dist/frontend/{categories-izQovv2w.js → categories-Drnns7N6.js} +14 -14
  23. package/dist/frontend/components/category-dialog.js +1 -1
  24. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  25. package/dist/frontend/components/delete-dialog.js +1 -1
  26. package/dist/frontend/components/editor/document-editor.js +1102 -1102
  27. package/dist/frontend/components/editor/document-title.js +2 -2
  28. package/dist/frontend/components/editor/markdown-toggle.js +1 -1
  29. package/dist/frontend/components/folder-node.js +1 -1
  30. package/dist/frontend/components/save-as-dialog.js +75 -75
  31. package/dist/frontend/components/settings.js +1 -1
  32. package/dist/frontend/components/share-dialog.js +1 -1
  33. package/dist/frontend/components/sidebar.js +2 -2021
  34. package/dist/frontend/components/tag-create-dialog.js +1 -1
  35. package/dist/frontend/components/version-history.js +58 -58
  36. package/dist/frontend/{FolderDialog-CRVZM2Oi.js → confirm-dialog-C4jTRbiS.js} +69 -69
  37. package/dist/frontend/dashboard.js +1139 -1137
  38. package/dist/frontend/{dialog-D6NxYVmy.js → dialog-Bevp9mmM.js} +2 -2
  39. package/dist/frontend/{loader-circle-BA6aLO71.js → dist-C3857Spp.js} +81 -81
  40. package/dist/frontend/{documents-BsDkvzCm.js → documents-Bc7b_MSZ.js} +15 -15
  41. package/dist/frontend/{ellipsis-vertical-P9MHvCps.js → dropdown-menu-CRSby3e9.js} +182 -182
  42. package/dist/frontend/extension.js +2 -11
  43. package/dist/frontend/{floating-layer-anchor-CPwucTfd.js → floating-layer-anchor-BDs7vO-M.js} +1 -1
  44. package/dist/frontend/{folders-CTuV_JtU.js → folders-ONG03Dkv.js} +10 -10
  45. package/dist/frontend/frontend.css +1 -1
  46. package/dist/frontend/i18n.js +2 -2
  47. package/dist/frontend/{input-B5Rak-5G.js → input-BWlOML_m.js} +1 -1
  48. package/dist/frontend/{label-CW9rxoAb.js → label-C2HfJNQ2.js} +1 -1
  49. package/dist/frontend/{messages-BpYaLbzE.js → messages-C5Q890i2.js} +8 -8
  50. package/dist/frontend/route-context-BqQQ5c4i.js +29 -0
  51. package/dist/frontend/search.js +629 -629
  52. package/dist/frontend/{select-value-sF86Geyh.js → select-value-GXwx90Pr.js} +2 -2
  53. package/dist/frontend/{settings-blyobazp.js → settings-DSrUl4hW.js} +9 -9
  54. package/dist/frontend/{tag-store.svelte-CqrUXo0o.js → tag-store.svelte-CG7RrlDT.js} +1 -1
  55. package/dist/frontend/{textarea-i1720bE7.js → textarea-DOAE-h42.js} +1 -1
  56. package/dist/frontend/{utils-hzdMVeCv.js → utils-BPDRytUU.js} +1 -1
  57. package/dist/frontend/{utils-CffiyuTo.js → utils-DrfHTcei.js} +1 -1
  58. package/dist/frontend/utils.js +1 -1
  59. package/dist/frontend-ssr/api/categories.js +1 -1
  60. package/dist/frontend-ssr/api/documents.js +1 -1
  61. package/dist/frontend-ssr/api/folders.js +1 -1
  62. package/dist/frontend-ssr/api/settings.js +1 -1
  63. package/dist/frontend-ssr/app-shell.js +303 -0
  64. package/dist/frontend-ssr/assets/{CategoryDialog-C2xaZKHq.js → CategoryDialog-BcGW8-Kf.js} +4 -4
  65. package/dist/frontend-ssr/assets/{CreateSnapshotDialog-BRw1xJW1.js → CreateSnapshotDialog-1bROJ-Rn.js} +4 -4
  66. package/dist/frontend-ssr/assets/{DatePicker-DnXniwlZ.js → DatePicker-B1ML8OVz.js} +33 -33
  67. package/dist/frontend-ssr/assets/{FolderNode-DRfBfpft.js → FolderNode-CpHrpOED.js} +8 -6
  68. package/dist/frontend-ssr/assets/HiaiDocsExtensionProvider-DAM-lX4R.js +13 -0
  69. package/dist/frontend-ssr/assets/{SettingsDialog-CX8Noa8A.js → SettingsDialog-Dg97vv83.js} +20 -19
  70. package/dist/frontend-ssr/assets/{ShareDialog-Cge49ZdJ.js → ShareDialog-vMvJLRfn.js} +1 -1
  71. package/dist/frontend-ssr/assets/Sidebar-CrDk_HYY.js +2037 -0
  72. package/dist/frontend-ssr/assets/{TagCreateDialog-EAChgBF-.js → TagCreateDialog-B0DPEfmQ.js} +3 -3
  73. package/dist/frontend-ssr/assets/{categories-AOqgcsn4.js → categories-CTCtdv7V.js} +10 -10
  74. package/dist/frontend-ssr/assets/{FolderDialog-Dq7I2cKZ.js → confirm-dialog-BCthVwUY.js} +4 -4
  75. package/dist/frontend-ssr/assets/{documents-BnOTRdTY.js → documents-PObdTOiT.js} +8 -8
  76. package/dist/frontend-ssr/assets/{ellipsis-vertical-C-0hgkZn.js → dropdown-menu-Bj5rbqbB.js} +96 -96
  77. package/dist/frontend-ssr/assets/{folders-CTfbS24J.js → folders-BX30gHv6.js} +10 -10
  78. package/dist/frontend-ssr/assets/{messages-DhXqlcJI.js → messages-CvqpZNJe.js} +1 -1
  79. package/dist/frontend-ssr/assets/route-context-uca_b2Px.js +36 -0
  80. package/dist/frontend-ssr/assets/{select-value-DngdSmLI.js → select-value-6Lk0ToYd.js} +1 -1
  81. package/dist/frontend-ssr/assets/{tag-store.svelte-DPodKj6Z.js → tag-store.svelte-DvgUduhd.js} +1 -1
  82. package/dist/frontend-ssr/components/category-dialog.js +1 -1
  83. package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
  84. package/dist/frontend-ssr/components/delete-dialog.js +1 -1
  85. package/dist/frontend-ssr/components/editor/document-editor.js +5 -5
  86. package/dist/frontend-ssr/components/editor/document-title.js +1 -1
  87. package/dist/frontend-ssr/components/editor/markdown-toggle.js +1 -1
  88. package/dist/frontend-ssr/components/folder-node.js +1 -1
  89. package/dist/frontend-ssr/components/save-as-dialog.js +5 -5
  90. package/dist/frontend-ssr/components/settings.js +1 -1
  91. package/dist/frontend-ssr/components/share-dialog.js +1 -1
  92. package/dist/frontend-ssr/components/sidebar.js +1 -2032
  93. package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
  94. package/dist/frontend-ssr/components/version-history.js +3 -3
  95. package/dist/frontend-ssr/dashboard.js +45 -37
  96. package/dist/frontend-ssr/extension.js +1 -12
  97. package/dist/frontend-ssr/i18n.js +1 -1
  98. package/dist/frontend-ssr/search.js +9 -7
  99. package/package.json +7 -1
  100. package/packages/cli/src/index.ts +1 -1
  101. package/packages/mcp-server/src/index.ts +1 -1
  102. package/dist/frontend/CategoryDialog-DphkZqIB.js +0 -611
  103. package/dist/frontend/FolderNode-C2zG7uii.js +0 -298
  104. package/dist/frontend/SettingsDialog-DCM4-N6_.js +0 -1016
  105. package/dist/frontend-ssr/assets/{DeleteDialog-BCfZy3Zn.js → DeleteDialog-tBYaP0L3.js} +1 -1
  106. package/dist/frontend-ssr/assets/{floating-layer-anchor-uzw9K8qN.js → floating-layer-anchor-CYIE8Oj6.js} +1 -1
  107. package/dist/frontend-ssr/assets/{settings-E6qSAWM2.js → settings-Bk5Hk9Vq.js} +1 -1
@@ -1,5 +1,5 @@
1
- import { t as e } from "./utils-hzdMVeCv.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-CPwucTfd.js";
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 { n as e } from "./client-GbtOH90i.js";
2
- import { t } from "./auth-client-Cygmp1I2.js";
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 t = await e("/api/auth/get-session");
7
- if (t.user?.name || t.user?.email) return t.user;
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 t.getSession();
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(t) {
23
- return e("/api/auth/update-user", {
22
+ async function r(e) {
23
+ return t("/api/auth/update-user", {
24
24
  method: "POST",
25
- body: JSON.stringify({ name: t.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 e("/api/auth/delete-user", { method: "POST" });
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 "./documents-BsDkvzCm.js";
1
+ import { t as e } from "./documents-Bc7b_MSZ.js";
2
2
  import * as t from "svelte/internal/client";
3
3
  //#region src/lib/stores/tag-store.svelte.ts
4
4
  var n = t.state(0);
@@ -1,4 +1,4 @@
1
- import { t as e } from "./utils-hzdMVeCv.js";
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
@@ -1,4 +1,4 @@
1
- import { r as e, t } from "./clsx-C7bIvsDS.js";
1
+ import { n as e, r as t } from "./bundle-mjs-DllmqUxV.js";
2
2
  //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/lib/utils.js
3
3
  function n(...n) {
4
4
  return e(t(n));
@@ -1,4 +1,4 @@
1
- import { r as e, t } from "./clsx-C7bIvsDS.js";
1
+ import { n as e, r as t } from "./bundle-mjs-DllmqUxV.js";
2
2
  //#region src/lib/utils.ts
3
3
  function n(...n) {
4
4
  return e(t(n));
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./utils-CffiyuTo.js";
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 setDocumentCategory, c as updateCategoryInputSchema, i as listCategories, n as createCategoryInputSchema, o as setFolderCategory, r as deleteCategory, s as updateCategory, t as createCategory } from "../assets/categories-AOqgcsn4.js";
1
+ import { a as setDocumentCategory, c as updateCategoryInputSchema, i as listCategories, n as createCategoryInputSchema, o as setFolderCategory, r as deleteCategory, s as updateCategory, t as createCategory } from "../assets/categories-CTCtdv7V.js";
2
2
  export { createCategory, createCategoryInputSchema, deleteCategory, listCategories, setDocumentCategory, setFolderCategory, updateCategory, updateCategoryInputSchema };
@@ -1,2 +1,2 @@
1
- import { a as importDocument, c as updateDocument, i as getDocument, n as createDocument, o as importDocuments, r as deleteDocument, s as listDocuments, t as clearDocumentsCache } from "../assets/documents-BnOTRdTY.js";
1
+ import { a as importDocument, c as updateDocument, i as getDocument, n as createDocument, o as importDocuments, r as deleteDocument, s as listDocuments, t as clearDocumentsCache } from "../assets/documents-PObdTOiT.js";
2
2
  export { clearDocumentsCache, createDocument, deleteDocument, getDocument, importDocument, importDocuments, listDocuments, updateDocument };
@@ -1,2 +1,2 @@
1
- import { a as getFolder, c as updateFolder, i as duplicateDocument, n as deleteDocument, o as getFolderPath, r as deleteFolder, s as listFolders, t as createFolder } from "../assets/folders-CTfbS24J.js";
1
+ import { a as getFolder, c as updateFolder, i as duplicateDocument, n as deleteDocument, o as getFolderPath, r as deleteFolder, s as listFolders, t as createFolder } from "../assets/folders-BX30gHv6.js";
2
2
  export { createFolder, deleteDocument, deleteFolder, duplicateDocument, getFolder, getFolderPath, listFolders, updateFolder };
@@ -1,2 +1,2 @@
1
- import { a as updateProfile, i as updateEmbeddingConfig, n as getEmbeddingConfig, r as getProfile, t as deleteAccount } from "../assets/settings-E6qSAWM2.js";
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,303 @@
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-Dg97vv83.js";
4
+ import { t as Sidebar } from "./assets/Sidebar-CrDk_HYY.js";
5
+ import { a as provideDocsmintRouteAdapter, i as provideDocsmintRequestAdapter } from "./assets/route-context-uca_b2Px.js";
6
+ import { t as HiaiDocsExtensionProvider } from "./assets/HiaiDocsExtensionProvider-DAM-lX4R.js";
7
+ import * as $ from "svelte/internal/server";
8
+ import { onDestroy } from "svelte";
9
+ //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/arrow-up.svelte
10
+ function Arrow_up($$renderer, $$props) {
11
+ const $$sanitized_props = $.sanitize_props($$props);
12
+ /**
13
+ * @license lucide-svelte v1.0.1 - ISC
14
+ *
15
+ * ISC License
16
+ *
17
+ * Copyright (c) 2026 Lucide Icons and Contributors
18
+ *
19
+ * Permission to use, copy, modify, and/or distribute this software for any
20
+ * purpose with or without fee is hereby granted, provided that the above
21
+ * copyright notice and this permission notice appear in all copies.
22
+ *
23
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
24
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
25
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
26
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
27
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
28
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
29
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
30
+ *
31
+ * ---
32
+ *
33
+ * The following Lucide icons are derived from the Feather project:
34
+ *
35
+ * 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
36
+ *
37
+ * The MIT License (MIT) (for the icons listed above)
38
+ *
39
+ * Copyright (c) 2013-present Cole Bemis
40
+ *
41
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
42
+ * of this software and associated documentation files (the "Software"), to deal
43
+ * in the Software without restriction, including without limitation the rights
44
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
45
+ * copies of the Software, and to permit persons to whom the Software is
46
+ * furnished to do so, subject to the following conditions:
47
+ *
48
+ * The above copyright notice and this permission notice shall be included in all
49
+ * copies or substantial portions of the Software.
50
+ *
51
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
52
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
53
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
54
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
55
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
56
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
57
+ * SOFTWARE.
58
+ *
59
+ */
60
+ Icon($$renderer, $.spread_props([
61
+ { name: "arrow-up" },
62
+ $$sanitized_props,
63
+ {
64
+ /**
65
+ * @component @name ArrowUp
66
+ * @description Lucide SVG icon component, renders SVG Element with children.
67
+ *
68
+ * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtNSAxMiA3LTcgNyA3IiAvPgogIDxwYXRoIGQ9Ik0xMiAxOVY1IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/arrow-up
69
+ * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
70
+ *
71
+ * @param {Object} props - Lucide icons props and any valid SVG attribute
72
+ * @returns {FunctionalComponent} Svelte component
73
+ *
74
+ */
75
+ iconNode: [["path", { "d": "m5 12 7-7 7 7" }], ["path", { "d": "M12 19V5" }]],
76
+ children: ($$renderer) => {
77
+ $$renderer.push(`<!--[-->`);
78
+ $.slot($$renderer, $$props, "default", {}, null);
79
+ $$renderer.push(`<!--]-->`);
80
+ },
81
+ $$slots: { default: true }
82
+ }
83
+ ]));
84
+ }
85
+ //#endregion
86
+ //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/menu.svelte
87
+ function Menu($$renderer, $$props) {
88
+ const $$sanitized_props = $.sanitize_props($$props);
89
+ /**
90
+ * @license lucide-svelte v1.0.1 - ISC
91
+ *
92
+ * ISC License
93
+ *
94
+ * Copyright (c) 2026 Lucide Icons and Contributors
95
+ *
96
+ * Permission to use, copy, modify, and/or distribute this software for any
97
+ * purpose with or without fee is hereby granted, provided that the above
98
+ * copyright notice and this permission notice appear in all copies.
99
+ *
100
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
101
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
102
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
103
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
104
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
105
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
106
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
107
+ *
108
+ * ---
109
+ *
110
+ * The following Lucide icons are derived from the Feather project:
111
+ *
112
+ * 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
113
+ *
114
+ * The MIT License (MIT) (for the icons listed above)
115
+ *
116
+ * Copyright (c) 2013-present Cole Bemis
117
+ *
118
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
119
+ * of this software and associated documentation files (the "Software"), to deal
120
+ * in the Software without restriction, including without limitation the rights
121
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
122
+ * copies of the Software, and to permit persons to whom the Software is
123
+ * furnished to do so, subject to the following conditions:
124
+ *
125
+ * The above copyright notice and this permission notice shall be included in all
126
+ * copies or substantial portions of the Software.
127
+ *
128
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
129
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
130
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
131
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
132
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
133
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
134
+ * SOFTWARE.
135
+ *
136
+ */
137
+ Icon($$renderer, $.spread_props([
138
+ { name: "menu" },
139
+ $$sanitized_props,
140
+ {
141
+ /**
142
+ * @component @name Menu
143
+ * @description Lucide SVG icon component, renders SVG Element with children.
144
+ *
145
+ * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNCA1aDE2IiAvPgogIDxwYXRoIGQ9Ik00IDEyaDE2IiAvPgogIDxwYXRoIGQ9Ik00IDE5aDE2IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/menu
146
+ * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
147
+ *
148
+ * @param {Object} props - Lucide icons props and any valid SVG attribute
149
+ * @returns {FunctionalComponent} Svelte component
150
+ *
151
+ */
152
+ iconNode: [
153
+ ["path", { "d": "M4 5h16" }],
154
+ ["path", { "d": "M4 12h16" }],
155
+ ["path", { "d": "M4 19h16" }]
156
+ ],
157
+ children: ($$renderer) => {
158
+ $$renderer.push(`<!--[-->`);
159
+ $.slot($$renderer, $$props, "default", {}, null);
160
+ $$renderer.push(`<!--]-->`);
161
+ },
162
+ $$slots: { default: true }
163
+ }
164
+ ]));
165
+ }
166
+ //#endregion
167
+ //#region src/lib/stores/mobile-sidebar.svelte.ts
168
+ var open = false;
169
+ var mobileSidebar = {
170
+ get open() {
171
+ return open;
172
+ },
173
+ set open(value) {
174
+ open = value;
175
+ },
176
+ toggle() {
177
+ open = !open;
178
+ }
179
+ };
180
+ //#endregion
181
+ //#region src/lib/components/MobileSidebarToggle.svelte
182
+ function MobileSidebarToggle($$renderer, $$props) {
183
+ $$renderer.component(($$renderer) => {
184
+ let { buttonRef = null, controls = "mobile-navigation" } = $$props;
185
+ $$renderer.push("<!--[0-->");
186
+ $$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));">`);
187
+ Menu($$renderer, { class: "size-5" });
188
+ $$renderer.push(`<!----></button>`);
189
+ $$renderer.push(`<!--]-->`);
190
+ $.bind_props($$props, { buttonRef });
191
+ });
192
+ }
193
+ //#endregion
194
+ //#region src/lib/components/ScrollToTop.svelte
195
+ function ScrollToTop($$renderer, $$props) {
196
+ $$renderer.component(($$renderer) => {
197
+ const SCROLL_THRESHOLD = 300;
198
+ let { scrollTarget, avoidEditorToolbar = false } = $$props;
199
+ let visible = false;
200
+ let activeTarget = null;
201
+ let editorDockBottom = void 0;
202
+ function handleScroll() {
203
+ visible = (activeTarget ? activeTarget.scrollTop : window.scrollY) > SCROLL_THRESHOLD;
204
+ }
205
+ function detach() {
206
+ if (activeTarget) activeTarget.removeEventListener("scroll", handleScroll);
207
+ activeTarget = null;
208
+ }
209
+ onDestroy(() => {
210
+ detach();
211
+ visible = false;
212
+ });
213
+ $$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, {
214
+ "above-editor-toolbar": false,
215
+ "below-editor-fab": false
216
+ })}${$.attr("aria-label", scroll_to_top_aria())}${$.attr("title", scroll_to_top_aria())}${$.attr_style("", { bottom: editorDockBottom })}>`);
217
+ Arrow_up($$renderer, { class: "size-5" });
218
+ $$renderer.push(`<!----></button>`);
219
+ });
220
+ }
221
+ //#endregion
222
+ //#region src/lib/hosts/DocsmintAppShellHost.svelte
223
+ function DocsmintAppShellHost($$renderer, $$props) {
224
+ $$renderer.component(($$renderer) => {
225
+ const { route, request = { fetch }, extensions = {}, children } = $$props;
226
+ provideDocsmintRouteAdapter({
227
+ get pathname() {
228
+ return route.pathname;
229
+ },
230
+ resolve: (path) => route.resolve(path),
231
+ navigate: (path, options) => route.navigate?.(path, options)
232
+ });
233
+ provideDocsmintRequestAdapter({ fetch: (...args) => request.fetch(...args) });
234
+ editorPreferences.init();
235
+ searchPreferences.init();
236
+ let mainElement = null;
237
+ let sidebarElement = null;
238
+ let toggleButton = null;
239
+ let isMobile = false;
240
+ [
241
+ "a[href]",
242
+ "button:not([disabled])",
243
+ "input:not([disabled])",
244
+ "select:not([disabled])",
245
+ "textarea:not([disabled])",
246
+ "[tabindex]:not([tabindex=\"-1\"])"
247
+ ].join(",");
248
+ let $$settled = true;
249
+ let $$inner_renderer;
250
+ function $$render_inner($$renderer) {
251
+ HiaiDocsExtensionProvider($$renderer, {
252
+ extensions,
253
+ children: ($$renderer) => {
254
+ $$renderer.push(`<div class="flex h-screen" data-docsmint-app-shell-host="">`);
255
+ Sidebar($$renderer, {
256
+ mobile: isMobile,
257
+ mobileOpen: mobileSidebar.open,
258
+ get element() {
259
+ return sidebarElement;
260
+ },
261
+ set element($$value) {
262
+ sidebarElement = $$value;
263
+ $$settled = false;
264
+ }
265
+ });
266
+ $$renderer.push(`<!----> <main id="main-content"${$.attr("inert", isMobile, true)} class="relative z-0 flex-1 overflow-auto">`);
267
+ children($$renderer);
268
+ $$renderer.push(`<!----></main></div> `);
269
+ MobileSidebarToggle($$renderer, {
270
+ get buttonRef() {
271
+ return toggleButton;
272
+ },
273
+ set buttonRef($$value) {
274
+ toggleButton = $$value;
275
+ $$settled = false;
276
+ }
277
+ });
278
+ $$renderer.push(`<!----> `);
279
+ $$renderer.push("<!--[-1-->");
280
+ $$renderer.push(`<!--]-->`);
281
+ },
282
+ $$slots: { default: true }
283
+ });
284
+ $$renderer.push(`<!----> `);
285
+ if (editorPreferences.showScrollToTop) {
286
+ $$renderer.push("<!--[0-->");
287
+ ScrollToTop($$renderer, {
288
+ scrollTarget: mainElement,
289
+ avoidEditorToolbar: route.pathname.startsWith("/docs/")
290
+ });
291
+ } else $$renderer.push("<!--[-1-->");
292
+ $$renderer.push(`<!--]-->`);
293
+ }
294
+ do {
295
+ $$settled = true;
296
+ $$inner_renderer = $$renderer.copy();
297
+ $$render_inner($$inner_renderer);
298
+ } while (!$$settled);
299
+ $$renderer.subsume($$inner_renderer);
300
+ });
301
+ }
302
+ //#endregion
303
+ export { DocsmintAppShellHost };
@@ -1,12 +1,12 @@
1
- import { _ as categories_update_error, b as categories_edit_title, f as categories_delete_success_description, fn as action_create, g as categories_delete_error, gn as action_save, h as categories_delete_title, hn as action_cancel, m as categories_delete_description, mn as action_delete, p as categories_delete_success, v as categories_create_error, x as categories_create_title, y as categories_name_placeholder } from "./messages-DhXqlcJI.js";
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 version_snapshot_description, Dt as version_snapshot_create, Et as version_snapshot_creating, L as error_validation, Ot as version_snapshot_description_placeholder, Tt as version_snapshot_dialog_title, _n as error_server, hn as action_cancel, jt as version_snapshot_label, kt as version_snapshot_label_placeholder, wt as version_snapshot_dialog_description, yt as version_restore_failed } from "./messages-DhXqlcJI.js";
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 Textarea } from "./textarea-Dev-qSEc.js";
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 month_june, B as weekday_su, G as weekday_tu, H as weekday_fr, J as month_november, K as weekday_mo, Q as month_july, R as date_picker_aria, U as weekday_th, V as weekday_sa, W as weekday_we, X as month_september, Y as month_october, Z as month_august, et as month_may, it as month_january, nt as month_march, q as month_december, rt as month_february, tt as month_april, z as date_picker_placeholder } from "./messages-DhXqlcJI.js";
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 { Badge as a, Calendar as i, X as n, Folder_kanban as r, DatePicker as t };
312
+ export { Calendar as a, Folder_kanban as i, Badge as n, X as r, DatePicker as t };
@@ -1,17 +1,19 @@
1
- import { Dr as doc_share, Ir as dashboard_new_document, _r as folders_rename, br as folders_new, gr as folders_delete, ln as action_go_to, vt as editor_more_options } from "./messages-DhXqlcJI.js";
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 "./subfolders-refresh-store.svelte-DAh4gT16.js";
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";
5
+ import { n as getDocsmintRouteAdapter, r as navigateDocsmintRoute, t as getDocsmintRequestAdapter } from "./route-context-uca_b2Px.js";
6
6
  import { t as cn } from "./utils-DvZnctjz.js";
7
7
  import "./dndzone-DMvTO_Jz.js";
8
+ import "./subfolders-refresh-store.svelte-DAh4gT16.js";
8
9
  import * as $ from "svelte/internal/server";
9
- import { goto } from "$app/navigation";
10
10
  import { page } from "$app/state";
11
11
  import "svelte/animate";
12
12
  //#region src/lib/components/sidebar/FolderNode.svelte
13
13
  function FolderNode($$renderer, $$props) {
14
14
  $$renderer.component(($$renderer) => {
15
+ const route = getDocsmintRouteAdapter();
16
+ getDocsmintRequestAdapter();
15
17
  let { folder, depth = 0, folderDocsMap, expandedFolderIds, isDraggingGlobal, isDraggingFolder = false, isDraggingDoc = false, dragDisabled, folderFlipDurationMs, documentFlipDurationMs, draggedDocId = null, onToggleFolder, onScheduleFolderExpand, onClearExpandTimer, onRename, onDelete, onCreateSubfolder, onShare, onConsiderDocs, onFinalizeDocs, onConsiderSubfolders, onFinalizeSubfolders, onDropOnFolder, docRowInner, copyButton, docMenu } = $$props;
16
18
  let subfolderZone = [];
17
19
  const isExpanded = $.derived(() => expandedFolderIds.has(folder.id));
@@ -45,7 +47,7 @@ function FolderNode($$renderer, $$props) {
45
47
  align: "end",
46
48
  children: ($$renderer) => {
47
49
  Dropdown_menu_item($$renderer, {
48
- onSelect: () => goto("/folders/" + folder.id),
50
+ onSelect: () => navigateDocsmintRoute(route, "/folders/" + folder.id),
49
51
  children: ($$renderer) => {
50
52
  $$renderer.push(`<!---->${$.escape(action_go_to())}`);
51
53
  },
@@ -53,7 +55,7 @@ function FolderNode($$renderer, $$props) {
53
55
  });
54
56
  $$renderer.push(`<!----> `);
55
57
  Dropdown_menu_item($$renderer, {
56
- onSelect: () => goto(`/docs/new?folder=${folder.id}`),
58
+ onSelect: () => navigateDocsmintRoute(route, `/docs/new?folder=${folder.id}`),
57
59
  children: ($$renderer) => {
58
60
  $$renderer.push(`<!---->${$.escape(dashboard_new_document())}`);
59
61
  },
@@ -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 };