@wise/dynamic-flow-client 4.21.1 → 4.21.2
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 +3 -1
- package/build/main.mjs +3 -1
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -6989,9 +6989,11 @@ function useDynamicFlowCore(props) {
|
|
|
6989
6989
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6990
6990
|
[]
|
|
6991
6991
|
);
|
|
6992
|
-
|
|
6992
|
+
const hasMappedInitialStep = (0, import_react3.useRef)(false);
|
|
6993
|
+
if (!hasMappedInitialStep.current && initialStep && !initialAction) {
|
|
6993
6994
|
createStep(initialStep, null);
|
|
6994
6995
|
trackCoreEvent("Step Shown", { isFirstStep: true });
|
|
6996
|
+
hasMappedInitialStep.current = true;
|
|
6995
6997
|
}
|
|
6996
6998
|
return { rootComponent: rootComponentRef.current };
|
|
6997
6999
|
}
|
package/build/main.mjs
CHANGED
|
@@ -6946,9 +6946,11 @@ function useDynamicFlowCore(props) {
|
|
|
6946
6946
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6947
6947
|
[]
|
|
6948
6948
|
);
|
|
6949
|
-
|
|
6949
|
+
const hasMappedInitialStep = useRef2(false);
|
|
6950
|
+
if (!hasMappedInitialStep.current && initialStep && !initialAction) {
|
|
6950
6951
|
createStep(initialStep, null);
|
|
6951
6952
|
trackCoreEvent("Step Shown", { isFirstStep: true });
|
|
6953
|
+
hasMappedInitialStep.current = true;
|
|
6952
6954
|
}
|
|
6953
6955
|
return { rootComponent: rootComponentRef.current };
|
|
6954
6956
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "4.21.
|
|
3
|
+
"version": "4.21.2",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@transferwise/navigation-ui": "4.40.0",
|
|
53
53
|
"@transferwise/neptune-css": "14.25.1",
|
|
54
54
|
"@types/jest": "30.0.0",
|
|
55
|
-
"@types/node": "22.19.
|
|
55
|
+
"@types/node": "22.19.1",
|
|
56
56
|
"@types/react": "18.3.26",
|
|
57
57
|
"@types/react-dom": "18.3.7",
|
|
58
58
|
"@types/react-intl": "3.0.0",
|