@w6w/ui 0.2.58 → 0.2.59

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/index.mjs CHANGED
@@ -2,11 +2,11 @@
2
2
  var Cn = Object.defineProperty;
3
3
  var Sn = (e, n, a) => n in e ? Cn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a;
4
4
  var Ne = (e, n, a) => Sn(e, typeof n != "symbol" ? n + "" : n, a);
5
- import { u as jt, bo as $n, J as oe, bC as Tn, aO as Ye, bP as kt, aN as $e, aI as An, X as Rn, bQ as En, aD as de, O as _n, bR as On, bS as In, aZ as Oe, bI as Pn, bE as ue, bT as Ln, bU as Be, bV as Mn, bW as Dn, bX as Un } from "./connection-app-meta-D5hNbJB5.js";
6
- import { bG as sl, bA as ll, aG as il, bY as rl, bZ as ol, b_ as cl, b$ as dl, aC as ul, c0 as wl, c1 as ml, b4 as hl, bK as pl, bq as fl, b5 as gl, c2 as yl, c3 as vl, aJ as Nl, c4 as bl, c5 as kl, c6 as xl, c7 as Cl, c8 as Sl, c9 as $l, ca as Tl, cb as Al, an as Rl, cc as El, cd as _l, ce as Ol, cf as Il, cg as Pl, ch as Ll, b3 as Ml, ci as Dl, R as Ul, cj as Fl, ck as Bl, cl as Kl, cm as jl, cn as Jl, a as Wl, b2 as Vl } from "./connection-app-meta-D5hNbJB5.js";
7
- import { jsx as t, jsxs as i, Fragment as E } from "react/jsx-runtime";
5
+ import { u as jt, bp as $n, J as oe, bH as Tn, aP as Ye, bT as kt, aO as $e, aJ as An, V as En, bU as Rn, aE as de, M as _n, bV as On, bW as In, a_ as Oe, bX as Te, bM as Pn, bY as ue, bZ as Ln, b_ as Be, b$ as Mn, c0 as Dn, c1 as Un } from "./connection-app-meta-Cl6mUAMF.js";
6
+ import { bK as sl, bF as ll, aH as il, c2 as rl, c3 as ol, c4 as cl, c5 as dl, aD as ul, c6 as wl, c7 as ml, b5 as hl, bO as pl, br as fl, b6 as gl, c8 as yl, c9 as vl, aK as Nl, ca as bl, cb as kl, cc as xl, cd as Cl, ce as Sl, cf as $l, cg as Tl, ch as Al, ao as El, ci as Rl, cj as _l, ck as Ol, cl as Il, cm as Pl, cn as Ll, b4 as Ml, co as Dl, P as Ul, cp as Fl, cq as Bl, cr as Kl, cs as jl, ct as Jl, a as Wl, b3 as Vl } from "./connection-app-meta-Cl6mUAMF.js";
7
+ import { jsx as t, jsxs as i, Fragment as R } from "react/jsx-runtime";
8
8
  import { useMemo as Ge, useState as k, useEffect as G, useId as Fn, useRef as Jt } from "react";
9
- import { u as Bn, b as Kn, c as jn, a as tt, I as Xe, C as Te } from "./CodeBlock-CPKXSNEs.js";
9
+ import { u as Bn, b as Kn, c as jn, a as tt, I as Xe, C as Ae } from "./CodeBlock-CPKXSNEs.js";
10
10
  import { i as Hl } from "./CodeBlock-CPKXSNEs.js";
11
11
  import { yaml as Jn } from "@codemirror/lang-yaml";
12
12
  import { EditorView as Wn } from "@codemirror/view";
@@ -255,7 +255,7 @@ function Ze({
255
255
  href: l,
256
256
  ariaLabel: c
257
257
  }) {
258
- const d = /* @__PURE__ */ i(E, { children: [
258
+ const d = /* @__PURE__ */ i(R, { children: [
259
259
  a != null && /* @__PURE__ */ t("span", { className: "w6w-list-item-icon", children: a }),
260
260
  /* @__PURE__ */ i("span", { className: "w6w-list-item-body", children: [
261
261
  /* @__PURE__ */ t("span", { className: "w6w-list-item-title", children: e }),
@@ -370,7 +370,7 @@ function hs({
370
370
  const m = jt(), v = Ge(() => {
371
371
  const p = [...n];
372
372
  return p.sort((A, F) => (A.title || A.key).localeCompare(F.title || F.key)), p;
373
- }, [n]), [w, h] = k((s == null ? void 0 : s.key) ?? ""), y = s ?? n.find((p) => p.key === w) ?? null, [g, $] = k(!1), [x, N] = k(null), [T, C] = k(void 0), [R, P] = k([]), K = je(), O = je(), S = je(), [I, V] = k(""), [q, Z] = k(""), J = K.invalid || O.invalid || S.invalid, W = () => {
373
+ }, [n]), [w, h] = k((s == null ? void 0 : s.key) ?? ""), y = s ?? n.find((p) => p.key === w) ?? null, [g, $] = k(!1), [x, N] = k(null), [T, C] = k(void 0), [E, P] = k([]), K = je(), O = je(), S = je(), [I, V] = k(""), [q, Z] = k(""), J = K.invalid || O.invalid || S.invalid, W = () => {
374
374
  const p = {};
375
375
  return K.text.trim() !== "" && K.value !== void 0 && (p.body = K.value), O.text.trim() !== "" && O.value !== void 0 && (p.query = O.value), S.text.trim() !== "" && S.value !== void 0 && (p.headers = S.value), I && (p.target = I), q.trim() !== "" && (p.match = q.trim()), Object.keys(p).length > 0 ? p : void 0;
376
376
  }, [j, Q] = k("form"), [Ie, ae] = k(""), [Pe, ee] = k(!1), [b, L] = k(!1), _ = (y == null ? void 0 : y.key) ?? null, D = r ? { ...r } : xt(y), [se, M] = k(() => ({
@@ -539,7 +539,7 @@ function hs({
539
539
  onChange: ut,
540
540
  dynamic: y ? { appId: e, actionKey: y.key, connectionId: a } : void 0
541
541
  }
542
- ) : /* @__PURE__ */ i(E, { children: [
542
+ ) : /* @__PURE__ */ i(R, { children: [
543
543
  /* @__PURE__ */ t(
544
544
  oe,
545
545
  {
@@ -669,7 +669,7 @@ function hs({
669
669
  ) }, p.id))
670
670
  }
671
671
  ),
672
- m.listTestRuns && pt.length > 0 && /* @__PURE__ */ i(E, { children: [
672
+ m.listTestRuns && pt.length > 0 && /* @__PURE__ */ i(R, { children: [
673
673
  /* @__PURE__ */ t(
674
674
  "div",
675
675
  {
@@ -723,7 +723,7 @@ function hs({
723
723
  )
724
724
  ] })
725
725
  )),
726
- y ? /* @__PURE__ */ i(E, { children: [
726
+ y ? /* @__PURE__ */ i(R, { children: [
727
727
  /* @__PURE__ */ i("div", { children: [
728
728
  /* @__PURE__ */ i("strong", { children: [
729
729
  y.title ?? y.key,
@@ -756,7 +756,7 @@ function hs({
756
756
  yt,
757
757
  p,
758
758
  A,
759
- /* @__PURE__ */ t(kt, { calls: R })
759
+ /* @__PURE__ */ t(kt, { calls: E })
760
760
  ] }), ne = /* @__PURE__ */ i(
761
761
  "div",
762
762
  {
@@ -800,11 +800,11 @@ function hs({
800
800
  p
801
801
  ] })
802
802
  ] }),
803
- (A || R.length > 0) && /* @__PURE__ */ i("div", { className: "card", children: [
803
+ (A || E.length > 0) && /* @__PURE__ */ i("div", { className: "card", children: [
804
804
  /* @__PURE__ */ t("div", { className: "section-head", children: /* @__PURE__ */ t("h3", { children: "Result" }) }),
805
805
  /* @__PURE__ */ i("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-3)" }, children: [
806
806
  T !== void 0 && /* @__PURE__ */ t(Ye, { value: T }),
807
- /* @__PURE__ */ t(kt, { calls: R })
807
+ /* @__PURE__ */ t(kt, { calls: E })
808
808
  ] })
809
809
  ] }),
810
810
  ve && /* @__PURE__ */ i("div", { className: "card", children: [
@@ -898,7 +898,7 @@ function hs({
898
898
  ] });
899
899
  }
900
900
  function ps(e) {
901
- const n = Rn(e.theme), { copied: a, copy: s } = Bn(e.value), r = Ge(() => [Jn(), Wn.theme(En)], []);
901
+ const n = En(e.theme), { copied: a, copy: s } = Bn(e.value), r = Ge(() => [Jn(), Wn.theme(Rn)], []);
902
902
  function o(l) {
903
903
  e.onChange(l);
904
904
  }
@@ -926,7 +926,7 @@ function ps(e) {
926
926
  }
927
927
  }
928
928
  ),
929
- e.copyable !== !1 && /* @__PURE__ */ i(E, { children: [
929
+ e.copyable !== !1 && /* @__PURE__ */ i(R, { children: [
930
930
  /* @__PURE__ */ t(
931
931
  "button",
932
932
  {
@@ -1060,7 +1060,7 @@ function Qe({
1060
1060
  function We(e) {
1061
1061
  return e === null ? na : e.toFixed(2);
1062
1062
  }
1063
- function Ae(e) {
1063
+ function Ee(e) {
1064
1064
  let n = 1;
1065
1065
  for (const a of e) a !== null && a > n && (n = a);
1066
1066
  return n;
@@ -1096,7 +1096,7 @@ function fs({
1096
1096
  label: "CPU",
1097
1097
  value: X(we(s)),
1098
1098
  values: r,
1099
- max: Ae(r)
1099
+ max: Ee(r)
1100
1100
  }
1101
1101
  ),
1102
1102
  /* @__PURE__ */ t(
@@ -1114,7 +1114,7 @@ function fs({
1114
1114
  label: "Process",
1115
1115
  value: qt((s == null ? void 0 : s.processRss) ?? null),
1116
1116
  values: l,
1117
- max: Ae(l)
1117
+ max: Ee(l)
1118
1118
  }
1119
1119
  )
1120
1120
  ] }),
@@ -1135,7 +1135,7 @@ function gs({ samples: e, title: n = "Server" }) {
1135
1135
  label: "CPU",
1136
1136
  value: X(we(a)),
1137
1137
  values: s,
1138
- max: Ae(s)
1138
+ max: Ee(s)
1139
1139
  }
1140
1140
  ),
1141
1141
  /* @__PURE__ */ i("li", { className: "w6w-server-resources__row", children: [
@@ -1156,7 +1156,7 @@ function ys({ samples: e, onExpand: n }) {
1156
1156
  {
1157
1157
  className: "w6w-server-resources__spark",
1158
1158
  values: s,
1159
- max: Ae(s)
1159
+ max: Ee(s)
1160
1160
  }
1161
1161
  )
1162
1162
  ] }),
@@ -1417,7 +1417,7 @@ function xs({
1417
1417
  Ze,
1418
1418
  {
1419
1419
  icon: /* @__PURE__ */ t(st, { state: h.status }),
1420
- title: /* @__PURE__ */ i(E, { children: [
1420
+ title: /* @__PURE__ */ i(R, { children: [
1421
1421
  s ? h.callableName : Re(h.startedAt),
1422
1422
  h.rerunOf && /* @__PURE__ */ t(
1423
1423
  "span",
@@ -1429,10 +1429,10 @@ function xs({
1429
1429
  }
1430
1430
  )
1431
1431
  ] }),
1432
- subtitle: /* @__PURE__ */ i(E, { children: [
1432
+ subtitle: /* @__PURE__ */ i(R, { children: [
1433
1433
  s ? `${wa[h.kind]} · ${Re(h.startedAt)}` : h.id,
1434
1434
  Tt(h) && /* @__PURE__ */ t("span", { className: "w6w-execution-trigger", "data-testid": "execution-row-trigger", children: ` · ${Tt(h)}` }),
1435
- h.inputPreview && /* @__PURE__ */ i(E, { children: [
1435
+ h.inputPreview && /* @__PURE__ */ i(R, { children: [
1436
1436
  " · ",
1437
1437
  /* @__PURE__ */ t(
1438
1438
  "code",
@@ -1503,12 +1503,12 @@ function pa({
1503
1503
  `${m.stepId}:${v}`
1504
1504
  ))
1505
1505
  ] }) : null, d = zt(e.filter((m) => !At(m))), u = e.filter(At), f = u.length > 0 ? /* @__PURE__ */ t(ga, { steps: u }) : null;
1506
- return d.length === 0 ? /* @__PURE__ */ i(E, { children: [
1506
+ return d.length === 0 ? /* @__PURE__ */ i(R, { children: [
1507
1507
  o,
1508
1508
  c,
1509
1509
  /* @__PURE__ */ t("div", { className: "w6w-execution-log-empty", children: /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: n ?? "No nodes have run yet." }) }),
1510
1510
  f
1511
- ] }) : /* @__PURE__ */ i(E, { children: [
1511
+ ] }) : /* @__PURE__ */ i(R, { children: [
1512
1512
  o,
1513
1513
  c,
1514
1514
  /* @__PURE__ */ t("ol", { className: "w6w-execution-log", children: d.map((m) => /* @__PURE__ */ t(Yt, { step: m }, m.id)) }),
@@ -1555,16 +1555,16 @@ function Yt({ step: e }) {
1555
1555
  /* @__PURE__ */ t("summary", { className: "w6w-section-summary", children: r }),
1556
1556
  n && /* @__PURE__ */ i("div", { className: "w6w-execution-log-row-body w6w-section-body w6w-stack", children: [
1557
1557
  /* @__PURE__ */ t(ka, { input: e.input }),
1558
- /* @__PURE__ */ t(Rt, { title: "Input", value: e.input }),
1559
- /* @__PURE__ */ t(Rt, { title: "Output", value: e.output }),
1558
+ /* @__PURE__ */ t(Et, { title: "Input", value: e.input }),
1559
+ /* @__PURE__ */ t(Et, { title: "Output", value: e.output }),
1560
1560
  !!((u = e.logs) != null && u.length) && /* @__PURE__ */ i("div", { className: "w6w-execution-log-json w6w-stack", children: [
1561
1561
  /* @__PURE__ */ t("strong", { className: "w6w-small", children: "Console" }),
1562
- /* @__PURE__ */ t(Te, { code: e.logs.join(`
1562
+ /* @__PURE__ */ t(Ae, { code: e.logs.join(`
1563
1563
  `), language: "plaintext" })
1564
1564
  ] }),
1565
1565
  e.meta && /* @__PURE__ */ i("div", { className: "w6w-execution-log-json w6w-stack", children: [
1566
1566
  /* @__PURE__ */ t("strong", { className: "w6w-small", children: "Metadata" }),
1567
- /* @__PURE__ */ t(Te, { code: JSON.stringify(e.meta, null, 2), language: "json" })
1567
+ /* @__PURE__ */ t(Ae, { code: JSON.stringify(e.meta, null, 2), language: "json" })
1568
1568
  ] }),
1569
1569
  c
1570
1570
  ] })
@@ -1680,7 +1680,7 @@ function ba(e, n) {
1680
1680
  const l = Math.floor(o / 60), c = Math.round(o % 60);
1681
1681
  return `${l}m ${c}s`;
1682
1682
  }
1683
- function Rt({ title: e, value: n }) {
1683
+ function Et({ title: e, value: n }) {
1684
1684
  const [a, s] = k(!1);
1685
1685
  return n === void 0 ? /* @__PURE__ */ i("div", { className: "w6w-execution-log-json w6w-stack", children: [
1686
1686
  /* @__PURE__ */ t("strong", { className: "w6w-small", children: e }),
@@ -1700,11 +1700,11 @@ function Rt({ title: e, value: n }) {
1700
1700
  }
1701
1701
  );
1702
1702
  }
1703
- const Ee = (e) => typeof e == "object" && e !== null && !Array.isArray(e);
1704
- function Et(e) {
1705
- if (!Ee(e) || !Array.isArray(e.conditions)) return;
1703
+ const _e = (e) => typeof e == "object" && e !== null && !Array.isArray(e);
1704
+ function Rt(e) {
1705
+ if (!_e(e) || !Array.isArray(e.conditions)) return;
1706
1706
  const n = e.conditions.filter(
1707
- (a) => Ee(a) && typeof a.op == "string" && "result" in a
1707
+ (a) => _e(a) && typeof a.op == "string" && "result" in a
1708
1708
  );
1709
1709
  if (n.length !== 0)
1710
1710
  return {
@@ -1714,11 +1714,11 @@ function Et(e) {
1714
1714
  };
1715
1715
  }
1716
1716
  function ka({ input: e }) {
1717
- const n = [], a = Et(e);
1718
- if (a && n.push({ trace: a }), Ee(e) && Array.isArray(e.routes))
1717
+ const n = [], a = Rt(e);
1718
+ if (a && n.push({ trace: a }), _e(e) && Array.isArray(e.routes))
1719
1719
  for (const s of e.routes) {
1720
- const r = Et(s);
1721
- !r || !Ee(s) || n.push({ title: String(s.label ?? s.id ?? "Route"), trace: r });
1720
+ const r = Rt(s);
1721
+ !r || !_e(s) || n.push({ title: String(s.label ?? s.id ?? "Route"), trace: r });
1722
1722
  }
1723
1723
  return n.length === 0 ? null : /* @__PURE__ */ i("div", { className: "w6w-execution-log-json w6w-stack", "data-testid": "execution-log-conditions", children: [
1724
1724
  /* @__PURE__ */ t("strong", { className: "w6w-small", children: "Condition" }),
@@ -1727,7 +1727,7 @@ function ka({ input: e }) {
1727
1727
  (r.combinator && r.rows.length > 1 || r.result !== void 0) && /* @__PURE__ */ i("span", { className: "w6w-small w6w-muted", "data-testid": "execution-log-condition-summary", children: [
1728
1728
  r.combinator && r.rows.length > 1 && On(r.combinator),
1729
1729
  r.combinator && r.rows.length > 1 && r.result !== void 0 && " · ",
1730
- r.result !== void 0 && /* @__PURE__ */ i(E, { children: [
1730
+ r.result !== void 0 && /* @__PURE__ */ i(R, { children: [
1731
1731
  "Result:",
1732
1732
  " ",
1733
1733
  /* @__PURE__ */ t(
@@ -1820,7 +1820,7 @@ function Sa({ step: e }) {
1820
1820
  }) }),
1821
1821
  typeof a == "object" && a !== null && /* @__PURE__ */ i("div", { className: "w6w-stack", "data-testid": "execution-log-state-after", children: [
1822
1822
  /* @__PURE__ */ t("span", { className: "w6w-small w6w-muted", children: "State after this step" }),
1823
- /* @__PURE__ */ t(Te, { code: JSON.stringify(a, null, 2), language: "json" })
1823
+ /* @__PURE__ */ t(Ae, { code: JSON.stringify(a, null, 2), language: "json" })
1824
1824
  ] })
1825
1825
  ] });
1826
1826
  }
@@ -1931,7 +1931,7 @@ function Ss({ stats: e, label: n }) {
1931
1931
  {
1932
1932
  testid: "execution-stat-success-rate",
1933
1933
  label: "Success rate",
1934
- value: Ra(e == null ? void 0 : e.successRate)
1934
+ value: Ea(e == null ? void 0 : e.successRate)
1935
1935
  },
1936
1936
  {
1937
1937
  testid: "execution-stat-failed",
@@ -1956,10 +1956,10 @@ function Ss({ stats: e, label: n }) {
1956
1956
  ] }, s.testid)) })
1957
1957
  ] });
1958
1958
  }
1959
- function Ra(e) {
1959
+ function Ea(e) {
1960
1960
  return e == null || !Number.isFinite(e) ? Se : `${Math.round(e * 100)}%`;
1961
1961
  }
1962
- const Ea = {
1962
+ const Ra = {
1963
1963
  function: "Function",
1964
1964
  endpoint: "Endpoint",
1965
1965
  workflow: "Workflow"
@@ -2023,13 +2023,13 @@ function Oa({
2023
2023
  onOpenExecution: o
2024
2024
  }) {
2025
2025
  const l = e.rerunOf;
2026
- return /* @__PURE__ */ i(E, { children: [
2026
+ return /* @__PURE__ */ i(R, { children: [
2027
2027
  /* @__PURE__ */ i("div", { className: "w6w-execution-detail-head", children: [
2028
2028
  /* @__PURE__ */ i("div", { className: "w6w-execution-detail-title", children: [
2029
2029
  /* @__PURE__ */ t("h3", { className: "w6w-execution-detail-name", children: e.callableName }),
2030
2030
  /* @__PURE__ */ i("div", { className: "w6w-execution-detail-meta", children: [
2031
2031
  /* @__PURE__ */ t(st, { state: e.status }),
2032
- /* @__PURE__ */ t("span", { className: "w6w-execution-detail-kind w6w-muted w6w-small", children: Ea[e.kind] })
2032
+ /* @__PURE__ */ t("span", { className: "w6w-execution-detail-kind w6w-muted w6w-small", children: Ra[e.kind] })
2033
2033
  ] })
2034
2034
  ] }),
2035
2035
  (s || a || n) && /* @__PURE__ */ i("div", { className: "w6w-execution-detail-actions", children: [
@@ -2113,7 +2113,7 @@ function He({ label: e, value: n }) {
2113
2113
  function ze({ title: e, testid: n, value: a }) {
2114
2114
  return /* @__PURE__ */ i("section", { className: "w6w-execution-detail-section w6w-stack", "data-testid": n, children: [
2115
2115
  /* @__PURE__ */ t("strong", { className: "w6w-small", children: e }),
2116
- /* @__PURE__ */ t(Te, { code: _a(a), language: "json" })
2116
+ /* @__PURE__ */ t(Ae, { code: _a(a), language: "json" })
2117
2117
  ] });
2118
2118
  }
2119
2119
  function Ia(e) {
@@ -2238,7 +2238,7 @@ function Ua({
2238
2238
  }
2239
2239
  ),
2240
2240
  s.map((g) => {
2241
- const $ = m(g.errorCount), x = u(g.calls), N = f(g.p95Ms), T = /* @__PURE__ */ i(E, { children: [
2241
+ const $ = m(g.errorCount), x = u(g.calls), N = f(g.p95Ms), T = /* @__PURE__ */ i(R, { children: [
2242
2242
  /* @__PURE__ */ t(
2243
2243
  "circle",
2244
2244
  {
@@ -2419,7 +2419,7 @@ function Ba({
2419
2419
  /* @__PURE__ */ t("td", { className: "w6w-rel-td-uptime", children: s ? (
2420
2420
  // A zero-call window is one identical hatched strip — the note says it better.
2421
2421
  /* @__PURE__ */ t("span", { className: "w6w-rel-idle-note", children: "No calls in this window" })
2422
- ) : /* @__PURE__ */ i(E, { children: [
2422
+ ) : /* @__PURE__ */ i(R, { children: [
2423
2423
  /* @__PURE__ */ t(
2424
2424
  Qn,
2425
2425
  {
@@ -2450,22 +2450,22 @@ function As({
2450
2450
  onShowAll: u,
2451
2451
  slots: f
2452
2452
  }) {
2453
- const m = a ?? (n == null ? void 0 : n.days) ?? 30, v = e.length > 0 && e.every((R) => R.calls > 0 && R.state === "ok"), {
2453
+ const m = a ?? (n == null ? void 0 : n.days) ?? 30, v = e.length > 0 && e.every((E) => E.calls > 0 && E.state === "ok"), {
2454
2454
  attentionCount: w,
2455
2455
  shownNow: h,
2456
2456
  shownRecent: y,
2457
2457
  hiddenAttentionCount: g,
2458
2458
  shownTable: $,
2459
2459
  hiddenTableCount: x
2460
- } = Da(e, { compact: s, limit: o }), N = r ?? !s, T = d !== void 0 || u !== void 0, C = (R) => {
2461
- const P = R.startsWith("Show") ? "w6w-muted w6w-small" : void 0;
2462
- return d !== void 0 ? /* @__PURE__ */ t("a", { href: d, className: P, onClick: u, children: R }) : u ? /* @__PURE__ */ t(
2460
+ } = Da(e, { compact: s, limit: o }), N = r ?? !s, T = d !== void 0 || u !== void 0, C = (E) => {
2461
+ const P = E.startsWith("Show") ? "w6w-muted w6w-small" : void 0;
2462
+ return d !== void 0 ? /* @__PURE__ */ t("a", { href: d, className: P, onClick: u, children: E }) : u ? /* @__PURE__ */ t(
2463
2463
  "button",
2464
2464
  {
2465
2465
  type: "button",
2466
2466
  className: `w6w-rel-show-all${P ? ` ${P}` : ""}`,
2467
2467
  onClick: u,
2468
- children: R
2468
+ children: E
2469
2469
  }
2470
2470
  ) : null;
2471
2471
  };
@@ -2500,7 +2500,7 @@ function As({
2500
2500
  ] })
2501
2501
  ] }),
2502
2502
  e.length === 0 && ((f == null ? void 0 : f.empty) ?? /* @__PURE__ */ t("div", { className: s ? void 0 : "w6w-rel-card", children: /* @__PURE__ */ t("p", { className: "w6w-muted", children: "No services yet — connect an integration or use a service in this project." }) })),
2503
- e.length > 0 && /* @__PURE__ */ i(E, { children: [
2503
+ e.length > 0 && /* @__PURE__ */ i(R, { children: [
2504
2504
  w > 0 && /* @__PURE__ */ i("div", { className: "w6w-rel-group", children: [
2505
2505
  /* @__PURE__ */ i("h4", { className: "w6w-rel-group-head", children: [
2506
2506
  "Needs attention",
@@ -2511,14 +2511,14 @@ function As({
2511
2511
  w
2512
2512
  ] })
2513
2513
  ] }),
2514
- /* @__PURE__ */ t("div", { className: "w6w-rel-issues", children: [...h, ...y].map((R) => /* @__PURE__ */ t(Fa, { service: R, getHref: l, onOpen: c }, R.appId)) }),
2514
+ /* @__PURE__ */ t("div", { className: "w6w-rel-issues", children: [...h, ...y].map((E) => /* @__PURE__ */ t(Fa, { service: E, getHref: l, onOpen: c }, E.appId)) }),
2515
2515
  g > 0 && /* @__PURE__ */ i("p", { className: "w6w-muted w6w-small w6w-rel-more-note", children: [
2516
2516
  g,
2517
2517
  " more ",
2518
2518
  g === 1 ? "needs" : "need",
2519
2519
  " ",
2520
2520
  "attention",
2521
- T && /* @__PURE__ */ i(E, { children: [
2521
+ T && /* @__PURE__ */ i(R, { children: [
2522
2522
  " — ",
2523
2523
  C("view all →")
2524
2524
  ] })
@@ -2545,20 +2545,20 @@ function As({
2545
2545
  ] }),
2546
2546
  /* @__PURE__ */ t("th", { children: "Latency" })
2547
2547
  ] }) }),
2548
- /* @__PURE__ */ t("tbody", { children: $.map((R) => /* @__PURE__ */ t(
2548
+ /* @__PURE__ */ t("tbody", { children: $.map((E) => /* @__PURE__ */ t(
2549
2549
  Ba,
2550
2550
  {
2551
- service: R,
2551
+ service: E,
2552
2552
  getHref: l,
2553
2553
  onOpen: c
2554
2554
  },
2555
- R.appId
2555
+ E.appId
2556
2556
  )) })
2557
2557
  ] }) }),
2558
2558
  x > 0 && /* @__PURE__ */ i("p", { className: "w6w-muted w6w-small w6w-rel-more-note", children: [
2559
2559
  x,
2560
2560
  " more",
2561
- T && /* @__PURE__ */ i(E, { children: [
2561
+ T && /* @__PURE__ */ i(R, { children: [
2562
2562
  " — ",
2563
2563
  C("view all →")
2564
2564
  ] })
@@ -2573,7 +2573,7 @@ function Ka(e, n) {
2573
2573
  }
2574
2574
  function he(e) {
2575
2575
  const { columns: n, rows: a, rowKey: s, onRowClick: r, getRowHref: o, empty: l, loading: c, className: d, testId: u } = e;
2576
- return a.length === 0 && !c && l !== void 0 && l !== null ? /* @__PURE__ */ t(E, { children: l }) : /* @__PURE__ */ t("div", { className: "w6w-data-table-frame", children: /* @__PURE__ */ i(
2576
+ return a.length === 0 && !c && l !== void 0 && l !== null ? /* @__PURE__ */ t(R, { children: l }) : /* @__PURE__ */ t("div", { className: "w6w-data-table-frame", children: /* @__PURE__ */ i(
2577
2577
  "table",
2578
2578
  {
2579
2579
  className: d ? `w6w-data-table ${d}` : "w6w-data-table",
@@ -2605,21 +2605,7 @@ function he(e) {
2605
2605
  }
2606
2606
  ) });
2607
2607
  }
2608
- function _e({ title: e, children: n, action: a, className: s, testId: r }) {
2609
- return /* @__PURE__ */ t(
2610
- "div",
2611
- {
2612
- className: s ? `w6w-empty-state ${s}` : "w6w-empty-state",
2613
- "data-testid": r,
2614
- children: /* @__PURE__ */ i("div", { className: "w6w-empty-state-inner", children: [
2615
- e != null && /* @__PURE__ */ t("div", { className: "w6w-empty-state-title", children: e }),
2616
- n != null && /* @__PURE__ */ t("div", { className: "w6w-empty-state-body", children: n }),
2617
- a != null && /* @__PURE__ */ t("div", { className: "w6w-empty-state-action", children: a })
2618
- ] })
2619
- }
2620
- );
2621
- }
2622
- function Rs({
2608
+ function Es({
2623
2609
  rows: e,
2624
2610
  title: n,
2625
2611
  description: a,
@@ -2638,14 +2624,14 @@ function Rs({
2638
2624
  onShowArchivedChange: y,
2639
2625
  slots: g
2640
2626
  }) {
2641
- const [$, x] = k(!1), N = h !== void 0, T = N ? h : $, C = T ? e : e.filter((S) => !S.archived), R = v !== void 0 || w !== void 0, P = (S) => {
2627
+ const [$, x] = k(!1), N = h !== void 0, T = N ? h : $, C = T ? e : e.filter((S) => !S.archived), E = v !== void 0 || w !== void 0, P = (S) => {
2642
2628
  N || x(S), y == null || y(S);
2643
2629
  }, K = [
2644
2630
  {
2645
2631
  key: "main",
2646
2632
  header: "Name",
2647
2633
  render: (S) => {
2648
- const I = /* @__PURE__ */ i("span", { className: "w6w-callable-list-main", title: R ? o : void 0, children: [
2634
+ const I = /* @__PURE__ */ i("span", { className: "w6w-callable-list-main", title: E ? o : void 0, children: [
2649
2635
  /* @__PURE__ */ t("span", { children: S.title }),
2650
2636
  S.description != null && /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small w6w-callable-list-row-desc", children: S.description })
2651
2637
  ] });
@@ -2656,6 +2642,9 @@ function Rs({
2656
2642
  key: "trail",
2657
2643
  header: "",
2658
2644
  align: "right",
2645
+ // Shrink to the badges (`1%` + the trail's `nowrap`): left unsized, the table split the
2646
+ // width evenly and a "draft · 0 runs" column took half of it.
2647
+ width: "1%",
2659
2648
  render: (S) => S.archived || S.badges != null || S.trailing != null ? /* @__PURE__ */ i("span", { className: "w6w-callable-list-trail", children: [
2660
2649
  S.badges,
2661
2650
  S.archived && /* @__PURE__ */ t("span", { className: "w6w-callable-list-badge", "data-testid": l == null ? void 0 : l.archivedBadge, children: "archived" }),
@@ -2666,7 +2655,7 @@ function Rs({
2666
2655
  return /* @__PURE__ */ i("section", { className: "w6w-callable-list", children: [
2667
2656
  /* @__PURE__ */ i("div", { className: "w6w-callable-list-head", children: [
2668
2657
  /* @__PURE__ */ i("div", { className: "w6w-callable-list-heading", children: [
2669
- (g == null ? void 0 : g.header) ?? /* @__PURE__ */ i(E, { children: [
2658
+ (g == null ? void 0 : g.header) ?? /* @__PURE__ */ i(R, { children: [
2670
2659
  /* @__PURE__ */ t("h2", { className: "w6w-callable-list-title", children: n }),
2671
2660
  a != null && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small w6w-callable-list-description", children: a })
2672
2661
  ] }),
@@ -2702,7 +2691,7 @@ function Rs({
2702
2691
  /* @__PURE__ */ i("div", { className: "w6w-callable-list-body", children: [
2703
2692
  c && /* @__PURE__ */ t("p", { className: "w6w-muted", children: "Loading…" }),
2704
2693
  C.length === 0 && !c ? O ? /* @__PURE__ */ t(
2705
- _e,
2694
+ Te,
2706
2695
  {
2707
2696
  testId: "w6w-callable-list-empty",
2708
2697
  action: /* @__PURE__ */ t(
@@ -2716,12 +2705,13 @@ function Rs({
2716
2705
  ),
2717
2706
  children: e.length === 1 ? "The only item is archived." : `All ${e.length} items are archived.`
2718
2707
  }
2719
- ) : /* @__PURE__ */ t(_e, { testId: "w6w-callable-list-empty", children: (g == null ? void 0 : g.empty) ?? s }) : /* @__PURE__ */ t(
2708
+ ) : /* @__PURE__ */ t(Te, { testId: "w6w-callable-list-empty", children: (g == null ? void 0 : g.empty) ?? s }) : /* @__PURE__ */ t(
2720
2709
  he,
2721
2710
  {
2722
2711
  columns: K,
2723
2712
  rows: C,
2724
2713
  rowKey: (S) => S.id,
2714
+ className: "w6w-data-table-rows",
2725
2715
  loading: c,
2726
2716
  getRowHref: w ? (S) => w(S.id) : void 0,
2727
2717
  onRowClick: v ? (S, I) => v(S.id, I) : void 0
@@ -2730,7 +2720,7 @@ function Rs({
2730
2720
  ] })
2731
2721
  ] });
2732
2722
  }
2733
- function Es({
2723
+ function Rs({
2734
2724
  connections: e,
2735
2725
  appsById: n,
2736
2726
  loading: a,
@@ -2767,7 +2757,7 @@ function Es({
2767
2757
  {
2768
2758
  key: "status",
2769
2759
  header: "Status",
2770
- render: (w) => /* @__PURE__ */ i(E, { children: [
2760
+ render: (w) => /* @__PURE__ */ i(R, { children: [
2771
2761
  "auth ",
2772
2762
  /* @__PURE__ */ t("code", { children: w.authKey }),
2773
2763
  " ·",
@@ -2825,7 +2815,7 @@ function Es({
2825
2815
  ] }),
2826
2816
  s && /* @__PURE__ */ t("div", { className: "w6w-error", children: s }),
2827
2817
  a && /* @__PURE__ */ t("p", { className: "w6w-muted", children: "Loading…" }),
2828
- e.length === 0 && !a ? /* @__PURE__ */ t(_e, { testId: "w6w-connection-list-empty", children: (u == null ? void 0 : u.empty) ?? "No connections yet." }) : /* @__PURE__ */ t(
2818
+ e.length === 0 && !a ? /* @__PURE__ */ t(Te, { testId: "w6w-connection-list-empty", children: (u == null ? void 0 : u.empty) ?? "No connections yet." }) : /* @__PURE__ */ t(
2829
2819
  he,
2830
2820
  {
2831
2821
  columns: v,
@@ -2839,7 +2829,7 @@ function Es({
2839
2829
  ] });
2840
2830
  }
2841
2831
  function _s({ connection: e, onClose: n, onSaved: a }) {
2842
- const s = jt(), r = s.updateConnection, o = e.builtIn === !0, l = !o && typeof r == "function", [c, d] = k(e.displayName ?? ""), [u, f] = k(e.authKey), [m, v] = k({}), [w, h] = k(null), [y, g] = k(null), [$, x] = k(!1), [N, T] = k({}), [C, R] = k(null), [P, K] = k(null), [O, S] = k(null);
2832
+ const s = jt(), r = s.updateConnection, o = e.builtIn === !0, l = !o && typeof r == "function", [c, d] = k(e.displayName ?? ""), [u, f] = k(e.authKey), [m, v] = k({}), [w, h] = k(null), [y, g] = k(null), [$, x] = k(!1), [N, T] = k({}), [C, E] = k(null), [P, K] = k(null), [O, S] = k(null);
2843
2833
  G(() => {
2844
2834
  if (!l) return;
2845
2835
  let b = !1;
@@ -2855,7 +2845,7 @@ function _s({ connection: e, onClose: n, onSaved: a }) {
2855
2845
  return;
2856
2846
  let b = !1;
2857
2847
  return s.getCredential(W).then((L) => {
2858
- b || (R(L.connectionCount), K(L.contract));
2848
+ b || (E(L.connectionCount), K(L.contract));
2859
2849
  }).catch(() => {
2860
2850
  }), () => {
2861
2851
  b = !0;
@@ -2927,7 +2917,7 @@ function _s({ connection: e, onClose: n, onSaved: a }) {
2927
2917
  /* @__PURE__ */ t("div", { className: "w6w-modal-body", children: /* @__PURE__ */ i("div", { className: "w6w-stack", children: [
2928
2918
  o && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "This connection is built in — it has no stored credential to edit." }),
2929
2919
  !o && !l && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Editing connections is not available here." }),
2930
- l && /* @__PURE__ */ i(E, { children: [
2920
+ l && /* @__PURE__ */ i(R, { children: [
2931
2921
  /* @__PURE__ */ i("label", { className: "w6w-field", children: [
2932
2922
  /* @__PURE__ */ t("span", { children: "Display name" }),
2933
2923
  /* @__PURE__ */ t(
@@ -2969,7 +2959,7 @@ function _s({ connection: e, onClose: n, onSaved: a }) {
2969
2959
  V && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Enter the new credential and click Save. This connection stays linked to your existing workflows." }),
2970
2960
  w === null && !y && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Loading auth fields…" }),
2971
2961
  Z && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: q.some((b) => b.key !== e.authKey) ? "This connection uses OAuth. Choose another authentication method above to use a key or token." : "This is an OAuth connection. You can rename it here; its credential is renewed by re-authorizing it." }),
2972
- j && Q.length > 0 && /* @__PURE__ */ i(E, { children: [
2962
+ j && Q.length > 0 && /* @__PURE__ */ i(R, { children: [
2973
2963
  /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Leave a binding field blank to keep it unchanged." }),
2974
2964
  /* @__PURE__ */ t(
2975
2965
  Be,
@@ -3003,7 +2993,7 @@ function _s({ connection: e, onClose: n, onSaved: a }) {
3003
2993
  " ",
3004
2994
  e.lastTestOk === !0 ? "passed" : e.lastTestOk === !1 ? "failed" : "never tested"
3005
2995
  ] }),
3006
- J.length > 0 && /* @__PURE__ */ i(E, { children: [
2996
+ J.length > 0 && /* @__PURE__ */ i(R, { children: [
3007
2997
  /* @__PURE__ */ i("p", { className: "w6w-muted w6w-small", children: [
3008
2998
  "Leave the credential blank to keep it unchanged. To replace it, enter the full new credential and click Save.",
3009
2999
  C !== null && C > 1 && ` This credential is used by ${C} connections; saving a new credential updates all of them.`
@@ -3020,7 +3010,7 @@ function _s({ connection: e, onClose: n, onSaved: a }) {
3020
3010
  )
3021
3011
  ] })
3022
3012
  ] }),
3023
- !j && J.length > 0 && /* @__PURE__ */ i(E, { children: [
3013
+ !j && J.length > 0 && /* @__PURE__ */ i(R, { children: [
3024
3014
  !V && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Leave a field blank to keep it unchanged. Filled fields replace the stored credential." }),
3025
3015
  /* @__PURE__ */ t(
3026
3016
  Be,
@@ -3439,7 +3429,7 @@ function Gs({
3439
3429
  ] }),
3440
3430
  a && /* @__PURE__ */ t("div", { className: "w6w-error", children: a }),
3441
3431
  n && /* @__PURE__ */ t("p", { className: "w6w-muted", children: "Loading…" }),
3442
- e.length === 0 && !n ? /* @__PURE__ */ t(_e, { testId: "w6w-data-store-list-empty", children: (u == null ? void 0 : u.empty) ?? "No data stores yet." }) : /* @__PURE__ */ t(
3432
+ e.length === 0 && !n ? /* @__PURE__ */ t(Te, { testId: "w6w-data-store-list-empty", children: (u == null ? void 0 : u.empty) ?? "No data stores yet." }) : /* @__PURE__ */ t(
3443
3433
  he,
3444
3434
  {
3445
3435
  columns: v,
@@ -3472,7 +3462,7 @@ function Xs(e) {
3472
3462
  }
3473
3463
  function v(h, y, g, $) {
3474
3464
  const x = { ...n[h], ...$, type: y }, { column: N, error: T } = ss(x, g);
3475
- c((C) => ({ ...C, [h]: T === void 0 ? { text: g } : { text: g, error: T } })), a(n.map((C, R) => R === h ? N : C));
3465
+ c((C) => ({ ...C, [h]: T === void 0 ? { text: g } : { text: g, error: T } })), a(n.map((C, E) => E === h ? N : C));
3476
3466
  }
3477
3467
  function w(h) {
3478
3468
  c((y) => {
@@ -3730,7 +3720,7 @@ function el({
3730
3720
  var O;
3731
3721
  n || (O = N.current) == null || O.focus();
3732
3722
  }, [n]);
3733
- const T = e === "doc" ? "document" : "entry", C = e === "doc" ? ns(o) : void 0, R = C !== void 0 && !C.ok, P = l || ($ && C && !C.ok ? C.message : null), K = /* @__PURE__ */ i(E, { children: [
3723
+ const T = e === "doc" ? "document" : "entry", C = e === "doc" ? ns(o) : void 0, E = C !== void 0 && !C.ok, P = l || ($ && C && !C.ok ? C.message : null), K = /* @__PURE__ */ i(R, { children: [
3734
3724
  n ? /* @__PURE__ */ i("label", { className: "w6w-field", children: [
3735
3725
  /* @__PURE__ */ t("span", { children: "Key" }),
3736
3726
  /* @__PURE__ */ t(
@@ -3825,7 +3815,7 @@ function el({
3825
3815
  className: "w6w-btn",
3826
3816
  type: "button",
3827
3817
  "data-testid": "entry-save",
3828
- disabled: !!c || !!d || R || n && !(s != null && s.trim()),
3818
+ disabled: !!c || !!d || E || n && !(s != null && s.trim()),
3829
3819
  onClick: v,
3830
3820
  children: "Save"
3831
3821
  }
@@ -3867,14 +3857,14 @@ function tl({
3867
3857
  }, x = [
3868
3858
  ...e.map((N) => ({
3869
3859
  key: N.name,
3870
- header: /* @__PURE__ */ i(E, { children: [
3860
+ header: /* @__PURE__ */ i(R, { children: [
3871
3861
  N.name,
3872
3862
  " ",
3873
3863
  /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: N.type })
3874
3864
  ] }),
3875
3865
  render: (T) => {
3876
- var R;
3877
- const C = (R = T.cellErrors) == null ? void 0 : R[N.name];
3866
+ var E;
3867
+ const C = (E = T.cellErrors) == null ? void 0 : E[N.name];
3878
3868
  return /* @__PURE__ */ i("div", { className: "w6w-data-cell", children: [
3879
3869
  /* @__PURE__ */ t(
3880
3870
  "input",
@@ -3997,15 +3987,15 @@ export {
3997
3987
  Va as CELL_PROBLEM_COPY,
3998
3988
  Wa as CSV_MAX_BYTES,
3999
3989
  es as CSV_TOO_LARGE_COPY,
4000
- Rs as CallableList,
3990
+ Es as CallableList,
4001
3991
  il as CanvasLayer,
4002
- Te as CodeBlock,
3992
+ Ae as CodeBlock,
4003
3993
  rl as CodeEditor,
4004
3994
  Xs as ColumnsEditor,
4005
3995
  Tn as Combobox,
4006
3996
  An as ConfirmModal,
4007
3997
  Os as ConnectionHeader,
4008
- Es as ConnectionList,
3998
+ Rs as ConnectionList,
4009
3999
  tt as Copyable,
4010
4000
  Gn as CopyableText,
4011
4001
  ol as CredentialPicker,
@@ -4023,7 +4013,7 @@ export {
4023
4013
  ue as DeleteButton,
4024
4014
  Ht as EditButton,
4025
4015
  _s as EditConnectionModal,
4026
- _e as EmptyState,
4016
+ Te as EmptyState,
4027
4017
  $s as ExecutionDetail,
4028
4018
  Cs as ExecutionFilters,
4029
4019
  xs as ExecutionList,
@@ -4087,9 +4077,9 @@ export {
4087
4077
  Re as formatExecutionTime,
4088
4078
  Al as htmlPreviewSrcDoc,
4089
4079
  Hl as iconNames,
4090
- Rl as indexNodeSamples,
4080
+ El as indexNodeSamples,
4091
4081
  Us as isCellValue,
4092
- El as isExprValue,
4082
+ Rl as isExprValue,
4093
4083
  _l as isFormResolvedOptions,
4094
4084
  Ol as isSecretValue,
4095
4085
  Il as isTestRequired,