@hiai-gg/docsmint 0.3.6 → 0.3.7
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/dist/backend/index.js +1 -1
- package/dist/frontend/CategoryDialog--rIE7FrH.js +580 -0
- package/dist/frontend/ConfirmDialog-Cpzyb55f.js +212 -0
- package/dist/frontend/CreateSnapshotDialog-CmkV-n2A.js +216 -0
- package/dist/frontend/DatePicker-Byynca7V.js +257 -0
- package/dist/frontend/DeleteDialog-ap6nOywZ.js +174 -0
- package/dist/frontend/FolderDialog-DmN_trV0.js +247 -0
- package/dist/frontend/FolderNode-C4B8a2fd.js +317 -0
- package/dist/frontend/FolderTreeSelector-D6ijiZTA.js +100 -0
- package/dist/frontend/Icon-DtNo0N1U.js +64 -0
- package/dist/frontend/SettingsDialog-2kTaTXAs.js +992 -0
- package/dist/frontend/ShareDialog-BBDGNF5n.js +165 -0
- package/dist/frontend/TagCreateDialog-DiLZnJo4.js +258 -0
- package/dist/frontend/api/attachments.d.ts +6 -0
- package/dist/frontend/api/attachments.js +2 -0
- package/dist/frontend/api/categories.js +1 -1
- package/dist/frontend/api/documents.js +1 -1
- package/dist/frontend/api/folders.js +1 -1
- package/dist/frontend/api/settings.js +1 -1
- package/dist/frontend/api/share.d.ts +5 -0
- package/dist/frontend/api/share.js +2 -0
- package/dist/frontend/api/tags.js +1 -1
- package/dist/frontend/api-keys-CpkrA8rD.js +35 -0
- package/dist/frontend/attachments-BuILSs56.js +50 -0
- package/dist/frontend/{settings-PCrOtied.js → auth-client-Cygmp1I2.js} +205 -265
- package/dist/frontend/awareness-snQ3RD9f.js +3714 -0
- package/dist/frontend/bundle-mjs-CP6Owz-8.js +1723 -0
- package/dist/frontend/camera-B7dAOd4s.js +28 -0
- package/dist/frontend/{categories-BE6ZpZl8.js → categories-izQovv2w.js} +1 -1
- package/dist/frontend/check-CDwRlG9T.js +24 -0
- package/dist/frontend/chevron-down-B7ZrjUmT.js +24 -0
- package/dist/frontend/circle-check-CDqeMB2d.js +28 -0
- package/dist/frontend/{client-C6QQGb0e.js → client-Bc5Fzx40.js} +833 -814
- package/dist/frontend/{client-B9hzI0W8.js → client-GbtOH90i.js} +1 -1
- package/dist/frontend/clipboard-Cgzxc0_R.js +16 -0
- package/dist/frontend/clock-Ck5Sn-Zl.js +28 -0
- package/dist/frontend/clsx-nmtDPO_P.js +16 -0
- package/dist/frontend/collaboration.d.ts +6 -0
- package/dist/frontend/collaboration.js +182 -0
- package/dist/frontend/components/category-dialog.d.ts +2 -0
- package/dist/frontend/components/category-dialog.js +2 -0
- package/dist/frontend/components/create-snapshot-dialog.d.ts +2 -0
- package/dist/frontend/components/create-snapshot-dialog.js +2 -0
- package/dist/frontend/components/delete-dialog.d.ts +2 -0
- package/dist/frontend/components/delete-dialog.js +2 -0
- package/dist/frontend/components/editor/document-editor.d.ts +3 -0
- package/dist/frontend/components/editor/document-editor.js +3021 -0
- package/dist/frontend/components/editor/document-title.d.ts +2 -0
- package/dist/frontend/components/editor/document-title.js +31 -0
- package/dist/frontend/components/editor/docx-serializer.d.ts +2 -0
- package/dist/frontend/components/editor/docx-serializer.js +14600 -0
- package/dist/frontend/components/editor/extensions.d.ts +2 -0
- package/dist/frontend/components/editor/extensions.js +2 -0
- package/dist/frontend/components/editor/markdown-toggle.d.ts +2 -0
- package/dist/frontend/components/editor/markdown-toggle.js +72 -0
- package/dist/frontend/components/editor/markdown.d.ts +1 -0
- package/dist/frontend/components/editor/markdown.js +2 -0
- package/dist/frontend/components/folder-node.d.ts +3 -0
- package/dist/frontend/components/folder-node.js +2 -0
- package/dist/frontend/components/folder-tree-selector.d.ts +2 -0
- package/dist/frontend/components/folder-tree-selector.js +2 -0
- package/dist/frontend/components/save-as-dialog.d.ts +2 -0
- package/dist/frontend/components/save-as-dialog.js +254 -0
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.d.ts +2 -0
- package/dist/frontend/components/share-dialog.js +2 -0
- package/dist/frontend/components/sidebar.js +1206 -3762
- package/dist/frontend/components/tag-create-dialog.d.ts +2 -0
- package/dist/frontend/components/tag-create-dialog.js +2 -0
- package/dist/frontend/components/version-history.d.ts +2 -0
- package/dist/frontend/components/version-history.js +293 -0
- package/dist/frontend/{context-DbnW5yib.js → context-BMD6XTPe.js} +0 -3
- package/dist/frontend/copy-CMAA6GP0.js +31 -0
- package/dist/frontend/dashboard.js +1148 -1224
- package/dist/frontend/{SettingsDialog-D4pgFD0D.js → db-ByrlYfaI.js} +923 -2002
- package/dist/frontend/dialog-BDkiG42a.js +213 -0
- package/dist/frontend/disclose-version-5I57E3LD.js +3 -0
- package/dist/frontend/dndzone-BzsOINtP.js +1199 -0
- package/dist/frontend/doc-tabs.d.ts +7 -0
- package/dist/frontend/doc-tabs.js +14 -0
- package/dist/frontend/document-drop-coordinator-C4xHMjwC.js +68 -0
- package/dist/frontend/document-drop-coordinator.d.ts +2 -0
- package/dist/frontend/document-drop-coordinator.js +2 -0
- package/dist/frontend/{documents-DFVS9SsL.js → documents-BsDkvzCm.js} +1 -1
- package/dist/frontend/editorExtensions-BMHvUbdk.js +27021 -0
- package/dist/frontend/ellipsis-vertical-BBuPldbW.js +519 -0
- package/dist/frontend/extension.js +6 -5
- package/dist/frontend/floating-layer-anchor-C51M4l6v.js +4513 -0
- package/dist/frontend/folder-TQjKY4yn.js +44 -0
- package/dist/frontend/folder-refresh.d.ts +8 -0
- package/dist/frontend/folder-refresh.js +2 -0
- package/dist/frontend/{folders-CGe9diAG.js → folders-CTuV_JtU.js} +1 -1
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/i18n.js +1 -1
- package/dist/frontend/identity-DyWeNzu_.js +69 -0
- package/dist/frontend/index-client-jobkrWVL.js +86 -0
- package/dist/frontend/input-CBI6p4Xl.js +23 -0
- package/dist/frontend/keyboard.d.ts +14 -0
- package/dist/frontend/keyboard.js +2 -0
- package/dist/frontend/keyboard.svelte-D7H8DihC.js +133 -0
- package/dist/frontend/label-C-GkhEp4.js +30 -0
- package/dist/frontend/loader-circle-Bk-WFz9g.js +267 -0
- package/dist/frontend/markdown-BwnyjITU.js +11 -0
- package/dist/frontend/messages-BpYaLbzE.js +1091 -0
- package/dist/frontend/offline/identity.d.ts +6 -0
- package/dist/frontend/offline/identity.js +2 -0
- package/dist/frontend/resolve-BG4HgzpN.js +19 -0
- package/dist/frontend/rolldown-runtime-CWhphoD1.js +23 -0
- package/dist/frontend/rotate-ccw-CleZtJ5D.js +24 -0
- package/dist/frontend/search.js +637 -628
- package/dist/frontend/select-value-CvrWRkXW.js +1436 -0
- package/dist/frontend/settings-blyobazp.js +62 -0
- package/dist/frontend/share-Cu7SSJuJ.js +28 -0
- package/dist/frontend/shared-document.js +41 -40
- package/dist/frontend/subfolders-refresh-store.svelte-BsheoQma.js +65 -0
- package/dist/frontend/{tag-C5xrg-bb.js → tag-Dx3SmucJ.js} +7 -7
- package/dist/frontend/tag-store.svelte-CIaF4sdZ.js +29 -0
- package/dist/frontend/{tags-DVXTut0p.js → tags-CtCV0Djo.js} +1 -1
- package/dist/frontend/textarea-Dfp78XlL.js +23 -0
- package/dist/frontend/theme.js +1 -1
- package/dist/frontend/{theme.svelte-ei0QxXa8.js → theme.svelte-CROg1Hi5.js} +7 -7
- package/dist/frontend/types.d.ts +6 -0
- package/dist/frontend/types.js +0 -0
- package/dist/frontend/utils/clipboard.d.ts +1 -0
- package/dist/frontend/utils/clipboard.js +2 -0
- package/dist/frontend/utils/dndzone.d.ts +4 -0
- package/dist/frontend/utils/dndzone.js +2 -0
- package/dist/frontend/utils-C0OW2678.js +20 -0
- package/dist/frontend/utils-D8kmM3ub.js +8 -0
- package/dist/frontend/utils.d.ts +4 -0
- package/dist/frontend/utils.js +2 -0
- package/dist/frontend/x-DaTdeDXv.js +24 -0
- package/package.json +109 -1
- package/packages/cli/src/index.ts +1 -1
- package/packages/mcp-server/src/index.ts +1 -1
- package/dist/frontend/DatePicker-BcMD49PV.js +0 -275
- package/dist/frontend/ShareDialog-Dzh7rV7J.js +0 -1317
- package/dist/frontend/input-ieWIt8I7.js +0 -257
- package/dist/frontend/messages-CTGAsqFu.js +0 -1106
- package/dist/frontend/resolve-Bl6xmJl_.js +0 -2068
- package/dist/frontend/tag-store.svelte-B3839FYq.js +0 -6152
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Component, ComponentType } from "svelte";
|
|
2
|
+
export interface DocTabPanelProps { documentId: string; content: string; contentJson: object | undefined; }
|
|
3
|
+
export interface DocTabDefinition { id: string; label: string; component: Component<DocTabPanelProps>; order?: number; icon?: ComponentType; disabled?: boolean; }
|
|
4
|
+
export declare const docTabRegistry: DocTabDefinition[];
|
|
5
|
+
export declare function createDocTabRegistry(initial?: readonly DocTabDefinition[]): DocTabDefinition[];
|
|
6
|
+
export declare function registerDocTabIn(registry: DocTabDefinition[], tab: DocTabDefinition): void;
|
|
7
|
+
export declare function registerDocTab(tab: DocTabDefinition): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { tt as e } from "./client-Bc5Fzx40.js";
|
|
2
|
+
//#region src/lib/stores/doc-tab-registry.svelte.ts
|
|
3
|
+
var t = e([]);
|
|
4
|
+
function n(e = []) {
|
|
5
|
+
return [...e];
|
|
6
|
+
}
|
|
7
|
+
function r(e, t) {
|
|
8
|
+
e.find((e) => e.id === t.id) || e.push(t);
|
|
9
|
+
}
|
|
10
|
+
function i(e) {
|
|
11
|
+
r(t, e);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { n as createDocTabRegistry, t as docTabRegistry, i as registerDocTab, r as registerDocTabIn };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
//#region src/lib/components/sidebar/document-drop-coordinator.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = /* @__PURE__ */ new Map();
|
|
4
|
+
return function(n, r, i) {
|
|
5
|
+
let a = t.get(n);
|
|
6
|
+
a || (a = {
|
|
7
|
+
chain: Promise.resolve(),
|
|
8
|
+
confirmed: { ...i },
|
|
9
|
+
generation: 0
|
|
10
|
+
}, t.set(n, a));
|
|
11
|
+
let o = {
|
|
12
|
+
generation: ++a.generation,
|
|
13
|
+
placement: { ...r },
|
|
14
|
+
token: e.optimistic(n, r)
|
|
15
|
+
}, s = a.chain.then(async () => {
|
|
16
|
+
try {
|
|
17
|
+
await e.patch(n, o.placement), a.confirmed = { ...o.placement }, e.acknowledge(n, o.token), e.refresh && e.refresh().catch(e.onRefreshError ?? (() => void 0));
|
|
18
|
+
} catch (t) {
|
|
19
|
+
throw e.acknowledge(n, o.token), o.generation === a.generation && e.rollback(n, a.confirmed), e.onError(t), t;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return a.chain = s.catch(() => void 0), s;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function t(e) {
|
|
26
|
+
let t = e.defer ?? ((e) => setTimeout(e, 0)), n = e.cancel ?? clearTimeout, r = e.expire ?? ((e) => setTimeout(e, 1e3)), i = e.cancelExpire ?? clearTimeout, a;
|
|
27
|
+
function o() {
|
|
28
|
+
a?.pending && n(a.pending), a?.expiry && i(a.expiry), a = void 0;
|
|
29
|
+
}
|
|
30
|
+
function s(e) {
|
|
31
|
+
return a?.id === e ? a : void 0;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
pendingId(e) {
|
|
35
|
+
return a && !a.resolved && a.token === e ? a.id : null;
|
|
36
|
+
},
|
|
37
|
+
begin(e, t) {
|
|
38
|
+
a?.id === e && a.token === t || (o(), a = {
|
|
39
|
+
id: e,
|
|
40
|
+
token: t,
|
|
41
|
+
resolved: !1,
|
|
42
|
+
pending: null,
|
|
43
|
+
expiry: null
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
end(e, t) {
|
|
47
|
+
let n = a;
|
|
48
|
+
!n || n.id !== e || n.token !== t || n.resolved || n.expiry || (n.expiry = r(() => {
|
|
49
|
+
a === n && !n.resolved && o();
|
|
50
|
+
}));
|
|
51
|
+
},
|
|
52
|
+
cancel() {
|
|
53
|
+
o();
|
|
54
|
+
},
|
|
55
|
+
zone(r, o) {
|
|
56
|
+
let c = s(r);
|
|
57
|
+
!c || c.resolved || (c.pending && n(c.pending), c.pending = t(() => {
|
|
58
|
+
a === c && !c.resolved && (c.pending = null, c.expiry &&= (i(c.expiry), null), c.resolved = !0, e.persist(r, o));
|
|
59
|
+
}));
|
|
60
|
+
},
|
|
61
|
+
header(t, r) {
|
|
62
|
+
let a = s(t);
|
|
63
|
+
!a || a.resolved || (a.pending && n(a.pending), a.pending = null, a.expiry && i(a.expiry), a.expiry = null, a.resolved = !0, e.persist(t, r));
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
export { e as n, t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export interface SidebarDocumentPlacement { folderId: string | null; categoryId: string | null; }
|
|
2
|
+
export declare function createDocumentDropCoordinator(options: { persist(id: string, placement: SidebarDocumentPlacement): void; }): { pendingId(token: number): string | null; begin(id: string, token: number): void; end(id: string, token: number): void; cancel(): void; zone(id: string, placement: SidebarDocumentPlacement): void; header(id: string, placement: SidebarDocumentPlacement): void; };
|