@wise/dynamic-flow-client-internal 3.1.2 → 3.2.0-beta-3bd1fd.29
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 +8 -8
- package/build/main.min.js +1 -1
- package/build/main.mjs +5419 -0
- package/package.json +29 -28
package/build/main.js
CHANGED
|
@@ -3663,7 +3663,7 @@ var require_main_min = __commonJS({
|
|
|
3663
3663
|
var Nt = require("react/jsx-runtime");
|
|
3664
3664
|
function oy(e) {
|
|
3665
3665
|
let { id: t, children: o, description: r, disabled: n, error: a, help: i, label: m, options: l, selectedIndex: c, onSelect: p } = e;
|
|
3666
|
-
return (0, Nt.jsxs)(Nt.Fragment, { children: [(0, Nt.jsx)(me, { id: t, label: m, help: i, description: r, error: a, children: (0, Nt.jsx)("span", { children: (0, Nt.jsx)(ty.RadioGroup, { name: t, radios: l.map((y, f) => ({ label: y.title, value:
|
|
3666
|
+
return (0, Nt.jsxs)(Nt.Fragment, { children: [(0, Nt.jsx)(me, { id: t, label: m, help: i, description: r, error: a, children: (0, Nt.jsx)("span", { children: (0, Nt.jsx)(ty.RadioGroup, { name: t, radios: l.map((y, f) => ({ label: y.title, value: f, secondary: y.description, disabled: y.disabled || n, avatar: (0, Nt.jsx)(Pa, { icon: y.icon, image: y.image }) })), selectedValue: c != null ? c : void 0, onChange: p }) }) }), o] });
|
|
3667
3667
|
}
|
|
3668
3668
|
var ry = require("@transferwise/components");
|
|
3669
3669
|
var ny = require("react");
|
|
@@ -4244,13 +4244,13 @@ var require_main_min = __commonJS({
|
|
|
4244
4244
|
var gf = ({ genericErrorMessage: e, httpClient: t, persistAsyncConfig: o, schemaId: r, logEvent: n, trackEvent: a }) => {
|
|
4245
4245
|
let { idProperty: i, param: m, method: l, url: c } = o, p = (y) => {
|
|
4246
4246
|
let f = ja(y);
|
|
4247
|
-
a("PersistAsync Failed", s({
|
|
4247
|
+
a("PersistAsync Failed", s({ schema: r }, f));
|
|
4248
4248
|
};
|
|
4249
4249
|
return async function({ value: f, signal: u }) {
|
|
4250
4250
|
let d, g;
|
|
4251
4251
|
try {
|
|
4252
|
-
if (a("PersistAsync Triggered", {
|
|
4253
|
-
if (a("PersistAsync Succeeded", {
|
|
4252
|
+
if (a("PersistAsync Triggered", { schema: r }), d = await t(c, Va({ value: f, signal: u, requestConfig: { method: l, param: m } })), g = await d.json(), d.ok && Q(g)) {
|
|
4253
|
+
if (a("PersistAsync Succeeded", { schema: r }), g[i] === void 0)
|
|
4254
4254
|
throw n("error", `Response from persist async did not contain expected property ${i}`), new Error(e);
|
|
4255
4255
|
return g[i];
|
|
4256
4256
|
}
|
|
@@ -4290,11 +4290,11 @@ var require_main_min = __commonJS({
|
|
|
4290
4290
|
var Cf = ({ httpClient: e, validationAsyncConfig: t, schemaId: o, trackEvent: r }) => {
|
|
4291
4291
|
let { method: n, param: a, url: i } = t, m = (l) => {
|
|
4292
4292
|
let c = ja(l);
|
|
4293
|
-
return r("ValidationAsync Failed", s({
|
|
4293
|
+
return r("ValidationAsync Failed", s({ schema: o }, c)), null;
|
|
4294
4294
|
};
|
|
4295
4295
|
return async function({ value: c, signal: p }) {
|
|
4296
4296
|
let y;
|
|
4297
|
-
r("ValidationAsync Triggered", {
|
|
4297
|
+
r("ValidationAsync Triggered", { schema: o });
|
|
4298
4298
|
try {
|
|
4299
4299
|
y = await e(i, Va({ value: c, signal: p, requestConfig: { method: n, param: a } }));
|
|
4300
4300
|
} catch (d) {
|
|
@@ -4302,9 +4302,9 @@ var require_main_min = __commonJS({
|
|
|
4302
4302
|
}
|
|
4303
4303
|
let f = await y.json().catch(() => null), u = QF(f);
|
|
4304
4304
|
if (y.ok)
|
|
4305
|
-
return r("ValidationAsync Succeeded", {
|
|
4305
|
+
return r("ValidationAsync Succeeded", { schema: o }), u;
|
|
4306
4306
|
if (y.status === 422 && u)
|
|
4307
|
-
throw r("ValidationAsync Succeeded", {
|
|
4307
|
+
throw r("ValidationAsync Succeeded", { schema: o }), new Error(u);
|
|
4308
4308
|
return m(f);
|
|
4309
4309
|
};
|
|
4310
4310
|
};
|