@jackuait/blok 0.10.0-beta.5 → 0.10.0-beta.7
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/codemod/migrate-editorjs-to-blok.js +0 -2
- package/codemod/test.js +0 -6
- package/dist/blok.mjs +3 -3
- package/dist/chunks/_basePickBy-BHRNO12X.mjs +410 -0
- package/dist/chunks/_baseUniq-DtFPDBML.mjs +1045 -0
- package/dist/chunks/_getTag-ozrhqxk_.mjs +26 -0
- package/dist/chunks/arc-BEqJP9HX.mjs +80 -0
- package/dist/chunks/architecture-YZFGNWBL-Bcu-90pi.mjs +3 -0
- package/dist/chunks/architectureDiagram-Q4EWVU46-BMno5LCn.mjs +4066 -0
- package/dist/chunks/array-Cyf-61SV.mjs +6 -0
- package/dist/chunks/blockDiagram-DXYQGD6D-DlP_cPth.mjs +3259 -0
- package/dist/chunks/{blok-DH-WEcA8.mjs → blok-CiLRmoHI.mjs} +2030 -1996
- package/dist/chunks/c4Diagram-AHTNJAMY-BbVV8EXj.mjs +2956 -0
- package/dist/chunks/channel-DPcniO2B.mjs +5 -0
- package/dist/chunks/chunk-2KRD3SAO-CazES4VS.mjs +20 -0
- package/dist/chunks/chunk-336JU56O-heO72r_k.mjs +49 -0
- package/dist/chunks/chunk-426QAEUC-CmCcml1z.mjs +13 -0
- package/dist/chunks/chunk-4BX2VUAB-B10DxOza.mjs +19 -0
- package/dist/chunks/chunk-4TB4RGXK-B0snhZOU.mjs +3250 -0
- package/dist/chunks/chunk-55IACEB6-CGkn5ABd.mjs +8 -0
- package/dist/chunks/chunk-5FUZZQ4R-USdumo_u.mjs +3786 -0
- package/dist/chunks/chunk-5PVQY5BW-CxUGVzQL.mjs +1692 -0
- package/dist/chunks/chunk-67CJDMHE-Bvw55oRa.mjs +20 -0
- package/dist/chunks/chunk-7N4EOEYR-Bs2qDy88.mjs +29 -0
- package/dist/chunks/chunk-AA7GKIK3-Bss0LgrN.mjs +24 -0
- package/dist/chunks/chunk-BSJP7CBP-CpUW7gi5.mjs +83 -0
- package/dist/chunks/chunk-CIAEETIT-DlRbLLf3.mjs +20 -0
- package/dist/chunks/chunk-D6kmoKXy.mjs +20 -0
- package/dist/chunks/chunk-EDXVE4YY-DEcX4XWm.mjs +26 -0
- package/dist/chunks/chunk-ENJZ2VHE-B4THRZkR.mjs +566 -0
- package/dist/chunks/chunk-FMBD7UC4-CF6BKEiV.mjs +5 -0
- package/dist/chunks/chunk-FOC6F5B3--xuza7Yn.mjs +20 -0
- package/dist/chunks/chunk-ICPOFSXX-BMja8cuy.mjs +3290 -0
- package/dist/chunks/chunk-K5T4RW27-CHEqGHFS.mjs +16370 -0
- package/dist/chunks/chunk-KGLVRYIC-DHYYpR8v.mjs +20 -0
- package/dist/chunks/chunk-LIHQZDEY-AvbOvyLE.mjs +55 -0
- package/dist/chunks/chunk-ORNJ4GCN-38fbR5OS.mjs +25 -0
- package/dist/chunks/chunk-OYMX7WX6-BiqlATPA.mjs +2038 -0
- package/dist/chunks/chunk-QZHKN3VN-DitZIvj8.mjs +12 -0
- package/dist/chunks/chunk-U2HBQHQK-DJytnHmZ.mjs +1875 -0
- package/dist/chunks/chunk-X2U36JSP-DlOifw1K.mjs +68 -0
- package/dist/chunks/chunk-XPW4576I-s4fsi4XO.mjs +1146 -0
- package/dist/chunks/chunk-YZCP3GAM-Ch258bXC.mjs +60 -0
- package/dist/chunks/chunk-ZZ45TVLE-DWziaKxP.mjs +33 -0
- package/dist/chunks/classDiagram-6PBFFD2Q-BOkAe08u.mjs +30 -0
- package/dist/chunks/classDiagram-v2-HSJHXN6E-DeKatSvh.mjs +30 -0
- package/dist/chunks/clone-CJCz7VRp.mjs +8 -0
- package/dist/chunks/{constants-Ccno9NZS.mjs → constants-DFS8l39Y.mjs} +525 -552
- package/dist/chunks/cose-bilkent-S5V4N54A-CzLGVqvr.mjs +2246 -0
- package/dist/chunks/cytoscape.esm-D0iglm-M.mjs +18108 -0
- package/dist/chunks/dagre-KV5264BT-XbHSjleO.mjs +298 -0
- package/dist/chunks/dagre-XY8CZ1sg.mjs +1536 -0
- package/dist/chunks/default-DIfXCS2E.mjs +4 -0
- package/dist/chunks/defaultLocale-DFhS1600.mjs +201 -0
- package/dist/chunks/diagram-5BDNPKRD-CM7c3UTI.mjs +112 -0
- package/dist/chunks/diagram-G4DWMVQ6-Bhg4ps6b.mjs +546 -0
- package/dist/chunks/diagram-MMDJMWI5-C-UCVaxB.mjs +234 -0
- package/dist/chunks/diagram-TYMM5635-BOHSujSD.mjs +144 -0
- package/dist/chunks/dist-DHsXIYdd.mjs +59 -0
- package/dist/chunks/erDiagram-SMLLAGMA-CwKxXFMB.mjs +1712 -0
- package/dist/chunks/flowDiagram-DWJPFMVM-rQJKfyuO.mjs +4175 -0
- package/dist/chunks/ganttDiagram-T4ZO3ILL-DfaZirLX.mjs +3083 -0
- package/dist/chunks/gitGraph-7Q5UKJZL-BKG8cHGz.mjs +3 -0
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-CRa-ymsI.mjs +792 -0
- package/dist/chunks/graphlib-CuDElSdG.mjs +223 -0
- package/dist/chunks/{i18next-G6FKbZqA.mjs → i18next-BBGW2sDE.mjs} +1 -1
- package/dist/chunks/{i18next-loader-CwNimni3.mjs → i18next-loader-CasQQb5s.mjs} +2 -2
- package/dist/chunks/info-OMHHGYJF-FKqYyUn9.mjs +3 -0
- package/dist/chunks/infoDiagram-42DDH7IO-CvyJU2nE.mjs +29 -0
- package/dist/chunks/init-JlKGZtuT.mjs +15 -0
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-CIpbw1BK.mjs +719 -0
- package/dist/chunks/journeyDiagram-VCZTEJTY-H96UcUK9.mjs +885 -0
- package/dist/chunks/kanban-definition-6JOO6SKY-BYZT3srA.mjs +980 -0
- package/dist/chunks/katex-JyOgX6MW.mjs +22026 -0
- package/dist/chunks/{lightweight-i18n-DWCdzAw0.mjs → lightweight-i18n-Cvv8CWh4.mjs} +29 -18
- package/dist/chunks/line-B9xUUA7k.mjs +34 -0
- package/dist/chunks/linear-Dj-1yA_B.mjs +289 -0
- package/dist/chunks/mdast-util-math-CHYUxOHk.mjs +151 -0
- package/dist/chunks/mermaid-parser.core-D6OPAUtM.mjs +57 -0
- package/dist/chunks/mermaid.core-BPN9ZHKQ.mjs +989 -0
- package/dist/{messages-B-4fku2H2.mjs → chunks/messages--YKhFEDE.mjs} +30 -19
- package/dist/{messages-BCG_evLg.mjs → chunks/messages-0Uwu1AMJ2.mjs} +28 -17
- package/dist/{messages-CdlsTFB1.mjs → chunks/messages-1__0Ph4Q.mjs} +28 -17
- package/dist/chunks/{messages-wLSVQbsA2.mjs → messages-4sm9Pb0C.mjs} +28 -17
- package/dist/chunks/{messages-R2W_rGOo2.mjs → messages-4uxjtzKW.mjs} +28 -17
- package/dist/chunks/{messages-Dm4YVlrm.mjs → messages-B-SwLgkQ.mjs} +30 -19
- package/dist/{messages--S8_taOd2.mjs → chunks/messages-B1ylBxXQ.mjs} +28 -17
- package/dist/chunks/{messages-B7MIRzCa2.mjs → messages-B5m3dhKc.mjs} +28 -17
- package/dist/chunks/{messages-Dplnp19q.mjs → messages-B6n2zDtv.mjs} +29 -18
- package/dist/chunks/{messages-DD7BI6BK.mjs → messages-BC9w4zAT.mjs} +28 -17
- package/dist/chunks/{messages-BrFl5773.mjs → messages-BOj-7N3p.mjs} +28 -17
- package/dist/chunks/{messages-BbdNugdi.mjs → messages-BRYHTS18.mjs} +28 -17
- package/dist/chunks/{messages-JQKFJo7C.mjs → messages-BSBbVjor.mjs} +35 -24
- package/dist/{messages-CBzd_x7H.mjs → chunks/messages-BUUkmUGc.mjs} +28 -17
- package/dist/{messages-CjmSrt1D.mjs → chunks/messages-Bb3YEV2P.mjs} +33 -22
- package/dist/{messages-BvgXeMSL2.mjs → chunks/messages-Be_6YLzJ.mjs} +29 -18
- package/dist/{messages-pgPcitDH.mjs → chunks/messages-BevRhv5d.mjs} +28 -17
- package/dist/chunks/{messages-BW_7lfqG2.mjs → messages-Bhqr7Im2.mjs} +28 -17
- package/dist/chunks/{messages-LxumrNue2.mjs → messages-BpJFjSKa.mjs} +29 -18
- package/dist/{messages-xEI8gEDK.mjs → chunks/messages-BqYlq_Bn.mjs} +28 -17
- package/dist/{messages-CBdQ3XP9.mjs → chunks/messages-BtAwCUfD.mjs} +28 -17
- package/dist/{messages-D3cAcyzj.mjs → chunks/messages-Bthbp65G.mjs} +29 -18
- package/dist/{messages-CYX48nfg.mjs → chunks/messages-BvHMZ8Pi2.mjs} +28 -17
- package/dist/{messages-Dddxv8-f2.mjs → chunks/messages-Bw1BE9jW.mjs} +28 -17
- package/dist/chunks/{messages-d0Ky6QjR.mjs → messages-Bx6Wt285.mjs} +28 -17
- package/dist/chunks/{messages-BPog17132.mjs → messages-BzslJRYv.mjs} +29 -18
- package/dist/{messages-hTpeKUaW.mjs → chunks/messages-C02M0Tpw.mjs} +28 -17
- package/dist/chunks/{messages-C-b6tPad2.mjs → messages-C1u3E9qg.mjs} +28 -17
- package/dist/{messages-BJ7BuFZi.mjs → chunks/messages-C68WgSKk.mjs} +29 -18
- package/dist/chunks/{messages-Bpda_3PM2.mjs → messages-C8w8JCP0.mjs} +30 -19
- package/dist/chunks/{messages-CmrMwBv3.mjs → messages-CFOZdSk4.mjs} +28 -17
- package/dist/{messages-DVQNjdPk.mjs → chunks/messages-CGOY79lr.mjs} +28 -17
- package/dist/chunks/{messages-DAVsuDWh2.mjs → messages-CGaSMZPu.mjs} +28 -17
- package/dist/{messages-DtrSrdfE2.mjs → chunks/messages-CJJgQ0BH.mjs} +28 -17
- package/dist/{messages-CgzbJ8_l2.mjs → chunks/messages-CTD6rtQj2.mjs} +28 -17
- package/dist/chunks/{messages-p4byLfvR.mjs → messages-CZymJML9.mjs} +32 -21
- package/dist/{messages-CqkRG9mH.mjs → chunks/messages-CfeFJbiv.mjs} +32 -21
- package/dist/{messages-DjJQoYvP2.mjs → chunks/messages-Cgatzu_z.mjs} +30 -19
- package/dist/{messages-CM5fsPo02.mjs → chunks/messages-Ch2zBI602.mjs} +28 -17
- package/dist/chunks/{messages-CyNsByCY.mjs → messages-CiAHsUfO.mjs} +28 -17
- package/dist/{messages-BXI3qIos.mjs → chunks/messages-Cuzq-tNW.mjs} +28 -17
- package/dist/chunks/{messages-FHrCEJmY2.mjs → messages-Cw4qiMwb.mjs} +28 -17
- package/dist/chunks/{messages-xfjdrZmx.mjs → messages-Cyh-mz40.mjs} +28 -17
- package/dist/{messages-Bo_FUvVH.mjs → chunks/messages-D-I2QO8H.mjs} +28 -17
- package/dist/chunks/{messages-Ct7AMBS82.mjs → messages-D0D2gruy.mjs} +28 -17
- package/dist/chunks/{messages-CrMfiGu5.mjs → messages-D1BKxfLD.mjs} +29 -18
- package/dist/chunks/{messages-CmXADeab2.mjs → messages-D4eDs6R_.mjs} +28 -17
- package/dist/chunks/{messages-ClRHDxzh.mjs → messages-D9Xr-hES.mjs} +28 -17
- package/dist/{messages-tsHpMdDT2.mjs → chunks/messages-D9eJPHia.mjs} +30 -19
- package/dist/{messages-DUBHHfEt.mjs → chunks/messages-DBFWSzKY2.mjs} +28 -17
- package/dist/{messages-i4S6q64n2.mjs → chunks/messages-DC0wu2S7.mjs} +28 -17
- package/dist/chunks/{messages-BnznaKEP2.mjs → messages-DF9o19rG.mjs} +28 -17
- package/dist/{messages-DA-o8X3A.mjs → chunks/messages-DFS_n986.mjs} +51 -40
- package/dist/{messages-BGsDZTQp2.mjs → chunks/messages-DGS4H30T.mjs} +28 -17
- package/dist/chunks/{messages-Cdx4QMR1.mjs → messages-DKjddpzJ.mjs} +30 -19
- package/dist/chunks/{messages-B3s2vra72.mjs → messages-DMvTdUXC.mjs} +30 -19
- package/dist/{messages-Dcyrzdxa2.mjs → chunks/messages-DQUX-QYI2.mjs} +28 -17
- package/dist/chunks/{messages-BS1nOvZ-.mjs → messages-DUigq8FO2.mjs} +28 -17
- package/dist/{messages-BKjqW08U.mjs → chunks/messages-DY0FJdpH.mjs} +28 -17
- package/dist/{messages-BBvDbp62.mjs → chunks/messages-DfVXiqt-2.mjs} +28 -17
- package/dist/chunks/{messages-DHCVA7XQ.mjs → messages-DgZc9TJw.mjs} +28 -17
- package/dist/chunks/{messages-1Raf1IK82.mjs → messages-QD4BCUDP.mjs} +28 -17
- package/dist/{messages-JhoVMjfX2.mjs → chunks/messages-USmweex9.mjs} +28 -17
- package/dist/chunks/{messages-DBpXyvRe2.mjs → messages-a1JTi0Qm.mjs} +31 -20
- package/dist/chunks/{messages-D5IgUbBD2.mjs → messages-jcgCHPRn.mjs} +28 -17
- package/dist/chunks/{messages-Dfpi8pDY.mjs → messages-tnnqHpbd.mjs} +29 -18
- package/dist/{messages-DZEcrbmH.mjs → chunks/messages-vzWKPLJO.mjs} +28 -17
- package/dist/chunks/micromark-extension-math-Cz_ZZ_0Y.mjs +169 -0
- package/dist/chunks/micromark-factory-space-WwmyBO_J.mjs +36 -0
- package/dist/chunks/mindmap-definition-QFDTVHPH-BswFuNN6.mjs +1013 -0
- package/dist/chunks/{notifier-Butv4Dvo.mjs → notifier-B1zCi9G1.mjs} +1 -1
- package/dist/chunks/{objectSpread2-BY4mgzrQ.mjs → objectSpread2-CWwMYL_U.mjs} +1 -1
- package/dist/chunks/ordinal-D1_lEgAO.mjs +65 -0
- package/dist/chunks/packet-4T2RLAQJ-DTUW2U0C.mjs +3 -0
- package/dist/chunks/path-6nYPAvNb.mjs +85 -0
- package/dist/chunks/pie-ZZUOXDRM-D-umqvEM.mjs +3 -0
- package/dist/chunks/pieDiagram-DEJITSTG-1WJgvK1w.mjs +179 -0
- package/dist/chunks/quadrantDiagram-34T5L4WZ-B_YH8QGl.mjs +1960 -0
- package/dist/chunks/radar-PYXPWWZC-DkQelf08.mjs +3 -0
- package/dist/chunks/requirementDiagram-MS252O5E-DRl0YJRI.mjs +2224 -0
- package/dist/chunks/rough.esm-CSWJruu5.mjs +1353 -0
- package/dist/chunks/sankeyDiagram-XADWPNL6-B-8IrknH.mjs +909 -0
- package/dist/chunks/sequenceDiagram-FGHM5R23-DTLb8qmO.mjs +4181 -0
- package/dist/chunks/src-CRgEHLPW.mjs +2149 -0
- package/dist/chunks/stateDiagram-FHFEXIEX-B0JFjLFy.mjs +218 -0
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-Co9CUU_z.mjs +28 -0
- package/dist/chunks/timeline-definition-GMOUNBTQ-CS9KTh-Q.mjs +1084 -0
- package/dist/chunks/{tools-C2_IVsQY.mjs → tools-CSYsrnud.mjs} +2846 -3098
- package/dist/chunks/treeView-SZITEDCU-DOOoyNP9.mjs +3 -0
- package/dist/chunks/treemap-W4RFUUIX-CsOoUA-u.mjs +3 -0
- package/dist/chunks/vennDiagram-DHZGUBPP-0BNu5Wna.mjs +1876 -0
- package/dist/chunks/wardley-RL74JXVD-CCzZcmEk.mjs +3 -0
- package/dist/chunks/wardleyDiagram-NUSXRM2D-Ca9XByNH.mjs +594 -0
- package/dist/chunks/xychartDiagram-5P7HB3ND-C8AyKUAE.mjs +2017 -0
- package/dist/cli.mjs +1 -1
- package/dist/full.mjs +14 -14
- package/dist/locales.mjs +95 -84
- package/dist/markdown.mjs +3962 -0
- package/dist/{chunks/messages-6mikOS4D2.mjs → messages-5jvKxQNu2.mjs} +28 -17
- package/dist/{messages-BAcH6PtT2.mjs → messages-7QD-X6XT2.mjs} +28 -17
- package/dist/{messages-DbxbxUiK2.mjs → messages-96iaAUds2.mjs} +29 -18
- package/dist/{messages-CVcQD-9u.mjs → messages-B19o-Teb.mjs} +30 -19
- package/dist/{messages-Ccd587Yn.mjs → messages-B1ZUQagA.mjs} +28 -17
- package/dist/{messages-upqrRZQH2.mjs → messages-B7ieAJBd2.mjs} +28 -17
- package/dist/{chunks/messages-Csvm4mtA.mjs → messages-BECMxmfX.mjs} +28 -17
- package/dist/{chunks/messages-DA7Zk-Cy.mjs → messages-BIHc0KHY.mjs} +29 -18
- package/dist/{chunks/messages-BdnSVKOw.mjs → messages-BIoeoik5.mjs} +28 -17
- package/dist/{chunks/messages-DQ5AyNCU.mjs → messages-BJeGJksD.mjs} +28 -17
- package/dist/{messages-C5XPUD9T2.mjs → messages-BRZX964b2.mjs} +29 -18
- package/dist/{messages-Dkg99bfr2.mjs → messages-BTQPpoM42.mjs} +31 -20
- package/dist/{messages-fLi0P2dP.mjs → messages-BYNcD6uR.mjs} +28 -17
- package/dist/{messages-BvgTQLf72.mjs → messages-BYmmMDrN2.mjs} +28 -17
- package/dist/{chunks/messages-CgRvtOEY.mjs → messages-BbYq1pk-.mjs} +28 -17
- package/dist/{chunks/messages-DUDgFEEe2.mjs → messages-BiUGXvYr2.mjs} +28 -17
- package/dist/{chunks/messages-DJkIeapn.mjs → messages-BiiongNz2.mjs} +28 -17
- package/dist/{messages-BBq0M604.mjs → messages-Bm0Feca1.mjs} +32 -21
- package/dist/{messages-eTourT12.mjs → messages-BmAn22OX.mjs} +28 -17
- package/dist/{messages-C6Y4Jv2N.mjs → messages-Bq3F2Tp_.mjs} +28 -17
- package/dist/{messages-DIRha_gg2.mjs → messages-BsycN_JI2.mjs} +28 -17
- package/dist/{chunks/messages-CljStrYi.mjs → messages-BwHs4cm1.mjs} +32 -21
- package/dist/{chunks/messages-Cs9XBt4T.mjs → messages-CJTy6JZt.mjs} +28 -17
- package/dist/{messages-BokEflKa.mjs → messages-CR_L_UtK.mjs} +28 -17
- package/dist/{chunks/messages-ZJ0b1C3a.mjs → messages-CSUHBs4c2.mjs} +28 -17
- package/dist/{messages-BcFQFcJ92.mjs → messages-CWIXvnDf2.mjs} +28 -17
- package/dist/{messages-DnatBKPm.mjs → messages-CcF4y-E4.mjs} +28 -17
- package/dist/{messages-BywbKcPC.mjs → messages-Ce6KVEbT.mjs} +29 -18
- package/dist/{messages-DOTJ2NvJ.mjs → messages-Ci0KqX-J.mjs} +35 -24
- package/dist/{messages-BtxaN-xx.mjs → messages-CjbnogEC.mjs} +28 -17
- package/dist/{messages-BSe3QDnQ.mjs → messages-CmB406HW.mjs} +30 -19
- package/dist/{messages-BVKZK-3t.mjs → messages-CqXtJTpU.mjs} +28 -17
- package/dist/{chunks/messages-DJA6fb_P2.mjs → messages-D0aw5_0k2.mjs} +30 -19
- package/dist/{chunks/messages-DPykxECP2.mjs → messages-D8FQWulF2.mjs} +28 -17
- package/dist/{chunks/messages-CpzO7KRA.mjs → messages-DBiVgUs2.mjs} +29 -18
- package/dist/{chunks/messages-B0ffBqzr.mjs → messages-DIJlIqlQ2.mjs} +28 -17
- package/dist/{chunks/messages-BaPZuLjN.mjs → messages-DLX_iBDJ.mjs} +28 -17
- package/dist/{chunks/messages-CvfKofOP.mjs → messages-DLlc9QPw.mjs} +28 -17
- package/dist/{chunks/messages-Czny5pPT2.mjs → messages-DMr62KiO2.mjs} +28 -17
- package/dist/{chunks/messages-IDEUsFhQ2.mjs → messages-DPA-mMWC2.mjs} +29 -18
- package/dist/{messages-BCuTVHBV.mjs → messages-DTh9a8mR.mjs} +28 -17
- package/dist/{chunks/messages-DT7fRpCy.mjs → messages-DY4IqlhY.mjs} +28 -17
- package/dist/{chunks/messages-BgVEGd4c.mjs → messages-DYTTu0O12.mjs} +28 -17
- package/dist/{messages-Bk984gRE2.mjs → messages-DbySKTKt2.mjs} +30 -19
- package/dist/{chunks/messages-ID1PHnMv.mjs → messages-Ddnj2iTG2.mjs} +28 -17
- package/dist/{messages-BmNaAyKS.mjs → messages-DkLU_rWm.mjs} +28 -17
- package/dist/{messages-C6OJvnJg2.mjs → messages-Dl3Sv6Rq2.mjs} +29 -18
- package/dist/{chunks/messages-C1OqT_nL.mjs → messages-Dl5Y2-Ia.mjs} +51 -40
- package/dist/{chunks/messages-Cqc-6rfh2.mjs → messages-DnG0ef8t2.mjs} +30 -19
- package/dist/{chunks/messages-BkCjgGxc.mjs → messages-DnGJD4TL.mjs} +28 -17
- package/dist/{messages-Bio7KYsr2.mjs → messages-Dnp9N6RU2.mjs} +28 -17
- package/dist/{chunks/messages-Df87zXXG.mjs → messages-Dvn35ksS.mjs} +28 -17
- package/dist/{messages-CHJ5SOZI.mjs → messages-Dw__BcTj.mjs} +28 -17
- package/dist/{chunks/messages-DC7TX-YT.mjs → messages-Dy-Y_nEI.mjs} +28 -17
- package/dist/{messages-DV9e1DW7.mjs → messages-E_ZuzGDt.mjs} +28 -17
- package/dist/{messages-DD5pW0zJ.mjs → messages-F2xRoY1w.mjs} +28 -17
- package/dist/{chunks/messages-BgsPQXfP.mjs → messages-Smt4GBbj.mjs} +33 -22
- package/dist/{messages-DJT4Bt_02.mjs → messages-aMXpHt5X2.mjs} +28 -17
- package/dist/{chunks/messages-B2pW6jO_.mjs → messages-aWZH50vu2.mjs} +30 -19
- package/dist/{chunks/messages-u2yxkNTE2.mjs → messages-dv19AkyJ.mjs} +28 -17
- package/dist/{messages-DJKLtW7u.mjs → messages-hWwSRF-2.mjs} +28 -17
- package/dist/{messages-tK67CBqn.mjs → messages-j7o5rT9s.mjs} +28 -17
- package/dist/{messages-DqyqEw1_.mjs → messages-nUVjeh7K.mjs} +29 -18
- package/dist/{chunks/messages-DSjXen8E.mjs → messages-nlhESX9t.mjs} +28 -17
- package/dist/{messages-C30Vz-UZ2.mjs → messages-rk-A1Wa42.mjs} +30 -19
- package/dist/{chunks/messages-DR09nkcZ.mjs → messages-xh2eOLvs.mjs} +28 -17
- package/dist/{chunks/messages-C11byid72.mjs → messages-ynAe7ewZ.mjs} +28 -17
- package/dist/react.mjs +3 -3
- package/dist/tools.mjs +3 -3
- package/dist/vendor.LICENSE.txt +4609 -212
- package/package.json +21 -3
- package/src/components/blocks.ts +26 -1
- package/src/components/constants/data-attributes.ts +0 -2
- package/src/components/i18n/locales/am/messages.json +28 -17
- package/src/components/i18n/locales/ar/messages.json +28 -17
- package/src/components/i18n/locales/az/messages.json +28 -17
- package/src/components/i18n/locales/bg/messages.json +28 -17
- package/src/components/i18n/locales/bn/messages.json +28 -17
- package/src/components/i18n/locales/bs/messages.json +30 -19
- package/src/components/i18n/locales/cs/messages.json +32 -21
- package/src/components/i18n/locales/da/messages.json +35 -24
- package/src/components/i18n/locales/de/messages.json +33 -22
- package/src/components/i18n/locales/dv/messages.json +28 -17
- package/src/components/i18n/locales/el/messages.json +28 -17
- package/src/components/i18n/locales/en/messages.json +28 -17
- package/src/components/i18n/locales/es/messages.json +29 -18
- package/src/components/i18n/locales/et/messages.json +32 -21
- package/src/components/i18n/locales/fa/messages.json +28 -17
- package/src/components/i18n/locales/fi/messages.json +28 -17
- package/src/components/i18n/locales/fil/messages.json +51 -40
- package/src/components/i18n/locales/fr/messages.json +29 -18
- package/src/components/i18n/locales/gu/messages.json +28 -17
- package/src/components/i18n/locales/he/messages.json +28 -17
- package/src/components/i18n/locales/hi/messages.json +28 -17
- package/src/components/i18n/locales/hr/messages.json +30 -19
- package/src/components/i18n/locales/hu/messages.json +29 -18
- package/src/components/i18n/locales/hy/messages.json +28 -17
- package/src/components/i18n/locales/id/messages.json +28 -17
- package/src/components/i18n/locales/it/messages.json +29 -18
- package/src/components/i18n/locales/ja/messages.json +28 -17
- package/src/components/i18n/locales/ka/messages.json +28 -17
- package/src/components/i18n/locales/km/messages.json +28 -17
- package/src/components/i18n/locales/kn/messages.json +28 -17
- package/src/components/i18n/locales/ko/messages.json +28 -17
- package/src/components/i18n/locales/ku/messages.json +28 -17
- package/src/components/i18n/locales/lo/messages.json +28 -17
- package/src/components/i18n/locales/lt/messages.json +28 -17
- package/src/components/i18n/locales/lv/messages.json +28 -17
- package/src/components/i18n/locales/mk/messages.json +28 -17
- package/src/components/i18n/locales/ml/messages.json +28 -17
- package/src/components/i18n/locales/mn/messages.json +28 -17
- package/src/components/i18n/locales/mr/messages.json +28 -17
- package/src/components/i18n/locales/ms/messages.json +30 -19
- package/src/components/i18n/locales/my/messages.json +28 -17
- package/src/components/i18n/locales/ne/messages.json +28 -17
- package/src/components/i18n/locales/nl/messages.json +30 -19
- package/src/components/i18n/locales/no/messages.json +31 -20
- package/src/components/i18n/locales/pa/messages.json +28 -17
- package/src/components/i18n/locales/pl/messages.json +29 -18
- package/src/components/i18n/locales/ps/messages.json +28 -17
- package/src/components/i18n/locales/pt/messages.json +29 -18
- package/src/components/i18n/locales/ro/messages.json +29 -18
- package/src/components/i18n/locales/ru/messages.json +28 -17
- package/src/components/i18n/locales/sd/messages.json +28 -17
- package/src/components/i18n/locales/si/messages.json +28 -17
- package/src/components/i18n/locales/sk/messages.json +30 -19
- package/src/components/i18n/locales/sl/messages.json +30 -19
- package/src/components/i18n/locales/sq/messages.json +29 -18
- package/src/components/i18n/locales/sr/messages.json +28 -17
- package/src/components/i18n/locales/sv/messages.json +30 -19
- package/src/components/i18n/locales/sw/messages.json +28 -17
- package/src/components/i18n/locales/ta/messages.json +28 -17
- package/src/components/i18n/locales/te/messages.json +28 -17
- package/src/components/i18n/locales/th/messages.json +28 -17
- package/src/components/i18n/locales/tr/messages.json +28 -17
- package/src/components/i18n/locales/ug/messages.json +28 -17
- package/src/components/i18n/locales/uk/messages.json +28 -17
- package/src/components/i18n/locales/ur/messages.json +28 -17
- package/src/components/i18n/locales/vi/messages.json +28 -17
- package/src/components/i18n/locales/yi/messages.json +28 -17
- package/src/components/i18n/locales/zh/messages.json +28 -17
- package/src/components/icons/index.ts +59 -47
- package/src/components/inline-tools/inline-tool-code.ts +399 -0
- package/src/components/modules/api/blocks.ts +17 -0
- package/src/components/modules/api/tools.ts +0 -19
- package/src/components/modules/blockEvents/composers/blockSelectionKeys.ts +20 -3
- package/src/components/modules/blockEvents/composers/keyboardNavigation.ts +5 -5
- package/src/components/modules/blockManager/blockManager.ts +0 -11
- package/src/components/modules/blockManager/event-binder.ts +1 -12
- package/src/components/modules/paste/handlers/html-handler.ts +13 -10
- package/src/components/modules/paste/handlers/index.ts +1 -0
- package/src/components/modules/paste/index.ts +6 -0
- package/src/components/modules/themeManager.ts +1 -3
- package/src/components/modules/toolbar/blockSettings.ts +1 -0
- package/src/components/modules/toolbar/inline/index.ts +3 -0
- package/src/components/modules/ui.ts +0 -13
- package/src/components/modules/uiControllers/controllers/keyboard.ts +0 -29
- package/src/components/modules/uiControllers/controllers/selection.ts +2 -14
- package/src/components/ui/toolbox.ts +1 -0
- package/src/components/utils/popover/popover-position.ts +2 -4
- package/src/markdown/index.ts +63 -0
- package/src/markdown/markdown-handler.ts +110 -0
- package/src/markdown/mdast-to-blocks.ts +418 -0
- package/src/markdown/phrasing-to-html.ts +60 -0
- package/src/markdown/types.ts +42 -0
- package/src/stories/EditorModes.stories.ts +0 -60
- package/src/styles/main.css +39 -1140
- package/src/tools/callout/emoji-picker/index.ts +3 -2
- package/src/tools/callout/index.ts +24 -0
- package/src/tools/code/code-keyboard.ts +142 -0
- package/src/tools/code/constants.ts +96 -0
- package/src/tools/code/dom-builder.ts +181 -0
- package/src/tools/code/highlight-applier.ts +229 -0
- package/src/tools/code/index.ts +462 -0
- package/src/tools/code/katex-loader.ts +50 -0
- package/src/tools/code/language-picker.ts +241 -0
- package/src/tools/code/mermaid-loader.ts +45 -0
- package/src/tools/code/shiki-loader.ts +135 -0
- package/src/tools/divider/index.ts +9 -1
- package/src/tools/index.ts +4 -2
- package/src/tools/list/block-operations.ts +3 -1
- package/src/tools/list/depth-validator.ts +4 -7
- package/src/tools/list/dom-builder.ts +5 -3
- package/src/tools/list/index.ts +21 -3
- package/src/tools/list/list-helpers.ts +9 -2
- package/src/tools/list/list-keyboard.ts +56 -14
- package/src/tools/list/list-lifecycle.ts +3 -1
- package/src/tools/list/marker-calculator.ts +37 -0
- package/src/tools/list/ordered-marker-manager.ts +4 -2
- package/src/tools/table/core/table-commands.ts +16 -0
- package/src/tools/table/core/table-controller.ts +29 -0
- package/src/tools/table/core/table-events.ts +17 -0
- package/src/tools/table/index.ts +196 -13
- package/src/tools/table/table-cell-blocks.ts +9 -6
- package/src/tools/table/table-cell-clipboard.ts +7 -2
- package/src/tools/table/table-cell-placement-picker.ts +133 -0
- package/src/tools/table/table-cell-selection.ts +174 -19
- package/src/tools/table/table-core.ts +321 -113
- package/src/tools/table/table-map.ts +279 -0
- package/src/tools/table/table-model.ts +901 -1
- package/src/tools/table/table-operations.ts +78 -44
- package/src/tools/table/table-resize.ts +19 -17
- package/src/tools/table/table-row-col-drag.ts +24 -10
- package/src/tools/table/types.ts +24 -2
- package/types/api/tools.d.ts +0 -18
- package/types/data-attributes.d.ts +0 -1
- package/types/index.d.ts +0 -16
- package/types/markdown.d.ts +2 -0
- package/types/tools/code.d.ts +13 -0
- package/src/tools/database/database-backend-sync.ts +0 -101
- package/src/tools/database/database-board-view.ts +0 -301
- package/src/tools/database/database-card-drag.ts +0 -306
- package/src/tools/database/database-card-drawer.ts +0 -546
- package/src/tools/database/database-column-controls.ts +0 -46
- package/src/tools/database/database-column-drag.ts +0 -262
- package/src/tools/database/database-keyboard.ts +0 -35
- package/src/tools/database/database-list-row-drag.ts +0 -245
- package/src/tools/database/database-list-view.ts +0 -333
- package/src/tools/database/database-model.ts +0 -246
- package/src/tools/database/database-property-type-popover.ts +0 -108
- package/src/tools/database/database-tab-bar.ts +0 -532
- package/src/tools/database/database-view-popover.ts +0 -109
- package/src/tools/database/database-view-renderer.ts +0 -25
- package/src/tools/database/index.ts +0 -948
- package/src/tools/database/types.ts +0 -144
- package/types/tools/database.d.ts +0 -145
- /package/dist/chunks/{am-CHDDMHkd.mjs → am-rVzV1W41.mjs} +0 -0
- /package/dist/chunks/{ar-DoqfNqut.mjs → ar-C710lkoH.mjs} +0 -0
- /package/dist/chunks/{az-C34P9iEa.mjs → az-BOp1pgua.mjs} +0 -0
- /package/dist/chunks/{bg-jroXLY8Y.mjs → bg-CL9p09ZD.mjs} +0 -0
- /package/dist/chunks/{bn-BRI-WqxY.mjs → bn-CNmSeyAy.mjs} +0 -0
- /package/dist/chunks/{bs-CCGUpNHu.mjs → bs-BRzMGqzk.mjs} +0 -0
- /package/dist/chunks/{cs-D5qZOGuc.mjs → cs-BYPBLmnF.mjs} +0 -0
- /package/dist/chunks/{da-DrJ7W37K.mjs → da-CBC_LR1c.mjs} +0 -0
- /package/dist/chunks/{de-BW6-kp2c.mjs → de-DxRFMoAj.mjs} +0 -0
- /package/dist/chunks/{el-C-Vc_Otu.mjs → el-Bk6YbySf.mjs} +0 -0
- /package/dist/chunks/{es-B6fI5K9i.mjs → es-DpT3FCMR.mjs} +0 -0
- /package/dist/chunks/{et-BhVlZ-Yz.mjs → et-DE9Dr_g9.mjs} +0 -0
- /package/dist/chunks/{fa-D55Ijdqa.mjs → fa-Banj1QUE.mjs} +0 -0
- /package/dist/chunks/{fi-jNLjhKUQ.mjs → fi-DfN3M5ER.mjs} +0 -0
- /package/dist/chunks/{fil-DYd0T5aX.mjs → fil-DbCsRS1d.mjs} +0 -0
- /package/dist/chunks/{fr-yxy5xWw_.mjs → fr-D1clKhgt.mjs} +0 -0
- /package/dist/chunks/{gu-CcY_LJe7.mjs → gu-1CsZyRwT.mjs} +0 -0
- /package/dist/chunks/{he-DL9s7wNw.mjs → he-qQdnL6eK.mjs} +0 -0
- /package/dist/chunks/{hi-C8eGXgw5.mjs → hi-DxM0Nff1.mjs} +0 -0
- /package/dist/chunks/{hr-DLpybOhU.mjs → hr-Onldyi-u.mjs} +0 -0
- /package/dist/chunks/{hu-BkT0gT00.mjs → hu-CAn3pBuY.mjs} +0 -0
- /package/dist/chunks/{hy-CVFDCp2S.mjs → hy-D43q7NxE.mjs} +0 -0
- /package/dist/chunks/{id-0P4W9Az0.mjs → id-Xrw5Dd0Y.mjs} +0 -0
- /package/dist/chunks/{it-mLY6_uoW.mjs → it-CA9ZDMSc.mjs} +0 -0
- /package/dist/chunks/{ja-7RkeRNWG.mjs → ja-D0J6WRFh.mjs} +0 -0
- /package/dist/chunks/{ka-C7Lx-Qsh.mjs → ka-BZL7xDuY.mjs} +0 -0
- /package/dist/chunks/{km-Q8udaraH.mjs → km-BimgQZVU.mjs} +0 -0
- /package/dist/chunks/{kn-BiETM-iq.mjs → kn-C2n2cPHK.mjs} +0 -0
- /package/dist/chunks/{ko-tiB80pF1.mjs → ko-n4Cn93D3.mjs} +0 -0
- /package/dist/chunks/{ku-CY-OABkR.mjs → ku-BYZCgT44.mjs} +0 -0
- /package/dist/chunks/{lo-CTBhEnyk.mjs → lo-DVXiAE4N.mjs} +0 -0
- /package/dist/chunks/{lt-BHKHEtqK.mjs → lt-B9KlQFnY.mjs} +0 -0
- /package/dist/chunks/{lv-DWxgtfUg.mjs → lv-BINeOdyx.mjs} +0 -0
- /package/dist/chunks/{mk-BjookGdx.mjs → mk-_-QrPrLN.mjs} +0 -0
- /package/dist/chunks/{ml-L-NnZcp9.mjs → ml-KvJSC1KT.mjs} +0 -0
- /package/dist/chunks/{mn-OMWi7Hl_.mjs → mn-CjFjWnRG.mjs} +0 -0
- /package/dist/chunks/{mr-B6JPzITo.mjs → mr-DqAZ7FRX.mjs} +0 -0
- /package/dist/chunks/{ms-CG3S-sPB.mjs → ms-BZcV4UG_.mjs} +0 -0
- /package/dist/chunks/{my-BLAmGfhT.mjs → my-97SC9jYN.mjs} +0 -0
- /package/dist/chunks/{native-BPcABu9z.mjs → native-CzYG0YgY.mjs} +0 -0
- /package/dist/chunks/{ne-D1JHLfYw.mjs → ne-Bs-M2TyF.mjs} +0 -0
- /package/dist/chunks/{nl-Ca7Q8FnY.mjs → nl-2ZwQilo-.mjs} +0 -0
- /package/dist/chunks/{no-Coxcohcz.mjs → no-fOQTpFq1.mjs} +0 -0
- /package/dist/chunks/{pa-CCaXqpaI.mjs → pa-DLOqkMi0.mjs} +0 -0
- /package/dist/chunks/{pl-Cl_fAZ84.mjs → pl-FYs9QrXU.mjs} +0 -0
- /package/dist/chunks/{ps-WD5qGAWy.mjs → ps-CTXe6pSe.mjs} +0 -0
- /package/dist/chunks/{pt-C4zvLfvq.mjs → pt-B1X4x7d1.mjs} +0 -0
- /package/dist/chunks/{ro-DbefHcmM.mjs → ro-Bf7S2FaR.mjs} +0 -0
- /package/dist/chunks/{ru-uU1J14jd.mjs → ru-B8lqnu_j.mjs} +0 -0
- /package/dist/chunks/{sd-DKu368Ip.mjs → sd-CHRYJm2r.mjs} +0 -0
- /package/dist/chunks/{si-BsJCiPkZ.mjs → si-CI0Hs6vH.mjs} +0 -0
- /package/dist/chunks/{sk-CD-a3SN6.mjs → sk-Bdvq1Kb_.mjs} +0 -0
- /package/dist/chunks/{sl-CXhrPJe_.mjs → sl-B_qiFTV5.mjs} +0 -0
- /package/dist/chunks/{sq-CTctCoFQ.mjs → sq-E0j1hysP.mjs} +0 -0
- /package/dist/chunks/{sr-BZkhBwXj.mjs → sr-VPpVNTZw.mjs} +0 -0
- /package/dist/chunks/{sv-NmRZb_xi.mjs → sv-gKmDSR3d.mjs} +0 -0
- /package/dist/chunks/{sw-Be5ik3H6.mjs → sw-zeFLiO23.mjs} +0 -0
- /package/dist/chunks/{ta-DsXh6neL.mjs → ta-Ci-j89hR.mjs} +0 -0
- /package/dist/chunks/{te-CwpCbM8M.mjs → te-qyMI0M7a.mjs} +0 -0
- /package/dist/chunks/{th-CcZ15OLk.mjs → th-DPxHtpdb.mjs} +0 -0
- /package/dist/chunks/{tr-q3bTgvhW.mjs → tr-CRV6GS-G.mjs} +0 -0
- /package/dist/chunks/{tw-DmW6-pCY.mjs → tw-CqxBf-1Y.mjs} +0 -0
- /package/dist/chunks/{ug-919EhLsL.mjs → ug-DW0YFpo5.mjs} +0 -0
- /package/dist/chunks/{uk-aNMEzd0Y.mjs → uk-ssteuphK.mjs} +0 -0
- /package/dist/chunks/{ur-BwQI77sh.mjs → ur-qhY3-jY7.mjs} +0 -0
- /package/dist/chunks/{vi-Dxq806-F.mjs → vi-CHriMMC8.mjs} +0 -0
- /package/dist/chunks/{zh-BcHuy1Ti.mjs → zh-BJktawVN.mjs} +0 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { t as e } from "./objectSpread2-CWwMYL_U.mjs";
|
|
2
|
+
import { r as t } from "./_baseUniq-DtFPDBML.mjs";
|
|
3
|
+
import { s as n } from "./_basePickBy-BHRNO12X.mjs";
|
|
4
|
+
import { t as r } from "./dagre-XY8CZ1sg.mjs";
|
|
5
|
+
import { t as i } from "./clone-CJCz7VRp.mjs";
|
|
6
|
+
import { t as a } from "./graphlib-CuDElSdG.mjs";
|
|
7
|
+
import { g as o, h as s } from "./src-CRgEHLPW.mjs";
|
|
8
|
+
import { b as c } from "./chunk-ICPOFSXX-BMja8cuy.mjs";
|
|
9
|
+
import "./dist-DHsXIYdd.mjs";
|
|
10
|
+
import "./chunk-5PVQY5BW-CxUGVzQL.mjs";
|
|
11
|
+
import "./chunk-U2HBQHQK-DJytnHmZ.mjs";
|
|
12
|
+
import "./chunk-BSJP7CBP-CpUW7gi5.mjs";
|
|
13
|
+
import { n as l } from "./chunk-ZZ45TVLE-DWziaKxP.mjs";
|
|
14
|
+
import "./chunk-X2U36JSP-DlOifw1K.mjs";
|
|
15
|
+
import { a as u, c as d, i as f, l as p, n as m, t as h, u as g } from "./chunk-5FUZZQ4R-USdumo_u.mjs";
|
|
16
|
+
import { a as _, i as v, n as y, r as b, t as x } from "./chunk-ENJZ2VHE-B4THRZkR.mjs";
|
|
17
|
+
//#region node_modules/dagre-d3-es/src/graphlib/json.js
|
|
18
|
+
function S(e) {
|
|
19
|
+
var n = {
|
|
20
|
+
options: {
|
|
21
|
+
directed: e.isDirected(),
|
|
22
|
+
multigraph: e.isMultigraph(),
|
|
23
|
+
compound: e.isCompound()
|
|
24
|
+
},
|
|
25
|
+
nodes: C(e),
|
|
26
|
+
edges: w(e)
|
|
27
|
+
};
|
|
28
|
+
return t(e.graph()) || (n.value = i(e.graph())), n;
|
|
29
|
+
}
|
|
30
|
+
function C(e) {
|
|
31
|
+
return n(e.nodes(), function(n) {
|
|
32
|
+
var r = e.node(n), i = e.parent(n), a = { v: n };
|
|
33
|
+
return t(r) || (a.value = r), t(i) || (a.parent = i), a;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function w(e) {
|
|
37
|
+
return n(e.edges(), function(n) {
|
|
38
|
+
var r = e.edge(n), i = {
|
|
39
|
+
v: n.v,
|
|
40
|
+
w: n.w
|
|
41
|
+
};
|
|
42
|
+
return t(n.name) || (i.name = n.name), t(r) || (i.value = r), i;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.mjs
|
|
47
|
+
var T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ s(() => {
|
|
48
|
+
E.clear(), D.clear(), T.clear();
|
|
49
|
+
}, "clear"), k = /* @__PURE__ */ s((e, t) => {
|
|
50
|
+
let n = E.get(t) || [];
|
|
51
|
+
return o.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
|
|
52
|
+
}, "isDescendant"), A = /* @__PURE__ */ s((e, t) => {
|
|
53
|
+
let n = E.get(t) || [];
|
|
54
|
+
return o.info("Descendants of ", t, " is ", n), o.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || k(e.v, t) || k(e.w, t) || n.includes(e.w) : (o.debug("Tilt, ", t, ",not in descendants"), !1);
|
|
55
|
+
}, "edgeInCluster"), j = /* @__PURE__ */ s((e, t, n, r) => {
|
|
56
|
+
o.warn("Copying children of ", e, "root", r, "data", t.node(e), r);
|
|
57
|
+
let i = t.children(e) || [];
|
|
58
|
+
e !== r && i.push(e), o.warn("Copying (nodes) clusterId", e, "nodes", i), i.forEach((i) => {
|
|
59
|
+
if (t.children(i).length > 0) j(i, t, n, r);
|
|
60
|
+
else {
|
|
61
|
+
let a = t.node(i);
|
|
62
|
+
o.info("cp ", i, " to ", r, " with parent ", e), n.setNode(i, a), r !== t.parent(i) && (o.warn("Setting parent", i, t.parent(i)), n.setParent(i, t.parent(i))), e !== r && i !== e ? (o.debug("Setting parent", i, e), n.setParent(i, e)) : (o.info("In copy ", e, "root", r, "data", t.node(e), r), o.debug("Not Setting parent for node=", i, "cluster!==rootId", e !== r, "node!==clusterId", i !== e));
|
|
63
|
+
let s = t.edges(i);
|
|
64
|
+
o.debug("Copying Edges", s), s.forEach((i) => {
|
|
65
|
+
o.info("Edge", i);
|
|
66
|
+
let a = t.edge(i.v, i.w, i.name);
|
|
67
|
+
o.info("Edge data", a, r);
|
|
68
|
+
try {
|
|
69
|
+
A(i, r) ? (o.info("Copying as ", i.v, i.w, a, i.name), n.setEdge(i.v, i.w, a, i.name), o.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : o.info("Skipping copy of edge ", i.v, "-->", i.w, " rootId: ", r, " clusterId:", e);
|
|
70
|
+
} catch (e) {
|
|
71
|
+
o.error(e);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
o.debug("Removing node", i), t.removeNode(i);
|
|
76
|
+
});
|
|
77
|
+
}, "copy"), M = /* @__PURE__ */ s((e, t) => {
|
|
78
|
+
let n = t.children(e), r = [...n];
|
|
79
|
+
for (let i of n) D.set(i, e), r = [...r, ...M(i, t)];
|
|
80
|
+
return r;
|
|
81
|
+
}, "extractDescendants"), N = /* @__PURE__ */ s((e, t, n) => {
|
|
82
|
+
let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
|
|
83
|
+
v: e.v === t ? n : e.v,
|
|
84
|
+
w: e.w === t ? t : e.w
|
|
85
|
+
})), o = i.map((e) => ({
|
|
86
|
+
v: e.v,
|
|
87
|
+
w: e.w
|
|
88
|
+
}));
|
|
89
|
+
return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
|
|
90
|
+
}, "findCommonEdges"), P = /* @__PURE__ */ s((e, t, n) => {
|
|
91
|
+
let r = t.children(e);
|
|
92
|
+
if (o.trace("Searching children of id ", e, r), r.length < 1) return e;
|
|
93
|
+
let i;
|
|
94
|
+
for (let e of r) {
|
|
95
|
+
let r = P(e, t, n), a = N(t, n, r);
|
|
96
|
+
if (r) if (a.length > 0) i = r;
|
|
97
|
+
else return r;
|
|
98
|
+
}
|
|
99
|
+
return i;
|
|
100
|
+
}, "findNonClusterChild"), F = /* @__PURE__ */ s((e) => !T.has(e) || !T.get(e).externalConnections ? e : T.has(e) ? T.get(e).id : e, "getAnchorId"), I = /* @__PURE__ */ s((e, t) => {
|
|
101
|
+
if (!e || t > 10) {
|
|
102
|
+
o.debug("Opting out, no graph ");
|
|
103
|
+
return;
|
|
104
|
+
} else o.debug("Opting in, graph ");
|
|
105
|
+
e.nodes().forEach(function(t) {
|
|
106
|
+
e.children(t).length > 0 && (o.warn("Cluster identified", t, " Replacement id in edges: ", P(t, e, t)), E.set(t, M(t, e)), T.set(t, {
|
|
107
|
+
id: P(t, e, t),
|
|
108
|
+
clusterData: e.node(t)
|
|
109
|
+
}));
|
|
110
|
+
}), e.nodes().forEach(function(t) {
|
|
111
|
+
let n = e.children(t), r = e.edges();
|
|
112
|
+
n.length > 0 ? (o.debug("Cluster identified", t, E), r.forEach((e) => {
|
|
113
|
+
k(e.v, t) ^ k(e.w, t) && (o.warn("Edge: ", e, " leaves cluster ", t), o.warn("Descendants of XXX ", t, ": ", E.get(t)), T.get(t).externalConnections = !0);
|
|
114
|
+
})) : o.debug("Not a cluster ", t, E);
|
|
115
|
+
});
|
|
116
|
+
for (let t of T.keys()) {
|
|
117
|
+
let n = T.get(t).id, r = e.parent(n);
|
|
118
|
+
r !== t && T.has(r) && !T.get(r).externalConnections && (T.get(t).id = r);
|
|
119
|
+
}
|
|
120
|
+
e.edges().forEach(function(t) {
|
|
121
|
+
let n = e.edge(t);
|
|
122
|
+
o.warn("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), o.warn("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t)));
|
|
123
|
+
let r = t.v, i = t.w;
|
|
124
|
+
if (o.warn("Fix XXX", T, "ids:", t.v, t.w, "Translating: ", T.get(t.v), " --- ", T.get(t.w)), T.get(t.v) || T.get(t.w)) {
|
|
125
|
+
if (o.warn("Fixing and trying - removing XXX", t.v, t.w, t.name), r = F(t.v), i = F(t.w), e.removeEdge(t.v, t.w, t.name), r !== t.v) {
|
|
126
|
+
let i = e.parent(r);
|
|
127
|
+
T.get(i).externalConnections = !0, n.fromCluster = t.v;
|
|
128
|
+
}
|
|
129
|
+
if (i !== t.w) {
|
|
130
|
+
let r = e.parent(i);
|
|
131
|
+
T.get(r).externalConnections = !0, n.toCluster = t.w;
|
|
132
|
+
}
|
|
133
|
+
o.warn("Fix Replacing with XXX", r, i, t.name), e.setEdge(r, i, n, t.name);
|
|
134
|
+
}
|
|
135
|
+
}), o.warn("Adjusted Graph", S(e)), L(e, 0), o.trace(T);
|
|
136
|
+
}, "adjustClustersAndEdges"), L = /* @__PURE__ */ s((e, t) => {
|
|
137
|
+
if (o.warn("extractor - ", t, S(e), e.children("D")), t > 10) {
|
|
138
|
+
o.error("Bailing out");
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
let n = e.nodes(), r = !1;
|
|
142
|
+
for (let t of n) {
|
|
143
|
+
let n = e.children(t);
|
|
144
|
+
r = r || n.length > 0;
|
|
145
|
+
}
|
|
146
|
+
if (!r) {
|
|
147
|
+
o.debug("Done, no node has children", e.nodes());
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
o.debug("Nodes = ", n, t);
|
|
151
|
+
for (let r of n) if (o.debug("Extracting node", r, T, T.has(r) && !T.get(r).externalConnections, !e.parent(r), e.node(r), e.children("D"), " Depth ", t), !T.has(r)) o.debug("Not a cluster", r, t);
|
|
152
|
+
else if (!T.get(r).externalConnections && e.children(r) && e.children(r).length > 0) {
|
|
153
|
+
var i;
|
|
154
|
+
o.warn("Cluster without external connections, without a parent and with children", r, t);
|
|
155
|
+
let n = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
156
|
+
!((i = T.get(r)) == null || (i = i.clusterData) == null) && i.dir && (n = T.get(r).clusterData.dir, o.warn("Fixing dir", T.get(r).clusterData.dir, n));
|
|
157
|
+
let s = new a({
|
|
158
|
+
multigraph: !0,
|
|
159
|
+
compound: !0
|
|
160
|
+
}).setGraph({
|
|
161
|
+
rankdir: n,
|
|
162
|
+
nodesep: 50,
|
|
163
|
+
ranksep: 50,
|
|
164
|
+
marginx: 8,
|
|
165
|
+
marginy: 8
|
|
166
|
+
}).setDefaultEdgeLabel(function() {
|
|
167
|
+
return {};
|
|
168
|
+
});
|
|
169
|
+
o.warn("Old graph before copy", S(e)), j(r, e, s, r), e.setNode(r, {
|
|
170
|
+
clusterNode: !0,
|
|
171
|
+
id: r,
|
|
172
|
+
clusterData: T.get(r).clusterData,
|
|
173
|
+
label: T.get(r).label,
|
|
174
|
+
graph: s
|
|
175
|
+
}), o.warn("New graph after copy node: (", r, ")", S(s)), o.debug("Old graph after copy", S(e));
|
|
176
|
+
} else o.warn("Cluster ** ", r, " **not meeting the criteria !externalConnections:", !T.get(r).externalConnections, " no parent: ", !e.parent(r), " children ", e.children(r) && e.children(r).length > 0, e.children("D"), t), o.debug(T);
|
|
177
|
+
n = e.nodes(), o.warn("New list of nodes", n);
|
|
178
|
+
for (let r of n) {
|
|
179
|
+
let n = e.node(r);
|
|
180
|
+
o.warn(" Now next level", r, n), n != null && n.clusterNode && L(n.graph, t + 1);
|
|
181
|
+
}
|
|
182
|
+
}, "extractor"), R = /* @__PURE__ */ s((e, t) => {
|
|
183
|
+
if (t.length === 0) return [];
|
|
184
|
+
let n = Object.assign([], t);
|
|
185
|
+
return t.forEach((t) => {
|
|
186
|
+
let r = R(e, e.children(t));
|
|
187
|
+
n = [...n, ...r];
|
|
188
|
+
}), n;
|
|
189
|
+
}, "sorter"), z = /* @__PURE__ */ s((e) => R(e, e.children()), "sortNodesByHierarchy"), B = /* @__PURE__ */ s(async (t, n, i, a, c, m) => {
|
|
190
|
+
o.warn("Graph in recursive render:XAX", S(n), c);
|
|
191
|
+
let h = n.graph().rankdir;
|
|
192
|
+
o.trace("Dir in recursive render - dir:", h);
|
|
193
|
+
let v = t.insert("g").attr("class", "root");
|
|
194
|
+
n.nodes() ? o.info("Recursive render XXX", n.nodes()) : o.info("No nodes found for", n), n.edges().length > 0 && o.info("Recursive edges", n.edge(n.edges()[0]));
|
|
195
|
+
let x = v.insert("g").attr("class", "clusters"), C = v.insert("g").attr("class", "edgePaths"), w = v.insert("g").attr("class", "edgeLabels"), E = v.insert("g").attr("class", "nodes");
|
|
196
|
+
await Promise.all(n.nodes().map(async function(t) {
|
|
197
|
+
let r = n.node(t);
|
|
198
|
+
if (c !== void 0) {
|
|
199
|
+
let e = JSON.parse(JSON.stringify(c.clusterData));
|
|
200
|
+
o.trace("Setting data for parent cluster XXX\n Node.id = ", t, "\n data=", e.height, "\nParent cluster", c.height), n.setNode(c.id, e), n.parent(t) || (o.trace("Setting parent", t, c.id), n.setParent(t, c.id, e));
|
|
201
|
+
}
|
|
202
|
+
if (o.info("(Insert) Node XXX" + t + ": " + JSON.stringify(n.node(t))), r != null && r.clusterNode) {
|
|
203
|
+
o.info("Cluster identified XBX", t, r.width, n.node(t));
|
|
204
|
+
let { ranksep: s, nodesep: c } = n.graph();
|
|
205
|
+
r.graph.setGraph(e(e({}, r.graph.graph()), {}, {
|
|
206
|
+
ranksep: s + 25,
|
|
207
|
+
nodesep: c
|
|
208
|
+
}));
|
|
209
|
+
let l = await B(E, r.graph, i, a, n.node(t), m), u = l.elem;
|
|
210
|
+
g(r, u), r.diff = l.diff || 0, o.info("New compound node after recursive render XAX", t, "width", r.width, "height", r.height), p(u, r);
|
|
211
|
+
} else n.children(t).length > 0 ? (o.trace("Cluster - the non recursive path XBX", t, r.id, r, r.width, "Graph:", n), o.trace(P(r.id, n)), T.set(r.id, {
|
|
212
|
+
id: P(r.id, n),
|
|
213
|
+
node: r
|
|
214
|
+
})) : (o.trace("Node - the non recursive path XAX", t, E, n.node(t), h), await u(E, n.node(t), {
|
|
215
|
+
config: m,
|
|
216
|
+
dir: h
|
|
217
|
+
}));
|
|
218
|
+
})), await (/* @__PURE__ */ s(async () => {
|
|
219
|
+
let e = n.edges().map(async function(e) {
|
|
220
|
+
let t = n.edge(e.v, e.w, e.name);
|
|
221
|
+
o.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(e)), o.info("Edge " + e.v + " -> " + e.w + ": ", e, " ", JSON.stringify(n.edge(e))), o.info("Fix", T, "ids:", e.v, e.w, "Translating: ", T.get(e.v), T.get(e.w)), await b(w, t);
|
|
222
|
+
});
|
|
223
|
+
await Promise.all(e);
|
|
224
|
+
}, "processEdges"))(), o.info("Graph before layout:", JSON.stringify(S(n))), o.info("############################################# XXX"), o.info("### Layout ### XXX"), o.info("############################################# XXX"), r(n), o.info("Graph after layout:", JSON.stringify(S(n)));
|
|
225
|
+
let D = 0, { subGraphTitleTotalMargin: O } = l(m);
|
|
226
|
+
return await Promise.all(z(n).map(async function(e) {
|
|
227
|
+
let t = n.node(e);
|
|
228
|
+
if (o.info("Position XBX => " + e + ": (" + t.x, "," + t.y, ") width: ", t.width, " height: ", t.height), t != null && t.clusterNode) t.y += O, o.info("A tainted cluster node XBX1", e, t.id, t.width, t.height, t.x, t.y, n.parent(e)), T.get(t.id).node = t, d(t);
|
|
229
|
+
else if (n.children(e).length > 0) {
|
|
230
|
+
var r;
|
|
231
|
+
o.info("A pure cluster node XBX1", e, t.id, t.x, t.y, t.width, t.height, n.parent(e)), t.height += O, n.node(t.parentId);
|
|
232
|
+
let i = (t == null ? void 0 : t.padding) / 2 || 0, a = (t == null || (r = t.labelBBox) == null ? void 0 : r.height) || 0, s = a - i || 0;
|
|
233
|
+
o.debug("OffsetY", s, "labelHeight", a, "halfPadding", i), await f(x, t), T.get(t.id).node = t;
|
|
234
|
+
} else {
|
|
235
|
+
let e = n.node(t.parentId);
|
|
236
|
+
t.y += O / 2, o.info("A regular node XBX1 - using the padding", t.id, "parent", t.parentId, t.width, t.height, t.x, t.y, "offsetY", t.offsetY, "parent", e, e == null ? void 0 : e.offsetY, t), d(t);
|
|
237
|
+
}
|
|
238
|
+
})), n.edges().forEach(function(e) {
|
|
239
|
+
let t = n.edge(e);
|
|
240
|
+
o.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(t), t), t.points.forEach((e) => e.y += O / 2), _(t, y(C, t, T, i, n.node(e.v), n.node(e.w), a));
|
|
241
|
+
}), n.nodes().forEach(function(e) {
|
|
242
|
+
let t = n.node(e);
|
|
243
|
+
o.info(e, t.type, t.diff), t.isGroup && (D = t.diff);
|
|
244
|
+
}), o.warn("Returning from recursive render XAX", v, D), {
|
|
245
|
+
elem: v,
|
|
246
|
+
diff: D
|
|
247
|
+
};
|
|
248
|
+
}, "recursiveRender"), V = /* @__PURE__ */ s(async (t, n) => {
|
|
249
|
+
var r, i, s, l;
|
|
250
|
+
let u = new a({
|
|
251
|
+
multigraph: !0,
|
|
252
|
+
compound: !0
|
|
253
|
+
}).setGraph({
|
|
254
|
+
rankdir: t.direction,
|
|
255
|
+
nodesep: ((r = t.config) == null ? void 0 : r.nodeSpacing) || ((i = t.config) == null || (i = i.flowchart) == null ? void 0 : i.nodeSpacing) || t.nodeSpacing,
|
|
256
|
+
ranksep: ((s = t.config) == null ? void 0 : s.rankSpacing) || ((l = t.config) == null || (l = l.flowchart) == null ? void 0 : l.rankSpacing) || t.rankSpacing,
|
|
257
|
+
marginx: 8,
|
|
258
|
+
marginy: 8
|
|
259
|
+
}).setDefaultEdgeLabel(function() {
|
|
260
|
+
return {};
|
|
261
|
+
}), d = n.select("g");
|
|
262
|
+
v(d, t.markers, t.type, t.diagramId), m(), x(), h(), O(), t.nodes.forEach((t) => {
|
|
263
|
+
u.setNode(t.id, e({}, t)), t.parentId && u.setParent(t.id, t.parentId);
|
|
264
|
+
}), o.debug("Edges:", t.edges), t.edges.forEach((t) => {
|
|
265
|
+
if (t.start === t.end) {
|
|
266
|
+
let e = t.start, n = e + "---" + e + "---1", r = e + "---" + e + "---2", i = u.node(e);
|
|
267
|
+
u.setNode(n, {
|
|
268
|
+
domId: n,
|
|
269
|
+
id: n,
|
|
270
|
+
parentId: i.parentId,
|
|
271
|
+
labelStyle: "",
|
|
272
|
+
label: "",
|
|
273
|
+
padding: 0,
|
|
274
|
+
shape: "labelRect",
|
|
275
|
+
style: "",
|
|
276
|
+
width: 10,
|
|
277
|
+
height: 10
|
|
278
|
+
}), u.setParent(n, i.parentId), u.setNode(r, {
|
|
279
|
+
domId: r,
|
|
280
|
+
id: r,
|
|
281
|
+
parentId: i.parentId,
|
|
282
|
+
labelStyle: "",
|
|
283
|
+
padding: 0,
|
|
284
|
+
shape: "labelRect",
|
|
285
|
+
label: "",
|
|
286
|
+
style: "",
|
|
287
|
+
width: 10,
|
|
288
|
+
height: 10
|
|
289
|
+
}), u.setParent(r, i.parentId);
|
|
290
|
+
let a = structuredClone(t), o = structuredClone(t), s = structuredClone(t);
|
|
291
|
+
a.label = "", a.arrowTypeEnd = "none", a.id = e + "-cyclic-special-1", o.arrowTypeStart = "none", o.arrowTypeEnd = "none", o.id = e + "-cyclic-special-mid", s.label = "", i.isGroup && (a.fromCluster = e, s.toCluster = e), s.id = e + "-cyclic-special-2", s.arrowTypeStart = "none", u.setEdge(e, n, a, e + "-cyclic-special-0"), u.setEdge(n, r, o, e + "-cyclic-special-1"), u.setEdge(r, e, s, e + "-cyc<lic-special-2");
|
|
292
|
+
} else u.setEdge(t.start, t.end, e({}, t), t.id);
|
|
293
|
+
}), o.warn("Graph at first:", JSON.stringify(S(u))), I(u), o.warn("Graph after XAX:", JSON.stringify(S(u)));
|
|
294
|
+
let f = c();
|
|
295
|
+
await B(d, u, t.type, t.diagramId, void 0, f);
|
|
296
|
+
}, "render");
|
|
297
|
+
//#endregion
|
|
298
|
+
export { V as render };
|