@hiai-gg/docsmint 0.4.8 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/src/lib/api-key-facade.ts +1 -0
- package/dist/backend/index.js +38379 -18500
- package/dist/backend-api-key-facade.js +772 -0
- package/dist/client.js +2 -7
- package/dist/frontend/{CategoryDialog-CxVyaBV5.js → CategoryDialog-DyytjQn6.js} +109 -108
- package/dist/frontend/ConfirmDialog-DgMTQBq4.js +134 -0
- package/dist/frontend/{CreateSnapshotDialog-BDgFTeFn.js → CreateSnapshotDialog-CXW4sCuf.js} +29 -29
- package/dist/frontend/{DatePicker-BZRBluzF.js → DatePicker-BkaaNS1l.js} +34 -34
- package/dist/frontend/{DeleteDialog-CvAr2WPu.js → DeleteDialog-8k6JYWCx.js} +3 -3
- package/dist/frontend/{FolderNode--l1g8bcL.js → FolderNode-DAGPgi-M.js} +8 -8
- package/dist/frontend/{FolderTreeSelector-CyB8y2Sm.js → FolderTreeSelector-BMB1MS9N.js} +3 -3
- package/dist/frontend/{Icon-CooFj4Ee.js → Icon-Db-o32_E.js} +1 -1
- package/dist/frontend/{SettingsDialog-BB7h7GWw.js → SettingsDialog-DEx1eEZm.js} +290 -290
- package/dist/frontend/ShareDialog-ChZogJtW.js +166 -0
- package/dist/frontend/Sidebar-BdB8CfXS.js +2037 -0
- package/dist/frontend/TagCreateDialog-Bb0-Vtzh.js +261 -0
- package/dist/frontend/api/attachments.js +1 -1
- package/dist/frontend/api/categories.d.ts +3 -3
- package/dist/frontend/api/categories.js +1 -1
- package/dist/frontend/api/documents.js +1 -1
- package/dist/frontend/api/share.js +1 -1
- package/dist/frontend/api/tags.js +1 -1
- package/dist/frontend/{api-keys-CpkrA8rD.js → api-keys-DIwAdYkg.js} +10 -10
- package/dist/frontend/app-shell.d.ts +5 -1
- package/dist/frontend/app-shell.js +83 -72
- package/dist/frontend/{attachments-BuILSs56.js → attachments-C2DBzU-r.js} +13 -13
- package/dist/frontend/{camera-iKXDOOWT.js → camera-CzCxBOpc.js} +2 -2
- package/dist/frontend/{categories-Drnns7N6.js → categories-X7gK8azc.js} +0 -2
- package/dist/frontend/{check-D-UuvBuh.js → check-BIi-Ghti.js} +2 -2
- package/dist/frontend/{chevron-down-CiPtYyFh.js → chevron-down-C2ft7XUV.js} +2 -2
- package/dist/frontend/{circle-check-tSPE1V6t.js → circle-check-BrqfiQH1.js} +2 -2
- package/dist/frontend/{clock-DJHbHZb8.js → clock-Dz86E4Kz.js} +2 -2
- package/dist/frontend/collaboration.d.ts +4 -2
- package/dist/frontend/collaboration.js +114 -89
- package/dist/frontend/components/category-dialog.js +1 -1
- package/dist/frontend/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend/components/delete-dialog.js +1 -1
- package/dist/frontend/components/editor/document-editor.js +1169 -1168
- package/dist/frontend/components/editor/document-title.js +2 -2
- package/dist/frontend/components/editor/markdown-toggle.js +4 -4
- package/dist/frontend/components/folder-node.js +1 -1
- package/dist/frontend/components/folder-tree-selector.js +1 -1
- package/dist/frontend/components/save-as-dialog.js +145 -144
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.js +1 -1
- package/dist/frontend/components/sidebar.js +1 -1
- package/dist/frontend/components/tag-create-dialog.js +1 -1
- package/dist/frontend/components/version-history.js +34 -34
- package/dist/frontend/{confirm-dialog-C4jTRbiS.js → confirm-dialog-CzmoZw3a.js} +20 -20
- package/dist/frontend/{copy-GppwRMjX.js → copy-CvCh4ZVt.js} +2 -2
- package/dist/frontend/dashboard.js +1025 -1011
- package/dist/frontend/{dialog-Bevp9mmM.js → dialog-Ce79C9fd.js} +1 -1
- package/dist/frontend/{dist-C3857Spp.js → dist-DQa_OHOa.js} +2 -2
- package/dist/frontend/{documents-Bc7b_MSZ.js → documents-CwCs1rA7.js} +52 -12
- package/dist/frontend/{dropdown-menu-CRSby3e9.js → dropdown-menu-Cre80-CJ.js} +2 -2
- package/dist/frontend/{folder-DeWhnD7O.js → folder-Cx60MRpi.js} +3 -3
- package/dist/frontend/i18n.js +3 -3
- package/dist/frontend/{messages-C5Q890i2.js → messages-DIovIZrK.js} +46 -44
- package/dist/frontend/{rotate-ccw-B4Q7brmV.js → rotate-ccw-ta4NosZ0.js} +2 -2
- package/dist/frontend/{route-context-BqQQ5c4i.js → route-context-DYQlUfzL.js} +14 -11
- package/dist/frontend/search.js +99 -99
- package/dist/frontend/{share-Cu7SSJuJ.js → share-D7JtkC85.js} +2 -2
- package/dist/frontend/{tag-HxRazVN_.js → tag-DhVFHMcV.js} +3 -3
- package/dist/frontend/{tag-store.svelte-CG7RrlDT.js → tag-store.svelte-ogVCMCbv.js} +1 -1
- package/dist/frontend/{tags-CtCV0Djo.js → tags-BdCaMGfj.js} +18 -18
- package/dist/frontend/{x-CzBsnJ2x.js → x-cfdlccjs.js} +2 -2
- package/dist/frontend-ssr/api/attachments.js +1 -1
- package/dist/frontend-ssr/api/categories.js +1 -1
- package/dist/frontend-ssr/api/documents.js +1 -1
- package/dist/frontend-ssr/api/share.js +1 -1
- package/dist/frontend-ssr/api/tags.js +1 -1
- package/dist/frontend-ssr/app-shell.js +30 -26
- package/dist/frontend-ssr/assets/{CategoryDialog-BcGW8-Kf.js → CategoryDialog-CLAGMZPz.js} +12 -10
- package/dist/frontend-ssr/assets/ConfirmDialog-BhAelejz.js +131 -0
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-1bROJ-Rn.js → CreateSnapshotDialog-DNAjd4eD.js} +2 -2
- package/dist/frontend-ssr/assets/{DatePicker-B1ML8OVz.js → DatePicker-Cp6Qmgdb.js} +17 -29
- package/dist/frontend-ssr/assets/{DeleteDialog-tBYaP0L3.js → DeleteDialog-DG9Lm38J.js} +2 -2
- package/dist/frontend-ssr/assets/{FolderNode-CpHrpOED.js → FolderNode-Ty6fMbDu.js} +5 -5
- package/dist/frontend-ssr/assets/{FolderTreeSelector-DZNZ2oI6.js → FolderTreeSelector-Bxi8EqMm.js} +8 -12
- package/dist/frontend-ssr/assets/{Icon-B0Zqppjo.js → Icon-QwirKi9Y.js} +16 -28
- package/dist/frontend-ssr/assets/{SettingsDialog-C2SMWJL8.js → SettingsDialog-BymUxBgg.js} +20 -27
- package/dist/frontend-ssr/assets/{ShareDialog-vMvJLRfn.js → ShareDialog-C-9VDKSz.js} +3 -1
- package/dist/frontend-ssr/assets/{Sidebar-DKqmwreh.js → Sidebar-DzbIUZFc.js} +45 -55
- package/dist/frontend-ssr/assets/{TagCreateDialog-B0DPEfmQ.js → TagCreateDialog-B7wDbVqG.js} +7 -5
- package/dist/frontend-ssr/assets/{api-keys-DFqX39MT.js → api-keys-DIbclwj5.js} +10 -10
- package/dist/frontend-ssr/assets/{attachments-CWBxE3Vz.js → attachments-CXgatN0B.js} +9 -9
- package/dist/frontend-ssr/assets/{camera-CdxscTw-.js → camera-D6s20LDi.js} +6 -10
- package/dist/frontend-ssr/assets/{categories-CTCtdv7V.js → categories-av9xjeg5.js} +0 -2
- package/dist/frontend-ssr/assets/{chevron-down-CSSNGNh_.js → chevron-down-CvqKATjM.js} +6 -10
- package/dist/frontend-ssr/assets/{chevron-right-B4p7Sk6X.js → chevron-right-DKD7WXjz.js} +6 -10
- package/dist/frontend-ssr/assets/{circle-check-CI1v4vYh.js → circle-check-CPS9dKEo.js} +6 -10
- package/dist/frontend-ssr/assets/{clock-IL-eX2di.js → clock-CzsE58TH.js} +6 -10
- package/dist/frontend-ssr/assets/{confirm-dialog-BCthVwUY.js → confirm-dialog-B3C0WeMn.js} +20 -32
- package/dist/frontend-ssr/assets/{copy-CjV57nGQ.js → copy-DkkCPkBL.js} +6 -10
- package/dist/frontend-ssr/assets/{documents-PObdTOiT.js → documents-CZ-wQohy.js} +58 -12
- package/dist/frontend-ssr/assets/{dropdown-menu-Bj5rbqbB.js → dropdown-menu-CGkf8-rb.js} +6 -10
- package/dist/frontend-ssr/assets/{folder-DChhG7qN.js → folder-DYIE-XPP.js} +6 -10
- package/dist/frontend-ssr/assets/{loader-circle-DZsrZ-er.js → loader-circle-CIEWGyfP.js} +6 -10
- package/dist/frontend-ssr/assets/{messages-CvqpZNJe.js → messages-D-auzk9H.js} +23 -1
- package/dist/frontend-ssr/assets/{rotate-ccw-BlgWwaiq.js → rotate-ccw-dJSqPyTd.js} +6 -10
- package/dist/frontend-ssr/assets/{route-context-uca_b2Px.js → route-context-BPRerEtZ.js} +11 -8
- package/dist/frontend-ssr/assets/{share-BTBJelxA.js → share-qTqvd6Lu.js} +2 -2
- package/dist/frontend-ssr/assets/{tag-GZEuGWk1.js → tag-BmiVU_Ej.js} +11 -19
- package/dist/frontend-ssr/assets/{tag-store.svelte-DvgUduhd.js → tag-store.svelte-BM1lUI_P.js} +1 -1
- package/dist/frontend-ssr/assets/{tags-BId2wdYd.js → tags-BQsI_6OW.js} +12 -12
- package/dist/frontend-ssr/collaboration.js +37 -12
- package/dist/frontend-ssr/components/category-dialog.js +1 -1
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend-ssr/components/delete-dialog.js +1 -1
- package/dist/frontend-ssr/components/editor/document-editor.js +108 -186
- package/dist/frontend-ssr/components/editor/document-title.js +1 -1
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +2 -2
- package/dist/frontend-ssr/components/folder-node.js +1 -1
- package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
- package/dist/frontend-ssr/components/save-as-dialog.js +7 -5
- package/dist/frontend-ssr/components/settings.js +1 -1
- package/dist/frontend-ssr/components/share-dialog.js +1 -1
- package/dist/frontend-ssr/components/sidebar.js +1 -1
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
- package/dist/frontend-ssr/components/version-history.js +19 -27
- package/dist/frontend-ssr/dashboard.js +78 -113
- package/dist/frontend-ssr/i18n.js +1 -1
- package/dist/frontend-ssr/search.js +15 -19
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/types.d.ts +1 -3
- package/dist/workspace.d.ts +0 -2
- package/dist/workspace.js +0 -2
- package/package.json +2 -2
- package/packages/cli/src/index.ts +1 -1
- package/packages/db/src/with-tenant.ts +2 -0
- package/packages/mcp-server/src/index.ts +1 -1
- package/dist/frontend/ConfirmDialog-NFGXRa3E.js +0 -214
- package/dist/frontend/ShareDialog-BUOkYSlw.js +0 -165
- package/dist/frontend/Sidebar-fbtYC3qs.js +0 -2037
- package/dist/frontend/TagCreateDialog-B9YZBNHi.js +0 -260
- package/dist/frontend-ssr/assets/ConfirmDialog-DjMFKc0V.js +0 -420
|
@@ -9945,6 +9945,26 @@ var import_progress_uploading = ((inputs = {}, options = {}) => {
|
|
|
9945
9945
|
return en_import_progress_uploading(inputs);
|
|
9946
9946
|
});
|
|
9947
9947
|
//#endregion
|
|
9948
|
+
//#region src/lib/paraglide/messages/import_progress_queued.js
|
|
9949
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
9950
|
+
/** @typedef {{}} Import_Progress_QueuedInputs */
|
|
9951
|
+
var en_import_progress_queued = () => {
|
|
9952
|
+
return `Queued`;
|
|
9953
|
+
};
|
|
9954
|
+
/**
|
|
9955
|
+
* | output |
|
|
9956
|
+
* | --- |
|
|
9957
|
+
* | "Queued" |
|
|
9958
|
+
*
|
|
9959
|
+
* @param {Import_Progress_QueuedInputs} inputs
|
|
9960
|
+
* @param {{ locale?: "en" }} options
|
|
9961
|
+
* @returns {LocalizedString}
|
|
9962
|
+
*/
|
|
9963
|
+
var import_progress_queued = ((inputs = {}, options = {}) => {
|
|
9964
|
+
options.locale ?? getLocale();
|
|
9965
|
+
return en_import_progress_queued(inputs);
|
|
9966
|
+
});
|
|
9967
|
+
//#endregion
|
|
9948
9968
|
//#region src/lib/paraglide/messages/import_progress_processing.js
|
|
9949
9969
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
9950
9970
|
/** @typedef {{}} Import_Progress_ProcessingInputs */
|
|
@@ -10349,6 +10369,7 @@ var _index_exports = /* @__PURE__ */ __exportAll({
|
|
|
10349
10369
|
import_progress_empty: () => import_progress_empty,
|
|
10350
10370
|
import_progress_error: () => import_progress_error,
|
|
10351
10371
|
import_progress_processing: () => import_progress_processing,
|
|
10372
|
+
import_progress_queued: () => import_progress_queued,
|
|
10352
10373
|
import_progress_summary: () => import_progress_summary,
|
|
10353
10374
|
import_progress_title: () => import_progress_title,
|
|
10354
10375
|
import_progress_total: () => import_progress_total,
|
|
@@ -10837,6 +10858,7 @@ var messages_exports = /* @__PURE__ */ __exportAll({
|
|
|
10837
10858
|
import_progress_empty: () => import_progress_empty,
|
|
10838
10859
|
import_progress_error: () => import_progress_error,
|
|
10839
10860
|
import_progress_processing: () => import_progress_processing,
|
|
10861
|
+
import_progress_queued: () => import_progress_queued,
|
|
10840
10862
|
import_progress_summary: () => import_progress_summary,
|
|
10841
10863
|
import_progress_title: () => import_progress_title,
|
|
10842
10864
|
import_progress_total: () => import_progress_total,
|
|
@@ -11122,4 +11144,4 @@ var messages_exports = /* @__PURE__ */ __exportAll({
|
|
|
11122
11144
|
weekday_we: () => weekday_we
|
|
11123
11145
|
});
|
|
11124
11146
|
//#endregion
|
|
11125
|
-
export {
|
|
11147
|
+
export { month_august as $, search_tags as $n, editor_toolbar_list as $t, editor_highlight_gray as A, settings_email as An, doc_tags as Ar, version_snapshot_description_placeholder as At, date_picker_aria as B, share_guest_access as Bn, dashboard_title as Br, editor_markdown_placeholder as Bt, categories_new as C, change_password as Cn, doc_move_to_folder as Cr, version_badge_snapshot as Ct, sidebar_powered_by as D, settings_save as Dn, doc_updated as Dr, version_snapshot_dialog_title as Dt, scroll_to_top_aria as E, password_label as En, doc_open_menu as Er, version_snapshot_dialog_description as Et, editor_highlight_red as F, settings_appearance as Fn, doc_title_label as Fr, version_restore_confirm as Ft, weekday_th as G, share_expires_never as Gn, editor_toolbar_emoji as Gt, weekday_su as H, share_expires_7d as Hn, app_name as Hr, editor_enter_url as Ht, editor_highlight_orange as I, settings_account as In, doc_title_placeholder as Ir, version_restore_short as It, weekday_mo as J, share_password_protection as Jn, editor_toolbar_redo as Jt, weekday_we as K, share_expires as Kn, editor_toolbar_text_formatting as Kt, editor_highlight_yellow as L, settings_profile as Ln, dashboard_page_title as Lr, version_restore as Lt, editor_highlight_purple as M, theme_dark as Mn, doc_delete_success as Mr, version_snapshot_description as Mt, editor_highlight_blue as N, theme_light as Nn, doc_delete_confirm as Nr, version_snapshot_label as Nt, doc_new_folder_name as O, settings_name as On, doc_delete as Or, version_snapshot_creating as Ot, editor_highlight_green as P, settings_theme as Pn, doc_content_placeholder as Pr, version_create_snapshot as Pt, month_september as Q, search_date_from as Qn, editor_toolbar_heading as Qt, editor_anonymous as R, settings_title as Rn, dashboard_new_document as Rr, version_history_title as Rt, categories_create_title as S, auth_password as Sn, folders_new as Sr, version_restored_from as St, version_history_empty as T, new_password as Tn, doc_open as Tr, version_filter_all as Tt, weekday_sa as U, share_expires_1d as Un, locales as Ur, editor_toolbar_copy as Ut, date_picker_placeholder as V, share_expires_30d as Vn, nav_documents as Vr, editor_content_label as Vt, weekday_fr as W, share_expires_1h as Wn, setLocale as Wr, editor_toolbar_align as Wt, month_november as X, share_create_title as Xn, editor_toolbar_horizontal_rule as Xt, month_december as Y, share_create_link as Yn, editor_toolbar_undo as Yt, month_october as Z, search_date_to as Zn, editor_toolbar_code_block as Zt, categories_delete_error as _, action_cancel as _n, folders_delete_title as _r, folder_page_title as _t, import_progress_error as a, sidebar_folders as an, tags_name_placeholder as ar, month_february as at, categories_name_placeholder as b, error_generic as bn, folders_empty_description as br, editor_more_options as bt, import_progress_queued as c, time_hours_ago as cn, folders_move as cr, search_empty_description as ct, import_progress_title as d, action_go_to as dn, folders_document as dr, search_folders as dt, editor_toolbar_image as en, search_placeholder as er, month_july as et, sidebar_uncategorized as f, action_back as fn, folders_documents as fr, search_clear_all_filters as ft, categories_delete_title as g, action_delete as gn, folders_delete_description as gr, share_copied as gt, categories_delete_description as h, action_edit as hn, folders_delete_success as hr, search_title_with_query as ht, import_progress_summary as i, editor_toolbar_bold as in, tags_delete_title as ir, month_march as it, editor_highlight_pink as j, theme_system as jn, doc_delete_success_description as jr, version_snapshot_label_placeholder as jt, dashboard_import as k, settings_email_change_warning as kn, doc_share as kr, version_snapshot_create as kt, import_progress_uploading as l, time_minutes_ago as ln, folders_subfolder as lr, search_empty_title as lt, categories_delete_success as m, action_create as mn, folders_delete_success_description as mr, search_input_placeholder as mt, import_progress_empty as n, editor_toolbar_underline as nn, tags_add as nr, month_may as nt, import_progress_done as o, sidebar_recent as on, tags_edit as or, month_january as ot, categories_delete_success_description as p, action_close as pn, folders_name_placeholder as pr, search_toggle_filters as pt, weekday_tu as q, share_toggle_password as qn, editor_toolbar_highlight as qt, import_progress_close as r, editor_toolbar_italic as rn, tags_delete_description as rr, month_april as rt, import_progress_processing as s, time_days_ago as sn, tags_new as sr, search_popular as st, messages_exports as t, editor_toolbar_link as tn, search_title as tr, month_june as tt, import_progress_total as u, action_loading as un, folders_subfolders as ur, search_date_range as ut, categories_update_error as v, action_save as vn, folders_delete as vr, tags_load_error as vt, categories_title as w, confirm_password as wn, doc_duplicate as wr, version_filter_snapshots as wt, categories_edit_title as x, auth_logout as xn, folders_empty as xr, version_restore_failed as xt, categories_create_error as y, error_server as yn, folders_rename as yr, action_copy_content as yt, error_validation as z, share_add as zn, dashboard_subtitle as zr, editor_markdown_label as zt };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
1
|
+
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
2
2
|
import * as $ from "svelte/internal/server";
|
|
3
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
3
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/rotate-ccw.svelte
|
|
4
4
|
function Rotate_ccw($$renderer, $$props) {
|
|
5
5
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-svelte
|
|
7
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* ISC License
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2026 Lucide
|
|
11
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
12
12
|
*
|
|
13
13
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
14
14
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -24,13 +24,9 @@ function Rotate_ccw($$renderer, $$props) {
|
|
|
24
24
|
*
|
|
25
25
|
* ---
|
|
26
26
|
*
|
|
27
|
-
* The
|
|
27
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) 2013-present Cole Bemis
|
|
29
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
34
30
|
*
|
|
35
31
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
32
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { getContext, setContext } from "svelte";
|
|
2
2
|
import { goto } from "$app/navigation";
|
|
3
|
+
//#region src/lib/hosts/request-context.ts
|
|
4
|
+
var REQUEST_ADAPTER = Symbol("docsmint-request-adapter");
|
|
5
|
+
function provideDocsmintRequestAdapter(adapter) {
|
|
6
|
+
setContext(REQUEST_ADAPTER, adapter);
|
|
7
|
+
}
|
|
8
|
+
/** Reads the host transport while retaining standalone browser behaviour. */
|
|
9
|
+
function getDocsmintRequestAdapter() {
|
|
10
|
+
return getContext(REQUEST_ADAPTER) ?? { fetch };
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
3
13
|
//#region src/lib/hosts/route-context.ts
|
|
4
14
|
var ROUTE_ADAPTER = Symbol("docsmint-route-adapter");
|
|
5
|
-
var REQUEST_ADAPTER = Symbol("docsmint-request-adapter");
|
|
6
15
|
var standaloneRoute = {
|
|
7
16
|
pathname: "/",
|
|
8
17
|
resolve: (path) => path,
|
|
@@ -12,9 +21,6 @@ var standaloneRoute = {
|
|
|
12
21
|
function provideDocsmintRouteAdapter(adapter) {
|
|
13
22
|
setContext(ROUTE_ADAPTER, adapter);
|
|
14
23
|
}
|
|
15
|
-
function provideDocsmintRequestAdapter(adapter) {
|
|
16
|
-
setContext(REQUEST_ADAPTER, adapter);
|
|
17
|
-
}
|
|
18
24
|
/**
|
|
19
25
|
* Reads the embedding route adapter, preserving the standalone SvelteKit
|
|
20
26
|
* behaviour when a public host is rendered without DocsmintAppShellHost.
|
|
@@ -22,9 +28,6 @@ function provideDocsmintRequestAdapter(adapter) {
|
|
|
22
28
|
function getDocsmintRouteAdapter() {
|
|
23
29
|
return getContext(ROUTE_ADAPTER) ?? standaloneRoute;
|
|
24
30
|
}
|
|
25
|
-
function getDocsmintRequestAdapter() {
|
|
26
|
-
return getContext(REQUEST_ADAPTER) ?? { fetch };
|
|
27
|
-
}
|
|
28
31
|
function resolveDocsmintRoute(route, path) {
|
|
29
32
|
return /^(?:[a-z][a-z\d+.-]*:|#|\/\/)/i.test(path) ? path : route.resolve(path);
|
|
30
33
|
}
|
|
@@ -33,4 +36,4 @@ function navigateDocsmintRoute(route, path, options) {
|
|
|
33
36
|
return route.navigate?.(resolved, options) ?? goto(resolved, options);
|
|
34
37
|
}
|
|
35
38
|
//#endregion
|
|
36
|
-
export {
|
|
39
|
+
export { getDocsmintRequestAdapter as a, resolveDocsmintRoute as i, navigateDocsmintRoute as n, provideDocsmintRequestAdapter as o, provideDocsmintRouteAdapter as r, getDocsmintRouteAdapter as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as apiFetch } from "./client-DZMkDkDn.js";
|
|
2
2
|
//#region src/lib/api/share.ts
|
|
3
|
-
function createShareLink(data) {
|
|
3
|
+
function createShareLink(data, fetcher) {
|
|
4
4
|
if (!data.documentId && !data.folderId && !data.categoryId) return Promise.reject(/* @__PURE__ */ new Error("createShareLink: documentId, folderId, or categoryId is required"));
|
|
5
5
|
return apiFetch("/api/share", {
|
|
6
6
|
method: "POST",
|
|
7
7
|
body: JSON.stringify(data)
|
|
8
|
-
});
|
|
8
|
+
}, fetcher);
|
|
9
9
|
}
|
|
10
10
|
function listShareLinks(params) {
|
|
11
11
|
return apiFetch(`/api/share${params?.documentId ? `?documentId=${params.documentId}` : ""}`);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
1
|
+
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
2
2
|
import * as $ from "svelte/internal/server";
|
|
3
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
3
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/search.svelte
|
|
4
4
|
function Search($$renderer, $$props) {
|
|
5
5
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-svelte
|
|
7
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* ISC License
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2026 Lucide
|
|
11
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
12
12
|
*
|
|
13
13
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
14
14
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -24,13 +24,9 @@ function Search($$renderer, $$props) {
|
|
|
24
24
|
*
|
|
25
25
|
* ---
|
|
26
26
|
*
|
|
27
|
-
* The
|
|
27
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) 2013-present Cole Bemis
|
|
29
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
34
30
|
*
|
|
35
31
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
32
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -81,15 +77,15 @@ function Search($$renderer, $$props) {
|
|
|
81
77
|
]));
|
|
82
78
|
}
|
|
83
79
|
//#endregion
|
|
84
|
-
//#region ../node_modules/.bun/lucide-svelte@
|
|
80
|
+
//#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/tag.svelte
|
|
85
81
|
function Tag($$renderer, $$props) {
|
|
86
82
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
87
83
|
/**
|
|
88
|
-
* @license lucide-svelte
|
|
84
|
+
* @license lucide-svelte v0.577.0 - ISC
|
|
89
85
|
*
|
|
90
86
|
* ISC License
|
|
91
87
|
*
|
|
92
|
-
* Copyright (c) 2026 Lucide
|
|
88
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
|
|
93
89
|
*
|
|
94
90
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
95
91
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -105,13 +101,9 @@ function Tag($$renderer, $$props) {
|
|
|
105
101
|
*
|
|
106
102
|
* ---
|
|
107
103
|
*
|
|
108
|
-
* The
|
|
109
|
-
*
|
|
110
|
-
* airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
111
|
-
*
|
|
112
|
-
* The MIT License (MIT) (for the icons listed above)
|
|
104
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
113
105
|
*
|
|
114
|
-
* Copyright (c) 2013-
|
|
106
|
+
* Copyright (c) 2013-2026 Cole Bemis
|
|
115
107
|
*
|
|
116
108
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
117
109
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -12,10 +12,10 @@ var updateTagInputSchema = z.object({
|
|
|
12
12
|
async function listTags(fetcher) {
|
|
13
13
|
return apiFetch("/api/tags", {}, fetcher);
|
|
14
14
|
}
|
|
15
|
-
function getTag(id) {
|
|
16
|
-
return apiFetch(`/api/tags/${id}
|
|
15
|
+
function getTag(id, fetcher) {
|
|
16
|
+
return apiFetch(`/api/tags/${id}`, {}, fetcher);
|
|
17
17
|
}
|
|
18
|
-
function createTag(name, color) {
|
|
18
|
+
function createTag(name, color, fetcher) {
|
|
19
19
|
const input = createTagInputSchema.parse({
|
|
20
20
|
name,
|
|
21
21
|
color
|
|
@@ -23,27 +23,27 @@ function createTag(name, color) {
|
|
|
23
23
|
return apiFetch("/api/tags", {
|
|
24
24
|
method: "POST",
|
|
25
25
|
body: JSON.stringify(input)
|
|
26
|
-
});
|
|
26
|
+
}, fetcher);
|
|
27
27
|
}
|
|
28
|
-
function updateTag(id, data) {
|
|
28
|
+
function updateTag(id, data, fetcher) {
|
|
29
29
|
const input = updateTagInputSchema.parse(data);
|
|
30
30
|
return apiFetch(`/api/tags/${id}`, {
|
|
31
31
|
method: "PATCH",
|
|
32
32
|
body: JSON.stringify(input)
|
|
33
|
-
});
|
|
33
|
+
}, fetcher);
|
|
34
34
|
}
|
|
35
|
-
function deleteTag(id) {
|
|
36
|
-
return apiFetch(`/api/tags/${id}`, { method: "DELETE" });
|
|
35
|
+
function deleteTag(id, fetcher) {
|
|
36
|
+
return apiFetch(`/api/tags/${id}`, { method: "DELETE" }, fetcher);
|
|
37
37
|
}
|
|
38
|
-
function addTagToDocument(documentId, tagId) {
|
|
38
|
+
function addTagToDocument(documentId, tagId, fetcher) {
|
|
39
39
|
const input = z.object({ tagId: z.string().uuid() }).parse({ tagId });
|
|
40
40
|
return apiFetch(`/api/documents/${documentId}/tags`, {
|
|
41
41
|
method: "POST",
|
|
42
42
|
body: JSON.stringify(input)
|
|
43
|
-
});
|
|
43
|
+
}, fetcher);
|
|
44
44
|
}
|
|
45
|
-
function removeTagFromDocument(documentId, tagId) {
|
|
46
|
-
return apiFetch(`/api/documents/${documentId}/tags/${tagId}`, { method: "DELETE" });
|
|
45
|
+
function removeTagFromDocument(documentId, tagId, fetcher) {
|
|
46
|
+
return apiFetch(`/api/documents/${documentId}/tags/${tagId}`, { method: "DELETE" }, fetcher);
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
49
49
|
export { getTag as a, updateTag as c, deleteTag as i, updateTagInputSchema as l, createTag as n, listTags as o, createTagInputSchema as r, removeTagFromDocument as s, addTagToDocument as t };
|
|
@@ -1,20 +1,37 @@
|
|
|
1
1
|
import { WebsocketProvider } from "y-websocket";
|
|
2
2
|
import * as Y from "yjs";
|
|
3
|
+
//#region src/lib/realtime.ts
|
|
4
|
+
/** Constructs the one canonical standalone collaboration endpoint. */
|
|
5
|
+
function buildCollaborationConnection(documentId, accessToken, pageProtocol, pageHost) {
|
|
6
|
+
return {
|
|
7
|
+
serverUrl: `${pageProtocol === "https:" ? "wss:" : "ws:"}//${pageHost}/api/ws/collab`,
|
|
8
|
+
roomName: documentId,
|
|
9
|
+
params: accessToken ? { token: accessToken } : void 0
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/** Resolves standalone or host-owned collaboration coordinates through one contract. */
|
|
13
|
+
function resolveCollaborationConnection(documentId, accessToken, pageProtocol, pageHost, adapter) {
|
|
14
|
+
return adapter?.resolveRealtimeConnection({
|
|
15
|
+
documentId,
|
|
16
|
+
accessToken
|
|
17
|
+
}) ?? buildCollaborationConnection(documentId, accessToken, pageProtocol, pageHost);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
3
20
|
//#region src/lib/collaboration.ts
|
|
4
|
-
var
|
|
5
|
-
function startCollaboration(documentId, accessToken, onUpdate) {
|
|
6
|
-
stopCollaboration();
|
|
21
|
+
var activeSessions = /* @__PURE__ */ new Set();
|
|
22
|
+
function startCollaboration(documentId, accessToken, onUpdate, realtime) {
|
|
7
23
|
const doc = new Y.Doc();
|
|
8
|
-
const
|
|
24
|
+
const connection = resolveCollaborationConnection(documentId, accessToken, window.location.protocol, window.location.host, realtime);
|
|
25
|
+
const provider = new WebsocketProvider(connection.serverUrl, connection.roomName, doc, {
|
|
9
26
|
connect: true,
|
|
10
|
-
params:
|
|
27
|
+
params: connection.params
|
|
11
28
|
});
|
|
12
29
|
provider.on("sync", (_synced) => {});
|
|
13
30
|
provider.on("status", (_status) => {});
|
|
14
31
|
provider.on("connection-close", () => {});
|
|
15
32
|
const updateHandler = onUpdate;
|
|
16
33
|
if (updateHandler) doc.on("update", updateHandler);
|
|
17
|
-
|
|
34
|
+
const session = {
|
|
18
35
|
provider,
|
|
19
36
|
doc,
|
|
20
37
|
destroy: () => {
|
|
@@ -24,16 +41,24 @@ function startCollaboration(documentId, accessToken, onUpdate) {
|
|
|
24
41
|
doc.destroy();
|
|
25
42
|
}
|
|
26
43
|
};
|
|
27
|
-
|
|
44
|
+
const destroy = session.destroy;
|
|
45
|
+
session.destroy = () => {
|
|
46
|
+
if (!activeSessions.delete(session)) return;
|
|
47
|
+
destroy();
|
|
48
|
+
};
|
|
49
|
+
activeSessions.add(session);
|
|
50
|
+
return session;
|
|
28
51
|
}
|
|
29
|
-
function stopCollaboration() {
|
|
30
|
-
if (
|
|
31
|
-
|
|
32
|
-
|
|
52
|
+
function stopCollaboration(session) {
|
|
53
|
+
if (session) {
|
|
54
|
+
session.destroy();
|
|
55
|
+
return;
|
|
33
56
|
}
|
|
57
|
+
for (const active of [...activeSessions]) active.destroy();
|
|
34
58
|
}
|
|
59
|
+
/** @deprecated Track the session returned by startCollaboration instead. */
|
|
35
60
|
function getActiveSession() {
|
|
36
|
-
return
|
|
61
|
+
return [...activeSessions].at(-1) ?? null;
|
|
37
62
|
}
|
|
38
63
|
//#endregion
|
|
39
64
|
export { getActiveSession, startCollaboration, stopCollaboration };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CategoryDialog } from "../assets/CategoryDialog-
|
|
1
|
+
import { t as CategoryDialog } from "../assets/CategoryDialog-CLAGMZPz.js";
|
|
2
2
|
export { CategoryDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CreateSnapshotDialog } from "../assets/CreateSnapshotDialog-
|
|
1
|
+
import { t as CreateSnapshotDialog } from "../assets/CreateSnapshotDialog-DNAjd4eD.js";
|
|
2
2
|
export { CreateSnapshotDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DeleteDialog } from "../assets/DeleteDialog-
|
|
1
|
+
import { t as DeleteDialog } from "../assets/DeleteDialog-DG9Lm38J.js";
|
|
2
2
|
export { DeleteDialog };
|