@wise/dynamic-flow-client-internal 2.8.10 → 2.8.12

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/build/main.js CHANGED
@@ -314,7 +314,7 @@ var require_main_min = __commonJS({
314
314
  } }).default;
315
315
  });
316
316
  });
317
- var kc = Oa((UF, wr) => {
317
+ var kc = Oa((jF, wr) => {
318
318
  "use strict";
319
319
  (function() {
320
320
  "use strict";
@@ -1461,7 +1461,7 @@ var require_main_min = __commonJS({
1461
1461
  var Zi = (e, t) => we(e) ? e.title ? e.title : L(e.const) ? e.const : null : jr(t) ? t : null;
1462
1462
  var xd = (e, t) => !!e && Object.hasOwnProperty.call(e, t) && !!e[t];
1463
1463
  var Fe = require("react/jsx-runtime");
1464
- var vd = ({ schema: e, model: t, errors: r, submitted: a, onChange: o }) => {
1464
+ function vd({ schema: e, model: t, errors: r, submitted: a, onChange: o }) {
1465
1465
  let [n, i] = (0, Xr.useState)(null), [c, d] = (0, Xr.useState)(() => {
1466
1466
  if (R(t) && !j(t))
1467
1467
  throw new Error("RepeatableSchema does not support object models. Ensure your array schema is wrapped inside an object schema.");
@@ -1483,8 +1483,8 @@ var require_main_min = __commonJS({
1483
1483
  }, f = () => {
1484
1484
  p({ item: null, model: null }), i(null);
1485
1485
  }, { formatMessage: w } = (0, es.useIntl)();
1486
- return (0, Fe.jsxs)(Fe.Fragment, { children: [e.title && (0, Fe.jsx)(Bt.Header, { title: e.title }), c && c.map((C) => (0, Fe.jsx)($i, { item: C, onClick: () => u(C) }, JSON.stringify(C))), (0, Fe.jsx)(Bt.NavigationOption, { onClick: y, media: (0, Fe.jsx)(Qi.Plus, {}), title: e.addItemTitle || w(ht.addItemTitle), showMediaAtAllSizes: true }), (0, Fe.jsx)(Bt.Modal, { open: n !== null, onClose: f, title: (n === "add" ? e.addItemTitle : e.editItemTitle) || w(ht.addItemTitle), body: (0, Fe.jsx)(Xi, { type: n != null ? n : "add", schema: e, model: m.model, errors: r, submitted: a, onAction: l, onModelChange: ({ model: C }) => p(S(s({}, m), { model: C })) }) })] });
1487
- };
1486
+ return (0, Fe.jsxs)(Fe.Fragment, { children: [e.title && (0, Fe.jsx)(Bt.Header, { title: e.title }), c && c.map((C) => (0, Fe.jsx)($i, { item: C, onClick: () => u(C) }, JSON.stringify(C))), (0, Fe.jsx)(Bt.NavigationOption, { media: (0, Fe.jsx)(Qi.Plus, {}), title: e.addItemTitle || w(ht.addItemTitle), showMediaAtAllSizes: true, onClick: y }), (0, Fe.jsx)(Bt.Modal, { open: n !== null, title: (n === "add" ? e.addItemTitle : e.editItemTitle) || w(ht.addItemTitle), body: (0, Fe.jsx)(Xi, { type: n != null ? n : "add", schema: e, model: m.model, errors: r, submitted: a, onAction: l, onModelChange: ({ model: C }) => p(S(s({}, m), { model: C })) }), onClose: f })] });
1487
+ }
1488
1488
  var Ad = (e, { originalItem: t, updatedItem: r, itemSummaries: a }) => {
1489
1489
  if (e === "remove")
1490
1490
  return (a || []).filter((o) => o !== t);