@foris/ai-agent 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-agent.es.js +3 -3
- package/dist/ai-agent.umd.js +620 -610
- package/dist/ai-prompt-code-editor/PromptCodeEditor.d.ts +20 -0
- package/dist/ai-prompt-code-editor/index.d.ts +1 -0
- package/dist/ai-prompt-code-editor/promptCodeEditor.mock.d.ts +5 -0
- package/dist/arc-CONcyq9a.js +85 -0
- package/dist/{architectureDiagram-VXUJARFQ-CuFlEJrK.js → architectureDiagram-VXUJARFQ-rKQ4Lyhz.js} +3 -3
- package/dist/{blockDiagram-VD42YOAC-Ceho4Zhj.js → blockDiagram-VD42YOAC-q8x-nl-I.js} +46 -46
- package/dist/{c4Diagram-YG6GDRKO-zPB3iQJ7.js → c4Diagram-YG6GDRKO-BCtZ1arM.js} +3 -3
- package/dist/channel-Bk9jsMES.js +5 -0
- package/dist/{chunk-4BX2VUAB-BZlHuf6l.js → chunk-4BX2VUAB-wPZhboqx.js} +1 -1
- package/dist/{chunk-55IACEB6-Dr8rgvy_.js → chunk-55IACEB6-BV8ciSb1.js} +1 -1
- package/dist/{chunk-B4BG7PRW-Ccllo2e-.js → chunk-B4BG7PRW-DsX0HPSj.js} +11 -11
- package/dist/{chunk-DI55MBZ5-DvAROTIr.js → chunk-DI55MBZ5-jq2QyBxN.js} +44 -44
- package/dist/{chunk-FMBD7UC4-CVr83prI.js → chunk-FMBD7UC4-YR7nwd5V.js} +1 -1
- package/dist/{chunk-QN33PNHL-nSyFq8_s.js → chunk-QN33PNHL-CEVf-TA_.js} +1 -1
- package/dist/{chunk-QZHKN3VN-Dg8JYP6e.js → chunk-QZHKN3VN-BjRs8z1O.js} +1 -1
- package/dist/{chunk-TZMSLE5B-Bmj6LGNW.js → chunk-TZMSLE5B-C1vaDaHJ.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-DAkxtl6o.js → classDiagram-2ON5EDUG-B4QDlpZ1.js} +6 -6
- package/dist/{classDiagram-v2-WZHVMYZB-DAkxtl6o.js → classDiagram-v2-WZHVMYZB-B4QDlpZ1.js} +6 -6
- package/dist/code-block-QI2IAROF-CqxV97B3.js +2812 -0
- package/dist/{cose-bilkent-S5V4N54A-DwRYWoaW.js → cose-bilkent-S5V4N54A-Ct46NMY7.js} +2 -2
- package/dist/{dagre-6UL2VRFP-imN1Fyg8.js → dagre-6UL2VRFP-DmQvQIeM.js} +3 -3
- package/dist/{diagram-PSM6KHXK-DAIDeBLn.js → diagram-PSM6KHXK-CkgrbT_2.js} +47 -47
- package/dist/{diagram-QEK2KX5R-DQFy-qK9.js → diagram-QEK2KX5R-CC4kNfLh.js} +13 -13
- package/dist/{diagram-S2PKOQOG-Hlk0Nx_Y.js → diagram-S2PKOQOG-Bn5_K1zg.js} +16 -16
- package/dist/{erDiagram-Q2GNP2WA-C8PZPSaf.js → erDiagram-Q2GNP2WA-DUUsccBq.js} +5 -5
- package/dist/{flowDiagram-NV44I4VS-CgTiIFnt.js → flowDiagram-NV44I4VS-BphIgEre.js} +6 -6
- package/dist/{ganttDiagram-JELNMOA3-DzYZEAE_.js → ganttDiagram-JELNMOA3-DB4uV-5E.js} +3 -3
- package/dist/{gitGraphDiagram-NY62KEGX-CPwI-Uag.js → gitGraphDiagram-NY62KEGX-CsGGzPy-.js} +16 -16
- package/dist/hooks/useCodeTransform.d.ts +14 -0
- package/dist/{index-C2DJ8qoy.js → index-4odIPslx.js} +18502 -11456
- package/dist/index.d.ts +2 -2
- package/dist/{infoDiagram-WHAUD3N6-CcN7ZNYI.js → infoDiagram-WHAUD3N6-DumQO9Nk.js} +2 -2
- package/dist/{journeyDiagram-XKPGCS4Q-BACao6jz.js → journeyDiagram-XKPGCS4Q-v431C5nB.js} +5 -5
- package/dist/{kanban-definition-3W4ZIXB7-Jb7Xwf92.js → kanban-definition-3W4ZIXB7-fvrRkH6c.js} +39 -39
- package/dist/{linear-CxGB80S5.js → linear-B5gvsjso.js} +1 -1
- package/dist/{mermaid-NA5CF7SZ-DekDSZe_.js → mermaid-NA5CF7SZ-DPw9pyDl.js} +1 -1
- package/dist/{mermaid.core-xMGW442o.js → mermaid.core-fgysRC67.js} +87 -87
- package/dist/{mindmap-definition-VGOIOE7T-UHZgRHb7.js → mindmap-definition-VGOIOE7T-DYVMZ5_0.js} +69 -69
- package/dist/{pieDiagram-ADFJNKIX-CHrTFTbw.js → pieDiagram-ADFJNKIX-ChUQ9M0l.js} +23 -23
- package/dist/{quadrantDiagram-AYHSOK5B-CDfhMB18.js → quadrantDiagram-AYHSOK5B-CCuKtq8U.js} +3 -3
- package/dist/{requirementDiagram-UZGBJVZJ-C0aeVQh6.js → requirementDiagram-UZGBJVZJ-CX2K4M3c.js} +4 -4
- package/dist/{sankeyDiagram-TZEHDZUN-kjxRgXd2.js → sankeyDiagram-TZEHDZUN-DDTggF6e.js} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-Bs0jyVuH.js → sequenceDiagram-WL72ISMW-hLodMsLa.js} +4 -4
- package/dist/services/fetch-api/FetchApi.d.ts +1 -0
- package/dist/{stateDiagram-FKZM4ZOC-CAWwlh9R.js → stateDiagram-FKZM4ZOC-BsygERhX.js} +12 -12
- package/dist/{stateDiagram-v2-4FDKWEC3-9TYlTzc3.js → stateDiagram-v2-4FDKWEC3-D_QAMIGV.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/tailwind.css +93 -0
- package/dist/{timeline-definition-IT6M3QCI-DrPozOxH.js → timeline-definition-IT6M3QCI-DdL3lWtw.js} +47 -47
- package/dist/{xychartDiagram-PRI3JC2R-BkO8dJff.js → xychartDiagram-PRI3JC2R-vUb07G9z.js} +35 -35
- package/package.json +2 -1
- package/dist/ai-input-action/InputAction.d.ts +0 -8
- package/dist/ai-input-action/index.d.ts +0 -1
- package/dist/arc-DN1xn8kz.js +0 -85
- package/dist/channel-BC4mWQQF.js +0 -5
- package/dist/code-block-QI2IAROF-DN-BnDmt.js +0 -9263
package/dist/{mindmap-definition-VGOIOE7T-UHZgRHb7.js → mindmap-definition-VGOIOE7T-DYVMZ5_0.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as le } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as he } from "./chunk-QN33PNHL-
|
|
3
|
-
import { _ as l, l as
|
|
4
|
-
import "./index-
|
|
1
|
+
import { g as le } from "./chunk-55IACEB6-BV8ciSb1.js";
|
|
2
|
+
import { s as he } from "./chunk-QN33PNHL-CEVf-TA_.js";
|
|
3
|
+
import { _ as l, l as C, d as X, E as j, i as F, aw as de, z as ge, A as ue, ae as pe, af as fe, ag as ye } from "./mermaid.core-fgysRC67.js";
|
|
4
|
+
import "./index-4odIPslx.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const E = [];
|
|
@@ -32,8 +32,8 @@ function Se(t, e, n) {
|
|
|
32
32
|
return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, me(c);
|
|
33
33
|
}
|
|
34
34
|
var q = function() {
|
|
35
|
-
var t = /* @__PURE__ */ l(function(v, s, i,
|
|
36
|
-
for (i = i || {},
|
|
35
|
+
var t = /* @__PURE__ */ l(function(v, s, i, a) {
|
|
36
|
+
for (i = i || {}, a = v.length; a--; i[v[a]] = s)
|
|
37
37
|
;
|
|
38
38
|
return i;
|
|
39
39
|
}, "o"), e = [1, 4], n = [1, 13], c = [1, 12], u = [1, 15], h = [1, 16], p = [1, 20], y = [1, 19], _ = [6, 7, 8], b = [1, 26], m = [1, 24], R = [1, 25], D = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], w = [1, 6, 7, 11, 13, 15, 16, 19, 22], G = {
|
|
@@ -43,51 +43,51 @@ var q = function() {
|
|
|
43
43
|
symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
|
|
44
44
|
terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
|
|
45
45
|
productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
|
|
46
|
-
performAction: /* @__PURE__ */ l(function(s, i,
|
|
46
|
+
performAction: /* @__PURE__ */ l(function(s, i, a, o, g, r, A) {
|
|
47
47
|
var d = r.length - 1;
|
|
48
48
|
switch (g) {
|
|
49
49
|
case 6:
|
|
50
50
|
case 7:
|
|
51
|
-
return
|
|
51
|
+
return o;
|
|
52
52
|
case 8:
|
|
53
|
-
|
|
53
|
+
o.getLogger().trace("Stop NL ");
|
|
54
54
|
break;
|
|
55
55
|
case 9:
|
|
56
|
-
|
|
56
|
+
o.getLogger().trace("Stop EOF ");
|
|
57
57
|
break;
|
|
58
58
|
case 11:
|
|
59
|
-
|
|
59
|
+
o.getLogger().trace("Stop NL2 ");
|
|
60
60
|
break;
|
|
61
61
|
case 12:
|
|
62
|
-
|
|
62
|
+
o.getLogger().trace("Stop EOF2 ");
|
|
63
63
|
break;
|
|
64
64
|
case 15:
|
|
65
|
-
|
|
65
|
+
o.getLogger().info("Node: ", r[d].id), o.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
|
|
66
66
|
break;
|
|
67
67
|
case 16:
|
|
68
|
-
|
|
68
|
+
o.getLogger().trace("Icon: ", r[d]), o.decorateNode({ icon: r[d] });
|
|
69
69
|
break;
|
|
70
70
|
case 17:
|
|
71
71
|
case 21:
|
|
72
|
-
|
|
72
|
+
o.decorateNode({ class: r[d] });
|
|
73
73
|
break;
|
|
74
74
|
case 18:
|
|
75
|
-
|
|
75
|
+
o.getLogger().trace("SPACELIST");
|
|
76
76
|
break;
|
|
77
77
|
case 19:
|
|
78
|
-
|
|
78
|
+
o.getLogger().trace("Node: ", r[d].id), o.addNode(0, r[d].id, r[d].descr, r[d].type);
|
|
79
79
|
break;
|
|
80
80
|
case 20:
|
|
81
|
-
|
|
81
|
+
o.decorateNode({ icon: r[d] });
|
|
82
82
|
break;
|
|
83
83
|
case 25:
|
|
84
|
-
|
|
84
|
+
o.getLogger().trace("node found ..", r[d - 2]), this.$ = { id: r[d - 1], descr: r[d - 1], type: o.getType(r[d - 2], r[d]) };
|
|
85
85
|
break;
|
|
86
86
|
case 26:
|
|
87
|
-
this.$ = { id: r[d], descr: r[d], type:
|
|
87
|
+
this.$ = { id: r[d], descr: r[d], type: o.nodeType.DEFAULT };
|
|
88
88
|
break;
|
|
89
89
|
case 27:
|
|
90
|
-
|
|
90
|
+
o.getLogger().trace("node found ..", r[d - 3]), this.$ = { id: r[d - 3], descr: r[d - 1], type: o.getType(r[d - 2], r[d]) };
|
|
91
91
|
break;
|
|
92
92
|
}
|
|
93
93
|
}, "anonymous"),
|
|
@@ -97,30 +97,30 @@ var q = function() {
|
|
|
97
97
|
if (i.recoverable)
|
|
98
98
|
this.trace(s);
|
|
99
99
|
else {
|
|
100
|
-
var
|
|
101
|
-
throw
|
|
100
|
+
var a = new Error(s);
|
|
101
|
+
throw a.hash = i, a;
|
|
102
102
|
}
|
|
103
103
|
}, "parseError"),
|
|
104
104
|
parse: /* @__PURE__ */ l(function(s) {
|
|
105
|
-
var i = this,
|
|
106
|
-
for (var
|
|
107
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
105
|
+
var i = this, a = [0], o = [], g = [null], r = [], A = this.table, d = "", M = 0, Z = 0, re = 2, ee = 1, ae = r.slice.call(arguments, 1), f = Object.create(this.lexer), T = { yy: {} };
|
|
106
|
+
for (var H in this.yy)
|
|
107
|
+
Object.prototype.hasOwnProperty.call(this.yy, H) && (T.yy[H] = this.yy[H]);
|
|
108
108
|
f.setInput(s, T.yy), T.yy.lexer = f, T.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
|
|
109
|
-
var
|
|
110
|
-
r.push(
|
|
111
|
-
var
|
|
109
|
+
var $ = f.yylloc;
|
|
110
|
+
r.push($);
|
|
111
|
+
var oe = f.options && f.options.ranges;
|
|
112
112
|
typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
113
113
|
function ce(N) {
|
|
114
|
-
|
|
114
|
+
a.length = a.length - 2 * N, g.length = g.length - N, r.length = r.length - N;
|
|
115
115
|
}
|
|
116
116
|
l(ce, "popStack");
|
|
117
117
|
function te() {
|
|
118
118
|
var N;
|
|
119
|
-
return N =
|
|
119
|
+
return N = o.pop() || f.lex() || ee, typeof N != "number" && (N instanceof Array && (o = N, N = o.pop()), N = i.symbols_[N] || N), N;
|
|
120
120
|
}
|
|
121
121
|
l(te, "lex");
|
|
122
|
-
for (var S, O, k, z,
|
|
123
|
-
if (O =
|
|
122
|
+
for (var S, O, k, z, I = {}, V, L, ie, B; ; ) {
|
|
123
|
+
if (O = a[a.length - 1], this.defaultActions[O] ? k = this.defaultActions[O] : ((S === null || typeof S > "u") && (S = te()), k = A[O] && A[O][S]), typeof k > "u" || !k.length || !k[0]) {
|
|
124
124
|
var W = "";
|
|
125
125
|
B = [];
|
|
126
126
|
for (V in A[O])
|
|
@@ -131,7 +131,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
131
131
|
text: f.match,
|
|
132
132
|
token: this.terminals_[S] || S,
|
|
133
133
|
line: f.yylineno,
|
|
134
|
-
loc:
|
|
134
|
+
loc: $,
|
|
135
135
|
expected: B
|
|
136
136
|
});
|
|
137
137
|
}
|
|
@@ -139,18 +139,18 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
139
139
|
throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + S);
|
|
140
140
|
switch (k[0]) {
|
|
141
141
|
case 1:
|
|
142
|
-
|
|
142
|
+
a.push(S), g.push(f.yytext), r.push(f.yylloc), a.push(k[1]), S = null, Z = f.yyleng, d = f.yytext, M = f.yylineno, $ = f.yylloc;
|
|
143
143
|
break;
|
|
144
144
|
case 2:
|
|
145
|
-
if (L = this.productions_[k[1]][1],
|
|
145
|
+
if (L = this.productions_[k[1]][1], I.$ = g[g.length - L], I._$ = {
|
|
146
146
|
first_line: r[r.length - (L || 1)].first_line,
|
|
147
147
|
last_line: r[r.length - 1].last_line,
|
|
148
148
|
first_column: r[r.length - (L || 1)].first_column,
|
|
149
149
|
last_column: r[r.length - 1].last_column
|
|
150
|
-
},
|
|
150
|
+
}, oe && (I._$.range = [
|
|
151
151
|
r[r.length - (L || 1)].range[0],
|
|
152
152
|
r[r.length - 1].range[1]
|
|
153
|
-
]), z = this.performAction.apply(
|
|
153
|
+
]), z = this.performAction.apply(I, [
|
|
154
154
|
d,
|
|
155
155
|
Z,
|
|
156
156
|
M,
|
|
@@ -158,9 +158,9 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
158
158
|
k[1],
|
|
159
159
|
g,
|
|
160
160
|
r
|
|
161
|
-
].concat(
|
|
161
|
+
].concat(ae)), typeof z < "u")
|
|
162
162
|
return z;
|
|
163
|
-
L && (
|
|
163
|
+
L && (a = a.slice(0, -1 * L * 2), g = g.slice(0, -1 * L), r = r.slice(0, -1 * L)), a.push(this.productions_[k[1]][0]), g.push(I.$), r.push(I._$), ie = A[a[a.length - 2]][a[a.length - 1]], a.push(ie);
|
|
164
164
|
break;
|
|
165
165
|
case 3:
|
|
166
166
|
return !0;
|
|
@@ -171,9 +171,9 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
171
171
|
}, se = /* @__PURE__ */ function() {
|
|
172
172
|
var v = {
|
|
173
173
|
EOF: 1,
|
|
174
|
-
parseError: /* @__PURE__ */ l(function(i,
|
|
174
|
+
parseError: /* @__PURE__ */ l(function(i, a) {
|
|
175
175
|
if (this.yy.parser)
|
|
176
|
-
this.yy.parser.parseError(i,
|
|
176
|
+
this.yy.parser.parseError(i, a);
|
|
177
177
|
else
|
|
178
178
|
throw new Error(i);
|
|
179
179
|
}, "parseError"),
|
|
@@ -195,16 +195,16 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
195
195
|
}, "input"),
|
|
196
196
|
// unshifts one char (or a string) into the input
|
|
197
197
|
unput: /* @__PURE__ */ l(function(s) {
|
|
198
|
-
var i = s.length,
|
|
198
|
+
var i = s.length, a = s.split(/(?:\r\n?|\n)/g);
|
|
199
199
|
this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
|
|
200
|
-
var
|
|
201
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
200
|
+
var o = this.match.split(/(?:\r\n?|\n)/g);
|
|
201
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
|
|
202
202
|
var g = this.yylloc.range;
|
|
203
203
|
return this.yylloc = {
|
|
204
204
|
first_line: this.yylloc.first_line,
|
|
205
205
|
last_line: this.yylineno + 1,
|
|
206
206
|
first_column: this.yylloc.first_column,
|
|
207
|
-
last_column:
|
|
207
|
+
last_column: a ? (a.length === o.length ? this.yylloc.first_column : 0) + o[o.length - a.length].length - a[0].length : this.yylloc.first_column - i
|
|
208
208
|
}, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
|
|
209
209
|
}, "unput"),
|
|
210
210
|
// When called from action, caches matched text and appends it on next action
|
|
@@ -246,7 +246,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
246
246
|
}, "showPosition"),
|
|
247
247
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
248
248
|
test_match: /* @__PURE__ */ l(function(s, i) {
|
|
249
|
-
var
|
|
249
|
+
var a, o, g;
|
|
250
250
|
if (this.options.backtrack_lexer && (g = {
|
|
251
251
|
yylineno: this.yylineno,
|
|
252
252
|
yylloc: {
|
|
@@ -266,13 +266,13 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
266
266
|
yy: this.yy,
|
|
267
267
|
conditionStack: this.conditionStack.slice(0),
|
|
268
268
|
done: this.done
|
|
269
|
-
}, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))),
|
|
269
|
+
}, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), o = s[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
|
|
270
270
|
first_line: this.yylloc.last_line,
|
|
271
271
|
last_line: this.yylineno + 1,
|
|
272
272
|
first_column: this.yylloc.last_column,
|
|
273
|
-
last_column:
|
|
274
|
-
}, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0],
|
|
275
|
-
return
|
|
273
|
+
last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
|
|
274
|
+
}, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], a = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
|
|
275
|
+
return a;
|
|
276
276
|
if (this._backtrack) {
|
|
277
277
|
for (var r in g)
|
|
278
278
|
this[r] = g[r];
|
|
@@ -285,12 +285,12 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
285
285
|
if (this.done)
|
|
286
286
|
return this.EOF;
|
|
287
287
|
this._input || (this.done = !0);
|
|
288
|
-
var s, i,
|
|
288
|
+
var s, i, a, o;
|
|
289
289
|
this._more || (this.yytext = "", this.match = "");
|
|
290
290
|
for (var g = this._currentRules(), r = 0; r < g.length; r++)
|
|
291
|
-
if (
|
|
292
|
-
if (i =
|
|
293
|
-
if (s = this.test_match(
|
|
291
|
+
if (a = this._input.match(this.rules[g[r]]), a && (!i || a[0].length > i[0].length)) {
|
|
292
|
+
if (i = a, o = r, this.options.backtrack_lexer) {
|
|
293
|
+
if (s = this.test_match(a, g[r]), s !== !1)
|
|
294
294
|
return s;
|
|
295
295
|
if (this._backtrack) {
|
|
296
296
|
i = !1;
|
|
@@ -300,7 +300,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
300
300
|
} else if (!this.options.flex)
|
|
301
301
|
break;
|
|
302
302
|
}
|
|
303
|
-
return i ? (s = this.test_match(i, g[
|
|
303
|
+
return i ? (s = this.test_match(i, g[o]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
304
304
|
` + this.showPosition(), {
|
|
305
305
|
text: "",
|
|
306
306
|
token: null,
|
|
@@ -338,10 +338,10 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
338
338
|
return this.conditionStack.length;
|
|
339
339
|
}, "stateStackSize"),
|
|
340
340
|
options: { "case-insensitive": !0 },
|
|
341
|
-
performAction: /* @__PURE__ */ l(function(i,
|
|
342
|
-
switch (
|
|
341
|
+
performAction: /* @__PURE__ */ l(function(i, a, o, g) {
|
|
342
|
+
switch (o) {
|
|
343
343
|
case 0:
|
|
344
|
-
return i.getLogger().trace("Found comment",
|
|
344
|
+
return i.getLogger().trace("Found comment", a.yytext), 6;
|
|
345
345
|
case 1:
|
|
346
346
|
return 8;
|
|
347
347
|
case 2:
|
|
@@ -398,7 +398,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
398
398
|
i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
|
|
399
399
|
break;
|
|
400
400
|
case 25:
|
|
401
|
-
return i.getLogger().trace("description:",
|
|
401
|
+
return i.getLogger().trace("description:", a.yytext), "NODE_DESCR";
|
|
402
402
|
case 26:
|
|
403
403
|
this.popState();
|
|
404
404
|
break;
|
|
@@ -407,7 +407,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
407
407
|
case 28:
|
|
408
408
|
return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
|
|
409
409
|
case 29:
|
|
410
|
-
return this.popState(), i.getLogger().trace("node end ...",
|
|
410
|
+
return this.popState(), i.getLogger().trace("node end ...", a.yytext), "NODE_DEND";
|
|
411
411
|
case 30:
|
|
412
412
|
return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
|
|
413
413
|
case 31:
|
|
@@ -419,9 +419,9 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
419
419
|
case 34:
|
|
420
420
|
return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
|
|
421
421
|
case 35:
|
|
422
|
-
return i.getLogger().trace("Long description:",
|
|
422
|
+
return i.getLogger().trace("Long description:", a.yytext), 20;
|
|
423
423
|
case 36:
|
|
424
|
-
return i.getLogger().trace("Long description:",
|
|
424
|
+
return i.getLogger().trace("Long description:", a.yytext), 20;
|
|
425
425
|
}
|
|
426
426
|
}, "anonymous"),
|
|
427
427
|
rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
|
|
@@ -463,7 +463,7 @@ var De = q, x = {
|
|
|
463
463
|
}
|
|
464
464
|
addNode(e, n, c, u) {
|
|
465
465
|
var m, R;
|
|
466
|
-
|
|
466
|
+
C.info("addNode", e, n, c, u);
|
|
467
467
|
let h = !1;
|
|
468
468
|
this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
|
|
469
469
|
const p = X();
|
|
@@ -496,7 +496,7 @@ var De = q, x = {
|
|
|
496
496
|
);
|
|
497
497
|
}
|
|
498
498
|
getType(e, n) {
|
|
499
|
-
switch (
|
|
499
|
+
switch (C.debug("In get type", e, n), e) {
|
|
500
500
|
case "[":
|
|
501
501
|
return this.nodeType.RECT;
|
|
502
502
|
case "(":
|
|
@@ -651,9 +651,9 @@ var De = q, x = {
|
|
|
651
651
|
edges: [],
|
|
652
652
|
config: h
|
|
653
653
|
};
|
|
654
|
-
|
|
654
|
+
C.debug("getData: mindmapRoot", e, n), this.assignSections(e);
|
|
655
655
|
const p = [], y = [];
|
|
656
|
-
this.flattenNodes(e, p), this.generateEdges(e, y),
|
|
656
|
+
this.flattenNodes(e, p), this.generateEdges(e, y), C.debug(
|
|
657
657
|
`getData: processed ${p.length} nodes and ${y.length} edges`
|
|
658
658
|
);
|
|
659
659
|
const _ = /* @__PURE__ */ new Map();
|
|
@@ -688,11 +688,11 @@ var De = q, x = {
|
|
|
688
688
|
}
|
|
689
689
|
// Expose logger to grammar
|
|
690
690
|
getLogger() {
|
|
691
|
-
return
|
|
691
|
+
return C;
|
|
692
692
|
}
|
|
693
693
|
}, l(U, "MindmapDB"), U), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
|
|
694
694
|
var _, b;
|
|
695
|
-
|
|
695
|
+
C.debug(`Rendering mindmap diagram
|
|
696
696
|
` + t);
|
|
697
697
|
const u = c.db, h = u.getData(), p = le(e, h.config.securityLevel);
|
|
698
698
|
h.type = c.type, h.layoutAlgorithm = ge(h.config.layout, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p as se } from "./chunk-4BX2VUAB-
|
|
1
|
+
import { Y as S, P as F, av as K, E as Y, o as Z, p as q, s as H, g as J, c as Q, b as X, _ as g, l as z, v as ee, d as te, F as ae, K as re, a6 as ne, k as ie } from "./mermaid.core-fgysRC67.js";
|
|
2
|
+
import { p as se } from "./chunk-4BX2VUAB-wPZhboqx.js";
|
|
3
3
|
import { p as le } from "./treemap-KMMF4GRG-D_L55G0b.js";
|
|
4
|
-
import { d as I } from "./arc-
|
|
4
|
+
import { d as I } from "./arc-CONcyq9a.js";
|
|
5
5
|
import { o as oe } from "./ordinal-MUacOSdK.js";
|
|
6
|
-
import "./index-
|
|
6
|
+
import "./index-4odIPslx.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import "./init-DjUOC4st.js";
|
|
@@ -14,9 +14,9 @@ function ue(e) {
|
|
|
14
14
|
return e;
|
|
15
15
|
}
|
|
16
16
|
function pe() {
|
|
17
|
-
var e = ue, a = ce, f = null, x = S(0), s = S(
|
|
17
|
+
var e = ue, a = ce, f = null, x = S(0), s = S(F), o = S(0);
|
|
18
18
|
function l(t) {
|
|
19
|
-
var n, c = (t =
|
|
19
|
+
var n, c = (t = K(t)).length, u, y, h = 0, p = new Array(c), i = new Array(c), v = +x.apply(this, arguments), w = Math.min(F, Math.max(-F, s.apply(this, arguments) - v)), m, C = Math.min(Math.abs(w) / c, o.apply(this, arguments)), $ = C * (w < 0 ? -1 : 1), d;
|
|
20
20
|
for (n = 0; n < c; ++n)
|
|
21
21
|
(d = i[p[n] = n] = +e(t[n], n, t)) > 0 && (h += d);
|
|
22
22
|
for (a != null ? p.sort(function(A, D) {
|
|
@@ -48,7 +48,7 @@ function pe() {
|
|
|
48
48
|
return arguments.length ? (o = typeof t == "function" ? t : S(+t), l) : o;
|
|
49
49
|
}, l;
|
|
50
50
|
}
|
|
51
|
-
var L =
|
|
51
|
+
var L = Y.pie, G = {
|
|
52
52
|
sections: /* @__PURE__ */ new Map(),
|
|
53
53
|
showData: !1,
|
|
54
54
|
config: L
|
|
@@ -59,18 +59,18 @@ var L = Z.pie, G = {
|
|
|
59
59
|
throw new Error(
|
|
60
60
|
`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
|
|
61
61
|
);
|
|
62
|
-
T.has(e) || (T.set(e, a),
|
|
62
|
+
T.has(e) || (T.set(e, a), z.debug(`added new section: ${e}, with value: ${a}`));
|
|
63
63
|
}, "addSection"), he = /* @__PURE__ */ g(() => T, "getSections"), ve = /* @__PURE__ */ g((e) => {
|
|
64
64
|
N = e;
|
|
65
65
|
}, "setShowData"), Se = /* @__PURE__ */ g(() => N, "getShowData"), _ = {
|
|
66
66
|
getConfig: de,
|
|
67
67
|
clear: fe,
|
|
68
|
-
setDiagramTitle:
|
|
69
|
-
getDiagramTitle:
|
|
70
|
-
setAccTitle:
|
|
71
|
-
getAccTitle:
|
|
72
|
-
setAccDescription:
|
|
73
|
-
getAccDescription:
|
|
68
|
+
setDiagramTitle: Z,
|
|
69
|
+
getDiagramTitle: q,
|
|
70
|
+
setAccTitle: H,
|
|
71
|
+
getAccTitle: J,
|
|
72
|
+
setAccDescription: Q,
|
|
73
|
+
getAccDescription: X,
|
|
74
74
|
addSection: me,
|
|
75
75
|
getSections: he,
|
|
76
76
|
setShowData: ve,
|
|
@@ -80,7 +80,7 @@ var L = Z.pie, G = {
|
|
|
80
80
|
}, "populateDb"), ye = {
|
|
81
81
|
parse: /* @__PURE__ */ g(async (e) => {
|
|
82
82
|
const a = await le("pie", e);
|
|
83
|
-
|
|
83
|
+
z.debug(a), xe(a, _);
|
|
84
84
|
}, "parse")
|
|
85
85
|
}, we = /* @__PURE__ */ g((e) => `
|
|
86
86
|
.pieCircle{
|
|
@@ -114,7 +114,7 @@ var L = Z.pie, G = {
|
|
|
114
114
|
const a = [...e.values()].reduce((s, o) => s + o, 0), f = [...e.entries()].map(([s, o]) => ({ label: s, value: o })).filter((s) => s.value / a * 100 >= 1).sort((s, o) => o.value - s.value);
|
|
115
115
|
return pe().value((s) => s.value)(f);
|
|
116
116
|
}, "createPieArcs"), Ce = /* @__PURE__ */ g((e, a, f, x) => {
|
|
117
|
-
|
|
117
|
+
z.debug(`rendering pie chart
|
|
118
118
|
` + e);
|
|
119
119
|
const s = x.db, o = te(), l = ae(s.getConfig(), o.pie), t = 40, n = 18, c = 4, u = 450, y = u, h = re(a), p = h.append("g");
|
|
120
120
|
p.attr("transform", "translate(" + y / 2 + "," + u / 2 + ")");
|
|
@@ -137,22 +137,22 @@ var L = Z.pie, G = {
|
|
|
137
137
|
i.pie11,
|
|
138
138
|
i.pie12
|
|
139
139
|
];
|
|
140
|
-
let
|
|
140
|
+
let E = 0;
|
|
141
141
|
d.forEach((r) => {
|
|
142
|
-
|
|
142
|
+
E += r;
|
|
143
143
|
});
|
|
144
|
-
const P = A.filter((r) => (r.data.value /
|
|
145
|
-
p.selectAll("mySlices").data(P).enter().append("path").attr("d", C).attr("fill", (r) =>
|
|
144
|
+
const P = A.filter((r) => (r.data.value / E * 100).toFixed(0) !== "0"), b = oe(D);
|
|
145
|
+
p.selectAll("mySlices").data(P).enter().append("path").attr("d", C).attr("fill", (r) => b(r.data.label)).attr("class", "pieCircle"), p.selectAll("mySlices").data(P).enter().append("text").text((r) => (r.data.value / E * 100).toFixed(0) + "%").attr("transform", (r) => "translate(" + $.centroid(r) + ")").style("text-anchor", "middle").attr("class", "slice"), p.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -(u - 50) / 2).attr("class", "pieTitleText");
|
|
146
146
|
const W = [...d.entries()].map(([r, M]) => ({
|
|
147
147
|
label: r,
|
|
148
148
|
value: M
|
|
149
|
-
})),
|
|
149
|
+
})), k = p.selectAll(".legend").data(W).enter().append("g").attr("class", "legend").attr("transform", (r, M) => {
|
|
150
150
|
const R = n + c, V = R * W.length / 2, U = 12 * n, j = M * R - V;
|
|
151
151
|
return "translate(" + U + "," + j + ")";
|
|
152
152
|
});
|
|
153
|
-
|
|
153
|
+
k.append("rect").attr("width", n).attr("height", n).style("fill", (r) => b(r.label)).style("stroke", (r) => b(r.label)), k.append("text").attr("x", n + c).attr("y", n - c).text((r) => s.getShowData() ? `${r.label} [${r.value}]` : r.label);
|
|
154
154
|
const B = Math.max(
|
|
155
|
-
...
|
|
155
|
+
...k.selectAll("text").nodes().map((r) => (r == null ? void 0 : r.getBoundingClientRect().width) ?? 0)
|
|
156
156
|
), O = y + t + n + c + B;
|
|
157
157
|
h.attr("viewBox", `0 0 ${O} ${u}`), ie(h, u, O, l.useMaxWidth);
|
|
158
158
|
}, "draw"), $e = { draw: Ce }, Pe = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as o,
|
|
2
|
-
import { l as ee } from "./linear-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { _ as o, a1 as _e, E as D, l as At, d as wt, i as Ae, p as ie, s as ke, g as Fe, o as Pe, b as ve, c as Ce, v as Le, j as zt, k as Ee } from "./mermaid.core-fgysRC67.js";
|
|
2
|
+
import { l as ee } from "./linear-B5gvsjso.js";
|
|
3
|
+
import "./index-4odIPslx.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "./init-DjUOC4st.js";
|
package/dist/{requirementDiagram-UZGBJVZJ-C0aeVQh6.js → requirementDiagram-UZGBJVZJ-CX2K4M3c.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as ze } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as Ge } from "./chunk-QN33PNHL-
|
|
3
|
-
import { _ as m, s as Xe, g as Je, c as Ze, b as et,
|
|
4
|
-
import "./index-
|
|
1
|
+
import { g as ze } from "./chunk-55IACEB6-BV8ciSb1.js";
|
|
2
|
+
import { s as Ge } from "./chunk-QN33PNHL-CEVf-TA_.js";
|
|
3
|
+
import { _ as m, s as Xe, g as Je, c as Ze, b as et, o as tt, p as st, d as Ne, l as qe, v as it, D as rt, z as nt, A as at, u as lt } from "./mermaid.core-fgysRC67.js";
|
|
4
|
+
import "./index-4odIPslx.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
var Ae = function() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as p, d as lt, g as _t, s as xt, b as vt, c as bt,
|
|
1
|
+
import { _ as p, d as lt, g as _t, s as xt, b as vt, c as bt, p as wt, o as St, v as Lt, e as Et, x as At, j as X, ad as Tt } from "./mermaid.core-fgysRC67.js";
|
|
2
2
|
import { o as Mt } from "./ordinal-MUacOSdK.js";
|
|
3
|
-
import "./index-
|
|
3
|
+
import "./index-4odIPslx.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "./init-DjUOC4st.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as ct, a as Xt, d as we, b as ve, c as Jt, e as Qt } from "./chunk-TZMSLE5B-
|
|
2
|
-
import { _ as f, s as se, c as Ie,
|
|
3
|
-
import { I as Be } from "./chunk-QZHKN3VN-
|
|
4
|
-
import "./index-
|
|
1
|
+
import { g as ct, a as Xt, d as we, b as ve, c as Jt, e as Qt } from "./chunk-TZMSLE5B-C1vaDaHJ.js";
|
|
2
|
+
import { _ as f, s as se, c as Ie, o as Le, g as Ae, b as _e, p as ke, d as st, q as Pe, J as Ne, v as Se, l as Q, i as St, y as Me, e as I, a2 as z, a3 as At, u as F, a as Re, j as Mt, k as De, m as re, a4 as Ce, a5 as ie, G as Ht, a6 as ne, a7 as Oe } from "./mermaid.core-fgysRC67.js";
|
|
3
|
+
import { I as Be } from "./chunk-QZHKN3VN-BjRs8z1O.js";
|
|
4
|
+
import "./index-4odIPslx.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
var Ut = function() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import { _ as f, d as t, j as H, l as S, k as P, e as z,
|
|
1
|
+
import { s as R, S as N, a as W } from "./chunk-DI55MBZ5-jq2QyBxN.js";
|
|
2
|
+
import { _ as f, d as t, j as H, l as S, k as P, e as z, a9 as _, aa as U, a4 as C, u as F } from "./mermaid.core-fgysRC67.js";
|
|
3
3
|
import { G as O } from "./graph-DB2UxkYH.js";
|
|
4
4
|
import { l as J } from "./layout-Q6wQN5dr.js";
|
|
5
|
-
import "./chunk-55IACEB6-
|
|
6
|
-
import "./chunk-QN33PNHL-
|
|
7
|
-
import "./index-
|
|
5
|
+
import "./chunk-55IACEB6-BV8ciSb1.js";
|
|
6
|
+
import "./chunk-QN33PNHL-CEVf-TA_.js";
|
|
7
|
+
import "./index-4odIPslx.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import "react-dom";
|
|
10
10
|
var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), D = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Y = /* @__PURE__ */ f((e, i) => {
|
|
@@ -89,7 +89,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
89
89
|
i.type === "start" && X(n), i.type === "end" && j(n), (i.type === "fork" || i.type === "join") && q(n, i), i.type === "note" && K(i.note.text, n), i.type === "divider" && D(n), i.type === "default" && i.descriptions.length === 0 && Y(n, i), i.type === "default" && i.descriptions.length > 0 && I(n, i);
|
|
90
90
|
const l = n.node().getBBox();
|
|
91
91
|
return c.width = l.width + 2 * t().state.padding, c.height = l.height + 2 * t().state.padding, c;
|
|
92
|
-
}, "drawState"),
|
|
92
|
+
}, "drawState"), A = 0, Q = /* @__PURE__ */ f(function(e, i, d) {
|
|
93
93
|
const c = /* @__PURE__ */ f(function(s) {
|
|
94
94
|
switch (s) {
|
|
95
95
|
case N.relationType.AGGREGATION:
|
|
@@ -107,7 +107,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
107
107
|
return s.x;
|
|
108
108
|
}).y(function(s) {
|
|
109
109
|
return s.y;
|
|
110
|
-
}).curve(U), x = e.append("path").attr("d", l(n)).attr("id", "edge" +
|
|
110
|
+
}).curve(U), x = e.append("path").attr("d", l(n)).attr("id", "edge" + A).attr("class", "transition");
|
|
111
111
|
let a = "";
|
|
112
112
|
if (t().state.arrowMarkerAbsolute && (a = C(!0)), x.attr(
|
|
113
113
|
"marker-end",
|
|
@@ -129,7 +129,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
129
129
|
const r = s.node().getBBox();
|
|
130
130
|
s.insert("rect", ":first-child").attr("class", "box").attr("x", w - m / 2 - t().state.padding / 2).attr("y", p - k / 2 - t().state.padding / 2 - 3.5).attr("width", m + t().state.padding).attr("height", k + t().state.padding), S.info(r);
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
A++;
|
|
133
133
|
}, "drawEdge"), b, T = {}, V = /* @__PURE__ */ f(function() {
|
|
134
134
|
}, "setConf"), tt = /* @__PURE__ */ f(function(e) {
|
|
135
135
|
e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
@@ -143,13 +143,13 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
143
143
|
const s = x.select(`[id='${i}']`);
|
|
144
144
|
tt(s);
|
|
145
145
|
const w = c.db.getRootDoc();
|
|
146
|
-
|
|
146
|
+
G(w, s, void 0, !1, x, a, c);
|
|
147
147
|
const p = b.padding, o = s.node().getBBox(), g = o.width + p * 2, B = o.height + p * 2, m = g * 1.75;
|
|
148
148
|
P(s, B, m, b.useMaxWidth), s.attr(
|
|
149
149
|
"viewBox",
|
|
150
150
|
`${o.x - b.padding} ${o.y - b.padding} ` + g + " " + B
|
|
151
151
|
);
|
|
152
|
-
}, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"),
|
|
152
|
+
}, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), G = /* @__PURE__ */ f((e, i, d, c, n, l, x) => {
|
|
153
153
|
const a = new O({
|
|
154
154
|
compound: !0,
|
|
155
155
|
multigraph: !0
|
|
@@ -193,7 +193,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
193
193
|
let h;
|
|
194
194
|
if (u.doc) {
|
|
195
195
|
let y = i.append("g").attr("id", u.id).attr("class", "stateGroup");
|
|
196
|
-
h =
|
|
196
|
+
h = G(u.doc, y, u.id, !c, n, l, x);
|
|
197
197
|
{
|
|
198
198
|
y = $(y, u, c);
|
|
199
199
|
let v = y.node().getBBox();
|
|
@@ -253,7 +253,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
253
253
|
setConf: V,
|
|
254
254
|
draw: et
|
|
255
255
|
}, pt = {
|
|
256
|
-
parser:
|
|
256
|
+
parser: R,
|
|
257
257
|
get db() {
|
|
258
258
|
return new N(1);
|
|
259
259
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as r, S as e, b as a, a as s } from "./chunk-DI55MBZ5-
|
|
2
|
-
import { _ as i } from "./mermaid.core-
|
|
3
|
-
import "./chunk-55IACEB6-
|
|
4
|
-
import "./chunk-QN33PNHL-
|
|
5
|
-
import "./index-
|
|
1
|
+
import { s as r, S as e, b as a, a as s } from "./chunk-DI55MBZ5-jq2QyBxN.js";
|
|
2
|
+
import { _ as i } from "./mermaid.core-fgysRC67.js";
|
|
3
|
+
import "./chunk-55IACEB6-BV8ciSb1.js";
|
|
4
|
+
import "./chunk-QN33PNHL-CEVf-TA_.js";
|
|
5
|
+
import "./index-4odIPslx.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
var n = {
|