@wise/dynamic-flow-client 3.26.1 → 3.28.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.
@@ -4,5 +4,5 @@ type Props = {
4
4
  component: ReviewLayout;
5
5
  onAction: OnAction;
6
6
  };
7
- declare function DynamicReview(props: Props): import("react/jsx-runtime").JSX.Element;
7
+ declare function DynamicReview({ component: review, onAction }: Props): import("react/jsx-runtime").JSX.Element;
8
8
  export default DynamicReview;
@@ -1,6 +1,6 @@
1
1
  import type { ButtonLayout } from '@wise/dynamic-flow-types/build/next';
2
- import type { Behavior } from '@wise/dynamic-flow-types/build/next/feature/Behavior';
3
2
  import type { MapperProps } from '../schema/types';
3
+ import { SpecNextBehavior } from '../../types';
4
4
  export declare const buttonLayoutToComponent: (uid: string, button: ButtonLayout & {
5
- behavior?: Behavior;
5
+ behavior?: SpecNextBehavior;
6
6
  }, mapperProps: MapperProps) => import("../../components/ButtonComponent").ButtonComponent;
@@ -108,3 +108,15 @@ export type ValidationAsyncState = {
108
108
  };
109
109
  };
110
110
  export type LoadingState = 'idle' | 'submitting' | 'refreshing';
111
+ export type SpecNextBehavior = {
112
+ type: 'action';
113
+ action: Action;
114
+ } | {
115
+ type: 'link';
116
+ url: string;
117
+ } | {
118
+ action?: Action;
119
+ link?: {
120
+ url: string;
121
+ };
122
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "3.26.1",
3
+ "version": "3.28.0",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.min.js",
@@ -34,25 +34,25 @@
34
34
  "@babel/preset-react": "7.25.9",
35
35
  "@babel/preset-typescript": "7.26.0",
36
36
  "@chromatic-com/storybook": "3.2.2",
37
- "@formatjs/cli": "^6.3.8",
38
- "@storybook/addon-a11y": "^8.4.2",
39
- "@storybook/addon-actions": "^8.4.2",
40
- "@storybook/addon-essentials": "^8.4.2",
41
- "@storybook/addon-interactions": "^8.4.2",
42
- "@storybook/addon-links": "^8.4.2",
37
+ "@formatjs/cli": "^6.3.9",
38
+ "@storybook/addon-a11y": "^8.4.4",
39
+ "@storybook/addon-actions": "^8.4.4",
40
+ "@storybook/addon-essentials": "^8.4.4",
41
+ "@storybook/addon-interactions": "^8.4.4",
42
+ "@storybook/addon-links": "^8.4.4",
43
43
  "@storybook/addon-webpack5-compiler-babel": "^3.0.3",
44
- "@storybook/manager-api": "^8.4.2",
45
- "@storybook/react": "^8.4.2",
46
- "@storybook/react-webpack5": "^8.4.2",
47
- "@storybook/test": "^8.4.2",
48
- "@storybook/types": "^8.4.2",
44
+ "@storybook/manager-api": "^8.4.4",
45
+ "@storybook/react": "^8.4.4",
46
+ "@storybook/react-webpack5": "^8.4.4",
47
+ "@storybook/test": "^8.4.4",
48
+ "@storybook/types": "^8.4.4",
49
49
  "@testing-library/dom": "10.4.0",
50
50
  "@testing-library/jest-dom": "6.6.3",
51
51
  "@testing-library/react": "16.0.1",
52
52
  "@testing-library/user-event": "14.5.2",
53
53
  "@transferwise/components": "46.77.0",
54
54
  "@transferwise/formatting": "^2.13.0",
55
- "@transferwise/icons": "3.14.0",
55
+ "@transferwise/icons": "3.15.0",
56
56
  "@transferwise/neptune-css": "14.19.1",
57
57
  "@types/node": "22.9.0",
58
58
  "@types/jest": "29.5.14",
@@ -69,13 +69,13 @@
69
69
  "jest-watch-typeahead": "^2.2.2",
70
70
  "nanoid": "5.0.8",
71
71
  "npm-run-all2": "6.2.6",
72
- "postcss": "^8.4.48",
72
+ "postcss": "^8.4.49",
73
73
  "postcss-cli": "^11.0.0",
74
74
  "postcss-import": "^15.1.0",
75
75
  "react": "18.3.1",
76
76
  "react-dom": "18.3.1",
77
- "react-intl": "6.8.7",
78
- "storybook": "^8.4.2",
77
+ "react-intl": "6.8.8",
78
+ "storybook": "^8.4.4",
79
79
  "stylelint": "16.10.0",
80
80
  "stylelint-config-standard": "36.0.1",
81
81
  "stylelint-no-unsupported-browser-features": "8.0.2",
@@ -83,8 +83,8 @@
83
83
  "tsx": "4.19.2",
84
84
  "typescript": "5.6.3",
85
85
  "webpack": "5.96.1",
86
- "@wise/dynamic-flow-renderers": "0.0.0",
87
- "@wise/dynamic-flow-fixtures": "0.0.1"
86
+ "@wise/dynamic-flow-fixtures": "0.0.1",
87
+ "@wise/dynamic-flow-renderers": "0.0.0"
88
88
  },
89
89
  "peerDependencies": {
90
90
  "@transferwise/components": "^46.31",
@@ -101,7 +101,7 @@
101
101
  "nanoid": "5.0.8",
102
102
  "react-webcam": "^7.2.0",
103
103
  "screenfull": "^5.2.0",
104
- "@wise/dynamic-flow-types": "2.27.0"
104
+ "@wise/dynamic-flow-types": "2.28.0"
105
105
  },
106
106
  "scripts": {
107
107
  "dev": "pnpm build:visual-tests && storybook dev -p 3003",