@wise/dynamic-flow-client 4.0.1 → 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.
- package/build/i18n/cs.json +46 -3
- package/build/i18n/uk.json +46 -3
- package/build/main.js +478 -436
- package/build/main.mjs +478 -436
- package/build/types/revamp/domain/components/StepDomainComponent.d.ts +4 -2
- package/build/types/revamp/utils/time-utils.d.ts +6 -0
- package/package.json +28 -28
|
@@ -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",
|
|
@@ -30,34 +30,34 @@
|
|
|
30
30
|
"url": "git+https://github.com/transferwise/dynamic-flow.git"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@babel/core": "7.26.
|
|
33
|
+
"@babel/core": "7.26.9",
|
|
34
34
|
"@babel/plugin-syntax-flow": "7.26.0",
|
|
35
35
|
"@babel/plugin-transform-react-jsx": "7.25.9",
|
|
36
|
-
"@babel/preset-env": "7.26.
|
|
36
|
+
"@babel/preset-env": "7.26.9",
|
|
37
37
|
"@babel/preset-react": "7.26.3",
|
|
38
38
|
"@babel/preset-typescript": "7.26.0",
|
|
39
|
-
"@chromatic-com/storybook": "3.2.
|
|
40
|
-
"@formatjs/cli": "^6.
|
|
41
|
-
"@storybook/addon-a11y": "^8.
|
|
42
|
-
"@storybook/addon-actions": "^8.
|
|
43
|
-
"@storybook/addon-essentials": "^8.
|
|
44
|
-
"@storybook/addon-interactions": "^8.
|
|
45
|
-
"@storybook/addon-links": "^8.
|
|
39
|
+
"@chromatic-com/storybook": "3.2.5",
|
|
40
|
+
"@formatjs/cli": "^6.6.1",
|
|
41
|
+
"@storybook/addon-a11y": "^8.6.3",
|
|
42
|
+
"@storybook/addon-actions": "^8.6.3",
|
|
43
|
+
"@storybook/addon-essentials": "^8.6.3",
|
|
44
|
+
"@storybook/addon-interactions": "^8.6.3",
|
|
45
|
+
"@storybook/addon-links": "^8.6.3",
|
|
46
46
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
47
|
-
"@storybook/manager-api": "^8.
|
|
48
|
-
"@storybook/react": "^8.
|
|
49
|
-
"@storybook/react-webpack5": "^8.
|
|
50
|
-
"@storybook/test": "^8.
|
|
51
|
-
"@storybook/types": "^8.
|
|
47
|
+
"@storybook/manager-api": "^8.6.3",
|
|
48
|
+
"@storybook/react": "^8.6.3",
|
|
49
|
+
"@storybook/react-webpack5": "^8.6.3",
|
|
50
|
+
"@storybook/test": "^8.6.3",
|
|
51
|
+
"@storybook/types": "^8.6.3",
|
|
52
52
|
"@testing-library/dom": "10.4.0",
|
|
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.
|
|
57
|
-
"@transferwise/formatting": "^2.13.
|
|
56
|
+
"@transferwise/components": "46.94.0",
|
|
57
|
+
"@transferwise/formatting": "^2.13.1",
|
|
58
58
|
"@transferwise/icons": "3.18.0",
|
|
59
59
|
"@transferwise/neptune-css": "14.22.0",
|
|
60
|
-
"@types/node": "22.
|
|
60
|
+
"@types/node": "22.13.9",
|
|
61
61
|
"@types/jest": "29.5.14",
|
|
62
62
|
"@types/react": "18.3.18",
|
|
63
63
|
"@types/react-dom": "18.3.5",
|
|
@@ -71,22 +71,22 @@
|
|
|
71
71
|
"jest-fetch-mock": "^3.0.3",
|
|
72
72
|
"jest-watch-typeahead": "^2.2.2",
|
|
73
73
|
"npm-run-all2": "7.0.2",
|
|
74
|
-
"postcss": "^8.5.
|
|
74
|
+
"postcss": "^8.5.3",
|
|
75
75
|
"postcss-cli": "^11.0.0",
|
|
76
76
|
"postcss-import": "^16.1.0",
|
|
77
77
|
"react": "18.3.1",
|
|
78
78
|
"react-dom": "18.3.1",
|
|
79
79
|
"react-intl": "6.8.9",
|
|
80
|
-
"storybook": "^8.
|
|
81
|
-
"stylelint": "16.
|
|
80
|
+
"storybook": "^8.6.3",
|
|
81
|
+
"stylelint": "16.15.0",
|
|
82
82
|
"stylelint-config-standard": "36.0.1",
|
|
83
|
-
"stylelint-no-unsupported-browser-features": "8.0.
|
|
83
|
+
"stylelint-no-unsupported-browser-features": "8.0.4",
|
|
84
84
|
"stylelint-value-no-unknown-custom-properties": "6.0.1",
|
|
85
|
-
"tsx": "4.19.
|
|
86
|
-
"typescript": "5.
|
|
87
|
-
"webpack": "5.
|
|
88
|
-
"@wise/dynamic-flow-
|
|
89
|
-
"@wise/dynamic-flow-
|
|
85
|
+
"tsx": "4.19.3",
|
|
86
|
+
"typescript": "5.8.2",
|
|
87
|
+
"webpack": "5.98.0",
|
|
88
|
+
"@wise/dynamic-flow-renderers": "0.0.0",
|
|
89
|
+
"@wise/dynamic-flow-fixtures": "0.0.1"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"@transferwise/components": "^46.92.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.
|
|
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",
|