@hiai-gg/docsmint 0.3.2 → 0.3.4

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.
@@ -1157,7 +1157,7 @@ function xn(e) {
1157
1157
  }
1158
1158
  //#endregion
1159
1159
  //#region src/lib/components/ShareDialog.svelte
1160
- var Sn = k("<input type=\"password\" class=\"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring\"/>"), Cn = k("<button> </button>"), wn = k("<span class=\"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs\"> <button class=\"text-muted-foreground hover:text-foreground\">&times;</button></span>"), Tn = k("<div class=\"flex flex-wrap gap-1.5\"></div>"), En = k("<p class=\"text-xs text-destructive\"> </p>"), Dn = k("<div class=\"space-y-4\"><div class=\"flex items-center justify-between\"><span class=\"text-sm font-medium\"> </span> <button role=\"switch\"><span></span></button></div> <!> <div class=\"space-y-2\"><span class=\"text-sm font-medium\"> </span> <div class=\"flex gap-2\"></div></div> <div class=\"space-y-2\"><span class=\"text-sm font-medium\"> </span> <div class=\"flex gap-2\"><input type=\"email\" placeholder=\"guest@email.com\" class=\"flex h-9 flex-1 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring\"/> <button class=\"rounded-md border border-border px-3 py-1.5 text-sm font-medium hover:bg-accent\"> </button></div> <!></div> <!> <button class=\"w-full rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50\"> </button></div>"), On = k("<div class=\"space-y-4\"><p class=\"text-sm text-muted-foreground\"> </p> <div class=\"flex items-center gap-2\"><code class=\"flex-1 truncate rounded-md bg-muted px-3 py-2 text-sm\"> </code> <button class=\"rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90\"> </button></div> <button class=\"w-full rounded-md border border-border px-4 py-2 text-sm font-medium hover:bg-accent\"> </button></div>"), kn = k("<div class=\"fixed inset-0 z-50 flex items-center justify-center\"><button class=\"absolute inset-0 bg-black/50\"></button> <div class=\"relative z-10 w-full max-w-md rounded-lg border border-border bg-background p-6 shadow-lg\"><div class=\"mb-4 flex items-center justify-between\"><h2 class=\"text-lg font-semibold\"> </h2> <button class=\"rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-foreground\">&#10005;</button></div> <!></div></div>");
1160
+ var Sn = k("<input type=\"password\" class=\"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring\"/>"), Cn = k("<button> </button>"), wn = k("<span class=\"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs\"> <button class=\"text-muted-foreground hover:text-foreground\">&times;</button></span>"), Tn = k("<div class=\"flex flex-wrap gap-1.5\"></div>"), En = k("<p class=\"text-xs text-destructive\"> </p>"), Dn = k("<div class=\"space-y-4\"><div class=\"flex items-center justify-between\"><span class=\"text-sm font-medium\"> </span> <button role=\"switch\"><span></span></button></div> <!> <div class=\"space-y-2\"><span class=\"text-sm font-medium\"> </span> <div class=\"flex gap-2\"></div></div> <div class=\"space-y-2\"><span class=\"text-sm font-medium\"> </span> <div class=\"flex gap-2\"><input type=\"email\" placeholder=\"guest@email.com\" class=\"flex h-9 flex-1 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring\"/> <button class=\"rounded-md border border-border px-3 py-1.5 text-sm font-medium hover:bg-accent\"> </button></div> <!></div> <!> <button class=\"w-full rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50\"> </button></div>"), On = k("<div class=\"space-y-4\"><p class=\"text-sm text-muted-foreground\"> </p> <div class=\"flex items-center gap-2\"><code class=\"flex-1 truncate rounded-md bg-muted px-3 py-2 text-sm\"> </code> <button class=\"rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90\"> </button></div> <button class=\"w-full rounded-md border border-border px-4 py-2 text-sm font-medium hover:bg-accent\"> </button></div>"), kn = k("<div class=\"fixed inset-0 layer-modal flex items-center justify-center\"><button class=\"absolute inset-0 bg-black/50\"></button> <div class=\"relative z-10 w-full max-w-md rounded-lg border border-border bg-background p-6 shadow-lg\" role=\"dialog\" aria-modal=\"true\"><div class=\"mb-4 flex items-center justify-between\"><h2 class=\"text-lg font-semibold\"> </h2> <button class=\"rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-foreground\">&#10005;</button></div> <!></div></div>");
1161
1161
  function An(e, r) {
1162
1162
  R(r, !0);
1163
1163
  let u = K(r, "open", 15, !1), d = K(r, "documentId", 3, ""), m = K(r, "documentTitle", 3, ""), v = K(r, "folderId", 3, ""), x = K(r, "folderName", 3, ""), C = K(r, "categoryId", 3, ""), T = K(r, "categoryName", 3, ""), D = q(!1), k = q(""), ce = q("7d"), le = q(""), j = q(ve([])), M = q(""), N = q(!1), de = q(!1), P = q("");
@@ -1,10 +1,14 @@
1
1
 
2
- export type CategoryDto = Readonly<Record<string, unknown>>;
3
- export declare const createCategoryInputSchema: unknown;
4
- export declare const updateCategoryInputSchema: unknown;
5
- export declare function listCategories(...args: readonly unknown[]): Promise<readonly CategoryDto[]>;
6
- export declare function createCategory(...args: readonly unknown[]): Promise<CategoryDto>;
7
- export declare function updateCategory(...args: readonly unknown[]): Promise<CategoryDto>;
8
- export declare function deleteCategory(...args: readonly unknown[]): Promise<unknown>;
9
- export declare function setDocumentCategory(...args: readonly unknown[]): Promise<unknown>;
10
- export declare function setFolderCategory(...args: readonly unknown[]): Promise<unknown>;
2
+ import type { z } from "zod";
3
+ export interface CategoryDto { id: string; name: string; order: number; apiMode?: "unavailable" | "global" | "general" | "category" | null; apiPermissionRead?: boolean | null; apiPermissionEdit?: boolean | null; apiPermissionWrite?: boolean | null; createdAt: string; updatedAt: string; documentCount?: number; folderCount?: number; }
4
+ export type Category = CategoryDto;
5
+ export interface CreateCategoryInput { name: string; apiMode?: "unavailable" | "global" | "general" | "category"; apiPermissionRead?: boolean; apiPermissionEdit?: boolean; apiPermissionWrite?: boolean; }
6
+ export interface UpdateCategoryInput { name?: string; order?: number; apiMode?: "unavailable" | "global" | "general" | "category"; apiPermissionRead?: boolean; apiPermissionEdit?: boolean; apiPermissionWrite?: boolean; }
7
+ export declare const createCategoryInputSchema: z.ZodType<CreateCategoryInput>;
8
+ export declare const updateCategoryInputSchema: z.ZodType<UpdateCategoryInput>;
9
+ export declare function listCategories(fetcher?: typeof fetch): Promise<CategoryDto[]>;
10
+ export declare function createCategory(inputOrName: string | CreateCategoryInput): Promise<CategoryDto>;
11
+ export declare function updateCategory(id: string, data: UpdateCategoryInput): Promise<CategoryDto>;
12
+ export declare function deleteCategory(id: string): Promise<void>;
13
+ export declare function setDocumentCategory(documentId: string, categoryId: string | null): Promise<void>;
14
+ export declare function setFolderCategory(folderId: string, categoryId: string | null): Promise<void>;
@@ -1,10 +1,16 @@
1
1
 
2
- export type DocumentDto = Readonly<Record<string, unknown>>;
3
- export declare function listDocuments(...args: readonly unknown[]): Promise<readonly DocumentDto[]>;
4
- export declare function getDocument(...args: readonly unknown[]): Promise<DocumentDto>;
5
- export declare function createDocument(...args: readonly unknown[]): Promise<DocumentDto>;
6
- export declare function updateDocument(...args: readonly unknown[]): Promise<DocumentDto>;
7
- export declare function deleteDocument(...args: readonly unknown[]): Promise<unknown>;
8
- export declare function importDocument(...args: readonly unknown[]): Promise<DocumentDto>;
9
- export declare function importDocuments(...args: readonly unknown[]): Promise<readonly DocumentDto[]>;
2
+ export interface DocumentTagDto { id: string; name: string; color: string; }
3
+ export interface DocumentDto { id: string; title: string; content: string; contentJson?: unknown; folderId?: string | null; folderName?: string; categoryId?: string | null; tags?: DocumentTagDto[]; excerpt?: string; createdAt: string; updatedAt: string; }
4
+ export type Document = DocumentDto;
5
+ export interface DocumentListResponse { items: DocumentDto[]; total: number; page: number; limit: number; }
6
+ export interface UpdateDocumentInput { title?: string; content?: string; folderId?: string | null; categoryId?: string | null; contentJson?: unknown; expectedUpdatedAt?: string; }
7
+ export interface ImportResult { filename: string; status: "ok" | "error"; document?: DocumentDto; error?: string; }
8
+ export interface ImportResponse { items: ImportResult[]; imported: number; failed: number; }
9
+ export declare function listDocuments(params?: { folderId?: string; tag?: string; page?: number; limit?: number }, fetcher?: typeof fetch): Promise<DocumentListResponse>;
10
+ export declare function getDocument(id: string, fetcher?: typeof fetch): Promise<DocumentDto>;
11
+ export declare function createDocument(data: { title: string; content?: string; folderId?: string; categoryId?: string }, fetcher?: typeof fetch): Promise<DocumentDto>;
12
+ export declare function updateDocument(id: string, data: UpdateDocumentInput): Promise<DocumentDto>;
13
+ export declare function deleteDocument(id: string): Promise<void>;
14
+ export declare function importDocument(file: File, folderId?: string): Promise<DocumentDto>;
15
+ export declare function importDocuments(files: File[], folderId?: string): Promise<ImportResponse>;
10
16
  export declare function clearDocumentsCache(...args: readonly unknown[]): void;
@@ -1,10 +1,14 @@
1
1
 
2
- export type FolderDto = Readonly<Record<string, unknown>>;
3
- export declare function listFolders(...args: readonly unknown[]): Promise<readonly FolderDto[]>;
4
- export declare function getFolder(...args: readonly unknown[]): Promise<FolderDto>;
5
- export declare function getFolderPath(...args: readonly unknown[]): Promise<readonly FolderDto[]>;
6
- export declare function createFolder(...args: readonly unknown[]): Promise<FolderDto>;
7
- export declare function updateFolder(...args: readonly unknown[]): Promise<FolderDto>;
8
- export declare function deleteFolder(...args: readonly unknown[]): Promise<unknown>;
9
- export declare function duplicateDocument(...args: readonly unknown[]): Promise<unknown>;
10
- export declare function deleteDocument(...args: readonly unknown[]): Promise<unknown>;
2
+ export interface FolderDocumentDto { id: string; title: string; content?: string; folderId: string | null; folderName: string; categoryId?: string | null; tags: string[]; createdAt: string; updatedAt: string; excerpt: string; }
3
+ export interface FolderDto { id: string; name: string; parentId: string | null; categoryId?: string | null; order: number; documentCount: number; subfolderCount: number; children: FolderDto[]; documents: FolderDocumentDto[]; createdAt: string; updatedAt: string; }
4
+ export type Folder = FolderDto;
5
+ export interface CreateFolderData { name: string; parentId?: string | null; categoryId?: string | null; }
6
+ export interface UpdateFolderData { name?: string; parentId?: string | null; categoryId?: string | null; order?: number; }
7
+ export declare function listFolders(parentId?: string | null, all?: boolean, fetcher?: typeof fetch): Promise<FolderDto[]>;
8
+ export declare function getFolder(id: string, fetcher?: typeof fetch): Promise<FolderDto>;
9
+ export declare function getFolderPath(folderId: string, fetcher?: typeof fetch): Promise<Array<{ id: string; name: string }>>;
10
+ export declare function createFolder(data: CreateFolderData): Promise<FolderDto>;
11
+ export declare function updateFolder(id: string, data: UpdateFolderData): Promise<FolderDto>;
12
+ export declare function deleteFolder(id: string): Promise<void>;
13
+ export declare function duplicateDocument(documentId: string): Promise<FolderDocumentDto>;
14
+ export declare function deleteDocument(documentId: string): Promise<void>;
@@ -1,8 +1,10 @@
1
1
 
2
- export type ProfileDto = Readonly<Record<string, unknown>>;
3
- export type EmbeddingConfigDto = Readonly<Record<string, unknown>>;
4
- export declare function getProfile(...args: readonly unknown[]): Promise<ProfileDto>;
5
- export declare function updateProfile(...args: readonly unknown[]): Promise<ProfileDto>;
6
- export declare function getEmbeddingConfig(...args: readonly unknown[]): Promise<EmbeddingConfigDto>;
7
- export declare function updateEmbeddingConfig(...args: readonly unknown[]): Promise<EmbeddingConfigDto>;
8
- export declare function deleteAccount(...args: readonly unknown[]): Promise<unknown>;
2
+ export interface ProfileDto { id: string; name: string; email: string; avatar: string | null; }
3
+ export type UserProfile = ProfileDto;
4
+ export interface EmbeddingConfigDto { baseUrl: string; apiKey: string; model: string; fallbackBaseUrl: string | null; fallbackApiKey: string | null; fallbackModel: string | null; }
5
+ export type EmbeddingConfig = EmbeddingConfigDto;
6
+ export declare function getProfile(): Promise<ProfileDto>;
7
+ export declare function updateProfile(data: { name?: string }): Promise<ProfileDto>;
8
+ export declare function getEmbeddingConfig(): EmbeddingConfigDto;
9
+ export declare function updateEmbeddingConfig(data: Partial<EmbeddingConfigDto>): EmbeddingConfigDto;
10
+ export declare function deleteAccount(): Promise<void>;
@@ -1,11 +1,15 @@
1
1
 
2
- export type TagDto = Readonly<Record<string, unknown>>;
3
- export declare const createTagInputSchema: unknown;
4
- export declare const updateTagInputSchema: unknown;
5
- export declare function listTags(...args: readonly unknown[]): Promise<readonly TagDto[]>;
6
- export declare function getTag(...args: readonly unknown[]): Promise<TagDto>;
7
- export declare function createTag(...args: readonly unknown[]): Promise<TagDto>;
8
- export declare function updateTag(...args: readonly unknown[]): Promise<TagDto>;
9
- export declare function deleteTag(...args: readonly unknown[]): Promise<unknown>;
10
- export declare function addTagToDocument(...args: readonly unknown[]): Promise<unknown>;
11
- export declare function removeTagFromDocument(...args: readonly unknown[]): Promise<unknown>;
2
+ import type { z } from "zod";
3
+ export interface TagDto { id: string; name: string; color: string | null; createdAt: string; documentCount?: number; }
4
+ export type Tag = TagDto;
5
+ export interface CreateTagInput { name: string; color?: string; }
6
+ export interface UpdateTagInput { name?: string; color?: string; }
7
+ export declare const createTagInputSchema: z.ZodType<CreateTagInput>;
8
+ export declare const updateTagInputSchema: z.ZodType<UpdateTagInput>;
9
+ export declare function listTags(fetcher?: typeof fetch): Promise<TagDto[]>;
10
+ export declare function getTag(id: string): Promise<TagDto>;
11
+ export declare function createTag(name: string, color?: string): Promise<TagDto>;
12
+ export declare function updateTag(id: string, data: UpdateTagInput): Promise<TagDto>;
13
+ export declare function deleteTag(id: string): Promise<void>;
14
+ export declare function addTagToDocument(documentId: string, tagId: string): Promise<void>;
15
+ export declare function removeTagFromDocument(documentId: string, tagId: string): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../SettingsDialog-DiAyhzw0.js";
1
+ import { t as e } from "../SettingsDialog-D4pgFD0D.js";
2
2
  export { e as SettingsDialog };
@@ -4,8 +4,8 @@ import { $ as O, A as k, C as Te, D as A, H as j, I as M, J as Ee, L as De, M as
4
4
  import { n as Je, r as Ye, t as Xe } from "../resolve-Bl6xmJl_.js";
5
5
  import { a as Ze, c as Qe, i as $e, n as et, o as tt, r as nt, s as rt, t as it } from "../input-ieWIt8I7.js";
6
6
  import { _ as at, a as ot, c as st, d as ct, f as lt, g as ut, h as dt, i as ft, l as pt, m as mt, n as ht, o as gt, p as _t, s as vt, t as yt, u as bt } from "../tag-store.svelte-B3839FYq.js";
7
- import { C as xt, D as St, O as Ct, S as wt, T as Tt, _ as Et, a as Dt, b as Ot, c as kt, d as At, f as jt, h as Mt, k as Nt, l as Pt, m as Ft, n as It, o as Lt, p as Rt, r as J, s as zt, t as Bt, u as Vt, v as Ht, w as Ut, x as Wt, y as Gt } from "../ShareDialog-DaZf1raY.js";
8
- import { a as Kt, i as qt, n as Jt, o as Yt, r as Xt, s as Zt, t as Qt } from "../SettingsDialog-DiAyhzw0.js";
7
+ import { C as xt, D as St, O as Ct, S as wt, T as Tt, _ as Et, a as Dt, b as Ot, c as kt, d as At, f as jt, h as Mt, k as Nt, l as Pt, m as Ft, n as It, o as Lt, p as Rt, r as J, s as zt, t as Bt, u as Vt, v as Ht, w as Ut, x as Wt, y as Gt } from "../ShareDialog-Dzh7rV7J.js";
8
+ import { a as Kt, i as qt, n as Jt, o as Yt, r as Xt, s as Zt, t as Qt } from "../SettingsDialog-D4pgFD0D.js";
9
9
  import { n as $t, t as en } from "../tag-C5xrg-bb.js";
10
10
  import { t as tn } from "../client-B9hzI0W8.js";
11
11
  import { c as nn, i as rn, r as an, s as on, t as sn } from "../documents-DFVS9SsL.js";
@@ -5,7 +5,7 @@ import { i as Ve, n as He, r as q, t as Ue } from "./resolve-Bl6xmJl_.js";
5
5
  import { n as We, o as Ge, r as Ke, t as qe } from "./DatePicker-BcMD49PV.js";
6
6
  import { a as Je, c as J, i as Ye, n as Xe, o as Ze, r as Qe, s as $e } from "./input-ieWIt8I7.js";
7
7
  import { _ as et, a as tt, c as nt, d as rt, f as it, g as at, h as ot, l as st, m as ct, p as lt, u as ut } from "./tag-store.svelte-B3839FYq.js";
8
- import { C as dt, D as Y, E as ft, O as pt, S as mt, T as ht, a as gt, b as _t, g as vt, i as yt, k as bt, n as xt, s as St, t as Ct, w as wt, y as Tt } from "./ShareDialog-DaZf1raY.js";
8
+ import { C as dt, D as Y, E as ft, O as pt, S as mt, T as ht, a as gt, b as _t, g as vt, i as yt, k as bt, n as xt, s as St, t as Ct, w as wt, y as Tt } from "./ShareDialog-Dzh7rV7J.js";
9
9
  import { t as Et } from "./client-B9hzI0W8.js";
10
10
  import { c as Dt, i as Ot, o as kt } from "./documents-DFVS9SsL.js";
11
11
  import { c as At, i as jt, s as Mt } from "./folders-CGe9diAG.js";
@@ -1,2 +1,35 @@
1
- import type { Component } from "svelte";
2
- export declare const DocsmintExtensionProvider: Component;
1
+ import type { Component, ComponentType, Snippet, SvelteComponent } from "svelte";
2
+ export interface ExtensionVisibilityContext {
3
+ userId?: string;
4
+ pathname?: string;
5
+ capabilities?: Readonly<Record<string, boolean>>;
6
+ permissions?: Readonly<Record<string, boolean>>;
7
+ }
8
+ export type ExtensionVisibility = (context: ExtensionVisibilityContext) => boolean;
9
+ export type ExtensionIcon = ComponentType<SvelteComponent>;
10
+ export interface DocTabPanelProps { documentId: string; content: string; contentJson: object | undefined; }
11
+ export interface DocTabDefinition { id: string; label: string; component: Component<DocTabPanelProps>; order?: number; icon?: ExtensionIcon; disabled?: boolean; }
12
+ export interface NavigationExtension { id: string; label: string; href?: string; icon?: ExtensionIcon; order?: number; badge?: string | number; disabled?: boolean; visible?: ExtensionVisibility; }
13
+ export interface DashboardWidgetProps { userId?: string; }
14
+ export interface DashboardWidgetExtension { id: string; title?: string; component: Component<DashboardWidgetProps>; order?: number; colSpan?: 1 | 2 | 3 | 4 | 6 | 12; visible?: ExtensionVisibility; }
15
+ export interface SearchWidgetProps { query: string; loading: boolean; total?: number; }
16
+ export interface SearchWidgetExtension { id: string; title?: string; component: Component<SearchWidgetProps>; order?: number; visible?: ExtensionVisibility; }
17
+ export interface EditorActionContext { documentId: string; content: string; contentJson: object | undefined; selection?: unknown; commands?: Readonly<Record<string, (...args: unknown[]) => unknown>>; }
18
+ export type ExtensionAction = (context: EditorActionContext) => void | Promise<void>;
19
+ export interface EditorActionExtension { id: string; label: string; icon?: ExtensionIcon; order?: number; disabled?: boolean | ((context: EditorActionContext) => boolean); visible?: ExtensionVisibility; run: ExtensionAction; }
20
+ export interface DocumentMenuActionContext extends EditorActionContext { title?: string; }
21
+ export type DocumentMenuAction = (context: DocumentMenuActionContext) => void | Promise<void>;
22
+ export interface DocumentMenuActionExtension { id: string; label: string; icon?: ExtensionIcon; order?: number; destructive?: boolean; disabled?: boolean | ((context: DocumentMenuActionContext) => boolean); visible?: ExtensionVisibility; run: DocumentMenuAction; }
23
+ export interface SettingsSectionProps { userId?: string; }
24
+ export interface SettingsSectionExtension { id: string; label: string; component: Component<SettingsSectionProps>; order?: number; description?: string; visible?: ExtensionVisibility; }
25
+ export interface CommandPaletteActionContext { query?: string; }
26
+ export type CommandPaletteAction = (context: CommandPaletteActionContext) => void | Promise<void>;
27
+ export interface CommandPaletteActionExtension { id: string; label: string; keywords?: readonly string[]; group?: string; shortcut?: string; icon?: ExtensionIcon; order?: number; disabled?: boolean; visible?: ExtensionVisibility; run: CommandPaletteAction; }
28
+ export interface SharedDocumentExtensionContext { shareToken: string; documentId: string; title: string; content: string; contentJson?: object; role: "viewer" | "commenter" | "editor"; permissions: { read: true; annotate: boolean; edit: boolean; export: boolean; }; }
29
+ export interface SharedDocumentExtension { id: string; label: string; icon?: ExtensionIcon; order?: number; permission: "annotate" | "edit"; visible?: (context: SharedDocumentExtensionContext) => boolean; component: Component<{ context: SharedDocumentExtensionContext }>; }
30
+ export interface DocsmintFrontendExtensions { navigation: readonly NavigationExtension[]; dashboardWidgets: readonly DashboardWidgetExtension[]; searchWidgets: readonly SearchWidgetExtension[]; documentTabs: readonly DocTabDefinition[]; editorActions: readonly EditorActionExtension[]; documentMenuActions: readonly DocumentMenuActionExtension[]; settingsSections: readonly SettingsSectionExtension[]; commandPaletteActions: readonly CommandPaletteActionExtension[]; sharedDocumentHeaderActions: readonly SharedDocumentExtension[]; sharedDocumentTabs: readonly SharedDocumentExtension[]; sharedDocumentNotesModes: readonly SharedDocumentExtension[]; sharedDocumentEditorModes: readonly SharedDocumentExtension[]; }
31
+ /** @deprecated Use DocsmintFrontendExtensions. */
32
+ export type HiaiDocsFrontendExtensions = DocsmintFrontendExtensions;
33
+ export type FrontendExtensions = DocsmintFrontendExtensions;
34
+ export interface DocsmintExtensionProviderProps { extensions?: Partial<DocsmintFrontendExtensions>; children: Snippet; }
35
+ export declare const DocsmintExtensionProvider: Component<DocsmintExtensionProviderProps>;
@@ -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:60;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
+ .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}}
2
2
  /*$vite$:1*/
@@ -0,0 +1,17 @@
1
+ //#region src/lib/stores/search-preferences.ts
2
+ var e = { graphSearchEnabled: !0 }, t = "docsmint:search-preferences";
3
+ function n(t) {
4
+ if (!t || typeof t != "object") return { ...e };
5
+ let n = t;
6
+ return { graphSearchEnabled: typeof n.graphSearchEnabled == "boolean" ? n.graphSearchEnabled : e.graphSearchEnabled };
7
+ }
8
+ function r(t = typeof localStorage > "u" ? null : localStorage) {
9
+ if (!t) return { ...e };
10
+ try {
11
+ return n(JSON.parse(t.getItem("docsmint:search-preferences") ?? "null"));
12
+ } catch {
13
+ return { ...e };
14
+ }
15
+ }
16
+ //#endregion
17
+ export { r as i, t as n, n as r, e as t };