@wise/dynamic-flow-client 3.6.1 → 3.7.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 +925 -1309
- package/build/main.min.js +1 -1
- package/build/main.mjs +247 -631
- package/build/types/revamp/domain/components/StepDomainComponent.d.ts +7 -1
- package/build/types/revamp/renderers/step/BackButton.d.ts +3 -0
- package/build/types/revamp/renderers/stepComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/types.d.ts +4 -1
- package/package.json +5 -5
|
@@ -4,6 +4,7 @@ import type { AnalyticsEventDispatcher } from '../features/events';
|
|
|
4
4
|
import type { StepPolling } from '../features/polling/getStepPolling';
|
|
5
5
|
export type StepDomainComponent = BaseComponent & {
|
|
6
6
|
type: 'step';
|
|
7
|
+
back?: BackNavigation;
|
|
7
8
|
components: DomainComponent[];
|
|
8
9
|
external?: Step['external'];
|
|
9
10
|
loadingState: LoadingState;
|
|
@@ -13,7 +14,12 @@ export type StepDomainComponent = BaseComponent & {
|
|
|
13
14
|
stop: () => void;
|
|
14
15
|
trackEvent: AnalyticsEventDispatcher<string>;
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
+
type BackNavigation = {
|
|
18
|
+
title?: string;
|
|
19
|
+
onClick: () => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const createStepComponent: (stepProps: Pick<StepDomainComponent, "external" | "components" | "back" | "loadingState" | "uid" | "trackEvent"> & {
|
|
17
22
|
stepPolling?: StepPolling | undefined;
|
|
18
23
|
updateComponent: UpdateComponent;
|
|
19
24
|
}) => StepDomainComponent;
|
|
25
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { StepDomainComponent } from '../domain/components/StepDomainComponent';
|
|
3
3
|
import type { StepRendererProps } from './types';
|
|
4
|
-
export declare const stepComponentToProps: ({ external, loadingState, trackEvent }: StepDomainComponent, children: ReactNode) => StepRendererProps;
|
|
4
|
+
export declare const stepComponentToProps: ({ back, external, loadingState, trackEvent }: StepDomainComponent, children: ReactNode) => StepRendererProps;
|
|
@@ -25,6 +25,10 @@ export type RendererProps = StepRendererProps | CoreContainerRendererProps | Ale
|
|
|
25
25
|
export type StepRendererProps = {
|
|
26
26
|
type: 'step';
|
|
27
27
|
control?: string;
|
|
28
|
+
back?: {
|
|
29
|
+
title?: string;
|
|
30
|
+
onClick: () => void;
|
|
31
|
+
};
|
|
28
32
|
external?: {
|
|
29
33
|
url: string;
|
|
30
34
|
};
|
|
@@ -148,7 +152,6 @@ export type SearchRendererProps = {
|
|
|
148
152
|
type: 'search';
|
|
149
153
|
control?: string;
|
|
150
154
|
id: string;
|
|
151
|
-
emptyMessage?: string;
|
|
152
155
|
isLoading: boolean;
|
|
153
156
|
margin: Margin;
|
|
154
157
|
query: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@testing-library/react": "14.3.0",
|
|
41
41
|
"@testing-library/react-hooks": "8.0.1",
|
|
42
42
|
"@testing-library/user-event": "14.5.2",
|
|
43
|
-
"@transferwise/components": "46.
|
|
43
|
+
"@transferwise/components": "46.27.0",
|
|
44
44
|
"@transferwise/formatting": "^2.13.0",
|
|
45
45
|
"@transferwise/icons": "3.13.0",
|
|
46
46
|
"@transferwise/neptune-css": "14.9.6",
|
|
@@ -51,11 +51,10 @@
|
|
|
51
51
|
"@types/react-dom": "18",
|
|
52
52
|
"@types/react-intl": "3.0.0",
|
|
53
53
|
"@types/testing-library__jest-dom": "5.14.9",
|
|
54
|
-
"@wise/art": "2.
|
|
54
|
+
"@wise/art": "2.7.0",
|
|
55
55
|
"@wise/components-theming": "^0.8.4",
|
|
56
56
|
"@wise/forms": "0.3.4",
|
|
57
57
|
"babel-jest": "29.7.0",
|
|
58
|
-
"currency-flags": "4.0.7",
|
|
59
58
|
"enzyme": "^3.11.0",
|
|
60
59
|
"esbuild": "0.20.2",
|
|
61
60
|
"jest": "29.7.0",
|
|
@@ -81,6 +80,7 @@
|
|
|
81
80
|
},
|
|
82
81
|
"peerDependencies": {
|
|
83
82
|
"@transferwise/components": "^46.10",
|
|
83
|
+
"@wise/art": "^2.7.0",
|
|
84
84
|
"@transferwise/formatting": "^2",
|
|
85
85
|
"@transferwise/icons": "^3",
|
|
86
86
|
"@transferwise/neptune-css": "^14",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"classnames": "2.5.1",
|
|
93
93
|
"react-webcam": "^7.2.0",
|
|
94
94
|
"screenfull": "^5.2.0",
|
|
95
|
-
"@wise/dynamic-flow-types": "2.
|
|
95
|
+
"@wise/dynamic-flow-types": "2.14.0"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"dev": "storybook dev -p 3003",
|