@getyoti/react-face-capture 2.0.0-beta.1 → 2.1.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,47 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v2.1.0
4
+
5
+ ### New features
6
+
7
+ - Improve security checks.
8
+ - UI improvements on help dialogue.
9
+ - Change feedback message for `OVERCONSTRAINED` and `NO_CAMERA` errors from
10
+ `Please try again` to `Please try using a different device`.
11
+
12
+ ### Fixes
13
+
14
+ - Remove the duplication of `Preparing camera` message when the FCM loads.
15
+ - Fix video layout bug on iOS's 17.X version.
16
+ - Improve the `scale` feature to fit better the whole container when the FCM is
17
+ scaled.
18
+ - Mute Help dialogue video stream.
19
+ - Adjust the distribution of icons and text of `Help` to avoid visual bugs
20
+ in certain languages.
21
+
22
+ #### Peer dependencies updates
23
+
24
+ - Update `axios` dependency from `1.6.2` to `1.6.5`.
25
+
26
+ ## v2.0.0
27
+
28
+ See section [v2.0.0-beta.1](#v200-beta1) with previous changes for version
29
+ `2.0.0`.
30
+
31
+ - Design:
32
+
33
+ - The minimum size for the Face Capture in landscape view is 527px.
34
+
35
+ - Improved the help dialogue UI.
36
+
37
+ - Updated Tagalog localisation message for "Only one face allowed" feedback.
38
+
39
+ ### Fixes
40
+
41
+ - Apply portrait or landscape custom styles when the user rotates the device.
42
+ - Fix scale flick when the `FaceCapture` loads.
43
+ - Solve Axios dependency CSRF vulnerability.
44
+
3
45
  ## v2.0.0-beta.1
4
46
 
5
47
  ### New features
package/README.md CHANGED
@@ -24,12 +24,12 @@ The package depends on the following peer dependencies
24
24
 
25
25
  | Browser | Versions |
26
26
  | ------- | ------------------- |
27
- | and_chr | 119 |
28
- | chrome | 119,118,117,116 |
29
- | edge | 119,118 |
30
- | firefox | 119,118,117,116 |
31
- | ios_saf | 17.1,17.0,16.6-16.7 |
32
- | safari | 17.1,17.0,16.6,16.5 |
27
+ | and_chr | 121 |
28
+ | chrome | 121,120,119,118 |
29
+ | edge | 121,120 |
30
+ | firefox | 122,121,120,119 |
31
+ | ios_saf | 17.3,17.2,17.1 |
32
+ | safari | 17.3,17.2,17.1,17.0 |
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
  {