@hiai-gg/docsmint 2.2.3 → 2.2.5
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/README.md +10 -8
- package/dist/backend/index.js +60080 -40793
- package/dist/frontend/CategoryDialog-CtBDBrmR.js +603 -0
- package/dist/frontend/ConfirmDialog-B7rUgX7M.js +219 -0
- package/dist/frontend/CreateSnapshotDialog-bUKdc0Zb.js +219 -0
- package/dist/frontend/DatePicker-CKTDDpVx.js +291 -0
- package/dist/frontend/DeleteDialog-D28HGxN7.js +175 -0
- package/dist/frontend/FolderNode-CVd22MJS.js +291 -0
- package/dist/frontend/FolderTreeSelector-DObSptCD.js +102 -0
- package/dist/frontend/HiAiEditor--V0-gKwv.js +3266 -0
- package/dist/frontend/HiaiDocsExtensionProvider-B1bCAtpa.js +13 -0
- package/dist/frontend/{Icon-CiHcxcpv.js → Icon-DNapb_KY.js} +3 -2
- package/dist/frontend/SettingsDialog-CN-PrNpM.js +979 -0
- package/dist/frontend/ShareDialog-UO_6vvoT.js +272 -0
- package/dist/frontend/Sidebar-CAxrqTAQ.js +2169 -0
- package/dist/frontend/TagCreateDialog-BdWu4bPX.js +268 -0
- package/dist/frontend/{action_cancel-BdsWzQKU.js → action_cancel-DxbRD-bG.js} +1 -1
- package/dist/frontend/{action_close-CVhfLPRQ.js → action_close-Ct6lVumm.js} +1 -1
- package/dist/frontend/{action_create-ByaroO1_.js → action_create-DKOlnVyX.js} +1 -1
- package/dist/frontend/{action_delete-SRloglWY.js → action_delete-DRb7fBnB.js} +1 -1
- package/dist/frontend/{action_go_to-DO1bicF-.js → action_go_to-D0fF5t1d.js} +1 -1
- package/dist/frontend/{action_loading-iQ0KsN6i.js → action_loading-YGvDyzYG.js} +1 -1
- package/dist/frontend/{action_save-DeqrZQwV.js → action_save-BHYTeFmm.js} +1 -1
- package/dist/frontend/api/categories.js +1 -1
- package/dist/frontend/api/settings.js +1 -1
- package/dist/frontend/api/tags.js +1 -1
- package/dist/frontend/app-shell.js +177 -176
- package/dist/frontend/{auth-client-Dx7d9Tzo.js → auth-client-DahfoSYo.js} +297 -277
- package/dist/frontend/{bundle-mjs-clTO1WW-.js → bundle-mjs-654jE5XN.js} +397 -300
- package/dist/frontend/{camera-DsdOPOcD.js → camera-C6JuKKhr.js} +9 -8
- package/dist/frontend/{categories-CusvHb5Y.js → categories-CUfKlgrs.js} +1 -1
- package/dist/frontend/{categories_update_error-Cn8DBBHv.js → categories_update_error-BrLD-j9s.js} +1 -1
- package/dist/frontend/check-B_e1XqT2.js +25 -0
- package/dist/frontend/chevron-down-BsnN2mp2.js +25 -0
- package/dist/frontend/circle-check-CJH5zxd9.js +29 -0
- package/dist/frontend/clock-CU0gCiiM.js +29 -0
- package/dist/frontend/collaboration.js +113 -113
- 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/compact-editor.js +5 -4
- package/dist/frontend/components/editor/document-editor.js +1 -1
- package/dist/frontend/components/editor/document-title.js +3 -2
- package/dist/frontend/components/editor/docx-serializer.js +8359 -12358
- package/dist/frontend/components/editor/extensions.js +1 -1
- package/dist/frontend/components/editor/markdown-toggle.js +33 -32
- package/dist/frontend/components/editor/markdown.js +1 -1
- 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 +168 -167
- 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 +252 -251
- package/dist/frontend/{copy-Bag46YaR.js → copy-DYNRCHgk.js} +9 -8
- package/dist/frontend/dashboard.js +1301 -1300
- package/dist/frontend/db-yN0Vve_2.js +4296 -0
- package/dist/frontend/{dialog-C0Bpok1d.js → dialog-Dqp04jso.js} +11 -10
- package/dist/frontend/dist-4xBCgXNT.js +40 -0
- package/dist/frontend/{dist-DjId3RKL.js → dist-BaAULhmK.js} +3 -9
- package/dist/frontend/dist-C1oIyJLI.js +302 -0
- package/dist/frontend/dndzone-CWg1kmdZ.js +1483 -0
- package/dist/frontend/{doc_title_label-BOuZzvqv.js → doc_title_label-BPlghiRM.js} +1 -1
- package/dist/frontend/{doc_title_placeholder-ZxpdWWEn.js → doc_title_placeholder-D-LfSoC5.js} +1 -1
- package/dist/frontend/dropdown-menu-HePwCxoQ.js +1429 -0
- package/dist/frontend/{editorExtensions-DbiFj4tn.js → editorExtensions-QKIFSqEG.js} +9 -9
- package/dist/frontend/{editor_markdown_placeholder-BztIY9Ci.js → editor_markdown_placeholder-BXRPm7JG.js} +1 -1
- package/dist/frontend/{ellipsis-vertical-Oymsv1R4.js → ellipsis-vertical-CR25MyeP.js} +9 -8
- package/dist/frontend/{error_dismiss-C651ZdWI.js → error_dismiss-Ckia7GQe.js} +1 -1
- package/dist/frontend/{error_generic-BlWqOE-a.js → error_generic-gyQMdET_.js} +1 -1
- package/dist/frontend/extension.js +1 -1
- package/dist/frontend/{folder-BpmB_sAy.js → folder-BpA690ie.js} +4 -3
- package/dist/frontend/{folders_rename-Cxbg5GIw.js → folders_rename-BHa_gSXw.js} +1 -1
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/i18n.js +29 -29
- package/dist/frontend/{identity-B7HeOzDJ.js → identity-ndFYB8Nt.js} +1 -1
- package/dist/frontend/{input-CbeB9220.js → input-Cv3qF4J3.js} +9 -8
- package/dist/frontend/label-DXjefKfF.js +30 -0
- package/dist/frontend/{lib-CITdCbKa.js → lib-DJthN0w9.js} +7108 -5196
- package/dist/frontend/loader-circle-CvWX1HHL.js +25 -0
- package/dist/frontend/{markdown-6E9TWC6V.js → markdown-CksQVQ6a.js} +2 -2
- package/dist/frontend/offline/identity.js +1 -1
- package/dist/frontend/popper-layer-force-mount-DS--Cvfo.js +3493 -0
- package/dist/frontend/rolldown-runtime-DKYsOz5J.js +19 -0
- package/dist/frontend/{rotate-ccw-DAUX7np7.js → rotate-ccw-Box7QP5X.js} +9 -8
- package/dist/frontend/{runtime-CGUiMzK6.js → runtime-CJv8UGYl.js} +1 -4
- package/dist/frontend/{schemas-YXxhj5o8.js → schemas-BYbeR0Ky.js} +11 -11
- package/dist/frontend/{scroll_to_top_aria-lJc2RSx_.js → scroll_to_top_aria-CP7_oyCo.js} +1 -1
- package/dist/frontend/search.js +650 -649
- package/dist/frontend/{search_title-BETwQYJq.js → search_title-C2aOzN_J.js} +1 -1
- package/dist/frontend/select-value-DAMTi0zc.js +1473 -0
- package/dist/frontend/{settings-DyePuqjp.js → settings-DTsCVJEi.js} +1 -1
- package/dist/frontend/{share-context-C2xyVP9M.js → share-context-CtRMIIhL.js} +15 -14
- package/dist/frontend/{share_copied-BuAnmpbz.js → share_copied-BHb_9sOo.js} +1 -1
- package/dist/frontend/{share_toggle_password-LEYUeHWr.js → share_toggle_password-DjCMq4Eq.js} +1 -1
- package/dist/frontend/shared-document.js +49 -48
- package/dist/frontend/{sidebar_uncategorized-C5PGOflV.js → sidebar_uncategorized-BJSB_sc9.js} +1 -1
- package/dist/frontend/{sort_relevance-DpCVLby_.js → sort_relevance-CXuNTq6L.js} +1 -1
- package/dist/frontend/{tag-Wdfe0rKU.js → tag-BPOFgBQw.js} +4 -3
- package/dist/frontend/tag-store.svelte-DyqQNx7H.js +28 -0
- package/dist/frontend/{tags-DlDVothf.js → tags-DwilrkrM.js} +1 -1
- package/dist/frontend/{tags_load_error-BINNpPPV.js → tags_load_error-BOyuQEGc.js} +1 -1
- package/dist/frontend/{tags_new-Dw0Uy43-.js → tags_new-CGF3Hi1j.js} +1 -1
- package/dist/frontend/textarea-DDdgNvnf.js +23 -0
- package/dist/frontend/theme.js +1 -1
- package/dist/frontend/{theme.svelte-BiXvrqwh.js → theme.svelte-Dx01qWc3.js} +2 -2
- package/dist/frontend/{theme_system-YIfa_2Xt.js → theme_system-Bt9ItDgj.js} +1 -1
- package/dist/frontend/utils/dndzone.js +1 -1
- package/dist/frontend/{utils-CnAmIMwr.js → utils-BQMesoNf.js} +1 -1
- package/dist/frontend/utils-BavN35Bw.js +6 -0
- package/dist/frontend/utils.js +1 -1
- package/dist/frontend/{version_create_snapshot-D8xjbuCq.js → version_create_snapshot-BvoOuUeh.js} +1 -1
- package/dist/frontend/{version_restored_from-DYFFSuQj.js → version_restored_from-BIEEKFbx.js} +1 -1
- package/dist/frontend/{version_snapshot_label_placeholder-BhKq1NQ7.js → version_snapshot_label_placeholder-h9r2_0u3.js} +1 -1
- package/dist/frontend/{weekday_we-BxbzNVWR.js → weekday_we-DsuVW6rh.js} +1 -1
- package/dist/frontend/x-hIpDH7DU.js +25 -0
- package/dist/frontend/{yjs-BbwnvxgY.js → yjs--VgxqIlB.js} +607 -628
- package/dist/frontend-ssr/api/categories.js +1 -1
- package/dist/frontend-ssr/api/settings.js +1 -1
- package/dist/frontend-ssr/api/tags.js +1 -1
- package/dist/frontend-ssr/app-shell.js +11 -11
- package/dist/frontend-ssr/assets/{CategoryDialog-2CCX508O.js → CategoryDialog-DRItbO_9.js} +13 -13
- package/dist/frontend-ssr/assets/{ConfirmDialog-Cc6lcY1N.js → ConfirmDialog-B0NXRrel.js} +8 -8
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-BB8fXF9W.js → CreateSnapshotDialog-nj8PjuON.js} +7 -7
- package/dist/frontend-ssr/assets/{DatePicker-CfzKzipR.js → DatePicker-CdUKLPtP.js} +8 -8
- package/dist/frontend-ssr/assets/{DeleteDialog-DRU4UgOW.js → DeleteDialog-B83NoxAg.js} +3 -3
- package/dist/frontend-ssr/assets/{FolderNode-CyOrLJ2Y.js → FolderNode-CSeC3051.js} +10 -10
- package/dist/frontend-ssr/assets/{FolderTreeSelector-D0reTdFS.js → FolderTreeSelector-Dh-ViJPU.js} +4 -4
- package/dist/frontend-ssr/assets/{HiAiEditor-BQGlGd3z.js → HiAiEditor-DB2PjHm9.js} +41 -41
- package/dist/frontend-ssr/assets/{Icon-CrIRbT5O.js → Icon-CBEeswQ2.js} +4 -4
- package/dist/frontend-ssr/assets/{SettingsDialog-BpHY3IMb.js → SettingsDialog-kc3O9PXG.js} +21 -21
- package/dist/frontend-ssr/assets/{ShareDialog-CY40nWZJ.js → ShareDialog-Dmrj55QP.js} +4 -4
- package/dist/frontend-ssr/assets/{Sidebar-dTp4DyW4.js → Sidebar-CDQcIuyv.js} +45 -45
- package/dist/frontend-ssr/assets/{TagCreateDialog-C2tpdEuj.js → TagCreateDialog-CP-yYfpQ.js} +11 -11
- package/dist/frontend-ssr/assets/{action_cancel-CsBbxW0m.js → action_cancel-B8i5P3wt.js} +1 -1
- package/dist/frontend-ssr/assets/{action_close-lFKBqBwg.js → action_close-DPgIB-cY.js} +1 -1
- package/dist/frontend-ssr/assets/{action_create-BV4ZOcQW.js → action_create-DAlNPFeN.js} +1 -1
- package/dist/frontend-ssr/assets/{action_delete-CNmRhKQP.js → action_delete-C6lsQCtY.js} +1 -1
- package/dist/frontend-ssr/assets/{action_go_to-tN5I26xM.js → action_go_to-C6tegi-k.js} +1 -1
- package/dist/frontend-ssr/assets/{action_save-YCfMiKb4.js → action_save-BQCej1sh.js} +1 -1
- package/dist/frontend-ssr/assets/{auth-client-BnnnJDAb.js → auth-client-CwXGsJIQ.js} +44 -38
- package/dist/frontend-ssr/assets/{camera-OYNSMvMd.js → camera-kjjsHmQu.js} +2 -2
- package/dist/frontend-ssr/assets/{categories_update_error-Bfx5vtvt.js → categories_update_error-Kq8q_FJp.js} +1 -1
- package/dist/frontend-ssr/assets/{chevron-down-DB6YsSbQ.js → chevron-down-DPc-Owbl.js} +2 -2
- package/dist/frontend-ssr/assets/{chevron-right-DOt2uY6b.js → chevron-right-C-jY4mqk.js} +2 -2
- package/dist/frontend-ssr/assets/{circle-check-DQhTm9YR.js → circle-check-CnueRXrc.js} +2 -2
- package/dist/frontend-ssr/assets/{clock-B08dVWtf.js → clock-CoRtIDhT.js} +2 -2
- package/dist/frontend-ssr/assets/{copy-2jsznHar.js → copy-CDNZIGVg.js} +2 -2
- package/dist/frontend-ssr/assets/{db-BEKLU5Fc.js → db-NhMsSg1f.js} +1 -1
- package/dist/frontend-ssr/assets/{dialog-C6U-DqLr.js → dialog-B09MN2S-.js} +9 -9
- package/dist/frontend-ssr/assets/{dist-DqXTz_zE.js → dist-D4MAfF0i.js} +13 -13
- package/dist/frontend-ssr/assets/{dist-ip9bPdma.js → dist-cDG_u5EF.js} +8 -8
- package/dist/frontend-ssr/assets/{dndzone-C7KnICM0.js → dndzone-DyM8UtoT.js} +378 -216
- package/dist/frontend-ssr/assets/{doc_title_label-CE_l-Gum.js → doc_title_label-BqCuH3eY.js} +1 -1
- package/dist/frontend-ssr/assets/{doc_title_placeholder-7_i7PtG6.js → doc_title_placeholder-C3tGSpRB.js} +1 -1
- package/dist/frontend-ssr/assets/dropdown-menu-C9H45F9X.js +1721 -0
- package/dist/frontend-ssr/assets/{editor_markdown_placeholder-CAeLJjFT.js → editor_markdown_placeholder-Cxa5uq87.js} +1 -1
- package/dist/frontend-ssr/assets/{editor_toolbar_undo-CVCfQIS1.js → editor_toolbar_undo-D-gLz88j.js} +1 -1
- package/dist/frontend-ssr/assets/{ellipsis-vertical-IFHt2NM1.js → ellipsis-vertical-oBvMj3Jm.js} +2 -2
- package/dist/frontend-ssr/assets/{error_generic-BB80i0Vk.js → error_generic-BSoVZ_4p.js} +1 -1
- package/dist/frontend-ssr/assets/{folder-CXa1_bm5.js → folder-Ptjeaody.js} +2 -2
- package/dist/frontend-ssr/assets/{folders_rename-ydbfwQlj.js → folders_rename-DBtQcf2R.js} +1 -1
- package/dist/frontend-ssr/assets/{identity-DTz1SQwC.js → identity-CigCqYEA.js} +1 -1
- package/dist/frontend-ssr/assets/{input-Bxw9sFF0.js → input-Cc45dG_S.js} +2 -2
- package/dist/frontend-ssr/assets/{label-CMWedjs6.js → label-C1_J2397.js} +2 -2
- package/dist/frontend-ssr/assets/{loader-circle-zbKj9Qb-.js → loader-circle-CK3McH5n.js} +2 -2
- package/dist/frontend-ssr/assets/{markdown-BmIhDQp7.js → markdown-WQsa_gay.js} +1 -1
- package/dist/frontend-ssr/assets/{popper-layer-force-mount-CSHZsG2E.js → popper-layer-force-mount-CGKwdZaZ.js} +1448 -2402
- package/dist/frontend-ssr/assets/{rotate-ccw-B7SaTFWf.js → rotate-ccw-B1lCxJ5d.js} +2 -2
- package/dist/frontend-ssr/assets/{runtime-BX6-jTn_.js → runtime-CoxALrm1.js} +2 -28
- package/dist/frontend-ssr/assets/{scroll_to_top_aria-CAYSiGHO.js → scroll_to_top_aria-CmLwsPln.js} +1 -1
- package/dist/frontend-ssr/assets/{search_title-C7NVXXq3.js → search_title-CZIl0wkq.js} +1 -1
- package/dist/frontend-ssr/assets/{search_toggle_filters-Bq_YVD8s.js → search_toggle_filters-BG-CRM9G.js} +1 -1
- package/dist/frontend-ssr/assets/{select-value-TgslfiUB.js → select-value-BeUHHkLq.js} +157 -66
- package/dist/frontend-ssr/assets/{settings-B1MA_FjO.js → settings-BqyemuQv.js} +1 -1
- package/dist/frontend-ssr/assets/{share-context-RVh8AExX.js → share-context-BM1sUnlP.js} +15 -15
- package/dist/frontend-ssr/assets/{share_copied-CrwEwkb3.js → share_copied-BVGtm9Ud.js} +1 -1
- package/dist/frontend-ssr/assets/{share_toggle_password-Co56z0Ha.js → share_toggle_password-z0gwy0TG.js} +1 -1
- package/dist/frontend-ssr/assets/{sidebar_uncategorized-COWdmZ3d.js → sidebar_uncategorized-rpbsgLVr.js} +1 -1
- package/dist/frontend-ssr/assets/{tag-BGhtDKpP.js → tag-D_ZqINN3.js} +3 -3
- package/dist/frontend-ssr/assets/{tags_load_error-DW4FbHvr.js → tags_load_error-DvhlyMMY.js} +1 -1
- package/dist/frontend-ssr/assets/{tags_new-Dr3ByMPZ.js → tags_new-DStxzBII.js} +1 -1
- package/dist/frontend-ssr/assets/{textarea-Bz5Tz4rw.js → textarea-S9uzw6je.js} +2 -2
- package/dist/frontend-ssr/assets/{theme.svelte-CdHah46l.js → theme.svelte-CqAzqvik.js} +2 -2
- package/dist/frontend-ssr/assets/{theme_system-E97FASeq.js → theme_system-DjbsL0RQ.js} +1 -1
- package/dist/frontend-ssr/assets/{utils-DF6CmRDX.js → utils-DF93j6z-.js} +1 -1
- package/dist/frontend-ssr/assets/{version_create_snapshot-DeeYB7bb.js → version_create_snapshot-SwYsTZ56.js} +1 -1
- package/dist/frontend-ssr/assets/{version_restored_from-CTt2LM4A.js → version_restored_from-pYBnudye.js} +1 -1
- package/dist/frontend-ssr/assets/{version_snapshot_label_placeholder-BbGD9YuN.js → version_snapshot_label_placeholder-DtDnHip8.js} +1 -1
- package/dist/frontend-ssr/assets/{weekday_we-BzGQ-iFc.js → weekday_we-CV1TMROW.js} +1 -1
- 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/compact-editor.js +1 -1
- package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
- package/dist/frontend-ssr/components/editor/document-title.js +2 -2
- package/dist/frontend-ssr/components/editor/extensions.js +1 -1
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +3 -3
- package/dist/frontend-ssr/components/editor/markdown.js +1 -1
- 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 +10 -10
- 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 +17 -17
- package/dist/frontend-ssr/dashboard.js +61 -158
- package/dist/frontend-ssr/extension.js +1 -1
- package/dist/frontend-ssr/i18n.js +31 -31
- package/dist/frontend-ssr/offline/identity.js +1 -1
- package/dist/frontend-ssr/search.js +13 -13
- package/dist/frontend-ssr/shared-document.js +1 -1
- package/dist/frontend-ssr/theme.js +1 -1
- package/dist/frontend-ssr/utils/dndzone.js +1 -1
- package/dist/lifecycle-runtime.js +17768 -11203
- package/dist/mcp-cli.js +1 -1
- package/dist/mcp-server.js +1 -1
- package/package.json +13 -13
- package/packages/cli/src/index.ts +1 -1
- package/server.json +2 -2
- package/dist/frontend/CategoryDialog-CVJi5PJu.js +0 -602
- package/dist/frontend/ConfirmDialog-0JwB8mKN.js +0 -218
- package/dist/frontend/CreateSnapshotDialog-BLrtuYs5.js +0 -218
- package/dist/frontend/DatePicker-BwSb8TRv.js +0 -326
- package/dist/frontend/DeleteDialog-s7Dr6bXg.js +0 -174
- package/dist/frontend/FolderNode-Ds0LDfK3.js +0 -290
- package/dist/frontend/FolderTreeSelector-BR3lYmPU.js +0 -101
- package/dist/frontend/HiAiEditor-BHz46Iqd.js +0 -3078
- package/dist/frontend/HiaiDocsExtensionProvider-A2nGddUR.js +0 -12
- package/dist/frontend/SettingsDialog-BvS74JZu.js +0 -978
- package/dist/frontend/ShareDialog-Bo50h_Oe.js +0 -271
- package/dist/frontend/Sidebar-DerKtpWB.js +0 -2168
- package/dist/frontend/TagCreateDialog-DhKfsfv3.js +0 -267
- package/dist/frontend/check-DiMZRkKS.js +0 -24
- package/dist/frontend/chevron-down-CxFrMFDJ.js +0 -24
- package/dist/frontend/circle-check-B4F_qgPx.js +0 -28
- package/dist/frontend/clock-dcpueRk-.js +0 -28
- package/dist/frontend/db-B1ZV452J.js +0 -3792
- package/dist/frontend/dist-BlcV_BOY.js +0 -39
- package/dist/frontend/dist-Dl9qg10h.js +0 -301
- package/dist/frontend/dndzone-B9jA0yIS.js +0 -1372
- package/dist/frontend/dropdown-menu-B3nk2aM-.js +0 -482
- package/dist/frontend/label-CfBWf3gI.js +0 -29
- package/dist/frontend/loader-circle-skKwfRCB.js +0 -24
- package/dist/frontend/popper-layer-force-mount-BG0eyrCk.js +0 -4255
- package/dist/frontend/rolldown-runtime-CwxnZyOB.js +0 -22
- package/dist/frontend/select-value-BY5Hw6Rl.js +0 -1412
- package/dist/frontend/tag-store.svelte-C9VYWqLQ.js +0 -28
- package/dist/frontend/textarea-D6emvAwM.js +0 -22
- package/dist/frontend/utils-DH0uqK40.js +0 -6
- package/dist/frontend/x-CBUgPygC.js +0 -24
- package/dist/frontend-ssr/assets/dropdown-menu-BS5fcN9l.js +0 -446
- package/dist/frontend-ssr/assets/{HiaiDocsExtensionProvider-D6cGL-9s.js → HiaiDocsExtensionProvider-BdfQP817.js} +1 -1
- package/dist/frontend-ssr/assets/{categories-bBPviKjl.js → categories-CMmudpEk.js} +1 -1
- package/dist/frontend-ssr/assets/{editorExtensions-2O7O2Nhv.js → editorExtensions-DOPTTKUS.js} +2 -2
- package/dist/frontend-ssr/assets/{tag-store.svelte-CUUgAaDD.js → tag-store.svelte-Djpf1W0n.js} +1 -1
- package/dist/frontend-ssr/assets/{tags-C7u-LBsl.js → tags-GQOEtqET.js} +1 -1
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./action_close-CVhfLPRQ.js";
|
|
2
|
-
import { _ as t, a as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p as ee, r as p, s as te, t as ne, u as re, v as m } from "./share_toggle_password-LEYUeHWr.js";
|
|
3
|
-
import { t as h } from "./error_generic-BlWqOE-a.js";
|
|
4
|
-
import { a as ie, i as ae, n as oe, r as g, t as se } from "./select-value-BY5Hw6Rl.js";
|
|
5
|
-
import { n as _ } from "./share-3gWTTYvH.js";
|
|
6
|
-
import { a as v } from "./route-context-6OHiGtfb.js";
|
|
7
|
-
import { h as y, u as b } from "./keyboard.svelte-BBUdhTsM.js";
|
|
8
|
-
import { t as x } from "./clipboard-Dt1oW6nm.js";
|
|
9
|
-
import "svelte/internal/disclose-version";
|
|
10
|
-
import * as S from "svelte/internal/client";
|
|
11
|
-
// src/lib/components/share-configuration.ts
|
|
12
|
-
function C(e) {
|
|
13
|
-
return e === "standalone" ? ["public"] : ["public", "restricted"];
|
|
14
|
-
}
|
|
15
|
-
function w(e) {
|
|
16
|
-
let t = e.displayMode === "standalone" ? "public" : e.accessMode, n = t === "restricted";
|
|
17
|
-
return {
|
|
18
|
-
documentId: e.documentId || void 0,
|
|
19
|
-
folderId: e.folderId || void 0,
|
|
20
|
-
categoryId: e.categoryId || void 0,
|
|
21
|
-
password: e.usePassword ? e.password : void 0,
|
|
22
|
-
expiresIn: e.expiresIn,
|
|
23
|
-
accessMode: t,
|
|
24
|
-
allowPasswordFallback: n && e.usePassword ? e.allowPasswordFallback : void 0,
|
|
25
|
-
guests: n ? e.guests : void 0
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
// src/lib/components/ShareDialog.svelte
|
|
29
|
-
var ce = S.from_html("<button type=\"button\"> </button>"), le = S.from_html("<label class=\"flex items-start gap-2 text-xs text-muted-foreground\"><input type=\"checkbox\" class=\"mt-0.5\"/> Allow anyone with the password to view. Commenting and editing still require an invited account.</label>"), ue = S.from_html("<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\"/> <!>", 1), de = S.from_html("<button> </button>"), fe = S.from_html("<!> <!> <!>", 1), T = S.from_html("<!> <!>", 1), pe = S.from_html("<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\">×</button></span>"), E = S.from_html("<div class=\"flex flex-wrap gap-1.5\"></div>"), me = S.from_html("<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>"), he = S.from_html("<p class=\"text-xs text-destructive\"> </p>"), ge = S.from_html("<div class=\"space-y-4\"><div aria-label=\"Share access mode\"></div> <p class=\"rounded-md border border-border bg-muted/40 p-3 text-xs text-muted-foreground\"> </p> <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> <!> <!> <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>"), D = S.from_html("<div class=\"space-y-4\"><p class=\"text-sm text-muted-foreground\"> </p> <div data-share-created-url=\"\" class=\"flex min-w-0 flex-col gap-2 sm:flex-row sm:items-center\"><code class=\"min-w-0 flex-1 break-all rounded-md bg-muted px-3 py-2 text-sm\"> </code> <button data-share-copy-action=\"\" class=\"w-full shrink-0 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 sm:w-auto\"> </button></div> <button class=\"w-full rounded-md border border-border px-4 py-2 text-sm font-medium hover:bg-accent\"> </button></div>"), O = S.from_html("<div class=\"fixed inset-0 layer-modal z-[100] flex items-center justify-center\"><button class=\"absolute inset-0 z-[100] bg-black/50\"></button> <div class=\"relative z-[101] 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\">✕</button></div> <!></div></div>");
|
|
30
|
-
function k(k, A) {
|
|
31
|
-
S.push(A, !0);
|
|
32
|
-
let j = S.prop(A, "open", 15, !1), M = S.prop(A, "documentId", 3, ""), N = S.prop(A, "documentTitle", 3, ""), P = S.prop(A, "folderId", 3, ""), F = S.prop(A, "folderName", 3, ""), I = S.prop(A, "categoryId", 3, ""), _e = S.prop(A, "categoryName", 3, ""), L = S.prop(A, "displayMode", 3, "host-managed"), R = S.state(!1), z = S.state("public"), B = S.state(!1), V = S.state(""), H = S.state("7d"), U = S.state(""), W = S.state("viewer"), G = S.state(S.proxy([])), K = S.state(""), q = S.state(!1), J = S.state(!1), Y = S.state(""), ve = v(), X = S.derived(() => C(L()));
|
|
33
|
-
S.user_effect(() => (b({
|
|
34
|
-
id: "share-dialog-escape",
|
|
35
|
-
keys: "escape",
|
|
36
|
-
description: "Close share dialog",
|
|
37
|
-
scope: "dialog",
|
|
38
|
-
enabled: j(),
|
|
39
|
-
overrideInput: !0,
|
|
40
|
-
handler: () => {
|
|
41
|
-
j() && Q();
|
|
42
|
-
}
|
|
43
|
-
}), () => {
|
|
44
|
-
y("share-dialog-escape");
|
|
45
|
-
}));
|
|
46
|
-
function Z() {
|
|
47
|
-
let e = S.get(U).trim();
|
|
48
|
-
e?.includes("@") && !S.get(G).some((t) => t.email === e.toLowerCase()) && (S.set(G, [...S.get(G), {
|
|
49
|
-
email: e.toLowerCase(),
|
|
50
|
-
role: S.get(W)
|
|
51
|
-
}], !0), S.set(U, ""));
|
|
52
|
-
}
|
|
53
|
-
function ye(e) {
|
|
54
|
-
S.set(G, S.get(G).filter((t) => t.email !== e), !0);
|
|
55
|
-
}
|
|
56
|
-
async function be() {
|
|
57
|
-
S.set(J, !0), S.set(Y, "");
|
|
58
|
-
try {
|
|
59
|
-
let e = w({
|
|
60
|
-
displayMode: L(),
|
|
61
|
-
documentId: M(),
|
|
62
|
-
folderId: P(),
|
|
63
|
-
categoryId: I(),
|
|
64
|
-
usePassword: S.get(R),
|
|
65
|
-
password: S.get(V),
|
|
66
|
-
expiresIn: S.get(H),
|
|
67
|
-
accessMode: S.get(z),
|
|
68
|
-
allowPasswordFallback: S.get(B),
|
|
69
|
-
guests: S.get(G)
|
|
70
|
-
}), t = await _(e, ve.fetch);
|
|
71
|
-
S.set(K, `${window.location.origin}/s/${t.token}`), A.onCreated?.({
|
|
72
|
-
token: t.token,
|
|
73
|
-
url: S.get(K),
|
|
74
|
-
accessMode: e.accessMode
|
|
75
|
-
});
|
|
76
|
-
} catch (e) {
|
|
77
|
-
S.set(Y, e instanceof Error ? e.message : h(), !0), console.error("ShareDialog: createShareLink failed", e);
|
|
78
|
-
} finally {
|
|
79
|
-
S.set(J, !1);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
async function xe() {
|
|
83
|
-
S.get(K) && (await x(S.get(K)), S.set(q, !0), setTimeout(() => {
|
|
84
|
-
S.set(q, !1);
|
|
85
|
-
}, 2e3));
|
|
86
|
-
}
|
|
87
|
-
function Q() {
|
|
88
|
-
j(!1), S.set(K, ""), S.set(R, !1), S.set(z, "public"), S.set(B, !1), S.set(V, ""), S.set(H, "7d"), S.set(G, [], !0), S.set(Y, "");
|
|
89
|
-
}
|
|
90
|
-
var $ = S.comment(), Se = S.first_child($), Ce = (h) => {
|
|
91
|
-
var _ = O(), v = S.child(_), y = S.sibling(v, 2), b = S.child(y), x = S.child(b), C = S.only_child(x), w = S.sibling(x, 2);
|
|
92
|
-
S.reset(b);
|
|
93
|
-
var k = S.sibling(b, 2), A = (e) => {
|
|
94
|
-
var o = ge(), c = S.child(o);
|
|
95
|
-
S.each(c, 21, () => S.get(X), S.index, (e, t) => {
|
|
96
|
-
var n = ce(), r = S.only_child(n, !0);
|
|
97
|
-
S.template_effect(() => {
|
|
98
|
-
S.set_class(n, 1, `rounded-md px-3 py-2 text-sm font-medium ${S.get(z) === S.get(t) ? "bg-background shadow-sm" : "text-muted-foreground"}`), S.set_text(r, S.get(t) === "public" ? "Public link" : "Specific people");
|
|
99
|
-
}), S.delegated("click", n, () => {
|
|
100
|
-
S.set(z, S.get(t), !0), S.get(t) === "public" && (S.set(G, [], !0), S.set(B, !1));
|
|
101
|
-
}), S.append(e, n);
|
|
102
|
-
}), S.reset(c);
|
|
103
|
-
var u = S.sibling(c, 2), p = S.only_child(u, !0), m = S.sibling(u, 2), h = S.child(m), _ = S.only_child(h, !0), v = S.sibling(h, 2), y = S.only_child(v);
|
|
104
|
-
S.reset(m);
|
|
105
|
-
var b = S.sibling(m, 2), x = (e) => {
|
|
106
|
-
var t = ue(), n = S.first_child(t);
|
|
107
|
-
S.remove_input_defaults(n);
|
|
108
|
-
var r = S.sibling(n, 2), i = (e) => {
|
|
109
|
-
var t = le(), n = S.child(t);
|
|
110
|
-
S.remove_input_defaults(n), S.next(), S.reset(t), S.bind_checked(n, () => S.get(B), (e) => S.set(B, e)), S.append(e, t);
|
|
111
|
-
};
|
|
112
|
-
S.if(r, (e) => {
|
|
113
|
-
S.get(z) === "restricted" && e(i);
|
|
114
|
-
}), S.template_effect((e) => S.set_attribute(n, "placeholder", e), [() => a()]), S.bind_value(n, () => S.get(V), (e) => S.set(V, e)), S.append(e, t);
|
|
115
|
-
};
|
|
116
|
-
S.if(b, (e) => {
|
|
117
|
-
S.get(R) && e(x);
|
|
118
|
-
});
|
|
119
|
-
var C = S.sibling(b, 2), w = S.child(C), D = S.only_child(w, !0), O = S.sibling(w, 2);
|
|
120
|
-
S.each(O, 21, () => [
|
|
121
|
-
["1h", l()],
|
|
122
|
-
["1d", re()],
|
|
123
|
-
["7d", te()],
|
|
124
|
-
["30d", r()],
|
|
125
|
-
["never", f()]
|
|
126
|
-
], S.index, (e, t) => {
|
|
127
|
-
var n = S.derived(() => S.to_array(S.get(t), 2));
|
|
128
|
-
let r = () => S.get(n)[0], i = () => S.get(n)[1];
|
|
129
|
-
var a = de(), o = S.only_child(a, !0);
|
|
130
|
-
S.template_effect(() => {
|
|
131
|
-
S.set_class(a, 1, `rounded-md border px-2.5 py-1 text-xs font-medium transition-colors
|
|
132
|
-
${S.get(H) === r() ? "border-primary bg-primary text-primary-foreground" : "border-border text-muted-foreground hover:bg-accent"}`), S.set_text(o, i());
|
|
133
|
-
}), S.delegated("click", a, () => {
|
|
134
|
-
S.set(H, r(), !0);
|
|
135
|
-
}), S.append(e, a);
|
|
136
|
-
}), S.reset(O), S.reset(C);
|
|
137
|
-
var k = S.sibling(C, 2), A = (e) => {
|
|
138
|
-
var r = me(), i = S.child(r), a = S.only_child(i, !0), o = S.sibling(i, 2), s = S.child(o);
|
|
139
|
-
S.remove_input_defaults(s);
|
|
140
|
-
var c = S.sibling(s, 2);
|
|
141
|
-
ie(c, {
|
|
142
|
-
type: "single",
|
|
143
|
-
get value() {
|
|
144
|
-
return S.get(W);
|
|
145
|
-
},
|
|
146
|
-
onValueChange: (e) => {
|
|
147
|
-
(e === "viewer" || e === "commenter" || e === "editor") && S.set(W, e, !0);
|
|
148
|
-
},
|
|
149
|
-
children: (e, t) => {
|
|
150
|
-
var n = T(), r = S.first_child(n);
|
|
151
|
-
oe(r, {
|
|
152
|
-
class: "h-9 w-32 justify-between px-3 text-sm",
|
|
153
|
-
"aria-label": "Guest role",
|
|
154
|
-
children: (e, t) => {
|
|
155
|
-
se(e, {
|
|
156
|
-
placeholder: "Role",
|
|
157
|
-
children: (e, t) => {
|
|
158
|
-
S.next();
|
|
159
|
-
var n = S.text();
|
|
160
|
-
S.template_effect(() => S.set_text(n, S.get(W) === "viewer" ? "Viewer" : S.get(W) === "commenter" ? "Commenter" : "Editor")), S.append(e, n);
|
|
161
|
-
},
|
|
162
|
-
$$slots: { default: !0 }
|
|
163
|
-
});
|
|
164
|
-
},
|
|
165
|
-
$$slots: { default: !0 }
|
|
166
|
-
});
|
|
167
|
-
var i = S.sibling(r, 2);
|
|
168
|
-
ae(i, {
|
|
169
|
-
children: (e, t) => {
|
|
170
|
-
var n = fe(), r = S.first_child(n);
|
|
171
|
-
g(r, {
|
|
172
|
-
value: "viewer",
|
|
173
|
-
children: (e, t) => {
|
|
174
|
-
S.next();
|
|
175
|
-
var n = S.text("Viewer");
|
|
176
|
-
S.append(e, n);
|
|
177
|
-
},
|
|
178
|
-
$$slots: { default: !0 }
|
|
179
|
-
});
|
|
180
|
-
var i = S.sibling(r, 2);
|
|
181
|
-
g(i, {
|
|
182
|
-
value: "commenter",
|
|
183
|
-
children: (e, t) => {
|
|
184
|
-
S.next();
|
|
185
|
-
var n = S.text("Commenter");
|
|
186
|
-
S.append(e, n);
|
|
187
|
-
},
|
|
188
|
-
$$slots: { default: !0 }
|
|
189
|
-
});
|
|
190
|
-
var a = S.sibling(i, 2);
|
|
191
|
-
g(a, {
|
|
192
|
-
value: "editor",
|
|
193
|
-
children: (e, t) => {
|
|
194
|
-
S.next();
|
|
195
|
-
var n = S.text("Editor");
|
|
196
|
-
S.append(e, n);
|
|
197
|
-
},
|
|
198
|
-
$$slots: { default: !0 }
|
|
199
|
-
}), S.append(e, n);
|
|
200
|
-
},
|
|
201
|
-
$$slots: { default: !0 }
|
|
202
|
-
}), S.append(e, n);
|
|
203
|
-
},
|
|
204
|
-
$$slots: { default: !0 }
|
|
205
|
-
});
|
|
206
|
-
var l = S.sibling(c, 2), u = S.only_child(l, !0);
|
|
207
|
-
S.reset(o);
|
|
208
|
-
var d = S.sibling(o, 2), f = (e) => {
|
|
209
|
-
var t = E();
|
|
210
|
-
S.each(t, 21, () => S.get(G), S.index, (e, t) => {
|
|
211
|
-
var n = pe(), r = S.child(n), i = S.sibling(r);
|
|
212
|
-
S.reset(n), S.template_effect(() => S.set_text(r, `${S.get(t).email ?? ""} · ${S.get(t).role ?? ""} `)), S.delegated("click", i, () => ye(S.get(t).email)), S.append(e, n);
|
|
213
|
-
}), S.reset(t), S.append(e, t);
|
|
214
|
-
};
|
|
215
|
-
S.if(d, (e) => {
|
|
216
|
-
S.get(G).length > 0 && e(f);
|
|
217
|
-
}), S.reset(r), S.template_effect((e, t) => {
|
|
218
|
-
S.set_text(a, e), S.set_text(u, t);
|
|
219
|
-
}, [() => n(), () => t()]), S.delegated("keydown", s, (e) => {
|
|
220
|
-
e.key === "Enter" && (e.preventDefault(), Z());
|
|
221
|
-
}), S.bind_value(s, () => S.get(U), (e) => S.set(U, e)), S.delegated("click", l, Z), S.append(e, r);
|
|
222
|
-
};
|
|
223
|
-
S.if(k, (e) => {
|
|
224
|
-
S.get(z) === "restricted" && e(A);
|
|
225
|
-
});
|
|
226
|
-
var j = S.sibling(k, 2), M = (e) => {
|
|
227
|
-
var t = he(), n = S.only_child(t, !0);
|
|
228
|
-
S.template_effect(() => S.set_text(n, S.get(Y))), S.append(e, t);
|
|
229
|
-
};
|
|
230
|
-
S.if(j, (e) => {
|
|
231
|
-
S.get(Y) && e(M);
|
|
232
|
-
});
|
|
233
|
-
var N = S.sibling(j, 2), P = S.only_child(N, !0);
|
|
234
|
-
S.reset(o), S.template_effect((e, t, n, r) => {
|
|
235
|
-
S.set_class(c, 1, `grid ${S.get(X).length === 1 ? "grid-cols-1" : "grid-cols-2"} gap-2 rounded-lg bg-muted p-1`), S.set_text(p, S.get(z) === "public" ? "Anyone with this link can view the document. The link may be forwarded." : "Only invited email addresses can comment or edit. A password fallback, when enabled, grants view-only access."), S.set_text(_, e), S.set_class(v, 1, `relative inline-flex h-5 w-9 items-center rounded-full transition-colors ${S.get(R) ? "bg-primary" : "bg-input"}`), S.set_attribute(v, "aria-checked", S.get(R)), S.set_attribute(v, "aria-label", t), S.set_class(y, 1, `inline-block h-4 w-4 rounded-full bg-white shadow transition-transform ${S.get(R) ? "translate-x-4" : "translate-x-0.5"}`), S.set_text(D, n), N.disabled = S.get(J) || S.get(z) === "restricted" && S.get(G).length === 0 || S.get(R) && S.get(V).length < 8, S.set_text(P, r);
|
|
236
|
-
}, [
|
|
237
|
-
() => d(),
|
|
238
|
-
() => ne(),
|
|
239
|
-
() => i(),
|
|
240
|
-
() => S.get(J) ? ee() : s()
|
|
241
|
-
]), S.delegated("click", v, () => {
|
|
242
|
-
S.set(R, !S.get(R));
|
|
243
|
-
}), S.delegated("click", N, be), S.append(e, o);
|
|
244
|
-
}, j = (e) => {
|
|
245
|
-
var t = D(), n = S.child(t), r = S.only_child(n, !0), i = S.sibling(n, 2), a = S.child(i), s = S.only_child(a, !0), l = S.sibling(a, 2), u = S.only_child(l, !0);
|
|
246
|
-
S.reset(i);
|
|
247
|
-
var d = S.sibling(i, 2), f = S.only_child(d, !0);
|
|
248
|
-
S.reset(t), S.template_effect((e, t, n) => {
|
|
249
|
-
S.set_text(r, e), S.set_text(s, S.get(K)), S.set_text(u, t), S.set_text(f, n);
|
|
250
|
-
}, [
|
|
251
|
-
() => S.get(z) === "restricted" ? "Invitations were queued for delivery. This is not a public link." : p(),
|
|
252
|
-
() => S.get(q) ? c() : o(),
|
|
253
|
-
() => m()
|
|
254
|
-
]), S.delegated("click", l, xe), S.delegated("click", d, Q), S.append(e, t);
|
|
255
|
-
};
|
|
256
|
-
S.if(k, (e) => {
|
|
257
|
-
S.get(K) ? e(j, -1) : e(A);
|
|
258
|
-
}), S.reset(y), S.reset(_), S.template_effect((e, t, n) => {
|
|
259
|
-
S.set_attribute(v, "aria-label", e), S.set_text(C, `${t ?? ""} "${(_e() || F() || N()) ?? ""}"`), S.set_attribute(w, "aria-label", n);
|
|
260
|
-
}, [
|
|
261
|
-
() => e(),
|
|
262
|
-
() => u(),
|
|
263
|
-
() => e()
|
|
264
|
-
]), S.delegated("click", v, Q), S.delegated("click", w, Q), S.append(h, _);
|
|
265
|
-
};
|
|
266
|
-
S.if(Se, (e) => {
|
|
267
|
-
j() && e(Ce);
|
|
268
|
-
}), S.append(k, $), S.pop();
|
|
269
|
-
}
|
|
270
|
-
S.delegate(["click", "keydown"]);
|
|
271
|
-
export { k as t };
|