@yiyi_zhang/reactflow-ui 0.5.0-beta.0 → 1.1.0

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 (116) hide show
  1. package/README.md +150 -117
  2. package/dist/AiWorkflowIDE.d.ts +2 -0
  3. package/dist/WorkflowIDE.d.ts +14 -2
  4. package/dist/actions/builtin/common.d.ts +8 -0
  5. package/dist/actions/builtin/ecs.d.ts +12 -0
  6. package/dist/actions/registry.d.ts +23 -0
  7. package/dist/actions/types.d.ts +45 -0
  8. package/dist/ai.d.ts +5 -1
  9. package/dist/components/AICopilot/ParameterSuggester.d.ts +9 -0
  10. package/dist/components/AiNative/AgentTimeline.d.ts +11 -6
  11. package/dist/components/AiNative/InlineCanvasCopilot.d.ts +7 -0
  12. package/dist/components/AiNative/ProposalPreviewCard.d.ts +3 -3
  13. package/dist/components/BrandLogo.d.ts +13 -0
  14. package/dist/components/ExecutionWaterfallPanel.d.ts +3 -0
  15. package/dist/components/SandboxConfigModal.d.ts +7 -0
  16. package/dist/components/StructuredJsonViewer.d.ts +11 -0
  17. package/dist/components/business/ActionForm.d.ts +12 -0
  18. package/dist/components/business/DataPillInput.d.ts +14 -0
  19. package/dist/components/business/DecisionBranchCard.d.ts +13 -0
  20. package/dist/components/business/ForkJoinCard.d.ts +13 -0
  21. package/dist/components/business/FriendlyErrorCard.d.ts +8 -0
  22. package/dist/components/business/LoopDoWhileCard.d.ts +13 -0
  23. package/dist/components/business/PillPicker.d.ts +11 -0
  24. package/dist/components/business/RunStoryTimeline.d.ts +9 -0
  25. package/dist/components/business/StepFlowEditor.d.ts +11 -0
  26. package/dist/components/nodes/NodeLayout.d.ts +3 -1
  27. package/dist/components/template/TemplateExtractor.d.ts +10 -0
  28. package/dist/components/template/TemplateGallery.d.ts +10 -0
  29. package/dist/components/template/TemplateSetupWizard.d.ts +9 -0
  30. package/dist/hooks/useNodeExecution.d.ts +5 -2
  31. package/dist/index.d.ts +33 -0
  32. package/dist/logo.svg +37 -0
  33. package/dist/product-launch.html +1400 -0
  34. package/dist/reactflow-ui-ai.es.js +21392 -10
  35. package/dist/reactflow-ui.css +1 -1
  36. package/dist/reactflow-ui.es.js +20314 -9020
  37. package/dist/reactflow-ui.umd.js +31 -21
  38. package/dist/sample-workflows/ecs-lifecycle-automation.json +74 -0
  39. package/dist/services/ai/agentRunner.d.ts +23 -19
  40. package/dist/services/ai/draftPersistence.d.ts +3 -2
  41. package/dist/services/ai/systemPrompt.d.ts +1 -1
  42. package/dist/services/ai/toolExecutor.d.ts +15 -2
  43. package/dist/services/ai/workflowSynthesizer.d.ts +118 -0
  44. package/dist/services/wlsp/workflowLsp.d.ts +101 -0
  45. package/dist/stepmodel/compile.d.ts +5 -0
  46. package/dist/stepmodel/decompile.d.ts +5 -0
  47. package/dist/stepmodel/types.d.ts +61 -0
  48. package/dist/store/aiStore.d.ts +34 -3
  49. package/dist/template/applyTemplate.d.ts +10 -0
  50. package/dist/template/builtin/templates.d.ts +37 -0
  51. package/dist/template/sanitizer/anonymize.d.ts +5 -0
  52. package/dist/template/sanitizer/prune.d.ts +10 -0
  53. package/dist/template/sanitizer/rules.d.ts +10 -0
  54. package/dist/template/sanitizer/types.d.ts +55 -0
  55. package/dist/template/templateStore.d.ts +32 -0
  56. package/dist/template/types.d.ts +99 -0
  57. package/dist/types/aiEvents.d.ts +3 -1
  58. package/dist/types/conductor.d.ts +6 -1
  59. package/dist/types/workflow.d.ts +32 -0
  60. package/dist/utils/friendlyErrorTranslator.d.ts +26 -0
  61. package/dist/utils/localSandboxEngine.d.ts +49 -0
  62. package/package.json +7 -4
  63. package/dist/ai-BJwQZcGK.js +0 -15168
  64. package/dist/arc-BUGZGgtu.js +0 -83
  65. package/dist/architectureDiagram-3BPJPVTR-ZcgvTwSO.js +0 -4692
  66. package/dist/blockDiagram-GPEHLZMM-DtVtOBbH.js +0 -2418
  67. package/dist/c4Diagram-AAUBKEIU-tBS5Rcvm.js +0 -1577
  68. package/dist/channel-CURI9jmI.js +0 -5
  69. package/dist/chunk-2J33WTMH-D7gashNz.js +0 -19
  70. package/dist/chunk-4BX2VUAB-DE3VjyiZ.js +0 -8
  71. package/dist/chunk-55IACEB6-GYZ_m2MY.js +0 -8
  72. package/dist/chunk-727SXJPM-D4WVyvOg.js +0 -1528
  73. package/dist/chunk-AQP2D5EJ-Os2Uwqya.js +0 -1387
  74. package/dist/chunk-FMBD7UC4-B3CSVzS4.js +0 -19
  75. package/dist/chunk-ND2GUHAM-CNj_s1aK.js +0 -68
  76. package/dist/chunk-QZHKN3VN-DoV8iUKo.js +0 -15
  77. package/dist/classDiagram-4FO5ZUOK-Dr9C18x4.js +0 -16
  78. package/dist/classDiagram-v2-Q7XG4LA2-Dr9C18x4.js +0 -16
  79. package/dist/components/Controls/ModeSlider.d.ts +0 -2
  80. package/dist/cose-bilkent-S5V4N54A-CgQlI-io.js +0 -2609
  81. package/dist/cytoscape.esm-kVAWcYoG.js +0 -18755
  82. package/dist/dagre-BM42HDAG-CFMIuOmS.js +0 -445
  83. package/dist/defaultLocale-BgPVtth8.js +0 -171
  84. package/dist/diagram-2AECGRRQ-C5jZp2YX.js +0 -217
  85. package/dist/diagram-5GNKFQAL-DRUVcHpp.js +0 -123
  86. package/dist/diagram-KO2AKTUF-BOl4aaej.js +0 -461
  87. package/dist/diagram-LMA3HP47-ZeckPR2Q.js +0 -142
  88. package/dist/diagram-OG6HWLK6-qUWeLfa-.js +0 -528
  89. package/dist/erDiagram-TEJ5UH35-Bw_CWS13.js +0 -899
  90. package/dist/flowDiagram-I6XJVG4X-D3xEvQA-.js +0 -1628
  91. package/dist/ganttDiagram-6RSMTGT7-D8GvenY3.js +0 -2707
  92. package/dist/gitGraphDiagram-PVQCEYII-BWrN_HOm.js +0 -815
  93. package/dist/graph-BRoPeNF3.js +0 -1545
  94. package/dist/infoDiagram-5YYISTIA-Da8FG5tB.js +0 -24
  95. package/dist/init-DjUOC4st.js +0 -16
  96. package/dist/ishikawaDiagram-YF4QCWOH-Bg2_mKEc.js +0 -621
  97. package/dist/journeyDiagram-JHISSGLW-sFIxGfua.js +0 -834
  98. package/dist/kanban-definition-UN3LZRKU-CGmopzHd.js +0 -724
  99. package/dist/katex-DoRnZ_sp.js +0 -11682
  100. package/dist/layout-D9EpM4Fg.js +0 -1728
  101. package/dist/linear-BA49eco4.js +0 -259
  102. package/dist/mermaid.core-XSpZEAKP.js +0 -16137
  103. package/dist/mindmap-definition-RKZ34NQL-Bqf76QGB.js +0 -827
  104. package/dist/ordinal-B6-f3MAq.js +0 -61
  105. package/dist/pieDiagram-4H26LBE5-hHiP8HzL.js +0 -163
  106. package/dist/quadrantDiagram-W4KKPZXB-DSccwH8B.js +0 -1024
  107. package/dist/requirementDiagram-4Y6WPE33-DIpyoYZ_.js +0 -882
  108. package/dist/sankeyDiagram-5OEKKPKP-DsaPqq8D.js +0 -847
  109. package/dist/sequenceDiagram-3UESZ5HK-BNg7orie.js +0 -2891
  110. package/dist/stateDiagram-AJRCARHV-Rv1mSmnJ.js +0 -263
  111. package/dist/stateDiagram-v2-BHNVJYJU-BME16k02.js +0 -16
  112. package/dist/timeline-definition-PNZ67QCA-CmmzdVk-.js +0 -1055
  113. package/dist/vennDiagram-CIIHVFJN-BQt00w9Q.js +0 -1557
  114. package/dist/wardley-L42UT6IY-D7b2ujEZ.js +0 -22512
  115. package/dist/wardleyDiagram-YWT4CUSO-LZpiODGN.js +0 -675
  116. package/dist/xychartDiagram-2RQKCTM6-BpJlv_mc.js +0 -1342
@@ -1,259 +0,0 @@
1
- import { b7 as j, b8 as p, b9 as w, ba as q, bb as k } from "./mermaid.core-XSpZEAKP.js";
2
- import { i as D } from "./init-DjUOC4st.js";
3
- import { e as g, f as F, a as z, b as B } from "./defaultLocale-BgPVtth8.js";
4
- function M(n, r) {
5
- return n == null || r == null ? NaN : n < r ? -1 : n > r ? 1 : n >= r ? 0 : NaN;
6
- }
7
- function I(n, r) {
8
- return n == null || r == null ? NaN : r < n ? -1 : r > n ? 1 : r >= n ? 0 : NaN;
9
- }
10
- function R(n) {
11
- let r, t, e;
12
- n.length !== 2 ? (r = M, t = (o, c) => M(n(o), c), e = (o, c) => n(o) - c) : (r = n === M || n === I ? n : P, t = n, e = n);
13
- function u(o, c, i = 0, h = o.length) {
14
- if (i < h) {
15
- if (r(c, c) !== 0) return h;
16
- do {
17
- const l = i + h >>> 1;
18
- t(o[l], c) < 0 ? i = l + 1 : h = l;
19
- } while (i < h);
20
- }
21
- return i;
22
- }
23
- function f(o, c, i = 0, h = o.length) {
24
- if (i < h) {
25
- if (r(c, c) !== 0) return h;
26
- do {
27
- const l = i + h >>> 1;
28
- t(o[l], c) <= 0 ? i = l + 1 : h = l;
29
- } while (i < h);
30
- }
31
- return i;
32
- }
33
- function a(o, c, i = 0, h = o.length) {
34
- const l = u(o, c, i, h - 1);
35
- return l > i && e(o[l - 1], c) > -e(o[l], c) ? l - 1 : l;
36
- }
37
- return { left: u, center: a, right: f };
38
- }
39
- function P() {
40
- return 0;
41
- }
42
- function V(n) {
43
- return n === null ? NaN : +n;
44
- }
45
- const $ = R(M), x = $.right;
46
- R(V).center;
47
- const O = Math.sqrt(50), T = Math.sqrt(10), C = Math.sqrt(2);
48
- function v(n, r, t) {
49
- const e = (r - n) / Math.max(0, t), u = Math.floor(Math.log10(e)), f = e / Math.pow(10, u), a = f >= O ? 10 : f >= T ? 5 : f >= C ? 2 : 1;
50
- let o, c, i;
51
- return u < 0 ? (i = Math.pow(10, -u) / a, o = Math.round(n * i), c = Math.round(r * i), o / i < n && ++o, c / i > r && --c, i = -i) : (i = Math.pow(10, u) * a, o = Math.round(n / i), c = Math.round(r / i), o * i < n && ++o, c * i > r && --c), c < o && 0.5 <= t && t < 2 ? v(n, r, t * 2) : [o, c, i];
52
- }
53
- function E(n, r, t) {
54
- if (r = +r, n = +n, t = +t, !(t > 0)) return [];
55
- if (n === r) return [n];
56
- const e = r < n, [u, f, a] = e ? v(r, n, t) : v(n, r, t);
57
- if (!(f >= u)) return [];
58
- const o = f - u + 1, c = new Array(o);
59
- if (e)
60
- if (a < 0) for (let i = 0; i < o; ++i) c[i] = (f - i) / -a;
61
- else for (let i = 0; i < o; ++i) c[i] = (f - i) * a;
62
- else if (a < 0) for (let i = 0; i < o; ++i) c[i] = (u + i) / -a;
63
- else for (let i = 0; i < o; ++i) c[i] = (u + i) * a;
64
- return c;
65
- }
66
- function y(n, r, t) {
67
- return r = +r, n = +n, t = +t, v(n, r, t)[2];
68
- }
69
- function G(n, r, t) {
70
- r = +r, n = +n, t = +t;
71
- const e = r < n, u = e ? y(r, n, t) : y(n, r, t);
72
- return (e ? -1 : 1) * (u < 0 ? 1 / -u : u);
73
- }
74
- function H(n, r) {
75
- r || (r = []);
76
- var t = n ? Math.min(r.length, n.length) : 0, e = r.slice(), u;
77
- return function(f) {
78
- for (u = 0; u < t; ++u) e[u] = n[u] * (1 - f) + r[u] * f;
79
- return e;
80
- };
81
- }
82
- function J(n) {
83
- return ArrayBuffer.isView(n) && !(n instanceof DataView);
84
- }
85
- function K(n, r) {
86
- var t = r ? r.length : 0, e = n ? Math.min(t, n.length) : 0, u = new Array(e), f = new Array(t), a;
87
- for (a = 0; a < e; ++a) u[a] = d(n[a], r[a]);
88
- for (; a < t; ++a) f[a] = r[a];
89
- return function(o) {
90
- for (a = 0; a < e; ++a) f[a] = u[a](o);
91
- return f;
92
- };
93
- }
94
- function L(n, r) {
95
- var t = /* @__PURE__ */ new Date();
96
- return n = +n, r = +r, function(e) {
97
- return t.setTime(n * (1 - e) + r * e), t;
98
- };
99
- }
100
- function Q(n, r) {
101
- var t = {}, e = {}, u;
102
- (n === null || typeof n != "object") && (n = {}), (r === null || typeof r != "object") && (r = {});
103
- for (u in r)
104
- u in n ? t[u] = d(n[u], r[u]) : e[u] = r[u];
105
- return function(f) {
106
- for (u in t) e[u] = t[u](f);
107
- return e;
108
- };
109
- }
110
- function d(n, r) {
111
- var t = typeof r, e;
112
- return r == null || t === "boolean" ? j(r) : (t === "number" ? p : t === "string" ? (e = k(r)) ? (r = e, w) : q : r instanceof k ? w : r instanceof Date ? L : J(r) ? H : Array.isArray(r) ? K : typeof r.valueOf != "function" && typeof r.toString != "function" || isNaN(r) ? Q : p)(n, r);
113
- }
114
- function U(n, r) {
115
- return n = +n, r = +r, function(t) {
116
- return Math.round(n * (1 - t) + r * t);
117
- };
118
- }
119
- function W(n) {
120
- return Math.max(0, -g(Math.abs(n)));
121
- }
122
- function X(n, r) {
123
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(g(r) / 3))) * 3 - g(Math.abs(n)));
124
- }
125
- function Y(n, r) {
126
- return n = Math.abs(n), r = Math.abs(r) - n, Math.max(0, g(r) - g(n)) + 1;
127
- }
128
- function Z(n) {
129
- return function() {
130
- return n;
131
- };
132
- }
133
- function _(n) {
134
- return +n;
135
- }
136
- var A = [0, 1];
137
- function m(n) {
138
- return n;
139
- }
140
- function N(n, r) {
141
- return (r -= n = +n) ? function(t) {
142
- return (t - n) / r;
143
- } : Z(isNaN(r) ? NaN : 0.5);
144
- }
145
- function b(n, r) {
146
- var t;
147
- return n > r && (t = n, n = r, r = t), function(e) {
148
- return Math.max(n, Math.min(r, e));
149
- };
150
- }
151
- function nn(n, r, t) {
152
- var e = n[0], u = n[1], f = r[0], a = r[1];
153
- return u < e ? (e = N(u, e), f = t(a, f)) : (e = N(e, u), f = t(f, a)), function(o) {
154
- return f(e(o));
155
- };
156
- }
157
- function rn(n, r, t) {
158
- var e = Math.min(n.length, r.length) - 1, u = new Array(e), f = new Array(e), a = -1;
159
- for (n[e] < n[0] && (n = n.slice().reverse(), r = r.slice().reverse()); ++a < e; )
160
- u[a] = N(n[a], n[a + 1]), f[a] = t(r[a], r[a + 1]);
161
- return function(o) {
162
- var c = x(n, o, 1, e) - 1;
163
- return f[c](u[c](o));
164
- };
165
- }
166
- function en(n, r) {
167
- return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown());
168
- }
169
- function tn() {
170
- var n = A, r = A, t = d, e, u, f, a = m, o, c, i;
171
- function h() {
172
- var s = Math.min(n.length, r.length);
173
- return a !== m && (a = b(n[0], n[s - 1])), o = s > 2 ? rn : nn, c = i = null, l;
174
- }
175
- function l(s) {
176
- return s == null || isNaN(s = +s) ? f : (c || (c = o(n.map(e), r, t)))(e(a(s)));
177
- }
178
- return l.invert = function(s) {
179
- return a(u((i || (i = o(r, n.map(e), p)))(s)));
180
- }, l.domain = function(s) {
181
- return arguments.length ? (n = Array.from(s, _), h()) : n.slice();
182
- }, l.range = function(s) {
183
- return arguments.length ? (r = Array.from(s), h()) : r.slice();
184
- }, l.rangeRound = function(s) {
185
- return r = Array.from(s), t = U, h();
186
- }, l.clamp = function(s) {
187
- return arguments.length ? (a = s ? !0 : m, h()) : a !== m;
188
- }, l.interpolate = function(s) {
189
- return arguments.length ? (t = s, h()) : t;
190
- }, l.unknown = function(s) {
191
- return arguments.length ? (f = s, l) : f;
192
- }, function(s, S) {
193
- return e = s, u = S, h();
194
- };
195
- }
196
- function un() {
197
- return tn()(m, m);
198
- }
199
- function an(n, r, t, e) {
200
- var u = G(n, r, t), f;
201
- switch (e = F(e ?? ",f"), e.type) {
202
- case "s": {
203
- var a = Math.max(Math.abs(n), Math.abs(r));
204
- return e.precision == null && !isNaN(f = X(u, a)) && (e.precision = f), z(e, a);
205
- }
206
- case "":
207
- case "e":
208
- case "g":
209
- case "p":
210
- case "r": {
211
- e.precision == null && !isNaN(f = Y(u, Math.max(Math.abs(n), Math.abs(r)))) && (e.precision = f - (e.type === "e"));
212
- break;
213
- }
214
- case "f":
215
- case "%": {
216
- e.precision == null && !isNaN(f = W(u)) && (e.precision = f - (e.type === "%") * 2);
217
- break;
218
- }
219
- }
220
- return B(e);
221
- }
222
- function on(n) {
223
- var r = n.domain;
224
- return n.ticks = function(t) {
225
- var e = r();
226
- return E(e[0], e[e.length - 1], t ?? 10);
227
- }, n.tickFormat = function(t, e) {
228
- var u = r();
229
- return an(u[0], u[u.length - 1], t ?? 10, e);
230
- }, n.nice = function(t) {
231
- t == null && (t = 10);
232
- var e = r(), u = 0, f = e.length - 1, a = e[u], o = e[f], c, i, h = 10;
233
- for (o < a && (i = a, a = o, o = i, i = u, u = f, f = i); h-- > 0; ) {
234
- if (i = y(a, o, t), i === c)
235
- return e[u] = a, e[f] = o, r(e);
236
- if (i > 0)
237
- a = Math.floor(a / i) * i, o = Math.ceil(o / i) * i;
238
- else if (i < 0)
239
- a = Math.ceil(a * i) / i, o = Math.floor(o * i) / i;
240
- else
241
- break;
242
- c = i;
243
- }
244
- return n;
245
- }, n;
246
- }
247
- function fn() {
248
- var n = un();
249
- return n.copy = function() {
250
- return en(n, fn());
251
- }, D.apply(n, arguments), on(n);
252
- }
253
- export {
254
- en as a,
255
- R as b,
256
- un as c,
257
- fn as l,
258
- G as t
259
- };