collabmd 0.1.49 → 0.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -659
- package/bin/collabmd.js +36 -20
- package/dist/client/assets/CodeMirrorEditor-UCMRAMCV-Crf9Y3Q6.js +1 -0
- package/dist/client/assets/{abnfDiagram-VCTEODGH-CdVZqicp.js → abnfDiagram-VCTEODGH-PuinKbSQ.js} +1 -1
- package/dist/client/assets/ar-SA-5WIASEJP-Di7OimCN.js +10 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-wUo0bXif.js → architectureDiagram-5GKGNRK7-46hPkrZv.js} +1 -1
- package/dist/client/assets/az-AZ-V5EUQD6C-C19OGTT_.js +1 -0
- package/dist/client/assets/bg-BG-EXASCMTR-BIt0xWyb.js +5 -0
- package/dist/client/assets/{blockDiagram-I7D4REHJ-BRSK3m49.js → blockDiagram-I7D4REHJ-C1S5Bzf8.js} +1 -1
- package/dist/client/assets/bn-BD-U4SYNFCO-CdNaPy4Q.js +3 -0
- package/dist/client/assets/bn-IN-HKDJIITE-CdNaPy4Q.js +3 -0
- package/dist/client/assets/{browser-BKLM0ThC-IxjwuOIz-BBqQnUEb.js → browser-BKLM0ThC-IxjwuOIz-DyJcVMFR.js} +1 -1
- package/dist/client/assets/{c4Diagram-7LVT6UL2-yD2poxqw.js → c4Diagram-7LVT6UL2-VAk1HPmz.js} +1 -1
- package/dist/client/assets/ca-ES-2KGUU5XB-C9t-c0cH.js +8 -0
- package/dist/client/assets/channel-jwdhnPiV.js +1 -0
- package/dist/client/assets/chunk-2E4U76K2-Ba8Wf22k.js +1 -0
- package/dist/client/assets/{chunk-4HAMMTFA-DStbIfJ1.js → chunk-4HAMMTFA-Ht-73lsT.js} +1 -1
- package/dist/client/assets/chunk-5XKZK2GL-D4UAZSOJ.js +1 -0
- package/dist/client/assets/{chunk-75Z2AOVW-C5pGd3W9.js → chunk-75Z2AOVW-B2cZexqK.js} +1 -1
- package/dist/client/assets/{chunk-CLGD4ZFX-BMeArk03.js → chunk-CLGD4ZFX-Cmtx89ht.js} +1 -1
- package/dist/client/assets/{chunk-DU6HZSFF-Zkp69c6c.js → chunk-DU6HZSFF-C6d6PJfE.js} +1 -1
- package/dist/client/assets/{chunk-F27PBJKO-D4xNct1r.js → chunk-F27PBJKO-Dg3H6KLL.js} +1 -1
- package/dist/client/assets/{chunk-GMAD6QVW-NZ6WpDb8.js → chunk-GMAD6QVW-DUfjx_d5.js} +1 -1
- package/dist/client/assets/{chunk-GVQU2GXP-D8SDprfX.js → chunk-GVQU2GXP-D1l7oRGR.js} +1 -1
- package/dist/client/assets/{chunk-IMKFNOWR-D8jEuU3Q.js → chunk-IMKFNOWR-3F6NhHUP.js} +1 -1
- package/dist/client/assets/{chunk-L3NEJ4N5-aijKP-eh.js → chunk-L3NEJ4N5-BmCVn4y-.js} +1 -1
- package/dist/client/assets/{chunk-OSK3NFVY-CCbLQAMa.js → chunk-OSK3NFVY-CWHXAmfx.js} +1 -1
- package/dist/client/assets/{chunk-P2QGCYS3-Oag_FdCq.js → chunk-P2QGCYS3-Du8EtwOa.js} +1 -1
- package/dist/client/assets/{chunk-POPQ4Y6H-CYnpIgXT.js → chunk-POPQ4Y6H-B5yJIrZE.js} +1 -1
- package/dist/client/assets/{chunk-PWAF6VOD-JSNrcBmP.js → chunk-PWAF6VOD-B3gML4ps.js} +1 -1
- package/dist/client/assets/{chunk-SHT3W25Y-BiQGljao.js → chunk-SHT3W25Y-BKaI8jZO.js} +1 -1
- package/dist/client/assets/{chunk-SVP7TREG-DB485R5x.js → chunk-SVP7TREG-XlsB_ZMZ.js} +1 -1
- package/dist/client/assets/{chunk-TICWLB2K-8rAVvoS3.js → chunk-TICWLB2K-Cpp2z8yK.js} +1 -1
- package/dist/client/assets/chunk-TLUHSLCS-Yl7B0Vrz.js +1 -0
- package/dist/client/assets/chunk-ZNVOA63L-BmCQjhx-.js +40 -0
- package/dist/client/assets/{chunk-FLYJHZSQ-Be7lKF17.js → chunk-ZPMXAHWN-Dt0TxJa6.js} +2 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-BRw9vo8U.js +1 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-BRw9vo8U.js +1 -0
- package/dist/client/assets/comment-markdown-renderer-B9_vPc3F.js +1 -0
- package/dist/client/assets/comment-thread-store-NNHqRVsX.js +1 -0
- package/dist/client/assets/comment-threads-nJhK1yfc.js +4 -0
- package/dist/client/assets/cs-CZ-VUCGPRML-BfCoYAgj.js +7 -0
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-rTz9RhFH.js → cynefinDiagram-5FMLGOSQ-BRoCEoZM.js} +1 -1
- package/dist/client/assets/da-DK-NNDP2IVP-DBw9ZNTR.js +2 -0
- package/dist/client/assets/{dagre-GXQ25YYZ-Cr67wLpQ.js → dagre-GXQ25YYZ-BSfKCfy7.js} +1 -1
- package/dist/client/assets/de-CH-I7RAVIZN-DYW18Vsr.js +11 -0
- package/dist/client/assets/de-DE-WBQ3DQLR-DYW18Vsr.js +11 -0
- package/dist/client/assets/deferred-collab-rBe4nuQ2.css +1 -0
- package/dist/client/assets/deferred-git-BHKtkFYi.css +1 -0
- package/dist/client/assets/deferred-preview-pe7Iwwx3.css +1 -0
- package/dist/client/assets/{diagram-S7CK7UJ4-DywERe__.js → diagram-S7CK7UJ4-D7KaM9yj.js} +1 -1
- package/dist/client/assets/{diagram-UQ7AKVKN-CNYlXtu4.js → diagram-UQ7AKVKN-JevUZuYi.js} +1 -1
- package/dist/client/assets/{diagram-VSXAHHWV-0H1a61Bn.js → diagram-VSXAHHWV-B3-U-Q2E.js} +1 -1
- package/dist/client/assets/{diagram-VX7I27RA-CsJbsx5F.js → diagram-VX7I27RA-pSD4HMh1.js} +1 -1
- package/dist/client/assets/{diagram-Z3DM3KII-D0mLxEgI.js → diagram-Z3DM3KII-D8r1_CIb.js} +1 -1
- package/dist/client/assets/{direct-engine-DdrQKpgq-CtKfQzCt.js → direct-engine-DdrQKpgq-B5zIoeQw.js} +1 -1
- package/dist/client/assets/dist-B3HdUPsK.js +1 -0
- package/dist/client/assets/{dist-Tw-Fxpeb.js → dist-B7XMN9AT.js} +1 -1
- package/dist/client/assets/dist-BIRygGYH.js +1 -0
- package/dist/client/assets/dist-BPyOlNLY.js +2 -0
- package/dist/client/assets/{dist-D5wCC32z.js → dist-BR81yxMt.js} +1 -1
- package/dist/client/assets/{dist-TW8iFRyW.js → dist-B_B4XLmq.js} +1 -1
- package/dist/client/assets/dist-Bdy9ZRzd.js +9 -0
- package/dist/client/assets/{dist-netZOQtD.js → dist-Bfxzlnrf.js} +1 -1
- package/dist/client/assets/{dist-DzNmC81X.js → dist-Bx3QkS-3.js} +1 -1
- package/dist/client/assets/{dist-mj2Ht75J.js → dist-By7ieqAf.js} +1 -1
- package/dist/client/assets/dist-ByhQbe-x.js +1 -0
- package/dist/client/assets/{dist-CdmKGRGr.js → dist-BzFSJM0U.js} +1 -1
- package/dist/client/assets/dist-C5NkYKAa.js +1 -0
- package/dist/client/assets/{dist-D3fehAZ2.js → dist-CELhfKzh.js} +1 -1
- package/dist/client/assets/dist-CEirJSxk.js +1 -0
- package/dist/client/assets/dist-CO0-4CuV.js +39 -0
- package/dist/client/assets/dist-CRnJ0D9h.js +1 -0
- package/dist/client/assets/{dist-GvvCNBe4.js → dist-CbDyXgCo.js} +1 -1
- package/dist/client/assets/{dist-BeajGMhO.js → dist-CqXVyYoH.js} +1 -1
- package/dist/client/assets/{dist-LQ4kDCKz.js → dist-CrWzIWEE.js} +1 -1
- package/dist/client/assets/dist-CyNrloSI.js +1 -0
- package/dist/client/assets/dist-D60_kdpQ.js +1 -0
- package/dist/client/assets/{dist-DuH3ZrHo.js → dist-DCpIH3-_.js} +1 -1
- package/dist/client/assets/{dist-BPHLJ09L.js → dist-DJAMplZI.js} +2 -2
- package/dist/client/assets/{dist-DGEbEfw4.js → dist-DVXzbeDx.js} +1 -1
- package/dist/client/assets/{dist-C5NgpdG5.js → dist-Drv_wZYC.js} +1 -1
- package/dist/client/assets/{dist-DVy5woUy.js → dist-EWJYvBK1.js} +1 -1
- package/dist/client/assets/dist-Hdhj3L3t.js +1 -0
- package/dist/client/assets/{dist-DpYDHR9p.js → dist-gRRhmB-2.js} +3 -3
- package/dist/client/assets/dist-kWb2d1CH.js +1 -0
- package/dist/client/assets/dist-kiD2GIsD.js +13 -0
- package/dist/client/assets/{dist-JaU3aRlD.js → dist-l-56SowH.js} +1 -1
- package/dist/client/assets/{dist-BK9QvQrc.js → dist-nxQErAaK.js} +2 -2
- package/dist/client/assets/dist-sLzRQQk7.js +1 -0
- package/dist/client/assets/document-formatter-Qdiq9uJs.js +1 -0
- package/dist/client/assets/drawioEditor-CHf1vtdQ.js +9 -0
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-HeTxHpCU.js → ebnfDiagram-PWID7BFC-UJ0Fz5ci.js} +1 -1
- package/dist/client/assets/editor-session-4Bn81iWm.js +14 -0
- package/dist/client/assets/el-GR-TYQHVGXW-Dx82YYAS.js +7 -0
- package/dist/client/assets/embedded-editor-base-jK221GC8.css +1 -0
- package/dist/client/assets/{embedpdf-DA4bA119-BPqZxwjc.js → embedpdf-DA4bA119-E8wZ11J2.js} +2 -3
- package/dist/client/assets/{embedpdf-BmE13ZZ0.js → embedpdf-LUXDBD3-.js} +1 -1
- package/dist/client/assets/{en-SJ2YIMFF-CJBL3nkq.js → en-2RFA324Y-BsuNJTcL.js} +1 -1
- package/dist/client/assets/{erDiagram-RLTQ6QDP-CbrDdd5P.js → erDiagram-RLTQ6QDP-CWrH1UJ9.js} +1 -1
- package/dist/client/assets/es-ES-JEUOREKJ-Rx0NUQDl.js +12 -0
- package/dist/client/assets/eu-ES-SO5DEEAN-CDYm-BcK.js +8 -0
- package/dist/client/assets/excalidraw-element-link-iA6zo0_f.js +7 -0
- package/dist/client/assets/{excalidrawEditor-BbSbI80a.css → excalidrawEditor-DDE0n1Pk.css} +1 -1
- package/dist/client/assets/excalidrawEditor-WIuguTz7.js +9 -0
- package/dist/client/assets/export-page-AN-wI5p4.js +56 -0
- package/dist/client/assets/exportDocument-B7IagJhQ.css +1 -0
- package/dist/client/assets/exportDocument-B9xNKpQe.js +2 -0
- package/dist/client/assets/fa-IR-FIYUE2GQ-C865Nx3X.js +9 -0
- package/dist/client/assets/fi-FI-REAEF6HQ-BIpjJqIb.js +6 -0
- package/dist/client/assets/flowDiagram-HODETNUW-kb1lUSBo.js +1 -0
- package/dist/client/assets/fr-FR-SUCL7J6B-DGAKE8jH.js +12 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-BHgOYiZz.js → ganttDiagram-EL5Y4UJY-BBNzDfaV.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-Dl__X3Sk.js → gitGraphDiagram-WWUBYQGX-Csf0Dm_1.js} +1 -1
- package/dist/client/assets/gl-ES-KHCSOGVH-DWKh0CMu.js +6 -0
- package/dist/client/assets/he-IL-JYXVXV2Q-zqbcM-4g.js +9 -0
- package/dist/client/assets/hi-IN-BU52H3BO-CY8v6eG9.js +3 -0
- package/dist/client/assets/highlight-theme-CzNkO-IJ.js +1 -0
- package/dist/client/assets/hu-HU-OWADXDQ3-CEl6Udfh.js +3 -0
- package/dist/client/assets/id-ID-EOMR5R3I-CGQwUjoL.js +8 -0
- package/dist/client/assets/image-2QKV3NAF-BUbX0y5Y.js +1 -0
- package/dist/client/assets/index-BAmZnTFV.css +1 -0
- package/dist/client/assets/index-mWiw418b.js +1111 -0
- package/dist/client/assets/{infoDiagram-27XIBGKW-DBpoANC9.js → infoDiagram-27XIBGKW-Bzy6kCbb.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-BMPC6hfp.js → ishikawaDiagram-5VMMS53U-CRy9vIS5.js} +1 -1
- package/dist/client/assets/it-IT-FC2VTM3L-KTijNcUe.js +12 -0
- package/dist/client/assets/ja-JP-JBNTKYP4-BflWlGhw.js +12 -0
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-B1sApUmM.js → journeyDiagram-3NMN7TZE-D4ZR_s9J.js} +1 -1
- package/dist/client/assets/kaa-TC3VIB7V-B-xtZfy0.js +1 -0
- package/dist/client/assets/kab-KAB-UOUDSQKM-BmO0O4Y4.js +4 -0
- package/dist/client/assets/{kanban-definition-UXKFOSKX-C9yP4td1.js → kanban-definition-UXKFOSKX-CIDTmu5g.js} +1 -1
- package/dist/client/assets/kk-KZ-P5H2X7YS-CSQFB8IN.js +1 -0
- package/dist/client/assets/{km-KH-PCWDKPHP-DSmy5shj.js → km-KH-IHMV2US7-BxrjuEzr.js} +4 -4
- package/dist/client/assets/ko-KR-ZTMANIDF-BnNRXd5J.js +5 -0
- package/dist/client/assets/ku-TR-GPJTRB5G-BZM7f2aT.js +6 -0
- package/dist/client/assets/{line-BFl3ujec.js → line-DSWLHgpx.js} +1 -1
- package/dist/client/assets/lobby-presence-Rdjnc0_0.js +1 -0
- package/dist/client/assets/lt-LT-V3XDOK3P-MVQBOHmF.js +3 -0
- package/dist/client/assets/lv-LV-DVQ3FADO-CrenwAhS.js +4 -0
- package/dist/client/assets/markdown-it-CocJWnjv.js +13 -0
- package/dist/client/assets/mermaid-parser.core-DrdLA3p0.js +3 -0
- package/dist/client/assets/mermaid.core-C_FK-7n4.js +1 -0
- package/dist/client/assets/{mermaid.core-BrY09czX.js → mermaid.core-D0cMM4Rl.js} +2 -3
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-BUQHcYbK.js → mindmap-definition-YA3MSWOX-DO8NB9VH.js} +1 -1
- package/dist/client/assets/mr-IN-VZ6HH5FE-B-PHPglH.js +9 -0
- package/dist/client/assets/my-MM-XYKWHRK6-Be5sYp5q.js +1 -0
- package/dist/client/assets/nb-NO-UNO2GGZJ-BvSKGdja.js +8 -0
- package/dist/client/assets/nl-NL-76EFHT4P-C2yNx1Cj.js +13 -0
- package/dist/client/assets/nn-NO-CFKD7ABE-4NsqlDRP.js +4 -0
- package/dist/client/assets/oc-FR-YBJTCJ3J-B4OTQsWW.js +4 -0
- package/dist/client/assets/pa-IN-SNOXSMRV-CKj_sOG7.js +4 -0
- package/dist/client/assets/{pegDiagram-XKGWAZYB-Bi2Iml7Z.js → pegDiagram-XKGWAZYB-DS6Ab21R.js} +1 -1
- package/dist/client/assets/percentages-Q7USCRWZ-DWE6uvTs.js +1 -0
- package/dist/client/assets/{pieDiagram-E7YTZNPT-_gYXnMoi.js → pieDiagram-E7YTZNPT-BbFe6Tgs.js} +1 -1
- package/dist/client/assets/pl-PL-BSY6YFZ3-CFuzA6L0.js +12 -0
- package/dist/client/assets/preload-helper-CtT0-S4g.js +1 -0
- package/dist/client/assets/preview-render-compiler-C_7J7eia.js +43 -0
- package/dist/client/assets/preview-render-compiler-DzJ1KR_M.js +1 -0
- package/dist/client/assets/preview-render-worker-1DoIDllV.js +59 -0
- package/dist/client/assets/prod-D5TxmmoB.js +1 -0
- package/dist/client/assets/prod-pbFU4TaM.js +145 -0
- package/dist/client/assets/pt-BR-CZDV62R3-CkPMtyNx.js +10 -0
- package/dist/client/assets/pt-PT-JO57XJJW-CBSnfGtF.js +12 -0
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-DwexhEhd.js → quadrantDiagram-AXDQQJYC-fJE7iAxt.js} +1 -1
- package/dist/client/assets/quick-switcher-De4PjZFC.css +1 -0
- package/dist/client/assets/quick-switcher-controller-CUajuy78.js +1 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-BVA5UbMu.js → railroadDiagram-O6MQD6OU-CUQKqbCK.js} +1 -1
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-C4cKwiIw.js → requirementDiagram-BXWQKSXE-Balm0WW8.js} +1 -1
- package/dist/client/assets/ro-RO-UZ5ICYYN-BOuntc_r.js +12 -0
- package/dist/client/assets/room-DX7lIfnu.js +1 -0
- package/dist/client/assets/ru-RU-AN7JPREC-D-ow3SNR.js +10 -0
- package/dist/client/assets/runtime-config-BFVdhnJu.js +1 -0
- package/dist/client/assets/runtime-paths-Cn0snt_9.js +1 -0
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-B5HHkRT2.js → sankeyDiagram-P5KCCOFB-CcbMqrlQ.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-BX6jqJFD.js → sequenceDiagram-WJ2MYXX4-BL1j3Sn-.js} +1 -1
- package/dist/client/assets/si-LK-7CBLD6QQ-c91EepX0.js +1 -0
- package/dist/client/assets/sk-SK-SWR6DKBI-D5vFMIL6.js +7 -0
- package/dist/client/assets/sl-SI-JRML4FIH-D53L_0S2.js +6 -0
- package/dist/client/assets/{stateDiagram-D77RDMKH-CmqxyRGx.js → stateDiagram-D77RDMKH-DNi924hh.js} +1 -1
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-C62JEwak.js +1 -0
- package/dist/client/assets/sv-SE-4ZPKFFXF-DT-G7RCI.js +12 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-Bmgb9Zld.js → swimlanes-42K2YHIH-ColgjSH4.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-B9UZhEj4.js +8 -0
- package/dist/client/assets/ta-IN-V6NHHU6Z-D5jy7_AE.js +6 -0
- package/dist/client/assets/th-TH-P7CTMGDK-6sy0NO7K.js +1 -0
- package/dist/client/assets/{timeline-definition-24CTP7MA-BA-lVH6P.js → timeline-definition-24CTP7MA-7pch5JAr.js} +1 -1
- package/dist/client/assets/tr-TR-GUFYG22B-ClVaf8h1.js +4 -0
- package/dist/client/assets/uk-UA-K6SV5NFQ-BLTTtyNB.js +6 -0
- package/dist/client/assets/uz-UZ-TVKTZO2G-Bm02Eg3D.js +1 -0
- package/dist/client/assets/vault-api-client-QjZ_T03l.js +7 -0
- package/dist/client/assets/vault-utils-Bct69Xw2.js +1 -0
- package/dist/client/assets/{vennDiagram-4TSXK5OY-DNdUC_Xj.js → vennDiagram-4TSXK5OY-C5taziCX.js} +1 -1
- package/dist/client/assets/vi-VN-7FKFXJNO-CL3WPhmG.js +7 -0
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-C2oY-YbF.js → wardleyDiagram-VM6X3IG4-BbSlUwuM.js} +1 -1
- package/dist/client/assets/{wiki-link-resolver-DFIwErjc.js → wiki-link-resolver-C2P_WmTV.js} +1 -1
- package/dist/client/assets/{worker-engine-m0rlHn8R-S8mpn_O0.js → worker-engine-m0rlHn8R-eSDcDGEI.js} +1 -1
- package/dist/client/assets/workspace-change-CVA9dVmy.js +1 -0
- package/dist/client/assets/workspace-sync-client-D4nblH_2.js +1 -0
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-CoIR8CBX.js → xychartDiagram-S5SC5T6Z-D06X1arY.js} +1 -1
- package/dist/client/assets/yjs-B41tM6Sz.js +4 -0
- package/dist/client/assets/yjs-provider-reset-guard-R43MnLNc.js +1 -0
- package/dist/client/assets/zh-CN-AOKVLNNK-DGidDH2b.js +11 -0
- package/dist/client/assets/zh-HK-CDKPF5DC-CRcNR3rk.js +1 -0
- package/dist/client/assets/zh-TW-ZVGYESGW-C7Qji1y6.js +13 -0
- package/dist/client/drawio-editor.html +7 -8
- package/dist/client/excalidraw-editor.html +31 -33
- package/dist/client/export-document.html +5 -7
- package/dist/client/index.html +30 -26
- package/package.json +14 -20
- package/src/client/app/drawio-editor.html +1 -1
- package/src/client/app/excalidraw-editor.html +1 -1
- package/src/client/app/export-document.html +1 -1
- package/src/client/app/index.html +28 -4
- package/src/client/app/main-entry.js +1 -19
- package/src/client/application/app-shell/comments-feature.js +6 -0
- package/src/client/application/app-shell/ui-feature-shell.js +136 -58
- package/src/client/application/app-shell/ui-feature-tab-activity.js +8 -3
- package/src/client/application/app-shell-elements.js +5 -0
- package/src/client/application/highlight-theme.js +16 -0
- package/src/client/application/preview-render-compiler.js +43 -20
- package/src/client/application/preview-render-executor.js +0 -26
- package/src/client/application/preview-renderer.js +24 -7
- package/src/client/application/workspace-coordinator.js +20 -21
- package/src/client/bootstrap/collabmd-app-shell.js +71 -35
- package/src/client/bootstrap/lazy-collab-clients.js +90 -0
- package/src/client/domain/excalidraw-scene-reconcile.js +5 -2
- package/src/client/domain/hash-routes.js +5 -0
- package/src/client/domain/highlight-runtime.js +47 -0
- package/src/client/domain/lobby-chat.js +2 -0
- package/src/client/domain/runtime-paths.js +56 -7
- package/src/client/domain/vault-utils.js +11 -0
- package/src/client/excalidraw-editor.js +20 -4
- package/src/client/infrastructure/auth-client.js +1 -2
- package/src/client/infrastructure/browser-preferences-port.js +16 -0
- package/src/client/infrastructure/editor-view-adapter.js +43 -8
- package/src/client/infrastructure/excalidraw-room-client.js +9 -1
- package/src/client/infrastructure/hosted-api-client.js +60 -0
- package/src/client/infrastructure/lobby-presence.js +2 -2
- package/src/client/infrastructure/runtime-config.js +3 -1
- package/src/client/infrastructure/webmcp-tool-registry.js +16 -2
- package/src/client/presentation/comment-markdown-renderer.js +2 -14
- package/src/client/presentation/comment-overview-controller.js +1 -2
- package/src/client/presentation/comment-ui/comment-ui-shared.js +5 -2
- package/src/client/presentation/file-explorer-controller.js +3 -0
- package/src/client/presentation/file-explorer-view.js +272 -174
- package/src/client/presentation/git-panel-controller.js +1 -1
- package/src/client/presentation/hosted-workspace-gate-controller.js +180 -0
- package/src/client/presentation/layout-controller.js +10 -1
- package/src/client/presentation/team-settings-controller.js +228 -0
- package/src/client/styles/deferred-collab.css +5 -0
- package/src/client/styles/deferred-git.css +7 -0
- package/src/client/styles/deferred-preview.css +6 -0
- package/src/client/styles/features/diagram-preview.css +0 -15
- package/src/client/styles/features/outline.css +4 -2
- package/src/client/styles/features/preview-markdown.css +25 -11
- package/src/client/styles/features/team-settings.css +162 -0
- package/src/client/styles/foundation/tokens.css +2 -2
- package/src/client/styles/layout/editor-page.css +0 -13
- package/src/client/styles/layout/overlays.css +16 -0
- package/src/client/styles/layout/responsive.css +5 -5
- package/src/client/styles/layout/shell.css +20 -1
- package/src/client/styles/layout/sidebar.css +92 -3
- package/src/client/styles/style.css +3 -19
- package/src/domain/agent-tool-definitions.js +139 -63
- package/src/domain/collabmd-content-capabilities.js +4 -4
- package/src/domain/excalidraw-agent-scene.js +108 -6
- package/src/domain/excalidraw-agent-verification.js +95 -1
- package/src/domain/excalidraw-room-codec.js +12 -1
- package/src/domain/literal-text-search.js +13 -0
- package/src/server/application/agent-content-service.js +142 -74
- package/src/server/config/env.js +96 -5
- package/src/server/create-app-server.js +23 -153
- package/src/server/domain/hosted-workspace.js +10 -1
- package/src/server/domain/ripgrep-search-service.js +68 -21
- package/src/server/infrastructure/git/local-exclude.js +13 -1
- package/src/server/infrastructure/http/create-agent-api-handler.js +1 -1
- package/src/server/infrastructure/http/create-hosted-api-handler.js +5 -0
- package/src/server/infrastructure/http/create-request-handler.js +95 -26
- package/src/server/infrastructure/http/create-static-handler.js +3 -0
- package/src/server/infrastructure/http/create-vault-api-query-handler.js +15 -2
- package/src/server/infrastructure/mcp/create-agent-mcp-handler.js +2 -1
- package/src/server/infrastructure/persistence/sidecar-store.js +12 -5
- package/src/server/infrastructure/persistence/vault-file-store.js +2 -3
- package/src/server/infrastructure/websocket/attach-collaboration-gateway.js +48 -22
- package/src/server/shared/agent-tool-rate-limiter.js +7 -0
- package/src/server/startup/git-remote-bootstrap.js +56 -49
- package/src/server/vault-registry.js +251 -0
- package/dist/client/assets/CodeMirrorEditor-UCMRAMCV-C-nmgL5g.js +0 -1
- package/dist/client/assets/ar-SA-PQUY64WN-xjXgbW6d.js +0 -10
- package/dist/client/assets/az-AZ-OXJXL76K-4JkO4Pca.js +0 -1
- package/dist/client/assets/base-CaIEJUF9.css +0 -1
- package/dist/client/assets/bg-BG-W2GKIJDF-DnkH_o81.js +0 -5
- package/dist/client/assets/bn-BD-TGL7M4PJ-CG4JkmtP.js +0 -3
- package/dist/client/assets/bn-IN-BKETKYEH-CG4JkmtP.js +0 -3
- package/dist/client/assets/ca-ES-LD5SCRVV-U6_TVMX9.js +0 -8
- package/dist/client/assets/channel-Fa4GS_-F.js +0 -1
- package/dist/client/assets/chunk-2E4U76K2-BPnTT-J3.js +0 -2
- package/dist/client/assets/chunk-7XWMRXBY-CfMzEq80.js +0 -1
- package/dist/client/assets/chunk-RM4UPSZO-DOWllDY8.js +0 -41
- package/dist/client/assets/chunk-TLUHSLCS-DTY5v0aj.js +0 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-BsQWoR3Q.js +0 -1
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-BsQWoR3Q.js +0 -1
- package/dist/client/assets/comment-thread-store-CX98zR6q.js +0 -1
- package/dist/client/assets/comment-threads-BnRwo5B9.js +0 -4
- package/dist/client/assets/cs-CZ-OFPU5DBV-BmFAIhqX.js +0 -7
- package/dist/client/assets/da-DK-FRDJFYWF-H387Jw8B.js +0 -2
- package/dist/client/assets/de-CH-ZG7H3QK3-C_groygo.js +0 -11
- package/dist/client/assets/de-DE-SIJYH4IH-C_groygo.js +0 -11
- package/dist/client/assets/dist--hk9I5HQ.js +0 -1
- package/dist/client/assets/dist-B1XEa-Zs.js +0 -1
- package/dist/client/assets/dist-BJ1bJs33.js +0 -1
- package/dist/client/assets/dist-Bd1JucQF.js +0 -1
- package/dist/client/assets/dist-ByrG2qBA.js +0 -1
- package/dist/client/assets/dist-C0G3AaXG.js +0 -1
- package/dist/client/assets/dist-CKS_-are.js +0 -1
- package/dist/client/assets/dist-D37Hyu3h.js +0 -9
- package/dist/client/assets/dist-Dl_tpDSr.js +0 -1
- package/dist/client/assets/dist-Dm4w5UId.js +0 -1
- package/dist/client/assets/dist-RKBTaQMb.js +0 -13
- package/dist/client/assets/dist-eBx8q6Sy.js +0 -1
- package/dist/client/assets/dist-jVU5Be5P.js +0 -1
- package/dist/client/assets/document-formatter-rDDjRfZ2.js +0 -2
- package/dist/client/assets/drawioEditor-JubEEha7.js +0 -9
- package/dist/client/assets/editor-session-Bk6oIvSr.js +0 -54
- package/dist/client/assets/el-GR-IEE2CGI2-BkT6YT54.js +0 -7
- package/dist/client/assets/embedded-editor-base-BlCgz6mw.css +0 -1
- package/dist/client/assets/es-Bfdp096f.js +0 -22
- package/dist/client/assets/es-ES-TVVPWKV5-CpPKJXTM.js +0 -12
- package/dist/client/assets/eu-ES-CGBMFQDT-Bu3N2493.js +0 -8
- package/dist/client/assets/excalidraw-element-link-YLIaTnVF.js +0 -7
- package/dist/client/assets/excalidrawEditor-dBMbRX_S.js +0 -9
- package/dist/client/assets/export-page-CRRQ2NEl.js +0 -57
- package/dist/client/assets/exportDocument-BlQRd9_m.js +0 -2
- package/dist/client/assets/exportDocument-CNSbjZwu.css +0 -1
- package/dist/client/assets/fa-IR-IE6XAPR4-BEvLCORD.js +0 -9
- package/dist/client/assets/fi-FI-P7TKNHRM-DI0q8iSX.js +0 -6
- package/dist/client/assets/file-icon-svg-Y_kpF957.js +0 -1
- package/dist/client/assets/flowDiagram-HODETNUW-D5Gy0wmg.js +0 -1
- package/dist/client/assets/fr-FR-QI2XZNT7-y8kXd8LA.js +0 -12
- package/dist/client/assets/gl-ES-TLYCNOZZ-Br-Fhff-.js +0 -6
- package/dist/client/assets/he-IL-ZX43XLGP-qKQq6V9X.js +0 -9
- package/dist/client/assets/hi-IN-UTYRMTUF-DOUcwrDO.js +0 -3
- package/dist/client/assets/hu-HU-AJOSEBW6-FqTyvHlD.js +0 -3
- package/dist/client/assets/id-ID-ETLTVG6C-CQqh3CLS.js +0 -8
- package/dist/client/assets/image-ZVKINSPA-DgzW5zAy.js +0 -1
- package/dist/client/assets/index-D3RER1SZ.js +0 -1023
- package/dist/client/assets/index-DREVKl_K.css +0 -1
- package/dist/client/assets/it-IT-B4B6TP6L-V-yK3SZz.js +0 -12
- package/dist/client/assets/ja-JP-IYKVURR5-BQKBXRpX.js +0 -12
- package/dist/client/assets/kaa-SE2BUIKX-CZ5kfwPg.js +0 -1
- package/dist/client/assets/kab-KAB-Y3GLKXLR-Do7GWfuN.js +0 -4
- package/dist/client/assets/kk-KZ-ABWUFVOH-BpqVciQz.js +0 -1
- package/dist/client/assets/ko-KR-7JQDXKGM-N42lep78.js +0 -5
- package/dist/client/assets/ku-TR-NAH2Q5B7-K8LLl9fk.js +0 -6
- package/dist/client/assets/lt-LT-VQFYRSNQ-BmOd0ALn.js +0 -3
- package/dist/client/assets/lv-LV-T62VSYUM-B22WdPhp.js +0 -4
- package/dist/client/assets/mermaid-parser.core-Bl0efOMt.js +0 -4
- package/dist/client/assets/mermaid.core-DfcNfOTv.js +0 -1
- package/dist/client/assets/modulepreload-polyfill-P2Xu9kJm.js +0 -1
- package/dist/client/assets/mr-IN-V4FHLCJE-XX069tpm.js +0 -9
- package/dist/client/assets/my-MM-E3SQ6E54-cst_-5SB.js +0 -1
- package/dist/client/assets/nb-NO-MLNOFN5H-Bu2URWko.js +0 -8
- package/dist/client/assets/nl-NL-D5L3ZV4M-BqrV0btt.js +0 -13
- package/dist/client/assets/nn-NO-NNHDGPKB-DK-xZaWM.js +0 -4
- package/dist/client/assets/oc-FR-DWCRF55G-BZ5Po5R6.js +0 -4
- package/dist/client/assets/pa-IN-3JSAY44M-BZQSjKrS.js +0 -4
- package/dist/client/assets/percentages-ETZPVQEE-DFxFqXgH.js +0 -1
- package/dist/client/assets/pl-PL-ACURYKP3-qcEOSfCk.js +0 -12
- package/dist/client/assets/preload-helper-HclGiUj8.js +0 -1
- package/dist/client/assets/preview-render-compiler-CfxJYldJ.js +0 -41
- package/dist/client/assets/preview-render-compiler-Cu8_i9iS.js +0 -1
- package/dist/client/assets/preview-render-worker-c4Yi93qW.js +0 -66
- package/dist/client/assets/prod-BiJL30sl.js +0 -1
- package/dist/client/assets/prod-qAk7rHa4.js +0 -177
- package/dist/client/assets/pt-BR-LOX7MLGD-DLueHSyZ.js +0 -10
- package/dist/client/assets/pt-PT-CZ2U2RFQ-BJ-GAEm6.js +0 -12
- package/dist/client/assets/quick-switcher-controller-BoIK_wuG.js +0 -1
- package/dist/client/assets/ro-RO-2HECL2X6-CJUvKAf0.js +0 -12
- package/dist/client/assets/ru-RU-HAYNXO46-BWSlvTrt.js +0 -10
- package/dist/client/assets/runtime-config-DcmnGcXU.js +0 -1
- package/dist/client/assets/si-LK-W5KNS4H6-DGGCsn7k.js +0 -1
- package/dist/client/assets/sk-SK-7K2CFGDV-CY4uTYgQ.js +0 -7
- package/dist/client/assets/sl-SI-OXV2QZWW-2-weqaBY.js +0 -6
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-zoLLQVyh.js +0 -1
- package/dist/client/assets/sv-SE-JTOBZRGL-9-IUtVkO.js +0 -12
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-DS-KQN37.js +0 -8
- package/dist/client/assets/ta-IN-KFAVKXGT-gHO6Q_DH.js +0 -6
- package/dist/client/assets/th-TH-VDMSCPDL-BvJuw6PJ.js +0 -1
- package/dist/client/assets/tr-TR-CEZ6GX45-CG6UU3Su.js +0 -4
- package/dist/client/assets/uk-UA-Q3H3OXQC-CSuIg_DY.js +0 -6
- package/dist/client/assets/uz-UZ-NGCSWWPX-mom7rxSP.js +0 -1
- package/dist/client/assets/vault-api-client-iZLhMJKe.js +0 -6
- package/dist/client/assets/vi-VN-P3NDEVPS-BB0Fu9ck.js +0 -7
- package/dist/client/assets/yjs-provider-reset-guard-9ul1qF6k.js +0 -4
- package/dist/client/assets/zh-CN-SS3O57GA-Bj8wsiMe.js +0 -11
- package/dist/client/assets/zh-HK-LWJT3VCF-DOTquTCh.js +0 -1
- package/dist/client/assets/zh-TW-VJXC72RT-B48PRo-l.js +0 -13
- package/integrations/pi/index.ts +0 -94
- /package/dist/client/assets/{vault-api-client-C3mlS_4N.css → auth-gate-C3mlS_4N.css} +0 -0
- /package/dist/client/assets/{base-BYODPHdS.js → github.min-DBihDoic.js} +0 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { createFragment, escapeHtml } from '../domain/vault-utils.js';
|
|
2
|
+
|
|
3
|
+
export class HostedWorkspaceGateController {
|
|
4
|
+
constructor({ apiClient, appRoot = null, gate, runtimeConfig, teamSettingsController }) {
|
|
5
|
+
this.apiClient = apiClient;
|
|
6
|
+
this.appRoot = appRoot;
|
|
7
|
+
this.gate = gate;
|
|
8
|
+
this.content = gate?.querySelector('[data-hosted-gate-content]') ?? null;
|
|
9
|
+
this.teamSettingsController = teamSettingsController;
|
|
10
|
+
this.enabled = runtimeConfig.hosted?.enabled === true;
|
|
11
|
+
this.accessGrantedPromise = new Promise((resolve) => {
|
|
12
|
+
this.resolveAccessGranted = resolve;
|
|
13
|
+
});
|
|
14
|
+
this.gate?.addEventListener('click', (event) => void this.handleClick(event));
|
|
15
|
+
this.gate?.addEventListener('submit', (event) => void this.handleSubmit(event));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async initialize() {
|
|
19
|
+
if (!this.enabled) {
|
|
20
|
+
this.hide();
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
await this.refresh();
|
|
24
|
+
await this.accessGrantedPromise;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
async refresh() {
|
|
28
|
+
this.show('Loading workspace…');
|
|
29
|
+
let status;
|
|
30
|
+
try {
|
|
31
|
+
status = await this.apiClient.getStatus();
|
|
32
|
+
} catch (error) {
|
|
33
|
+
if (error.status === 401 || error.code === 'HOSTED_AUTH_REQUIRED') {
|
|
34
|
+
this.show('Sign in to access this workspace.', { title: 'Sign-in required' });
|
|
35
|
+
} else {
|
|
36
|
+
this.show(error.message || 'Failed to load workspace status.', { error: true, title: 'Workspace unavailable' });
|
|
37
|
+
}
|
|
38
|
+
this.teamSettingsController?.setTriggerVisible(false);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
this.applyStatus(status);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
applyStatus(status) {
|
|
45
|
+
const membership = status.membership ?? null;
|
|
46
|
+
const isAdmin = membership?.role === 'admin';
|
|
47
|
+
this.teamSettingsController?.setTriggerVisible(Boolean(isAdmin && status.setupComplete));
|
|
48
|
+
if (!status.claimed) {
|
|
49
|
+
this.renderClaim();
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (!status.setupComplete) {
|
|
53
|
+
if (isAdmin) {
|
|
54
|
+
this.renderSetup(status);
|
|
55
|
+
} else {
|
|
56
|
+
this.show('Workspace setup is incomplete. Ask a Team Admin to finish setup.', { title: status.team?.name || 'Workspace setup' });
|
|
57
|
+
}
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (!membership) {
|
|
61
|
+
this.renderAccept(status);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
this.hide();
|
|
65
|
+
this.resolveAccessGranted();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
hide() {
|
|
69
|
+
this.gate?.classList.add('hidden');
|
|
70
|
+
this.content?.replaceChildren();
|
|
71
|
+
if (this.appRoot) this.appRoot.inert = false;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
reveal() {
|
|
75
|
+
if (!this.gate) return;
|
|
76
|
+
this.gate.classList.remove('hidden');
|
|
77
|
+
if (this.appRoot) this.appRoot.inert = true;
|
|
78
|
+
this.content?.querySelector('button, input, select')?.focus?.();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
render(markup) {
|
|
82
|
+
if (!this.gate || !this.content) return;
|
|
83
|
+
this.content.replaceChildren(createFragment(markup));
|
|
84
|
+
this.reveal();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
show(message, { error = false, title = 'Workspace' } = {}) {
|
|
88
|
+
this.render(`
|
|
89
|
+
<h2 class="hosted-gate-title" id="hostedGateTitle">${escapeHtml(title)}</h2>
|
|
90
|
+
<p class="hosted-gate-status${error ? ' is-error' : ''}" role="status">${escapeHtml(message)}</p>
|
|
91
|
+
`);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
renderClaim() {
|
|
95
|
+
this.render(`
|
|
96
|
+
<h2 class="hosted-gate-title" id="hostedGateTitle">Claim this workspace</h2>
|
|
97
|
+
<p class="hosted-gate-copy">Enter the team name and the one-time claim token from provisioning to become the first Team Admin.</p>
|
|
98
|
+
<form class="hosted-gate-form" data-claim-form>
|
|
99
|
+
<label class="app-dialog-field">
|
|
100
|
+
<span class="app-dialog-label">Team name</span>
|
|
101
|
+
<input class="ui-input" name="teamName" maxlength="80" autocomplete="off" spellcheck="false" required>
|
|
102
|
+
</label>
|
|
103
|
+
<label class="app-dialog-field">
|
|
104
|
+
<span class="app-dialog-label">Claim token</span>
|
|
105
|
+
<input class="ui-input" name="token" type="password" autocomplete="off" spellcheck="false" required>
|
|
106
|
+
</label>
|
|
107
|
+
<button class="ui-button ui-button--primary" type="submit">Claim workspace</button>
|
|
108
|
+
</form>
|
|
109
|
+
<p class="hosted-gate-live" role="status" aria-live="polite"></p>
|
|
110
|
+
`);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
renderSetup(status) {
|
|
114
|
+
this.render(`
|
|
115
|
+
<h2 class="hosted-gate-title" id="hostedGateTitle">${escapeHtml(status.team?.name || 'Workspace setup')}</h2>
|
|
116
|
+
<p class="hosted-gate-copy">Workspace setup is not complete. The editor and invitations stay unavailable until setup is done. Connecting a GitHub vault source comes later; for now, completing setup unlocks team management.</p>
|
|
117
|
+
<button class="ui-button ui-button--primary" type="button" data-complete-setup>Complete setup</button>
|
|
118
|
+
<p class="hosted-gate-live" role="status" aria-live="polite"></p>
|
|
119
|
+
`);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
renderAccept(status) {
|
|
123
|
+
this.render(`
|
|
124
|
+
<h2 class="hosted-gate-title" id="hostedGateTitle">${escapeHtml(status.team?.name || 'Workspace')}</h2>
|
|
125
|
+
<p class="hosted-gate-copy">You are signed in but not a team member yet. If a Team Admin invited your Google email, accept below to join.</p>
|
|
126
|
+
<button class="ui-button ui-button--primary" type="button" data-accept-invitation>Accept invitation</button>
|
|
127
|
+
<p class="hosted-gate-live" role="status" aria-live="polite"></p>
|
|
128
|
+
`);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
setLiveMessage(message) {
|
|
132
|
+
const live = this.content?.querySelector('.hosted-gate-live');
|
|
133
|
+
if (live) live.textContent = message;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
async handleClick(event) {
|
|
137
|
+
const target = event.target.closest('button');
|
|
138
|
+
if (!target) return;
|
|
139
|
+
if (target.dataset.completeSetup != null) {
|
|
140
|
+
target.disabled = true;
|
|
141
|
+
try {
|
|
142
|
+
await this.apiClient.completeSetup();
|
|
143
|
+
await this.refresh();
|
|
144
|
+
} catch (error) {
|
|
145
|
+
this.setLiveMessage(error.message || 'Failed to complete setup');
|
|
146
|
+
target.disabled = false;
|
|
147
|
+
}
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
if (target.dataset.acceptInvitation != null) {
|
|
151
|
+
target.disabled = true;
|
|
152
|
+
try {
|
|
153
|
+
await this.apiClient.acceptInvitation();
|
|
154
|
+
await this.refresh();
|
|
155
|
+
} catch (error) {
|
|
156
|
+
this.setLiveMessage(error.message || 'No pending invitation was found for your account.');
|
|
157
|
+
target.disabled = false;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
async handleSubmit(event) {
|
|
163
|
+
const form = event.target.closest('[data-claim-form]');
|
|
164
|
+
if (!form) return;
|
|
165
|
+
event.preventDefault();
|
|
166
|
+
const data = new FormData(form);
|
|
167
|
+
const submit = form.querySelector('[type="submit"]');
|
|
168
|
+
submit.disabled = true;
|
|
169
|
+
try {
|
|
170
|
+
await this.apiClient.claimWorkspace({
|
|
171
|
+
teamName: String(data.get('teamName') ?? '').trim(),
|
|
172
|
+
token: String(data.get('token') ?? ''),
|
|
173
|
+
});
|
|
174
|
+
await this.refresh();
|
|
175
|
+
} catch (error) {
|
|
176
|
+
this.setLiveMessage(error.message || 'Failed to claim workspace');
|
|
177
|
+
submit.disabled = false;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
@@ -2,12 +2,19 @@ export class LayoutController {
|
|
|
2
2
|
constructor({
|
|
3
3
|
mobileBreakpointQuery = window.matchMedia('(max-width: 768px)'),
|
|
4
4
|
onMeasureEditor,
|
|
5
|
+
onPreferredViewChange = null,
|
|
6
|
+
onViewChange = null,
|
|
5
7
|
onViewRequest = null,
|
|
8
|
+
preferredView = 'split',
|
|
6
9
|
}) {
|
|
7
10
|
this.mobileBreakpointQuery = mobileBreakpointQuery;
|
|
8
11
|
this.onMeasureEditor = onMeasureEditor;
|
|
12
|
+
this.onPreferredViewChange = onPreferredViewChange;
|
|
13
|
+
this.onViewChange = onViewChange;
|
|
9
14
|
this.onViewRequest = onViewRequest;
|
|
10
|
-
this.preferredView = 'split'
|
|
15
|
+
this.preferredView = preferredView === 'editor' || preferredView === 'preview' || preferredView === 'split'
|
|
16
|
+
? preferredView
|
|
17
|
+
: 'split';
|
|
11
18
|
this.mobileShowsEditor = !this.isMobileViewport();
|
|
12
19
|
this.currentView = this.mobileShowsEditor ? this.preferredView : 'preview';
|
|
13
20
|
this.editorLayout = document.getElementById('editorLayout');
|
|
@@ -78,6 +85,7 @@ export class LayoutController {
|
|
|
78
85
|
this.currentView = view;
|
|
79
86
|
this.editorLayout?.setAttribute('data-view', view);
|
|
80
87
|
this.syncViewButtons();
|
|
88
|
+
this.onViewChange?.(view);
|
|
81
89
|
}
|
|
82
90
|
|
|
83
91
|
setView(view, { persist = true } = {}) {
|
|
@@ -87,6 +95,7 @@ export class LayoutController {
|
|
|
87
95
|
|
|
88
96
|
if (persist) {
|
|
89
97
|
this.preferredView = view;
|
|
98
|
+
this.onPreferredViewChange?.(view);
|
|
90
99
|
}
|
|
91
100
|
|
|
92
101
|
this.applyView(view);
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { createFragment, escapeHtml } from '../domain/vault-utils.js';
|
|
2
|
+
|
|
3
|
+
function formatDate(value) {
|
|
4
|
+
return value ? new Date(value).toLocaleString() : '—';
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function roleOptions(currentRole) {
|
|
8
|
+
return ['collaborator', 'admin'].map((role) => (
|
|
9
|
+
`<option value="${role}"${role === currentRole ? ' selected' : ''}>${role === 'admin' ? 'Admin' : 'Collaborator'}</option>`
|
|
10
|
+
)).join('');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class TeamSettingsController {
|
|
14
|
+
constructor({ apiClient, closeToolbarMenu, content, dialog, toastController, trigger }) {
|
|
15
|
+
this.apiClient = apiClient;
|
|
16
|
+
this.closeToolbarMenu = closeToolbarMenu;
|
|
17
|
+
this.content = content;
|
|
18
|
+
this.dialog = dialog;
|
|
19
|
+
this.toastController = toastController;
|
|
20
|
+
this.trigger = trigger;
|
|
21
|
+
this.trigger?.classList.add('hidden');
|
|
22
|
+
this.trigger?.addEventListener('click', () => void this.open());
|
|
23
|
+
this.dialog?.addEventListener('close', () => {
|
|
24
|
+
this.content?.replaceChildren();
|
|
25
|
+
this.trigger?.focus?.();
|
|
26
|
+
});
|
|
27
|
+
this.dialog?.addEventListener('click', (event) => void this.handleClick(event));
|
|
28
|
+
this.dialog?.addEventListener('submit', (event) => void this.handleSubmit(event));
|
|
29
|
+
this.dialog?.addEventListener('change', (event) => void this.handleChange(event));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
setTriggerVisible(visible) {
|
|
33
|
+
this.trigger?.classList.toggle('hidden', !visible);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async open() {
|
|
37
|
+
this.closeToolbarMenu?.();
|
|
38
|
+
this.dialog?.showModal?.();
|
|
39
|
+
this.renderStatus('Loading team settings…');
|
|
40
|
+
await this.refresh();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async loadOverview() {
|
|
44
|
+
const [membershipsResult, invitationsResult, auditResult] = await Promise.all([
|
|
45
|
+
this.apiClient.listMemberships(),
|
|
46
|
+
this.apiClient.listInvitations(),
|
|
47
|
+
this.apiClient.listAuditEvents(),
|
|
48
|
+
]);
|
|
49
|
+
this.renderOverview({
|
|
50
|
+
auditEvents: auditResult.events ?? [],
|
|
51
|
+
invitations: invitationsResult.invitations ?? [],
|
|
52
|
+
memberships: membershipsResult.memberships ?? [],
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
renderStatus(message, { error = false } = {}) {
|
|
57
|
+
if (!this.content) return;
|
|
58
|
+
this.content.replaceChildren(createFragment(`<p class="team-settings-status${error ? ' is-error' : ''}" role="status">${escapeHtml(message)}</p>`));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
renderOverview({ auditEvents = [], invitations = [], memberships = [] }) {
|
|
62
|
+
if (!this.content) return;
|
|
63
|
+
const memberMarkup = memberships.length > 0
|
|
64
|
+
? memberships.map((membership) => `
|
|
65
|
+
<li class="team-settings-row">
|
|
66
|
+
<div class="team-settings-row-main">
|
|
67
|
+
<strong>${escapeHtml(membership.name || membership.email)}</strong>
|
|
68
|
+
<span>${escapeHtml(membership.email)}</span>
|
|
69
|
+
<small>Joined ${formatDate(membership.joinedAt)}</small>
|
|
70
|
+
</div>
|
|
71
|
+
<label class="team-settings-row-role">Role
|
|
72
|
+
<select class="ui-input ui-input--compact" data-membership-role="${escapeHtml(membership.id)}">
|
|
73
|
+
${roleOptions(membership.role)}
|
|
74
|
+
</select>
|
|
75
|
+
</label>
|
|
76
|
+
<button class="ui-button ui-button--secondary ui-button--compact" type="button" data-membership-remove="${escapeHtml(membership.id)}" data-membership-email="${escapeHtml(membership.email)}">Remove</button>
|
|
77
|
+
</li>`).join('')
|
|
78
|
+
: '<p class="team-settings-empty">No collaborators yet.</p>';
|
|
79
|
+
const invitationMarkup = invitations.length > 0
|
|
80
|
+
? invitations.map((invitation) => `
|
|
81
|
+
<li class="team-settings-row">
|
|
82
|
+
<div class="team-settings-row-main">
|
|
83
|
+
<strong>${escapeHtml(invitation.email)}</strong>
|
|
84
|
+
<span>Invited by ${escapeHtml(invitation.invitedByName || invitation.invitedByEmail)}</span>
|
|
85
|
+
<small>Expires ${formatDate(invitation.expiresAt)}</small>
|
|
86
|
+
</div>
|
|
87
|
+
<label class="team-settings-row-role">Role
|
|
88
|
+
<select class="ui-input ui-input--compact" data-invitation-role="${escapeHtml(invitation.id)}">
|
|
89
|
+
${roleOptions(invitation.role)}
|
|
90
|
+
</select>
|
|
91
|
+
</label>
|
|
92
|
+
<button class="ui-button ui-button--secondary ui-button--compact" type="button" data-invitation-revoke="${escapeHtml(invitation.id)}" data-invitation-email="${escapeHtml(invitation.email)}">Revoke</button>
|
|
93
|
+
</li>`).join('')
|
|
94
|
+
: '<p class="team-settings-empty">No pending invitations.</p>';
|
|
95
|
+
const auditMarkup = auditEvents.length > 0
|
|
96
|
+
? auditEvents.map((event) => `
|
|
97
|
+
<li class="team-settings-row team-settings-row--audit">
|
|
98
|
+
<div class="team-settings-row-main">
|
|
99
|
+
<strong>${escapeHtml(event.type)}</strong>
|
|
100
|
+
<span>${escapeHtml(event.targetEmail || '')}${event.targetRole ? ` · ${escapeHtml(event.targetRole)}` : ''}</span>
|
|
101
|
+
<small>By ${escapeHtml(event.actorName || event.actorEmail)} · ${formatDate(event.createdAt)}</small>
|
|
102
|
+
</div>
|
|
103
|
+
</li>`).join('')
|
|
104
|
+
: '<p class="team-settings-empty">No access history yet.</p>';
|
|
105
|
+
this.content.replaceChildren(createFragment(`
|
|
106
|
+
<section class="team-settings-section">
|
|
107
|
+
<h3>Collaborators</h3>
|
|
108
|
+
<ul class="team-settings-list">${memberMarkup}</ul>
|
|
109
|
+
</section>
|
|
110
|
+
<section class="team-settings-section">
|
|
111
|
+
<h3>Pending invitations</h3>
|
|
112
|
+
<ul class="team-settings-list">${invitationMarkup}</ul>
|
|
113
|
+
<form class="team-settings-invite-form" data-invite-form>
|
|
114
|
+
<label class="app-dialog-field">
|
|
115
|
+
<span class="app-dialog-label">Email</span>
|
|
116
|
+
<input class="ui-input" name="email" type="email" maxlength="254" autocomplete="off" spellcheck="false" required placeholder="teammate@example.com">
|
|
117
|
+
</label>
|
|
118
|
+
<label class="app-dialog-field">
|
|
119
|
+
<span class="app-dialog-label">Role</span>
|
|
120
|
+
<select class="ui-input" name="role">
|
|
121
|
+
<option value="collaborator">Collaborator</option>
|
|
122
|
+
<option value="admin">Admin</option>
|
|
123
|
+
</select>
|
|
124
|
+
</label>
|
|
125
|
+
<button class="ui-button ui-button--primary" type="submit">Invite</button>
|
|
126
|
+
</form>
|
|
127
|
+
<p class="team-settings-note">Share this workspace URL with the invited person. They sign in with the matching Google email, then accept the invitation. Email delivery is not set up yet.</p>
|
|
128
|
+
</section>
|
|
129
|
+
<section class="team-settings-section">
|
|
130
|
+
<h3>Access history</h3>
|
|
131
|
+
<ul class="team-settings-list team-settings-list--audit">${auditMarkup}</ul>
|
|
132
|
+
</section>
|
|
133
|
+
<div class="team-settings-actions">
|
|
134
|
+
<button class="ui-button ui-button--ghost" type="button" data-team-close>Close</button>
|
|
135
|
+
</div>
|
|
136
|
+
<p class="team-settings-live" role="status" aria-live="polite"></p>
|
|
137
|
+
`));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
setLiveMessage(message) {
|
|
141
|
+
const live = this.content?.querySelector('.team-settings-live');
|
|
142
|
+
if (live) live.textContent = message;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
async refresh() {
|
|
146
|
+
try {
|
|
147
|
+
await this.loadOverview();
|
|
148
|
+
} catch (error) {
|
|
149
|
+
this.renderStatus(error.message || 'Failed to load team settings', { error: true });
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
async handleClick(event) {
|
|
154
|
+
const target = event.target.closest('button');
|
|
155
|
+
if (!target) return;
|
|
156
|
+
if (target.dataset.teamClose != null) {
|
|
157
|
+
this.dialog.close();
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (target.dataset.membershipRemove) {
|
|
161
|
+
if (!window.confirm(`Remove ${target.dataset.membershipEmail} from the team? They lose workspace access immediately.`)) return;
|
|
162
|
+
try {
|
|
163
|
+
await this.apiClient.removeMembership(target.dataset.membershipRemove);
|
|
164
|
+
await this.refresh();
|
|
165
|
+
this.setLiveMessage('Collaborator removed');
|
|
166
|
+
} catch (error) {
|
|
167
|
+
this.toastController?.show(error.message || 'Failed to remove collaborator');
|
|
168
|
+
}
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
if (target.dataset.invitationRevoke) {
|
|
172
|
+
if (!window.confirm(`Revoke the invitation for ${target.dataset.invitationEmail}?`)) return;
|
|
173
|
+
try {
|
|
174
|
+
await this.apiClient.revokeInvitation(target.dataset.invitationRevoke);
|
|
175
|
+
await this.refresh();
|
|
176
|
+
this.setLiveMessage('Invitation revoked');
|
|
177
|
+
} catch (error) {
|
|
178
|
+
this.toastController?.show(error.message || 'Failed to revoke invitation');
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
async handleChange(event) {
|
|
184
|
+
const membershipSelect = event.target.closest('[data-membership-role]');
|
|
185
|
+
if (membershipSelect) {
|
|
186
|
+
try {
|
|
187
|
+
await this.apiClient.updateMembershipRole(membershipSelect.dataset.membershipRole, membershipSelect.value);
|
|
188
|
+
await this.refresh();
|
|
189
|
+
this.setLiveMessage('Role updated');
|
|
190
|
+
} catch (error) {
|
|
191
|
+
this.toastController?.show(error.message || 'Failed to update role');
|
|
192
|
+
await this.refresh();
|
|
193
|
+
}
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
const invitationSelect = event.target.closest('[data-invitation-role]');
|
|
197
|
+
if (invitationSelect) {
|
|
198
|
+
try {
|
|
199
|
+
await this.apiClient.updateInvitationRole(invitationSelect.dataset.invitationRole, invitationSelect.value);
|
|
200
|
+
await this.refresh();
|
|
201
|
+
this.setLiveMessage('Invitation role updated');
|
|
202
|
+
} catch (error) {
|
|
203
|
+
this.toastController?.show(error.message || 'Failed to update invitation');
|
|
204
|
+
await this.refresh();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
async handleSubmit(event) {
|
|
210
|
+
const form = event.target.closest('[data-invite-form]');
|
|
211
|
+
if (!form) return;
|
|
212
|
+
event.preventDefault();
|
|
213
|
+
const data = new FormData(form);
|
|
214
|
+
const submit = form.querySelector('[type="submit"]');
|
|
215
|
+
submit.disabled = true;
|
|
216
|
+
try {
|
|
217
|
+
await this.apiClient.createInvitation({
|
|
218
|
+
email: String(data.get('email') ?? '').trim(),
|
|
219
|
+
role: data.get('role'),
|
|
220
|
+
});
|
|
221
|
+
await this.refresh();
|
|
222
|
+
this.setLiveMessage('Invitation created — share the workspace URL with the invited person.');
|
|
223
|
+
} catch (error) {
|
|
224
|
+
this.setLiveMessage(error.message || 'Failed to create invitation');
|
|
225
|
+
submit.disabled = false;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@import './features/git-branch.css';
|
|
2
|
+
@import './features/git-files.css';
|
|
3
|
+
@import './features/git-history.css';
|
|
4
|
+
@import './features/diff-toolbar.css';
|
|
5
|
+
@import './features/diff-commit.css';
|
|
6
|
+
@import './features/diff-lines.css';
|
|
7
|
+
@import './features/diff-special.css';
|
|
@@ -520,21 +520,6 @@ body.excalidraw-maximized-open .resizer {
|
|
|
520
520
|
opacity: 1;
|
|
521
521
|
}
|
|
522
522
|
|
|
523
|
-
.file-tree-file.is-excalidraw .file-tree-icon {
|
|
524
|
-
color: var(--color-primary);
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
.file-tree-file.is-pdf .file-tree-icon {
|
|
528
|
-
color: var(--color-danger);
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
.file-tree-file.is-mermaid .file-tree-icon {
|
|
532
|
-
color: oklch(from var(--color-primary) calc(l * 0.96) calc(c * 0.86) 215);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
.file-tree-file.is-structurizr .file-tree-icon {
|
|
536
|
-
color: var(--color-primary);
|
|
537
|
-
}
|
|
538
523
|
|
|
539
524
|
.structurizr-preview-shell {
|
|
540
525
|
display: flex;
|
|
@@ -13,6 +13,25 @@
|
|
|
13
13
|
line-height: 1.7;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.preview-content > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, pre, blockquote, table, .table-wrapper, .frontmatter-block) {
|
|
17
|
+
content-visibility: auto;
|
|
18
|
+
contain-intrinsic-size: auto 4rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.preview-content img {
|
|
22
|
+
content-visibility: auto;
|
|
23
|
+
contain-intrinsic-size: auto 240px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.preview-content > pre,
|
|
27
|
+
.preview-content > table,
|
|
28
|
+
.preview-content > .table-wrapper {
|
|
29
|
+
contain-intrinsic-size: auto 12rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
16
35
|
.preview-content[data-render-phase='shell'] {
|
|
17
36
|
color: var(--color-text-muted);
|
|
18
37
|
}
|
|
@@ -1047,6 +1066,10 @@
|
|
|
1047
1066
|
position: relative;
|
|
1048
1067
|
}
|
|
1049
1068
|
|
|
1069
|
+
.preview-content .task-list-label {
|
|
1070
|
+
cursor: pointer;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1050
1073
|
.preview-content .task-list-item input[type='checkbox'] {
|
|
1051
1074
|
position: absolute;
|
|
1052
1075
|
top: 0.5em;
|
|
@@ -1104,20 +1127,11 @@
|
|
|
1104
1127
|
overflow-wrap: normal;
|
|
1105
1128
|
}
|
|
1106
1129
|
|
|
1107
|
-
.preview-content .preview-code-
|
|
1108
|
-
position: relative;
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
.preview-content .preview-code-block pre code {
|
|
1130
|
+
.preview-content pre:has(> .preview-code-copy-button) > code {
|
|
1112
1131
|
padding-right: 84px;
|
|
1113
1132
|
}
|
|
1114
1133
|
|
|
1115
|
-
|
|
1116
|
-
position: sticky;
|
|
1117
|
-
top: 0;
|
|
1118
|
-
z-index: 2;
|
|
1119
|
-
height: 0;
|
|
1120
|
-
}
|
|
1134
|
+
|
|
1121
1135
|
|
|
1122
1136
|
.preview-content .preview-code-copy-button {
|
|
1123
1137
|
position: absolute;
|