@wise/dynamic-flow-client 4.20.0 → 4.20.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.css CHANGED
@@ -248,7 +248,7 @@ button.df-back-btn {
248
248
  }
249
249
  .df-columns-renderer-container {
250
250
  display: flex;
251
- gap: var(--size-16);
251
+ gap: var(--size-4);
252
252
  flex-direction: column;
253
253
  }
254
254
  .df-columns-renderer-column,
@@ -260,9 +260,10 @@ button.df-back-btn {
260
260
  .df-columns-renderer-bias-end .df-columns-renderer-column:nth-child(2) {
261
261
  flex: 2;
262
262
  }
263
- @media (width >= 768px) {
263
+ @media (width >=768px) {
264
264
  .df-columns-renderer-container {
265
265
  flex-direction: row;
266
+ gap: var(--size-16);
266
267
  }
267
268
  }
268
269
  .df-image .df-illustration {
package/build/main.js CHANGED
@@ -7508,10 +7508,6 @@ function useDynamicFlowCore(props) {
7508
7508
  rootComponentRef.current.setLoadingState("submitting");
7509
7509
  void onAction(__spreadValues({ method: "GET" }, initialAction), null);
7510
7510
  }
7511
- if (initialStep && !initialAction) {
7512
- createStep(initialStep, null);
7513
- trackCoreEvent("Step Shown", { isFirstStep: true });
7514
- }
7515
7511
  return () => {
7516
7512
  rootComponentRef.current.stop();
7517
7513
  };
@@ -7815,6 +7811,10 @@ function useDynamicFlowCore(props) {
7815
7811
  // eslint-disable-next-line react-hooks/exhaustive-deps
7816
7812
  []
7817
7813
  );
7814
+ if (!rootComponentRef.current.hasStep() && initialStep && !initialAction) {
7815
+ createStep(initialStep, null);
7816
+ trackCoreEvent("Step Shown", { isFirstStep: true });
7817
+ }
7818
7818
  return { rootComponent: rootComponentRef.current };
7819
7819
  }
7820
7820
  var useRerender = () => {
package/build/main.mjs CHANGED
@@ -7465,10 +7465,6 @@ function useDynamicFlowCore(props) {
7465
7465
  rootComponentRef.current.setLoadingState("submitting");
7466
7466
  void onAction(__spreadValues({ method: "GET" }, initialAction), null);
7467
7467
  }
7468
- if (initialStep && !initialAction) {
7469
- createStep(initialStep, null);
7470
- trackCoreEvent("Step Shown", { isFirstStep: true });
7471
- }
7472
7468
  return () => {
7473
7469
  rootComponentRef.current.stop();
7474
7470
  };
@@ -7772,6 +7768,10 @@ function useDynamicFlowCore(props) {
7772
7768
  // eslint-disable-next-line react-hooks/exhaustive-deps
7773
7769
  []
7774
7770
  );
7771
+ if (!rootComponentRef.current.hasStep() && initialStep && !initialAction) {
7772
+ createStep(initialStep, null);
7773
+ trackCoreEvent("Step Shown", { isFirstStep: true });
7774
+ }
7775
7775
  return { rootComponent: rootComponentRef.current };
7776
7776
  }
7777
7777
  var useRerender = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "4.20.0",
3
+ "version": "4.20.2",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -46,9 +46,9 @@
46
46
  "@testing-library/jest-dom": "6.9.1",
47
47
  "@testing-library/react": "16.3.0",
48
48
  "@testing-library/user-event": "14.6.1",
49
- "@transferwise/components": "46.112.1",
49
+ "@transferwise/components": "46.113.1",
50
50
  "@transferwise/formatting": "^2.13.4",
51
- "@transferwise/icons": "3.22.4",
51
+ "@transferwise/icons": "4.0.0",
52
52
  "@transferwise/navigation-ui": "4.40.0",
53
53
  "@transferwise/neptune-css": "14.25.1",
54
54
  "@types/jest": "30.0.0",
@@ -61,6 +61,7 @@
61
61
  "babel-jest": "30.2.0",
62
62
  "esbuild": "0.25.9",
63
63
  "eslint-plugin-storybook": "9.1.15",
64
+ "framer-motion": "^12.23.22",
64
65
  "jest": "30.2.0",
65
66
  "jest-environment-jsdom": "30.2.0",
66
67
  "jest-fetch-mock": "^3.0.3",
@@ -85,7 +86,7 @@
85
86
  "peerDependencies": {
86
87
  "@transferwise/components": "^46.104.0",
87
88
  "@transferwise/formatting": "^2",
88
- "@transferwise/icons": "^3.18.0",
89
+ "@transferwise/icons": "^3 || ^4",
89
90
  "@transferwise/neptune-css": "^14.22.0",
90
91
  "@wise/art": "^2.19.0",
91
92
  "react": "^18",