collabmd 0.1.30 → 0.1.32

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 (427) hide show
  1. package/dist/client/assets/{CodeMirrorEditor-UCMRAMCV-tj0_ycIx.js → CodeMirrorEditor-UCMRAMCV-Bg0dawOb.js} +1 -1
  2. package/dist/client/assets/{_basePickBy-B6kIfhzj.js → _basePickBy-Dv0sK1l7.js} +1 -1
  3. package/dist/client/assets/{_baseUniq-Bbn0_sHS.js → _baseUniq-DKYX57ji.js} +1 -1
  4. package/dist/client/assets/{ar-SA-NXDWD63E-BWO5oYxe.js → ar-SA-NXDWD63E-WivLHHDW.js} +1 -1
  5. package/dist/client/assets/{arc-BIqum3oD.js → arc-DrfYGhWk.js} +1 -1
  6. package/dist/client/assets/architecture-PBZL5I3N-DiglIZi9.js +1 -0
  7. package/dist/client/assets/{architectureDiagram-2XIMDMQ5-BPG5b65m.js → architectureDiagram-2XIMDMQ5-kYbOThe4.js} +1 -1
  8. package/dist/client/assets/{az-AZ-MXSORGZV-Cfw6Z5oY.js → az-AZ-MXSORGZV-DOdq1TKC.js} +1 -1
  9. package/dist/client/assets/{bg-BG-O6MV2KSF-CQmG3YpD.js → bg-BG-O6MV2KSF-CYucKuDS.js} +1 -1
  10. package/dist/client/assets/{blockDiagram-WCTKOSBZ-F38TRzI3.js → blockDiagram-WCTKOSBZ-GIgTqnhk.js} +1 -1
  11. package/dist/client/assets/{bn-IN-MMW2ORAC-DZKVshfk.js → bn-BD-T2VJNT7N-2OKWLCYa.js} +1 -1
  12. package/dist/client/assets/{bn-BD-T2VJNT7N-C4S6DZ6o.js → bn-IN-MMW2ORAC-DYr8kqNL.js} +1 -1
  13. package/dist/client/assets/{c4Diagram-IC4MRINW-DHwxcDlQ.js → c4Diagram-IC4MRINW-CkHO1i_L.js} +1 -1
  14. package/dist/client/assets/{ca-ES-MKBCGNOG-Do3aMgyu.js → ca-ES-MKBCGNOG-B9Aeb43I.js} +1 -1
  15. package/dist/client/assets/channel-CgsU9TSN.js +1 -0
  16. package/dist/client/assets/{chunk-4BX2VUAB-BqEY6cCE.js → chunk-4BX2VUAB-2e7V-uuE.js} +1 -1
  17. package/dist/client/assets/{chunk-55IACEB6-039iVf6v.js → chunk-55IACEB6-CpncB3ru.js} +1 -1
  18. package/dist/client/assets/{chunk-7E7YKBS2-BreG0gYL.js → chunk-7E7YKBS2-TdU92i9i.js} +1 -1
  19. package/dist/client/assets/{chunk-7R4GIKGN-BMrp52Pk.js → chunk-7R4GIKGN-mqd2GwMg.js} +2 -2
  20. package/dist/client/assets/{chunk-C72U2L5F-BLB26v5d.js → chunk-C72U2L5F-CJKQWBtz.js} +1 -1
  21. package/dist/client/assets/{chunk-EGIJ26TM-fG-0Yh0k.js → chunk-EGIJ26TM-C4nq20om.js} +1 -1
  22. package/dist/client/assets/{chunk-FMBD7UC4-EWK5Pt4D.js → chunk-FMBD7UC4-CMahlBa_.js} +1 -1
  23. package/dist/client/assets/{chunk-GEFDOKGD-DYHmaq-c.js → chunk-GEFDOKGD-Bs7FmFox.js} +1 -1
  24. package/dist/client/assets/chunk-GLR3WWYH-qQe2O5VQ.js +2 -0
  25. package/dist/client/assets/chunk-HHEYEP7N-DlevL8bq.js +1 -0
  26. package/dist/client/assets/{chunk-JSJVCQXG-B69YGtcQ.js → chunk-JSJVCQXG-DPQ9cPJt.js} +1 -1
  27. package/dist/client/assets/{chunk-KX2RTZJC-tuEC7hg1.js → chunk-KX2RTZJC-BTiOJb7N.js} +1 -1
  28. package/dist/client/assets/{chunk-KYZI473N-D4r5eMJZ.js → chunk-KYZI473N-CTSCuqRb.js} +1 -1
  29. package/dist/client/assets/{chunk-L3YUKLVL-CD9nJYL8.js → chunk-L3YUKLVL-CJZMBtKF.js} +1 -1
  30. package/dist/client/assets/{chunk-MX3YWQON-DqN0TF5Q.js → chunk-MX3YWQON-DQpSwRf6.js} +1 -1
  31. package/dist/client/assets/{chunk-NQ4KR5QH-BBX89uUa.js → chunk-NQ4KR5QH-CMJKI6Oj.js} +1 -1
  32. package/dist/client/assets/{chunk-NU2UP6EN-CGeKI3BV.js → chunk-NU2UP6EN-DlUENSHU.js} +4 -4
  33. package/dist/client/assets/{chunk-O4XLMI2P-DaS3COAu.js → chunk-O4XLMI2P-CcVxZh41.js} +1 -1
  34. package/dist/client/assets/{chunk-OZEHJAEY-BaBXI-8x.js → chunk-OZEHJAEY-DjBZbgu0.js} +1 -1
  35. package/dist/client/assets/{chunk-PQ6SQG4A-BY9_Srs_.js → chunk-PQ6SQG4A-D1AbThjy.js} +1 -1
  36. package/dist/client/assets/{chunk-PU5JKC2W-t0zUh6E3.js → chunk-PU5JKC2W-D_6N6t8f.js} +1 -1
  37. package/dist/client/assets/chunk-QZHKN3VN-CgLPFSk5.js +1 -0
  38. package/dist/client/assets/{chunk-R5LLSJPH-BjSMFnTi.js → chunk-R5LLSJPH-CkjKXM73.js} +1 -1
  39. package/dist/client/assets/{chunk-WL4C6EOR-zSV-8h7F.js → chunk-WL4C6EOR-axcuKSup.js} +1 -1
  40. package/dist/client/assets/{chunk-XIRO2GV7-2tirYN5A.js → chunk-XIRO2GV7-4wqVHjs_.js} +1 -1
  41. package/dist/client/assets/{chunk-XPW4576I-C0GpOUHf.js → chunk-XPW4576I-DJr4_4Yy.js} +1 -1
  42. package/dist/client/assets/{chunk-XZSTWKYB-DDkpyNVE.js → chunk-XZSTWKYB-C8Y_hIKZ.js} +1 -1
  43. package/dist/client/assets/{chunk-YBOYWFTD-CzyyfGQX.js → chunk-YBOYWFTD-CKg4ymFF.js} +1 -1
  44. package/dist/client/assets/{chunk-Z5NKEFVG-Dgem5v98.js → chunk-Z5NKEFVG-HOkYqaKa.js} +1 -1
  45. package/dist/client/assets/classDiagram-VBA2DB6C-BHZpvOxK.js +1 -0
  46. package/dist/client/assets/classDiagram-v2-RAHNMMFH-DA7HMUUs.js +1 -0
  47. package/dist/client/assets/clone-Dgi8Z4IL.js +1 -0
  48. package/dist/client/assets/{cose-bilkent-S5V4N54A-jZzFUguD.js → cose-bilkent-S5V4N54A-DASO2hrk.js} +1 -1
  49. package/dist/client/assets/{cs-CZ-V77HGUP7-DmZRJ2UO.js → cs-CZ-V77HGUP7-BDg-F0CJ.js} +1 -1
  50. package/dist/client/assets/{da-DK-I5RFNTM4-CRIiLQ-G.js → da-DK-I5RFNTM4-wtSQ0Jxa.js} +1 -1
  51. package/dist/client/assets/{dagre-fvYjRtTE.js → dagre-CfB3Fw33.js} +1 -1
  52. package/dist/client/assets/{dagre-KLK3FWXG-CAG8WeES.js → dagre-KLK3FWXG-CC7tq2Ky.js} +1 -1
  53. package/dist/client/assets/{de-DE-DTI4WUSC-MFge9MC3.js → de-CH-WLRDEVBV-C1swvmZy.js} +1 -1
  54. package/dist/client/assets/{de-CH-WLRDEVBV-k728UA4j.js → de-DE-DTI4WUSC-C0L6Nz8X.js} +1 -1
  55. package/dist/client/assets/{diagram-E7M64L7V-Bm5FD0I5.js → diagram-E7M64L7V-CMt7BN5M.js} +1 -1
  56. package/dist/client/assets/{diagram-IFDJBPK2-pqicH-av.js → diagram-IFDJBPK2-BFMBUGpd.js} +1 -1
  57. package/dist/client/assets/{diagram-P4PSJMXO-DwIXO27H.js → diagram-P4PSJMXO-CviA1xXr.js} +1 -1
  58. package/dist/client/assets/dist-8Igu3Ee_2.js +1 -0
  59. package/dist/client/assets/dist-B4uQVR_X.js +1 -0
  60. package/dist/client/assets/{dockerfile-C0qQqxf9.js → dockerfile-D8_6_FRV.js} +1 -1
  61. package/dist/client/assets/{drawio-editor-CTZtMo1J.js → drawio-editor-Br4qyh3r.js} +1 -1
  62. package/dist/client/assets/drawioEditor-ClmnTx5J.js +2 -0
  63. package/dist/client/assets/editor-session-Cf-iV5-3.js +16 -0
  64. package/dist/client/assets/{el-GR-ZXDJ2OS4-Bbz93mrG.js → el-GR-ZXDJ2OS4-BH0saXds.js} +1 -1
  65. package/dist/client/assets/embedded-editor-base-CgEkjNYn.css +1 -0
  66. package/dist/client/assets/{en-IQZW2TQM-CZeIyvu2.js → en-IQZW2TQM-CzlcEpq3.js} +1 -1
  67. package/dist/client/assets/{erDiagram-INFDFZHY-DlhPv4az.js → erDiagram-INFDFZHY-DlIf-fb7.js} +1 -1
  68. package/dist/client/assets/{es-ES-DYQHAD43-CReXU-Nn.js → es-ES-DYQHAD43-CyzL9Mni.js} +1 -1
  69. package/dist/client/assets/{eu-ES-QDSYU5Y3-jRpcaWwz.js → eu-ES-QDSYU5Y3-D2-x316S.js} +1 -1
  70. package/dist/client/assets/{excalidraw-editor-CBEWfuhb.js → excalidraw-editor-CXAxVhlw.js} +2 -2
  71. package/dist/client/assets/{excalidraw-mermaid-stub-efoh2lJm.js → excalidraw-mermaid-stub-Bwe-bKcT.js} +1 -1
  72. package/dist/client/assets/{excalidraw-scene-BL-OtvCd.js → excalidraw-scene-BF_bT1OL.js} +8 -8
  73. package/dist/client/assets/excalidrawEditor-DoH_kMdu.js +2 -0
  74. package/dist/client/assets/export-page-PeexH2QK.js +39 -0
  75. package/dist/client/assets/exportDocument-9wTrBZNS.css +1 -0
  76. package/dist/client/assets/exportDocument-Bia2hI25.js +2 -0
  77. package/dist/client/assets/{fa-IR-26LZG4PM-DP8pJ8e3.js → fa-IR-26LZG4PM-D8-trU2x.js} +1 -1
  78. package/dist/client/assets/{factor-2uy-lXe_.js → factor-Cz-hzBGH.js} +1 -1
  79. package/dist/client/assets/{fi-FI-6YS4KDE4-BLUDpNOj.js → fi-FI-6YS4KDE4-CCdRVFDQ.js} +1 -1
  80. package/dist/client/assets/file-kind-DBptLlF_.js +1 -0
  81. package/dist/client/assets/{flowDiagram-PKNHOUZH-BU4MOSq8.js → flowDiagram-PKNHOUZH-C_t-mkwb.js} +1 -1
  82. package/dist/client/assets/{fr-FR-BRLLPTZC-BoZz3Pi8.js → fr-FR-BRLLPTZC-Dqq-O5T_.js} +1 -1
  83. package/dist/client/assets/{ganttDiagram-A5KZAMGK-CbX67lZu.js → ganttDiagram-A5KZAMGK-BtK9Tb--.js} +1 -1
  84. package/dist/client/assets/gitGraph-HDMCJU4V-CT7YfbD3.js +1 -0
  85. package/dist/client/assets/{gitGraphDiagram-K3NZZRJ6-DhyvWcW1.js → gitGraphDiagram-K3NZZRJ6-DULDLGiJ.js} +1 -1
  86. package/dist/client/assets/{gl-ES-OKUZTLYG-CaEvhjDi.js → gl-ES-OKUZTLYG-BK7pbLbm.js} +1 -1
  87. package/dist/client/assets/{graphlib-DSzYgMXB.js → graphlib-BgRST-Qg.js} +1 -1
  88. package/dist/client/assets/{he-IL-26MGYIU7-DYOchgy9.js → he-IL-26MGYIU7-C3BuYKyY.js} +1 -1
  89. package/dist/client/assets/{hi-IN-Q4ZOGTP2-yRs8g46n.js → hi-IN-Q4ZOGTP2-BEvXWXnH.js} +1 -1
  90. package/dist/client/assets/{hu-HU-P2OXPSN5-1skPmtgc.js → hu-HU-P2OXPSN5-BWWZeJNp.js} +1 -1
  91. package/dist/client/assets/{id-ID-2EIKXYN6-iUugQJd9.js → id-ID-2EIKXYN6-DxSKi_aJ.js} +1 -1
  92. package/dist/client/assets/image-XLNPCCAD-CFiKwiWK.js +1 -0
  93. package/dist/client/assets/{index-CywRKxsk.js → index-C8QZYHvV.js} +2 -2
  94. package/dist/client/assets/index-CxSbUTs2.css +1 -0
  95. package/dist/client/assets/info-3K5VOQVL-DUpNyDC-.js +1 -0
  96. package/dist/client/assets/{infoDiagram-LFFYTUFH-Bap6MyHX.js → infoDiagram-LFFYTUFH-DFTI0nfs.js} +1 -1
  97. package/dist/client/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  98. package/dist/client/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  99. package/dist/client/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  100. package/dist/client/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  101. package/dist/client/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  102. package/dist/client/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  103. package/dist/client/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  104. package/dist/client/assets/{isEmpty-C7iPDOO3.js → isEmpty-CVvRj8fj.js} +1 -1
  105. package/dist/client/assets/{ishikawaDiagram-PHBUUO56-DbftskqN.js → ishikawaDiagram-PHBUUO56-DpBuDpC6.js} +1 -1
  106. package/dist/client/assets/{it-IT-4CFKVXI2-a5DFhzuI.js → it-IT-4CFKVXI2-BmA8wW6q.js} +1 -1
  107. package/dist/client/assets/{ja-JP-MAND2Z4V-DwogHVKd.js → ja-JP-MAND2Z4V-CLS1jI9o.js} +1 -1
  108. package/dist/client/assets/javascript-UJe68_xi.js +1 -0
  109. package/dist/client/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
  110. package/dist/client/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
  111. package/dist/client/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
  112. package/dist/client/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
  113. package/dist/client/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
  114. package/dist/client/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  115. package/dist/client/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
  116. package/dist/client/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
  117. package/dist/client/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
  118. package/dist/client/assets/{journeyDiagram-4ABVD52K-165YoX6B.js → journeyDiagram-4ABVD52K-DDur6iHm.js} +1 -1
  119. package/dist/client/assets/{kaa-HQRTCXTJ-p81XNRfH.js → kaa-HQRTCXTJ-W15DEDPz.js} +1 -1
  120. package/dist/client/assets/{kab-KAB-JKIKKTGH-mV5VzQZc.js → kab-KAB-JKIKKTGH-MLh1inqS.js} +1 -1
  121. package/dist/client/assets/{kanban-definition-K7BYSVSG-MlixoNyx.js → kanban-definition-K7BYSVSG-dA6NPLsg.js} +1 -1
  122. package/dist/client/assets/{kk-KZ-HXQ63ZFC-IIPX0GQv.js → kk-KZ-HXQ63ZFC-BtFrPeLs.js} +1 -1
  123. package/dist/client/assets/{km-KH-PKL3LSGX-D7WQFJuZ.js → km-KH-PKL3LSGX-xO5FyM9T.js} +1 -1
  124. package/dist/client/assets/{ko-KR-KXLREZX3-Bs1oLtJs.js → ko-KR-KXLREZX3-NZFoRybS.js} +1 -1
  125. package/dist/client/assets/{ku-TR-MJ4IER3X-DlxOs6aZ.js → ku-TR-MJ4IER3X-B5eVPIpK.js} +1 -1
  126. package/dist/client/assets/{line-D57TbKb7.js → line-B2GMovaI.js} +1 -1
  127. package/dist/client/assets/{linear-BIf852wI.js → linear-B2dOdA24.js} +1 -1
  128. package/dist/client/assets/{lt-LT-H6WFQ6FJ-xuo-3zKH.js → lt-LT-H6WFQ6FJ-D_7_OeJD.js} +1 -1
  129. package/dist/client/assets/{lv-LV-GOCK6SJW-C7S3M1nr.js → lv-LV-GOCK6SJW-CnpKr0oQ.js} +1 -1
  130. package/dist/client/assets/main-BjHHMlv0.js +1249 -0
  131. package/dist/client/assets/{mermaid-parser.core-lf87rdG-.js → mermaid-parser.core-B1ogGcR8.js} +2 -2
  132. package/dist/client/assets/{mermaid-runtime-C4a7TrTS.js → mermaid-runtime-Bn8A6DGx.js} +3 -3
  133. package/dist/client/assets/{mindmap-definition-YRQLILUH-_YbQSc4Q.js → mindmap-definition-YRQLILUH-DjQcsPoe.js} +1 -1
  134. package/dist/client/assets/{mr-IN-IXVLDMEQ-BsoowyZT.js → mr-IN-IXVLDMEQ-Pht2X_GK.js} +1 -1
  135. package/dist/client/assets/{my-MM-YG6MYTTD-DCqwN_K_.js → my-MM-YG6MYTTD-Cgq4HhPO.js} +1 -1
  136. package/dist/client/assets/{nb-NO-XGWJISD2-CZ5ytLgj.js → nb-NO-XGWJISD2-Bn_Bk2un.js} +1 -1
  137. package/dist/client/assets/{nl-NL-XVDVCPNC-wADsdb-h.js → nl-NL-XVDVCPNC-YkWSJS94.js} +1 -1
  138. package/dist/client/assets/{nn-NO-EMX5MJX5-D9zIKTL2.js → nn-NO-EMX5MJX5-DhP5eZJ7.js} +1 -1
  139. package/dist/client/assets/{nsis-CUd4RnvJ.js → nsis-QPGhLAeY.js} +1 -1
  140. package/dist/client/assets/{oc-FR-ROEINTVO-BSbBugJB.js → oc-FR-ROEINTVO-D3udMPnr.js} +1 -1
  141. package/dist/client/assets/{ordinal-B0PAtOQ6.js → ordinal-Dz3y_j0K.js} +1 -1
  142. package/dist/client/assets/{pa-IN-ZYN6SUDY-1pFA_3Pb.js → pa-IN-ZYN6SUDY-CR5YzFig.js} +1 -1
  143. package/dist/client/assets/packet-RMMSAZCW-DEwNbIrA.js +1 -0
  144. package/dist/client/assets/percentages-5DKR754L-D7n4T776.js +1 -0
  145. package/dist/client/assets/pie-UPGHQEXC-D5M_lSjo.js +1 -0
  146. package/dist/client/assets/{pieDiagram-SKSYHLDU-CqCgXFom.js → pieDiagram-SKSYHLDU-jhHouFpk.js} +1 -1
  147. package/dist/client/assets/{pl-PL-6VTG7PHC-DyYw0u_z.js → pl-PL-6VTG7PHC-_wZuoIDM.js} +1 -1
  148. package/dist/client/assets/preview-render-compiler-BjLlHmiQ.js +35 -0
  149. package/dist/client/assets/preview-render-compiler-Duy_3IcP.js +1 -0
  150. package/dist/client/assets/{preview-render-worker-BVbVXXPS.js → preview-render-worker-B4dH2yxj.js} +22 -22
  151. package/dist/client/assets/{pt-BR-5YFKRR5G-DJCCBBDl.js → pt-BR-5YFKRR5G-M7gIm2Hi.js} +1 -1
  152. package/dist/client/assets/{pt-PT-GEIXXZ67-BPJd09Ax.js → pt-PT-GEIXXZ67-CcxWpkGj.js} +1 -1
  153. package/dist/client/assets/{pug-BqBF8qF7.js → pug-DkUcLYWt.js} +1 -1
  154. package/dist/client/assets/{quadrantDiagram-337W2JSQ-B8eMuhg4.js → quadrantDiagram-337W2JSQ-CYKgdx7K.js} +1 -1
  155. package/dist/client/assets/quick-switcher-controller-DcyllYpm.js +5 -0
  156. package/dist/client/assets/radar-KQ55EAFF-AU1qh3Bw.js +1 -0
  157. package/dist/client/assets/{requirementDiagram-Z7DCOOCP-B6POvqz4.js → requirementDiagram-Z7DCOOCP-D9SHxoW7.js} +1 -1
  158. package/dist/client/assets/{ro-RO-E2P6TFZI-DWVyTV7V.js → ro-RO-E2P6TFZI-qR9noVzP.js} +1 -1
  159. package/dist/client/assets/{room-COWSP--i.js → room-yJaBAoEU.js} +1 -1
  160. package/dist/client/assets/{ru-RU-YBIIY43T-Dyar7CYM.js → ru-RU-YBIIY43T-CE4S_RX8.js} +1 -1
  161. package/dist/client/assets/{sankeyDiagram-WA2Y5GQK-CXRga6Op.js → sankeyDiagram-WA2Y5GQK-CfHe3D6R.js} +1 -1
  162. package/dist/client/assets/{sequenceDiagram-2WXFIKYE-CeSFlFx5.js → sequenceDiagram-2WXFIKYE-CZsMMqAJ.js} +1 -1
  163. package/dist/client/assets/{si-LK-673C2CI2-C61aLrIy.js → si-LK-673C2CI2-Bv6Avh3z.js} +1 -1
  164. package/dist/client/assets/{sk-SK-CKZHQ4AP-BlFwOxRD.js → sk-SK-CKZHQ4AP-Cnlpp55z.js} +1 -1
  165. package/dist/client/assets/{sl-SI-557H2GWM-DcAVW-_t.js → sl-SI-557H2GWM-BfGq7AQF.js} +1 -1
  166. package/dist/client/assets/{stateDiagram-RAJIS63D-DbewhqwJ.js → stateDiagram-RAJIS63D-CoNZjTYV.js} +1 -1
  167. package/dist/client/assets/stateDiagram-v2-FVOUBMTO-1zOw6NmQ.js +1 -0
  168. package/dist/client/assets/subset-shared.chunk-C9HjwTXy.js +1 -0
  169. package/dist/client/assets/{subset-worker.chunk-DVGT6bvR.js → subset-worker.chunk-BSCP6IiC.js} +1 -1
  170. package/dist/client/assets/{sv-SE-XOPKKDWS-BkhfOHzh.js → sv-SE-XOPKKDWS-B2_Vk-sp.js} +1 -1
  171. package/dist/client/assets/{ta-IN-XBH7DQI3-BIfwglZa.js → ta-IN-XBH7DQI3-BXQMZZIx.js} +1 -1
  172. package/dist/client/assets/{th-TH-TOCWH3R4-CkrxqVkf.js → th-TH-TOCWH3R4-C-ZIYMfH.js} +1 -1
  173. package/dist/client/assets/{timeline-definition-YZTLITO2-BXBHNWLQ.js → timeline-definition-YZTLITO2-DSe2mrG8.js} +1 -1
  174. package/dist/client/assets/{tr-TR-GXW6CYY5-CDdvG9rD.js → tr-TR-GXW6CYY5-dl702PMA.js} +1 -1
  175. package/dist/client/assets/treemap-KZPCXAKY-C9UI2fwP.js +1 -0
  176. package/dist/client/assets/{uk-UA-IJKTNUDG-DRHp0lWp.js → uk-UA-IJKTNUDG-CUYQvSSF.js} +1 -1
  177. package/dist/client/assets/{uz-UZ-TBZZEA4V-BIn-VE3Y.js → uz-UZ-TBZZEA4V-B9qw0PXX.js} +1 -1
  178. package/dist/client/assets/vault-api-client-Bf9tB_GW.js +1 -0
  179. package/dist/client/assets/vault-api-client-D7Ck0CvR.css +1 -0
  180. package/dist/client/assets/vault-utils-5Xr0MXCb.js +1 -0
  181. package/dist/client/assets/{vennDiagram-LZ73GAT5-C1hrSbf2.js → vennDiagram-LZ73GAT5-xSzaIpy1.js} +1 -1
  182. package/dist/client/assets/{vi-VN-MULSGNVB-Du7t5I0v.js → vi-VN-MULSGNVB-DqxZ_sVc.js} +1 -1
  183. package/dist/client/assets/{xychartDiagram-JWTSCODW-DhpWp8LV.js → xychartDiagram-JWTSCODW-C3vA70iJ.js} +1 -1
  184. package/dist/client/assets/{zh-CN-MVX3E32U-RcjS3rjt.js → zh-CN-MVX3E32U-BM0aLuGc.js} +1 -1
  185. package/dist/client/assets/{zh-HK-JNU5RLIE-g8UeEw5v.js → zh-HK-JNU5RLIE-dmG_YD0d.js} +1 -1
  186. package/dist/client/assets/{zh-TW-LENVCA6T-DwV25BqC.js → zh-TW-LENVCA6T-LFgbiOi3.js} +1 -1
  187. package/dist/client/drawio-editor.html +1 -1
  188. package/dist/client/excalidraw-editor.html +1 -1
  189. package/dist/client/export-document.html +3 -3
  190. package/dist/client/index.html +2 -2
  191. package/package.json +5 -1
  192. package/src/client/app/export-document.html +1 -1
  193. package/src/client/app/main-entry.js +2 -0
  194. package/src/client/application/app-shell/git-feature.js +28 -36
  195. package/src/client/application/app-shell/presence-feature.js +3 -1
  196. package/src/client/application/app-shell/workspace-feature.js +9 -0
  197. package/src/client/application/app-shell-elements.js +1 -0
  198. package/src/client/application/diagram-preview-hydrator.js +24 -15
  199. package/src/client/application/markdown-frontmatter.js +1 -56
  200. package/src/client/application/mermaid-preview-hydrator.js +121 -4
  201. package/src/client/application/plantuml-preview-hydrator.js +6 -16
  202. package/src/client/application/preview-render-compiler.js +50 -6
  203. package/src/client/application/preview-renderer.js +11 -2
  204. package/src/client/application/workspace-chrome-controller.js +25 -19
  205. package/src/client/application/workspace-coordinator.js +9 -0
  206. package/src/client/application/workspace-preview-controller.js +48 -3
  207. package/src/client/bootstrap/collabmd-app-shell.js +202 -52
  208. package/src/client/domain/excalidraw-document-switch.js +3 -0
  209. package/src/client/domain/vault-paths.js +19 -0
  210. package/src/client/excalidraw-editor.js +187 -84
  211. package/src/client/export/export-page.js +11 -3
  212. package/src/client/export/export-pipeline.js +77 -2
  213. package/src/client/infrastructure/auth-client.js +4 -4
  214. package/src/client/infrastructure/backlinks-api-client.js +18 -0
  215. package/src/client/infrastructure/comment-thread-store.js +4 -0
  216. package/src/client/infrastructure/editor-session.js +2 -0
  217. package/src/client/infrastructure/editor-view-adapter.js +8 -5
  218. package/src/client/infrastructure/git-api-client.js +134 -0
  219. package/src/client/infrastructure/plantuml-api-client.js +21 -0
  220. package/src/client/infrastructure/vault-api-client.js +121 -0
  221. package/src/client/presentation/app-shell-template.js +12 -0
  222. package/src/client/presentation/backlinks-panel.js +43 -20
  223. package/src/client/presentation/bases-preview-controller.js +463 -0
  224. package/src/client/presentation/excalidraw-embed-controller.js +251 -15
  225. package/src/client/presentation/excalidraw-embed-reconciler.js +0 -1
  226. package/src/client/presentation/file-action-controller.js +140 -0
  227. package/src/client/presentation/file-explorer-controller.js +2 -0
  228. package/src/client/presentation/file-explorer-view.js +378 -2
  229. package/src/client/presentation/file-history-view-controller.js +41 -40
  230. package/src/client/presentation/file-tree-state.js +9 -1
  231. package/src/client/presentation/git-diff-view-controller.js +70 -53
  232. package/src/client/presentation/git-panel-controller.js +12 -30
  233. package/src/client/presentation/quick-switcher-controller.js +54 -13
  234. package/src/client/styles/export-document.css +55 -0
  235. package/src/client/styles/features/auth-gate.css +13 -24
  236. package/src/client/styles/features/backlinks.css +65 -3
  237. package/src/client/styles/features/comment-card.css +6 -0
  238. package/src/client/styles/features/comments-drawer.css +38 -18
  239. package/src/client/styles/features/diagram-preview.css +33 -0
  240. package/src/client/styles/features/embedded-preview.css +37 -11
  241. package/src/client/styles/features/preview-markdown.css +285 -1
  242. package/src/client/styles/foundation/themes.css +4 -0
  243. package/src/client/styles/foundation/tokens.css +4 -3
  244. package/src/client/styles/layout/shell.css +8 -1
  245. package/src/client/styles/layout/sidebar.css +72 -0
  246. package/src/client/styles/layout/view-modes.css +5 -0
  247. package/src/domain/file-kind.js +17 -2
  248. package/src/domain/wiki-link-resolver.js +41 -23
  249. package/src/domain/yaml-frontmatter.js +59 -0
  250. package/src/server/auth/auth-common.js +224 -0
  251. package/src/server/auth/auth-constants.js +30 -0
  252. package/src/server/auth/auth-strategies.js +320 -0
  253. package/src/server/auth/create-auth-service.js +24 -545
  254. package/src/server/create-app-server.js +11 -2
  255. package/src/server/domain/backlink-index.js +102 -16
  256. package/src/server/domain/bases/base-definition.js +255 -0
  257. package/src/server/domain/bases/base-expression-runtime.js +1159 -0
  258. package/src/server/domain/bases/base-index-snapshot-store.js +418 -0
  259. package/src/server/domain/bases/base-query-results.js +205 -0
  260. package/src/server/domain/bases/base-query-service.js +204 -0
  261. package/src/server/domain/collaboration/collaboration-document-store.js +13 -2
  262. package/src/server/domain/collaboration/collaboration-room.js +36 -1
  263. package/src/server/domain/collaboration/room-client-state-store.js +1 -0
  264. package/src/server/domain/collaboration/room-persistence-controller.js +1 -1
  265. package/src/server/domain/workspace-state.js +52 -0
  266. package/src/server/infrastructure/http/create-request-handler.js +2 -0
  267. package/src/server/infrastructure/http/create-vault-api-command-handler.js +5 -0
  268. package/src/server/infrastructure/http/create-vault-api-handler.js +2 -0
  269. package/src/server/infrastructure/http/create-vault-api-query-handler.js +175 -1
  270. package/src/server/infrastructure/http/http-response.js +56 -0
  271. package/src/server/infrastructure/persistence/path-utils.js +1 -1
  272. package/src/server/infrastructure/persistence/vault-content-adapter.js +6 -0
  273. package/src/server/infrastructure/persistence/vault-file-store.js +124 -0
  274. package/src/server/infrastructure/workspace/file-system-sync-service.js +110 -19
  275. package/src/server/infrastructure/workspace/workspace-mutation-coordinator.js +15 -44
  276. package/dist/client/assets/architecture-PBZL5I3N-iRyVT2GQ.js +0 -1
  277. package/dist/client/assets/channel-s0w88EQN.js +0 -1
  278. package/dist/client/assets/chunk-GLR3WWYH-CQ1LryrI.js +0 -2
  279. package/dist/client/assets/chunk-HHEYEP7N-DOQ0PCdH.js +0 -1
  280. package/dist/client/assets/chunk-QZHKN3VN-B0v4d-CS.js +0 -1
  281. package/dist/client/assets/classDiagram-VBA2DB6C-BQqG4q1b.js +0 -1
  282. package/dist/client/assets/classDiagram-v2-RAHNMMFH-BUKbprX1.js +0 -1
  283. package/dist/client/assets/clone-C-n46MFF.js +0 -1
  284. package/dist/client/assets/dist-BqQjnEWr.js +0 -1
  285. package/dist/client/assets/drawioEditor-keSJVTcv.js +0 -2
  286. package/dist/client/assets/editor-session-C9l9XwVg.js +0 -16
  287. package/dist/client/assets/embedded-editor-base-DgmRcsR8.css +0 -1
  288. package/dist/client/assets/excalidrawEditor-Ws-fwGOc.js +0 -2
  289. package/dist/client/assets/export-page-B6xYnwy7.js +0 -39
  290. package/dist/client/assets/exportDocument-8JBw0p8O.js +0 -2
  291. package/dist/client/assets/exportDocument-CtX_4PSk.css +0 -1
  292. package/dist/client/assets/gitGraph-HDMCJU4V-kkuqHGSM.js +0 -1
  293. package/dist/client/assets/image-XLNPCCAD-B4wZgh-Y.js +0 -1
  294. package/dist/client/assets/index-R4OArFku.css +0 -1
  295. package/dist/client/assets/info-3K5VOQVL-DPN78whf.js +0 -1
  296. package/dist/client/assets/javascript-8DvdgifH.js +0 -1
  297. package/dist/client/assets/main-CB97rY6B.js +0 -1213
  298. package/dist/client/assets/packet-RMMSAZCW-BymvQ5cQ.js +0 -1
  299. package/dist/client/assets/percentages-5DKR754L-CiI2D7zA.js +0 -1
  300. package/dist/client/assets/pie-UPGHQEXC-MmzJzWOE.js +0 -1
  301. package/dist/client/assets/preview-render-compiler-TmHpBDlh.js +0 -1
  302. package/dist/client/assets/preview-render-compiler-aYpnXmNm.js +0 -35
  303. package/dist/client/assets/quick-switcher-controller-DplOTsT3.js +0 -5
  304. package/dist/client/assets/radar-KQ55EAFF-CCohASSY.js +0 -1
  305. package/dist/client/assets/stateDiagram-v2-FVOUBMTO-DbW-jVkS.js +0 -1
  306. package/dist/client/assets/subset-shared.chunk-CC_u8ICU.js +0 -1
  307. package/dist/client/assets/treemap-KZPCXAKY-9kxB0uNY.js +0 -1
  308. package/dist/client/assets/vault-api-client-DIaCC56H.js +0 -1
  309. package/dist/client/assets/vault-api-client-De7kMvrE.css +0 -1
  310. package/dist/client/assets/vault-utils-BW53lKl1.js +0 -1
  311. /package/dist/client/assets/{apl-QJCYYBkj.js → apl-C1JYSI8J.js} +0 -0
  312. /package/dist/client/assets/{array-DwdVlTkF.js → array-B3agRrCs.js} +0 -0
  313. /package/dist/client/assets/{asciiarmor-DNy0UPqh.js → asciiarmor-DHW75j1s.js} +0 -0
  314. /package/dist/client/assets/{asn1-CNPXj-s7.js → asn1-CQiG40kG.js} +0 -0
  315. /package/dist/client/assets/{asterisk-BwMdLpT2.js → asterisk-BWExh0n4.js} +0 -0
  316. /package/dist/client/assets/{brainfuck-C2gHT8aA.js → brainfuck-CTNFyOLg.js} +0 -0
  317. /package/dist/client/assets/{chunk-3PELD44J-CL87tpFo.js → chunk-3PELD44J-DymL2rGq.js} +0 -0
  318. /package/dist/client/assets/{chunk-A66AFZZU-DuceaGnc.js → chunk-A66AFZZU-BFHL744F.js} +0 -0
  319. /package/dist/client/assets/{chunk-AXZTUZBK-Cxfm7hmm.js → chunk-AXZTUZBK-DuMiJYO9.js} +0 -0
  320. /package/dist/client/assets/{chunk-SRAX5OIU-CC2mobFL.js → chunk-SRAX5OIU-CLVBQRWC.js} +0 -0
  321. /package/dist/client/assets/{clike-D5X7HJpo.js → clike-1_ZsiVV8.js} +0 -0
  322. /package/dist/client/assets/{clojure-BEDKZv_5.js → clojure-D-DYVqu7.js} +0 -0
  323. /package/dist/client/assets/{cmake-Y3shE7av.js → cmake-DtGL-Unu.js} +0 -0
  324. /package/dist/client/assets/{cobol-f-3TLk62.js → cobol-DP4QggbL.js} +0 -0
  325. /package/dist/client/assets/{coffeescript-C0XA9-xa.js → coffeescript-B_7eyHAa.js} +0 -0
  326. /package/dist/client/assets/{commonlisp-BOB6sIEu.js → commonlisp-COlJYiQT.js} +0 -0
  327. /package/dist/client/assets/{crystal-ByNgE_My.js → crystal-I_dE9xG-.js} +0 -0
  328. /package/dist/client/assets/{css-eaI-ENiR.js → css-CmhPNxBE.js} +0 -0
  329. /package/dist/client/assets/{cypher-CQ-dGGSi.js → cypher-DE6I2lIA.js} +0 -0
  330. /package/dist/client/assets/{cytoscape.esm-DBDRhUia.js → cytoscape.esm-Czjc507F.js} +0 -0
  331. /package/dist/client/assets/{d-D9pnu4Cr.js → d-BNkKjn0o.js} +0 -0
  332. /package/dist/client/assets/{defaultLocale-BWgun1yJ.js → defaultLocale-B_FbTTbl.js} +0 -0
  333. /package/dist/client/assets/{diff-z9q33Lo6.js → diff-BWuPUsEo.js} +0 -0
  334. /package/dist/client/assets/{dist-xO1ImhKz.js → dist-BU8uusJX.js} +0 -0
  335. /package/dist/client/assets/{dist-CsYRf4AV.js → dist-x7PIEmJu.js} +0 -0
  336. /package/dist/client/assets/{drawio-room-C592VDk7.js → drawio-room-DEivFyNV.js} +0 -0
  337. /package/dist/client/assets/{dtd-BDizf_te.js → dtd-C6brJFPg.js} +0 -0
  338. /package/dist/client/assets/{dylan-Bk__XCKW.js → dylan-Bft86ZSB.js} +0 -0
  339. /package/dist/client/assets/{ebnf-SzN4Kxtp.js → ebnf-D6ifG44A.js} +0 -0
  340. /package/dist/client/assets/{ecl-5ulxiKbt.js → ecl-M7Iek4lq.js} +0 -0
  341. /package/dist/client/assets/{eiffel-Bhoaqbb6.js → eiffel-DwxtewZF.js} +0 -0
  342. /package/dist/client/assets/{elm-C3je846J.js → elm-B1TncobV.js} +0 -0
  343. /package/dist/client/assets/{erlang-Cgk9SIAz.js → erlang-BDJZNtt8.js} +0 -0
  344. /package/dist/client/assets/{excalidraw-mermaid-stub-B_2dv3Ll.js → excalidraw-mermaid-stub-BZPU4ZhU.js} +0 -0
  345. /package/dist/client/assets/{fcl-dvkZwp9p.js → fcl-BWKK0S4-.js} +0 -0
  346. /package/dist/client/assets/{forth-DmfSa3jN.js → forth-nvhcMz63.js} +0 -0
  347. /package/dist/client/assets/{fortran-BsZAiNnN.js → fortran-BZID-z10.js} +0 -0
  348. /package/dist/client/assets/{gas-DBpKE9ut.js → gas-DjQsZDGE.js} +0 -0
  349. /package/dist/client/assets/{gherkin-CceEbBs7.js → gherkin-S0kHlzux.js} +0 -0
  350. /package/dist/client/assets/{groovy-CxJnDvES.js → groovy-BEKazBrO.js} +0 -0
  351. /package/dist/client/assets/{haskell-CUSb34Xy.js → haskell-C6qH3-aI.js} +0 -0
  352. /package/dist/client/assets/{haxe-6EHO_h-N.js → haxe-BY9d_5nB.js} +0 -0
  353. /package/dist/client/assets/{http-C3qcBpvG.js → http-DG1Y9fpK.js} +0 -0
  354. /package/dist/client/assets/{idl-C95wIO2I.js → idl-B64p3NTJ.js} +0 -0
  355. /package/dist/client/assets/{image-blob-reduce.esm-BaW4gpT9.js → image-blob-reduce.esm-DriR2zT9.js} +0 -0
  356. /package/dist/client/assets/{init-Bjj5fg68.js → init-DtLQcSuO.js} +0 -0
  357. /package/dist/client/assets/{isArrayLikeObject-Cmt1CYnI.js → isArrayLikeObject-BId_dPHM.js} +0 -0
  358. /package/dist/client/assets/{javascript-aWB87b1w.js → javascript-CdiVhQeA.js} +0 -0
  359. /package/dist/client/assets/{jsx-runtime-DiaMmmG6.js → jsx-runtime-C2p7wRmT.js} +0 -0
  360. /package/dist/client/assets/{julia-DF9PPAXG.js → julia-B22G9Bym.js} +0 -0
  361. /package/dist/client/assets/{katex-BPsFnA3D.js → katex-CXYULLWy.js} +0 -0
  362. /package/dist/client/assets/{livescript-CnOyWwUY.js → livescript-CkcuHqeS.js} +0 -0
  363. /package/dist/client/assets/{lua-a0rEq19C.js → lua-kutgyRGY.js} +0 -0
  364. /package/dist/client/assets/{math-BaavbII8.js → math-B-LMBwub.js} +0 -0
  365. /package/dist/client/assets/{mathematica-CKUq0Ojc.js → mathematica-CKVhKnoY.js} +0 -0
  366. /package/dist/client/assets/{mbox-a-u2PLog.js → mbox-DANyzFJ2.js} +0 -0
  367. /package/dist/client/assets/{mirc-BOd43sOX.js → mirc-BVG2S5rO.js} +0 -0
  368. /package/dist/client/assets/{mllike-fHruGivh.js → mllike-C0p7lv48.js} +0 -0
  369. /package/dist/client/assets/{modelica-B0NJqf1C.js → modelica-vJ-Qa9jV.js} +0 -0
  370. /package/dist/client/assets/{mscgen-DJZ33SrF.js → mscgen-vUD-SWGJ.js} +0 -0
  371. /package/dist/client/assets/{mumps-DvMvHTxU.js → mumps-D0KfUTSd.js} +0 -0
  372. /package/dist/client/assets/{nginx-BVAs8laz.js → nginx-DkVceJrH.js} +0 -0
  373. /package/dist/client/assets/{ntriples-DrdyAZU1.js → ntriples-BBuCIfS0.js} +0 -0
  374. /package/dist/client/assets/{octave-_YqJ0g7E.js → octave-BTv2CqSQ.js} +0 -0
  375. /package/dist/client/assets/{oz-k7T3LoMr.js → oz-D8SjVDNU.js} +0 -0
  376. /package/dist/client/assets/{pascal-CftsTvte.js → pascal-T-tfhVyx.js} +0 -0
  377. /package/dist/client/assets/{path-BUmMWM1-.js → path-DIlZIGue.js} +0 -0
  378. /package/dist/client/assets/{perl-CbsLFc7A.js → perl-BDrCkHRd.js} +0 -0
  379. /package/dist/client/assets/{pica-By-YDy_B.js → pica-C1TdTz-C.js} +0 -0
  380. /package/dist/client/assets/{pig-C-jTwMS-.js → pig-BEyI4fPq.js} +0 -0
  381. /package/dist/client/assets/{powershell-DqXLgSHX.js → powershell-DtnFc6GG.js} +0 -0
  382. /package/dist/client/assets/{preview-diagram-utils-Dc83ucbv.js → preview-diagram-utils-COt-IYMD.js} +0 -0
  383. /package/dist/client/assets/{preview-render-profile-DPzmho7I.js → preview-render-profile-CR4dJZrp.js} +0 -0
  384. /package/dist/client/assets/{properties-05jaw55P.js → properties-DWUvbxV9.js} +0 -0
  385. /package/dist/client/assets/{protobuf-DThTsZQN.js → protobuf-CQGoYyfE.js} +0 -0
  386. /package/dist/client/assets/{puppet-DuHxMpoj.js → puppet-Dd-qWO3p.js} +0 -0
  387. /package/dist/client/assets/{python-BiE2VHJI.js → python-CZtTmYkS.js} +0 -0
  388. /package/dist/client/assets/{q-DH46YfNw.js → q-I27iQntV.js} +0 -0
  389. /package/dist/client/assets/{r-DmEm46kJ.js → r-DN_EydfL.js} +0 -0
  390. /package/dist/client/assets/{rough.esm-jZQkcmER.js → rough.esm-DE_lJ5Ge.js} +0 -0
  391. /package/dist/client/assets/{roundRect-CI6UmGg6.js → roundRect-BzEouiv_.js} +0 -0
  392. /package/dist/client/assets/{rpm-DILIIbRB.js → rpm-CjWxLM68.js} +0 -0
  393. /package/dist/client/assets/{ruby-2LcnHEMS.js → ruby-CB34f2Gf.js} +0 -0
  394. /package/dist/client/assets/{runtime-config-CqX_f_Q4.js → runtime-config-CqhchMC4.js} +0 -0
  395. /package/dist/client/assets/{sas-Bn81MKuB.js → sas-Bji4HDQq.js} +0 -0
  396. /package/dist/client/assets/{scheme-B8kPNbgd.js → scheme-C3elI80V.js} +0 -0
  397. /package/dist/client/assets/{shell-CGj6v8kb.js → shell-DUveK2Hb.js} +0 -0
  398. /package/dist/client/assets/{sieve-CfVNFN1K.js → sieve-2ogwMVx4.js} +0 -0
  399. /package/dist/client/assets/{simple-mode-_FSHdiXs.js → simple-mode-pOKc0mfx.js} +0 -0
  400. /package/dist/client/assets/{smalltalk-BpIFyCPt.js → smalltalk-BuGhc6lW.js} +0 -0
  401. /package/dist/client/assets/{solr-B7iFaetn.js → solr-DTxshpm8.js} +0 -0
  402. /package/dist/client/assets/{sparql-COhgMTFK.js → sparql-BOvq0dv7.js} +0 -0
  403. /package/dist/client/assets/{spreadsheet-BzuffEeg.js → spreadsheet-C6Vbtl9-.js} +0 -0
  404. /package/dist/client/assets/{sql-13lT5zDl.js → sql-DDFeQNTK.js} +0 -0
  405. /package/dist/client/assets/{src-E3c2cohN.js → src-Pgt9Gp65.js} +0 -0
  406. /package/dist/client/assets/{stex-BRSfZZYG.js → stex-CEwW0Q_0.js} +0 -0
  407. /package/dist/client/assets/{stylus-fFo0QRk_.js → stylus-D1SZIMDs.js} +0 -0
  408. /package/dist/client/assets/{swift-wb5gyb6a.js → swift-BCxe4-cw.js} +0 -0
  409. /package/dist/client/assets/{tcl-BJA7GgWY.js → tcl-SPk7uiDB.js} +0 -0
  410. /package/dist/client/assets/{textile-BQjiYu-x.js → textile-C48beRus.js} +0 -0
  411. /package/dist/client/assets/{tiddlywiki-D2vUXB6n.js → tiddlywiki-CiImjFLN.js} +0 -0
  412. /package/dist/client/assets/{tiki-BFhpdznG.js → tiki-HkXZ4BIW.js} +0 -0
  413. /package/dist/client/assets/{toml-DN06iQUw.js → toml-BmfpMy1_.js} +0 -0
  414. /package/dist/client/assets/{troff-DuQfjhPH.js → troff-BjbEOT5E.js} +0 -0
  415. /package/dist/client/assets/{ttcn-BCTy6d50.js → ttcn-NA-V4KnY.js} +0 -0
  416. /package/dist/client/assets/{ttcn-cfg-BYnZQqGa.js → ttcn-cfg-TPHncdGN.js} +0 -0
  417. /package/dist/client/assets/{turtle-BvN-Me9x.js → turtle-GBz_E4RG.js} +0 -0
  418. /package/dist/client/assets/{vb-DYk3wW9u.js → vb-C19AQWqO.js} +0 -0
  419. /package/dist/client/assets/{vbscript-BKI61VS6.js → vbscript-CHJk3s95.js} +0 -0
  420. /package/dist/client/assets/{velocity-BrtitHHA.js → velocity-Ya0P4sQU.js} +0 -0
  421. /package/dist/client/assets/{verilog-CjUx3yiL.js → verilog-C4wTycyo.js} +0 -0
  422. /package/dist/client/assets/{vhdl-CPWwYF4V.js → vhdl-Bwndeg44.js} +0 -0
  423. /package/dist/client/assets/{webidl-PiVOzma8.js → webidl-DttrYZRT.js} +0 -0
  424. /package/dist/client/assets/{xquery-CiTzM_oK.js → xquery-CEDTd8qs.js} +0 -0
  425. /package/dist/client/assets/{yacas-4QS9CntY.js → yacas-C7dxlPB0.js} +0 -0
  426. /package/dist/client/assets/{yjs-provider-reset-guard-DWGhQClh.js → yjs-provider-reset-guard-CtERLBID.js} +0 -0
  427. /package/dist/client/assets/{z80-BxidrTKR.js → z80-BqEfFSnA.js} +0 -0
@@ -38,23 +38,28 @@ function findNodeByPath(nodes = [], pathValue = '') {
38
38
 
39
39
  const MOBILE_LONG_PRESS_DELAY_MS = 420;
40
40
  const MOBILE_LONG_PRESS_MOVE_TOLERANCE_PX = 10;
41
+ const DRAG_AUTO_EXPAND_DELAY_MS = 700;
41
42
 
42
43
  export class FileExplorerView {
43
44
  constructor({
44
45
  mobileBreakpointQuery = window.matchMedia('(max-width: 768px)'),
46
+ onEntryDrop,
45
47
  onDirectorySelect,
46
48
  onDirectoryToggle,
47
49
  onFileContextMenu,
48
50
  onFileSelect,
49
51
  onSearchChange,
50
52
  onTreeContextMenu,
53
+ onValidateDrop,
51
54
  }) {
55
+ this.onEntryDrop = onEntryDrop;
52
56
  this.onDirectorySelect = onDirectorySelect;
53
57
  this.onDirectoryToggle = onDirectoryToggle;
54
58
  this.onFileContextMenu = onFileContextMenu;
55
59
  this.onFileSelect = onFileSelect;
56
60
  this.onSearchChange = onSearchChange;
57
61
  this.onTreeContextMenu = onTreeContextMenu;
62
+ this.onValidateDrop = onValidateDrop;
58
63
  this.mobileBreakpointQuery = mobileBreakpointQuery;
59
64
  this.treeContainer = document.getElementById('fileTree');
60
65
  this.searchInput = document.getElementById('fileSearchInput');
@@ -66,6 +71,13 @@ export class FileExplorerView {
66
71
  this.suppressedActivationTarget = null;
67
72
  this.contextMenuCloseHandler = null;
68
73
  this.actionSheetCloseHandler = null;
74
+ this.dragSource = null;
75
+ this.currentSearchQuery = '';
76
+ this.activeDropTarget = null;
77
+ this.invalidDropAttempt = null;
78
+ this.autoExpandTimer = 0;
79
+ this.autoExpandTargetPath = '';
80
+ this.rootDropZone = null;
69
81
  }
70
82
 
71
83
  initialize() {
@@ -108,6 +120,15 @@ export class FileExplorerView {
108
120
  this.treeContainer?.addEventListener('scroll', () => {
109
121
  this.cancelLongPress();
110
122
  }, { passive: true });
123
+ this.treeContainer?.addEventListener('dragover', (event) => {
124
+ this.handleTreeDragOver(event);
125
+ });
126
+ this.treeContainer?.addEventListener('drop', (event) => {
127
+ this.handleTreeDrop(event);
128
+ });
129
+ this.treeContainer?.addEventListener('dragleave', (event) => {
130
+ this.handleTreeDragLeave(event);
131
+ });
111
132
  }
112
133
 
113
134
  render({ activeFilePath, changedPaths = null, expandedDirs, reset = false, searchMatches, searchQuery, tree }) {
@@ -115,6 +136,11 @@ export class FileExplorerView {
115
136
  return;
116
137
  }
117
138
 
139
+ this.currentSearchQuery = String(searchQuery ?? '');
140
+ if (this.currentSearchQuery) {
141
+ this.clearDragFeedback();
142
+ }
143
+
118
144
  if (this.searchInput && this.searchInput.value !== searchQuery) {
119
145
  this.searchInput.value = searchQuery;
120
146
  }
@@ -179,6 +205,7 @@ export class FileExplorerView {
179
205
 
180
206
  this.resetTreeIndexes();
181
207
  this.treeContainer.innerHTML = '';
208
+ this.rootDropZone = null;
182
209
 
183
210
  if (matches.length === 0) {
184
211
  this.treeContainer.innerHTML = '<div class="file-tree-empty">No matches</div>';
@@ -206,6 +233,7 @@ export class FileExplorerView {
206
233
  renderFullTree(tree, { activeFilePath, expandedDirs }) {
207
234
  this.resetTreeIndexes();
208
235
  this.treeContainer.innerHTML = '';
236
+ this.rootDropZone = null;
209
237
 
210
238
  if (tree.length === 0) {
211
239
  this.treeContainer.innerHTML = '<div class="file-tree-empty">No vault files found</div>';
@@ -213,6 +241,7 @@ export class FileExplorerView {
213
241
  }
214
242
 
215
243
  const fragment = document.createDocumentFragment();
244
+ fragment.appendChild(this.createRootDropZone());
216
245
  this.renderNodes(tree, fragment, {
217
246
  activeFilePath,
218
247
  depth: 0,
@@ -258,11 +287,15 @@ export class FileExplorerView {
258
287
 
259
288
  const isExpanded = expandedDirs.has(node.path);
260
289
  button.setAttribute('aria-expanded', String(isExpanded));
290
+ button.dataset.path = node.path;
291
+ button.dataset.entryType = 'directory';
261
292
  button.innerHTML = `
262
293
  <svg class="file-tree-chevron${isExpanded ? ' expanded' : ''}" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="9 18 15 12 9 6"/></svg>
263
294
  <svg class="file-tree-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg>
264
295
  <span class="file-tree-name">${escapeHtml(node.name)}</span>
265
296
  `;
297
+ this.configureDragSource(button, { path: node.path, type: 'directory' });
298
+ this.bindDirectoryDropTarget(button, node.path);
266
299
 
267
300
  button.addEventListener('click', (event) => {
268
301
  if (this.consumeSuppressedActivation(button, event)) {
@@ -303,6 +336,8 @@ export class FileExplorerView {
303
336
  button.className = 'file-tree-item file-tree-dir';
304
337
  button.style.setProperty('--depth', 0);
305
338
  button.dataset.depth = 0;
339
+ button.dataset.path = node.path;
340
+ button.dataset.entryType = 'directory';
306
341
  button.innerHTML = `
307
342
  <svg class="file-tree-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg>
308
343
  <span class="file-tree-name">${escapeHtml(node.name || getPathLeaf(node.path))}</span>
@@ -385,10 +420,14 @@ export class FileExplorerView {
385
420
  button.className = 'file-tree-item file-tree-file';
386
421
  const isDrawio = fileType === 'drawio';
387
422
  const isExcalidraw = fileType === 'excalidraw';
423
+ const isBase = fileType === 'base';
388
424
  const isImage = fileType === 'image';
389
425
  const isMermaid = fileType === 'mermaid';
390
426
  const isPlantUml = fileType === 'plantuml';
391
427
 
428
+ if (isBase) {
429
+ button.classList.add('is-base');
430
+ }
392
431
  if (isDrawio) {
393
432
  button.classList.add('is-drawio');
394
433
  }
@@ -411,10 +450,12 @@ export class FileExplorerView {
411
450
  button.style.setProperty('--depth', depth);
412
451
  button.dataset.depth = depth;
413
452
  button.dataset.path = filePath;
453
+ button.dataset.entryType = 'file';
414
454
  button.innerHTML = `
415
- ${this.getFileIconSvg({ isDrawio, isExcalidraw, isImage, isMermaid, isPlantUml })}
455
+ ${this.getFileIconSvg({ isBase, isDrawio, isExcalidraw, isImage, isMermaid, isPlantUml })}
416
456
  <span class="file-tree-name">${escapeHtml(stripVaultFileExtension(name))}</span>
417
457
  `;
458
+ this.configureDragSource(button, { path: filePath, type: 'file' });
418
459
 
419
460
  button.addEventListener('click', (event) => {
420
461
  if (this.consumeSuppressedActivation(button, event)) {
@@ -437,6 +478,336 @@ export class FileExplorerView {
437
478
  return Boolean(this.mobileBreakpointQuery?.matches);
438
479
  }
439
480
 
481
+ isDragAndDropEnabled() {
482
+ return !this.isMobileViewport() && !this.currentSearchQuery;
483
+ }
484
+
485
+ configureDragSource(element, payload) {
486
+ if (!(element instanceof HTMLElement)) {
487
+ return;
488
+ }
489
+
490
+ const isEnabled = this.isDragAndDropEnabled();
491
+ element.draggable = isEnabled;
492
+ if (!isEnabled) {
493
+ return;
494
+ }
495
+
496
+ element.addEventListener('dragstart', (event) => {
497
+ this.dragSource = {
498
+ path: payload.path,
499
+ type: payload.type,
500
+ };
501
+ document.body?.classList.add('is-file-tree-dragging');
502
+ if (this.treeContainer) {
503
+ this.treeContainer.dataset.dragActive = 'true';
504
+ }
505
+ element.classList.add('is-dragging');
506
+ if (event.dataTransfer) {
507
+ event.dataTransfer.effectAllowed = 'move';
508
+ event.dataTransfer.setData('text/plain', payload.path);
509
+ }
510
+ });
511
+ element.addEventListener('dragend', () => {
512
+ element.classList.remove('is-dragging');
513
+ const dragSource = this.dragSource;
514
+ if (this.invalidDropAttempt && dragSource) {
515
+ void this.onEntryDrop?.(this.invalidDropAttempt);
516
+ }
517
+ this.dragSource = null;
518
+ this.invalidDropAttempt = null;
519
+ this.clearDragFeedback();
520
+ });
521
+
522
+ if (payload.type === 'file') {
523
+ element.addEventListener('dragenter', (event) => {
524
+ this.handleNonDropTargetDragOver(event);
525
+ });
526
+ element.addEventListener('dragover', (event) => {
527
+ this.handleNonDropTargetDragOver(event);
528
+ });
529
+ }
530
+ }
531
+
532
+ bindDirectoryDropTarget(element, directoryPath) {
533
+ if (!(element instanceof HTMLElement) || this.isMobileViewport()) {
534
+ return;
535
+ }
536
+
537
+ element.addEventListener('dragenter', (event) => {
538
+ this.handleDirectoryDragEnter(event, element, directoryPath);
539
+ });
540
+ element.addEventListener('dragover', (event) => {
541
+ this.handleDirectoryDragOver(event, element, directoryPath);
542
+ });
543
+ element.addEventListener('drop', (event) => {
544
+ this.handleDirectoryDrop(event, directoryPath);
545
+ });
546
+ }
547
+
548
+ createRootDropZone() {
549
+ const zone = document.createElement('div');
550
+ zone.className = 'file-tree-root-drop-zone';
551
+ zone.textContent = 'Drop here to move to vault root';
552
+ zone.addEventListener('dragenter', (event) => {
553
+ this.handleRootZoneDragEnter(event);
554
+ });
555
+ zone.addEventListener('dragover', (event) => {
556
+ this.handleRootZoneDragOver(event);
557
+ });
558
+ zone.addEventListener('drop', (event) => {
559
+ this.handleRootZoneDrop(event);
560
+ });
561
+ this.rootDropZone = zone;
562
+ return zone;
563
+ }
564
+
565
+ validateDrop(destinationDirectory) {
566
+ if (!this.dragSource || this.currentSearchQuery) {
567
+ return false;
568
+ }
569
+
570
+ return this.onValidateDrop?.({
571
+ destinationDirectory,
572
+ sourcePath: this.dragSource.path,
573
+ sourceType: this.dragSource.type,
574
+ }) === true;
575
+ }
576
+
577
+ setDropTarget(target) {
578
+ if (this.activeDropTarget?.element && this.activeDropTarget.element !== target?.element) {
579
+ this.activeDropTarget.element.classList.remove('is-drop-target', 'is-drop-invalid');
580
+ }
581
+
582
+ if (this.activeDropTarget?.root && !target?.root) {
583
+ this.treeContainer?.classList.remove('is-drop-target-root', 'is-drop-invalid');
584
+ }
585
+ if (this.activeDropTarget?.rootZone && !target?.rootZone) {
586
+ this.rootDropZone?.classList.remove('is-drop-target', 'is-drop-invalid');
587
+ }
588
+
589
+ this.activeDropTarget = target;
590
+ if (!target || target.isValid) {
591
+ this.invalidDropAttempt = null;
592
+ } else if (this.dragSource) {
593
+ this.invalidDropAttempt = {
594
+ destinationDirectory: target.destinationDirectory || '',
595
+ sourcePath: this.dragSource.path,
596
+ sourceType: this.dragSource.type,
597
+ };
598
+ }
599
+
600
+ if (!target) {
601
+ return;
602
+ }
603
+
604
+ if (target.root) {
605
+ this.treeContainer?.classList.toggle('is-drop-target-root', target.isValid);
606
+ this.treeContainer?.classList.toggle('is-drop-invalid', !target.isValid);
607
+ return;
608
+ }
609
+
610
+ if (target.rootZone) {
611
+ this.rootDropZone?.classList.toggle('is-drop-target', target.isValid);
612
+ this.rootDropZone?.classList.toggle('is-drop-invalid', !target.isValid);
613
+ return;
614
+ }
615
+
616
+ target.element.classList.toggle('is-drop-target', target.isValid);
617
+ target.element.classList.toggle('is-drop-invalid', !target.isValid);
618
+ }
619
+
620
+ scheduleAutoExpand(element, directoryPath) {
621
+ const isExpanded = element.getAttribute('aria-expanded') === 'true';
622
+ if (isExpanded || this.autoExpandTargetPath === directoryPath) {
623
+ return;
624
+ }
625
+
626
+ this.cancelAutoExpand();
627
+ this.autoExpandTargetPath = directoryPath;
628
+ this.autoExpandTimer = window.setTimeout(() => {
629
+ this.autoExpandTimer = 0;
630
+ this.autoExpandTargetPath = '';
631
+ if (element.isConnected && element.getAttribute('aria-expanded') !== 'true') {
632
+ this.onDirectoryToggle?.(directoryPath);
633
+ }
634
+ }, DRAG_AUTO_EXPAND_DELAY_MS);
635
+ }
636
+
637
+ cancelAutoExpand() {
638
+ if (this.autoExpandTimer) {
639
+ window.clearTimeout(this.autoExpandTimer);
640
+ this.autoExpandTimer = 0;
641
+ }
642
+ this.autoExpandTargetPath = '';
643
+ }
644
+
645
+ clearDragFeedback() {
646
+ this.cancelAutoExpand();
647
+ this.setDropTarget(null);
648
+ document.body?.classList.remove('is-file-tree-dragging');
649
+ if (this.treeContainer) {
650
+ delete this.treeContainer.dataset.dragActive;
651
+ }
652
+ }
653
+
654
+ handleDirectoryDragEnter(event, element, directoryPath) {
655
+ if (!this.dragSource) {
656
+ return;
657
+ }
658
+
659
+ event.preventDefault();
660
+ event.stopPropagation();
661
+ const isValid = this.validateDrop(directoryPath);
662
+ this.setDropTarget({ destinationDirectory: directoryPath, element, isValid, root: false });
663
+ if (isValid) {
664
+ this.scheduleAutoExpand(element, directoryPath);
665
+ } else {
666
+ this.cancelAutoExpand();
667
+ }
668
+ }
669
+
670
+ handleDirectoryDragOver(event, element, directoryPath) {
671
+ if (!this.dragSource) {
672
+ return;
673
+ }
674
+
675
+ event.preventDefault();
676
+ event.stopPropagation();
677
+ const isValid = this.validateDrop(directoryPath);
678
+ if (event.dataTransfer) {
679
+ event.dataTransfer.dropEffect = isValid ? 'move' : 'none';
680
+ }
681
+ this.setDropTarget({ destinationDirectory: directoryPath, element, isValid, root: false });
682
+ if (isValid) {
683
+ this.scheduleAutoExpand(element, directoryPath);
684
+ } else {
685
+ this.cancelAutoExpand();
686
+ }
687
+ }
688
+
689
+ handleDirectoryDrop(event, directoryPath) {
690
+ if (!this.dragSource) {
691
+ return;
692
+ }
693
+
694
+ event.preventDefault();
695
+ event.stopPropagation();
696
+ const payload = {
697
+ destinationDirectory: directoryPath,
698
+ sourcePath: this.dragSource.path,
699
+ sourceType: this.dragSource.type,
700
+ };
701
+ this.clearDragFeedback();
702
+ void this.onEntryDrop?.(payload);
703
+ }
704
+
705
+ handleTreeDragOver(event) {
706
+ if (!this.dragSource || !this.treeContainer) {
707
+ return;
708
+ }
709
+
710
+ if (event.target.closest('.file-tree-dir') || event.target.closest('.file-tree-item')) {
711
+ return;
712
+ }
713
+
714
+ event.preventDefault();
715
+ this.cancelAutoExpand();
716
+ const isValid = this.validateDrop('');
717
+ if (event.dataTransfer) {
718
+ event.dataTransfer.dropEffect = isValid ? 'move' : 'none';
719
+ }
720
+ this.setDropTarget({ destinationDirectory: '', element: this.treeContainer, isValid, root: true });
721
+ }
722
+
723
+ handleTreeDrop(event) {
724
+ if (!this.dragSource || !this.treeContainer) {
725
+ return;
726
+ }
727
+
728
+ if (event.target.closest('.file-tree-dir') || event.target.closest('.file-tree-item')) {
729
+ return;
730
+ }
731
+
732
+ event.preventDefault();
733
+ const payload = {
734
+ destinationDirectory: '',
735
+ sourcePath: this.dragSource.path,
736
+ sourceType: this.dragSource.type,
737
+ };
738
+ this.clearDragFeedback();
739
+ void this.onEntryDrop?.(payload);
740
+ }
741
+
742
+ handleTreeDragLeave(event) {
743
+ if (!this.dragSource || !this.treeContainer) {
744
+ return;
745
+ }
746
+
747
+ const nextTarget = event.relatedTarget;
748
+ if (nextTarget && this.treeContainer.contains(nextTarget)) {
749
+ return;
750
+ }
751
+
752
+ this.clearDragFeedback();
753
+ }
754
+
755
+ handleRootZoneDragEnter(event) {
756
+ if (!this.dragSource) {
757
+ return;
758
+ }
759
+
760
+ event.preventDefault();
761
+ event.stopPropagation();
762
+ const isValid = this.validateDrop('');
763
+ this.cancelAutoExpand();
764
+ this.setDropTarget({ destinationDirectory: '', element: this.rootDropZone, isValid, rootZone: true });
765
+ }
766
+
767
+ handleRootZoneDragOver(event) {
768
+ if (!this.dragSource) {
769
+ return;
770
+ }
771
+
772
+ event.preventDefault();
773
+ event.stopPropagation();
774
+ const isValid = this.validateDrop('');
775
+ if (event.dataTransfer) {
776
+ event.dataTransfer.dropEffect = isValid ? 'move' : 'none';
777
+ }
778
+ this.cancelAutoExpand();
779
+ this.setDropTarget({ destinationDirectory: '', element: this.rootDropZone, isValid, rootZone: true });
780
+ }
781
+
782
+ handleRootZoneDrop(event) {
783
+ if (!this.dragSource) {
784
+ return;
785
+ }
786
+
787
+ event.preventDefault();
788
+ event.stopPropagation();
789
+ const payload = {
790
+ destinationDirectory: '',
791
+ sourcePath: this.dragSource.path,
792
+ sourceType: this.dragSource.type,
793
+ };
794
+ this.clearDragFeedback();
795
+ void this.onEntryDrop?.(payload);
796
+ }
797
+
798
+ handleNonDropTargetDragOver(event) {
799
+ if (!this.dragSource) {
800
+ return;
801
+ }
802
+
803
+ event.preventDefault();
804
+ event.stopPropagation();
805
+ if (event.dataTransfer) {
806
+ event.dataTransfer.dropEffect = 'none';
807
+ }
808
+ this.clearDragFeedback();
809
+ }
810
+
440
811
  bindLongPress(element, callback) {
441
812
  if (!(element instanceof HTMLElement) || typeof callback !== 'function') {
442
813
  return;
@@ -534,7 +905,11 @@ export class FileExplorerView {
534
905
  return true;
535
906
  }
536
907
 
537
- getFileIconSvg({ isDrawio, isExcalidraw, isImage, isMermaid, isPlantUml }) {
908
+ getFileIconSvg({ isBase, isDrawio, isExcalidraw, isImage, isMermaid, isPlantUml }) {
909
+ if (isBase) {
910
+ return '<svg class="file-tree-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4h7l5 5v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z"/><path d="M14 4v5h5"/><path d="M8 13h8"/><path d="M8 17h6"/><path d="M8 9h3"/></svg>';
911
+ }
912
+
538
913
  if (isDrawio) {
539
914
  return '<svg class="file-tree-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="7" height="6" rx="1"/><rect x="14" y="4" width="7" height="6" rx="1"/><rect x="8.5" y="14" width="7" height="6" rx="1"/><path d="M10 7h4"/><path d="M17.5 10v2.5"/><path d="M6.5 10v2.5"/><path d="M6.5 12.5h11"/></svg>';
540
915
  }
@@ -651,6 +1026,7 @@ export class FileExplorerView {
651
1026
 
652
1027
  removeContextMenu() {
653
1028
  this.cancelLongPress();
1029
+ this.clearDragFeedback();
654
1030
  document.querySelectorAll('.file-context-menu').forEach((menu) => menu.remove());
655
1031
  if (this.contextMenuCloseHandler) {
656
1032
  document.removeEventListener('click', this.contextMenuCloseHandler);
@@ -1,5 +1,4 @@
1
1
  import { escapeHtml } from '../domain/vault-utils.js';
2
- import { resolveApiUrl } from '../domain/runtime-paths.js';
3
2
  import { buttonClassNames } from './components/ui/button.js';
4
3
 
5
4
  const HISTORY_PAGE_SIZE = 30;
@@ -62,6 +61,7 @@ function createEmptyHistoryState() {
62
61
  export class FileHistoryViewController {
63
62
  constructor({
64
63
  diffRenderer = null,
64
+ gitApiClient = null,
65
65
  onOpenCommitDiff = () => {},
66
66
  onOpenFile = () => {},
67
67
  onOpenPreview = () => {},
@@ -69,6 +69,7 @@ export class FileHistoryViewController {
69
69
  toastController = null,
70
70
  } = {}) {
71
71
  this.diffRenderer = diffRenderer;
72
+ this.gitApiClient = gitApiClient;
72
73
  this.onOpenCommitDiff = onOpenCommitDiff;
73
74
  this.onOpenFile = onOpenFile;
74
75
  this.onOpenPreview = onOpenPreview;
@@ -89,6 +90,7 @@ export class FileHistoryViewController {
89
90
  this.nextButton = document.getElementById('diffNextBtn');
90
91
  this.layoutToggle = document.getElementById('diffLayoutToggle');
91
92
  this.modeButtons = Array.from(document.querySelectorAll('[data-diff-mode]'));
93
+ this.isActive = false;
92
94
  this.currentFilePath = null;
93
95
  this.localChanges = null;
94
96
  this.history = createEmptyHistoryState();
@@ -104,6 +106,9 @@ export class FileHistoryViewController {
104
106
 
105
107
  initialize() {
106
108
  this.openEditorButton?.addEventListener('click', () => {
109
+ if (!this.isActive) {
110
+ return;
111
+ }
107
112
  if (!this.currentFilePath) {
108
113
  return;
109
114
  }
@@ -113,6 +118,9 @@ export class FileHistoryViewController {
113
118
 
114
119
  this.modeButtons.forEach((button) => {
115
120
  button.addEventListener('click', () => {
121
+ if (!this.isActive) {
122
+ return;
123
+ }
116
124
  const nextMode = button.getAttribute('data-diff-mode');
117
125
  if (!nextMode || nextMode === this.diffMode) {
118
126
  return;
@@ -123,6 +131,9 @@ export class FileHistoryViewController {
123
131
  });
124
132
 
125
133
  this.content?.addEventListener('click', (event) => {
134
+ if (!this.isActive) {
135
+ return;
136
+ }
126
137
  const selectionButton = event.target instanceof Element
127
138
  ? event.target.closest('[data-file-history-select]')
128
139
  : null;
@@ -160,6 +171,7 @@ export class FileHistoryViewController {
160
171
  }
161
172
 
162
173
  hide() {
174
+ this.isActive = false;
163
175
  this.page?.classList.add('hidden');
164
176
  this.content?.classList.remove('diff-content--history');
165
177
  if (this.content) {
@@ -175,7 +187,6 @@ export class FileHistoryViewController {
175
187
  this.historyListElement = null;
176
188
  this.historyListScrollTop = 0;
177
189
  this.selectionRequestToken = 0;
178
- this.syncToolbar();
179
190
  }
180
191
 
181
192
  getEntries() {
@@ -229,6 +240,7 @@ export class FileHistoryViewController {
229
240
  }
230
241
 
231
242
  async openFileHistory({ filePath }) {
243
+ this.isActive = true;
232
244
  this.currentFilePath = String(filePath ?? '').trim() || null;
233
245
  this.localChanges = null;
234
246
  this.history = {
@@ -289,16 +301,11 @@ export class FileHistoryViewController {
289
301
  return null;
290
302
  }
291
303
 
292
- const query = new URLSearchParams();
293
- query.set('metaOnly', 'true');
294
- query.set('path', this.currentFilePath);
295
- query.set('scope', 'all');
296
- const response = await fetch(resolveApiUrl(`/git/diff?${query.toString()}`));
297
- const data = await response.json();
298
- if (!response.ok) {
299
- throw new Error(data.error || 'Failed to load local file changes');
300
- }
301
-
304
+ const data = await this.gitApiClient.readDiff({
305
+ metaOnly: true,
306
+ path: this.currentFilePath,
307
+ scope: 'all',
308
+ });
302
309
  const file = data.files?.[0];
303
310
  if (!file) {
304
311
  return null;
@@ -322,16 +329,11 @@ export class FileHistoryViewController {
322
329
  };
323
330
  }
324
331
 
325
- const query = new URLSearchParams();
326
- query.set('path', this.currentFilePath);
327
- query.set('limit', String(HISTORY_PAGE_SIZE));
328
- query.set('offset', String(offset));
329
- const response = await fetch(resolveApiUrl(`/git/file-history?${query.toString()}`));
330
- const data = await response.json();
331
- if (!response.ok) {
332
- throw new Error(data.error || 'Failed to load file history');
333
- }
334
-
332
+ const data = await this.gitApiClient.readFileHistory({
333
+ limit: HISTORY_PAGE_SIZE,
334
+ offset,
335
+ path: this.currentFilePath,
336
+ });
335
337
  const commits = Array.isArray(data.commits) ? data.commits : [];
336
338
  return {
337
339
  commits,
@@ -350,30 +352,20 @@ export class FileHistoryViewController {
350
352
  }
351
353
 
352
354
  if (entry.type === 'local') {
353
- const query = new URLSearchParams();
354
- query.set('path', this.currentFilePath || '');
355
- query.set('scope', 'all');
356
- const response = await fetch(resolveApiUrl(`/git/diff?${query.toString()}`));
357
- const data = await response.json();
358
- if (!response.ok) {
359
- throw new Error(data.error || 'Failed to load local diff');
360
- }
361
-
355
+ const data = await this.gitApiClient.readDiff({
356
+ path: this.currentFilePath || '',
357
+ scope: 'all',
358
+ });
362
359
  return {
363
360
  detail: data.files?.[0] ?? null,
364
361
  summary: data.summary ?? entry.summary ?? null,
365
362
  };
366
363
  }
367
364
 
368
- const query = new URLSearchParams();
369
- query.set('hash', entry.hash || '');
370
- query.set('path', entry.pathAtCommit || '');
371
- const response = await fetch(resolveApiUrl(`/git/commit?${query.toString()}`));
372
- const data = await response.json();
373
- if (!response.ok) {
374
- throw new Error(data.error || 'Failed to load commit diff');
375
- }
376
-
365
+ const data = await this.gitApiClient.readCommit({
366
+ hash: entry.hash || '',
367
+ path: entry.pathAtCommit || '',
368
+ });
377
369
  return {
378
370
  commit: data.commit ?? null,
379
371
  detail: data.files?.[0] ?? null,
@@ -564,6 +556,9 @@ export class FileHistoryViewController {
564
556
  }
565
557
 
566
558
  renderLoading() {
559
+ if (!this.isActive) {
560
+ return;
561
+ }
567
562
  this.page?.classList.remove('hidden');
568
563
  if (this.content) {
569
564
  this.content.classList.add('diff-content--history');
@@ -574,6 +569,9 @@ export class FileHistoryViewController {
574
569
  }
575
570
 
576
571
  renderEmpty(message) {
572
+ if (!this.isActive) {
573
+ return;
574
+ }
577
575
  this.page?.classList.remove('hidden');
578
576
  if (this.content) {
579
577
  this.content.classList.add('diff-content--history');
@@ -744,6 +742,9 @@ export class FileHistoryViewController {
744
742
  }
745
743
 
746
744
  render() {
745
+ if (!this.isActive) {
746
+ return;
747
+ }
747
748
  this.page?.classList.remove('hidden');
748
749
  this.captureListScroll();
749
750
  this.syncToolbar();