@getyoti/react-face-capture 2.0.0-beta.1 → 2.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v2.0.0
4
+
5
+ See section [v2.0.0-beta.1](#v200-beta1) with previous changes for version
6
+ `2.0.0`.
7
+
8
+ - Design:
9
+
10
+ - The minimum size for the Face Capture in landscape view is 527px.
11
+
12
+ - Improved the help dialogue UI.
13
+
14
+ - Updated Tagalog localisation message for "Only one face allowed" feedback.
15
+
16
+ ### Fixes
17
+
18
+ - Apply portrait or landscape custom styles when the user rotates the device.
19
+ - Fix scale flick when the `FaceCapture` loads.
20
+ - Solve Axios dependency CSRF vulnerability.
21
+
3
22
  ## v2.0.0-beta.1
4
23
 
5
24
  ### New features
package/README.md CHANGED
@@ -25,11 +25,11 @@ The package depends on the following peer dependencies
25
25
  | Browser | Versions |
26
26
  | ------- | ------------------- |
27
27
  | and_chr | 119 |
28
- | chrome | 119,118,117,116 |
29
- | edge | 119,118 |
30
- | firefox | 119,118,117,116 |
28
+ | chrome | 120,119,118,117 |
29
+ | edge | 120,119 |
30
+ | firefox | 120,119,118,117 |
31
31
  | ios_saf | 17.1,17.0,16.6-16.7 |
32
- | safari | 17.1,17.0,16.6,16.5 |
32
+ | safari | 17.2,17.1,17.0,16.6 |
33
33
 
34
34
  </browserSupportTable>
35
35
 
@@ -43,6 +43,8 @@ Finally, some devices might experience poor performance when attempting to detec
43
43
 
44
44
  _Note: `iPhone 7` and older will take a longer time to load the face detector model than more recent devices, and in most cases, will fall back from auto to manual capture mode. If this behaviour is not desired, as an integrator you could disable the manual capture mode altogether, implementing manualCaptureFallback = false. Note, this could increase the load time for old and low-quality devices._
45
45
 
46
+ _Note: It is possible to disable the picture-in-picture feature for Firefox in [its configuration](https://support.mozilla.org/en-US/kb/turn-picture-picture-mode)._
47
+
46
48
  ## React Face Capture
47
49
 
48
50
  ### Install dependency
@@ -64,12 +66,14 @@ import FaceCapture from "@getyoti/react-face-capture"
64
66
  For instance, in webpack you can use the plugin `copy-webpack-plugin` in the following way:
65
67
 
66
68
  ```js
67
- new CopyPlugin([
68
- {
69
- from: path.resolve(__dirname, './node_modules/@getyoti/react-face-capture/assets'),
70
- to: path.resolve(__dirname, './dist/assets')
71
- }
72
- ]),
69
+ new CopyPlugin({
70
+ patterns: [
71
+ {
72
+ from: path.resolve(__dirname, './node_modules/@getyoti/react-face-capture/assets'),
73
+ to: path.resolve(__dirname, './dist/assets'),
74
+ },
75
+ ],
76
+ });
73
77
  ```
74
78
 
75
79
  ### CSS Customization
@@ -216,7 +220,9 @@ to verify that the image captured on the client-side browser with the FCM hasn't
216
220
  modified in any form. Note, the secure mode of Yoti FCM makes a request to Yoti
217
221
  back-end to download the encrypted capture package that takes the
218
222
  photo and create the secure result request. The secure result information will
219
- be returned in `onSuccess` callback (`payload` argument):
223
+ be returned in `onSuccess` callback (`payload` argument). It is the information
224
+ that the _Yoti back-end service_ needs to run a prediction. The service will
225
+ return an error if the `payload` is modified:
220
226
 
221
227
  ```json
222
228
  {