@antdv-next/x 1.0.2-beta.2 → 1.0.2-beta.4

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.
Files changed (130) hide show
  1. package/dist/actions/Actions.js +1 -1
  2. package/dist/attachments/index.js +1 -1
  3. package/dist/conversations/index.js +1 -1
  4. package/dist/file-card/FileCard.js +1 -1
  5. package/dist/file-card/List.js +1 -1
  6. package/dist/index.umd.js +25 -25
  7. package/dist/locale/useLocale.js +1 -1
  8. package/dist/mermaid/Mermaid.js +1 -1
  9. package/dist/package.js +1 -1
  10. package/dist/prompts/Prompts.js +1 -1
  11. package/dist/sender/Sender.js +1 -1
  12. package/dist/sender/SenderHeader.js +1 -1
  13. package/dist/sender/SenderSwitch.js +1 -1
  14. package/dist/sources/Sources.js +1 -1
  15. package/dist/suggestion/Suggestion.js +1 -1
  16. package/dist/theme/genStyleUtils.js +1 -1
  17. package/dist/think/Think.js +1 -1
  18. package/dist/thought-chain/Item.js +1 -1
  19. package/dist/thought-chain/Node.js +1 -1
  20. package/dist/thought-chain/ThoughtChain.js +1 -1
  21. package/dist/welcome/index.js +1 -1
  22. package/dist/x-provider/hooks/use-x-provider-context.js +1 -1
  23. package/es/{Serializer-y_SfSPKv.js → Serializer-D1JYN1kI.js} +4 -4
  24. package/es/{_basePickBy-DPqob0cQ.js → _basePickBy-DFHEGO2M.js} +23 -23
  25. package/es/{_baseUniq-AMhRdOMz.js → _baseUniq-BlS7rXTs.js} +83 -83
  26. package/es/antdv-next-x.esm.js +44833 -7290
  27. package/es/{arc-caEkbRYF.js → arc-BuXEd18J.js} +3 -3
  28. package/es/architecture-PBZL5I3N-D7tS55xM.js +3 -0
  29. package/es/{architectureDiagram-2XIMDMQ5-ZOgJV9Kg.js → architectureDiagram-2XIMDMQ5-CmfsCwJk.js} +85 -85
  30. package/es/{blockDiagram-WCTKOSBZ-8iZwAKBK.js → blockDiagram-WCTKOSBZ-lJAan65A.js} +530 -530
  31. package/es/{c4Diagram-IC4MRINW-DrH9eRMR.js → c4Diagram-IC4MRINW-B1c2x_1Q.js} +170 -170
  32. package/es/channel-DFgF_2F7.js +5 -0
  33. package/es/{chunk-4BX2VUAB-DUVpjbJi.js → chunk-4BX2VUAB-J2N81Fpp.js} +2 -2
  34. package/es/{chunk-55IACEB6-RlJ-J3tE.js → chunk-55IACEB6-DGtfGRgi.js} +2 -2
  35. package/es/{chunk-7E7YKBS2-ChLFamzc.js → chunk-7E7YKBS2-CL2d4WAf.js} +2 -2
  36. package/es/{chunk-7R4GIKGN-B9vamSzt.js → chunk-7R4GIKGN-QT6IorJ_.js} +3 -3
  37. package/es/{chunk-C72U2L5F-BV-rXau1.js → chunk-C72U2L5F-OHTVpS-m.js} +2 -2
  38. package/es/{chunk-EGIJ26TM-GvsuORRL.js → chunk-EGIJ26TM-DyMPGYrB.js} +2 -2
  39. package/es/{chunk-FMBD7UC4-D6ZlqqMC.js → chunk-FMBD7UC4-DCcRjunY.js} +2 -2
  40. package/es/{chunk-GEFDOKGD-DM6dsEsk.js → chunk-GEFDOKGD-BWpC-zoH.js} +278 -278
  41. package/es/chunk-GLR3WWYH-DiXcKb5Y.js +41 -0
  42. package/es/{chunk-HHEYEP7N-FVfYw94p.js → chunk-HHEYEP7N-Cxc7E4dX.js} +3 -3
  43. package/es/{chunk-JSJVCQXG-Wr9uPcCh.js → chunk-JSJVCQXG-D8_heHOp.js} +4 -4
  44. package/es/{chunk-KX2RTZJC-BGffjoxB.js → chunk-KX2RTZJC-D5cc4rj6.js} +3 -3
  45. package/es/{chunk-KYZI473N-Bit5smNE.js → chunk-KYZI473N-BHJ3T5Zv.js} +573 -573
  46. package/es/{chunk-L3YUKLVL-DBuHDpQ2.js → chunk-L3YUKLVL-7oGaUOdc.js} +2 -2
  47. package/es/{chunk-MX3YWQON-Cbj2WwUZ.js → chunk-MX3YWQON-BxE-Aq9c.js} +2 -2
  48. package/es/{chunk-NQ4KR5QH-FPQ-IHJN.js → chunk-NQ4KR5QH-EYQBXkqP.js} +120 -120
  49. package/es/{chunk-O4XLMI2P-BCDk0ZIW.js → chunk-O4XLMI2P-qjOoGpnx.js} +238 -238
  50. package/es/{chunk-OZEHJAEY-BZ24IOgQ.js → chunk-OZEHJAEY-D82nx27s.js} +2 -2
  51. package/es/{chunk-PQ6SQG4A-DpwBx6Hx.js → chunk-PQ6SQG4A-D3jtNCWN.js} +3 -3
  52. package/es/{chunk-PU5JKC2W-BNpJuXxn.js → chunk-PU5JKC2W-DdP8BS-S.js} +76 -76
  53. package/es/{chunk-QZHKN3VN-NEMwPryC.js → chunk-QZHKN3VN-CW3cFN-h.js} +2 -2
  54. package/es/{chunk-R5LLSJPH-g44vgerl.js → chunk-R5LLSJPH-CreI2kO9.js} +2 -2
  55. package/es/{chunk-WL4C6EOR-B6l-Yy2t.js → chunk-WL4C6EOR-BDbxJyGk.js} +120 -120
  56. package/es/{chunk-XIRO2GV7-CaFInIOW.js → chunk-XIRO2GV7-S5KkbVnN.js} +2 -2
  57. package/es/{chunk-XPW4576I-Cp1j6iTN.js → chunk-XPW4576I-B0KVSHwE.js} +2 -2
  58. package/es/{chunk-XZSTWKYB-CGk7ipHd.js → chunk-XZSTWKYB-CucN1XvM.js} +93 -93
  59. package/es/{chunk-YBOYWFTD-dOTBpTYs.js → chunk-YBOYWFTD-CvaddD9G.js} +8 -8
  60. package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +29 -0
  61. package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +29 -0
  62. package/es/clone-r3YukIBB.js +8 -0
  63. package/es/{cose-bilkent-S5V4N54A-DlmXyn6m.js → cose-bilkent-S5V4N54A-B5OQuIhl.js} +3 -3
  64. package/es/{cytoscape.esm-BY3wHcbp.js → cytoscape.esm-i2CZcWd-.js} +1 -1
  65. package/es/{dagre-B1qTL793.js → dagre-5aGJFKmT.js} +57 -57
  66. package/es/dagre-KLK3FWXG-BI5QQMXo.js +294 -0
  67. package/es/{defaultLocale-BaPFSbai.js → defaultLocale-bckJcYh1.js} +12 -12
  68. package/es/{diagram-E7M64L7V-Dnd8N74o.js → diagram-E7M64L7V-Dz62Vz_a.js} +83 -83
  69. package/es/{diagram-IFDJBPK2-Dan7RsGr.js → diagram-IFDJBPK2-9fjvFkSc.js} +31 -31
  70. package/es/{diagram-P4PSJMXO-DwKJpttH.js → diagram-P4PSJMXO-BlX6jFjZ.js} +32 -32
  71. package/es/{dist-DltyvPj3.js → dist-BX_roQzC.js} +1 -1
  72. package/es/{erDiagram-INFDFZHY-CGO6k23w.js → erDiagram-INFDFZHY-BcRXu8Cp.js} +128 -128
  73. package/es/{flowDiagram-PKNHOUZH-DFN1GsRx.js → flowDiagram-PKNHOUZH-UeyfgU8z.js} +156 -156
  74. package/es/{ganttDiagram-A5KZAMGK-Cf5NxH1w.js → ganttDiagram-A5KZAMGK-txCzqgQ5.js} +625 -622
  75. package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +3 -0
  76. package/es/{gitGraphDiagram-K3NZZRJ6-BgE6aSZO.js → gitGraphDiagram-K3NZZRJ6-DghWYaFU.js} +176 -176
  77. package/es/{graphlib-DFxSohCv.js → graphlib-dRkI1OCL.js} +4 -4
  78. package/es/{html-C2-_98S6.js → html-B6UxjOv0.js} +1 -1
  79. package/es/html-Hb1oe8XT.js +2 -0
  80. package/es/info-3K5VOQVL-COqdvM99.js +3 -0
  81. package/es/{infoDiagram-LFFYTUFH-WcApcdl5.js → infoDiagram-LFFYTUFH-CA-vlAvP.js} +5 -5
  82. package/es/{init-PAs0hR-b.js → init-B75p2clj.js} +1 -1
  83. package/es/{isArrayLikeObject-BEG9p74d.js → isArrayLikeObject-jl2bjkAJ.js} +80 -80
  84. package/es/{isEmpty-B1YrVV8B.js → isEmpty-CmA-HYrg.js} +3 -3
  85. package/es/{ishikawaDiagram-PHBUUO56-DwK7J31a.js → ishikawaDiagram-PHBUUO56-DjdpS9Lb.js} +67 -67
  86. package/es/{journeyDiagram-4ABVD52K-CWuA57by.js → journeyDiagram-4ABVD52K-CIJfC1fp.js} +6 -6
  87. package/es/{kanban-definition-K7BYSVSG-DBt3gYRQ.js → kanban-definition-K7BYSVSG-CC2vwGck.js} +11 -11
  88. package/es/{katex-OR8z_f6I.js → katex-DCMiIo1z.js} +1 -1
  89. package/es/{line-zOBKZCP5.js → line-Cu9NTacD.js} +4 -4
  90. package/es/{linear-DttXWw4q.js → linear-C0rAYYmp.js} +23 -23
  91. package/es/{math-DPzKeDKn.js → math-CoDOuve-.js} +1 -1
  92. package/es/{mermaid-parser.core-CWNEdmZ_.js → mermaid-parser.core-7Wn2L29P.js} +16 -16
  93. package/es/{mermaid.core-DPBXXViR.js → mermaid.core-Bvy_Q6Hu.js} +208 -208
  94. package/es/{mindmap-definition-YRQLILUH-Bq2xqboX.js → mindmap-definition-YRQLILUH-BzTYDYmK.js} +16 -16
  95. package/es/{ordinal-D8PKtxfM.js → ordinal-F3U6aXtP.js} +3 -3
  96. package/es/packet-RMMSAZCW-2PTjWKLd.js +3 -0
  97. package/es/{path-DZ-6AyWK.js → path-Dm3C8WEs.js} +3 -3
  98. package/es/pie-UPGHQEXC-Du8-k-EA.js +3 -0
  99. package/es/{pieDiagram-SKSYHLDU-D4iMzwzH.js → pieDiagram-SKSYHLDU-COvqE_C6.js} +32 -32
  100. package/es/{quadrantDiagram-337W2JSQ-DSbXC0z6.js → quadrantDiagram-337W2JSQ-Dgv8ccjt.js} +4 -4
  101. package/es/radar-KQ55EAFF-jJOhyjxC.js +3 -0
  102. package/es/{requirementDiagram-Z7DCOOCP-D7eLn3fs.js → requirementDiagram-Z7DCOOCP-B2NyhxO-.js} +59 -59
  103. package/es/{rough.esm-C_hJ3ICT.js → rough.esm-BhGP2Udb.js} +1 -1
  104. package/es/{sankeyDiagram-WA2Y5GQK-DN5ZPgWU.js → sankeyDiagram-WA2Y5GQK-BfnH_gpl.js} +18 -18
  105. package/es/{sequenceDiagram-2WXFIKYE-CRFEBP8-.js → sequenceDiagram-2WXFIKYE-DXssVQOF.js} +390 -390
  106. package/es/{src-BH16DVv0.js → src-CUQ6oOYk.js} +86 -86
  107. package/es/{stateDiagram-RAJIS63D-CfO23QJX.js → stateDiagram-RAJIS63D-DvDLfupV.js} +68 -68
  108. package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +27 -0
  109. package/es/{timeline-definition-YZTLITO2-DmpPrD-3.js → timeline-definition-YZTLITO2-ErcRjbZf.js} +4 -4
  110. package/es/treemap-KZPCXAKY-CvZAIYVa.js +3 -0
  111. package/es/{vennDiagram-LZ73GAT5-B80Xr4jV.js → vennDiagram-LZ73GAT5-CDTZUtc8.js} +107 -107
  112. package/es/{vue-DTiWrQBM.js → vue-2aJw7p5p.js} +2 -2
  113. package/es/{vue-html-BG3Xflut.js → vue-html-DEjI8X9t.js} +1 -1
  114. package/es/{xychartDiagram-JWTSCODW-DvQyPDr4.js → xychartDiagram-JWTSCODW-Y21jBOTg.js} +103 -103
  115. package/package.json +1 -1
  116. package/es/architecture-PBZL5I3N-CBmkTWjb.js +0 -3
  117. package/es/channel-DIQFjdG3.js +0 -5
  118. package/es/chunk-GLR3WWYH-CqFdLic9.js +0 -41
  119. package/es/classDiagram-VBA2DB6C-B3yBiQy3.js +0 -29
  120. package/es/classDiagram-v2-RAHNMMFH-jbFYm_Xj.js +0 -29
  121. package/es/clone-DXVS0uSx.js +0 -8
  122. package/es/dagre-KLK3FWXG-CEhXRLVR.js +0 -294
  123. package/es/gitGraph-HDMCJU4V-CrEEHSZS.js +0 -3
  124. package/es/html-JbFqcNgP.js +0 -2
  125. package/es/info-3K5VOQVL-Dg3DCp4F.js +0 -3
  126. package/es/packet-RMMSAZCW-Dk7mKMJ4.js +0 -3
  127. package/es/pie-UPGHQEXC-CnM5YLNO.js +0 -3
  128. package/es/radar-KQ55EAFF-BwfADDx8.js +0 -3
  129. package/es/stateDiagram-v2-FVOUBMTO-BGWbXepL.js +0 -27
  130. package/es/treemap-KZPCXAKY-BWfn7JxQ.js +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antdv-next/x",
3
- "version": "1.0.2-beta.2",
3
+ "version": "1.0.2-beta.4",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist",
@@ -1,3 +0,0 @@
1
- import "./chunk-XZSTWKYB-CGk7ipHd.js";
2
- import { n as e } from "./chunk-R5LLSJPH-g44vgerl.js";
3
- export { e as createArchitectureServices };
@@ -1,5 +0,0 @@
1
- import { it as e, rt as t } from "./chunk-7R4GIKGN-B9vamSzt.js";
2
- //#region ../../node_modules/khroma/dist/methods/channel.js
3
- var n = (n, r) => e.lang.round(t.parse(n)[r]);
4
- //#endregion
5
- export { n as t };
@@ -1,41 +0,0 @@
1
- import { u as e } from "./chunk-GEFDOKGD-DM6dsEsk.js";
2
- import { g as t, h as n } from "./src-BH16DVv0.js";
3
- import { s as r, y as i } from "./chunk-7R4GIKGN-B9vamSzt.js";
4
- import { a, i as o, s } from "./chunk-KYZI473N-Bit5smNE.js";
5
- import { a as c, i as l, n as u, r as d } from "./chunk-O4XLMI2P-BCDk0ZIW.js";
6
- //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-GLR3WWYH.mjs
7
- var f = {
8
- common: r,
9
- getConfig: i,
10
- insertCluster: o,
11
- insertEdge: u,
12
- insertEdgeLabel: d,
13
- insertMarkers: l,
14
- insertNode: a,
15
- interpolateToCurve: e,
16
- labelHelper: s,
17
- log: t,
18
- positionEdgeLabel: c
19
- }, p = {}, m = /* @__PURE__ */ n((e) => {
20
- for (let t of e) p[t.name] = t;
21
- }, "registerLayoutLoaders");
22
- (/* @__PURE__ */ n(() => {
23
- m([{
24
- name: "dagre",
25
- loader: /* @__PURE__ */ n(async () => await import("./dagre-KLK3FWXG-CEhXRLVR.js"), "loader")
26
- }, ...[{
27
- name: "cose-bilkent",
28
- loader: /* @__PURE__ */ n(async () => await import("./cose-bilkent-S5V4N54A-DlmXyn6m.js"), "loader")
29
- }]]);
30
- }, "registerDefaultLayoutLoaders"))();
31
- var h = /* @__PURE__ */ n(async (e, t) => {
32
- if (!(e.layoutAlgorithm in p)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
33
- let n = p[e.layoutAlgorithm];
34
- return (await n.loader()).render(e, t, f, { algorithm: n.algorithm });
35
- }, "render"), g = /* @__PURE__ */ n((e = "", { fallback: n = "dagre" } = {}) => {
36
- if (e in p) return e;
37
- if (n in p) return t.warn(`Layout algorithm ${e} is not registered. Using ${n} as fallback.`), n;
38
- throw Error(`Both layout algorithms ${e} and ${n} are not registered.`);
39
- }, "getRegisteredLayoutAlgorithm");
40
- //#endregion
41
- export { m as n, h as r, g as t };
@@ -1,29 +0,0 @@
1
- import "./chunk-GEFDOKGD-DM6dsEsk.js";
2
- import { h as e } from "./src-BH16DVv0.js";
3
- import "./chunk-7R4GIKGN-B9vamSzt.js";
4
- import "./chunk-PU5JKC2W-BNpJuXxn.js";
5
- import "./chunk-FMBD7UC4-D6ZlqqMC.js";
6
- import "./chunk-MX3YWQON-Cbj2WwUZ.js";
7
- import "./chunk-YBOYWFTD-dOTBpTYs.js";
8
- import "./chunk-JSJVCQXG-Wr9uPcCh.js";
9
- import "./chunk-55IACEB6-RlJ-J3tE.js";
10
- import "./chunk-KX2RTZJC-BGffjoxB.js";
11
- import "./chunk-PQ6SQG4A-DpwBx6Hx.js";
12
- import "./chunk-KYZI473N-Bit5smNE.js";
13
- import "./chunk-O4XLMI2P-BCDk0ZIW.js";
14
- import "./chunk-GLR3WWYH-CqFdLic9.js";
15
- import { i as t, n, r, t as i } from "./chunk-WL4C6EOR-B6l-Yy2t.js";
16
- //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-VBA2DB6C.mjs
17
- var a = {
18
- parser: n,
19
- get db() {
20
- return new i();
21
- },
22
- renderer: r,
23
- styles: t,
24
- init: /* @__PURE__ */ e((e) => {
25
- e.class ||= {}, e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
26
- }, "init")
27
- };
28
- //#endregion
29
- export { a as diagram };
@@ -1,29 +0,0 @@
1
- import "./chunk-GEFDOKGD-DM6dsEsk.js";
2
- import { h as e } from "./src-BH16DVv0.js";
3
- import "./chunk-7R4GIKGN-B9vamSzt.js";
4
- import "./chunk-PU5JKC2W-BNpJuXxn.js";
5
- import "./chunk-FMBD7UC4-D6ZlqqMC.js";
6
- import "./chunk-MX3YWQON-Cbj2WwUZ.js";
7
- import "./chunk-YBOYWFTD-dOTBpTYs.js";
8
- import "./chunk-JSJVCQXG-Wr9uPcCh.js";
9
- import "./chunk-55IACEB6-RlJ-J3tE.js";
10
- import "./chunk-KX2RTZJC-BGffjoxB.js";
11
- import "./chunk-PQ6SQG4A-DpwBx6Hx.js";
12
- import "./chunk-KYZI473N-Bit5smNE.js";
13
- import "./chunk-O4XLMI2P-BCDk0ZIW.js";
14
- import "./chunk-GLR3WWYH-CqFdLic9.js";
15
- import { i as t, n, r, t as i } from "./chunk-WL4C6EOR-B6l-Yy2t.js";
16
- //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-RAHNMMFH.mjs
17
- var a = {
18
- parser: n,
19
- get db() {
20
- return new i();
21
- },
22
- renderer: r,
23
- styles: t,
24
- init: /* @__PURE__ */ e((e) => {
25
- e.class ||= {}, e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
26
- }, "init")
27
- };
28
- //#endregion
29
- export { a as diagram };
@@ -1,8 +0,0 @@
1
- import { y as e } from "./_baseUniq-AMhRdOMz.js";
2
- //#region ../../node_modules/lodash-es/clone.js
3
- var t = 4;
4
- function n(n) {
5
- return e(n, t);
6
- }
7
- //#endregion
8
- export { n as t };
@@ -1,294 +0,0 @@
1
- import { r as e } from "./_baseUniq-AMhRdOMz.js";
2
- import { s as t } from "./_basePickBy-DPqob0cQ.js";
3
- import { t as n } from "./dagre-B1qTL793.js";
4
- import "./chunk-GEFDOKGD-DM6dsEsk.js";
5
- import { t as r } from "./clone-DXVS0uSx.js";
6
- import { t as i } from "./graphlib-DFxSohCv.js";
7
- import { g as a, h as o } from "./src-BH16DVv0.js";
8
- import { b as s } from "./chunk-7R4GIKGN-B9vamSzt.js";
9
- import "./chunk-PU5JKC2W-BNpJuXxn.js";
10
- import "./chunk-MX3YWQON-Cbj2WwUZ.js";
11
- import { n as c } from "./chunk-YBOYWFTD-dOTBpTYs.js";
12
- import "./chunk-PQ6SQG4A-DpwBx6Hx.js";
13
- import { a as l, c as u, i as d, l as f, n as p, t as m, u as h } from "./chunk-KYZI473N-Bit5smNE.js";
14
- import { a as g, i as _, n as v, r as y, t as b } from "./chunk-O4XLMI2P-BCDk0ZIW.js";
15
- //#region ../../node_modules/dagre-d3-es/src/graphlib/json.js
16
- function x(t) {
17
- var n = {
18
- options: {
19
- directed: t.isDirected(),
20
- multigraph: t.isMultigraph(),
21
- compound: t.isCompound()
22
- },
23
- nodes: S(t),
24
- edges: C(t)
25
- };
26
- return e(t.graph()) || (n.value = r(t.graph())), n;
27
- }
28
- function S(n) {
29
- return t(n.nodes(), function(t) {
30
- var r = n.node(t), i = n.parent(t), a = { v: t };
31
- return e(r) || (a.value = r), e(i) || (a.parent = i), a;
32
- });
33
- }
34
- function C(n) {
35
- return t(n.edges(), function(t) {
36
- var r = n.edge(t), i = {
37
- v: t.v,
38
- w: t.w
39
- };
40
- return e(t.name) || (i.name = t.name), e(r) || (i.value = r), i;
41
- });
42
- }
43
- //#endregion
44
- //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/dagre-KLK3FWXG.mjs
45
- var w = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ o(() => {
46
- T.clear(), E.clear(), w.clear();
47
- }, "clear"), O = /* @__PURE__ */ o((e, t) => {
48
- let n = T.get(t) || [];
49
- return a.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
50
- }, "isDescendant"), k = /* @__PURE__ */ o((e, t) => {
51
- let n = T.get(t) || [];
52
- return a.info("Descendants of ", t, " is ", n), a.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || O(e.v, t) || O(e.w, t) || n.includes(e.w) : (a.debug("Tilt, ", t, ",not in descendants"), !1);
53
- }, "edgeInCluster"), A = /* @__PURE__ */ o((e, t, n, r) => {
54
- a.warn("Copying children of ", e, "root", r, "data", t.node(e), r);
55
- let i = t.children(e) || [];
56
- e !== r && i.push(e), a.warn("Copying (nodes) clusterId", e, "nodes", i), i.forEach((i) => {
57
- if (t.children(i).length > 0) A(i, t, n, r);
58
- else {
59
- let o = t.node(i);
60
- a.info("cp ", i, " to ", r, " with parent ", e), n.setNode(i, o), r !== t.parent(i) && (a.warn("Setting parent", i, t.parent(i)), n.setParent(i, t.parent(i))), e !== r && i !== e ? (a.debug("Setting parent", i, e), n.setParent(i, e)) : (a.info("In copy ", e, "root", r, "data", t.node(e), r), a.debug("Not Setting parent for node=", i, "cluster!==rootId", e !== r, "node!==clusterId", i !== e));
61
- let s = t.edges(i);
62
- a.debug("Copying Edges", s), s.forEach((i) => {
63
- a.info("Edge", i);
64
- let o = t.edge(i.v, i.w, i.name);
65
- a.info("Edge data", o, r);
66
- try {
67
- k(i, r) ? (a.info("Copying as ", i.v, i.w, o, i.name), n.setEdge(i.v, i.w, o, i.name), a.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : a.info("Skipping copy of edge ", i.v, "-->", i.w, " rootId: ", r, " clusterId:", e);
68
- } catch (e) {
69
- a.error(e);
70
- }
71
- });
72
- }
73
- a.debug("Removing node", i), t.removeNode(i);
74
- });
75
- }, "copy"), j = /* @__PURE__ */ o((e, t) => {
76
- let n = t.children(e), r = [...n];
77
- for (let i of n) E.set(i, e), r = [...r, ...j(i, t)];
78
- return r;
79
- }, "extractDescendants"), M = /* @__PURE__ */ o((e, t, n) => {
80
- 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) => ({
81
- v: e.v === t ? n : e.v,
82
- w: e.w === t ? t : e.w
83
- })), o = i.map((e) => ({
84
- v: e.v,
85
- w: e.w
86
- }));
87
- return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
88
- }, "findCommonEdges"), N = /* @__PURE__ */ o((e, t, n) => {
89
- let r = t.children(e);
90
- if (a.trace("Searching children of id ", e, r), r.length < 1) return e;
91
- let i;
92
- for (let e of r) {
93
- let r = N(e, t, n), a = M(t, n, r);
94
- if (r) if (a.length > 0) i = r;
95
- else return r;
96
- }
97
- return i;
98
- }, "findNonClusterChild"), P = /* @__PURE__ */ o((e) => !w.has(e) || !w.get(e).externalConnections ? e : w.has(e) ? w.get(e).id : e, "getAnchorId"), F = /* @__PURE__ */ o((e, t) => {
99
- if (!e || t > 10) {
100
- a.debug("Opting out, no graph ");
101
- return;
102
- } else a.debug("Opting in, graph ");
103
- e.nodes().forEach(function(t) {
104
- e.children(t).length > 0 && (a.warn("Cluster identified", t, " Replacement id in edges: ", N(t, e, t)), T.set(t, j(t, e)), w.set(t, {
105
- id: N(t, e, t),
106
- clusterData: e.node(t)
107
- }));
108
- }), e.nodes().forEach(function(t) {
109
- let n = e.children(t), r = e.edges();
110
- n.length > 0 ? (a.debug("Cluster identified", t, T), r.forEach((e) => {
111
- O(e.v, t) ^ O(e.w, t) && (a.warn("Edge: ", e, " leaves cluster ", t), a.warn("Descendants of XXX ", t, ": ", T.get(t)), w.get(t).externalConnections = !0);
112
- })) : a.debug("Not a cluster ", t, T);
113
- });
114
- for (let t of w.keys()) {
115
- let n = w.get(t).id, r = e.parent(n);
116
- r !== t && w.has(r) && !w.get(r).externalConnections && (w.get(t).id = r);
117
- }
118
- e.edges().forEach(function(t) {
119
- let n = e.edge(t);
120
- a.warn("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), a.warn("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t)));
121
- let r = t.v, i = t.w;
122
- if (a.warn("Fix XXX", w, "ids:", t.v, t.w, "Translating: ", w.get(t.v), " --- ", w.get(t.w)), w.get(t.v) || w.get(t.w)) {
123
- if (a.warn("Fixing and trying - removing XXX", t.v, t.w, t.name), r = P(t.v), i = P(t.w), e.removeEdge(t.v, t.w, t.name), r !== t.v) {
124
- let i = e.parent(r);
125
- w.get(i).externalConnections = !0, n.fromCluster = t.v;
126
- }
127
- if (i !== t.w) {
128
- let r = e.parent(i);
129
- w.get(r).externalConnections = !0, n.toCluster = t.w;
130
- }
131
- a.warn("Fix Replacing with XXX", r, i, t.name), e.setEdge(r, i, n, t.name);
132
- }
133
- }), a.warn("Adjusted Graph", x(e)), I(e, 0), a.trace(w);
134
- }, "adjustClustersAndEdges"), I = /* @__PURE__ */ o((e, t) => {
135
- if (a.warn("extractor - ", t, x(e), e.children("D")), t > 10) {
136
- a.error("Bailing out");
137
- return;
138
- }
139
- let n = e.nodes(), r = !1;
140
- for (let t of n) {
141
- let n = e.children(t);
142
- r ||= n.length > 0;
143
- }
144
- if (!r) {
145
- a.debug("Done, no node has children", e.nodes());
146
- return;
147
- }
148
- a.debug("Nodes = ", n, t);
149
- for (let r of n) if (a.debug("Extracting node", r, w, w.has(r) && !w.get(r).externalConnections, !e.parent(r), e.node(r), e.children("D"), " Depth ", t), !w.has(r)) a.debug("Not a cluster", r, t);
150
- else if (!w.get(r).externalConnections && e.children(r) && e.children(r).length > 0) {
151
- a.warn("Cluster without external connections, without a parent and with children", r, t);
152
- let n = e.graph().rankdir === "TB" ? "LR" : "TB";
153
- w.get(r)?.clusterData?.dir && (n = w.get(r).clusterData.dir, a.warn("Fixing dir", w.get(r).clusterData.dir, n));
154
- let o = new i({
155
- multigraph: !0,
156
- compound: !0
157
- }).setGraph({
158
- rankdir: n,
159
- nodesep: 50,
160
- ranksep: 50,
161
- marginx: 8,
162
- marginy: 8
163
- }).setDefaultEdgeLabel(function() {
164
- return {};
165
- });
166
- a.warn("Old graph before copy", x(e)), A(r, e, o, r), e.setNode(r, {
167
- clusterNode: !0,
168
- id: r,
169
- clusterData: w.get(r).clusterData,
170
- label: w.get(r).label,
171
- graph: o
172
- }), a.warn("New graph after copy node: (", r, ")", x(o)), a.debug("Old graph after copy", x(e));
173
- } else a.warn("Cluster ** ", r, " **not meeting the criteria !externalConnections:", !w.get(r).externalConnections, " no parent: ", !e.parent(r), " children ", e.children(r) && e.children(r).length > 0, e.children("D"), t), a.debug(w);
174
- n = e.nodes(), a.warn("New list of nodes", n);
175
- for (let r of n) {
176
- let n = e.node(r);
177
- a.warn(" Now next level", r, n), n?.clusterNode && I(n.graph, t + 1);
178
- }
179
- }, "extractor"), L = /* @__PURE__ */ o((e, t) => {
180
- if (t.length === 0) return [];
181
- let n = Object.assign([], t);
182
- return t.forEach((t) => {
183
- let r = L(e, e.children(t));
184
- n = [...n, ...r];
185
- }), n;
186
- }, "sorter"), R = /* @__PURE__ */ o((e) => L(e, e.children()), "sortNodesByHierarchy"), z = /* @__PURE__ */ o(async (e, t, r, i, s, p) => {
187
- a.warn("Graph in recursive render:XAX", x(t), s);
188
- let m = t.graph().rankdir;
189
- a.trace("Dir in recursive render - dir:", m);
190
- let _ = e.insert("g").attr("class", "root");
191
- t.nodes() ? a.info("Recursive render XXX", t.nodes()) : a.info("No nodes found for", t), t.edges().length > 0 && a.info("Recursive edges", t.edge(t.edges()[0]));
192
- let b = _.insert("g").attr("class", "clusters"), S = _.insert("g").attr("class", "edgePaths"), C = _.insert("g").attr("class", "edgeLabels"), T = _.insert("g").attr("class", "nodes");
193
- await Promise.all(t.nodes().map(async function(e) {
194
- let n = t.node(e);
195
- if (s !== void 0) {
196
- let n = JSON.parse(JSON.stringify(s.clusterData));
197
- a.trace("Setting data for parent cluster XXX\n Node.id = ", e, "\n data=", n.height, "\nParent cluster", s.height), t.setNode(s.id, n), t.parent(e) || (a.trace("Setting parent", e, s.id), t.setParent(e, s.id, n));
198
- }
199
- if (a.info("(Insert) Node XXX" + e + ": " + JSON.stringify(t.node(e))), n?.clusterNode) {
200
- a.info("Cluster identified XBX", e, n.width, t.node(e));
201
- let { ranksep: o, nodesep: s } = t.graph();
202
- n.graph.setGraph({
203
- ...n.graph.graph(),
204
- ranksep: o + 25,
205
- nodesep: s
206
- });
207
- let c = await z(T, n.graph, r, i, t.node(e), p), l = c.elem;
208
- h(n, l), n.diff = c.diff || 0, a.info("New compound node after recursive render XAX", e, "width", n.width, "height", n.height), f(l, n);
209
- } else t.children(e).length > 0 ? (a.trace("Cluster - the non recursive path XBX", e, n.id, n, n.width, "Graph:", t), a.trace(N(n.id, t)), w.set(n.id, {
210
- id: N(n.id, t),
211
- node: n
212
- })) : (a.trace("Node - the non recursive path XAX", e, T, t.node(e), m), await l(T, t.node(e), {
213
- config: p,
214
- dir: m
215
- }));
216
- })), await (/* @__PURE__ */ o(async () => {
217
- let e = t.edges().map(async function(e) {
218
- let n = t.edge(e.v, e.w, e.name);
219
- a.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(e)), a.info("Edge " + e.v + " -> " + e.w + ": ", e, " ", JSON.stringify(t.edge(e))), a.info("Fix", w, "ids:", e.v, e.w, "Translating: ", w.get(e.v), w.get(e.w)), await y(C, n);
220
- });
221
- await Promise.all(e);
222
- }, "processEdges"))(), a.info("Graph before layout:", JSON.stringify(x(t))), a.info("############################################# XXX"), a.info("### Layout ### XXX"), a.info("############################################# XXX"), n(t), a.info("Graph after layout:", JSON.stringify(x(t)));
223
- let E = 0, { subGraphTitleTotalMargin: D } = c(p);
224
- return await Promise.all(R(t).map(async function(e) {
225
- let n = t.node(e);
226
- if (a.info("Position XBX => " + e + ": (" + n.x, "," + n.y, ") width: ", n.width, " height: ", n.height), n?.clusterNode) n.y += D, a.info("A tainted cluster node XBX1", e, n.id, n.width, n.height, n.x, n.y, t.parent(e)), w.get(n.id).node = n, u(n);
227
- else if (t.children(e).length > 0) {
228
- a.info("A pure cluster node XBX1", e, n.id, n.x, n.y, n.width, n.height, t.parent(e)), n.height += D, t.node(n.parentId);
229
- let r = n?.padding / 2 || 0, i = n?.labelBBox?.height || 0, o = i - r || 0;
230
- a.debug("OffsetY", o, "labelHeight", i, "halfPadding", r), await d(b, n), w.get(n.id).node = n;
231
- } else {
232
- let e = t.node(n.parentId);
233
- n.y += D / 2, a.info("A regular node XBX1 - using the padding", n.id, "parent", n.parentId, n.width, n.height, n.x, n.y, "offsetY", n.offsetY, "parent", e, e?.offsetY, n), u(n);
234
- }
235
- })), t.edges().forEach(function(e) {
236
- let n = t.edge(e);
237
- a.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(n), n), n.points.forEach((e) => e.y += D / 2), g(n, v(S, n, w, r, t.node(e.v), t.node(e.w), i));
238
- }), t.nodes().forEach(function(e) {
239
- let n = t.node(e);
240
- a.info(e, n.type, n.diff), n.isGroup && (E = n.diff);
241
- }), a.warn("Returning from recursive render XAX", _, E), {
242
- elem: _,
243
- diff: E
244
- };
245
- }, "recursiveRender"), B = /* @__PURE__ */ o(async (e, t) => {
246
- let n = new i({
247
- multigraph: !0,
248
- compound: !0
249
- }).setGraph({
250
- rankdir: e.direction,
251
- nodesep: e.config?.nodeSpacing || e.config?.flowchart?.nodeSpacing || e.nodeSpacing,
252
- ranksep: e.config?.rankSpacing || e.config?.flowchart?.rankSpacing || e.rankSpacing,
253
- marginx: 8,
254
- marginy: 8
255
- }).setDefaultEdgeLabel(function() {
256
- return {};
257
- }), r = t.select("g");
258
- _(r, e.markers, e.type, e.diagramId), p(), b(), m(), D(), e.nodes.forEach((e) => {
259
- n.setNode(e.id, { ...e }), e.parentId && n.setParent(e.id, e.parentId);
260
- }), a.debug("Edges:", e.edges), e.edges.forEach((e) => {
261
- if (e.start === e.end) {
262
- let t = e.start, r = t + "---" + t + "---1", i = t + "---" + t + "---2", a = n.node(t);
263
- n.setNode(r, {
264
- domId: r,
265
- id: r,
266
- parentId: a.parentId,
267
- labelStyle: "",
268
- label: "",
269
- padding: 0,
270
- shape: "labelRect",
271
- style: "",
272
- width: 10,
273
- height: 10
274
- }), n.setParent(r, a.parentId), n.setNode(i, {
275
- domId: i,
276
- id: i,
277
- parentId: a.parentId,
278
- labelStyle: "",
279
- padding: 0,
280
- shape: "labelRect",
281
- label: "",
282
- style: "",
283
- width: 10,
284
- height: 10
285
- }), n.setParent(i, a.parentId);
286
- let o = structuredClone(e), s = structuredClone(e), c = structuredClone(e);
287
- o.label = "", o.arrowTypeEnd = "none", o.id = t + "-cyclic-special-1", s.arrowTypeStart = "none", s.arrowTypeEnd = "none", s.id = t + "-cyclic-special-mid", c.label = "", a.isGroup && (o.fromCluster = t, c.toCluster = t), c.id = t + "-cyclic-special-2", c.arrowTypeStart = "none", n.setEdge(t, r, o, t + "-cyclic-special-0"), n.setEdge(r, i, s, t + "-cyclic-special-1"), n.setEdge(i, t, c, t + "-cyc<lic-special-2");
288
- } else n.setEdge(e.start, e.end, { ...e }, e.id);
289
- }), a.warn("Graph at first:", JSON.stringify(x(n))), F(n), a.warn("Graph after XAX:", JSON.stringify(x(n)));
290
- let o = s();
291
- await z(r, n, e.type, e.diagramId, void 0, o);
292
- }, "render");
293
- //#endregion
294
- export { B as render };
@@ -1,3 +0,0 @@
1
- import "./chunk-XZSTWKYB-CGk7ipHd.js";
2
- import { n as e } from "./chunk-7E7YKBS2-ChLFamzc.js";
3
- export { e as createGitGraphServices };
@@ -1,2 +0,0 @@
1
- import { t as e } from "./html-C2-_98S6.js";
2
- export { e as default };
@@ -1,3 +0,0 @@
1
- import "./chunk-XZSTWKYB-CGk7ipHd.js";
2
- import { n as e } from "./chunk-EGIJ26TM-GvsuORRL.js";
3
- export { e as createInfoServices };
@@ -1,3 +0,0 @@
1
- import "./chunk-XZSTWKYB-CGk7ipHd.js";
2
- import { n as e } from "./chunk-C72U2L5F-BV-rXau1.js";
3
- export { e as createPacketServices };
@@ -1,3 +0,0 @@
1
- import "./chunk-XZSTWKYB-CGk7ipHd.js";
2
- import { n as e } from "./chunk-XIRO2GV7-CaFInIOW.js";
3
- export { e as createPieServices };
@@ -1,3 +0,0 @@
1
- import "./chunk-XZSTWKYB-CGk7ipHd.js";
2
- import { n as e } from "./chunk-L3YUKLVL-DBuHDpQ2.js";
3
- export { e as createRadarServices };
@@ -1,27 +0,0 @@
1
- import "./chunk-GEFDOKGD-DM6dsEsk.js";
2
- import { h as e } from "./src-BH16DVv0.js";
3
- import "./chunk-7R4GIKGN-B9vamSzt.js";
4
- import "./chunk-PU5JKC2W-BNpJuXxn.js";
5
- import "./chunk-MX3YWQON-Cbj2WwUZ.js";
6
- import "./chunk-YBOYWFTD-dOTBpTYs.js";
7
- import "./chunk-55IACEB6-RlJ-J3tE.js";
8
- import "./chunk-KX2RTZJC-BGffjoxB.js";
9
- import "./chunk-PQ6SQG4A-DpwBx6Hx.js";
10
- import "./chunk-KYZI473N-Bit5smNE.js";
11
- import "./chunk-O4XLMI2P-BCDk0ZIW.js";
12
- import "./chunk-GLR3WWYH-CqFdLic9.js";
13
- import { i as t, n, r, t as i } from "./chunk-NQ4KR5QH-FPQ-IHJN.js";
14
- //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-FVOUBMTO.mjs
15
- var a = {
16
- parser: n,
17
- get db() {
18
- return new i(2);
19
- },
20
- renderer: r,
21
- styles: t,
22
- init: /* @__PURE__ */ e((e) => {
23
- e.state ||= {}, e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
24
- }, "init")
25
- };
26
- //#endregion
27
- export { a as diagram };
@@ -1,3 +0,0 @@
1
- import "./chunk-XZSTWKYB-CGk7ipHd.js";
2
- import { n as e } from "./chunk-OZEHJAEY-BZ24IOgQ.js";
3
- export { e as createTreemapServices };