@hiai-gg/docsmint 2.2.4 → 2.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/README.md +10 -8
  2. package/dist/backend/index.js +59983 -40737
  3. package/dist/frontend/CategoryDialog-CtBDBrmR.js +603 -0
  4. package/dist/frontend/ConfirmDialog-B7rUgX7M.js +219 -0
  5. package/dist/frontend/CreateSnapshotDialog-bUKdc0Zb.js +219 -0
  6. package/dist/frontend/DatePicker-CKTDDpVx.js +291 -0
  7. package/dist/frontend/DeleteDialog-D28HGxN7.js +175 -0
  8. package/dist/frontend/FolderNode-CVd22MJS.js +291 -0
  9. package/dist/frontend/FolderTreeSelector-DObSptCD.js +102 -0
  10. package/dist/frontend/HiAiEditor--V0-gKwv.js +3266 -0
  11. package/dist/frontend/HiaiDocsExtensionProvider-B1bCAtpa.js +13 -0
  12. package/dist/frontend/{Icon-CiHcxcpv.js → Icon-DNapb_KY.js} +3 -2
  13. package/dist/frontend/SettingsDialog-CN-PrNpM.js +979 -0
  14. package/dist/frontend/ShareDialog-UO_6vvoT.js +272 -0
  15. package/dist/frontend/Sidebar-CAxrqTAQ.js +2169 -0
  16. package/dist/frontend/TagCreateDialog-BdWu4bPX.js +268 -0
  17. package/dist/frontend/{action_cancel-BdsWzQKU.js → action_cancel-DxbRD-bG.js} +1 -1
  18. package/dist/frontend/{action_close-CVhfLPRQ.js → action_close-Ct6lVumm.js} +1 -1
  19. package/dist/frontend/{action_create-ByaroO1_.js → action_create-DKOlnVyX.js} +1 -1
  20. package/dist/frontend/{action_delete-SRloglWY.js → action_delete-DRb7fBnB.js} +1 -1
  21. package/dist/frontend/{action_go_to-DO1bicF-.js → action_go_to-D0fF5t1d.js} +1 -1
  22. package/dist/frontend/{action_loading-iQ0KsN6i.js → action_loading-YGvDyzYG.js} +1 -1
  23. package/dist/frontend/{action_save-DeqrZQwV.js → action_save-BHYTeFmm.js} +1 -1
  24. package/dist/frontend/api/categories.js +1 -1
  25. package/dist/frontend/api/settings.js +1 -1
  26. package/dist/frontend/api/tags.js +1 -1
  27. package/dist/frontend/app-shell.js +177 -176
  28. package/dist/frontend/{auth-client-Dx7d9Tzo.js → auth-client-DahfoSYo.js} +297 -277
  29. package/dist/frontend/{bundle-mjs-clTO1WW-.js → bundle-mjs-654jE5XN.js} +397 -300
  30. package/dist/frontend/{camera-DsdOPOcD.js → camera-C6JuKKhr.js} +9 -8
  31. package/dist/frontend/{categories-CusvHb5Y.js → categories-CUfKlgrs.js} +1 -1
  32. package/dist/frontend/{categories_update_error-Cn8DBBHv.js → categories_update_error-BrLD-j9s.js} +1 -1
  33. package/dist/frontend/check-B_e1XqT2.js +25 -0
  34. package/dist/frontend/chevron-down-BsnN2mp2.js +25 -0
  35. package/dist/frontend/circle-check-CJH5zxd9.js +29 -0
  36. package/dist/frontend/clock-CU0gCiiM.js +29 -0
  37. package/dist/frontend/collaboration.js +113 -113
  38. package/dist/frontend/components/category-dialog.js +1 -1
  39. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  40. package/dist/frontend/components/delete-dialog.js +1 -1
  41. package/dist/frontend/components/editor/compact-editor.js +5 -4
  42. package/dist/frontend/components/editor/document-editor.js +1 -1
  43. package/dist/frontend/components/editor/document-title.js +3 -2
  44. package/dist/frontend/components/editor/docx-serializer.js +8359 -12358
  45. package/dist/frontend/components/editor/extensions.js +1 -1
  46. package/dist/frontend/components/editor/markdown-toggle.js +33 -32
  47. package/dist/frontend/components/editor/markdown.js +1 -1
  48. package/dist/frontend/components/folder-node.js +1 -1
  49. package/dist/frontend/components/folder-tree-selector.js +1 -1
  50. package/dist/frontend/components/save-as-dialog.js +168 -167
  51. package/dist/frontend/components/settings.js +1 -1
  52. package/dist/frontend/components/share-dialog.js +1 -1
  53. package/dist/frontend/components/sidebar.js +1 -1
  54. package/dist/frontend/components/tag-create-dialog.js +1 -1
  55. package/dist/frontend/components/version-history.js +252 -251
  56. package/dist/frontend/{copy-Bag46YaR.js → copy-DYNRCHgk.js} +9 -8
  57. package/dist/frontend/dashboard.js +1301 -1300
  58. package/dist/frontend/db-yN0Vve_2.js +4296 -0
  59. package/dist/frontend/{dialog-C0Bpok1d.js → dialog-Dqp04jso.js} +11 -10
  60. package/dist/frontend/dist-4xBCgXNT.js +40 -0
  61. package/dist/frontend/{dist-DjId3RKL.js → dist-BaAULhmK.js} +3 -9
  62. package/dist/frontend/dist-C1oIyJLI.js +302 -0
  63. package/dist/frontend/dndzone-CWg1kmdZ.js +1483 -0
  64. package/dist/frontend/{doc_title_label-BOuZzvqv.js → doc_title_label-BPlghiRM.js} +1 -1
  65. package/dist/frontend/{doc_title_placeholder-ZxpdWWEn.js → doc_title_placeholder-D-LfSoC5.js} +1 -1
  66. package/dist/frontend/dropdown-menu-HePwCxoQ.js +1429 -0
  67. package/dist/frontend/{editorExtensions-DbiFj4tn.js → editorExtensions-QKIFSqEG.js} +9 -9
  68. package/dist/frontend/{editor_markdown_placeholder-BztIY9Ci.js → editor_markdown_placeholder-BXRPm7JG.js} +1 -1
  69. package/dist/frontend/{ellipsis-vertical-Oymsv1R4.js → ellipsis-vertical-CR25MyeP.js} +9 -8
  70. package/dist/frontend/{error_dismiss-C651ZdWI.js → error_dismiss-Ckia7GQe.js} +1 -1
  71. package/dist/frontend/{error_generic-BlWqOE-a.js → error_generic-gyQMdET_.js} +1 -1
  72. package/dist/frontend/extension.js +1 -1
  73. package/dist/frontend/{folder-BpmB_sAy.js → folder-BpA690ie.js} +4 -3
  74. package/dist/frontend/{folders_rename-Cxbg5GIw.js → folders_rename-BHa_gSXw.js} +1 -1
  75. package/dist/frontend/frontend.css +1 -1
  76. package/dist/frontend/i18n.js +29 -29
  77. package/dist/frontend/{identity-B7HeOzDJ.js → identity-ndFYB8Nt.js} +1 -1
  78. package/dist/frontend/{input-CbeB9220.js → input-Cv3qF4J3.js} +9 -8
  79. package/dist/frontend/label-DXjefKfF.js +30 -0
  80. package/dist/frontend/{lib-CITdCbKa.js → lib-DJthN0w9.js} +7108 -5196
  81. package/dist/frontend/loader-circle-CvWX1HHL.js +25 -0
  82. package/dist/frontend/{markdown-6E9TWC6V.js → markdown-CksQVQ6a.js} +2 -2
  83. package/dist/frontend/offline/identity.js +1 -1
  84. package/dist/frontend/popper-layer-force-mount-DS--Cvfo.js +3493 -0
  85. package/dist/frontend/rolldown-runtime-DKYsOz5J.js +19 -0
  86. package/dist/frontend/{rotate-ccw-DAUX7np7.js → rotate-ccw-Box7QP5X.js} +9 -8
  87. package/dist/frontend/{runtime-CGUiMzK6.js → runtime-CJv8UGYl.js} +1 -4
  88. package/dist/frontend/{schemas-YXxhj5o8.js → schemas-BYbeR0Ky.js} +11 -11
  89. package/dist/frontend/{scroll_to_top_aria-lJc2RSx_.js → scroll_to_top_aria-CP7_oyCo.js} +1 -1
  90. package/dist/frontend/search.js +650 -649
  91. package/dist/frontend/{search_title-BETwQYJq.js → search_title-C2aOzN_J.js} +1 -1
  92. package/dist/frontend/select-value-DAMTi0zc.js +1473 -0
  93. package/dist/frontend/{settings-DyePuqjp.js → settings-DTsCVJEi.js} +1 -1
  94. package/dist/frontend/{share-context-C2xyVP9M.js → share-context-CtRMIIhL.js} +15 -14
  95. package/dist/frontend/{share_copied-BuAnmpbz.js → share_copied-BHb_9sOo.js} +1 -1
  96. package/dist/frontend/{share_toggle_password-LEYUeHWr.js → share_toggle_password-DjCMq4Eq.js} +1 -1
  97. package/dist/frontend/shared-document.js +49 -48
  98. package/dist/frontend/{sidebar_uncategorized-C5PGOflV.js → sidebar_uncategorized-BJSB_sc9.js} +1 -1
  99. package/dist/frontend/{sort_relevance-DpCVLby_.js → sort_relevance-CXuNTq6L.js} +1 -1
  100. package/dist/frontend/{tag-Wdfe0rKU.js → tag-BPOFgBQw.js} +4 -3
  101. package/dist/frontend/tag-store.svelte-DyqQNx7H.js +28 -0
  102. package/dist/frontend/{tags-DlDVothf.js → tags-DwilrkrM.js} +1 -1
  103. package/dist/frontend/{tags_load_error-BINNpPPV.js → tags_load_error-BOyuQEGc.js} +1 -1
  104. package/dist/frontend/{tags_new-Dw0Uy43-.js → tags_new-CGF3Hi1j.js} +1 -1
  105. package/dist/frontend/textarea-DDdgNvnf.js +23 -0
  106. package/dist/frontend/theme.js +1 -1
  107. package/dist/frontend/{theme.svelte-BiXvrqwh.js → theme.svelte-Dx01qWc3.js} +2 -2
  108. package/dist/frontend/{theme_system-YIfa_2Xt.js → theme_system-Bt9ItDgj.js} +1 -1
  109. package/dist/frontend/utils/dndzone.js +1 -1
  110. package/dist/frontend/{utils-CnAmIMwr.js → utils-BQMesoNf.js} +1 -1
  111. package/dist/frontend/utils-BavN35Bw.js +6 -0
  112. package/dist/frontend/utils.js +1 -1
  113. package/dist/frontend/{version_create_snapshot-D8xjbuCq.js → version_create_snapshot-BvoOuUeh.js} +1 -1
  114. package/dist/frontend/{version_restored_from-DYFFSuQj.js → version_restored_from-BIEEKFbx.js} +1 -1
  115. package/dist/frontend/{version_snapshot_label_placeholder-BhKq1NQ7.js → version_snapshot_label_placeholder-h9r2_0u3.js} +1 -1
  116. package/dist/frontend/{weekday_we-BxbzNVWR.js → weekday_we-DsuVW6rh.js} +1 -1
  117. package/dist/frontend/x-hIpDH7DU.js +25 -0
  118. package/dist/frontend/{yjs-BbwnvxgY.js → yjs--VgxqIlB.js} +607 -628
  119. package/dist/frontend-ssr/api/categories.js +1 -1
  120. package/dist/frontend-ssr/api/settings.js +1 -1
  121. package/dist/frontend-ssr/api/tags.js +1 -1
  122. package/dist/frontend-ssr/app-shell.js +11 -11
  123. package/dist/frontend-ssr/assets/{CategoryDialog-2CCX508O.js → CategoryDialog-DRItbO_9.js} +13 -13
  124. package/dist/frontend-ssr/assets/{ConfirmDialog-Cc6lcY1N.js → ConfirmDialog-B0NXRrel.js} +8 -8
  125. package/dist/frontend-ssr/assets/{CreateSnapshotDialog-BB8fXF9W.js → CreateSnapshotDialog-nj8PjuON.js} +7 -7
  126. package/dist/frontend-ssr/assets/{DatePicker-CfzKzipR.js → DatePicker-CdUKLPtP.js} +8 -8
  127. package/dist/frontend-ssr/assets/{DeleteDialog-DRU4UgOW.js → DeleteDialog-B83NoxAg.js} +3 -3
  128. package/dist/frontend-ssr/assets/{FolderNode-CyOrLJ2Y.js → FolderNode-CSeC3051.js} +10 -10
  129. package/dist/frontend-ssr/assets/{FolderTreeSelector-D0reTdFS.js → FolderTreeSelector-Dh-ViJPU.js} +4 -4
  130. package/dist/frontend-ssr/assets/{HiAiEditor-BQGlGd3z.js → HiAiEditor-DB2PjHm9.js} +41 -41
  131. package/dist/frontend-ssr/assets/{Icon-CrIRbT5O.js → Icon-CBEeswQ2.js} +4 -4
  132. package/dist/frontend-ssr/assets/{SettingsDialog-BpHY3IMb.js → SettingsDialog-kc3O9PXG.js} +21 -21
  133. package/dist/frontend-ssr/assets/{ShareDialog-CY40nWZJ.js → ShareDialog-Dmrj55QP.js} +4 -4
  134. package/dist/frontend-ssr/assets/{Sidebar-dTp4DyW4.js → Sidebar-CDQcIuyv.js} +45 -45
  135. package/dist/frontend-ssr/assets/{TagCreateDialog-C2tpdEuj.js → TagCreateDialog-CP-yYfpQ.js} +11 -11
  136. package/dist/frontend-ssr/assets/{action_cancel-CsBbxW0m.js → action_cancel-B8i5P3wt.js} +1 -1
  137. package/dist/frontend-ssr/assets/{action_close-lFKBqBwg.js → action_close-DPgIB-cY.js} +1 -1
  138. package/dist/frontend-ssr/assets/{action_create-BV4ZOcQW.js → action_create-DAlNPFeN.js} +1 -1
  139. package/dist/frontend-ssr/assets/{action_delete-CNmRhKQP.js → action_delete-C6lsQCtY.js} +1 -1
  140. package/dist/frontend-ssr/assets/{action_go_to-tN5I26xM.js → action_go_to-C6tegi-k.js} +1 -1
  141. package/dist/frontend-ssr/assets/{action_save-YCfMiKb4.js → action_save-BQCej1sh.js} +1 -1
  142. package/dist/frontend-ssr/assets/{auth-client-BnnnJDAb.js → auth-client-CwXGsJIQ.js} +44 -38
  143. package/dist/frontend-ssr/assets/{camera-OYNSMvMd.js → camera-kjjsHmQu.js} +2 -2
  144. package/dist/frontend-ssr/assets/{categories_update_error-Bfx5vtvt.js → categories_update_error-Kq8q_FJp.js} +1 -1
  145. package/dist/frontend-ssr/assets/{chevron-down-DB6YsSbQ.js → chevron-down-DPc-Owbl.js} +2 -2
  146. package/dist/frontend-ssr/assets/{chevron-right-DOt2uY6b.js → chevron-right-C-jY4mqk.js} +2 -2
  147. package/dist/frontend-ssr/assets/{circle-check-DQhTm9YR.js → circle-check-CnueRXrc.js} +2 -2
  148. package/dist/frontend-ssr/assets/{clock-B08dVWtf.js → clock-CoRtIDhT.js} +2 -2
  149. package/dist/frontend-ssr/assets/{copy-2jsznHar.js → copy-CDNZIGVg.js} +2 -2
  150. package/dist/frontend-ssr/assets/{db-BEKLU5Fc.js → db-NhMsSg1f.js} +1 -1
  151. package/dist/frontend-ssr/assets/{dialog-C6U-DqLr.js → dialog-B09MN2S-.js} +9 -9
  152. package/dist/frontend-ssr/assets/{dist-DqXTz_zE.js → dist-D4MAfF0i.js} +13 -13
  153. package/dist/frontend-ssr/assets/{dist-ip9bPdma.js → dist-cDG_u5EF.js} +8 -8
  154. package/dist/frontend-ssr/assets/{dndzone-C7KnICM0.js → dndzone-DyM8UtoT.js} +378 -216
  155. package/dist/frontend-ssr/assets/{doc_title_label-CE_l-Gum.js → doc_title_label-BqCuH3eY.js} +1 -1
  156. package/dist/frontend-ssr/assets/{doc_title_placeholder-7_i7PtG6.js → doc_title_placeholder-C3tGSpRB.js} +1 -1
  157. package/dist/frontend-ssr/assets/dropdown-menu-C9H45F9X.js +1721 -0
  158. package/dist/frontend-ssr/assets/{editor_markdown_placeholder-CAeLJjFT.js → editor_markdown_placeholder-Cxa5uq87.js} +1 -1
  159. package/dist/frontend-ssr/assets/{editor_toolbar_undo-CVCfQIS1.js → editor_toolbar_undo-D-gLz88j.js} +1 -1
  160. package/dist/frontend-ssr/assets/{ellipsis-vertical-IFHt2NM1.js → ellipsis-vertical-oBvMj3Jm.js} +2 -2
  161. package/dist/frontend-ssr/assets/{error_generic-BB80i0Vk.js → error_generic-BSoVZ_4p.js} +1 -1
  162. package/dist/frontend-ssr/assets/{folder-CXa1_bm5.js → folder-Ptjeaody.js} +2 -2
  163. package/dist/frontend-ssr/assets/{folders_rename-ydbfwQlj.js → folders_rename-DBtQcf2R.js} +1 -1
  164. package/dist/frontend-ssr/assets/{identity-DTz1SQwC.js → identity-CigCqYEA.js} +1 -1
  165. package/dist/frontend-ssr/assets/{input-Bxw9sFF0.js → input-Cc45dG_S.js} +2 -2
  166. package/dist/frontend-ssr/assets/{label-CMWedjs6.js → label-C1_J2397.js} +2 -2
  167. package/dist/frontend-ssr/assets/{loader-circle-zbKj9Qb-.js → loader-circle-CK3McH5n.js} +2 -2
  168. package/dist/frontend-ssr/assets/{markdown-BmIhDQp7.js → markdown-WQsa_gay.js} +1 -1
  169. package/dist/frontend-ssr/assets/{popper-layer-force-mount-CSHZsG2E.js → popper-layer-force-mount-CGKwdZaZ.js} +1448 -2402
  170. package/dist/frontend-ssr/assets/{rotate-ccw-B7SaTFWf.js → rotate-ccw-B1lCxJ5d.js} +2 -2
  171. package/dist/frontend-ssr/assets/{runtime-BX6-jTn_.js → runtime-CoxALrm1.js} +2 -28
  172. package/dist/frontend-ssr/assets/{scroll_to_top_aria-CAYSiGHO.js → scroll_to_top_aria-CmLwsPln.js} +1 -1
  173. package/dist/frontend-ssr/assets/{search_title-C7NVXXq3.js → search_title-CZIl0wkq.js} +1 -1
  174. package/dist/frontend-ssr/assets/{search_toggle_filters-Bq_YVD8s.js → search_toggle_filters-BG-CRM9G.js} +1 -1
  175. package/dist/frontend-ssr/assets/{select-value-TgslfiUB.js → select-value-BeUHHkLq.js} +157 -66
  176. package/dist/frontend-ssr/assets/{settings-B1MA_FjO.js → settings-BqyemuQv.js} +1 -1
  177. package/dist/frontend-ssr/assets/{share-context-RVh8AExX.js → share-context-BM1sUnlP.js} +15 -15
  178. package/dist/frontend-ssr/assets/{share_copied-CrwEwkb3.js → share_copied-BVGtm9Ud.js} +1 -1
  179. package/dist/frontend-ssr/assets/{share_toggle_password-Co56z0Ha.js → share_toggle_password-z0gwy0TG.js} +1 -1
  180. package/dist/frontend-ssr/assets/{sidebar_uncategorized-COWdmZ3d.js → sidebar_uncategorized-rpbsgLVr.js} +1 -1
  181. package/dist/frontend-ssr/assets/{tag-BGhtDKpP.js → tag-D_ZqINN3.js} +3 -3
  182. package/dist/frontend-ssr/assets/{tags_load_error-DW4FbHvr.js → tags_load_error-DvhlyMMY.js} +1 -1
  183. package/dist/frontend-ssr/assets/{tags_new-Dr3ByMPZ.js → tags_new-DStxzBII.js} +1 -1
  184. package/dist/frontend-ssr/assets/{textarea-Bz5Tz4rw.js → textarea-S9uzw6je.js} +2 -2
  185. package/dist/frontend-ssr/assets/{theme.svelte-CdHah46l.js → theme.svelte-CqAzqvik.js} +2 -2
  186. package/dist/frontend-ssr/assets/{theme_system-E97FASeq.js → theme_system-DjbsL0RQ.js} +1 -1
  187. package/dist/frontend-ssr/assets/{utils-DF6CmRDX.js → utils-DF93j6z-.js} +1 -1
  188. package/dist/frontend-ssr/assets/{version_create_snapshot-DeeYB7bb.js → version_create_snapshot-SwYsTZ56.js} +1 -1
  189. package/dist/frontend-ssr/assets/{version_restored_from-CTt2LM4A.js → version_restored_from-pYBnudye.js} +1 -1
  190. package/dist/frontend-ssr/assets/{version_snapshot_label_placeholder-BbGD9YuN.js → version_snapshot_label_placeholder-DtDnHip8.js} +1 -1
  191. package/dist/frontend-ssr/assets/{weekday_we-BzGQ-iFc.js → weekday_we-CV1TMROW.js} +1 -1
  192. package/dist/frontend-ssr/components/category-dialog.js +1 -1
  193. package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
  194. package/dist/frontend-ssr/components/delete-dialog.js +1 -1
  195. package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
  196. package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
  197. package/dist/frontend-ssr/components/editor/document-title.js +2 -2
  198. package/dist/frontend-ssr/components/editor/extensions.js +1 -1
  199. package/dist/frontend-ssr/components/editor/markdown-toggle.js +3 -3
  200. package/dist/frontend-ssr/components/editor/markdown.js +1 -1
  201. package/dist/frontend-ssr/components/folder-node.js +1 -1
  202. package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
  203. package/dist/frontend-ssr/components/save-as-dialog.js +10 -10
  204. package/dist/frontend-ssr/components/settings.js +1 -1
  205. package/dist/frontend-ssr/components/share-dialog.js +1 -1
  206. package/dist/frontend-ssr/components/sidebar.js +1 -1
  207. package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
  208. package/dist/frontend-ssr/components/version-history.js +17 -17
  209. package/dist/frontend-ssr/dashboard.js +61 -158
  210. package/dist/frontend-ssr/extension.js +1 -1
  211. package/dist/frontend-ssr/i18n.js +31 -31
  212. package/dist/frontend-ssr/offline/identity.js +1 -1
  213. package/dist/frontend-ssr/search.js +13 -13
  214. package/dist/frontend-ssr/shared-document.js +1 -1
  215. package/dist/frontend-ssr/theme.js +1 -1
  216. package/dist/frontend-ssr/utils/dndzone.js +1 -1
  217. package/dist/lifecycle-runtime.js +17769 -11203
  218. package/dist/mcp-cli.js +1 -1
  219. package/dist/mcp-server.js +1 -1
  220. package/package.json +13 -13
  221. package/packages/cli/src/index.ts +1 -1
  222. package/server.json +2 -2
  223. package/dist/frontend/CategoryDialog-CVJi5PJu.js +0 -602
  224. package/dist/frontend/ConfirmDialog-0JwB8mKN.js +0 -218
  225. package/dist/frontend/CreateSnapshotDialog-BLrtuYs5.js +0 -218
  226. package/dist/frontend/DatePicker-BwSb8TRv.js +0 -326
  227. package/dist/frontend/DeleteDialog-s7Dr6bXg.js +0 -174
  228. package/dist/frontend/FolderNode-Ds0LDfK3.js +0 -290
  229. package/dist/frontend/FolderTreeSelector-BR3lYmPU.js +0 -101
  230. package/dist/frontend/HiAiEditor-BHz46Iqd.js +0 -3078
  231. package/dist/frontend/HiaiDocsExtensionProvider-A2nGddUR.js +0 -12
  232. package/dist/frontend/SettingsDialog-BvS74JZu.js +0 -978
  233. package/dist/frontend/ShareDialog-Bo50h_Oe.js +0 -271
  234. package/dist/frontend/Sidebar-DerKtpWB.js +0 -2168
  235. package/dist/frontend/TagCreateDialog-DhKfsfv3.js +0 -267
  236. package/dist/frontend/check-DiMZRkKS.js +0 -24
  237. package/dist/frontend/chevron-down-CxFrMFDJ.js +0 -24
  238. package/dist/frontend/circle-check-B4F_qgPx.js +0 -28
  239. package/dist/frontend/clock-dcpueRk-.js +0 -28
  240. package/dist/frontend/db-B1ZV452J.js +0 -3792
  241. package/dist/frontend/dist-BlcV_BOY.js +0 -39
  242. package/dist/frontend/dist-Dl9qg10h.js +0 -301
  243. package/dist/frontend/dndzone-B9jA0yIS.js +0 -1372
  244. package/dist/frontend/dropdown-menu-B3nk2aM-.js +0 -482
  245. package/dist/frontend/label-CfBWf3gI.js +0 -29
  246. package/dist/frontend/loader-circle-skKwfRCB.js +0 -24
  247. package/dist/frontend/popper-layer-force-mount-BG0eyrCk.js +0 -4255
  248. package/dist/frontend/rolldown-runtime-CwxnZyOB.js +0 -22
  249. package/dist/frontend/select-value-BY5Hw6Rl.js +0 -1412
  250. package/dist/frontend/tag-store.svelte-C9VYWqLQ.js +0 -28
  251. package/dist/frontend/textarea-D6emvAwM.js +0 -22
  252. package/dist/frontend/utils-DH0uqK40.js +0 -6
  253. package/dist/frontend/x-CBUgPygC.js +0 -24
  254. package/dist/frontend-ssr/assets/dropdown-menu-BS5fcN9l.js +0 -446
  255. package/dist/frontend-ssr/assets/{HiaiDocsExtensionProvider-D6cGL-9s.js → HiaiDocsExtensionProvider-BdfQP817.js} +1 -1
  256. package/dist/frontend-ssr/assets/{categories-bBPviKjl.js → categories-CMmudpEk.js} +1 -1
  257. package/dist/frontend-ssr/assets/{editorExtensions-2O7O2Nhv.js → editorExtensions-DOPTTKUS.js} +2 -2
  258. package/dist/frontend-ssr/assets/{tag-store.svelte-CUUgAaDD.js → tag-store.svelte-Djpf1W0n.js} +1 -1
  259. package/dist/frontend-ssr/assets/{tags-C7u-LBsl.js → tags-GQOEtqET.js} +1 -1
@@ -1,10 +1,11 @@
1
- import { t as e } from "./Icon-CiHcxcpv.js";
1
+ import "svelte/internal/init-operations";
2
2
  import "svelte/internal/disclose-version";
3
- import * as t from "svelte/internal/client";
4
3
  import "svelte/internal/flags/legacy";
5
- // ../node_modules/.bun/lucide-svelte@1.0.1+5d720e49779a0e36/node_modules/lucide-svelte/dist/icons/camera.svelte
4
+ import * as e from "svelte/internal/client";
5
+ import { t } from "./Icon-DNapb_KY.js";
6
+ // ../node_modules/.bun/lucide-svelte@1.0.1+39695945a324e2d8/node_modules/lucide-svelte/dist/icons/camera.svelte
6
7
  function n(n, r) {
7
- let i = t.legacy_rest_props(r, [
8
+ let i = e.legacy_rest_props(r, [
8
9
  "children",
9
10
  "$$slots",
10
11
  "$$events",
@@ -14,13 +15,13 @@ function n(n, r) {
14
15
  cy: "13",
15
16
  r: "3"
16
17
  }]];
17
- e(n, t.spread_props({ name: "camera" }, () => i, {
18
+ t(n, e.spread_props({ name: "camera" }, () => i, {
18
19
  get iconNode() {
19
20
  return a;
20
21
  },
21
- children: (e, n) => {
22
- var i = t.comment(), a = t.first_child(i);
23
- t.slot(a, r, "default", {}, null), t.append(e, i);
22
+ children: (t, n) => {
23
+ var i = e.comment(), a = e.first_child(i);
24
+ e.slot(a, r, "default", {}, null), e.append(t, i);
24
25
  },
25
26
  $$slots: { default: !0 }
26
27
  }));
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./client-BDdDd84W.js";
2
- import { a as t, i as n, n as r, r as i, t as a } from "./schemas-YXxhj5o8.js";
2
+ import { a as t, i as n, n as r, r as i, t as a } from "./schemas-BYbeR0Ky.js";
3
3
  // src/lib/api/categories.ts
4
4
  var o = n({
5
5
  name: t().trim().min(1, "Name is required").max(255, "Name must be 255 characters or less"),
@@ -1,4 +1,4 @@
1
- import { t as e } from "./runtime-CGUiMzK6.js";
1
+ import { t as e } from "./runtime-CJv8UGYl.js";
2
2
  // src/lib/paraglide/messages/categories_create_error.js
3
3
  var t = () => "Failed to create category", n = ((n = {}, r = {}) => (r.locale ?? e(), t(n))), r = () => "New category", i = ((t = {}, n = {}) => (n.locale ?? e(), r(t))), a = () => "Delete this category? It will be detached from any folders or documents it is assigned to. This cannot be undone.", o = ((t = {}, n = {}) => (n.locale ?? e(), a(t))), s = () => "Failed to delete category", c = ((t = {}, n = {}) => (n.locale ?? e(), s(t))), l = () => "Category deleted", u = ((t = {}, n = {}) => (n.locale ?? e(), l(t))), d = () => "It was detached from its folders and documents.", f = ((t = {}, n = {}) => (n.locale ?? e(), d(t))), p = () => "Delete category", m = ((t = {}, n = {}) => (n.locale ?? e(), p(t))), h = () => "Rename category", g = ((t = {}, n = {}) => (n.locale ?? e(), h(t))), _ = () => "Category name", v = ((t = {}, n = {}) => (n.locale ?? e(), _(t))), y = () => "Failed to update category", b = ((t = {}, n = {}) => (n.locale ?? e(), y(t)));
4
4
  export { f as a, o as c, m as i, i as l, v as n, u as o, g as r, c as s, b as t, n as u };
@@ -0,0 +1,25 @@
1
+ import "svelte/internal/init-operations";
2
+ import "svelte/internal/disclose-version";
3
+ import "svelte/internal/flags/legacy";
4
+ import * as e from "svelte/internal/client";
5
+ import { t } from "./Icon-DNapb_KY.js";
6
+ // ../node_modules/.bun/lucide-svelte@1.0.1+39695945a324e2d8/node_modules/lucide-svelte/dist/icons/check.svelte
7
+ function n(n, r) {
8
+ let i = e.legacy_rest_props(r, [
9
+ "children",
10
+ "$$slots",
11
+ "$$events",
12
+ "$$legacy"
13
+ ]), a = [["path", { d: "M20 6 9 17l-5-5" }]];
14
+ t(n, e.spread_props({ name: "check" }, () => i, {
15
+ get iconNode() {
16
+ return a;
17
+ },
18
+ children: (t, n) => {
19
+ var i = e.comment(), a = e.first_child(i);
20
+ e.slot(a, r, "default", {}, null), e.append(t, i);
21
+ },
22
+ $$slots: { default: !0 }
23
+ }));
24
+ }
25
+ export { n as t };
@@ -0,0 +1,25 @@
1
+ import "svelte/internal/init-operations";
2
+ import "svelte/internal/disclose-version";
3
+ import "svelte/internal/flags/legacy";
4
+ import * as e from "svelte/internal/client";
5
+ import { t } from "./Icon-DNapb_KY.js";
6
+ // ../node_modules/.bun/lucide-svelte@1.0.1+39695945a324e2d8/node_modules/lucide-svelte/dist/icons/chevron-down.svelte
7
+ function n(n, r) {
8
+ let i = e.legacy_rest_props(r, [
9
+ "children",
10
+ "$$slots",
11
+ "$$events",
12
+ "$$legacy"
13
+ ]), a = [["path", { d: "m6 9 6 6 6-6" }]];
14
+ t(n, e.spread_props({ name: "chevron-down" }, () => i, {
15
+ get iconNode() {
16
+ return a;
17
+ },
18
+ children: (t, n) => {
19
+ var i = e.comment(), a = e.first_child(i);
20
+ e.slot(a, r, "default", {}, null), e.append(t, i);
21
+ },
22
+ $$slots: { default: !0 }
23
+ }));
24
+ }
25
+ export { n as t };
@@ -0,0 +1,29 @@
1
+ import "svelte/internal/init-operations";
2
+ import "svelte/internal/disclose-version";
3
+ import "svelte/internal/flags/legacy";
4
+ import * as e from "svelte/internal/client";
5
+ import { t } from "./Icon-DNapb_KY.js";
6
+ // ../node_modules/.bun/lucide-svelte@1.0.1+39695945a324e2d8/node_modules/lucide-svelte/dist/icons/circle-check.svelte
7
+ function n(n, r) {
8
+ let i = e.legacy_rest_props(r, [
9
+ "children",
10
+ "$$slots",
11
+ "$$events",
12
+ "$$legacy"
13
+ ]), a = [["circle", {
14
+ cx: "12",
15
+ cy: "12",
16
+ r: "10"
17
+ }], ["path", { d: "m9 12 2 2 4-4" }]];
18
+ t(n, e.spread_props({ name: "circle-check" }, () => i, {
19
+ get iconNode() {
20
+ return a;
21
+ },
22
+ children: (t, n) => {
23
+ var i = e.comment(), a = e.first_child(i);
24
+ e.slot(a, r, "default", {}, null), e.append(t, i);
25
+ },
26
+ $$slots: { default: !0 }
27
+ }));
28
+ }
29
+ export { n as t };
@@ -0,0 +1,29 @@
1
+ import "svelte/internal/init-operations";
2
+ import "svelte/internal/disclose-version";
3
+ import "svelte/internal/flags/legacy";
4
+ import * as e from "svelte/internal/client";
5
+ import { t } from "./Icon-DNapb_KY.js";
6
+ // ../node_modules/.bun/lucide-svelte@1.0.1+39695945a324e2d8/node_modules/lucide-svelte/dist/icons/clock.svelte
7
+ function n(n, r) {
8
+ let i = e.legacy_rest_props(r, [
9
+ "children",
10
+ "$$slots",
11
+ "$$events",
12
+ "$$legacy"
13
+ ]), a = [["circle", {
14
+ cx: "12",
15
+ cy: "12",
16
+ r: "10"
17
+ }], ["path", { d: "M12 6v6l4 2" }]];
18
+ t(n, e.spread_props({ name: "clock" }, () => i, {
19
+ get iconNode() {
20
+ return a;
21
+ },
22
+ children: (t, n) => {
23
+ var i = e.comment(), a = e.first_child(i);
24
+ e.slot(a, r, "default", {}, null), e.append(t, i);
25
+ },
26
+ $$slots: { default: !0 }
27
+ }));
28
+ }
29
+ export { n as t };
@@ -1,68 +1,68 @@
1
- import { $ as e, B as t, H as n, I as r, J as i, K as a, L as o, N as s, P as c, Q as l, S as u, U as d, V as f, W as p, Y as m, at as h, ct as g, dt as _, et as v, f as y, i as ee, j as te, lt as b, nt as x, pt as S, q as C, rt as w, st as T, tt as E, ut as D, x as ne } from "./yjs-BbwnvxgY.js";
2
- // ../node_modules/.bun/lib0@0.2.117/node_modules/lib0/broadcastchannel.js
3
- var O = /* @__PURE__ */ new Map(), re = class {
1
+ import { B as e, E as t, F as n, G as r, K as i, L as a, Q as o, R as s, T as c, U as l, V as u, W as d, X as f, Y as p, Z as m, a as h, at as g, ct as ee, dt as _, ft as v, h as y, ht as b, it as x, mt as te, nt as S, ot as C, pt as w, q as T, rt as E, tt as D, ut as O } from "./yjs--VgxqIlB.js";
2
+ // ../node_modules/.bun/lib0@0.2.120/node_modules/lib0/broadcastchannel.js
3
+ var k = /* @__PURE__ */ new Map(), ne = class {
4
4
  constructor(e) {
5
- this.room = e, this.onmessage = null, this._onChange = (t) => t.key === e && this.onmessage !== null && this.onmessage({ data: s(t.newValue || "") }), n(this._onChange);
5
+ this.room = e, this.onmessage = null, this._onChange = (t) => t.key === e && this.onmessage !== null && this.onmessage({ data: a(t.newValue || "") }), r(this._onChange);
6
6
  }
7
7
  postMessage(e) {
8
- d.setItem(this.room, c(te(e)));
8
+ i.setItem(this.room, s(n(e)));
9
9
  }
10
10
  close() {
11
- f(this._onChange);
11
+ d(this._onChange);
12
12
  }
13
- }, ie = typeof BroadcastChannel > "u" ? re : BroadcastChannel, k = (e) => S(O, e, () => {
14
- let t = _(), n = new ie(e);
13
+ }, re = typeof BroadcastChannel > "u" ? ne : BroadcastChannel, A = (e) => b(k, e, () => {
14
+ let t = te(), n = new re(e);
15
15
  return n.onmessage = (e) => t.forEach((t) => t(e.data, "broadcastchannel")), {
16
16
  bc: n,
17
17
  subs: t
18
18
  };
19
- }), ae = (e, t) => (k(e).subs.add(t), t), A = (e, t) => {
20
- let n = k(e), r = n.subs.delete(t);
21
- return r && n.subs.size === 0 && (n.bc.close(), O.delete(e)), r;
19
+ }), ie = (e, t) => (A(e).subs.add(t), t), ae = (e, t) => {
20
+ let n = A(e), r = n.subs.delete(t);
21
+ return r && n.subs.size === 0 && (n.bc.close(), k.delete(e)), r;
22
22
  }, j = (e, t, n = null) => {
23
- let r = k(e);
23
+ let r = A(e);
24
24
  r.bc.postMessage(t), r.subs.forEach((e) => e(t, n));
25
- }, M = (e, t) => {
26
- x(e, 0);
27
- let n = u(t);
28
- w(e, n);
25
+ }, M = (e, n) => {
26
+ g(e, 0);
27
+ let r = t(n);
28
+ C(e, r);
29
29
  }, N = (e, t, n) => {
30
- x(e, 1), w(e, ne(t, n));
31
- }, P = (e, t, n) => N(t, n, m(e)), F = (e, t, n, r) => {
30
+ g(e, 1), C(e, c(t, n));
31
+ }, P = (e, t, n) => N(t, n, o(e)), F = (e, t, n, r) => {
32
32
  try {
33
- y(t, m(e), n);
33
+ y(t, o(e), n);
34
34
  } catch (e) {
35
35
  r?.(e), console.error("Caught error while handling a Yjs update", e);
36
36
  }
37
37
  }, I = (e, t) => {
38
- x(e, 2), w(e, t);
39
- }, L = F, R = (e, t, n, r, a) => {
40
- let o = i(e);
41
- switch (o) {
38
+ g(e, 2), C(e, t);
39
+ }, L = F, R = (e, t, n, r, i) => {
40
+ let a = m(e);
41
+ switch (a) {
42
42
  case 0:
43
43
  P(e, t, n);
44
44
  break;
45
45
  case 1:
46
- F(e, n, r, a);
46
+ F(e, n, r, i);
47
47
  break;
48
48
  case 2:
49
- L(e, n, r, a);
49
+ L(e, n, r, i);
50
50
  break;
51
51
  default: throw Error("Unknown message type");
52
52
  }
53
- return o;
53
+ return a;
54
54
  }, z = (e, t, n) => {
55
- i(e) === 0 && n(t, C(e));
56
- }, B = 3e4, V = class extends b {
55
+ m(e) === 0 && n(t, f(e));
56
+ }, B = 3e4, V = class extends v {
57
57
  constructor(e) {
58
58
  super(), this.doc = e, this.clientID = e.clientID, this.states = /* @__PURE__ */ new Map(), this.meta = /* @__PURE__ */ new Map(), this._checkInterval = setInterval(() => {
59
- let e = p();
59
+ let e = T();
60
60
  this.getLocalState() !== null && 15e3 <= e - this.meta.get(this.clientID).lastUpdated && this.setLocalState(this.getLocalState());
61
61
  let t = [];
62
62
  this.meta.forEach((n, r) => {
63
63
  r !== this.clientID && 3e4 <= e - n.lastUpdated && this.states.has(r) && t.push(r);
64
64
  }), t.length > 0 && H(this, t, "timeout");
65
- }, h(B / 10)), e.on("destroy", () => {
65
+ }, ee(B / 10)), e.on("destroy", () => {
66
66
  this.destroy();
67
67
  }), this.setLocalState({});
68
68
  }
@@ -76,17 +76,17 @@ var O = /* @__PURE__ */ new Map(), re = class {
76
76
  let t = this.clientID, n = this.meta.get(t), r = n === void 0 ? 0 : n.clock + 1, i = this.states.get(t);
77
77
  e === null ? this.states.delete(t) : this.states.set(t, e), this.meta.set(t, {
78
78
  clock: r,
79
- lastUpdated: p()
79
+ lastUpdated: T()
80
80
  });
81
- let a = [], s = [], c = [], l = [];
82
- e === null ? l.push(t) : i == null ? e != null && a.push(t) : (s.push(t), o(i, e) || c.push(t)), (a.length > 0 || c.length > 0 || l.length > 0) && this.emit("change", [{
81
+ let a = [], o = [], s = [], c = [];
82
+ e === null ? c.push(t) : i == null ? e != null && a.push(t) : (o.push(t), u(i, e) || s.push(t)), (a.length > 0 || s.length > 0 || c.length > 0) && this.emit("change", [{
83
83
  added: a,
84
- updated: c,
85
- removed: l
84
+ updated: s,
85
+ removed: c
86
86
  }, "local"]), this.emit("update", [{
87
87
  added: a,
88
- updated: s,
89
- removed: l
88
+ updated: o,
89
+ removed: c
90
90
  }, "local"]);
91
91
  }
92
92
  setLocalStateField(e, t) {
@@ -108,7 +108,7 @@ var O = /* @__PURE__ */ new Map(), re = class {
108
108
  let t = e.meta.get(i);
109
109
  e.meta.set(i, {
110
110
  clock: t.clock + 1,
111
- lastUpdated: p()
111
+ lastUpdated: T()
112
112
  });
113
113
  }
114
114
  r.push(i);
@@ -124,46 +124,46 @@ var O = /* @__PURE__ */ new Map(), re = class {
124
124
  removed: r
125
125
  }, n]));
126
126
  }, U = (e, t, n = e.states) => {
127
- let r = t.length, i = l();
128
- x(i, r);
127
+ let r = t.length, i = D();
128
+ g(i, r);
129
129
  for (let a = 0; a < r; a++) {
130
130
  let r = t[a], o = n.get(r) || null, s = e.meta.get(r).clock;
131
- x(i, r), x(i, s), E(i, JSON.stringify(o));
131
+ g(i, r), g(i, s), x(i, JSON.stringify(o));
132
132
  }
133
- return v(i);
133
+ return E(i);
134
134
  }, W = (e, t, n) => {
135
- let r = a(t), s = p(), c = [], l = [], u = [], d = [], f = i(r);
136
- for (let t = 0; t < f; t++) {
137
- let t = i(r), n = i(r), a = JSON.parse(C(r)), f = e.meta.get(t), p = e.states.get(t), m = f === void 0 ? 0 : f.clock;
138
- (m < n || m === n && a === null && e.states.has(t)) && (a === null ? t === e.clientID && e.getLocalState() != null ? n++ : e.states.delete(t) : e.states.set(t, a), e.meta.set(t, {
135
+ let r = p(t), i = T(), a = [], o = [], s = [], c = [], l = m(r);
136
+ for (let t = 0; t < l; t++) {
137
+ let t = m(r), n = m(r), l = JSON.parse(f(r)), d = e.meta.get(t), p = e.states.get(t), h = d === void 0 ? 0 : d.clock;
138
+ (h < n || h === n && l === null && e.states.has(t)) && (l === null ? t === e.clientID && e.getLocalState() != null ? n++ : e.states.delete(t) : e.states.set(t, l), e.meta.set(t, {
139
139
  clock: n,
140
- lastUpdated: s
141
- }), f === void 0 && a !== null ? c.push(t) : f !== void 0 && a === null ? d.push(t) : a !== null && (o(a, p) || u.push(t), l.push(t)));
140
+ lastUpdated: i
141
+ }), d === void 0 && l !== null ? a.push(t) : d !== void 0 && l === null ? c.push(t) : l !== null && (u(l, p) || s.push(t), o.push(t)));
142
142
  }
143
- (c.length > 0 || u.length > 0 || d.length > 0) && e.emit("change", [{
144
- added: c,
145
- updated: u,
146
- removed: d
147
- }, n]), (c.length > 0 || l.length > 0 || d.length > 0) && e.emit("update", [{
148
- added: c,
149
- updated: l,
150
- removed: d
143
+ (a.length > 0 || s.length > 0 || c.length > 0) && e.emit("change", [{
144
+ added: a,
145
+ updated: s,
146
+ removed: c
147
+ }, n]), (a.length > 0 || o.length > 0 || c.length > 0) && e.emit("update", [{
148
+ added: a,
149
+ updated: o,
150
+ removed: c
151
151
  }, n]);
152
- }, G = (e) => t(e, (e, t) => `${encodeURIComponent(t)}=${encodeURIComponent(e)}`).join("&"), K = [];
152
+ }, G = (e) => l(e, (e, t) => `${encodeURIComponent(t)}=${encodeURIComponent(e)}`).join("&"), K = [];
153
153
  K[0] = (e, t, n, r, i) => {
154
- x(e, 0);
154
+ g(e, 0);
155
155
  let a = R(t, e, n.doc, n);
156
156
  r && a === 1 && !n.synced && (n.synced = !0);
157
157
  }, K[3] = (e, t, n, r, i) => {
158
- x(e, 1), w(e, U(n.awareness, Array.from(n.awareness.getStates().keys())));
158
+ g(e, 1), C(e, U(n.awareness, Array.from(n.awareness.getStates().keys())));
159
159
  }, K[1] = (e, t, n, r, i) => {
160
- W(n.awareness, m(t), n);
160
+ W(n.awareness, o(t), n);
161
161
  }, K[2] = (e, t, n, r, i) => {
162
162
  z(t, n.doc, (e, t) => oe(n, t));
163
163
  };
164
164
  var q = 3e4, oe = (e, t) => console.warn(`Permission denied to access ${e.url}.\n${t}`), J = (e, t, n) => {
165
- let r = a(t), o = l(), s = i(r), c = e.messageHandlers[s];
166
- return c ? c(o, r, e, n, s) : console.error("Unable to compute message"), o;
165
+ let r = p(t), i = D(), a = m(r), o = e.messageHandlers[a];
166
+ return o ? o(i, r, e, n, a) : console.error("Unable to compute message"), i;
167
167
  }, se = (e) => !(e.code >= 4400 && e.code < 4500), Y = (e, t, n) => {
168
168
  if (t !== null && t === e.ws) {
169
169
  e.emit("connection-close", [n, e]), e.ws = null, t.onmessage = null, t.onopen = null, t.onclose = null, t.onerror = () => {}, t.close(), e.wsconnecting = !1, e.wsconnected && (e.wsconnected = !1, e.synced = !1, H(e.awareness, Array.from(e.awareness.getStates().keys()).filter((t) => t !== e.doc.clientID), e), e.emit("status", [{ status: "disconnected" }])), e.wsUnsuccessfulReconnects++;
@@ -171,59 +171,59 @@ var q = 3e4, oe = (e, t) => console.warn(`Permission denied to access ${e.url}.\
171
171
  n != null && !e.shouldReconnect(n, e) && (e.shouldConnect = !1, r = {
172
172
  code: n.code,
173
173
  reason: n.reason
174
- }), setTimeout(X, T(g(2, e.wsUnsuccessfulReconnects) * 100, e.maxBackoffTime), e), r !== null && e.emit("closed", [r, e]);
174
+ }), setTimeout(X, O(_(2, e.wsUnsuccessfulReconnects) * 100, e.maxBackoffTime), e), r !== null && e.emit("closed", [r, e]);
175
175
  }
176
- }, X = (t) => {
177
- if (t.shouldConnect && t.ws === null) {
178
- let n = new t._WS(t.url, t.protocols);
179
- n.binaryType = "arraybuffer", t.ws = n, t.wsconnecting = !0, t.wsconnected = !1, t.synced = !1, n.onmessage = (r) => {
180
- if (t.ws !== n) return;
181
- t.wsLastMessageReceived = p();
182
- let i = J(t, new Uint8Array(r.data), !0);
183
- e(i) > 1 && n.send(v(i));
184
- }, n.onerror = (e) => {
185
- t.ws === n && t.emit("connection-error", [e, t]);
186
- }, n.onclose = (e) => {
187
- Y(t, n, e);
188
- }, n.onopen = () => {
189
- if (t.ws !== n) return;
190
- t.wsLastMessageReceived = p(), t.wsconnecting = !1, t.wsconnected = !0, t.emit("status", [{ status: "connected" }]);
191
- let e = l();
192
- if (x(e, 0), M(e, t.doc), n.send(v(e)), t.awareness.getLocalState() !== null) {
193
- let e = l();
194
- x(e, 1), w(e, U(t.awareness, [t.doc.clientID])), n.send(v(e));
176
+ }, X = (e) => {
177
+ if (e.shouldConnect && e.ws === null) {
178
+ let t = new e._WS(e.url, e.protocols);
179
+ t.binaryType = "arraybuffer", e.ws = t, e.wsconnecting = !0, e.wsconnected = !1, e.synced = !1, t.onmessage = (n) => {
180
+ if (e.ws !== t) return;
181
+ e.wsLastMessageReceived = T();
182
+ let r = J(e, new Uint8Array(n.data), !0);
183
+ S(r) > 1 && t.send(E(r));
184
+ }, t.onerror = (n) => {
185
+ e.ws === t && e.emit("connection-error", [n, e]);
186
+ }, t.onclose = (n) => {
187
+ Y(e, t, n);
188
+ }, t.onopen = () => {
189
+ if (e.ws !== t) return;
190
+ e.wsLastMessageReceived = T(), e.wsconnecting = !1, e.wsconnected = !0, e.emit("status", [{ status: "connected" }]);
191
+ let n = D();
192
+ if (g(n, 0), M(n, e.doc), t.send(E(n)), e.awareness.getLocalState() !== null) {
193
+ let n = D();
194
+ g(n, 1), C(n, U(e.awareness, [e.doc.clientID])), t.send(E(n));
195
195
  }
196
- }, t.emit("status", [{ status: "connecting" }]);
196
+ }, e.emit("status", [{ status: "connecting" }]);
197
197
  }
198
198
  }, Z = (e, t) => {
199
199
  let n = e.ws;
200
200
  e.wsconnected && n && n.readyState === n.OPEN && n.send(t), e.bcconnected && j(e.bcChannel, t, e);
201
- }, Q = class extends D {
202
- constructor(t, n, i, { connect: a = !0, awareness: o = new V(i), params: s = {}, protocols: c = [], WebSocketPolyfill: u = WebSocket, resyncInterval: d = -1, maxBackoffTime: f = 2500, disableBc: m = !1, shouldReconnect: h = se } = {}) {
201
+ }, Q = class extends w {
202
+ constructor(t, n, r, { connect: i = !0, awareness: a = new V(r), params: o = {}, protocols: s = [], WebSocketPolyfill: c = WebSocket, resyncInterval: l = -1, maxBackoffTime: u = 2500, disableBc: d = !1, shouldReconnect: f = se } = {}) {
203
203
  for (super(); t[t.length - 1] === "/";) t = t.slice(0, t.length - 1);
204
- this.serverUrl = t, this.bcChannel = t + "/" + n, this.maxBackoffTime = f, this.shouldReconnect = h, this.params = s, this.protocols = c, this.roomname = n, this.doc = i, this._WS = u, this.awareness = o, this.wsconnected = !1, this.wsconnecting = !1, this.bcconnected = !1, this.disableBc = m, this.wsUnsuccessfulReconnects = 0, this.messageHandlers = K.slice(), this._synced = !1, this.ws = null, this.wsLastMessageReceived = 0, this.shouldConnect = a, this._resyncInterval = 0, d > 0 && (this._resyncInterval = setInterval(() => {
204
+ this.serverUrl = t, this.bcChannel = t + "/" + n, this.maxBackoffTime = u, this.shouldReconnect = f, this.params = o, this.protocols = s, this.roomname = n, this.doc = r, this._WS = c, this.awareness = a, this.wsconnected = !1, this.wsconnecting = !1, this.bcconnected = !1, this.disableBc = d, this.wsUnsuccessfulReconnects = 0, this.messageHandlers = K.slice(), this._synced = !1, this.ws = null, this.wsLastMessageReceived = 0, this.shouldConnect = i, this._resyncInterval = 0, l > 0 && (this._resyncInterval = setInterval(() => {
205
205
  if (this.ws && this.ws.readyState === WebSocket.OPEN) {
206
- let e = l();
207
- x(e, 0), M(e, i), this.ws.send(v(e));
206
+ let e = D();
207
+ g(e, 0), M(e, r), this.ws.send(E(e));
208
208
  }
209
- }, d)), this._bcSubscriber = (t, n) => {
210
- if (n !== this) {
211
- let n = J(this, new Uint8Array(t), !1);
212
- e(n) > 1 && j(this.bcChannel, v(n), this);
209
+ }, l)), this._bcSubscriber = (e, t) => {
210
+ if (t !== this) {
211
+ let t = J(this, new Uint8Array(e), !1);
212
+ S(t) > 1 && j(this.bcChannel, E(t), this);
213
213
  }
214
214
  }, this._updateHandler = (e, t) => {
215
215
  if (t !== this) {
216
- let t = l();
217
- x(t, 0), I(t, e), Z(this, v(t));
216
+ let t = D();
217
+ g(t, 0), I(t, e), Z(this, E(t));
218
218
  }
219
219
  }, this.doc.on("update", this._updateHandler), this._awarenessUpdateHandler = ({ added: e, updated: t, removed: n }, r) => {
220
- let i = e.concat(t).concat(n), a = l();
221
- x(a, 1), w(a, U(o, i)), Z(this, v(a));
220
+ let i = e.concat(t).concat(n), o = D();
221
+ g(o, 1), C(o, U(a, i)), Z(this, E(o));
222
222
  }, this._exitHandler = () => {
223
- H(this.awareness, [i.clientID], "app closed");
224
- }, r && typeof process < "u" && process.on("exit", this._exitHandler), o.on("update", this._awarenessUpdateHandler), this._checkInterval = setInterval(() => {
225
- this.wsconnected && q < p() - this.wsLastMessageReceived && Y(this, this.ws, null);
226
- }, q / 10), a && this.connect();
223
+ H(this.awareness, [r.clientID], "app closed");
224
+ }, e && typeof process < "u" && process.on("exit", this._exitHandler), a.on("update", this._awarenessUpdateHandler), this._checkInterval = setInterval(() => {
225
+ this.wsconnected && q < T() - this.wsLastMessageReceived && Y(this, this.ws, null);
226
+ }, q / 10), i && this.connect();
227
227
  }
228
228
  get url() {
229
229
  let e = G(this.params);
@@ -236,23 +236,23 @@ var q = 3e4, oe = (e, t) => console.warn(`Permission denied to access ${e.url}.\
236
236
  this._synced !== e && (this._synced = e, e && (this.wsUnsuccessfulReconnects = 0), this.emit("synced", [e]), this.emit("sync", [e]));
237
237
  }
238
238
  destroy() {
239
- this._resyncInterval !== 0 && clearInterval(this._resyncInterval), clearInterval(this._checkInterval), this.disconnect(), r && typeof process < "u" && process.off("exit", this._exitHandler), this.awareness.off("update", this._awarenessUpdateHandler), this.doc.off("update", this._updateHandler), super.destroy();
239
+ this._resyncInterval !== 0 && clearInterval(this._resyncInterval), clearInterval(this._checkInterval), this.disconnect(), e && typeof process < "u" && process.off("exit", this._exitHandler), this.awareness.off("update", this._awarenessUpdateHandler), this.doc.off("update", this._updateHandler), super.destroy();
240
240
  }
241
241
  connectBc() {
242
242
  if (this.disableBc) return;
243
- this.bcconnected ||= (ae(this.bcChannel, this._bcSubscriber), !0);
244
- let e = l();
245
- x(e, 0), M(e, this.doc), j(this.bcChannel, v(e), this);
246
- let t = l();
247
- x(t, 0), N(t, this.doc), j(this.bcChannel, v(t), this);
248
- let n = l();
249
- x(n, 3), j(this.bcChannel, v(n), this);
250
- let r = l();
251
- x(r, 1), w(r, U(this.awareness, [this.doc.clientID])), j(this.bcChannel, v(r), this);
243
+ this.bcconnected ||= (ie(this.bcChannel, this._bcSubscriber), !0);
244
+ let e = D();
245
+ g(e, 0), M(e, this.doc), j(this.bcChannel, E(e), this);
246
+ let t = D();
247
+ g(t, 0), N(t, this.doc), j(this.bcChannel, E(t), this);
248
+ let n = D();
249
+ g(n, 3), j(this.bcChannel, E(n), this);
250
+ let r = D();
251
+ g(r, 1), C(r, U(this.awareness, [this.doc.clientID])), j(this.bcChannel, E(r), this);
252
252
  }
253
253
  disconnectBc() {
254
- let e = l();
255
- x(e, 1), w(e, U(this.awareness, [this.doc.clientID], /* @__PURE__ */ new Map())), Z(this, v(e)), this.bcconnected &&= (A(this.bcChannel, this._bcSubscriber), !1);
254
+ let e = D();
255
+ g(e, 1), C(e, U(this.awareness, [this.doc.clientID], /* @__PURE__ */ new Map())), Z(this, E(e)), this.bcconnected &&= (ae(this.bcChannel, this._bcSubscriber), !1);
256
256
  }
257
257
  disconnect() {
258
258
  this.shouldConnect = !1, this.disconnectBc(), this.ws !== null && Y(this, this.ws, null);
@@ -278,7 +278,7 @@ function le(e, t, n, r, i) {
278
278
  // src/lib/collaboration.ts
279
279
  var $ = /* @__PURE__ */ new Set();
280
280
  function ue(e, t, n, r) {
281
- let i = new ee(), a = le(e, t, window.location.protocol, window.location.host, r), o = new Q(a.serverUrl, a.roomName, i, {
281
+ let i = new h(), a = le(e, t, window.location.protocol, window.location.host, r), o = new Q(a.serverUrl, a.roomName, i, {
282
282
  connect: !0,
283
283
  params: a.params
284
284
  });
@@ -1 +1 @@
1
- export { t as CategoryDialog } from "../CategoryDialog-CVJi5PJu.js";
1
+ export { t as CategoryDialog } from "../CategoryDialog-CtBDBrmR.js";
@@ -1 +1 @@
1
- export { t as CreateSnapshotDialog } from "../CreateSnapshotDialog-BLrtuYs5.js";
1
+ export { t as CreateSnapshotDialog } from "../CreateSnapshotDialog-bUKdc0Zb.js";
@@ -1 +1 @@
1
- export { t as DeleteDialog } from "../DeleteDialog-s7Dr6bXg.js";
1
+ export { t as DeleteDialog } from "../DeleteDialog-D28HGxN7.js";
@@ -1,10 +1,11 @@
1
- import { t as e } from "../../HiAiEditor-BHz46Iqd.js";
1
+ import "svelte/internal/init-operations";
2
2
  import "svelte/internal/disclose-version";
3
- import * as t from "svelte/internal/client";
3
+ import * as e from "svelte/internal/client";
4
+ import { t } from "../../HiAiEditor--V0-gKwv.js";
4
5
  // src/lib/components/editor/CompactEditor.svelte
5
6
  function n(n, r) {
6
- let i = t.prop(r, "content", 3, ""), a = t.prop(r, "onUpdate", 3, (e) => {}), o = t.prop(r, "editable", 3, !0), s = t.prop(r, "collaboration", 3, null), c = t.prop(r, "documentId", 3, ""), l = t.prop(r, "documentUpdatedAt", 3, "");
7
- e(n, {
7
+ let i = e.prop(r, "content", 3, ""), a = e.prop(r, "onUpdate", 3, (e) => {}), o = e.prop(r, "editable", 3, !0), s = e.prop(r, "collaboration", 3, null), c = e.prop(r, "documentId", 3, ""), l = e.prop(r, "documentUpdatedAt", 3, "");
8
+ t(n, {
8
9
  get content() {
9
10
  return i();
10
11
  },
@@ -1 +1 @@
1
- export { t as DocsmintDocumentEditorHost } from "../../HiAiEditor-BHz46Iqd.js";
1
+ export { t as DocsmintDocumentEditorHost } from "../../HiAiEditor--V0-gKwv.js";
@@ -1,5 +1,6 @@
1
- import { t as e } from "../../doc_title_label-BOuZzvqv.js";
2
- import { t } from "../../doc_title_placeholder-ZxpdWWEn.js";
1
+ import { t as e } from "../../doc_title_label-BPlghiRM.js";
2
+ import { t } from "../../doc_title_placeholder-D-LfSoC5.js";
3
+ import "svelte/internal/init-operations";
3
4
  import "svelte/internal/disclose-version";
4
5
  import * as n from "svelte/internal/client";
5
6
  // src/lib/components/editor/DocumentTitle.svelte