collabmd 0.1.18
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/LICENSE +21 -0
- package/README.md +453 -0
- package/bin/collabmd.js +241 -0
- package/docker-compose.yml +43 -0
- package/package.json +93 -0
- package/public/assets/css/base.css +1 -0
- package/public/assets/css/style.css +1 -0
- package/public/assets/js/assets/Assistant-Bold-ZDZZ6JHA.woff2 +0 -0
- package/public/assets/js/assets/Assistant-Medium-DZ25RZU3.woff2 +0 -0
- package/public/assets/js/assets/Assistant-Regular-PLF2XOGW.woff2 +0 -0
- package/public/assets/js/assets/Assistant-SemiBold-CZ5MX6FK.woff2 +0 -0
- package/public/assets/js/chunks/CodeMirrorEditor-UCMRAMCV-MAKZFDBE.js +12 -0
- package/public/assets/js/chunks/apl-C5P5JBDI.js +1 -0
- package/public/assets/js/chunks/ar-SA-NXDWD63E-MF6HMEA4.js +8 -0
- package/public/assets/js/chunks/architecture-PBZL5I3N-55LDZ5WS.js +1 -0
- package/public/assets/js/chunks/architectureDiagram-2XIMDMQ5-2VP562X7.js +36 -0
- package/public/assets/js/chunks/asciiarmor-3NCLLELT.js +1 -0
- package/public/assets/js/chunks/asn1-KF4WXU3M.js +1 -0
- package/public/assets/js/chunks/asterisk-EA3VIN65.js +1 -0
- package/public/assets/js/chunks/az-AZ-MXSORGZV-AIGO4TNU.js +1 -0
- package/public/assets/js/chunks/bg-BG-O6MV2KSF-X6AVO2AF.js +5 -0
- package/public/assets/js/chunks/blockDiagram-WCTKOSBZ-KM56WWDE.js +132 -0
- package/public/assets/js/chunks/bn-BD-T2VJNT7N-7OMHRIGC.js +3 -0
- package/public/assets/js/chunks/bn-IN-MMW2ORAC-EPKMNKG7.js +3 -0
- package/public/assets/js/chunks/brainfuck-A3CTQVFD.js +1 -0
- package/public/assets/js/chunks/c4Diagram-IC4MRINW-KX6UEGQZ.js +10 -0
- package/public/assets/js/chunks/ca-ES-MKBCGNOG-U44SUUTN.js +8 -0
- package/public/assets/js/chunks/chunk-2NTQWLZD.js +25 -0
- package/public/assets/js/chunks/chunk-2YRP2AWD.js +1 -0
- package/public/assets/js/chunks/chunk-3BUCGSSJ.js +1 -0
- package/public/assets/js/chunks/chunk-47L7JGE3.js +1 -0
- package/public/assets/js/chunks/chunk-4BCHPULB.js +1 -0
- package/public/assets/js/chunks/chunk-4NKM6YFO.js +161 -0
- package/public/assets/js/chunks/chunk-4WGMPBK5.js +1 -0
- package/public/assets/js/chunks/chunk-55WF6Y2Q.js +1 -0
- package/public/assets/js/chunks/chunk-775E65SU.js +1 -0
- package/public/assets/js/chunks/chunk-AJRGTECU.js +70 -0
- package/public/assets/js/chunks/chunk-B2J3PHGY.js +1 -0
- package/public/assets/js/chunks/chunk-B4JKB3BC.js +1 -0
- package/public/assets/js/chunks/chunk-BBHPYU2R.js +1 -0
- package/public/assets/js/chunks/chunk-CGVY4PKT.js +13 -0
- package/public/assets/js/chunks/chunk-CVTRX3TE.js +220 -0
- package/public/assets/js/chunks/chunk-DW6KK6VF.js +1 -0
- package/public/assets/js/chunks/chunk-E2HMNOQL.js +189 -0
- package/public/assets/js/chunks/chunk-EPTJZP5H.js +7 -0
- package/public/assets/js/chunks/chunk-G7NUGGE7.js +13 -0
- package/public/assets/js/chunks/chunk-GI7LBIBP.js +1 -0
- package/public/assets/js/chunks/chunk-GXRL27M7.js +1 -0
- package/public/assets/js/chunks/chunk-H6EYDHRW.js +1 -0
- package/public/assets/js/chunks/chunk-HOCBCDA5.js +1 -0
- package/public/assets/js/chunks/chunk-HS2CUOC6.js +1 -0
- package/public/assets/js/chunks/chunk-HUAS4BYI.js +12 -0
- package/public/assets/js/chunks/chunk-HVNNEPP5.js +2 -0
- package/public/assets/js/chunks/chunk-I2GVZI7W.js +38 -0
- package/public/assets/js/chunks/chunk-I6PVWGBN.js +14 -0
- package/public/assets/js/chunks/chunk-IR2DOYV4.js +7 -0
- package/public/assets/js/chunks/chunk-IZ3V3F2A.js +1 -0
- package/public/assets/js/chunks/chunk-KPAQHIOI.js +1 -0
- package/public/assets/js/chunks/chunk-M3EW4V74.js +1 -0
- package/public/assets/js/chunks/chunk-MK3AFU3C.js +90 -0
- package/public/assets/js/chunks/chunk-NM6J3ND7.js +1 -0
- package/public/assets/js/chunks/chunk-NO7UPWTU.js +1 -0
- package/public/assets/js/chunks/chunk-OG2TNZEU.js +9 -0
- package/public/assets/js/chunks/chunk-OHGDMMWM.js +1 -0
- package/public/assets/js/chunks/chunk-OOT2HALX.js +1 -0
- package/public/assets/js/chunks/chunk-OQLLZFFN.js +1 -0
- package/public/assets/js/chunks/chunk-PF6TP4EI.js +1 -0
- package/public/assets/js/chunks/chunk-PMOZMECZ.js +85 -0
- package/public/assets/js/chunks/chunk-QBGS6DJR.js +1 -0
- package/public/assets/js/chunks/chunk-QF3ZQ6UQ.js +1 -0
- package/public/assets/js/chunks/chunk-QFXMAUW4.js +1 -0
- package/public/assets/js/chunks/chunk-QSTBGTWJ.js +1 -0
- package/public/assets/js/chunks/chunk-QYKIT2IH.js +41 -0
- package/public/assets/js/chunks/chunk-S75BI2UQ.js +1 -0
- package/public/assets/js/chunks/chunk-SKEZZ3H6.js +1 -0
- package/public/assets/js/chunks/chunk-SO6QBCB6.js +1 -0
- package/public/assets/js/chunks/chunk-SR3U53EQ.js +1 -0
- package/public/assets/js/chunks/chunk-TFP6LRYJ.js +53 -0
- package/public/assets/js/chunks/chunk-U6APNHAF.js +15 -0
- package/public/assets/js/chunks/chunk-VOODXHXA.js +1 -0
- package/public/assets/js/chunks/chunk-W7WJUTSA.js +3 -0
- package/public/assets/js/chunks/chunk-WNXFO2F2.js +1 -0
- package/public/assets/js/chunks/chunk-X6EEYWV4.js +6 -0
- package/public/assets/js/chunks/chunk-YVW3ZETS.js +1 -0
- package/public/assets/js/chunks/chunk-ZR2QRTBG.js +339 -0
- package/public/assets/js/chunks/chunk-ZZJX4LQ2.js +1 -0
- package/public/assets/js/chunks/classDiagram-VBA2DB6C-IYW4O2RM.js +1 -0
- package/public/assets/js/chunks/classDiagram-v2-RAHNMMFH-DNKVN2WD.js +1 -0
- package/public/assets/js/chunks/clike-RTBH33GE.js +1 -0
- package/public/assets/js/chunks/clojure-BR2VJ2JI.js +1 -0
- package/public/assets/js/chunks/cmake-2HEWVFEE.js +1 -0
- package/public/assets/js/chunks/cobol-V6EIK6DN.js +1 -0
- package/public/assets/js/chunks/coffeescript-JW3ZOGMD.js +1 -0
- package/public/assets/js/chunks/commonlisp-UCWSIHYK.js +1 -0
- package/public/assets/js/chunks/cose-bilkent-S5V4N54A-QVYRFFNC.js +1 -0
- package/public/assets/js/chunks/crystal-GR4VLC3M.js +1 -0
- package/public/assets/js/chunks/cs-CZ-V77HGUP7-OLBAKFG5.js +7 -0
- package/public/assets/js/chunks/css-C5DVWGB4.js +1 -0
- package/public/assets/js/chunks/cypher-K7FZM5GC.js +1 -0
- package/public/assets/js/chunks/d-CF3QNNH5.js +1 -0
- package/public/assets/js/chunks/da-DK-I5RFNTM4-QJIG2SEZ.js +2 -0
- package/public/assets/js/chunks/dagre-KLK3FWXG-KVNBUDOY.js +4 -0
- package/public/assets/js/chunks/de-CH-WLRDEVBV-4MMJDMVD.js +7 -0
- package/public/assets/js/chunks/de-DE-DTI4WUSC-ML7C46TT.js +7 -0
- package/public/assets/js/chunks/diagram-E7M64L7V-ZP33VRUC.js +24 -0
- package/public/assets/js/chunks/diagram-IFDJBPK2-ZG35YWOD.js +43 -0
- package/public/assets/js/chunks/diagram-P4PSJMXO-ZGIGM7D2.js +24 -0
- package/public/assets/js/chunks/diff-KOMSZU7O.js +1 -0
- package/public/assets/js/chunks/dist-7RQKSOUX.js +7 -0
- package/public/assets/js/chunks/dist-ARWGZ6MN.js +1 -0
- package/public/assets/js/chunks/dist-DPBSGC3Y.js +2 -0
- package/public/assets/js/chunks/dist-E36PJE5M.js +1 -0
- package/public/assets/js/chunks/dist-E5NM7OBW.js +1 -0
- package/public/assets/js/chunks/dist-ERADYPEK.js +1 -0
- package/public/assets/js/chunks/dist-F43RIHBZ.js +1 -0
- package/public/assets/js/chunks/dist-HAB5NIXI.js +1 -0
- package/public/assets/js/chunks/dist-HG23OLRA.js +1 -0
- package/public/assets/js/chunks/dist-IEJXBSDJ.js +1 -0
- package/public/assets/js/chunks/dist-IQA4KVJK.js +1 -0
- package/public/assets/js/chunks/dist-OIQTNVT2.js +3 -0
- package/public/assets/js/chunks/dist-PMZJ734S.js +1 -0
- package/public/assets/js/chunks/dist-RCQFQRLD.js +1 -0
- package/public/assets/js/chunks/dist-RQLC4GVI.js +1 -0
- package/public/assets/js/chunks/dist-RSJGLSKC.js +1 -0
- package/public/assets/js/chunks/dist-SGNQZVVX.js +1 -0
- package/public/assets/js/chunks/dist-VCFTF7Z6.js +1 -0
- package/public/assets/js/chunks/dist-VTO23SHH.js +1 -0
- package/public/assets/js/chunks/dist-XOODBV4L.js +1 -0
- package/public/assets/js/chunks/dist-ZFZNCRZY.js +1 -0
- package/public/assets/js/chunks/dockerfile-XCIKYOSI.js +1 -0
- package/public/assets/js/chunks/dtd-3XFH7W6Z.js +1 -0
- package/public/assets/js/chunks/dylan-3UWPKVOR.js +1 -0
- package/public/assets/js/chunks/ebnf-OLHTL3VN.js +1 -0
- package/public/assets/js/chunks/ecl-43LZ3ZRM.js +1 -0
- package/public/assets/js/chunks/editor-session-IHFTYG5D.js +22 -0
- package/public/assets/js/chunks/eiffel-ISPO2UJF.js +1 -0
- package/public/assets/js/chunks/el-GR-ZXDJ2OS4-WSCEIO6J.js +7 -0
- package/public/assets/js/chunks/elm-CLK576PK.js +1 -0
- package/public/assets/js/chunks/en-CTDJDZ6K-IC3QAUOI.js +1 -0
- package/public/assets/js/chunks/erDiagram-INFDFZHY-ZMS6H2TH.js +70 -0
- package/public/assets/js/chunks/erlang-AVQXQFOT.js +1 -0
- package/public/assets/js/chunks/es-ES-DYQHAD43-XGB5X5IM.js +7 -0
- package/public/assets/js/chunks/eu-ES-QDSYU5Y3-LA3JTIJ2.js +7 -0
- package/public/assets/js/chunks/excalidraw-mermaid-stub-NYXTOJ4H.js +1 -0
- package/public/assets/js/chunks/fa-IR-26LZG4PM-PFALMEDX.js +9 -0
- package/public/assets/js/chunks/factor-CRTVBD6Q.js +1 -0
- package/public/assets/js/chunks/fcl-FX24LKTH.js +1 -0
- package/public/assets/js/chunks/fi-FI-6YS4KDE4-ES5MV6P4.js +6 -0
- package/public/assets/js/chunks/flowDiagram-PKNHOUZH-QD4L5IE5.js +162 -0
- package/public/assets/js/chunks/forth-YKDKCTVS.js +1 -0
- package/public/assets/js/chunks/fortran-UJWC6SLU.js +1 -0
- package/public/assets/js/chunks/fr-FR-BRLLPTZC-VMFE22YV.js +12 -0
- package/public/assets/js/chunks/ganttDiagram-A5KZAMGK-VTMTQESP.js +292 -0
- package/public/assets/js/chunks/gas-MYEMWGRE.js +1 -0
- package/public/assets/js/chunks/gherkin-JWHAU2YG.js +1 -0
- package/public/assets/js/chunks/gitGraph-HDMCJU4V-YPHS74XX.js +1 -0
- package/public/assets/js/chunks/gitGraphDiagram-K3NZZRJ6-Z3EZ634T.js +65 -0
- package/public/assets/js/chunks/gl-ES-OKUZTLYG-GPT42ZHV.js +6 -0
- package/public/assets/js/chunks/groovy-QZIZQIAK.js +1 -0
- package/public/assets/js/chunks/haskell-JR3G7YNW.js +1 -0
- package/public/assets/js/chunks/haxe-TVLAIYEN.js +1 -0
- package/public/assets/js/chunks/he-IL-26MGYIU7-VQ5XQYYY.js +8 -0
- package/public/assets/js/chunks/hi-IN-Q4ZOGTP2-2Z766MXA.js +3 -0
- package/public/assets/js/chunks/http-YXQRE77G.js +1 -0
- package/public/assets/js/chunks/hu-HU-P2OXPSN5-6XDVPGTE.js +3 -0
- package/public/assets/js/chunks/id-ID-2EIKXYN6-J5GWSY2S.js +8 -0
- package/public/assets/js/chunks/idl-RAQGJ6LJ.js +1 -0
- package/public/assets/js/chunks/image-32MOCVDX-JN2EUMQG.js +1 -0
- package/public/assets/js/chunks/image-blob-reduce.esm-K5OWL55S.js +13 -0
- package/public/assets/js/chunks/info-3K5VOQVL-CXJSPNNP.js +1 -0
- package/public/assets/js/chunks/infoDiagram-LFFYTUFH-WQ34MUJA.js +2 -0
- package/public/assets/js/chunks/ishikawaDiagram-PHBUUO56-4IARWKJK.js +70 -0
- package/public/assets/js/chunks/it-IT-4CFKVXI2-NMBWUWFF.js +12 -0
- package/public/assets/js/chunks/ja-JP-MAND2Z4V-GQZYXXOC.js +7 -0
- package/public/assets/js/chunks/javascript-NM7KDJUE.js +1 -0
- package/public/assets/js/chunks/journeyDiagram-4ABVD52K-FJ4LF4SX.js +139 -0
- package/public/assets/js/chunks/julia-LG3BH25B.js +1 -0
- package/public/assets/js/chunks/kaa-HQRTCXTJ-7D6PAKDJ.js +1 -0
- package/public/assets/js/chunks/kab-KAB-JKIKKTGH-TNKFXNAX.js +4 -0
- package/public/assets/js/chunks/kanban-definition-K7BYSVSG-TY4EVYI3.js +89 -0
- package/public/assets/js/chunks/katex-5YJCUCFD.js +261 -0
- package/public/assets/js/chunks/kk-KZ-HXQ63ZFC-T4HCMWED.js +1 -0
- package/public/assets/js/chunks/km-KH-PKL3LSGX-HTLHEJV6.js +7 -0
- package/public/assets/js/chunks/ko-KR-KXLREZX3-QMR52QVI.js +5 -0
- package/public/assets/js/chunks/ku-TR-MJ4IER3X-K5CNY4UO.js +6 -0
- package/public/assets/js/chunks/livescript-4CVWVI4M.js +1 -0
- package/public/assets/js/chunks/lt-LT-H6WFQ6FJ-IW25FAGX.js +3 -0
- package/public/assets/js/chunks/lua-VWGE7DQ7.js +1 -0
- package/public/assets/js/chunks/lv-LV-GOCK6SJW-KTDFW5OH.js +4 -0
- package/public/assets/js/chunks/mathematica-D7APQSEU.js +1 -0
- package/public/assets/js/chunks/mbox-BN3XQBYX.js +1 -0
- package/public/assets/js/chunks/mermaid-runtime-BIFNJ2CT.js +18 -0
- package/public/assets/js/chunks/mindmap-definition-YRQLILUH-5B565RNP.js +68 -0
- package/public/assets/js/chunks/mirc-565WBI76.js +1 -0
- package/public/assets/js/chunks/mllike-VV3KS46B.js +1 -0
- package/public/assets/js/chunks/modelica-EGX44FZV.js +1 -0
- package/public/assets/js/chunks/mr-IN-IXVLDMEQ-PHM5DT7Q.js +9 -0
- package/public/assets/js/chunks/mscgen-GFGTHENT.js +1 -0
- package/public/assets/js/chunks/mumps-POZYWSMI.js +1 -0
- package/public/assets/js/chunks/my-MM-YG6MYTTD-ZHLCMEVA.js +1 -0
- package/public/assets/js/chunks/nb-NO-XGWJISD2-KSDFG6YU.js +8 -0
- package/public/assets/js/chunks/nginx-JUBX55EU.js +1 -0
- package/public/assets/js/chunks/nl-NL-XVDVCPNC-KVF3ZO2R.js +13 -0
- package/public/assets/js/chunks/nn-NO-EMX5MJX5-34QKSHNR.js +4 -0
- package/public/assets/js/chunks/nsis-RC4CREGM.js +1 -0
- package/public/assets/js/chunks/ntriples-4WK6CNVE.js +1 -0
- package/public/assets/js/chunks/oc-FR-ROEINTVO-5GP4AOYO.js +4 -0
- package/public/assets/js/chunks/octave-GOKFN2V7.js +1 -0
- package/public/assets/js/chunks/oz-OQUMNC63.js +1 -0
- package/public/assets/js/chunks/pa-IN-ZYN6SUDY-MVL7O44W.js +4 -0
- package/public/assets/js/chunks/packet-RMMSAZCW-D7XTR5TT.js +1 -0
- package/public/assets/js/chunks/pascal-BBWQWWWD.js +1 -0
- package/public/assets/js/chunks/percentages-5DKR754L-DG7W23CV.js +1 -0
- package/public/assets/js/chunks/perl-KTPJTTAM.js +1 -0
- package/public/assets/js/chunks/pica-6G3NROWT.js +17 -0
- package/public/assets/js/chunks/pie-UPGHQEXC-KGC3O6LN.js +1 -0
- package/public/assets/js/chunks/pieDiagram-SKSYHLDU-KWKRDEZS.js +30 -0
- package/public/assets/js/chunks/pig-IJMBS4FZ.js +1 -0
- package/public/assets/js/chunks/pl-PL-6VTG7PHC-VADRWSX4.js +12 -0
- package/public/assets/js/chunks/powershell-6YGCBHDP.js +1 -0
- package/public/assets/js/chunks/preview-render-compiler-WD3A76I6.js +25 -0
- package/public/assets/js/chunks/properties-5QTD3364.js +1 -0
- package/public/assets/js/chunks/protobuf-LTRWBIK3.js +1 -0
- package/public/assets/js/chunks/pt-BR-5YFKRR5G-HHF4UPO4.js +6 -0
- package/public/assets/js/chunks/pt-PT-GEIXXZ67-TUTAUZJK.js +8 -0
- package/public/assets/js/chunks/pug-U4PV3WLG.js +1 -0
- package/public/assets/js/chunks/puppet-WGYJPR3Y.js +1 -0
- package/public/assets/js/chunks/python-6YGH4S47.js +1 -0
- package/public/assets/js/chunks/q-VIG4IJLI.js +1 -0
- package/public/assets/js/chunks/quadrantDiagram-337W2JSQ-GWQRUFHQ.js +7 -0
- package/public/assets/js/chunks/quick-switcher-controller-JYDIJVAJ.js +5 -0
- package/public/assets/js/chunks/r-NVPCXGTR.js +1 -0
- package/public/assets/js/chunks/radar-KQ55EAFF-OPO64DRI.js +1 -0
- package/public/assets/js/chunks/requirementDiagram-Z7DCOOCP-ASW7IPJL.js +73 -0
- package/public/assets/js/chunks/ro-RO-E2P6TFZI-RJFCULYF.js +12 -0
- package/public/assets/js/chunks/roundRect-Z3DX3W5S.js +1 -0
- package/public/assets/js/chunks/rpm-UEA257HD.js +1 -0
- package/public/assets/js/chunks/ru-RU-YBIIY43T-BF27TNVK.js +10 -0
- package/public/assets/js/chunks/ruby-KPQRAJGE.js +1 -0
- package/public/assets/js/chunks/sankeyDiagram-WA2Y5GQK-W6BBWCLW.js +10 -0
- package/public/assets/js/chunks/sas-L7VATVH5.js +1 -0
- package/public/assets/js/chunks/scheme-T2NOWR3P.js +1 -0
- package/public/assets/js/chunks/sequenceDiagram-2WXFIKYE-H4G3ISLN.js +145 -0
- package/public/assets/js/chunks/shell-DLVDUNFA.js +1 -0
- package/public/assets/js/chunks/si-LK-673C2CI2-IOFGU4U2.js +1 -0
- package/public/assets/js/chunks/sieve-BKBZYDBU.js +1 -0
- package/public/assets/js/chunks/sk-SK-CKZHQ4AP-6O5JGN26.js +7 -0
- package/public/assets/js/chunks/sl-SI-557H2GWM-2NEHLV7W.js +6 -0
- package/public/assets/js/chunks/smalltalk-WRJQKJSD.js +1 -0
- package/public/assets/js/chunks/solr-66B3BIDL.js +1 -0
- package/public/assets/js/chunks/sparql-S25Z47JG.js +1 -0
- package/public/assets/js/chunks/spreadsheet-B272EF7Y.js +1 -0
- package/public/assets/js/chunks/sql-BPLIIUYC.js +1 -0
- package/public/assets/js/chunks/stateDiagram-RAJIS63D-OF5XXRUS.js +1 -0
- package/public/assets/js/chunks/stateDiagram-v2-FVOUBMTO-IV2CSQSQ.js +1 -0
- package/public/assets/js/chunks/stex-4IJY64QX.js +1 -0
- package/public/assets/js/chunks/stylus-PJUHLGPT.js +1 -0
- package/public/assets/js/chunks/subset-shared.chunk-4NMWHS4D.js +1 -0
- package/public/assets/js/chunks/subset-worker.chunk-NTLP7Y66.js +1 -0
- package/public/assets/js/chunks/sv-SE-XOPKKDWS-Q2L6KGFV.js +8 -0
- package/public/assets/js/chunks/swift-UYHTO4SX.js +1 -0
- package/public/assets/js/chunks/ta-IN-XBH7DQI3-ISSUGZAK.js +6 -0
- package/public/assets/js/chunks/tcl-OQ5J3VO2.js +1 -0
- package/public/assets/js/chunks/textile-NOGVBEYF.js +1 -0
- package/public/assets/js/chunks/th-TH-TOCWH3R4-TABEAMJA.js +1 -0
- package/public/assets/js/chunks/tiddlywiki-SYTK4QUE.js +1 -0
- package/public/assets/js/chunks/tiki-P7K4ZLOM.js +1 -0
- package/public/assets/js/chunks/timeline-definition-YZTLITO2-HBCANIUC.js +61 -0
- package/public/assets/js/chunks/toml-AUZYRP36.js +1 -0
- package/public/assets/js/chunks/tr-TR-GXW6CYY5-5NQRN52Y.js +4 -0
- package/public/assets/js/chunks/treemap-KZPCXAKY-WYMCT5F7.js +1 -0
- package/public/assets/js/chunks/troff-XFYJNQOJ.js +1 -0
- package/public/assets/js/chunks/ttcn-AK2IXWU6.js +1 -0
- package/public/assets/js/chunks/ttcn-cfg-3IDPIYPU.js +1 -0
- package/public/assets/js/chunks/turtle-OIDMF46P.js +1 -0
- package/public/assets/js/chunks/uk-UA-IJKTNUDG-2IIL3TO5.js +6 -0
- package/public/assets/js/chunks/uz-UZ-TBZZEA4V-X22KVKBP.js +1 -0
- package/public/assets/js/chunks/vb-J6K4XVA2.js +1 -0
- package/public/assets/js/chunks/vbscript-FM7DDZZE.js +1 -0
- package/public/assets/js/chunks/velocity-6KZFEOFD.js +1 -0
- package/public/assets/js/chunks/vennDiagram-LZ73GAT5-EBRF3MZR.js +34 -0
- package/public/assets/js/chunks/verilog-EWWQPMNN.js +1 -0
- package/public/assets/js/chunks/vhdl-CJ3M4IHI.js +1 -0
- package/public/assets/js/chunks/vi-VN-MULSGNVB-TENM65C7.js +7 -0
- package/public/assets/js/chunks/webidl-XVBHXCRV.js +1 -0
- package/public/assets/js/chunks/xquery-7WZOZ4UK.js +1 -0
- package/public/assets/js/chunks/xychartDiagram-JWTSCODW-WIFVRQPR.js +7 -0
- package/public/assets/js/chunks/yacas-MZ2ZZPF3.js +1 -0
- package/public/assets/js/chunks/z80-I447CBF7.js +1 -0
- package/public/assets/js/chunks/zh-CN-MVX3E32U-S5VA2BA5.js +11 -0
- package/public/assets/js/chunks/zh-HK-JNU5RLIE-A4VUKZFV.js +1 -0
- package/public/assets/js/chunks/zh-TW-LENVCA6T-KFB6KHMM.js +9 -0
- package/public/assets/js/excalidraw-editor-7ORML5YA.css +1 -0
- package/public/assets/js/excalidraw-editor-LKW2AZBU.js +347 -0
- package/public/assets/js/excalidraw-editor.css +1 -0
- package/public/assets/js/excalidraw-editor.js +1 -0
- package/public/assets/js/main.js +354 -0
- package/public/assets/js/preview-render-worker.js +30 -0
- package/public/assets/vendor/highlight/github-dark.min.css +10 -0
- package/public/assets/vendor/highlight/github.min.css +10 -0
- package/public/excalidraw-editor.html +31 -0
- package/public/index.html +549 -0
- package/scripts/cloudflare-tunnel.mjs +145 -0
- package/scripts/local-plantuml-compose.mjs +92 -0
- package/server.js +1 -0
- package/src/client/application/app-shell/chat-feature.js +363 -0
- package/src/client/application/app-shell/comments-feature.js +33 -0
- package/src/client/application/app-shell/git-feature.js +394 -0
- package/src/client/application/app-shell/presence-feature.js +229 -0
- package/src/client/application/app-shell/ui-feature.js +535 -0
- package/src/client/application/app-shell/workspace-feature.js +132 -0
- package/src/client/application/app-shell-elements.js +78 -0
- package/src/client/application/diagram-preview-hydrator.js +382 -0
- package/src/client/application/file-open-lifecycle.js +26 -0
- package/src/client/application/mermaid-preview-hydrator.js +570 -0
- package/src/client/application/plantuml-preview-hydrator.js +563 -0
- package/src/client/application/preview-diagram-utils.js +223 -0
- package/src/client/application/preview-render-compiler.js +426 -0
- package/src/client/application/preview-render-executor.js +153 -0
- package/src/client/application/preview-render-profile.js +63 -0
- package/src/client/application/preview-render-scheduler.js +73 -0
- package/src/client/application/preview-render-worker.js +19 -0
- package/src/client/application/preview-renderer.js +452 -0
- package/src/client/application/wiki-link-file-controller.js +58 -0
- package/src/client/application/workspace-chrome-controller.js +84 -0
- package/src/client/application/workspace-coordinator.js +238 -0
- package/src/client/application/workspace-preview-controller.js +237 -0
- package/src/client/application/workspace-route-controller.js +170 -0
- package/src/client/application/workspace-state-store.js +46 -0
- package/src/client/bootstrap/collabmd-app-shell.js +479 -0
- package/src/client/domain/diagram-action-icons.js +41 -0
- package/src/client/domain/excalidraw-collaboration.js +153 -0
- package/src/client/domain/excalidraw-scene.js +87 -0
- package/src/client/domain/markdown-formatting.js +370 -0
- package/src/client/domain/plantuml-language.js +226 -0
- package/src/client/domain/room.js +49 -0
- package/src/client/domain/runtime-paths.js +136 -0
- package/src/client/domain/vault-api-client.js +1 -0
- package/src/client/domain/vault-paths.js +80 -0
- package/src/client/domain/vault-utils.js +49 -0
- package/src/client/domain/wiki-link-completions.js +78 -0
- package/src/client/excalidraw-editor.js +630 -0
- package/src/client/excalidraw-mermaid-stub.js +7 -0
- package/src/client/infrastructure/auth-client.js +383 -0
- package/src/client/infrastructure/browser-navigation-port.js +19 -0
- package/src/client/infrastructure/browser-notification-port.js +40 -0
- package/src/client/infrastructure/browser-preferences-port.js +79 -0
- package/src/client/infrastructure/comment-thread-store.js +293 -0
- package/src/client/infrastructure/editor-collaboration-client.js +240 -0
- package/src/client/infrastructure/editor-session.js +255 -0
- package/src/client/infrastructure/editor-view-adapter.js +578 -0
- package/src/client/infrastructure/excalidraw-room-client.js +651 -0
- package/src/client/infrastructure/lobby-presence.js +304 -0
- package/src/client/infrastructure/runtime-config.js +65 -0
- package/src/client/infrastructure/tab-activity-lock.js +193 -0
- package/src/client/infrastructure/vault-api-client.js +61 -0
- package/src/client/infrastructure/yjs-provider-reset-guard.js +19 -0
- package/src/client/main.js +16 -0
- package/src/client/mermaid-runtime.js +3 -0
- package/src/client/presentation/backlinks-panel.js +188 -0
- package/src/client/presentation/comment-ui-controller.js +1235 -0
- package/src/client/presentation/comments-panel.js +531 -0
- package/src/client/presentation/excalidraw-embed-controller.js +968 -0
- package/src/client/presentation/excalidraw-embed-reconciler.js +37 -0
- package/src/client/presentation/file-action-controller.js +596 -0
- package/src/client/presentation/file-explorer-controller.js +81 -0
- package/src/client/presentation/file-explorer-view.js +256 -0
- package/src/client/presentation/file-tree-state.js +77 -0
- package/src/client/presentation/git-diff-view-controller.js +656 -0
- package/src/client/presentation/git-panel-controller.js +516 -0
- package/src/client/presentation/layout-controller.js +222 -0
- package/src/client/presentation/outline-controller.js +239 -0
- package/src/client/presentation/quick-switcher-controller.js +300 -0
- package/src/client/presentation/scroll-sync-controller.js +500 -0
- package/src/client/presentation/theme-controller.js +64 -0
- package/src/client/presentation/toast-controller.js +21 -0
- package/src/client/presentation/video-embed-controller.js +264 -0
- package/src/client/styles/base.css +58 -0
- package/src/client/styles/style.css +4245 -0
- package/src/domain/comment-threads.js +233 -0
- package/src/domain/excalidraw-room-codec.js +427 -0
- package/src/domain/file-kind.js +104 -0
- package/src/domain/wiki-link-resolver.js +75 -0
- package/src/server/auth/create-auth-service.js +272 -0
- package/src/server/auth/session-cookie.js +125 -0
- package/src/server/config/env.js +186 -0
- package/src/server/create-app-server.js +143 -0
- package/src/server/domain/backlink-index.js +291 -0
- package/src/server/domain/collaboration/collaboration-document-store.js +155 -0
- package/src/server/domain/collaboration/collaboration-room.js +603 -0
- package/src/server/domain/collaboration/protocol.js +2 -0
- package/src/server/domain/collaboration/room-client-state-store.js +28 -0
- package/src/server/domain/collaboration/room-persistence-controller.js +80 -0
- package/src/server/domain/collaboration/room-registry.js +94 -0
- package/src/server/domain/git-service.js +1 -0
- package/src/server/domain/plantuml-encoder.js +49 -0
- package/src/server/domain/plantuml-renderer.js +1 -0
- package/src/server/index.js +72 -0
- package/src/server/infrastructure/git/command-runner.js +48 -0
- package/src/server/infrastructure/git/concurrency.js +19 -0
- package/src/server/infrastructure/git/diff-service.js +389 -0
- package/src/server/infrastructure/git/errors.js +5 -0
- package/src/server/infrastructure/git/git-service.js +216 -0
- package/src/server/infrastructure/git/parsers.js +401 -0
- package/src/server/infrastructure/git/path-utils.js +65 -0
- package/src/server/infrastructure/git/responses.js +108 -0
- package/src/server/infrastructure/git/status-service.js +99 -0
- package/src/server/infrastructure/git/untracked-files.js +101 -0
- package/src/server/infrastructure/http/create-auth-api-handler.js +48 -0
- package/src/server/infrastructure/http/create-esm-proxy-handler.js +130 -0
- package/src/server/infrastructure/http/create-git-api-command-handler.js +170 -0
- package/src/server/infrastructure/http/create-git-api-handler.js +40 -0
- package/src/server/infrastructure/http/create-git-api-query-handler.js +62 -0
- package/src/server/infrastructure/http/create-plantuml-api-handler.js +43 -0
- package/src/server/infrastructure/http/create-request-handler.js +138 -0
- package/src/server/infrastructure/http/create-static-handler.js +167 -0
- package/src/server/infrastructure/http/create-vault-api-command-handler.js +161 -0
- package/src/server/infrastructure/http/create-vault-api-handler.js +43 -0
- package/src/server/infrastructure/http/create-vault-api-query-handler.js +82 -0
- package/src/server/infrastructure/http/http-errors.js +13 -0
- package/src/server/infrastructure/http/http-response.js +167 -0
- package/src/server/infrastructure/http/request-body.js +56 -0
- package/src/server/infrastructure/persistence/path-utils.js +90 -0
- package/src/server/infrastructure/persistence/sidecar-store.js +150 -0
- package/src/server/infrastructure/persistence/vault-content-adapter.js +49 -0
- package/src/server/infrastructure/persistence/vault-file-store.js +435 -0
- package/src/server/infrastructure/plantuml/plantuml-renderer.js +56 -0
- package/src/server/infrastructure/websocket/attach-collaboration-gateway.js +194 -0
- package/src/server/infrastructure/websocket/client-socket-session.js +151 -0
- package/src/server/startup/git-remote-bootstrap.js +435 -0
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
import { MermaidPreviewHydrator } from './mermaid-preview-hydrator.js';
|
|
2
|
+
import { PlantUmlPreviewHydrator } from './plantuml-preview-hydrator.js';
|
|
3
|
+
import { IDLE_RENDER_TIMEOUT_MS } from './preview-diagram-utils.js';
|
|
4
|
+
import { PreviewRenderExecutor } from './preview-render-executor.js';
|
|
5
|
+
import { getRenderProfile, isLargeDocumentStats } from './preview-render-profile.js';
|
|
6
|
+
import { PreviewRenderScheduler } from './preview-render-scheduler.js';
|
|
7
|
+
|
|
8
|
+
export class PreviewRenderer {
|
|
9
|
+
constructor({
|
|
10
|
+
getContent,
|
|
11
|
+
getFileList,
|
|
12
|
+
onAfterRenderCommit,
|
|
13
|
+
onBeforeRenderCommit,
|
|
14
|
+
onRenderComplete,
|
|
15
|
+
outlineController,
|
|
16
|
+
previewContainer,
|
|
17
|
+
previewElement,
|
|
18
|
+
}) {
|
|
19
|
+
this.getContent = getContent;
|
|
20
|
+
this.getFileList = getFileList;
|
|
21
|
+
this.onAfterRenderCommit = onAfterRenderCommit;
|
|
22
|
+
this.onBeforeRenderCommit = onBeforeRenderCommit;
|
|
23
|
+
this.onRenderComplete = onRenderComplete;
|
|
24
|
+
this.outlineController = outlineController;
|
|
25
|
+
this.previewContainer = previewContainer;
|
|
26
|
+
this.previewElement = previewElement;
|
|
27
|
+
this.renderHost = null;
|
|
28
|
+
|
|
29
|
+
this.pendingRenderVersion = 0;
|
|
30
|
+
this.activeRenderVersion = 0;
|
|
31
|
+
this.readyRenderVersion = 0;
|
|
32
|
+
this.currentStats = null;
|
|
33
|
+
this.isLargeDocument = false;
|
|
34
|
+
this.hydrationPaused = false;
|
|
35
|
+
|
|
36
|
+
this.handlePreviewClick = (event) => {
|
|
37
|
+
const mermaidButton = event.target.closest('.mermaid-placeholder-btn');
|
|
38
|
+
if (mermaidButton) {
|
|
39
|
+
const shell = mermaidButton.closest('.mermaid-shell');
|
|
40
|
+
if (!shell) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
event.preventDefault();
|
|
45
|
+
this.enqueueMermaidShell(shell, { prioritize: true });
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const plantUmlButton = event.target.closest('.plantuml-placeholder-btn');
|
|
50
|
+
if (plantUmlButton) {
|
|
51
|
+
const shell = plantUmlButton.closest('.plantuml-shell');
|
|
52
|
+
if (!shell) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
event.preventDefault();
|
|
57
|
+
this.enqueuePlantUmlShell(shell, { prioritize: true });
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
this.handleWindowResize = () => {
|
|
62
|
+
this.mermaidHydrator.scheduleActiveRefit();
|
|
63
|
+
this.plantUmlHydrator.scheduleActiveRefit();
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
this.mermaidHydrator = new MermaidPreviewHydrator(this);
|
|
67
|
+
this.plantUmlHydrator = new PlantUmlPreviewHydrator(this);
|
|
68
|
+
this.renderScheduler = new PreviewRenderScheduler({ getRenderProfileFn: getRenderProfile });
|
|
69
|
+
this.renderExecutor = new PreviewRenderExecutor({
|
|
70
|
+
getFileList: () => this.getFileList?.() ?? [],
|
|
71
|
+
idleTimeoutMs: IDLE_RENDER_TIMEOUT_MS,
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
this.previewElement?.addEventListener('click', this.handlePreviewClick);
|
|
75
|
+
window.addEventListener('resize', this.handleWindowResize);
|
|
76
|
+
this.setPhase('ready');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
ensureRenderHost() {
|
|
80
|
+
if (!this.previewElement) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (this.renderHost?.isConnected && this.renderHost.parentElement === this.previewElement) {
|
|
85
|
+
return this.renderHost;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
let renderHost = this.previewElement.querySelector('[data-preview-render-host="true"]');
|
|
89
|
+
if (!renderHost) {
|
|
90
|
+
renderHost = document.createElement('div');
|
|
91
|
+
renderHost.dataset.previewRenderHost = 'true';
|
|
92
|
+
this.previewElement.appendChild(renderHost);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
this.renderHost = renderHost;
|
|
96
|
+
return this.renderHost;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
normalizePreviewChildren(renderHost = this.renderHost) {
|
|
100
|
+
if (!this.previewElement) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
Array.from(this.previewElement.children).forEach((child) => {
|
|
105
|
+
if (child === renderHost || child.dataset.excalidrawOverlayRoot === 'true' || child.dataset.videoOverlayRoot === 'true') {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
child.remove();
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
getReservedPreviewHeight() {
|
|
114
|
+
const currentRenderHeight = this.renderHost?.getBoundingClientRect?.().height ?? 0;
|
|
115
|
+
const containerHeight = this.previewContainer?.clientHeight ?? 0;
|
|
116
|
+
return Math.max(Math.round(currentRenderHeight), Math.round(containerHeight), 320);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
beginDocumentLoad() {
|
|
120
|
+
this.cancelScheduledRender();
|
|
121
|
+
this.cancelMermaidHydration();
|
|
122
|
+
this.cancelPlantUmlHydration();
|
|
123
|
+
this.mermaidHydrator.clearPreservedShells();
|
|
124
|
+
this.plantUmlHydrator.clearPreservedShells();
|
|
125
|
+
this.clearActivePlantUmlShell();
|
|
126
|
+
this.onBeforeRenderCommit?.(this.previewElement);
|
|
127
|
+
this.pendingRenderVersion += 1;
|
|
128
|
+
this.activeRenderVersion = this.pendingRenderVersion;
|
|
129
|
+
this.readyRenderVersion = 0;
|
|
130
|
+
this.currentStats = null;
|
|
131
|
+
this.isLargeDocument = false;
|
|
132
|
+
if (this.renderExecutor.hasPendingJob()) {
|
|
133
|
+
this.resetWorker('Document changed');
|
|
134
|
+
}
|
|
135
|
+
const renderHost = this.ensureRenderHost();
|
|
136
|
+
this.normalizePreviewChildren(renderHost);
|
|
137
|
+
const reservedHeight = this.getReservedPreviewHeight();
|
|
138
|
+
if (renderHost) {
|
|
139
|
+
renderHost.replaceChildren();
|
|
140
|
+
renderHost.style.minHeight = `${reservedHeight}px`;
|
|
141
|
+
}
|
|
142
|
+
const shell = document.createElement('div');
|
|
143
|
+
shell.className = 'preview-shell';
|
|
144
|
+
shell.style.minHeight = `${reservedHeight}px`;
|
|
145
|
+
shell.textContent = 'Rendering preview…';
|
|
146
|
+
renderHost?.append(shell);
|
|
147
|
+
this.setPhase('shell');
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
applyTheme(theme) {
|
|
151
|
+
const highlightTheme = document.getElementById('hljs-theme');
|
|
152
|
+
if (highlightTheme) {
|
|
153
|
+
const { darkHref, lightHref } = highlightTheme.dataset;
|
|
154
|
+
highlightTheme.href = theme === 'dark' ? darkHref : lightHref;
|
|
155
|
+
}
|
|
156
|
+
this.mermaidHydrator.applyTheme(theme);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
configureMermaid(mermaid) {
|
|
160
|
+
this.mermaidHydrator.configureMermaid(mermaid);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
ensureMermaid() {
|
|
164
|
+
return this.mermaidHydrator.ensureMermaid();
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
queueRender() {
|
|
168
|
+
const markdownText = this.getContent();
|
|
169
|
+
this.cancelScheduledRender();
|
|
170
|
+
this.pendingRenderVersion += 1;
|
|
171
|
+
const scheduledVersion = this.pendingRenderVersion;
|
|
172
|
+
this.renderScheduler.queue({
|
|
173
|
+
markdownText,
|
|
174
|
+
onRenderRequested: (queuedText, renderVersion) => {
|
|
175
|
+
void this.render(queuedText, renderVersion);
|
|
176
|
+
},
|
|
177
|
+
renderVersion: scheduledVersion,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
async render(markdownText = this.getContent(), renderVersion = this.pendingRenderVersion) {
|
|
182
|
+
if (!this.previewElement) {
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
try {
|
|
187
|
+
const result = await this.compilePreview(markdownText, renderVersion);
|
|
188
|
+
if (renderVersion !== this.pendingRenderVersion) {
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
this.commitBaseRender(result, renderVersion);
|
|
193
|
+
} catch (error) {
|
|
194
|
+
if (renderVersion !== this.pendingRenderVersion) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
console.warn('[preview] Failed to render preview:', error);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
destroy() {
|
|
203
|
+
this.renderScheduler.destroy();
|
|
204
|
+
this.mermaidHydrator.destroy();
|
|
205
|
+
this.plantUmlHydrator.destroy();
|
|
206
|
+
this.renderExecutor.destroy();
|
|
207
|
+
this.previewElement?.removeEventListener('click', this.handlePreviewClick);
|
|
208
|
+
window.removeEventListener('resize', this.handleWindowResize);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
setPhase(phase) {
|
|
212
|
+
if (this.previewElement) {
|
|
213
|
+
this.previewElement.dataset.renderPhase = phase;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
cancelScheduledRender() {
|
|
218
|
+
this.renderScheduler.cancel();
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
cancelMermaidHydration() {
|
|
222
|
+
this.mermaidHydrator.cancelHydration();
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
cancelPlantUmlHydration() {
|
|
226
|
+
this.plantUmlHydrator.cancelHydration();
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
clearActivePlantUmlShell() {
|
|
230
|
+
this.plantUmlHydrator.clearActiveShell();
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
scheduleActiveMermaidRefit() {
|
|
234
|
+
this.mermaidHydrator.scheduleActiveRefit();
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
syncActivePlantUmlShell() {
|
|
238
|
+
return this.plantUmlHydrator.syncActiveShell();
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
scheduleActivePlantUmlRefit() {
|
|
242
|
+
this.plantUmlHydrator.scheduleActiveRefit();
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
setHydrationPaused(paused) {
|
|
246
|
+
this.hydrationPaused = Boolean(paused);
|
|
247
|
+
|
|
248
|
+
if (this.hydrationPaused) {
|
|
249
|
+
this.mermaidHydrator.cancelPendingIdleWork();
|
|
250
|
+
this.plantUmlHydrator.cancelPendingIdleWork();
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
this.mermaidHydrator.hydrateVisibleShells();
|
|
255
|
+
this.mermaidHydrator.scheduleHydration();
|
|
256
|
+
this.plantUmlHydrator.hydrateVisibleShells();
|
|
257
|
+
this.plantUmlHydrator.scheduleHydration();
|
|
258
|
+
this.updateHydrationPhase();
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
resetWorker(reason, { disable = false } = {}) {
|
|
262
|
+
this.renderExecutor.reset(reason, { disable });
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
scheduleWorkerPrewarm({ timeout = IDLE_RENDER_TIMEOUT_MS } = {}) {
|
|
266
|
+
this.renderExecutor.schedulePrewarm({ timeout });
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
async compilePreview(markdownText, renderVersion) {
|
|
270
|
+
return this.renderExecutor.compile(markdownText, renderVersion);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
commitBaseRender({ html, stats }, renderVersion) {
|
|
274
|
+
this.activeRenderVersion = renderVersion;
|
|
275
|
+
this.readyRenderVersion = 0;
|
|
276
|
+
this.currentStats = stats;
|
|
277
|
+
this.isLargeDocument = isLargeDocumentStats(stats);
|
|
278
|
+
|
|
279
|
+
this.cancelMermaidHydration();
|
|
280
|
+
this.cancelPlantUmlHydration();
|
|
281
|
+
document.body.classList.remove('mermaid-maximized-open');
|
|
282
|
+
document.body.classList.remove('plantuml-maximized-open');
|
|
283
|
+
this.preserveHydratedMermaidsForCommit();
|
|
284
|
+
this.preserveHydratedPlantUmlsForCommit();
|
|
285
|
+
|
|
286
|
+
this.onBeforeRenderCommit?.(this.previewElement);
|
|
287
|
+
const renderHost = this.ensureRenderHost();
|
|
288
|
+
this.normalizePreviewChildren(renderHost);
|
|
289
|
+
if (renderHost) {
|
|
290
|
+
renderHost.innerHTML = html;
|
|
291
|
+
}
|
|
292
|
+
this.reconcileHydratedMermaids();
|
|
293
|
+
this.reconcileHydratedPlantUmls();
|
|
294
|
+
this.setPhase('base');
|
|
295
|
+
|
|
296
|
+
this.outlineController.refresh();
|
|
297
|
+
this.onAfterRenderCommit?.(this.previewElement, {
|
|
298
|
+
...stats,
|
|
299
|
+
isLargeDocument: this.isLargeDocument,
|
|
300
|
+
renderVersion,
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
const mermaidShellCount = this.setupMermaidHydration(renderVersion);
|
|
304
|
+
const plantUmlShellCount = this.setupPlantUmlHydration(renderVersion);
|
|
305
|
+
|
|
306
|
+
if (mermaidShellCount === 0 && plantUmlShellCount === 0) {
|
|
307
|
+
this.notifyReady();
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
preserveHydratedMermaidsForCommit() {
|
|
312
|
+
this.mermaidHydrator.preserveHydratedShellsForCommit();
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
preserveHydratedPlantUmlsForCommit() {
|
|
316
|
+
this.plantUmlHydrator.preserveHydratedShellsForCommit();
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
reconcileHydratedMermaids() {
|
|
320
|
+
this.mermaidHydrator.reconcileHydratedShells();
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
reconcileHydratedPlantUmls() {
|
|
324
|
+
this.plantUmlHydrator.reconcileHydratedShells();
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
syncPreservedMermaidShell(preservedShell, nextShell) {
|
|
328
|
+
this.mermaidHydrator.syncPreservedShell(preservedShell, nextShell);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
syncPreservedPlantUmlShell(preservedShell, nextShell) {
|
|
332
|
+
this.plantUmlHydrator.syncPreservedShell(preservedShell, nextShell);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
setupMermaidHydration(renderVersion) {
|
|
336
|
+
return this.mermaidHydrator.setupHydration(renderVersion);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
hydrateVisibleMermaids() {
|
|
340
|
+
this.mermaidHydrator.hydrateVisibleShells();
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
enqueueMermaidShell(shell, { prioritize = false } = {}) {
|
|
344
|
+
this.mermaidHydrator.enqueueShell(shell, { prioritize });
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
scheduleMermaidHydration() {
|
|
348
|
+
this.mermaidHydrator.scheduleHydration();
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
async flushMermaidHydrationQueue() {
|
|
352
|
+
await this.mermaidHydrator.flushHydrationQueue();
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
async hydrateMermaidShell(shell, mermaid) {
|
|
356
|
+
await this.mermaidHydrator.hydrateShell(shell, mermaid);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
resetHydratedMermaids() {
|
|
360
|
+
this.mermaidHydrator.resetHydratedShells();
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
setupPlantUmlHydration(renderVersion) {
|
|
364
|
+
return this.plantUmlHydrator.setupHydration(renderVersion);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
hydrateVisiblePlantUmls() {
|
|
368
|
+
this.plantUmlHydrator.hydrateVisibleShells();
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
enqueuePlantUmlShell(shell, { prioritize = false } = {}) {
|
|
372
|
+
this.plantUmlHydrator.enqueueShell(shell, { prioritize });
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
schedulePlantUmlHydration() {
|
|
376
|
+
this.plantUmlHydrator.scheduleHydration();
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
async flushPlantUmlHydrationQueue() {
|
|
380
|
+
await this.plantUmlHydrator.flushHydrationQueue();
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
async hydratePlantUmlShell(shell) {
|
|
384
|
+
await this.plantUmlHydrator.hydrateShell(shell);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
updateHydrationPhase() {
|
|
388
|
+
if (this.hydrationPaused) {
|
|
389
|
+
if (this.mermaidHydrator.hasPendingWork() || this.plantUmlHydrator.hasPendingWork()) {
|
|
390
|
+
this.setPhase('base');
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
if (this.mermaidHydrator.hasPendingWork() || this.plantUmlHydrator.hasPendingWork()) {
|
|
396
|
+
this.setPhase('hydrating');
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
this.notifyReady();
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
notifyReady() {
|
|
404
|
+
if (this.renderHost) {
|
|
405
|
+
this.renderHost.style.minHeight = '';
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
this.setPhase('ready');
|
|
409
|
+
|
|
410
|
+
if (this.readyRenderVersion === this.activeRenderVersion) {
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
this.readyRenderVersion = this.activeRenderVersion;
|
|
415
|
+
this.onRenderComplete?.({
|
|
416
|
+
isLargeDocument: this.isLargeDocument,
|
|
417
|
+
stats: this.currentStats,
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
async fetchPlantUmlSvg(source) {
|
|
422
|
+
return this.plantUmlHydrator.fetchSvg(source);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
async fetchPlantUmlSource(filePath) {
|
|
426
|
+
return this.plantUmlHydrator.fetchSource(filePath);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
async fetchMermaidSource(filePath) {
|
|
430
|
+
return this.mermaidHydrator.fetchSource(filePath);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
resetPlantUmlShell(shell, { clearCache = false, message = 'Renders server-side when visible' } = {}) {
|
|
434
|
+
this.plantUmlHydrator.resetShell(shell, { clearCache, message });
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
enhancePlantUmlDiagram(shell, svgMarkup) {
|
|
438
|
+
this.plantUmlHydrator.enhanceDiagram(shell, svgMarkup);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
enhanceMermaidDiagram(shell, renderedDiagram) {
|
|
442
|
+
this.mermaidHydrator.enhanceDiagram(shell, renderedDiagram);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
createMermaidZoomButton(label, ariaLabel) {
|
|
446
|
+
return this.mermaidHydrator.createZoomButton(label, ariaLabel);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
createPlantUmlToolButton(label, ariaLabel) {
|
|
450
|
+
return this.plantUmlHydrator.createToolButton(label, ariaLabel);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { createMarkdownStarter, normalizeVaultPathInput } from '../domain/vault-paths.js';
|
|
2
|
+
import { resolveWikiTarget } from '../domain/vault-utils.js';
|
|
3
|
+
|
|
4
|
+
export class WikiLinkFileController {
|
|
5
|
+
constructor({
|
|
6
|
+
getFileList,
|
|
7
|
+
navigation,
|
|
8
|
+
refreshExplorer,
|
|
9
|
+
toastController,
|
|
10
|
+
vaultApiClient,
|
|
11
|
+
}) {
|
|
12
|
+
this.getFileList = getFileList;
|
|
13
|
+
this.navigation = navigation;
|
|
14
|
+
this.refreshExplorer = refreshExplorer;
|
|
15
|
+
this.toastController = toastController;
|
|
16
|
+
this.vaultApiClient = vaultApiClient;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
handleWikiLinkClick(target) {
|
|
20
|
+
const match = resolveWikiTarget(target, this.getFileList());
|
|
21
|
+
|
|
22
|
+
if (match) {
|
|
23
|
+
this.navigation.navigateToFile(match);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const normalizedPath = this.normalizeNewWikiFilePath(target);
|
|
28
|
+
if (!normalizedPath) {
|
|
29
|
+
this.toastController.show('Cannot create an empty wiki-link target');
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
void this.createAndOpenFile(normalizedPath, target);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
normalizeNewWikiFilePath(target) {
|
|
37
|
+
const normalized = normalizeVaultPathInput(target);
|
|
38
|
+
|
|
39
|
+
if (!normalized) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return normalized.endsWith('.md') ? normalized : `${normalized}.md`;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async createAndOpenFile(filePath, displayName) {
|
|
47
|
+
try {
|
|
48
|
+
await this.vaultApiClient.createFile({
|
|
49
|
+
content: createMarkdownStarter(displayName || filePath),
|
|
50
|
+
path: filePath,
|
|
51
|
+
});
|
|
52
|
+
await this.refreshExplorer();
|
|
53
|
+
this.navigation.navigateToFile(filePath);
|
|
54
|
+
} catch (error) {
|
|
55
|
+
this.toastController.show(`Failed to create file: ${error.message}`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isMarkdownFilePath,
|
|
3
|
+
supportsBacklinksForFilePath,
|
|
4
|
+
} from '../../domain/file-kind.js';
|
|
5
|
+
|
|
6
|
+
export class WorkspaceChromeController {
|
|
7
|
+
constructor({
|
|
8
|
+
beginDocumentLoad,
|
|
9
|
+
getDisplayName,
|
|
10
|
+
loadBacklinks,
|
|
11
|
+
onBeforeFileOpen,
|
|
12
|
+
onFileOpenError,
|
|
13
|
+
onFileOpenReady,
|
|
14
|
+
onRenderExcalidrawPreview,
|
|
15
|
+
onSyncWrapToggle,
|
|
16
|
+
onUpdateActiveFile,
|
|
17
|
+
onUpdateCurrentFile,
|
|
18
|
+
onUpdateLobbyCurrentFile,
|
|
19
|
+
onUpdateVisibleChrome,
|
|
20
|
+
onViewModeReset,
|
|
21
|
+
renderPresence,
|
|
22
|
+
showEditorLoading,
|
|
23
|
+
stateStore,
|
|
24
|
+
}) {
|
|
25
|
+
this.beginDocumentLoad = beginDocumentLoad;
|
|
26
|
+
this.getDisplayName = getDisplayName;
|
|
27
|
+
this.loadBacklinks = loadBacklinks;
|
|
28
|
+
this.onBeforeFileOpen = onBeforeFileOpen;
|
|
29
|
+
this.onFileOpenError = onFileOpenError;
|
|
30
|
+
this.onFileOpenReady = onFileOpenReady;
|
|
31
|
+
this.onRenderExcalidrawPreview = onRenderExcalidrawPreview;
|
|
32
|
+
this.onSyncWrapToggle = onSyncWrapToggle;
|
|
33
|
+
this.onUpdateActiveFile = onUpdateActiveFile;
|
|
34
|
+
this.onUpdateCurrentFile = onUpdateCurrentFile;
|
|
35
|
+
this.onUpdateLobbyCurrentFile = onUpdateLobbyCurrentFile;
|
|
36
|
+
this.onUpdateVisibleChrome = onUpdateVisibleChrome;
|
|
37
|
+
this.onViewModeReset = onViewModeReset;
|
|
38
|
+
this.renderPresence = renderPresence;
|
|
39
|
+
this.showEditorLoading = showEditorLoading;
|
|
40
|
+
this.stateStore = stateStore;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
prepareForFileOpen(filePath, { resetConnectionState = true } = {}) {
|
|
44
|
+
this.onViewModeReset();
|
|
45
|
+
this.onBeforeFileOpen();
|
|
46
|
+
this.stateStore.set('connectionHelpShown', false);
|
|
47
|
+
if (resetConnectionState) {
|
|
48
|
+
this.stateStore.set('connectionState', { status: 'connecting', unreachable: false });
|
|
49
|
+
}
|
|
50
|
+
this.stateStore.set('currentFilePath', filePath);
|
|
51
|
+
this.onUpdateCurrentFile(filePath);
|
|
52
|
+
this.onUpdateLobbyCurrentFile(filePath);
|
|
53
|
+
this.onUpdateActiveFile(filePath);
|
|
54
|
+
this.onUpdateVisibleChrome(filePath, {
|
|
55
|
+
displayName: this.getDisplayName(filePath),
|
|
56
|
+
isMarkdown: isMarkdownFilePath(filePath),
|
|
57
|
+
});
|
|
58
|
+
this.showEditorLoading();
|
|
59
|
+
this.beginDocumentLoad();
|
|
60
|
+
this.renderPresence();
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
supportsBacklinks: supportsBacklinksForFilePath(filePath),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
markFileOpenReady(session) {
|
|
68
|
+
this.onFileOpenReady(session);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
finalizeFileOpen({ filePath, isExcalidraw, session = null, supportsBacklinks }) {
|
|
72
|
+
if (isExcalidraw) {
|
|
73
|
+
this.onRenderExcalidrawPreview(filePath);
|
|
74
|
+
}
|
|
75
|
+
this.onSyncWrapToggle();
|
|
76
|
+
if (supportsBacklinks && session) {
|
|
77
|
+
this.loadBacklinks(filePath);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
handleFileOpenError() {
|
|
82
|
+
this.onFileOpenError();
|
|
83
|
+
}
|
|
84
|
+
}
|