@wise/dynamic-flow-client 5.0.0-experimental-c979470 → 5.0.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.
@@ -1,5 +1,5 @@
1
1
  import type { Step } from '@wise/dynamic-flow-types/spec';
2
2
  import { DynamicFlowWiseProps } from '../../test-utils/DynamicFlowWise';
3
3
  export declare const renderWithStep: (step: Step, httpClient?: typeof fetch) => import("react/jsx-runtime").JSX.Element;
4
- export declare const renderWithAction: (initialAction: DynamicFlowWiseProps["initialAction"], httpClient?: typeof fetch) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const renderWithAction: (initialAction: DynamicFlowWiseProps["initialAction"], httpClient?: typeof fetch, overrides?: Partial<DynamicFlowWiseProps>) => import("react/jsx-runtime").JSX.Element;
5
5
  export declare const renderWithStepAndOverrides: (step: Step, overrides: Partial<DynamicFlowWiseProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,10 @@
1
- import { Theming } from '@wise/components-theming';
2
1
  import { DynamicFlowCoreProps } from '../types';
3
2
  type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
4
3
  export type DynamicFlowWiseProps = MakeOptional<DynamicFlowCoreProps, 'renderers' | 'onLink'> & {
5
4
  onAnalytics?: DynamicFlowWiseProps['onEvent'];
6
- onThemeChange?: OnThemeChange;
7
5
  };
8
6
  /**
9
7
  * This component is only used in tests.
10
8
  */
11
9
  declare function DynamicFlowWise(props: DynamicFlowWiseProps): import("react/jsx-runtime").JSX.Element;
12
- type OnThemeChange = (theme: Theming['theme']) => void;
13
10
  export default DynamicFlowWise;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "5.0.0-experimental-c979470",
3
+ "version": "5.0.0",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -52,14 +52,14 @@
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.0",
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",
59
59
  "@wise/art": "2.24.7",
60
- "@wise/components-theming": "^1.7.0",
60
+ "@wise/components-theming": "^1.8.0",
61
61
  "babel-jest": "30.2.0",
62
- "esbuild": "0.25.9",
62
+ "esbuild": "0.27.0",
63
63
  "eslint-plugin-storybook": "9.1.16",
64
64
  "framer-motion": "^12.23.24",
65
65
  "jest": "30.2.0",
@@ -80,8 +80,8 @@
80
80
  "stylelint-value-no-unknown-custom-properties": "6.0.1",
81
81
  "tsx": "4.20.6",
82
82
  "typescript": "5.9.3",
83
- "@wise/dynamic-flow-fixtures": "0.0.1",
84
- "@wise/dynamic-flow-renderers": "0.0.0"
83
+ "@wise/dynamic-flow-renderers": "0.0.0",
84
+ "@wise/dynamic-flow-fixtures": "0.0.1"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "@transferwise/components": "^46.104.0",
@@ -94,7 +94,7 @@
94
94
  "react-intl": "^6"
95
95
  },
96
96
  "dependencies": {
97
- "@wise/dynamic-flow-types": "4.0.0-experimental-c979470"
97
+ "@wise/dynamic-flow-types": "4.0.0"
98
98
  },
99
99
  "scripts": {
100
100
  "dev": "EXCLUDE_VISUAL_TESTS=true pnpm storybook dev -p 3003",