@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,44 @@
|
|
|
1
|
+
import "./disclose-version-5I57E3LD.js";
|
|
2
|
+
import { $ as e, A as t, S as n, i as r, j as i, t as a } from "./client-Bc5Fzx40.js";
|
|
3
|
+
import { t as o } from "./Icon-DtNo0N1U.js";
|
|
4
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/chevron-right.svelte
|
|
5
|
+
function s(s, c) {
|
|
6
|
+
let l = a(c, [
|
|
7
|
+
"children",
|
|
8
|
+
"$$slots",
|
|
9
|
+
"$$events",
|
|
10
|
+
"$$legacy"
|
|
11
|
+
]), u = [["path", { d: "m9 18 6-6-6-6" }]];
|
|
12
|
+
o(s, r({ name: "chevron-right" }, () => l, {
|
|
13
|
+
get iconNode() {
|
|
14
|
+
return u;
|
|
15
|
+
},
|
|
16
|
+
children: (r, a) => {
|
|
17
|
+
var o = i();
|
|
18
|
+
n(e(o), c, "default", {}, null), t(r, o);
|
|
19
|
+
},
|
|
20
|
+
$$slots: { default: !0 }
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/folder.svelte
|
|
25
|
+
function c(s, c) {
|
|
26
|
+
let l = a(c, [
|
|
27
|
+
"children",
|
|
28
|
+
"$$slots",
|
|
29
|
+
"$$events",
|
|
30
|
+
"$$legacy"
|
|
31
|
+
]), u = [["path", { d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]];
|
|
32
|
+
o(s, r({ name: "folder" }, () => l, {
|
|
33
|
+
get iconNode() {
|
|
34
|
+
return u;
|
|
35
|
+
},
|
|
36
|
+
children: (r, a) => {
|
|
37
|
+
var o = i();
|
|
38
|
+
n(e(o), c, "default", {}, null), t(r, o);
|
|
39
|
+
},
|
|
40
|
+
$$slots: { default: !0 }
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { s as n, c as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function refreshFolders(): void;
|
|
2
|
+
export declare function getGlobalFolderRefreshNonce(): number;
|
|
3
|
+
export declare function bumpSubfoldersRefresh(folderId: string): void;
|
|
4
|
+
export declare function getSubfoldersRefresh(folderId: string): number;
|
|
5
|
+
export declare function registerFolder(id: string, parentId: string | null, categoryId: string | null, order: number): void;
|
|
6
|
+
export declare function registerDocument(id: string, folderId: string | null, categoryId: string | null): void;
|
|
7
|
+
export declare function publishDocumentPlacement(id: string, folderId: string | null, categoryId: string | null): number;
|
|
8
|
+
export declare function acknowledgeDocumentPlacement(id: string, version: number): void;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./subfolders-refresh-store.svelte-BsheoQma.js";
|
|
2
|
+
export { f as acknowledgeDocumentPlacement, s as bumpSubfoldersRefresh, u as getDocumentFromRegistry, i as getDocumentPlacementNonce, e as getFolderFromRegistry, c as getGlobalFolderRefreshNonce, d as getLatestDocumentPlacement, t as getPendingDocumentPlacement, a as getSubfoldersRefresh, p as publishDocumentPlacement, n as refreshFolders, r as registerDocument, l as registerFolder, o as supersedePendingDocumentPlacement };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.editor-settings.svelte-1eaqpj summary:where(.svelte-1eaqpj){list-style:none}.editor-settings.svelte-1eaqpj summary:where(.svelte-1eaqpj)::-webkit-details-marker{display:none}.editor-settings-chevron.svelte-1eaqpj{font-size:20px;transition:transform .18s}.editor-settings[open].svelte-1eaqpj .editor-settings-chevron:where(.svelte-1eaqpj){transform:rotate(180deg)}.preference-switch.svelte-1eaqpj{border:1px solid var(--border);background:var(--muted);cursor:pointer;border-radius:999px;flex:none;width:42px;height:24px;padding:2px;transition:background .18s,border-color .18s;position:relative}.preference-switch.svelte-1eaqpj span:where(.svelte-1eaqpj){background:var(--background);border-radius:999px;width:18px;height:18px;transition:transform .18s;display:block;box-shadow:0 1px 3px #00000038}.preference-switch.enabled.svelte-1eaqpj{border-color:var(--primary);background:var(--primary)}.preference-switch.enabled.svelte-1eaqpj span:where(.svelte-1eaqpj){transform:translate(18px)}.preference-switch.svelte-1eaqpj:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.preference-switch.svelte-1eaqpj:disabled{cursor:not-allowed;opacity:.45}[data-select-viewport],[data-combobox-viewport]{scrollbar-width:none!important;-ms-overflow-style:none!important;-webkit-overflow-scrolling:touch!important}[data-combobox-viewport]::-webkit-scrollbar{display:none!important}[data-select-viewport]::-webkit-scrollbar{display:none!important}.datepicker.svelte-zmry26{position:relative}.dp-trigger.svelte-zmry26{border:1px solid var(--input);width:100%;height:2.25rem;color:var(--foreground);cursor:pointer;text-align:left;background:0 0;border-radius:6px;align-items:center;gap:6px;padding:0 .625rem;font-size:.875rem;display:inline-flex}.dp-trigger.svelte-zmry26:focus-visible{box-shadow:0 0 0 1px var(--ring);outline:none}.dp-placeholder.svelte-zmry26{color:var(--muted-foreground)}.dp-popover.svelte-zmry26{z-index:var(--layer-popover);background:var(--popover);width:16rem;color:var(--popover-foreground);border:1px solid var(--border);border-radius:8px;padding:8px;position:absolute;top:calc(100% + 4px);left:0;box-shadow:0 4px 16px #0000002e}.dp-header.svelte-zmry26{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.dp-title.svelte-zmry26{font-size:.8125rem;font-weight:600}.dp-nav.svelte-zmry26{width:1.75rem;height:1.75rem;color:var(--muted-foreground);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.dp-nav.svelte-zmry26:hover{background:var(--accent);color:var(--accent-foreground)}.dp-weekdays.svelte-zmry26,.dp-grid.svelte-zmry26{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.dp-weekday.svelte-zmry26{text-align:center;color:var(--muted-foreground);padding:2px 0;font-size:.6875rem}.dp-empty.svelte-zmry26{aspect-ratio:1}.dp-day.svelte-zmry26{aspect-ratio:1;color:var(--foreground);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;font-size:.8125rem;display:inline-flex}.dp-day.svelte-zmry26:hover{background:var(--accent);color:var(--accent-foreground)}.dp-day.today.svelte-zmry26{box-shadow:inset 0 0 0 1px var(--ring)}.dp-day.selected.svelte-zmry26,.dp-day.selected.svelte-zmry26:hover{background:var(--primary);color:var(--primary-foreground)}.dp-clear.svelte-zmry26{width:100%;color:var(--muted-foreground);border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:6px;margin-top:6px;padding:4px 0;font-size:.75rem}.dp-clear.svelte-zmry26:hover{background:var(--accent);color:var(--accent-foreground)}.dashboard-shell.svelte-e61um3{position:relative}@media (width<=767px){.dashboard-header.svelte-e61um3{min-height:44px}.dashboard-header-actions.svelte-e61um3{top:calc(.75rem + env(safe-area-inset-top));z-index:10;position:absolute;right:.75rem}.dashboard-context-identity.svelte-e61um3{min-width:0;margin-left:56px}}@media (width<=520px){.dashboard-header-actions.svelte-e61um3 button{width:40px;height:40px;padding:0}.dashboard-action-label.svelte-e61um3{display:none}}@media (width<=449px){.dashboard-context-identity.svelte-e61um3{margin-left:52px}.dashboard-context-identity.svelte-e61um3 p:where(.svelte-e61um3){display:none}.dashboard-context-identity.svelte-e61um3 h1:where(.svelte-e61um3){font-size:1.25rem}}@media (width<=767px){.search-form.svelte-itf76n{margin-left:56px}}@media (width<=420px){.search-form.svelte-itf76n{margin-left:52px}}
|
|
1
|
+
[data-select-viewport],[data-combobox-viewport]{scrollbar-width:none!important;-ms-overflow-style:none!important;-webkit-overflow-scrolling:touch!important}[data-combobox-viewport]::-webkit-scrollbar{display:none!important}[data-select-viewport]::-webkit-scrollbar{display:none!important}.link-dialog-body.svelte-1cfbs6u{flex-direction:column;gap:.5rem;padding:0 0 1rem;display:flex}.link-dialog-label.svelte-1cfbs6u{color:var(--foreground);font-size:.875rem;font-weight:500}.toolbar.svelte-vm4iq2{border-bottom:1px solid var(--border);background:var(--card);z-index:var(--layer-chrome);border-radius:7px 7px 0 0;flex-wrap:wrap;align-items:center;gap:1px;padding:6px 10px;display:flex;position:sticky;top:0}.toolbar-divider.svelte-vm4iq2{background:var(--border);width:1px;height:18px;margin:0 2px}.toolbar-btn.svelte-vm4iq2{min-width:34px;min-height:34px;color:var(--muted-foreground);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;transition:all .15s;display:inline-flex}.toolbar-btn.svelte-vm4iq2:hover:not(:disabled){background:var(--accent);color:var(--accent-foreground)}.toolbar-btn.active.svelte-vm4iq2{background:var(--primary);color:var(--primary-foreground)}.toolbar-btn.svelte-vm4iq2:disabled{opacity:.4;cursor:not-allowed}.dropdown.svelte-vm4iq2{justify-content:center;align-items:center;display:inline-flex;position:relative}.dropdown-trigger.svelte-vm4iq2{gap:2px;padding:0 6px}.dropdown-chevron{opacity:.6}.dropdown-popover.svelte-vm4iq2{z-index:var(--layer-popover);background:var(--popover);color:var(--popover-foreground);border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:2px;min-width:180px;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 4px 12px #0000001a}.dropdown-item.svelte-vm4iq2{min-height:32px;color:var(--popover-foreground);cursor:pointer;text-align:left;background:0 0;border:none;border-radius:4px;align-items:center;gap:10px;padding:6px 10px;font-size:.875rem;transition:background .1s;display:inline-flex}.dropdown-item.svelte-vm4iq2:hover{background:var(--accent);color:var(--accent-foreground)}.dropdown-item.selected.svelte-vm4iq2{background:color-mix(in srgb, var(--primary) 18%, transparent);color:var(--foreground)}.highlight-picker.svelte-vm4iq2{justify-content:center;align-items:center;display:inline-flex;position:relative}.highlight-btn.svelte-vm4iq2{position:relative}.highlight-dot.svelte-vm4iq2{border:1px solid var(--border);opacity:0;pointer-events:none;border-radius:50%;width:8px;height:8px;transition:opacity .15s,transform .15s;position:absolute;bottom:6px;right:6px;transform:scale(.6)}.highlight-dot.visible.svelte-vm4iq2{opacity:1;transform:scale(1)}.highlight-popover.svelte-vm4iq2{z-index:var(--layer-popover);background:var(--popover);color:var(--popover-foreground);border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:6px;min-width:180px;padding:8px;display:flex;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 4px 12px #0000001a}.highlight-swatch-grid.svelte-vm4iq2{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.highlight-swatch.svelte-vm4iq2{border:1px solid var(--border);cursor:pointer;border-radius:6px;width:28px;height:28px;padding:0;transition:transform .1s,box-shadow .1s}.highlight-swatch.svelte-vm4iq2:hover{box-shadow:0 0 0 2px var(--ring);transform:scale(1.08)}.highlight-swatch.selected.svelte-vm4iq2{box-shadow:0 0 0 2px var(--ring)}.dark .highlight-picker.svelte-vm4iq2 .highlight-swatch:where(.svelte-vm4iq2),.dark .highlight-picker.svelte-vm4iq2 .highlight-dot:where(.svelte-vm4iq2){background-blend-mode:multiply;background-image:linear-gradient(#0000009e,#0000009e)}.highlight-clear.svelte-vm4iq2{color:var(--muted-foreground);border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:4px;justify-content:center;align-items:center;padding:4px 8px;font-size:.75rem;display:inline-flex}.highlight-clear.svelte-vm4iq2:hover{background:var(--accent);color:var(--accent-foreground)}.visually-hidden-file-input.svelte-vm4iq2{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.image-btn.uploading.svelte-vm4iq2{color:var(--ring)}.image-btn.svelte-vm4iq2:disabled:not(.uploading){opacity:.4;cursor:not-allowed}@keyframes svelte-vm4iq2-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.image-btn.svelte-vm4iq2 .animate-spin{animation:1s linear infinite svelte-vm4iq2-spin}.image-error.svelte-vm4iq2{background:color-mix(in srgb, var(--destructive) 10%, transparent);color:var(--destructive);border-bottom:1px solid color-mix(in srgb, var(--destructive) 20%, transparent);justify-content:space-between;align-items:center;gap:8px;padding:6px 12px;font-size:12px;display:flex}.image-error-dismiss.svelte-vm4iq2{color:var(--destructive);cursor:pointer;background:0 0;border:none;padding:0 4px;font-size:16px;line-height:1}.emoji-picker.svelte-vm4iq2{justify-content:center;align-items:center;display:inline-flex;position:relative}.emoji-popover.svelte-vm4iq2{z-index:var(--layer-popover);background:var(--popover);color:var(--popover-foreground);border:1px solid var(--border);border-radius:8px;min-width:220px;padding:8px;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 4px 12px #0000001a}.emoji-grid.svelte-vm4iq2{grid-template-columns:repeat(5,1fr);gap:4px;display:grid}.emoji-button.svelte-vm4iq2{cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;width:36px;height:36px;padding:0;font-size:1.25rem;line-height:1;transition:background .1s,transform .1s;display:inline-flex}.emoji-button.svelte-vm4iq2:hover{background:var(--accent);transform:scale(1.08)}.emoji-button.svelte-vm4iq2:focus-visible{outline:2px solid var(--ring);outline-offset:1px}.table-picker.svelte-vm4iq2{justify-content:center;align-items:center;display:inline-flex;position:relative}.table-popover.svelte-vm4iq2{z-index:var(--layer-popover);background:var(--popover);color:var(--popover-foreground);border:1px solid var(--border);border-radius:8px;padding:8px;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 4px 12px #0000001a}.table-grid.svelte-vm4iq2{grid-template-columns:repeat(8,18px);grid-auto-rows:18px;gap:3px;display:grid}.table-cell.svelte-vm4iq2{border:1px solid var(--border);background:var(--background);cursor:pointer;border-radius:3px;width:18px;height:18px;padding:0;transition:background 80ms,border-color 80ms}.table-cell.svelte-vm4iq2:hover{border-color:var(--primary)}.table-cell.active.svelte-vm4iq2{background:color-mix(in srgb, var(--primary) 35%, transparent);border-color:var(--primary)}.table-grid-label.svelte-vm4iq2{text-align:center;color:var(--muted-foreground);margin-top:8px;font-size:.75rem}.table-actions-popover.svelte-vm4iq2{width:min(280px,100vw - 24px);padding:6px}.table-action-group.svelte-vm4iq2{grid-template-columns:1fr;gap:2px;padding:4px 0;display:grid}.table-action-group.svelte-vm4iq2+.table-action-group:where(.svelte-vm4iq2){border-top:1px solid var(--border)}.table-action-heading.svelte-vm4iq2{letter-spacing:.04em;text-transform:uppercase;color:var(--muted-foreground);padding:4px 8px 2px;font-size:.6875rem;font-weight:600}.table-action.svelte-vm4iq2{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:5px;padding:7px 8px;font-size:.8125rem}.table-action.svelte-vm4iq2:hover:not(:disabled),.table-action.svelte-vm4iq2:focus-visible{background:var(--accent);outline:none}.table-action.svelte-vm4iq2:focus-visible{box-shadow:0 0 0 2px var(--ring)}.table-action.svelte-vm4iq2:disabled{color:var(--muted-foreground);opacity:.45;cursor:not-allowed}.table-danger-action.svelte-vm4iq2{color:var(--destructive)}.table-danger-action.svelte-vm4iq2:hover:not(:disabled){background:color-mix(in srgb, var(--destructive) 12%, transparent)}.copy-btn.copied.svelte-vm4iq2{color:var(--primary)}.snapshot-btn.svelte-vm4iq2{color:var(--muted-foreground)}.toolbar.floating-bar.svelte-vm4iq2{z-index:var(--layer-popover);background:color-mix(in srgb, var(--background) 95%, transparent);-webkit-backdrop-filter:blur(12px);border:1px solid var(--border);box-shadow:0 10px 25px -5px #00000026, 0 8px 10px -6px #00000026, 0 0 0 1px var(--border);border-radius:12px;width:max-content;max-width:90vw;padding:10px 14px;animation:.2s ease-out svelte-vm4iq2-floatUp;position:fixed;top:auto;bottom:24px;left:50%;overflow:visible;transform:translate(-50%)}@media (width<=640px){.toolbar.floating-bar.svelte-vm4iq2{left:8px;right:8px;bottom:max(10px, env(safe-area-inset-bottom));border-radius:10px;width:auto;max-width:none;padding:8px;transform:none}.floating-toolbar-layout.svelte-vm4iq2{flex-flow:wrap;align-items:center;gap:4px;max-height:min(42vh,260px);padding-right:34px;display:flex;overflow-y:auto}.floating-toolbar-row.svelte-vm4iq2{display:contents}.floating-toolbar-spacer.svelte-vm4iq2{display:none}.floating-toolbar-close.svelte-vm4iq2{margin-left:0;position:absolute;top:6px;right:6px}.floating-toolbar-row-secondary.svelte-vm4iq2{display:contents}}.dropdown-popover.open-up.svelte-vm4iq2,.highlight-popover.open-up.svelte-vm4iq2,.emoji-popover.open-up.svelte-vm4iq2,.table-popover.open-up.svelte-vm4iq2{top:auto;bottom:calc(100% + 6px)}.dropdown-popover.open-left.svelte-vm4iq2,.highlight-popover.open-left.svelte-vm4iq2,.emoji-popover.open-left.svelte-vm4iq2,.table-popover.open-left.svelte-vm4iq2{left:auto;right:0}@keyframes svelte-vm4iq2-floatUp{0%{opacity:0;transform:translate(-50%,20px)}to{opacity:1;transform:translate(-50%)}}.editor-wrapper.svelte-9hjz5q{flex-direction:column;flex:1;min-height:0;display:flex}.editor-content.svelte-9hjz5q{flex:1;padding:24px;position:relative;overflow-y:auto}.editor-content.deferred-loading.svelte-9hjz5q{min-height:320px}.large-document-loader.svelte-9hjz5q{z-index:2;border:1px solid var(--border);background:color-mix(in srgb, var(--background) 94%, transparent);pointer-events:none;border-radius:12px;padding:20px;position:absolute;inset:24px}.large-document-loader-heading.svelte-9hjz5q{color:var(--muted-foreground);align-items:center;gap:10px;font-size:.875rem;font-weight:500;display:flex}.large-document-spinner.svelte-9hjz5q{border:2px solid var(--border);border-top-color:var(--primary);border-radius:999px;width:18px;height:18px;animation:.8s linear infinite svelte-9hjz5q-large-document-spin}.large-document-loader-lines.svelte-9hjz5q{gap:12px;margin-top:28px;display:grid}.large-document-loader-lines.svelte-9hjz5q span:where(.svelte-9hjz5q){background:linear-gradient(90deg, var(--muted) 20%, color-mix(in srgb, var(--muted) 55%, var(--background)) 50%, var(--muted) 80%);background-size:220% 100%;border-radius:999px;height:12px;animation:1.35s ease-in-out infinite svelte-9hjz5q-large-document-shimmer;display:block}@keyframes svelte-9hjz5q-large-document-spin{to{transform:rotate(360deg)}}@keyframes svelte-9hjz5q-large-document-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (prefers-reduced-motion:reduce){.large-document-spinner.svelte-9hjz5q,.large-document-loader-lines.svelte-9hjz5q span:where(.svelte-9hjz5q){animation:none}}.editor-content.svelte-9hjz5q .tiptap{min-height:300px;color:var(--foreground);outline:none;font-size:16px;line-height:1.7}.editor-content.svelte-9hjz5q .tiptap:focus-visible{outline:none}.editor-content.svelte-9hjz5q .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:var(--muted-foreground);pointer-events:none;height:0}.editor-content.svelte-9hjz5q .tiptap h1{letter-spacing:-.025em;margin:1.5rem 0 .75rem;font-size:2rem;font-weight:800}.editor-content.svelte-9hjz5q .tiptap h2{letter-spacing:-.02em;margin:1.25rem 0 .5rem;font-size:1.5rem;font-weight:700}.editor-content.svelte-9hjz5q .tiptap h3{margin:1rem 0 .5rem;font-size:1.25rem;font-weight:600}.editor-content.svelte-9hjz5q .tiptap p{margin:.5rem 0}.editor-content.svelte-9hjz5q .tiptap ul:not([data-type=taskList]){margin:.5rem 0;padding-left:1.5rem;list-style-type:disc}.editor-content.svelte-9hjz5q .tiptap ol{margin:.5rem 0;padding-left:1.5rem;list-style-type:decimal}.editor-content.svelte-9hjz5q .tiptap li{margin:.25rem 0;display:list-item}.editor-content.svelte-9hjz5q .tiptap ul[data-type=taskList]{padding-left:.25rem;list-style:none}.editor-content.svelte-9hjz5q .tiptap ul[data-type=taskList] li{align-items:flex-start;gap:.5rem;display:flex}.editor-content.svelte-9hjz5q .tiptap ul[data-type=taskList] li>label{-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;height:1.7em;margin:0;display:flex}.editor-content.svelte-9hjz5q .tiptap ul[data-type=taskList] li>div{flex:auto;min-width:0}.editor-content.svelte-9hjz5q .tiptap ul[data-type=taskList] li>div>p{margin:0}.editor-content.svelte-9hjz5q .tiptap ul[data-type=taskList] input[type=checkbox]{accent-color:var(--primary);cursor:pointer}.editor-content.svelte-9hjz5q .tiptap blockquote{border-left:3px solid var(--border);color:var(--muted-foreground);margin:.75rem 0;padding-left:1rem;font-style:italic}.editor-content.svelte-9hjz5q .tiptap code{background:var(--muted);border-radius:4px;padding:.125rem .375rem;font-family:Fira Code,Consolas,monospace;font-size:.875rem}.editor-content.svelte-9hjz5q .tiptap pre{background:var(--muted);color:var(--foreground);border:1px solid var(--border);border-radius:8px;margin:.75rem 0;padding:1rem;font-family:Fira Code,Consolas,monospace;font-size:.875rem;line-height:1.6;overflow-x:auto}.editor-content.svelte-9hjz5q .tiptap pre code{font-size:inherit;color:inherit;background:0 0;border-radius:0;padding:0}.editor-content.svelte-9hjz5q .tiptap pre .hljs-keyword{color:var(--hljs-keyword)}.editor-content.svelte-9hjz5q .tiptap pre .hljs-string{color:var(--hljs-string)}.editor-content.svelte-9hjz5q .tiptap pre .hljs-number{color:var(--hljs-number)}.editor-content.svelte-9hjz5q .tiptap pre .hljs-function{color:var(--hljs-function)}.editor-content.svelte-9hjz5q .tiptap pre .hljs-title{color:var(--hljs-title)}.editor-content.svelte-9hjz5q .tiptap pre .hljs-comment{color:var(--hljs-comment);font-style:italic}.editor-content.svelte-9hjz5q .tiptap pre .hljs-built_in{color:var(--hljs-built_in)}.editor-content.svelte-9hjz5q .tiptap pre .hljs-type{color:var(--hljs-type)}.editor-content.svelte-9hjz5q .tiptap pre .hljs-attr{color:var(--hljs-attr)}.editor-content.svelte-9hjz5q .tiptap pre .hljs-variable{color:var(--hljs-variable)}.editor-content.svelte-9hjz5q .tiptap pre .hljs-literal{color:var(--hljs-literal)}.editor-content.svelte-9hjz5q .tiptap hr{border:none;border-top:2px solid var(--border);margin:1.5rem 0}.editor-content.svelte-9hjz5q .tiptap table{border-collapse:collapse;table-layout:fixed;width:100%;margin:.75rem 0;overflow:hidden}.editor-content.svelte-9hjz5q .tiptap th,.editor-content.svelte-9hjz5q .tiptap td{border:1px solid var(--border);vertical-align:top;text-align:left;min-width:3rem;padding:.4rem .6rem}.editor-content.svelte-9hjz5q .tiptap th{background:var(--muted);font-weight:600}.editor-content.svelte-9hjz5q .tiptap .selectedCell:after{content:"";background:color-mix(in srgb, var(--primary) 16%, transparent);pointer-events:none;position:absolute;inset:0}.editor-content.svelte-9hjz5q .tiptap td,.editor-content.svelte-9hjz5q .tiptap th{position:relative}.editor-content.svelte-9hjz5q .tiptap .column-resize-handle{background:var(--primary);cursor:col-resize;width:4px;position:absolute;top:0;bottom:0;right:-2px}.editor-content.svelte-9hjz5q .tiptap .doc-link{color:var(--primary);cursor:pointer;text-decoration:underline}.editor-content.svelte-9hjz5q .tiptap [data-resize-container][data-node=image]{max-width:100%;margin:.75rem 0}.editor-content.svelte-9hjz5q .tiptap [data-resize-wrapper]>.doc-image{border-radius:.5rem;max-width:100%;height:auto;display:block}.editor-content.svelte-9hjz5q .tiptap [data-resize-wrapper]{max-width:100%}.editor-content.svelte-9hjz5q .tiptap [data-resize-handle]{border:2px solid var(--background);background:var(--primary);width:12px;height:12px;box-shadow:0 1px 4px color-mix(in srgb, var(--foreground) 25%, transparent);opacity:0;border-radius:9999px;transition:opacity .12s}.editor-content.svelte-9hjz5q .tiptap .ProseMirror-selectednode [data-resize-handle],.editor-content.svelte-9hjz5q .tiptap [data-resize-state=true] [data-resize-handle]{opacity:1}.editor-content.svelte-9hjz5q .tiptap [data-resize-handle=top-left],.editor-content.svelte-9hjz5q .tiptap [data-resize-handle=bottom-right]{cursor:nwse-resize;transform:translate(50%,50%)}.editor-content.svelte-9hjz5q .tiptap [data-resize-handle=top-right],.editor-content.svelte-9hjz5q .tiptap [data-resize-handle=bottom-left]{cursor:nesw-resize;transform:translate(-50%,50%)}.editor-content.svelte-9hjz5q .tiptap [data-resize-handle=top-left],.editor-content.svelte-9hjz5q .tiptap [data-resize-handle=top-right]{transform:translate(var(--image-handle-x,50%), -50%)}.editor-content.svelte-9hjz5q .tiptap [data-resize-handle=top-right],.editor-content.svelte-9hjz5q .tiptap [data-resize-handle=bottom-right]{--image-handle-x:50%}.editor-content.svelte-9hjz5q .tiptap [data-resize-handle=top-left],.editor-content.svelte-9hjz5q .tiptap [data-resize-handle=bottom-left]{--image-handle-x:-50%}.editor-content.svelte-9hjz5q .tiptap mark{background-color:var(--highlight-default,#fde68a);border-radius:2px;padding:0 2px}.dark .editor-content.svelte-9hjz5q .tiptap mark{background-blend-mode:multiply;color:#fff;background-image:linear-gradient(#0000009e,#0000009e)}.editor-skeleton.svelte-9hjz5q{flex-direction:column;flex:1;display:flex}.skeleton-toolbar.svelte-9hjz5q{border-bottom:1px solid var(--border);gap:6px;padding:8px 12px;display:flex}.skeleton-icon.svelte-9hjz5q{background:var(--muted);border-radius:6px;width:32px;height:32px;animation:1.5s ease-in-out infinite svelte-9hjz5q-pulse}.skeleton-body.svelte-9hjz5q{flex-direction:column;gap:12px;padding:24px;display:flex}.skeleton-bar.svelte-9hjz5q{background:var(--muted);border-radius:4px;height:16px;animation:1.5s ease-in-out infinite svelte-9hjz5q-pulse}@keyframes svelte-9hjz5q-pulse{0%,to{opacity:1}50%{opacity:.4}}.title-input.svelte-vc365t{color:var(--foreground);background:0 0;border:none;border-bottom:2px solid #0000;outline:none;width:100%;margin-bottom:8px;padding:0 0 4px;font-size:2rem;font-weight:700;transition:border-color .15s}.title-input.svelte-vc365t::placeholder{color:var(--muted-foreground)}.title-input.focused.svelte-vc365t{border-bottom-color:var(--ring)}.title-input.svelte-vc365t:hover:not(.focused){border-bottom-color:var(--border)}.markdown-toggle.svelte-1k98zvf{flex-direction:column;flex:1;width:100%;min-height:0;display:flex;position:relative}.copy-btn.svelte-1k98zvf{z-index:10;border:1px solid var(--border);background:color-mix(in srgb, var(--card) 85%, transparent);color:var(--muted-foreground);-webkit-backdrop-filter:blur(8px);cursor:pointer;border-radius:6px;align-items:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:500;transition:all .2s;display:inline-flex;position:absolute;top:12px;right:24px;box-shadow:0 2px 8px #0000000d}.copy-btn.svelte-1k98zvf:hover{background:var(--accent);color:var(--accent-foreground);border-color:var(--accent)}.copy-btn.svelte-1k98zvf:active{transform:scale(.96)}.markdown-textarea.svelte-1k98zvf{box-sizing:border-box;resize:vertical;width:100%;height:100%;min-height:0;color:var(--foreground);background:var(--muted);tab-size:4;border:none;border-radius:8px;outline:none;flex:none;padding:56px 24px 24px;font-family:Fira Code,Consolas,Courier New,monospace;font-size:14px;line-height:1.7;transition:background .15s;display:block;overflow-y:hidden}.markdown-textarea.svelte-1k98zvf::placeholder{color:var(--muted-foreground)}.markdown-textarea.svelte-1k98zvf:focus{background:var(--background)}.editor-settings.svelte-1eaqpj summary:where(.svelte-1eaqpj){list-style:none}.editor-settings.svelte-1eaqpj summary:where(.svelte-1eaqpj)::-webkit-details-marker{display:none}.editor-settings-chevron.svelte-1eaqpj{font-size:20px;transition:transform .18s}.editor-settings[open].svelte-1eaqpj .editor-settings-chevron:where(.svelte-1eaqpj){transform:rotate(180deg)}.preference-switch.svelte-1eaqpj{border:1px solid var(--border);background:var(--muted);cursor:pointer;border-radius:999px;flex:none;width:42px;height:24px;padding:2px;transition:background .18s,border-color .18s;position:relative}.preference-switch.svelte-1eaqpj span:where(.svelte-1eaqpj){background:var(--background);border-radius:999px;width:18px;height:18px;transition:transform .18s;display:block;box-shadow:0 1px 3px #00000038}.preference-switch.enabled.svelte-1eaqpj{border-color:var(--primary);background:var(--primary)}.preference-switch.enabled.svelte-1eaqpj span:where(.svelte-1eaqpj){transform:translate(18px)}.preference-switch.svelte-1eaqpj:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.preference-switch.svelte-1eaqpj:disabled{cursor:not-allowed;opacity:.45}.datepicker.svelte-zmry26{position:relative}.dp-trigger.svelte-zmry26{border:1px solid var(--input);width:100%;height:2.25rem;color:var(--foreground);cursor:pointer;text-align:left;background:0 0;border-radius:6px;align-items:center;gap:6px;padding:0 .625rem;font-size:.875rem;display:inline-flex}.dp-trigger.svelte-zmry26:focus-visible{box-shadow:0 0 0 1px var(--ring);outline:none}.dp-placeholder.svelte-zmry26{color:var(--muted-foreground)}.dp-popover.svelte-zmry26{z-index:var(--layer-popover);background:var(--popover);width:16rem;color:var(--popover-foreground);border:1px solid var(--border);border-radius:8px;padding:8px;position:absolute;top:calc(100% + 4px);left:0;box-shadow:0 4px 16px #0000002e}.dp-header.svelte-zmry26{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.dp-title.svelte-zmry26{font-size:.8125rem;font-weight:600}.dp-nav.svelte-zmry26{width:1.75rem;height:1.75rem;color:var(--muted-foreground);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.dp-nav.svelte-zmry26:hover{background:var(--accent);color:var(--accent-foreground)}.dp-weekdays.svelte-zmry26,.dp-grid.svelte-zmry26{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.dp-weekday.svelte-zmry26{text-align:center;color:var(--muted-foreground);padding:2px 0;font-size:.6875rem}.dp-empty.svelte-zmry26{aspect-ratio:1}.dp-day.svelte-zmry26{aspect-ratio:1;color:var(--foreground);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;font-size:.8125rem;display:inline-flex}.dp-day.svelte-zmry26:hover{background:var(--accent);color:var(--accent-foreground)}.dp-day.today.svelte-zmry26{box-shadow:inset 0 0 0 1px var(--ring)}.dp-day.selected.svelte-zmry26,.dp-day.selected.svelte-zmry26:hover{background:var(--primary);color:var(--primary-foreground)}.dp-clear.svelte-zmry26{width:100%;color:var(--muted-foreground);border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:6px;margin-top:6px;padding:4px 0;font-size:.75rem}.dp-clear.svelte-zmry26:hover{background:var(--accent);color:var(--accent-foreground)}.dashboard-shell.svelte-e61um3{position:relative}@media (width<=767px){.dashboard-header.svelte-e61um3{min-height:44px}.dashboard-header-actions.svelte-e61um3{top:calc(.75rem + env(safe-area-inset-top));z-index:10;position:absolute;right:.75rem}.dashboard-context-identity.svelte-e61um3{min-width:0;margin-left:56px}}@media (width<=520px){.dashboard-header-actions.svelte-e61um3 button{width:40px;height:40px;padding:0}.dashboard-action-label.svelte-e61um3{display:none}}@media (width<=449px){.dashboard-context-identity.svelte-e61um3{margin-left:52px}.dashboard-context-identity.svelte-e61um3 p:where(.svelte-e61um3){display:none}.dashboard-context-identity.svelte-e61um3 h1:where(.svelte-e61um3){font-size:1.25rem}}@media (width<=767px){.search-form.svelte-itf76n{margin-left:56px}}@media (width<=420px){.search-form.svelte-itf76n{margin-left:52px}}
|
|
2
2
|
/*$vite$:1*/
|
package/dist/frontend/i18n.js
CHANGED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { n as e } from "./auth-client-Cygmp1I2.js";
|
|
2
|
+
//#region src/lib/offline/identity.ts
|
|
3
|
+
var t = "hiai-docs:offline-owner-id", n = "hiai-docs:offline-binding", r = "hiai-docs:offline-access-enabled", i = 10080 * 60 * 1e3;
|
|
4
|
+
function a() {
|
|
5
|
+
return {
|
|
6
|
+
appId: "hiai-docs",
|
|
7
|
+
deploymentId: "hiai-docs-pwa-local"
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function o(e) {
|
|
11
|
+
return e instanceof TypeError || typeof navigator < "u" && !navigator.onLine;
|
|
12
|
+
}
|
|
13
|
+
function s() {
|
|
14
|
+
return typeof localStorage < "u" && localStorage.getItem(r) === "1";
|
|
15
|
+
}
|
|
16
|
+
function c(e) {
|
|
17
|
+
typeof localStorage > "u" || (localStorage.setItem(r, "1"), localStorage.setItem(n, JSON.stringify({
|
|
18
|
+
identity: e,
|
|
19
|
+
verifiedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
20
|
+
})));
|
|
21
|
+
}
|
|
22
|
+
function l() {
|
|
23
|
+
typeof localStorage > "u" || (localStorage.removeItem(r), localStorage.removeItem(n), localStorage.removeItem(t));
|
|
24
|
+
}
|
|
25
|
+
function u() {
|
|
26
|
+
if (!s() || typeof localStorage > "u") return null;
|
|
27
|
+
try {
|
|
28
|
+
let e = JSON.parse(localStorage.getItem(n) ?? "null");
|
|
29
|
+
return !e?.identity?.ownerId || !e.verifiedAt || Date.now() - Date.parse(e.verifiedAt) > i ? null : {
|
|
30
|
+
identity: e.identity,
|
|
31
|
+
verifiedAt: e.verifiedAt
|
|
32
|
+
};
|
|
33
|
+
} catch {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function d(e) {
|
|
38
|
+
return `hiai-docs-offline::${e.appId}::${e.deploymentId}::${e.ownerId}::${e.tenantId ?? "none"}`;
|
|
39
|
+
}
|
|
40
|
+
async function f() {
|
|
41
|
+
let { appId: n, deploymentId: r } = a();
|
|
42
|
+
try {
|
|
43
|
+
let { data: i } = await e();
|
|
44
|
+
if (!i?.user?.id) return l(), { kind: "verified-unauthenticated" };
|
|
45
|
+
let a = {
|
|
46
|
+
appId: n,
|
|
47
|
+
deploymentId: r,
|
|
48
|
+
ownerId: i.user.id,
|
|
49
|
+
tenantId: void 0
|
|
50
|
+
};
|
|
51
|
+
return typeof localStorage < "u" && localStorage.setItem(t, a.ownerId), s() && c(a), {
|
|
52
|
+
kind: "verified-authenticated",
|
|
53
|
+
identity: a
|
|
54
|
+
};
|
|
55
|
+
} catch (e) {
|
|
56
|
+
let t = o(e) ? u() : null;
|
|
57
|
+
return t ? {
|
|
58
|
+
kind: "offline-bound",
|
|
59
|
+
...t
|
|
60
|
+
} : { kind: "unavailable" };
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
async function p() {
|
|
64
|
+
let e = await f();
|
|
65
|
+
if (e.kind === "verified-authenticated" || e.kind === "offline-bound") return e.identity;
|
|
66
|
+
throw Error("Offline identity unavailable");
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { p as a, d as i, c as n, f as o, s as r, l as t };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { U as e, V as t, at as n, it as r, nt as i, rt as a } from "./client-Bc5Fzx40.js";
|
|
2
|
+
//#region ../node_modules/.bun/svelte@5.56.4/node_modules/svelte/src/reactivity/map.js
|
|
3
|
+
var o = class extends Map {
|
|
4
|
+
#e = /* @__PURE__ */ new Map();
|
|
5
|
+
#t = /* @__PURE__ */ n(0);
|
|
6
|
+
#n = /* @__PURE__ */ n(0);
|
|
7
|
+
#r = e || -1;
|
|
8
|
+
constructor(e) {
|
|
9
|
+
if (super(), e) {
|
|
10
|
+
for (var [t, n] of e) super.set(t, n);
|
|
11
|
+
this.#n.v = super.size;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
#i(t) {
|
|
15
|
+
return e === this.#r ? /* @__PURE__ */ n(t) : r(t);
|
|
16
|
+
}
|
|
17
|
+
has(e) {
|
|
18
|
+
var n = this.#e, r = n.get(e);
|
|
19
|
+
if (r === void 0) if (super.has(e)) r = this.#i(0), n.set(e, r);
|
|
20
|
+
else return t(this.#t), !1;
|
|
21
|
+
return t(r), !0;
|
|
22
|
+
}
|
|
23
|
+
forEach(e, t) {
|
|
24
|
+
this.#a(), super.forEach(e, t);
|
|
25
|
+
}
|
|
26
|
+
get(e) {
|
|
27
|
+
var n = this.#e, r = n.get(e);
|
|
28
|
+
if (r === void 0) if (super.has(e)) r = this.#i(0), n.set(e, r);
|
|
29
|
+
else {
|
|
30
|
+
t(this.#t);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
return t(r), super.get(e);
|
|
34
|
+
}
|
|
35
|
+
set(e, t) {
|
|
36
|
+
var n = this.#e, r = n.get(e), o = super.get(e), s = super.set(e, t), c = this.#t;
|
|
37
|
+
if (r === void 0) r = this.#i(0), n.set(e, r), a(this.#n, super.size), i(c);
|
|
38
|
+
else if (o !== t) {
|
|
39
|
+
i(r);
|
|
40
|
+
var l = c.reactions === null ? null : new Set(c.reactions);
|
|
41
|
+
(l === null || !r.reactions?.every((e) => l.has(e))) && i(c);
|
|
42
|
+
}
|
|
43
|
+
return s;
|
|
44
|
+
}
|
|
45
|
+
delete(e) {
|
|
46
|
+
var t = this.#e, n = t.get(e), r = super.delete(e);
|
|
47
|
+
return n !== void 0 && (t.delete(e), a(n, -1)), r && (a(this.#n, super.size), i(this.#t)), r;
|
|
48
|
+
}
|
|
49
|
+
clear() {
|
|
50
|
+
if (super.size !== 0) {
|
|
51
|
+
super.clear();
|
|
52
|
+
var e = this.#e;
|
|
53
|
+
a(this.#n, 0);
|
|
54
|
+
for (var t of e.values()) a(t, -1);
|
|
55
|
+
i(this.#t), e.clear();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
#a() {
|
|
59
|
+
t(this.#t);
|
|
60
|
+
var e = this.#e;
|
|
61
|
+
if (this.#n.v !== e.size) {
|
|
62
|
+
for (var n of super.keys()) if (!e.has(n)) {
|
|
63
|
+
var r = this.#i(0);
|
|
64
|
+
e.set(n, r);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
for ([, r] of this.#e) t(r);
|
|
68
|
+
}
|
|
69
|
+
keys() {
|
|
70
|
+
return t(this.#t), super.keys();
|
|
71
|
+
}
|
|
72
|
+
values() {
|
|
73
|
+
return this.#a(), super.values();
|
|
74
|
+
}
|
|
75
|
+
entries() {
|
|
76
|
+
return this.#a(), super.entries();
|
|
77
|
+
}
|
|
78
|
+
[Symbol.iterator]() {
|
|
79
|
+
return this.entries();
|
|
80
|
+
}
|
|
81
|
+
get size() {
|
|
82
|
+
return t(this.#n), super.size;
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
//#endregion
|
|
86
|
+
export { o as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "./disclose-version-5I57E3LD.js";
|
|
2
|
+
import { A as e, M as t, c as n, dt as r, ft as i, l as a, n as o, o as s, r as c } from "./client-Bc5Fzx40.js";
|
|
3
|
+
import { t as l } from "./utils-D8kmM3ub.js";
|
|
4
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/input/input.svelte
|
|
5
|
+
var u = /* @__PURE__ */ new Set([
|
|
6
|
+
"$$slots",
|
|
7
|
+
"$$events",
|
|
8
|
+
"$$legacy",
|
|
9
|
+
"ref",
|
|
10
|
+
"class",
|
|
11
|
+
"value"
|
|
12
|
+
]), d = t("<input/>");
|
|
13
|
+
function f(t, f) {
|
|
14
|
+
i(f, !0);
|
|
15
|
+
let p = o(f, "ref", 15, null), m = o(f, "value", 15, ""), h = c(f, u);
|
|
16
|
+
var g = d();
|
|
17
|
+
a(g, (e) => ({
|
|
18
|
+
class: e,
|
|
19
|
+
...h
|
|
20
|
+
}), [() => l("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", f.class)], void 0, void 0, void 0, !0), s(g, (e) => p(e), () => p()), n(g, m), e(t, g), r();
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { f as t };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ShortcutScope = "global" | "editor" | "dialog" | "list";
|
|
2
|
+
export interface Shortcut { id: string; keys: string; handler: (event: KeyboardEvent) => void; scope?: ShortcutScope; description: string; enabled?: boolean; overrideInput?: boolean; }
|
|
3
|
+
export declare function normaliseKeys(keys: string): string;
|
|
4
|
+
export declare function registerShortcut(shortcut: Shortcut): void;
|
|
5
|
+
export declare function unregisterShortcut(id: string): void;
|
|
6
|
+
export declare function getShortcut(id: string): Shortcut | undefined;
|
|
7
|
+
export declare function getShortcutsByScope(scope: ShortcutScope): Shortcut[];
|
|
8
|
+
export declare function clearShortcuts(): void;
|
|
9
|
+
export declare function toggleQuickSearch(): void;
|
|
10
|
+
export declare function setQuickSearchOpen(open: boolean): void;
|
|
11
|
+
export declare function toggleShortcutHelp(): void;
|
|
12
|
+
export declare function setShortcutHelpOpen(open: boolean): void;
|
|
13
|
+
export declare function registerDefaultShortcuts(): void;
|
|
14
|
+
export declare function handleKeyEvent(event: KeyboardEvent): boolean;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./keyboard.svelte-D7H8DihC.js";
|
|
2
|
+
export { p as clearShortcuts, c as getIsQuickSearchOpen, d as getIsShortcutHelpOpen, a as getShortcut, e as getShortcutsByScope, l as handleKeyEvent, f as keyboardStore, t as normaliseKeys, o as registerDefaultShortcuts, m as registerShortcut, n as setQuickSearchOpen, r as setShortcutHelpOpen, u as toggleQuickSearch, s as toggleShortcutHelp, i as unregisterShortcut };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { V as e, at as t, rt as n, tt as r } from "./client-Bc5Fzx40.js";
|
|
2
|
+
//#region src/lib/stores/keyboard.svelte.ts
|
|
3
|
+
var i = t(!1), a = t(!1), o = r(/* @__PURE__ */ new Map()), s = [
|
|
4
|
+
"mod",
|
|
5
|
+
"ctrl",
|
|
6
|
+
"alt",
|
|
7
|
+
"shift",
|
|
8
|
+
"meta"
|
|
9
|
+
];
|
|
10
|
+
function c(e) {
|
|
11
|
+
let t = e.split("+").map((e) => e.trim().toLowerCase()).filter(Boolean).map((e) => e === "cmd" || e === "meta" ? "mod" : e === "esc" ? "escape" : e === "slash" ? "/" : e === "question" ? "?" : e), n = [], r = "";
|
|
12
|
+
for (let e of t) s.includes(e) ? n.includes(e) || n.push(e) : r = e;
|
|
13
|
+
return n.sort((e, t) => s.indexOf(e) - s.indexOf(t)), [...n, r].filter(Boolean).join("+");
|
|
14
|
+
}
|
|
15
|
+
function l(e) {
|
|
16
|
+
if (!(e instanceof HTMLElement)) return !1;
|
|
17
|
+
if (e.isContentEditable) return !0;
|
|
18
|
+
let t = e.tagName;
|
|
19
|
+
return t === "INPUT" || t === "TEXTAREA" || t === "SELECT";
|
|
20
|
+
}
|
|
21
|
+
function u(e, t) {
|
|
22
|
+
let n = t.split("+");
|
|
23
|
+
if (n.length === 0) return !1;
|
|
24
|
+
let r = n[n.length - 1];
|
|
25
|
+
if (!r || [
|
|
26
|
+
"shift",
|
|
27
|
+
"ctrl",
|
|
28
|
+
"alt",
|
|
29
|
+
"meta",
|
|
30
|
+
"mod"
|
|
31
|
+
].includes(r)) return !1;
|
|
32
|
+
let i = n.includes("mod"), a = n.includes("ctrl"), o = n.includes("alt"), s = n.includes("shift"), c = n.includes("meta"), l = i ? e.ctrlKey || e.metaKey : !e.ctrlKey && !e.metaKey, u = a === e.ctrlKey, d = o === e.altKey, f = s === e.shiftKey, p = c === e.metaKey;
|
|
33
|
+
return l && u && d && f && p ? e.key.toLowerCase() === r : !1;
|
|
34
|
+
}
|
|
35
|
+
function d(e) {
|
|
36
|
+
if (!e.id) return;
|
|
37
|
+
let t = {
|
|
38
|
+
...e,
|
|
39
|
+
keys: c(e.keys),
|
|
40
|
+
scope: e.scope ?? "global",
|
|
41
|
+
enabled: e.enabled ?? !0
|
|
42
|
+
};
|
|
43
|
+
o.set(e.id, t);
|
|
44
|
+
}
|
|
45
|
+
function f(e) {
|
|
46
|
+
o.delete(e);
|
|
47
|
+
}
|
|
48
|
+
function p(e) {
|
|
49
|
+
return o.get(e);
|
|
50
|
+
}
|
|
51
|
+
function m(e) {
|
|
52
|
+
let t = [];
|
|
53
|
+
for (let n of o.values()) (n.scope ?? "global") === e && t.push(n);
|
|
54
|
+
return t;
|
|
55
|
+
}
|
|
56
|
+
function h() {
|
|
57
|
+
o.clear();
|
|
58
|
+
}
|
|
59
|
+
function g() {
|
|
60
|
+
n(i, !e(i));
|
|
61
|
+
}
|
|
62
|
+
function _(e) {
|
|
63
|
+
n(i, e, !0);
|
|
64
|
+
}
|
|
65
|
+
function v() {
|
|
66
|
+
n(a, !e(a));
|
|
67
|
+
}
|
|
68
|
+
function y(e) {
|
|
69
|
+
n(a, e, !0);
|
|
70
|
+
}
|
|
71
|
+
var b = !1;
|
|
72
|
+
function x() {
|
|
73
|
+
b || (b = !0, d({
|
|
74
|
+
id: "quick-search",
|
|
75
|
+
keys: "mod+k",
|
|
76
|
+
description: "Open quick search",
|
|
77
|
+
scope: "global",
|
|
78
|
+
handler: () => g(),
|
|
79
|
+
overrideInput: !0
|
|
80
|
+
}), d({
|
|
81
|
+
id: "shortcut-help",
|
|
82
|
+
keys: "shift+?",
|
|
83
|
+
description: "Show keyboard shortcuts",
|
|
84
|
+
scope: "global",
|
|
85
|
+
handler: () => v(),
|
|
86
|
+
overrideInput: !1
|
|
87
|
+
}), d({
|
|
88
|
+
id: "escape-close",
|
|
89
|
+
keys: "escape",
|
|
90
|
+
description: "Close dialog or panel",
|
|
91
|
+
scope: "global",
|
|
92
|
+
handler: () => {
|
|
93
|
+
e(i) ? _(!1) : e(a) && y(!1);
|
|
94
|
+
},
|
|
95
|
+
overrideInput: !0
|
|
96
|
+
}));
|
|
97
|
+
}
|
|
98
|
+
function S(e) {
|
|
99
|
+
let t = l(e.target);
|
|
100
|
+
for (let n of o.values()) if (n.enabled !== !1 && !(t && !n.overrideInput) && u(e, n.keys)) {
|
|
101
|
+
try {
|
|
102
|
+
n.handler(e);
|
|
103
|
+
} catch (e) {
|
|
104
|
+
console.error(`[keyboard] handler for "${n.id}" threw`, e);
|
|
105
|
+
}
|
|
106
|
+
return !0;
|
|
107
|
+
}
|
|
108
|
+
return !1;
|
|
109
|
+
}
|
|
110
|
+
function C() {
|
|
111
|
+
return e(i);
|
|
112
|
+
}
|
|
113
|
+
function w() {
|
|
114
|
+
return e(a);
|
|
115
|
+
}
|
|
116
|
+
var T = {
|
|
117
|
+
get isQuickSearchOpen() {
|
|
118
|
+
return e(i);
|
|
119
|
+
},
|
|
120
|
+
get isShortcutHelpOpen() {
|
|
121
|
+
return e(a);
|
|
122
|
+
},
|
|
123
|
+
toggleQuickSearch: g,
|
|
124
|
+
setQuickSearchOpen: _,
|
|
125
|
+
toggleShortcutHelp: v,
|
|
126
|
+
setShortcutHelpOpen: y,
|
|
127
|
+
register: d,
|
|
128
|
+
unregister: f,
|
|
129
|
+
getShortcutsByScope: m,
|
|
130
|
+
handleKeyEvent: S
|
|
131
|
+
};
|
|
132
|
+
//#endregion
|
|
133
|
+
export { m as a, c, _ as d, y as f, f as h, p as i, x as l, v as m, C as n, S as o, g as p, w as r, T as s, h as t, d as u };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "./disclose-version-5I57E3LD.js";
|
|
2
|
+
import { $ as e, A as t, E as n, M as r, O as i, Q as a, _t as o, dt as s, ft as c, j as l, l as u, n as d, o as f, r as p } from "./client-Bc5Fzx40.js";
|
|
3
|
+
import { t as m } from "./utils-D8kmM3ub.js";
|
|
4
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/label/label.svelte
|
|
5
|
+
var h = /* @__PURE__ */ new Set([
|
|
6
|
+
"$$slots",
|
|
7
|
+
"$$events",
|
|
8
|
+
"$$legacy",
|
|
9
|
+
"ref",
|
|
10
|
+
"class",
|
|
11
|
+
"children"
|
|
12
|
+
]), g = r("<label><!></label>");
|
|
13
|
+
function _(r, _) {
|
|
14
|
+
c(_, !0);
|
|
15
|
+
let v = d(_, "ref", 15, null), y = p(_, h);
|
|
16
|
+
var b = g();
|
|
17
|
+
u(b, (e) => ({
|
|
18
|
+
class: e,
|
|
19
|
+
...y
|
|
20
|
+
}), [() => m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", _.class)]);
|
|
21
|
+
var x = a(b), S = (n) => {
|
|
22
|
+
var r = l();
|
|
23
|
+
i(e(r), () => _.children), t(n, r);
|
|
24
|
+
};
|
|
25
|
+
n(x, (e) => {
|
|
26
|
+
_.children && e(S);
|
|
27
|
+
}), o(b), f(b, (e) => v(e), () => v()), t(r, b), s();
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { _ as t };
|