@wise/dynamic-flow-client 3.11.6 → 3.11.8
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 +162 -161
- package/build/main.min.js +1 -1
- package/build/main.mjs +162 -161
- package/build/types/{legacy/step/cameraStep → common}/cameraCapture/CameraCapture.d.ts +3 -2
- package/build/types/{legacy/step/cameraStep → common}/cameraCapture/hooks/useFullScreenOrientationLock.d.ts +2 -2
- package/build/types/common/cameraCapture/tracking/index.d.ts +8 -0
- package/build/types/legacy/common/utils/index.d.ts +5 -5
- package/build/types/legacy/dynamic-flow-types.d.ts +2 -1
- package/build/types/legacy/dynamicFlow/utils/useErrorResponse.d.ts +1 -1
- package/package.json +23 -17
- package/build/types/legacy/step/cameraStep/cameraCapture/tracking/index.d.ts +0 -8
- /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/CameraCapture.messages.d.ts +0 -0
- /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/components/bottomBar/BottomBar.d.ts +0 -0
- /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/components/index.d.ts +0 -0
- /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.d.ts +0 -0
- /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.d.ts +0 -0
- /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/hooks/useVideoConstraints.d.ts +0 -0
- /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/index.d.ts +0 -0
- /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/overlay/Overlay.d.ts +0 -0
- /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.d.ts +0 -0
- /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/screens/index.d.ts +0 -0
- /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/types/index.d.ts +0 -0
- /package/build/types/{legacy/step/cameraStep → common}/cameraCapture/utils/index.d.ts +0 -0
- /package/build/types/{legacy/common → common/cameraCapture}/utils/mobile-utils.d.ts +0 -0
- /package/build/types/{legacy/common → common}/utils/debounce.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.8",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
@@ -26,21 +26,25 @@
|
|
|
26
26
|
"@babel/preset-react": "7.24.7",
|
|
27
27
|
"@babel/preset-typescript": "7.24.7",
|
|
28
28
|
"@cfaester/enzyme-adapter-react-18": "0.8.0",
|
|
29
|
+
"@chromatic-com/storybook": "1.5.0",
|
|
29
30
|
"@formatjs/cli": "^6.2.12",
|
|
30
|
-
"@storybook/addon-a11y": "
|
|
31
|
-
"@storybook/addon-actions": "
|
|
32
|
-
"@storybook/addon-essentials": "
|
|
33
|
-
"@storybook/addon-interactions": "
|
|
34
|
-
"@storybook/addon-links": "
|
|
35
|
-
"@storybook/
|
|
36
|
-
"@storybook/
|
|
37
|
-
"@storybook/
|
|
31
|
+
"@storybook/addon-a11y": "^8.1.10",
|
|
32
|
+
"@storybook/addon-actions": "^8.1.10",
|
|
33
|
+
"@storybook/addon-essentials": "^8.1.10",
|
|
34
|
+
"@storybook/addon-interactions": "^8.1.10",
|
|
35
|
+
"@storybook/addon-links": "^8.1.10",
|
|
36
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
37
|
+
"@storybook/manager-api": "^8.1.10",
|
|
38
|
+
"@storybook/react": "^8.1.10",
|
|
39
|
+
"@storybook/react-webpack5": "^8.1.10",
|
|
40
|
+
"@storybook/test": "^8.1.10",
|
|
41
|
+
"@storybook/types": "^8.1.10",
|
|
38
42
|
"@testing-library/dom": "9.3.4",
|
|
39
43
|
"@testing-library/jest-dom": "6.4.6",
|
|
40
44
|
"@testing-library/react": "14.3.1",
|
|
41
45
|
"@testing-library/react-hooks": "8.0.1",
|
|
42
46
|
"@testing-library/user-event": "14.5.2",
|
|
43
|
-
"@transferwise/components": "46.
|
|
47
|
+
"@transferwise/components": "46.37.0",
|
|
44
48
|
"@transferwise/formatting": "^2.13.0",
|
|
45
49
|
"@transferwise/icons": "3.13.0",
|
|
46
50
|
"@transferwise/neptune-css": "14.10.0",
|
|
@@ -62,26 +66,27 @@
|
|
|
62
66
|
"nanoid": "5.0.7",
|
|
63
67
|
"npm-run-all2": "5.0.2",
|
|
64
68
|
"postcss": "^8.4.38",
|
|
65
|
-
"postcss-cli": "^
|
|
69
|
+
"postcss-cli": "^11.0.0",
|
|
66
70
|
"postcss-import": "^15.1.0",
|
|
67
71
|
"react": "18.3.1",
|
|
68
72
|
"react-dom": "18.3.1",
|
|
69
73
|
"react-intl": "6.6.8",
|
|
70
|
-
"storybook": "
|
|
74
|
+
"storybook": "8.1.10",
|
|
71
75
|
"stylelint": "16.6.1",
|
|
72
|
-
"stylelint-config-standard": "36.0.
|
|
73
|
-
"stylelint-no-unsupported-browser-features": "
|
|
76
|
+
"stylelint-config-standard": "36.0.1",
|
|
77
|
+
"stylelint-no-unsupported-browser-features": "8.0.1",
|
|
74
78
|
"stylelint-value-no-unknown-custom-properties": "6.0.1",
|
|
79
|
+
"tsx": "4.15.6",
|
|
75
80
|
"typescript": "5.4.5",
|
|
76
81
|
"webpack": "5.92.0",
|
|
77
82
|
"@wise/dynamic-flow-fixtures": "0.0.1"
|
|
78
83
|
},
|
|
79
84
|
"peerDependencies": {
|
|
80
85
|
"@transferwise/components": "^46.10",
|
|
81
|
-
"@wise/art": "^2.7.0",
|
|
82
86
|
"@transferwise/formatting": "^2",
|
|
83
87
|
"@transferwise/icons": "^3",
|
|
84
88
|
"@transferwise/neptune-css": "^14",
|
|
89
|
+
"@wise/art": "^2.7.0",
|
|
85
90
|
"react": "^18",
|
|
86
91
|
"react-dom": "^18",
|
|
87
92
|
"react-intl": "^6"
|
|
@@ -93,13 +98,14 @@
|
|
|
93
98
|
"@wise/dynamic-flow-types": "2.15.2"
|
|
94
99
|
},
|
|
95
100
|
"scripts": {
|
|
96
|
-
"dev": "storybook dev -p 3003",
|
|
101
|
+
"dev": "pnpm build:visual-tests && storybook dev -p 3003",
|
|
97
102
|
"build": "rm -rf build && npm-run-all build:*",
|
|
98
103
|
"build:types": "tsc --project ./tsconfig.types.json",
|
|
99
104
|
"build:js": "node ./scripts/build.mjs",
|
|
100
105
|
"build:css": "postcss src/main.css -o build/main.css",
|
|
101
106
|
"build:messages-source": "formatjs extract 'src/**/{*.messages,messages}.{js,ts}' --out-file src/i18n/en.json --format simple && prettier --find-config-path --write src/i18n/*.json",
|
|
102
107
|
"build:compiled-messages": "mkdir -p build/i18n && cp src/i18n/*.json build/i18n",
|
|
108
|
+
"build:visual-tests": "tsx ./scripts/build-visual-tests.mjs",
|
|
103
109
|
"test": "npm-run-all test:once test:tz",
|
|
104
110
|
"test:once": "jest --config jest.config.js --env=jsdom -w 2",
|
|
105
111
|
"test:coverage": "jest --config jest.config.js --env=jsdom --coverage",
|
|
@@ -110,6 +116,6 @@
|
|
|
110
116
|
"lint": "npm-run-all lint:ts lint:css",
|
|
111
117
|
"lint:ts": "eslint 'src/**/*.{js,jsx,ts,tsx}' --quiet",
|
|
112
118
|
"lint:css": "stylelint './src/**/*.css'",
|
|
113
|
-
"build-storybook": "storybook build -c .storybook --disable-telemetry"
|
|
119
|
+
"build-storybook": "pnpm build:visual-tests && storybook build -c .storybook --disable-telemetry"
|
|
114
120
|
}
|
|
115
121
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { CameraDirection } from '@wise/dynamic-flow-types';
|
|
2
|
-
import type { EventHandler, EventName } from '../../../../dynamic-flow-types';
|
|
3
|
-
export declare const trackCameraError: (message: EventName, onEvent: EventHandler | undefined, error: string | DOMException) => void | undefined;
|
|
4
|
-
export declare const trackCameraFeedStarted: (onEvent: EventHandler | undefined, props: {
|
|
5
|
-
direction?: CameraDirection;
|
|
6
|
-
}, stream: MediaStream) => Promise<void | undefined>;
|
|
7
|
-
export declare const trackCameraOrientationLandscape: (onEvent: EventHandler | undefined) => void;
|
|
8
|
-
export declare const trackCameraOrientationLocked: (onEvent: EventHandler | undefined) => void;
|
/package/build/types/{legacy/step/cameraStep → common}/cameraCapture/CameraCapture.messages.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/types/{legacy/step/cameraStep → common}/cameraCapture/hooks/useVideoConstraints.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|