collabmd 0.1.43 → 0.1.45

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 (656) hide show
  1. package/bin/collabmd.js +1 -2
  2. package/dist/client/assets/CodeMirrorEditor-UCMRAMCV-CbSISC1w.js +1 -0
  3. package/dist/client/assets/{abnfDiagram-VRR7QNED-C-CM0mGi.js → abnfDiagram-N423BO3Z-CUMTFJhI.js} +1 -1
  4. package/dist/client/assets/ar-SA-PQUY64WN-xjXgbW6d.js +10 -0
  5. package/dist/client/assets/arc-DgcGdgmL.js +1 -0
  6. package/dist/client/assets/architecture-TIHT7OUA-CsHfPErM.js +1 -0
  7. package/dist/client/assets/architectureDiagram-T3A2C74G-w25m71oV.js +36 -0
  8. package/dist/client/assets/asciiarmor-C_eisQCp.js +1 -0
  9. package/dist/client/assets/{asn1-Dr8qZg38.js → asn1-DCl_8MCW.js} +1 -1
  10. package/dist/client/assets/{asterisk-Bja0s6e1.js → asterisk-BEn0Cwpx.js} +1 -1
  11. package/dist/client/assets/az-AZ-OXJXL76K-4JkO4Pca.js +1 -0
  12. package/dist/client/assets/bg-BG-W2GKIJDF-DnkH_o81.js +5 -0
  13. package/dist/client/assets/{blockDiagram-677ZJIJ3-BLomrZyt.js → blockDiagram-VBNYF7ZC-CipJt9Jl.js} +5 -5
  14. package/dist/client/assets/bn-BD-TGL7M4PJ-CG4JkmtP.js +3 -0
  15. package/dist/client/assets/bn-IN-BKETKYEH-CG4JkmtP.js +3 -0
  16. package/dist/client/assets/browser-utils-CKtI_rZl.js +1 -0
  17. package/dist/client/assets/c4Diagram-5PPSVZJV-B5ktVx6g.js +10 -0
  18. package/dist/client/assets/ca-ES-LD5SCRVV-U6_TVMX9.js +8 -0
  19. package/dist/client/assets/channel-4Jkmq93I.js +1 -0
  20. package/dist/client/assets/{chunk-32BRIVSS-BD6LQmvI.js → chunk-2GRJ4B5K-DhnlUv3F.js} +1 -1
  21. package/dist/client/assets/chunk-3NCLNEKW-Y2Jf_LI-.js +1 -0
  22. package/dist/client/assets/{chunk-HOUHSVGY-DX1huN9x.js → chunk-4I5QYGJK-CCB2YcIH.js} +1 -1
  23. package/dist/client/assets/{chunk-5FCAYU7R-DNtJmW0j.js → chunk-5FCAYU7R-Dh5nylU8.js} +1 -1
  24. package/dist/client/assets/{chunk-5HE753X5-o8-OCfIL.js → chunk-5HE753X5-Bw-yg4kO.js} +1 -1
  25. package/dist/client/assets/{chunk-5JV3BV7I-DKfYBAeY.js → chunk-5JV3BV7I-Cy5pj3QY.js} +1 -1
  26. package/dist/client/assets/{chunk-EX3LRPZG-DNVm3Wj1.js → chunk-5RXB4S5H-BWrwFqMI.js} +3 -3
  27. package/dist/client/assets/{chunk-5TONJI2A-DOX2waSJ.js → chunk-5TONJI2A-DQOY3q1H.js} +1 -1
  28. package/dist/client/assets/{chunk-MOJQB5TN-BEEcDvmL.js → chunk-6Q2QTUOP-CPlWzBtc.js} +1 -1
  29. package/dist/client/assets/chunk-7XWMRXBY-CfMzEq80.js +1 -0
  30. package/dist/client/assets/chunk-7Z6QIM7H-BP9Pdsm9.js +10 -0
  31. package/dist/client/assets/{chunk-BIQX33UG-CuPbkyWp.js → chunk-BIQX33UG-DZEsGuSn.js} +1 -1
  32. package/dist/client/assets/{chunk-CQNSW5MT-BbEh_krl.js → chunk-CQNSW5MT-B8S09OIh.js} +1 -1
  33. package/dist/client/assets/{chunk-CYSBUYHQ-CbOq7Rc1.js → chunk-CYSBUYHQ-C1Rf4art.js} +1 -1
  34. package/dist/client/assets/{chunk-EMLP6XTP-BoneA0Uo.js → chunk-EMLP6XTP-RLD4nXpI.js} +1 -1
  35. package/dist/client/assets/chunk-ERSWUTIN-ME9RVNel.js +41 -0
  36. package/dist/client/assets/{chunk-V7JOEXUC-Bo_5WqHt.js → chunk-GF5L2VYU-DkJpO7ff.js} +3 -3
  37. package/dist/client/assets/chunk-I66GZJ75-CVFiiffQ.js +127 -0
  38. package/dist/client/assets/{chunk-FWX5IMBZ-Ch9_j2qF.js → chunk-J7OUQ5F2-4CEb7pvH.js} +2 -2
  39. package/dist/client/assets/{chunk-JG7HCLWE-Dk4_aECj.js → chunk-JG7HCLWE-BYfiSaVt.js} +1 -1
  40. package/dist/client/assets/{chunk-PUDLZKDR-C-JwZaMh.js → chunk-JQJVKLGR-cx8X_24v.js} +5 -5
  41. package/dist/client/assets/{chunk-VR4S4FIN-uXjSaaA7.js → chunk-KBJHAD2P-CB_3zWUf.js} +1 -1
  42. package/dist/client/assets/{chunk-KEIR6QF5-Dj-OpFgW.js → chunk-KEIR6QF5-BICK3FdT.js} +31 -31
  43. package/dist/client/assets/{chunk-MOZMSUNE-BgA8jCvb.js → chunk-MOZMSUNE-XVucA-n6.js} +1 -1
  44. package/dist/client/assets/chunk-NSK5VX7P-TLH37VXI.js +2 -0
  45. package/dist/client/assets/{chunk-OSBZ3O6U-CX9EQ5t2.js → chunk-OSBZ3O6U-CrKZOUOr.js} +1 -1
  46. package/dist/client/assets/{chunk-QBLGF6JB-C9zGMqvP.js → chunk-QBLGF6JB-CxAyS2mW.js} +1 -1
  47. package/dist/client/assets/{chunk-ZGVPDNZ5-Bmet6b46.js → chunk-QR6OTTB3-CDAA_5Ib.js} +3 -3
  48. package/dist/client/assets/{chunk-R7FJI6CG-BpBhcF6R.js → chunk-R7FJI6CG-Cnn3gE-Y.js} +1 -1
  49. package/dist/client/assets/chunk-RYQCIY6F-D-a0zH8K.js +1 -0
  50. package/dist/client/assets/{chunk-SRAX5OIU-Bpn6XoyU.js → chunk-SRAX5OIU-KFQikY-4.js} +1 -1
  51. package/dist/client/assets/{chunk-U6XO7XAA-CR0BSRFR.js → chunk-U6XO7XAA-BFxjP5U3.js} +1 -1
  52. package/dist/client/assets/chunk-UBXNYLIW-Bhk-PbFK.js +1 -0
  53. package/dist/client/assets/{chunk-C7G6YPKG-C97QUAKv.js → chunk-W5SLKNZC-BdNSCxZ9.js} +1 -1
  54. package/dist/client/assets/{chunk-Q4XR5HBZ-Dyewsidf.js → chunk-WRU74C26-h6_XkD3_.js} +7 -7
  55. package/dist/client/assets/{chunk-XXDRQBXY-Bq6zMMOx.js → chunk-XXDRQBXY-BvKO0v-W.js} +1 -1
  56. package/dist/client/assets/{chunk-Z24UKHUO-BQ6-bK37.js → chunk-YGJVY4SA-CjSe7Bx7.js} +5 -5
  57. package/dist/client/assets/{chunk-YOTPTUD7-CjHV8V6f.js → chunk-YOTPTUD7-D0vRKqYp.js} +1 -1
  58. package/dist/client/assets/{chunk-Z5NKEFVG-DC2Lcs-4.js → chunk-Z5NKEFVG-q6fHH75m.js} +2 -2
  59. package/dist/client/assets/{chunk-ZIRB5QZD-C6fEPe3t.js → chunk-ZIRB5QZD-O39ZBUk3.js} +5 -5
  60. package/dist/client/assets/classDiagram-JCYQIIEL-L7lsyW_w.js +1 -0
  61. package/dist/client/assets/classDiagram-v2-OCEON4UE-L7lsyW_w.js +1 -0
  62. package/dist/client/assets/clike-D_6L3tnO.js +1 -0
  63. package/dist/client/assets/cmake-84nbDH0I.js +1 -0
  64. package/dist/client/assets/coffeescript-De_zI4J0.js +1 -0
  65. package/dist/client/assets/{room-BhC-3iml.js → comment-threads-DDegmaFO.js} +2 -2
  66. package/dist/client/assets/commonlisp-DgAKBe0r.js +1 -0
  67. package/dist/client/assets/cose-bilkent-JH36ORCC-Cm_QF_yb.js +1 -0
  68. package/dist/client/assets/crystal-Bsdphhtm.js +1 -0
  69. package/dist/client/assets/cs-CZ-OFPU5DBV-BmFAIhqX.js +7 -0
  70. package/dist/client/assets/css-CnaYoQib.js +1 -0
  71. package/dist/client/assets/cynefin-VYW2F7L2-Ds2Fw2Y0.js +1 -0
  72. package/dist/client/assets/cynefinDiagram-MW4NZA55-CJxXfJek.js +62 -0
  73. package/dist/client/assets/cytoscape.esm-B-NFISlW.js +321 -0
  74. package/dist/client/assets/{d-BhMjBjQP.js → d-DWkQyNnU.js} +1 -1
  75. package/dist/client/assets/da-DK-FRDJFYWF-H387Jw8B.js +2 -0
  76. package/dist/client/assets/dagre-Buvkdvvj.js +1 -0
  77. package/dist/client/assets/{dagre-VKFMJZFB-CSQjHsP2.js → dagre-VZM6K2ZE-L1xArOGs.js} +2 -2
  78. package/dist/client/assets/de-CH-ZG7H3QK3-C_groygo.js +11 -0
  79. package/dist/client/assets/de-DE-SIJYH4IH-C_groygo.js +11 -0
  80. package/dist/client/assets/defaultLocale-BFoDCU3G.js +1 -0
  81. package/dist/client/assets/{diagram-OA4YK3LP-ruJmRhl8.js → diagram-7IWD3JNH-B2d2Bm15.js} +1 -1
  82. package/dist/client/assets/{diagram-FQU43EPY-D0RPbiE5.js → diagram-B4RE2ZJO-NP4UAwjR.js} +1 -1
  83. package/dist/client/assets/{diagram-NH7WQ7WH-CaTayrXM.js → diagram-LBJQPF4R-D1FJQV8t.js} +1 -1
  84. package/dist/client/assets/{diagram-G47NLZAW-XriksZQN.js → diagram-Q27KOJAE-DylDuwor.js} +13 -13
  85. package/dist/client/assets/diagram-UB23O5K3-DJcKCwv9.js +41 -0
  86. package/dist/client/assets/dist-3bgCp7iY.js +1 -0
  87. package/dist/client/assets/dist-BH87JoHx.js +11 -0
  88. package/dist/client/assets/{dist-BUxzPC-Q.js → dist-BIkPRZO7.js} +3 -3
  89. package/dist/client/assets/{dist-qx0Iv9vM.js → dist-B_J_HbC0.js} +1 -1
  90. package/dist/client/assets/dist-BqCsFpx4.js +1 -0
  91. package/dist/client/assets/dist-C11hHqv_.js +13 -0
  92. package/dist/client/assets/{dist-YCtFk_v0.js → dist-C2JHCt8U.js} +1 -1
  93. package/dist/client/assets/{dist-D3Tmtejd.js → dist-CYZmbokb.js} +2 -2
  94. package/dist/client/assets/dist-CZjTtmTu.js +1 -0
  95. package/dist/client/assets/{dist-C__bPRpd.js → dist-Cig4Ov_X.js} +1 -1
  96. package/dist/client/assets/{dist-DXTgEdvE.js → dist-CnL7Y2sM.js} +1 -1
  97. package/dist/client/assets/dist-CqQEC8gR.js +1 -0
  98. package/dist/client/assets/{dist-CQTo4Y46.js → dist-D2AQ-76g.js} +1 -1
  99. package/dist/client/assets/dist-D4Rzqod1.js +1 -0
  100. package/dist/client/assets/dist-D5sn-mwk.js +9 -0
  101. package/dist/client/assets/dist-D7G-n87v.js +1 -0
  102. package/dist/client/assets/dist-DCzuX1AF.js +1 -0
  103. package/dist/client/assets/dist-DGb27Dl6.js +1 -0
  104. package/dist/client/assets/{dist-CHJCI2AN.js → dist-DK5Gs2wa.js} +1 -1
  105. package/dist/client/assets/dist-DRqOrNgN.js +1 -0
  106. package/dist/client/assets/{dist-B0NFuQC3.js → dist-DetkMS_4.js} +1 -1
  107. package/dist/client/assets/dist-DhLvC8DS.js +2 -0
  108. package/dist/client/assets/{dist-D1W8XQvM.js → dist-Dp6FVkQ1.js} +1 -1
  109. package/dist/client/assets/{dist-D4MWz_rC.js → dist-Drp8uu5J.js} +1 -1
  110. package/dist/client/assets/dist-DtbjNB28.js +1 -0
  111. package/dist/client/assets/dist-DyrYcvpo2.js +1 -0
  112. package/dist/client/assets/dist-GrygD2zE.js +1 -0
  113. package/dist/client/assets/{dist-CzNyYE-S.js → dist-HmEpWUow.js} +1 -1
  114. package/dist/client/assets/{dist-D7-13adP.js → dist-JYEDRrPT.js} +1 -1
  115. package/dist/client/assets/dist-MvcV4190.js +1 -0
  116. package/dist/client/assets/{dist-gGmuzNio.js → dist-RTa81Km7.js} +1 -1
  117. package/dist/client/assets/{dockerfile-BLkNEvjs.js → dockerfile-DJkHQgkl.js} +1 -1
  118. package/dist/client/assets/drawio-editor-ClE8jpoG.js +9 -0
  119. package/dist/client/assets/drawioEditor-CXaTM9Ds.js +2 -0
  120. package/dist/client/assets/{dylan-C6jEEEk-.js → dylan-BCDoL_-p.js} +1 -1
  121. package/dist/client/assets/{ebnfDiagram-CCIWWBDH-exNgBUy6.js → ebnfDiagram-BXEA7PRR-nw0wmA6y.js} +1 -1
  122. package/dist/client/assets/{ecl-BSZaIHnp.js → ecl-BVIeWmwY.js} +1 -1
  123. package/dist/client/assets/editor-session-GTwZS6Df.js +16 -0
  124. package/dist/client/assets/el-GR-IEE2CGI2-BkT6YT54.js +7 -0
  125. package/dist/client/assets/embedded-editor-base-CiNEc8vy.css +1 -0
  126. package/dist/client/assets/en-7NFCYGKX-BrgYZAEe.js +1 -0
  127. package/dist/client/assets/{erDiagram-Q63AITRT-CoYS49kY.js → erDiagram-JOGREHBK-cYUpEKpf.js} +3 -3
  128. package/dist/client/assets/{erlang-DaB2Rkuy.js → erlang-BV0c4Hdn.js} +1 -1
  129. package/dist/client/assets/es-ES-TVVPWKV5-CpPKJXTM.js +12 -0
  130. package/dist/client/assets/eu-ES-CGBMFQDT-Bu3N2493.js +8 -0
  131. package/dist/client/assets/eventmodeling-45OFAUF4-CLEiVx5s.js +1 -0
  132. package/dist/client/assets/excalidraw-editor-BZVM81BO.js +9 -0
  133. package/dist/client/assets/excalidraw-editor-CyGwOhLz.css +1 -0
  134. package/dist/client/assets/excalidraw-scene-C8n9CHsK.js +176 -0
  135. package/dist/client/assets/excalidrawEditor-DxJanCze.js +2 -0
  136. package/dist/client/assets/export-page-CUfws2T-.js +39 -0
  137. package/dist/client/assets/exportDocument-BCuxqXDY.js +2 -0
  138. package/dist/client/assets/exportDocument-DV-OX74E.css +1 -0
  139. package/dist/client/assets/fa-IR-IE6XAPR4-BEvLCORD.js +9 -0
  140. package/dist/client/assets/{factor-D7LVTn2l.js → factor-LKH5gN8L.js} +1 -1
  141. package/dist/client/assets/fi-FI-P7TKNHRM-DI0q8iSX.js +6 -0
  142. package/dist/client/assets/flowDiagram-UKHOOZJN-D0ypP0Ez.js +1 -0
  143. package/dist/client/assets/fr-FR-QI2XZNT7-y8kXd8LA.js +12 -0
  144. package/dist/client/assets/ganttDiagram-PKOTCBZU-BnM97BCT.js +292 -0
  145. package/dist/client/assets/gitGraph-TEB2WS4Q-CZFBqwW-.js +1 -0
  146. package/dist/client/assets/{gitGraphDiagram-IHSO6WYX-x3NetpXU.js → gitGraphDiagram-DS77QQ5N-BQpQhjuN.js} +3 -3
  147. package/dist/client/assets/gl-ES-TLYCNOZZ-Br-Fhff-.js +6 -0
  148. package/dist/client/assets/groovy-CUpZ7dEl.js +1 -0
  149. package/dist/client/assets/he-IL-ZX43XLGP-qKQq6V9X.js +9 -0
  150. package/dist/client/assets/hi-IN-UTYRMTUF-DOUcwrDO.js +3 -0
  151. package/dist/client/assets/hu-HU-AJOSEBW6-FqTyvHlD.js +3 -0
  152. package/dist/client/assets/id-ID-ETLTVG6C-CQqh3CLS.js +8 -0
  153. package/dist/client/assets/image-QXRYHUNP-lfTHE3bb.js +1 -0
  154. package/dist/client/assets/image-blob-reduce.esm-Dj7YBvMv.js +2 -0
  155. package/dist/client/assets/index-C3YnUgMD.css +1 -0
  156. package/dist/client/assets/index-D2wXraJ1.js +2 -0
  157. package/dist/client/assets/info-DKCQHKI2--1InqQeT.js +1 -0
  158. package/dist/client/assets/{infoDiagram-FWYZ7A6U-DyfGrH8z.js → infoDiagram-6WML65LV-DYB8HCDQ.js} +1 -1
  159. package/dist/client/assets/init-C-OQMol4.js +1 -0
  160. package/dist/client/assets/{ishikawaDiagram-FXEZZL3T-BOts527_.js → ishikawaDiagram-WSZJBQD7-Coz_P3t6.js} +2 -2
  161. package/dist/client/assets/it-IT-B4B6TP6L-V-yK3SZz.js +12 -0
  162. package/dist/client/assets/ja-JP-IYKVURR5-BQKBXRpX.js +12 -0
  163. package/dist/client/assets/javascript-BWjar7HY.js +1 -0
  164. package/dist/client/assets/javascript-D-FtdkNC.js +1 -0
  165. package/dist/client/assets/{journeyDiagram-5HDEW3XC-DF37OVrZ.js → journeyDiagram-NVQOT4AX-B6edChce.js} +3 -3
  166. package/dist/client/assets/{react-lCSYwAWP.js → jsx-runtime-BpzPEenQ.js} +1 -1
  167. package/dist/client/assets/kaa-SE2BUIKX-CZ5kfwPg.js +1 -0
  168. package/dist/client/assets/kab-KAB-Y3GLKXLR-Do7GWfuN.js +4 -0
  169. package/dist/client/assets/{kanban-definition-HUTT4EX6-nCjbm1T6.js → kanban-definition-27J2QSJJ-BFd9-cLc.js} +3 -3
  170. package/dist/client/assets/{katex-B7rAX3Vi.js → katex-CXMH3UgJ.js} +3 -3
  171. package/dist/client/assets/kk-KZ-ABWUFVOH-BpqVciQz.js +1 -0
  172. package/dist/client/assets/{km-KH-PBSJLZ2M-Bh1DsarT.js → km-KH-PCWDKPHP-DSmy5shj.js} +3 -3
  173. package/dist/client/assets/ko-KR-7JQDXKGM-N42lep78.js +5 -0
  174. package/dist/client/assets/ku-TR-NAH2Q5B7-K8LLl9fk.js +6 -0
  175. package/dist/client/assets/{line-h44YiLOQ.js → line-B_S_S8kV.js} +1 -1
  176. package/dist/client/assets/linear-n-3HSMUF.js +1 -0
  177. package/dist/client/assets/lt-LT-VQFYRSNQ-BmOd0ALn.js +3 -0
  178. package/dist/client/assets/lv-LV-T62VSYUM-B22WdPhp.js +4 -0
  179. package/dist/client/assets/main-DtiGz7uI.js +795 -0
  180. package/dist/client/assets/{mermaid-parser.core-ygm3cZ_w.js → mermaid-parser.core-CUVdebAV.js} +2 -2
  181. package/dist/client/assets/mermaid.core-DN-lF51U.js +11 -0
  182. package/dist/client/assets/{mindmap-definition-LN4V7U3C-CTpHMYFE.js → mindmap-definition-FAOFIHXS-C9PQ38Al.js} +3 -3
  183. package/dist/client/assets/modulepreload-polyfill-P2Xu9kJm.js +1 -0
  184. package/dist/client/assets/mr-IN-V4FHLCJE-XX069tpm.js +9 -0
  185. package/dist/client/assets/{mumps-CW_TBmxz.js → mumps-BSzj6Xyz.js} +1 -1
  186. package/dist/client/assets/my-MM-E3SQ6E54-cst_-5SB.js +1 -0
  187. package/dist/client/assets/nb-NO-MLNOFN5H-Bu2URWko.js +8 -0
  188. package/dist/client/assets/nl-NL-D5L3ZV4M-BqrV0btt.js +13 -0
  189. package/dist/client/assets/nn-NO-NNHDGPKB-DK-xZaWM.js +4 -0
  190. package/dist/client/assets/{nsis-AQ_alPln.js → nsis-CfSuhXs5.js} +1 -1
  191. package/dist/client/assets/{ntriples-d28e9m0E.js → ntriples-B9h1VB_g.js} +1 -1
  192. package/dist/client/assets/oc-FR-DWCRF55G-BZ5Po5R6.js +4 -0
  193. package/dist/client/assets/{ordinal-hYBb2elL.js → ordinal-BDEzSJ7C.js} +1 -1
  194. package/dist/client/assets/pa-IN-3JSAY44M-BZQSjKrS.js +4 -0
  195. package/dist/client/assets/packet-7NZHBO7P-BGMXB0XL.js +1 -0
  196. package/dist/client/assets/path-fybaL0A-.js +1 -0
  197. package/dist/client/assets/{pegDiagram-2B236MQR-Bq9qITsk.js → pegDiagram-VL7TDLO6-BMZUrSaU.js} +1 -1
  198. package/dist/client/assets/percentages-ETZPVQEE-DFxFqXgH.js +1 -0
  199. package/dist/client/assets/perl-BkSkiI9m.js +1 -0
  200. package/dist/client/assets/{pica-D0pwGKw7.js → pica-xkWDouSg.js} +2 -2
  201. package/dist/client/assets/pie-RZYD4A2V-DgYg3tCt.js +1 -0
  202. package/dist/client/assets/{pieDiagram-ENE6RG2P--ax2FUc8.js → pieDiagram-7S7Q4E2Y-h8kbCL9o.js} +2 -2
  203. package/dist/client/assets/{pl-PL-EERMMCTN-dIzrbxJt.js → pl-PL-ACURYKP3-qcEOSfCk.js} +4 -4
  204. package/dist/client/assets/{powershell-CzG71I4L.js → powershell-BcIto6Sf.js} +1 -1
  205. package/dist/client/assets/preview-diagram-utils-txBCoW8d.js +1 -0
  206. package/dist/client/assets/preview-render-compiler-BSaQO_p3.js +35 -0
  207. package/dist/client/assets/preview-render-compiler-csGM5ZFz.js +1 -0
  208. package/dist/client/assets/preview-render-profile-BZzGSg6K.js +22 -0
  209. package/dist/client/assets/preview-render-worker-B42LWvrD.js +60 -0
  210. package/dist/client/assets/pt-BR-LOX7MLGD-DLueHSyZ.js +10 -0
  211. package/dist/client/assets/pt-PT-CZ2U2RFQ-BJ-GAEm6.js +12 -0
  212. package/dist/client/assets/{pug-Ck0YjsGM.js → pug-Wky5Dnfy.js} +1 -1
  213. package/dist/client/assets/puppet-BZyAS7I4.js +1 -0
  214. package/dist/client/assets/python-B_1Jd8HM.js +1 -0
  215. package/dist/client/assets/{quadrantDiagram-ABIIQ3AL-f0PUv7DH.js → quadrantDiagram-CIZ2JOQS-CkElyfMi.js} +2 -2
  216. package/dist/client/assets/quick-switcher-controller-shW_6vPY.js +12 -0
  217. package/dist/client/assets/r-CxDmU1I4.js +1 -0
  218. package/dist/client/assets/radar-I7S5WNFK-Ag-zp_Rq.js +1 -0
  219. package/dist/client/assets/railroad-3IZDKUUU-aibJDIDV.js +1 -0
  220. package/dist/client/assets/railroad-abnf-AHOZXSZD-BBMEuvIl.js +1 -0
  221. package/dist/client/assets/railroad-ebnf-EBAXGLYW-Be1nseej.js +1 -0
  222. package/dist/client/assets/railroad-peg-LSFZ7HO6-DIvD-Eyb.js +1 -0
  223. package/dist/client/assets/{railroadDiagram-RFXS5EU6-CZD_9g-4.js → railroadDiagram-AXF67PYL-c75gnikD.js} +1 -1
  224. package/dist/client/assets/{requirementDiagram-TGXJPOKE-C4Jwr3TE.js → requirementDiagram-LRYGKXZP-mNxKLuHS.js} +2 -2
  225. package/dist/client/assets/ro-RO-2HECL2X6-CJUvKAf0.js +12 -0
  226. package/dist/client/assets/rolldown-runtime-Dd_uD5pT.js +1 -0
  227. package/dist/client/assets/room-CQLoqtMo.js +1 -0
  228. package/dist/client/assets/{rough.esm-CSKSodPl.js → rough.esm-Dy-Kn_BL.js} +1 -1
  229. package/dist/client/assets/ru-RU-HAYNXO46-BWSlvTrt.js +10 -0
  230. package/dist/client/assets/ruby-BjXV7-Qa.js +1 -0
  231. package/dist/client/assets/runtime-config-DSGmGE9V.js +1 -0
  232. package/dist/client/assets/{sankeyDiagram-HTMAVEWB-B2B2mdB6.js → sankeyDiagram-W5VNT64P-0OhplksI.js} +2 -2
  233. package/dist/client/assets/{scheme-tChLYBuY.js → scheme-D9qYN0V5.js} +1 -1
  234. package/dist/client/assets/sequenceDiagram-SI44F4Z6-BJ_yAocC.js +162 -0
  235. package/dist/client/assets/{shell-Du5Qg9im.js → shell-DwuoZtxw.js} +1 -1
  236. package/dist/client/assets/si-LK-W5KNS4H6-DGGCsn7k.js +1 -0
  237. package/dist/client/assets/{simple-mode-DRpGK0lJ.js → simple-mode-DXiLM1-G.js} +1 -1
  238. package/dist/client/assets/sk-SK-7K2CFGDV-CY4uTYgQ.js +7 -0
  239. package/dist/client/assets/sl-SI-OXV2QZWW-2-weqaBY.js +6 -0
  240. package/dist/client/assets/sql-DuQMFDvy.js +1 -0
  241. package/dist/client/assets/src-oBChb5qS.js +1 -0
  242. package/dist/client/assets/{stateDiagram-2N3HPSRC-B1niwAq-.js → stateDiagram-OKZ733FA-Cc83O86s.js} +1 -1
  243. package/dist/client/assets/stateDiagram-v2-UEYNNEHI-B1-BufUk.js +1 -0
  244. package/dist/client/assets/{stex-sDrdk2BW.js → stex-DNzd62Q_.js} +1 -1
  245. package/dist/client/assets/{stylus-DLLZ8dgm.js → stylus-BOVgKnng.js} +1 -1
  246. package/dist/client/assets/subset-shared.chunk-BXlA-9CO.js +1 -0
  247. package/dist/client/assets/{subset-worker.chunk-Cuw2UvhD.js → subset-worker.chunk-CoaGye2U.js} +1 -1
  248. package/dist/client/assets/sv-SE-JTOBZRGL-9-IUtVkO.js +12 -0
  249. package/dist/client/assets/swimlanes-SLNWSIFB-oVTWEJIj.js +2 -0
  250. package/dist/client/assets/swimlanesDiagram-ULZ7WXOC-C5OTVwEu.js +8 -0
  251. package/dist/client/assets/ta-IN-KFAVKXGT-gHO6Q_DH.js +6 -0
  252. package/dist/client/assets/{textile-CyzeGT9J.js → textile-C4jVoHG1.js} +1 -1
  253. package/dist/client/assets/th-TH-VDMSCPDL-BvJuw6PJ.js +1 -0
  254. package/dist/client/assets/tiki-AK6FwT8q.js +1 -0
  255. package/dist/client/assets/timeline-definition-Z64GVDOM-BWDAGTHz.js +120 -0
  256. package/dist/client/assets/toml-BPTmHmyx.js +1 -0
  257. package/dist/client/assets/tr-TR-CEZ6GX45-CG6UU3Su.js +4 -0
  258. package/dist/client/assets/treeView-QDETBFTQ-uHZ-3Fz8.js +1 -0
  259. package/dist/client/assets/treemap-6X3UGDF4-BnUKyy3l.js +1 -0
  260. package/dist/client/assets/{ttcn-BePYh-hG.js → ttcn-PPSTk1ow.js} +1 -1
  261. package/dist/client/assets/{ttcn-cfg-CY0aot7Q.js → ttcn-cfg-2b4Gb5sE.js} +1 -1
  262. package/dist/client/assets/uk-UA-Q3H3OXQC-CSuIg_DY.js +6 -0
  263. package/dist/client/assets/uz-UZ-NGCSWWPX-mom7rxSP.js +1 -0
  264. package/dist/client/assets/vault-api-client-C6bcGwy-.js +5 -0
  265. package/dist/client/assets/vault-utils-wdQ0RNR9.js +1 -0
  266. package/dist/client/assets/{vennDiagram-L72KCM5P-DPQ9kbN2.js → vennDiagram-T6HMQDX7-LOSsnlMB.js} +3 -3
  267. package/dist/client/assets/{verilog-BKSQ5RMB.js → verilog-7LoJAqYT.js} +1 -1
  268. package/dist/client/assets/{vhdl-CBDDcIJ_.js → vhdl-kS471soi.js} +1 -1
  269. package/dist/client/assets/vi-VN-P3NDEVPS-BB0Fu9ck.js +7 -0
  270. package/dist/client/assets/wardley-OPB4EBWU-Da7TLC2F.js +1 -0
  271. package/dist/client/assets/{wardleyDiagram-EHGQE667-5VW6_Csg.js → wardleyDiagram-T6FBY63Y-BxII3foY.js} +35 -35
  272. package/dist/client/assets/{xquery-Cda5K8Gy.js → xquery-BKJx4mf9.js} +1 -1
  273. package/dist/client/assets/{xychartDiagram-FW5EYKEG-Bj0UwltS.js → xychartDiagram-ELKLHX3M-B-pTEjju.js} +4 -4
  274. package/dist/client/assets/yjs-provider-reset-guard-DE0vINDP.js +4 -0
  275. package/dist/client/assets/z80-Co3PbHdE.js +1 -0
  276. package/dist/client/assets/zh-CN-SS3O57GA-Bj8wsiMe.js +11 -0
  277. package/dist/client/assets/zh-HK-LWJT3VCF-DOTquTCh.js +1 -0
  278. package/dist/client/assets/zh-TW-VJXC72RT-B48PRo-l.js +13 -0
  279. package/dist/client/drawio-editor.html +3 -2
  280. package/dist/client/excalidraw-editor.html +3 -2
  281. package/dist/client/export-document.html +4 -3
  282. package/dist/client/index.html +725 -4
  283. package/package.json +21 -24
  284. package/src/client/app/drawio-editor-entry.js +0 -3
  285. package/src/client/app/drawio-editor.html +1 -0
  286. package/src/client/app/excalidraw-editor-entry.js +0 -3
  287. package/src/client/app/excalidraw-editor.html +1 -0
  288. package/src/client/app/export-document-entry.js +0 -3
  289. package/src/client/app/export-document.html +1 -0
  290. package/src/client/app/index.html +722 -1
  291. package/src/client/app/main-entry.js +0 -7
  292. package/src/client/application/app-shell/chat-feature.js +180 -124
  293. package/src/client/application/app-shell/comments-feature.js +1 -1
  294. package/src/client/application/app-shell/git-feature.js +7 -17
  295. package/src/client/application/app-shell/presence-feature.js +16 -10
  296. package/src/client/application/app-shell/ui-feature-shell.js +46 -15
  297. package/src/client/application/app-shell/ui-feature-sidebar.js +74 -1
  298. package/src/client/application/app-shell/ui-feature-tab-activity.js +2 -2
  299. package/src/client/application/app-shell/ui-feature-toolbar.js +1 -8
  300. package/src/client/application/app-shell/workspace-feature.js +22 -83
  301. package/src/client/application/app-shell-elements.js +7 -1
  302. package/src/client/application/diagram-chrome.js +284 -171
  303. package/src/client/application/diagram-preview-export.js +10 -55
  304. package/src/client/application/diagram-preview-hydrator.js +218 -41
  305. package/src/client/application/markdown-frontmatter.js +0 -2
  306. package/src/client/application/mermaid-preview-hydrator.js +46 -27
  307. package/src/client/application/plantuml-preview-hydrator.js +33 -19
  308. package/src/client/application/preview-diagram-utils.js +96 -58
  309. package/src/client/application/preview-render-compiler.js +6 -3
  310. package/src/client/application/preview-render-profile.js +9 -1
  311. package/src/client/application/preview-renderer.js +32 -166
  312. package/src/client/application/quick-switcher-loader.js +3 -1
  313. package/src/client/application/wiki-link-file-controller.js +2 -2
  314. package/src/client/application/workspace-coordinator.js +76 -54
  315. package/src/client/application/workspace-preview-controller.js +0 -3
  316. package/src/client/application/workspace-route-controller.js +31 -1
  317. package/src/client/bootstrap/collabmd-app-shell.js +286 -169
  318. package/src/client/browser-utils.js +77 -0
  319. package/src/client/domain/excalidraw-api-scene-sync.js +7 -3
  320. package/src/client/domain/excalidraw-collaboration.js +1 -7
  321. package/src/client/domain/excalidraw-diagnostics.js +111 -0
  322. package/src/client/domain/excalidraw-scene.js +2 -3
  323. package/src/client/domain/room.js +40 -2
  324. package/src/client/domain/vault-paths.js +14 -0
  325. package/src/client/domain/vault-utils.js +0 -64
  326. package/src/client/excalidraw-editor.js +250 -44
  327. package/src/client/export/export-pipeline.js +12 -43
  328. package/src/client/infrastructure/api-client-utils.js +23 -0
  329. package/src/client/infrastructure/app-version-monitor.js +0 -1
  330. package/src/client/infrastructure/auth-client.js +4 -10
  331. package/src/client/infrastructure/browser-notification-port.js +30 -21
  332. package/src/client/infrastructure/browser-preferences-port.js +55 -43
  333. package/src/client/infrastructure/editor-view-adapter.js +87 -3
  334. package/src/client/infrastructure/excalidraw-room-client.js +115 -16
  335. package/src/client/infrastructure/git-api-client.js +9 -32
  336. package/src/client/infrastructure/lobby-presence.js +1 -0
  337. package/src/client/infrastructure/vault-api-client.js +31 -56
  338. package/src/client/infrastructure/workspace-sync-client.js +13 -1
  339. package/src/client/presentation/bases-preview-controller.js +6 -22
  340. package/src/client/presentation/comment-overview-controller.js +21 -68
  341. package/src/client/presentation/comment-ui/comment-ui-card.js +22 -16
  342. package/src/client/presentation/comment-ui/comment-ui-layout.js +256 -179
  343. package/src/client/presentation/comment-ui/comment-ui-render.js +33 -45
  344. package/src/client/presentation/comment-ui/comment-ui-shared.js +151 -19
  345. package/src/client/presentation/comment-ui/comment-ui-state.js +3 -0
  346. package/src/client/presentation/comment-ui-controller.js +21 -1
  347. package/src/client/presentation/components/ui/button.js +0 -25
  348. package/src/client/presentation/components/ui/class-names.js +8 -27
  349. package/src/client/presentation/drawio-embed-controller.js +8 -33
  350. package/src/client/presentation/excalidraw-embed-controller.js +50 -43
  351. package/src/client/presentation/file-action-controller.js +40 -25
  352. package/src/client/presentation/file-explorer-controller.js +34 -5
  353. package/src/client/presentation/file-explorer-view.js +53 -22
  354. package/src/client/presentation/file-history-view-controller.js +3 -12
  355. package/src/client/presentation/file-tree-state.js +10 -4
  356. package/src/client/presentation/git-diff-view-controller.js +8 -17
  357. package/src/client/presentation/git-panel-controller.js +3 -12
  358. package/src/client/presentation/quick-switcher-controller.js +245 -77
  359. package/src/client/presentation/quick-switcher-text-search.js +2 -2
  360. package/src/client/presentation/scroll-sync-controller.js +5 -30
  361. package/src/client/presentation/toast-controller.js +3 -0
  362. package/src/client/styles/components/feedback.css +6 -0
  363. package/src/client/styles/features/collaboration-chat.css +49 -53
  364. package/src/client/styles/features/collaboration-presence.css +9 -7
  365. package/src/client/styles/features/comment-card.css +33 -11
  366. package/src/client/styles/features/comment-overlays.css +15 -4
  367. package/src/client/styles/features/comment-overview.css +44 -21
  368. package/src/client/styles/features/comments-drawer.css +2 -100
  369. package/src/client/styles/features/diagram-preview.css +25 -18
  370. package/src/client/styles/features/embedded-preview.css +8 -33
  371. package/src/client/styles/features/quick-switcher.css +8 -0
  372. package/src/client/styles/foundation/tokens.css +1 -0
  373. package/src/client/styles/layout/editor-page.css +40 -0
  374. package/src/client/styles/layout/responsive.css +31 -1
  375. package/src/client/styles/layout/shell.css +25 -6
  376. package/src/client/styles/layout/sidebar.css +47 -15
  377. package/src/client/styles/overrides/codemirror.css +217 -15
  378. package/src/client/styles/style.css +25 -7
  379. package/src/client/styles/surfaces/excalidraw-editor.css +25 -0
  380. package/src/domain/excalidraw-room-codec.js +1 -9
  381. package/src/domain/vault-paths.js +41 -0
  382. package/src/server/application/workspace-reconciliation.js +1 -1
  383. package/src/server/config/env.js +1 -5
  384. package/src/server/create-app-server.js +2 -3
  385. package/src/server/domain/bases/base-expression-runtime.js +1 -46
  386. package/src/server/domain/bases/base-query-service.js +1 -77
  387. package/src/server/domain/collaboration/collaboration-document-store.js +12 -115
  388. package/src/server/domain/collaboration/collaboration-room.js +21 -10
  389. package/src/server/domain/comment-overview.js +10 -3
  390. package/src/server/domain/docx-exporter.js +24 -33
  391. package/src/server/domain/markdown-reference-extractor.js +1 -46
  392. package/src/server/domain/ripgrep-search-service.js +3 -1
  393. package/src/server/domain/workspace-state.js +32 -19
  394. package/src/server/infrastructure/git/diff-service.js +24 -13
  395. package/src/server/infrastructure/git/git-service.js +50 -44
  396. package/src/server/infrastructure/git/history-service.js +93 -85
  397. package/src/server/infrastructure/git/parsers.js +42 -24
  398. package/src/server/infrastructure/git/path-utils.js +1 -1
  399. package/src/server/infrastructure/git/responses.js +0 -118
  400. package/src/server/infrastructure/git/untracked-files.js +1 -1
  401. package/src/server/infrastructure/github/github-app-client.js +22 -15
  402. package/src/server/infrastructure/http/create-git-api-command-handler.js +7 -28
  403. package/src/server/infrastructure/http/create-git-api-query-handler.js +8 -24
  404. package/src/server/infrastructure/http/create-request-handler.js +39 -20
  405. package/src/server/infrastructure/http/create-vault-api-command-handler.js +22 -46
  406. package/src/server/infrastructure/http/create-vault-api-query-handler.js +7 -14
  407. package/src/server/infrastructure/http/http-errors.js +7 -1
  408. package/src/server/infrastructure/http/http-request-helpers.js +23 -0
  409. package/src/server/infrastructure/http/http-response.js +13 -0
  410. package/src/server/infrastructure/persistence/vault-file-store.js +22 -60
  411. package/src/server/infrastructure/workspace/file-system-sync-service.js +3 -3
  412. package/dist/client/assets/CodeMirrorEditor-UCMRAMCV-Fb3TgxXK.js +0 -1
  413. package/dist/client/assets/actions-XO29hEzr.css +0 -1
  414. package/dist/client/assets/ar-SA-YLAB6A27-B9ogj_Jh.js +0 -8
  415. package/dist/client/assets/arc-DqK6O3qL.js +0 -1
  416. package/dist/client/assets/architecture-TIHT7OUA-BWqzHezU.js +0 -1
  417. package/dist/client/assets/architectureDiagram-ZJ3FMSHR-DL35gHTu.js +0 -36
  418. package/dist/client/assets/asciiarmor-qTkVPQu6.js +0 -1
  419. package/dist/client/assets/az-AZ-5JXPK2I2-C6Se5-4R.js +0 -1
  420. package/dist/client/assets/bases-preview-controller-CBHDzzot.js +0 -143
  421. package/dist/client/assets/bg-BG-NIQ2RVNG-xrf33IaO.js +0 -5
  422. package/dist/client/assets/bn-BD-BN65R3DE-YVZWNN-c.js +0 -3
  423. package/dist/client/assets/bn-IN-2YT4KVKB-YVZWNN-c.js +0 -3
  424. package/dist/client/assets/button-2ZnWQkWV.js +0 -1
  425. package/dist/client/assets/c4Diagram-LMCZKHZV-al3Umu1D.js +0 -10
  426. package/dist/client/assets/ca-ES-KSERGC3M-CoMtV4dM.js +0 -8
  427. package/dist/client/assets/channel-XzBGGMWh.js +0 -1
  428. package/dist/client/assets/chunk-52WLFC77-BjzXVnqm.js +0 -10
  429. package/dist/client/assets/chunk-6GK3VUBP-ChzWImvX.js +0 -41
  430. package/dist/client/assets/chunk-CJTDIR4C-DvUbqeGR.js +0 -1
  431. package/dist/client/assets/chunk-ICXQ74PX-DGYhuP6g.js +0 -2
  432. package/dist/client/assets/chunk-OGEWGWER-Xh5bvoYs.js +0 -1
  433. package/dist/client/assets/chunk-RYQCIY6F-Dtr3kkSR.js +0 -1
  434. package/dist/client/assets/chunk-VAUOI2AC-EcvKeBKU.js +0 -1
  435. package/dist/client/assets/chunk-WYO6CB5R-HgTPu1OL.js +0 -127
  436. package/dist/client/assets/classDiagram-OUVF2IWQ-vy5bnN3c.js +0 -1
  437. package/dist/client/assets/classDiagram-v2-EOCWNBFH-vy5bnN3c.js +0 -1
  438. package/dist/client/assets/clike-CVjTFI47.js +0 -1
  439. package/dist/client/assets/cmake-CyVbuzPu.js +0 -1
  440. package/dist/client/assets/coffeescript-B2pKbFk8.js +0 -1
  441. package/dist/client/assets/commonlisp-CcllspGY.js +0 -1
  442. package/dist/client/assets/controls-LYQrRFSF.css +0 -1
  443. package/dist/client/assets/cose-bilkent-JH36ORCC-ClqQrHIF.js +0 -1
  444. package/dist/client/assets/crystal-M5-qzICs.js +0 -1
  445. package/dist/client/assets/cs-CZ-EOMS3IHD-Bo0hDCLX.js +0 -7
  446. package/dist/client/assets/css-CYpP4FRV.js +0 -1
  447. package/dist/client/assets/cynefin-VYW2F7L2-4m18BxUG.js +0 -1
  448. package/dist/client/assets/cynefinDiagram-TSTJHNR4-BNlZcGFF.js +0 -62
  449. package/dist/client/assets/cytoscape.esm-CQFVGiJu.js +0 -321
  450. package/dist/client/assets/da-DK-AVL3DJQK-s5-TpkxN.js +0 -2
  451. package/dist/client/assets/dagre-dpRSp0QF.js +0 -1
  452. package/dist/client/assets/de-CH-M25HCZK4-B0r4rx6B.js +0 -7
  453. package/dist/client/assets/de-DE-BEN6XGXY-B0r4rx6B.js +0 -7
  454. package/dist/client/assets/defaultLocale-C8Fc0cco.js +0 -1
  455. package/dist/client/assets/diagram-WEI45ONY-C18MNAQv.js +0 -41
  456. package/dist/client/assets/diagram-action-icons-aa_KOv9h.js +0 -36
  457. package/dist/client/assets/dist-0x9D2TFD.js +0 -1
  458. package/dist/client/assets/dist-BA633xb4.js +0 -11
  459. package/dist/client/assets/dist-Bx-T__Lj.js +0 -1
  460. package/dist/client/assets/dist-ByYtm-FJ.js +0 -1
  461. package/dist/client/assets/dist-CCrwHjeP.js +0 -1
  462. package/dist/client/assets/dist-CHokDUN_.js +0 -1
  463. package/dist/client/assets/dist-CI1X-CJ2.js +0 -9
  464. package/dist/client/assets/dist-CPim1xdZ.js +0 -1
  465. package/dist/client/assets/dist-CZG184W2.js +0 -1
  466. package/dist/client/assets/dist-Cd1BXkVC.js +0 -1
  467. package/dist/client/assets/dist-CeEU6QwA.js +0 -2
  468. package/dist/client/assets/dist-DG2HpWvu.js +0 -1
  469. package/dist/client/assets/dist-DUj7Xwud.js +0 -13
  470. package/dist/client/assets/dist-DnbVQL2z.js +0 -1
  471. package/dist/client/assets/dist-QiKOmE2-.js +0 -1
  472. package/dist/client/assets/dist-du6QqIs42.js +0 -1
  473. package/dist/client/assets/dist-snK6kYA_.js +0 -1
  474. package/dist/client/assets/drawio-editor-Bpeofg5c.js +0 -9
  475. package/dist/client/assets/drawio-embed-controller-BtzURctK.js +0 -1
  476. package/dist/client/assets/drawioEditor-DOeuNmoO.js +0 -2
  477. package/dist/client/assets/editor-session-MbnP-AVK.js +0 -16
  478. package/dist/client/assets/el-GR-UBGIF2NW-DRoYAN8w.js +0 -7
  479. package/dist/client/assets/embedded-editor-base-C9roKYpW.css +0 -1
  480. package/dist/client/assets/en-PCJ7LJZ2-1SKiH5y3.js +0 -1
  481. package/dist/client/assets/es-ES-SQEM5MNY-D5EtY06q.js +0 -7
  482. package/dist/client/assets/eu-ES-YG5N2JAG-CZ0xKIU4.js +0 -7
  483. package/dist/client/assets/eventmodeling-45OFAUF4-Dp0gpjhg.js +0 -1
  484. package/dist/client/assets/excalidraw-editor-CN3Wpa0D.css +0 -1
  485. package/dist/client/assets/excalidraw-editor-DV1u6p5J.js +0 -9
  486. package/dist/client/assets/excalidraw-embed-controller-BKx05cjZ.js +0 -1
  487. package/dist/client/assets/excalidraw-embed-reconciler-DGiagExg.js +0 -1
  488. package/dist/client/assets/excalidraw-scene-qiXFUZvq.js +0 -176
  489. package/dist/client/assets/excalidrawEditor-C5Z0GfUw.js +0 -2
  490. package/dist/client/assets/export-page-CbIrJ_oK.js +0 -39
  491. package/dist/client/assets/exportDocument-6GQGZvBv.js +0 -2
  492. package/dist/client/assets/exportDocument-C9v-bc7I.css +0 -1
  493. package/dist/client/assets/fa-IR-EVNM7MAJ-olht-LEH.js +0 -9
  494. package/dist/client/assets/fi-FI-MW7ZEZ64-D1PIXbLy.js +0 -6
  495. package/dist/client/assets/file-history-view-controller-CK3oHDCT.js +0 -112
  496. package/dist/client/assets/flowDiagram-23GEKE2U-DgaZtMXJ.js +0 -1
  497. package/dist/client/assets/fr-FR-Q7ZPXBDE-B0DjjyfT.js +0 -12
  498. package/dist/client/assets/ganttDiagram-NO4QXBWP-DaBgmYw5.js +0 -292
  499. package/dist/client/assets/git-diff-view-controller-qorJ_Quo.js +0 -150
  500. package/dist/client/assets/git-panel-controller-CzgJWqbB.js +0 -207
  501. package/dist/client/assets/gitGraph-TEB2WS4Q-Do0SQOtM.js +0 -1
  502. package/dist/client/assets/gl-ES-O5B74VQL-DH5u_ADp.js +0 -6
  503. package/dist/client/assets/groovy-BC3IOsC8.js +0 -1
  504. package/dist/client/assets/he-IL-QGC2WXJA-BSBR1RcG.js +0 -8
  505. package/dist/client/assets/hi-IN-DEZ33NMQ-CorD0_d0.js +0 -3
  506. package/dist/client/assets/hu-HU-2ZPNVYSC-BlqNXhNG.js +0 -3
  507. package/dist/client/assets/id-ID-W65WM5EO-SkLgeJLx.js +0 -8
  508. package/dist/client/assets/image-QEDDDPDB-DtzL4Wgr.js +0 -1
  509. package/dist/client/assets/image-blob-reduce.esm-DLFdRAwc.js +0 -2
  510. package/dist/client/assets/index-BakyykHU.css +0 -1
  511. package/dist/client/assets/index-CvubXIUU.js +0 -2
  512. package/dist/client/assets/info-DKCQHKI2-DIc7uC4I.js +0 -1
  513. package/dist/client/assets/init-D6jRqBbL.js +0 -1
  514. package/dist/client/assets/input-CXk9Zxz9.js +0 -1
  515. package/dist/client/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  516. package/dist/client/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  517. package/dist/client/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  518. package/dist/client/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  519. package/dist/client/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  520. package/dist/client/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  521. package/dist/client/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  522. package/dist/client/assets/it-IT-GAWJM2XW-CDZugsE0.js +0 -12
  523. package/dist/client/assets/ja-JP-FOAUPTH5-DkKXnwj8.js +0 -12
  524. package/dist/client/assets/javascript-B9TABJff.js +0 -1
  525. package/dist/client/assets/javascript-BRzqD9BA.js +0 -1
  526. package/dist/client/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
  527. package/dist/client/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
  528. package/dist/client/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
  529. package/dist/client/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
  530. package/dist/client/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
  531. package/dist/client/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  532. package/dist/client/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
  533. package/dist/client/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
  534. package/dist/client/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
  535. package/dist/client/assets/jsx-runtime-DKdBMi_L.js +0 -1
  536. package/dist/client/assets/kaa-UEDB54S7-C0Sv0drM.js +0 -1
  537. package/dist/client/assets/kab-KAB-CTLMBVE3-QfxUgzL5.js +0 -4
  538. package/dist/client/assets/keyboard-shortcuts-C5LvVwoE.js +0 -1
  539. package/dist/client/assets/kk-KZ-XZK63ADD-CMZObxxP.js +0 -1
  540. package/dist/client/assets/ko-KR-YNTPN6WQ-DPBaHnwT.js +0 -5
  541. package/dist/client/assets/ku-TR-XUD5BUEU-75pMUQoD.js +0 -6
  542. package/dist/client/assets/linear-DhAcoVP9.js +0 -1
  543. package/dist/client/assets/lt-LT-LYCDYH7O-BeKUsKuy.js +0 -3
  544. package/dist/client/assets/lv-LV-7ROPDEEI-CrA6QOtq.js +0 -4
  545. package/dist/client/assets/main-CKWxzJUx.js +0 -807
  546. package/dist/client/assets/mermaid-runtime-2fJoRo49.js +0 -11
  547. package/dist/client/assets/mr-IN-TU6BXRKP-mIvXG0bt.js +0 -9
  548. package/dist/client/assets/my-MM-SJ3RWIEQ-CeEN5n4z.js +0 -1
  549. package/dist/client/assets/navigation-CoTUJ5Pi.css +0 -1
  550. package/dist/client/assets/nb-NO-GONF2AKR-IChp6OiI.js +0 -8
  551. package/dist/client/assets/nl-NL-UZF6UEKB-DfPPXXjo.js +0 -13
  552. package/dist/client/assets/nn-NO-ZVFRXEEO-BtpjNSGp.js +0 -4
  553. package/dist/client/assets/oc-FR-MBF2Z56W-CBl14QBM.js +0 -4
  554. package/dist/client/assets/pa-IN-3JCDVKKL-D95A1XFb.js +0 -4
  555. package/dist/client/assets/packet-7NZHBO7P-D2duWGIK.js +0 -1
  556. package/dist/client/assets/path-BWPyau1x.js +0 -1
  557. package/dist/client/assets/percentages-WBIPKLEE-bhlTAhiB.js +0 -1
  558. package/dist/client/assets/perl-CdEHsPfU.js +0 -1
  559. package/dist/client/assets/pie-RZYD4A2V-CynqTUkZ.js +0 -1
  560. package/dist/client/assets/preview-diagram-utils-BPaXsmlV.js +0 -1
  561. package/dist/client/assets/preview-render-compiler-C8wbmTyE.js +0 -1
  562. package/dist/client/assets/preview-render-compiler-CrQBxqqa.js +0 -35
  563. package/dist/client/assets/preview-render-profile-C89_PyT3.js +0 -23
  564. package/dist/client/assets/preview-render-worker-D84F1vpn.js +0 -59
  565. package/dist/client/assets/pt-BR-W4AF5QMX-DIJs8D4M.js +0 -6
  566. package/dist/client/assets/pt-PT-GNPUWAHX-BopN284Y.js +0 -8
  567. package/dist/client/assets/puppet-B4hC2X4m.js +0 -1
  568. package/dist/client/assets/python-2zlmcyof.js +0 -1
  569. package/dist/client/assets/quick-switcher-controller-CVRUPEKp.js +0 -12
  570. package/dist/client/assets/r-DADKenSm.js +0 -1
  571. package/dist/client/assets/radar-I7S5WNFK-fIKE12aT.js +0 -1
  572. package/dist/client/assets/railroad-3IZDKUUU-Bgx8HJTj.js +0 -1
  573. package/dist/client/assets/railroad-abnf-AHOZXSZD-Nh6k60mH.js +0 -1
  574. package/dist/client/assets/railroad-ebnf-EBAXGLYW-C74h3s_I.js +0 -1
  575. package/dist/client/assets/railroad-peg-LSFZ7HO6-0hT-lN-u.js +0 -1
  576. package/dist/client/assets/ro-RO-DXHP33S5-PGxfl-ng.js +0 -12
  577. package/dist/client/assets/rolldown-runtime-aKtaBQYM.js +0 -1
  578. package/dist/client/assets/ru-RU-TTW2P7NF-Dwnn0sc5.js +0 -10
  579. package/dist/client/assets/ruby-DsYpTuWg.js +0 -1
  580. package/dist/client/assets/runtime-config-CDgeuPWN.js +0 -1
  581. package/dist/client/assets/runtime-config-loader-BUK56BZz.js +0 -1
  582. package/dist/client/assets/runtime-paths-DvpihCEq.js +0 -1
  583. package/dist/client/assets/segmented-control-DhUkW6ro.js +0 -1
  584. package/dist/client/assets/sequenceDiagram-DBY2YBRQ-DonUqDnp.js +0 -162
  585. package/dist/client/assets/si-LK-BE6O7LVF-QO9nybVB.js +0 -1
  586. package/dist/client/assets/sk-SK-OI3KJLWQ-BAKIEIig.js +0 -7
  587. package/dist/client/assets/sl-SI-HF74RBGV-CnS5z7V_.js +0 -6
  588. package/dist/client/assets/sql-DcCJ9jop.js +0 -1
  589. package/dist/client/assets/src-UMNXGZaF.js +0 -1
  590. package/dist/client/assets/stateDiagram-v2-6OUMAXLB-C4YrlXQg.js +0 -1
  591. package/dist/client/assets/states-DYMshUe2.css +0 -1
  592. package/dist/client/assets/subset-shared.chunk-D3olxosN.js +0 -1
  593. package/dist/client/assets/sv-SE-TXR2SQGA-CNgv7xeJ.js +0 -8
  594. package/dist/client/assets/swimlanes-5IMT3BWC-DP1GREXh.js +0 -2
  595. package/dist/client/assets/swimlanesDiagram-G3AALYLV-CN_iOXin.js +0 -8
  596. package/dist/client/assets/ta-IN-Y2DOZGBR-DYzsfax7.js +0 -6
  597. package/dist/client/assets/th-TH-JUAISFQR-BAZHUCM7.js +0 -1
  598. package/dist/client/assets/tiki-CxVlf5KZ.js +0 -1
  599. package/dist/client/assets/timeline-definition-FHXFAJF6-C-QK9sME.js +0 -120
  600. package/dist/client/assets/toml-LvoKBwCs.js +0 -1
  601. package/dist/client/assets/tr-TR-U3HGKQXH-DTYupb_4.js +0 -4
  602. package/dist/client/assets/treeView-QDETBFTQ-CygwzEgj.js +0 -1
  603. package/dist/client/assets/treemap-6X3UGDF4-BbCXbaXr.js +0 -1
  604. package/dist/client/assets/uk-UA-FP2TKAFK-Bcxd6wgd.js +0 -6
  605. package/dist/client/assets/uz-UZ-WY5QKWXJ-B5N6xPud.js +0 -1
  606. package/dist/client/assets/vault-api-client-BPVNCJZC.js +0 -1
  607. package/dist/client/assets/vault-api-client-VAfZ8okg.js +0 -1
  608. package/dist/client/assets/vault-utils-kIbqyWPm.js +0 -1
  609. package/dist/client/assets/vi-VN-DE5I4H6K-BdlcTH5l.js +0 -7
  610. package/dist/client/assets/wardley-OPB4EBWU-BjXxCRf_.js +0 -1
  611. package/dist/client/assets/yjs-provider-reset-guard-DSfwdXS9.js +0 -4
  612. package/dist/client/assets/z80-CL1naaMV.js +0 -1
  613. package/dist/client/assets/zh-CN-VWHOHS7G-b12eD2L4.js +0 -11
  614. package/dist/client/assets/zh-HK-KQF7FW7H-Bvr6xExo.js +0 -1
  615. package/dist/client/assets/zh-TW-6VHVWZKW-B-KCOPyt.js +0 -13
  616. package/server.js +0 -1
  617. package/src/client/application/app-shell/ui-feature.js +0 -13
  618. package/src/client/application/file-open-lifecycle.js +0 -26
  619. package/src/client/application/workspace-chrome-controller.js +0 -109
  620. package/src/client/application/workspace-state-store.js +0 -48
  621. package/src/client/bootstrap/app-shell-feature-surface.js +0 -67
  622. package/src/client/bootstrap/lazy-controller-feature.js +0 -434
  623. package/src/client/domain/excalidraw-document-switch.js +0 -3
  624. package/src/client/domain/vault-api-client.js +0 -1
  625. package/src/client/domain/workspace-request-id.js +0 -7
  626. package/src/client/infrastructure/backlinks-api-client.js +0 -18
  627. package/src/client/infrastructure/browser-navigation-port.js +0 -39
  628. package/src/client/infrastructure/plantuml-api-client.js +0 -21
  629. package/src/client/infrastructure/runtime-config-loader.js +0 -56
  630. package/src/client/mermaid-runtime.js +0 -3
  631. package/src/client/presentation/app-shell-renderer.js +0 -13
  632. package/src/client/presentation/app-shell-template.js +0 -669
  633. package/src/client/presentation/comments-panel.js +0 -578
  634. package/src/client/presentation/components/ui/badge.js +0 -24
  635. package/src/client/presentation/components/ui/ensure-ui-component-styles.js +0 -18
  636. package/src/client/presentation/components/ui/input.js +0 -9
  637. package/src/client/styles/features/collaboration-ui.css +0 -3
  638. package/src/client/styles/features/comments.css +0 -5
  639. package/src/client/styles/features/diff.css +0 -3
  640. package/src/client/styles/features/git.css +0 -3
  641. package/src/client/styles/features/preview-content.css +0 -3
  642. package/src/client/styles/features/preview-sidebars.css +0 -2
  643. package/src/client/styles/overrides/vendor.css +0 -2
  644. package/src/server/domain/collaboration/room-client-state-store.js +0 -29
  645. package/src/server/domain/git-service.js +0 -1
  646. package/src/server/domain/plantuml-renderer.js +0 -1
  647. package/src/server/index.js +0 -74
  648. package/src/server/infrastructure/git/command-runner.js +0 -49
  649. package/src/server/infrastructure/git/concurrency.js +0 -19
  650. package/src/server/infrastructure/git/errors.js +0 -8
  651. package/src/server/infrastructure/http/create-esm-proxy-handler.js +0 -130
  652. package/src/server/infrastructure/http/create-git-api-handler.js +0 -44
  653. package/src/server/infrastructure/http/create-vault-api-handler.js +0 -54
  654. package/src/server/infrastructure/persistence/vault-content-adapter.js +0 -61
  655. package/src/server/infrastructure/workspace/workspace-mutation-coordinator.js +0 -20
  656. /package/dist/client/assets/{keyboard-shortcuts-C3mlS_4N.css → vault-api-client-C3mlS_4N.css} +0 -0
@@ -4,17 +4,33 @@ import { WorkspaceRouteController } from '../application/workspace-route-control
4
4
  import { WikiLinkFileController } from '../application/wiki-link-file-controller.js';
5
5
  import { WorkspacePreviewController } from '../application/workspace-preview-controller.js';
6
6
  import { WorkspaceCoordinator } from '../application/workspace-coordinator.js';
7
- import { WorkspaceStateStore } from '../application/workspace-state-store.js';
8
7
  import { bindAppShellElements } from '../application/app-shell-elements.js';
8
+ import { chatFeature } from '../application/app-shell/chat-feature.js';
9
+ import { commentsFeature } from '../application/app-shell/comments-feature.js';
10
+ import { exportFeature } from '../application/app-shell/export-feature.js';
11
+ import { gitFeature } from '../application/app-shell/git-feature.js';
12
+ import { presenceFeature } from '../application/app-shell/presence-feature.js';
13
+ import { uiFeatureIdentityMethods } from '../application/app-shell/ui-feature-identity.js';
14
+ import { uiFeatureShellMethods } from '../application/app-shell/ui-feature-shell.js';
15
+ import { uiFeatureSidebarMethods } from '../application/app-shell/ui-feature-sidebar.js';
16
+ import { uiFeatureTabActivityMethods } from '../application/app-shell/ui-feature-tab-activity.js';
17
+ import { uiFeatureToolbarMethods } from '../application/app-shell/ui-feature-toolbar.js';
18
+ import { workspaceFeature } from '../application/app-shell/workspace-feature.js';
9
19
  import { LOBBY_CHAT_MESSAGE_MAX_LENGTH, LobbyPresence } from '../infrastructure/lobby-presence.js';
10
- import { BrowserNavigationPort } from '../infrastructure/browser-navigation-port.js';
11
- import { BrowserNotificationPort } from '../infrastructure/browser-notification-port.js';
12
20
  import { BrowserPreferencesPort } from '../infrastructure/browser-preferences-port.js';
21
+ import { BrowserNotificationPort } from '../infrastructure/browser-notification-port.js';
13
22
  import { AppVersionMonitor } from '../infrastructure/app-version-monitor.js';
14
- import { backlinksApiClient } from '../infrastructure/backlinks-api-client.js';
15
23
  import { gitApiClient } from '../infrastructure/git-api-client.js';
16
- import { getRuntimeConfig } from '../infrastructure/runtime-config.js';
17
- import { plantUmlApiClient } from '../infrastructure/plantuml-api-client.js';
24
+ import {
25
+ getHashRoute,
26
+ getRuntimeConfig,
27
+ navigateToFile,
28
+ navigateToGitCommit,
29
+ navigateToGitDiff,
30
+ navigateToGitFileHistory,
31
+ navigateToGitFilePreview,
32
+ navigateToGitHistory,
33
+ } from '../infrastructure/runtime-config.js';
18
34
  import { TabActivityLock } from '../infrastructure/tab-activity-lock.js';
19
35
  import { vaultApiClient } from '../infrastructure/vault-api-client.js';
20
36
  import { WorkspaceSyncClient } from '../infrastructure/workspace-sync-client.js';
@@ -22,6 +38,12 @@ import { BacklinksPanel } from '../presentation/backlinks-panel.js';
22
38
  import { CommentOverviewController } from '../presentation/comment-overview-controller.js';
23
39
  import { CommentUiController } from '../presentation/comment-ui-controller.js';
24
40
  import { FileExplorerController } from '../presentation/file-explorer-controller.js';
41
+ import { FileHistoryViewController } from '../presentation/file-history-view-controller.js';
42
+ import { BasesPreviewController } from '../presentation/bases-preview-controller.js';
43
+ import { DrawioEmbedController } from '../presentation/drawio-embed-controller.js';
44
+ import { ExcalidrawEmbedController } from '../presentation/excalidraw-embed-controller.js';
45
+ import { GitDiffViewController } from '../presentation/git-diff-view-controller.js';
46
+ import { GitPanelController } from '../presentation/git-panel-controller.js';
25
47
  import { LayoutController } from '../presentation/layout-controller.js';
26
48
  import { OutlineController } from '../presentation/outline-controller.js';
27
49
  import { ScrollSyncController } from '../presentation/scroll-sync-controller.js';
@@ -29,37 +51,72 @@ import { ThemeController } from '../presentation/theme-controller.js';
29
51
  import { ToastController } from '../presentation/toast-controller.js';
30
52
  import { VideoEmbedController } from '../presentation/video-embed-controller.js';
31
53
  import { ImageLightboxController } from '../presentation/image-lightbox-controller.js';
32
- import { renderAppShell } from '../presentation/app-shell-renderer.js';
33
- import { createAppShellFeatureSurface } from './app-shell-feature-surface.js';
34
54
 
35
- export class CollabMdAppShell {
36
- initialize(...args) { return this.features.initialize(...args); }
37
- handleHashChange(...args) { return this.features.handleHashChange(...args); }
38
- handleDocumentKeydown(...args) { return this.features.handleDocumentKeydown(...args); }
39
- handleDocumentPointerDown(...args) { return this.features.handleDocumentPointerDown(...args); }
40
- handleFileSelection(...args) { return this.features.handleFileSelection(...args); }
41
- navigatePreviewHeading(...args) { return this.features.navigatePreviewHeading(...args); }
55
+ const APP_SHELL_FEATURES = [
56
+ chatFeature,
57
+ commentsFeature,
58
+ exportFeature,
59
+ gitFeature,
60
+ presenceFeature,
61
+ {
62
+ ...uiFeatureShellMethods,
63
+ ...uiFeatureSidebarMethods,
64
+ ...uiFeatureIdentityMethods,
65
+ ...uiFeatureToolbarMethods,
66
+ ...uiFeatureTabActivityMethods,
67
+ },
68
+ workspaceFeature,
69
+ ];
42
70
 
71
+ export class CollabMdAppShell {
43
72
  constructor() {
44
- renderAppShell(document);
73
+ for (const feature of APP_SHELL_FEATURES) {
74
+ for (const [name, method] of Object.entries(feature)) {
75
+ if (!(name in this)) this[name] = method;
76
+ }
77
+ }
45
78
  this.elements = bindAppShellElements(document);
46
- this.features = createAppShellFeatureSurface(this);
47
79
  this.runtimeConfig = getRuntimeConfig();
48
- this.stateStore = new WorkspaceStateStore();
49
- this.navigation = new BrowserNavigationPort();
80
+ this.activeSidebarTab = 'files';
81
+ this.chatInitialSyncComplete = false;
82
+ this.chatIsOpen = false;
83
+ this.chatMessageIds = new Set();
84
+ this.chatMessages = [];
85
+ this.chatUnreadCount = 0;
86
+ this.connectionHelpShown = false;
87
+ this.connectionState = { status: 'disconnected', unreachable: false };
88
+ this.currentDrawioMode = null;
89
+ this.currentFilePath = null;
90
+ this.fileExplorerReady = false;
91
+ this.followedCursorSignature = '';
92
+ this.followedUserClientId = null;
93
+ this.gitRepoAvailable = false;
94
+ this.globalUsers = [];
95
+ this.isTabActive = false;
96
+ this.presencePanelOpen = false;
97
+ this.sessionLoadToken = 0;
98
+ this.navigation = {
99
+ getHashRoute,
100
+ navigateToFile,
101
+ navigateToGitCommit,
102
+ navigateToGitDiff,
103
+ navigateToGitFileHistory,
104
+ navigateToGitFilePreview,
105
+ navigateToGitHistory,
106
+ };
50
107
  this.preferences = new BrowserPreferencesPort({
51
- chatNotificationsKey: 'collabmd-chat-notifications-enabled',
108
+ fileTreeShowExtensionsKey: 'collabmd-file-tree-show-extensions',
52
109
  lineWrappingKey: 'collabmd-editor-line-wrap',
110
+ recentFilesKey: 'collabmd-recent-files',
53
111
  sidebarVisibleKey: 'collabmd-sidebar-visible',
54
112
  userNameKey: 'collabmd-user-name',
55
113
  });
56
114
  this.notifications = new BrowserNotificationPort();
57
- this.backlinksApiClient = backlinksApiClient;
58
115
  this.gitApiClient = gitApiClient;
59
- this.plantUmlApiClient = plantUmlApiClient;
60
116
  this.vaultApiClient = vaultApiClient;
61
117
  this._session = null;
62
118
  this._hasPromptedForDisplayName = false;
119
+ this._basePreviewRenderTimer = null;
63
120
  this._backlinkRefreshTimer = null;
64
121
  this._pendingPreviewLayoutSync = false;
65
122
  this._previewHydrationPaused = false;
@@ -69,39 +126,36 @@ export class CollabMdAppShell {
69
126
  this._staticPreviewDocument = null;
70
127
  this.pendingGitResetPath = null;
71
128
  this.chatTimeFormatter = new Intl.DateTimeFormat(undefined, { hour: 'numeric', minute: '2-digit' });
72
- this.chatNotificationsEnabled = this.preferences.getChatNotificationsEnabled();
73
- this.chatNotificationPermission = this.notifications.getPermission();
74
129
  this.lobbyChatMessageMaxLength = LOBBY_CHAT_MESSAGE_MAX_LENGTH;
75
130
  this.quickSwitcher = null;
76
131
  this.quickSwitcherModulePromise = null;
77
132
  this.fileExplorerReadyPromise = Promise.resolve();
78
- this._gitControllerPrewarmHandle = null;
79
133
  this.mobileBreakpointQuery = window.matchMedia('(max-width: 768px)');
80
134
  this.pendingWorkspaceRequestIds = new Set();
81
135
  this._fileOpenPerf = null;
82
136
  this.versionMonitor = new AppVersionMonitor({
83
137
  currentBuildId: this.runtimeConfig.build?.id,
84
- onUpdateAvailable: (payload) => this.features.promptForVersionReload(payload),
138
+ onUpdateAvailable: (payload) => this.promptForVersionReload(payload),
85
139
  runtimeConfig: this.runtimeConfig,
86
140
  });
87
141
 
88
142
  this.lobby = new LobbyPresence({
89
- preferredUserName: this.features.getStoredUserName(),
90
- onChange: (users) => this.features.updateGlobalUsers(users),
91
- onChatChange: (messages, meta) => this.features.updateChatMessages(messages, meta),
143
+ preferredUserName: this.getStoredUserName(),
144
+ onChange: (users) => this.updateGlobalUsers(users),
145
+ onChatChange: (messages, meta) => this.updateChatMessages(messages, meta),
92
146
  });
93
147
  this.workspaceSync = new WorkspaceSyncClient({
94
148
  onTreeChange: (tree, metadata = {}) => {
95
149
  const wasReady = this.fileExplorerReady;
96
150
  this.fileExplorer.setTree(tree, metadata);
97
- this.features.handleCommentOverviewWorkspaceTreeChange?.();
151
+ this.handleCommentOverviewWorkspaceTreeChange?.();
98
152
  this.fileExplorerReady = true;
99
153
  if (!wasReady && this.isTabActive) {
100
- void this.features.handleHashChange();
154
+ void this.workspaceRouteController.handleHashChange();
101
155
  }
102
156
  },
103
157
  onWorkspaceEvent: (event) => {
104
- void this.features.handleIncomingWorkspaceEvent(event);
158
+ void this.handleIncomingWorkspaceEvent(event);
105
159
  },
106
160
  });
107
161
 
@@ -110,20 +164,43 @@ export class CollabMdAppShell {
110
164
  this.fileExplorer = new FileExplorerController({
111
165
  mobileBreakpointQuery: this.mobileBreakpointQuery,
112
166
  onFileDelete: () => this.navigation.navigateToFile(null),
113
- onFileSelect: (filePath) => this.features.handleFileSelection(filePath, { closeSidebarOnMobile: true }),
167
+ onFileSelect: (filePath) => this.workspaceRouteController.handleFileSelection(filePath, {
168
+ closeSidebarOnMobile: true,
169
+ }),
170
+ onShowFileExtensionsChange: (showFileExtensions) => {
171
+ this.preferences.setFileTreeShowExtensions(showFileExtensions);
172
+ },
114
173
  pendingWorkspaceRequestIds: this.pendingWorkspaceRequestIds,
174
+ showFileExtensions: this.preferences.getFileTreeShowExtensions(),
115
175
  toastController: this.toastController,
176
+ vaultClient: this.vaultApiClient,
116
177
  });
117
178
  this.commentsOverview = new CommentOverviewController({
118
179
  onOverviewChange: (_overview, { threadCounts }) => {
119
180
  this.fileExplorer.setThreadCounts(threadCounts);
120
181
  },
121
- onThreadSelect: (payload) => this.features.openCommentOverviewThread(payload),
182
+ onThreadSelect: (payload) => this.openCommentOverviewThread(payload),
122
183
  panelElement: this.elements.commentOverviewPanel,
123
184
  toastController: this.toastController,
124
185
  vaultApiClient: this.vaultApiClient,
125
186
  });
126
- this.gitPanel = this.features.createLazyGitPanelController();
187
+ this.gitPanel = new GitPanelController({
188
+ enabled: this.runtimeConfig.gitEnabled !== false,
189
+ gitApiClient: this.gitApiClient,
190
+ onCommitStaged: () => this.openGitCommitDialog(),
191
+ onOpenPullBackup: (filePath) => filePath && this.navigation.navigateToFile(filePath),
192
+ onPullBranch: () => this.pullGitBranch(),
193
+ onPushBranch: () => this.pushGitBranch(),
194
+ onRepoChange: (isGitRepo, status) => this.handleGitRepoChange(isGitRepo, status),
195
+ onResetFile: (filePath, { scope }) => this.openGitResetDialog(filePath, { scope }),
196
+ onSelectCommit: (hash, { path }) => this.handleGitCommitSelection(hash, { closeSidebarOnMobile: true, path }),
197
+ onSelectDiff: (filePath, { scope }) => this.handleGitDiffSelection(filePath, { closeSidebarOnMobile: true, scope }),
198
+ onStageFile: (filePath, { scope }) => this.stageGitFile(filePath, { scope }),
199
+ onUnstageFile: (filePath, { scope }) => this.unstageGitFile(filePath, { scope }),
200
+ onViewAllDiff: () => this.handleGitDiffSelection(null, { closeSidebarOnMobile: true, scope: 'all' }),
201
+ searchInput: this.elements.gitSearchInput,
202
+ toastController: this.toastController,
203
+ });
127
204
  this.outlineController = new OutlineController({
128
205
  mobileBreakpointQuery: this.mobileBreakpointQuery,
129
206
  onNavigateToHeading: ({ sourceLine }) => {
@@ -136,12 +213,24 @@ export class CollabMdAppShell {
136
213
  this.videoEmbed = new VideoEmbedController({
137
214
  previewElement: this.elements.previewContent,
138
215
  });
139
- this.basesPreview = this.features.createLazyBasesPreviewController();
216
+ this.basesPreview = new BasesPreviewController({
217
+ getActiveFilePath: () => this.currentFilePath,
218
+ getSession: () => this.session,
219
+ onOpenFile: (filePath) => filePath && this.navigation.navigateToFile(filePath),
220
+ previewElement: this.elements.previewContent,
221
+ replaceBaseSource: ({ path, source }) => {
222
+ if (path && path === this.currentFilePath) {
223
+ this.session?.replaceText?.(source);
224
+ }
225
+ },
226
+ toastController: this.toastController,
227
+ vaultApiClient: this.vaultApiClient,
228
+ });
140
229
  this.imageLightbox = new ImageLightboxController({
141
230
  previewElement: this.elements.previewContent,
142
231
  });
143
232
  this.previewRenderer = new PreviewRenderer({
144
- getContent: () => this.features.getPreviewSource(),
233
+ getContent: () => this.getPreviewSource(),
145
234
  getFileList: () => this.fileExplorer.flatDocumentFiles,
146
235
  getWikiLinkAutoCreate: () => this.runtimeConfig.wikiLinkAutoCreate !== false,
147
236
  loadFileSource: async (filePath) => {
@@ -155,17 +244,14 @@ export class CollabMdAppShell {
155
244
  renderVersion: stats?.renderVersion ?? 0,
156
245
  });
157
246
  this.videoEmbed.reconcileEmbeds(this.elements.previewContent);
158
- this.videoEmbed.syncLayout();
159
247
  this.basesPreview.reconcileEmbeds(this.elements.previewContent);
160
248
  this.drawioEmbed.reconcileEmbeds(this.elements.previewContent);
161
- this.drawioEmbed.syncLayout();
162
249
  this.excalidrawEmbed.reconcileEmbeds(this.elements.previewContent, { isLargeDocument: stats.isLargeDocument });
163
- this.excalidrawEmbed.syncLayout();
164
250
  this.scrollSyncController.setLargeDocumentMode(stats.isLargeDocument);
165
- this.features.syncPreviewHeadingLinkButtons();
166
- this.features.applyPendingPreviewRouteAnchor({ behavior: 'auto', clearMissing: true });
167
- this.features.schedulePreviewLayoutSync({ delayMs: 0 });
168
- this.features.refreshCommentUiLayout();
251
+ this.syncPreviewHeadingLinkButtons();
252
+ this.applyPendingPreviewRouteAnchor({ behavior: 'auto', clearMissing: true });
253
+ this.schedulePreviewLayoutSync({ delayMs: 0 });
254
+ this.refreshCommentUiLayout();
169
255
  },
170
256
  onBeforeRenderCommit: () => {
171
257
  this.videoEmbed.detachForCommit();
@@ -174,33 +260,30 @@ export class CollabMdAppShell {
174
260
  },
175
261
  onPreviewLayoutChange: () => {
176
262
  this.scrollSyncController.invalidatePreviewBlocks();
177
- this.features.applyPendingPreviewRouteAnchor({ behavior: 'auto', clearMissing: false });
178
- this.features.schedulePreviewLayoutSync({ delayMs: 0 });
179
- this.features.refreshCommentUiLayout();
263
+ this.applyPendingPreviewRouteAnchor({ behavior: 'auto', clearMissing: false });
264
+ this.schedulePreviewLayoutSync({ delayMs: 0 });
265
+ this.refreshCommentUiLayout();
180
266
  },
181
267
  onRenderComplete: () => {
182
- this.videoEmbed.syncLayout();
183
- this.drawioEmbed.syncLayout();
184
- this.excalidrawEmbed.syncLayout();
185
- this.features.applyPendingPreviewRouteAnchor({ allowExpired: true, behavior: 'auto', clearMissing: true });
186
- this.features.schedulePreviewLayoutSync({ delayMs: 0 });
187
- this.features.refreshCommentUiLayout();
268
+ this.applyPendingPreviewRouteAnchor({ allowExpired: true, behavior: 'auto', clearMissing: true });
269
+ this.schedulePreviewLayoutSync({ delayMs: 0 });
270
+ this.refreshCommentUiLayout();
188
271
  },
189
272
  outlineController: this.outlineController,
190
- plantUmlRenderClient: this.plantUmlApiClient,
273
+ plantUmlRenderClient: this.vaultApiClient,
191
274
  previewContainer: this.elements.previewContainer,
192
275
  previewElement: this.elements.previewContent,
193
276
  toastController: this.toastController,
194
277
  });
195
- this.themeController = new ThemeController({ onChange: (theme) => this.features.handleThemeChange(theme) });
278
+ this.themeController = new ThemeController({ onChange: (theme) => this.handleThemeChange(theme) });
196
279
  this.layoutController = new LayoutController({
197
280
  mobileBreakpointQuery: this.mobileBreakpointQuery,
198
281
  onMeasureEditor: () => this.session?.requestMeasure(),
199
- onViewRequest: (view) => this.features.handleLayoutViewRequest(view),
282
+ onViewRequest: (view) => this.handleLayoutViewRequest(view),
200
283
  });
201
284
  this.scrollSyncController = new ScrollSyncController({
202
285
  getEditorLineNumber: () => this.session?.getTopVisibleLineNumber(0.35) ?? 1,
203
- onEditorScrollActivityChange: (isActive) => this.features.handleEditorScrollActivityChange(isActive),
286
+ onEditorScrollActivityChange: (isActive) => this.handleEditorScrollActivityChange(isActive),
204
287
  previewContainer: this.elements.previewContainer,
205
288
  previewElement: this.elements.previewContent,
206
289
  scrollEditorToLine: (lineNumber, viewportRatio) => this.session?.scrollToLine(lineNumber, viewportRatio),
@@ -208,12 +291,36 @@ export class CollabMdAppShell {
208
291
  this.backlinksPanel = new BacklinksPanel({
209
292
  headerPanelElement: this.elements.backlinksHeaderPanel,
210
293
  inlinePanelElement: this.elements.backlinksInlinePanel,
211
- loadBacklinks: (filePath, options = {}) => this.backlinksApiClient.readBacklinks(filePath, options),
212
- onFileSelect: (filePath) => this.features.handleFileSelection(filePath, { closeSidebarOnMobile: true }),
294
+ loadBacklinks: (filePath, options = {}) => this.vaultApiClient.readBacklinks(filePath, options),
295
+ onFileSelect: (filePath) => this.workspaceRouteController.handleFileSelection(filePath, {
296
+ closeSidebarOnMobile: true,
297
+ }),
213
298
  panelElement: this.elements.backlinksPanel,
214
299
  });
215
- this.excalidrawEmbed = this.features.createLazyExcalidrawEmbedController();
216
- this.drawioEmbed = this.features.createLazyDrawioEmbedController();
300
+ this.excalidrawEmbed = new ExcalidrawEmbedController({
301
+ getLocalUser: () => this.lobby.getLocalUser(),
302
+ getTheme: () => this.themeController.getTheme(),
303
+ onOpenFile: (filePath) => filePath && this.navigation.navigateToFile(filePath),
304
+ onToggleQuickSwitcher: () => {
305
+ void this.toggleQuickSwitcher();
306
+ },
307
+ previewContainer: this.elements.previewContainer,
308
+ previewElement: this.elements.previewContent,
309
+ toastController: this.toastController,
310
+ });
311
+ this.drawioEmbed = new DrawioEmbedController({
312
+ getLocalUser: () => this.lobby.getLocalUser(),
313
+ getTheme: () => this.themeController.getTheme(),
314
+ onOpenFile: (filePath) => filePath && this.navigation.navigateToFile(filePath),
315
+ onOpenTextFile: (filePath) => filePath && this.navigation.navigateToFile(filePath, { drawioMode: 'text' }),
316
+ onToggleQuickSwitcher: () => {
317
+ void this.toggleQuickSwitcher();
318
+ },
319
+ previewContainer: this.elements.previewContainer,
320
+ previewElement: this.elements.previewContent,
321
+ toastController: this.toastController,
322
+ vaultApiClient: this.vaultApiClient,
323
+ });
217
324
  this.commentUi = new CommentUiController({
218
325
  commentSelectionButton: this.elements.commentSelectionButton,
219
326
  commentsDrawer: this.elements.commentsDrawer,
@@ -224,14 +331,25 @@ export class CollabMdAppShell {
224
331
  onWillOpenDrawer: () => this.outlineController.close(),
225
332
  previewContainer: this.elements.previewContainer,
226
333
  previewElement: this.elements.previewContent,
227
- onCreateThread: ({ anchor, body }) => this.features.createCommentThread({ anchor, body }),
334
+ onCreateThread: ({ anchor, body }) => this.createCommentThread({ anchor, body }),
228
335
  onNavigateToLine: (lineNumber) => {
336
+ const session = this.session;
229
337
  this.scrollSyncController.suspendSync(250);
230
- this.session?.scrollToLine(lineNumber, 0.2);
338
+ const didScroll = session?.scrollToLine(lineNumber, 0.2);
339
+ if (didScroll) {
340
+ requestAnimationFrame(() => {
341
+ if (this.session !== session) {
342
+ return;
343
+ }
344
+
345
+ this.scrollSyncController.suspendSync(0);
346
+ this.scrollSyncController.syncPreviewToEditor();
347
+ });
348
+ }
231
349
  },
232
- onReplyToThread: (threadId, body) => this.features.replyToCommentThread(threadId, body),
350
+ onReplyToThread: (threadId, body) => this.replyToCommentThread(threadId, body),
233
351
  onToggleReaction: (threadId, messageId, emoji) => this.session?.toggleCommentReaction(threadId, messageId, emoji),
234
- onResolveThread: (threadId) => this.features.resolveCommentThread(threadId),
352
+ onResolveThread: (threadId) => this.resolveCommentThread(threadId),
235
353
  });
236
354
  this.workspacePreviewController = new WorkspacePreviewController({
237
355
  backlinksPanel: this.backlinksPanel,
@@ -239,18 +357,18 @@ export class CollabMdAppShell {
239
357
  drawioEmbed: this.drawioEmbed,
240
358
  elements: this.elements,
241
359
  excalidrawEmbed: this.excalidrawEmbed,
242
- getDisplayName: (filePath) => this.features.getDisplayName(filePath),
360
+ getDisplayName: (filePath) => this.getDisplayName(filePath),
243
361
  getSession: () => this.session,
244
- isBaseFile: (filePath) => this.features.isBaseFile(filePath),
245
- isDrawioFile: (filePath) => this.features.isDrawioFile(filePath),
246
- isExcalidrawFile: (filePath) => this.features.isExcalidrawFile(filePath),
247
- isImageFile: (filePath) => this.features.isImageFile(filePath),
248
- isMermaidFile: (filePath) => this.features.isMermaidFile(filePath),
249
- isPlantUmlFile: (filePath) => this.features.isPlantUmlFile(filePath),
362
+ isBaseFile: (filePath) => this.isBaseFile(filePath),
363
+ isDrawioFile: (filePath) => this.isDrawioFile(filePath),
364
+ isExcalidrawFile: (filePath) => this.isExcalidrawFile(filePath),
365
+ isImageFile: (filePath) => this.isImageFile(filePath),
366
+ isMermaidFile: (filePath) => this.isMermaidFile(filePath),
367
+ isPlantUmlFile: (filePath) => this.isPlantUmlFile(filePath),
250
368
  layoutController: this.layoutController,
251
369
  outlineController: this.outlineController,
252
370
  previewRenderer: this.previewRenderer,
253
- schedulePreviewLayoutSync: (options) => this.features.schedulePreviewLayoutSync(options),
371
+ schedulePreviewLayoutSync: (options) => this.schedulePreviewLayoutSync(options),
254
372
  scrollSyncController: this.scrollSyncController,
255
373
  videoEmbed: this.videoEmbed,
256
374
  });
@@ -262,12 +380,45 @@ export class CollabMdAppShell {
262
380
  vaultApiClient: this.vaultApiClient,
263
381
  wikiLinkAutoCreate: this.runtimeConfig.wikiLinkAutoCreate !== false,
264
382
  });
265
- this.gitDiffView = this.features.createLazyGitDiffViewController();
266
- this.fileHistoryView = this.features.createLazyFileHistoryViewController();
383
+ this.gitDiffView = new GitDiffViewController({
384
+ gitApiClient: this.gitApiClient,
385
+ onBackToHistory: ({ historyFilePath } = {}) => {
386
+ if (historyFilePath) {
387
+ this.navigation.navigateToGitFileHistory({ filePath: historyFilePath });
388
+ return;
389
+ }
390
+ this.navigation.navigateToGitHistory();
391
+ },
392
+ onCommitStaged: () => this.openGitCommitDialog(),
393
+ onOpenFile: (filePath) => filePath && this.navigation.navigateToFile(filePath),
394
+ onStageFile: (filePath, { scope }) => this.stageGitFile(filePath, { scope }),
395
+ onUnstageFile: (filePath, { scope }) => this.unstageGitFile(filePath, { scope }),
396
+ toastController: this.toastController,
397
+ });
398
+ this.fileHistoryView = new FileHistoryViewController({
399
+ diffRenderer: this.gitDiffView,
400
+ gitApiClient: this.gitApiClient,
401
+ onOpenCommitDiff: (hash, { historyFilePath, path }) => this.handleGitCommitSelection(hash, {
402
+ closeSidebarOnMobile: false,
403
+ historyFilePath,
404
+ path,
405
+ }),
406
+ onOpenFile: (filePath) => filePath && this.navigation.navigateToFile(filePath),
407
+ onOpenPreview: ({ hash, path, currentFilePath }) => this.handleGitFilePreviewSelection({
408
+ hash,
409
+ path,
410
+ currentFilePath,
411
+ }),
412
+ onOpenWorkspaceDiff: (filePath) => this.handleGitDiffSelection(filePath, {
413
+ closeSidebarOnMobile: false,
414
+ scope: 'all',
415
+ }),
416
+ toastController: this.toastController,
417
+ });
267
418
  this.tabActivityLock = new TabActivityLock({
268
- onActivated: ({ takeover }) => this.features.handleTabActivated({ takeover }),
269
- onBlocked: () => this.features.handleTabBlocked({ reason: 'active-elsewhere' }),
270
- onStolen: () => this.features.handleTabBlocked({ reason: 'taken-over' }),
419
+ onActivated: ({ takeover }) => this.handleTabActivated({ takeover }),
420
+ onBlocked: () => this.handleTabBlocked({ reason: 'active-elsewhere' }),
421
+ onStolen: () => this.handleTabBlocked({ reason: 'taken-over' }),
271
422
  });
272
423
  this.workspaceCoordinator = new WorkspaceCoordinator({
273
424
  attachEditorScroller: (scroller) => this.scrollSyncController.attachEditorScroller(scroller),
@@ -294,18 +445,18 @@ export class CollabMdAppShell {
294
445
  onSelectionChange: options.onSelectionChange,
295
446
  preferredUserName: options.preferredUserName,
296
447
  }),
297
- getDisplayName: (filePath) => this.features.getDisplayName(filePath),
448
+ getDisplayName: (filePath) => this.getDisplayName(filePath),
298
449
  getFileList: () => this.fileExplorer.flatDocumentFiles,
299
- getLineWrappingEnabled: () => this.features.getStoredLineWrapping(),
450
+ getLineWrappingEnabled: () => this.getStoredLineWrapping(),
300
451
  getLocalUser: () => this.lobby.getLocalUser(),
301
- getStoredUserName: () => this.features.getStoredUserName(),
452
+ getStoredUserName: () => this.getStoredUserName(),
302
453
  getTheme: () => this.themeController.getTheme(),
303
- isBaseFile: (filePath) => this.features.isBaseFile(filePath),
304
- isDrawioFile: (filePath) => this.features.isDrawioFile(filePath),
305
- isExcalidrawFile: (filePath) => this.features.isExcalidrawFile(filePath),
306
- isImageFile: (filePath) => this.features.isImageFile(filePath),
307
- isMermaidFile: (filePath) => this.features.isMermaidFile(filePath),
308
- isPlantUmlFile: (filePath) => this.features.isPlantUmlFile(filePath),
454
+ isBaseFile: (filePath) => this.isBaseFile(filePath),
455
+ isDrawioFile: (filePath) => this.isDrawioFile(filePath),
456
+ isExcalidrawFile: (filePath) => this.isExcalidrawFile(filePath),
457
+ isImageFile: (filePath) => this.isImageFile(filePath),
458
+ isMermaidFile: (filePath) => this.isMermaidFile(filePath),
459
+ isPlantUmlFile: (filePath) => this.isPlantUmlFile(filePath),
309
460
  isTabActive: () => this.isTabActive,
310
461
  loadBootstrapContent: async (filePath) => {
311
462
  const response = await this.vaultApiClient.readFile(filePath);
@@ -314,20 +465,22 @@ export class CollabMdAppShell {
314
465
  loadEditorSessionClass: () => this.loadEditorSessionClass(),
315
466
  loadBacklinks: (filePath) => this.backlinksPanel.load(filePath),
316
467
  onBeforeFileOpen: () => {
468
+ clearTimeout(this._basePreviewRenderTimer);
469
+ this._basePreviewRenderTimer = null;
317
470
  this.session = null;
318
471
  this.commentUi.attachSession(null);
319
472
  this.layoutController.reset();
320
- this.features.resetPreviewMode();
473
+ this.workspacePreviewController.resetPreviewMode();
321
474
  this.elements.emptyState?.classList.add('hidden');
322
475
  this.elements.editorPage?.classList.remove('hidden');
323
476
  this.elements.diffPage?.classList.add('hidden');
324
- this.features.clearInitialFileBootstrap();
477
+ this.clearInitialFileBootstrap();
325
478
  },
326
- onConnectionChange: (state) => this.features.handleConnectionChange(state),
479
+ onConnectionChange: (state) => this.handleConnectionChange(state),
327
480
  onContentChange: ({ isBase, isMermaid, isPlantUml }) => {
328
- this.features.handleCommentEditorContentChange();
481
+ this.handleCommentEditorContentChange();
329
482
  if (isBase) {
330
- void this.features.renderBaseFilePreview(this.currentFilePath, {
483
+ this.scheduleBaseFilePreview(this.currentFilePath, {
331
484
  source: this.session?.getText?.() ?? '',
332
485
  });
333
486
  return;
@@ -335,59 +488,62 @@ export class CollabMdAppShell {
335
488
 
336
489
  this.previewRenderer.queueRender();
337
490
  if (!isMermaid && !isPlantUml) {
338
- this.features.scheduleBacklinkRefresh();
491
+ this.scheduleBacklinkRefresh();
339
492
  }
340
493
  },
341
- onCommentsChange: (threads) => this.features.handleCommentThreadsChange(threads),
342
- onFileAwarenessChange: (users) => this.features.updateFileAwareness(users),
494
+ onCommentsChange: (threads) => this.handleCommentThreadsChange(threads),
495
+ onFileAwarenessChange: (users) => this.updateFileAwareness(users),
343
496
  onFileOpenError: () => {
344
- this.features.showEditorLoadError();
345
- this.features.syncWrapToggle();
497
+ this.showEditorLoadError();
498
+ this.syncWrapToggle();
346
499
  this.toastController.show('Failed to initialize editor');
347
500
  },
348
501
  onFileOpenReady: () => {
349
- this.features.hideEditorLoading();
502
+ this.hideEditorLoading();
503
+ if (this.currentFilePath) {
504
+ this.preferences.recordRecentFile(this.currentFilePath);
505
+ }
350
506
  },
351
- onSelectionChange: (anchor) => this.features.handleCommentSelectionChange(anchor),
352
- onImagePaste: (file) => this.features.handleEditorImageInsert(file),
507
+ onSelectionChange: (anchor) => this.handleCommentSelectionChange(anchor),
508
+ onImagePaste: (file) => this.handleEditorImageInsert(file),
353
509
  onFileOpenMetric: (name, payload) => this.recordFileOpenMetric(name, payload),
354
510
  onSessionAssigned: (session) => {
355
511
  this.session = session;
356
512
  this.commentUi.attachSession(session);
357
513
  },
358
- onRenderDrawioPreview: (filePath) => this.features.renderDrawioFilePreview(filePath),
359
- onRenderBasePreview: (filePath) => this.features.renderBaseFilePreview(filePath),
360
- onRenderExcalidrawPreview: (filePath) => this.features.renderExcalidrawFilePreview(filePath),
361
- onRenderImagePreview: (filePath) => this.features.renderImageFilePreview(filePath),
362
- onSyncWrapToggle: () => this.features.syncWrapToggle(),
514
+ onRenderDrawioPreview: (filePath) => this.workspacePreviewController.renderDrawioFilePreview(filePath),
515
+ onRenderBasePreview: (filePath) => this.renderBaseFilePreview(filePath),
516
+ onRenderExcalidrawPreview: (filePath) => this.workspacePreviewController.renderExcalidrawFilePreview(filePath),
517
+ onRenderImagePreview: (filePath) => this.workspacePreviewController.renderImageFilePreview(filePath),
518
+ onSyncWrapToggle: () => this.syncWrapToggle(),
363
519
  onUpdateActiveFile: (filePath) => this.fileExplorer.setActiveFile(filePath),
364
520
  onUpdateCurrentFile: (filePath) => {
365
521
  this.currentFilePath = filePath;
366
522
  },
367
523
  onUpdateLobbyCurrentFile: (filePath) => this.lobby.setCurrentFile(filePath),
368
524
  onUpdateVisibleChrome: (filePath, { displayName }) => {
369
- this.features.syncFileChrome(filePath, {
525
+ this.workspacePreviewController.syncFileChrome(filePath, {
370
526
  drawioMode: this.currentDrawioMode,
371
- preferPreviewForBase: this.features.isBaseFile(filePath),
527
+ preferPreviewForBase: this.isBaseFile(filePath),
372
528
  });
373
- this.features.syncCommentChrome(filePath);
374
- this.features.syncFileHistoryButton({ filePath, mode: 'editor' });
529
+ this.syncCommentChrome(filePath);
530
+ this.syncFileHistoryButton({ filePath, mode: 'editor' });
375
531
  if (this.elements.activeFileName) {
376
532
  this.elements.activeFileName.textContent = displayName;
377
533
  }
378
534
  },
379
- onViewModeReset: () => this.features.resetPreviewMode(),
380
- renderPresence: () => this.features.renderPresence(),
535
+ onViewModeReset: () => this.workspacePreviewController.resetPreviewMode(),
536
+ renderPresence: () => this.renderPresence(),
381
537
  scrollContainerForSession: (session) => session.getScrollContainer(),
382
538
  shouldUseDrawioPreview: () => Boolean(this.runtimeConfig.drawioBaseUrl),
383
- showEditorLoading: () => this.features.showEditorLoading(),
384
- stateStore: this.stateStore,
539
+ showEditorLoading: () => this.showEditorLoading(),
540
+ stateStore: this,
385
541
  });
386
542
  this.workspaceRouteController = new WorkspaceRouteController({
387
543
  backlinksPanel: this.backlinksPanel,
388
- clearInitialFileBootstrap: () => this.features.clearInitialFileBootstrap(),
389
- clearStaticPreviewDocument: () => this.features.clearStaticPreviewDocument(),
390
- closeSidebarOnMobile: () => this.features.closeSidebarOnMobile(),
544
+ clearInitialFileBootstrap: () => this.clearInitialFileBootstrap(),
545
+ clearStaticPreviewDocument: () => this.clearStaticPreviewDocument(),
546
+ closeSidebarOnMobile: () => this.closeSidebarOnMobile(),
391
547
  drawioEmbed: this.drawioEmbed,
392
548
  elements: this.elements,
393
549
  excalidrawEmbed: this.excalidrawEmbed,
@@ -402,17 +558,17 @@ export class CollabMdAppShell {
402
558
  lobby: this.lobby,
403
559
  navigation: this.navigation,
404
560
  previewRenderer: this.previewRenderer,
405
- requestPreviewRouteAnchor: (anchorId, filePath) => this.features.requestPreviewRouteAnchor(anchorId, filePath),
406
- renderAvatars: () => this.features.renderAvatars(),
407
- renderPresence: () => this.features.renderPresence(),
408
- resetPreviewMode: () => this.features.resetPreviewMode(),
561
+ requestPreviewRouteAnchor: (anchorId, filePath) => this.requestPreviewRouteAnchor(anchorId, filePath),
562
+ renderAvatars: () => this.renderAvatars(),
563
+ renderPresence: () => this.renderPresence(),
564
+ resetPreviewMode: () => this.workspacePreviewController.resetPreviewMode(),
409
565
  scrollSyncController: this.scrollSyncController,
410
566
  setCurrentFilePath: (value) => {
411
567
  this.currentFilePath = value;
412
568
  if (!value) {
413
569
  this.commentUi.setCurrentFile(null, { supported: false });
414
- this.features.handleCommentThreadsChange([]);
415
- this.features.handleCommentSelectionChange(null);
570
+ this.handleCommentThreadsChange([]);
571
+ this.handleCommentSelectionChange(null);
416
572
  }
417
573
  },
418
574
  setSession: (value) => {
@@ -422,61 +578,22 @@ export class CollabMdAppShell {
422
578
  setSessionLoadToken: (value) => {
423
579
  this.sessionLoadToken = value;
424
580
  },
425
- setSidebarTab: (value) => this.features.setSidebarTab(value),
426
- setSidebarVisibility: (showSidebar) => this.features.setSidebarVisibility(showSidebar),
427
- showGitCommit: (route) => this.features.showGitCommit(route),
428
- showGitDiff: (route) => this.features.showGitDiff(route),
429
- showGitFileHistory: (route) => this.features.showGitFileHistory(route),
430
- showGitFilePreview: (route) => this.features.showGitFilePreview(route),
431
- showGitHistory: () => this.features.showGitHistory(),
432
- syncMainChrome: (payload) => this.features.syncMainChrome(payload),
581
+ setSidebarTab: (value) => this.setSidebarTab(value),
582
+ setSidebarVisibility: (showSidebar) => this.setSidebarVisibility(showSidebar),
583
+ showGitCommit: (route) => this.showGitCommit(route),
584
+ showGitDiff: (route) => this.showGitDiff(route),
585
+ showGitFileHistory: (route) => this.showGitFileHistory(route),
586
+ showGitFilePreview: (route) => this.showGitFilePreview(route),
587
+ showGitHistory: () => this.showGitHistory(),
588
+ syncMainChrome: (payload) => this.syncMainChrome(payload),
433
589
  videoEmbed: this.videoEmbed,
434
590
  workspaceCoordinator: this.workspaceCoordinator,
435
591
  });
436
592
 
437
- if (this.chatNotificationPermission !== 'granted') {
438
- this.chatNotificationsEnabled = false;
439
- }
440
593
  }
441
594
 
442
595
  get session() { return this._session; }
443
596
  set session(value) { this._session = value; }
444
- get currentFilePath() { return this.stateStore.get('currentFilePath'); }
445
- set currentFilePath(value) { this.stateStore.set('currentFilePath', value); }
446
- get currentDrawioMode() { return this.stateStore.get('currentDrawioMode'); }
447
- set currentDrawioMode(value) { this.stateStore.set('currentDrawioMode', value ?? null); }
448
- get globalUsers() { return this.stateStore.get('globalUsers'); }
449
- set globalUsers(value) { this.stateStore.set('globalUsers', value); }
450
- get connectionState() { return this.stateStore.get('connectionState'); }
451
- set connectionState(value) { this.stateStore.set('connectionState', value); }
452
- get sessionLoadToken() { return this.stateStore.get('sessionLoadToken'); }
453
- set sessionLoadToken(value) { this.stateStore.set('sessionLoadToken', value); }
454
- get connectionHelpShown() { return this.stateStore.get('connectionHelpShown'); }
455
- set connectionHelpShown(value) { this.stateStore.set('connectionHelpShown', value); }
456
- get chatMessages() { return this.stateStore.get('chatMessages'); }
457
- set chatMessages(value) { this.stateStore.set('chatMessages', value); }
458
- get chatMessageIds() { return this.stateStore.get('chatMessageIds'); }
459
- set chatMessageIds(value) { this.stateStore.set('chatMessageIds', value); }
460
- get chatUnreadCount() { return this.stateStore.get('chatUnreadCount'); }
461
- set chatUnreadCount(value) { this.stateStore.set('chatUnreadCount', value); }
462
- get chatIsOpen() { return this.stateStore.get('chatIsOpen'); }
463
- set chatIsOpen(value) { this.stateStore.set('chatIsOpen', value); }
464
- get chatInitialSyncComplete() { return this.stateStore.get('chatInitialSyncComplete'); }
465
- set chatInitialSyncComplete(value) { this.stateStore.set('chatInitialSyncComplete', value); }
466
- get isTabActive() { return this.stateStore.get('isTabActive'); }
467
- set isTabActive(value) { this.stateStore.set('isTabActive', value); }
468
- get fileExplorerReady() { return this.stateStore.get('fileExplorerReady'); }
469
- set fileExplorerReady(value) { this.stateStore.set('fileExplorerReady', value); }
470
- get gitRepoAvailable() { return this.stateStore.get('gitRepoAvailable'); }
471
- set gitRepoAvailable(value) { this.stateStore.set('gitRepoAvailable', value); }
472
- get activeSidebarTab() { return this.stateStore.get('activeSidebarTab'); }
473
- set activeSidebarTab(value) { this.stateStore.set('activeSidebarTab', value); }
474
- get presencePanelOpen() { return this.stateStore.get('presencePanelOpen'); }
475
- set presencePanelOpen(value) { this.stateStore.set('presencePanelOpen', value); }
476
- get followedUserClientId() { return this.stateStore.get('followedUserClientId'); }
477
- set followedUserClientId(value) { this.stateStore.set('followedUserClientId', value); }
478
- get followedCursorSignature() { return this.stateStore.get('followedCursorSignature'); }
479
- set followedCursorSignature(value) { this.stateStore.set('followedCursorSignature', value); }
480
597
 
481
598
  publishFileOpenPerf() {
482
599
  if (typeof window === 'undefined') {