@w6w/embed 0.2.21 → 0.2.22

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/editor.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { W as e } from "./WorkflowEditor-Cgv3Pvsy.js";
2
+ import { W as e } from "./WorkflowEditor-LesBKjb2.js";
3
3
  export {
4
4
  e as WorkflowEditor
5
5
  };
package/dist/editors.mjs CHANGED
@@ -2,18 +2,18 @@
2
2
  var tn = Object.defineProperty;
3
3
  var an = (t, i, a) => i in t ? tn(t, i, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[i] = a;
4
4
  var Se = (t, i, a) => an(t, typeof i != "symbol" ? i + "" : i, a);
5
- import { H as sn, E as on, B as rn, a as Re, J as xe, b as De } from "./WorkflowEditor-Cgv3Pvsy.js";
6
- import { W as Wt } from "./WorkflowEditor-Cgv3Pvsy.js";
5
+ import { H as sn, E as on, B as rn, a as Re, J as xe, b as De } from "./WorkflowEditor-LesBKjb2.js";
6
+ import { W as Wt } from "./WorkflowEditor-LesBKjb2.js";
7
7
  import { jsx as e, jsxs as o, Fragment as D } from "react/jsx-runtime";
8
8
  import { EditButton as ln, DeleteButton as dn, Copyable as Ke, CodeBlock as cn, IconButton as pe, AppIcon as un, ExpressionInput as hn, StepBuilderModal as mn, ExpressionOptionsProvider as Te } from "@w6w/ui";
9
- import { useState as b, Component as fn, useRef as _, useEffect as se, useMemo as L, useCallback as he } from "react";
9
+ import { useState as g, Component as fn, useRef as _, useEffect as se, useMemo as L, useCallback as he } from "react";
10
10
  import { a as pn, C as yn } from "./ConfirmModal-Pv2-A_3U.js";
11
11
  import { D as vn } from "./DocumentFormModal-Br4s8wmi.js";
12
12
  import { u as ke } from "./project-context-Tvp-La7A.js";
13
- import { j as gn, i as bn } from "./spec-import-SWOonsNr.js";
13
+ import { j as bn, i as gn } from "./spec-import-SWOonsNr.js";
14
14
  import { ApiError as ye } from "@w6w/sdk";
15
15
  import { k as kn, i as wn } from "./apps-CYUgEfGf.js";
16
- import { C as Nn, c as Ae } from "./editor-tools-j3ThBY_4.js";
16
+ import { C as Nn, c as Ae } from "./editor-tools-DHyWiG21.js";
17
17
  import { a as Cn, b as Sn } from "./use-callable-draft-DCauHt5o.js";
18
18
  import { E as En, F as In } from "./CreateFunctionModal-DScxp_LN.js";
19
19
  import { d as Oe, z as Fn, b as Pn, u as Bn, w as je, v as Me, A as Rn } from "./endpoints-DSRo1Lc5.js";
@@ -48,7 +48,7 @@ function Ot({
48
48
  onBack: h,
49
49
  slots: d
50
50
  }) {
51
- const n = ke(i), c = gn(t, n ?? void 0, n != null), I = bn(), [v, N] = b(!1), [m, y] = b(!1);
51
+ const n = ke(i), c = bn(t, n ?? void 0, n != null), I = gn(), [v, N] = g(!1), [m, y] = g(!1);
52
52
  if (c.isPending)
53
53
  return /* @__PURE__ */ e("div", { className: "w6w-embed-root", children: /* @__PURE__ */ e("p", { className: "muted", children: "Loading…" }) });
54
54
  const s = c.data;
@@ -159,7 +159,7 @@ function Ve({
159
159
  );
160
160
  }
161
161
  function _n({ kind: t, id: i, onOpenRun: a }) {
162
- const { hasExecuted: h } = kn(i), [d, n] = b(!1), c = _(null), I = _(!1);
162
+ const { hasExecuted: h } = kn(i), [d, n] = g(!1), c = _(null), I = _(!1);
163
163
  return se(() => {
164
164
  var v;
165
165
  I.current && !d && ((v = c.current) == null || v.focus()), I.current = d;
@@ -201,7 +201,7 @@ const Yn = {
201
201
  function ce(t) {
202
202
  return { input: [], ...t, target: t.target ?? Yn };
203
203
  }
204
- function ge(t) {
204
+ function be(t) {
205
205
  const { target: i, input: a, ...h } = ce(t), d = {
206
206
  ...h,
207
207
  key: String(t.key ?? "").trim()
@@ -227,7 +227,7 @@ function Gn(t, i, a) {
227
227
  const Xn = (t) => t instanceof Error ? t.message : String(t);
228
228
  function Zn(t) {
229
229
  var y;
230
- const { kind: i, id: a, onError: h } = t, d = qe(i, a, !0), n = jn(i), [c, I] = b(!1), v = ((y = d.data) == null ? void 0 : y.currentPublishedVersion) != null, N = i === "function" ? "fn-publish" : "ep-publish";
230
+ const { kind: i, id: a, onError: h } = t, d = qe(i, a, !0), n = jn(i), [c, I] = g(!1), v = ((y = d.data) == null ? void 0 : y.currentPublishedVersion) != null, N = i === "function" ? "fn-publish" : "ep-publish";
231
231
  async function m() {
232
232
  h(null), I(!0);
233
233
  try {
@@ -258,7 +258,7 @@ function Zn(t) {
258
258
  );
259
259
  }
260
260
  function Ge(t) {
261
- const i = Oe(t.kind), [a, h] = b(null), d = t.slots, n = (d == null ? void 0 : d.backLabel) ?? i.editor.backLabel, c = () => t.onNavigate({ type: "list" });
261
+ const i = Oe(t.kind), [a, h] = g(null), d = t.slots, n = (d == null ? void 0 : d.backLabel) ?? i.editor.backLabel, c = () => t.onNavigate({ type: "list" });
262
262
  return t.notFound ? /* @__PURE__ */ o("div", { children: [
263
263
  /* @__PURE__ */ e("button", { type: "button", className: "btn ghost", onClick: c, children: n }),
264
264
  /* @__PURE__ */ o("div", { className: "card", children: [
@@ -412,7 +412,7 @@ function nt(t) {
412
412
  )
413
413
  ] }),
414
414
  /* @__PURE__ */ e(
415
- be,
415
+ ge,
416
416
  {
417
417
  label: "Password",
418
418
  value: i.basicPassword,
@@ -434,7 +434,7 @@ function nt(t) {
434
434
  )
435
435
  ] }),
436
436
  /* @__PURE__ */ e(
437
- be,
437
+ ge,
438
438
  {
439
439
  label: "Header value",
440
440
  value: i.headerValue,
@@ -443,7 +443,7 @@ function nt(t) {
443
443
  )
444
444
  ] }),
445
445
  h === "jwt" && /* @__PURE__ */ e(
446
- be,
446
+ ge,
447
447
  {
448
448
  label: "JWT secret (HS256)",
449
449
  value: i.jwtSecret,
@@ -452,7 +452,7 @@ function nt(t) {
452
452
  )
453
453
  ] });
454
454
  }
455
- function be(t) {
455
+ function ge(t) {
456
456
  const i = t.value === Wn;
457
457
  return /* @__PURE__ */ o("label", { className: "field", children: [
458
458
  /* @__PURE__ */ e("span", { children: t.label }),
@@ -469,11 +469,11 @@ function be(t) {
469
469
  ] });
470
470
  }
471
471
  function tt(t) {
472
- const { id: i, inputs: a } = t, [h, d] = b({}), [n, c] = b(void 0), [I, v] = b(null), [N, m] = b(!1), y = we(), s = Fn(), P = async () => {
472
+ const { id: i, inputs: a } = t, [h, d] = g({}), [n, c] = g(void 0), [I, v] = g(null), [N, m] = g(!1), y = we(), s = Fn(), P = async () => {
473
473
  const u = {};
474
474
  for (const r of a) {
475
- const g = Le(r.type, h[r.key] ?? "");
476
- g !== void 0 && (u[r.key] = g);
475
+ const b = Le(r.type, h[r.key] ?? "");
476
+ b !== void 0 && (u[r.key] = b);
477
477
  }
478
478
  m(!0);
479
479
  try {
@@ -486,8 +486,8 @@ function tt(t) {
486
486
  c(void 0), v(fe(r.error));
487
487
  return;
488
488
  }
489
- const g = await s.mutateAsync({ id: i, input: u });
490
- v(null), c(g);
489
+ const b = await s.mutateAsync({ id: i, input: u });
490
+ v(null), c(b);
491
491
  } catch (r) {
492
492
  c(void 0), v(fe(r));
493
493
  } finally {
@@ -510,7 +510,7 @@ function tt(t) {
510
510
  {
511
511
  id: r,
512
512
  value: h[u.key] ?? "",
513
- onChange: (g) => d((F) => ({ ...F, [u.key]: g.target.value })),
513
+ onChange: (b) => d((F) => ({ ...F, [u.key]: b.target.value })),
514
514
  children: [
515
515
  /* @__PURE__ */ e("option", { value: "", children: "—" }),
516
516
  /* @__PURE__ */ e("option", { value: "true", children: "true" }),
@@ -524,7 +524,7 @@ function tt(t) {
524
524
  type: u.type === "number" ? "number" : "text",
525
525
  value: h[u.key] ?? "",
526
526
  placeholder: u.type === "json" ? "{ }" : u.hint ?? "",
527
- onChange: (g) => d((F) => ({ ...F, [u.key]: g.target.value }))
527
+ onChange: (b) => d((F) => ({ ...F, [u.key]: b.target.value }))
528
528
  }
529
529
  )
530
530
  ] }, u.key || u.label);
@@ -561,9 +561,16 @@ function Xe(t) {
561
561
  ] }),
562
562
  /* @__PURE__ */ e("p", { className: "muted small", children: d }),
563
563
  i.length === 0 && /* @__PURE__ */ e("p", { className: "muted small", children: n ? "No inputs — payload is passed through." : "No inputs yet." }),
564
+ i.length > 0 && /* @__PURE__ */ o("div", { className: "input-list-head", "aria-hidden": "true", children: [
565
+ /* @__PURE__ */ e("span", { children: "Key" }),
566
+ /* @__PURE__ */ e("span", { children: "Label" }),
567
+ /* @__PURE__ */ e("span", { children: "Type" }),
568
+ /* @__PURE__ */ e("span", {}),
569
+ /* @__PURE__ */ e("span", {})
570
+ ] }),
564
571
  /* @__PURE__ */ e("ul", { className: "list", "data-testid": "input-list", children: i.map((m, y) => (
565
572
  // biome-ignore lint/suspicious/noArrayIndexKey: rows are positional and reorderable
566
- /* @__PURE__ */ o("li", { style: { alignItems: "center", gap: 8 }, children: [
573
+ /* @__PURE__ */ o("li", { className: "input-list-row", children: [
567
574
  /* @__PURE__ */ e(
568
575
  "input",
569
576
  {
@@ -642,18 +649,18 @@ function Ze(t) {
642
649
  const k = `${n}|${c}`, B = r.current;
643
650
  r.current = k, B !== null && B !== k && y && c && !s.has(c) && I.invalidateQueries({ queryKey: Un(n) });
644
651
  }, [n, c, y, s, I]);
645
- const g = Qn({
652
+ const b = Qn({
646
653
  enabled: N,
647
654
  problemCount: P,
648
655
  dirty: d,
649
656
  hadProblems: u.current.had
650
657
  });
651
- return g.show ? /* @__PURE__ */ e(
658
+ return b.show ? /* @__PURE__ */ e(
652
659
  rn,
653
660
  {
654
661
  kind: i,
655
- problemCount: g.problemCount,
656
- canEnable: g.canEnable,
662
+ problemCount: b.problemCount,
663
+ canEnable: b.canEnable,
657
664
  pending: m.isPending,
658
665
  onEnable: () => m.mutate({ id: a, enabled: !0 })
659
666
  }
@@ -670,11 +677,11 @@ function en(t) {
670
677
  title: c,
671
678
  description: I,
672
679
  passthroughHint: v
673
- } = t, [N, m] = b(!1), y = h, s = y.kind, P = (l) => i.includes(l);
680
+ } = t, [N, m] = g(!1), y = h, s = y.kind, P = (l) => i.includes(l);
674
681
  function u(l) {
675
682
  d(l);
676
683
  }
677
- const r = y.kind === "action" ? y : void 0, g = (r == null ? void 0 : r.uses.app) ?? "", F = (r == null ? void 0 : r.uses.action) ?? "", k = Kn(y), B = qn(g), [W, V] = b(null);
684
+ const r = y.kind === "action" ? y : void 0, b = (r == null ? void 0 : r.uses.app) ?? "", F = (r == null ? void 0 : r.uses.action) ?? "", k = Kn(y), B = qn(b), [W, V] = g(null);
678
685
  se(() => {
679
686
  let l = !1;
680
687
  return import("@w6w/ui/flow").then((E) => {
@@ -683,7 +690,7 @@ function en(t) {
683
690
  l = !0;
684
691
  };
685
692
  }, []);
686
- const Q = wn(g, g !== ""), K = _e(g, g !== ""), oe = He(
693
+ const Q = wn(b, b !== ""), K = _e(b, b !== ""), oe = He(
687
694
  [{ id: "target", uses: r == null ? void 0 : r.uses }],
688
695
  () => K.isSuccess && !K.isFetching ? { state: "ready", ids: new Set((K.data ?? []).map((l) => l.id)) } : void 0
689
696
  ).length > 0, R = L(
@@ -704,8 +711,8 @@ function en(t) {
704
711
  W
705
712
  ]);
706
713
  se(() => {
707
- n == null || n({ meta: { kind: s, ref: s === "action" ? g : k }, kind: s, fields: O });
708
- }, [s, g, k, O, n]);
714
+ n == null || n({ meta: { kind: s, ref: s === "action" ? b : k }, kind: s, fields: O });
715
+ }, [s, b, k, O, n]);
709
716
  function X(l) {
710
717
  if (l.uses.app === Nn) {
711
718
  const T = l.with ?? {}, M = T.targetKind === "workflow" ? "workflow" : "function", p = typeof T.targetId == "string" ? T.targetId : "";
@@ -767,20 +774,20 @@ function en(t) {
767
774
  /* @__PURE__ */ e("select", { value: s, onChange: (l) => ee(l.target.value), children: at.filter(P).map((l) => /* @__PURE__ */ e("option", { value: l, children: it[l] }, l)) })
768
775
  ] }),
769
776
  s === "action" && /* @__PURE__ */ o(D, { children: [
770
- g && F ? /* @__PURE__ */ o("div", { className: "row", style: { alignItems: "center", gap: 8 }, children: [
777
+ b && F ? /* @__PURE__ */ o("div", { className: "row", style: { alignItems: "center", gap: 8 }, children: [
771
778
  /* @__PURE__ */ e(
772
779
  un,
773
780
  {
774
781
  src: B == null ? void 0 : B.iconSvg,
775
782
  srcDark: B == null ? void 0 : B.iconSvgDark,
776
783
  brandColor: B == null ? void 0 : B.brandColor,
777
- name: g
784
+ name: b
778
785
  }
779
786
  ),
780
787
  /* @__PURE__ */ o("span", { className: "list-main", children: [
781
788
  /* @__PURE__ */ e("strong", { children: (R == null ? void 0 : R.title) ?? F }),
782
789
  " ",
783
- /* @__PURE__ */ e("code", { className: "muted", children: g }),
790
+ /* @__PURE__ */ e("code", { className: "muted", children: b }),
784
791
  /* @__PURE__ */ e("span", { className: "muted small block", children: oe ? /* @__PURE__ */ e("span", { className: "error", "data-testid": "binding-missing", children: "Missing connection — choose another" }) : r != null && r.uses.connection ? `via ${((q = (G = K.data) == null ? void 0 : G.find((l) => l.id === r.uses.connection)) == null ? void 0 : q.displayName) ?? r.uses.connection}` : "no connection" })
785
792
  ] }),
786
793
  /* @__PURE__ */ e("button", { type: "button", className: "btn ghost", onClick: () => m(!0), children: "Change" })
@@ -847,7 +854,7 @@ function en(t) {
847
854
  title: re,
848
855
  onClose: () => m(!1),
849
856
  onAdd: X,
850
- initialApp: r && g ? B : void 0,
857
+ initialApp: r && b ? B : void 0,
851
858
  initialAction: r ? F : void 0,
852
859
  initialConnection: (r == null ? void 0 : r.uses.connection) ?? void 0,
853
860
  initialWith: r == null ? void 0 : r.with
@@ -906,9 +913,9 @@ function jt(t) {
906
913
  }
907
914
  function ot(t) {
908
915
  var Ne;
909
- const { id: i, onNavigate: a, slots: h } = t, d = Oe("endpoint"), n = Me(i).data, [c, I] = b([]), v = _(c);
916
+ const { id: i, onNavigate: a, slots: h } = t, d = Oe("endpoint"), n = Me(i).data, [c, I] = g([]), v = _(c);
910
917
  v.current = c;
911
- const N = _(!1), m = _(!1), [y, s] = b("id"), [P, u] = b(null), [r, g] = b(!1), [F, k] = b(!1), [B, W] = b(!1), [V, Q] = b(""), [K, oe] = b({ id: i, key: "" }), [R, $] = b(null), re = he((C) => {
918
+ const N = _(!1), m = _(!1), [y, s] = g("id"), [P, u] = g(null), [r, b] = g(!1), [F, k] = g(!1), [B, W] = g(!1), [V, Q] = g(""), [K, oe] = g({ id: i, key: "" }), [R, $] = g(null), re = he((C) => {
912
919
  const H = ce(C), j = Ee({
913
920
  target: H.target,
914
921
  rows: H.input ?? [],
@@ -990,18 +997,18 @@ function ot(t) {
990
997
  ] }) : null, l = !!((f == null ? void 0 : f.key.trim()) ?? "") && G.length === 0 && S.canSave;
991
998
  async function E() {
992
999
  if (!f) return;
993
- const C = await S.commit(ge(f));
1000
+ const C = await S.commit(be(f));
994
1001
  k(C.status === "saved" || C.status === "clean");
995
1002
  }
996
1003
  async function w() {
997
- return !f || !S.dirty ? { status: "clean" } : l ? S.commit(ge(f)) : {
1004
+ return !f || !S.dirty ? { status: "clean" } : l ? S.commit(be(f)) : {
998
1005
  status: "blocked",
999
1006
  reason: "Fix the highlighted problems, then save, to test this Endpoint."
1000
1007
  };
1001
1008
  }
1002
1009
  function J() {
1003
1010
  if (!f) return;
1004
- const C = ge(f);
1011
+ const C = be(f);
1005
1012
  Q(JSON.stringify(C, null, 2)), oe({ id: String(C.id), key: String(C.key) }), $(null), W(!0);
1006
1013
  }
1007
1014
  async function T() {
@@ -1054,7 +1061,7 @@ function ot(t) {
1054
1061
  {
1055
1062
  icon: "edit-2",
1056
1063
  label: "Edit name, key, and description",
1057
- onClick: () => g(!0)
1064
+ onClick: () => b(!0)
1058
1065
  }
1059
1066
  )
1060
1067
  ] }),
@@ -1150,12 +1157,12 @@ function ot(t) {
1150
1157
  displayName: f.displayName ?? "",
1151
1158
  description: f.description ?? ""
1152
1159
  },
1153
- onClose: () => g(!1),
1160
+ onClose: () => b(!1),
1154
1161
  onSaved: (C) => {
1155
1162
  U({
1156
1163
  displayName: C.displayName,
1157
1164
  description: C.description
1158
- }), g(!1);
1165
+ }), b(!1);
1159
1166
  }
1160
1167
  }
1161
1168
  ),
@@ -1213,7 +1220,7 @@ function dt(t) {
1213
1220
  id: i,
1214
1221
  uses: (m == null ? void 0 : m.kind) === "action" ? m.uses : void 0,
1215
1222
  dirty: a.dirty
1216
- }), s = N instanceof ye && N.status === 404, [P, u] = b(!1), [r, g] = b(null), [F, k] = b(!1), [B, W] = b(!1), V = ((n == null ? void 0 : n.key) ?? "").trim() || $n((n == null ? void 0 : n.displayName) ?? "");
1223
+ }), s = N instanceof ye && N.status === 404, [P, u] = g(!1), [r, b] = g(null), [F, k] = g(!1), [B, W] = g(!1), V = ((n == null ? void 0 : n.key) ?? "").trim() || $n((n == null ? void 0 : n.displayName) ?? "");
1217
1224
  Ae({
1218
1225
  kind: "function",
1219
1226
  id: i,
@@ -1223,7 +1230,7 @@ function dt(t) {
1223
1230
  policy: a.policy,
1224
1231
  onPolicyChange: a.onPolicyChange
1225
1232
  });
1226
- const Q = (p) => a.setDefinition((A) => ({ ...A, ...p })), [K, oe] = b([]), R = _(!1), $ = _(!1);
1233
+ const Q = (p) => a.setDefinition((A) => ({ ...A, ...p })), [K, oe] = g([]), R = _(!1), $ = _(!1);
1227
1234
  se(() => {
1228
1235
  if (R.current) {
1229
1236
  if (!We({ rows: c, touched: $.current })) {
@@ -1255,9 +1262,9 @@ function dt(t) {
1255
1262
  };
1256
1263
  }
1257
1264
  async function Z() {
1258
- g(null), k(!1);
1265
+ b(null), k(!1);
1259
1266
  const p = await a.commit(z());
1260
- p.status === "saved" || p.status === "clean" ? k(!0) : p.status === "blocked" && g(p.reason);
1267
+ p.status === "saved" || p.status === "clean" ? k(!0) : p.status === "blocked" && b(p.reason);
1261
1268
  }
1262
1269
  async function O() {
1263
1270
  return a.dirty ? Y ? a.commit(z()) : {
@@ -1265,7 +1272,7 @@ function dt(t) {
1265
1272
  reason: "Fix the highlighted problems, then save, to test this Function."
1266
1273
  } : { status: "clean" };
1267
1274
  }
1268
- const [X, U] = b(!1), [ee, ne] = b(""), [te, ae] = b({ id: i, key: "" }), [G, q] = b(null);
1275
+ const [X, U] = g(!1), [ee, ne] = g(""), [te, ae] = g({ id: i, key: "" }), [G, q] = g(null);
1269
1276
  function le() {
1270
1277
  const p = z();
1271
1278
  ne(JSON.stringify(p, null, 2)), ae({ id: String(p.id), key: String(p.key) }), q(null), U(!0);
@@ -1280,7 +1287,7 @@ function dt(t) {
1280
1287
  const E = he(async () => {
1281
1288
  W(!0);
1282
1289
  try {
1283
- await a.reload(), g(null), k(!1);
1290
+ await a.reload(), b(null), k(!1);
1284
1291
  } finally {
1285
1292
  W(!1);
1286
1293
  }
@@ -1425,12 +1432,12 @@ function dt(t) {
1425
1432
  ) }) });
1426
1433
  }
1427
1434
  function ct(t) {
1428
- const { id: i, inputs: a } = t, [h, d] = b({}), [n, c] = b(void 0), [I, v] = b(null), [N, m] = b(!1), y = we(), s = Rn();
1435
+ const { id: i, inputs: a } = t, [h, d] = g({}), [n, c] = g(void 0), [I, v] = g(null), [N, m] = g(!1), y = we(), s = Rn();
1429
1436
  async function P() {
1430
1437
  const u = {};
1431
1438
  for (const r of a) {
1432
- const g = Le(r.type, h[r.key] ?? "");
1433
- g !== void 0 && (u[r.key] = g);
1439
+ const b = Le(r.type, h[r.key] ?? "");
1440
+ b !== void 0 && (u[r.key] = b);
1434
1441
  }
1435
1442
  m(!0);
1436
1443
  try {
@@ -1443,8 +1450,8 @@ function ct(t) {
1443
1450
  c(void 0), v(fe(r.error));
1444
1451
  return;
1445
1452
  }
1446
- const g = await s.mutateAsync({ id: i, inputs: u });
1447
- v(null), c(g);
1453
+ const b = await s.mutateAsync({ id: i, inputs: u });
1454
+ v(null), c(b);
1448
1455
  } catch (r) {
1449
1456
  c(void 0), v(fe(r));
1450
1457
  } finally {
@@ -1468,7 +1475,7 @@ function ct(t) {
1468
1475
  {
1469
1476
  id: r,
1470
1477
  value: h[u.key] ?? "",
1471
- onChange: (g) => d((F) => ({ ...F, [u.key]: g.target.value })),
1478
+ onChange: (b) => d((F) => ({ ...F, [u.key]: b.target.value })),
1472
1479
  children: [
1473
1480
  /* @__PURE__ */ e("option", { value: "", children: "—" }),
1474
1481
  /* @__PURE__ */ e("option", { value: "true", children: "true" }),
@@ -1482,7 +1489,7 @@ function ct(t) {
1482
1489
  type: u.type === "number" ? "number" : "text",
1483
1490
  value: h[u.key] ?? "",
1484
1491
  placeholder: u.type === "json" ? "{ }" : u.hint ?? "",
1485
- onChange: (g) => d((F) => ({ ...F, [u.key]: g.target.value }))
1492
+ onChange: (b) => d((F) => ({ ...F, [u.key]: b.target.value }))
1486
1493
  }
1487
1494
  )
1488
1495
  ] }, u.key || u.label);