collabmd 0.1.26 → 0.1.29
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 +27 -6
- package/dist/client/assets/{CodeMirrorEditor-UCMRAMCV-C5yVpm45.js → CodeMirrorEditor-UCMRAMCV-9k1Shd4H.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-T__yxKk2.js → architectureDiagram-2XIMDMQ5-Bhh8YQHn.js} +1 -1
- package/dist/client/assets/{az-AZ-MXSORGZV-BJ2t-y-C.js → az-AZ-MXSORGZV-Cfw6Z5oY.js} +1 -1
- package/dist/client/assets/base-B5gONpJK.css +1 -0
- package/dist/client/assets/base-r5Zg2n3k.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-0rR9ivwb.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-27N2SPOM-CyIruM79.js → chunk-27N2SPOM-DbHKsQ_j.js} +4 -4
- 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-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-ZnuaBvXp.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-BCjGNd0g.js} +1 -1
- 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-OuH0lN6M.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-Bpdym3dj.js +1 -0
- package/dist/client/assets/classDiagram-v2-RAHNMMFH-CRAsdVDB.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-Ct1xwvCC.js → dagre-KLK3FWXG-CXSnjrX-.js} +1 -1
- 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-DkHzt94k.js → diagram-E7M64L7V-De0StFef.js} +1 -1
- package/dist/client/assets/{diagram-IFDJBPK2-D4g8afpU.js → diagram-IFDJBPK2-B2m6AJbU.js} +1 -1
- package/dist/client/assets/{diagram-P4PSJMXO-DVwwx6ED.js → diagram-P4PSJMXO-YBWLVENw.js} +1 -1
- package/dist/client/assets/{dist-DzArd_Bk.js → dist-A0eSMIyy.js} +1 -1
- package/dist/client/assets/{dist-lbtQBzLu.js → dist-BNcU46Ik.js} +1 -1
- package/dist/client/assets/{dist-B2pRSR5A.js → dist-BOrlJDrR.js} +1 -1
- package/dist/client/assets/dist-BUEzOS23.js +1 -0
- package/dist/client/assets/{dist-BQhICHxD.js → dist-Bay3vk5z.js} +1 -1
- package/dist/client/assets/{dist-DhzldYic.js → dist-BbKpzsTB.js} +1 -1
- package/dist/client/assets/{dist-60g3bzYH.js → dist-BchrxlnW.js} +1 -1
- package/dist/client/assets/dist-BflL-_8D.js +1 -0
- package/dist/client/assets/{dist-Ciw3BJA2.js → dist-CEYpWxod.js} +1 -1
- package/dist/client/assets/{dist-CvMToPSN.js → dist-CEtbxXlI.js} +1 -1
- package/dist/client/assets/{dist-_L_gn5XE.js → dist-CI_qEj5K.js} +1 -1
- package/dist/client/assets/{dist-D2m8lD1h.js → dist-CMHIjMVe.js} +1 -1
- package/dist/client/assets/{dist-2HWwyMLA.js → dist-Cdzvi8cf.js} +1 -1
- package/dist/client/assets/{dist-BiFbHWxc.js → dist-CsYRf4AV.js} +1 -1
- package/dist/client/assets/{dist-fkQ6urpt.js → dist-Ct1bmQnL.js} +1 -1
- package/dist/client/assets/{dist-BlhsMbAl.js → dist-CtFNDttZ.js} +1 -1
- package/dist/client/assets/{dist-EPRNBXHp.js → dist-D-gRgZ6e.js} +1 -1
- package/dist/client/assets/{dist-WrbPKwPQ.js → dist-D0e6Qsad.js} +1 -1
- package/dist/client/assets/{dist-Q6uG0wie.js → dist-D9c0A4Uh.js} +1 -1
- package/dist/client/assets/{dist-BZc5d15t.js → dist-DS6mEQYy.js} +1 -1
- package/dist/client/assets/dist-DS_4VpEd.js +1 -0
- package/dist/client/assets/{dist-DAwSRqIJ.js → dist-DbhQ5ANS.js} +1 -1
- package/dist/client/assets/{dist-U9MIFRLF.js → dist-DnrO-JZd.js} +1 -1
- package/dist/client/assets/{dist-DrNF924C.js → dist-DveOCUUJ.js} +1 -1
- package/dist/client/assets/{dist-CLsz2DCg.js → dist-DwsFUbuB.js} +1 -1
- package/dist/client/assets/dist-VCYAp958.js +1 -0
- package/dist/client/assets/{dist-DZD5y4h6.js → dist-Yxt8txtM.js} +1 -1
- package/dist/client/assets/{dist-BdtPRC1F.js → dist-npxgF_6V.js} +1 -1
- package/dist/client/assets/{dist-a6bFAbQd.js → dist-u0zDRMQt.js} +1 -1
- package/dist/client/assets/{dockerfile-Ci0-ApQC.js → dockerfile-C0qQqxf9.js} +1 -1
- package/dist/client/assets/drawio-editor-CgbaOvpF.js +9 -0
- package/dist/client/assets/drawio-editor-UQQ8XHou.css +1 -0
- package/dist/client/assets/drawioEditor-Eb2yYhjE.js +2 -0
- package/dist/client/assets/editor-session-DFzBn4RY.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-DXRHYz6R.css +1 -0
- package/dist/client/assets/{en-CTDJDZ6K-DC-4I8h8.js → en-CTDJDZ6K-BHbXrqU0.js} +1 -1
- package/dist/client/assets/{erDiagram-INFDFZHY-Dnub3poK.js → erDiagram-INFDFZHY-DP3f20BF.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-D8O7A69r.css → excalidraw-editor-Bat1FRoT.css} +1 -1
- package/dist/client/assets/excalidraw-editor-Dj0c0PO6.js +9 -0
- package/dist/client/assets/{excalidraw-mermaid-stub-LpuTrLnr.js → excalidraw-mermaid-stub-efoh2lJm.js} +1 -1
- package/dist/client/assets/excalidraw-scene-CixfM-jL.js +174 -0
- package/dist/client/assets/excalidrawEditor-diK4VITg.js +2 -0
- package/dist/client/assets/export-page-CUOMczdp.js +39 -0
- package/dist/client/assets/exportDocument-BM4_f2n8.js +2 -0
- package/dist/client/assets/exportDocument-CLPYN_gg.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-CRbK5_5h.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-CwrN53Gu.js → ganttDiagram-A5KZAMGK-R-AMIgxR.js} +1 -1
- package/dist/client/assets/gitGraph-HDMCJU4V-kkuqHGSM.js +1 -0
- package/dist/client/assets/{gitGraphDiagram-K3NZZRJ6-BV9w0K-N.js → gitGraphDiagram-K3NZZRJ6-CIPit_Sh.js} +1 -1
- 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-32MOCVDX-BB6utPzr.js +1 -0
- package/dist/client/assets/index-BOOhEiLo.css +1 -0
- package/dist/client/assets/index-CVgVzuh6.js +2 -0
- package/dist/client/assets/info-3K5VOQVL-DPN78whf.js +1 -0
- package/dist/client/assets/infoDiagram-LFFYTUFH-CF8jXFTm.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-BDVPgkv4.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-DtNnwL48.js} +1 -1
- package/dist/client/assets/{jsx-runtime-DJkgQklN.js → jsx-runtime-B8dyIONw.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-C565sUNo.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-C8adLQnt.js +1174 -0
- package/dist/client/assets/{mermaid-parser.core-DllATXd7.js → mermaid-parser.core-By_5k2SF.js} +2 -2
- package/dist/client/assets/{mermaid-runtime-DbCLD8Ih.js → mermaid-runtime-DqncQoYK.js} +3 -3
- package/dist/client/assets/{mindmap-definition-YRQLILUH-DaMULsE9.js → mindmap-definition-YRQLILUH-BbYzGfTD.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-BPFp1WBd.js → pieDiagram-SKSYHLDU-CAU_gC7U.js} +1 -1
- 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-CVfDHnqM.js +1 -0
- package/dist/client/assets/preview-render-compiler-CapHJDHT.js +1 -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-CcASh3y3.js → preview-render-worker-wMS710Bv.js} +1 -1
- 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-DhlKLozd.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-B7ZOMsIb.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-B0UGbzQj.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-DTR2sQs8.js → stateDiagram-RAJIS63D-CPoSrNwn.js} +1 -1
- package/dist/client/assets/stateDiagram-v2-FVOUBMTO-5GW0Y21a.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-Cs9aQmVM.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-B40ybbzC.js} +1 -1
- package/dist/client/assets/yjs-provider-reset-guard-DUP9XupO.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/package.json +4 -2
- 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 +65 -16
- package/src/client/application/app-shell/ui-feature-toolbar.js +1 -1
- package/src/client/application/app-shell/workspace-feature.js +31 -3
- package/src/client/application/app-shell-elements.js +3 -0
- package/src/client/application/preview-render-compiler.js +6 -3
- 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 +8 -3
- package/src/client/application/workspace-state-store.js +1 -0
- package/src/client/bootstrap/collabmd-app-shell.js +8 -1
- 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 +1410 -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 +8 -0
- package/src/client/infrastructure/editor-view-adapter.js +34 -0
- package/src/client/presentation/app-shell-renderer.js +13 -0
- package/src/client/presentation/app-shell-template.js +590 -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/drawio-embed-controller.js +190 -31
- package/src/client/presentation/file-action-controller.js +4 -4
- 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 +2 -1
- package/src/client/presentation/git-panel-controller.js +10 -8
- package/src/client/presentation/layout-controller.js +34 -4
- 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/diagram-preview.css +66 -9
- package/src/client/styles/features/git-branch.css +30 -2
- package/src/client/styles/features/preview-markdown.css +7 -4
- package/src/client/styles/layout/editor-page.css +95 -3
- package/src/client/styles/layout/responsive.css +17 -7
- package/src/client/styles/layout/sidebar.css +1 -1
- 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/create-app-server.js +3 -0
- package/src/server/domain/docx-exporter.js +62 -0
- 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/dist/client/assets/architecture-PBZL5I3N-C1Yv7agI.js +0 -1
- package/dist/client/assets/channel-DBZin7O0.js +0 -1
- 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/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-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/excalidrawEditor-BY5rq_Bn.js +0 -2
- package/dist/client/assets/gitGraph-HDMCJU4V-DbS2XnWK.js +0 -1
- package/dist/client/assets/image-32MOCVDX-BBXPyAeU.js +0 -1
- package/dist/client/assets/index-C95nV7Tl.css +0 -1
- package/dist/client/assets/index-GE56R5t4.js +0 -2
- 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-AejRWvom.js +0 -600
- 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/preview-render-compiler-BYiRMsPq.js +0 -1
- package/dist/client/assets/radar-KQ55EAFF-D48du2CB.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/{chunk-ETSVUAFD-C8C1JDu2.js → chunk-ETSVUAFD-CN-gPl_j.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/{dist-yRVuIDKu.js → dist-DnxPQ0-w.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
|
@@ -41,7 +41,7 @@ function renderBlockMenuMarkup(activeAction) {
|
|
|
41
41
|
<div class="markdown-toolbar-block-menu-shell">
|
|
42
42
|
<button
|
|
43
43
|
type="button"
|
|
44
|
-
class="ui-button
|
|
44
|
+
class="ui-button ui-button--ghost markdown-toolbar-block-trigger"
|
|
45
45
|
data-markdown-block-menu-toggle
|
|
46
46
|
aria-haspopup="menu"
|
|
47
47
|
aria-expanded="false"
|
|
@@ -48,7 +48,9 @@ export const workspaceFeature = {
|
|
|
48
48
|
return String(previewDocument.content ?? '');
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
return this.workspacePreviewController.getPreviewSource(this.currentFilePath
|
|
51
|
+
return this.workspacePreviewController.getPreviewSource(this.currentFilePath, {
|
|
52
|
+
drawioMode: this.currentDrawioMode ?? null,
|
|
53
|
+
});
|
|
52
54
|
},
|
|
53
55
|
|
|
54
56
|
getStaticPreviewDocument() {
|
|
@@ -88,8 +90,34 @@ export const workspaceFeature = {
|
|
|
88
90
|
this.workspacePreviewController.resetPreviewMode();
|
|
89
91
|
},
|
|
90
92
|
|
|
91
|
-
syncFileChrome(filePath) {
|
|
92
|
-
this.workspacePreviewController.syncFileChrome(filePath);
|
|
93
|
+
syncFileChrome(filePath, options = {}) {
|
|
94
|
+
this.workspacePreviewController.syncFileChrome(filePath, options);
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
handleLayoutViewRequest(view) {
|
|
98
|
+
if (!this.currentFilePath || !this.isDrawioFile(this.currentFilePath)) {
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (this.currentDrawioMode === 'text') {
|
|
103
|
+
if (view !== 'preview') {
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (this.layoutController.isMobileViewport?.()) {
|
|
108
|
+
this.layoutController.primeView(view);
|
|
109
|
+
}
|
|
110
|
+
this.navigation.navigateToFile(this.currentFilePath);
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (view === 'preview') {
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
this.layoutController.primeView(view);
|
|
119
|
+
this.navigation.navigateToFile(this.currentFilePath, { drawioMode: 'text' });
|
|
120
|
+
return false;
|
|
93
121
|
},
|
|
94
122
|
|
|
95
123
|
renderExcalidrawFilePreview(filePath) {
|
|
@@ -34,6 +34,9 @@ export function bindAppShellElements(doc = document) {
|
|
|
34
34
|
displayNameTitle: doc.getElementById('displayNameTitle'),
|
|
35
35
|
editNameButton: doc.getElementById('editNameBtn'),
|
|
36
36
|
editorContainer: doc.getElementById('editorContainer'),
|
|
37
|
+
exportDocxButton: doc.getElementById('exportDocxBtn'),
|
|
38
|
+
exportMenuGroup: doc.getElementById('exportMenuGroup'),
|
|
39
|
+
exportPdfButton: doc.getElementById('exportPdfBtn'),
|
|
37
40
|
markdownToolbar: doc.getElementById('markdownToolbar'),
|
|
38
41
|
editorPage: doc.getElementById('editor-page'),
|
|
39
42
|
diffPage: doc.getElementById('diff-page'),
|
|
@@ -161,12 +161,14 @@ function createVideoEmbedPlaceholder({
|
|
|
161
161
|
kind,
|
|
162
162
|
label,
|
|
163
163
|
mimeType = '',
|
|
164
|
+
originalUrl = '',
|
|
164
165
|
source,
|
|
165
166
|
url,
|
|
166
167
|
}) {
|
|
167
168
|
const subtitle = kind === 'youtube' ? 'YouTube video' : 'Video file';
|
|
168
169
|
const mimeTypeAttribute = mimeType ? ` data-video-embed-mime-type="${escapeHtml(mimeType)}"` : '';
|
|
169
|
-
|
|
170
|
+
const originalUrlAttribute = originalUrl ? ` data-video-embed-original-url="${escapeHtml(originalUrl)}"` : '';
|
|
171
|
+
return `<span class="video-embed-placeholder video-embed-shell diagram-preview-shell" data-video-embed-key="${escapeHtml(embedKey)}" data-video-embed-kind="${escapeHtml(kind)}" data-video-embed-label="${escapeHtml(label)}" data-video-embed-source="${escapeHtml(source)}" data-video-embed-url="${escapeHtml(url)}"${mimeTypeAttribute}${originalUrlAttribute}><span class="video-embed-placeholder-card diagram-preview-placeholder-card"><span class="video-embed-placeholder-copy diagram-preview-placeholder-copy"><strong>${escapeHtml(label)}</strong><span>${escapeHtml(subtitle)}</span></span></span></span>`;
|
|
170
172
|
}
|
|
171
173
|
|
|
172
174
|
function renderVideoEmbed(token, videoEmbedCounts) {
|
|
@@ -189,6 +191,7 @@ function renderVideoEmbed(token, videoEmbedCounts) {
|
|
|
189
191
|
kind: classification.type,
|
|
190
192
|
label: title || 'Embedded video',
|
|
191
193
|
mimeType: classification.mimeType,
|
|
194
|
+
originalUrl: source,
|
|
192
195
|
source: preserveSource,
|
|
193
196
|
url: classification.type === 'youtube' ? classification.embedUrl : classification.sourceUrl,
|
|
194
197
|
});
|
|
@@ -411,7 +414,7 @@ function createMarkdownRenderer(fileList = [], {
|
|
|
411
414
|
const content = tokens[index].content;
|
|
412
415
|
|
|
413
416
|
if (content.startsWith('[x] ') || content.startsWith('[X] ')) {
|
|
414
|
-
return `<input type="checkbox" checked
|
|
417
|
+
return `<input type="checkbox" checked data-task-checkbox="true"> ${renderInlineWikiText(content.slice(4), {
|
|
415
418
|
drawioEmbedCounts,
|
|
416
419
|
excalidrawEmbedCounts,
|
|
417
420
|
fileList,
|
|
@@ -421,7 +424,7 @@ function createMarkdownRenderer(fileList = [], {
|
|
|
421
424
|
}
|
|
422
425
|
|
|
423
426
|
if (content.startsWith('[ ] ')) {
|
|
424
|
-
return `<input type="checkbox"
|
|
427
|
+
return `<input type="checkbox" data-task-checkbox="true"> ${renderInlineWikiText(content.slice(4), {
|
|
425
428
|
drawioEmbedCounts,
|
|
426
429
|
excalidrawEmbedCounts,
|
|
427
430
|
fileList,
|
|
@@ -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);
|
|
@@ -89,11 +93,12 @@ export class WorkspacePreviewController {
|
|
|
89
93
|
const isDiagramFile = isDiagramFilePath(filePath);
|
|
90
94
|
|
|
91
95
|
this.elements.markdownToolbar?.classList.toggle('hidden', !isMarkdown);
|
|
96
|
+
this.elements.exportMenuGroup?.classList.toggle('hidden', !isMarkdown);
|
|
92
97
|
this.elements.outlineToggle?.classList.toggle('hidden', isDiagramFile || isImage);
|
|
93
98
|
this.elements.previewContent?.classList.toggle('is-mermaid-file-preview', isMermaid);
|
|
94
99
|
this.elements.previewContent?.classList.toggle('is-plantuml-file-preview', isPlantUml);
|
|
95
100
|
|
|
96
|
-
if (isDrawio || isExcalidraw || isImage) {
|
|
101
|
+
if ((isDrawio && drawioMode !== 'text') || isExcalidraw || isImage) {
|
|
97
102
|
this.layoutController.setView('preview', { persist: false });
|
|
98
103
|
this.outlineController.close();
|
|
99
104
|
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();
|
|
@@ -223,6 +227,7 @@ export class CollabMdAppShell {
|
|
|
223
227
|
this.layoutController = new LayoutController({
|
|
224
228
|
mobileBreakpointQuery: this.mobileBreakpointQuery,
|
|
225
229
|
onMeasureEditor: () => this.session?.requestMeasure(),
|
|
230
|
+
onViewRequest: (view) => this.handleLayoutViewRequest(view),
|
|
226
231
|
});
|
|
227
232
|
this.scrollSyncController = new ScrollSyncController({
|
|
228
233
|
getEditorLineNumber: () => this.session?.getTopVisibleLineNumber(0.35) ?? 1,
|
|
@@ -421,7 +426,7 @@ export class CollabMdAppShell {
|
|
|
421
426
|
},
|
|
422
427
|
onUpdateLobbyCurrentFile: (filePath) => this.lobby.setCurrentFile(filePath),
|
|
423
428
|
onUpdateVisibleChrome: (filePath, { displayName }) => {
|
|
424
|
-
this.syncFileChrome(filePath);
|
|
429
|
+
this.syncFileChrome(filePath, { drawioMode: this.currentDrawioMode });
|
|
425
430
|
this.syncCommentChrome(filePath);
|
|
426
431
|
this.syncFileHistoryButton({ filePath, mode: 'editor' });
|
|
427
432
|
if (this.elements.activeFileName) {
|
|
@@ -493,6 +498,8 @@ export class CollabMdAppShell {
|
|
|
493
498
|
set session(value) { this._session = value; }
|
|
494
499
|
get currentFilePath() { return this.stateStore.get('currentFilePath'); }
|
|
495
500
|
set currentFilePath(value) { this.stateStore.set('currentFilePath', value); }
|
|
501
|
+
get currentDrawioMode() { return this.stateStore.get('currentDrawioMode'); }
|
|
502
|
+
set currentDrawioMode(value) { this.stateStore.set('currentDrawioMode', value ?? null); }
|
|
496
503
|
get globalUsers() { return this.stateStore.get('globalUsers'); }
|
|
497
504
|
set globalUsers(value) { this.stateStore.set('globalUsers', value); }
|
|
498
505
|
get connectionState() { return this.stateStore.get('connectionState'); }
|
|
@@ -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();
|