@pi-outpost/embed 0.32.4 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{abnfDiagram-VCTEODGH-SjZtzoAs.cjs → abnfDiagram-YUKMZFIV-CgM8_qF6.cjs} +1 -1
- package/dist/{abnfDiagram-VCTEODGH-BX4P82Y6.js → abnfDiagram-YUKMZFIV-dNHR2FX4.js} +5 -5
- package/dist/architecture-WOLXFQ4H-DupyKILn.cjs +1 -0
- package/dist/architecture-WOLXFQ4H-X4ZWxzi-.js +3 -0
- package/dist/{architectureDiagram-5GKGNRK7-BRdxCCja.js → architectureDiagram-47P4ROYG-C_rUoWaO.js} +31 -31
- package/dist/{architectureDiagram-5GKGNRK7-wrDPdf3y.cjs → architectureDiagram-47P4ROYG-bflaQP1L.cjs} +3 -3
- package/dist/{blockDiagram-OSKFZWR5-Boo8WJyt.cjs → blockDiagram-E7TT5TSB-BKw9FE2U.cjs} +19 -8
- package/dist/{blockDiagram-OSKFZWR5-B1pU8Z2f.js → blockDiagram-E7TT5TSB-CEa2A5E9.js} +217 -193
- package/dist/c4Diagram-CRA5TL53-C-PuMGA5.cjs +38 -0
- package/dist/{c4Diagram-7LVT6UL2-WfERxhw2.js → c4Diagram-CRA5TL53-CtJh9DsO.js} +283 -273
- package/dist/channel-BjC1TKrU.cjs +1 -0
- package/dist/{channel-Cf_XiG-0.js → channel-DCXZw5aW.js} +1 -1
- package/dist/{chunk-OSK3NFVY-BUXOUgUl.js → chunk-2BW5OAIV-DWtmlmt_.js} +178 -154
- package/dist/chunk-2BW5OAIV-FkhgcL6B.cjs +10 -0
- package/dist/{chunk-75Z2AOVW-DoA8rENV.js → chunk-3YJQHVM4-BNbfg-7y.js} +235 -231
- package/dist/chunk-3YJQHVM4-ChvNe1M8.cjs +2 -0
- package/dist/chunk-4EA7E6EY-3OELTJ93.cjs +1 -0
- package/dist/{chunk-P2QGCYS3-BoMkrMIF.js → chunk-4EA7E6EY-B5P7n2an.js} +6 -6
- package/dist/{chunk-F27PBJKO-s9M3oGHp.js → chunk-7TKQ45FW-CD1KuemG.js} +2 -2
- package/dist/{chunk-F27PBJKO-3UPgzIlN.cjs → chunk-7TKQ45FW-Djscho_M.cjs} +1 -1
- package/dist/{chunk-SVP7TREG-CTKSOFlx.cjs → chunk-AW2ZBBNX-C4uNh90t.cjs} +3 -3
- package/dist/{chunk-SVP7TREG-weNUySou.js → chunk-AW2ZBBNX-CVsDDdv5.js} +33 -33
- package/dist/{chunk-GVQU2GXP-iZT_vNLp.cjs → chunk-DBDB3WZW-DSRcln4l.cjs} +1 -1
- package/dist/{chunk-GVQU2GXP-BhLneNgJ.js → chunk-DBDB3WZW-DpEOsLsQ.js} +3 -3
- package/dist/chunk-DUW6YSOI-2RXTEh_8.cjs +1 -0
- package/dist/chunk-DUW6YSOI-CVhxvrBO.js +10 -0
- package/dist/{chunk-GMAD6QVW-DZ2r0pLj.js → chunk-E2ZNV5FY-Bu796yUY.js} +354 -361
- package/dist/chunk-E2ZNV5FY-DIRTchKA.cjs +72 -0
- package/dist/chunk-EU5HNXII-DNBbmfcI.cjs +213 -0
- package/dist/{chunk-3NF5O7KM-DQV4G__C.js → chunk-EU5HNXII-DW-QTb0f.js} +426 -357
- package/dist/chunk-FVRAUYC3-Crqd-lTD.cjs +1 -0
- package/dist/chunk-FVRAUYC3-tiT7dtx-.js +356 -0
- package/dist/{chunk-PWAF6VOD-9dCi1q-p.js → chunk-HJ2JQQFS-CgYTXthn.js} +2 -2
- package/dist/{chunk-PWAF6VOD-CZZKCekP.cjs → chunk-HJ2JQQFS-DnrogIdt.cjs} +1 -1
- package/dist/chunk-HTAEGDNF-D4u24-lD.js +236 -0
- package/dist/chunk-HTAEGDNF-I4JlqwMr.cjs +1 -0
- package/dist/chunk-J5ZVWO5B-CK5HGA-t.cjs +1 -0
- package/dist/chunk-J5ZVWO5B-DEP-pB-1.js +12 -0
- package/dist/{chunk-POPQ4Y6H-BRQPB1-9.cjs → chunk-KQW6MTUR-C_XQxsme.cjs} +1 -1
- package/dist/{chunk-POPQ4Y6H-vLTNjxsT.js → chunk-KQW6MTUR-c0XOjr_c.js} +2 -2
- package/dist/chunk-NGNAAXSQ-DM0DL2MX.js +19836 -0
- package/dist/chunk-NGNAAXSQ-kHtfTQLE.cjs +136 -0
- package/dist/chunk-NTY3LDVX-CvRtOCpm.js +363 -0
- package/dist/chunk-NTY3LDVX-DBVRlnMJ.cjs +1 -0
- package/dist/chunk-VPRB5NB3-CT204jN6.cjs +129 -0
- package/dist/{chunk-DU6HZSFF-BW30DVuW.js → chunk-VPRB5NB3-DJh7spRO.js} +791 -611
- package/dist/chunk-XC4XBNZT-BTUjiQhE.cjs +62 -0
- package/dist/{chunk-4HAMMTFA-C2YXJpQw.js → chunk-XC4XBNZT-CSiWBPH9.js} +1378 -1079
- package/dist/classDiagram-v2-K4WV4PDN-BndXIwai.cjs +217 -0
- package/dist/{chunk-HLEWEB6X-BrzeadBj.js → classDiagram-v2-K4WV4PDN-C39xKke0.js} +254 -214
- package/dist/{conversationExport-QWEGKkKB.js → conversationExport-0aa7tXBv.js} +2 -2
- package/dist/{conversationExport-D2ekPeYe.cjs → conversationExport-BVHvnvh5.cjs} +1 -1
- package/dist/conversationHistory-CNfOwM8H.cjs +287 -0
- package/dist/{conversationHistory-BylZCAb1.js → conversationHistory-D-hT7EvD.js} +9066 -6513
- package/dist/cynefin-EF2NZ3EQ-BB_WO8YQ.js +3 -0
- package/dist/cynefin-EF2NZ3EQ-Du3-s5Z7.cjs +1 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-GvGZco52.cjs → cynefinDiagram-3GCD6N5R-Bmvj-sQO.cjs} +1 -1
- package/dist/{cynefinDiagram-5FMLGOSQ-BEFzUfsd.js → cynefinDiagram-3GCD6N5R-C2CRSeJl.js} +14 -14
- package/dist/dagre-W4DXFKR2-ECmxkO0T.js +2356 -0
- package/dist/dagre-W4DXFKR2-aPKdYPEj.cjs +4 -0
- package/dist/diagram-2UJZ2QOL-B1JKtFHG.cjs +200 -0
- package/dist/diagram-2UJZ2QOL-CJRsGDwn.js +5081 -0
- package/dist/{diagram-VX7I27RA-Bx9fEhR0.cjs → diagram-OVF4WLC6-CwZeVpHT.cjs} +1 -1
- package/dist/{diagram-VX7I27RA-BK8jsKkD.js → diagram-OVF4WLC6-D6r6aTeO.js} +61 -61
- package/dist/{diagram-S7CK7UJ4-BH8mrGrv.js → diagram-PFPMY2P6-BpOJbdZ5.js} +15 -15
- package/dist/{diagram-S7CK7UJ4-BA67ZpiO.cjs → diagram-PFPMY2P6-DlLbGc_k.cjs} +3 -3
- package/dist/{diagram-Z3DM3KII-jy895UiZ.cjs → diagram-UMYRVEAY-BE-t_ZdV.cjs} +1 -1
- package/dist/{diagram-Z3DM3KII-CqouFf3D.js → diagram-UMYRVEAY-blW7NpUU.js} +14 -14
- package/dist/{diagram-UQ7AKVKN-Bvz7faiB.js → diagram-YEKJPTXX-BOgf87BN.js} +15 -15
- package/dist/{diagram-UQ7AKVKN-OteiyKD9.cjs → diagram-YEKJPTXX-CeQjir5H.cjs} +2 -2
- package/dist/diagram-ZIFT7M5P-BHePHmHl.cjs +3 -0
- package/dist/{diagram-VSXAHHWV-l9f6spkp.js → diagram-ZIFT7M5P-CZOnEYez.js} +40 -25
- package/dist/{docxExport-DK8uhXvT.js → docxExport-Cyk5ToUi.js} +1 -1
- package/dist/{docxExport-Dt55TJ2h.cjs → docxExport-DF-PXilo.cjs} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-Bwmmg23f.js → ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js} +5 -5
- package/dist/{ebnfDiagram-PWID7BFC-BQZKHpUr.cjs → ebnfDiagram-VR2GEFS7-cgyTJ-Xs.cjs} +1 -1
- package/dist/elk-IJKZMXRS-NO3xNT-V.cjs +27 -0
- package/dist/elk-IJKZMXRS-V31is6hS.js +47984 -0
- package/dist/{erDiagram-2YWLMYGG-RTHTTqyH.js → erDiagram-O2IAPWRE-CP06GjjM.js} +60 -56
- package/dist/{erDiagram-2YWLMYGG-CuEEIv1I.cjs → erDiagram-O2IAPWRE-CnkFrABC.cjs} +13 -13
- package/dist/eventmodeling-K75KTNOO-CMoz0K5S.js +3 -0
- package/dist/eventmodeling-K75KTNOO-DZdZrgwl.cjs +1 -0
- package/dist/flowDiagram-OXPTDLAJ-BdYr7Idm.cjs +1 -0
- package/dist/flowDiagram-OXPTDLAJ-R_xf7pNW.js +16 -0
- package/dist/{ganttDiagram-EL5Y4UJY-PTWIufq8.cjs → ganttDiagram-R7TSEDQI-Jhax10tw.cjs} +3 -3
- package/dist/{ganttDiagram-EL5Y4UJY-BTvevd1z.js → ganttDiagram-R7TSEDQI-y1bDU8Ba.js} +103 -92
- package/dist/gitGraph-VSP46ZUC-DoTshgkY.js +3 -0
- package/dist/gitGraph-VSP46ZUC-lawIO6K6.cjs +1 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs → gitGraphDiagram-XJZIOB7I-CLZLQcPk.cjs} +5 -5
- package/dist/{gitGraphDiagram-WWUBYQGX-Bh9F7wif.js → gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js} +45 -45
- package/dist/info-OHQRW6UA-DPTZOb30.js +3 -0
- package/dist/info-OHQRW6UA-deop1PPz.cjs +1 -0
- package/dist/infoDiagram-5W2HQ5XZ-D8fJK3ph.cjs +2 -0
- package/dist/{infoDiagram-FKFFQAWI-D6en39j4.js → infoDiagram-5W2HQ5XZ-Dw_D4zI1.js} +5 -5
- package/dist/{ishikawaDiagram-5VMMS53U-CvVqTWku.js → ishikawaDiagram-K3B6WC7H-BeLiZFVY.js} +25 -25
- package/dist/{ishikawaDiagram-5VMMS53U-DN23jmFw.cjs → ishikawaDiagram-K3B6WC7H-DtjgiZAB.cjs} +2 -2
- package/dist/{journeyDiagram-EYS64GPL-CqhBN0KZ.js → journeyDiagram-COXZFDF6-B-qvdudB.js} +31 -31
- package/dist/{journeyDiagram-EYS64GPL-Co9rp-Q1.cjs → journeyDiagram-COXZFDF6-Dge2AV0B.cjs} +4 -4
- package/dist/{kanban-definition-UXKFOSKX-DzKPVjAq.cjs → kanban-definition-P3RFRI5V-C02YfFZv.cjs} +4 -4
- package/dist/{kanban-definition-UXKFOSKX-CWx_Y40t.js → kanban-definition-P3RFRI5V-D0XAXDl8.js} +42 -42
- package/dist/{line-D6gR53Af.cjs → line-5eGinYgh.cjs} +1 -1
- package/dist/{line-CwYnx9Ke.js → line-BTenwQwq.js} +1 -1
- package/dist/loadReferencedImage-C60bzMNm.cjs +1 -0
- package/dist/{loadReferencedImage-BKEDAhWQ.js → loadReferencedImage-XQS67fhR.js} +3 -1
- package/dist/mermaid-parser.core-BHBS1DqP.cjs +6 -0
- package/dist/{mermaid-parser.core-DLNlSmfj.js → mermaid-parser.core-CI12FMcX.js} +163 -163
- package/dist/mermaid.core-4MZ-Iwu7.cjs +43 -0
- package/dist/{mermaid.core-DI1iFk6G.js → mermaid.core-BJkDCzqA.js} +875 -1150
- package/dist/{mindmap-definition-THT77NOG-Bo3D8RRT.cjs → mindmap-definition-LZFPQGKD-CXV1hV3a.cjs} +3 -3
- package/dist/{mindmap-definition-THT77NOG-B9hdpQgy.js → mindmap-definition-LZFPQGKD-gYumvdwo.js} +78 -78
- package/dist/packet-JDAUHWVQ-Bcik24Kz.js +3 -0
- package/dist/packet-JDAUHWVQ-CrY7ylWJ.cjs +1 -0
- package/dist/{pegDiagram-XKGWAZYB-Cx-wZf4B.cjs → pegDiagram-BGZESJAR-BICf3jMN.cjs} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CIBfY2Ob.js → pegDiagram-BGZESJAR-Dw9pRv5d.js} +5 -5
- package/dist/pi-outpost-embed.cjs +9 -10
- package/dist/pi-outpost-embed.js +2833 -2786
- package/dist/pie-XZMESJXO-BYQC-ufi.js +3 -0
- package/dist/pie-XZMESJXO-WjCBboSE.cjs +1 -0
- package/dist/{pieDiagram-E7YTZNPT-BC-pW4cK.cjs → pieDiagram-CAPJLFHJ-CF8cTQpC.cjs} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-SG9oy_nV.js → pieDiagram-CAPJLFHJ-uz37FR9I.js} +18 -18
- package/dist/{quadrantDiagram-AXDQQJYC-C65HQ6gT.js → quadrantDiagram-GDMTTRAM-C4rt8LIh.js} +40 -40
- package/dist/{quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs → quadrantDiagram-GDMTTRAM-D9SYFJ_P.cjs} +2 -2
- package/dist/radar-ABXABTNO-BoQ7hH7Z.cjs +1 -0
- package/dist/radar-ABXABTNO-MxbyaZja.js +3 -0
- package/dist/railroad-I3PHUGI6-DckUArT-.js +3 -0
- package/dist/railroad-I3PHUGI6-DuGTlHry.cjs +1 -0
- package/dist/railroad-abnf-LNEFI6M7-DmAJaMEu.js +3 -0
- package/dist/railroad-abnf-LNEFI6M7-DoWf9u55.cjs +1 -0
- package/dist/railroad-ebnf-DWYD2UWJ-Bf05ZyW1.cjs +1 -0
- package/dist/railroad-ebnf-DWYD2UWJ-CS2AUYSv.js +3 -0
- package/dist/railroad-peg-JR7BVNR7-B-nctVbV.js +3 -0
- package/dist/railroad-peg-JR7BVNR7-CcV5KH4m.cjs +1 -0
- package/dist/{railroadDiagram-O6MQD6OU-3JsgWyLe.cjs → railroadDiagram-SM67HX2B-GgesxX7v.cjs} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-DLBEWyaH.js → railroadDiagram-SM67HX2B-T5SG0kEf.js} +5 -5
- package/dist/{requirementDiagram-IS5BZ75X-DwrHgMzq.js → requirementDiagram-X7JNWC4A-BEeCszC1.js} +49 -45
- package/dist/{requirementDiagram-IS5BZ75X-D1BMLxZg.cjs → requirementDiagram-X7JNWC4A-BVzf-VRr.cjs} +11 -11
- package/dist/{sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs → sankeyDiagram-UM26HJRW-CdBXqklJ.cjs} +3 -3
- package/dist/{sankeyDiagram-P5KCCOFB-CcT0ZbW6.js → sankeyDiagram-UM26HJRW-DLDVzhPm.js} +16 -16
- package/dist/{sequenceDiagram-WJ2MYXX4-DM6BpXMT.js → sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js} +704 -619
- package/dist/sequenceDiagram-ZO4K6R2Y-ytX57BES.cjs +169 -0
- package/dist/stateDiagram-v2-TBUQTH76-BTuAbG28.cjs +291 -0
- package/dist/{chunk-ZLD2IHE6-CqnVd2rq.js → stateDiagram-v2-TBUQTH76-PRnBJSrY.js} +271 -174
- package/dist/swimlanes-N4OXWK64-41SBE_L2.cjs +1 -0
- package/dist/{swimlanes-V6O3JKXN-BR7rwPmC.js → swimlanes-N4OXWK64-DipLcZla.js} +1006 -1219
- package/dist/swimlanesDiagram-K3J5GTZL-D6tIMgkj.cjs +8 -0
- package/dist/swimlanesDiagram-K3J5GTZL-_MehEHMi.js +27 -0
- package/dist/timeline-definition-YOQAKGHF-D_LWHCSA.cjs +120 -0
- package/dist/{timeline-definition-24CTP7MA-BQmq-H07.js → timeline-definition-YOQAKGHF-h8_spxIb.js} +210 -206
- package/dist/treeView-D4JQ5SDB-C3ticT1s.cjs +1 -0
- package/dist/treeView-D4JQ5SDB-CEuRf8gK.js +3 -0
- package/dist/treemap-SAJKECNS-BwIfwvl-.cjs +1 -0
- package/dist/treemap-SAJKECNS-DiC0668-.js +3 -0
- package/dist/usecaseDiagram-VIAY4XPW-DCfwvERR.js +7187 -0
- package/dist/usecaseDiagram-VIAY4XPW-PJHZiyJN.cjs +328 -0
- package/dist/{vennDiagram-4TSXK5OY-BdzbrV6i.js → vennDiagram-BLWOH2XV-_zHkfDVB.js} +43 -43
- package/dist/{vennDiagram-4TSXK5OY-D5MMYyff.cjs → vennDiagram-BLWOH2XV-niExkaFk.cjs} +3 -3
- package/dist/wardley-7MLQ67FV-BoIyQQ0E.cjs +1 -0
- package/dist/wardley-7MLQ67FV-CFF6IT1d.js +3 -0
- package/dist/{wardleyDiagram-VM6X3IG4-Ccz1enMd.js → wardleyDiagram-YMQ3BMBF-BKvQkiZP.js} +17 -17
- package/dist/{wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs → wardleyDiagram-YMQ3BMBF-btlDrKA6.cjs} +3 -3
- package/dist/xychartDiagram-TAQBALBS-CkNZcyIi.cjs +7 -0
- package/dist/{xychartDiagram-S5SC5T6Z-B-sQkN_B.js → xychartDiagram-TAQBALBS-DlfKpBG9.js} +34 -30
- package/package.json +2 -2
- package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +0 -1
- package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +0 -3
- package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +0 -38
- package/dist/channel-DcrLLvcO.cjs +0 -1
- package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +0 -168
- package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +0 -62
- package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +0 -2
- package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +0 -127
- package/dist/chunk-FOHPRMQF-BNNbqxGX.js +0 -21456
- package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +0 -161
- package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +0 -72
- package/dist/chunk-HLEWEB6X-aqFoPl02.cjs +0 -206
- package/dist/chunk-L3NEJ4N5-BaR_9rF3.js +0 -245
- package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +0 -1
- package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +0 -10
- package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +0 -1
- package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +0 -231
- package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +0 -1
- package/dist/classDiagram-CYGNFDIV-DsnY_WNO.js +0 -30
- package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +0 -1
- package/dist/classDiagram-v2-TLXNO2FR-DeNpu9ZP.js +0 -30
- package/dist/conversationHistory-BmpdU77I.cjs +0 -286
- package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +0 -1
- package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +0 -3
- package/dist/dagre-BMKbPnPh.js +0 -1934
- package/dist/dagre-EEW2OxRU.cjs +0 -1
- package/dist/dagre-OS7QT2EB-BtJ6v_Nc.js +0 -425
- package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +0 -4
- package/dist/diagram-VSXAHHWV-BjsZz1JJ.cjs +0 -3
- package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +0 -1
- package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +0 -3
- package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +0 -1
- package/dist/flowDiagram-T62WH6J4-ptBWC6KI.js +0 -16
- package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +0 -3
- package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +0 -1
- package/dist/info-A6RAGUB7-Cx39sHYM.js +0 -3
- package/dist/info-A6RAGUB7-DT06-FB3.cjs +0 -1
- package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +0 -2
- package/dist/loadReferencedImage-DlRgJ4vm.cjs +0 -1
- package/dist/mermaid-parser.core-CBiDgMLi.cjs +0 -6
- package/dist/mermaid.core-B3QcBB1O.cjs +0 -43
- package/dist/packet-AYTQ26CC-BGX2McoE.cjs +0 -1
- package/dist/packet-AYTQ26CC-IgkU2VYK.js +0 -3
- package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +0 -1
- package/dist/pie-WAS4IAKB-odE0A7fM.js +0 -3
- package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +0 -1
- package/dist/radar-RG4KPBEZ-DqbNqlJH.js +0 -3
- package/dist/railroad-74A4TZTK-Dzt4afqg.js +0 -3
- package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +0 -1
- package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +0 -1
- package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +0 -3
- package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +0 -162
- package/dist/stateDiagram-XQSTLZYL-BhzcW44q.js +0 -220
- package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +0 -1
- package/dist/stateDiagram-v2-IH3M54BS-BE5CXOTu.js +0 -30
- package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +0 -1
- package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +0 -1
- package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +0 -8
- package/dist/swimlanesDiagram-JKAHXJPX-lIPwQ8Mc.js +0 -30
- package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +0 -120
- package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +0 -1
- package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +0 -3
- package/dist/treemap-WGGIJYW6-CGULpntJ.js +0 -3
- package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +0 -1
- package/dist/wardley-WFR3VGLG-9zHZLKh9.js +0 -3
- package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +0 -1
- package/dist/xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs +0 -7
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t, p as n } from "./src-Dkp7vqs8.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { C as r, H as i, U as a, _ as o, a as s, b as c, et as l, q as u, s as d, v as f } from "./chunk-VPRB5NB3-DJh7spRO.js";
|
|
4
|
+
import { _ as p, s as m } from "./chunk-3YJQHVM4-BNbfg-7y.js";
|
|
5
|
+
import "./chunk-HJ2JQQFS-CgYTXthn.js";
|
|
6
|
+
import "./chunk-E2ZNV5FY-Bu796yUY.js";
|
|
7
|
+
import "./chunk-4EA7E6EY-B5P7n2an.js";
|
|
8
|
+
import { a as h, i as g, o as _, r as v } from "./chunk-J5ZVWO5B-DEP-pB-1.js";
|
|
9
|
+
import "./chunk-XC4XBNZT-CSiWBPH9.js";
|
|
10
|
+
import "./chunk-DBDB3WZW-DpEOsLsQ.js";
|
|
11
|
+
import "./chunk-2BW5OAIV-DWtmlmt_.js";
|
|
12
|
+
import { t as y } from "./chunk-7TKQ45FW-CD1KuemG.js";
|
|
13
|
+
import { t as b } from "./chunk-XXDRQBXY-IzhWXllg.js";
|
|
14
|
+
import { t as x } from "./chunk-KQW6MTUR-c0XOjr_c.js";
|
|
15
|
+
import "./chunk-NTY3LDVX-CvRtOCpm.js";
|
|
16
|
+
import { a as S, i as C } from "./mermaid.core-BJkDCzqA.js";
|
|
17
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-TBUQTH76.mjs
|
|
18
|
+
var w = (function() {
|
|
11
19
|
var t = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
12
20
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
13
21
|
return n;
|
|
@@ -1347,97 +1355,56 @@ var y = (function() {
|
|
|
1347
1355
|
}
|
|
1348
1356
|
return e(P, "Parser"), P.prototype = N, N.Parser = P, new P();
|
|
1349
1357
|
})();
|
|
1350
|
-
|
|
1351
|
-
var
|
|
1352
|
-
if (
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
t.info("REF0:"), t.info("Drawing state diagram (v2)", n);
|
|
1362
|
-
let { securityLevel: a, state: o, layout: s } = d();
|
|
1363
|
-
i.db.extract(i.db.getRootDocV2());
|
|
1364
|
-
let c = i.db.getData(), l = g(n, a);
|
|
1365
|
-
c.type = i.type, c.layoutAlgorithm = s, c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, c.markers = d().look === "neo" ? ["barbNeo"] : ["barb"], c.diagramId = n, await v(c, l);
|
|
1366
|
-
try {
|
|
1367
|
-
(typeof i.db.getLinks == "function" ? i.db.getLinks() : /* @__PURE__ */ new Map()).forEach((e, n) => {
|
|
1368
|
-
let r = typeof n == "string" ? n : typeof n?.id == "string" ? n.id : "", i = c.nodes.find((e) => e.id === r);
|
|
1369
|
-
if (!r) {
|
|
1370
|
-
t.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(n));
|
|
1371
|
-
return;
|
|
1372
|
-
}
|
|
1373
|
-
let a = l.node()?.querySelectorAll("g.node, g.rough-node"), o;
|
|
1374
|
-
if (a?.forEach((e) => {
|
|
1375
|
-
let t = e.textContent?.trim();
|
|
1376
|
-
(e.id === i?.domId || t === r) && (o = e);
|
|
1377
|
-
}), !o) {
|
|
1378
|
-
t.warn("⚠️ Could not find node matching text:", r);
|
|
1379
|
-
return;
|
|
1380
|
-
}
|
|
1381
|
-
let s = o.parentNode;
|
|
1382
|
-
if (!s) {
|
|
1383
|
-
t.warn("⚠️ Node has no parent, cannot wrap:", r);
|
|
1384
|
-
return;
|
|
1385
|
-
}
|
|
1386
|
-
let u = document.createElementNS("http://www.w3.org/2000/svg", "a"), d = e.url.replace(/^"+|"+$/g, "");
|
|
1387
|
-
if (u.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", d), u.setAttribute("target", "_blank"), e.tooltip) {
|
|
1388
|
-
let t = e.tooltip.replace(/^"+|"+$/g, "");
|
|
1389
|
-
u.setAttribute("title", t), o.setAttribute("title", t);
|
|
1390
|
-
}
|
|
1391
|
-
s.replaceChild(u, o), u.appendChild(o), t.info("🔗 Wrapped node in <a> tag for:", r, e.url);
|
|
1392
|
-
});
|
|
1393
|
-
} catch (e) {
|
|
1394
|
-
t.error("❌ Error injecting clickable links:", e);
|
|
1395
|
-
}
|
|
1396
|
-
p.insertTitle(l, "statediagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), _(l, 8, z, o?.useMaxWidth ?? !0);
|
|
1397
|
-
}, "draw"),
|
|
1398
|
-
getDir: G
|
|
1399
|
-
}, K = /* @__PURE__ */ new Map(), q = 0;
|
|
1400
|
-
function J(e = "", t = 0, n = "", r = U) {
|
|
1401
|
-
return `${fe}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
|
|
1358
|
+
w.parser = w;
|
|
1359
|
+
var T = w, E = "TB", D = "TB", O = "dir", k = "state", A = "root", j = "relation", M = "classDef", N = "style", P = "applyClass", F = "default", ee = "divider", te = "fill:none", ne = "fill: #333", re = "c", ie = "markdown", ae = "normal", I = "rect", L = "rectWithTitle", oe = "stateStart", se = "stateEnd", R = "divider", ce = "roundedWithTitle", le = "note", ue = "noteGroup", z = "statediagram", de = `${z}-state`, B = "transition", fe = "note", pe = `${B} note-edge`, me = `${z}-${fe}`, he = `${z}-cluster`, ge = `${z}-cluster-alt`, V = "parent", H = "note", _e = "state", U = "----", ve = `${U}${H}`, ye = `${U}${V}`, W = /* @__PURE__ */ new Map(), G = 0, be = 0, K = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ e((e, t, n, r) => {
|
|
1360
|
+
if (e === R && n?.id !== void 0 && K.has(n.id)) {
|
|
1361
|
+
let e = K.get(n.id);
|
|
1362
|
+
return K.set(t, e), e;
|
|
1363
|
+
}
|
|
1364
|
+
let i = be++, a = r ? void 0 : i;
|
|
1365
|
+
return K.set(t, a), a;
|
|
1366
|
+
}, "colorSlotFor");
|
|
1367
|
+
function q(e = "", t = 0, n = "", r = U) {
|
|
1368
|
+
return `${_e}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
|
|
1402
1369
|
}
|
|
1403
|
-
e(
|
|
1404
|
-
var
|
|
1370
|
+
e(q, "stateDomId");
|
|
1371
|
+
var Se = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
1405
1372
|
t.trace("items", n), n.forEach((t) => {
|
|
1406
1373
|
switch (t.stmt) {
|
|
1407
|
-
case
|
|
1408
|
-
|
|
1374
|
+
case k:
|
|
1375
|
+
X(e, t, r, i, a, o, s, l);
|
|
1409
1376
|
break;
|
|
1410
|
-
case
|
|
1411
|
-
|
|
1377
|
+
case F:
|
|
1378
|
+
X(e, t, r, i, a, o, s, l);
|
|
1412
1379
|
break;
|
|
1413
|
-
case
|
|
1414
|
-
|
|
1380
|
+
case j: {
|
|
1381
|
+
X(e, t.state1, r, i, a, o, s, l), X(e, t.state2, r, i, a, o, s, l);
|
|
1415
1382
|
let n = s === "neo", u = {
|
|
1416
|
-
id: "edge" +
|
|
1383
|
+
id: "edge" + G,
|
|
1417
1384
|
start: t.state1.id,
|
|
1418
1385
|
end: t.state2.id,
|
|
1419
1386
|
arrowhead: "normal",
|
|
1420
1387
|
arrowTypeEnd: n ? "arrow_barb_neo" : "arrow_barb",
|
|
1421
|
-
style:
|
|
1388
|
+
style: te,
|
|
1422
1389
|
labelStyle: "",
|
|
1423
|
-
label:
|
|
1424
|
-
arrowheadStyle:
|
|
1425
|
-
labelpos:
|
|
1426
|
-
labelType:
|
|
1427
|
-
thickness:
|
|
1390
|
+
label: d.sanitizeText(t.description ?? "", c()),
|
|
1391
|
+
arrowheadStyle: ne,
|
|
1392
|
+
labelpos: re,
|
|
1393
|
+
labelType: ie,
|
|
1394
|
+
thickness: ae,
|
|
1428
1395
|
classes: B,
|
|
1429
1396
|
look: s
|
|
1430
1397
|
};
|
|
1431
|
-
a.push(u),
|
|
1398
|
+
a.push(u), G++;
|
|
1432
1399
|
}
|
|
1433
1400
|
}
|
|
1434
1401
|
});
|
|
1435
|
-
}, "setupDoc"),
|
|
1402
|
+
}, "setupDoc"), Ce = /* @__PURE__ */ e((e, t = D) => {
|
|
1436
1403
|
let n = t;
|
|
1437
1404
|
if (e.doc) for (let t of e.doc) t.stmt === "dir" && (n = t.value);
|
|
1438
1405
|
return n;
|
|
1439
1406
|
}, "getDir");
|
|
1440
|
-
function
|
|
1407
|
+
function J(e, t, n) {
|
|
1441
1408
|
if (!t.id || t.id === "</join></fork>" || t.id === "</choice>") return;
|
|
1442
1409
|
t.cssClasses && (Array.isArray(t.cssCompiledStyles) || (t.cssCompiledStyles = []), t.cssClasses.split(" ").forEach((e) => {
|
|
1443
1410
|
let r = n.get(e);
|
|
@@ -1446,40 +1413,41 @@ function Y(e, t, n) {
|
|
|
1446
1413
|
let r = e.find((e) => e.id === t.id);
|
|
1447
1414
|
r ? Object.assign(r, t) : e.push(t);
|
|
1448
1415
|
}
|
|
1449
|
-
e(
|
|
1450
|
-
function
|
|
1416
|
+
e(J, "insertOrUpdateNode");
|
|
1417
|
+
function we(e) {
|
|
1451
1418
|
return e?.classes?.join(" ") ?? "";
|
|
1452
1419
|
}
|
|
1453
|
-
e(
|
|
1454
|
-
function
|
|
1420
|
+
e(we, "getClassesFromDbInfo");
|
|
1421
|
+
function Y(e) {
|
|
1455
1422
|
return e?.styles ?? [];
|
|
1456
1423
|
}
|
|
1457
|
-
e(
|
|
1458
|
-
var
|
|
1459
|
-
let u = n.id, f = r.get(u), p =
|
|
1424
|
+
e(Y, "getStylesFromDbInfo");
|
|
1425
|
+
var X = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
1426
|
+
let u = n.id, f = r.get(u), p = we(f), m = Y(f), h = c(), g = p.trim() !== "" || m.length > 0;
|
|
1460
1427
|
if (t.info("dataFetcher parsedItem", n, f, m), u !== "root") {
|
|
1461
1428
|
let r = I;
|
|
1462
|
-
n.start === !0 ? r =
|
|
1429
|
+
n.start === !0 ? r = oe : n.start === !1 && (r = se), n.type !== F && (r = n.type), W.get(u) || W.set(u, {
|
|
1463
1430
|
id: u,
|
|
1464
1431
|
shape: r,
|
|
1465
|
-
description:
|
|
1466
|
-
cssClasses: `${p} ${
|
|
1432
|
+
description: d.sanitizeText(u, h),
|
|
1433
|
+
cssClasses: `${p} ${de}`,
|
|
1467
1434
|
cssStyles: m
|
|
1468
1435
|
});
|
|
1469
|
-
let
|
|
1470
|
-
n.description && (Array.isArray(
|
|
1436
|
+
let c = W.get(u);
|
|
1437
|
+
n.description && (Array.isArray(c.description) ? (c.shape = L, c.description.push(n.description)) : c.description?.length && c.description.length > 0 ? (c.shape = L, c.description = c.description === u ? [n.description] : [c.description, n.description]) : (c.shape = I, c.description = n.description), c.description = d.sanitizeTextOrArray(c.description, h)), c.description?.length === 1 && c.shape === L && (c.shape = c.type === "group" ? ce : I), !c.type && n.doc && (t.info("Setting cluster for XCX", u, Ce(n)), c.type = "group", c.isGroup = !0, c.dir = Ce(n), c.shape = n.type === ee ? R : ce, c.colorIndex = xe(c.shape, u, e, g), c.cssClasses = `${c.cssClasses} ${he} ${o ? ge : ""}`);
|
|
1471
1438
|
let f = {
|
|
1472
1439
|
labelStyle: "",
|
|
1473
|
-
shape:
|
|
1474
|
-
label:
|
|
1475
|
-
cssClasses:
|
|
1440
|
+
shape: c.shape,
|
|
1441
|
+
label: c.description,
|
|
1442
|
+
cssClasses: c.cssClasses,
|
|
1476
1443
|
cssCompiledStyles: [],
|
|
1477
|
-
cssStyles:
|
|
1444
|
+
cssStyles: c.cssStyles,
|
|
1478
1445
|
id: u,
|
|
1479
|
-
dir:
|
|
1480
|
-
domId:
|
|
1481
|
-
type:
|
|
1482
|
-
isGroup:
|
|
1446
|
+
dir: c.dir,
|
|
1447
|
+
domId: q(u, G),
|
|
1448
|
+
type: c.type,
|
|
1449
|
+
isGroup: c.type === "group",
|
|
1450
|
+
colorIndex: c.colorIndex,
|
|
1483
1451
|
padding: 8,
|
|
1484
1452
|
rx: 10,
|
|
1485
1453
|
ry: 10,
|
|
@@ -1489,56 +1457,105 @@ var Z = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
|
1489
1457
|
if (f.shape === R && (f.label = ""), e && e.id !== "root" && (t.trace("Setting node ", u, " to be child of its parent ", e.id), f.parentId = e.id), f.centerLabel = !0, n.note) {
|
|
1490
1458
|
let e = {
|
|
1491
1459
|
labelStyle: "",
|
|
1492
|
-
shape:
|
|
1460
|
+
shape: le,
|
|
1493
1461
|
label: n.note.text,
|
|
1494
1462
|
labelType: "markdown",
|
|
1495
|
-
cssClasses:
|
|
1463
|
+
cssClasses: me,
|
|
1496
1464
|
cssStyles: [],
|
|
1497
1465
|
cssCompiledStyles: [],
|
|
1498
|
-
id: u +
|
|
1499
|
-
domId:
|
|
1500
|
-
type:
|
|
1501
|
-
isGroup:
|
|
1466
|
+
id: u + ve + "-" + G,
|
|
1467
|
+
domId: q(u, G, H),
|
|
1468
|
+
type: "node",
|
|
1469
|
+
isGroup: !1,
|
|
1502
1470
|
padding: h.flowchart?.padding,
|
|
1503
1471
|
look: s,
|
|
1504
1472
|
position: n.note.position
|
|
1505
|
-
}, t = u +
|
|
1473
|
+
}, t = u + ye, r = {
|
|
1506
1474
|
labelStyle: "",
|
|
1507
|
-
shape:
|
|
1475
|
+
shape: ue,
|
|
1508
1476
|
label: n.note.text,
|
|
1509
|
-
cssClasses:
|
|
1477
|
+
cssClasses: c.cssClasses,
|
|
1510
1478
|
cssStyles: [],
|
|
1511
|
-
id: u +
|
|
1512
|
-
domId:
|
|
1479
|
+
id: u + ye,
|
|
1480
|
+
domId: q(u, G, V),
|
|
1513
1481
|
type: "group",
|
|
1514
1482
|
isGroup: !0,
|
|
1515
1483
|
padding: 16,
|
|
1516
1484
|
look: s,
|
|
1517
1485
|
position: n.note.position
|
|
1518
1486
|
};
|
|
1519
|
-
|
|
1520
|
-
let o = u,
|
|
1521
|
-
n.note.position === "left of" && (o = e.id,
|
|
1522
|
-
id: o + "-" +
|
|
1487
|
+
G++, r.id = t, e.parentId = t, J(i, r, l), J(i, e, l), J(i, f, l);
|
|
1488
|
+
let o = u, d = e.id;
|
|
1489
|
+
n.note.position === "left of" && (o = e.id, d = u), a.push({
|
|
1490
|
+
id: o + "-" + d,
|
|
1523
1491
|
start: o,
|
|
1524
|
-
end:
|
|
1492
|
+
end: d,
|
|
1525
1493
|
arrowhead: "none",
|
|
1526
1494
|
arrowTypeEnd: "",
|
|
1527
|
-
style:
|
|
1495
|
+
style: te,
|
|
1528
1496
|
labelStyle: "",
|
|
1529
|
-
classes:
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1497
|
+
classes: pe,
|
|
1498
|
+
pattern: "dashed",
|
|
1499
|
+
arrowheadStyle: ne,
|
|
1500
|
+
labelpos: re,
|
|
1501
|
+
labelType: ie,
|
|
1502
|
+
thickness: ae,
|
|
1534
1503
|
look: s
|
|
1535
1504
|
});
|
|
1536
|
-
} else
|
|
1505
|
+
} else J(i, f, l);
|
|
1537
1506
|
}
|
|
1538
|
-
n.doc && (t.trace("Adding nodes children "),
|
|
1539
|
-
}, "dataFetcher"),
|
|
1540
|
-
|
|
1541
|
-
}, "reset"),
|
|
1507
|
+
n.doc && (t.trace("Adding nodes children "), Se(n, n.doc, r, i, a, !o, s, l));
|
|
1508
|
+
}, "dataFetcher"), Te = /* @__PURE__ */ e(() => {
|
|
1509
|
+
W.clear(), G = 0, be = 0, K.clear();
|
|
1510
|
+
}, "reset"), Ee = /* @__PURE__ */ e((e, t = D) => {
|
|
1511
|
+
if (!e.doc) return t;
|
|
1512
|
+
let n = t;
|
|
1513
|
+
for (let t of e.doc) t.stmt === "dir" && (n = t.value);
|
|
1514
|
+
return n;
|
|
1515
|
+
}, "getDir"), De = {
|
|
1516
|
+
getClasses: /* @__PURE__ */ e(function(e, t) {
|
|
1517
|
+
return t.db.getClasses();
|
|
1518
|
+
}, "getClasses"),
|
|
1519
|
+
draw: /* @__PURE__ */ e(async function(e, n, r, i) {
|
|
1520
|
+
t.info("REF0:"), t.info("Drawing state diagram (v2)", n);
|
|
1521
|
+
let { securityLevel: a, state: o, layout: s } = c();
|
|
1522
|
+
i.db.extract(i.db.getRootDocV2());
|
|
1523
|
+
let l = i.db.getData(), u = b(n, a);
|
|
1524
|
+
l.type = i.type, l.layoutAlgorithm = C(s), l.nodeSpacing = o?.nodeSpacing || 50, l.rankSpacing = o?.rankSpacing || 50, l.markers = c().look === "neo" ? ["barbNeo"] : ["barb"], l.diagramId = n, await S(l, u);
|
|
1525
|
+
try {
|
|
1526
|
+
(typeof i.db.getLinks == "function" ? i.db.getLinks() : /* @__PURE__ */ new Map()).forEach((e, n) => {
|
|
1527
|
+
let r = typeof n == "string" ? n : typeof n?.id == "string" ? n.id : "", i = l.nodes.find((e) => e.id === r);
|
|
1528
|
+
if (!r) {
|
|
1529
|
+
t.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(n));
|
|
1530
|
+
return;
|
|
1531
|
+
}
|
|
1532
|
+
let a = u.node()?.querySelectorAll("g.node, g.rough-node"), o;
|
|
1533
|
+
if (a?.forEach((e) => {
|
|
1534
|
+
let t = e.textContent?.trim();
|
|
1535
|
+
(e.id === i?.domId || t === r) && (o = e);
|
|
1536
|
+
}), !o) {
|
|
1537
|
+
t.warn("⚠️ Could not find node matching text:", r);
|
|
1538
|
+
return;
|
|
1539
|
+
}
|
|
1540
|
+
let s = o.parentNode;
|
|
1541
|
+
if (!s) {
|
|
1542
|
+
t.warn("⚠️ Node has no parent, cannot wrap:", r);
|
|
1543
|
+
return;
|
|
1544
|
+
}
|
|
1545
|
+
let c = document.createElementNS("http://www.w3.org/2000/svg", "a"), d = e.url.replace(/^"+|"+$/g, "");
|
|
1546
|
+
if (c.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", d), c.setAttribute("target", "_blank"), e.tooltip) {
|
|
1547
|
+
let t = e.tooltip.replace(/^"+|"+$/g, "");
|
|
1548
|
+
c.setAttribute("title", t), o.setAttribute("title", t);
|
|
1549
|
+
}
|
|
1550
|
+
s.replaceChild(c, o), c.appendChild(o), t.info("🔗 Wrapped node in <a> tag for:", r, e.url);
|
|
1551
|
+
});
|
|
1552
|
+
} catch (e) {
|
|
1553
|
+
t.error("❌ Error injecting clickable links:", e);
|
|
1554
|
+
}
|
|
1555
|
+
p.insertTitle(u, "statediagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), x(u, 8, z, o?.useMaxWidth ?? !0);
|
|
1556
|
+
}, "draw"),
|
|
1557
|
+
getDir: Ee
|
|
1558
|
+
}, Z = {
|
|
1542
1559
|
START_NODE: "[*]",
|
|
1543
1560
|
START_TYPE: "start",
|
|
1544
1561
|
END_NODE: "[*]",
|
|
@@ -1547,13 +1564,13 @@ var Z = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
|
1547
1564
|
FILL_KEYWORD: "fill",
|
|
1548
1565
|
BG_FILL: "bgFill",
|
|
1549
1566
|
STYLECLASS_SEP: ","
|
|
1550
|
-
},
|
|
1567
|
+
}, Oe = /* @__PURE__ */ e(() => /* @__PURE__ */ new Map(), "newClassesList"), Q = /* @__PURE__ */ e(() => ({
|
|
1551
1568
|
relations: [],
|
|
1552
1569
|
states: /* @__PURE__ */ new Map(),
|
|
1553
1570
|
documents: {}
|
|
1554
|
-
}), "newDoc"), $ = /* @__PURE__ */ e((e) => JSON.parse(JSON.stringify(e)), "clone"),
|
|
1571
|
+
}), "newDoc"), $ = /* @__PURE__ */ e((e) => JSON.parse(JSON.stringify(e)), "clone"), ke = class {
|
|
1555
1572
|
constructor(e) {
|
|
1556
|
-
this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes =
|
|
1573
|
+
this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = Oe(), this.documents = { root: Q() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.funs = [], this.getAccTitle = f, this.setAccTitle = a, this.getAccDescription = o, this.setAccDescription = i, this.setDiagramTitle = u, this.getDiagramTitle = r, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this), this.bindFunctions = this.bindFunctions.bind(this);
|
|
1557
1574
|
}
|
|
1558
1575
|
static {
|
|
1559
1576
|
e(this, "StateDB");
|
|
@@ -1569,25 +1586,25 @@ var Z = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
|
1569
1586
|
extract(e) {
|
|
1570
1587
|
this.clear(!0);
|
|
1571
1588
|
for (let t of Array.isArray(e) ? e : e.doc) switch (t.stmt) {
|
|
1572
|
-
case
|
|
1589
|
+
case k:
|
|
1573
1590
|
this.addState(t.id.trim(), t.type, t.doc, t.description, t.note);
|
|
1574
1591
|
break;
|
|
1575
|
-
case
|
|
1592
|
+
case j:
|
|
1576
1593
|
this.addRelation(t.state1, t.state2, t.description);
|
|
1577
1594
|
break;
|
|
1578
|
-
case
|
|
1595
|
+
case M:
|
|
1579
1596
|
this.addStyleClass(t.id.trim(), t.classes);
|
|
1580
1597
|
break;
|
|
1581
|
-
case
|
|
1598
|
+
case N:
|
|
1582
1599
|
this.handleStyleDef(t);
|
|
1583
1600
|
break;
|
|
1584
|
-
case
|
|
1601
|
+
case P:
|
|
1585
1602
|
this.setCssClass(t.id.trim(), t.styleClass);
|
|
1586
1603
|
break;
|
|
1587
1604
|
case "click": this.addLink(t.id, t.url, t.tooltip);
|
|
1588
1605
|
}
|
|
1589
|
-
let t = this.getStates(), n =
|
|
1590
|
-
|
|
1606
|
+
let t = this.getStates(), n = c();
|
|
1607
|
+
Te(), X(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
|
|
1591
1608
|
for (let e of this.nodes) if (Array.isArray(e.label)) {
|
|
1592
1609
|
if (e.description = e.label.slice(1), e.isGroup && e.description.length > 0) throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);
|
|
1593
1610
|
e.label = e.label[0];
|
|
@@ -1608,19 +1625,19 @@ var Z = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
|
1608
1625
|
t.info("Setting root doc", e), this.rootDoc = e, this.version === 1 ? this.extract(e) : this.extract(this.getRootDocV2());
|
|
1609
1626
|
}
|
|
1610
1627
|
docTranslator(e, t, n) {
|
|
1611
|
-
if (t.stmt ===
|
|
1628
|
+
if (t.stmt === j) {
|
|
1612
1629
|
this.docTranslator(e, t.state1, !0), this.docTranslator(e, t.state2, !1);
|
|
1613
1630
|
return;
|
|
1614
1631
|
}
|
|
1615
|
-
if (t.stmt ===
|
|
1632
|
+
if (t.stmt === k && (t.id === Z.START_NODE ? (t.id = e.id + (n ? "_start" : "_end"), t.start = n) : t.id = t.id.trim()), t.stmt !== A && t.stmt !== k || !t.doc) return;
|
|
1616
1633
|
let r = [], i = [];
|
|
1617
|
-
for (let e of t.doc) if (e.type ===
|
|
1634
|
+
for (let e of t.doc) if (e.type === ee) {
|
|
1618
1635
|
let t = $(e);
|
|
1619
1636
|
t.doc = $(i), r.push(t), i = [];
|
|
1620
1637
|
} else i.push(e);
|
|
1621
1638
|
if (r.length > 0 && i.length > 0) {
|
|
1622
1639
|
let e = {
|
|
1623
|
-
stmt:
|
|
1640
|
+
stmt: k,
|
|
1624
1641
|
id: m(),
|
|
1625
1642
|
type: "divider",
|
|
1626
1643
|
doc: $(i)
|
|
@@ -1631,21 +1648,21 @@ var Z = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
|
1631
1648
|
}
|
|
1632
1649
|
getRootDocV2() {
|
|
1633
1650
|
return this.docTranslator({
|
|
1634
|
-
id:
|
|
1635
|
-
stmt:
|
|
1651
|
+
id: A,
|
|
1652
|
+
stmt: A
|
|
1636
1653
|
}, {
|
|
1637
|
-
id:
|
|
1638
|
-
stmt:
|
|
1654
|
+
id: A,
|
|
1655
|
+
stmt: A,
|
|
1639
1656
|
doc: this.rootDoc
|
|
1640
1657
|
}, !0), {
|
|
1641
|
-
id:
|
|
1658
|
+
id: A,
|
|
1642
1659
|
doc: this.rootDoc
|
|
1643
1660
|
};
|
|
1644
1661
|
}
|
|
1645
|
-
addState(e, n =
|
|
1662
|
+
addState(e, n = F, r = void 0, i = void 0, a = void 0, o = void 0, s = void 0, l = void 0) {
|
|
1646
1663
|
let u = e?.trim();
|
|
1647
1664
|
if (!this.currentDocument.states.has(u)) t.info("Adding state ", u, i), this.currentDocument.states.set(u, {
|
|
1648
|
-
stmt:
|
|
1665
|
+
stmt: k,
|
|
1649
1666
|
id: u,
|
|
1650
1667
|
descriptions: [],
|
|
1651
1668
|
type: n,
|
|
@@ -1663,12 +1680,12 @@ var Z = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
|
1663
1680
|
if (i && (t.info("Setting state description", u, i), (Array.isArray(i) ? i : [i]).forEach((e) => this.addDescription(u, e.trim()))), a) {
|
|
1664
1681
|
let e = this.currentDocument.states.get(u);
|
|
1665
1682
|
if (!e) throw Error(`State not found: ${u}`);
|
|
1666
|
-
e.note = a, e.note.text =
|
|
1683
|
+
e.note = a, e.note.text = d.sanitizeText(e.note.text, c());
|
|
1667
1684
|
}
|
|
1668
1685
|
o && (t.info("Setting state classes", u, o), (Array.isArray(o) ? o : [o]).forEach((e) => this.setCssClass(u, e.trim()))), s && (t.info("Setting state styles", u, s), (Array.isArray(s) ? s : [s]).forEach((e) => this.setStyle(u, e.trim()))), l && (t.info("Setting state styles", u, s), (Array.isArray(l) ? l : [l]).forEach((e) => this.setTextStyle(u, e.trim())));
|
|
1669
1686
|
}
|
|
1670
1687
|
clear(e) {
|
|
1671
|
-
this.nodes = [], this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.documents = { root:
|
|
1688
|
+
this.nodes = [], this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.documents = { root: Q() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = Oe(), e || (this.links = /* @__PURE__ */ new Map(), s());
|
|
1672
1689
|
}
|
|
1673
1690
|
getState(e) {
|
|
1674
1691
|
return this.currentDocument.states.get(e);
|
|
@@ -1692,23 +1709,23 @@ var Z = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
|
1692
1709
|
return this.links;
|
|
1693
1710
|
}
|
|
1694
1711
|
startIdIfNeeded(e = "") {
|
|
1695
|
-
return e ===
|
|
1712
|
+
return e === Z.START_NODE ? (this.startEndCount++, `${Z.START_TYPE}${this.startEndCount}`) : e;
|
|
1696
1713
|
}
|
|
1697
|
-
startTypeIfNeeded(e = "", t =
|
|
1698
|
-
return e ===
|
|
1714
|
+
startTypeIfNeeded(e = "", t = F) {
|
|
1715
|
+
return e === Z.START_NODE ? Z.START_TYPE : t;
|
|
1699
1716
|
}
|
|
1700
1717
|
endIdIfNeeded(e = "") {
|
|
1701
|
-
return e ===
|
|
1718
|
+
return e === Z.END_NODE ? (this.startEndCount++, `${Z.END_TYPE}${this.startEndCount}`) : e;
|
|
1702
1719
|
}
|
|
1703
|
-
endTypeIfNeeded(e = "", t =
|
|
1704
|
-
return e ===
|
|
1720
|
+
endTypeIfNeeded(e = "", t = F) {
|
|
1721
|
+
return e === Z.END_NODE ? Z.END_TYPE : t;
|
|
1705
1722
|
}
|
|
1706
1723
|
addRelationObjs(e, t, n = "") {
|
|
1707
1724
|
let r = this.startIdIfNeeded(e.id.trim()), i = this.startTypeIfNeeded(e.id.trim(), e.type), a = this.startIdIfNeeded(t.id.trim()), o = this.startTypeIfNeeded(t.id.trim(), t.type);
|
|
1708
1725
|
this.addState(r, i, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(a, o, t.doc, t.description, t.note, t.classes, t.styles, t.textStyles), this.currentDocument.relations.push({
|
|
1709
1726
|
id1: r,
|
|
1710
1727
|
id2: a,
|
|
1711
|
-
relationTitle:
|
|
1728
|
+
relationTitle: d.sanitizeText(n, c())
|
|
1712
1729
|
});
|
|
1713
1730
|
}
|
|
1714
1731
|
addRelation(e, t, n) {
|
|
@@ -1718,13 +1735,13 @@ var Z = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
|
1718
1735
|
this.addState(r, i), this.addState(a, o), this.currentDocument.relations.push({
|
|
1719
1736
|
id1: r,
|
|
1720
1737
|
id2: a,
|
|
1721
|
-
relationTitle: n ?
|
|
1738
|
+
relationTitle: n ? d.sanitizeText(n, c()) : void 0
|
|
1722
1739
|
});
|
|
1723
1740
|
}
|
|
1724
1741
|
}
|
|
1725
1742
|
addDescription(e, t) {
|
|
1726
1743
|
let n = this.currentDocument.states.get(e), r = t.startsWith(":") ? t.replace(":", "").trim() : t;
|
|
1727
|
-
n?.descriptions?.push(
|
|
1744
|
+
n?.descriptions?.push(d.sanitizeText(r, c()));
|
|
1728
1745
|
}
|
|
1729
1746
|
cleanupLabel(e) {
|
|
1730
1747
|
return e.startsWith(":") ? e.slice(2).trim() : e.trim();
|
|
@@ -1739,10 +1756,10 @@ var Z = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
|
1739
1756
|
textStyles: []
|
|
1740
1757
|
});
|
|
1741
1758
|
let n = this.classes.get(e);
|
|
1742
|
-
t && n && t.split(
|
|
1759
|
+
t && n && t.split(Z.STYLECLASS_SEP).forEach((e) => {
|
|
1743
1760
|
let t = e.replace(/([^;]*);/, "$1").trim();
|
|
1744
|
-
if (RegExp(
|
|
1745
|
-
let e = t.replace(
|
|
1761
|
+
if (RegExp(Z.COLOR_KEYWORD).exec(e)) {
|
|
1762
|
+
let e = t.replace(Z.FILL_KEYWORD, Z.BG_FILL).replace(Z.COLOR_KEYWORD, Z.FILL_KEYWORD);
|
|
1746
1763
|
n.textStyles.push(e);
|
|
1747
1764
|
}
|
|
1748
1765
|
n.styles.push(t);
|
|
@@ -1752,12 +1769,12 @@ var Z = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
|
1752
1769
|
return this.classes;
|
|
1753
1770
|
}
|
|
1754
1771
|
setupToolTips(e) {
|
|
1755
|
-
let t =
|
|
1772
|
+
let t = y();
|
|
1756
1773
|
n(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover", (e) => {
|
|
1757
|
-
let
|
|
1758
|
-
if (
|
|
1759
|
-
let
|
|
1760
|
-
t.transition().duration(200).style("opacity", ".9"), t.style("left", window.scrollX +
|
|
1774
|
+
let r = n(e.currentTarget), i = r.attr("title");
|
|
1775
|
+
if (i === null) return;
|
|
1776
|
+
let a = e.currentTarget?.getBoundingClientRect();
|
|
1777
|
+
t.transition().duration(200).style("opacity", ".9"), t.style("left", window.scrollX + a.left + (a.right - a.left) / 2 + "px").style("top", window.scrollY + a.bottom + "px"), t.html(l.sanitize(i)), r.classed("hover", !0);
|
|
1761
1778
|
}).on("mouseout", (e) => {
|
|
1762
1779
|
t.transition().duration(500).style("opacity", 0), n(e.currentTarget).classed("hover", !1);
|
|
1763
1780
|
});
|
|
@@ -1784,15 +1801,15 @@ var Z = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
|
1784
1801
|
});
|
|
1785
1802
|
}
|
|
1786
1803
|
getDirectionStatement() {
|
|
1787
|
-
return this.rootDoc.find((e) => e.stmt ===
|
|
1804
|
+
return this.rootDoc.find((e) => e.stmt === O);
|
|
1788
1805
|
}
|
|
1789
1806
|
getDirection() {
|
|
1790
|
-
return this.getDirectionStatement()?.value ??
|
|
1807
|
+
return this.getDirectionStatement()?.value ?? E;
|
|
1791
1808
|
}
|
|
1792
1809
|
setDirection(e) {
|
|
1793
1810
|
let t = this.getDirectionStatement();
|
|
1794
1811
|
t ? t.value = e : this.rootDoc.unshift({
|
|
1795
|
-
stmt:
|
|
1812
|
+
stmt: O,
|
|
1796
1813
|
value: e
|
|
1797
1814
|
});
|
|
1798
1815
|
}
|
|
@@ -1800,19 +1817,95 @@ var Z = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
|
|
|
1800
1817
|
return e.startsWith(":") ? e.slice(1).trim() : e.trim();
|
|
1801
1818
|
}
|
|
1802
1819
|
getData() {
|
|
1803
|
-
let e =
|
|
1820
|
+
let e = c();
|
|
1821
|
+
for (let t of this.nodes) t.wrappingWidth ??= e.state?.wrappingWidth, t.isGroup || (t.minWidth ??= e.state?.minNodeWidth);
|
|
1804
1822
|
return {
|
|
1805
1823
|
nodes: this.nodes,
|
|
1806
1824
|
edges: this.edges,
|
|
1807
1825
|
other: {},
|
|
1808
1826
|
config: e,
|
|
1809
|
-
direction:
|
|
1827
|
+
direction: Ee(this.getRootDocV2())
|
|
1810
1828
|
};
|
|
1811
1829
|
}
|
|
1812
1830
|
getConfig() {
|
|
1813
|
-
return
|
|
1831
|
+
return c().state;
|
|
1832
|
+
}
|
|
1833
|
+
}, Ae = /* @__PURE__ */ e((e) => {
|
|
1834
|
+
let { theme: t, bkgColorArray: n, borderColorArray: r } = e;
|
|
1835
|
+
if (!g(t, r)) return "";
|
|
1836
|
+
let i = _(e.look), a = v(n), o = "";
|
|
1837
|
+
for (let e = 0; e < h(r); e++) {
|
|
1838
|
+
let t = r[e], s = a ? `fill: ${n[e % n.length]};` : "", c = `[data-look="${i}"][data-color-id="color-${e}"]`;
|
|
1839
|
+
o += `
|
|
1840
|
+
|
|
1841
|
+
/* The title strip: \`rect.outer\` spans the whole composite and \`rect.inner\` covers
|
|
1842
|
+
the body, so what stays visible of \`outer\` is the band behind the label. */
|
|
1843
|
+
${c}.statediagram-cluster rect.outer {
|
|
1844
|
+
stroke: ${t};
|
|
1845
|
+
${s}
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
${c}.statediagram-cluster rect.inner {
|
|
1849
|
+
stroke: ${t};
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
/* Concurrency regions. Siblings of one composite share a slot, so a divided composite
|
|
1853
|
+
reads as one thing split into parts rather than as several composites. */
|
|
1854
|
+
${c}.statediagram-cluster rect.divider {
|
|
1855
|
+
stroke: ${t};
|
|
1856
|
+
${s}
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
/* handDrawn draws the same container as roughjs shapes rather than plain rects, so it
|
|
1860
|
+
needs its own rules. \`roundedWithTitle\` and \`divider\` name those groups \`outer\`,
|
|
1861
|
+
\`inner\` and \`divider\` to match the classic branch, which is what lets these
|
|
1862
|
+
discriminate -- a bare \`.statediagram-cluster path\` rule reached the body as well and
|
|
1863
|
+
tinted the whole composite, losing \`compositeBackground\` and diverging from what
|
|
1864
|
+
classic and neo do.
|
|
1865
|
+
|
|
1866
|
+
roughjs emits two paths per shape and marks them: the filled shape carries
|
|
1867
|
+
\`stroke="none"\` and the sketched outline carries \`fill="none"\`. Splitting on that is
|
|
1868
|
+
what keeps \`fill\` off the outline -- a rough outline is open squiggles, not a closed
|
|
1869
|
+
region, so filling it produces smears -- and keeps \`stroke\` off the fill shape, which
|
|
1870
|
+
would otherwise gain an edge it was drawn without. */
|
|
1871
|
+
${c}.statediagram-cluster .outer path[stroke='none'] {
|
|
1872
|
+
${s}
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
${c}.statediagram-cluster .outer path[fill='none'] {
|
|
1876
|
+
stroke: ${t};
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
/* No \`.inner\` rule on purpose. The body shape is left entirely alone under handDrawn,
|
|
1880
|
+
where a rect's \`inner\` counterpart cannot be recoloured safely: roughjs draws a
|
|
1881
|
+
hachure fill as *stroked* lines, so its fill paths carry \`fill="none"\` exactly like
|
|
1882
|
+
the outline and no selector separates them. An \`.inner\` stroke rule therefore
|
|
1883
|
+
repainted the hatching of every alt composite in the palette colour instead of
|
|
1884
|
+
leaving it on \`altBackground\`. The container still reads as palette-coloured: the
|
|
1885
|
+
\`outer\` shape spans the whole composite, so its outline already frames the body. */
|
|
1886
|
+
|
|
1887
|
+
/* Regions split the same way, which is why \`divider\` fills solid rather than taking
|
|
1888
|
+
roughjs's default hachure -- see the note on that call. Hatched, both of its paths
|
|
1889
|
+
carried \`fill="none"\` and these two rules degenerated: the tint matched nothing and
|
|
1890
|
+
the border rule repainted the hatching. */
|
|
1891
|
+
${c}.statediagram-cluster .divider path[stroke='none'] {
|
|
1892
|
+
${s}
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
${c}.statediagram-cluster .divider path[fill='none'] {
|
|
1896
|
+
stroke: ${t};
|
|
1897
|
+
}
|
|
1898
|
+
`;
|
|
1814
1899
|
}
|
|
1815
|
-
|
|
1900
|
+
return o;
|
|
1901
|
+
}, "genColor"), je = {
|
|
1902
|
+
parser: T,
|
|
1903
|
+
get db() {
|
|
1904
|
+
return new ke(2);
|
|
1905
|
+
},
|
|
1906
|
+
renderer: De,
|
|
1907
|
+
styles: /* @__PURE__ */ e((e) => `
|
|
1908
|
+
${Ae(e)}
|
|
1816
1909
|
defs [id$="-barbEnd"] {
|
|
1817
1910
|
fill: ${e.transitionColor};
|
|
1818
1911
|
stroke: ${e.transitionColor};
|
|
@@ -2037,6 +2130,10 @@ g.stateGroup line {
|
|
|
2037
2130
|
ry: ${e.radius}px;
|
|
2038
2131
|
filter: ${e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${e.svgId}-drop-shadow)`) : "none"}
|
|
2039
2132
|
}
|
|
2040
|
-
`, "getStyles")
|
|
2133
|
+
`, "getStyles"),
|
|
2134
|
+
init: /* @__PURE__ */ e((e) => {
|
|
2135
|
+
e.state ||= {}, e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
2136
|
+
}, "init")
|
|
2137
|
+
};
|
|
2041
2138
|
//#endregion
|
|
2042
|
-
export {
|
|
2139
|
+
export { je as diagram };
|