@hiai-gg/docsmint 0.6.8 → 0.7.1

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 (138) hide show
  1. package/README.md +90 -99
  2. package/backend/src/lib/api-keys.ts +14 -6
  3. package/backend/src/lib/lifecycle-service.ts +397 -73
  4. package/dist/backend/index.js +13039 -10865
  5. package/dist/backend-account-runtime-cleanup.js +152 -42
  6. package/dist/backend-api-key-facade.js +207 -61
  7. package/dist/backend-pipeline-cancellation.js +144 -42
  8. package/dist/client.d.ts +12 -2
  9. package/dist/client.js +83 -30
  10. package/dist/frontend/{CategoryDialog-CbXBMBZB.js → CategoryDialog-t_WIvFAG.js} +5 -5
  11. package/dist/frontend/{ConfirmDialog-DgMTQBq4.js → ConfirmDialog-_LlrA--f.js} +3 -3
  12. package/dist/frontend/{CreateSnapshotDialog-FUq-ZfBH.js → CreateSnapshotDialog-DW3PwAt5.js} +4 -4
  13. package/dist/frontend/{DatePicker-D6E-EEtZ.js → DatePicker-CAw0wZZK.js} +9 -9
  14. package/dist/frontend/{DeleteDialog-8k6JYWCx.js → DeleteDialog-L1A3FhMM.js} +1 -1
  15. package/dist/frontend/{FolderNode-DAAn_T8_.js → FolderNode-DzTqitR8.js} +2 -2
  16. package/dist/frontend/{HiAiEditor-DSVG3GNd.js → HiAiEditor-B7MK19_j.js} +7 -7
  17. package/dist/frontend/{SettingsDialog-BDNgf5rv.js → SettingsDialog-CS5L4nnU.js} +13 -13
  18. package/dist/frontend/ShareDialog-CwFa8mlk.js +281 -0
  19. package/dist/frontend/{Sidebar-DX08utdV.js → Sidebar-CDaFFmaQ.js} +18 -17
  20. package/dist/frontend/{TagCreateDialog-Bb0-Vtzh.js → TagCreateDialog-C7Avn2_h.js} +4 -4
  21. package/dist/frontend/api/attachments.js +1 -1
  22. package/dist/frontend/api/settings.js +1 -1
  23. package/dist/frontend/app-shell.js +3 -3
  24. package/dist/frontend/{attachments-B8AuDjno.js → attachments-B2aH3hXF.js} +10 -9
  25. package/dist/frontend/{auth-client-Cygmp1I2.js → auth-client-CnDZwPfp.js} +11 -11
  26. package/dist/frontend/components/category-dialog.js +1 -1
  27. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  28. package/dist/frontend/components/delete-dialog.js +1 -1
  29. package/dist/frontend/components/editor/compact-editor.js +1 -1
  30. package/dist/frontend/components/editor/document-editor.js +1 -1
  31. package/dist/frontend/components/editor/document-title.js +1 -1
  32. package/dist/frontend/components/editor/markdown-toggle.js +1 -1
  33. package/dist/frontend/components/folder-node.js +1 -1
  34. package/dist/frontend/components/save-as-dialog.js +4 -4
  35. package/dist/frontend/components/settings.js +1 -1
  36. package/dist/frontend/components/share-dialog.d.ts +2 -1
  37. package/dist/frontend/components/share-dialog.js +1 -1
  38. package/dist/frontend/components/sidebar.js +1 -1
  39. package/dist/frontend/components/tag-create-dialog.js +1 -1
  40. package/dist/frontend/components/version-history.js +3 -3
  41. package/dist/frontend/{confirm-dialog-CzmoZw3a.js → confirm-dialog-BW2h2NE8.js} +5 -5
  42. package/dist/frontend/dashboard.js +1008 -998
  43. package/dist/frontend/{db-ByrlYfaI.js → db-Bo1t_76T.js} +1 -1
  44. package/dist/frontend/{dialog-Ce79C9fd.js → dialog-C2iKObEu.js} +7 -7
  45. package/dist/frontend/{dropdown-menu-CJ_7V3N0.js → dropdown-menu-BXIl2E26.js} +12 -12
  46. package/dist/frontend/{floating-layer-anchor-S5RSefGN.js → floating-layer-anchor-BGIndLY-.js} +63 -63
  47. package/dist/frontend/i18n.js +1 -1
  48. package/dist/frontend/{identity-DyWeNzu_.js → identity-Ynrglr5i.js} +1 -1
  49. package/dist/frontend/{input-BWlOML_m.js → input-eHFb2qiL.js} +2 -2
  50. package/dist/frontend/{label-C2HfJNQ2.js → label-_I1iiaNU.js} +2 -2
  51. package/dist/frontend/messages-DTRe4U2V.js +1093 -0
  52. package/dist/frontend/offline/identity.js +1 -1
  53. package/dist/frontend/search.js +3 -3
  54. package/dist/frontend/{select-value-JCAp2PmU.js → select-value-CtMyrvDJ.js} +18 -18
  55. package/dist/frontend/{settings-DSrUl4hW.js → settings-BR48ihB4.js} +6 -23
  56. package/dist/frontend/{textarea-DOAE-h42.js → textarea-2eslfANY.js} +2 -2
  57. package/dist/frontend/{utils-BPDRytUU.js → utils-CDBqTgoV.js} +1 -1
  58. package/dist/frontend-ssr/api/attachments.js +1 -1
  59. package/dist/frontend-ssr/api/settings.js +1 -1
  60. package/dist/frontend-ssr/app-shell.js +3 -3
  61. package/dist/frontend-ssr/assets/{CategoryDialog-QHEv_9N4.js → CategoryDialog-B3MrZUho.js} +5 -5
  62. package/dist/frontend-ssr/assets/{ConfirmDialog-BhAelejz.js → ConfirmDialog-D1BDXXll.js} +3 -3
  63. package/dist/frontend-ssr/assets/{CreateSnapshotDialog-CI8vXXcN.js → CreateSnapshotDialog-NM0n1Whr.js} +4 -4
  64. package/dist/frontend-ssr/assets/{DatePicker-D84cJ-Eq.js → DatePicker-Dcok9XVm.js} +4 -4
  65. package/dist/frontend-ssr/assets/{DeleteDialog-DG9Lm38J.js → DeleteDialog-oHT_p_vG.js} +1 -1
  66. package/dist/frontend-ssr/assets/{FolderNode-kmilhDjO.js → FolderNode-B84NL8Rg.js} +2 -2
  67. package/dist/frontend-ssr/assets/{HiAiEditor-CUOJmKzT.js → HiAiEditor-tU0jmp6L.js} +6 -6
  68. package/dist/frontend-ssr/assets/{SettingsDialog-BjJIiVLc.js → SettingsDialog-Dkp79L1B.js} +13 -13
  69. package/dist/frontend-ssr/assets/{ShareDialog-C9C-XTm4.js → ShareDialog-B1-30sRR.js} +20 -7
  70. package/dist/frontend-ssr/assets/{Sidebar-C2sUfGNk.js → Sidebar-CGp45ngo.js} +14 -13
  71. package/dist/frontend-ssr/assets/{TagCreateDialog-DUPMitlL.js → TagCreateDialog-CGGtYSso.js} +4 -4
  72. package/dist/frontend-ssr/assets/{attachments-Cj3fQyUp.js → attachments-BdkOp8ha.js} +5 -4
  73. package/dist/frontend-ssr/assets/{auth-client-x26kqY8Z.js → auth-client-CojKIzqy.js} +13 -13
  74. package/dist/frontend-ssr/assets/{confirm-dialog-XuyaL8sr.js → confirm-dialog-B-oV5wYk.js} +5 -5
  75. package/dist/frontend-ssr/assets/{db-CnxeO66n.js → db-BhwJPEkn.js} +1 -1
  76. package/dist/frontend-ssr/assets/{dialog-BOV1u6zP.js → dialog-1SB5neow.js} +8 -8
  77. package/dist/frontend-ssr/assets/{dropdown-menu-Dn_vQq9b.js → dropdown-menu-DqoOkdqB.js} +12 -12
  78. package/dist/frontend-ssr/assets/{floating-layer-anchor-BIAu-252.js → floating-layer-anchor-BoiiIEiK.js} +71 -71
  79. package/dist/frontend-ssr/assets/{identity-B3uHoDtf.js → identity-DcMMBKWg.js} +1 -1
  80. package/dist/frontend-ssr/assets/{input-DezGsU3y.js → input-Df-QP3Km.js} +2 -2
  81. package/dist/frontend-ssr/assets/{label-Bj8-TfFN.js → label-CbUOUz6L.js} +2 -2
  82. package/dist/frontend-ssr/assets/{messages-BAQzILs4.js → messages-B1TjVIH8.js} +2 -2
  83. package/dist/frontend-ssr/assets/{select-value-DBhbkNcc.js → select-value-CXEDWrZg.js} +18 -18
  84. package/dist/frontend-ssr/assets/{settings-Bk5Hk9Vq.js → settings-Mp8EuFSn.js} +3 -21
  85. package/dist/frontend-ssr/assets/{textarea-Dev-qSEc.js → textarea-CHh8NuSS.js} +2 -2
  86. package/dist/frontend-ssr/assets/{utils-DtlPPXpJ.js → utils-DtX0ta7y.js} +1 -1
  87. package/dist/frontend-ssr/components/category-dialog.js +1 -1
  88. package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
  89. package/dist/frontend-ssr/components/delete-dialog.js +1 -1
  90. package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
  91. package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
  92. package/dist/frontend-ssr/components/editor/document-title.js +1 -1
  93. package/dist/frontend-ssr/components/editor/markdown-toggle.js +1 -1
  94. package/dist/frontend-ssr/components/folder-node.js +1 -1
  95. package/dist/frontend-ssr/components/save-as-dialog.js +4 -4
  96. package/dist/frontend-ssr/components/settings.js +1 -1
  97. package/dist/frontend-ssr/components/share-dialog.js +1 -1
  98. package/dist/frontend-ssr/components/sidebar.js +1 -1
  99. package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
  100. package/dist/frontend-ssr/components/version-history.js +3 -3
  101. package/dist/frontend-ssr/dashboard.js +32 -30
  102. package/dist/frontend-ssr/i18n.js +1 -1
  103. package/dist/frontend-ssr/offline/identity.js +1 -1
  104. package/dist/frontend-ssr/search.js +3 -3
  105. package/dist/index.d.ts +5 -5
  106. package/dist/index.js +2 -2
  107. package/dist/lifecycle-persistent.d.ts +1 -1
  108. package/dist/lifecycle-runtime.js +52659 -338
  109. package/dist/mcp-cli.js +1056 -0
  110. package/dist/mcp-server.d.ts +39 -0
  111. package/dist/mcp-server.js +1053 -0
  112. package/dist/storage-quota.d.ts +5 -1
  113. package/dist/types.d.ts +7 -0
  114. package/dist/workspace.d.ts +11 -2
  115. package/dist/workspace.js +82 -10
  116. package/package.json +7 -13
  117. package/packages/cli/src/index.ts +4 -3
  118. package/packages/db/src/client.ts +56 -5
  119. package/packages/db/src/schema.ts +192 -1
  120. package/packages/db/src/with-tenant.ts +20 -2
  121. package/server.json +42 -5
  122. package/dist/frontend/ShareDialog-2Mty7hm4.js +0 -258
  123. package/dist/frontend/messages-DIovIZrK.js +0 -1093
  124. package/packages/mcp-server/src/capabilities.ts +0 -189
  125. package/packages/mcp-server/src/client.ts +0 -225
  126. package/packages/mcp-server/src/index.ts +0 -8
  127. package/packages/mcp-server/src/server.ts +0 -87
  128. package/packages/mcp-server/src/tools/create-document.ts +0 -34
  129. package/packages/mcp-server/src/tools/create-folder.ts +0 -31
  130. package/packages/mcp-server/src/tools/create-snapshot.ts +0 -27
  131. package/packages/mcp-server/src/tools/export-document.ts +0 -22
  132. package/packages/mcp-server/src/tools/get-document.ts +0 -22
  133. package/packages/mcp-server/src/tools/list-documents.ts +0 -34
  134. package/packages/mcp-server/src/tools/list-folders.ts +0 -26
  135. package/packages/mcp-server/src/tools/search.ts +0 -39
  136. package/packages/mcp-server/src/tools/update-document.ts +0 -38
  137. package/packages/mcp-server/src/tools/version-history.ts +0 -27
  138. package/packages/mcp-server/src/types.ts +0 -126
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../identity-DyWeNzu_.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../identity-Ynrglr5i.js";
2
2
  export { a as disableOfflineAccess, n as enableOfflineAccess, i as offlineAccessEnabled, t as offlineDbName, e as resolveOfflineIdentity, r as resolveOfflineIdentityResolution };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./Icon-Db-o32_E.js";
2
- import { a as t, i as n, o as r, r as i, t as a } from "./DatePicker-D6E-EEtZ.js";
2
+ import { a as t, i as n, o as r, r as i, t as a } from "./DatePicker-CAw0wZZK.js";
3
3
  import { t as o } from "./check-BIi-Ghti.js";
4
4
  import { t as s } from "./chevron-down-C2ft7XUV.js";
5
5
  import { n as c, t as l } from "./folder-Cx60MRpi.js";
@@ -7,14 +7,14 @@ import { t as u } from "./rotate-ccw-ta4NosZ0.js";
7
7
  import { n as d, t as f } from "./tag-DhVFHMcV.js";
8
8
  import { t as p } from "./x-cfdlccjs.js";
9
9
  import { n as m } from "./dist-DQa_OHOa.js";
10
- import { At as h, Ct as g, Dt as _, Et as v, Ft as y, Gr as b, It as x, Jr as S, Kr as C, Li as w, Lt as T, Mt as ee, Nt as te, Ot as E, Pt as ne, Ri as D, Rt as re, St as O, T as ie, Tt as ae, Wr as oe, Yr as k, Zr as se, _t as ce, bt as le, ft as ue, gt as de, ht as fe, jt as pe, kt as me, mt as he, n as ge, pt as _e, qr as ve, vt as ye, wt as be, xt as xe, yt as Se, zi as Ce, zt as we } from "./messages-DIovIZrK.js";
10
+ import { At as h, Ct as g, Dt as _, Et as v, Ft as y, Gr as b, It as x, Jr as S, Kr as C, Li as w, Lt as T, Mt as ee, Nt as te, Ot as E, Pt as ne, Ri as D, Rt as re, St as O, T as ie, Tt as ae, Wr as oe, Yr as k, Zr as se, _t as ce, bt as le, ft as ue, gt as de, ht as fe, jt as pe, kt as me, mt as he, n as ge, pt as _e, qr as ve, vt as ye, wt as be, xt as xe, yt as Se, zi as Ce, zt as we } from "./messages-DTRe4U2V.js";
11
11
  import { a as Te, i as Ee, n as A, t as De } from "./route-context-DYQlUfzL.js";
12
12
  import { n as j } from "./client-GbtOH90i.js";
13
13
  import { i as Oe } from "./categories-X7gK8azc.js";
14
14
  import { t as ke } from "./context-D0zPFXZ4.js";
15
15
  import { t as Ae } from "./resolve-BG4HgzpN.js";
16
16
  import { i as je } from "./search-preferences-B1GdbdUc.js";
17
- import { a as Me, i as Ne, n as Pe, r as Fe, t as Ie } from "./select-value-JCAp2PmU.js";
17
+ import { a as Me, i as Ne, n as Pe, r as Fe, t as Ie } from "./select-value-CtMyrvDJ.js";
18
18
  import { s as Le } from "./documents-CwCs1rA7.js";
19
19
  import { s as Re } from "./folders-ONG03Dkv.js";
20
20
  import { r as ze } from "./tag-store.svelte-ogVCMCbv.js";
@@ -1,10 +1,10 @@
1
- import { t as e } from "./utils-BPDRytUU.js";
2
- import { $ as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, J as l, K as u, M as d, O as f, Q as p, S as m, T as h, U as g, X as _, Y as v, Z as y, _ as b, a as x, b as S, et as C, g as w, h as T, i as E, j as ee, k as te, n as ne, o as D, q as O, r as k, t as A, v as j, w as M, x as re, y as ie } from "./floating-layer-anchor-S5RSefGN.js";
1
+ import { t as e } from "./utils-CDBqTgoV.js";
2
+ import { $ as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, J as l, K as u, M as d, O as f, Q as p, S as m, T as h, U as g, X as _, Y as v, Z as y, _ as b, a as x, b as S, et as C, g as w, h as T, i as E, j as ee, k as te, n as ne, o as D, q as O, r as k, t as A, v as j, w as M, x as re, y as ie } from "./floating-layer-anchor-BGIndLY-.js";
3
3
  import "svelte/internal/disclose-version";
4
4
  import * as N from "svelte/internal/client";
5
5
  import { untrack as ae } from "svelte";
6
6
  import { on as oe } from "svelte/events";
7
- //#region ../node_modules/.bun/svelte-toolbelt@0.10.6+68f06e2e1fdd21f8/node_modules/svelte-toolbelt/dist/utils/sr-only-styles.js
7
+ //#region ../node_modules/.bun/svelte-toolbelt@0.10.6+482bfb9a01396021/node_modules/svelte-toolbelt/dist/utils/sr-only-styles.js
8
8
  var P = {
9
9
  position: "absolute",
10
10
  width: "1px",
@@ -19,12 +19,12 @@ var P = {
19
19
  };
20
20
  t(P);
21
21
  //#endregion
22
- //#region ../node_modules/.bun/svelte-toolbelt@0.10.6+68f06e2e1fdd21f8/node_modules/svelte-toolbelt/dist/utils/on-mount-effect.svelte.js
22
+ //#region ../node_modules/.bun/svelte-toolbelt@0.10.6+482bfb9a01396021/node_modules/svelte-toolbelt/dist/utils/on-mount-effect.svelte.js
23
23
  function F(e) {
24
24
  N.user_effect(() => ae(() => e()));
25
25
  }
26
26
  //#endregion
27
- //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/internal/data-typeahead.svelte.js
27
+ //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/internal/data-typeahead.svelte.js
28
28
  var I = class {
29
29
  #e;
30
30
  #t = N.derived(() => this.#e.candidateValues());
@@ -786,7 +786,7 @@ function pe(e, t) {
786
786
  }), N.append(e, a), N.pop();
787
787
  }
788
788
  //#endregion
789
- //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-hidden-input.svelte
789
+ //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/bits/select/components/select-hidden-input.svelte
790
790
  function Y(e, t) {
791
791
  N.push(t, !0);
792
792
  let n = N.prop(t, "value", 15), r = ue.create({ value: C(() => n()) });
@@ -808,7 +808,7 @@ function Y(e, t) {
808
808
  }), N.append(e, i), N.pop();
809
809
  }
810
810
  //#endregion
811
- //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select.svelte
811
+ //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/bits/select/components/select.svelte
812
812
  var me = N.from_html("<!> <!>", 1);
813
813
  function he(e, t) {
814
814
  N.push(t, !0);
@@ -885,7 +885,7 @@ function he(e, t) {
885
885
  }), N.append(e, v), N.pop();
886
886
  }
887
887
  //#endregion
888
- //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-value.svelte
888
+ //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/bits/select/components/select-value.svelte
889
889
  var ge = /* @__PURE__ */ new Set([
890
890
  "$$slots",
891
891
  "$$events",
@@ -939,7 +939,7 @@ function X(e, t) {
939
939
  }), N.append(e, c), N.pop();
940
940
  }
941
941
  //#endregion
942
- //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-content.svelte
942
+ //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/bits/select/components/select-content.svelte
943
943
  var ve = /* @__PURE__ */ new Set([
944
944
  "$$slots",
945
945
  "$$events",
@@ -1066,7 +1066,7 @@ function ye(e, t) {
1066
1066
  }), N.append(e, m), N.pop();
1067
1067
  }
1068
1068
  //#endregion
1069
- //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/utilities/mounted.svelte
1069
+ //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/bits/utilities/mounted.svelte
1070
1070
  function be(e, t) {
1071
1071
  N.push(t, !0);
1072
1072
  let n = N.prop(t, "mounted", 15, !1), r = N.prop(t, "onMountedChange", 3, j);
@@ -1075,7 +1075,7 @@ function be(e, t) {
1075
1075
  })), N.pop();
1076
1076
  }
1077
1077
  //#endregion
1078
- //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-item.svelte
1078
+ //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/bits/select/components/select-item.svelte
1079
1079
  var xe = /* @__PURE__ */ new Set([
1080
1080
  "$$slots",
1081
1081
  "$$events",
@@ -1130,7 +1130,7 @@ function we(e, t) {
1130
1130
  }), N.append(e, f), N.pop();
1131
1131
  }
1132
1132
  //#endregion
1133
- //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-trigger.svelte
1133
+ //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/bits/select/components/select-trigger.svelte
1134
1134
  var Te = /* @__PURE__ */ new Set([
1135
1135
  "$$slots",
1136
1136
  "$$events",
@@ -1176,7 +1176,7 @@ function Q(e, t) {
1176
1176
  }), N.append(e, l), N.pop();
1177
1177
  }
1178
1178
  //#endregion
1179
- //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-viewport.svelte
1179
+ //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/bits/select/components/select-viewport.svelte
1180
1180
  var De = /* @__PURE__ */ new Set([
1181
1181
  "$$slots",
1182
1182
  "$$events",
@@ -1207,7 +1207,7 @@ function Oe(e, t) {
1207
1207
  }), N.append(e, c), N.pop();
1208
1208
  }
1209
1209
  //#endregion
1210
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select.svelte
1210
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select.svelte
1211
1211
  var ke = /* @__PURE__ */ new Set([
1212
1212
  "$$slots",
1213
1213
  "$$events",
@@ -1241,7 +1241,7 @@ function Ae(e, t) {
1241
1241
  }), N.append(e, i), N.pop();
1242
1242
  }
1243
1243
  //#endregion
1244
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-content.svelte
1244
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-content.svelte
1245
1245
  var je = /* @__PURE__ */ new Set([
1246
1246
  "$$slots",
1247
1247
  "$$events",
@@ -1297,7 +1297,7 @@ function Me(t, n) {
1297
1297
  N.append(t, o), N.pop();
1298
1298
  }
1299
1299
  //#endregion
1300
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-item.svelte
1300
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-item.svelte
1301
1301
  var Ne = /* @__PURE__ */ new Set([
1302
1302
  "$$slots",
1303
1303
  "$$events",
@@ -1338,7 +1338,7 @@ function Pe(t, n) {
1338
1338
  N.append(t, a), N.pop();
1339
1339
  }
1340
1340
  //#endregion
1341
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-trigger.svelte
1341
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-trigger.svelte
1342
1342
  var Fe = /* @__PURE__ */ new Set([
1343
1343
  "$$slots",
1344
1344
  "$$events",
@@ -1412,7 +1412,7 @@ function Ie(t, n) {
1412
1412
  }), N.append(t, a), N.pop();
1413
1413
  }
1414
1414
  //#endregion
1415
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-value.svelte
1415
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-value.svelte
1416
1416
  var Le = /* @__PURE__ */ new Set([
1417
1417
  "$$slots",
1418
1418
  "$$events",
@@ -1,4 +1,4 @@
1
- import { t as e } from "./auth-client-Cygmp1I2.js";
1
+ import { t as e } from "./auth-client-CnDZwPfp.js";
2
2
  import { n as t } from "./client-GbtOH90i.js";
3
3
  //#region src/lib/api/settings.ts
4
4
  async function n() {
@@ -25,20 +25,7 @@ async function r(e) {
25
25
  body: JSON.stringify({ name: e.name })
26
26
  });
27
27
  }
28
- var i = "hiai-docs:embedding-config";
29
- function a() {
30
- if (typeof window > "u") return {
31
- baseUrl: "",
32
- apiKey: "",
33
- model: "",
34
- fallbackBaseUrl: null,
35
- fallbackApiKey: null,
36
- fallbackModel: null
37
- };
38
- try {
39
- let e = localStorage.getItem(i);
40
- if (e) return JSON.parse(e);
41
- } catch {}
28
+ function i() {
42
29
  return {
43
30
  baseUrl: "",
44
31
  apiKey: "",
@@ -48,15 +35,11 @@ function a() {
48
35
  fallbackModel: null
49
36
  };
50
37
  }
51
- function o(e) {
52
- let t = {
53
- ...a(),
54
- ...e
55
- };
56
- return localStorage.setItem(i, JSON.stringify(t)), t;
38
+ function a(e) {
39
+ return i();
57
40
  }
58
- async function s() {
41
+ async function o() {
59
42
  await t("/api/auth/delete-user", { method: "POST" });
60
43
  }
61
44
  //#endregion
62
- export { r as a, o as i, a as n, n as r, s as t };
45
+ export { r as a, a as i, i as n, n as r, o as t };
@@ -1,7 +1,7 @@
1
- import { t as e } from "./utils-BPDRytUU.js";
1
+ import { t as e } from "./utils-CDBqTgoV.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
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
4
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/textarea/textarea.svelte
5
5
  var n = /* @__PURE__ */ new Set([
6
6
  "$$slots",
7
7
  "$$events",
@@ -1,5 +1,5 @@
1
1
  import { n as e, r as t } from "./bundle-mjs-DllmqUxV.js";
2
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/lib/utils.js
2
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/lib/utils.js
3
3
  function n(...n) {
4
4
  return e(t(n));
5
5
  }
@@ -1,2 +1,2 @@
1
- import { a as presignAttachment, i as listAttachments, n as isFileSizeAllowed, o as uploadAttachment, r as isImageFile, t as confirmAttachment } from "../assets/attachments-Cj3fQyUp.js";
1
+ import { a as presignAttachment, i as listAttachments, n as isFileSizeAllowed, o as uploadAttachment, r as isImageFile, t as confirmAttachment } from "../assets/attachments-BdkOp8ha.js";
2
2
  export { confirmAttachment, isFileSizeAllowed, isImageFile, listAttachments, presignAttachment, uploadAttachment };
@@ -1,2 +1,2 @@
1
- import { a as updateProfile, i as updateEmbeddingConfig, n as getEmbeddingConfig, r as getProfile, t as deleteAccount } from "../assets/settings-Bk5Hk9Vq.js";
1
+ import { a as updateProfile, i as updateEmbeddingConfig, n as getEmbeddingConfig, r as getProfile, t as deleteAccount } from "../assets/settings-Mp8EuFSn.js";
2
2
  export { deleteAccount, getEmbeddingConfig, getProfile, updateEmbeddingConfig, updateProfile };
@@ -1,7 +1,7 @@
1
- import { E as scroll_to_top_aria } from "./assets/messages-BAQzILs4.js";
1
+ import { E as scroll_to_top_aria } from "./assets/messages-B1TjVIH8.js";
2
2
  import { t as Icon } from "./assets/Icon-QwirKi9Y.js";
3
- import { n as searchPreferences } from "./assets/SettingsDialog-BjJIiVLc.js";
4
- import { t as Sidebar } from "./assets/Sidebar-C2sUfGNk.js";
3
+ import { n as searchPreferences } from "./assets/SettingsDialog-Dkp79L1B.js";
4
+ import { t as Sidebar } from "./assets/Sidebar-CGp45ngo.js";
5
5
  import { o as provideDocsmintRequestAdapter, r as provideDocsmintRouteAdapter } from "./assets/route-context-BPRerEtZ.js";
6
6
  import { t as editorPreferences } from "./assets/editor-preferences.svelte-iI5jJM1x.js";
7
7
  import { d as refreshFolders } from "./assets/subfolders-refresh-store.svelte-CXHxQWKh.js";
@@ -1,13 +1,13 @@
1
- import { S as categories_create_title, _ as categories_delete_error, _n as action_cancel, b as categories_name_placeholder, g as categories_delete_title, gn as action_delete, h as categories_delete_description, m as categories_delete_success, mn as action_create, p as categories_delete_success_description, v as categories_update_error, vn as action_save, x as categories_edit_title, y as categories_create_error } from "./messages-BAQzILs4.js";
1
+ import { S as categories_create_title, _ as categories_delete_error, _n as action_cancel, b as categories_name_placeholder, g as categories_delete_title, gn as action_delete, h as categories_delete_description, m as categories_delete_success, mn as action_create, p as categories_delete_success_description, v as categories_update_error, vn as action_save, x as categories_edit_title, y as categories_create_error } from "./messages-B1TjVIH8.js";
2
2
  import { t as Copy } from "./copy-DkkCPkBL.js";
3
3
  import { t as Circle_check } from "./circle-check-CPS9dKEo.js";
4
4
  import { t as Loader_circle } from "./loader-circle-CIEWGyfP.js";
5
5
  import { a as getDocsmintRequestAdapter } from "./route-context-BPRerEtZ.js";
6
- 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";
7
- import { t as Input } from "./input-DezGsU3y.js";
8
- import { t as Label } from "./label-Bj8-TfFN.js";
6
+ 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-1SB5neow.js";
7
+ import { t as Input } from "./input-Df-QP3Km.js";
8
+ import { t as Label } from "./label-CbUOUz6L.js";
9
9
  import { a as listApiKeys, n as categoryIdFromScopes, o as revealCategoryApiKey, r as createCategoryApiKey, s as revokeApiKey, t as apiKeyClipboardValue } from "./api-keys-DIbclwj5.js";
10
- import { a as Select, i as Select_content, n as Select_trigger, r as Select_item, t as Select_value } from "./select-value-DBhbkNcc.js";
10
+ import { a as Select, i as Select_content, n as Select_trigger, r as Select_item, t as Select_value } from "./select-value-CXEDWrZg.js";
11
11
  import * as $ from "svelte/internal/server";
12
12
  //#region src/lib/components/sidebar/category-api-key-flow.ts
13
13
  async function issueCategoryKeyAfterSavingAccess(input) {
@@ -1,8 +1,8 @@
1
1
  import { t as Loader_circle } from "./loader-circle-CIEWGyfP.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 { t as Textarea } from "./textarea-Dev-qSEc.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-1SB5neow.js";
3
+ import { t as Textarea } from "./textarea-CHh8NuSS.js";
4
4
  import * as $ from "svelte/internal/server";
5
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/confirm-dialog/ConfirmDialog.svelte
5
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/confirm-dialog/ConfirmDialog.svelte
6
6
  function ConfirmDialog($$renderer, $$props) {
7
7
  $$renderer.component(($$renderer) => {
8
8
  let { open = false, title, description, confirmLabel = "Confirm", cancelLabel = "Cancel", variant = "default", busy = false, requireReason = false, reasonLabel = "Reason", reasonPlaceholder = "Provide a reason...", onConfirm, onCancel } = $$props;
@@ -1,10 +1,10 @@
1
- import { At as version_snapshot_description_placeholder, Dt as version_snapshot_dialog_title, Et as version_snapshot_dialog_description, Mt as version_snapshot_description, Nt as version_snapshot_label, Ot as version_snapshot_creating, _n as action_cancel, jt as version_snapshot_label_placeholder, kt as version_snapshot_create, xt as version_restore_failed, yn as error_server, z as error_validation } from "./messages-BAQzILs4.js";
1
+ import { At as version_snapshot_description_placeholder, Dt as version_snapshot_dialog_title, Et as version_snapshot_dialog_description, Mt as version_snapshot_description, Nt as version_snapshot_label, Ot as version_snapshot_creating, _n as action_cancel, jt as version_snapshot_label_placeholder, kt as version_snapshot_create, xt as version_restore_failed, yn as error_server, z as error_validation } from "./messages-B1TjVIH8.js";
2
2
  import { t as Loader_circle } from "./loader-circle-CIEWGyfP.js";
3
3
  import { a as getDocsmintRequestAdapter } from "./route-context-BPRerEtZ.js";
4
- import { a as Dialog, i as Dialog_description, n as Dialog_header, o as Button, r as Dialog_footer, t as Dialog_title } from "./dialog-BOV1u6zP.js";
5
- import { t as Input } from "./input-DezGsU3y.js";
4
+ import { a as Dialog, i as Dialog_description, n as Dialog_header, o as Button, r as Dialog_footer, t as Dialog_title } from "./dialog-1SB5neow.js";
5
+ import { t as Input } from "./input-Df-QP3Km.js";
6
6
  import { n as apiFetch, t as ApiError } from "./client-DZMkDkDn.js";
7
- import { t as Textarea } from "./textarea-Dev-qSEc.js";
7
+ import { t as Textarea } from "./textarea-CHh8NuSS.js";
8
8
  import * as $ from "svelte/internal/server";
9
9
  //#region src/lib/components/CreateSnapshotDialog.svelte
10
10
  function CreateSnapshotDialog($$renderer, $$props) {
@@ -1,6 +1,6 @@
1
- import { $ as month_august, B as date_picker_aria, G as weekday_th, H as weekday_su, J as weekday_mo, K as weekday_we, Q as month_september, U as weekday_sa, V as date_picker_placeholder, W as weekday_fr, X as month_november, Y as month_december, Z as month_october, at as month_february, et as month_july, it as month_march, nt as month_may, ot as month_january, q as weekday_tu, rt as month_april, tt as month_june } from "./messages-BAQzILs4.js";
1
+ import { $ as month_august, B as date_picker_aria, G as weekday_th, H as weekday_su, J as weekday_mo, K as weekday_we, Q as month_september, U as weekday_sa, V as date_picker_placeholder, W as weekday_fr, X as month_november, Y as month_december, Z as month_october, at as month_february, et as month_july, it as month_march, nt as month_may, ot as month_january, q as weekday_tu, rt as month_april, tt as month_june } from "./messages-B1TjVIH8.js";
2
2
  import { t as Icon } from "./Icon-QwirKi9Y.js";
3
- import { t as cn } from "./utils-DtlPPXpJ.js";
3
+ import { t as cn } from "./utils-DtX0ta7y.js";
4
4
  import * as $ from "svelte/internal/server";
5
5
  import { tv } from "tailwind-variants";
6
6
  //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/calendar.svelte
@@ -238,7 +238,7 @@ function X($$renderer, $$props) {
238
238
  ]));
239
239
  }
240
240
  //#endregion
241
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/badge.svelte
241
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/badge.svelte
242
242
  function Badge($$renderer, $$props) {
243
243
  $$renderer.component(($$renderer) => {
244
244
  let { ref = null, class: className, variant = "default", children, $$slots, $$events, ...restProps } = $$props;
@@ -256,7 +256,7 @@ function Badge($$renderer, $$props) {
256
256
  });
257
257
  }
258
258
  //#endregion
259
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/index.js
259
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/index.js
260
260
  var badgeVariants = tv({
261
261
  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",
262
262
  variants: { variant: {
@@ -1,6 +1,6 @@
1
1
  import { t as Circle_check } from "./circle-check-CPS9dKEo.js";
2
2
  import { t as Loader_circle } from "./loader-circle-CIEWGyfP.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";
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-1SB5neow.js";
4
4
  import * as $ from "svelte/internal/server";
5
5
  //#region src/lib/components/DeleteDialog.svelte
6
6
  function DeleteDialog($$renderer, $$props) {
@@ -1,7 +1,7 @@
1
- import { Dr as doc_share, Ir as dashboard_new_document, _r as folders_rename, br as folders_new, bt as editor_more_options, dn as action_go_to, gr as folders_delete } from "./messages-BAQzILs4.js";
1
+ import { Dr as doc_share, Ir as dashboard_new_document, _r as folders_rename, br as folders_new, bt as editor_more_options, dn as action_go_to, gr as folders_delete } from "./messages-B1TjVIH8.js";
2
2
  import { t as Chevron_right } from "./chevron-right-DKD7WXjz.js";
3
3
  import { t as Folder } from "./folder-DYIE-XPP.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-Dn_vQq9b.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-DqoOkdqB.js";
5
5
  import { a as getDocsmintRequestAdapter, n as navigateDocsmintRoute, t as getDocsmintRouteAdapter } from "./route-context-BPRerEtZ.js";
6
6
  import { t as cn } from "./utils-DvZnctjz.js";
7
7
  import "./dndzone-DMvTO_Jz.js";
@@ -1,15 +1,15 @@
1
- import { $t as editor_toolbar_list, A as editor_highlight_gray, F as editor_highlight_red, Gt as editor_toolbar_emoji, Ht as editor_enter_url, I as editor_highlight_orange, Jt as editor_toolbar_redo, Kt as editor_toolbar_text_formatting, L as editor_highlight_yellow, M as editor_highlight_purple, Mr as doc_content_placeholder, N as editor_highlight_blue, P as editor_highlight_green, Pt as version_create_snapshot, Qt as editor_toolbar_heading, R as editor_anonymous, Ut as editor_toolbar_copy, Vt as editor_content_label, Wt as editor_toolbar_align, Xt as editor_toolbar_horizontal_rule, Yt as editor_toolbar_undo, Zt as editor_toolbar_code_block, _n as action_cancel, en as editor_toolbar_image, in as editor_toolbar_bold, j as editor_highlight_pink, nn as editor_toolbar_underline, qt as editor_toolbar_highlight, rn as editor_toolbar_italic, tn as editor_toolbar_link, vn as action_save } from "./messages-BAQzILs4.js";
1
+ import { $t as editor_toolbar_list, A as editor_highlight_gray, F as editor_highlight_red, Gt as editor_toolbar_emoji, Ht as editor_enter_url, I as editor_highlight_orange, Jt as editor_toolbar_redo, Kt as editor_toolbar_text_formatting, L as editor_highlight_yellow, M as editor_highlight_purple, Mr as doc_content_placeholder, N as editor_highlight_blue, P as editor_highlight_green, Pt as version_create_snapshot, Qt as editor_toolbar_heading, R as editor_anonymous, Ut as editor_toolbar_copy, Vt as editor_content_label, Wt as editor_toolbar_align, Xt as editor_toolbar_horizontal_rule, Yt as editor_toolbar_undo, Zt as editor_toolbar_code_block, _n as action_cancel, en as editor_toolbar_image, in as editor_toolbar_bold, j as editor_highlight_pink, nn as editor_toolbar_underline, qt as editor_toolbar_highlight, rn as editor_toolbar_italic, tn as editor_toolbar_link, vn as action_save } from "./messages-B1TjVIH8.js";
2
2
  import { t as Icon } from "./Icon-QwirKi9Y.js";
3
3
  import { t as Camera } from "./camera-D6s20LDi.js";
4
4
  import { t as Chevron_down } from "./chevron-down-CvqKATjM.js";
5
5
  import { t as Copy } from "./copy-DkkCPkBL.js";
6
6
  import { a as getDocsmintRequestAdapter } from "./route-context-BPRerEtZ.js";
7
- import { a as Dialog, n as Dialog_header, o as Button, r as Dialog_footer, t as Dialog_title } from "./dialog-BOV1u6zP.js";
8
- import { t as Input } from "./input-DezGsU3y.js";
9
- import { a as resolveOfflineIdentity } from "./identity-B3uHoDtf.js";
10
- import { n as getOfflineDB } from "./db-CnxeO66n.js";
7
+ import { a as Dialog, n as Dialog_header, o as Button, r as Dialog_footer, t as Dialog_title } from "./dialog-1SB5neow.js";
8
+ import { t as Input } from "./input-Df-QP3Km.js";
9
+ import { a as resolveOfflineIdentity } from "./identity-DcMMBKWg.js";
10
+ import { n as getOfflineDB } from "./db-BhwJPEkn.js";
11
11
  import { h as unregisterShortcut, u as registerShortcut } from "./keyboard.svelte-BgF47N3L.js";
12
- import { t as CreateSnapshotDialog } from "./CreateSnapshotDialog-CI8vXXcN.js";
12
+ import { t as CreateSnapshotDialog } from "./CreateSnapshotDialog-NM0n1Whr.js";
13
13
  import { a as sanitizeEditorContent, i as removeUnavailableAttachmentImages, r as editorExtensions } from "./editorExtensions-BwGeSPuX.js";
14
14
  import { t as markdownToJson } from "./markdown-CB8DZ-LT.js";
15
15
  import * as $ from "svelte/internal/server";
@@ -1,18 +1,18 @@
1
- import { An as settings_email, Cn as change_password, Dn as settings_save, En as password_label, Fn as settings_appearance, In as settings_account, Ln as settings_profile, Mn as theme_dark, Nn as theme_light, On as settings_name, Pn as settings_theme, Rn as settings_title, Sn as auth_password, Tn as new_password, jn as theme_system, kn as settings_email_change_warning, pn as action_close, wn as confirm_password, xn as auth_logout } from "./messages-BAQzILs4.js";
1
+ import { An as settings_email, Cn as change_password, Dn as settings_save, En as password_label, Fn as settings_appearance, In as settings_account, Ln as settings_profile, Mn as theme_dark, Nn as theme_light, On as settings_name, Pn as settings_theme, Rn as settings_title, Sn as auth_password, Tn as new_password, jn as theme_system, kn as settings_email_change_warning, pn as action_close, wn as confirm_password, xn as auth_logout } from "./messages-B1TjVIH8.js";
2
2
  import { t as Icon } from "./Icon-QwirKi9Y.js";
3
3
  import { a as getDocsmintRequestAdapter, n as navigateDocsmintRoute, t as getDocsmintRouteAdapter } from "./route-context-BPRerEtZ.js";
4
- import { t as cn } from "./utils-DtlPPXpJ.js";
5
- import { a as Dialog, i as Dialog_description, n as Dialog_header, o as Button, r as Dialog_footer, t as Dialog_title } from "./dialog-BOV1u6zP.js";
6
- import { t as Input } from "./input-DezGsU3y.js";
7
- import { t as Label } from "./label-Bj8-TfFN.js";
8
- import { r as signOut } from "./auth-client-x26kqY8Z.js";
9
- import { r as getProfile } from "./settings-Bk5Hk9Vq.js";
4
+ import { t as cn } from "./utils-DtX0ta7y.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-1SB5neow.js";
6
+ import { t as Input } from "./input-Df-QP3Km.js";
7
+ import { t as Label } from "./label-CbUOUz6L.js";
8
+ import { r as signOut } from "./auth-client-CojKIzqy.js";
9
+ import { r as getProfile } from "./settings-Mp8EuFSn.js";
10
10
  import { a as listApiKeys, i as createGlobalApiKey, n as categoryIdFromScopes, o as revealCategoryApiKey, s as revokeApiKey, t as apiKeyClipboardValue } from "./api-keys-DIbclwj5.js";
11
11
  import { i as listCategories } from "./categories-av9xjeg5.js";
12
12
  import { t as getFrontendExtensions } from "./context-Bi_mO-NS.js";
13
13
  import { t as resolveExtensions } from "./resolve-BqHozBXl.js";
14
- import { a as resolveOfflineIdentity, t as disableOfflineAccess } from "./identity-B3uHoDtf.js";
15
- import { n as getOfflineDB, t as deleteOfflineDB } from "./db-CnxeO66n.js";
14
+ import { a as resolveOfflineIdentity, t as disableOfflineAccess } from "./identity-DcMMBKWg.js";
15
+ import { n as getOfflineDB, t as deleteOfflineDB } from "./db-BhwJPEkn.js";
16
16
  import { t as editorPreferences } from "./editor-preferences.svelte-iI5jJM1x.js";
17
17
  import { t as themeStore } from "./theme.svelte-Co0-ssaD.js";
18
18
  import * as $ from "svelte/internal/server";
@@ -172,7 +172,7 @@ function Save($$renderer, $$props) {
172
172
  ]));
173
173
  }
174
174
  //#endregion
175
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs.svelte
175
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs.svelte
176
176
  function Tabs($$renderer, $$props) {
177
177
  $$renderer.component(($$renderer) => {
178
178
  let { value = "", class: className, children } = $$props;
@@ -187,7 +187,7 @@ function Tabs($$renderer, $$props) {
187
187
  });
188
188
  }
189
189
  //#endregion
190
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-content.svelte
190
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-content.svelte
191
191
  function Tabs_content($$renderer, $$props) {
192
192
  $$renderer.component(($$renderer) => {
193
193
  const { value: tabValue, currentValue, class: className, children } = $$props;
@@ -205,7 +205,7 @@ function Tabs_content($$renderer, $$props) {
205
205
  });
206
206
  }
207
207
  //#endregion
208
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-list.svelte
208
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-list.svelte
209
209
  function Tabs_list($$renderer, $$props) {
210
210
  $$renderer.component(($$renderer) => {
211
211
  const { class: className, children } = $$props;
@@ -219,7 +219,7 @@ function Tabs_list($$renderer, $$props) {
219
219
  });
220
220
  }
221
221
  //#endregion
222
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-trigger.svelte
222
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-trigger.svelte
223
223
  function Tabs_trigger($$renderer, $$props) {
224
224
  $$renderer.component(($$renderer) => {
225
225
  const { value, selected = false, class: className, children, onclick } = $$props;
@@ -1,32 +1,45 @@
1
- import { Bn as share_expires_7d, Gn as share_toggle_password, Hn as share_expires_1h, Jn as share_create_title, Kn as share_password_protection, Un as share_expires_never, Vn as share_expires_1d, Wn as share_expires, pn as action_close, qn as share_create_link, zn as share_expires_30d } from "./messages-BAQzILs4.js";
1
+ import { Bn as share_expires_7d, Gn as share_toggle_password, Hn as share_expires_1h, Jn as share_create_title, Kn as share_password_protection, Un as share_expires_never, Vn as share_expires_1d, Wn as share_expires, pn as action_close, qn as share_create_link, zn as share_expires_30d } from "./messages-B1TjVIH8.js";
2
2
  import { a as getDocsmintRequestAdapter } from "./route-context-BPRerEtZ.js";
3
- import "./select-value-DBhbkNcc.js";
3
+ import "./select-value-CXEDWrZg.js";
4
4
  import "./keyboard.svelte-BgF47N3L.js";
5
5
  import * as $ from "svelte/internal/server";
6
+ //#region src/lib/components/share-configuration.ts
7
+ function shareAccessModesForDisplay(displayMode) {
8
+ return displayMode === "standalone" ? ["public"] : ["public", "restricted"];
9
+ }
10
+ //#endregion
6
11
  //#region src/lib/components/ShareDialog.svelte
7
12
  function ShareDialog($$renderer, $$props) {
8
13
  $$renderer.component(($$renderer) => {
9
- let { open = false, documentId = "", documentTitle = "", folderId = "", folderName = "", categoryId = "", categoryName = "", onCreated } = $$props;
14
+ let { open = false, documentId = "", documentTitle = "", folderId = "", folderName = "", categoryId = "", categoryName = "", displayMode = "host-managed", onCreated } = $$props;
10
15
  let usePassword = false;
16
+ let accessMode = "public";
11
17
  let expiresIn = "7d";
12
18
  getDocsmintRequestAdapter();
19
+ const availableAccessModes = $.derived(() => shareAccessModesForDisplay(displayMode));
13
20
  if (open) {
14
21
  $$renderer.push("<!--[0-->");
15
22
  $$renderer.push(`<div class="fixed inset-0 layer-modal z-[100] flex items-center justify-center"><button class="absolute inset-0 z-[100] bg-black/50"${$.attr("aria-label", action_close())}></button> <div class="relative z-[101] w-full max-w-md rounded-lg border border-border bg-background p-6 shadow-lg" role="dialog" aria-modal="true"><div class="mb-4 flex items-center justify-between"><h2 class="text-lg font-semibold">${$.escape(share_create_title())} "${$.escape(categoryName || folderName || documentTitle)}"</h2> <button class="rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-foreground"${$.attr("aria-label", action_close())}>✕</button></div> `);
16
23
  {
17
24
  $$renderer.push("<!--[0-->");
18
- $$renderer.push(`<div class="space-y-4"><div class="grid grid-cols-2 gap-2 rounded-lg bg-muted p-1" aria-label="Share access mode"><button type="button"${$.attr_class(`rounded-md px-3 py-2 text-sm font-medium bg-background shadow-sm`)}>Public link</button> <button type="button"${$.attr_class(`rounded-md px-3 py-2 text-sm font-medium text-muted-foreground`)}>Specific people</button></div> <p class="rounded-md border border-border bg-muted/40 p-3 text-xs text-muted-foreground">${$.escape("Anyone with this link can view the document. The link may be forwarded.")}</p> <div class="flex items-center justify-between"><span class="text-sm font-medium">${$.escape(share_password_protection())}</span> <button${$.attr_class(`relative inline-flex h-5 w-9 items-center rounded-full transition-colors bg-input`)} role="switch"${$.attr("aria-checked", usePassword)}${$.attr("aria-label", share_toggle_password())}><span${$.attr_class(`inline-block h-4 w-4 rounded-full bg-white shadow transition-transform translate-x-0.5`)}></span></button></div> `);
25
+ $$renderer.push(`<div class="space-y-4"><div${$.attr_class(`grid ${availableAccessModes().length === 1 ? "grid-cols-1" : "grid-cols-2"} gap-2 rounded-lg bg-muted p-1`)} aria-label="Share access mode"><!--[-->`);
26
+ const each_array = $.ensure_array_like(availableAccessModes());
27
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
28
+ let mode = each_array[$$index];
29
+ $$renderer.push(`<button type="button"${$.attr_class(`rounded-md px-3 py-2 text-sm font-medium ${accessMode === mode ? "bg-background shadow-sm" : "text-muted-foreground"}`)}>${$.escape(mode === "public" ? "Public link" : "Specific people")}</button>`);
30
+ }
31
+ $$renderer.push(`<!--]--></div> <p class="rounded-md border border-border bg-muted/40 p-3 text-xs text-muted-foreground">${$.escape("Anyone with this link can view the document. The link may be forwarded.")}</p> <div class="flex items-center justify-between"><span class="text-sm font-medium">${$.escape(share_password_protection())}</span> <button${$.attr_class(`relative inline-flex h-5 w-9 items-center rounded-full transition-colors bg-input`)} role="switch"${$.attr("aria-checked", usePassword)}${$.attr("aria-label", share_toggle_password())}><span${$.attr_class(`inline-block h-4 w-4 rounded-full bg-white shadow transition-transform translate-x-0.5`)}></span></button></div> `);
19
32
  $$renderer.push("<!--[-1-->");
20
33
  $$renderer.push(`<!--]--> <div class="space-y-2"><span class="text-sm font-medium">${$.escape(share_expires())}</span> <div class="flex gap-2"><!--[-->`);
21
- const each_array = $.ensure_array_like([
34
+ const each_array_1 = $.ensure_array_like([
22
35
  ["1h", share_expires_1h()],
23
36
  ["1d", share_expires_1d()],
24
37
  ["7d", share_expires_7d()],
25
38
  ["30d", share_expires_30d()],
26
39
  ["never", share_expires_never()]
27
40
  ]);
28
- for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
29
- let [val, label] = each_array[$$index];
41
+ for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
42
+ let [val, label] = each_array_1[$$index_1];
30
43
  $$renderer.push(`<button${$.attr_class(`rounded-md border px-2.5 py-1 text-xs font-medium transition-colors ${expiresIn === val ? "border-primary bg-primary text-primary-foreground" : "border-border text-muted-foreground hover:bg-accent"}`)}>${$.escape(label)}</button>`);
31
44
  }
32
45
  $$renderer.push(`<!--]--></div></div> `);
@@ -1,20 +1,20 @@
1
- import { $n as search_title, Ar as doc_delete_success, C as categories_new, D as sidebar_powered_by, Dr as doc_share, Er as doc_delete, Ir as dashboard_new_document, Nr as doc_title_label, Or as doc_tags, Qn as search_placeholder, Rn as settings_title, Rr as dashboard_title, _n as action_cancel, _r as folders_rename, an as sidebar_folders, ar as tags_new, bn as error_generic, br as folders_new, bt as editor_more_options, dn as action_go_to, dr as folders_name_placeholder, er as tags_add, f as sidebar_uncategorized, fr as folders_delete_success_description, gn as action_delete, hn as action_edit, hr as folders_delete_title, jr as doc_delete_confirm, kr as doc_delete_success_description, nr as tags_delete_title, on as sidebar_recent, pr as folders_delete_success, tr as tags_delete_description, un as action_loading, vn as action_save, vt as tags_load_error, yt as action_copy_content } from "./messages-BAQzILs4.js";
1
+ import { $n as search_title, Ar as doc_delete_success, C as categories_new, D as sidebar_powered_by, Dr as doc_share, Er as doc_delete, Ir as dashboard_new_document, Nr as doc_title_label, Or as doc_tags, Qn as search_placeholder, Rn as settings_title, Rr as dashboard_title, _n as action_cancel, _r as folders_rename, an as sidebar_folders, ar as tags_new, bn as error_generic, br as folders_new, bt as editor_more_options, dn as action_go_to, dr as folders_name_placeholder, er as tags_add, f as sidebar_uncategorized, fr as folders_delete_success_description, gn as action_delete, hn as action_edit, hr as folders_delete_title, jr as doc_delete_confirm, kr as doc_delete_success_description, nr as tags_delete_title, on as sidebar_recent, pr as folders_delete_success, tr as tags_delete_description, un as action_loading, vn as action_save, vt as tags_load_error, yt as action_copy_content } from "./messages-B1TjVIH8.js";
2
2
  import { t as Icon } from "./Icon-QwirKi9Y.js";
3
- import { i as Check, n as Plus, r as File_text, t as FolderDialog } from "./confirm-dialog-XuyaL8sr.js";
3
+ import { i as Check, n as Plus, r as File_text, t as FolderDialog } from "./confirm-dialog-B-oV5wYk.js";
4
4
  import { t as Chevron_down } from "./chevron-down-CvqKATjM.js";
5
5
  import { t as Chevron_right } from "./chevron-right-DKD7WXjz.js";
6
6
  import { t as Clock } from "./clock-CzsE58TH.js";
7
7
  import { t as Copy } from "./copy-DkkCPkBL.js";
8
8
  import { t as Folder } from "./folder-DYIE-XPP.js";
9
- import { t as SettingsDialog } from "./SettingsDialog-BjJIiVLc.js";
9
+ import { t as SettingsDialog } from "./SettingsDialog-Dkp79L1B.js";
10
10
  import { n as Search, t as Tag } from "./tag-BmiVU_Ej.js";
11
- 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-Dn_vQq9b.js";
11
+ 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-DqoOkdqB.js";
12
12
  import { t as Loader_circle } from "./loader-circle-CIEWGyfP.js";
13
13
  import { a as getDocsmintRequestAdapter, i as resolveDocsmintRoute, n as navigateDocsmintRoute, t as getDocsmintRouteAdapter } from "./route-context-BPRerEtZ.js";
14
14
  import { t as cn } from "./utils-DvZnctjz.js";
15
- 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";
16
- import { t as Input } from "./input-DezGsU3y.js";
17
- import { t as Label } from "./label-Bj8-TfFN.js";
15
+ 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-1SB5neow.js";
16
+ import { t as Input } from "./input-Df-QP3Km.js";
17
+ import { t as Label } from "./label-CbUOUz6L.js";
18
18
  import { n as apiFetch } from "./client-DZMkDkDn.js";
19
19
  import { i as listCategories, r as deleteCategory } from "./categories-av9xjeg5.js";
20
20
  import { t as getFrontendExtensions } from "./context-Bi_mO-NS.js";
@@ -22,16 +22,16 @@ import { t as resolveExtensions } from "./resolve-BqHozBXl.js";
22
22
  import { n as SHADOW_ITEM_MARKER_PROPERTY_NAME } from "./dndzone-DMvTO_Jz.js";
23
23
  import { c as updateDocument, r as deleteDocument, s as listDocuments, t as clearDocumentsCache } from "./documents-CZ-wQohy.js";
24
24
  import { c as updateFolder, r as deleteFolder, s as listFolders, t as createFolder } from "./folders-BX30gHv6.js";
25
- import { t as DeleteDialog } from "./DeleteDialog-DG9Lm38J.js";
26
- import { t as ShareDialog } from "./ShareDialog-C9C-XTm4.js";
27
- import { t as CategoryDialog } from "./CategoryDialog-QHEv_9N4.js";
25
+ import { t as DeleteDialog } from "./DeleteDialog-oHT_p_vG.js";
26
+ import { t as ShareDialog } from "./ShareDialog-B1-30sRR.js";
27
+ import { t as CategoryDialog } from "./CategoryDialog-B3MrZUho.js";
28
28
  import { n as createDocumentPlacementWriter, t as createDocumentDropCoordinator } from "./document-drop-coordinator-CEaYACsC.js";
29
29
  import { a as getFolderFromRegistry, c as getPendingDocumentPlacement, d as refreshFolders, f as registerDocument, n as bumpSubfoldersRefresh, p as registerFolder, r as getDocumentFromRegistry, t as acknowledgeDocumentPlacement, u as publishDocumentPlacement } from "./subfolders-refresh-store.svelte-CXHxQWKh.js";
30
- import { t as FolderNode } from "./FolderNode-kmilhDjO.js";
30
+ import { t as FolderNode } from "./FolderNode-B84NL8Rg.js";
31
31
  import { i as setSelectedTag, n as refreshDocs, r as refreshTags, t as getSelectedTag } from "./tag-store.svelte-BM1lUI_P.js";
32
- import { t as ConfirmDialog } from "./ConfirmDialog-BhAelejz.js";
32
+ import { t as ConfirmDialog } from "./ConfirmDialog-D1BDXXll.js";
33
33
  import { i as deleteTag, o as listTags } from "./tags-BQsI_6OW.js";
34
- import { t as TagCreateDialog } from "./TagCreateDialog-DUPMitlL.js";
34
+ import { t as TagCreateDialog } from "./TagCreateDialog-CGGtYSso.js";
35
35
  import * as $ from "svelte/internal/server";
36
36
  import { onDestroy, onMount } from "svelte";
37
37
  import { page } from "$app/state";
@@ -1358,6 +1358,7 @@ function FolderTree($$renderer, $$props) {
1358
1358
  });
1359
1359
  $$renderer.push(`<!----> `);
1360
1360
  ShareDialog($$renderer, {
1361
+ displayMode: "standalone",
1361
1362
  documentId: shareDocumentId,
1362
1363
  documentTitle: shareDocumentTitle,
1363
1364
  folderId: shareFolderId,
@@ -1,10 +1,10 @@
1
- import { _n as action_cancel, ar as tags_new, bn as error_generic, ir as tags_edit, mn as action_create, rr as tags_name_placeholder, un as action_loading, vn as action_save } from "./messages-BAQzILs4.js";
1
+ import { _n as action_cancel, ar as tags_new, bn as error_generic, ir as tags_edit, mn as action_create, rr as tags_name_placeholder, un as action_loading, vn as action_save } from "./messages-B1TjVIH8.js";
2
2
  import { t as Loader_circle } from "./loader-circle-CIEWGyfP.js";
3
3
  import { a as getDocsmintRequestAdapter } from "./route-context-BPRerEtZ.js";
4
4
  import { t as cn } from "./utils-DvZnctjz.js";
5
- import { a as Dialog, i as Dialog_description, n as Dialog_header, o as Button, r as Dialog_footer, t as Dialog_title } from "./dialog-BOV1u6zP.js";
6
- import { t as Input } from "./input-DezGsU3y.js";
7
- import { t as Label } from "./label-Bj8-TfFN.js";
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-1SB5neow.js";
6
+ import { t as Input } from "./input-Df-QP3Km.js";
7
+ import { t as Label } from "./label-CbUOUz6L.js";
8
8
  import { c as updateTag, l as updateTagInputSchema, n as createTag, r as createTagInputSchema } from "./tags-BQsI_6OW.js";
9
9
  import * as $ from "svelte/internal/server";
10
10
  //#region src/lib/components/TagCreateDialog.svelte