@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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Mi as e, ji as t } from "../../messages-DIovIZrK.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as n from "svelte/internal/client";
|
|
4
4
|
//#region src/lib/components/editor/DocumentTitle.svelte
|
|
@@ -22,7 +22,7 @@ function i(i, a) {
|
|
|
22
22
|
let p;
|
|
23
23
|
n.template_effect((e, t) => {
|
|
24
24
|
p = n.set_class(f, 1, "title-input svelte-vc365t", null, p, { focused: n.get(c) }), n.set_attribute(f, "placeholder", e), n.set_attribute(f, "aria-label", t);
|
|
25
|
-
}, [() =>
|
|
25
|
+
}, [() => e(), () => t()]), n.event("focus", f, d), n.event("blur", f, u), n.delegated("keydown", f, (e) => {
|
|
26
26
|
e.key === "Enter" && (e.preventDefault(), e.target.blur()), e.key === "Escape" && (n.set(l, o()), e.target.blur());
|
|
27
27
|
}), n.bind_value(f, () => n.get(l), (e) => n.set(l, e)), n.append(i, f), n.pop();
|
|
28
28
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../check-
|
|
2
|
-
import { t } from "../../copy-
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "../../check-BIi-Ghti.js";
|
|
2
|
+
import { t } from "../../copy-CvCh4ZVt.js";
|
|
3
|
+
import { mn as n, pn as r } from "../../messages-DIovIZrK.js";
|
|
4
4
|
import { t as i } from "../../markdown-BwnyjITU.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
6
6
|
import * as a from "svelte/internal/client";
|
|
@@ -55,7 +55,7 @@ function l(l, u) {
|
|
|
55
55
|
var E = a.sibling(S, 2);
|
|
56
56
|
a.remove_textarea_child(E), a.bind_this(E, (e) => a.set(h, e), () => a.get(h)), a.reset(x), a.bind_this(x, (e) => a.set(m, e), () => a.get(m)), a.template_effect((e, t) => {
|
|
57
57
|
a.set_value(E, d()), a.set_attribute(E, "placeholder", e), a.set_attribute(E, "aria-label", t);
|
|
58
|
-
}, [() =>
|
|
58
|
+
}, [() => n(), () => r()]), a.delegated("click", S, b), a.delegated("input", E, y), a.delegated("keydown", E, (e) => {
|
|
59
59
|
if (e.key === "Tab") {
|
|
60
60
|
e.preventDefault();
|
|
61
61
|
let t = e.target, n = t.selectionStart, r = t.selectionEnd;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../FolderNode
|
|
1
|
+
import { t as e } from "../FolderNode-DAGPgi-M.js";
|
|
2
2
|
export { e as FolderNode };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../FolderTreeSelector-
|
|
1
|
+
import { t as e } from "../FolderTreeSelector-BMB1MS9N.js";
|
|
2
2
|
export { e as FolderTreeSelector };
|
|
@@ -1,272 +1,273 @@
|
|
|
1
|
-
import { t as e } from "../chevron-down-
|
|
2
|
-
import { t } from "../FolderTreeSelector-
|
|
3
|
-
import { n } from "../dist-
|
|
4
|
-
import {
|
|
5
|
-
import { a
|
|
6
|
-
import { t as d } from "../
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { t as e } from "../chevron-down-C2ft7XUV.js";
|
|
2
|
+
import { t } from "../FolderTreeSelector-BMB1MS9N.js";
|
|
3
|
+
import { n } from "../dist-DQa_OHOa.js";
|
|
4
|
+
import { ir as r, rr as i } from "../messages-DIovIZrK.js";
|
|
5
|
+
import { a } from "../route-context-DYQlUfzL.js";
|
|
6
|
+
import { a as o, i as s, n as c, o as l, r as u, t as d } from "../dialog-Ce79C9fd.js";
|
|
7
|
+
import { t as f } from "../label-C2HfJNQ2.js";
|
|
8
|
+
import { i as p } from "../categories-X7gK8azc.js";
|
|
9
|
+
import { a as m, i as h, n as g, r as _, t as v } from "../select-value-GXwx90Pr.js";
|
|
10
|
+
import { s as y } from "../folders-ONG03Dkv.js";
|
|
11
|
+
import { d as b } from "../subfolders-refresh-store.svelte-B2dKVmgz.js";
|
|
11
12
|
import "svelte/internal/disclose-version";
|
|
12
|
-
import * as
|
|
13
|
+
import * as x from "svelte/internal/client";
|
|
13
14
|
//#region src/lib/components/SaveAsDialog.svelte
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
let
|
|
18
|
-
Root:
|
|
19
|
-
Content:
|
|
20
|
-
Item:
|
|
21
|
-
Trigger:
|
|
22
|
-
Value:
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
var S = x.from_html("<!> <!>", 1), C = x.from_html("<div class=\"flex items-center justify-center py-6\"><!></div>"), w = x.from_html("<p class=\"text-sm text-destructive\" role=\"alert\"> </p>"), T = x.from_html("<form class=\"space-y-4 py-2\"><!> <div class=\"space-y-2\"><!> <input id=\"save-as-title\" type=\"text\" placeholder=\"Enter new document title\" required=\"\" class=\"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\"/></div> <div class=\"space-y-2\"><!> <!></div> <div class=\"space-y-2\"><!> <!></div></form>"), E = x.from_html("<!> ", 1), D = x.from_html("<!> <!> <!>", 1);
|
|
16
|
+
function O(O, k) {
|
|
17
|
+
x.push(k, !0);
|
|
18
|
+
let A = {
|
|
19
|
+
Root: m,
|
|
20
|
+
Content: h,
|
|
21
|
+
Item: _,
|
|
22
|
+
Trigger: g,
|
|
23
|
+
Value: v
|
|
24
|
+
}, j = a(), M = x.prop(k, "open", 15, !1), N = x.prop(k, "initialTitle", 3, ""), P = x.prop(k, "initialParentId", 3, null), F = x.prop(k, "initialCategoryId", 3, null), I = x.state(x.proxy([])), L = x.state(x.proxy([])), R = x.state(!1), z = x.state(!1), B = x.state(null), V = x.state(""), H = x.state(null), U = x.state(void 0);
|
|
25
|
+
x.user_effect(() => {
|
|
26
|
+
M() && (x.set(V, N() ? `${N()} (Copy)` : "Untitled (Copy)", !0), x.set(H, P()), x.set(U, F() || "null", !0), x.set(B, null), W());
|
|
26
27
|
});
|
|
27
|
-
async function
|
|
28
|
-
|
|
28
|
+
async function W() {
|
|
29
|
+
x.set(R, !0);
|
|
29
30
|
try {
|
|
30
|
-
let [e, t] = await Promise.all([
|
|
31
|
-
|
|
31
|
+
let [e, t] = await Promise.all([p(j.fetch), y(null, !0, j.fetch)]);
|
|
32
|
+
x.set(L, e, !0), x.set(I, t, !0);
|
|
32
33
|
} catch (e) {
|
|
33
|
-
console.error("Failed to load SaveAsDialog options", e),
|
|
34
|
+
console.error("Failed to load SaveAsDialog options", e), x.set(B, "Failed to load folders or categories");
|
|
34
35
|
} finally {
|
|
35
|
-
|
|
36
|
+
x.set(R, !1);
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
|
-
async function
|
|
39
|
-
if (e?.preventDefault(), !
|
|
40
|
-
|
|
39
|
+
async function G(e) {
|
|
40
|
+
if (e?.preventDefault(), !x.get(V).trim()) {
|
|
41
|
+
x.set(B, "Title cannot be empty");
|
|
41
42
|
return;
|
|
42
43
|
}
|
|
43
|
-
if (!
|
|
44
|
-
|
|
44
|
+
if (!x.get(z)) {
|
|
45
|
+
x.set(z, !0);
|
|
45
46
|
try {
|
|
46
|
-
if (
|
|
47
|
-
let e =
|
|
48
|
-
await
|
|
47
|
+
if (k.onSave) {
|
|
48
|
+
let e = x.get(H) === "" || x.get(H) === "null" ? null : x.get(H), t = x.get(U) === "" || x.get(U) === "null" || x.get(U) === void 0 ? null : x.get(U);
|
|
49
|
+
await k.onSave(x.get(V).trim(), e, t);
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
+
b(), M(!1);
|
|
51
52
|
} catch (e) {
|
|
52
|
-
console.error("Failed to duplicate item", e),
|
|
53
|
+
console.error("Failed to duplicate item", e), x.set(B, e instanceof Error ? e.message : "Failed to duplicate item", !0);
|
|
53
54
|
} finally {
|
|
54
|
-
|
|
55
|
+
x.set(z, !1);
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
-
|
|
59
|
+
function K() {
|
|
60
|
+
x.get(z) || (M(!1), k.onClose?.());
|
|
60
61
|
}
|
|
61
|
-
|
|
62
|
+
o(O, {
|
|
62
63
|
onOpenChange: (e) => {
|
|
63
|
-
e ||
|
|
64
|
+
e || K();
|
|
64
65
|
},
|
|
65
66
|
get open() {
|
|
66
|
-
return
|
|
67
|
+
return M();
|
|
67
68
|
},
|
|
68
69
|
set open(e) {
|
|
69
|
-
|
|
70
|
+
M(e);
|
|
70
71
|
},
|
|
71
|
-
children: (a,
|
|
72
|
-
var p =
|
|
73
|
-
|
|
72
|
+
children: (a, o) => {
|
|
73
|
+
var p = D(), m = x.first_child(p);
|
|
74
|
+
c(m, {
|
|
74
75
|
children: (e, t) => {
|
|
75
|
-
var n =
|
|
76
|
-
|
|
76
|
+
var n = S(), r = x.first_child(n);
|
|
77
|
+
d(r, {
|
|
77
78
|
children: (e, t) => {
|
|
78
|
-
|
|
79
|
-
var n =
|
|
80
|
-
|
|
79
|
+
x.next();
|
|
80
|
+
var n = x.text("Save as Copy");
|
|
81
|
+
x.append(e, n);
|
|
81
82
|
},
|
|
82
83
|
$$slots: { default: !0 }
|
|
83
|
-
}),
|
|
84
|
+
}), s(x.sibling(r, 2), {
|
|
84
85
|
children: (e, t) => {
|
|
85
|
-
|
|
86
|
-
var n =
|
|
87
|
-
|
|
86
|
+
x.next();
|
|
87
|
+
var n = x.text("Create a copy of this document with a new title, folder, and category.");
|
|
88
|
+
x.append(e, n);
|
|
88
89
|
},
|
|
89
90
|
$$slots: { default: !0 }
|
|
90
|
-
}),
|
|
91
|
+
}), x.append(e, n);
|
|
91
92
|
},
|
|
92
93
|
$$slots: { default: !0 }
|
|
93
94
|
});
|
|
94
|
-
var h =
|
|
95
|
-
var t =
|
|
96
|
-
n(
|
|
95
|
+
var h = x.sibling(m, 2), g = (e) => {
|
|
96
|
+
var t = C();
|
|
97
|
+
n(x.child(t), { class: "size-6 animate-spin text-muted-foreground" }), x.reset(t), x.append(e, t);
|
|
97
98
|
}, _ = (n) => {
|
|
98
|
-
var r =
|
|
99
|
-
var t =
|
|
100
|
-
|
|
99
|
+
var r = T(), i = x.child(r), a = (e) => {
|
|
100
|
+
var t = w(), n = x.child(t, !0);
|
|
101
|
+
x.reset(t), x.template_effect(() => x.set_text(n, x.get(B))), x.append(e, t);
|
|
101
102
|
};
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
x.if(i, (e) => {
|
|
104
|
+
x.get(B) && e(a);
|
|
104
105
|
});
|
|
105
|
-
var o =
|
|
106
|
-
|
|
106
|
+
var o = x.sibling(i, 2), s = x.child(o);
|
|
107
|
+
f(s, {
|
|
107
108
|
for: "save-as-title",
|
|
108
109
|
children: (e, t) => {
|
|
109
|
-
|
|
110
|
-
var n =
|
|
111
|
-
|
|
110
|
+
x.next();
|
|
111
|
+
var n = x.text("New Title");
|
|
112
|
+
x.append(e, n);
|
|
112
113
|
},
|
|
113
114
|
$$slots: { default: !0 }
|
|
114
115
|
});
|
|
115
|
-
var c =
|
|
116
|
-
|
|
117
|
-
var l =
|
|
118
|
-
|
|
116
|
+
var c = x.sibling(s, 2);
|
|
117
|
+
x.remove_input_defaults(c), x.reset(o);
|
|
118
|
+
var l = x.sibling(o, 2), u = x.child(l);
|
|
119
|
+
f(u, {
|
|
119
120
|
children: (e, t) => {
|
|
120
|
-
|
|
121
|
-
var n =
|
|
122
|
-
|
|
121
|
+
x.next();
|
|
122
|
+
var n = x.text("Parent Folder");
|
|
123
|
+
x.append(e, n);
|
|
123
124
|
},
|
|
124
125
|
$$slots: { default: !0 }
|
|
125
|
-
}), t(
|
|
126
|
+
}), t(x.sibling(u, 2), {
|
|
126
127
|
get folders() {
|
|
127
|
-
return
|
|
128
|
+
return x.get(I);
|
|
128
129
|
},
|
|
129
130
|
get selectedId() {
|
|
130
|
-
return
|
|
131
|
+
return x.get(H);
|
|
131
132
|
},
|
|
132
133
|
set selectedId(e) {
|
|
133
|
-
|
|
134
|
+
x.set(H, e, !0);
|
|
134
135
|
}
|
|
135
|
-
}),
|
|
136
|
-
var
|
|
137
|
-
|
|
136
|
+
}), x.reset(l);
|
|
137
|
+
var d = x.sibling(l, 2), p = x.child(d);
|
|
138
|
+
f(p, {
|
|
138
139
|
for: "save-as-category",
|
|
139
140
|
children: (e, t) => {
|
|
140
|
-
|
|
141
|
-
var n =
|
|
142
|
-
|
|
141
|
+
x.next();
|
|
142
|
+
var n = x.text("Category");
|
|
143
|
+
x.append(e, n);
|
|
143
144
|
},
|
|
144
145
|
$$slots: { default: !0 }
|
|
145
146
|
});
|
|
146
|
-
var m =
|
|
147
|
-
|
|
147
|
+
var m = x.sibling(p, 2);
|
|
148
|
+
x.component(m, () => A.Root, (t, n) => {
|
|
148
149
|
n(t, {
|
|
149
150
|
type: "single",
|
|
150
151
|
get value() {
|
|
151
|
-
return
|
|
152
|
+
return x.get(U);
|
|
152
153
|
},
|
|
153
154
|
set value(e) {
|
|
154
|
-
|
|
155
|
+
x.set(U, e, !0);
|
|
155
156
|
},
|
|
156
157
|
children: (t, n) => {
|
|
157
|
-
var r =
|
|
158
|
-
|
|
158
|
+
var r = S(), i = x.first_child(r);
|
|
159
|
+
x.component(i, () => A.Trigger, (t, n) => {
|
|
159
160
|
n(t, {
|
|
160
161
|
class: "w-full text-foreground flex items-center justify-between bg-background border border-input px-3 py-2 text-sm rounded-md shadow-sm",
|
|
161
162
|
children: (t, n) => {
|
|
162
|
-
var r =
|
|
163
|
-
|
|
163
|
+
var r = S(), i = x.first_child(r);
|
|
164
|
+
x.component(i, () => A.Value, (e, t) => {
|
|
164
165
|
t(e, {
|
|
165
166
|
placeholder: "Select a category...",
|
|
166
167
|
children: (e, t) => {
|
|
167
|
-
|
|
168
|
-
var n =
|
|
169
|
-
|
|
168
|
+
x.next();
|
|
169
|
+
var n = x.text();
|
|
170
|
+
x.template_effect((e) => x.set_text(n, e), [() => x.get(U) && x.get(U) !== "null" ? x.get(L).find((e) => e.id === x.get(U))?.name ?? "Uncategorized" : "Uncategorized"]), x.append(e, n);
|
|
170
171
|
},
|
|
171
172
|
$$slots: { default: !0 }
|
|
172
173
|
});
|
|
173
|
-
}), e(
|
|
174
|
+
}), e(x.sibling(i, 2), { class: "size-4 opacity-50" }), x.append(t, r);
|
|
174
175
|
},
|
|
175
176
|
$$slots: { default: !0 }
|
|
176
177
|
});
|
|
177
178
|
});
|
|
178
|
-
var a =
|
|
179
|
-
|
|
179
|
+
var a = x.sibling(i, 2);
|
|
180
|
+
x.component(a, () => A.Content, (e, t) => {
|
|
180
181
|
t(e, {
|
|
181
182
|
class: "w-[var(--bits-select-trigger-width)]",
|
|
182
183
|
children: (e, t) => {
|
|
183
|
-
var n =
|
|
184
|
-
|
|
184
|
+
var n = S(), r = x.first_child(n);
|
|
185
|
+
x.component(r, () => A.Item, (e, t) => {
|
|
185
186
|
t(e, {
|
|
186
187
|
value: "null",
|
|
187
188
|
children: (e, t) => {
|
|
188
|
-
|
|
189
|
-
var n =
|
|
190
|
-
|
|
189
|
+
x.next();
|
|
190
|
+
var n = x.text("Uncategorized");
|
|
191
|
+
x.append(e, n);
|
|
191
192
|
},
|
|
192
193
|
$$slots: { default: !0 }
|
|
193
194
|
});
|
|
194
195
|
});
|
|
195
|
-
var i =
|
|
196
|
-
|
|
197
|
-
var n =
|
|
198
|
-
|
|
196
|
+
var i = x.sibling(r, 2);
|
|
197
|
+
x.each(i, 17, () => x.get(L), (e) => e.id, (e, t) => {
|
|
198
|
+
var n = x.comment(), r = x.first_child(n);
|
|
199
|
+
x.component(r, () => A.Item, (e, n) => {
|
|
199
200
|
n(e, {
|
|
200
201
|
get value() {
|
|
201
|
-
return
|
|
202
|
+
return x.get(t).id;
|
|
202
203
|
},
|
|
203
204
|
children: (e, n) => {
|
|
204
|
-
|
|
205
|
-
var r =
|
|
206
|
-
|
|
205
|
+
x.next();
|
|
206
|
+
var r = x.text();
|
|
207
|
+
x.template_effect(() => x.set_text(r, x.get(t).name)), x.append(e, r);
|
|
207
208
|
},
|
|
208
209
|
$$slots: { default: !0 }
|
|
209
210
|
});
|
|
210
|
-
}),
|
|
211
|
-
}),
|
|
211
|
+
}), x.append(e, n);
|
|
212
|
+
}), x.append(e, n);
|
|
212
213
|
},
|
|
213
214
|
$$slots: { default: !0 }
|
|
214
215
|
});
|
|
215
|
-
}),
|
|
216
|
+
}), x.append(t, r);
|
|
216
217
|
},
|
|
217
218
|
$$slots: { default: !0 }
|
|
218
219
|
});
|
|
219
|
-
}),
|
|
220
|
+
}), x.reset(d), x.reset(r), x.event("submit", r, G), x.bind_value(c, () => x.get(V), (e) => x.set(V, e)), x.append(n, r);
|
|
220
221
|
};
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}),
|
|
222
|
+
x.if(h, (e) => {
|
|
223
|
+
x.get(R) ? e(g) : e(_, -1);
|
|
224
|
+
}), u(x.sibling(h, 2), {
|
|
224
225
|
class: "mt-4",
|
|
225
226
|
children: (e, t) => {
|
|
226
|
-
var a =
|
|
227
|
-
|
|
227
|
+
var a = S(), o = x.first_child(a);
|
|
228
|
+
l(o, {
|
|
228
229
|
variant: "outline",
|
|
229
230
|
type: "button",
|
|
230
|
-
onclick:
|
|
231
|
+
onclick: K,
|
|
231
232
|
get disabled() {
|
|
232
|
-
return
|
|
233
|
+
return x.get(z);
|
|
233
234
|
},
|
|
234
235
|
children: (e, t) => {
|
|
235
|
-
|
|
236
|
-
var n =
|
|
237
|
-
|
|
236
|
+
x.next();
|
|
237
|
+
var n = x.text();
|
|
238
|
+
x.template_effect((e) => x.set_text(n, e), [() => i()]), x.append(e, n);
|
|
238
239
|
},
|
|
239
240
|
$$slots: { default: !0 }
|
|
240
241
|
});
|
|
241
|
-
var s =
|
|
242
|
+
var s = x.sibling(o, 2);
|
|
242
243
|
{
|
|
243
|
-
let e =
|
|
244
|
-
|
|
244
|
+
let e = x.derived(() => x.get(z) || x.get(R));
|
|
245
|
+
l(s, {
|
|
245
246
|
type: "button",
|
|
246
|
-
onclick:
|
|
247
|
+
onclick: G,
|
|
247
248
|
get disabled() {
|
|
248
|
-
return
|
|
249
|
+
return x.get(e);
|
|
249
250
|
},
|
|
250
251
|
children: (e, t) => {
|
|
251
|
-
var
|
|
252
|
+
var i = E(), a = x.first_child(i), o = (e) => {
|
|
252
253
|
n(e, { class: "mr-1 size-4 animate-spin" });
|
|
253
254
|
};
|
|
254
|
-
|
|
255
|
-
|
|
255
|
+
x.if(a, (e) => {
|
|
256
|
+
x.get(z) && e(o);
|
|
256
257
|
});
|
|
257
|
-
var s =
|
|
258
|
-
|
|
258
|
+
var s = x.sibling(a);
|
|
259
|
+
x.template_effect((e) => x.set_text(s, ` ${e ?? ""}`), [() => r()]), x.append(e, i);
|
|
259
260
|
},
|
|
260
261
|
$$slots: { default: !0 }
|
|
261
262
|
});
|
|
262
263
|
}
|
|
263
|
-
|
|
264
|
+
x.append(e, a);
|
|
264
265
|
},
|
|
265
266
|
$$slots: { default: !0 }
|
|
266
|
-
}),
|
|
267
|
+
}), x.append(a, p);
|
|
267
268
|
},
|
|
268
269
|
$$slots: { default: !0 }
|
|
269
|
-
}),
|
|
270
|
+
}), x.pop();
|
|
270
271
|
}
|
|
271
272
|
//#endregion
|
|
272
|
-
export {
|
|
273
|
+
export { O as SaveAsDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../SettingsDialog-
|
|
1
|
+
import { t as e } from "../SettingsDialog-DEx1eEZm.js";
|
|
2
2
|
export { e as SettingsDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../ShareDialog-
|
|
1
|
+
import { t as e } from "../ShareDialog-ChZogJtW.js";
|
|
2
2
|
export { e as ShareDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../Sidebar-
|
|
1
|
+
import { t as e } from "../Sidebar-BdB8CfXS.js";
|
|
2
2
|
export { e as Sidebar };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../TagCreateDialog-
|
|
1
|
+
import { t as e } from "../TagCreateDialog-Bb0-Vtzh.js";
|
|
2
2
|
export { e as TagCreateDialog };
|