@hiai-gg/docsmint 0.6.8 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -4
- package/backend/src/lib/api-keys.ts +14 -6
- package/backend/src/lib/lifecycle-service.ts +397 -73
- package/dist/backend/index.js +13038 -10864
- package/dist/backend-account-runtime-cleanup.js +152 -42
- package/dist/backend-api-key-facade.js +207 -61
- package/dist/backend-pipeline-cancellation.js +144 -42
- package/dist/client.d.ts +12 -2
- package/dist/client.js +83 -30
- package/dist/frontend/{CategoryDialog-CbXBMBZB.js → CategoryDialog-C67_TXf0.js} +4 -4
- package/dist/frontend/{ConfirmDialog-DgMTQBq4.js → ConfirmDialog-_LlrA--f.js} +3 -3
- package/dist/frontend/{CreateSnapshotDialog-FUq-ZfBH.js → CreateSnapshotDialog-BmCRpOMv.js} +3 -3
- package/dist/frontend/{DatePicker-D6E-EEtZ.js → DatePicker-DsoepNdb.js} +8 -8
- package/dist/frontend/{DeleteDialog-8k6JYWCx.js → DeleteDialog-L1A3FhMM.js} +1 -1
- package/dist/frontend/{FolderNode-DAAn_T8_.js → FolderNode-CNwi0ySr.js} +1 -1
- package/dist/frontend/{HiAiEditor-DSVG3GNd.js → HiAiEditor-B1EDGsnA.js} +6 -6
- package/dist/frontend/{SettingsDialog-BDNgf5rv.js → SettingsDialog-AP42xOGg.js} +12 -12
- package/dist/frontend/ShareDialog-wGTXuXFE.js +281 -0
- package/dist/frontend/{Sidebar-DX08utdV.js → Sidebar-lKQT3dEf.js} +17 -16
- package/dist/frontend/{TagCreateDialog-Bb0-Vtzh.js → TagCreateDialog-su8BhLzS.js} +3 -3
- package/dist/frontend/api/attachments.js +1 -1
- package/dist/frontend/api/settings.js +1 -1
- package/dist/frontend/app-shell.js +2 -2
- package/dist/frontend/{attachments-B8AuDjno.js → attachments-B2aH3hXF.js} +10 -9
- package/dist/frontend/{auth-client-Cygmp1I2.js → auth-client-CnDZwPfp.js} +11 -11
- package/dist/frontend/components/category-dialog.js +1 -1
- package/dist/frontend/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend/components/delete-dialog.js +1 -1
- package/dist/frontend/components/editor/compact-editor.js +1 -1
- package/dist/frontend/components/editor/document-editor.js +1 -1
- package/dist/frontend/components/folder-node.js +1 -1
- package/dist/frontend/components/save-as-dialog.js +3 -3
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.d.ts +2 -1
- package/dist/frontend/components/share-dialog.js +1 -1
- package/dist/frontend/components/sidebar.js +1 -1
- package/dist/frontend/components/tag-create-dialog.js +1 -1
- package/dist/frontend/components/version-history.js +2 -2
- package/dist/frontend/{confirm-dialog-CzmoZw3a.js → confirm-dialog-BG8y2Pum.js} +4 -4
- package/dist/frontend/dashboard.js +1008 -998
- package/dist/frontend/{db-ByrlYfaI.js → db-Bo1t_76T.js} +1 -1
- package/dist/frontend/{dialog-Ce79C9fd.js → dialog-C2iKObEu.js} +7 -7
- package/dist/frontend/{dropdown-menu-CJ_7V3N0.js → dropdown-menu-BXIl2E26.js} +12 -12
- package/dist/frontend/{floating-layer-anchor-S5RSefGN.js → floating-layer-anchor-BGIndLY-.js} +63 -63
- package/dist/frontend/{identity-DyWeNzu_.js → identity-Ynrglr5i.js} +1 -1
- package/dist/frontend/{input-BWlOML_m.js → input-eHFb2qiL.js} +2 -2
- package/dist/frontend/{label-C2HfJNQ2.js → label-_I1iiaNU.js} +2 -2
- package/dist/frontend/offline/identity.js +1 -1
- package/dist/frontend/search.js +2 -2
- package/dist/frontend/{select-value-JCAp2PmU.js → select-value-CtMyrvDJ.js} +18 -18
- package/dist/frontend/{settings-DSrUl4hW.js → settings-BR48ihB4.js} +6 -23
- package/dist/frontend/{textarea-DOAE-h42.js → textarea-2eslfANY.js} +2 -2
- package/dist/frontend/{utils-BPDRytUU.js → utils-CDBqTgoV.js} +1 -1
- package/dist/frontend-ssr/api/attachments.js +1 -1
- package/dist/frontend-ssr/api/settings.js +1 -1
- package/dist/frontend-ssr/app-shell.js +2 -2
- package/dist/frontend-ssr/assets/{CategoryDialog-QHEv_9N4.js → CategoryDialog-BGuHTb3K.js} +4 -4
- package/dist/frontend-ssr/assets/{ConfirmDialog-BhAelejz.js → ConfirmDialog-D1BDXXll.js} +3 -3
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-CI8vXXcN.js → CreateSnapshotDialog-BZ45odvJ.js} +3 -3
- package/dist/frontend-ssr/assets/{DatePicker-D84cJ-Eq.js → DatePicker-CPtl6W5E.js} +3 -3
- package/dist/frontend-ssr/assets/{DeleteDialog-DG9Lm38J.js → DeleteDialog-oHT_p_vG.js} +1 -1
- package/dist/frontend-ssr/assets/{FolderNode-kmilhDjO.js → FolderNode-D9kgJG9d.js} +1 -1
- package/dist/frontend-ssr/assets/{HiAiEditor-CUOJmKzT.js → HiAiEditor-DOd2MXjD.js} +5 -5
- package/dist/frontend-ssr/assets/{SettingsDialog-BjJIiVLc.js → SettingsDialog-CIVbMKmf.js} +12 -12
- package/dist/frontend-ssr/assets/{ShareDialog-C9C-XTm4.js → ShareDialog-D2UNUbF7.js} +19 -6
- package/dist/frontend-ssr/assets/{Sidebar-C2sUfGNk.js → Sidebar-Bb-k2R-Z.js} +13 -12
- package/dist/frontend-ssr/assets/{TagCreateDialog-DUPMitlL.js → TagCreateDialog-6Gk7L3D-.js} +3 -3
- package/dist/frontend-ssr/assets/{attachments-Cj3fQyUp.js → attachments-BdkOp8ha.js} +5 -4
- package/dist/frontend-ssr/assets/{auth-client-x26kqY8Z.js → auth-client-CojKIzqy.js} +13 -13
- package/dist/frontend-ssr/assets/{confirm-dialog-XuyaL8sr.js → confirm-dialog-B9MVS_bF.js} +4 -4
- package/dist/frontend-ssr/assets/{db-CnxeO66n.js → db-BhwJPEkn.js} +1 -1
- package/dist/frontend-ssr/assets/{dialog-BOV1u6zP.js → dialog-1SB5neow.js} +8 -8
- package/dist/frontend-ssr/assets/{dropdown-menu-Dn_vQq9b.js → dropdown-menu-DqoOkdqB.js} +12 -12
- package/dist/frontend-ssr/assets/{floating-layer-anchor-BIAu-252.js → floating-layer-anchor-BoiiIEiK.js} +71 -71
- package/dist/frontend-ssr/assets/{identity-B3uHoDtf.js → identity-DcMMBKWg.js} +1 -1
- package/dist/frontend-ssr/assets/{input-DezGsU3y.js → input-Df-QP3Km.js} +2 -2
- package/dist/frontend-ssr/assets/{label-Bj8-TfFN.js → label-CbUOUz6L.js} +2 -2
- package/dist/frontend-ssr/assets/{select-value-DBhbkNcc.js → select-value-CXEDWrZg.js} +18 -18
- package/dist/frontend-ssr/assets/{settings-Bk5Hk9Vq.js → settings-Mp8EuFSn.js} +3 -21
- package/dist/frontend-ssr/assets/{textarea-Dev-qSEc.js → textarea-CHh8NuSS.js} +2 -2
- package/dist/frontend-ssr/assets/{utils-DtlPPXpJ.js → utils-DtX0ta7y.js} +1 -1
- package/dist/frontend-ssr/components/category-dialog.js +1 -1
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend-ssr/components/delete-dialog.js +1 -1
- package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
- package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
- package/dist/frontend-ssr/components/folder-node.js +1 -1
- package/dist/frontend-ssr/components/save-as-dialog.js +3 -3
- package/dist/frontend-ssr/components/settings.js +1 -1
- package/dist/frontend-ssr/components/share-dialog.js +1 -1
- package/dist/frontend-ssr/components/sidebar.js +1 -1
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
- package/dist/frontend-ssr/components/version-history.js +2 -2
- package/dist/frontend-ssr/dashboard.js +31 -29
- package/dist/frontend-ssr/offline/identity.js +1 -1
- package/dist/frontend-ssr/search.js +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/lifecycle-persistent.d.ts +1 -1
- package/dist/lifecycle-runtime.js +52659 -338
- package/dist/mcp-cli.js +1056 -0
- package/dist/mcp-server.d.ts +39 -0
- package/dist/mcp-server.js +1053 -0
- package/dist/storage-quota.d.ts +5 -1
- package/dist/types.d.ts +7 -0
- package/dist/workspace.d.ts +11 -2
- package/dist/workspace.js +82 -10
- package/package.json +7 -13
- package/packages/cli/src/index.ts +1 -1
- package/packages/db/src/client.ts +56 -5
- package/packages/db/src/schema.ts +192 -1
- package/packages/db/src/with-tenant.ts +20 -2
- package/server.json +2 -2
- package/dist/frontend/ShareDialog-2Mty7hm4.js +0 -258
- package/packages/mcp-server/src/capabilities.ts +0 -189
- package/packages/mcp-server/src/client.ts +0 -225
- package/packages/mcp-server/src/index.ts +0 -8
- package/packages/mcp-server/src/server.ts +0 -87
- package/packages/mcp-server/src/tools/create-document.ts +0 -34
- package/packages/mcp-server/src/tools/create-folder.ts +0 -31
- package/packages/mcp-server/src/tools/create-snapshot.ts +0 -27
- package/packages/mcp-server/src/tools/export-document.ts +0 -22
- package/packages/mcp-server/src/tools/get-document.ts +0 -22
- package/packages/mcp-server/src/tools/list-documents.ts +0 -34
- package/packages/mcp-server/src/tools/list-folders.ts +0 -26
- package/packages/mcp-server/src/tools/search.ts +0 -39
- package/packages/mcp-server/src/tools/update-document.ts +0 -38
- package/packages/mcp-server/src/tools/version-history.ts +0 -27
- package/packages/mcp-server/src/types.ts +0 -126
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as e } from "./utils-
|
|
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-
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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-
|
|
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
|
-
|
|
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
|
|
52
|
-
|
|
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
|
|
41
|
+
async function o() {
|
|
59
42
|
await t("/api/auth/delete-user", { method: "POST" });
|
|
60
43
|
}
|
|
61
44
|
//#endregion
|
|
62
|
-
export { r as a,
|
|
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-
|
|
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+
|
|
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+
|
|
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-
|
|
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-
|
|
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
1
|
import { E as scroll_to_top_aria } from "./assets/messages-BAQzILs4.js";
|
|
2
2
|
import { t as Icon } from "./assets/Icon-QwirKi9Y.js";
|
|
3
|
-
import { n as searchPreferences } from "./assets/SettingsDialog-
|
|
4
|
-
import { t as Sidebar } from "./assets/Sidebar-
|
|
3
|
+
import { n as searchPreferences } from "./assets/SettingsDialog-CIVbMKmf.js";
|
|
4
|
+
import { t as Sidebar } from "./assets/Sidebar-Bb-k2R-Z.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";
|
|
@@ -3,11 +3,11 @@ 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-
|
|
7
|
-
import { t as Input } from "./input-
|
|
8
|
-
import { t as Label } from "./label-
|
|
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-
|
|
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-
|
|
3
|
-
import { t as Textarea } from "./textarea-
|
|
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+
|
|
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
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";
|
|
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-
|
|
5
|
-
import { t as Input } from "./input-
|
|
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-
|
|
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
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";
|
|
2
2
|
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
3
|
-
import { t as cn } from "./utils-
|
|
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+
|
|
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+
|
|
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-
|
|
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
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";
|
|
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-
|
|
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";
|
|
@@ -4,12 +4,12 @@ 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-
|
|
8
|
-
import { t as Input } from "./input-
|
|
9
|
-
import { a as resolveOfflineIdentity } from "./identity-
|
|
10
|
-
import { n as getOfflineDB } from "./db-
|
|
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-
|
|
12
|
+
import { t as CreateSnapshotDialog } from "./CreateSnapshotDialog-BZ45odvJ.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
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";
|
|
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-
|
|
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-
|
|
6
|
-
import { t as Input } from "./input-
|
|
7
|
-
import { t as Label } from "./label-
|
|
8
|
-
import { r as signOut } from "./auth-client-
|
|
9
|
-
import { r as getProfile } from "./settings-
|
|
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-
|
|
15
|
-
import { n as getOfflineDB, t as deleteOfflineDB } from "./db-
|
|
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+
|
|
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+
|
|
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+
|
|
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+
|
|
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
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";
|
|
2
2
|
import { a as getDocsmintRequestAdapter } from "./route-context-BPRerEtZ.js";
|
|
3
|
-
import "./select-value-
|
|
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
|
|
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
|
|
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 $$
|
|
29
|
-
let [val, label] =
|
|
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
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";
|
|
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-
|
|
3
|
+
import { i as Check, n as Plus, r as File_text, t as FolderDialog } from "./confirm-dialog-B9MVS_bF.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-
|
|
9
|
+
import { t as SettingsDialog } from "./SettingsDialog-CIVbMKmf.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-
|
|
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-
|
|
16
|
-
import { t as Input } from "./input-
|
|
17
|
-
import { t as Label } from "./label-
|
|
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-
|
|
26
|
-
import { t as ShareDialog } from "./ShareDialog-
|
|
27
|
-
import { t as CategoryDialog } from "./CategoryDialog-
|
|
25
|
+
import { t as DeleteDialog } from "./DeleteDialog-oHT_p_vG.js";
|
|
26
|
+
import { t as ShareDialog } from "./ShareDialog-D2UNUbF7.js";
|
|
27
|
+
import { t as CategoryDialog } from "./CategoryDialog-BGuHTb3K.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-
|
|
30
|
+
import { t as FolderNode } from "./FolderNode-D9kgJG9d.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-
|
|
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-
|
|
34
|
+
import { t as TagCreateDialog } from "./TagCreateDialog-6Gk7L3D-.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,
|
package/dist/frontend-ssr/assets/{TagCreateDialog-DUPMitlL.js → TagCreateDialog-6Gk7L3D-.js}
RENAMED
|
@@ -2,9 +2,9 @@ import { _n as action_cancel, ar as tags_new, bn as error_generic, ir as tags_ed
|
|
|
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-
|
|
6
|
-
import { t as Input } from "./input-
|
|
7
|
-
import { t as Label } from "./label-
|
|
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
|
|
@@ -29,11 +29,12 @@ function presignAttachment(documentId, file, fetcher) {
|
|
|
29
29
|
* already been PUT to storage. The backend verifies the object exists
|
|
30
30
|
* before inserting.
|
|
31
31
|
*/
|
|
32
|
-
function confirmAttachment(documentId, key, file, quotaReservationId, fetcher) {
|
|
32
|
+
function confirmAttachment(documentId, key, uploadToken, file, quotaReservationId, fetcher) {
|
|
33
33
|
return apiFetch(`/api/documents/${documentId}/attachments/confirm`, {
|
|
34
34
|
method: "POST",
|
|
35
35
|
body: {
|
|
36
36
|
key,
|
|
37
|
+
uploadToken,
|
|
37
38
|
filename: file.name,
|
|
38
39
|
contentType: file.type,
|
|
39
40
|
size: file.size,
|
|
@@ -68,16 +69,16 @@ async function uploadAttachment(documentId, file, fetcher) {
|
|
|
68
69
|
signal: putController.signal
|
|
69
70
|
});
|
|
70
71
|
} catch (error) {
|
|
71
|
-
await confirmAttachment(documentId, presign.key, file, presign.quotaReservationId, fetcher).catch(() => void 0);
|
|
72
|
+
await confirmAttachment(documentId, presign.key, presign.uploadToken, file, presign.quotaReservationId, fetcher).catch(() => void 0);
|
|
72
73
|
throw error;
|
|
73
74
|
} finally {
|
|
74
75
|
clearTimeout(putTimeout);
|
|
75
76
|
}
|
|
76
77
|
if (!putResponse.ok) {
|
|
77
|
-
await confirmAttachment(documentId, presign.key, file, presign.quotaReservationId, fetcher).catch(() => void 0);
|
|
78
|
+
await confirmAttachment(documentId, presign.key, presign.uploadToken, file, presign.quotaReservationId, fetcher).catch(() => void 0);
|
|
78
79
|
throw new Error(`Storage upload failed: ${putResponse.status} ${putResponse.statusText}`);
|
|
79
80
|
}
|
|
80
|
-
return confirmAttachment(documentId, presign.key, file, presign.quotaReservationId, fetcher);
|
|
81
|
+
return confirmAttachment(documentId, presign.key, presign.uploadToken, file, presign.quotaReservationId, fetcher);
|
|
81
82
|
}
|
|
82
83
|
function listAttachments(documentId, fetcher) {
|
|
83
84
|
return apiFetch(`/api/documents/${documentId}/attachments`, {}, fetcher);
|