@wise/dynamic-flow-client 2.2.0-beta-f39e6a.11 → 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.
- package/build/i18n/en.json +0 -2
- package/build/main.css +0 -19
- package/build/main.js +510 -570
- package/build/main.min.js +1 -1
- package/build/types/common/contexts/eventsContext/EventsContext.d.ts +1 -1
- package/build/types/common/utils/index.d.ts +0 -1
- package/build/types/layout/search/SearchInput.d.ts +2 -1
- package/build/types/step/cameraStep/cameraCapture/components/index.d.ts +0 -1
- package/package.json +65 -65
- package/build/types/common/utils/mobile-utils.d.ts +0 -4
- package/build/types/step/cameraStep/cameraCapture/components/orientationLock/OrientationLock.d.ts +0 -2
- package/build/types/step/cameraStep/cameraCapture/components/orientationLock/OrientationLock.messages.d.ts +0 -13
|
@@ -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.2.0
|
|
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",
|
|
@@ -17,86 +17,67 @@
|
|
|
17
17
|
"fullname": "transferwise/dynamic-flow",
|
|
18
18
|
"url": "git+https://github.com/transferwise/dynamic-flow.git"
|
|
19
19
|
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"dev": "storybook dev -p 3003",
|
|
22
|
-
"build": "rm -rf build && npm-run-all build:*",
|
|
23
|
-
"build:types": "tsc --project ./tsconfig.types.json",
|
|
24
|
-
"build:js": "node ./scripts/build.mjs",
|
|
25
|
-
"build:css": "postcss src/main.css -o build/main.css",
|
|
26
|
-
"build:messages-source": "formatjs extract 'src/**/*.messages.{js,ts}' --out-file src/i18n/en.json --format simple && prettier --find-config-path --write src/i18n/*.json",
|
|
27
|
-
"build:compiled-messages": "mkdir -p build/i18n && cp src/i18n/*.json build/i18n",
|
|
28
|
-
"test": "npm-run-all test:once test:tz",
|
|
29
|
-
"test:once": "jest --config jest.config.js --env=jsdom -w 2",
|
|
30
|
-
"test:coverage": "jest --config jest.config.js --env=jsdom --coverage",
|
|
31
|
-
"test:tz": "TZ=US/Pacific jest ./src/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.errors.spec.js ./src/formControl/FormControl.spec.js",
|
|
32
|
-
"test:watch": "pnpm test:once --watch",
|
|
33
|
-
"types": "pnpm tsc",
|
|
34
|
-
"lint": "npm-run-all lint:ts lint:css",
|
|
35
|
-
"lint:ts": "eslint 'src/**/*.{js,jsx,ts,tsx}' --quiet",
|
|
36
|
-
"lint:css": "stylelint './src/**/*.css'",
|
|
37
|
-
"build-storybook": "storybook build -c .storybook"
|
|
38
|
-
},
|
|
39
20
|
"devDependencies": {
|
|
40
|
-
"@babel/core": "7.
|
|
41
|
-
"@babel/plugin-syntax-flow": "7.
|
|
42
|
-
"@babel/plugin-transform-react-jsx": "7.
|
|
43
|
-
"@babel/preset-env": "7.
|
|
44
|
-
"@babel/preset-react": "7.
|
|
45
|
-
"@babel/preset-typescript": "7.
|
|
46
|
-
"@cfaester/enzyme-adapter-react-18": "0.7.
|
|
47
|
-
"@formatjs/cli": "^4.8.
|
|
48
|
-
"@storybook/addon-a11y": "7.
|
|
49
|
-
"@storybook/addon-actions": "7.
|
|
50
|
-
"@storybook/addon-essentials": "7.
|
|
51
|
-
"@storybook/addon-interactions": "7.
|
|
52
|
-
"@storybook/addon-links": "7.
|
|
53
|
-
"@storybook/react": "7.
|
|
54
|
-
"@storybook/react-webpack5": "7.
|
|
55
|
-
"@storybook/testing-library": "0.
|
|
56
|
-
"@testing-library/dom": "9.
|
|
57
|
-
"@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",
|
|
58
39
|
"@testing-library/react": "14.0.0",
|
|
59
40
|
"@testing-library/react-hooks": "8.0.1",
|
|
60
|
-
"@testing-library/user-event": "
|
|
61
|
-
"@transferwise/components": "45.
|
|
62
|
-
"@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",
|
|
63
44
|
"@transferwise/formatting": "^2.10.0",
|
|
64
|
-
"@transferwise/icons": "3.
|
|
65
|
-
"@transferwise/neptune-css": "14.
|
|
66
|
-
"@transferwise/neptune-tokens": "8.5.
|
|
67
|
-
"@types/enzyme": "^3.10.
|
|
68
|
-
"@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",
|
|
69
50
|
"@types/react": "18",
|
|
70
51
|
"@types/react-dom": "18",
|
|
71
|
-
"@types/testing-library__jest-dom": "5.9
|
|
72
|
-
"@wise/art": "2.
|
|
73
|
-
"@wise/components-theming": "^0.
|
|
74
|
-
"
|
|
75
|
-
"babel-jest": "29.5.0",
|
|
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",
|
|
76
56
|
"currency-flags": "4.0.7",
|
|
77
57
|
"enzyme": "^3.11.0",
|
|
78
|
-
"esbuild": "0.
|
|
79
|
-
"eslint": "8.
|
|
80
|
-
"eslint-plugin-storybook": "0.6.
|
|
81
|
-
"jest": "29.
|
|
82
|
-
"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",
|
|
83
63
|
"jest-fetch-mock": "^3.0.3",
|
|
84
64
|
"jest-watch-typeahead": "^2.2.2",
|
|
85
65
|
"npm-run-all": "4.1.5",
|
|
86
66
|
"postcss": "^8.4.21",
|
|
87
67
|
"postcss-cli": "^10.1.0",
|
|
88
68
|
"postcss-import": "^15.1.0",
|
|
89
|
-
"prettier": "2.8.
|
|
69
|
+
"prettier": "2.8.8",
|
|
90
70
|
"react": "18.2.0",
|
|
91
71
|
"react-dom": "18.2.0",
|
|
92
|
-
"react-intl": "6.
|
|
93
|
-
"storybook": "7.
|
|
72
|
+
"react-intl": "6.4.7",
|
|
73
|
+
"storybook": "7.4.6",
|
|
94
74
|
"stylelint": "14.16.1",
|
|
95
75
|
"stylelint-config-standard": "25.0.0",
|
|
96
76
|
"stylelint-no-unsupported-browser-features": "5.0.4",
|
|
97
77
|
"stylelint-value-no-unknown-custom-properties": "4.0.0",
|
|
98
78
|
"typescript": "4.9.5",
|
|
99
|
-
"webpack": "5.
|
|
79
|
+
"webpack": "5.89.0",
|
|
80
|
+
"@wise/dynamic-flow-fixtures": "0.0.1"
|
|
100
81
|
},
|
|
101
82
|
"peerDependencies": {
|
|
102
83
|
"@transferwise/components": "^43",
|
|
@@ -108,10 +89,29 @@
|
|
|
108
89
|
"react-intl": "^6"
|
|
109
90
|
},
|
|
110
91
|
"dependencies": {
|
|
111
|
-
"@wise/dynamic-flow-types": "workspace:*",
|
|
112
92
|
"classnames": "2.3.2",
|
|
113
|
-
"react-webcam": "^7.
|
|
114
|
-
"screenfull": "^5.0
|
|
93
|
+
"react-webcam": "^7.1.1",
|
|
94
|
+
"screenfull": "^5.2.0",
|
|
95
|
+
"@wise/dynamic-flow-types": "2.0.1"
|
|
115
96
|
},
|
|
116
|
-
"prettier": "@transferwise/eslint-config/.prettierrc.js"
|
|
117
|
-
|
|
97
|
+
"prettier": "@transferwise/eslint-config/.prettierrc.js",
|
|
98
|
+
"scripts": {
|
|
99
|
+
"dev": "storybook dev -p 3003",
|
|
100
|
+
"build": "rm -rf build && npm-run-all build:*",
|
|
101
|
+
"build:types": "tsc --project ./tsconfig.types.json",
|
|
102
|
+
"build:js": "node ./scripts/build.mjs",
|
|
103
|
+
"build:css": "postcss src/main.css -o build/main.css",
|
|
104
|
+
"build:messages-source": "formatjs extract 'src/**/*.messages.{js,ts}' --out-file src/i18n/en.json --format simple && prettier --find-config-path --write src/i18n/*.json",
|
|
105
|
+
"build:compiled-messages": "mkdir -p build/i18n && cp src/i18n/*.json build/i18n",
|
|
106
|
+
"test": "npm-run-all test:once test:tz",
|
|
107
|
+
"test:once": "jest --config jest.config.js --env=jsdom -w 2",
|
|
108
|
+
"test:coverage": "jest --config jest.config.js --env=jsdom --coverage",
|
|
109
|
+
"test:tz": "TZ=US/Pacific jest ./src/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.errors.spec.js ./src/formControl/FormControl.spec.js",
|
|
110
|
+
"test:watch": "pnpm test:once --watch",
|
|
111
|
+
"types": "pnpm tsc",
|
|
112
|
+
"lint": "npm-run-all lint:ts lint:css",
|
|
113
|
+
"lint:ts": "eslint 'src/**/*.{js,jsx,ts,tsx}' --quiet",
|
|
114
|
+
"lint:css": "stylelint './src/**/*.css'",
|
|
115
|
+
"build-storybook": "storybook build -c .storybook"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const isMobile: () => boolean;
|
|
2
|
-
export declare const isMobileUA: (userAgent?: string) => boolean;
|
|
3
|
-
export declare const isMobileScreenSize: (width?: number, height?: number) => boolean;
|
|
4
|
-
export declare const isTouchScreen: (navigator?: Navigator, matchMedia?: ((query: string) => MediaQueryList) & typeof matchMedia) => boolean;
|