@wise/dynamic-flow-client-internal 4.11.1 → 4.12.0-experimental-sca-error-handling-8133bb0
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
|
@@ -1218,7 +1218,7 @@ var FormRenderer_default = FormRenderer;
|
|
|
1218
1218
|
var import_components10 = require("@transferwise/components");
|
|
1219
1219
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1220
1220
|
var FormSectionRenderer = {
|
|
1221
|
-
canRenderType: "section",
|
|
1221
|
+
canRenderType: "form-section",
|
|
1222
1222
|
render: ({ title, description, children }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("fieldset", { children: [
|
|
1223
1223
|
title && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1224
1224
|
import_components10.Header,
|
|
@@ -1571,7 +1571,7 @@ var import_components17 = require("@transferwise/components");
|
|
|
1571
1571
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1572
1572
|
var MarkdownRenderer = {
|
|
1573
1573
|
canRenderType: "markdown",
|
|
1574
|
-
render: ({ content, align, margin }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_components17.Markdown, { config: { link: { target: "_blank" } }, children: content }) })
|
|
1574
|
+
render: ({ content, align, margin }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_components17.Markdown, { className: "np-text-body-large", config: { link: { target: "_blank" } }, children: content }) })
|
|
1575
1575
|
};
|
|
1576
1576
|
var MarkdownRenderer_default = MarkdownRenderer;
|
|
1577
1577
|
|
|
@@ -3181,7 +3181,7 @@ var ModalContentRenderer = {
|
|
|
3181
3181
|
};
|
|
3182
3182
|
|
|
3183
3183
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
3184
|
-
var appVersion = "4.11.
|
|
3184
|
+
var appVersion = "4.11.2";
|
|
3185
3185
|
|
|
3186
3186
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
3187
3187
|
var getLogEvent = (onLog) => (level, message, extra) => {
|
|
@@ -3291,7 +3291,12 @@ var useWiseHttpClient = (httpClient) => {
|
|
|
3291
3291
|
async (input, init = {}) => {
|
|
3292
3292
|
const headers = new Headers(init.headers);
|
|
3293
3293
|
headers.set("accept-language", locale);
|
|
3294
|
-
return httpClient(input, __spreadProps(__spreadValues({}, init), { credentials: "include", headers }))
|
|
3294
|
+
return httpClient(input, __spreadProps(__spreadValues({}, init), { credentials: "include", headers })).catch((error) => {
|
|
3295
|
+
if (error instanceof Error && error.message === "SCA_MODAL_CLOSED") {
|
|
3296
|
+
return new Response(JSON.stringify({ validation: {} }), { status: 400 });
|
|
3297
|
+
}
|
|
3298
|
+
throw error;
|
|
3299
|
+
});
|
|
3295
3300
|
},
|
|
3296
3301
|
[httpClient, locale]
|
|
3297
3302
|
);
|
package/build/main.mjs
CHANGED
|
@@ -1184,7 +1184,7 @@ var FormRenderer_default = FormRenderer;
|
|
|
1184
1184
|
import { Header as Header2 } from "@transferwise/components";
|
|
1185
1185
|
import { jsx as jsx20, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1186
1186
|
var FormSectionRenderer = {
|
|
1187
|
-
canRenderType: "section",
|
|
1187
|
+
canRenderType: "form-section",
|
|
1188
1188
|
render: ({ title, description, children }) => /* @__PURE__ */ jsxs4("fieldset", { children: [
|
|
1189
1189
|
title && /* @__PURE__ */ jsx20(
|
|
1190
1190
|
Header2,
|
|
@@ -1541,7 +1541,7 @@ import { Markdown as Markdown2 } from "@transferwise/components";
|
|
|
1541
1541
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1542
1542
|
var MarkdownRenderer = {
|
|
1543
1543
|
canRenderType: "markdown",
|
|
1544
|
-
render: ({ content, align, margin }) => /* @__PURE__ */ jsx31("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ jsx31(Markdown2, { config: { link: { target: "_blank" } }, children: content }) })
|
|
1544
|
+
render: ({ content, align, margin }) => /* @__PURE__ */ jsx31("div", { className: getTextAlignmentAndMargin({ align, margin }), children: /* @__PURE__ */ jsx31(Markdown2, { className: "np-text-body-large", config: { link: { target: "_blank" } }, children: content }) })
|
|
1545
1545
|
};
|
|
1546
1546
|
var MarkdownRenderer_default = MarkdownRenderer;
|
|
1547
1547
|
|
|
@@ -3157,7 +3157,7 @@ var ModalContentRenderer = {
|
|
|
3157
3157
|
};
|
|
3158
3158
|
|
|
3159
3159
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
3160
|
-
var appVersion = "4.11.
|
|
3160
|
+
var appVersion = "4.11.2";
|
|
3161
3161
|
|
|
3162
3162
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
3163
3163
|
var getLogEvent = (onLog) => (level, message, extra) => {
|
|
@@ -3267,7 +3267,12 @@ var useWiseHttpClient = (httpClient) => {
|
|
|
3267
3267
|
async (input, init = {}) => {
|
|
3268
3268
|
const headers = new Headers(init.headers);
|
|
3269
3269
|
headers.set("accept-language", locale);
|
|
3270
|
-
return httpClient(input, __spreadProps(__spreadValues({}, init), { credentials: "include", headers }))
|
|
3270
|
+
return httpClient(input, __spreadProps(__spreadValues({}, init), { credentials: "include", headers })).catch((error) => {
|
|
3271
|
+
if (error instanceof Error && error.message === "SCA_MODAL_CLOSED") {
|
|
3272
|
+
return new Response(JSON.stringify({ validation: {} }), { status: 400 });
|
|
3273
|
+
}
|
|
3274
|
+
throw error;
|
|
3275
|
+
});
|
|
3271
3276
|
},
|
|
3272
3277
|
[httpClient, locale]
|
|
3273
3278
|
);
|
package/build/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { makeHttpClient as makeCustomFetch } from '@wise/dynamic-flow-client';
|
|
2
2
|
export type { DynamicFlowProps, DynamicFormController, Step, InitialAction, } from '@wise/dynamic-flow-client';
|
|
3
|
-
export type { Renderer, Renderers, AlertRendererProps, CheckboxInputRendererProps, BoxRendererProps, ButtonRendererProps, ColumnsRendererProps, DateInputRendererProps, DecisionRendererProps, DividerRendererProps, FormRendererProps,
|
|
3
|
+
export type { Renderer, Renderers, AlertRendererProps, CheckboxInputRendererProps, BoxRendererProps, ButtonRendererProps, ColumnsRendererProps, DateInputRendererProps, DecisionRendererProps, DividerRendererProps, FormRendererProps, FormSectionRendererProps, HeadingRendererProps, HiddenRendererProps, ImageRendererProps, InstructionsRendererProps, IntegerInputRendererProps, LoadingIndicatorRendererProps, MarkdownRendererProps, ModalRendererProps, MultiSelectInputRendererProps, MultiUploadInputRendererProps, NumberInputRendererProps, ParagraphRendererProps, RepeatableRendererProps, ReviewRendererProps, SearchRendererProps, SelectInputRendererProps, StatusListRendererProps, StepRendererProps, TextInputRendererProps, UploadInputRendererProps, } from '@wise/dynamic-flow-types/build/renderers';
|
|
4
4
|
export { JsonSchemaForm, isValidSchema, findRendererPropsByType } from '@wise/dynamic-flow-client';
|
|
5
5
|
export { default as translations } from './i18n';
|
|
6
6
|
export type { DynamicFlowLegacyProps, DynamicFlowRevampProps } from './dynamicFlow/DynamicFlow';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DynamicFlowRevamp } from '../index';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
component: typeof DynamicFlowRevamp;
|
|
4
|
+
title: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
chromatic: {
|
|
7
|
+
disableSnapshot: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare function SCAIntegration(): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client-internal",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.0-experimental-sca-error-handling-8133bb0",
|
|
4
4
|
"description": "Dynamic Flow web client for Wise",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
"@testing-library/jest-dom": "6.6.3",
|
|
52
52
|
"@testing-library/react": "16.3.0",
|
|
53
53
|
"@testing-library/user-event": "14.6.1",
|
|
54
|
-
"@transferwise/components": "46.
|
|
54
|
+
"@transferwise/components": "46.97.0",
|
|
55
55
|
"@transferwise/formatting": "^2.13.1",
|
|
56
56
|
"@transferwise/icons": "3.21.0",
|
|
57
57
|
"@transferwise/neptune-css": "14.24.3",
|
|
58
58
|
"@types/jest": "29.5.14",
|
|
59
59
|
"@types/react": "18.3.20",
|
|
60
60
|
"@types/react-dom": "18.3.6",
|
|
61
|
-
"@wise/art": "2.20.
|
|
61
|
+
"@wise/art": "2.20.1",
|
|
62
62
|
"@wise/components-theming": "^1.6.2",
|
|
63
63
|
"babel-jest": "29.7.0",
|
|
64
64
|
"currency-flags": "4.0.7",
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"tsx": "4.19.3",
|
|
83
83
|
"typescript": "5.8.3",
|
|
84
84
|
"webpack": "5.99.7",
|
|
85
|
-
"@wise/dynamic-flow-types": "3.3.0",
|
|
86
85
|
"@wise/dynamic-flow-fixtures": "0.0.1",
|
|
87
|
-
"@wise/dynamic-flow-renderers": "0.0.0"
|
|
86
|
+
"@wise/dynamic-flow-renderers": "0.0.0",
|
|
87
|
+
"@wise/dynamic-flow-types": "3.3.1"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"@transferwise/components": "^46.92.0",
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"classnames": "2.5.1",
|
|
102
|
-
"@wise/dynamic-flow-client": "4.5.
|
|
103
|
-
"@wise/dynamic-flow-types": "3.3.
|
|
102
|
+
"@wise/dynamic-flow-client": "4.5.3-experimental-sca-error-handling-8133bb0",
|
|
103
|
+
"@wise/dynamic-flow-types": "3.3.1"
|
|
104
104
|
},
|
|
105
105
|
"scripts": {
|
|
106
106
|
"dev": "pnpm build:visual-tests && storybook dev -p 3005",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|