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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createDrawioLeaseRoomName } from '../../domain/drawio-room.js';
|
|
2
|
+
import { setDiagramActionButtonIcon } from '../domain/diagram-action-icons.js';
|
|
2
3
|
import { resolveAppUrl } from '../domain/runtime-paths.js';
|
|
3
4
|
import { vaultApiClient } from '../domain/vault-api-client.js';
|
|
4
5
|
|
|
@@ -113,22 +114,31 @@ export class DrawioEmbedController {
|
|
|
113
114
|
this.hydrationIdleId = null;
|
|
114
115
|
this.hydrationPaused = false;
|
|
115
116
|
this.instanceCounter = 0;
|
|
117
|
+
this.maximizedEntry = null;
|
|
118
|
+
this.maximizedRoot = null;
|
|
116
119
|
|
|
117
120
|
this._onMessage = this._onMessage.bind(this);
|
|
121
|
+
this._onKeyDown = this._onKeyDown.bind(this);
|
|
118
122
|
this._onPreviewClick = this._onPreviewClick.bind(this);
|
|
119
123
|
|
|
120
124
|
window.addEventListener('message', this._onMessage);
|
|
125
|
+
window.addEventListener('keydown', this._onKeyDown);
|
|
121
126
|
this.previewElement?.addEventListener('click', this._onPreviewClick);
|
|
122
127
|
}
|
|
123
128
|
|
|
124
129
|
destroy() {
|
|
125
130
|
window.removeEventListener('message', this._onMessage);
|
|
131
|
+
window.removeEventListener('keydown', this._onKeyDown);
|
|
126
132
|
this.previewElement?.removeEventListener('click', this._onPreviewClick);
|
|
127
133
|
cancelIdleRender(this.hydrationIdleId);
|
|
128
134
|
this.hydrationIdleId = null;
|
|
129
135
|
this.hydrationQueue = [];
|
|
136
|
+
this._exitMaximizedEntry();
|
|
137
|
+
document.body.classList.remove('drawio-maximized-open');
|
|
130
138
|
this.embedEntries.forEach((entry) => entry.wrapper?.remove());
|
|
131
139
|
this.embedEntries.clear();
|
|
140
|
+
this.maximizedRoot?.remove();
|
|
141
|
+
this.maximizedRoot = null;
|
|
132
142
|
}
|
|
133
143
|
|
|
134
144
|
detachForCommit() {
|
|
@@ -148,6 +158,8 @@ export class DrawioEmbedController {
|
|
|
148
158
|
}
|
|
149
159
|
|
|
150
160
|
reconcileEmbeds(previewElement) {
|
|
161
|
+
this._exitMaximizedEntry();
|
|
162
|
+
|
|
151
163
|
const descriptors = Array.from(previewElement.querySelectorAll('.drawio-embed-placeholder[data-drawio-key]')).map((placeholder) => ({
|
|
152
164
|
filePath: placeholder.dataset.drawioTarget || '',
|
|
153
165
|
key: placeholder.dataset.drawioKey || '',
|
|
@@ -246,27 +258,28 @@ export class DrawioEmbedController {
|
|
|
246
258
|
}
|
|
247
259
|
|
|
248
260
|
const wrapper = document.createElement('div');
|
|
249
|
-
wrapper.className = `drawio-embed${entry.mode === 'edit' ? ' is-direct-file' : ''}`;
|
|
261
|
+
wrapper.className = `drawio-embed diagram-preview-shell${entry.mode === 'edit' ? ' is-direct-file' : ''}`;
|
|
250
262
|
wrapper.dataset.file = entry.filePath;
|
|
263
|
+
wrapper.dataset.drawioKey = entry.key;
|
|
251
264
|
|
|
252
265
|
const header = document.createElement('div');
|
|
253
|
-
header.className = 'drawio-embed-header';
|
|
266
|
+
header.className = 'drawio-embed-header diagram-preview-toolbar';
|
|
267
|
+
|
|
268
|
+
const icon = document.createElement('span');
|
|
269
|
+
icon.className = 'drawio-embed-icon';
|
|
270
|
+
icon.innerHTML = '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="7" height="6" rx="1"/><rect x="14" y="4" width="7" height="6" rx="1"/><rect x="8.5" y="14" width="7" height="6" rx="1"/><path d="M10 7h4"/><path d="M17.5 10v2.5"/><path d="M6.5 10v2.5"/><path d="M6.5 12.5h11"/></svg>';
|
|
254
271
|
|
|
255
272
|
const label = document.createElement('span');
|
|
256
273
|
label.className = 'drawio-embed-label';
|
|
257
274
|
label.textContent = entry.label.replace(/\.drawio$/i, '');
|
|
258
|
-
header.
|
|
275
|
+
header.append(icon, label);
|
|
259
276
|
|
|
260
277
|
if (entry.mode !== 'edit') {
|
|
261
|
-
|
|
262
|
-
button.type = 'button';
|
|
263
|
-
button.className = 'drawio-embed-btn';
|
|
264
|
-
button.dataset.action = 'open-file';
|
|
265
|
-
button.dataset.filePath = entry.filePath;
|
|
266
|
-
button.textContent = 'Open';
|
|
267
|
-
header.appendChild(button);
|
|
278
|
+
header.appendChild(this.createOpenButton(entry));
|
|
268
279
|
}
|
|
269
280
|
|
|
281
|
+
header.appendChild(this.createMaximizeButton(entry, wrapper));
|
|
282
|
+
|
|
270
283
|
const iframe = document.createElement('iframe');
|
|
271
284
|
iframe.className = 'drawio-embed-iframe';
|
|
272
285
|
iframe.loading = 'lazy';
|
|
@@ -287,24 +300,23 @@ export class DrawioEmbedController {
|
|
|
287
300
|
}
|
|
288
301
|
|
|
289
302
|
const wrapper = document.createElement('div');
|
|
290
|
-
wrapper.className = 'drawio-embed is-static-preview';
|
|
303
|
+
wrapper.className = 'drawio-embed diagram-preview-shell is-static-preview';
|
|
291
304
|
wrapper.dataset.file = entry.filePath;
|
|
305
|
+
wrapper.dataset.drawioKey = entry.key;
|
|
292
306
|
|
|
293
307
|
const header = document.createElement('div');
|
|
294
|
-
header.className = 'drawio-embed-header';
|
|
308
|
+
header.className = 'drawio-embed-header diagram-preview-toolbar';
|
|
309
|
+
|
|
310
|
+
const icon = document.createElement('span');
|
|
311
|
+
icon.className = 'drawio-embed-icon';
|
|
312
|
+
icon.innerHTML = '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="7" height="6" rx="1"/><rect x="14" y="4" width="7" height="6" rx="1"/><rect x="8.5" y="14" width="7" height="6" rx="1"/><path d="M10 7h4"/><path d="M17.5 10v2.5"/><path d="M6.5 10v2.5"/><path d="M6.5 12.5h11"/></svg>';
|
|
295
313
|
|
|
296
314
|
const label = document.createElement('span');
|
|
297
315
|
label.className = 'drawio-embed-label';
|
|
298
316
|
label.textContent = entry.label.replace(/\.drawio$/i, '');
|
|
299
|
-
header.
|
|
317
|
+
header.append(icon, label);
|
|
300
318
|
|
|
301
|
-
|
|
302
|
-
button.type = 'button';
|
|
303
|
-
button.className = 'drawio-embed-btn';
|
|
304
|
-
button.dataset.action = 'open-file';
|
|
305
|
-
button.dataset.filePath = entry.filePath;
|
|
306
|
-
button.textContent = 'Open';
|
|
307
|
-
header.appendChild(button);
|
|
319
|
+
header.append(this.createOpenButton(entry), this.createMaximizeButton(entry, wrapper));
|
|
308
320
|
|
|
309
321
|
const viewerShell = document.createElement('div');
|
|
310
322
|
viewerShell.className = 'drawio-viewer-shell';
|
|
@@ -346,6 +358,18 @@ export class DrawioEmbedController {
|
|
|
346
358
|
graphElement.setAttribute('role', 'button');
|
|
347
359
|
graphElement.setAttribute('tabindex', '0');
|
|
348
360
|
graphElement.setAttribute('aria-label', `Open ${entry.label.replace(/\.drawio$/i, '')}`);
|
|
361
|
+
graphElement.addEventListener('click', (event) => {
|
|
362
|
+
event.preventDefault();
|
|
363
|
+
this.onOpenFile?.(entry.filePath);
|
|
364
|
+
});
|
|
365
|
+
graphElement.addEventListener('keydown', (event) => {
|
|
366
|
+
if (event.key !== 'Enter' && event.key !== ' ') {
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
event.preventDefault();
|
|
371
|
+
this.onOpenFile?.(entry.filePath);
|
|
372
|
+
});
|
|
349
373
|
graphElement.dataset.mxgraph = JSON.stringify({
|
|
350
374
|
'check-visible-state': false,
|
|
351
375
|
center: true,
|
|
@@ -411,6 +435,146 @@ export class DrawioEmbedController {
|
|
|
411
435
|
|
|
412
436
|
syncLayout() {}
|
|
413
437
|
|
|
438
|
+
createOpenButton(entry) {
|
|
439
|
+
const button = document.createElement('button');
|
|
440
|
+
button.type = 'button';
|
|
441
|
+
button.className = 'drawio-embed-btn ui-preview-action ui-preview-action--icon-only';
|
|
442
|
+
button.dataset.action = 'open-file';
|
|
443
|
+
button.dataset.filePath = entry.filePath;
|
|
444
|
+
button.title = 'Edit in draw.io';
|
|
445
|
+
button.setAttribute('aria-label', 'Edit in draw.io');
|
|
446
|
+
setDiagramActionButtonIcon(button, 'edit');
|
|
447
|
+
button.addEventListener('click', (event) => {
|
|
448
|
+
event.preventDefault();
|
|
449
|
+
this.onOpenFile?.(entry.filePath);
|
|
450
|
+
});
|
|
451
|
+
return button;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
createMaximizeButton(entry, wrapper) {
|
|
455
|
+
const button = document.createElement('button');
|
|
456
|
+
button.type = 'button';
|
|
457
|
+
button.className = 'drawio-embed-btn ui-preview-action ui-preview-action--icon-only';
|
|
458
|
+
button.dataset.action = 'toggle-maximize';
|
|
459
|
+
button.dataset.filePath = entry.filePath;
|
|
460
|
+
button.dataset.drawioKey = entry.key;
|
|
461
|
+
|
|
462
|
+
const syncState = () => {
|
|
463
|
+
const isMaximized = this.maximizedEntry?.key === entry.key;
|
|
464
|
+
setDiagramActionButtonIcon(button, isMaximized ? 'restore' : 'maximize');
|
|
465
|
+
button.title = isMaximized ? 'Restore diagram size' : 'Maximize diagram';
|
|
466
|
+
button.setAttribute('aria-label', isMaximized ? 'Restore diagram size' : 'Maximize diagram');
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
button.addEventListener('click', (event) => {
|
|
470
|
+
event.preventDefault();
|
|
471
|
+
if (this.maximizedEntry?.key === entry.key) {
|
|
472
|
+
this._exitMaximizedEntry();
|
|
473
|
+
} else {
|
|
474
|
+
this._enterMaximizedEntry(entry, wrapper);
|
|
475
|
+
}
|
|
476
|
+
this._syncMaximizeButtons();
|
|
477
|
+
});
|
|
478
|
+
|
|
479
|
+
syncState();
|
|
480
|
+
return button;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
_ensureMaximizedRoot() {
|
|
484
|
+
if (this.maximizedRoot?.isConnected && this.maximizedRoot.parentElement === document.body) {
|
|
485
|
+
return this.maximizedRoot;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
let maximizedRoot = document.body.querySelector('[data-drawio-maximized-root="true"]');
|
|
489
|
+
if (!maximizedRoot) {
|
|
490
|
+
maximizedRoot = document.createElement('div');
|
|
491
|
+
maximizedRoot.dataset.drawioMaximizedRoot = 'true';
|
|
492
|
+
maximizedRoot.className = 'drawio-maximized-root';
|
|
493
|
+
document.body.appendChild(maximizedRoot);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
this.maximizedRoot = maximizedRoot;
|
|
497
|
+
return maximizedRoot;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
_enterMaximizedEntry(entry, wrapper = entry?.wrapper) {
|
|
501
|
+
if (!entry?.wrapper || entry.wrapper !== wrapper) {
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
if (this.maximizedEntry?.key === entry.key) {
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
this._exitMaximizedEntry();
|
|
510
|
+
|
|
511
|
+
const maximizedRoot = this._ensureMaximizedRoot();
|
|
512
|
+
const parent = entry.wrapper.parentElement;
|
|
513
|
+
if (!parent) {
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
const spacer = document.createElement('div');
|
|
518
|
+
spacer.className = 'drawio-maximize-spacer';
|
|
519
|
+
spacer.style.height = `${Math.ceil(entry.wrapper.getBoundingClientRect().height)}px`;
|
|
520
|
+
|
|
521
|
+
entry.maximizeSpacer = spacer;
|
|
522
|
+
entry.restoreParent = parent;
|
|
523
|
+
entry.restoreNextSibling = entry.wrapper.nextSibling || null;
|
|
524
|
+
parent.insertBefore(spacer, entry.wrapper);
|
|
525
|
+
|
|
526
|
+
maximizedRoot.hidden = false;
|
|
527
|
+
maximizedRoot.appendChild(entry.wrapper);
|
|
528
|
+
entry.wrapper.classList.add('is-maximized');
|
|
529
|
+
document.body.classList.add('drawio-maximized-open');
|
|
530
|
+
this.maximizedEntry = entry;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
_exitMaximizedEntry() {
|
|
534
|
+
const entry = this.maximizedEntry;
|
|
535
|
+
if (!entry?.wrapper) {
|
|
536
|
+
this.maximizedEntry = null;
|
|
537
|
+
document.body.classList.remove('drawio-maximized-open');
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
const { maximizeSpacer, restoreNextSibling, restoreParent } = entry;
|
|
542
|
+
entry.wrapper.classList.remove('is-maximized');
|
|
543
|
+
|
|
544
|
+
if (maximizeSpacer?.parentElement) {
|
|
545
|
+
maximizeSpacer.replaceWith(entry.wrapper);
|
|
546
|
+
} else if (restoreParent?.isConnected) {
|
|
547
|
+
if (restoreNextSibling?.parentElement === restoreParent) {
|
|
548
|
+
restoreParent.insertBefore(entry.wrapper, restoreNextSibling);
|
|
549
|
+
} else {
|
|
550
|
+
restoreParent.appendChild(entry.wrapper);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
entry.maximizeSpacer = null;
|
|
555
|
+
entry.restoreParent = null;
|
|
556
|
+
entry.restoreNextSibling = null;
|
|
557
|
+
this.maximizedEntry = null;
|
|
558
|
+
document.body.classList.remove('drawio-maximized-open');
|
|
559
|
+
if (this.maximizedRoot && this.maximizedRoot.childElementCount === 0) {
|
|
560
|
+
this.maximizedRoot.hidden = true;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
_syncMaximizeButtons() {
|
|
565
|
+
this.embedEntries.forEach((entry) => {
|
|
566
|
+
const button = entry.wrapper?.querySelector('.drawio-embed-btn[data-action="toggle-maximize"]');
|
|
567
|
+
if (!(button instanceof HTMLElement)) {
|
|
568
|
+
return;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
const isMaximized = this.maximizedEntry?.key === entry.key;
|
|
572
|
+
setDiagramActionButtonIcon(button, isMaximized ? 'restore' : 'maximize');
|
|
573
|
+
button.title = isMaximized ? 'Restore diagram size' : 'Maximize diagram';
|
|
574
|
+
button.setAttribute('aria-label', isMaximized ? 'Restore diagram size' : 'Maximize diagram');
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
|
|
414
578
|
_findEntryByInstanceId(instanceId) {
|
|
415
579
|
for (const entry of this.embedEntries.values()) {
|
|
416
580
|
if (entry.instanceId === instanceId) {
|
|
@@ -434,7 +598,7 @@ export class DrawioEmbedController {
|
|
|
434
598
|
|
|
435
599
|
if (payload.type === 'fallback-text') {
|
|
436
600
|
if (entry.mode === 'view') {
|
|
437
|
-
this.
|
|
601
|
+
this.renderViewerFallback(entry, 'Failed to render draw.io preview');
|
|
438
602
|
return;
|
|
439
603
|
}
|
|
440
604
|
this.onOpenTextFile?.(entry.filePath);
|
|
@@ -467,17 +631,12 @@ export class DrawioEmbedController {
|
|
|
467
631
|
}
|
|
468
632
|
return;
|
|
469
633
|
}
|
|
634
|
+
}
|
|
470
635
|
|
|
471
|
-
|
|
472
|
-
if (
|
|
473
|
-
|
|
474
|
-
this.
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
const viewerFrame = event.target.closest('.drawio-viewer-frame[data-action="open-file"]');
|
|
478
|
-
if (viewerFrame) {
|
|
479
|
-
event.preventDefault();
|
|
480
|
-
this.onOpenFile?.(viewerFrame.dataset.filePath || '');
|
|
636
|
+
_onKeyDown(event) {
|
|
637
|
+
if (event.key === 'Escape') {
|
|
638
|
+
this._exitMaximizedEntry();
|
|
639
|
+
this._syncMaximizeButtons();
|
|
481
640
|
}
|
|
482
641
|
}
|
|
483
642
|
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
normalizeVaultPathInput,
|
|
12
12
|
} from '../domain/vault-paths.js';
|
|
13
13
|
import { createWorkspaceRequestId } from '../domain/workspace-request-id.js';
|
|
14
|
+
import { buttonClassNames } from './components/ui/button.js';
|
|
14
15
|
import { CreateMenuPresenter } from './create-menu-presenter.js';
|
|
15
16
|
|
|
16
17
|
function getPathLeaf(path) {
|
|
@@ -333,8 +334,8 @@ export class FileActionController {
|
|
|
333
334
|
|
|
334
335
|
this.actionSubmitButton.textContent = submitLabel;
|
|
335
336
|
this.actionSubmitButton.disabled = false;
|
|
336
|
-
this.actionSubmitButton.classList.toggle('
|
|
337
|
-
this.actionSubmitButton.classList.toggle('
|
|
337
|
+
this.actionSubmitButton.classList.toggle('ui-button--primary', !destructive);
|
|
338
|
+
this.actionSubmitButton.classList.toggle('ui-button--danger', destructive);
|
|
338
339
|
this.actionCancelButton.disabled = false;
|
|
339
340
|
|
|
340
341
|
if (typeof this.actionDialog.showModal === 'function') {
|
|
@@ -384,8 +385,7 @@ export class FileActionController {
|
|
|
384
385
|
if (this.actionSubmitButton) {
|
|
385
386
|
this.actionSubmitButton.textContent = 'Save';
|
|
386
387
|
this.actionSubmitButton.disabled = false;
|
|
387
|
-
this.actionSubmitButton.
|
|
388
|
-
this.actionSubmitButton.classList.remove('btn-danger');
|
|
388
|
+
this.actionSubmitButton.className = buttonClassNames({ variant: 'primary' });
|
|
389
389
|
}
|
|
390
390
|
if (this.actionCancelButton) {
|
|
391
391
|
this.actionCancelButton.disabled = false;
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
stripVaultFileExtension,
|
|
4
4
|
} from '../../domain/file-kind.js';
|
|
5
5
|
import { escapeHtml } from '../domain/vault-utils.js';
|
|
6
|
+
import { buttonClassNames } from './components/ui/button.js';
|
|
6
7
|
|
|
7
8
|
function getPathLeaf(path) {
|
|
8
9
|
return String(path ?? '')
|
|
@@ -612,7 +613,10 @@ export class FileExplorerView {
|
|
|
612
613
|
items.forEach((item) => {
|
|
613
614
|
const button = document.createElement('button');
|
|
614
615
|
button.type = 'button';
|
|
615
|
-
button.className =
|
|
616
|
+
button.className = buttonClassNames({
|
|
617
|
+
variant: 'secondary',
|
|
618
|
+
extra: ['file-action-sheet-item', item.danger ? 'file-context-danger' : ''],
|
|
619
|
+
});
|
|
616
620
|
button.textContent = item.label;
|
|
617
621
|
button.addEventListener('click', () => {
|
|
618
622
|
this.removeContextMenu();
|
|
@@ -623,7 +627,10 @@ export class FileExplorerView {
|
|
|
623
627
|
|
|
624
628
|
const cancelButton = document.createElement('button');
|
|
625
629
|
cancelButton.type = 'button';
|
|
626
|
-
cancelButton.className =
|
|
630
|
+
cancelButton.className = buttonClassNames({
|
|
631
|
+
variant: 'ghost',
|
|
632
|
+
extra: 'file-action-sheet-item',
|
|
633
|
+
});
|
|
627
634
|
cancelButton.textContent = 'Cancel';
|
|
628
635
|
cancelButton.addEventListener('click', () => {
|
|
629
636
|
this.removeContextMenu();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { escapeHtml } from '../domain/vault-utils.js';
|
|
2
2
|
import { resolveApiUrl } from '../domain/runtime-paths.js';
|
|
3
|
+
import { buttonClassNames } from './components/ui/button.js';
|
|
3
4
|
|
|
4
5
|
const HISTORY_PAGE_SIZE = 30;
|
|
5
6
|
|
|
@@ -687,7 +688,7 @@ export class FileHistoryViewController {
|
|
|
687
688
|
</div>
|
|
688
689
|
<div class="file-history-detail-actions">
|
|
689
690
|
<button
|
|
690
|
-
class="
|
|
691
|
+
class="${buttonClassNames({ variant: 'secondary', action: true, surface: true })}"
|
|
691
692
|
type="button"
|
|
692
693
|
data-file-history-open-selected-diff
|
|
693
694
|
>
|
|
@@ -695,7 +696,7 @@ export class FileHistoryViewController {
|
|
|
695
696
|
</button>
|
|
696
697
|
${entry.type === 'commit' ? `
|
|
697
698
|
<button
|
|
698
|
-
class="
|
|
699
|
+
class="${buttonClassNames({ variant: 'primary', action: true })}"
|
|
699
700
|
type="button"
|
|
700
701
|
data-file-history-open-selected-preview
|
|
701
702
|
>
|
|
@@ -783,7 +784,7 @@ export class FileHistoryViewController {
|
|
|
783
784
|
${this.history.hasMore ? `
|
|
784
785
|
<div class="git-history-footer file-history-footer">
|
|
785
786
|
<button
|
|
786
|
-
class="
|
|
787
|
+
class="${buttonClassNames({ variant: 'secondary', size: 'compact', action: true, surface: true, extra: 'git-history-load-more' })}"
|
|
787
788
|
type="button"
|
|
788
789
|
data-file-history-load-more
|
|
789
790
|
${this.history.loadingMore ? 'disabled' : ''}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { escapeHtml } from '../domain/vault-utils.js';
|
|
2
2
|
import { resolveApiUrl } from '../domain/runtime-paths.js';
|
|
3
|
+
import { buttonClassNames } from './components/ui/button.js';
|
|
3
4
|
|
|
4
5
|
function getPathLeaf(pathValue) {
|
|
5
6
|
return String(pathValue ?? '').split('/').pop() || '';
|
|
@@ -586,7 +587,7 @@ export class GitDiffViewController {
|
|
|
586
587
|
<div class="diff-limit-card">
|
|
587
588
|
<strong>Large diff withheld</strong>
|
|
588
589
|
<span>This file diff is large enough to impact rendering performance.</span>
|
|
589
|
-
<button class="
|
|
590
|
+
<button class="${buttonClassNames({ variant: 'secondary', extra: 'diff-load-full-btn' })}" type="button" data-load-full-diff data-diff-file-path="${escapeHtml(detail.path)}">Load full diff</button>
|
|
590
591
|
</div>
|
|
591
592
|
`;
|
|
592
593
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { escapeHtml } from '../domain/vault-utils.js';
|
|
2
2
|
import { resolveApiUrl } from '../domain/runtime-paths.js';
|
|
3
|
+
import { buttonClassNames } from './components/ui/button.js';
|
|
4
|
+
import { segmentedButtonClassNames, segmentedControlClassNames } from './components/ui/segmented-control.js';
|
|
3
5
|
|
|
4
6
|
const HISTORY_PAGE_SIZE = 30;
|
|
5
7
|
const REFRESH_INTERVAL_MS = 10_000;
|
|
@@ -792,9 +794,9 @@ export class GitPanelController {
|
|
|
792
794
|
|
|
793
795
|
renderPanelModes() {
|
|
794
796
|
return `
|
|
795
|
-
<div class="
|
|
797
|
+
<div class="${segmentedControlClassNames({ pill: true, extra: 'git-panel-mode-switch' })}" role="tablist" aria-label="Git panel modes">
|
|
796
798
|
<button
|
|
797
|
-
class="
|
|
799
|
+
class="${segmentedButtonClassNames({ active: this.panelMode === 'changes', extra: 'git-panel-mode-btn' })}"
|
|
798
800
|
type="button"
|
|
799
801
|
data-git-panel-mode="changes"
|
|
800
802
|
aria-selected="${this.panelMode === 'changes'}"
|
|
@@ -802,7 +804,7 @@ export class GitPanelController {
|
|
|
802
804
|
Changes
|
|
803
805
|
</button>
|
|
804
806
|
<button
|
|
805
|
-
class="
|
|
807
|
+
class="${segmentedButtonClassNames({ active: this.panelMode === 'history', extra: 'git-panel-mode-btn' })}"
|
|
806
808
|
type="button"
|
|
807
809
|
data-git-panel-mode="history"
|
|
808
810
|
aria-selected="${this.panelMode === 'history'}"
|
|
@@ -868,7 +870,7 @@ export class GitPanelController {
|
|
|
868
870
|
${this.history.hasMore ? `
|
|
869
871
|
<div class="git-history-footer">
|
|
870
872
|
<button
|
|
871
|
-
class="
|
|
873
|
+
class="${buttonClassNames({ variant: 'secondary', size: 'compact', action: true, surface: true, extra: 'git-history-load-more' })}"
|
|
872
874
|
type="button"
|
|
873
875
|
data-git-history-load-more
|
|
874
876
|
${this.history.loadingMore ? 'disabled' : ''}
|
|
@@ -896,12 +898,12 @@ export class GitPanelController {
|
|
|
896
898
|
${hasChanges ? `
|
|
897
899
|
<div class="git-panel-footer">
|
|
898
900
|
<div class="git-panel-footer-actions">
|
|
899
|
-
<button class="
|
|
901
|
+
<button class="${buttonClassNames({ variant: 'secondary', size: 'compact', action: true, surface: true })}" type="button" data-git-view-all>
|
|
900
902
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M2 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>
|
|
901
903
|
View Full Diff
|
|
902
904
|
</button>
|
|
903
905
|
<button
|
|
904
|
-
class="
|
|
906
|
+
class="${buttonClassNames({ variant: 'primary', action: true, wide: true, extra: 'git-footer-commit-btn' })}"
|
|
905
907
|
type="button"
|
|
906
908
|
data-git-commit-staged
|
|
907
909
|
${!hasStagedChanges || isCommitPending ? 'disabled' : ''}
|
|
@@ -953,7 +955,7 @@ export class GitPanelController {
|
|
|
953
955
|
</div>
|
|
954
956
|
<div class="git-branch-actions" role="group" aria-label="Remote sync actions">
|
|
955
957
|
<button
|
|
956
|
-
class="
|
|
958
|
+
class="${buttonClassNames({ variant: 'secondary', size: 'compact', pill: true, surface: true, extra: 'ui-action-pill' })}"
|
|
957
959
|
type="button"
|
|
958
960
|
data-git-sync-action="pull"
|
|
959
961
|
title="${hasUpstream ? 'Pull remote changes (fast-forward only)' : 'No upstream branch configured'}"
|
|
@@ -963,7 +965,7 @@ export class GitPanelController {
|
|
|
963
965
|
${isPullPending ? '...' : `${actionIconSvg('pull')}<span>Pull</span>`}
|
|
964
966
|
</button>
|
|
965
967
|
<button
|
|
966
|
-
class="
|
|
968
|
+
class="${buttonClassNames({ variant: 'secondary', size: 'compact', pill: true, surface: true, extra: 'ui-action-pill' })}"
|
|
967
969
|
type="button"
|
|
968
970
|
data-git-sync-action="push"
|
|
969
971
|
title="${hasUpstream ? 'Push local commits' : 'No upstream branch configured'}"
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export class LayoutController {
|
|
2
|
-
constructor({
|
|
2
|
+
constructor({
|
|
3
|
+
mobileBreakpointQuery = window.matchMedia('(max-width: 768px)'),
|
|
4
|
+
onMeasureEditor,
|
|
5
|
+
onViewRequest = null,
|
|
6
|
+
}) {
|
|
3
7
|
this.mobileBreakpointQuery = mobileBreakpointQuery;
|
|
4
8
|
this.onMeasureEditor = onMeasureEditor;
|
|
9
|
+
this.onViewRequest = onViewRequest;
|
|
5
10
|
this.preferredView = 'split';
|
|
6
11
|
this.mobileShowsEditor = !this.isMobileViewport();
|
|
7
12
|
this.currentView = this.mobileShowsEditor ? this.preferredView : 'preview';
|
|
@@ -19,7 +24,13 @@ export class LayoutController {
|
|
|
19
24
|
|
|
20
25
|
initialize() {
|
|
21
26
|
this.viewButtons.forEach((button) => {
|
|
22
|
-
button.addEventListener('click', () =>
|
|
27
|
+
button.addEventListener('click', () => {
|
|
28
|
+
if (this.onViewRequest?.(button.dataset.view) === false) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
this.setView(button.dataset.view);
|
|
33
|
+
});
|
|
23
34
|
});
|
|
24
35
|
|
|
25
36
|
this.mobileToggleButton?.addEventListener('click', () => this.toggleMobileView());
|
|
@@ -27,6 +38,19 @@ export class LayoutController {
|
|
|
27
38
|
this.restorePreferredView();
|
|
28
39
|
}
|
|
29
40
|
|
|
41
|
+
primeView(view) {
|
|
42
|
+
if (!view) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (this.isMobileViewport()) {
|
|
47
|
+
this.mobileShowsEditor = view !== 'preview';
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
this.preferredView = view;
|
|
52
|
+
}
|
|
53
|
+
|
|
30
54
|
reset() {
|
|
31
55
|
this.restorePreferredView();
|
|
32
56
|
|
|
@@ -73,8 +97,14 @@ export class LayoutController {
|
|
|
73
97
|
}
|
|
74
98
|
|
|
75
99
|
toggleMobileView() {
|
|
76
|
-
|
|
77
|
-
|
|
100
|
+
const nextShowsEditor = !this.mobileShowsEditor;
|
|
101
|
+
const nextView = nextShowsEditor ? 'split' : 'preview';
|
|
102
|
+
if (this.onViewRequest?.(nextView) === false) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
this.mobileShowsEditor = nextShowsEditor;
|
|
107
|
+
this.applyView(nextView);
|
|
78
108
|
this.updateMobileToggleButton(this.mobileShowsEditor ? 'Preview' : 'Editor');
|
|
79
109
|
|
|
80
110
|
if (this.mobileShowsEditor) {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/* ===== COMPONENTS / ACTIONS ===== */
|
|
2
2
|
|
|
3
|
+
.ui-button--action,
|
|
3
4
|
.ui-toolbar-action {
|
|
4
5
|
flex-shrink: 0;
|
|
5
6
|
}
|
|
6
7
|
|
|
8
|
+
.ui-button--action,
|
|
7
9
|
.ui-action-button {
|
|
8
10
|
min-height: var(--control-h-md);
|
|
9
11
|
padding: 0 14px;
|
|
@@ -13,18 +15,22 @@
|
|
|
13
15
|
white-space: nowrap;
|
|
14
16
|
}
|
|
15
17
|
|
|
18
|
+
.ui-button--wide,
|
|
16
19
|
.ui-action-button--wide {
|
|
17
20
|
min-width: 92px;
|
|
18
21
|
}
|
|
19
22
|
|
|
23
|
+
.ui-button--surface,
|
|
20
24
|
.ui-action-button--surface {
|
|
21
25
|
background: var(--color-surface-offset);
|
|
22
26
|
}
|
|
23
27
|
|
|
28
|
+
.ui-button--surface:hover:not(:disabled),
|
|
24
29
|
.ui-action-button--surface:hover:not(:disabled) {
|
|
25
30
|
background: var(--color-surface-dynamic);
|
|
26
31
|
}
|
|
27
32
|
|
|
33
|
+
.ui-button--pill,
|
|
28
34
|
.ui-action-pill {
|
|
29
35
|
flex-shrink: 0;
|
|
30
36
|
min-width: 0;
|