hexagon-editor 0.1.4 → 0.1.6

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 (118) hide show
  1. package/README.md +24 -11
  2. package/dist/MarkdownEditor.vue.d.ts +28 -26
  3. package/dist/MarkdownEditor.vue.d.ts.map +1 -1
  4. package/dist/{MarkdownEditorLinkForm-C7CGgA83.js → MarkdownEditorLinkForm-B9dEX3WT.js} +1 -1
  5. package/dist/{base-Bnv2-Te4.js → base-BPdMUtQo.js} +141 -137
  6. package/dist/components/MarkdownEditorToolbar.vue.d.ts +4 -3
  7. package/dist/components/MarkdownEditorToolbar.vue.d.ts.map +1 -1
  8. package/dist/configure.d.ts +0 -2
  9. package/dist/configure.d.ts.map +1 -1
  10. package/dist/configure.js +11 -12
  11. package/dist/core/basic-editor-markdown.d.ts.map +1 -1
  12. package/dist/core/basic-editor-renderers.d.ts +6 -4
  13. package/dist/core/basic-editor-renderers.d.ts.map +1 -1
  14. package/dist/core/basic-editor-types.d.ts +2 -0
  15. package/dist/core/basic-editor-types.d.ts.map +1 -1
  16. package/dist/core/basic-editor.d.ts +1 -1
  17. package/dist/core/basic-editor.d.ts.map +1 -1
  18. package/dist/core/index.d.ts +0 -2
  19. package/dist/core/index.d.ts.map +1 -1
  20. package/dist/core/markup-editor.d.ts.map +1 -1
  21. package/dist/core.js +28 -31
  22. package/dist/extensions.js +1 -1
  23. package/dist/forms/MarkdownEditorImageForm.vue.d.ts +2 -2
  24. package/dist/forms/MarkdownEditorImageForm.vue.d.ts.map +1 -1
  25. package/dist/forms/MarkdownEditorLinkForm.vue.d.ts +2 -2
  26. package/dist/forms/MarkdownEditorTextInput.vue.d.ts +2 -2
  27. package/dist/forms/MarkdownEditorTextInput.vue.d.ts.map +1 -1
  28. package/dist/forms.js +1 -1
  29. package/dist/{full-C-o2lPBX.js → full-Da8esvj2.js} +1 -1
  30. package/dist/{full-specs-Cl-ODShc.js → full-specs-hXKoMF-0.js} +1 -1
  31. package/dist/index-D_CMntQU.js +3173 -0
  32. package/dist/index.css +1 -1
  33. package/dist/index.d.ts +1 -1
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +3611 -1284
  36. package/dist/{markup-commands-BckOOKIe.js → markup-commands-BYsx8ADT.js} +1993 -1963
  37. package/dist/presets.js +2 -2
  38. package/dist/public-types.d.ts +22 -0
  39. package/dist/public-types.d.ts.map +1 -1
  40. package/dist/renderer/MarkdownRenderer.vue.d.ts +2 -0
  41. package/dist/renderer/MarkdownRenderer.vue.d.ts.map +1 -1
  42. package/dist/renderer/markdown.d.ts +2 -1
  43. package/dist/renderer/markdown.d.ts.map +1 -1
  44. package/dist/renderer.css +1 -1
  45. package/dist/renderer.js +142 -146
  46. package/package.json +106 -108
  47. package/dist/MarkdownEditorLinkForm.css +0 -1
  48. package/dist/abnfDiagram-N423BO3Z-DCf6sPky.js +0 -87
  49. package/dist/arc-y6UeoJpJ.js +0 -83
  50. package/dist/architectureDiagram-T3A2C74G-Cc3_3-cI.js +0 -4778
  51. package/dist/base.css +0 -1
  52. package/dist/blockDiagram-VBNYF7ZC-DWVLZwXY.js +0 -2419
  53. package/dist/c4Diagram-5PPSVZJV-CaIN7qay.js +0 -1577
  54. package/dist/channel-BwXGcavV.js +0 -5
  55. package/dist/chunk-2GRJ4B5K-O75udjPr.js +0 -68
  56. package/dist/chunk-2Q5K7J3B-CySL0lOA.js +0 -15
  57. package/dist/chunk-5RXB4S5H-BKPnLCOJ.js +0 -1408
  58. package/dist/chunk-5VM5RSS4--it1VJIv.js +0 -19
  59. package/dist/chunk-6Q2QTUOP-DNiML-50.js +0 -664
  60. package/dist/chunk-GF5L2VYU-z7A-k0-V.js +0 -1533
  61. package/dist/chunk-JWPE2WC7-DAjx3Kjr.js +0 -8
  62. package/dist/chunk-KBJHAD2P-D4R1VW0r.js +0 -19
  63. package/dist/chunk-RYQCIY6F-DmJAYxq8.js +0 -313
  64. package/dist/chunk-XXDRQBXY-CK913N-t.js +0 -8
  65. package/dist/classDiagram-JCYQIIEL-Djipq_HJ.js +0 -16
  66. package/dist/classDiagram-v2-OCEON4UE-Djipq_HJ.js +0 -16
  67. package/dist/core/optional-renderers.d.ts +0 -9
  68. package/dist/core/optional-renderers.d.ts.map +0 -1
  69. package/dist/cose-bilkent-JH36ORCC-CXuKFbXy.js +0 -2608
  70. package/dist/cynefin-VYW2F7L2-Bkk-F_Js.js +0 -23766
  71. package/dist/cynefinDiagram-MW4NZA55-DwOK40hm.js +0 -299
  72. package/dist/cytoscape.esm-3W4EOjxC.js +0 -18756
  73. package/dist/dagre-VZM6K2ZE-0VsGm8Ag.js +0 -340
  74. package/dist/defaultLocale-BgPVtth8.js +0 -171
  75. package/dist/diagram-7IWD3JNH-BrApu1hz.js +0 -350
  76. package/dist/diagram-B4RE2ZJO-CVXoBg2r.js +0 -461
  77. package/dist/diagram-LBJQPF4R-Dp0eSz2L.js +0 -142
  78. package/dist/diagram-Q27KOJAE-DWIltqIH.js +0 -528
  79. package/dist/diagram-UB23O5K3-B7z2Lj3K.js +0 -219
  80. package/dist/ebnfDiagram-BXEA7PRR-CYgE6z_2.js +0 -109
  81. package/dist/erDiagram-JOGREHBK-D3QWrPo-.js +0 -910
  82. package/dist/flowDiagram-UKHOOZJN-CfjPcHNW.js +0 -1638
  83. package/dist/ganttDiagram-PKOTCBZU-ECmaWI-9.js +0 -2711
  84. package/dist/gitGraphDiagram-DS77QQ5N-DgG1RGJ8.js +0 -815
  85. package/dist/graph-DAHC4kPm.js +0 -1545
  86. package/dist/infoDiagram-6WML65LV-B1Yl3nZV.js +0 -24
  87. package/dist/init-DjUOC4st.js +0 -16
  88. package/dist/ishikawaDiagram-WSZJBQD7-4sngaB5o.js +0 -621
  89. package/dist/journeyDiagram-NVQOT4AX-B_6AmR_j.js +0 -834
  90. package/dist/kanban-definition-27J2QSJJ-B8BO9o8J.js +0 -724
  91. package/dist/katex-ByXcxnHy.js +0 -14436
  92. package/dist/katex-DoRnZ_sp.js +0 -11682
  93. package/dist/layout-DBbo_M5I.js +0 -1519
  94. package/dist/linear-BEdRfKba.js +0 -259
  95. package/dist/map-DRdzG8Ho.js +0 -224
  96. package/dist/markup-commands.css +0 -1
  97. package/dist/mermaid.core-CR0bA2Wa.js +0 -16496
  98. package/dist/mindmap-definition-FAOFIHXS-DnPz807N.js +0 -827
  99. package/dist/optional-renderers-BalvqqvY.js +0 -11
  100. package/dist/ordinal-B6-f3MAq.js +0 -61
  101. package/dist/pegDiagram-VL7TDLO6-csGWlzs8.js +0 -95
  102. package/dist/pieDiagram-7S7Q4E2Y-Bqs8j5FX.js +0 -207
  103. package/dist/quadrantDiagram-CIZ2JOQS-jzP4lRrY.js +0 -1023
  104. package/dist/railroadDiagram-AXF67PYL-BSCyR24u.js +0 -77
  105. package/dist/renderer/mermaid-runtime.d.ts +0 -4
  106. package/dist/renderer/mermaid-runtime.d.ts.map +0 -1
  107. package/dist/requirementDiagram-LRYGKXZP-DmEkLYqX.js +0 -882
  108. package/dist/sankeyDiagram-W5VNT64P-CYvRYMTh.js +0 -847
  109. package/dist/sequenceDiagram-SI44F4Z6-CyWbDtPA.js +0 -2888
  110. package/dist/sizeCapture-X5ZJPWSS-xKhYCY84.js +0 -46
  111. package/dist/stateDiagram-OKZ733FA-DP44R2Dd.js +0 -263
  112. package/dist/stateDiagram-v2-UEYNNEHI-BvlOisND.js +0 -16
  113. package/dist/swimlanes-SLNWSIFB-BKFp8twH.js +0 -5332
  114. package/dist/swimlanesDiagram-ULZ7WXOC-CTvIFuHq.js +0 -13
  115. package/dist/timeline-definition-Z64GVDOM-B4137uIl.js +0 -1055
  116. package/dist/vennDiagram-T6HMQDX7-CPs8gXjx.js +0 -1578
  117. package/dist/wardleyDiagram-T6FBY63Y-BYp13hbI.js +0 -675
  118. package/dist/xychartDiagram-ELKLHX3M-DTT37K2u.js +0 -1388
@@ -1,8 +0,0 @@
1
- import { _ as i } from "./mermaid.core-CR0bA2Wa.js";
2
- function t(c, e) {
3
- c.accDescr && e.setAccDescription?.(c.accDescr), c.accTitle && e.setAccTitle?.(c.accTitle), c.title && e.setDiagramTitle?.(c.title);
4
- }
5
- i(t, "populateCommonDb");
6
- export {
7
- t as p
8
- };
@@ -1,19 +0,0 @@
1
- import { _ as a, e as w, l as x } from "./mermaid.core-CR0bA2Wa.js";
2
- var d = /* @__PURE__ */ a((e, t, i, r) => {
3
- e.attr("class", i);
4
- const { width: o, height: h, x: n, y: c } = u(e, t);
5
- w(e, h, o, r);
6
- const s = l(n, c, o, h, t);
7
- e.attr("viewBox", s), x.debug(`viewBox configured: ${s} with padding: ${t}`);
8
- }, "setupViewPortForSVG"), u = /* @__PURE__ */ a((e, t) => {
9
- const i = e.node()?.getBBox() || { width: 0, height: 0, x: 0, y: 0 };
10
- return {
11
- width: i.width + t * 2,
12
- height: i.height + t * 2,
13
- x: i.x,
14
- y: i.y
15
- };
16
- }, "calculateDimensionsWithPadding"), l = /* @__PURE__ */ a((e, t, i, r, o) => `${e - o} ${t - o} ${i} ${r}`, "createViewBox");
17
- export {
18
- d as s
19
- };
@@ -1,313 +0,0 @@
1
- import { _ as u, l as i } from "./mermaid.core-CR0bA2Wa.js";
2
- import { i as m, G as y } from "./graph-DAHC4kPm.js";
3
- import { b as _, m as X } from "./map-DRdzG8Ho.js";
4
- var j = 4;
5
- function p(e) {
6
- return _(e, j);
7
- }
8
- function C(e) {
9
- var r = {
10
- options: {
11
- directed: e.isDirected(),
12
- multigraph: e.isMultigraph(),
13
- compound: e.isCompound()
14
- },
15
- nodes: F(e),
16
- edges: M(e)
17
- };
18
- return m(e.graph()) || (r.value = p(e.graph())), r;
19
- }
20
- function F(e) {
21
- return X(e.nodes(), function(r) {
22
- var n = e.node(r), s = e.parent(r), t = { v: r };
23
- return m(n) || (t.value = n), m(s) || (t.parent = s), t;
24
- });
25
- }
26
- function M(e) {
27
- return X(e.edges(), function(r) {
28
- var n = e.edge(r), s = { v: r.v, w: r.w };
29
- return m(r.name) || (s.name = r.name), m(n) || (s.value = n), s;
30
- });
31
- }
32
- var c = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ u(() => {
33
- w.clear(), A.clear(), c.clear();
34
- }, "clear"), v = /* @__PURE__ */ u((e, r) => {
35
- const n = w.get(r) || [];
36
- return i.trace("In isDescendant", r, " ", e, " = ", n.includes(e)), n.includes(e);
37
- }, "isDescendant"), R = /* @__PURE__ */ u((e, r) => {
38
- const n = w.get(r) || [];
39
- return i.info("Descendants of ", r, " is ", n), i.info("Edge is ", e), e.v === r || e.w === r ? !1 : n ? n.includes(e.v) || v(e.v, r) || v(e.w, r) || n.includes(e.w) : (i.debug("Tilt, ", r, ",not in descendants"), !1);
40
- }, "edgeInCluster"), b = /* @__PURE__ */ u((e, r, n, s) => {
41
- i.warn(
42
- "Copying children of ",
43
- e,
44
- "root",
45
- s,
46
- "data",
47
- r.node(e),
48
- s
49
- );
50
- const t = r.children(e) || [];
51
- e !== s && t.push(e), i.warn("Copying (nodes) clusterId", e, "nodes", t), t.forEach((o) => {
52
- if (r.children(o).length > 0)
53
- b(o, r, n, s);
54
- else {
55
- const l = r.node(o);
56
- i.info("cp ", o, " to ", s, " with parent ", e), n.setNode(o, l), s !== r.parent(o) && (i.warn("Setting parent", o, r.parent(o)), n.setParent(o, r.parent(o))), e !== s && o !== e ? (i.debug("Setting parent", o, e), n.setParent(o, e)) : (i.info("In copy ", e, "root", s, "data", r.node(e), s), i.debug(
57
- "Not Setting parent for node=",
58
- o,
59
- "cluster!==rootId",
60
- e !== s,
61
- "node!==clusterId",
62
- o !== e
63
- ));
64
- const f = r.edges(o);
65
- i.debug("Copying Edges", f), f.forEach((a) => {
66
- i.info("Edge", a);
67
- const d = r.edge(a.v, a.w, a.name);
68
- i.info("Edge data", d, s);
69
- try {
70
- if (R(a, s)) {
71
- const g = w.get(s) || [], E = g.includes(a.v) || v(a.v, s) || a.v === s, x = g.includes(a.w) || v(a.w, s) || a.w === s;
72
- if (E && x)
73
- i.info("Copying as ", a.v, a.w, d, a.name), n.setEdge(a.v, a.w, d, a.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]));
74
- else {
75
- const N = E ? s : a.v, h = x ? s : a.w;
76
- i.info("Rebinding cross-boundary edge as ", N, h, d, a.name), r.setEdge(N, h, d, a.name);
77
- }
78
- } else
79
- i.info(
80
- "Skipping copy of edge ",
81
- a.v,
82
- "-->",
83
- a.w,
84
- " rootId: ",
85
- s,
86
- " clusterId:",
87
- e
88
- );
89
- } catch (g) {
90
- i.error(g);
91
- }
92
- });
93
- }
94
- i.debug("Removing node", o), r.removeNode(o);
95
- });
96
- }, "copy"), O = /* @__PURE__ */ u((e, r) => {
97
- const n = r.children(e);
98
- let s = [...n];
99
- for (const t of n)
100
- A.set(t, e), s = [...s, ...O(t, r)];
101
- return s;
102
- }, "extractDescendants"), P = /* @__PURE__ */ u((e, r, n) => {
103
- const s = e.edges().filter((a) => a.v === r || a.w === r), t = e.edges().filter((a) => a.v === n || a.w === n), o = s.map((a) => ({ v: a.v === r ? n : a.v, w: a.w === r ? r : a.w })), l = t.map((a) => ({ v: a.v, w: a.w }));
104
- return o.filter((a) => l.some((d) => a.v === d.v && a.w === d.w));
105
- }, "findCommonEdges"), D = /* @__PURE__ */ u((e, r, n) => {
106
- const s = r.children(e);
107
- if (i.trace("Searching children of id ", e, s), s.length < 1)
108
- return e;
109
- let t;
110
- for (const o of s) {
111
- const l = D(o, r, n), f = P(r, n, l);
112
- if (l)
113
- if (f.length > 0)
114
- t = l;
115
- else
116
- return l;
117
- }
118
- return t;
119
- }, "findNonClusterChild"), S = /* @__PURE__ */ u((e) => !c.has(e) || !c.get(e).externalConnections ? e : c.has(e) ? c.get(e).id : e, "getAnchorId"), U = /* @__PURE__ */ u((e, r) => {
120
- if (!e || r > 10) {
121
- i.debug("Opting out, no graph ");
122
- return;
123
- } else
124
- i.debug("Opting in, graph ");
125
- e.nodes().forEach(function(n) {
126
- e.children(n).length > 0 && (i.warn(
127
- "Cluster identified",
128
- n,
129
- " Replacement id in edges: ",
130
- D(n, e, n)
131
- ), w.set(n, O(n, e)), c.set(n, { id: D(n, e, n), clusterData: e.node(n) }));
132
- }), e.nodes().forEach(function(n) {
133
- const s = e.children(n), t = e.edges();
134
- s.length > 0 ? (i.debug("Cluster identified", n, w), t.forEach((o) => {
135
- const l = v(o.v, n), f = v(o.w, n);
136
- l ^ f && (i.warn("Edge: ", o, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", w.get(n)), c.get(n).externalConnections = !0);
137
- })) : i.debug("Not a cluster ", n, w);
138
- });
139
- for (let n of c.keys()) {
140
- const s = c.get(n).id, t = e.parent(s);
141
- t !== n && c.has(t) && !c.get(t).externalConnections && (c.get(n).id = t);
142
- const o = e.edges().some((l) => l.v === n);
143
- if (s && c.get(n)?.externalConnections && o && L(e, s, n)) {
144
- const l = T(e, n, e.parent(s));
145
- l && (c.get(n).id = l);
146
- }
147
- }
148
- e.edges().forEach(function(n) {
149
- const s = e.edge(n);
150
- i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
151
- let t = n.v, o = n.w;
152
- if (i.warn(
153
- "Fix XXX",
154
- c,
155
- "ids:",
156
- n.v,
157
- n.w,
158
- "Translating: ",
159
- c.get(n.v),
160
- " --- ",
161
- c.get(n.w)
162
- ), c.get(n.v) || c.get(n.w)) {
163
- if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), t = S(n.v), o = S(n.w), e.removeEdge(n.v, n.w, n.name), t !== n.v) {
164
- const l = e.parent(t);
165
- c.get(l).externalConnections = !0, s.fromCluster = n.v;
166
- }
167
- if (o !== n.w) {
168
- const l = e.parent(o);
169
- c.get(l).externalConnections = !0, s.toCluster = n.w;
170
- }
171
- i.warn("Fix Replacing with XXX", t, o, n.name), e.setEdge(t, o, s, n.name);
172
- }
173
- }), i.warn("Adjusted Graph", C(e)), k(e, 0), i.trace(c);
174
- }, "adjustClustersAndEdges"), k = /* @__PURE__ */ u((e, r) => {
175
- if (i.warn("extractor - ", r, C(e), e.children("D")), r > 10) {
176
- i.error("Bailing out");
177
- return;
178
- }
179
- let n = e.nodes(), s = !1;
180
- for (const t of n) {
181
- const o = e.children(t);
182
- s = s || o.length > 0;
183
- }
184
- if (!s) {
185
- i.debug("Done, no node has children", e.nodes());
186
- return;
187
- }
188
- i.debug("Nodes = ", n, r);
189
- for (const t of n)
190
- if (i.debug(
191
- "Extracting node",
192
- t,
193
- c,
194
- c.has(t) && !c.get(t).externalConnections,
195
- !e.parent(t),
196
- e.node(t),
197
- e.children("D"),
198
- " Depth ",
199
- r
200
- ), !c.has(t))
201
- i.debug("Not a cluster", t, r);
202
- else if (c.get(t)?.clusterData?.explicitDir && e.children(t) && e.children(t).length > 0) {
203
- i.warn("Cluster with explicit dir, creating subgraph for children", t, r);
204
- const o = c.get(t).clusterData.dir, l = new y({
205
- multigraph: !0,
206
- compound: !0
207
- }).setGraph({
208
- rankdir: o,
209
- nodesep: 50,
210
- ranksep: 50,
211
- marginx: 8,
212
- marginy: 8
213
- }).setDefaultEdgeLabel(function() {
214
- return {};
215
- });
216
- b(t, e, l, t);
217
- const f = e.node(t) || {};
218
- e.setNode(t, {
219
- ...f,
220
- clusterNode: !0,
221
- id: t,
222
- clusterData: c.get(t).clusterData,
223
- label: c.get(t).label,
224
- graph: l
225
- }), i.warn(
226
- "Subgraph for cluster with explicit dir created:",
227
- t,
228
- C(l)
229
- );
230
- } else if (!c.get(t).externalConnections && e.children(t) && e.children(t).length > 0) {
231
- i.warn(
232
- "Cluster without external connections, without a parent and with children",
233
- t,
234
- r
235
- );
236
- let l = e.graph().rankdir === "TB" ? "LR" : "TB";
237
- c.get(t)?.clusterData?.dir && (l = c.get(t).clusterData.dir, i.warn("Fixing dir", c.get(t).clusterData.dir, l));
238
- const f = new y({
239
- multigraph: !0,
240
- compound: !0
241
- }).setGraph({
242
- rankdir: l,
243
- nodesep: 50,
244
- ranksep: 50,
245
- marginx: 8,
246
- marginy: 8
247
- }).setDefaultEdgeLabel(function() {
248
- return {};
249
- });
250
- b(t, e, f, t);
251
- const a = e.node(t) || {};
252
- e.setNode(t, {
253
- ...a,
254
- clusterNode: !0,
255
- id: t,
256
- clusterData: c.get(t).clusterData,
257
- label: c.get(t).label,
258
- graph: f
259
- }), i.debug("Old graph after copy", C(e));
260
- } else
261
- i.warn(
262
- "Cluster ** ",
263
- t,
264
- " **not meeting the criteria !externalConnections:",
265
- !c.get(t).externalConnections,
266
- " no parent: ",
267
- !e.parent(t),
268
- " children ",
269
- e.children(t) && e.children(t).length > 0,
270
- e.children("D"),
271
- r
272
- ), i.debug(c);
273
- n = e.nodes(), i.warn("New list of nodes", n);
274
- for (const t of n) {
275
- const o = e.node(t);
276
- i.warn(" Now next level", t, o), o?.clusterNode && k(o.graph, r + 1);
277
- }
278
- }, "extractor"), B = /* @__PURE__ */ u((e, r) => {
279
- if (r.length === 0)
280
- return [];
281
- let n = Object.assign([], r);
282
- return r.forEach((s) => {
283
- const t = e.children(s), o = B(e, t);
284
- n = [...n, ...o];
285
- }), n;
286
- }, "sorter"), W = /* @__PURE__ */ u((e) => B(e, e.children()), "sortNodesByHierarchy"), L = /* @__PURE__ */ u((e, r, n) => {
287
- let s = e.parent(r);
288
- for (; s && s !== n; ) {
289
- const t = c.get(s);
290
- if (t && !t.externalConnections)
291
- return !0;
292
- s = e.parent(s);
293
- }
294
- return !1;
295
- }, "isNodeInExtractableCluster"), T = /* @__PURE__ */ u((e, r, n) => {
296
- const s = e.children(r) ?? [];
297
- for (const t of s) {
298
- if (t === n || v(t, n))
299
- continue;
300
- const o = D(t, e, r);
301
- if (o && !L(e, o, r))
302
- return o;
303
- }
304
- return null;
305
- }, "findSafeAnchorNode");
306
- export {
307
- U as a,
308
- c as b,
309
- J as c,
310
- D as f,
311
- W as s,
312
- C as w
313
- };
@@ -1,8 +0,0 @@
1
- import { _ as a, d as o } from "./mermaid.core-CR0bA2Wa.js";
2
- var d = /* @__PURE__ */ a((t, e) => {
3
- let n;
4
- return e === "sandbox" && (n = o("#i" + t)), (e === "sandbox" ? o(n.nodes()[0].contentDocument.body) : o("body")).select(`[id="${t}"]`);
5
- }, "getDiagramElement");
6
- export {
7
- d as g
8
- };
@@ -1,16 +0,0 @@
1
- import { s as r, c as s, a as e, C as t } from "./chunk-GF5L2VYU-z7A-k0-V.js";
2
- import { _ as l } from "./mermaid.core-CR0bA2Wa.js";
3
- var d = {
4
- parser: e,
5
- get db() {
6
- return new t();
7
- },
8
- renderer: s,
9
- styles: r,
10
- init: /* @__PURE__ */ l((a) => {
11
- a.class || (a.class = {}), a.class.arrowMarkerAbsolute = a.arrowMarkerAbsolute;
12
- }, "init")
13
- };
14
- export {
15
- d as diagram
16
- };
@@ -1,16 +0,0 @@
1
- import { s as r, c as s, a as e, C as t } from "./chunk-GF5L2VYU-z7A-k0-V.js";
2
- import { _ as l } from "./mermaid.core-CR0bA2Wa.js";
3
- var d = {
4
- parser: e,
5
- get db() {
6
- return new t();
7
- },
8
- renderer: s,
9
- styles: r,
10
- init: /* @__PURE__ */ l((a) => {
11
- a.class || (a.class = {}), a.class.arrowMarkerAbsolute = a.arrowMarkerAbsolute;
12
- }, "init")
13
- };
14
- export {
15
- d as diagram
16
- };
@@ -1,9 +0,0 @@
1
- export interface AdvancedMarkdownRenderers {
2
- html?(source: string): HTMLElement;
3
- math?(latex: string, display: boolean): HTMLElement;
4
- mermaid?(source: string): HTMLElement;
5
- }
6
- /** Configure host-owned renderers such as KaTeX or Mermaid without bundling them into the editor. */
7
- export declare function configureAdvancedMarkdownRenderers(nextRenderers: AdvancedMarkdownRenderers): void;
8
- export declare function getAdvancedMarkdownRenderers(): AdvancedMarkdownRenderers;
9
- //# sourceMappingURL=optional-renderers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"optional-renderers.d.ts","sourceRoot":"","sources":["../../src/core/optional-renderers.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACtC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAAC;IACnC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,WAAW,CAAC;IACpD,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAAC;CACzC;AAID,qGAAqG;AACrG,wBAAgB,kCAAkC,CAAC,aAAa,EAAE,yBAAyB,GAAG,IAAI,CAEjG;AAED,wBAAgB,4BAA4B,IAAI,yBAAyB,CAExE"}