@notmrabhi/flowforge 0.1.112 → 0.1.113
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/{GatewayBranchEdge-D7XRJVei.js → GatewayBranchEdge-BgktIVzD.js} +42 -41
- package/dist/{GatewayBranchEdge-D7XRJVei.js.map → GatewayBranchEdge-BgktIVzD.js.map} +1 -1
- package/dist/{GatewayBranchEdge-DBQA4lXN.js → GatewayBranchEdge-CDNn0TfD.js} +2 -2
- package/dist/{GatewayBranchEdge-DBQA4lXN.js.map → GatewayBranchEdge-CDNn0TfD.js.map} +1 -1
- package/dist/{WorkflowExecutionHistory-_RUureyw.js → WorkflowExecutionHistory-CFtQjyIb.js} +2 -2
- package/dist/{WorkflowExecutionHistory-_RUureyw.js.map → WorkflowExecutionHistory-CFtQjyIb.js.map} +1 -1
- package/dist/{WorkflowExecutionHistory-Cy36NQfD.js → WorkflowExecutionHistory-CtdOZdqt.js} +2 -2
- package/dist/{WorkflowExecutionHistory-Cy36NQfD.js.map → WorkflowExecutionHistory-CtdOZdqt.js.map} +1 -1
- package/dist/canvas.cjs +1 -1
- package/dist/canvas.js +2 -2
- package/dist/defaultUi.cjs +1 -1
- package/dist/defaultUi.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -183,8 +183,8 @@ function Qe(t, i) {
|
|
|
183
183
|
f && c.push({ kind: "value", label: d(y), value: ["Yes"] });
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
|
|
186
|
+
const N = te(t, y);
|
|
187
|
+
N.length && c.push({ kind: "value", label: d(y), value: N });
|
|
188
188
|
});
|
|
189
189
|
};
|
|
190
190
|
a(t, "");
|
|
@@ -283,7 +283,7 @@ const tt = ({ id: t, data: i }) => {
|
|
|
283
283
|
infoText: y = "This node decides the flow trigger type and configuration."
|
|
284
284
|
} = i ?? {}, f = (x) => {
|
|
285
285
|
x == null || x.stopPropagation(), d === "scheduler" ? s(t) : l();
|
|
286
|
-
},
|
|
286
|
+
}, N = Array.isArray(p) && p.length > 0, w = !!(a || h), E = d === "scheduler" ? (o == null ? void 0 : o.schedulerTriggerTitle) ?? "Scheduler Trigger" : d === "event" || N || w ? (o == null ? void 0 : o.eventTriggerSourceTitle) ?? "Event Trigger Source" : (o == null ? void 0 : o.selectTriggerTitle) ?? "Select Trigger", k = (() => {
|
|
287
287
|
if (d === "scheduler")
|
|
288
288
|
return /* @__PURE__ */ e(
|
|
289
289
|
xe,
|
|
@@ -293,14 +293,14 @@ const tt = ({ id: t, data: i }) => {
|
|
|
293
293
|
emptyText: (o == null ? void 0 : o.schedulerToBeConfigured) ?? "Scheduler to be configured"
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
|
-
if (d === "event" ||
|
|
296
|
+
if (d === "event" || N) {
|
|
297
297
|
const x = a || ve(c);
|
|
298
298
|
return /* @__PURE__ */ n("div", { children: [
|
|
299
299
|
/* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center", children: [
|
|
300
300
|
/* @__PURE__ */ e("span", { style: { fontWeight: 600 }, children: x }),
|
|
301
301
|
/* @__PURE__ */ e("span", { className: "ff-ms-2 ff-text-muted", style: { fontSize: 12 }, children: "via" })
|
|
302
302
|
] }),
|
|
303
|
-
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-flex-wrap ff-mt-2", style: { gap: 4 }, children:
|
|
303
|
+
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-flex-wrap ff-mt-2", style: { gap: 4 }, children: N ? p.map((C, P) => /* @__PURE__ */ e(
|
|
304
304
|
J,
|
|
305
305
|
{
|
|
306
306
|
label: et(C),
|
|
@@ -393,7 +393,7 @@ const tt = ({ id: t, data: i }) => {
|
|
|
393
393
|
borderRadius: 6,
|
|
394
394
|
textAlign: "left"
|
|
395
395
|
},
|
|
396
|
-
children:
|
|
396
|
+
children: k
|
|
397
397
|
}
|
|
398
398
|
)
|
|
399
399
|
] }),
|
|
@@ -775,9 +775,9 @@ const ct = ({ id: t, data: i }) => {
|
|
|
775
775
|
children: "No stages configured"
|
|
776
776
|
}
|
|
777
777
|
) : /* @__PURE__ */ n(z, { children: [
|
|
778
|
-
u.map((f,
|
|
778
|
+
u.map((f, N) => {
|
|
779
779
|
var x;
|
|
780
|
-
const w = ((x = f.stageName) == null ? void 0 : x.trim()) || `Stage ${
|
|
780
|
+
const w = ((x = f.stageName) == null ? void 0 : x.trim()) || `Stage ${N + 1}`, { label: E, configured: k } = st(f), S = rt(
|
|
781
781
|
f.executionMode,
|
|
782
782
|
f.isSequential,
|
|
783
783
|
c
|
|
@@ -807,7 +807,7 @@ const ct = ({ id: t, data: i }) => {
|
|
|
807
807
|
fontSize: 12,
|
|
808
808
|
fontWeight: 700
|
|
809
809
|
},
|
|
810
|
-
children:
|
|
810
|
+
children: N + 1
|
|
811
811
|
}
|
|
812
812
|
),
|
|
813
813
|
/* @__PURE__ */ e(
|
|
@@ -821,14 +821,14 @@ const ct = ({ id: t, data: i }) => {
|
|
|
821
821
|
/* @__PURE__ */ n(
|
|
822
822
|
"div",
|
|
823
823
|
{
|
|
824
|
-
className: `ff-d-flex ff-align-items-center ff-flex-shrink-0 ${
|
|
824
|
+
className: `ff-d-flex ff-align-items-center ff-flex-shrink-0 ${k ? "ff-text-dark" : "ff-text-muted"}`,
|
|
825
825
|
style: { gap: 4, fontSize: 12 },
|
|
826
826
|
children: [
|
|
827
827
|
/* @__PURE__ */ e(
|
|
828
828
|
ze,
|
|
829
829
|
{
|
|
830
830
|
size: 15,
|
|
831
|
-
style: { color:
|
|
831
|
+
style: { color: k ? "#5D4037" : "#9E9E9E" }
|
|
832
832
|
}
|
|
833
833
|
),
|
|
834
834
|
E
|
|
@@ -858,7 +858,7 @@ const ct = ({ id: t, data: i }) => {
|
|
|
858
858
|
)
|
|
859
859
|
]
|
|
860
860
|
},
|
|
861
|
-
|
|
861
|
+
N
|
|
862
862
|
);
|
|
863
863
|
}),
|
|
864
864
|
g > 0 && // eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
@@ -1329,7 +1329,7 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1329
1329
|
sourceY: l,
|
|
1330
1330
|
targetX: s,
|
|
1331
1331
|
targetY: o
|
|
1332
|
-
}), y = a == null ? void 0 : a.label, f = y === "Pass",
|
|
1332
|
+
}), y = a == null ? void 0 : a.label, f = y === "Pass", N = f || y === "Fail", w = i + (s - i) / 3, E = l + (o - l) / 3, k = i + 2 * (s - i) / 3, S = l + 2 * (o - l) / 3, x = a == null ? void 0 : a.onAddStepClick, C = (I) => {
|
|
1333
1333
|
if (I.stopPropagation(), typeof x != "function") return;
|
|
1334
1334
|
const Z = {
|
|
1335
1335
|
edgeId: t,
|
|
@@ -1366,12 +1366,12 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1366
1366
|
};
|
|
1367
1367
|
return /* @__PURE__ */ n("g", { className: "edge-with-plus-wrapper", children: [
|
|
1368
1368
|
/* @__PURE__ */ e(V, { id: t, path: h }),
|
|
1369
|
-
|
|
1369
|
+
N ? /* @__PURE__ */ n(z, { children: [
|
|
1370
1370
|
/* @__PURE__ */ n("g", { transform: `translate(${w}, ${E})`, children: [
|
|
1371
1371
|
/* @__PURE__ */ e("rect", { x: -se / 2, y: -ce / 2, width: se, height: ce, rx: ae, ry: ae, fill: f ? "#ADE6C5" : "#FDBFBF" }),
|
|
1372
1372
|
/* @__PURE__ */ e("text", { textAnchor: "middle", dominantBaseline: "central", fill: f ? "#1DBF60" : "#C50000", style: { fontSize: 12, fontWeight: 500 }, children: y })
|
|
1373
1373
|
] }),
|
|
1374
|
-
/* @__PURE__ */ e("g", { className: "nodrag nopan edge-plus-svg", transform: `translate(${
|
|
1374
|
+
/* @__PURE__ */ e("g", { className: "nodrag nopan edge-plus-svg", transform: `translate(${k}, ${S})`, "data-testid": "plus-node-icon", ..._, children: /* @__PURE__ */ e(j, {}) })
|
|
1375
1375
|
] }) : /* @__PURE__ */ e("g", { className: "nodrag nopan edge-plus-svg", transform: `translate(${u}, ${g})`, "data-testid": "plus-node-icon", ..._, children: /* @__PURE__ */ e(j, {}) })
|
|
1376
1376
|
] });
|
|
1377
1377
|
}, vt = 11.5, de = 2, H = 6, Wt = ({
|
|
@@ -1491,8 +1491,8 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1491
1491
|
target: d,
|
|
1492
1492
|
data: c
|
|
1493
1493
|
}) => {
|
|
1494
|
-
const [p, a, h] = G({ sourceX: i, sourceY: l, targetX: s, targetY: o }), u = c == null ? void 0 : c.label, g = u === "Pass", y = g || u === "Fail", f = c == null ? void 0 : c.onAddStepClick,
|
|
1495
|
-
|
|
1494
|
+
const [p, a, h] = G({ sourceX: i, sourceY: l, targetX: s, targetY: o }), u = c == null ? void 0 : c.label, g = u === "Pass", y = g || u === "Fail", f = c == null ? void 0 : c.onAddStepClick, N = (c == null ? void 0 : c.showPlus) !== !1 && !!f, w = (k) => {
|
|
1495
|
+
k.stopPropagation(), typeof f == "function" && f(r, {
|
|
1496
1496
|
edgeId: t,
|
|
1497
1497
|
nodeId: r,
|
|
1498
1498
|
sourceNodeId: r,
|
|
@@ -1502,8 +1502,8 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1502
1502
|
referenceNodeType: c == null ? void 0 : c.referenceNodeType,
|
|
1503
1503
|
stepVisibility: c == null ? void 0 : c.stepVisibility
|
|
1504
1504
|
});
|
|
1505
|
-
}, E = (
|
|
1506
|
-
(
|
|
1505
|
+
}, E = (k) => {
|
|
1506
|
+
(k.key === "Enter" || k.key === " ") && (k.preventDefault(), w(k));
|
|
1507
1507
|
};
|
|
1508
1508
|
return /* @__PURE__ */ n("g", { className: "edge-with-plus-wrapper", children: [
|
|
1509
1509
|
/* @__PURE__ */ e(V, { id: t, path: p, style: { stroke: "#b0bec5" } }),
|
|
@@ -1518,7 +1518,7 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1518
1518
|
role: f ? "button" : void 0,
|
|
1519
1519
|
tabIndex: f ? 0 : void 0,
|
|
1520
1520
|
children: [
|
|
1521
|
-
y && /* @__PURE__ */ n("g", { transform: `translate(0, ${
|
|
1521
|
+
y && /* @__PURE__ */ n("g", { transform: `translate(0, ${N ? kt : 0})`, children: [
|
|
1522
1522
|
/* @__PURE__ */ e(
|
|
1523
1523
|
"rect",
|
|
1524
1524
|
{
|
|
@@ -1533,12 +1533,12 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1533
1533
|
),
|
|
1534
1534
|
/* @__PURE__ */ e("text", { textAnchor: "middle", dominantBaseline: "central", fill: g ? "#1DBF60" : "#C50000", style: { fontSize: 12, fontWeight: 500 }, children: u })
|
|
1535
1535
|
] }),
|
|
1536
|
-
|
|
1536
|
+
N && /* @__PURE__ */ n("g", { className: "plus-icon-container", children: [
|
|
1537
1537
|
/* @__PURE__ */ e("circle", { r: Nt, className: "edge-plus-circle" }),
|
|
1538
1538
|
/* @__PURE__ */ e("line", { x1: 0, y1: -O, x2: 0, y2: O, strokeWidth: fe, strokeLinecap: "round", className: "plus-line" }),
|
|
1539
1539
|
/* @__PURE__ */ e("line", { x1: -O, y1: 0, x2: O, y2: 0, strokeWidth: fe, strokeLinecap: "round", className: "plus-line" })
|
|
1540
1540
|
] }),
|
|
1541
|
-
|
|
1541
|
+
N && /* @__PURE__ */ n("g", { className: "edge-plus-tooltip", transform: "translate(22, 0)", children: [
|
|
1542
1542
|
/* @__PURE__ */ e("rect", { x: 0, y: -10, width: 65, height: 20, rx: 4, className: "tooltip-bg" }),
|
|
1543
1543
|
/* @__PURE__ */ e("path", { d: "M0 -4 L-4 0 L0 4 Z", className: "tooltip-bg" }),
|
|
1544
1544
|
/* @__PURE__ */ e("text", { x: 32, y: 0, textAnchor: "middle", dominantBaseline: "central", fill: "white", style: { fontSize: 10, fontWeight: 600, pointerEvents: "none" }, children: "Add Step" })
|
|
@@ -1566,26 +1566,27 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1566
1566
|
// inline-gate Pass: straight down the spine.
|
|
1567
1567
|
`M ${s},${o} L ${r},${d}`
|
|
1568
1568
|
) : h ? (() => {
|
|
1569
|
-
const
|
|
1570
|
-
return `M ${s},${
|
|
1569
|
+
const v = d - y;
|
|
1570
|
+
return `M ${s},${v} L ${r},${v} L ${r},${d}`;
|
|
1571
1571
|
})() : (() => {
|
|
1572
|
-
const
|
|
1573
|
-
return `M ${s},${o} L ${s},${
|
|
1574
|
-
})(),
|
|
1572
|
+
const v = o + 30;
|
|
1573
|
+
return `M ${s},${o} L ${s},${v} L ${r},${v} L ${r},${d}`;
|
|
1574
|
+
})(), N = c.stroke || "#d1d5db", w = a == null ? void 0 : a.label, E = (a == null ? void 0 : a.isFirst) ?? !1, k = a == null ? void 0 : a.onAddStepClick;
|
|
1575
1575
|
let S, x, C, P;
|
|
1576
1576
|
if (u)
|
|
1577
1577
|
S = s + (r - s) * 0.5, x = o, C = S, P = o;
|
|
1578
|
-
else if (g)
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1578
|
+
else if (g) {
|
|
1579
|
+
const v = d - o;
|
|
1580
|
+
S = s, x = o + v / 3, C = s, P = o + v * 2 / 3;
|
|
1581
|
+
} else if (h) {
|
|
1582
|
+
const v = d - y;
|
|
1583
|
+
S = s + (r - s) * 0.25, x = v, C = s + (r - s) * 0.65, P = v;
|
|
1583
1584
|
} else {
|
|
1584
|
-
const
|
|
1585
|
-
S = s + (r - s) * 0.35, x =
|
|
1585
|
+
const v = o + 30;
|
|
1586
|
+
S = s + (r - s) * 0.35, x = v, C = s + (r - s) * 0.7, P = v;
|
|
1586
1587
|
}
|
|
1587
|
-
const j = !!w && (!h || u || g), _ = !!
|
|
1588
|
-
|
|
1588
|
+
const j = !!w && (!h || u || g), _ = !!k && !u, I = (v) => {
|
|
1589
|
+
v.stopPropagation(), k && k(i, {
|
|
1589
1590
|
edgeId: t,
|
|
1590
1591
|
nodeId: i,
|
|
1591
1592
|
sourceNodeId: i,
|
|
@@ -1597,16 +1598,16 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1597
1598
|
});
|
|
1598
1599
|
}, Z = 11.5, K = 6;
|
|
1599
1600
|
return /* @__PURE__ */ n("g", { children: [
|
|
1600
|
-
/* @__PURE__ */ e("path", { id: t, d: f, fill: "none", stroke:
|
|
1601
|
+
/* @__PURE__ */ e("path", { id: t, d: f, fill: "none", stroke: N, strokeWidth: 1.5, markerEnd: p }),
|
|
1601
1602
|
j && /* @__PURE__ */ e("g", { transform: `translate(${S}, ${x})`, children: (() => {
|
|
1602
|
-
const
|
|
1603
|
+
const v = Math.max(44, w.length * 7 + 20);
|
|
1603
1604
|
return /* @__PURE__ */ n(z, { children: [
|
|
1604
1605
|
/* @__PURE__ */ e(
|
|
1605
1606
|
"rect",
|
|
1606
1607
|
{
|
|
1607
|
-
x: -
|
|
1608
|
+
x: -v / 2,
|
|
1608
1609
|
y: -11,
|
|
1609
|
-
width:
|
|
1610
|
+
width: v,
|
|
1610
1611
|
height: 22,
|
|
1611
1612
|
rx: 11,
|
|
1612
1613
|
fill: E ? "#e8f5e9" : "#ffebee",
|
|
@@ -1668,4 +1669,4 @@ export {
|
|
|
1668
1669
|
_e as h,
|
|
1669
1670
|
Ye as r
|
|
1670
1671
|
};
|
|
1671
|
-
//# sourceMappingURL=GatewayBranchEdge-
|
|
1672
|
+
//# sourceMappingURL=GatewayBranchEdge-BgktIVzD.js.map
|