@wise/dynamic-flow-client 4.0.2 → 4.1.0-experimental-6bb6f02
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,4 +1,4 @@
|
|
|
1
|
-
import type { BaseComponent, DomainComponent, LoadingState, LocalValue, OnAction, UpdateComponent } from '../types';
|
|
1
|
+
import type { BaseComponent, DomainComponent, LoadingState, LocalValue, OnAction, OnRefresh, UpdateComponent } from '../types';
|
|
2
2
|
import type { Step } from '@wise/dynamic-flow-types/build/next';
|
|
3
3
|
import type { AnalyticsEventDispatcher } from '../features/events';
|
|
4
4
|
import type { StepPolling } from '../features/polling/getStepPolling';
|
|
@@ -15,8 +15,10 @@ export type StepDomainComponent = BaseComponent & {
|
|
|
15
15
|
title?: string;
|
|
16
16
|
getChildren: () => DomainComponent[];
|
|
17
17
|
getLocalValue: () => LocalValue;
|
|
18
|
+
getRefreshAfter: () => string | undefined;
|
|
18
19
|
setLoadingState: (loadingState: LoadingState) => void;
|
|
19
20
|
onAction: OnAction;
|
|
21
|
+
onRefresh: OnRefresh;
|
|
20
22
|
stop: () => void;
|
|
21
23
|
trackEvent: AnalyticsEventDispatcher<string>;
|
|
22
24
|
};
|
|
@@ -24,7 +26,7 @@ type BackNavigation = {
|
|
|
24
26
|
title?: string;
|
|
25
27
|
onClick: () => void;
|
|
26
28
|
};
|
|
27
|
-
export declare const createStepComponent: (stepProps: Pick<StepDomainComponent, "uid" | "back" | "components" | "control" | "description" | "error" | "external" | "loadingState" | "step" | "title" | "trackEvent" | "onAction"> & {
|
|
29
|
+
export declare const createStepComponent: (stepProps: Pick<StepDomainComponent, "uid" | "back" | "components" | "control" | "description" | "error" | "external" | "loadingState" | "step" | "title" | "trackEvent" | "onAction" | "onRefresh"> & {
|
|
28
30
|
stepPolling?: StepPolling;
|
|
29
31
|
updateComponent: UpdateComponent;
|
|
30
32
|
}) => StepDomainComponent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0-experimental-6bb6f02",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@testing-library/jest-dom": "6.6.3",
|
|
54
54
|
"@testing-library/react": "16.2.0",
|
|
55
55
|
"@testing-library/user-event": "14.6.1",
|
|
56
|
-
"@transferwise/components": "46.
|
|
56
|
+
"@transferwise/components": "46.94.0",
|
|
57
57
|
"@transferwise/formatting": "^2.13.1",
|
|
58
58
|
"@transferwise/icons": "3.18.0",
|
|
59
59
|
"@transferwise/neptune-css": "14.22.0",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"classnames": "2.5.1",
|
|
103
103
|
"react-webcam": "^7.2.0",
|
|
104
104
|
"screenfull": "^5.2.0",
|
|
105
|
-
"@wise/dynamic-flow-types": "3.0
|
|
105
|
+
"@wise/dynamic-flow-types": "3.1.0-experimental-6bb6f02"
|
|
106
106
|
},
|
|
107
107
|
"scripts": {
|
|
108
108
|
"dev": "pnpm build:visual-tests && storybook dev -p 3003",
|