@hiai-gg/docsmint 0.7.4 → 0.7.6

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 (246) hide show
  1. package/README.md +2 -2
  2. package/dist/backend/index.js +130026 -129609
  3. package/dist/backend-account-runtime-cleanup.js +2 -0
  4. package/dist/backend-api-key-facade.js +2 -0
  5. package/dist/backend-pipeline-cancellation.js +2 -0
  6. package/dist/frontend/CategoryDialog-D_xFSWGh.js +630 -0
  7. package/dist/frontend/ConfirmDialog-Cfq3D2Di.js +221 -0
  8. package/dist/frontend/{CreateSnapshotDialog-CojnWChs.js → CreateSnapshotDialog-BHODxZWK.js} +53 -52
  9. package/dist/frontend/{DatePicker-7FAbIOGg.js → DatePicker-CZyCnQ1q.js} +62 -64
  10. package/dist/frontend/{DeleteDialog-BIlqRb1u.js → DeleteDialog-DaJOO6SB.js} +17 -17
  11. package/dist/frontend/FolderNode-C_91NlEO.js +307 -0
  12. package/dist/frontend/{FolderTreeSelector-BMB1MS9N.js → FolderTreeSelector-DqO-f0nt.js} +7 -7
  13. package/dist/frontend/HiAiEditor-DtUGbQg6.js +3160 -0
  14. package/dist/frontend/{HiaiDocsExtensionProvider-OSn96BBw.js → HiaiDocsExtensionProvider-Cc3yzW5I.js} +5 -3
  15. package/dist/frontend/{Icon-Db-o32_E.js → Icon-y7xxAIC6.js} +1 -1
  16. package/dist/frontend/{SettingsDialog-DatuxOVX.js → SettingsDialog-BlIZqk2-.js} +169 -158
  17. package/dist/frontend/ShareDialog-CmX-VoJ9.js +273 -0
  18. package/dist/frontend/Sidebar-BVGm5BRR.js +2147 -0
  19. package/dist/frontend/{TagCreateDialog-Ch21yuWV.js → TagCreateDialog-BlGz4O9Z.js} +45 -36
  20. package/dist/frontend/action_cancel-Cuxsznzz.js +5 -0
  21. package/dist/frontend/action_close-BJm_52wm.js +5 -0
  22. package/dist/frontend/action_create-CtBQrRuj.js +5 -0
  23. package/dist/frontend/action_delete-BXBIzvn0.js +5 -0
  24. package/dist/frontend/action_go_to-VmK5jmEk.js +5 -0
  25. package/dist/frontend/action_loading-BLCGJVA9.js +5 -0
  26. package/dist/frontend/action_save-BRN2Z_GP.js +5 -0
  27. package/dist/frontend/api/attachments.js +1 -1
  28. package/dist/frontend/api/categories.js +1 -1
  29. package/dist/frontend/api/folders.js +1 -1
  30. package/dist/frontend/api/settings.js +1 -1
  31. package/dist/frontend/api/share.js +1 -1
  32. package/dist/frontend/api/tags.js +1 -1
  33. package/dist/frontend/app-shell.js +8 -8
  34. package/dist/frontend/{attachments-B2aH3hXF.js → attachments-C225gTA7.js} +2 -2
  35. package/dist/frontend/{auth-client-CnDZwPfp.js → auth-client-DCMne8vd.js} +630 -615
  36. package/dist/frontend/{bundle-mjs-DllmqUxV.js → bundle-mjs-CZ3g1Uzr.js} +35 -42
  37. package/dist/frontend/{camera-CzCxBOpc.js → camera-BI-BtnIm.js} +2 -2
  38. package/dist/frontend/{categories-X7gK8azc.js → categories-Bjcc41We.js} +1 -1
  39. package/dist/frontend/categories_update_error-4aSI8PTr.js +5 -0
  40. package/dist/frontend/{check-BIi-Ghti.js → check-sdTlLwi9.js} +2 -2
  41. package/dist/frontend/{chevron-down-C2ft7XUV.js → chevron-down-DlBnIE7Y.js} +2 -2
  42. package/dist/frontend/{circle-check-BrqfiQH1.js → circle-check-hWC-HeKu.js} +2 -2
  43. package/dist/frontend/{clock-Dz86E4Kz.js → clock-C4FHq-9q.js} +2 -2
  44. package/dist/frontend/collaboration.js +208 -103
  45. package/dist/frontend/components/category-dialog.js +1 -1
  46. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  47. package/dist/frontend/components/delete-dialog.js +1 -1
  48. package/dist/frontend/components/editor/compact-editor.js +1 -1
  49. package/dist/frontend/components/editor/document-editor.js +1 -1
  50. package/dist/frontend/components/editor/document-title.js +3 -2
  51. package/dist/frontend/components/editor/docx-serializer.js +140 -125
  52. package/dist/frontend/components/editor/extensions.js +1 -1
  53. package/dist/frontend/components/editor/markdown-toggle.js +9 -9
  54. package/dist/frontend/components/editor/markdown.js +1 -1
  55. package/dist/frontend/components/folder-node.js +1 -1
  56. package/dist/frontend/components/folder-tree-selector.js +1 -1
  57. package/dist/frontend/components/save-as-dialog.js +34 -25
  58. package/dist/frontend/components/settings.js +1 -1
  59. package/dist/frontend/components/share-dialog.js +1 -1
  60. package/dist/frontend/components/sidebar.js +1 -1
  61. package/dist/frontend/components/tag-create-dialog.js +1 -1
  62. package/dist/frontend/components/version-history.js +181 -176
  63. package/dist/frontend/{confirm-dialog-8T6vsWL7.js → confirm-dialog-BFTxjLv-.js} +46 -37
  64. package/dist/frontend/{copy-CvCh4ZVt.js → copy-4H99lwAQ.js} +2 -2
  65. package/dist/frontend/dashboard.js +462 -456
  66. package/dist/frontend/{db-Bo1t_76T.js → db-CbFRFAm2.js} +40 -38
  67. package/dist/frontend/{dialog-CiSwD-_v.js → dialog-tHAH3-9M.js} +10 -10
  68. package/dist/frontend/dist-Cg1BpNS7.js +2262 -0
  69. package/dist/frontend/dndzone-BrakBHwm.js +1375 -0
  70. package/dist/frontend/doc_title_label-DS9jSIh2.js +5 -0
  71. package/dist/frontend/doc_title_placeholder-DBQpM1aH.js +5 -0
  72. package/dist/frontend/{document-drop-coordinator-C4xHMjwC.js → document-drop-coordinator-Da7HcXgv.js} +1 -1
  73. package/dist/frontend/document-drop-coordinator.js +1 -1
  74. package/dist/frontend/{dropdown-menu-Bi5Iipwf.js → dropdown-menu-AJYeFPHu.js} +145 -145
  75. package/dist/frontend/{editor-content-sanitizer-CC_A8aaI.js → editor-content-sanitizer-CWjqiz0T.js} +30 -30
  76. package/dist/frontend/{editorExtensions--HusV819.js → editorExtensions-B-mKiWqq.js} +5085 -6220
  77. package/dist/frontend/editor_markdown_placeholder-BIWDUF1E.js +5 -0
  78. package/dist/frontend/error_dismiss-Dx_JbRjs.js +5 -0
  79. package/dist/frontend/error_generic-CzNtmBT4.js +5 -0
  80. package/dist/frontend/extension.js +1 -1
  81. package/dist/frontend/{folder-Cx60MRpi.js → folder-BAX6qBYy.js} +3 -3
  82. package/dist/frontend/{folders-ONG03Dkv.js → folders-CC0UWkZH.js} +3 -3
  83. package/dist/frontend/folders_rename-BJo4Gipq.js +5 -0
  84. package/dist/frontend/i18n.js +1007 -6
  85. package/dist/frontend/{identity-Ynrglr5i.js → identity-O4lAuchv.js} +2 -2
  86. package/dist/frontend/{input-N9dNSOWF.js → input-CrlYAH2S.js} +2 -2
  87. package/dist/frontend/{label-CK72_fw8.js → label-B0syEfns.js} +2 -2
  88. package/dist/frontend/{markdown-H6QB53zu.js → markdown-CMij27Gg.js} +1 -1
  89. package/dist/frontend/offline/identity.js +1 -1
  90. package/dist/frontend/{floating-layer-anchor-BGIndLY-.js → popper-layer-force-mount-BAYjg6Pp.js} +2476 -2564
  91. package/dist/frontend/{rolldown-runtime-CWhphoD1.js → rolldown-runtime-DArdT4gl.js} +2 -2
  92. package/dist/frontend/{rotate-ccw-ta4NosZ0.js → rotate-ccw-DtZDfSK3.js} +2 -2
  93. package/dist/frontend/runtime-CwWSo6c9.js +128 -0
  94. package/dist/frontend/{schemas-DwtKylCJ.js → schemas-CdPhcuru.js} +6 -7
  95. package/dist/frontend/scroll_to_top_aria-CvkNF_Hu.js +5 -0
  96. package/dist/frontend/search.js +237 -265
  97. package/dist/frontend/search_title-DOC0cPlQ.js +5 -0
  98. package/dist/frontend/{select-value-BD1DToYs.js → select-value-D9VqY5n5.js} +575 -572
  99. package/dist/frontend/{settings-BR48ihB4.js → settings-DJW8JkdF.js} +1 -1
  100. package/dist/frontend/{share-D7JtkC85.js → share-D5yo0JOh.js} +2 -1
  101. package/dist/frontend/share_copied-DPxVzfWh.js +5 -0
  102. package/dist/frontend/share_toggle_password-DdxfIjj1.js +5 -0
  103. package/dist/frontend/shared-document.js +1 -1
  104. package/dist/frontend/sidebar_uncategorized-qJ2_Aonf.js +5 -0
  105. package/dist/frontend/sort_relevance-DwYX5MO9.js +5 -0
  106. package/dist/frontend/{tag-DhVFHMcV.js → tag-ChpMfbfa.js} +3 -3
  107. package/dist/frontend/{tags-BdCaMGfj.js → tags-CzPNUoFw.js} +1 -1
  108. package/dist/frontend/tags_load_error-BKjA1pI0.js +5 -0
  109. package/dist/frontend/tags_new-BiNAJ9Bx.js +5 -0
  110. package/dist/frontend/{textarea-pl_fDBre.js → textarea-l_gRXsrH.js} +2 -2
  111. package/dist/frontend/theme.js +1 -1
  112. package/dist/frontend/{theme.svelte-DG3RS7wv.js → theme.svelte-Bzitjfh9.js} +2 -2
  113. package/dist/frontend/theme_system-BBNUhYKh.js +5 -0
  114. package/dist/frontend/utils/dndzone.js +1 -1
  115. package/dist/frontend/utils-B4LKx7VS.js +7 -0
  116. package/dist/frontend/{utils-DrfHTcei.js → utils-BovMJHdA.js} +2 -2
  117. package/dist/frontend/utils.js +1 -1
  118. package/dist/frontend/version_create_snapshot-3bu-0qzH.js +5 -0
  119. package/dist/frontend/version_restored_from-dVRN3Zdk.js +5 -0
  120. package/dist/frontend/version_snapshot_label_placeholder-DrMikux0.js +5 -0
  121. package/dist/frontend/weekday_we-C5H_M-df.js +5 -0
  122. package/dist/frontend/{x-cfdlccjs.js → x-B2ifxSH7.js} +2 -2
  123. package/dist/frontend/{awareness-snQ3RD9f.js → yjs-VUcKqaKW.js} +835 -944
  124. package/dist/frontend-ssr/api/attachments.js +92 -1
  125. package/dist/frontend-ssr/api/categories.js +1 -1
  126. package/dist/frontend-ssr/api/documents.js +1 -1
  127. package/dist/frontend-ssr/api/folders.js +1 -1
  128. package/dist/frontend-ssr/api/settings.js +1 -1
  129. package/dist/frontend-ssr/api/share.js +30 -1
  130. package/dist/frontend-ssr/api/tags.js +1 -1
  131. package/dist/frontend-ssr/app-shell.js +25 -18
  132. package/dist/frontend-ssr/assets/{CategoryDialog-DsXe54EF.js → CategoryDialog-C41IBNWG.js} +26 -35
  133. package/dist/frontend-ssr/assets/ConfirmDialog-CWO0HBaS.js +424 -0
  134. package/dist/frontend-ssr/assets/{CreateSnapshotDialog-D3-PjXVr.js → CreateSnapshotDialog-CECCRK0d.js} +12 -18
  135. package/dist/frontend-ssr/assets/{DatePicker-C9suIA1S.js → DatePicker-TZVeMZ2S.js} +32 -20
  136. package/dist/frontend-ssr/assets/{DeleteDialog-DxtMrS1O.js → DeleteDialog-BVnmzR2e.js} +5 -7
  137. package/dist/frontend-ssr/assets/{FolderNode-ChD10Elp.js → FolderNode-CClgk8BL.js} +7 -7
  138. package/dist/frontend-ssr/assets/{FolderTreeSelector-Bxi8EqMm.js → FolderTreeSelector-DnrKCYtl.js} +17 -20
  139. package/dist/frontend-ssr/assets/{HiAiEditor-2X3Uyg1B.js → HiAiEditor-_-m7MJDd.js} +330 -254
  140. package/dist/frontend-ssr/assets/{Icon-QwirKi9Y.js → Icon-Clqe8D8X.js} +28 -16
  141. package/dist/frontend-ssr/assets/{SettingsDialog-DDy0hN8x.js → SettingsDialog-BdvHRAxF.js} +45 -49
  142. package/dist/frontend-ssr/assets/{ShareDialog-BwW_wF4G.js → ShareDialog-DHPbSHZg.js} +5 -6
  143. package/dist/frontend-ssr/assets/{Sidebar-Dy-5gXOf.js → Sidebar-B3Saqn0O.js} +90 -93
  144. package/dist/frontend-ssr/assets/{TagCreateDialog-BPzgOaX8.js → TagCreateDialog-CPg-nG0D.js} +14 -14
  145. package/dist/frontend-ssr/assets/action_cancel-OVgQDP5Q.js +22 -0
  146. package/dist/frontend-ssr/assets/action_close-DagDyMXk.js +22 -0
  147. package/dist/frontend-ssr/assets/action_create-hqJWjyqh.js +22 -0
  148. package/dist/frontend-ssr/assets/action_delete-B1-16jSo.js +22 -0
  149. package/dist/frontend-ssr/assets/action_go_to-DQScgw7P.js +22 -0
  150. package/dist/frontend-ssr/assets/action_save-Bx7vlLZI.js +22 -0
  151. package/dist/frontend-ssr/assets/{api-keys-DIbclwj5.js → api-keys-CHOrbU-Q.js} +1 -1
  152. package/dist/frontend-ssr/assets/{auth-client-CojKIzqy.js → auth-client-DzkZlSQ8.js} +295 -261
  153. package/dist/frontend-ssr/assets/{camera-D6s20LDi.js → camera-Dwwtgvfn.js} +10 -6
  154. package/dist/frontend-ssr/assets/{categories-av9xjeg5.js → categories-C_dxFoHi.js} +1 -1
  155. package/dist/frontend-ssr/assets/categories_update_error-DkKgsqdD.js +202 -0
  156. package/dist/frontend-ssr/assets/{chevron-down-CvqKATjM.js → chevron-down-C6BTPJFz.js} +10 -6
  157. package/dist/frontend-ssr/assets/{chevron-right-DKD7WXjz.js → chevron-right-CseGE1qd.js} +10 -6
  158. package/dist/frontend-ssr/assets/{circle-check-CPS9dKEo.js → circle-check-BRhWPZo1.js} +10 -6
  159. package/dist/frontend-ssr/assets/{client-DZMkDkDn.js → client-rfwQYYHY.js} +4 -2
  160. package/dist/frontend-ssr/assets/{clock-CzsE58TH.js → clock-DpP_Y7WP.js} +10 -6
  161. package/dist/frontend-ssr/assets/{confirm-dialog-wYC07DPx.js → confirm-dialog-DeOR0SnQ.js} +44 -31
  162. package/dist/frontend-ssr/assets/{copy-DkkCPkBL.js → copy-DRMKiRZ0.js} +10 -6
  163. package/dist/frontend-ssr/assets/{db-BhwJPEkn.js → db-CUkQe9AU.js} +1 -1
  164. package/dist/frontend-ssr/assets/{dialog-ClcuF7nD.js → dialog--tDgDGw9.js} +12 -15
  165. package/dist/frontend-ssr/assets/{dndzone-DMvTO_Jz.js → dndzone-WtNaDxoQ.js} +309 -77
  166. package/dist/frontend-ssr/assets/doc_title_label-Ev_ltlh3.js +22 -0
  167. package/dist/frontend-ssr/assets/doc_title_placeholder-DSHpUb7w.js +22 -0
  168. package/dist/frontend-ssr/assets/{documents-CZ-wQohy.js → documents-CEuA1V6N.js} +1 -1
  169. package/dist/frontend-ssr/assets/{dropdown-menu-BKMGVNLL.js → dropdown-menu-CdEpn_LT.js} +74 -75
  170. package/dist/frontend-ssr/assets/editor_markdown_placeholder-BpezdkOr.js +42 -0
  171. package/dist/frontend-ssr/assets/editor_toolbar_undo-CKJAOqv2.js +562 -0
  172. package/dist/frontend-ssr/assets/error_generic-DTK0kwxT.js +42 -0
  173. package/dist/frontend-ssr/assets/{folder-DYIE-XPP.js → folder-DszunwKc.js} +10 -6
  174. package/dist/frontend-ssr/assets/{folders-BX30gHv6.js → folders-BOXeb9hz.js} +3 -2
  175. package/dist/frontend-ssr/assets/folders_rename-DvciOb6K.js +122 -0
  176. package/dist/frontend-ssr/assets/{identity-DcMMBKWg.js → identity-veXobEfE.js} +2 -2
  177. package/dist/frontend-ssr/assets/{input-DcDR8L8M.js → input-BlAj7LzC.js} +2 -2
  178. package/dist/frontend-ssr/assets/{label-Cz0_svJx.js → label-BRToaMg9.js} +2 -2
  179. package/dist/frontend-ssr/assets/{loader-circle-CIEWGyfP.js → loader-circle-BpRVrMZg.js} +10 -6
  180. package/dist/frontend-ssr/assets/{floating-layer-anchor-BoiiIEiK.js → popper-layer-force-mount-Djnq7l7a.js} +3684 -3674
  181. package/dist/frontend-ssr/assets/{rotate-ccw-dJSqPyTd.js → rotate-ccw-1GOD_yt_.js} +10 -6
  182. package/dist/frontend-ssr/assets/runtime-O78RzRqx.js +559 -0
  183. package/dist/frontend-ssr/assets/scroll_to_top_aria-BN4ZfOnM.js +22 -0
  184. package/dist/frontend-ssr/assets/search_title-CKUsQDT0.js +22 -0
  185. package/dist/frontend-ssr/assets/search_toggle_filters-hS9rvQhC.js +282 -0
  186. package/dist/frontend-ssr/assets/{select-value-CaDktvDW.js → select-value-BCWSsoTd.js} +204 -218
  187. package/dist/frontend-ssr/assets/{settings-Mp8EuFSn.js → settings-DwAcLGM1.js} +2 -2
  188. package/dist/frontend-ssr/assets/share_copied-BxU9rjXG.js +602 -0
  189. package/dist/frontend-ssr/assets/share_toggle_password-C6OmroqR.js +202 -0
  190. package/dist/frontend-ssr/assets/sidebar_uncategorized-Dx-LTd5w.js +102 -0
  191. package/dist/frontend-ssr/assets/{tag-BmiVU_Ej.js → tag-DFh6nF9R.js} +19 -11
  192. package/dist/frontend-ssr/assets/{tag-store.svelte-BM1lUI_P.js → tag-store.svelte-QRysvGKe.js} +1 -1
  193. package/dist/frontend-ssr/assets/{tags-BQsI_6OW.js → tags-BBCoFYro.js} +1 -1
  194. package/dist/frontend-ssr/assets/tags_load_error-CPrc6Gzs.js +362 -0
  195. package/dist/frontend-ssr/assets/tags_new-VmMr9v2V.js +62 -0
  196. package/dist/frontend-ssr/assets/{textarea-BGrjPOgU.js → textarea-BuszTo9i.js} +2 -2
  197. package/dist/frontend-ssr/assets/{theme.svelte-CN3BUhJG.js → theme.svelte-shZrSxz8.js} +1 -1
  198. package/dist/frontend-ssr/assets/theme_system-BucaNntV.js +362 -0
  199. package/dist/frontend-ssr/assets/{utils-Cg_R05dR.js → utils-BK35BJKQ.js} +1 -1
  200. package/dist/frontend-ssr/assets/version_create_snapshot-COHzwjle.js +22 -0
  201. package/dist/frontend-ssr/assets/version_restored_from-CertjFDl.js +242 -0
  202. package/dist/frontend-ssr/assets/version_snapshot_label_placeholder-Cy_rMCij.js +222 -0
  203. package/dist/frontend-ssr/assets/weekday_we-DrI3U230.js +422 -0
  204. package/dist/frontend-ssr/components/category-dialog.js +1 -1
  205. package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
  206. package/dist/frontend-ssr/components/delete-dialog.js +1 -1
  207. package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
  208. package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
  209. package/dist/frontend-ssr/components/editor/document-title.js +2 -1
  210. package/dist/frontend-ssr/components/editor/markdown-toggle.js +2 -2
  211. package/dist/frontend-ssr/components/folder-node.js +1 -1
  212. package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
  213. package/dist/frontend-ssr/components/save-as-dialog.js +12 -14
  214. package/dist/frontend-ssr/components/settings.js +1 -1
  215. package/dist/frontend-ssr/components/share-dialog.js +1 -1
  216. package/dist/frontend-ssr/components/sidebar.js +1 -1
  217. package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
  218. package/dist/frontend-ssr/components/version-history.js +47 -51
  219. package/dist/frontend-ssr/dashboard.js +243 -232
  220. package/dist/frontend-ssr/i18n.js +6698 -1
  221. package/dist/frontend-ssr/offline/identity.js +1 -1
  222. package/dist/frontend-ssr/search.js +28 -31
  223. package/dist/frontend-ssr/shared-document.js +1 -2
  224. package/dist/frontend-ssr/theme.js +1 -1
  225. package/dist/frontend-ssr/utils/dndzone.js +1 -1
  226. package/dist/lifecycle-runtime.js +4437 -2019
  227. package/dist/mcp-cli.js +1 -1
  228. package/dist/mcp-server.js +1 -1
  229. package/package.json +7 -7
  230. package/packages/cli/src/index.ts +1 -1
  231. package/packages/db/src/schema.ts +2 -0
  232. package/server.json +2 -2
  233. package/dist/frontend/CategoryDialog-bQKMpVFD.js +0 -631
  234. package/dist/frontend/ConfirmDialog-DF7kgkyq.js +0 -139
  235. package/dist/frontend/FolderNode-Cf443LBa.js +0 -298
  236. package/dist/frontend/HiAiEditor-CMZ-eL8s.js +0 -2992
  237. package/dist/frontend/ShareDialog-Bwz2y3Le.js +0 -281
  238. package/dist/frontend/Sidebar-C_t5RrOJ.js +0 -2101
  239. package/dist/frontend/dist-DQa_OHOa.js +0 -268
  240. package/dist/frontend/dndzone-BzsOINtP.js +0 -1199
  241. package/dist/frontend/messages-DTRe4U2V.js +0 -1093
  242. package/dist/frontend/utils-CMQRlxbx.js +0 -7
  243. package/dist/frontend-ssr/assets/ConfirmDialog-DrH653ua.js +0 -136
  244. package/dist/frontend-ssr/assets/attachments-BdkOp8ha.js +0 -93
  245. package/dist/frontend-ssr/assets/messages-B1TjVIH8.js +0 -11147
  246. package/dist/frontend-ssr/assets/share-qTqvd6Lu.js +0 -30
@@ -1,124 +1,229 @@
1
- import { $ as e, E as t, G as n, I as r, J as i, K as a, Q as o, R as s, T as c, V as l, W as u, X as d, Z as f, at as p, c as m, dt as h, ft as g, g as _, i as v, it as y, lt as b, mt as x, n as S, nt as C, ot as w, q as T, r as E, rt as D, t as O, ut as k, z as A } from "./awareness-snQ3RD9f.js";
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-VUcKqaKW.js";
2
2
  //#region ../node_modules/.bun/lib0@0.2.117/node_modules/lib0/broadcastchannel.js
3
- var j = /* @__PURE__ */ new Map(), M = class {
3
+ var O = /* @__PURE__ */ new Map(), re = 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 || "") }), a(this._onChange);
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);
6
6
  }
7
7
  postMessage(e) {
8
- T.setItem(this.room, A(r(e)));
8
+ d.setItem(this.room, c(te(e)));
9
9
  }
10
10
  close() {
11
- n(this._onChange);
11
+ f(this._onChange);
12
12
  }
13
- }, ee = typeof BroadcastChannel > "u" ? M : BroadcastChannel, N = (e) => x(j, e, () => {
14
- let t = g(), n = new ee(e);
13
+ }, ie = typeof BroadcastChannel > "u" ? re : BroadcastChannel, k = (e) => S(O, e, () => {
14
+ let t = _(), n = new ie(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
- }), P = (e, t) => (N(e).subs.add(t), t), F = (e, t) => {
20
- let n = N(e), r = n.subs.delete(t);
21
- return r && n.subs.size === 0 && (n.bc.close(), j.delete(e)), r;
22
- }, I = (e, t, n = null) => {
23
- let r = N(e);
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;
22
+ }, j = (e, t, n = null) => {
23
+ let r = k(e);
24
24
  r.bc.postMessage(t), r.subs.forEach((e) => e(t, n));
25
- }, L = (e, n) => {
26
- p(e, 0), w(e, t(n));
27
- }, R = (e, t, n) => {
28
- p(e, 1), w(e, c(t, n));
29
- }, z = (t, n, r) => R(n, r, e(t)), B = (t, n, r, i) => {
25
+ }, M = (e, t) => {
26
+ x(e, 0);
27
+ let n = u(t);
28
+ w(e, n);
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
32
  try {
31
- _(n, e(t), r);
33
+ y(t, m(e), n);
32
34
  } catch (e) {
33
- i?.(e), console.error("Caught error while handling a Yjs update", e);
35
+ r?.(e), console.error("Caught error while handling a Yjs update", e);
34
36
  }
35
- }, V = (e, t) => {
36
- p(e, 2), w(e, t);
37
- }, H = B, U = (e, t, n, r, i) => {
38
- let a = o(e);
39
- switch (a) {
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) {
40
42
  case 0:
41
- z(e, t, n);
43
+ P(e, t, n);
42
44
  break;
43
45
  case 1:
44
- B(e, n, r, i);
46
+ F(e, n, r, a);
45
47
  break;
46
48
  case 2:
47
- H(e, n, r, i);
49
+ L(e, n, r, a);
48
50
  break;
49
51
  default: throw Error("Unknown message type");
50
52
  }
51
- return a;
53
+ return o;
54
+ }, z = (e, t, n) => {
55
+ i(e) === 0 && n(t, C(e));
56
+ }, B = 3e4, V = class extends b {
57
+ constructor(e) {
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();
60
+ this.getLocalState() !== null && 15e3 <= e - this.meta.get(this.clientID).lastUpdated && this.setLocalState(this.getLocalState());
61
+ let t = [];
62
+ this.meta.forEach((n, r) => {
63
+ r !== this.clientID && 3e4 <= e - n.lastUpdated && this.states.has(r) && t.push(r);
64
+ }), t.length > 0 && H(this, t, "timeout");
65
+ }, h(B / 10)), e.on("destroy", () => {
66
+ this.destroy();
67
+ }), this.setLocalState({});
68
+ }
69
+ destroy() {
70
+ this.emit("destroy", [this]), this.setLocalState(null), super.destroy(), clearInterval(this._checkInterval);
71
+ }
72
+ getLocalState() {
73
+ return this.states.get(this.clientID) || null;
74
+ }
75
+ setLocalState(e) {
76
+ let t = this.clientID, n = this.meta.get(t), r = n === void 0 ? 0 : n.clock + 1, i = this.states.get(t);
77
+ e === null ? this.states.delete(t) : this.states.set(t, e), this.meta.set(t, {
78
+ clock: r,
79
+ lastUpdated: p()
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", [{
83
+ added: a,
84
+ updated: c,
85
+ removed: l
86
+ }, "local"]), this.emit("update", [{
87
+ added: a,
88
+ updated: s,
89
+ removed: l
90
+ }, "local"]);
91
+ }
92
+ setLocalStateField(e, t) {
93
+ let n = this.getLocalState();
94
+ n !== null && this.setLocalState({
95
+ ...n,
96
+ [e]: t
97
+ });
98
+ }
99
+ getStates() {
100
+ return this.states;
101
+ }
102
+ }, H = (e, t, n) => {
103
+ let r = [];
104
+ for (let n = 0; n < t.length; n++) {
105
+ let i = t[n];
106
+ if (e.states.has(i)) {
107
+ if (e.states.delete(i), i === e.clientID) {
108
+ let t = e.meta.get(i);
109
+ e.meta.set(i, {
110
+ clock: t.clock + 1,
111
+ lastUpdated: p()
112
+ });
113
+ }
114
+ r.push(i);
115
+ }
116
+ }
117
+ r.length > 0 && (e.emit("change", [{
118
+ added: [],
119
+ updated: [],
120
+ removed: r
121
+ }, n]), e.emit("update", [{
122
+ added: [],
123
+ updated: [],
124
+ removed: r
125
+ }, n]));
126
+ }, U = (e, t, n = e.states) => {
127
+ let r = t.length, i = l();
128
+ x(i, r);
129
+ for (let a = 0; a < r; a++) {
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));
132
+ }
133
+ return v(i);
52
134
  }, W = (e, t, n) => {
53
- switch (o(e)) {
54
- case 0: n(t, f(e));
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, {
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)));
55
142
  }
56
- }, G = (e) => u(e, (e, t) => `${encodeURIComponent(t)}=${encodeURIComponent(e)}`).join("&"), K = [];
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
151
+ }, n]);
152
+ }, G = (e) => t(e, (e, t) => `${encodeURIComponent(t)}=${encodeURIComponent(e)}`).join("&"), K = [];
57
153
  K[0] = (e, t, n, r, i) => {
58
- p(e, 0);
59
- let a = U(t, e, n.doc, n);
154
+ x(e, 0);
155
+ let a = R(t, e, n.doc, n);
60
156
  r && a === 1 && !n.synced && (n.synced = !0);
61
157
  }, K[3] = (e, t, n, r, i) => {
62
- p(e, 1), w(e, E(n.awareness, Array.from(n.awareness.getStates().keys())));
63
- }, K[1] = (t, n, r, i, a) => {
64
- S(r.awareness, e(n), r);
158
+ x(e, 1), w(e, U(n.awareness, Array.from(n.awareness.getStates().keys())));
159
+ }, K[1] = (e, t, n, r, i) => {
160
+ W(n.awareness, m(t), n);
65
161
  }, K[2] = (e, t, n, r, i) => {
66
- W(t, n.doc, (e, t) => J(n, t));
162
+ z(t, n.doc, (e, t) => oe(n, t));
67
163
  };
68
- var q = 3e4, J = (e, t) => console.warn(`Permission denied to access ${e.url}.\n${t}`), Y = (e, t, n) => {
69
- let r = d(t), i = C(), a = o(r), s = e.messageHandlers[a];
70
- return s ? s(i, r, e, n, a) : console.error("Unable to compute message"), i;
71
- }, X = (e, t, n) => {
72
- t === e.ws && (e.emit("connection-close", [n, e]), e.ws = null, t.close(), e.wsconnecting = !1, e.wsconnected ? (e.wsconnected = !1, e.synced = !1, v(e.awareness, Array.from(e.awareness.getStates().keys()).filter((t) => t !== e.doc.clientID), e), e.emit("status", [{ status: "disconnected" }])) : e.wsUnsuccessfulReconnects++, setTimeout(Z, b(k(2, e.wsUnsuccessfulReconnects) * 100, e.maxBackoffTime), e));
73
- }, Z = (e) => {
74
- if (e.shouldConnect && e.ws === null) {
75
- let t = new e._WS(e.url, e.protocols);
76
- t.binaryType = "arraybuffer", e.ws = t, e.wsconnecting = !0, e.wsconnected = !1, e.synced = !1, t.onmessage = (n) => {
77
- e.wsLastMessageReceived = i();
78
- let r = Y(e, new Uint8Array(n.data), !0);
79
- D(r) > 1 && t.send(y(r));
80
- }, t.onerror = (t) => {
81
- e.emit("connection-error", [t, e]);
82
- }, t.onclose = (n) => {
83
- X(e, t, n);
84
- }, t.onopen = () => {
85
- e.wsLastMessageReceived = i(), e.wsconnecting = !1, e.wsconnected = !0, e.wsUnsuccessfulReconnects = 0, e.emit("status", [{ status: "connected" }]);
86
- let n = C();
87
- if (p(n, 0), L(n, e.doc), t.send(y(n)), e.awareness.getLocalState() !== null) {
88
- let n = C();
89
- p(n, 1), w(n, E(e.awareness, [e.doc.clientID])), t.send(y(n));
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;
167
+ }, se = (e) => !(e.code >= 4400 && e.code < 4500), Y = (e, t, n) => {
168
+ if (t !== null && t === e.ws) {
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++;
170
+ let r = null;
171
+ n != null && !e.shouldReconnect(n, e) && (e.shouldConnect = !1, r = {
172
+ code: n.code,
173
+ reason: n.reason
174
+ }), setTimeout(X, T(g(2, e.wsUnsuccessfulReconnects) * 100, e.maxBackoffTime), e), r !== null && e.emit("closed", [r, e]);
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));
90
195
  }
91
- }, e.emit("status", [{ status: "connecting" }]);
196
+ }, t.emit("status", [{ status: "connecting" }]);
92
197
  }
93
- }, Q = (e, t) => {
198
+ }, Z = (e, t) => {
94
199
  let n = e.ws;
95
- e.wsconnected && n && n.readyState === n.OPEN && n.send(t), e.bcconnected && I(e.bcChannel, t, e);
96
- }, te = class extends h {
97
- constructor(e, t, n, { connect: r = !0, awareness: a = new O(n), params: o = {}, protocols: s = [], WebSocketPolyfill: c = WebSocket, resyncInterval: u = -1, maxBackoffTime: d = 2500, disableBc: f = !1 } = {}) {
98
- for (super(); e[e.length - 1] === "/";) e = e.slice(0, e.length - 1);
99
- this.serverUrl = e, this.bcChannel = e + "/" + t, this.maxBackoffTime = d, this.params = o, this.protocols = s, this.roomname = t, this.doc = n, this._WS = c, this.awareness = a, this.wsconnected = !1, this.wsconnecting = !1, this.bcconnected = !1, this.disableBc = f, this.wsUnsuccessfulReconnects = 0, this.messageHandlers = K.slice(), this._synced = !1, this.ws = null, this.wsLastMessageReceived = 0, this.shouldConnect = r, this._resyncInterval = 0, u > 0 && (this._resyncInterval = setInterval(() => {
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 } = {}) {
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(() => {
100
205
  if (this.ws && this.ws.readyState === WebSocket.OPEN) {
101
- let e = C();
102
- p(e, 0), L(e, n), this.ws.send(y(e));
206
+ let e = l();
207
+ x(e, 0), M(e, i), this.ws.send(v(e));
103
208
  }
104
- }, u)), this._bcSubscriber = (e, t) => {
105
- if (t !== this) {
106
- let t = Y(this, new Uint8Array(e), !1);
107
- D(t) > 1 && I(this.bcChannel, y(t), this);
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);
108
213
  }
109
214
  }, this._updateHandler = (e, t) => {
110
215
  if (t !== this) {
111
- let t = C();
112
- p(t, 0), V(t, e), Q(this, y(t));
216
+ let t = l();
217
+ x(t, 0), I(t, e), Z(this, v(t));
113
218
  }
114
219
  }, this.doc.on("update", this._updateHandler), this._awarenessUpdateHandler = ({ added: e, updated: t, removed: n }, r) => {
115
- let i = e.concat(t).concat(n), o = C();
116
- p(o, 1), w(o, E(a, i)), Q(this, y(o));
220
+ let i = e.concat(t).concat(n), a = l();
221
+ x(a, 1), w(a, U(o, i)), Z(this, v(a));
117
222
  }, this._exitHandler = () => {
118
- v(this.awareness, [n.clientID], "app closed");
119
- }, l && typeof process < "u" && process.on("exit", this._exitHandler), a.on("update", this._awarenessUpdateHandler), this._checkInterval = setInterval(() => {
120
- this.wsconnected && q < i() - this.wsLastMessageReceived && X(this, this.ws, null);
121
- }, q / 10), r && this.connect();
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();
122
227
  }
123
228
  get url() {
124
229
  let e = G(this.params);
@@ -128,54 +233,54 @@ var q = 3e4, J = (e, t) => console.warn(`Permission denied to access ${e.url}.\n
128
233
  return this._synced;
129
234
  }
130
235
  set synced(e) {
131
- this._synced !== e && (this._synced = e, this.emit("synced", [e]), this.emit("sync", [e]));
236
+ this._synced !== e && (this._synced = e, e && (this.wsUnsuccessfulReconnects = 0), this.emit("synced", [e]), this.emit("sync", [e]));
132
237
  }
133
238
  destroy() {
134
- this._resyncInterval !== 0 && clearInterval(this._resyncInterval), clearInterval(this._checkInterval), this.disconnect(), l && 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(), r && typeof process < "u" && process.off("exit", this._exitHandler), this.awareness.off("update", this._awarenessUpdateHandler), this.doc.off("update", this._updateHandler), super.destroy();
135
240
  }
136
241
  connectBc() {
137
242
  if (this.disableBc) return;
138
- this.bcconnected ||= (P(this.bcChannel, this._bcSubscriber), !0);
139
- let e = C();
140
- p(e, 0), L(e, this.doc), I(this.bcChannel, y(e), this);
141
- let t = C();
142
- p(t, 0), R(t, this.doc), I(this.bcChannel, y(t), this);
143
- let n = C();
144
- p(n, 3), I(this.bcChannel, y(n), this);
145
- let r = C();
146
- p(r, 1), w(r, E(this.awareness, [this.doc.clientID])), I(this.bcChannel, y(r), this);
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);
147
252
  }
148
253
  disconnectBc() {
149
- let e = C();
150
- p(e, 1), w(e, E(this.awareness, [this.doc.clientID], /* @__PURE__ */ new Map())), Q(this, y(e)), this.bcconnected &&= (F(this.bcChannel, this._bcSubscriber), !1);
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);
151
256
  }
152
257
  disconnect() {
153
- this.shouldConnect = !1, this.disconnectBc(), this.ws !== null && X(this, this.ws, null);
258
+ this.shouldConnect = !1, this.disconnectBc(), this.ws !== null && Y(this, this.ws, null);
154
259
  }
155
260
  connect() {
156
- this.shouldConnect = !0, !this.wsconnected && this.ws === null && (Z(this), this.connectBc());
261
+ this.shouldConnect = !0, !this.wsconnected && this.ws === null && (X(this), this.connectBc());
157
262
  }
158
263
  };
159
264
  //#endregion
160
265
  //#region src/lib/realtime.ts
161
- function ne(e, t, n, r) {
266
+ function ce(e, t, n, r) {
162
267
  return {
163
268
  serverUrl: `${n === "https:" ? "wss:" : "ws:"}//${r}/api/ws/collab`,
164
269
  roomName: e,
165
270
  params: t ? { token: t } : void 0
166
271
  };
167
272
  }
168
- function re(e, t, n, r, i) {
273
+ function le(e, t, n, r, i) {
169
274
  return i?.resolveRealtimeConnection({
170
275
  documentId: e,
171
276
  accessToken: t
172
- }) ?? ne(e, t, n, r);
277
+ }) ?? ce(e, t, n, r);
173
278
  }
174
279
  //#endregion
175
280
  //#region src/lib/collaboration.ts
176
281
  var $ = /* @__PURE__ */ new Set();
177
- function ie(e, t, n, r) {
178
- let i = new m(), a = re(e, t, window.location.protocol, window.location.host, r), o = new te(a.serverUrl, a.roomName, i, {
282
+ function ue(e, t, n, r) {
283
+ let i = new ee(), a = le(e, t, window.location.protocol, window.location.host, r), o = new Q(a.serverUrl, a.roomName, i, {
179
284
  connect: !0,
180
285
  params: a.params
181
286
  });
@@ -193,15 +298,15 @@ function ie(e, t, n, r) {
193
298
  $.delete(c) && l();
194
299
  }, $.add(c), c;
195
300
  }
196
- function ae(e) {
301
+ function de(e) {
197
302
  if (e) {
198
303
  e.destroy();
199
304
  return;
200
305
  }
201
306
  for (let e of [...$]) e.destroy();
202
307
  }
203
- function oe() {
308
+ function fe() {
204
309
  return [...$].at(-1) ?? null;
205
310
  }
206
311
  //#endregion
207
- export { oe as getActiveSession, ie as startCollaboration, ae as stopCollaboration };
312
+ export { fe as getActiveSession, ue as startCollaboration, de as stopCollaboration };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../CategoryDialog-bQKMpVFD.js";
1
+ import { t as e } from "../CategoryDialog-D_xFSWGh.js";
2
2
  export { e as CategoryDialog };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../CreateSnapshotDialog-CojnWChs.js";
1
+ import { t as e } from "../CreateSnapshotDialog-BHODxZWK.js";
2
2
  export { e as CreateSnapshotDialog };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../DeleteDialog-BIlqRb1u.js";
1
+ import { t as e } from "../DeleteDialog-DaJOO6SB.js";
2
2
  export { e as DeleteDialog };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../HiAiEditor-CMZ-eL8s.js";
1
+ import { t as e } from "../../HiAiEditor-DtUGbQg6.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  //#region src/lib/components/editor/CompactEditor.svelte
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../HiAiEditor-CMZ-eL8s.js";
1
+ import { t as e } from "../../HiAiEditor-DtUGbQg6.js";
2
2
  export { e as DocsmintDocumentEditorHost };
@@ -1,4 +1,5 @@
1
- import { Mi as e, ji as t } from "../../messages-DTRe4U2V.js";
1
+ import { t as e } from "../../doc_title_label-DS9jSIh2.js";
2
+ import { t } from "../../doc_title_placeholder-DBQpM1aH.js";
2
3
  import "svelte/internal/disclose-version";
3
4
  import * as n from "svelte/internal/client";
4
5
  //#region src/lib/components/editor/DocumentTitle.svelte
@@ -22,7 +23,7 @@ function i(i, a) {
22
23
  let p;
23
24
  n.template_effect((e, t) => {
24
25
  p = n.set_class(f, 1, "title-input svelte-vc365t", null, p, { focused: n.get(c) }), n.set_attribute(f, "placeholder", e), n.set_attribute(f, "aria-label", t);
25
- }, [() => e(), () => t()]), n.event("focus", f, d), n.event("blur", f, u), n.delegated("keydown", f, (e) => {
26
+ }, [() => t(), () => e()]), n.event("focus", f, d), n.event("blur", f, u), n.delegated("keydown", f, (e) => {
26
27
  e.key === "Enter" && (e.preventDefault(), e.target.blur()), e.key === "Escape" && (n.set(l, o()), e.target.blur());
27
28
  }), n.bind_value(f, () => n.get(l), (e) => n.set(l, e)), n.append(i, f), n.pop();
28
29
  }