@wise/dynamic-flow-client-internal 5.9.2-logging-2-70d602d → 5.10.0
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 +21 -9
- package/build/main.mjs +21 -9
- package/build/types/dynamicFlow/DynamicFlow.d.ts.map +1 -1
- package/package.json +11 -11
package/build/main.js
CHANGED
|
@@ -144,7 +144,7 @@ var import_react22 = require("react");
|
|
|
144
144
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
145
145
|
var appVersion = (
|
|
146
146
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
147
|
-
typeof process !== "undefined" ? "5.
|
|
147
|
+
typeof process !== "undefined" ? "5.10.0" : "0.0.0"
|
|
148
148
|
);
|
|
149
149
|
|
|
150
150
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -309,6 +309,11 @@ function AddressValidationButtonComponent(props) {
|
|
|
309
309
|
setSpinny(false);
|
|
310
310
|
}
|
|
311
311
|
}, [stepLoadingState]);
|
|
312
|
+
const onBlur = () => {
|
|
313
|
+
if (stepLoadingState === "idle") {
|
|
314
|
+
setSpinny(false);
|
|
315
|
+
}
|
|
316
|
+
};
|
|
312
317
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: `d-flex flex-column ${getMargin(margin)}`, children: [
|
|
313
318
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
314
319
|
import_components2.Button,
|
|
@@ -323,6 +328,7 @@ function AddressValidationButtonComponent(props) {
|
|
|
323
328
|
setSpinny(true);
|
|
324
329
|
onClick();
|
|
325
330
|
},
|
|
331
|
+
onBlur,
|
|
326
332
|
children: title
|
|
327
333
|
}
|
|
328
334
|
),
|
|
@@ -689,6 +695,11 @@ function ButtonComponent(props) {
|
|
|
689
695
|
setSpinny(false);
|
|
690
696
|
}
|
|
691
697
|
}, [stepLoadingState]);
|
|
698
|
+
const onBlur = () => {
|
|
699
|
+
if (stepLoadingState === "idle") {
|
|
700
|
+
setSpinny(false);
|
|
701
|
+
}
|
|
702
|
+
};
|
|
692
703
|
const loading = spinny && stepLoadingState !== "idle";
|
|
693
704
|
const buttonProps = {
|
|
694
705
|
v2: true,
|
|
@@ -703,6 +714,7 @@ function ButtonComponent(props) {
|
|
|
703
714
|
loading,
|
|
704
715
|
size: control === "small" ? "sm" : mapLegacyButtonSize(size),
|
|
705
716
|
sentiment: getSentiment(context),
|
|
717
|
+
onBlur,
|
|
706
718
|
onClick: () => {
|
|
707
719
|
setSpinny(true);
|
|
708
720
|
onClick();
|
|
@@ -1366,9 +1378,7 @@ function ExternalConfirmationRendererComponent({
|
|
|
1366
1378
|
}) {
|
|
1367
1379
|
const { formatMessage } = (0, import_react_intl10.useIntl)();
|
|
1368
1380
|
(0, import_react4.useEffect)(() => {
|
|
1369
|
-
|
|
1370
|
-
if (url) {
|
|
1371
|
-
console.log("\u{1F48E} window.open");
|
|
1381
|
+
if (url && status === "initial") {
|
|
1372
1382
|
const w = window.open(url, "_blank");
|
|
1373
1383
|
if (w) {
|
|
1374
1384
|
onSuccess();
|
|
@@ -1377,7 +1387,6 @@ function ExternalConfirmationRendererComponent({
|
|
|
1377
1387
|
}
|
|
1378
1388
|
}
|
|
1379
1389
|
}, []);
|
|
1380
|
-
console.log("\u{1F48E} ExternalConfirmationRendererComponent rendered with status:", status);
|
|
1381
1390
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1382
1391
|
import_components18.Modal,
|
|
1383
1392
|
{
|
|
@@ -3923,9 +3932,12 @@ function UpsellRendererComponent(props) {
|
|
|
3923
3932
|
className: getMargin(margin),
|
|
3924
3933
|
mediaName: getMediaName(media),
|
|
3925
3934
|
title: text,
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3935
|
+
action: {
|
|
3936
|
+
href: callToAction.href,
|
|
3937
|
+
onClick: callToAction.href ? void 0 : callToAction.onClick,
|
|
3938
|
+
target: callToAction.href ? "_blank" : void 0,
|
|
3939
|
+
text: callToAction.title
|
|
3940
|
+
},
|
|
3929
3941
|
onDismiss: onDismiss ? () => {
|
|
3930
3942
|
setIsVisible(false);
|
|
3931
3943
|
onDismiss();
|
|
@@ -4204,7 +4216,7 @@ function DynamicFlow(props) {
|
|
|
4204
4216
|
const { className = "" } = props;
|
|
4205
4217
|
const dfProps = useWiseToCoreProps(props);
|
|
4206
4218
|
const df = (0, import_dynamic_flow_client3.useDynamicFlow)(dfProps);
|
|
4207
|
-
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", {
|
|
4219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className, children: df.view });
|
|
4208
4220
|
}
|
|
4209
4221
|
|
|
4210
4222
|
// src/dynamicFlow/DynamicFlowWithRef.tsx
|
package/build/main.mjs
CHANGED
|
@@ -126,7 +126,7 @@ import { useMemo as useMemo2 } from "react";
|
|
|
126
126
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
127
127
|
var appVersion = (
|
|
128
128
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
129
|
-
typeof process !== "undefined" ? "5.
|
|
129
|
+
typeof process !== "undefined" ? "5.10.0" : "0.0.0"
|
|
130
130
|
);
|
|
131
131
|
|
|
132
132
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -291,6 +291,11 @@ function AddressValidationButtonComponent(props) {
|
|
|
291
291
|
setSpinny(false);
|
|
292
292
|
}
|
|
293
293
|
}, [stepLoadingState]);
|
|
294
|
+
const onBlur = () => {
|
|
295
|
+
if (stepLoadingState === "idle") {
|
|
296
|
+
setSpinny(false);
|
|
297
|
+
}
|
|
298
|
+
};
|
|
294
299
|
return /* @__PURE__ */ jsxs("div", { className: `d-flex flex-column ${getMargin(margin)}`, children: [
|
|
295
300
|
/* @__PURE__ */ jsx3(
|
|
296
301
|
Button,
|
|
@@ -305,6 +310,7 @@ function AddressValidationButtonComponent(props) {
|
|
|
305
310
|
setSpinny(true);
|
|
306
311
|
onClick();
|
|
307
312
|
},
|
|
313
|
+
onBlur,
|
|
308
314
|
children: title
|
|
309
315
|
}
|
|
310
316
|
),
|
|
@@ -671,6 +677,11 @@ function ButtonComponent(props) {
|
|
|
671
677
|
setSpinny(false);
|
|
672
678
|
}
|
|
673
679
|
}, [stepLoadingState]);
|
|
680
|
+
const onBlur = () => {
|
|
681
|
+
if (stepLoadingState === "idle") {
|
|
682
|
+
setSpinny(false);
|
|
683
|
+
}
|
|
684
|
+
};
|
|
674
685
|
const loading = spinny && stepLoadingState !== "idle";
|
|
675
686
|
const buttonProps = {
|
|
676
687
|
v2: true,
|
|
@@ -685,6 +696,7 @@ function ButtonComponent(props) {
|
|
|
685
696
|
loading,
|
|
686
697
|
size: control === "small" ? "sm" : mapLegacyButtonSize(size),
|
|
687
698
|
sentiment: getSentiment(context),
|
|
699
|
+
onBlur,
|
|
688
700
|
onClick: () => {
|
|
689
701
|
setSpinny(true);
|
|
690
702
|
onClick();
|
|
@@ -1348,9 +1360,7 @@ function ExternalConfirmationRendererComponent({
|
|
|
1348
1360
|
}) {
|
|
1349
1361
|
const { formatMessage } = useIntl5();
|
|
1350
1362
|
useEffect3(() => {
|
|
1351
|
-
|
|
1352
|
-
if (url) {
|
|
1353
|
-
console.log("\u{1F48E} window.open");
|
|
1363
|
+
if (url && status === "initial") {
|
|
1354
1364
|
const w = window.open(url, "_blank");
|
|
1355
1365
|
if (w) {
|
|
1356
1366
|
onSuccess();
|
|
@@ -1359,7 +1369,6 @@ function ExternalConfirmationRendererComponent({
|
|
|
1359
1369
|
}
|
|
1360
1370
|
}
|
|
1361
1371
|
}, []);
|
|
1362
|
-
console.log("\u{1F48E} ExternalConfirmationRendererComponent rendered with status:", status);
|
|
1363
1372
|
return /* @__PURE__ */ jsx31(
|
|
1364
1373
|
Modal,
|
|
1365
1374
|
{
|
|
@@ -3914,9 +3923,12 @@ function UpsellRendererComponent(props) {
|
|
|
3914
3923
|
className: getMargin(margin),
|
|
3915
3924
|
mediaName: getMediaName(media),
|
|
3916
3925
|
title: text,
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3926
|
+
action: {
|
|
3927
|
+
href: callToAction.href,
|
|
3928
|
+
onClick: callToAction.href ? void 0 : callToAction.onClick,
|
|
3929
|
+
target: callToAction.href ? "_blank" : void 0,
|
|
3930
|
+
text: callToAction.title
|
|
3931
|
+
},
|
|
3920
3932
|
onDismiss: onDismiss ? () => {
|
|
3921
3933
|
setIsVisible(false);
|
|
3922
3934
|
onDismiss();
|
|
@@ -4195,7 +4207,7 @@ function DynamicFlow(props) {
|
|
|
4195
4207
|
const { className = "" } = props;
|
|
4196
4208
|
const dfProps = useWiseToCoreProps(props);
|
|
4197
4209
|
const df = useDynamicFlow(dfProps);
|
|
4198
|
-
return /* @__PURE__ */ jsx90("div", {
|
|
4210
|
+
return /* @__PURE__ */ jsx90("div", { className, children: df.view });
|
|
4199
4211
|
}
|
|
4200
4212
|
|
|
4201
4213
|
// src/dynamicFlow/DynamicFlowWithRef.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicFlow.d.ts","sourceRoot":"","sources":["../../../src/dynamicFlow/DynamicFlow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAGnE,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAElF,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAC;AAEP,wBAAgB,WAAW,CAAC,KAAK,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"DynamicFlow.d.ts","sourceRoot":"","sources":["../../../src/dynamicFlow/DynamicFlow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAGnE,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAElF,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAC;AAEP,wBAAgB,WAAW,CAAC,KAAK,EAAE,oBAAoB,2CAKtD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client-internal",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0",
|
|
4
4
|
"description": "Dynamic Flow web client for Wise",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@chromatic-com/storybook": "4.1.3",
|
|
35
35
|
"@formatjs/cli": "^6.13.0",
|
|
36
|
-
"@storybook/addon-a11y": "^10.2.
|
|
37
|
-
"@storybook/addon-docs": "^10.2.
|
|
38
|
-
"@storybook/addon-links": "^10.2.
|
|
39
|
-
"@storybook/react-vite": "10.2.
|
|
36
|
+
"@storybook/addon-a11y": "^10.2.13",
|
|
37
|
+
"@storybook/addon-docs": "^10.2.13",
|
|
38
|
+
"@storybook/addon-links": "^10.2.13",
|
|
39
|
+
"@storybook/react-vite": "10.2.13",
|
|
40
40
|
"@testing-library/dom": "10.4.1",
|
|
41
41
|
"@testing-library/jest-dom": "6.9.1",
|
|
42
42
|
"@testing-library/react": "16.3.2",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@wise/art": "2.28.0",
|
|
51
51
|
"@wise/components-theming": "^1.10.1",
|
|
52
52
|
"esbuild": "0.27.0",
|
|
53
|
-
"eslint-plugin-storybook": "10.2.
|
|
53
|
+
"eslint-plugin-storybook": "10.2.13",
|
|
54
54
|
"framer-motion": "^12.34.3",
|
|
55
55
|
"npm-run-all2": "8.0.4",
|
|
56
56
|
"postcss": "^8.5.6",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"react": "18.3.1",
|
|
60
60
|
"react-dom": "18.3.1",
|
|
61
61
|
"react-intl": "6.8.9",
|
|
62
|
-
"storybook": "^10.2.
|
|
62
|
+
"storybook": "^10.2.13",
|
|
63
63
|
"stylelint": "16.26.1",
|
|
64
64
|
"stylelint-config-standard": "36.0.1",
|
|
65
65
|
"stylelint-no-unsupported-browser-features": "8.1.1",
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"typescript": "5.9.3",
|
|
69
69
|
"vitest": "4.0.18",
|
|
70
70
|
"vitest-fetch-mock": "0.4.5",
|
|
71
|
-
"@wise/dynamic-flow-
|
|
71
|
+
"@wise/dynamic-flow-types": "4.10.0",
|
|
72
72
|
"@wise/dynamic-flow-renderers": "0.0.0",
|
|
73
|
-
"@wise/dynamic-flow-
|
|
73
|
+
"@wise/dynamic-flow-fixtures": "0.0.1"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@transferwise/components": "^46.104.0",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"react-intl": "^6 || ^7"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@wise/dynamic-flow-
|
|
88
|
-
"@wise/dynamic-flow-
|
|
87
|
+
"@wise/dynamic-flow-client": "5.10.0",
|
|
88
|
+
"@wise/dynamic-flow-types": "4.10.0"
|
|
89
89
|
},
|
|
90
90
|
"scripts": {
|
|
91
91
|
"dev": "pnpm build:visual-tests && storybook dev -p 3005",
|