@notmrabhi/flowforge 0.1.111 → 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.
@@ -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,
@@ -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 = (N) => {
1506
- (N.key === "Enter" || N.key === " ") && (N.preventDefault(), w(N));
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, ${v ? kt : 0})`, children: [
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
- v && /* @__PURE__ */ n("g", { className: "plus-icon-container", children: [
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
- v && /* @__PURE__ */ n("g", { className: "edge-plus-tooltip", transform: "translate(22, 0)", children: [
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 k = d - y;
1570
- return `M ${s},${k} L ${r},${k} L ${r},${d}`;
1569
+ const v = d - y;
1570
+ return `M ${s},${v} L ${r},${v} L ${r},${d}`;
1571
1571
  })() : (() => {
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;
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
- S = s, x = o + 24, C = s, P = o + (d - o) * 0.6;
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;
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 k = o + 30;
1585
- S = s + (r - s) * 0.35, x = k, C = s + (r - s) * 0.7, P = k;
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), _ = !!N && !u, I = (k) => {
1588
- k.stopPropagation(), N && N(i, {
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: v, strokeWidth: 1.5, markerEnd: p }),
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 k = Math.max(44, w.length * 7 + 20);
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: -k / 2,
1608
+ x: -v / 2,
1608
1609
  y: -11,
1609
- width: k,
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-BsRuojkK.js.map
1672
+ //# sourceMappingURL=GatewayBranchEdge-BgktIVzD.js.map