@wise/dynamic-flow-client 2.1.5 → 2.2.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 React from 'react';
|
|
2
|
-
export type EventName = 'Dynamic Flow - Flow Started' | 'Dynamic Flow - Flow Finished' | 'Dynamic Flow - Step Started' | 'Dynamic Flow - Step Submitted' | 'Dynamic Flow - Step Refreshed' | 'Dynamic Flow - OneOf Selected' | 'Dynamic Flow - PersistAsync' | 'Dynamic Flow - ValidationAsync' | 'Dynamic Flow - Camera Permission Denied' | 'Dynamic Flow - Camera Feed Started' | 'Dynamic Flow - Camera Not Supported' | 'Dynamic Flow - invalid submission response' | 'Dynamic Flow - onAction supressed' | 'Dynamic Flow - OneOf Searched';
|
|
2
|
+
export type EventName = 'Dynamic Flow - Flow Started' | 'Dynamic Flow - Flow Finished' | 'Dynamic Flow - Step Started' | 'Dynamic Flow - Step Submitted' | 'Dynamic Flow - Step Refreshed' | 'Dynamic Flow - OneOf Selected' | 'Dynamic Flow - PersistAsync' | 'Dynamic Flow - ValidationAsync' | 'Dynamic Flow - Camera Permission Denied' | 'Dynamic Flow - Camera Feed Started' | 'Dynamic Flow - Camera Not Supported' | 'Dynamic Flow - Search Started' | 'Dynamic Flow - Search Result Selected' | 'Dynamic Flow - invalid submission response' | 'Dynamic Flow - onAction supressed' | 'Dynamic Flow - OneOf Searched';
|
|
3
3
|
export type EventHandler = (eventName: EventName, properties: Record<string, unknown>) => void;
|
|
4
4
|
type Props = {
|
|
5
5
|
metadata?: Record<string, unknown> & {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
type SearchInputProps = {
|
|
2
2
|
title: string;
|
|
3
3
|
value: string;
|
|
4
|
+
onFocus: () => void;
|
|
4
5
|
onChange: (value: string) => void;
|
|
5
6
|
};
|
|
6
|
-
export declare const SearchInput: ({ title, value, onChange }: SearchInputProps) => JSX.Element;
|
|
7
|
+
export declare const SearchInput: ({ title, value, onFocus, onChange }: SearchInputProps) => JSX.Element;
|
|
7
8
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
@@ -18,65 +18,65 @@
|
|
|
18
18
|
"url": "git+https://github.com/transferwise/dynamic-flow.git"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@babel/core": "7.
|
|
22
|
-
"@babel/plugin-syntax-flow": "7.
|
|
23
|
-
"@babel/plugin-transform-react-jsx": "7.
|
|
24
|
-
"@babel/preset-env": "7.
|
|
25
|
-
"@babel/preset-react": "7.
|
|
26
|
-
"@babel/preset-typescript": "7.
|
|
27
|
-
"@cfaester/enzyme-adapter-react-18": "0.7.
|
|
28
|
-
"@formatjs/cli": "^4.8.
|
|
29
|
-
"@storybook/addon-a11y": "7.
|
|
30
|
-
"@storybook/addon-actions": "7.
|
|
31
|
-
"@storybook/addon-essentials": "7.
|
|
32
|
-
"@storybook/addon-interactions": "7.
|
|
33
|
-
"@storybook/addon-links": "7.
|
|
34
|
-
"@storybook/react": "7.
|
|
35
|
-
"@storybook/react-webpack5": "7.
|
|
36
|
-
"@storybook/testing-library": "0.
|
|
37
|
-
"@testing-library/dom": "9.
|
|
38
|
-
"@testing-library/jest-dom": "
|
|
21
|
+
"@babel/core": "7.23.2",
|
|
22
|
+
"@babel/plugin-syntax-flow": "7.22.5",
|
|
23
|
+
"@babel/plugin-transform-react-jsx": "7.22.15",
|
|
24
|
+
"@babel/preset-env": "7.23.2",
|
|
25
|
+
"@babel/preset-react": "7.22.15",
|
|
26
|
+
"@babel/preset-typescript": "7.23.2",
|
|
27
|
+
"@cfaester/enzyme-adapter-react-18": "0.7.1",
|
|
28
|
+
"@formatjs/cli": "^4.8.4",
|
|
29
|
+
"@storybook/addon-a11y": "7.4.6",
|
|
30
|
+
"@storybook/addon-actions": "7.4.6",
|
|
31
|
+
"@storybook/addon-essentials": "7.4.6",
|
|
32
|
+
"@storybook/addon-interactions": "7.4.6",
|
|
33
|
+
"@storybook/addon-links": "7.4.6",
|
|
34
|
+
"@storybook/react": "7.4.6",
|
|
35
|
+
"@storybook/react-webpack5": "7.4.6",
|
|
36
|
+
"@storybook/testing-library": "0.2.2",
|
|
37
|
+
"@testing-library/dom": "9.3.3",
|
|
38
|
+
"@testing-library/jest-dom": "6.1.4",
|
|
39
39
|
"@testing-library/react": "14.0.0",
|
|
40
40
|
"@testing-library/react-hooks": "8.0.1",
|
|
41
|
-
"@testing-library/user-event": "
|
|
42
|
-
"@transferwise/components": "45.
|
|
43
|
-
"@transferwise/eslint-config": "8.0
|
|
41
|
+
"@testing-library/user-event": "14.5.1",
|
|
42
|
+
"@transferwise/components": "45.17.1",
|
|
43
|
+
"@transferwise/eslint-config": "8.2.0",
|
|
44
44
|
"@transferwise/formatting": "^2.10.0",
|
|
45
|
-
"@transferwise/icons": "3.
|
|
46
|
-
"@transferwise/neptune-css": "14.
|
|
47
|
-
"@transferwise/neptune-tokens": "8.5.
|
|
48
|
-
"@types/enzyme": "^3.10.
|
|
49
|
-
"@types/jest": "29.
|
|
45
|
+
"@transferwise/icons": "3.10.0",
|
|
46
|
+
"@transferwise/neptune-css": "14.6.1",
|
|
47
|
+
"@transferwise/neptune-tokens": "8.5.1",
|
|
48
|
+
"@types/enzyme": "^3.10.14",
|
|
49
|
+
"@types/jest": "29.5.5",
|
|
50
50
|
"@types/react": "18",
|
|
51
51
|
"@types/react-dom": "18",
|
|
52
|
-
"@types/testing-library__jest-dom": "5.9
|
|
53
|
-
"@wise/art": "2.
|
|
54
|
-
"@wise/components-theming": "^0.
|
|
55
|
-
"babel-jest": "29.
|
|
52
|
+
"@types/testing-library__jest-dom": "5.14.9",
|
|
53
|
+
"@wise/art": "2.8.4",
|
|
54
|
+
"@wise/components-theming": "^0.8.4",
|
|
55
|
+
"babel-jest": "29.7.0",
|
|
56
56
|
"currency-flags": "4.0.7",
|
|
57
57
|
"enzyme": "^3.11.0",
|
|
58
|
-
"esbuild": "0.
|
|
59
|
-
"eslint": "8.
|
|
60
|
-
"eslint-plugin-storybook": "0.6.
|
|
61
|
-
"jest": "29.
|
|
62
|
-
"jest-environment-jsdom": "29.
|
|
58
|
+
"esbuild": "0.19.4",
|
|
59
|
+
"eslint": "8.51.0",
|
|
60
|
+
"eslint-plugin-storybook": "0.6.15",
|
|
61
|
+
"jest": "29.7.0",
|
|
62
|
+
"jest-environment-jsdom": "29.7.0",
|
|
63
63
|
"jest-fetch-mock": "^3.0.3",
|
|
64
64
|
"jest-watch-typeahead": "^2.2.2",
|
|
65
65
|
"npm-run-all": "4.1.5",
|
|
66
66
|
"postcss": "^8.4.21",
|
|
67
67
|
"postcss-cli": "^10.1.0",
|
|
68
68
|
"postcss-import": "^15.1.0",
|
|
69
|
-
"prettier": "2.8.
|
|
69
|
+
"prettier": "2.8.8",
|
|
70
70
|
"react": "18.2.0",
|
|
71
71
|
"react-dom": "18.2.0",
|
|
72
|
-
"react-intl": "6.
|
|
73
|
-
"storybook": "7.
|
|
72
|
+
"react-intl": "6.4.7",
|
|
73
|
+
"storybook": "7.4.6",
|
|
74
74
|
"stylelint": "14.16.1",
|
|
75
75
|
"stylelint-config-standard": "25.0.0",
|
|
76
76
|
"stylelint-no-unsupported-browser-features": "5.0.4",
|
|
77
77
|
"stylelint-value-no-unknown-custom-properties": "4.0.0",
|
|
78
78
|
"typescript": "4.9.5",
|
|
79
|
-
"webpack": "5.
|
|
79
|
+
"webpack": "5.89.0",
|
|
80
80
|
"@wise/dynamic-flow-fixtures": "0.0.1"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
92
|
"classnames": "2.3.2",
|
|
93
|
-
"react-webcam": "^7.
|
|
94
|
-
"screenfull": "^5.0
|
|
93
|
+
"react-webcam": "^7.1.1",
|
|
94
|
+
"screenfull": "^5.2.0",
|
|
95
95
|
"@wise/dynamic-flow-types": "2.0.1"
|
|
96
96
|
},
|
|
97
97
|
"prettier": "@transferwise/eslint-config/.prettierrc.js",
|