@aiquants/markdown 1.2.0 → 1.2.1
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/{_basePickBy-DGJ-oAbP.js → _basePickBy-BAf9TBeP.js} +3 -3
- package/dist/{_basePickBy-DGJ-oAbP.js.map → _basePickBy-BAf9TBeP.js.map} +1 -1
- package/dist/{_basePickBy-CJeGUXFc.cjs → _basePickBy-DJNTCiEl.cjs} +2 -2
- package/dist/{_basePickBy-CJeGUXFc.cjs.map → _basePickBy-DJNTCiEl.cjs.map} +1 -1
- package/dist/{_baseUniq-DmmwqgFi.cjs → _baseUniq-oBgpBLxN.cjs} +2 -2
- package/dist/{_baseUniq-DmmwqgFi.cjs.map → _baseUniq-oBgpBLxN.cjs.map} +1 -1
- package/dist/{_baseUniq-zkWo_1rp.js → _baseUniq-xpz62V3M.js} +2 -2
- package/dist/{_baseUniq-zkWo_1rp.js.map → _baseUniq-xpz62V3M.js.map} +1 -1
- package/dist/{arc-Do8CANbr.js → arc-Cdp6A92J.js} +2 -2
- package/dist/{arc-Do8CANbr.js.map → arc-Cdp6A92J.js.map} +1 -1
- package/dist/{arc-DAUA8YnG.cjs → arc-Df6554Se.cjs} +2 -2
- package/dist/{arc-DAUA8YnG.cjs.map → arc-Df6554Se.cjs.map} +1 -1
- package/dist/architecture-U656AL7Q-BFneEPaI.js +6 -0
- package/dist/architecture-U656AL7Q-BFneEPaI.js.map +1 -0
- package/dist/{architecture-U656AL7Q-Bk_BCN3G.cjs → architecture-U656AL7Q-DXWeTGXD.cjs} +2 -2
- package/dist/architecture-U656AL7Q-DXWeTGXD.cjs.map +1 -0
- package/dist/{architectureDiagram-VXUJARFQ-C3_AqxrC.js → architectureDiagram-VXUJARFQ-DrV8Y7rq.js} +4 -4
- package/dist/{architectureDiagram-VXUJARFQ-C3_AqxrC.js.map → architectureDiagram-VXUJARFQ-DrV8Y7rq.js.map} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-eU-3tnCG.cjs → architectureDiagram-VXUJARFQ-fEGjFbVc.cjs} +2 -2
- package/dist/{architectureDiagram-VXUJARFQ-eU-3tnCG.cjs.map → architectureDiagram-VXUJARFQ-fEGjFbVc.cjs.map} +1 -1
- package/dist/{blockDiagram-VD42YOAC-DI0rOR-X.js → blockDiagram-VD42YOAC-Dj9PGaUA.js} +6 -6
- package/dist/{blockDiagram-VD42YOAC-DI0rOR-X.js.map → blockDiagram-VD42YOAC-Dj9PGaUA.js.map} +1 -1
- package/dist/{blockDiagram-VD42YOAC-CnsJKAH7.cjs → blockDiagram-VD42YOAC-DnIarP1n.cjs} +2 -2
- package/dist/{blockDiagram-VD42YOAC-CnsJKAH7.cjs.map → blockDiagram-VD42YOAC-DnIarP1n.cjs.map} +1 -1
- package/dist/{c4Diagram-YG6GDRKO-CCs9MC7P.cjs → c4Diagram-YG6GDRKO-B1rWXPSq.cjs} +2 -2
- package/dist/{c4Diagram-YG6GDRKO-CCs9MC7P.cjs.map → c4Diagram-YG6GDRKO-B1rWXPSq.cjs.map} +1 -1
- package/dist/{c4Diagram-YG6GDRKO-D51PeXS6.js → c4Diagram-YG6GDRKO-DT2-syeR.js} +3 -3
- package/dist/{c4Diagram-YG6GDRKO-D51PeXS6.js.map → c4Diagram-YG6GDRKO-DT2-syeR.js.map} +1 -1
- package/dist/channel-BIIdftI1.js +6 -0
- package/dist/{channel-KAvJVFiL.js.map → channel-BIIdftI1.js.map} +1 -1
- package/dist/channel-BOYh8w_6.cjs +2 -0
- package/dist/{channel-BaCsO_0A.cjs.map → channel-BOYh8w_6.cjs.map} +1 -1
- package/dist/{chunk-4BX2VUAB-RTUYNJ4N.js → chunk-4BX2VUAB-3m-kTV7c.js} +2 -2
- package/dist/{chunk-4BX2VUAB-RTUYNJ4N.js.map → chunk-4BX2VUAB-3m-kTV7c.js.map} +1 -1
- package/dist/{chunk-4BX2VUAB-CNm_p9u2.cjs → chunk-4BX2VUAB-Ccl0XCCb.cjs} +2 -2
- package/dist/{chunk-4BX2VUAB-CNm_p9u2.cjs.map → chunk-4BX2VUAB-Ccl0XCCb.cjs.map} +1 -1
- package/dist/{chunk-55IACEB6-Dw6JfE_R.js → chunk-55IACEB6-DFPiIUqS.js} +2 -2
- package/dist/{chunk-55IACEB6-Dw6JfE_R.js.map → chunk-55IACEB6-DFPiIUqS.js.map} +1 -1
- package/dist/{chunk-55IACEB6-yuqRdS6I.cjs → chunk-55IACEB6-DF_nOrnG.cjs} +2 -2
- package/dist/{chunk-55IACEB6-yuqRdS6I.cjs.map → chunk-55IACEB6-DF_nOrnG.cjs.map} +1 -1
- package/dist/{chunk-B4BG7PRW-Cu2KwVXL.js → chunk-B4BG7PRW--ytg5kTi.js} +5 -5
- package/dist/{chunk-B4BG7PRW-Cu2KwVXL.js.map → chunk-B4BG7PRW--ytg5kTi.js.map} +1 -1
- package/dist/{chunk-B4BG7PRW-5i9HWRdu.cjs → chunk-B4BG7PRW-YJstgnSU.cjs} +2 -2
- package/dist/{chunk-B4BG7PRW-5i9HWRdu.cjs.map → chunk-B4BG7PRW-YJstgnSU.cjs.map} +1 -1
- package/dist/{chunk-DI55MBZ5-D9r0NVIn.js → chunk-DI55MBZ5-BmCH9GqB.js} +4 -4
- package/dist/{chunk-DI55MBZ5-D9r0NVIn.js.map → chunk-DI55MBZ5-BmCH9GqB.js.map} +1 -1
- package/dist/{chunk-DI55MBZ5-RM4QxlLs.cjs → chunk-DI55MBZ5-Caqpkdhr.cjs} +2 -2
- package/dist/{chunk-DI55MBZ5-RM4QxlLs.cjs.map → chunk-DI55MBZ5-Caqpkdhr.cjs.map} +1 -1
- package/dist/{chunk-FMBD7UC4-BF1L4E3r.cjs → chunk-FMBD7UC4-BzNDH5v8.cjs} +2 -2
- package/dist/{chunk-FMBD7UC4-BF1L4E3r.cjs.map → chunk-FMBD7UC4-BzNDH5v8.cjs.map} +1 -1
- package/dist/{chunk-FMBD7UC4-DCOkUt8T.js → chunk-FMBD7UC4-C-LfOPnM.js} +2 -2
- package/dist/{chunk-FMBD7UC4-DCOkUt8T.js.map → chunk-FMBD7UC4-C-LfOPnM.js.map} +1 -1
- package/dist/{chunk-QN33PNHL-D02O-uMO.cjs → chunk-QN33PNHL-CTPfHl1X.cjs} +2 -2
- package/dist/{chunk-QN33PNHL-D02O-uMO.cjs.map → chunk-QN33PNHL-CTPfHl1X.cjs.map} +1 -1
- package/dist/{chunk-QN33PNHL-hzQ0yPiA.js → chunk-QN33PNHL-DusPZf-g.js} +2 -2
- package/dist/{chunk-QN33PNHL-hzQ0yPiA.js.map → chunk-QN33PNHL-DusPZf-g.js.map} +1 -1
- package/dist/{chunk-QZHKN3VN-BmkTtKro.cjs → chunk-QZHKN3VN-CmkPBu4c.cjs} +2 -2
- package/dist/{chunk-QZHKN3VN-BmkTtKro.cjs.map → chunk-QZHKN3VN-CmkPBu4c.cjs.map} +1 -1
- package/dist/{chunk-QZHKN3VN-B6f2M6cP.js → chunk-QZHKN3VN-rE0ieZJm.js} +2 -2
- package/dist/{chunk-QZHKN3VN-B6f2M6cP.js.map → chunk-QZHKN3VN-rE0ieZJm.js.map} +1 -1
- package/dist/{chunk-TZMSLE5B-kcQjV4u6.cjs → chunk-TZMSLE5B-BTD_Ddmh.cjs} +2 -2
- package/dist/{chunk-TZMSLE5B-kcQjV4u6.cjs.map → chunk-TZMSLE5B-BTD_Ddmh.cjs.map} +1 -1
- package/dist/{chunk-TZMSLE5B-CMgHccah.js → chunk-TZMSLE5B-J8F8d3GW.js} +2 -2
- package/dist/{chunk-TZMSLE5B-CMgHccah.js.map → chunk-TZMSLE5B-J8F8d3GW.js.map} +1 -1
- package/dist/{classDiagram-2ON5EDUG-Cr5EKsK5.js → classDiagram-2ON5EDUG-Br3OQG53.js} +3 -3
- package/dist/{classDiagram-2ON5EDUG-Cr5EKsK5.js.map → classDiagram-2ON5EDUG-Br3OQG53.js.map} +1 -1
- package/dist/{classDiagram-2ON5EDUG-D8v286nZ.cjs → classDiagram-2ON5EDUG-Ce7MrBcE.cjs} +2 -2
- package/dist/{classDiagram-2ON5EDUG-D8v286nZ.cjs.map → classDiagram-2ON5EDUG-Ce7MrBcE.cjs.map} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-Cr5EKsK5.js → classDiagram-v2-WZHVMYZB-Br3OQG53.js} +3 -3
- package/dist/{classDiagram-v2-WZHVMYZB-Cr5EKsK5.js.map → classDiagram-v2-WZHVMYZB-Br3OQG53.js.map} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-D8v286nZ.cjs → classDiagram-v2-WZHVMYZB-Ce7MrBcE.cjs} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-D8v286nZ.cjs.map → classDiagram-v2-WZHVMYZB-Ce7MrBcE.cjs.map} +1 -1
- package/dist/clone-CCIqcM5Y.js +9 -0
- package/dist/{clone-BxPvQEOl.js.map → clone-CCIqcM5Y.js.map} +1 -1
- package/dist/clone-CvQKcI6r.cjs +2 -0
- package/dist/{clone-Qa8ZMMKU.cjs.map → clone-CvQKcI6r.cjs.map} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-BJ3wg7KS.cjs → cose-bilkent-S5V4N54A-CYDFYlZ6.cjs} +2 -2
- package/dist/{cose-bilkent-S5V4N54A-BJ3wg7KS.cjs.map → cose-bilkent-S5V4N54A-CYDFYlZ6.cjs.map} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-B0RvLg-Z.js → cose-bilkent-S5V4N54A-fU3j-gz-.js} +2 -2
- package/dist/{cose-bilkent-S5V4N54A-B0RvLg-Z.js.map → cose-bilkent-S5V4N54A-fU3j-gz-.js.map} +1 -1
- package/dist/{dagre-6UL2VRFP--PuHyvOJ.js → dagre-6UL2VRFP-BkkuZmWn.js} +7 -7
- package/dist/{dagre-6UL2VRFP--PuHyvOJ.js.map → dagre-6UL2VRFP-BkkuZmWn.js.map} +1 -1
- package/dist/{dagre-6UL2VRFP-BDyQ7zKw.cjs → dagre-6UL2VRFP-CrTlcO8O.cjs} +2 -2
- package/dist/{dagre-6UL2VRFP-BDyQ7zKw.cjs.map → dagre-6UL2VRFP-CrTlcO8O.cjs.map} +1 -1
- package/dist/{diagram-PSM6KHXK-u5RdYoub.cjs → diagram-PSM6KHXK-9wHp_OsU.cjs} +2 -2
- package/dist/{diagram-PSM6KHXK-u5RdYoub.cjs.map → diagram-PSM6KHXK-9wHp_OsU.cjs.map} +1 -1
- package/dist/{diagram-PSM6KHXK-B57QodqD.js → diagram-PSM6KHXK-CumMPbYj.js} +5 -5
- package/dist/{diagram-PSM6KHXK-B57QodqD.js.map → diagram-PSM6KHXK-CumMPbYj.js.map} +1 -1
- package/dist/{diagram-QEK2KX5R-Da-pT7Ux.js → diagram-QEK2KX5R-BX73KNSg.js} +4 -4
- package/dist/{diagram-QEK2KX5R-Da-pT7Ux.js.map → diagram-QEK2KX5R-BX73KNSg.js.map} +1 -1
- package/dist/{diagram-QEK2KX5R-D1cueJAA.cjs → diagram-QEK2KX5R-BYqdFTnq.cjs} +2 -2
- package/dist/{diagram-QEK2KX5R-D1cueJAA.cjs.map → diagram-QEK2KX5R-BYqdFTnq.cjs.map} +1 -1
- package/dist/{diagram-S2PKOQOG-BvfG2rAS.js → diagram-S2PKOQOG-DJ-724qx.js} +4 -4
- package/dist/{diagram-S2PKOQOG-BvfG2rAS.js.map → diagram-S2PKOQOG-DJ-724qx.js.map} +1 -1
- package/dist/{diagram-S2PKOQOG-DpAD-cB_.cjs → diagram-S2PKOQOG-DonScLpF.cjs} +2 -2
- package/dist/{diagram-S2PKOQOG-DpAD-cB_.cjs.map → diagram-S2PKOQOG-DonScLpF.cjs.map} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-WM-jEF2o.js → erDiagram-Q2GNP2WA-C4m3Pm5f.js} +5 -5
- package/dist/{erDiagram-Q2GNP2WA-WM-jEF2o.js.map → erDiagram-Q2GNP2WA-C4m3Pm5f.js.map} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-ohQILmdi.cjs → erDiagram-Q2GNP2WA-DC-tMGdk.cjs} +2 -2
- package/dist/{erDiagram-Q2GNP2WA-ohQILmdi.cjs.map → erDiagram-Q2GNP2WA-DC-tMGdk.cjs.map} +1 -1
- package/dist/{flowDiagram-NV44I4VS-C_bxgg0e.cjs → flowDiagram-NV44I4VS-9k1QiKz5.cjs} +2 -2
- package/dist/{flowDiagram-NV44I4VS-C_bxgg0e.cjs.map → flowDiagram-NV44I4VS-9k1QiKz5.cjs.map} +1 -1
- package/dist/{flowDiagram-NV44I4VS-BCumxy_A.js → flowDiagram-NV44I4VS-DkG0D9cg.js} +6 -6
- package/dist/{flowDiagram-NV44I4VS-BCumxy_A.js.map → flowDiagram-NV44I4VS-DkG0D9cg.js.map} +1 -1
- package/dist/{ganttDiagram-JELNMOA3-Geq6x747.cjs → ganttDiagram-JELNMOA3-C1nojL1z.cjs} +2 -2
- package/dist/{ganttDiagram-JELNMOA3-Geq6x747.cjs.map → ganttDiagram-JELNMOA3-C1nojL1z.cjs.map} +1 -1
- package/dist/{ganttDiagram-JELNMOA3-Dr1NLren.js → ganttDiagram-JELNMOA3-gKhAoiqV.js} +3 -3
- package/dist/{ganttDiagram-JELNMOA3-Dr1NLren.js.map → ganttDiagram-JELNMOA3-gKhAoiqV.js.map} +1 -1
- package/dist/{gitGraph-F6HP7TQM-BeOJ-IAj.cjs → gitGraph-F6HP7TQM-Bo0E-pHW.cjs} +2 -2
- package/dist/gitGraph-F6HP7TQM-Bo0E-pHW.cjs.map +1 -0
- package/dist/gitGraph-F6HP7TQM-CHoN29cY.js +6 -0
- package/dist/gitGraph-F6HP7TQM-CHoN29cY.js.map +1 -0
- package/dist/{gitGraphDiagram-NY62KEGX-BLjyc1Wj.js → gitGraphDiagram-NY62KEGX-D3XBs94x.js} +5 -5
- package/dist/{gitGraphDiagram-NY62KEGX-BLjyc1Wj.js.map → gitGraphDiagram-NY62KEGX-D3XBs94x.js.map} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-DzsNlXbq.cjs → gitGraphDiagram-NY62KEGX-YDRakP-_.cjs} +2 -2
- package/dist/{gitGraphDiagram-NY62KEGX-DzsNlXbq.cjs.map → gitGraphDiagram-NY62KEGX-YDRakP-_.cjs.map} +1 -1
- package/dist/{graph-BlkDovJY.js → graph-BasevfV_.js} +3 -3
- package/dist/{graph-BlkDovJY.js.map → graph-BasevfV_.js.map} +1 -1
- package/dist/{graph-afCf5ZM1.cjs → graph-rSA-aI4s.cjs} +2 -2
- package/dist/{graph-afCf5ZM1.cjs.map → graph-rSA-aI4s.cjs.map} +1 -1
- package/dist/{index-CPFTnxie.cjs → index-BDajGLDt.cjs} +50 -50
- package/dist/index-BDajGLDt.cjs.map +1 -0
- package/dist/{index-DBVR6GYe.js → index-caKpab-1.js} +2423 -2408
- package/dist/index-caKpab-1.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{info-NVLQJR56-zgrtE1eV.cjs → info-NVLQJR56-C-3b-i8R.cjs} +2 -2
- package/dist/info-NVLQJR56-C-3b-i8R.cjs.map +1 -0
- package/dist/info-NVLQJR56-Ce9da4xt.js +6 -0
- package/dist/info-NVLQJR56-Ce9da4xt.js.map +1 -0
- package/dist/{infoDiagram-WHAUD3N6-e_6Fu7A3.cjs → infoDiagram-WHAUD3N6-BfyHsG_R.cjs} +2 -2
- package/dist/{infoDiagram-WHAUD3N6-e_6Fu7A3.cjs.map → infoDiagram-WHAUD3N6-BfyHsG_R.cjs.map} +1 -1
- package/dist/{infoDiagram-WHAUD3N6-DZlGk8Eu.js → infoDiagram-WHAUD3N6-DVElQ6XQ.js} +3 -3
- package/dist/{infoDiagram-WHAUD3N6-DZlGk8Eu.js.map → infoDiagram-WHAUD3N6-DVElQ6XQ.js.map} +1 -1
- package/dist/{journeyDiagram-XKPGCS4Q-FOnZHY81.js → journeyDiagram-XKPGCS4Q-BEyBxLEE.js} +5 -5
- package/dist/{journeyDiagram-XKPGCS4Q-FOnZHY81.js.map → journeyDiagram-XKPGCS4Q-BEyBxLEE.js.map} +1 -1
- package/dist/{journeyDiagram-XKPGCS4Q-DWNhUx2B.cjs → journeyDiagram-XKPGCS4Q-DfM_UFvc.cjs} +2 -2
- package/dist/{journeyDiagram-XKPGCS4Q-DWNhUx2B.cjs.map → journeyDiagram-XKPGCS4Q-DfM_UFvc.cjs.map} +1 -1
- package/dist/{kanban-definition-3W4ZIXB7-BKCGrp4d.js → kanban-definition-3W4ZIXB7-C1c6hUl-.js} +3 -3
- package/dist/{kanban-definition-3W4ZIXB7-BKCGrp4d.js.map → kanban-definition-3W4ZIXB7-C1c6hUl-.js.map} +1 -1
- package/dist/{kanban-definition-3W4ZIXB7-DmXZ76_s.cjs → kanban-definition-3W4ZIXB7-mqwusAZJ.cjs} +2 -2
- package/dist/{kanban-definition-3W4ZIXB7-DmXZ76_s.cjs.map → kanban-definition-3W4ZIXB7-mqwusAZJ.cjs.map} +1 -1
- package/dist/{layout-CQ55vGEs.cjs → layout-C9eO5Nxr.cjs} +2 -2
- package/dist/{layout-CQ55vGEs.cjs.map → layout-C9eO5Nxr.cjs.map} +1 -1
- package/dist/{layout-BM8fgH_I.js → layout-DR8dbrKj.js} +5 -5
- package/dist/{layout-BM8fgH_I.js.map → layout-DR8dbrKj.js.map} +1 -1
- package/dist/{linear-rySziqxM.js → linear-DKLfd3Ph.js} +2 -2
- package/dist/{linear-rySziqxM.js.map → linear-DKLfd3Ph.js.map} +1 -1
- package/dist/{linear-Ck5hTmin.cjs → linear-jbmUvWu5.cjs} +2 -2
- package/dist/{linear-Ck5hTmin.cjs.map → linear-jbmUvWu5.cjs.map} +1 -1
- package/dist/{mermaid-parser.core-DdgAu_8I.js → mermaid-parser.core-CJwfr-Rn.js} +12 -12
- package/dist/{mermaid-parser.core-DdgAu_8I.js.map → mermaid-parser.core-CJwfr-Rn.js.map} +1 -1
- package/dist/{mermaid-parser.core-5P84tW26.cjs → mermaid-parser.core-vI3z9vjp.cjs} +3 -3
- package/dist/{mermaid-parser.core-5P84tW26.cjs.map → mermaid-parser.core-vI3z9vjp.cjs.map} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-DRqIC1aB.cjs → mindmap-definition-VGOIOE7T-BqeRBDHB.cjs} +2 -2
- package/dist/{mindmap-definition-VGOIOE7T-DRqIC1aB.cjs.map → mindmap-definition-VGOIOE7T-BqeRBDHB.cjs.map} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-DUR7ZFmn.js → mindmap-definition-VGOIOE7T-Bxh4mvAa.js} +4 -4
- package/dist/{mindmap-definition-VGOIOE7T-DUR7ZFmn.js.map → mindmap-definition-VGOIOE7T-Bxh4mvAa.js.map} +1 -1
- package/dist/packet-BFZMPI3H-DTLQ86Yd.js +6 -0
- package/dist/packet-BFZMPI3H-DTLQ86Yd.js.map +1 -0
- package/dist/{packet-BFZMPI3H--8xo99vs.cjs → packet-BFZMPI3H-UUkqxMwx.cjs} +2 -2
- package/dist/packet-BFZMPI3H-UUkqxMwx.cjs.map +1 -0
- package/dist/{pie-7BOR55EZ-DMvSDGfH.cjs → pie-7BOR55EZ-6cd-l72R.cjs} +2 -2
- package/dist/pie-7BOR55EZ-6cd-l72R.cjs.map +1 -0
- package/dist/pie-7BOR55EZ-BPhniwXQ.js +6 -0
- package/dist/pie-7BOR55EZ-BPhniwXQ.js.map +1 -0
- package/dist/{pieDiagram-ADFJNKIX-BHrTl2Ns.js → pieDiagram-ADFJNKIX-E7NP2mWM.js} +5 -5
- package/dist/{pieDiagram-ADFJNKIX-BHrTl2Ns.js.map → pieDiagram-ADFJNKIX-E7NP2mWM.js.map} +1 -1
- package/dist/{pieDiagram-ADFJNKIX-D3u8fH01.cjs → pieDiagram-ADFJNKIX-oBQctDBF.cjs} +2 -2
- package/dist/{pieDiagram-ADFJNKIX-D3u8fH01.cjs.map → pieDiagram-ADFJNKIX-oBQctDBF.cjs.map} +1 -1
- package/dist/{quadrantDiagram-AYHSOK5B-Dbi7OKEt.js → quadrantDiagram-AYHSOK5B-BI6EBqf1.js} +3 -3
- package/dist/{quadrantDiagram-AYHSOK5B-Dbi7OKEt.js.map → quadrantDiagram-AYHSOK5B-BI6EBqf1.js.map} +1 -1
- package/dist/{quadrantDiagram-AYHSOK5B-C2Bzy_90.cjs → quadrantDiagram-AYHSOK5B-BdynjtBz.cjs} +2 -2
- package/dist/{quadrantDiagram-AYHSOK5B-C2Bzy_90.cjs.map → quadrantDiagram-AYHSOK5B-BdynjtBz.cjs.map} +1 -1
- package/dist/{radar-NHE76QYJ-Cc5Nvs_h.cjs → radar-NHE76QYJ-BEdxIU3J.cjs} +2 -2
- package/dist/radar-NHE76QYJ-BEdxIU3J.cjs.map +1 -0
- package/dist/radar-NHE76QYJ-BGiQ-836.js +6 -0
- package/dist/radar-NHE76QYJ-BGiQ-836.js.map +1 -0
- package/dist/{requirementDiagram-UZGBJVZJ-B7DlOlwl.js → requirementDiagram-UZGBJVZJ-BaCeaYOD.js} +4 -4
- package/dist/{requirementDiagram-UZGBJVZJ-B7DlOlwl.js.map → requirementDiagram-UZGBJVZJ-BaCeaYOD.js.map} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-CC6A_LQI.cjs → requirementDiagram-UZGBJVZJ-DRt-Beuk.cjs} +2 -2
- package/dist/{requirementDiagram-UZGBJVZJ-CC6A_LQI.cjs.map → requirementDiagram-UZGBJVZJ-DRt-Beuk.cjs.map} +1 -1
- package/dist/{sankeyDiagram-TZEHDZUN-BnHCo-Mn.cjs → sankeyDiagram-TZEHDZUN-BRlPGxPq.cjs} +2 -2
- package/dist/{sankeyDiagram-TZEHDZUN-BnHCo-Mn.cjs.map → sankeyDiagram-TZEHDZUN-BRlPGxPq.cjs.map} +1 -1
- package/dist/{sankeyDiagram-TZEHDZUN-DpEUf9Vo.js → sankeyDiagram-TZEHDZUN-adBXJ70i.js} +2 -2
- package/dist/{sankeyDiagram-TZEHDZUN-DpEUf9Vo.js.map → sankeyDiagram-TZEHDZUN-adBXJ70i.js.map} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-CjEh0r36.js → sequenceDiagram-WL72ISMW-BjjmX7GP.js} +4 -4
- package/dist/{sequenceDiagram-WL72ISMW-CjEh0r36.js.map → sequenceDiagram-WL72ISMW-BjjmX7GP.js.map} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-Bl6_BUzR.cjs → sequenceDiagram-WL72ISMW-Dc4K__VG.cjs} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-Bl6_BUzR.cjs.map → sequenceDiagram-WL72ISMW-Dc4K__VG.cjs.map} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-DSb4cefI.js → stateDiagram-FKZM4ZOC-Dvbcwtvr.js} +5 -5
- package/dist/{stateDiagram-FKZM4ZOC-DSb4cefI.js.map → stateDiagram-FKZM4ZOC-Dvbcwtvr.js.map} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-DKdLEfTU.cjs → stateDiagram-FKZM4ZOC-Er8_CIvC.cjs} +2 -2
- package/dist/{stateDiagram-FKZM4ZOC-DKdLEfTU.cjs.map → stateDiagram-FKZM4ZOC-Er8_CIvC.cjs.map} +1 -1
- package/dist/{stateDiagram-v2-4FDKWEC3-BYtBH478.cjs → stateDiagram-v2-4FDKWEC3-BYc_jC0C.cjs} +2 -2
- package/dist/{stateDiagram-v2-4FDKWEC3-BYtBH478.cjs.map → stateDiagram-v2-4FDKWEC3-BYc_jC0C.cjs.map} +1 -1
- package/dist/{stateDiagram-v2-4FDKWEC3-ByfhcH6w.js → stateDiagram-v2-4FDKWEC3-Cpy_Ydpw.js} +3 -3
- package/dist/{stateDiagram-v2-4FDKWEC3-ByfhcH6w.js.map → stateDiagram-v2-4FDKWEC3-Cpy_Ydpw.js.map} +1 -1
- package/dist/{timeline-definition-IT6M3QCI-D_WhTqG-.js → timeline-definition-IT6M3QCI-4iCfKsS1.js} +3 -3
- package/dist/{timeline-definition-IT6M3QCI-D_WhTqG-.js.map → timeline-definition-IT6M3QCI-4iCfKsS1.js.map} +1 -1
- package/dist/{timeline-definition-IT6M3QCI-B1leptlP.cjs → timeline-definition-IT6M3QCI-DE5g5JfV.cjs} +2 -2
- package/dist/{timeline-definition-IT6M3QCI-B1leptlP.cjs.map → timeline-definition-IT6M3QCI-DE5g5JfV.cjs.map} +1 -1
- package/dist/{treemap-KMMF4GRG-C3kLUDBv.cjs → treemap-KMMF4GRG-YLlgu5sk.cjs} +2 -2
- package/dist/treemap-KMMF4GRG-YLlgu5sk.cjs.map +1 -0
- package/dist/treemap-KMMF4GRG-xH3W-9YM.js +6 -0
- package/dist/treemap-KMMF4GRG-xH3W-9YM.js.map +1 -0
- package/dist/{xychartDiagram-PRI3JC2R-ClYujusC.cjs → xychartDiagram-PRI3JC2R-B83XR1RX.cjs} +2 -2
- package/dist/{xychartDiagram-PRI3JC2R-ClYujusC.cjs.map → xychartDiagram-PRI3JC2R-B83XR1RX.cjs.map} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-DavmnzBp.js → xychartDiagram-PRI3JC2R-By_sU7ew.js} +3 -3
- package/dist/{xychartDiagram-PRI3JC2R-DavmnzBp.js.map → xychartDiagram-PRI3JC2R-By_sU7ew.js.map} +1 -1
- package/package.json +26 -27
- package/dist/architecture-U656AL7Q-Bk_BCN3G.cjs.map +0 -1
- package/dist/architecture-U656AL7Q-Brw03iK0.js +0 -6
- package/dist/architecture-U656AL7Q-Brw03iK0.js.map +0 -1
- package/dist/channel-BaCsO_0A.cjs +0 -2
- package/dist/channel-KAvJVFiL.js +0 -6
- package/dist/clone-BxPvQEOl.js +0 -9
- package/dist/clone-Qa8ZMMKU.cjs +0 -2
- package/dist/gitGraph-F6HP7TQM-BeOJ-IAj.cjs.map +0 -1
- package/dist/gitGraph-F6HP7TQM-CxoMWXoZ.js +0 -6
- package/dist/gitGraph-F6HP7TQM-CxoMWXoZ.js.map +0 -1
- package/dist/index-CPFTnxie.cjs.map +0 -1
- package/dist/index-DBVR6GYe.js.map +0 -1
- package/dist/info-NVLQJR56-BkEWtnrf.js +0 -6
- package/dist/info-NVLQJR56-BkEWtnrf.js.map +0 -1
- package/dist/info-NVLQJR56-zgrtE1eV.cjs.map +0 -1
- package/dist/packet-BFZMPI3H--8xo99vs.cjs.map +0 -1
- package/dist/packet-BFZMPI3H-BiLhYuSA.js +0 -6
- package/dist/packet-BFZMPI3H-BiLhYuSA.js.map +0 -1
- package/dist/pie-7BOR55EZ-DMvSDGfH.cjs.map +0 -1
- package/dist/pie-7BOR55EZ-Dsi8HblZ.js +0 -6
- package/dist/pie-7BOR55EZ-Dsi8HblZ.js.map +0 -1
- package/dist/radar-NHE76QYJ-Cc5Nvs_h.cjs.map +0 -1
- package/dist/radar-NHE76QYJ-tUFyopn8.js +0 -6
- package/dist/radar-NHE76QYJ-tUFyopn8.js.map +0 -1
- package/dist/treemap-KMMF4GRG-C3kLUDBv.cjs.map +0 -1
- package/dist/treemap-KMMF4GRG-Dp0HUz7N.js +0 -6
- package/dist/treemap-KMMF4GRG-Dp0HUz7N.js.map +0 -1
package/dist/{gitGraphDiagram-NY62KEGX-DzsNlXbq.cjs → gitGraphDiagram-NY62KEGX-YDRakP-_.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./chunk-4BX2VUAB-CNm_p9u2.cjs"),j=require("./chunk-QZHKN3VN-BmkTtKro.cjs"),s=require("./index-CPFTnxie.cjs"),K=require("./mermaid-parser.core-5P84tW26.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=s.defaultConfig_default.gitGraph,L=s.__name(()=>s.cleanAndMerge({...U,...s.getConfig().gitGraph}),"getConfig"),i=new j.ImperativeState(()=>{const t=L(),e=t.mainBranchName,n=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:n}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function G(){return s.random({length:7})}s.__name(G,"getID");function H(t,e){const n=Object.create(null);return t.reduce((o,r)=>{const a=e(r);return n[a]||(n[a]=!0,o.push(r)),o},[])}s.__name(H,"uniqBy");var Y=s.__name(function(t){i.records.direction=t},"setDirection"),V=s.__name(function(t){s.log.debug("options str",t),t=t?.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){s.log.error("error while parsing gitGraph options",e.message)}},"setOptions"),X=s.__name(function(){return i.records.options},"getOptions"),Q=s.__name(function(t){let e=t.msg,n=t.id;const o=t.type;let r=t.tags;s.log.info("commit",e,n,o,r),s.log.debug("Entering commit:",e,n,o,r);const a=L();n=s.common_default.sanitizeText(n,a),e=s.common_default.sanitizeText(e,a),r=r?.map(c=>s.common_default.sanitizeText(c,a));const l={id:n||i.records.seq+"-"+G(),message:e,seq:i.records.seq++,type:o??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=l,s.log.info("main branch",a.mainBranchName),i.records.commits.has(l.id)&&s.log.warn(`Commit ID ${l.id} already exists`),i.records.commits.set(l.id,l),i.records.branches.set(i.records.currBranch,l.id),s.log.debug("in pushCommit "+l.id)},"commit"),J=s.__name(function(t){let e=t.name;const n=t.order;if(e=s.common_default.sanitizeText(e,L()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:n}),D(e),s.log.debug("in createBranch")},"branch"),Z=s.__name(t=>{let e=t.branch,n=t.id;const o=t.type,r=t.tags,a=L();e=s.common_default.sanitizeText(e,a),n&&(n=s.common_default.sanitizeText(n,a));const l=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),f=l?i.records.commits.get(l):void 0,h=c?i.records.commits.get(c):void 0;if(f&&h&&f.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(f===void 0||!f){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(h===void 0||!h){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if(f===h){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(n&&i.records.commits.has(n)){const d=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom id");throw d.hash={text:`merge ${e} ${n} ${o} ${r?.join(" ")}`,token:`merge ${e} ${n} ${o} ${r?.join(" ")}`,expected:[`merge ${e} ${n}_UNIQUE ${o} ${r?.join(" ")}`]},d}const $=c||"",g={id:n||`${i.records.seq}-${G()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,$],branch:i.records.currBranch,type:x.MERGE,customType:o,customId:!!n,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),s.log.debug(i.records.branches),s.log.debug("in mergeBranch")},"merge"),ee=s.__name(function(t){let e=t.id,n=t.targetId,o=t.tags,r=t.parent;s.log.debug("Entering cherryPick:",e,n,o);const a=L();if(e=s.common_default.sanitizeText(e,a),n=s.common_default.sanitizeText(n,a),o=o?.map(f=>s.common_default.sanitizeText(f,a)),r=s.common_default.sanitizeText(r,a),!e||!i.records.commits.has(e)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(e);if(l===void 0||!l)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(l.parents)&&l.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=l.branch;if(l.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||!i.records.commits.has(n)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const f=i.records.branches.get(i.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const h=i.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const $={id:i.records.seq+"-"+G(),message:`cherry-picked ${l?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,l.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${l.id}${l.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=$,i.records.commits.set($.id,$),i.records.branches.set(i.records.currBranch,$.id),s.log.debug(i.records.branches),s.log.debug("in cherryPick")}},"cherryPick"),D=s.__name(function(t){if(t=s.common_default.sanitizeText(t,L()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,n){const o=t.indexOf(e);o===-1?t.push(n):t.splice(o,1,n)}s.__name(A,"upsert");function q(t){const e=t.reduce((r,a)=>r.seq>a.seq?r:a,t[0]);let n="";t.forEach(function(r){r===e?n+=" *":n+=" |"});const o=[n,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&o.push(r);if(s.log.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=H(t,r=>r.id),q(t)}s.__name(q,"prettyPrintCommitHistory");var re=s.__name(function(){s.log.debug(i.records.commits);const t=N()[0];q([t])},"prettyPrint"),te=s.__name(function(){i.reset(),s.clear()},"clear"),ae=s.__name(function(){return[...i.records.branchConfig.values()].map((e,n)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${n}`)}).sort((e,n)=>(e.order??0)-(n.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ne=s.__name(function(){return i.records.branches},"getBranches"),se=s.__name(function(){return i.records.commits},"getCommits"),N=s.__name(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){s.log.debug(e.id)}),t.sort((e,n)=>e.seq-n.seq),t},"getCommitsArray"),oe=s.__name(function(){return i.records.currBranch},"getCurrentBranch"),ce=s.__name(function(){return i.records.direction},"getDirection"),ie=s.__name(function(){return i.records.head},"getHead"),z={commitType:x,getConfig:L,setDirection:Y,setOptions:V,getOptions:X,commit:Q,branch:J,merge:Z,cherryPick:ee,checkout:D,prettyPrint:re,clear:te,getBranchesAsObjArray:ae,getBranches:ne,getCommits:se,getCommitsArray:N,getCurrentBranch:oe,getDirection:ce,getHead:ie,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,getAccDescription:s.getAccDescription,setAccDescription:s.setAccDescription,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle},de=s.__name((t,e)=>{W.populateCommonDb(t,e),t.dir&&e.setDirection(t.dir);for(const n of t.statements)le(n,e)},"populate"),le=s.__name((t,e)=>{const o={Commit:s.__name(r=>e.commit(he(r)),"Commit"),Branch:s.__name(r=>e.branch($e(r)),"Branch"),Merge:s.__name(r=>e.merge(fe(r)),"Merge"),Checkout:s.__name(r=>e.checkout(ge(r)),"Checkout"),CherryPicking:s.__name(r=>e.cherryPick(ye(r)),"CherryPicking")}[t.$type];o?o(t):s.log.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),he=s.__name(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),$e=s.__name(t=>({name:t.name,order:t.order??0}),"parseBranch"),fe=s.__name(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),ge=s.__name(t=>t.branch,"parseCheckout"),ye=s.__name(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),ue={parse:s.__name(async t=>{const e=await K.parse("gitGraph",t);s.log.debug(e),de(e,z)},"parse")},me=s.getConfig2(),_=me?.gitGraph,E=10,T=40,w=4,v=2,B=8,p=new Map,b=new Map,I=30,k=new Map,R=[],C=0,u="LR",xe=s.__name(()=>{p.clear(),b.clear(),k.clear(),C=0,R=[],u="LR"},"clear"),F=s.__name(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(o=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=o.trim(),e.appendChild(r)}),e},"drawText"),S=s.__name(t=>{let e,n,o;return u==="BT"?(n=s.__name((r,a)=>r<=a,"comparisonFunc"),o=1/0):(n=s.__name((r,a)=>r>=a,"comparisonFunc"),o=0),t.forEach(r=>{const a=u==="TB"||u=="BT"?b.get(r)?.y:b.get(r)?.x;a!==void 0&&n(a,o)&&(e=r,o=a)}),e},"findClosestParent"),pe=s.__name(t=>{let e="",n=1/0;return t.forEach(o=>{const r=b.get(o).y;r<=n&&(e=o,n=r)}),e||void 0},"findClosestParentBT"),be=s.__name((t,e,n)=>{let o=n,r=n;const a=[];t.forEach(l=>{const c=e.get(l);if(!c)throw new Error(`Commit not found for key ${l}`);c.parents.length?(o=we(c),r=Math.max(o,r)):a.push(c),ve(c,o)}),o=r,a.forEach(l=>{Ce(l,o,n)}),t.forEach(l=>{const c=e.get(l);if(c?.parents.length){const f=pe(c.parents);o=b.get(f).y-T,o<=r&&(r=o);const h=p.get(c.branch).pos,$=o-E;b.set(c.id,{x:h,y:$})}})},"setParallelBTPos"),_e=s.__name(t=>{const e=S(t.parents.filter(o=>o!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const n=b.get(e)?.y;if(n===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return n},"findClosestParentPos"),we=s.__name(t=>_e(t)+T,"calculateCommitPosition"),ve=s.__name((t,e)=>{const n=p.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const o=n.pos,r=e+E;return b.set(t.id,{x:o,y:r}),{x:o,y:r}},"setCommitPosition"),Ce=s.__name((t,e,n)=>{const o=p.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const r=e+n,a=o.pos;b.set(t.id,{x:a,y:r})},"setRootPosition"),Ee=s.__name((t,e,n,o,r,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",n.x-10).attr("y",n.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%B} ${o}-outer`),t.append("rect").attr("x",n.x-6).attr("y",n.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%B} ${o}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x-3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x+3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x+3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x-3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`);else{const l=t.append("circle");if(l.attr("cx",n.x),l.attr("cy",n.y),l.attr("r",e.type===x.MERGE?9:10),l.attr("class",`commit ${e.id} commit${r%B}`),a===x.MERGE){const c=t.append("circle");c.attr("cx",n.x),c.attr("cy",n.y),c.attr("r",6),c.attr("class",`commit ${o} ${e.id} commit${r%B}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${n.x-5},${n.y-5}L${n.x+5},${n.y+5}M${n.x-5},${n.y+5}L${n.x+5},${n.y-5}`).attr("class",`commit ${o} ${e.id} commit${r%B}`)}},"drawCommitBullet"),Te=s.__name((t,e,n,o)=>{if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&_?.showCommitLabel){const r=t.append("g"),a=r.insert("rect").attr("class","commit-label-bkg"),l=r.append("text").attr("x",o).attr("y",n.y+25).attr("class","commit-label").text(e.id),c=l.node()?.getBBox();if(c&&(a.attr("x",n.posWithOffset-c.width/2-v).attr("y",n.y+13.5).attr("width",c.width+2*v).attr("height",c.height+2*v),u==="TB"||u==="BT"?(a.attr("x",n.x-(c.width+4*w+5)).attr("y",n.y-12),l.attr("x",n.x-(c.width+4*w)).attr("y",n.y+c.height-12)):l.attr("x",n.posWithOffset-c.width/2),_.rotateCommitLabel))if(u==="TB"||u==="BT")l.attr("transform","rotate(-45, "+n.x+", "+n.y+")"),a.attr("transform","rotate(-45, "+n.x+", "+n.y+")");else{const f=-7.5-(c.width+10)/25*9.5,h=10+c.width/25*8.5;r.attr("transform","translate("+f+", "+h+") rotate(-45, "+o+", "+n.y+")")}}},"drawCommitLabel"),Be=s.__name((t,e,n,o)=>{if(e.tags.length>0){let r=0,a=0,l=0;const c=[];for(const f of e.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",n.y-16-r).attr("class","tag-label").text(f),d=g.node()?.getBBox();if(!d)throw new Error("Tag bbox not found");a=Math.max(a,d.width),l=Math.max(l,d.height),g.attr("x",n.posWithOffset-d.width/2),c.push({tag:g,hole:$,rect:h,yOffset:r}),r+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of c){const d=l/2,y=n.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./chunk-4BX2VUAB-Ccl0XCCb.cjs"),j=require("./chunk-QZHKN3VN-CmkPBu4c.cjs"),s=require("./index-BDajGLDt.cjs"),K=require("./mermaid-parser.core-vI3z9vjp.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=s.defaultConfig_default.gitGraph,L=s.__name(()=>s.cleanAndMerge({...U,...s.getConfig().gitGraph}),"getConfig"),i=new j.ImperativeState(()=>{const t=L(),e=t.mainBranchName,n=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:n}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function G(){return s.random({length:7})}s.__name(G,"getID");function H(t,e){const n=Object.create(null);return t.reduce((o,r)=>{const a=e(r);return n[a]||(n[a]=!0,o.push(r)),o},[])}s.__name(H,"uniqBy");var Y=s.__name(function(t){i.records.direction=t},"setDirection"),V=s.__name(function(t){s.log.debug("options str",t),t=t?.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){s.log.error("error while parsing gitGraph options",e.message)}},"setOptions"),X=s.__name(function(){return i.records.options},"getOptions"),Q=s.__name(function(t){let e=t.msg,n=t.id;const o=t.type;let r=t.tags;s.log.info("commit",e,n,o,r),s.log.debug("Entering commit:",e,n,o,r);const a=L();n=s.common_default.sanitizeText(n,a),e=s.common_default.sanitizeText(e,a),r=r?.map(c=>s.common_default.sanitizeText(c,a));const l={id:n||i.records.seq+"-"+G(),message:e,seq:i.records.seq++,type:o??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=l,s.log.info("main branch",a.mainBranchName),i.records.commits.has(l.id)&&s.log.warn(`Commit ID ${l.id} already exists`),i.records.commits.set(l.id,l),i.records.branches.set(i.records.currBranch,l.id),s.log.debug("in pushCommit "+l.id)},"commit"),J=s.__name(function(t){let e=t.name;const n=t.order;if(e=s.common_default.sanitizeText(e,L()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:n}),D(e),s.log.debug("in createBranch")},"branch"),Z=s.__name(t=>{let e=t.branch,n=t.id;const o=t.type,r=t.tags,a=L();e=s.common_default.sanitizeText(e,a),n&&(n=s.common_default.sanitizeText(n,a));const l=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),f=l?i.records.commits.get(l):void 0,h=c?i.records.commits.get(c):void 0;if(f&&h&&f.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(f===void 0||!f){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(h===void 0||!h){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if(f===h){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(n&&i.records.commits.has(n)){const d=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom id");throw d.hash={text:`merge ${e} ${n} ${o} ${r?.join(" ")}`,token:`merge ${e} ${n} ${o} ${r?.join(" ")}`,expected:[`merge ${e} ${n}_UNIQUE ${o} ${r?.join(" ")}`]},d}const $=c||"",g={id:n||`${i.records.seq}-${G()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,$],branch:i.records.currBranch,type:x.MERGE,customType:o,customId:!!n,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),s.log.debug(i.records.branches),s.log.debug("in mergeBranch")},"merge"),ee=s.__name(function(t){let e=t.id,n=t.targetId,o=t.tags,r=t.parent;s.log.debug("Entering cherryPick:",e,n,o);const a=L();if(e=s.common_default.sanitizeText(e,a),n=s.common_default.sanitizeText(n,a),o=o?.map(f=>s.common_default.sanitizeText(f,a)),r=s.common_default.sanitizeText(r,a),!e||!i.records.commits.has(e)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(e);if(l===void 0||!l)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(l.parents)&&l.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=l.branch;if(l.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||!i.records.commits.has(n)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const f=i.records.branches.get(i.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const h=i.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const $={id:i.records.seq+"-"+G(),message:`cherry-picked ${l?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,l.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${l.id}${l.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=$,i.records.commits.set($.id,$),i.records.branches.set(i.records.currBranch,$.id),s.log.debug(i.records.branches),s.log.debug("in cherryPick")}},"cherryPick"),D=s.__name(function(t){if(t=s.common_default.sanitizeText(t,L()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,n){const o=t.indexOf(e);o===-1?t.push(n):t.splice(o,1,n)}s.__name(A,"upsert");function q(t){const e=t.reduce((r,a)=>r.seq>a.seq?r:a,t[0]);let n="";t.forEach(function(r){r===e?n+=" *":n+=" |"});const o=[n,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&o.push(r);if(s.log.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=H(t,r=>r.id),q(t)}s.__name(q,"prettyPrintCommitHistory");var re=s.__name(function(){s.log.debug(i.records.commits);const t=N()[0];q([t])},"prettyPrint"),te=s.__name(function(){i.reset(),s.clear()},"clear"),ae=s.__name(function(){return[...i.records.branchConfig.values()].map((e,n)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${n}`)}).sort((e,n)=>(e.order??0)-(n.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ne=s.__name(function(){return i.records.branches},"getBranches"),se=s.__name(function(){return i.records.commits},"getCommits"),N=s.__name(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){s.log.debug(e.id)}),t.sort((e,n)=>e.seq-n.seq),t},"getCommitsArray"),oe=s.__name(function(){return i.records.currBranch},"getCurrentBranch"),ce=s.__name(function(){return i.records.direction},"getDirection"),ie=s.__name(function(){return i.records.head},"getHead"),z={commitType:x,getConfig:L,setDirection:Y,setOptions:V,getOptions:X,commit:Q,branch:J,merge:Z,cherryPick:ee,checkout:D,prettyPrint:re,clear:te,getBranchesAsObjArray:ae,getBranches:ne,getCommits:se,getCommitsArray:N,getCurrentBranch:oe,getDirection:ce,getHead:ie,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,getAccDescription:s.getAccDescription,setAccDescription:s.setAccDescription,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle},de=s.__name((t,e)=>{W.populateCommonDb(t,e),t.dir&&e.setDirection(t.dir);for(const n of t.statements)le(n,e)},"populate"),le=s.__name((t,e)=>{const o={Commit:s.__name(r=>e.commit(he(r)),"Commit"),Branch:s.__name(r=>e.branch($e(r)),"Branch"),Merge:s.__name(r=>e.merge(fe(r)),"Merge"),Checkout:s.__name(r=>e.checkout(ge(r)),"Checkout"),CherryPicking:s.__name(r=>e.cherryPick(ye(r)),"CherryPicking")}[t.$type];o?o(t):s.log.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),he=s.__name(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),$e=s.__name(t=>({name:t.name,order:t.order??0}),"parseBranch"),fe=s.__name(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),ge=s.__name(t=>t.branch,"parseCheckout"),ye=s.__name(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),ue={parse:s.__name(async t=>{const e=await K.parse("gitGraph",t);s.log.debug(e),de(e,z)},"parse")},me=s.getConfig2(),_=me?.gitGraph,E=10,T=40,w=4,v=2,B=8,p=new Map,b=new Map,I=30,k=new Map,R=[],C=0,u="LR",xe=s.__name(()=>{p.clear(),b.clear(),k.clear(),C=0,R=[],u="LR"},"clear"),F=s.__name(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(o=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=o.trim(),e.appendChild(r)}),e},"drawText"),S=s.__name(t=>{let e,n,o;return u==="BT"?(n=s.__name((r,a)=>r<=a,"comparisonFunc"),o=1/0):(n=s.__name((r,a)=>r>=a,"comparisonFunc"),o=0),t.forEach(r=>{const a=u==="TB"||u=="BT"?b.get(r)?.y:b.get(r)?.x;a!==void 0&&n(a,o)&&(e=r,o=a)}),e},"findClosestParent"),pe=s.__name(t=>{let e="",n=1/0;return t.forEach(o=>{const r=b.get(o).y;r<=n&&(e=o,n=r)}),e||void 0},"findClosestParentBT"),be=s.__name((t,e,n)=>{let o=n,r=n;const a=[];t.forEach(l=>{const c=e.get(l);if(!c)throw new Error(`Commit not found for key ${l}`);c.parents.length?(o=we(c),r=Math.max(o,r)):a.push(c),ve(c,o)}),o=r,a.forEach(l=>{Ce(l,o,n)}),t.forEach(l=>{const c=e.get(l);if(c?.parents.length){const f=pe(c.parents);o=b.get(f).y-T,o<=r&&(r=o);const h=p.get(c.branch).pos,$=o-E;b.set(c.id,{x:h,y:$})}})},"setParallelBTPos"),_e=s.__name(t=>{const e=S(t.parents.filter(o=>o!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const n=b.get(e)?.y;if(n===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return n},"findClosestParentPos"),we=s.__name(t=>_e(t)+T,"calculateCommitPosition"),ve=s.__name((t,e)=>{const n=p.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const o=n.pos,r=e+E;return b.set(t.id,{x:o,y:r}),{x:o,y:r}},"setCommitPosition"),Ce=s.__name((t,e,n)=>{const o=p.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const r=e+n,a=o.pos;b.set(t.id,{x:a,y:r})},"setRootPosition"),Ee=s.__name((t,e,n,o,r,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",n.x-10).attr("y",n.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%B} ${o}-outer`),t.append("rect").attr("x",n.x-6).attr("y",n.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%B} ${o}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x-3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x+3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x+3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x-3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`);else{const l=t.append("circle");if(l.attr("cx",n.x),l.attr("cy",n.y),l.attr("r",e.type===x.MERGE?9:10),l.attr("class",`commit ${e.id} commit${r%B}`),a===x.MERGE){const c=t.append("circle");c.attr("cx",n.x),c.attr("cy",n.y),c.attr("r",6),c.attr("class",`commit ${o} ${e.id} commit${r%B}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${n.x-5},${n.y-5}L${n.x+5},${n.y+5}M${n.x-5},${n.y+5}L${n.x+5},${n.y-5}`).attr("class",`commit ${o} ${e.id} commit${r%B}`)}},"drawCommitBullet"),Te=s.__name((t,e,n,o)=>{if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&_?.showCommitLabel){const r=t.append("g"),a=r.insert("rect").attr("class","commit-label-bkg"),l=r.append("text").attr("x",o).attr("y",n.y+25).attr("class","commit-label").text(e.id),c=l.node()?.getBBox();if(c&&(a.attr("x",n.posWithOffset-c.width/2-v).attr("y",n.y+13.5).attr("width",c.width+2*v).attr("height",c.height+2*v),u==="TB"||u==="BT"?(a.attr("x",n.x-(c.width+4*w+5)).attr("y",n.y-12),l.attr("x",n.x-(c.width+4*w)).attr("y",n.y+c.height-12)):l.attr("x",n.posWithOffset-c.width/2),_.rotateCommitLabel))if(u==="TB"||u==="BT")l.attr("transform","rotate(-45, "+n.x+", "+n.y+")"),a.attr("transform","rotate(-45, "+n.x+", "+n.y+")");else{const f=-7.5-(c.width+10)/25*9.5,h=10+c.width/25*8.5;r.attr("transform","translate("+f+", "+h+") rotate(-45, "+o+", "+n.y+")")}}},"drawCommitLabel"),Be=s.__name((t,e,n,o)=>{if(e.tags.length>0){let r=0,a=0,l=0;const c=[];for(const f of e.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",n.y-16-r).attr("class","tag-label").text(f),d=g.node()?.getBBox();if(!d)throw new Error("Tag bbox not found");a=Math.max(a,d.width),l=Math.max(l,d.height),g.attr("x",n.posWithOffset-d.width/2),c.push({tag:g,hole:$,rect:h,yOffset:r}),r+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of c){const d=l/2,y=n.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${o-a/2-w/2},${y+v}
|
|
3
3
|
${o-a/2-w/2},${y-v}
|
|
4
4
|
${n.posWithOffset-a/2-w},${y-d-v}
|
|
@@ -63,4 +63,4 @@
|
|
|
63
63
|
fill: ${t.textColor};
|
|
64
64
|
}
|
|
65
65
|
`,"getStyles"),De=He,Ne={parser:ue,db:z,renderer:Pe,styles:De};exports.diagram=Ne;
|
|
66
|
-
//# sourceMappingURL=gitGraphDiagram-NY62KEGX-
|
|
66
|
+
//# sourceMappingURL=gitGraphDiagram-NY62KEGX-YDRakP-_.cjs.map
|