@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,19 +0,0 @@
1
- import { _ as e } from "./mermaid.core-XSpZEAKP.js";
2
- var l = /* @__PURE__ */ e(() => `
3
- /* Font Awesome icon styling - consolidated */
4
- .label-icon {
5
- display: inline-block;
6
- height: 1em;
7
- overflow: visible;
8
- vertical-align: -0.125em;
9
- }
10
-
11
- .node .label-icon path {
12
- fill: currentColor;
13
- stroke: revert;
14
- stroke-width: revert;
15
- }
16
- `, "getIconStyles");
17
- export {
18
- l as g
19
- };
@@ -1,68 +0,0 @@
1
- import { _ as i, d as l, U as d, j as o } from "./mermaid.core-XSpZEAKP.js";
2
- var x = /* @__PURE__ */ i((r, t) => {
3
- const e = r.append("rect");
4
- if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
5
- for (const s in t.attrs)
6
- e.attr(s, t.attrs[s]);
7
- return t.class && e.attr("class", t.class), e;
8
- }, "drawRect"), p = /* @__PURE__ */ i((r, t) => {
9
- const e = {
10
- x: t.startx,
11
- y: t.starty,
12
- width: t.stopx - t.startx,
13
- height: t.stopy - t.starty,
14
- fill: t.fill,
15
- stroke: t.stroke,
16
- class: "rect"
17
- };
18
- x(r, e).lower();
19
- }, "drawBackgroundRect"), y = /* @__PURE__ */ i((r, t) => {
20
- const e = t.text.replace(d, " "), s = r.append("text");
21
- s.attr("x", t.x), s.attr("y", t.y), s.attr("class", "legend"), s.style("text-anchor", t.anchor), t.class && s.attr("class", t.class);
22
- const a = s.append("tspan");
23
- return a.attr("x", t.x + t.textMargin * 2), a.text(e), s;
24
- }, "drawText"), m = /* @__PURE__ */ i((r, t, e, s) => {
25
- const a = r.append("image");
26
- a.attr("x", t), a.attr("y", e);
27
- const n = o.sanitizeUrl(s);
28
- a.attr("xlink:href", n);
29
- }, "drawImage"), g = /* @__PURE__ */ i((r, t, e, s) => {
30
- const a = r.append("use");
31
- a.attr("x", t), a.attr("y", e);
32
- const n = o.sanitizeUrl(s);
33
- a.attr("xlink:href", `#${n}`);
34
- }, "drawEmbeddedImage"), h = /* @__PURE__ */ i(() => ({
35
- x: 0,
36
- y: 0,
37
- width: 100,
38
- height: 100,
39
- fill: "#EDF2AE",
40
- stroke: "#666",
41
- anchor: "start",
42
- rx: 0,
43
- ry: 0
44
- }), "getNoteRect"), f = /* @__PURE__ */ i(() => ({
45
- x: 0,
46
- y: 0,
47
- width: 100,
48
- height: 100,
49
- "text-anchor": "start",
50
- style: "#666",
51
- textMargin: 0,
52
- rx: 0,
53
- ry: 0,
54
- tspan: !0
55
- }), "getTextObj"), w = /* @__PURE__ */ i(() => {
56
- let r = l(".mermaidTooltip");
57
- return r.empty() && (r = l("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0).style("position", "absolute").style("text-align", "center").style("max-width", "200px").style("padding", "2px").style("font-size", "12px").style("background", "#ffffde").style("border", "1px solid #333").style("border-radius", "2px").style("pointer-events", "none").style("z-index", "100")), r;
58
- }, "createTooltip");
59
- export {
60
- p as a,
61
- f as b,
62
- w as c,
63
- x as d,
64
- g as e,
65
- m as f,
66
- h as g,
67
- y as h
68
- };
@@ -1,15 +0,0 @@
1
- import { _ as s } from "./mermaid.core-XSpZEAKP.js";
2
- var t, e = (t = class {
3
- /**
4
- * @param init - Function that creates the default state.
5
- */
6
- constructor(i) {
7
- this.init = i, this.records = this.init();
8
- }
9
- reset() {
10
- this.records = this.init();
11
- }
12
- }, s(t, "ImperativeState"), t);
13
- export {
14
- e as I
15
- };
@@ -1,16 +0,0 @@
1
- import { s as r, c as s, a as e, C as t } from "./chunk-727SXJPM-D4WVyvOg.js";
2
- import { _ as l } from "./mermaid.core-XSpZEAKP.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-727SXJPM-D4WVyvOg.js";
2
- import { _ as l } from "./mermaid.core-XSpZEAKP.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,2 +0,0 @@
1
- import './ModeSlider.css';
2
- export default function ModeSlider(): import("react/jsx-runtime").JSX.Element;