collabmd 0.1.27 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/client/assets/{CodeMirrorEditor-UCMRAMCV-C5yVpm45.js → CodeMirrorEditor-UCMRAMCV-tj0_ycIx.js} +1 -1
- package/dist/client/assets/{_basePickBy-Dr0N-hVE.js → _basePickBy-B6kIfhzj.js} +1 -1
- package/dist/client/assets/{_baseUniq-BddJc3B1.js → _baseUniq-Bbn0_sHS.js} +1 -1
- package/dist/client/assets/actions-XO29hEzr.css +1 -0
- package/dist/client/assets/{ar-SA-NXDWD63E-C3GLfrYV.js → ar-SA-NXDWD63E-BWO5oYxe.js} +1 -1
- package/dist/client/assets/{arc-fx_D7wYg.js → arc-BIqum3oD.js} +1 -1
- package/dist/client/assets/architecture-PBZL5I3N-iRyVT2GQ.js +1 -0
- package/dist/client/assets/architectureDiagram-2XIMDMQ5-BPG5b65m.js +36 -0
- package/dist/client/assets/{az-AZ-MXSORGZV-BJ2t-y-C.js → az-AZ-MXSORGZV-Cfw6Z5oY.js} +1 -1
- package/dist/client/assets/base-CaIEJUF9.css +1 -0
- package/dist/client/assets/base-h1uscjTi.js +1 -0
- package/dist/client/assets/{bg-BG-O6MV2KSF-Cd3kEZI-.js → bg-BG-O6MV2KSF-CQmG3YpD.js} +1 -1
- package/dist/client/assets/{blockDiagram-WCTKOSBZ-BivLpsk_.js → blockDiagram-WCTKOSBZ-F38TRzI3.js} +1 -1
- package/dist/client/assets/{bn-IN-MMW2ORAC-Dn9W9dUT.js → bn-BD-T2VJNT7N-C4S6DZ6o.js} +1 -1
- package/dist/client/assets/{bn-BD-T2VJNT7N-BFCx9nbZ.js → bn-IN-MMW2ORAC-DZKVshfk.js} +1 -1
- package/dist/client/assets/{c4Diagram-IC4MRINW-nVzPTZmV.js → c4Diagram-IC4MRINW-DHwxcDlQ.js} +1 -1
- package/dist/client/assets/{ca-ES-MKBCGNOG-D_BNlrmg.js → ca-ES-MKBCGNOG-Do3aMgyu.js} +1 -1
- package/dist/client/assets/channel-s0w88EQN.js +1 -0
- package/dist/client/assets/{chunk-4BX2VUAB-n_yl-toC.js → chunk-4BX2VUAB-BqEY6cCE.js} +1 -1
- package/dist/client/assets/{chunk-55IACEB6-CJ9i_5Da.js → chunk-55IACEB6-039iVf6v.js} +1 -1
- package/dist/client/assets/{chunk-7E7YKBS2-CebEBDsj.js → chunk-7E7YKBS2-BreG0gYL.js} +1 -1
- package/dist/client/assets/{chunk-7R4GIKGN-BXNhzFkP.js → chunk-7R4GIKGN-BMrp52Pk.js} +2 -2
- package/dist/client/assets/{chunk-ETSVUAFD-C8C1JDu2.js → chunk-AXZTUZBK-Cxfm7hmm.js} +1 -1
- package/dist/client/assets/{chunk-C72U2L5F-Cck8MvGP.js → chunk-C72U2L5F-BLB26v5d.js} +1 -1
- package/dist/client/assets/{chunk-EGIJ26TM-BDQ7tRV-.js → chunk-EGIJ26TM-fG-0Yh0k.js} +1 -1
- package/dist/client/assets/{chunk-FMBD7UC4-DAcjCJR-.js → chunk-FMBD7UC4-EWK5Pt4D.js} +1 -1
- package/dist/client/assets/{chunk-GEFDOKGD-CYSNVsp-.js → chunk-GEFDOKGD-DYHmaq-c.js} +1 -1
- package/dist/client/assets/chunk-GLR3WWYH-CQ1LryrI.js +2 -0
- package/dist/client/assets/chunk-HHEYEP7N-DOQ0PCdH.js +1 -0
- package/dist/client/assets/{chunk-JSJVCQXG-CLgStmEI.js → chunk-JSJVCQXG-B69YGtcQ.js} +1 -1
- package/dist/client/assets/{chunk-KX2RTZJC-B__vUl1o.js → chunk-KX2RTZJC-tuEC7hg1.js} +1 -1
- package/dist/client/assets/{chunk-KYZI473N-BpfobHkp.js → chunk-KYZI473N-D4r5eMJZ.js} +1 -1
- package/dist/client/assets/{chunk-L3YUKLVL-B7jdwbRL.js → chunk-L3YUKLVL-CD9nJYL8.js} +1 -1
- package/dist/client/assets/{chunk-MX3YWQON-DNcuP5dS.js → chunk-MX3YWQON-DqN0TF5Q.js} +1 -1
- package/dist/client/assets/{chunk-NQ4KR5QH-oaq5iS2W.js → chunk-NQ4KR5QH-BBX89uUa.js} +1 -1
- package/dist/client/assets/chunk-NU2UP6EN-CGeKI3BV.js +35 -0
- package/dist/client/assets/{chunk-O4XLMI2P-NI4OcSZ6.js → chunk-O4XLMI2P-DaS3COAu.js} +1 -1
- package/dist/client/assets/{chunk-OZEHJAEY-BevHLeQ0.js → chunk-OZEHJAEY-BaBXI-8x.js} +1 -1
- package/dist/client/assets/{chunk-PQ6SQG4A-fQ_Oml5n.js → chunk-PQ6SQG4A-BY9_Srs_.js} +1 -1
- package/dist/client/assets/{chunk-PU5JKC2W-Bp4H-mwZ.js → chunk-PU5JKC2W-t0zUh6E3.js} +1 -1
- package/dist/client/assets/chunk-QZHKN3VN-B0v4d-CS.js +1 -0
- package/dist/client/assets/{chunk-R5LLSJPH-CZzZlfdI.js → chunk-R5LLSJPH-BjSMFnTi.js} +1 -1
- package/dist/client/assets/{chunk-SRAX5OIU-CtUYAya6.js → chunk-SRAX5OIU-CC2mobFL.js} +1 -1
- package/dist/client/assets/{chunk-WL4C6EOR-DnV9nMco.js → chunk-WL4C6EOR-zSV-8h7F.js} +1 -1
- package/dist/client/assets/{chunk-XIRO2GV7-BnkmoLpc.js → chunk-XIRO2GV7-2tirYN5A.js} +1 -1
- package/dist/client/assets/{chunk-XPW4576I-DOk6pMat.js → chunk-XPW4576I-C0GpOUHf.js} +1 -1
- package/dist/client/assets/{chunk-XZSTWKYB-DZzfqgVn.js → chunk-XZSTWKYB-DDkpyNVE.js} +1 -1
- package/dist/client/assets/{chunk-YBOYWFTD-CrI5WFnC.js → chunk-YBOYWFTD-CzyyfGQX.js} +1 -1
- package/dist/client/assets/{chunk-Z5NKEFVG-EGvolisB.js → chunk-Z5NKEFVG-Dgem5v98.js} +1 -1
- package/dist/client/assets/classDiagram-VBA2DB6C-BQqG4q1b.js +1 -0
- package/dist/client/assets/classDiagram-v2-RAHNMMFH-BUKbprX1.js +1 -0
- package/dist/client/assets/clone-C-n46MFF.js +1 -0
- package/dist/client/assets/controls-CLpueX2m.css +1 -0
- package/dist/client/assets/{cose-bilkent-S5V4N54A-PcMOD_rX.js → cose-bilkent-S5V4N54A-jZzFUguD.js} +1 -1
- package/dist/client/assets/{cs-CZ-V77HGUP7-gpioT6mv.js → cs-CZ-V77HGUP7-DmZRJ2UO.js} +1 -1
- package/dist/client/assets/{da-DK-I5RFNTM4-CVv-_qu9.js → da-DK-I5RFNTM4-CRIiLQ-G.js} +1 -1
- package/dist/client/assets/dagre-KLK3FWXG-CAG8WeES.js +4 -0
- package/dist/client/assets/{dagre-BD9xHP_z.js → dagre-fvYjRtTE.js} +1 -1
- package/dist/client/assets/{de-CH-WLRDEVBV-CL0gsFEp.js → de-CH-WLRDEVBV-k728UA4j.js} +1 -1
- package/dist/client/assets/{de-DE-DTI4WUSC-BQO1SHIK.js → de-DE-DTI4WUSC-MFge9MC3.js} +1 -1
- package/dist/client/assets/diagram-E7M64L7V-Bm5FD0I5.js +24 -0
- package/dist/client/assets/diagram-IFDJBPK2-pqicH-av.js +43 -0
- package/dist/client/assets/diagram-P4PSJMXO-DwIXO27H.js +24 -0
- package/dist/client/assets/dist-3bQB_we3.js +1 -0
- package/dist/client/assets/dist-3uAMa5w5.js +1 -0
- package/dist/client/assets/{dist-Q6uG0wie.js → dist-B-02vKOA.js} +1 -1
- package/dist/client/assets/{dist-DzArd_Bk.js → dist-BLAlZer_.js} +1 -1
- package/dist/client/assets/dist-BVB8rn7o.js +1 -0
- package/dist/client/assets/{dist-DrNF924C.js → dist-Bc2ND6i3.js} +1 -1
- package/dist/client/assets/{dist-lbtQBzLu.js → dist-BqQjnEWr.js} +1 -1
- package/dist/client/assets/{dist-BQhICHxD.js → dist-BtnXjRx0.js} +1 -1
- package/dist/client/assets/{dist-Ciw3BJA2.js → dist-BzbYwa8m.js} +1 -1
- package/dist/client/assets/{dist-fkQ6urpt.js → dist-BzpfHRaE.js} +1 -1
- package/dist/client/assets/{dist-DhzldYic.js → dist-CGV1S_as.js} +1 -1
- package/dist/client/assets/dist-CL-jjdvG.js +1 -0
- package/dist/client/assets/{dist-WrbPKwPQ.js → dist-CXpKYW9s.js} +1 -1
- package/dist/client/assets/{dist-60g3bzYH.js → dist-CjII8VDS.js} +1 -1
- package/dist/client/assets/{dist-BiFbHWxc.js → dist-CsYRf4AV.js} +1 -1
- package/dist/client/assets/{dist-U9MIFRLF.js → dist-CxfohGIV.js} +1 -1
- package/dist/client/assets/{dist-D2m8lD1h.js → dist-D5QOYy7y.js} +1 -1
- package/dist/client/assets/{dist-CvMToPSN.js → dist-DIi0uqLJ.js} +1 -1
- package/dist/client/assets/dist-DJ16N7ol.js +1 -0
- package/dist/client/assets/dist-DUvaQ-Bj.js +1 -0
- package/dist/client/assets/{dist-yRVuIDKu.js → dist-DWJL3_bF.js} +6 -6
- package/dist/client/assets/dist-DsL7sqZR.js +1 -0
- package/dist/client/assets/{dist-DAwSRqIJ.js → dist-Dyt7n5Ui.js} +1 -1
- package/dist/client/assets/{dist-B2pRSR5A.js → dist-E_jPb93e.js} +1 -1
- package/dist/client/assets/{dist-EPRNBXHp.js → dist-O1z0Ayg0.js} +1 -1
- package/dist/client/assets/dist-OQE68wIX.js +1 -0
- package/dist/client/assets/dist-k47-Io7D.js +1 -0
- package/dist/client/assets/{dist-2HWwyMLA.js → dist-lDhnP-K1.js} +1 -1
- package/dist/client/assets/{dist-BZc5d15t.js → dist-rMhng5DK.js} +1 -1
- package/dist/client/assets/dist-xO1ImhKz.js +1 -0
- package/dist/client/assets/{dockerfile-Ci0-ApQC.js → dockerfile-C0qQqxf9.js} +1 -1
- package/dist/client/assets/drawio-editor-CTZtMo1J.js +9 -0
- package/dist/client/assets/drawio-editor-UQQ8XHou.css +1 -0
- package/dist/client/assets/drawioEditor-keSJVTcv.js +2 -0
- package/dist/client/assets/editor-session-C9l9XwVg.js +16 -0
- package/dist/client/assets/{el-GR-ZXDJ2OS4-DGa9DqWI.js → el-GR-ZXDJ2OS4-Bbz93mrG.js} +1 -1
- package/dist/client/assets/embedded-editor-base-DgmRcsR8.css +1 -0
- package/dist/client/assets/{en-CTDJDZ6K-DC-4I8h8.js → en-IQZW2TQM-CZeIyvu2.js} +1 -1
- package/dist/client/assets/{erDiagram-INFDFZHY-Dnub3poK.js → erDiagram-INFDFZHY-DlhPv4az.js} +1 -1
- package/dist/client/assets/{es-ES-DYQHAD43-Cox3GUnj.js → es-ES-DYQHAD43-CReXU-Nn.js} +1 -1
- package/dist/client/assets/{eu-ES-QDSYU5Y3-DrPM2uSX.js → eu-ES-QDSYU5Y3-jRpcaWwz.js} +1 -1
- package/dist/client/assets/excalidraw-editor-CBEWfuhb.js +9 -0
- package/dist/client/assets/excalidraw-editor-Dj3i59LW.css +1 -0
- package/dist/client/assets/{excalidraw-mermaid-stub-LpuTrLnr.js → excalidraw-mermaid-stub-efoh2lJm.js} +1 -1
- package/dist/client/assets/excalidraw-scene-BL-OtvCd.js +176 -0
- package/dist/client/assets/excalidrawEditor-Ws-fwGOc.js +2 -0
- package/dist/client/assets/export-page-B6xYnwy7.js +39 -0
- package/dist/client/assets/exportDocument-8JBw0p8O.js +2 -0
- package/dist/client/assets/exportDocument-CtX_4PSk.css +1 -0
- package/dist/client/assets/{fa-IR-26LZG4PM-ViTdxAWX.js → fa-IR-26LZG4PM-DP8pJ8e3.js} +1 -1
- package/dist/client/assets/{factor-DMvifS-k.js → factor-2uy-lXe_.js} +1 -1
- package/dist/client/assets/{fi-FI-6YS4KDE4-BTBRGd69.js → fi-FI-6YS4KDE4-BLUDpNOj.js} +1 -1
- package/dist/client/assets/{flowDiagram-PKNHOUZH-DF4dDV_8.js → flowDiagram-PKNHOUZH-BU4MOSq8.js} +1 -1
- package/dist/client/assets/{fr-FR-BRLLPTZC-z-POHcHJ.js → fr-FR-BRLLPTZC-BoZz3Pi8.js} +1 -1
- package/dist/client/assets/ganttDiagram-A5KZAMGK-CbX67lZu.js +292 -0
- package/dist/client/assets/gitGraph-HDMCJU4V-kkuqHGSM.js +1 -0
- package/dist/client/assets/gitGraphDiagram-K3NZZRJ6-DhyvWcW1.js +65 -0
- package/dist/client/assets/{gl-ES-OKUZTLYG-BQtfDFNk.js → gl-ES-OKUZTLYG-CaEvhjDi.js} +1 -1
- package/dist/client/assets/{graphlib-B7v-yqry.js → graphlib-DSzYgMXB.js} +1 -1
- package/dist/client/assets/{he-IL-26MGYIU7-Dyw-xS4W.js → he-IL-26MGYIU7-DYOchgy9.js} +1 -1
- package/dist/client/assets/{hi-IN-Q4ZOGTP2-BqENUkZA.js → hi-IN-Q4ZOGTP2-yRs8g46n.js} +1 -1
- package/dist/client/assets/{hu-HU-P2OXPSN5-D1HGK0_M.js → hu-HU-P2OXPSN5-1skPmtgc.js} +1 -1
- package/dist/client/assets/{id-ID-2EIKXYN6-BEjyfllL.js → id-ID-2EIKXYN6-iUugQJd9.js} +1 -1
- package/dist/client/assets/image-XLNPCCAD-B4wZgh-Y.js +1 -0
- package/dist/client/assets/index-CywRKxsk.js +2 -0
- package/dist/client/assets/index-R4OArFku.css +1 -0
- package/dist/client/assets/info-3K5VOQVL-DPN78whf.js +1 -0
- package/dist/client/assets/infoDiagram-LFFYTUFH-Bap6MyHX.js +2 -0
- package/dist/client/assets/{isEmpty-CLDc0Kt_.js → isEmpty-C7iPDOO3.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-PHBUUO56-CmO_FyHY.js → ishikawaDiagram-PHBUUO56-DbftskqN.js} +1 -1
- package/dist/client/assets/{it-IT-4CFKVXI2-C24G-VcQ.js → it-IT-4CFKVXI2-a5DFhzuI.js} +1 -1
- package/dist/client/assets/{ja-JP-MAND2Z4V-DLhvsdYk.js → ja-JP-MAND2Z4V-DwogHVKd.js} +1 -1
- package/dist/client/assets/javascript-8DvdgifH.js +1 -0
- package/dist/client/assets/{journeyDiagram-4ABVD52K-DF4HAYLk.js → journeyDiagram-4ABVD52K-165YoX6B.js} +1 -1
- package/dist/client/assets/{jsx-runtime-DJkgQklN.js → jsx-runtime-DiaMmmG6.js} +1 -1
- package/dist/client/assets/{kaa-HQRTCXTJ-DC8l3BuJ.js → kaa-HQRTCXTJ-p81XNRfH.js} +1 -1
- package/dist/client/assets/{kab-KAB-JKIKKTGH-DVFog4hd.js → kab-KAB-JKIKKTGH-mV5VzQZc.js} +1 -1
- package/dist/client/assets/{kanban-definition-K7BYSVSG-nQoJJABn.js → kanban-definition-K7BYSVSG-MlixoNyx.js} +1 -1
- package/dist/client/assets/{kk-KZ-HXQ63ZFC-CULUfwMg.js → kk-KZ-HXQ63ZFC-IIPX0GQv.js} +1 -1
- package/dist/client/assets/{km-KH-PKL3LSGX-CnLlEv7i.js → km-KH-PKL3LSGX-D7WQFJuZ.js} +1 -1
- package/dist/client/assets/{ko-KR-KXLREZX3-DNKXAYCx.js → ko-KR-KXLREZX3-Bs1oLtJs.js} +1 -1
- package/dist/client/assets/{ku-TR-MJ4IER3X-DLUiMa4h.js → ku-TR-MJ4IER3X-DlxOs6aZ.js} +1 -1
- package/dist/client/assets/{line-DvLjT0Gv.js → line-D57TbKb7.js} +1 -1
- package/dist/client/assets/{linear-CEb8O7zv.js → linear-BIf852wI.js} +1 -1
- package/dist/client/assets/{lt-LT-H6WFQ6FJ-CoFiurzb.js → lt-LT-H6WFQ6FJ-xuo-3zKH.js} +1 -1
- package/dist/client/assets/{lv-LV-GOCK6SJW-DzeEvHxX.js → lv-LV-GOCK6SJW-C7S3M1nr.js} +1 -1
- package/dist/client/assets/main-CB97rY6B.js +1213 -0
- package/dist/client/assets/mermaid-parser.core-lf87rdG-.js +4 -0
- package/dist/client/assets/{mermaid-runtime-DbCLD8Ih.js → mermaid-runtime-C4a7TrTS.js} +3 -3
- package/dist/client/assets/{mindmap-definition-YRQLILUH-DaMULsE9.js → mindmap-definition-YRQLILUH-_YbQSc4Q.js} +1 -1
- package/dist/client/assets/{mr-IN-IXVLDMEQ-C5i5R9H5.js → mr-IN-IXVLDMEQ-BsoowyZT.js} +1 -1
- package/dist/client/assets/{my-MM-YG6MYTTD-DvwceqO-.js → my-MM-YG6MYTTD-DCqwN_K_.js} +1 -1
- package/dist/client/assets/navigation-Du6CLhvs.css +1 -0
- package/dist/client/assets/{nb-NO-XGWJISD2-BUhX8hX0.js → nb-NO-XGWJISD2-CZ5ytLgj.js} +1 -1
- package/dist/client/assets/{nl-NL-XVDVCPNC-BV6Y0-Q0.js → nl-NL-XVDVCPNC-wADsdb-h.js} +1 -1
- package/dist/client/assets/{nn-NO-EMX5MJX5-CF_bB9Jq.js → nn-NO-EMX5MJX5-D9zIKTL2.js} +1 -1
- package/dist/client/assets/{nsis-42hkxqLx.js → nsis-CUd4RnvJ.js} +1 -1
- package/dist/client/assets/{oc-FR-ROEINTVO-CiNI8fg8.js → oc-FR-ROEINTVO-BSbBugJB.js} +1 -1
- package/dist/client/assets/{ordinal-fW5lWpNM.js → ordinal-B0PAtOQ6.js} +1 -1
- package/dist/client/assets/{pa-IN-ZYN6SUDY-CsbIU150.js → pa-IN-ZYN6SUDY-1pFA_3Pb.js} +1 -1
- package/dist/client/assets/packet-RMMSAZCW-BymvQ5cQ.js +1 -0
- package/dist/client/assets/percentages-5DKR754L-CiI2D7zA.js +1 -0
- package/dist/client/assets/{pica-BbcTjVoI.js → pica-By-YDy_B.js} +1 -1
- package/dist/client/assets/pie-UPGHQEXC-MmzJzWOE.js +1 -0
- package/dist/client/assets/pieDiagram-SKSYHLDU-CqCgXFom.js +30 -0
- package/dist/client/assets/{pl-PL-6VTG7PHC-D1Nnx7R3.js → pl-PL-6VTG7PHC-DyYw0u_z.js} +1 -1
- package/dist/client/assets/preview-diagram-utils-Dc83ucbv.js +1 -0
- package/dist/client/assets/preview-render-compiler-TmHpBDlh.js +1 -0
- package/dist/client/assets/preview-render-compiler-aYpnXmNm.js +35 -0
- package/dist/client/assets/{preview-render-profile-DQsam_Ol.js → preview-render-profile-DPzmho7I.js} +1 -1
- package/dist/client/assets/preview-render-worker-BVbVXXPS.js +59 -0
- package/dist/client/assets/{pt-BR-5YFKRR5G-DEDTeWEP.js → pt-BR-5YFKRR5G-DJCCBBDl.js} +1 -1
- package/dist/client/assets/{pt-PT-GEIXXZ67-BpqPVZom.js → pt-PT-GEIXXZ67-BPJd09Ax.js} +1 -1
- package/dist/client/assets/{pug-BANqyQJ9.js → pug-BqBF8qF7.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-337W2JSQ-DjPGrcJM.js → quadrantDiagram-337W2JSQ-B8eMuhg4.js} +1 -1
- package/dist/client/assets/{quick-switcher-controller-n6Jhu3Z9.js → quick-switcher-controller-DplOTsT3.js} +1 -1
- package/dist/client/assets/radar-KQ55EAFF-CCohASSY.js +1 -0
- package/dist/client/assets/{requirementDiagram-Z7DCOOCP-BmiYAMKV.js → requirementDiagram-Z7DCOOCP-B6POvqz4.js} +1 -1
- package/dist/client/assets/{ro-RO-E2P6TFZI-4vRM1jVT.js → ro-RO-E2P6TFZI-DWVyTV7V.js} +1 -1
- package/dist/client/assets/{room-DyhEnogt.js → room-COWSP--i.js} +1 -1
- package/dist/client/assets/{ru-RU-YBIIY43T-Cfbhz4Ew.js → ru-RU-YBIIY43T-Dyar7CYM.js} +1 -1
- package/dist/client/assets/runtime-config-CqX_f_Q4.js +1 -0
- package/dist/client/assets/{sankeyDiagram-WA2Y5GQK-BEoPAlcC.js → sankeyDiagram-WA2Y5GQK-CXRga6Op.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-2WXFIKYE-BXqojuDS.js → sequenceDiagram-2WXFIKYE-CeSFlFx5.js} +1 -1
- package/dist/client/assets/{si-LK-673C2CI2-0muNkOEn.js → si-LK-673C2CI2-C61aLrIy.js} +1 -1
- package/dist/client/assets/{sk-SK-CKZHQ4AP-EnLgxyJL.js → sk-SK-CKZHQ4AP-BlFwOxRD.js} +1 -1
- package/dist/client/assets/{sl-SI-557H2GWM-BN6npqVj.js → sl-SI-557H2GWM-DcAVW-_t.js} +1 -1
- package/dist/client/assets/{src-DUDi_GeV.js → src-E3c2cohN.js} +1 -1
- package/dist/client/assets/stateDiagram-RAJIS63D-DbewhqwJ.js +1 -0
- package/dist/client/assets/stateDiagram-v2-FVOUBMTO-DbW-jVkS.js +1 -0
- package/dist/client/assets/states-P2LsGDDn.css +1 -0
- package/dist/client/assets/subset-shared.chunk-CC_u8ICU.js +1 -0
- package/dist/client/assets/{subset-worker.chunk-1FoL7eL0.js → subset-worker.chunk-DVGT6bvR.js} +1 -1
- package/dist/client/assets/{sv-SE-XOPKKDWS-D3VSs2SQ.js → sv-SE-XOPKKDWS-BkhfOHzh.js} +1 -1
- package/dist/client/assets/{ta-IN-XBH7DQI3-BKR1mqfo.js → ta-IN-XBH7DQI3-BIfwglZa.js} +1 -1
- package/dist/client/assets/{th-TH-TOCWH3R4-Bek1dQcW.js → th-TH-TOCWH3R4-CkrxqVkf.js} +1 -1
- package/dist/client/assets/{timeline-definition-YZTLITO2-BP09qqIh.js → timeline-definition-YZTLITO2-BXBHNWLQ.js} +1 -1
- package/dist/client/assets/{tr-TR-GXW6CYY5-xdLb7Dgi.js → tr-TR-GXW6CYY5-CDdvG9rD.js} +1 -1
- package/dist/client/assets/treemap-KZPCXAKY-9kxB0uNY.js +1 -0
- package/dist/client/assets/{uk-UA-IJKTNUDG-Cd0AhTti.js → uk-UA-IJKTNUDG-DRHp0lWp.js} +1 -1
- package/dist/client/assets/{uz-UZ-TBZZEA4V-DQH4e-QC.js → uz-UZ-TBZZEA4V-BIn-VE3Y.js} +1 -1
- package/dist/client/assets/vault-api-client-DIaCC56H.js +1 -0
- package/dist/client/assets/vault-api-client-De7kMvrE.css +1 -0
- package/dist/client/assets/{vennDiagram-LZ73GAT5-BvSlhnT0.js → vennDiagram-LZ73GAT5-C1hrSbf2.js} +1 -1
- package/dist/client/assets/{vi-VN-MULSGNVB-BYDcPrAo.js → vi-VN-MULSGNVB-Du7t5I0v.js} +1 -1
- package/dist/client/assets/{xychartDiagram-JWTSCODW-BvZ78F0j.js → xychartDiagram-JWTSCODW-DhpWp8LV.js} +1 -1
- package/dist/client/assets/yjs-provider-reset-guard-DWGhQClh.js +4 -0
- package/dist/client/assets/{zh-CN-MVX3E32U-BqZQ-18-.js → zh-CN-MVX3E32U-RcjS3rjt.js} +1 -1
- package/dist/client/assets/{zh-HK-JNU5RLIE-CbF8Agwa.js → zh-HK-JNU5RLIE-g8UeEw5v.js} +1 -1
- package/dist/client/assets/{zh-TW-LENVCA6T-CepoVycx.js → zh-TW-LENVCA6T-DwV25BqC.js} +1 -1
- package/dist/client/drawio-editor.html +4 -26
- package/dist/client/excalidraw-editor.html +4 -19
- package/dist/client/export-document.html +29 -0
- package/dist/client/index.html +7 -445
- package/docker-compose.yml +1 -0
- package/package.json +26 -22
- package/src/client/app/drawio-editor.html +1 -23
- package/src/client/app/excalidraw-editor.html +1 -16
- package/src/client/app/export-document-entry.js +25 -0
- package/src/client/app/export-document.html +24 -0
- package/src/client/app/index.html +1 -441
- package/src/client/app/main-entry.js +2 -0
- package/src/client/application/app-shell/export-feature.js +39 -0
- package/src/client/application/app-shell/ui-feature-shell.js +112 -17
- package/src/client/application/app-shell/ui-feature-toolbar.js +26 -4
- package/src/client/application/app-shell/workspace-feature.js +31 -3
- package/src/client/application/app-shell-elements.js +5 -0
- package/src/client/application/diagram-preview-hydrator.js +1 -1
- package/src/client/application/markdown-frontmatter.js +152 -0
- package/src/client/application/preview-render-compiler.js +16 -4
- package/src/client/application/preview-render-executor.js +8 -1
- package/src/client/application/preview-render-worker.js +4 -0
- package/src/client/application/preview-renderer.js +51 -1
- package/src/client/application/workspace-chrome-controller.js +3 -1
- package/src/client/application/workspace-coordinator.js +8 -1
- package/src/client/application/workspace-preview-controller.js +9 -3
- package/src/client/application/workspace-state-store.js +1 -0
- package/src/client/bootstrap/collabmd-app-shell.js +13 -1
- package/src/client/domain/markdown-formatting.js +1 -1
- package/src/client/domain/markdown-toolbar-actions.js +36 -0
- package/src/client/drawio-editor.js +4 -1
- package/src/client/excalidraw-editor.js +8 -0
- package/src/client/export/export-host.js +193 -0
- package/src/client/export/export-page.js +60 -0
- package/src/client/export/export-pipeline.js +1412 -0
- package/src/client/export/export-print-layout.js +50 -0
- package/src/client/infrastructure/auth-client.js +2 -203
- package/src/client/infrastructure/editor-session.js +12 -0
- package/src/client/infrastructure/editor-view-adapter.js +70 -2
- package/src/client/infrastructure/excalidraw-room-client.js +12 -4
- package/src/client/presentation/app-shell-renderer.js +13 -0
- package/src/client/presentation/app-shell-template.js +605 -0
- package/src/client/presentation/comment-ui/comment-ui-card.js +32 -10
- package/src/client/presentation/comments-panel.js +5 -3
- package/src/client/presentation/components/ui/badge.js +24 -0
- package/src/client/presentation/components/ui/button.js +78 -0
- package/src/client/presentation/components/ui/class-names.js +30 -0
- package/src/client/presentation/components/ui/ensure-ui-component-styles.js +18 -0
- package/src/client/presentation/components/ui/input.js +9 -0
- package/src/client/presentation/components/ui/segmented-control.js +31 -0
- package/src/client/presentation/create-menu-presenter.js +10 -2
- package/src/client/presentation/file-action-controller.js +5 -6
- package/src/client/presentation/file-explorer-view.js +9 -2
- package/src/client/presentation/file-history-view-controller.js +4 -3
- package/src/client/presentation/git-diff-view-controller.js +9 -11
- package/src/client/presentation/git-panel-controller.js +10 -8
- package/src/client/presentation/layout-controller.js +34 -4
- package/src/client/styles/base.css +5 -0
- package/src/client/styles/components/actions.css +6 -0
- package/src/client/styles/components/navigation.css +1 -0
- package/src/client/styles/export-document.css +250 -0
- package/src/client/styles/features/auth-gate.css +182 -0
- package/src/client/styles/features/git-branch.css +30 -2
- package/src/client/styles/features/preview-markdown.css +145 -4
- package/src/client/styles/layout/editor-page.css +101 -3
- package/src/client/styles/layout/responsive.css +97 -7
- package/src/client/styles/layout/shell.css +6 -0
- package/src/client/styles/layout/sidebar.css +1 -1
- package/src/client/styles/overrides/codemirror.css +74 -0
- package/src/client/styles/primitives/controls.css +22 -31
- package/src/client/styles/style.css +0 -4
- package/src/client/styles/surfaces/drawio-editor.css +104 -0
- package/src/client/styles/surfaces/embedded-editor-base.css +23 -0
- package/src/client/styles/surfaces/excalidraw-editor.css +16 -0
- package/src/server/auth/create-auth-service.js +32 -6
- package/src/server/config/env.js +27 -0
- package/src/server/config/perf-logging.js +39 -0
- package/src/server/create-app-server.js +105 -5
- package/src/server/domain/backlink-index.js +31 -7
- package/src/server/domain/collaboration/collaboration-room.js +28 -5
- package/src/server/domain/docx-exporter.js +62 -0
- package/src/server/infrastructure/git/history-service.js +1 -1
- package/src/server/infrastructure/http/create-request-handler.js +2 -0
- package/src/server/infrastructure/http/create-vault-api-command-handler.js +59 -1
- package/src/server/infrastructure/http/create-vault-api-handler.js +2 -0
- package/src/server/infrastructure/http/request-body.js +2 -2
- package/src/server/infrastructure/persistence/pull-backup-store.js +1 -1
- package/src/server/infrastructure/persistence/vault-file-store.js +74 -31
- package/src/server/infrastructure/workspace/file-system-sync-service.js +46 -12
- package/src/server/infrastructure/workspace/workspace-mutation-coordinator.js +32 -7
- package/src/server/shared/async-utils.js +25 -0
- package/dist/client/assets/architecture-PBZL5I3N-C1Yv7agI.js +0 -1
- package/dist/client/assets/architectureDiagram-2XIMDMQ5-T__yxKk2.js +0 -36
- package/dist/client/assets/channel-DBZin7O0.js +0 -1
- package/dist/client/assets/chunk-27N2SPOM-CyIruM79.js +0 -34
- package/dist/client/assets/chunk-GLR3WWYH-FplqAopN.js +0 -2
- package/dist/client/assets/chunk-HHEYEP7N-Bv_FKHmu.js +0 -1
- package/dist/client/assets/chunk-QZHKN3VN-Blawx8vd.js +0 -1
- package/dist/client/assets/classDiagram-VBA2DB6C-CreQafQu.js +0 -1
- package/dist/client/assets/classDiagram-v2-RAHNMMFH-BIYHzbiv.js +0 -1
- package/dist/client/assets/clone-C3ajWNce.js +0 -1
- package/dist/client/assets/dagre-KLK3FWXG-Ct1xwvCC.js +0 -4
- package/dist/client/assets/diagram-E7M64L7V-DkHzt94k.js +0 -24
- package/dist/client/assets/diagram-IFDJBPK2-D4g8afpU.js +0 -43
- package/dist/client/assets/diagram-P4PSJMXO-DVwwx6ED.js +0 -24
- package/dist/client/assets/dist-BS6yAJ9F.js +0 -1
- package/dist/client/assets/dist-BUnp4fHW.js +0 -1
- package/dist/client/assets/dist-BWEDjv8G.js +0 -1
- package/dist/client/assets/dist-BdtPRC1F.js +0 -1
- package/dist/client/assets/dist-BlhsMbAl.js +0 -1
- package/dist/client/assets/dist-CLsz2DCg.js +0 -1
- package/dist/client/assets/dist-DZD5y4h6.js +0 -1
- package/dist/client/assets/dist-_L_gn5XE.js +0 -1
- package/dist/client/assets/dist-a6bFAbQd.js +0 -1
- package/dist/client/assets/dist-naAaVPPS.js +0 -1
- package/dist/client/assets/drawio-editor-BW2z4NH2.js +0 -9
- package/dist/client/assets/drawioEditor-DgoA4Zqi.js +0 -2
- package/dist/client/assets/editor-session-xPvmulmt.js +0 -16
- package/dist/client/assets/excalidraw-editor-BAYca95w.js +0 -182
- package/dist/client/assets/excalidraw-editor-D8O7A69r.css +0 -1
- package/dist/client/assets/excalidrawEditor-BY5rq_Bn.js +0 -2
- package/dist/client/assets/ganttDiagram-A5KZAMGK-CwrN53Gu.js +0 -292
- package/dist/client/assets/gitGraph-HDMCJU4V-DbS2XnWK.js +0 -1
- package/dist/client/assets/gitGraphDiagram-K3NZZRJ6-BV9w0K-N.js +0 -65
- package/dist/client/assets/image-32MOCVDX-BBXPyAeU.js +0 -1
- package/dist/client/assets/index-D4FS-o13.js +0 -2
- package/dist/client/assets/index-DRgeOr4A.css +0 -1
- package/dist/client/assets/info-3K5VOQVL-Bre4VStM.js +0 -1
- package/dist/client/assets/infoDiagram-LFFYTUFH-CuUbZqrG.js +0 -2
- package/dist/client/assets/javascript-DdEc60Aj.js +0 -1
- package/dist/client/assets/main-Q1xvhoqP.js +0 -600
- package/dist/client/assets/mermaid-parser.core-DllATXd7.js +0 -4
- package/dist/client/assets/packet-RMMSAZCW-B7lnOkip.js +0 -1
- package/dist/client/assets/percentages-5DKR754L-Dp1vwDEq.js +0 -1
- package/dist/client/assets/pie-UPGHQEXC-D0gHdMgb.js +0 -1
- package/dist/client/assets/pieDiagram-SKSYHLDU-BPFp1WBd.js +0 -30
- package/dist/client/assets/preview-render-compiler-BYiRMsPq.js +0 -1
- package/dist/client/assets/preview-render-worker-CcASh3y3.js +0 -23
- package/dist/client/assets/radar-KQ55EAFF-D48du2CB.js +0 -1
- package/dist/client/assets/stateDiagram-RAJIS63D-DTR2sQs8.js +0 -1
- package/dist/client/assets/stateDiagram-v2-FVOUBMTO-BwVII-kJ.js +0 -1
- package/dist/client/assets/subset-shared.chunk-C6pUl_Oh.js +0 -1
- package/dist/client/assets/treemap-KZPCXAKY-BBRObSiT.js +0 -1
- package/dist/client/assets/vault-api-client-fFJfUVXM.js +0 -188
- package/dist/client/assets/yjs-provider-reset-guard-Cj00kgyM.js +0 -4
- /package/dist/client/assets/{apl-CJPt5sW7.js → apl-QJCYYBkj.js} +0 -0
- /package/dist/client/assets/{array-e43ctQmx.js → array-DwdVlTkF.js} +0 -0
- /package/dist/client/assets/{asciiarmor-D0oCypDs.js → asciiarmor-DNy0UPqh.js} +0 -0
- /package/dist/client/assets/{asn1-8xgVfRoq.js → asn1-CNPXj-s7.js} +0 -0
- /package/dist/client/assets/{asterisk-B5kv5AQp.js → asterisk-BwMdLpT2.js} +0 -0
- /package/dist/client/assets/{brainfuck-Dh7M1Ucz.js → brainfuck-C2gHT8aA.js} +0 -0
- /package/dist/client/assets/{chunk-3PELD44J-D4qJ8fq7.js → chunk-3PELD44J-CL87tpFo.js} +0 -0
- /package/dist/client/assets/{chunk-A66AFZZU-CJuwmF1m.js → chunk-A66AFZZU-DuceaGnc.js} +0 -0
- /package/dist/client/assets/{chunk-D-fkvfCP.js → chunk-DpHwWhuW.js} +0 -0
- /package/dist/client/assets/{clike-zYz_LEkw.js → clike-D5X7HJpo.js} +0 -0
- /package/dist/client/assets/{clojure-CdWlIeQh.js → clojure-BEDKZv_5.js} +0 -0
- /package/dist/client/assets/{cmake-wWuF5ifR.js → cmake-Y3shE7av.js} +0 -0
- /package/dist/client/assets/{cobol-D3WLbLVy.js → cobol-f-3TLk62.js} +0 -0
- /package/dist/client/assets/{coffeescript-DRtt-5a2.js → coffeescript-C0XA9-xa.js} +0 -0
- /package/dist/client/assets/{commonlisp-DJV75lsU.js → commonlisp-BOB6sIEu.js} +0 -0
- /package/dist/client/assets/{crystal-C7mEw92C.js → crystal-ByNgE_My.js} +0 -0
- /package/dist/client/assets/{css-_6KgQwpu.js → css-eaI-ENiR.js} +0 -0
- /package/dist/client/assets/{cypher-B3uWx7jm.js → cypher-CQ-dGGSi.js} +0 -0
- /package/dist/client/assets/{cytoscape.esm-BbbuX1pV.js → cytoscape.esm-DBDRhUia.js} +0 -0
- /package/dist/client/assets/{d-D3kOh3JF.js → d-D9pnu4Cr.js} +0 -0
- /package/dist/client/assets/{defaultLocale-DTn6RiRA.js → defaultLocale-BWgun1yJ.js} +0 -0
- /package/dist/client/assets/{diff-CoamybWh.js → diff-z9q33Lo6.js} +0 -0
- /package/dist/client/assets/{drawio-room-D6352KkV.js → drawio-room-C592VDk7.js} +0 -0
- /package/dist/client/assets/{dtd-BjGQwMWL.js → dtd-BDizf_te.js} +0 -0
- /package/dist/client/assets/{dylan-B9W3X2GI.js → dylan-Bk__XCKW.js} +0 -0
- /package/dist/client/assets/{ebnf-d5D0otVn.js → ebnf-SzN4Kxtp.js} +0 -0
- /package/dist/client/assets/{ecl-C5Q_IBPt.js → ecl-5ulxiKbt.js} +0 -0
- /package/dist/client/assets/{eiffel-BQA_6I3b.js → eiffel-Bhoaqbb6.js} +0 -0
- /package/dist/client/assets/{elm-unPS17vB.js → elm-C3je846J.js} +0 -0
- /package/dist/client/assets/{erlang-R8nOsUTx.js → erlang-Cgk9SIAz.js} +0 -0
- /package/dist/client/assets/{excalidraw-mermaid-stub-BJq3n7pR.js → excalidraw-mermaid-stub-B_2dv3Ll.js} +0 -0
- /package/dist/client/assets/{fcl-CVAfW9wK.js → fcl-dvkZwp9p.js} +0 -0
- /package/dist/client/assets/{forth-DHbsK8X8.js → forth-DmfSa3jN.js} +0 -0
- /package/dist/client/assets/{fortran-4jMwxW9-.js → fortran-BsZAiNnN.js} +0 -0
- /package/dist/client/assets/{gas-zC_XGrQT.js → gas-DBpKE9ut.js} +0 -0
- /package/dist/client/assets/{gherkin-CPBQou3u.js → gherkin-CceEbBs7.js} +0 -0
- /package/dist/client/assets/{groovy-Cqopym0q.js → groovy-CxJnDvES.js} +0 -0
- /package/dist/client/assets/{haskell-imzbNPgF.js → haskell-CUSb34Xy.js} +0 -0
- /package/dist/client/assets/{haxe-Doh225Ku.js → haxe-6EHO_h-N.js} +0 -0
- /package/dist/client/assets/{http-j4R5uEso.js → http-C3qcBpvG.js} +0 -0
- /package/dist/client/assets/{idl-l9d1__Hj.js → idl-C95wIO2I.js} +0 -0
- /package/dist/client/assets/{image-blob-reduce.esm-CQfEe3_g.js → image-blob-reduce.esm-BaW4gpT9.js} +0 -0
- /package/dist/client/assets/{init-207s1ipc.js → init-Bjj5fg68.js} +0 -0
- /package/dist/client/assets/{isArrayLikeObject-ZCMZRndo.js → isArrayLikeObject-Cmt1CYnI.js} +0 -0
- /package/dist/client/assets/{javascript-9dQYqEHJ.js → javascript-aWB87b1w.js} +0 -0
- /package/dist/client/assets/{julia-ByGjwiLn.js → julia-DF9PPAXG.js} +0 -0
- /package/dist/client/assets/{katex-XOVNa2d9.js → katex-BPsFnA3D.js} +0 -0
- /package/dist/client/assets/{livescript-B8l2m7xO.js → livescript-CnOyWwUY.js} +0 -0
- /package/dist/client/assets/{lua-DrfAKnQQ.js → lua-a0rEq19C.js} +0 -0
- /package/dist/client/assets/{math-BlD6rf4Z.js → math-BaavbII8.js} +0 -0
- /package/dist/client/assets/{mathematica-DYk_2Ik_.js → mathematica-CKUq0Ojc.js} +0 -0
- /package/dist/client/assets/{mbox-BOzVHzVt.js → mbox-a-u2PLog.js} +0 -0
- /package/dist/client/assets/{mirc-DStbUCmv.js → mirc-BOd43sOX.js} +0 -0
- /package/dist/client/assets/{mllike-BmhQglqS.js → mllike-fHruGivh.js} +0 -0
- /package/dist/client/assets/{modelica-ZElxtbqD.js → modelica-B0NJqf1C.js} +0 -0
- /package/dist/client/assets/{mscgen-f-YxHPr0.js → mscgen-DJZ33SrF.js} +0 -0
- /package/dist/client/assets/{mumps-B79RJJhR.js → mumps-DvMvHTxU.js} +0 -0
- /package/dist/client/assets/{nginx-c--axfuP.js → nginx-BVAs8laz.js} +0 -0
- /package/dist/client/assets/{ntriples-CgD4YZZC.js → ntriples-DrdyAZU1.js} +0 -0
- /package/dist/client/assets/{octave-BQk-bCrp.js → octave-_YqJ0g7E.js} +0 -0
- /package/dist/client/assets/{oz-DPCSPrx5.js → oz-k7T3LoMr.js} +0 -0
- /package/dist/client/assets/{pascal-C1iGzZ53.js → pascal-CftsTvte.js} +0 -0
- /package/dist/client/assets/{path-CDSE7Nw0.js → path-BUmMWM1-.js} +0 -0
- /package/dist/client/assets/{perl-DQ3L8ffg.js → perl-CbsLFc7A.js} +0 -0
- /package/dist/client/assets/{pig-B4S8acys.js → pig-C-jTwMS-.js} +0 -0
- /package/dist/client/assets/{powershell-BhSVdaeY.js → powershell-DqXLgSHX.js} +0 -0
- /package/dist/client/assets/{preload-helper-I1wKxk_B.js → preload-helper-Bo9GmnuQ.js} +0 -0
- /package/dist/client/assets/{properties-B2nfdtxE.js → properties-05jaw55P.js} +0 -0
- /package/dist/client/assets/{protobuf-BFW_iwVN.js → protobuf-DThTsZQN.js} +0 -0
- /package/dist/client/assets/{puppet-C1-CkyhQ.js → puppet-DuHxMpoj.js} +0 -0
- /package/dist/client/assets/{python-CYXPDD4I.js → python-BiE2VHJI.js} +0 -0
- /package/dist/client/assets/{q-Bub5Xmxm.js → q-DH46YfNw.js} +0 -0
- /package/dist/client/assets/{r-C59ONZO2.js → r-DmEm46kJ.js} +0 -0
- /package/dist/client/assets/{rough.esm-xhKrnp4d.js → rough.esm-jZQkcmER.js} +0 -0
- /package/dist/client/assets/{roundRect-CTz-kxJH.js → roundRect-CI6UmGg6.js} +0 -0
- /package/dist/client/assets/{rpm-DiM-R-wd.js → rpm-DILIIbRB.js} +0 -0
- /package/dist/client/assets/{ruby-DTqG95KX.js → ruby-2LcnHEMS.js} +0 -0
- /package/dist/client/assets/{runtime-config-loader-DwWsKc1-.js → runtime-config-loader-_D2KZKn-.js} +0 -0
- /package/dist/client/assets/{sas-BjdhmGHX.js → sas-Bn81MKuB.js} +0 -0
- /package/dist/client/assets/{scheme-CWNdoI17.js → scheme-B8kPNbgd.js} +0 -0
- /package/dist/client/assets/{shell-iaorleRB.js → shell-CGj6v8kb.js} +0 -0
- /package/dist/client/assets/{sieve-D8m9Etmd.js → sieve-CfVNFN1K.js} +0 -0
- /package/dist/client/assets/{simple-mode-kdHrpFjq.js → simple-mode-_FSHdiXs.js} +0 -0
- /package/dist/client/assets/{smalltalk-28WS1mUj.js → smalltalk-BpIFyCPt.js} +0 -0
- /package/dist/client/assets/{solr-x8qQ6eAP.js → solr-B7iFaetn.js} +0 -0
- /package/dist/client/assets/{sparql-BvLmi7B6.js → sparql-COhgMTFK.js} +0 -0
- /package/dist/client/assets/{spreadsheet-BuqSwScP.js → spreadsheet-BzuffEeg.js} +0 -0
- /package/dist/client/assets/{sql-B8tBavZM.js → sql-13lT5zDl.js} +0 -0
- /package/dist/client/assets/{stex-Bx4bLPxI.js → stex-BRSfZZYG.js} +0 -0
- /package/dist/client/assets/{stylus-CMEhEjuV.js → stylus-fFo0QRk_.js} +0 -0
- /package/dist/client/assets/{swift-wY9II8hY.js → swift-wb5gyb6a.js} +0 -0
- /package/dist/client/assets/{tcl-BGywDEsi.js → tcl-BJA7GgWY.js} +0 -0
- /package/dist/client/assets/{textile-K_mvsehZ.js → textile-BQjiYu-x.js} +0 -0
- /package/dist/client/assets/{tiddlywiki-BrpeQ34q.js → tiddlywiki-D2vUXB6n.js} +0 -0
- /package/dist/client/assets/{tiki-z2eQQPgI.js → tiki-BFhpdznG.js} +0 -0
- /package/dist/client/assets/{toml-Dcu7S7XA.js → toml-DN06iQUw.js} +0 -0
- /package/dist/client/assets/{troff-Djlumm7T.js → troff-DuQfjhPH.js} +0 -0
- /package/dist/client/assets/{ttcn-XqU6tthJ.js → ttcn-BCTy6d50.js} +0 -0
- /package/dist/client/assets/{ttcn-cfg-BzD0wr3i.js → ttcn-cfg-BYnZQqGa.js} +0 -0
- /package/dist/client/assets/{turtle-DcjXkx6M.js → turtle-BvN-Me9x.js} +0 -0
- /package/dist/client/assets/{vault-utils-BM4i-Ofm.js → vault-utils-BW53lKl1.js} +0 -0
- /package/dist/client/assets/{vb-DV4y2QrD.js → vb-DYk3wW9u.js} +0 -0
- /package/dist/client/assets/{vbscript-BS8DsYJ_.js → vbscript-BKI61VS6.js} +0 -0
- /package/dist/client/assets/{velocity-CS6Ly2yV.js → velocity-BrtitHHA.js} +0 -0
- /package/dist/client/assets/{verilog-DbEC7ose.js → verilog-CjUx3yiL.js} +0 -0
- /package/dist/client/assets/{vhdl-DBLrW9bF.js → vhdl-CPWwYF4V.js} +0 -0
- /package/dist/client/assets/{webidl-CnE8KY-y.js → webidl-PiVOzma8.js} +0 -0
- /package/dist/client/assets/{xquery--K5Za5EW.js → xquery-CiTzM_oK.js} +0 -0
- /package/dist/client/assets/{yacas-ClQfYBmX.js → yacas-4QS9CntY.js} +0 -0
- /package/dist/client/assets/{z80-Dr2oR3X2.js → z80-BxidrTKR.js} +0 -0
|
@@ -13,6 +13,7 @@ export class PreviewRenderer {
|
|
|
13
13
|
getSourceFilePath,
|
|
14
14
|
onAfterRenderCommit,
|
|
15
15
|
onBeforeRenderCommit,
|
|
16
|
+
onPreviewLayoutChange,
|
|
16
17
|
onRenderComplete,
|
|
17
18
|
outlineController,
|
|
18
19
|
previewContainer,
|
|
@@ -23,6 +24,7 @@ export class PreviewRenderer {
|
|
|
23
24
|
this.getSourceFilePath = getSourceFilePath;
|
|
24
25
|
this.onAfterRenderCommit = onAfterRenderCommit;
|
|
25
26
|
this.onBeforeRenderCommit = onBeforeRenderCommit;
|
|
27
|
+
this.onPreviewLayoutChange = onPreviewLayoutChange;
|
|
26
28
|
this.onRenderComplete = onRenderComplete;
|
|
27
29
|
this.outlineController = outlineController;
|
|
28
30
|
this.previewContainer = previewContainer;
|
|
@@ -35,8 +37,18 @@ export class PreviewRenderer {
|
|
|
35
37
|
this.currentStats = null;
|
|
36
38
|
this.isLargeDocument = false;
|
|
37
39
|
this.hydrationPaused = false;
|
|
40
|
+
this.frontmatterCollapsed = false;
|
|
38
41
|
|
|
39
42
|
this.handlePreviewClick = (event) => {
|
|
43
|
+
const frontmatterToggle = event.target.closest('.frontmatter-toggle');
|
|
44
|
+
if (frontmatterToggle) {
|
|
45
|
+
event.preventDefault();
|
|
46
|
+
this.frontmatterCollapsed = !this.frontmatterCollapsed;
|
|
47
|
+
this.applyFrontmatterState();
|
|
48
|
+
this.handleFrontmatterLayoutChange();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
40
52
|
const mermaidButton = event.target.closest('.mermaid-placeholder-btn');
|
|
41
53
|
if (mermaidButton) {
|
|
42
54
|
const shell = mermaidButton.closest('.mermaid-shell');
|
|
@@ -134,6 +146,7 @@ export class PreviewRenderer {
|
|
|
134
146
|
this.readyRenderVersion = 0;
|
|
135
147
|
this.currentStats = null;
|
|
136
148
|
this.isLargeDocument = false;
|
|
149
|
+
this.frontmatterCollapsed = false;
|
|
137
150
|
if (this.renderExecutor.hasPendingJob()) {
|
|
138
151
|
this.resetWorker('Document changed');
|
|
139
152
|
}
|
|
@@ -272,7 +285,10 @@ export class PreviewRenderer {
|
|
|
272
285
|
}
|
|
273
286
|
|
|
274
287
|
async compilePreview(markdownText, renderVersion) {
|
|
275
|
-
return this.renderExecutor.compile(markdownText, renderVersion
|
|
288
|
+
return this.renderExecutor.compile(markdownText, renderVersion, {
|
|
289
|
+
frontmatterCollapsed: this.frontmatterCollapsed,
|
|
290
|
+
frontmatterInteractive: true,
|
|
291
|
+
});
|
|
276
292
|
}
|
|
277
293
|
|
|
278
294
|
commitBaseRender({ html, stats }, renderVersion) {
|
|
@@ -294,6 +310,7 @@ export class PreviewRenderer {
|
|
|
294
310
|
if (renderHost) {
|
|
295
311
|
renderHost.innerHTML = html;
|
|
296
312
|
}
|
|
313
|
+
this.applyFrontmatterState();
|
|
297
314
|
this.reconcileHydratedMermaids();
|
|
298
315
|
this.reconcileHydratedPlantUmls();
|
|
299
316
|
this.setPhase('base');
|
|
@@ -313,6 +330,39 @@ export class PreviewRenderer {
|
|
|
313
330
|
}
|
|
314
331
|
}
|
|
315
332
|
|
|
333
|
+
applyFrontmatterState() {
|
|
334
|
+
const block = this.renderHost?.querySelector?.('.frontmatter-block');
|
|
335
|
+
if (!(block instanceof HTMLElement)) {
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
const collapsed = this.frontmatterCollapsed;
|
|
340
|
+
const toggle = block.querySelector('.frontmatter-toggle');
|
|
341
|
+
const summary = block.querySelector('.frontmatter-summary');
|
|
342
|
+
const content = block.querySelector('.frontmatter-content');
|
|
343
|
+
|
|
344
|
+
block.dataset.collapsed = collapsed ? 'true' : 'false';
|
|
345
|
+
if (toggle instanceof HTMLButtonElement) {
|
|
346
|
+
toggle.setAttribute('aria-expanded', collapsed ? 'false' : 'true');
|
|
347
|
+
toggle.textContent = collapsed ? 'Show' : 'Hide';
|
|
348
|
+
}
|
|
349
|
+
if (summary instanceof HTMLElement) {
|
|
350
|
+
summary.hidden = !collapsed;
|
|
351
|
+
}
|
|
352
|
+
if (content instanceof HTMLElement) {
|
|
353
|
+
content.hidden = collapsed;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
handleFrontmatterLayoutChange() {
|
|
358
|
+
this.outlineController.refresh();
|
|
359
|
+
this.onPreviewLayoutChange?.({
|
|
360
|
+
isLargeDocument: this.isLargeDocument,
|
|
361
|
+
renderVersion: this.activeRenderVersion,
|
|
362
|
+
stats: this.currentStats,
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
|
|
316
366
|
preserveHydratedMermaidsForCommit() {
|
|
317
367
|
this.mermaidHydrator.preserveHydratedShellsForCommit();
|
|
318
368
|
}
|
|
@@ -44,19 +44,21 @@ export class WorkspaceChromeController {
|
|
|
44
44
|
this.stateStore = stateStore;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
prepareForFileOpen(filePath, { resetConnectionState = true } = {}) {
|
|
47
|
+
prepareForFileOpen(filePath, { drawioMode = null, resetConnectionState = true } = {}) {
|
|
48
48
|
this.onViewModeReset();
|
|
49
49
|
this.onBeforeFileOpen();
|
|
50
50
|
this.stateStore.set('connectionHelpShown', false);
|
|
51
51
|
if (resetConnectionState) {
|
|
52
52
|
this.stateStore.set('connectionState', { status: 'connecting', unreachable: false });
|
|
53
53
|
}
|
|
54
|
+
this.stateStore.set('currentDrawioMode', drawioMode ?? null);
|
|
54
55
|
this.stateStore.set('currentFilePath', filePath);
|
|
55
56
|
this.onUpdateCurrentFile(filePath);
|
|
56
57
|
this.onUpdateLobbyCurrentFile(filePath);
|
|
57
58
|
this.onUpdateActiveFile(filePath);
|
|
58
59
|
this.onUpdateVisibleChrome(filePath, {
|
|
59
60
|
displayName: this.getDisplayName(filePath),
|
|
61
|
+
drawioMode,
|
|
60
62
|
isMarkdown: isMarkdownFilePath(filePath),
|
|
61
63
|
});
|
|
62
64
|
this.showEditorLoading();
|
|
@@ -160,13 +160,19 @@ export class WorkspaceCoordinator {
|
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
const normalizedDrawioMode = drawioMode ?? null;
|
|
164
|
+
const currentDrawioMode = this.stateStore.get('currentDrawioMode') ?? null;
|
|
163
165
|
const isDrawio = this.isDrawioFile(filePath) && drawioMode !== 'text' && this.shouldUseDrawioPreview(filePath);
|
|
164
166
|
const isExcalidraw = this.isExcalidrawFile(filePath);
|
|
165
167
|
const isImage = this.isImageFile(filePath);
|
|
166
168
|
const isMermaid = this.isMermaidFile(filePath);
|
|
167
169
|
const isPlantUml = this.isPlantUmlFile(filePath);
|
|
168
170
|
|
|
169
|
-
if (
|
|
171
|
+
if (
|
|
172
|
+
filePath === this.stateStore.get('currentFilePath')
|
|
173
|
+
&& normalizedDrawioMode === currentDrawioMode
|
|
174
|
+
&& (this.session || isDrawio || isExcalidraw || isImage)
|
|
175
|
+
) {
|
|
170
176
|
this.onUpdateActiveFile(filePath);
|
|
171
177
|
this.onUpdateLobbyCurrentFile(filePath);
|
|
172
178
|
return;
|
|
@@ -177,6 +183,7 @@ export class WorkspaceCoordinator {
|
|
|
177
183
|
|
|
178
184
|
this.cleanupSession();
|
|
179
185
|
const chromeState = this.chromeController.prepareForFileOpen(filePath, {
|
|
186
|
+
drawioMode: normalizedDrawioMode,
|
|
180
187
|
resetConnectionState: !isDrawio && !isExcalidraw && !isImage,
|
|
181
188
|
});
|
|
182
189
|
this.reportFileOpenMetric('open_started', loadToken, { filePath });
|
|
@@ -58,7 +58,7 @@ export class WorkspacePreviewController {
|
|
|
58
58
|
return `${fence}${language}\n${text}\n${fence}`;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
getPreviewSource(filePath) {
|
|
61
|
+
getPreviewSource(filePath, { drawioMode = null } = {}) {
|
|
62
62
|
const source = this.getSession()?.getText() ?? '';
|
|
63
63
|
if (this.isMermaidFile(filePath)) {
|
|
64
64
|
return this.createDiagramPreviewDocument('mermaid', source);
|
|
@@ -68,6 +68,10 @@ export class WorkspacePreviewController {
|
|
|
68
68
|
return this.createDiagramPreviewDocument('plantuml', source);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
if (this.isDrawioFile(filePath) && drawioMode === 'text') {
|
|
72
|
+
return this.createDiagramPreviewDocument('xml', source);
|
|
73
|
+
}
|
|
74
|
+
|
|
71
75
|
return source;
|
|
72
76
|
}
|
|
73
77
|
|
|
@@ -79,7 +83,7 @@ export class WorkspacePreviewController {
|
|
|
79
83
|
this.elements.previewContent?.classList.remove('is-plantuml-file-preview');
|
|
80
84
|
}
|
|
81
85
|
|
|
82
|
-
syncFileChrome(filePath) {
|
|
86
|
+
syncFileChrome(filePath, { drawioMode = null } = {}) {
|
|
83
87
|
const isDrawio = this.isDrawioFile(filePath);
|
|
84
88
|
const isExcalidraw = this.isExcalidrawFile(filePath);
|
|
85
89
|
const isImage = this.isImageFile(filePath);
|
|
@@ -88,12 +92,14 @@ export class WorkspacePreviewController {
|
|
|
88
92
|
const isPlantUml = this.isPlantUmlFile(filePath);
|
|
89
93
|
const isDiagramFile = isDiagramFilePath(filePath);
|
|
90
94
|
|
|
95
|
+
this.elements.editorFindButton?.classList.toggle('hidden', !isMarkdown);
|
|
91
96
|
this.elements.markdownToolbar?.classList.toggle('hidden', !isMarkdown);
|
|
97
|
+
this.elements.exportMenuGroup?.classList.toggle('hidden', !isMarkdown);
|
|
92
98
|
this.elements.outlineToggle?.classList.toggle('hidden', isDiagramFile || isImage);
|
|
93
99
|
this.elements.previewContent?.classList.toggle('is-mermaid-file-preview', isMermaid);
|
|
94
100
|
this.elements.previewContent?.classList.toggle('is-plantuml-file-preview', isPlantUml);
|
|
95
101
|
|
|
96
|
-
if (isDrawio || isExcalidraw || isImage) {
|
|
102
|
+
if ((isDrawio && drawioMode !== 'text') || isExcalidraw || isImage) {
|
|
97
103
|
this.layoutController.setView('preview', { persist: false });
|
|
98
104
|
this.outlineController.close();
|
|
99
105
|
this.backlinksPanel.clear();
|
|
@@ -9,6 +9,7 @@ export class WorkspaceStateStore {
|
|
|
9
9
|
chatUnreadCount: 0,
|
|
10
10
|
connectionHelpShown: false,
|
|
11
11
|
connectionState: { status: 'disconnected', unreachable: false },
|
|
12
|
+
currentDrawioMode: null,
|
|
12
13
|
currentFilePath: null,
|
|
13
14
|
fileExplorerReady: false,
|
|
14
15
|
followedCursorSignature: '',
|
|
@@ -7,6 +7,7 @@ import { WorkspaceStateStore } from '../application/workspace-state-store.js';
|
|
|
7
7
|
import { bindAppShellElements } from '../application/app-shell-elements.js';
|
|
8
8
|
import { chatFeature } from '../application/app-shell/chat-feature.js';
|
|
9
9
|
import { commentsFeature } from '../application/app-shell/comments-feature.js';
|
|
10
|
+
import { exportFeature } from '../application/app-shell/export-feature.js';
|
|
10
11
|
import { gitFeature } from '../application/app-shell/git-feature.js';
|
|
11
12
|
import { presenceFeature } from '../application/app-shell/presence-feature.js';
|
|
12
13
|
import { uiFeature } from '../application/app-shell/ui-feature.js';
|
|
@@ -35,10 +36,12 @@ import { ThemeController } from '../presentation/theme-controller.js';
|
|
|
35
36
|
import { ToastController } from '../presentation/toast-controller.js';
|
|
36
37
|
import { VideoEmbedController } from '../presentation/video-embed-controller.js';
|
|
37
38
|
import { ImageLightboxController } from '../presentation/image-lightbox-controller.js';
|
|
39
|
+
import { renderAppShell } from '../presentation/app-shell-renderer.js';
|
|
38
40
|
|
|
39
41
|
const APP_SHELL_FEATURES = Object.freeze({
|
|
40
42
|
chat: chatFeature,
|
|
41
43
|
comments: commentsFeature,
|
|
44
|
+
export: exportFeature,
|
|
42
45
|
git: gitFeature,
|
|
43
46
|
presence: presenceFeature,
|
|
44
47
|
ui: uiFeature,
|
|
@@ -87,6 +90,7 @@ function installAppShellFeatures(appShell) {
|
|
|
87
90
|
export class CollabMdAppShell {
|
|
88
91
|
constructor() {
|
|
89
92
|
installAppShellFeatures(this);
|
|
93
|
+
renderAppShell(document);
|
|
90
94
|
this.elements = bindAppShellElements(document);
|
|
91
95
|
this.runtimeConfig = getRuntimeConfig();
|
|
92
96
|
this.stateStore = new WorkspaceStateStore();
|
|
@@ -208,6 +212,11 @@ export class CollabMdAppShell {
|
|
|
208
212
|
this.drawioEmbed.detachForCommit();
|
|
209
213
|
this.excalidrawEmbed.detachForCommit();
|
|
210
214
|
},
|
|
215
|
+
onPreviewLayoutChange: () => {
|
|
216
|
+
this.scrollSyncController.invalidatePreviewBlocks();
|
|
217
|
+
this.schedulePreviewLayoutSync({ delayMs: 0 });
|
|
218
|
+
this.refreshCommentUiLayout();
|
|
219
|
+
},
|
|
211
220
|
onRenderComplete: () => {
|
|
212
221
|
this.videoEmbed.syncLayout();
|
|
213
222
|
this.drawioEmbed.syncLayout();
|
|
@@ -223,6 +232,7 @@ export class CollabMdAppShell {
|
|
|
223
232
|
this.layoutController = new LayoutController({
|
|
224
233
|
mobileBreakpointQuery: this.mobileBreakpointQuery,
|
|
225
234
|
onMeasureEditor: () => this.session?.requestMeasure(),
|
|
235
|
+
onViewRequest: (view) => this.handleLayoutViewRequest(view),
|
|
226
236
|
});
|
|
227
237
|
this.scrollSyncController = new ScrollSyncController({
|
|
228
238
|
getEditorLineNumber: () => this.session?.getTopVisibleLineNumber(0.35) ?? 1,
|
|
@@ -421,7 +431,7 @@ export class CollabMdAppShell {
|
|
|
421
431
|
},
|
|
422
432
|
onUpdateLobbyCurrentFile: (filePath) => this.lobby.setCurrentFile(filePath),
|
|
423
433
|
onUpdateVisibleChrome: (filePath, { displayName }) => {
|
|
424
|
-
this.syncFileChrome(filePath);
|
|
434
|
+
this.syncFileChrome(filePath, { drawioMode: this.currentDrawioMode });
|
|
425
435
|
this.syncCommentChrome(filePath);
|
|
426
436
|
this.syncFileHistoryButton({ filePath, mode: 'editor' });
|
|
427
437
|
if (this.elements.activeFileName) {
|
|
@@ -493,6 +503,8 @@ export class CollabMdAppShell {
|
|
|
493
503
|
set session(value) { this._session = value; }
|
|
494
504
|
get currentFilePath() { return this.stateStore.get('currentFilePath'); }
|
|
495
505
|
set currentFilePath(value) { this.stateStore.set('currentFilePath', value); }
|
|
506
|
+
get currentDrawioMode() { return this.stateStore.get('currentDrawioMode'); }
|
|
507
|
+
set currentDrawioMode(value) { this.stateStore.set('currentDrawioMode', value ?? null); }
|
|
496
508
|
get globalUsers() { return this.stateStore.get('globalUsers'); }
|
|
497
509
|
set globalUsers(value) { this.stateStore.set('globalUsers', value); }
|
|
498
510
|
get connectionState() { return this.stateStore.get('connectionState'); }
|
|
@@ -434,7 +434,7 @@ function formatHorizontalRule(text, range) {
|
|
|
434
434
|
export function createMarkdownToolbarEdit(documentText, selectionRange, action) {
|
|
435
435
|
const text = String(documentText ?? '');
|
|
436
436
|
const range = normalizeRange(selectionRange, text.length);
|
|
437
|
-
let edit
|
|
437
|
+
let edit;
|
|
438
438
|
|
|
439
439
|
switch (action) {
|
|
440
440
|
case 'bold':
|
|
@@ -59,6 +59,34 @@ const ICONS = Object.freeze({
|
|
|
59
59
|
<path d="M9 16h6"/>
|
|
60
60
|
</svg>
|
|
61
61
|
`,
|
|
62
|
+
indent: `
|
|
63
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
64
|
+
<path d="M4 6h16"/>
|
|
65
|
+
<path d="M10 12h10"/>
|
|
66
|
+
<path d="M10 18h10"/>
|
|
67
|
+
<path d="m4 9 4 3-4 3"/>
|
|
68
|
+
</svg>
|
|
69
|
+
`,
|
|
70
|
+
outdent: `
|
|
71
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
72
|
+
<path d="M4 6h16"/>
|
|
73
|
+
<path d="M10 12h10"/>
|
|
74
|
+
<path d="M10 18h10"/>
|
|
75
|
+
<path d="m8 9-4 3 4 3"/>
|
|
76
|
+
</svg>
|
|
77
|
+
`,
|
|
78
|
+
redo: `
|
|
79
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
80
|
+
<path d="M21 7v6h-6"/>
|
|
81
|
+
<path d="M20 13a8 8 0 0 0-14-3"/>
|
|
82
|
+
</svg>
|
|
83
|
+
`,
|
|
84
|
+
undo: `
|
|
85
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
86
|
+
<path d="M3 7v6h6"/>
|
|
87
|
+
<path d="M4 13a8 8 0 0 1 14-3"/>
|
|
88
|
+
</svg>
|
|
89
|
+
`,
|
|
62
90
|
chevronDown: `
|
|
63
91
|
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
64
92
|
<path d="m6 9 6 6 6-6"/>
|
|
@@ -148,6 +176,13 @@ const INLINE_ACTIONS = Object.freeze([
|
|
|
148
176
|
{ action: 'code', label: 'Inline code', title: 'Inline code', icon: ICONS.code },
|
|
149
177
|
]);
|
|
150
178
|
|
|
179
|
+
const MOBILE_EDIT_COMMANDS = Object.freeze([
|
|
180
|
+
{ commandId: 'undo', label: 'Undo', title: 'Undo', icon: ICONS.undo },
|
|
181
|
+
{ commandId: 'redo', label: 'Redo', title: 'Redo', icon: ICONS.redo },
|
|
182
|
+
{ commandId: 'indentMore', label: 'Indent', title: 'Indent', icon: ICONS.indent },
|
|
183
|
+
{ commandId: 'indentLess', label: 'Outdent', title: 'Outdent', icon: ICONS.outdent },
|
|
184
|
+
]);
|
|
185
|
+
|
|
151
186
|
const MEDIA_ACTIONS = Object.freeze([
|
|
152
187
|
{ action: 'link', label: 'Insert link', title: 'Insert link', icon: ICONS.link },
|
|
153
188
|
{ action: 'image', label: 'Insert image', title: 'Insert image', icon: ICONS.image },
|
|
@@ -160,6 +195,7 @@ const INSERT_ACTIONS = Object.freeze([
|
|
|
160
195
|
]);
|
|
161
196
|
|
|
162
197
|
export const markdownToolbarLayout = Object.freeze([
|
|
198
|
+
{ kind: 'buttons', groupLabel: 'Edit', actions: MOBILE_EDIT_COMMANDS, mobileOnly: true },
|
|
163
199
|
{ kind: 'block-menu', actions: BLOCK_MENU_ACTIONS },
|
|
164
200
|
{ kind: 'buttons', groupLabel: 'Inline formatting', actions: INLINE_ACTIONS },
|
|
165
201
|
{ kind: 'buttons', groupLabel: 'Media and links', actions: MEDIA_ACTIONS },
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import './styles/surfaces/embedded-editor-base.css';
|
|
2
|
+
import './styles/surfaces/drawio-editor.css';
|
|
3
|
+
|
|
1
4
|
import { ensureClientAuthenticated } from './infrastructure/auth-client.js';
|
|
2
5
|
import { DrawioLeaseClient } from './infrastructure/drawio-lease-client.js';
|
|
3
6
|
import { getRuntimeConfig } from './infrastructure/runtime-config.js';
|
|
@@ -50,7 +53,7 @@ banner.innerHTML = `
|
|
|
50
53
|
<span class="drawio-banner-copy" id="drawioBannerText">Connecting…</span>
|
|
51
54
|
</div>
|
|
52
55
|
<div class="drawio-banner-actions">
|
|
53
|
-
<button type="button" class="drawio-btn" id="claimEditBtn" hidden>Claim edit</button>
|
|
56
|
+
<button type="button" class="drawio-toolbar-btn" id="claimEditBtn" hidden>Claim edit</button>
|
|
54
57
|
</div>
|
|
55
58
|
`;
|
|
56
59
|
|
|
@@ -14,6 +14,8 @@ import {
|
|
|
14
14
|
mergeAwarenessUserPatch,
|
|
15
15
|
resolveLocalAwarenessUser,
|
|
16
16
|
} from './domain/excalidraw-collaboration.js';
|
|
17
|
+
import './styles/surfaces/embedded-editor-base.css';
|
|
18
|
+
import './styles/surfaces/excalidraw-editor.css';
|
|
17
19
|
import {
|
|
18
20
|
normalizeScene,
|
|
19
21
|
parseSceneJson,
|
|
@@ -70,6 +72,10 @@ const roomClient = new ExcalidrawRoomClient({
|
|
|
70
72
|
vaultClient: vaultApiClient,
|
|
71
73
|
});
|
|
72
74
|
|
|
75
|
+
function applySurfaceTheme(theme = currentTheme) {
|
|
76
|
+
document.body.dataset.theme = theme === 'light' ? 'light' : 'dark';
|
|
77
|
+
}
|
|
78
|
+
|
|
73
79
|
function getNativeHistoryButton(type) {
|
|
74
80
|
const button = document.querySelector(`[data-testid="button-${type}"]`);
|
|
75
81
|
return button instanceof HTMLButtonElement ? button : null;
|
|
@@ -521,6 +527,7 @@ window.addEventListener('message', (event) => {
|
|
|
521
527
|
|
|
522
528
|
if (message.type === 'set-theme') {
|
|
523
529
|
currentTheme = message.theme || 'dark';
|
|
530
|
+
applySurfaceTheme(currentTheme);
|
|
524
531
|
if (excalidrawAPI) {
|
|
525
532
|
suppressOnChange = true;
|
|
526
533
|
excalidrawAPI.updateScene({
|
|
@@ -613,6 +620,7 @@ async function init() {
|
|
|
613
620
|
const loadingElement = document.getElementById('loadingState');
|
|
614
621
|
|
|
615
622
|
try {
|
|
623
|
+
applySurfaceTheme(currentTheme);
|
|
616
624
|
await ensureClientAuthenticated();
|
|
617
625
|
const initialScene = await roomClient.connect({ initialUser: localAwarenessUser });
|
|
618
626
|
const initialData = sceneToInitialData(initialScene, { theme: currentTheme });
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { resolveAppUrl } from '../infrastructure/runtime-config.js';
|
|
2
|
+
|
|
3
|
+
const EXPORT_PAGE_SOURCE = 'collabmd-export-page';
|
|
4
|
+
const EXPORT_HOST_SOURCE = 'collabmd-export-host';
|
|
5
|
+
const EXPORT_JOB_CLOSE_POLL_MS = 500;
|
|
6
|
+
const EXPORT_JOB_TIMEOUT_MS = 60_000;
|
|
7
|
+
const pendingJobs = new Map();
|
|
8
|
+
let exportBridgeErrorHandler = null;
|
|
9
|
+
|
|
10
|
+
function createJobId() {
|
|
11
|
+
return `export-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function normalizeFormat(format) {
|
|
15
|
+
return format === 'pdf' ? 'pdf' : 'docx';
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function buildExportUrl({ filePath, format, jobId }) {
|
|
19
|
+
const url = new URL(resolveAppUrl('/export-document.html'), window.location.origin);
|
|
20
|
+
url.searchParams.set('action', normalizeFormat(format));
|
|
21
|
+
url.searchParams.set('job', jobId);
|
|
22
|
+
if (filePath) {
|
|
23
|
+
url.searchParams.set('file', filePath);
|
|
24
|
+
}
|
|
25
|
+
return url.toString();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function createBootstrapPayload({
|
|
29
|
+
fileList = [],
|
|
30
|
+
filePath,
|
|
31
|
+
format,
|
|
32
|
+
jobId,
|
|
33
|
+
markdownText = '',
|
|
34
|
+
title = '',
|
|
35
|
+
}) {
|
|
36
|
+
return {
|
|
37
|
+
action: normalizeFormat(format),
|
|
38
|
+
fileList: Array.isArray(fileList) ? fileList.slice() : [],
|
|
39
|
+
filePath: String(filePath ?? ''),
|
|
40
|
+
jobId,
|
|
41
|
+
markdownText: String(markdownText ?? ''),
|
|
42
|
+
source: EXPORT_HOST_SOURCE,
|
|
43
|
+
title: String(title ?? ''),
|
|
44
|
+
type: 'bootstrap',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function clearPendingJobTimers(pendingJob) {
|
|
49
|
+
if (!pendingJob) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (pendingJob.closePollId) {
|
|
54
|
+
window.clearInterval(pendingJob.closePollId);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (pendingJob.timeoutId) {
|
|
58
|
+
window.clearTimeout(pendingJob.timeoutId);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function finishPendingJob(jobId, {
|
|
63
|
+
notifyError = false,
|
|
64
|
+
message = '',
|
|
65
|
+
} = {}) {
|
|
66
|
+
const pendingJob = pendingJobs.get(jobId);
|
|
67
|
+
if (!pendingJob) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
clearPendingJobTimers(pendingJob);
|
|
72
|
+
pendingJobs.delete(jobId);
|
|
73
|
+
|
|
74
|
+
if (notifyError && message) {
|
|
75
|
+
exportBridgeErrorHandler?.(message);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function initializeExportBridge({
|
|
80
|
+
onError = null,
|
|
81
|
+
} = {}) {
|
|
82
|
+
exportBridgeErrorHandler = typeof onError === 'function' ? onError : null;
|
|
83
|
+
|
|
84
|
+
if (window.__collabmdExportBridgeInitialized) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
window.addEventListener('message', (event) => {
|
|
89
|
+
if (event.origin !== window.location.origin) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const payload = event.data;
|
|
94
|
+
if (!payload || payload.source !== EXPORT_PAGE_SOURCE) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const jobId = String(payload.jobId ?? '').trim();
|
|
99
|
+
if (!jobId) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const pendingJob = pendingJobs.get(jobId);
|
|
104
|
+
if (!pendingJob) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (payload.type === 'ready') {
|
|
109
|
+
if (pendingJob.window?.closed) {
|
|
110
|
+
finishPendingJob(jobId, {
|
|
111
|
+
message: 'Export window was closed before the export completed',
|
|
112
|
+
notifyError: true,
|
|
113
|
+
});
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
try {
|
|
118
|
+
pendingJob.window?.postMessage(pendingJob.payload, window.location.origin);
|
|
119
|
+
} catch (error) {
|
|
120
|
+
finishPendingJob(jobId, {
|
|
121
|
+
message: error instanceof Error ? error.message : 'Failed to send export data',
|
|
122
|
+
notifyError: true,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (payload.type === 'complete' || payload.type === 'error') {
|
|
129
|
+
finishPendingJob(jobId, {
|
|
130
|
+
message: payload.type === 'error' && payload.message ? String(payload.message) : '',
|
|
131
|
+
notifyError: payload.type === 'error' && Boolean(payload.message),
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
window.__collabmdExportBridgeInitialized = true;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export async function exportDocument({
|
|
140
|
+
fileList = [],
|
|
141
|
+
filePath,
|
|
142
|
+
format,
|
|
143
|
+
markdownText = '',
|
|
144
|
+
title = '',
|
|
145
|
+
} = {}) {
|
|
146
|
+
const normalizedFilePath = String(filePath ?? '').trim();
|
|
147
|
+
if (!normalizedFilePath) {
|
|
148
|
+
throw new Error('No markdown note is open');
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const jobId = createJobId();
|
|
152
|
+
const url = buildExportUrl({
|
|
153
|
+
filePath: normalizedFilePath,
|
|
154
|
+
format,
|
|
155
|
+
jobId,
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
const exportWindow = window.open(url, '_blank');
|
|
159
|
+
if (!exportWindow) {
|
|
160
|
+
throw new Error('Export popup was blocked');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
pendingJobs.set(jobId, {
|
|
164
|
+
closePollId: window.setInterval(() => {
|
|
165
|
+
if (!exportWindow.closed) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
finishPendingJob(jobId, {
|
|
170
|
+
message: 'Export window was closed before the export completed',
|
|
171
|
+
notifyError: true,
|
|
172
|
+
});
|
|
173
|
+
}, EXPORT_JOB_CLOSE_POLL_MS),
|
|
174
|
+
payload: createBootstrapPayload({
|
|
175
|
+
fileList,
|
|
176
|
+
filePath: normalizedFilePath,
|
|
177
|
+
format,
|
|
178
|
+
jobId,
|
|
179
|
+
markdownText,
|
|
180
|
+
title,
|
|
181
|
+
}),
|
|
182
|
+
timeoutId: window.setTimeout(() => {
|
|
183
|
+
finishPendingJob(jobId, {
|
|
184
|
+
message: 'Export timed out before it completed',
|
|
185
|
+
notifyError: true,
|
|
186
|
+
});
|
|
187
|
+
}, EXPORT_JOB_TIMEOUT_MS),
|
|
188
|
+
window: exportWindow,
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
exportWindow.focus?.();
|
|
192
|
+
return jobId;
|
|
193
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { runExportAdapter, postExportPageMessage, prepareExportSnapshot, waitForBootstrapPayload } from './export-pipeline.js';
|
|
2
|
+
import { groupHeadingWithFollowingBlock } from './export-print-layout.js';
|
|
3
|
+
|
|
4
|
+
function setStatus(message) {
|
|
5
|
+
const status = document.getElementById('exportStatus');
|
|
6
|
+
if (status) {
|
|
7
|
+
status.textContent = message;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function renderWarnings(snapshot) {
|
|
12
|
+
const warningsList = document.getElementById('exportWarnings');
|
|
13
|
+
const warningsSection = document.getElementById('exportWarningsSection');
|
|
14
|
+
if (!warningsList || !warningsSection) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
warningsList.replaceChildren();
|
|
19
|
+
const warnings = snapshot.warnings ?? [];
|
|
20
|
+
warningsSection.hidden = warnings.length === 0;
|
|
21
|
+
warnings.forEach((warning) => {
|
|
22
|
+
const item = document.createElement('li');
|
|
23
|
+
item.textContent = warning;
|
|
24
|
+
warningsList.appendChild(item);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function renderSnapshot(snapshot) {
|
|
29
|
+
const mount = document.getElementById('exportContent');
|
|
30
|
+
if (!mount) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
document.title = `${snapshot.title} — Export`;
|
|
35
|
+
mount.innerHTML = snapshot.html;
|
|
36
|
+
groupHeadingWithFollowingBlock(mount);
|
|
37
|
+
renderWarnings(snapshot);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
async function bootstrap() {
|
|
41
|
+
try {
|
|
42
|
+
setStatus('Loading export content…');
|
|
43
|
+
const payload = await waitForBootstrapPayload();
|
|
44
|
+
const snapshot = await prepareExportSnapshot(payload);
|
|
45
|
+
renderSnapshot(snapshot);
|
|
46
|
+
setStatus(payload.action === 'pdf' ? 'Opening print dialog…' : 'Preparing DOCX download…');
|
|
47
|
+
await runExportAdapter(snapshot, payload.action);
|
|
48
|
+
setStatus(payload.action === 'pdf' ? 'Print dialog opened.' : 'DOCX download started.');
|
|
49
|
+
postExportPageMessage('complete', { jobId: new URL(window.location.href).searchParams.get('job') || '' });
|
|
50
|
+
} catch (error) {
|
|
51
|
+
const message = error instanceof Error ? error.message : 'Export failed';
|
|
52
|
+
setStatus(message);
|
|
53
|
+
postExportPageMessage('error', {
|
|
54
|
+
jobId: new URL(window.location.href).searchParams.get('job') || '',
|
|
55
|
+
message,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
void bootstrap();
|