@notmrabhi/flowforge 0.1.112 → 0.1.114

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.
@@ -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 v = te(t, y);
187
- v.length && c.push({ kind: "value", label: d(y), value: v });
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
- }, v = Array.isArray(p) && p.length > 0, w = !!(a || h), E = d === "scheduler" ? (o == null ? void 0 : o.schedulerTriggerTitle) ?? "Scheduler Trigger" : d === "event" || v || w ? (o == null ? void 0 : o.eventTriggerSourceTitle) ?? "Event Trigger Source" : (o == null ? void 0 : o.selectTriggerTitle) ?? "Select Trigger", N = (() => {
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" || v) {
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: v ? p.map((C, P) => /* @__PURE__ */ e(
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: N
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, v) => {
778
+ u.map((f, N) => {
779
779
  var x;
780
- const w = ((x = f.stageName) == null ? void 0 : x.trim()) || `Stage ${v + 1}`, { label: E, configured: N } = st(f), S = rt(
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: v + 1
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 ${N ? "ff-text-dark" : "ff-text-muted"}`,
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: N ? "#5D4037" : "#9E9E9E" }
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
- v
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", v = f || y === "Fail", w = i + (s - i) / 3, E = l + (o - l) / 3, N = i + 2 * (s - i) / 3, S = l + 2 * (o - l) / 3, x = a == null ? void 0 : a.onAddStepClick, C = (I) => {
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
- v ? /* @__PURE__ */ n(z, { children: [
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(${N}, ${S})`, "data-testid": "plus-node-icon", ..._, children: /* @__PURE__ */ e(j, {}) })
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, v = (c == null ? void 0 : c.showPlus) !== !1 && !!f, w = (N) => {
1495
- N.stopPropagation(), typeof f == "function" && f(r, {
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,
@@ -1500,10 +1500,11 @@ const ht = ({ id: t, data: i }) => {
1500
1500
  position: "between",
1501
1501
  referenceNodeId: r,
1502
1502
  referenceNodeType: c == null ? void 0 : c.referenceNodeType,
1503
- stepVisibility: c == null ? void 0 : c.stepVisibility
1503
+ stepVisibility: c == null ? void 0 : c.stepVisibility,
1504
+ ...c != null && c.filterId ? { filterId: c.filterId, branch: c.branch } : {}
1504
1505
  });
1505
- }, E = (N) => {
1506
- (N.key === "Enter" || N.key === " ") && (N.preventDefault(), w(N));
1506
+ }, E = (k) => {
1507
+ (k.key === "Enter" || k.key === " ") && (k.preventDefault(), w(k));
1507
1508
  };
1508
1509
  return /* @__PURE__ */ n("g", { className: "edge-with-plus-wrapper", children: [
1509
1510
  /* @__PURE__ */ e(V, { id: t, path: p, style: { stroke: "#b0bec5" } }),
@@ -1518,7 +1519,7 @@ const ht = ({ id: t, data: i }) => {
1518
1519
  role: f ? "button" : void 0,
1519
1520
  tabIndex: f ? 0 : void 0,
1520
1521
  children: [
1521
- y && /* @__PURE__ */ n("g", { transform: `translate(0, ${v ? kt : 0})`, children: [
1522
+ y && /* @__PURE__ */ n("g", { transform: `translate(0, ${N ? kt : 0})`, children: [
1522
1523
  /* @__PURE__ */ e(
1523
1524
  "rect",
1524
1525
  {
@@ -1533,12 +1534,12 @@ const ht = ({ id: t, data: i }) => {
1533
1534
  ),
1534
1535
  /* @__PURE__ */ e("text", { textAnchor: "middle", dominantBaseline: "central", fill: g ? "#1DBF60" : "#C50000", style: { fontSize: 12, fontWeight: 500 }, children: u })
1535
1536
  ] }),
1536
- v && /* @__PURE__ */ n("g", { className: "plus-icon-container", children: [
1537
+ N && /* @__PURE__ */ n("g", { className: "plus-icon-container", children: [
1537
1538
  /* @__PURE__ */ e("circle", { r: Nt, className: "edge-plus-circle" }),
1538
1539
  /* @__PURE__ */ e("line", { x1: 0, y1: -O, x2: 0, y2: O, strokeWidth: fe, strokeLinecap: "round", className: "plus-line" }),
1539
1540
  /* @__PURE__ */ e("line", { x1: -O, y1: 0, x2: O, y2: 0, strokeWidth: fe, strokeLinecap: "round", className: "plus-line" })
1540
1541
  ] }),
1541
- v && /* @__PURE__ */ n("g", { className: "edge-plus-tooltip", transform: "translate(22, 0)", children: [
1542
+ N && /* @__PURE__ */ n("g", { className: "edge-plus-tooltip", transform: "translate(22, 0)", children: [
1542
1543
  /* @__PURE__ */ e("rect", { x: 0, y: -10, width: 65, height: 20, rx: 4, className: "tooltip-bg" }),
1543
1544
  /* @__PURE__ */ e("path", { d: "M0 -4 L-4 0 L0 4 Z", className: "tooltip-bg" }),
1544
1545
  /* @__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 +1567,27 @@ const ht = ({ id: t, data: i }) => {
1566
1567
  // inline-gate Pass: straight down the spine.
1567
1568
  `M ${s},${o} L ${r},${d}`
1568
1569
  ) : h ? (() => {
1569
- const k = d - y;
1570
- return `M ${s},${k} L ${r},${k} L ${r},${d}`;
1570
+ const v = d - y;
1571
+ return `M ${s},${v} L ${r},${v} L ${r},${d}`;
1571
1572
  })() : (() => {
1572
- const k = o + 30;
1573
- return `M ${s},${o} L ${s},${k} L ${r},${k} L ${r},${d}`;
1574
- })(), v = c.stroke || "#d1d5db", w = a == null ? void 0 : a.label, E = (a == null ? void 0 : a.isFirst) ?? !1, N = a == null ? void 0 : a.onAddStepClick;
1573
+ const v = o + 30;
1574
+ return `M ${s},${o} L ${s},${v} L ${r},${v} L ${r},${d}`;
1575
+ })(), 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
1576
  let S, x, C, P;
1576
1577
  if (u)
1577
1578
  S = s + (r - s) * 0.5, x = o, C = S, P = o;
1578
- else if (g)
1579
- S = s, x = o + 18, C = s, P = o + 56;
1580
- else if (h) {
1581
- const k = d - y;
1582
- S = s + (r - s) * 0.25, x = k, C = s + (r - s) * 0.65, P = k;
1579
+ else if (g) {
1580
+ const v = d - o;
1581
+ S = s, x = o + v / 3, C = s, P = o + v * 2 / 3;
1582
+ } else if (h) {
1583
+ const v = d - y;
1584
+ S = s + (r - s) * 0.25, x = v, C = s + (r - s) * 0.65, P = v;
1583
1585
  } else {
1584
- const k = o + 30;
1585
- S = s + (r - s) * 0.35, x = k, C = s + (r - s) * 0.7, P = k;
1586
+ const v = o + 30;
1587
+ S = s + (r - s) * 0.35, x = v, C = s + (r - s) * 0.7, P = v;
1586
1588
  }
1587
- const j = !!w && (!h || u || g), _ = !!N && !u, I = (k) => {
1588
- k.stopPropagation(), N && N(i, {
1589
+ const j = !!w && (!h || u || g), _ = !!k && !u, I = (v) => {
1590
+ v.stopPropagation(), k && k(i, {
1589
1591
  edgeId: t,
1590
1592
  nodeId: i,
1591
1593
  sourceNodeId: i,
@@ -1597,16 +1599,16 @@ const ht = ({ id: t, data: i }) => {
1597
1599
  });
1598
1600
  }, Z = 11.5, K = 6;
1599
1601
  return /* @__PURE__ */ n("g", { children: [
1600
- /* @__PURE__ */ e("path", { id: t, d: f, fill: "none", stroke: v, strokeWidth: 1.5, markerEnd: p }),
1602
+ /* @__PURE__ */ e("path", { id: t, d: f, fill: "none", stroke: N, strokeWidth: 1.5, markerEnd: p }),
1601
1603
  j && /* @__PURE__ */ e("g", { transform: `translate(${S}, ${x})`, children: (() => {
1602
- const k = Math.max(44, w.length * 7 + 20);
1604
+ const v = Math.max(44, w.length * 7 + 20);
1603
1605
  return /* @__PURE__ */ n(z, { children: [
1604
1606
  /* @__PURE__ */ e(
1605
1607
  "rect",
1606
1608
  {
1607
- x: -k / 2,
1609
+ x: -v / 2,
1608
1610
  y: -11,
1609
- width: k,
1611
+ width: v,
1610
1612
  height: 22,
1611
1613
  rx: 11,
1612
1614
  fill: E ? "#e8f5e9" : "#ffebee",
@@ -1668,4 +1670,4 @@ export {
1668
1670
  _e as h,
1669
1671
  Ye as r
1670
1672
  };
1671
- //# sourceMappingURL=GatewayBranchEdge-D7XRJVei.js.map
1673
+ //# sourceMappingURL=GatewayBranchEdge-C9hllCUh.js.map