@hiai-gg/docsmint 0.4.8 → 0.5.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/backend/src/lib/api-key-facade.ts +1 -0
- package/dist/backend/index.js +38379 -18500
- package/dist/backend-api-key-facade.js +772 -0
- package/dist/client.js +2 -7
- package/dist/frontend/{CategoryDialog-CxVyaBV5.js → CategoryDialog-DyytjQn6.js} +109 -108
- package/dist/frontend/ConfirmDialog-DgMTQBq4.js +134 -0
- package/dist/frontend/{CreateSnapshotDialog-BDgFTeFn.js → CreateSnapshotDialog-CXW4sCuf.js} +29 -29
- package/dist/frontend/{DatePicker-BZRBluzF.js → DatePicker-BkaaNS1l.js} +34 -34
- package/dist/frontend/{DeleteDialog-CvAr2WPu.js → DeleteDialog-8k6JYWCx.js} +3 -3
- package/dist/frontend/{FolderNode--l1g8bcL.js → FolderNode-DAGPgi-M.js} +8 -8
- package/dist/frontend/{FolderTreeSelector-CyB8y2Sm.js → FolderTreeSelector-BMB1MS9N.js} +3 -3
- package/dist/frontend/{Icon-CooFj4Ee.js → Icon-Db-o32_E.js} +1 -1
- package/dist/frontend/{SettingsDialog-BB7h7GWw.js → SettingsDialog-DEx1eEZm.js} +290 -290
- package/dist/frontend/ShareDialog-ChZogJtW.js +166 -0
- package/dist/frontend/Sidebar-BdB8CfXS.js +2037 -0
- package/dist/frontend/TagCreateDialog-Bb0-Vtzh.js +261 -0
- package/dist/frontend/api/attachments.js +1 -1
- package/dist/frontend/api/categories.d.ts +3 -3
- package/dist/frontend/api/categories.js +1 -1
- package/dist/frontend/api/documents.js +1 -1
- package/dist/frontend/api/share.js +1 -1
- package/dist/frontend/api/tags.js +1 -1
- package/dist/frontend/{api-keys-CpkrA8rD.js → api-keys-DIwAdYkg.js} +10 -10
- package/dist/frontend/app-shell.d.ts +5 -1
- package/dist/frontend/app-shell.js +83 -72
- package/dist/frontend/{attachments-BuILSs56.js → attachments-C2DBzU-r.js} +13 -13
- package/dist/frontend/{camera-iKXDOOWT.js → camera-CzCxBOpc.js} +2 -2
- package/dist/frontend/{categories-Drnns7N6.js → categories-X7gK8azc.js} +0 -2
- package/dist/frontend/{check-D-UuvBuh.js → check-BIi-Ghti.js} +2 -2
- package/dist/frontend/{chevron-down-CiPtYyFh.js → chevron-down-C2ft7XUV.js} +2 -2
- package/dist/frontend/{circle-check-tSPE1V6t.js → circle-check-BrqfiQH1.js} +2 -2
- package/dist/frontend/{clock-DJHbHZb8.js → clock-Dz86E4Kz.js} +2 -2
- package/dist/frontend/collaboration.d.ts +4 -2
- package/dist/frontend/collaboration.js +114 -89
- package/dist/frontend/components/category-dialog.js +1 -1
- package/dist/frontend/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend/components/delete-dialog.js +1 -1
- package/dist/frontend/components/editor/document-editor.js +1169 -1168
- package/dist/frontend/components/editor/document-title.js +2 -2
- package/dist/frontend/components/editor/markdown-toggle.js +4 -4
- package/dist/frontend/components/folder-node.js +1 -1
- package/dist/frontend/components/folder-tree-selector.js +1 -1
- package/dist/frontend/components/save-as-dialog.js +145 -144
- package/dist/frontend/components/settings.js +1 -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 +34 -34
- package/dist/frontend/{confirm-dialog-C4jTRbiS.js → confirm-dialog-CzmoZw3a.js} +20 -20
- package/dist/frontend/{copy-GppwRMjX.js → copy-CvCh4ZVt.js} +2 -2
- package/dist/frontend/dashboard.js +1025 -1011
- package/dist/frontend/{dialog-Bevp9mmM.js → dialog-Ce79C9fd.js} +1 -1
- package/dist/frontend/{dist-C3857Spp.js → dist-DQa_OHOa.js} +2 -2
- package/dist/frontend/{documents-Bc7b_MSZ.js → documents-CwCs1rA7.js} +52 -12
- package/dist/frontend/{dropdown-menu-CRSby3e9.js → dropdown-menu-Cre80-CJ.js} +2 -2
- package/dist/frontend/{folder-DeWhnD7O.js → folder-Cx60MRpi.js} +3 -3
- package/dist/frontend/i18n.js +3 -3
- package/dist/frontend/{messages-C5Q890i2.js → messages-DIovIZrK.js} +46 -44
- package/dist/frontend/{rotate-ccw-B4Q7brmV.js → rotate-ccw-ta4NosZ0.js} +2 -2
- package/dist/frontend/{route-context-BqQQ5c4i.js → route-context-DYQlUfzL.js} +14 -11
- package/dist/frontend/search.js +99 -99
- package/dist/frontend/{share-Cu7SSJuJ.js → share-D7JtkC85.js} +2 -2
- package/dist/frontend/{tag-HxRazVN_.js → tag-DhVFHMcV.js} +3 -3
- package/dist/frontend/{tag-store.svelte-CG7RrlDT.js → tag-store.svelte-ogVCMCbv.js} +1 -1
- package/dist/frontend/{tags-CtCV0Djo.js → tags-BdCaMGfj.js} +18 -18
- package/dist/frontend/{x-CzBsnJ2x.js → x-cfdlccjs.js} +2 -2
- package/dist/frontend-ssr/api/attachments.js +1 -1
- package/dist/frontend-ssr/api/categories.js +1 -1
- package/dist/frontend-ssr/api/documents.js +1 -1
- package/dist/frontend-ssr/api/share.js +1 -1
- package/dist/frontend-ssr/api/tags.js +1 -1
- package/dist/frontend-ssr/app-shell.js +30 -26
- package/dist/frontend-ssr/assets/{CategoryDialog-BcGW8-Kf.js → CategoryDialog-CLAGMZPz.js} +12 -10
- package/dist/frontend-ssr/assets/ConfirmDialog-BhAelejz.js +131 -0
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-1bROJ-Rn.js → CreateSnapshotDialog-DNAjd4eD.js} +2 -2
- package/dist/frontend-ssr/assets/{DatePicker-B1ML8OVz.js → DatePicker-Cp6Qmgdb.js} +17 -29
- package/dist/frontend-ssr/assets/{DeleteDialog-tBYaP0L3.js → DeleteDialog-DG9Lm38J.js} +2 -2
- package/dist/frontend-ssr/assets/{FolderNode-CpHrpOED.js → FolderNode-Ty6fMbDu.js} +5 -5
- package/dist/frontend-ssr/assets/{FolderTreeSelector-DZNZ2oI6.js → FolderTreeSelector-Bxi8EqMm.js} +8 -12
- package/dist/frontend-ssr/assets/{Icon-B0Zqppjo.js → Icon-QwirKi9Y.js} +16 -28
- package/dist/frontend-ssr/assets/{SettingsDialog-C2SMWJL8.js → SettingsDialog-BymUxBgg.js} +20 -27
- package/dist/frontend-ssr/assets/{ShareDialog-vMvJLRfn.js → ShareDialog-C-9VDKSz.js} +3 -1
- package/dist/frontend-ssr/assets/{Sidebar-DKqmwreh.js → Sidebar-DzbIUZFc.js} +45 -55
- package/dist/frontend-ssr/assets/{TagCreateDialog-B0DPEfmQ.js → TagCreateDialog-B7wDbVqG.js} +7 -5
- package/dist/frontend-ssr/assets/{api-keys-DFqX39MT.js → api-keys-DIbclwj5.js} +10 -10
- package/dist/frontend-ssr/assets/{attachments-CWBxE3Vz.js → attachments-CXgatN0B.js} +9 -9
- package/dist/frontend-ssr/assets/{camera-CdxscTw-.js → camera-D6s20LDi.js} +6 -10
- package/dist/frontend-ssr/assets/{categories-CTCtdv7V.js → categories-av9xjeg5.js} +0 -2
- package/dist/frontend-ssr/assets/{chevron-down-CSSNGNh_.js → chevron-down-CvqKATjM.js} +6 -10
- package/dist/frontend-ssr/assets/{chevron-right-B4p7Sk6X.js → chevron-right-DKD7WXjz.js} +6 -10
- package/dist/frontend-ssr/assets/{circle-check-CI1v4vYh.js → circle-check-CPS9dKEo.js} +6 -10
- package/dist/frontend-ssr/assets/{clock-IL-eX2di.js → clock-CzsE58TH.js} +6 -10
- package/dist/frontend-ssr/assets/{confirm-dialog-BCthVwUY.js → confirm-dialog-B3C0WeMn.js} +20 -32
- package/dist/frontend-ssr/assets/{copy-CjV57nGQ.js → copy-DkkCPkBL.js} +6 -10
- package/dist/frontend-ssr/assets/{documents-PObdTOiT.js → documents-CZ-wQohy.js} +58 -12
- package/dist/frontend-ssr/assets/{dropdown-menu-Bj5rbqbB.js → dropdown-menu-CGkf8-rb.js} +6 -10
- package/dist/frontend-ssr/assets/{folder-DChhG7qN.js → folder-DYIE-XPP.js} +6 -10
- package/dist/frontend-ssr/assets/{loader-circle-DZsrZ-er.js → loader-circle-CIEWGyfP.js} +6 -10
- package/dist/frontend-ssr/assets/{messages-CvqpZNJe.js → messages-D-auzk9H.js} +23 -1
- package/dist/frontend-ssr/assets/{rotate-ccw-BlgWwaiq.js → rotate-ccw-dJSqPyTd.js} +6 -10
- package/dist/frontend-ssr/assets/{route-context-uca_b2Px.js → route-context-BPRerEtZ.js} +11 -8
- package/dist/frontend-ssr/assets/{share-BTBJelxA.js → share-qTqvd6Lu.js} +2 -2
- package/dist/frontend-ssr/assets/{tag-GZEuGWk1.js → tag-BmiVU_Ej.js} +11 -19
- package/dist/frontend-ssr/assets/{tag-store.svelte-DvgUduhd.js → tag-store.svelte-BM1lUI_P.js} +1 -1
- package/dist/frontend-ssr/assets/{tags-BId2wdYd.js → tags-BQsI_6OW.js} +12 -12
- package/dist/frontend-ssr/collaboration.js +37 -12
- package/dist/frontend-ssr/components/category-dialog.js +1 -1
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend-ssr/components/delete-dialog.js +1 -1
- package/dist/frontend-ssr/components/editor/document-editor.js +108 -186
- package/dist/frontend-ssr/components/editor/document-title.js +1 -1
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +2 -2
- package/dist/frontend-ssr/components/folder-node.js +1 -1
- package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
- package/dist/frontend-ssr/components/save-as-dialog.js +7 -5
- 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 +19 -27
- package/dist/frontend-ssr/dashboard.js +78 -113
- package/dist/frontend-ssr/i18n.js +1 -1
- package/dist/frontend-ssr/search.js +15 -19
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/types.d.ts +1 -3
- package/dist/workspace.d.ts +0 -2
- package/dist/workspace.js +0 -2
- package/package.json +2 -2
- package/packages/cli/src/index.ts +1 -1
- package/packages/db/src/with-tenant.ts +2 -0
- package/packages/mcp-server/src/index.ts +1 -1
- package/dist/frontend/ConfirmDialog-NFGXRa3E.js +0 -214
- package/dist/frontend/ShareDialog-BUOkYSlw.js +0 -165
- package/dist/frontend/Sidebar-fbtYC3qs.js +0 -2037
- package/dist/frontend/TagCreateDialog-B9YZBNHi.js +0 -260
- package/dist/frontend-ssr/assets/ConfirmDialog-DjMFKc0V.js +0 -420
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as e } from "../Icon-
|
|
2
|
-
import { t } from "../camera-
|
|
3
|
-
import { t as n } from "../clock-
|
|
4
|
-
import { t as r } from "../rotate-ccw-
|
|
5
|
-
import { t as i } from "../circle-check-
|
|
6
|
-
import { n as a } from "../dist-
|
|
7
|
-
import {
|
|
1
|
+
import { t as e } from "../Icon-Db-o32_E.js";
|
|
2
|
+
import { t } from "../camera-CzCxBOpc.js";
|
|
3
|
+
import { t as n } from "../clock-Dz86E4Kz.js";
|
|
4
|
+
import { t as r } from "../rotate-ccw-ta4NosZ0.js";
|
|
5
|
+
import { t as i } from "../circle-check-BrqfiQH1.js";
|
|
6
|
+
import { n as a } from "../dist-DQa_OHOa.js";
|
|
7
|
+
import { $t as o, E as s, Jn as c, Kn as l, Qt as u, Xt as ee, Yn as d, Yt as f, Zt as p, cn as m, dn as h, fn as g, ln as _, or as v, qn as y, rr as b, un as x } from "../messages-DIovIZrK.js";
|
|
8
8
|
import { n as S, t as C } from "../client-GbtOH90i.js";
|
|
9
|
-
import { t as w } from "../ConfirmDialog-
|
|
10
|
-
import { t as T } from "../CreateSnapshotDialog-
|
|
9
|
+
import { t as w } from "../ConfirmDialog-DgMTQBq4.js";
|
|
10
|
+
import { t as T } from "../CreateSnapshotDialog-CXW4sCuf.js";
|
|
11
11
|
import "svelte/internal/disclose-version";
|
|
12
12
|
import * as E from "svelte/internal/client";
|
|
13
13
|
import "svelte/internal/flags/legacy";
|
|
14
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
14
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/history.svelte
|
|
15
15
|
function D(t, n) {
|
|
16
16
|
let r = E.legacy_rest_props(n, [
|
|
17
17
|
"children",
|
|
@@ -35,7 +35,7 @@ function D(t, n) {
|
|
|
35
35
|
}));
|
|
36
36
|
}
|
|
37
37
|
//#endregion
|
|
38
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
38
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/star.svelte
|
|
39
39
|
function O(t, n) {
|
|
40
40
|
let r = E.legacy_rest_props(n, [
|
|
41
41
|
"children",
|
|
@@ -75,7 +75,7 @@ function A(e, A) {
|
|
|
75
75
|
}), E.user_effect(() => {
|
|
76
76
|
E.get(I) || E.get(R) || E.get(L) !== null && E.set(L, null);
|
|
77
77
|
});
|
|
78
|
-
let V = E.derived(() => E.get(P) === "snapshots" ? E.get(j).filter((e) => e.isSnapshot === !0) : E.get(j)), fe = E.derived(() => E.get(j).reduce((e, t) => t.isSnapshot ? e + 1 : e, 0)), pe = E.derived(() => E.get(L)?.label ? `${
|
|
78
|
+
let V = E.derived(() => E.get(P) === "snapshots" ? E.get(j).filter((e) => e.isSnapshot === !0) : E.get(j)), fe = E.derived(() => E.get(j).reduce((e, t) => t.isSnapshot ? e + 1 : e, 0)), pe = E.derived(() => E.get(L)?.label ? `${_()} (${E.get(L).label})` : _());
|
|
79
79
|
function H(e) {
|
|
80
80
|
if (!e) return "";
|
|
81
81
|
let t = e.replace(/```[\s\S]*?```/g, "").replace(/[#*_`>~-]/g, "").replace(/\s+/g, " ").trim();
|
|
@@ -85,10 +85,10 @@ function A(e, A) {
|
|
|
85
85
|
let t = typeof e == "string" ? new Date(e) : e, n = Date.now() - t.getTime();
|
|
86
86
|
if (Number.isNaN(n)) return "";
|
|
87
87
|
let r = Math.floor(n / 6e4);
|
|
88
|
-
if (r < 1) return
|
|
89
|
-
if (r < 60) return
|
|
88
|
+
if (r < 1) return c({ count: 0 });
|
|
89
|
+
if (r < 60) return c({ count: r });
|
|
90
90
|
let i = Math.floor(r / 60);
|
|
91
|
-
return i < 24 ?
|
|
91
|
+
return i < 24 ? y({ count: i }) : l({ count: Math.floor(i / 24) });
|
|
92
92
|
}
|
|
93
93
|
function he(e) {
|
|
94
94
|
E.set(L, e, !0), E.set(z, null), E.set(I, !0);
|
|
@@ -106,7 +106,7 @@ function A(e, A) {
|
|
|
106
106
|
versionId: e.id
|
|
107
107
|
} }));
|
|
108
108
|
} catch (e) {
|
|
109
|
-
e instanceof C ? E.set(z, `${
|
|
109
|
+
e instanceof C ? E.set(z, `${f()}: ${e.message}`) : E.set(z, e instanceof Error ? e.message : v(), !0), console.error("Failed to restore version", e);
|
|
110
110
|
} finally {
|
|
111
111
|
E.set(R, !1);
|
|
112
112
|
}
|
|
@@ -135,9 +135,9 @@ function A(e, A) {
|
|
|
135
135
|
E.reset(i), E.reset(t), E.template_effect((e, o, s) => {
|
|
136
136
|
E.set_attribute(t, "aria-label", e), E.set_attribute(n, "aria-selected", E.get(P) === "all"), E.set_class(n, 1, `flex-1 px-2 py-1 transition-colors ${E.get(P) === "all" ? "bg-primary text-primary-foreground" : "bg-background text-muted-foreground hover:bg-accent"}`), E.set_text(r, `${o ?? ""} (${E.get(j).length ?? ""})`), E.set_attribute(i, "aria-selected", E.get(P) === "snapshots"), E.set_class(i, 1, `flex-1 px-2 py-1 transition-colors ${E.get(P) === "snapshots" ? "bg-primary text-primary-foreground" : "bg-background text-muted-foreground hover:bg-accent"}`), E.set_text(a, `${s ?? ""} (${E.get(fe) ?? ""})`);
|
|
137
137
|
}, [
|
|
138
|
-
() =>
|
|
139
|
-
() =>
|
|
140
|
-
() =>
|
|
138
|
+
() => o(),
|
|
139
|
+
() => o(),
|
|
140
|
+
() => u()
|
|
141
141
|
]), E.delegated("click", n, () => E.set(P, "all")), E.delegated("click", i, () => E.set(P, "snapshots")), E.append(e, t);
|
|
142
142
|
};
|
|
143
143
|
E.if(Z, (e) => {
|
|
@@ -147,19 +147,19 @@ function A(e, A) {
|
|
|
147
147
|
var t = te(), n = E.child(t);
|
|
148
148
|
a(n, { class: "h-3.5 w-3.5 animate-spin" });
|
|
149
149
|
var r = E.sibling(n, 2), i = E.child(r, !0);
|
|
150
|
-
E.reset(r), E.reset(t), E.template_effect((e) => E.set_text(i, e), [() =>
|
|
150
|
+
E.reset(r), E.reset(t), E.template_effect((e) => E.set_text(i, e), [() => d()]), E.append(e, t);
|
|
151
151
|
}, Te = (e) => {
|
|
152
152
|
var t = ne(), n = E.child(t, !0);
|
|
153
153
|
E.reset(t), E.template_effect(() => E.set_text(n, E.get(N))), E.append(e, t);
|
|
154
154
|
}, Ee = (e) => {
|
|
155
155
|
var t = re(), n = E.child(t, !0);
|
|
156
|
-
E.reset(t), E.template_effect((e) => E.set_text(n, e), [() =>
|
|
156
|
+
E.reset(t), E.template_effect((e) => E.set_text(n, e), [() => s()]), E.append(e, t);
|
|
157
157
|
}, De = (e) => {
|
|
158
158
|
var t = le();
|
|
159
159
|
E.each(t, 21, () => E.get(V), (e) => e.id, (e, t) => {
|
|
160
160
|
var a = ce(), o = E.child(a), s = (e) => {
|
|
161
161
|
{
|
|
162
|
-
let t = E.derived(() =>
|
|
162
|
+
let t = E.derived(() => p());
|
|
163
163
|
O(e, {
|
|
164
164
|
class: "mt-0.5 h-3.5 w-3.5 shrink-0 fill-amber-400 text-amber-500",
|
|
165
165
|
get "aria-label"() {
|
|
@@ -173,17 +173,17 @@ function A(e, A) {
|
|
|
173
173
|
E.if(o, (e) => {
|
|
174
174
|
E.get(t).isSnapshot ? e(s) : e(c, -1);
|
|
175
175
|
});
|
|
176
|
-
var l = E.sibling(o, 2), u = E.child(l), d = E.child(u),
|
|
176
|
+
var l = E.sibling(o, 2), u = E.child(l), d = E.child(u), f = E.child(d), m = (e) => {
|
|
177
177
|
var n = ie(), r = E.child(n, !0);
|
|
178
178
|
E.reset(n), E.template_effect(() => {
|
|
179
179
|
E.set_attribute(n, "title", E.get(t).label), E.set_text(r, E.get(t).label);
|
|
180
180
|
}), E.append(e, n);
|
|
181
181
|
};
|
|
182
|
-
E.if(
|
|
182
|
+
E.if(f, (e) => {
|
|
183
183
|
E.get(t).label && e(m);
|
|
184
184
|
});
|
|
185
|
-
var
|
|
186
|
-
E.reset(
|
|
185
|
+
var g = E.sibling(f, 2), _ = E.child(g, !0);
|
|
186
|
+
E.reset(g), E.reset(d);
|
|
187
187
|
var v = E.sibling(d, 2), y = E.child(v);
|
|
188
188
|
r(y, { class: "h-3 w-3" });
|
|
189
189
|
var b = E.sibling(y);
|
|
@@ -201,7 +201,7 @@ function A(e, A) {
|
|
|
201
201
|
};
|
|
202
202
|
E.if(o, (e) => {
|
|
203
203
|
E.get(t).description && e(s);
|
|
204
|
-
}), E.reset(n), E.template_effect((e) => E.set_text(a, ` ${e ?? ""}`), [() =>
|
|
204
|
+
}), E.reset(n), E.template_effect((e) => E.set_text(a, ` ${e ?? ""}`), [() => p()]), E.append(e, n);
|
|
205
205
|
};
|
|
206
206
|
E.if(S, (e) => {
|
|
207
207
|
E.get(t).isSnapshot && e(C);
|
|
@@ -219,12 +219,12 @@ function A(e, A) {
|
|
|
219
219
|
});
|
|
220
220
|
var D = E.sibling(w, 2), k = E.child(D, !0);
|
|
221
221
|
E.reset(D), E.reset(l), E.reset(a), E.template_effect((e, t, n, r, i, a) => {
|
|
222
|
-
E.set_text(
|
|
222
|
+
E.set_text(_, e), E.set_attribute(v, "title", t), E.set_attribute(v, "aria-label", n), E.set_text(b, ` ${r ?? ""}`), E.set_attribute(D, "title", i), E.set_text(k, a);
|
|
223
223
|
}, [
|
|
224
224
|
() => me(E.get(t).createdAt),
|
|
225
|
+
() => h(),
|
|
226
|
+
() => h(),
|
|
225
227
|
() => x(),
|
|
226
|
-
() => x(),
|
|
227
|
-
() => _(),
|
|
228
228
|
() => H(E.get(t).content),
|
|
229
229
|
() => H(E.get(t).content)
|
|
230
230
|
]), E.delegated("click", v, () => he(E.get(t))), E.append(e, a);
|
|
@@ -235,7 +235,7 @@ function A(e, A) {
|
|
|
235
235
|
}), E.reset(W);
|
|
236
236
|
var Q = E.sibling(W, 2);
|
|
237
237
|
{
|
|
238
|
-
let e = E.derived(() =>
|
|
238
|
+
let e = E.derived(() => h()), t = E.derived(() => x()), n = E.derived(() => b());
|
|
239
239
|
w(Q, {
|
|
240
240
|
get title() {
|
|
241
241
|
return E.get(e);
|
|
@@ -284,9 +284,9 @@ function A(e, A) {
|
|
|
284
284
|
E.set_text(be, e), Y.disabled = E.get(M), E.set_attribute(Y, "title", t), E.set_attribute(Y, "aria-label", n), E.set_text(xe, ` ${r ?? ""}`);
|
|
285
285
|
}, [
|
|
286
286
|
() => g(),
|
|
287
|
-
() =>
|
|
288
|
-
() =>
|
|
289
|
-
() =>
|
|
287
|
+
() => m(),
|
|
288
|
+
() => m(),
|
|
289
|
+
() => m()
|
|
290
290
|
]), E.delegated("click", Y, () => E.set(F, !0)), E.append(e, U), E.pop();
|
|
291
291
|
}
|
|
292
292
|
E.delegate(["click"]);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as e } from "./Icon-
|
|
2
|
-
import { t } from "./circle-check-
|
|
3
|
-
import { n } from "./dist-
|
|
4
|
-
import {
|
|
5
|
-
import { a as u, i as d, n as f, o as p, r as m, t as h } from "./dialog-
|
|
1
|
+
import { t as e } from "./Icon-Db-o32_E.js";
|
|
2
|
+
import { t } from "./circle-check-BrqfiQH1.js";
|
|
3
|
+
import { n } from "./dist-DQa_OHOa.js";
|
|
4
|
+
import { er as r, hi as i, ir as a, k as o, or as s, rr as c, vi as l } from "./messages-DIovIZrK.js";
|
|
5
|
+
import { a as u, i as d, n as f, o as p, r as m, t as h } from "./dialog-Ce79C9fd.js";
|
|
6
6
|
import { t as g } from "./input-BWlOML_m.js";
|
|
7
7
|
import { t as _ } from "./label-C2HfJNQ2.js";
|
|
8
|
-
import "./ConfirmDialog-
|
|
8
|
+
import "./ConfirmDialog-DgMTQBq4.js";
|
|
9
9
|
import "svelte/internal/disclose-version";
|
|
10
10
|
import * as v from "svelte/internal/client";
|
|
11
11
|
import "svelte/internal/flags/legacy";
|
|
12
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
12
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/file-text.svelte
|
|
13
13
|
function y(t, n) {
|
|
14
14
|
let r = v.legacy_rest_props(n, [
|
|
15
15
|
"children",
|
|
@@ -35,7 +35,7 @@ function y(t, n) {
|
|
|
35
35
|
}));
|
|
36
36
|
}
|
|
37
37
|
//#endregion
|
|
38
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
38
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/plus.svelte
|
|
39
39
|
function b(t, n) {
|
|
40
40
|
let r = v.legacy_rest_props(n, [
|
|
41
41
|
"children",
|
|
@@ -63,7 +63,7 @@ function D(e, y) {
|
|
|
63
63
|
v.user_effect(() => {
|
|
64
64
|
b() && (v.set(O, y.folder?.name ?? "", !0), v.set(k, null), v.set(j, null));
|
|
65
65
|
});
|
|
66
|
-
let M = v.derived(() => v.get(O).trim()), N = v.derived(() => y.mode === "edit" ?
|
|
66
|
+
let M = v.derived(() => v.get(O).trim()), N = v.derived(() => y.mode === "edit" ? i() : l()), P = v.derived(() => y.mode === "edit" ? a() : r());
|
|
67
67
|
async function F(e) {
|
|
68
68
|
if (e?.preventDefault(), !v.get(A)) {
|
|
69
69
|
if (v.get(M).length === 0) {
|
|
@@ -79,7 +79,7 @@ function D(e, y) {
|
|
|
79
79
|
let e = await y.onSave(v.get(M));
|
|
80
80
|
D() ? L(!0) : v.set(j, typeof e == "object" && e && "name" in e && typeof e.name == "string" ? e.name : v.get(M), !0);
|
|
81
81
|
} catch (e) {
|
|
82
|
-
console.error("FolderDialog: save failed", e), v.set(k, e instanceof Error ? e.message :
|
|
82
|
+
console.error("FolderDialog: save failed", e), v.set(k, e instanceof Error ? e.message : s(), !0);
|
|
83
83
|
} finally {
|
|
84
84
|
v.set(A, !1);
|
|
85
85
|
}
|
|
@@ -102,8 +102,8 @@ function D(e, y) {
|
|
|
102
102
|
b(e);
|
|
103
103
|
},
|
|
104
104
|
children: (e, r) => {
|
|
105
|
-
var a = E(),
|
|
106
|
-
f(
|
|
105
|
+
var a = E(), s = v.first_child(a);
|
|
106
|
+
f(s, {
|
|
107
107
|
children: (e, t) => {
|
|
108
108
|
var n = x(), r = v.first_child(n);
|
|
109
109
|
h(r, {
|
|
@@ -117,14 +117,14 @@ function D(e, y) {
|
|
|
117
117
|
children: (e, t) => {
|
|
118
118
|
v.next();
|
|
119
119
|
var n = v.text();
|
|
120
|
-
v.template_effect((e) => v.set_text(n, e), [() => y.mode === "edit" ?
|
|
120
|
+
v.template_effect((e) => v.set_text(n, e), [() => y.mode === "edit" ? i() : o()]), v.append(e, n);
|
|
121
121
|
},
|
|
122
122
|
$$slots: { default: !0 }
|
|
123
123
|
}), v.append(e, n);
|
|
124
124
|
},
|
|
125
125
|
$$slots: { default: !0 }
|
|
126
126
|
});
|
|
127
|
-
var l = v.sibling(
|
|
127
|
+
var l = v.sibling(s, 2), u = (e) => {
|
|
128
128
|
var n = S(), r = v.child(n), i = v.child(r);
|
|
129
129
|
t(i, { class: "mt-0.5 size-5 shrink-0 text-primary" });
|
|
130
130
|
var a = v.sibling(i, 2), o = v.sibling(v.child(a), 2), s = v.child(o);
|
|
@@ -136,14 +136,14 @@ function D(e, y) {
|
|
|
136
136
|
children: (e, t) => {
|
|
137
137
|
v.next();
|
|
138
138
|
var n = v.text();
|
|
139
|
-
v.template_effect((e) => v.set_text(n, e), [() =>
|
|
139
|
+
v.template_effect((e) => v.set_text(n, e), [() => o()]), v.append(e, n);
|
|
140
140
|
},
|
|
141
141
|
$$slots: { default: !0 }
|
|
142
142
|
});
|
|
143
|
-
var
|
|
143
|
+
var i = v.sibling(r, 2);
|
|
144
144
|
{
|
|
145
|
-
let e = v.derived(() =>
|
|
146
|
-
g(
|
|
145
|
+
let e = v.derived(() => o()), t = v.derived(() => v.get(k) ? "true" : void 0), n = v.derived(() => v.get(k) ? "folder-dialog-name-error" : void 0);
|
|
146
|
+
g(i, {
|
|
147
147
|
id: "folder-dialog-name",
|
|
148
148
|
name: "name",
|
|
149
149
|
type: "text",
|
|
@@ -170,11 +170,11 @@ function D(e, y) {
|
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
var
|
|
173
|
+
var a = v.sibling(i, 2), s = (e) => {
|
|
174
174
|
var t = C(), n = v.child(t, !0);
|
|
175
175
|
v.reset(t), v.template_effect(() => v.set_text(n, v.get(k))), v.append(e, t);
|
|
176
176
|
};
|
|
177
|
-
v.if(
|
|
177
|
+
v.if(a, (e) => {
|
|
178
178
|
v.get(k) && e(s);
|
|
179
179
|
}), v.reset(n), v.reset(t), v.event("submit", t, F), v.append(e, t);
|
|
180
180
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./Icon-
|
|
1
|
+
import { t as e } from "./Icon-Db-o32_E.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as t from "svelte/internal/client";
|
|
4
4
|
import "svelte/internal/flags/legacy";
|
|
5
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
5
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/copy.svelte
|
|
6
6
|
function n(n, r) {
|
|
7
7
|
let i = t.legacy_rest_props(r, [
|
|
8
8
|
"children",
|