collabmd 0.1.35 → 0.1.36
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/dist/client/assets/{CodeMirrorEditor-UCMRAMCV-CvLFeHXu.js → CodeMirrorEditor-UCMRAMCV-DnBV8gCm.js} +1 -1
- package/dist/client/assets/{_baseFor-Bfo4esZ5.js → _baseFor-BSErPbF2.js} +1 -1
- package/dist/client/assets/{ar-SA-NXDWD63E-WivLHHDW.js → ar-SA-NXDWD63E-CTf_wpt3.js} +1 -1
- package/dist/client/assets/{arc-tRoMuWFi.js → arc-DD8jaAGl.js} +1 -1
- package/dist/client/assets/architecture-YZFGNWBL-DWWrde02.js +1 -0
- package/dist/client/assets/{architectureDiagram-Q4EWVU46-CVdcOotN.js → architectureDiagram-Q4EWVU46-BftXiJA8.js} +1 -1
- package/dist/client/assets/{az-AZ-MXSORGZV-DOdq1TKC.js → az-AZ-MXSORGZV-C_C9i9u3.js} +1 -1
- package/dist/client/assets/{bg-BG-O6MV2KSF-CYucKuDS.js → bg-BG-O6MV2KSF-YmfvQf63.js} +1 -1
- package/dist/client/assets/{blockDiagram-DXYQGD6D-B_gNUKQ4.js → blockDiagram-DXYQGD6D-6UN-nR8-.js} +1 -1
- package/dist/client/assets/{bn-IN-MMW2ORAC-DYr8kqNL.js → bn-BD-T2VJNT7N-BD0ob0JE.js} +1 -1
- package/dist/client/assets/{bn-BD-T2VJNT7N-2OKWLCYa.js → bn-IN-MMW2ORAC-BTEFR4Ed.js} +1 -1
- package/dist/client/assets/{c4Diagram-AHTNJAMY-BSDwfduG.js → c4Diagram-AHTNJAMY-Gz7ZAK0d.js} +1 -1
- package/dist/client/assets/{ca-ES-MKBCGNOG-B9Aeb43I.js → ca-ES-MKBCGNOG-aLX_cjA0.js} +1 -1
- package/dist/client/assets/channel-XGCkuPi6.js +1 -0
- package/dist/client/assets/{chunk-2KRD3SAO-C6u8y11R.js → chunk-2KRD3SAO-CFcF2aNP.js} +1 -1
- package/dist/client/assets/{chunk-336JU56O-Ch9X5KoM.js → chunk-336JU56O-DvrrHsJT.js} +2 -2
- package/dist/client/assets/chunk-426QAEUC-CEbmCgux.js +1 -0
- package/dist/client/assets/{chunk-4BX2VUAB-2e7V-uuE.js → chunk-4BX2VUAB-D5YiFdu1.js} +1 -1
- package/dist/client/assets/{chunk-4TB4RGXK-BEsauZP5.js → chunk-4TB4RGXK-CoouNThi.js} +2 -2
- package/dist/client/assets/{chunk-55IACEB6-DLqevMSj.js → chunk-55IACEB6-VHgZjidg.js} +1 -1
- package/dist/client/assets/{chunk-5FUZZQ4R-6x8SlhH9.js → chunk-5FUZZQ4R-CxIIxXPy.js} +1 -1
- package/dist/client/assets/{chunk-5PVQY5BW-R5SE6dhE.js → chunk-5PVQY5BW-ciE7eHID.js} +1 -1
- package/dist/client/assets/{chunk-67CJDMHE-CjXw5hFa.js → chunk-67CJDMHE-CW-fbgQB.js} +1 -1
- package/dist/client/assets/{chunk-7N4EOEYR-DNHyuswJ.js → chunk-7N4EOEYR-DbAW6XnF.js} +1 -1
- package/dist/client/assets/{chunk-AA7GKIK3-DayE4IF_.js → chunk-AA7GKIK3-ClDHDAza.js} +1 -1
- package/dist/client/assets/{chunk-BSJP7CBP-CexlYBxB.js → chunk-BSJP7CBP-D2KkrA_B.js} +1 -1
- package/dist/client/assets/{chunk-CIAEETIT-CkDJ4DYI.js → chunk-CIAEETIT-BnB8a6HR.js} +1 -1
- package/dist/client/assets/{chunk-EDXVE4YY-BVR_nF3y.js → chunk-EDXVE4YY-M4QxyGNt.js} +1 -1
- package/dist/client/assets/{chunk-ENJZ2VHE-CFVWytAB.js → chunk-ENJZ2VHE-BQj_1YA_.js} +1 -1
- package/dist/client/assets/{chunk-FMBD7UC4-CMahlBa_.js → chunk-FMBD7UC4-qQT7MtX2.js} +1 -1
- package/dist/client/assets/{chunk-FOC6F5B3-DzCiCLGs.js → chunk-FOC6F5B3-Bw6XfKDP.js} +1 -1
- package/dist/client/assets/{chunk-ICPOFSXX-B9LPHgU7.js → chunk-ICPOFSXX-DqJi89rc.js} +1 -1
- package/dist/client/assets/{chunk-K5T4RW27-kmGSebVE.js → chunk-K5T4RW27-CQtjKF2g.js} +7 -7
- package/dist/client/assets/{chunk-KGLVRYIC-DVjPRsaR.js → chunk-KGLVRYIC-BWSPiKjp.js} +1 -1
- package/dist/client/assets/{chunk-LIHQZDEY-DKFj13sC.js → chunk-LIHQZDEY-DtYrHuCi.js} +1 -1
- package/dist/client/assets/{chunk-AXZTUZBK-DuMiJYO9.js → chunk-LOOWOR4L-C5BUwXgZ.js} +2 -2
- package/dist/client/assets/{chunk-ORNJ4GCN-D0uTAC-5.js → chunk-ORNJ4GCN-Csga44e5.js} +1 -1
- package/dist/client/assets/{chunk-OYMX7WX6-nWiNHNyD.js → chunk-OYMX7WX6-DvtmCasj.js} +1 -1
- package/dist/client/assets/chunk-QZHKN3VN-CHVH9_3S.js +1 -0
- package/dist/client/assets/{chunk-SRAX5OIU-CLVBQRWC.js → chunk-SRAX5OIU-yDw8XRsi.js} +1 -1
- package/dist/client/assets/{chunk-U2HBQHQK-Bue4Ufzn.js → chunk-U2HBQHQK-BBXgsocS.js} +1 -1
- package/dist/client/assets/{chunk-X2U36JSP-CRE6lp7n.js → chunk-X2U36JSP-D3OEPG7k.js} +1 -1
- package/dist/client/assets/{chunk-XPW4576I-BL5M-tF8.js → chunk-XPW4576I-BUfyrOtN.js} +1 -1
- package/dist/client/assets/chunk-YHkbxXgt.js +1 -0
- package/dist/client/assets/chunk-YKPWT25G-GISHuloq.js +35 -0
- package/dist/client/assets/{chunk-YZCP3GAM-D7Z5wUWA.js → chunk-YZCP3GAM-D1jf1WUI.js} +1 -1
- package/dist/client/assets/{chunk-Z5NKEFVG-HOkYqaKa.js → chunk-Z5NKEFVG-Vu8zBV4H.js} +1 -1
- package/dist/client/assets/{chunk-ZZ45TVLE-CBbl1Qec.js → chunk-ZZ45TVLE-DGIhE_ST.js} +1 -1
- package/dist/client/assets/classDiagram-6PBFFD2Q-D1KhAUL3.js +1 -0
- package/dist/client/assets/classDiagram-v2-HSJHXN6E-BSyyJpnR.js +1 -0
- package/dist/client/assets/clone-DI0bYZ1L.js +1 -0
- package/dist/client/assets/{cose-bilkent-S5V4N54A-xxgR5OJ-.js → cose-bilkent-S5V4N54A-A8ssRFyt.js} +1 -1
- package/dist/client/assets/{cs-CZ-V77HGUP7-BDg-F0CJ.js → cs-CZ-V77HGUP7-Du3y53BB.js} +1 -1
- package/dist/client/assets/{cytoscape.esm-B3PRdePO.js → cytoscape.esm-BurByw8X.js} +2 -2
- package/dist/client/assets/{da-DK-I5RFNTM4-wtSQ0Jxa.js → da-DK-I5RFNTM4-CDJtjf5s.js} +1 -1
- package/dist/client/assets/{dagre-VaFYRFbD.js → dagre-Dn6rkrte.js} +1 -1
- package/dist/client/assets/{dagre-KV5264BT-C2K9mFg1.js → dagre-KV5264BT-COzej2en.js} +1 -1
- package/dist/client/assets/{de-CH-WLRDEVBV-C1swvmZy.js → de-CH-WLRDEVBV-CLV2tVw6.js} +1 -1
- package/dist/client/assets/{de-DE-DTI4WUSC-C0L6Nz8X.js → de-DE-DTI4WUSC-B53J0BQ8.js} +1 -1
- package/dist/client/assets/{diagram-5BDNPKRD-DE0M0jaM.js → diagram-5BDNPKRD-BuK-UBuN.js} +1 -1
- package/dist/client/assets/{diagram-G4DWMVQ6-BfaRuSTT.js → diagram-G4DWMVQ6-CbswIU9X.js} +1 -1
- package/dist/client/assets/{diagram-MMDJMWI5-91Bly_hN.js → diagram-MMDJMWI5-BE-yOVGX.js} +1 -1
- package/dist/client/assets/{diagram-TYMM5635-fBkLwZGN.js → diagram-TYMM5635-CT8BdT4s.js} +1 -1
- package/dist/client/assets/{dist-FC9LftvP.js → dist-B98fHn5m.js} +1 -1
- package/dist/client/assets/{dist-VPEWg0Ob.js → dist-BE8C_ouo.js} +1 -1
- package/dist/client/assets/{dist-r5I9Jgww.js → dist-BEKQo64E.js} +1 -1
- package/dist/client/assets/{dist-BMlUxhOz.js → dist-BOP-dC-R.js} +1 -1
- package/dist/client/assets/{dist-DidT3Jay.js → dist-BPEi1dEF.js} +1 -1
- package/dist/client/assets/{dist-DAKGEzm0.js → dist-BScEL4VP.js} +1 -1
- package/dist/client/assets/dist-BfVljg0L2.js +1 -0
- package/dist/client/assets/{dist-PPAeaw4t.js → dist-BiCgLddE.js} +1 -1
- package/dist/client/assets/{dist-CSNMpi-w.js → dist-Bn8WRPs1.js} +1 -1
- package/dist/client/assets/{dist-CSAH9iuE.js → dist-Brrlevif.js} +1 -1
- package/dist/client/assets/{dist-Dwy75xI6.js → dist-CBEw2W2P.js} +1 -1
- package/dist/client/assets/{dist-Bkn7JaJv.js → dist-CJWCCWEW.js} +1 -1
- package/dist/client/assets/{dist-D1-dK0Dk.js → dist-CQVTTk81.js} +1 -1
- package/dist/client/assets/{dist-BSED50tI.js → dist-CaMl1R6P.js} +3 -3
- package/dist/client/assets/dist-CcG3Y7Wp.js +1 -0
- package/dist/client/assets/dist-CghBwrO3.js +1 -0
- package/dist/client/assets/dist-Csbx9lQ-.js +1 -0
- package/dist/client/assets/dist-D34Xzrah.js +1 -0
- package/dist/client/assets/dist-DLyohOXi.js +1 -0
- package/dist/client/assets/{dist-CqU98NzX.js → dist-DPCUH5MO.js} +1 -1
- package/dist/client/assets/{dist-74GtnE06.js → dist-DQiph4qx.js} +1 -1
- package/dist/client/assets/{dist-C0e9kfNh.js → dist-DWRyOl2w.js} +1 -1
- package/dist/client/assets/{dist-cQSK4Xor.js → dist-DZ2t5lUX.js} +1 -1
- package/dist/client/assets/{dist-D0dQAc9b.js → dist-Dbg8P4C5.js} +1 -1
- package/dist/client/assets/{dist-Co8HE14w.js → dist-DdAqzGFU.js} +1 -1
- package/dist/client/assets/{dist-CDUQ5ELn.js → dist-DwvSvkOE.js} +1 -1
- package/dist/client/assets/{dist-Doo91MTa.js → dist-WXLmfDGg.js} +1 -1
- package/dist/client/assets/{dist-DdR2aYqj.js → dist-aE0_04fl.js} +1 -1
- package/dist/client/assets/{dist-Bzb9nPam.js → dist-mPPUaHhq.js} +1 -1
- package/dist/client/assets/{dist-DSRCADL9.js → dist-v3i1ifes.js} +1 -1
- package/dist/client/assets/{dist-DBzteOlY.js → dist-wkd-N1L5.js} +1 -1
- package/dist/client/assets/{drawio-editor-CWLEpwps.js → drawio-editor-D4Qoluwz.js} +1 -1
- package/dist/client/assets/{drawioEditor-5rJhxjA4.js → drawioEditor-B65FWq-b.js} +2 -2
- package/dist/client/assets/{editor-session-CLOuvy37.js → editor-session-DV80PhYL.js} +3 -3
- package/dist/client/assets/{el-GR-ZXDJ2OS4-BH0saXds.js → el-GR-ZXDJ2OS4-DFmRQv0o.js} +1 -1
- package/dist/client/assets/{en-IQZW2TQM-CzlcEpq3.js → en-CMP6EMR6-D9x8hVSu.js} +1 -1
- package/dist/client/assets/{erDiagram-SMLLAGMA-DUQcqEQ1.js → erDiagram-SMLLAGMA-6VFZA3Qb.js} +1 -1
- package/dist/client/assets/{es-ES-DYQHAD43-CyzL9Mni.js → es-ES-DYQHAD43-BiGWIrBG.js} +1 -1
- package/dist/client/assets/{eu-ES-QDSYU5Y3-D2-x316S.js → eu-ES-QDSYU5Y3-BjwS0kZi.js} +1 -1
- package/dist/client/assets/excalidraw-editor-BZCE9ydu.css +1 -0
- package/dist/client/assets/excalidraw-editor-hiJQt1cX.js +9 -0
- package/dist/client/assets/excalidraw-scene-MyNAJi2A.js +176 -0
- package/dist/client/assets/excalidrawEditor-BnbblxK4.js +2 -0
- package/dist/client/assets/{export-page-D2rCmrUH.js → export-page-BKDarp9x.js} +3 -3
- package/dist/client/assets/exportDocument-CULEGKmb.js +2 -0
- package/dist/client/assets/{fa-IR-26LZG4PM-D8-trU2x.js → fa-IR-26LZG4PM-BgANg2TD.js} +1 -1
- package/dist/client/assets/{fi-FI-6YS4KDE4-CCdRVFDQ.js → fi-FI-6YS4KDE4-CBL5f3oN.js} +1 -1
- package/dist/client/assets/{flatten-CX_XvnUf.js → flatten-DjXjUsvv.js} +1 -1
- package/dist/client/assets/{flowDiagram-DWJPFMVM-B_A5JyId.js → flowDiagram-DWJPFMVM-DO9RH8YQ.js} +1 -1
- package/dist/client/assets/{fr-FR-BRLLPTZC-Dqq-O5T_.js → fr-FR-BRLLPTZC-CRibNSLG.js} +1 -1
- package/dist/client/assets/{ganttDiagram-T4ZO3ILL-HM3CD7bk.js → ganttDiagram-T4ZO3ILL-B-NMvHWN.js} +1 -1
- package/dist/client/assets/gitGraph-7Q5UKJZL-DWNinXu4.js +1 -0
- package/dist/client/assets/{gitGraphDiagram-UUTBAWPF-Dw7twZDm.js → gitGraphDiagram-UUTBAWPF-B95qkCUx.js} +1 -1
- package/dist/client/assets/{gl-ES-OKUZTLYG-BK7pbLbm.js → gl-ES-OKUZTLYG-DEDwa_xt.js} +1 -1
- package/dist/client/assets/{graphlib-DDD4Vdye.js → graphlib-CAwOVCJc.js} +1 -1
- package/dist/client/assets/{he-IL-26MGYIU7-C3BuYKyY.js → he-IL-26MGYIU7-47wxy70N.js} +1 -1
- package/dist/client/assets/{hi-IN-Q4ZOGTP2-BEvXWXnH.js → hi-IN-Q4ZOGTP2-bhV7c3dK.js} +1 -1
- package/dist/client/assets/{hu-HU-P2OXPSN5-BWWZeJNp.js → hu-HU-P2OXPSN5-xG-gBMzE.js} +1 -1
- package/dist/client/assets/{id-ID-2EIKXYN6-DxSKi_aJ.js → id-ID-2EIKXYN6-MQuYaNHo.js} +1 -1
- package/dist/client/assets/image-J2CAS7OM-DD4DaQTs.js +1 -0
- package/dist/client/assets/{image-blob-reduce.esm-DiuPkovC.js → image-blob-reduce.esm-D8JQdTFk.js} +1 -1
- package/dist/client/assets/{index-BbziNMqE.js → index-BjdYZiBM.js} +2 -2
- package/dist/client/assets/{index-BIt5EZXz.css → index-BryqP9QY.css} +1 -1
- package/dist/client/assets/info-OMHHGYJF-DtYG_rX0.js +1 -0
- package/dist/client/assets/{infoDiagram-42DDH7IO-DX-d3DMp.js → infoDiagram-42DDH7IO-C77Pt7T1.js} +1 -1
- package/dist/client/assets/{isEmpty-BKDbo1FH.js → isEmpty-CpfhGGBo.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-UXIWVN3A-BHmsxpMs.js → ishikawaDiagram-UXIWVN3A-Cy1fwvvg.js} +1 -1
- package/dist/client/assets/{it-IT-4CFKVXI2-BmA8wW6q.js → it-IT-4CFKVXI2-v2kj-y7j.js} +1 -1
- package/dist/client/assets/{ja-JP-MAND2Z4V-CLS1jI9o.js → ja-JP-MAND2Z4V-BahXSQz-.js} +1 -1
- package/dist/client/assets/{journeyDiagram-VCZTEJTY-jxDSjgE1.js → journeyDiagram-VCZTEJTY-CYWaI6re.js} +1 -1
- package/dist/client/assets/{jsx-runtime-B_8UNt-W.js → jsx-runtime-1KUJVfx8.js} +1 -1
- package/dist/client/assets/{kaa-HQRTCXTJ-W15DEDPz.js → kaa-HQRTCXTJ-BF26ydFa.js} +1 -1
- package/dist/client/assets/{kab-KAB-JKIKKTGH-MLh1inqS.js → kab-KAB-JKIKKTGH-CEIH0F80.js} +1 -1
- package/dist/client/assets/{kanban-definition-6JOO6SKY-od3qY1mE.js → kanban-definition-6JOO6SKY-DY1xE7tm.js} +1 -1
- package/dist/client/assets/{kk-KZ-HXQ63ZFC-BtFrPeLs.js → kk-KZ-HXQ63ZFC-CxWjc9Sf.js} +1 -1
- package/dist/client/assets/{km-KH-PKL3LSGX-xO5FyM9T.js → km-KH-PKL3LSGX-DJlCteEp.js} +1 -1
- package/dist/client/assets/{ko-KR-KXLREZX3-NZFoRybS.js → ko-KR-KXLREZX3-B1gtI_ci.js} +1 -1
- package/dist/client/assets/{ku-TR-MJ4IER3X-B5eVPIpK.js → ku-TR-MJ4IER3X-Bf41y2v2.js} +1 -1
- package/dist/client/assets/{line-CZsGUM4H.js → line-BCItEgq3.js} +1 -1
- package/dist/client/assets/{linear-B2dOdA24.js → linear-dsIQT_iU.js} +1 -1
- package/dist/client/assets/{lt-LT-H6WFQ6FJ-D_7_OeJD.js → lt-LT-H6WFQ6FJ-DA1or-Eo.js} +1 -1
- package/dist/client/assets/{lv-LV-GOCK6SJW-CnpKr0oQ.js → lv-LV-GOCK6SJW-qa0BoYMm.js} +1 -1
- package/dist/client/assets/main-QJcxyvDa.js +1404 -0
- package/dist/client/assets/{mermaid-parser.core-DtIbxv6L.js → mermaid-parser.core-CsTVsPcD.js} +2 -2
- package/dist/client/assets/{mermaid-runtime-vVJfjscE.js → mermaid-runtime-BGlnoUXY.js} +3 -3
- package/dist/client/assets/{mindmap-definition-QFDTVHPH-C9qrdAqo.js → mindmap-definition-QFDTVHPH-DB_M5r-j.js} +1 -1
- package/dist/client/assets/{mr-IN-IXVLDMEQ-Pht2X_GK.js → mr-IN-IXVLDMEQ-DXFRgvgb.js} +1 -1
- package/dist/client/assets/{my-MM-YG6MYTTD-Cgq4HhPO.js → my-MM-YG6MYTTD-BKDIfalJ.js} +1 -1
- package/dist/client/assets/{nb-NO-XGWJISD2-Bn_Bk2un.js → nb-NO-XGWJISD2-DbwbopH8.js} +1 -1
- package/dist/client/assets/{nl-NL-XVDVCPNC-YkWSJS94.js → nl-NL-XVDVCPNC-ChSneTSU.js} +1 -1
- package/dist/client/assets/{nn-NO-EMX5MJX5-DhP5eZJ7.js → nn-NO-EMX5MJX5-Cf7ZWKWZ.js} +1 -1
- package/dist/client/assets/{oc-FR-ROEINTVO-D3udMPnr.js → oc-FR-ROEINTVO-lM7Nl7hD.js} +1 -1
- package/dist/client/assets/{pa-IN-ZYN6SUDY-CR5YzFig.js → pa-IN-ZYN6SUDY-C9WNUTeR.js} +1 -1
- package/dist/client/assets/packet-4T2RLAQJ-CUVefhAv.js +1 -0
- package/dist/client/assets/percentages-5DKR754L-DuhOjTM2.js +1 -0
- package/dist/client/assets/{pica-BEurQXMu.js → pica-CgGaIJly.js} +1 -1
- package/dist/client/assets/pie-ZZUOXDRM-BHBJ1dLX.js +1 -0
- package/dist/client/assets/{pieDiagram-DEJITSTG-BHXxj7wl.js → pieDiagram-DEJITSTG-BOo-WzjZ.js} +1 -1
- package/dist/client/assets/{pl-PL-6VTG7PHC-_wZuoIDM.js → pl-PL-6VTG7PHC-DqRVepnC.js} +1 -1
- package/dist/client/assets/{preview-diagram-utils-D8VypUft.js → preview-diagram-utils-Nqpp4FNV.js} +1 -1
- package/dist/client/assets/preview-render-compiler-BCB8u6iM.js +1 -0
- package/dist/client/assets/{preview-render-compiler-BHeDhYho.js → preview-render-compiler-Tkc6JX1O.js} +1 -1
- package/dist/client/assets/{preview-render-profile-BF6os3x9.js → preview-render-profile-Bf6R7v4w.js} +2 -2
- package/dist/client/assets/{preview-render-worker-C4AFtMIr.js → preview-render-worker-1LBLqgKu.js} +2 -2
- package/dist/client/assets/{pt-BR-5YFKRR5G-M7gIm2Hi.js → pt-BR-5YFKRR5G-CopLYEA6.js} +1 -1
- package/dist/client/assets/{pt-PT-GEIXXZ67-CcxWpkGj.js → pt-PT-GEIXXZ67-BjZ_Lphg.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-34T5L4WZ-CWW7LORF.js → quadrantDiagram-34T5L4WZ-2vfo0l5S.js} +1 -1
- package/dist/client/assets/radar-PYXPWWZC-2jR4qZNU.js +1 -0
- package/dist/client/assets/{reduce-C6FuFJbE.js → reduce-ChpYjEUB.js} +1 -1
- package/dist/client/assets/{requirementDiagram-MS252O5E-CTljNdQH.js → requirementDiagram-MS252O5E-CtUIQnWa.js} +1 -1
- package/dist/client/assets/{ro-RO-E2P6TFZI-qR9noVzP.js → ro-RO-E2P6TFZI-DakDz5Xu.js} +1 -1
- package/dist/client/assets/{room-DI7DXGeS.js → room-z2w9b96b.js} +1 -1
- package/dist/client/assets/{ru-RU-YBIIY43T-CE4S_RX8.js → ru-RU-YBIIY43T-BMvCT-XT.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-XADWPNL6-CCfFkC74.js → sankeyDiagram-XADWPNL6-tcSeuifE.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-FGHM5R23-BD9vj6WG.js → sequenceDiagram-FGHM5R23-DtF-1Kt2.js} +1 -1
- package/dist/client/assets/{si-LK-673C2CI2-Bv6Avh3z.js → si-LK-673C2CI2-hGdH1S9E.js} +1 -1
- package/dist/client/assets/{sk-SK-CKZHQ4AP-Cnlpp55z.js → sk-SK-CKZHQ4AP-DiRA-fj8.js} +1 -1
- package/dist/client/assets/{sl-SI-557H2GWM-BfGq7AQF.js → sl-SI-557H2GWM-DN94n_1-.js} +1 -1
- package/dist/client/assets/src-BuiVcSz-.js +1 -0
- package/dist/client/assets/{stateDiagram-FHFEXIEX-CpiX3KPd.js → stateDiagram-FHFEXIEX-DKk7Sb0f.js} +1 -1
- package/dist/client/assets/stateDiagram-v2-QKLJ7IA2-DJUaiADr.js +1 -0
- package/dist/client/assets/subset-shared.chunk-CWNYNLru.js +1 -0
- package/dist/client/assets/{subset-worker.chunk-BSCP6IiC.js → subset-worker.chunk-kj1e3wjW.js} +1 -1
- package/dist/client/assets/{sv-SE-XOPKKDWS-B2_Vk-sp.js → sv-SE-XOPKKDWS-CkHUNABj.js} +1 -1
- package/dist/client/assets/{ta-IN-XBH7DQI3-BXQMZZIx.js → ta-IN-XBH7DQI3-W-157oVK.js} +1 -1
- package/dist/client/assets/{th-TH-TOCWH3R4-C-ZIYMfH.js → th-TH-TOCWH3R4-BsU-Pydr.js} +1 -1
- package/dist/client/assets/{timeline-definition-GMOUNBTQ-BafRAkSF.js → timeline-definition-GMOUNBTQ-Bs6U53Mo.js} +1 -1
- package/dist/client/assets/{tr-TR-GXW6CYY5-dl702PMA.js → tr-TR-GXW6CYY5-CTddyq89.js} +1 -1
- package/dist/client/assets/treeView-SZITEDCU-DN5dP2ol.js +1 -0
- package/dist/client/assets/treemap-W4RFUUIX-Dva7DBJR.js +1 -0
- package/dist/client/assets/{uk-UA-IJKTNUDG-CUYQvSSF.js → uk-UA-IJKTNUDG-1LzXkII3.js} +1 -1
- package/dist/client/assets/{uz-UZ-TBZZEA4V-B9qw0PXX.js → uz-UZ-TBZZEA4V-kqm-qcUj.js} +1 -1
- package/dist/client/assets/{vennDiagram-DHZGUBPP-DSngq_Zj.js → vennDiagram-DHZGUBPP-DNnIjRae.js} +1 -1
- package/dist/client/assets/{vi-VN-MULSGNVB-DqxZ_sVc.js → vi-VN-MULSGNVB-C3H2AUhm.js} +1 -1
- package/dist/client/assets/wardley-RL74JXVD-CDZW5uzY.js +1 -0
- package/dist/client/assets/{wardleyDiagram-NUSXRM2D-CAEd2kJG.js → wardleyDiagram-NUSXRM2D-C-scJfPY.js} +1 -1
- package/dist/client/assets/{xychartDiagram-5P7HB3ND-BScQpnru.js → xychartDiagram-5P7HB3ND-D3nQoxhz.js} +1 -1
- package/dist/client/assets/{yjs-provider-reset-guard-_Q3mj6tP.js → yjs-provider-reset-guard-DSPzcvAO.js} +2 -2
- package/dist/client/assets/{zh-CN-MVX3E32U-BM0aLuGc.js → zh-CN-MVX3E32U-BULPbsyl.js} +1 -1
- package/dist/client/assets/{zh-HK-JNU5RLIE-dmG_YD0d.js → zh-HK-JNU5RLIE-bNGmeSaW.js} +1 -1
- package/dist/client/assets/{zh-TW-LENVCA6T-LFgbiOi3.js → zh-TW-LENVCA6T-CQDp064P.js} +1 -1
- package/dist/client/drawio-editor.html +1 -1
- package/dist/client/excalidraw-editor.html +1 -1
- package/dist/client/export-document.html +1 -1
- package/dist/client/index.html +2 -2
- package/package.json +11 -11
- package/src/client/application/app-shell/presence-feature.js +265 -34
- package/src/client/application/app-shell/ui-feature-shell.js +26 -3
- package/src/client/application/app-shell/ui-feature-tab-activity.js +1 -0
- package/src/client/application/app-shell/workspace-feature.js +5 -2
- package/src/client/application/app-shell-elements.js +3 -0
- package/src/client/application/diagram-preview-export.js +304 -0
- package/src/client/application/mermaid-preview-hydrator.js +153 -23
- package/src/client/application/plantuml-preview-hydrator.js +155 -20
- package/src/client/application/preview-diagram-utils.js +48 -8
- package/src/client/application/preview-renderer.js +2 -0
- package/src/client/application/quick-switcher-loader.js +4 -1
- package/src/client/application/workspace-route-controller.js +35 -2
- package/src/client/application/workspace-state-store.js +1 -0
- package/src/client/bootstrap/collabmd-app-shell.js +9 -0
- package/src/client/domain/diagram-action-icons.js +21 -0
- package/src/client/domain/excalidraw-api-scene-sync.js +70 -0
- package/src/client/excalidraw-editor.js +106 -18
- package/src/client/infrastructure/excalidraw-room-client.js +41 -4
- package/src/client/presentation/app-shell-template.js +18 -1
- package/src/client/presentation/file-explorer-controller.js +10 -0
- package/src/client/presentation/file-explorer-view.js +6 -0
- package/src/client/presentation/image-lightbox-controller.js +290 -29
- package/src/client/styles/features/collaboration-presence.css +212 -0
- package/src/client/styles/features/diagram-preview.css +71 -4
- package/src/client/styles/features/embedded-preview.css +4 -6
- package/src/client/styles/features/media-lightbox.css +2 -0
- package/src/server/config/env.js +4 -0
- package/src/server/create-app-server.js +2 -0
- package/src/server/domain/bases/base-query-service.js +89 -7
- package/src/server/domain/collaboration/collaboration-room.js +10 -1
- package/src/server/infrastructure/http/create-request-handler.js +1 -0
- package/src/server/infrastructure/http/create-vault-api-handler.js +2 -0
- package/src/server/infrastructure/http/create-vault-api-query-handler.js +100 -26
- package/src/server/infrastructure/persistence/vault-file-store.js +136 -0
- package/src/server/infrastructure/workspace/file-system-sync-service.js +9 -11
- package/dist/client/assets/architecture-YZFGNWBL-CtU43_5T.js +0 -1
- package/dist/client/assets/channel-BDb1g_mJ.js +0 -1
- package/dist/client/assets/chunk-426QAEUC-CwJ7loGf.js +0 -1
- package/dist/client/assets/chunk-DpHwWhuW.js +0 -1
- package/dist/client/assets/chunk-NU2UP6EN-UVL-wkIc.js +0 -35
- package/dist/client/assets/chunk-QZHKN3VN-BnOS2iQW.js +0 -1
- package/dist/client/assets/classDiagram-6PBFFD2Q-MIbgV5UL.js +0 -1
- package/dist/client/assets/classDiagram-v2-HSJHXN6E-Bb70vg2O.js +0 -1
- package/dist/client/assets/clone-D6JWrlxJ.js +0 -1
- package/dist/client/assets/dist-B3lARV_e.js +0 -1
- package/dist/client/assets/dist-BCvzlTeb.js +0 -1
- package/dist/client/assets/dist-Bq8Z0WUT.js +0 -1
- package/dist/client/assets/dist-C8wdW7W4.js +0 -1
- package/dist/client/assets/dist-CHSg_nUM.js +0 -1
- package/dist/client/assets/dist-CZPTvk_g2.js +0 -1
- package/dist/client/assets/excalidraw-editor-Dj3i59LW.css +0 -1
- package/dist/client/assets/excalidraw-editor-ukEKPqGJ.js +0 -9
- package/dist/client/assets/excalidraw-scene-CDK3oDnm.js +0 -176
- package/dist/client/assets/excalidrawEditor-BJ8QLmWc.js +0 -2
- package/dist/client/assets/exportDocument-Dunnjgii.js +0 -2
- package/dist/client/assets/gitGraph-7Q5UKJZL-BrBlB49D.js +0 -1
- package/dist/client/assets/image-XLNPCCAD-BFNybKza.js +0 -1
- package/dist/client/assets/info-OMHHGYJF-BcmgcSx1.js +0 -1
- package/dist/client/assets/main-CN0kbtGk.js +0 -1369
- package/dist/client/assets/packet-4T2RLAQJ-DYYSvRuJ.js +0 -1
- package/dist/client/assets/percentages-5DKR754L-D7n4T776.js +0 -1
- package/dist/client/assets/pie-ZZUOXDRM-cG65Mc64.js +0 -1
- package/dist/client/assets/preview-render-compiler-D3QM1Ryz.js +0 -1
- package/dist/client/assets/radar-PYXPWWZC-Bmpup_xw.js +0 -1
- package/dist/client/assets/src-Pgt9Gp65.js +0 -1
- package/dist/client/assets/stateDiagram-v2-QKLJ7IA2-D_5ufPqT.js +0 -1
- package/dist/client/assets/subset-shared.chunk-C9HjwTXy.js +0 -1
- package/dist/client/assets/treeView-SZITEDCU-NbjhK5cw.js +0 -1
- package/dist/client/assets/treemap-W4RFUUIX-DJzRbb-x.js +0 -1
- package/dist/client/assets/wardley-RL74JXVD-DTNoH_BY.js +0 -1
|
@@ -1,3 +1,65 @@
|
|
|
1
|
+
const MAX_INLINE_AVATARS = 5;
|
|
2
|
+
|
|
3
|
+
function compareUserNames(left, right) {
|
|
4
|
+
return String(left?.name ?? '').localeCompare(String(right?.name ?? ''), undefined, {
|
|
5
|
+
sensitivity: 'base',
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function getConnectedPresenceState(context) {
|
|
10
|
+
const hasEditorSession = Boolean(context.session);
|
|
11
|
+
const isDrawioRoute = Boolean(context.currentFilePath && context.isDrawioFile?.(context.currentFilePath));
|
|
12
|
+
const isExcalidrawRoute = Boolean(context.currentFilePath && context.isExcalidrawFile?.(context.currentFilePath));
|
|
13
|
+
const isImageRoute = Boolean(context.currentFilePath && context.isImageFile?.(context.currentFilePath));
|
|
14
|
+
const shouldUseLobbyState = !hasEditorSession
|
|
15
|
+
&& (!context.currentFilePath || isDrawioRoute || isExcalidrawRoute || isImageRoute);
|
|
16
|
+
return shouldUseLobbyState
|
|
17
|
+
? context.lobby?.getConnectionState?.() ?? context.connectionState
|
|
18
|
+
: context.connectionState;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function getInlineUsers(users, followedUserClientId) {
|
|
22
|
+
const visibleUsers = [...users];
|
|
23
|
+
const localIndex = visibleUsers.findIndex((user) => user.isLocal);
|
|
24
|
+
if (localIndex > 0) {
|
|
25
|
+
const [localUser] = visibleUsers.splice(localIndex, 1);
|
|
26
|
+
visibleUsers.unshift(localUser);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const followedIndex = visibleUsers.findIndex((user) => !user.isLocal && user.clientId === followedUserClientId);
|
|
30
|
+
const followedInsertIndex = visibleUsers[0]?.isLocal ? 1 : 0;
|
|
31
|
+
if (followedIndex > followedInsertIndex) {
|
|
32
|
+
const [followed] = visibleUsers.splice(followedIndex, 1);
|
|
33
|
+
visibleUsers.splice(followedInsertIndex, 0, followed);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return visibleUsers;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function getPanelUsers(users, followedUserClientId) {
|
|
40
|
+
const localUsers = users.filter((user) => user.isLocal).sort(compareUserNames);
|
|
41
|
+
const remoteUsers = users.filter((user) => !user.isLocal);
|
|
42
|
+
const followedUsers = remoteUsers
|
|
43
|
+
.filter((user) => user.clientId === followedUserClientId)
|
|
44
|
+
.sort(compareUserNames);
|
|
45
|
+
const remainingUsers = remoteUsers
|
|
46
|
+
.filter((user) => user.clientId !== followedUserClientId)
|
|
47
|
+
.sort(compareUserNames);
|
|
48
|
+
return [...localUsers, ...followedUsers, ...remainingUsers];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function getUserFileLabel(context, user) {
|
|
52
|
+
if (user.currentFile && user.currentFile === context.currentFilePath) {
|
|
53
|
+
return 'Here';
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (user.currentFile) {
|
|
57
|
+
return context.getDisplayName(user.currentFile);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return 'No file';
|
|
61
|
+
}
|
|
62
|
+
|
|
1
63
|
export const presenceFeature = {
|
|
2
64
|
updateGlobalUsers(users) {
|
|
3
65
|
this.globalUsers = users;
|
|
@@ -16,52 +78,50 @@ export const presenceFeature = {
|
|
|
16
78
|
const badge = this.elements.userCount;
|
|
17
79
|
if (!badge) return;
|
|
18
80
|
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
81
|
+
const effectiveConnectionState = getConnectedPresenceState(this);
|
|
82
|
+
const hasUsers = this.globalUsers.length > 0;
|
|
83
|
+
if (effectiveConnectionState.status !== 'connected') {
|
|
84
|
+
this.presencePanelOpen = false;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
badge.type = 'button';
|
|
88
|
+
badge.setAttribute('aria-controls', 'presencePanel');
|
|
89
|
+
badge.setAttribute('aria-expanded', String(this.presencePanelOpen));
|
|
90
|
+
badge.classList.toggle('is-active', this.presencePanelOpen);
|
|
28
91
|
|
|
29
92
|
if (effectiveConnectionState.status === 'connected') {
|
|
30
93
|
badge.textContent = `${this.globalUsers.length} online`;
|
|
31
94
|
badge.style.opacity = '1';
|
|
95
|
+
badge.disabled = !hasUsers;
|
|
96
|
+
badge.setAttribute('aria-label', `Show ${this.globalUsers.length} online users`);
|
|
97
|
+
this.renderPresencePanel();
|
|
32
98
|
return;
|
|
33
99
|
}
|
|
34
100
|
|
|
35
101
|
if (effectiveConnectionState.status === 'connecting') {
|
|
36
102
|
badge.textContent = effectiveConnectionState.unreachable ? 'Unreachable' : 'Connecting...';
|
|
37
103
|
badge.style.opacity = '0.6';
|
|
104
|
+
badge.disabled = true;
|
|
105
|
+
badge.setAttribute('aria-label', badge.textContent);
|
|
106
|
+
this.renderPresencePanel();
|
|
38
107
|
return;
|
|
39
108
|
}
|
|
40
109
|
|
|
41
110
|
badge.textContent = 'Offline';
|
|
42
111
|
badge.style.opacity = '0.6';
|
|
112
|
+
badge.disabled = true;
|
|
113
|
+
badge.setAttribute('aria-label', 'Offline');
|
|
114
|
+
this.renderPresencePanel();
|
|
43
115
|
},
|
|
44
116
|
|
|
45
117
|
renderAvatars() {
|
|
46
118
|
const avatars = this.elements.userAvatars;
|
|
47
119
|
if (!avatars) return;
|
|
48
120
|
|
|
49
|
-
avatars.
|
|
50
|
-
const visibleUsers =
|
|
51
|
-
const localIndex = visibleUsers.findIndex((u) => u.isLocal);
|
|
52
|
-
if (localIndex > 0) {
|
|
53
|
-
const [localUser] = visibleUsers.splice(localIndex, 1);
|
|
54
|
-
visibleUsers.unshift(localUser);
|
|
55
|
-
}
|
|
121
|
+
avatars.replaceChildren();
|
|
122
|
+
const visibleUsers = getInlineUsers(this.globalUsers, this.followedUserClientId);
|
|
56
123
|
|
|
57
|
-
|
|
58
|
-
const followedInsertIndex = visibleUsers[0]?.isLocal ? 1 : 0;
|
|
59
|
-
if (followedIndex > followedInsertIndex) {
|
|
60
|
-
const [followed] = visibleUsers.splice(followedIndex, 1);
|
|
61
|
-
visibleUsers.splice(followedInsertIndex, 0, followed);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
visibleUsers.slice(0, 5).forEach((user) => {
|
|
124
|
+
visibleUsers.slice(0, MAX_INLINE_AVATARS).forEach((user) => {
|
|
65
125
|
const avatar = document.createElement(user.isLocal ? 'div' : 'button');
|
|
66
126
|
avatar.className = 'user-avatar';
|
|
67
127
|
avatar.classList.toggle('is-local', user.isLocal);
|
|
@@ -103,34 +163,192 @@ export const presenceFeature = {
|
|
|
103
163
|
avatars.appendChild(avatar);
|
|
104
164
|
});
|
|
105
165
|
|
|
106
|
-
if (visibleUsers.length >
|
|
107
|
-
const overflow = document.createElement('
|
|
108
|
-
overflow.
|
|
166
|
+
if (visibleUsers.length > MAX_INLINE_AVATARS) {
|
|
167
|
+
const overflow = document.createElement('button');
|
|
168
|
+
overflow.type = 'button';
|
|
169
|
+
overflow.className = 'user-avatar user-avatar-button user-avatar-overflow-trigger';
|
|
109
170
|
overflow.style.backgroundColor = 'var(--color-surface-dynamic)';
|
|
110
171
|
overflow.style.color = 'var(--color-text-muted)';
|
|
172
|
+
overflow.setAttribute('aria-controls', 'presencePanel');
|
|
173
|
+
overflow.setAttribute('aria-expanded', String(this.presencePanelOpen));
|
|
174
|
+
overflow.setAttribute('aria-label', `Show ${visibleUsers.length} online users`);
|
|
175
|
+
overflow.setAttribute('data-presence-panel-trigger', 'true');
|
|
176
|
+
overflow.title = `Show ${visibleUsers.length} online users`;
|
|
177
|
+
overflow.addEventListener('click', () => this.openPresencePanel());
|
|
111
178
|
const overflowLabel = document.createElement('span');
|
|
112
179
|
overflowLabel.className = 'user-avatar-initial';
|
|
113
|
-
overflowLabel.textContent = `+${visibleUsers.length -
|
|
180
|
+
overflowLabel.textContent = `+${visibleUsers.length - MAX_INLINE_AVATARS}`;
|
|
114
181
|
overflow.appendChild(overflowLabel);
|
|
115
182
|
avatars.appendChild(overflow);
|
|
116
183
|
}
|
|
184
|
+
|
|
185
|
+
this.renderPresencePanel();
|
|
117
186
|
},
|
|
118
187
|
|
|
119
|
-
|
|
120
|
-
|
|
188
|
+
openPresencePanel() {
|
|
189
|
+
const effectiveConnectionState = getConnectedPresenceState(this);
|
|
190
|
+
if (effectiveConnectionState.status !== 'connected' || this.globalUsers.length === 0) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
121
193
|
|
|
122
|
-
|
|
123
|
-
|
|
194
|
+
this.presencePanelOpen = true;
|
|
195
|
+
this.closeChatPanel?.();
|
|
196
|
+
this.closeToolbarOverflowMenu?.();
|
|
197
|
+
this.renderAvatars();
|
|
198
|
+
this.renderPresence();
|
|
199
|
+
this.renderPresencePanel();
|
|
200
|
+
},
|
|
201
|
+
|
|
202
|
+
closePresencePanel() {
|
|
203
|
+
if (!this.presencePanelOpen) {
|
|
124
204
|
return;
|
|
125
205
|
}
|
|
126
206
|
|
|
127
|
-
|
|
207
|
+
this.presencePanelOpen = false;
|
|
208
|
+
this.renderAvatars();
|
|
209
|
+
this.renderPresence();
|
|
210
|
+
this.renderPresencePanel();
|
|
211
|
+
},
|
|
212
|
+
|
|
213
|
+
togglePresencePanel() {
|
|
214
|
+
if (this.presencePanelOpen) {
|
|
215
|
+
this.closePresencePanel();
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
this.openPresencePanel();
|
|
220
|
+
},
|
|
221
|
+
|
|
222
|
+
renderPresencePanel() {
|
|
223
|
+
const panel = this.elements.presencePanel;
|
|
224
|
+
const list = this.elements.presencePanelList;
|
|
225
|
+
const status = this.elements.presencePanelStatus;
|
|
226
|
+
if (!panel || !list) return;
|
|
227
|
+
|
|
228
|
+
panel.classList.toggle('hidden', !this.presencePanelOpen);
|
|
229
|
+
panel.setAttribute('aria-hidden', String(!this.presencePanelOpen));
|
|
230
|
+
|
|
231
|
+
const orderedUsers = getPanelUsers(this.globalUsers, this.followedUserClientId);
|
|
232
|
+
const effectiveConnectionState = getConnectedPresenceState(this);
|
|
233
|
+
if (status) {
|
|
234
|
+
if (effectiveConnectionState.status === 'connected') {
|
|
235
|
+
status.textContent = `${this.globalUsers.length} online. Click someone to follow.`;
|
|
236
|
+
} else if (effectiveConnectionState.status === 'connecting') {
|
|
237
|
+
status.textContent = effectiveConnectionState.unreachable ? 'Server unreachable.' : 'Connecting presence...';
|
|
238
|
+
} else {
|
|
239
|
+
status.textContent = 'Presence is offline.';
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
list.replaceChildren();
|
|
244
|
+
|
|
245
|
+
if (orderedUsers.length === 0) {
|
|
246
|
+
const emptyState = document.createElement('div');
|
|
247
|
+
emptyState.className = 'presence-panel-empty-state';
|
|
248
|
+
emptyState.textContent = effectiveConnectionState.status === 'connected'
|
|
249
|
+
? 'Nobody else is here yet.'
|
|
250
|
+
: 'Presence will appear here when the connection is active.';
|
|
251
|
+
list.appendChild(emptyState);
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
const fragment = document.createDocumentFragment();
|
|
256
|
+
orderedUsers.forEach((user) => {
|
|
257
|
+
const row = document.createElement('article');
|
|
258
|
+
row.className = 'presence-panel-user';
|
|
259
|
+
row.classList.toggle('is-local', user.isLocal);
|
|
260
|
+
row.classList.toggle('is-following', user.clientId === this.followedUserClientId);
|
|
261
|
+
|
|
262
|
+
const primaryAction = document.createElement(user.isLocal ? 'div' : 'button');
|
|
263
|
+
primaryAction.className = 'presence-panel-user-button';
|
|
264
|
+
|
|
265
|
+
const avatar = document.createElement('span');
|
|
266
|
+
avatar.className = 'presence-panel-user-avatar';
|
|
267
|
+
avatar.style.backgroundColor = user.color;
|
|
268
|
+
avatar.textContent = user.name.charAt(0).toUpperCase();
|
|
269
|
+
avatar.setAttribute('aria-hidden', 'true');
|
|
270
|
+
|
|
271
|
+
const body = document.createElement('span');
|
|
272
|
+
body.className = 'presence-panel-user-body';
|
|
273
|
+
|
|
274
|
+
const topLine = document.createElement('span');
|
|
275
|
+
topLine.className = 'presence-panel-user-topline';
|
|
276
|
+
|
|
277
|
+
const name = document.createElement('span');
|
|
278
|
+
name.className = 'presence-panel-user-name';
|
|
279
|
+
name.textContent = user.name;
|
|
280
|
+
topLine.appendChild(name);
|
|
281
|
+
|
|
282
|
+
if (user.isLocal) {
|
|
283
|
+
const youBadge = document.createElement('span');
|
|
284
|
+
youBadge.className = 'presence-panel-user-badge';
|
|
285
|
+
youBadge.textContent = 'You';
|
|
286
|
+
topLine.appendChild(youBadge);
|
|
287
|
+
} else if (user.clientId === this.followedUserClientId) {
|
|
288
|
+
const followingBadge = document.createElement('span');
|
|
289
|
+
followingBadge.className = 'presence-panel-user-badge';
|
|
290
|
+
followingBadge.textContent = 'Following';
|
|
291
|
+
topLine.appendChild(followingBadge);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
const file = document.createElement('span');
|
|
295
|
+
file.className = 'presence-panel-user-file';
|
|
296
|
+
file.textContent = getUserFileLabel(this, user);
|
|
297
|
+
|
|
298
|
+
body.append(topLine, file);
|
|
299
|
+
primaryAction.append(avatar, body);
|
|
300
|
+
|
|
301
|
+
if (user.isLocal) {
|
|
302
|
+
primaryAction.setAttribute('role', 'group');
|
|
303
|
+
primaryAction.setAttribute('aria-label', `${user.name} (you) — ${file.textContent}`);
|
|
304
|
+
} else {
|
|
305
|
+
const isFollowing = user.clientId === this.followedUserClientId;
|
|
306
|
+
primaryAction.type = 'button';
|
|
307
|
+
primaryAction.setAttribute(
|
|
308
|
+
'aria-label',
|
|
309
|
+
isFollowing
|
|
310
|
+
? `Keep following ${user.name}`
|
|
311
|
+
: `Follow ${user.name} — ${file.textContent}`,
|
|
312
|
+
);
|
|
313
|
+
primaryAction.addEventListener('click', () => {
|
|
314
|
+
this.startFollowingUser(user.clientId, { closePanel: true });
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
row.appendChild(primaryAction);
|
|
319
|
+
|
|
320
|
+
if (!user.isLocal && user.clientId === this.followedUserClientId) {
|
|
321
|
+
const stopButton = document.createElement('button');
|
|
322
|
+
stopButton.type = 'button';
|
|
323
|
+
stopButton.className = 'presence-panel-user-stop';
|
|
324
|
+
stopButton.textContent = 'Stop';
|
|
325
|
+
stopButton.setAttribute('aria-label', `Stop following ${user.name}`);
|
|
326
|
+
stopButton.addEventListener('click', (event) => {
|
|
327
|
+
event.stopPropagation();
|
|
328
|
+
this.stopFollowingUser({ closePanel: true });
|
|
329
|
+
});
|
|
330
|
+
row.appendChild(stopButton);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
fragment.appendChild(row);
|
|
334
|
+
});
|
|
335
|
+
list.appendChild(fragment);
|
|
336
|
+
},
|
|
337
|
+
|
|
338
|
+
startFollowingUser(clientId, { closePanel = false } = {}) {
|
|
339
|
+
if (!clientId) return;
|
|
340
|
+
|
|
341
|
+
const user = this.globalUsers.find((entry) => entry.clientId === clientId && !entry.isLocal);
|
|
128
342
|
if (!user) return;
|
|
129
343
|
|
|
130
344
|
this.followedUserClientId = clientId;
|
|
131
345
|
this.followedCursorSignature = '';
|
|
132
346
|
this.renderAvatars();
|
|
133
347
|
|
|
348
|
+
if (closePanel) {
|
|
349
|
+
this.closePresencePanel();
|
|
350
|
+
}
|
|
351
|
+
|
|
134
352
|
if (user.currentFile && user.currentFile !== this.currentFilePath) {
|
|
135
353
|
this.navigation.navigateToFile(user.currentFile);
|
|
136
354
|
return;
|
|
@@ -141,10 +359,20 @@ export const presenceFeature = {
|
|
|
141
359
|
this.followUserCursor(user, { force: true });
|
|
142
360
|
}
|
|
143
361
|
});
|
|
362
|
+
},
|
|
144
363
|
|
|
364
|
+
toggleFollowUser(clientId) {
|
|
365
|
+
if (!clientId) return;
|
|
366
|
+
|
|
367
|
+
if (this.followedUserClientId === clientId) {
|
|
368
|
+
this.stopFollowingUser();
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
this.startFollowingUser(clientId);
|
|
145
373
|
},
|
|
146
374
|
|
|
147
|
-
stopFollowingUser() {
|
|
375
|
+
stopFollowingUser({ closePanel = false } = {}) {
|
|
148
376
|
if (!this.followedUserClientId) return;
|
|
149
377
|
if (this.currentFilePath && this.isExcalidrawFile?.(this.currentFilePath)) {
|
|
150
378
|
void this.excalidrawEmbed?.setFollowedUser(this.currentFilePath, null);
|
|
@@ -152,6 +380,9 @@ export const presenceFeature = {
|
|
|
152
380
|
this.followedUserClientId = null;
|
|
153
381
|
this.followedCursorSignature = '';
|
|
154
382
|
this.renderAvatars();
|
|
383
|
+
if (closePanel) {
|
|
384
|
+
this.closePresencePanel();
|
|
385
|
+
}
|
|
155
386
|
},
|
|
156
387
|
|
|
157
388
|
syncFollowedUser() {
|
|
@@ -8,6 +8,7 @@ const VERSION_RELOAD_TOAST_DURATION_MS = 0;
|
|
|
8
8
|
* @property {boolean} chatIsOpen
|
|
9
9
|
* @property {boolean} gitRepoAvailable
|
|
10
10
|
* @property {boolean} isTabActive
|
|
11
|
+
* @property {boolean} presencePanelOpen
|
|
11
12
|
* @property {string | null} currentFilePath
|
|
12
13
|
* @property {number} lobbyChatMessageMaxLength
|
|
13
14
|
* @property {any} runtimeConfig
|
|
@@ -237,6 +238,7 @@ function bindEvents() {
|
|
|
237
238
|
});
|
|
238
239
|
|
|
239
240
|
this.elements.chatToggleButton?.addEventListener('click', () => {
|
|
241
|
+
this.closePresencePanel?.();
|
|
240
242
|
this.toggleChatPanel();
|
|
241
243
|
this.closeToolbarOverflowMenu?.();
|
|
242
244
|
});
|
|
@@ -269,12 +271,18 @@ function bindEvents() {
|
|
|
269
271
|
this.toggleLineWrapping();
|
|
270
272
|
});
|
|
271
273
|
|
|
274
|
+
this.elements.userCount?.addEventListener('click', (event) => {
|
|
275
|
+
event.preventDefault();
|
|
276
|
+
this.togglePresencePanel?.();
|
|
277
|
+
});
|
|
278
|
+
|
|
272
279
|
this.elements.editorFindButton?.addEventListener('click', () => {
|
|
273
280
|
this.runEditorCommand?.('openSearch');
|
|
274
281
|
});
|
|
275
282
|
|
|
276
283
|
this.elements.toolbarOverflowToggle?.addEventListener('click', (event) => {
|
|
277
284
|
event.preventDefault();
|
|
285
|
+
this.closePresencePanel?.();
|
|
278
286
|
this.toggleToolbarOverflowMenu();
|
|
279
287
|
});
|
|
280
288
|
|
|
@@ -321,19 +329,29 @@ function bindEvents() {
|
|
|
321
329
|
function handleDocumentPointerDown(event) {
|
|
322
330
|
this.handleMarkdownToolbarDocumentPointerDown?.(event);
|
|
323
331
|
|
|
332
|
+
const target = event.target instanceof Element ? event.target : null;
|
|
333
|
+
|
|
324
334
|
if (
|
|
325
335
|
this.toolbarOverflowOpen
|
|
326
|
-
&& !this.elements.toolbarOverflowMenu?.contains(
|
|
327
|
-
&& !this.elements.toolbarOverflowToggle?.contains(
|
|
336
|
+
&& !this.elements.toolbarOverflowMenu?.contains(target)
|
|
337
|
+
&& !this.elements.toolbarOverflowToggle?.contains(target)
|
|
328
338
|
) {
|
|
329
339
|
this.closeToolbarOverflowMenu();
|
|
330
340
|
}
|
|
331
341
|
|
|
342
|
+
if (
|
|
343
|
+
this.presencePanelOpen
|
|
344
|
+
&& !this.elements.presencePanel?.contains(target)
|
|
345
|
+
&& !target?.closest?.('[data-presence-panel-trigger="true"]')
|
|
346
|
+
) {
|
|
347
|
+
this.closePresencePanel?.();
|
|
348
|
+
}
|
|
349
|
+
|
|
332
350
|
if (!this.chatIsOpen) {
|
|
333
351
|
return;
|
|
334
352
|
}
|
|
335
353
|
|
|
336
|
-
if (this.elements.chatContainer?.contains(
|
|
354
|
+
if (this.elements.chatContainer?.contains(target)) {
|
|
337
355
|
return;
|
|
338
356
|
}
|
|
339
357
|
|
|
@@ -347,6 +365,11 @@ function handleDocumentKeydown(event) {
|
|
|
347
365
|
return;
|
|
348
366
|
}
|
|
349
367
|
|
|
368
|
+
if (event.key === 'Escape' && this.presencePanelOpen) {
|
|
369
|
+
this.closePresencePanel?.();
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
|
|
350
373
|
if (event.key === 'Escape' && this.chatIsOpen) {
|
|
351
374
|
this.closeChatPanel();
|
|
352
375
|
return;
|
|
@@ -75,6 +75,7 @@ async function handleTabBlocked({ reason } = {}) {
|
|
|
75
75
|
this.chatMessageIds.clear();
|
|
76
76
|
this.chatUnreadCount = 0;
|
|
77
77
|
this.chatInitialSyncComplete = false;
|
|
78
|
+
this.presencePanelOpen = false;
|
|
78
79
|
this.followedUserClientId = null;
|
|
79
80
|
this.followedCursorSignature = '';
|
|
80
81
|
this.connectionState = { status: 'disconnected', unreachable: false };
|
|
@@ -227,7 +227,10 @@ export const workspaceFeature = {
|
|
|
227
227
|
await this.wikiLinkFileController.createAndOpenFile(filePath, displayName);
|
|
228
228
|
},
|
|
229
229
|
|
|
230
|
-
handleFileSelection(filePath, { closeSidebarOnMobile = false } = {}) {
|
|
231
|
-
this.workspaceRouteController.handleFileSelection(filePath, {
|
|
230
|
+
handleFileSelection(filePath, { closeSidebarOnMobile = false, revealInTree = false } = {}) {
|
|
231
|
+
this.workspaceRouteController.handleFileSelection(filePath, {
|
|
232
|
+
closeSidebarOnMobile,
|
|
233
|
+
revealInTree,
|
|
234
|
+
});
|
|
232
235
|
},
|
|
233
236
|
};
|
|
@@ -53,6 +53,9 @@ export function bindAppShellElements(doc = document) {
|
|
|
53
53
|
mobileViewToggle: doc.getElementById('mobileViewToggle'),
|
|
54
54
|
previewContent: doc.getElementById('previewContent'),
|
|
55
55
|
previewContainer: doc.getElementById('previewContainer'),
|
|
56
|
+
presencePanel: doc.getElementById('presencePanel'),
|
|
57
|
+
presencePanelList: doc.getElementById('presencePanelList'),
|
|
58
|
+
presencePanelStatus: doc.getElementById('presencePanelStatus'),
|
|
56
59
|
searchFilesButton: doc.getElementById('searchFilesBtn'),
|
|
57
60
|
shareButton: doc.getElementById('shareBtn'),
|
|
58
61
|
toastContainer: doc.getElementById('toastContainer'),
|