@getyoti/react-face-capture 2.2.1-dev.1 → 2.3.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 +27 -11
- package/README.md +13 -9
- package/index.d.ts +3 -4
- package/index.js +7 -7
- package/package.json +1 -1
- package/vanilla/index.js +10 -10
- package/vanilla/index.js.LICENSE.txt +2 -2
- package/vanilla/index.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,37 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
-
## v2.
|
|
3
|
+
## v2.3.0
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Notices
|
|
6
|
+
|
|
7
|
+
- Localisation has been thoroughly revised. All languages have been updated to improve correctness and punctuation.
|
|
8
|
+
- Reduce the number of retries to 3 for some errors so that the onError is triggered earlier.
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
### New features
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
- Add new property `numStableFrames` to determine how many frames are used for the stability check.
|
|
13
|
+
The minimum value is 3 and the maximum is 6.
|
|
14
|
+
- Implemented localisation language:
|
|
15
|
+
- `hr-HR`: Croatian
|
|
16
|
+
|
|
17
|
+
### Fixes
|
|
11
18
|
|
|
12
|
-
|
|
13
|
-
The minimum value is 2 and the maximum is 5.
|
|
19
|
+
- Fix text position and margin on initial guidance for large languages.
|
|
14
20
|
|
|
15
|
-
|
|
16
|
-
in future versions.
|
|
21
|
+
## v2.2.1
|
|
17
22
|
|
|
18
23
|
### Notices
|
|
19
24
|
|
|
20
|
-
- Improved
|
|
25
|
+
- Improved face validations performance, resulting in faster image captures.
|
|
26
|
+
- Improved face stability validation. Now it is easier to capture the image.
|
|
27
|
+
|
|
28
|
+
### Fixes
|
|
29
|
+
|
|
30
|
+
- Fixed a bug causing undesired triggers of the `onError` callback when
|
|
31
|
+
`userRetryError` was set to `false`.
|
|
32
|
+
- A note for `userRetryError` property has been added in [`2.0.1-beta.1`](#v200-beta1) in the breaking changes section.
|
|
33
|
+
- `Right-to-left` language localisations now use the proper alignment.
|
|
34
|
+
- Fix wrong translation for "Move to the center" message for Portuguese (Brazil).
|
|
21
35
|
|
|
22
36
|
## v2.2.0
|
|
23
37
|
|
|
@@ -105,7 +119,7 @@ See section [v2.0.0-beta.1](#v200-beta1) with previous changes for version
|
|
|
105
119
|
|
|
106
120
|
- New property to allow auto-reload of the secure session before the session expires: `autoSessionReload`.
|
|
107
121
|
|
|
108
|
-
- New property to let the user handle errors by retrying several times: `userRetryError`.
|
|
122
|
+
- New property to let the user handle errors by retrying several times: `userRetryError`. It is enabled by default.
|
|
109
123
|
|
|
110
124
|
- New design:
|
|
111
125
|
|
|
@@ -170,6 +184,8 @@ See section [v2.0.0-beta.1](#v200-beta1) with previous changes for version
|
|
|
170
184
|
|
|
171
185
|
- The minimum size for the Face Capture in landscape view is 576px.
|
|
172
186
|
|
|
187
|
+
- As the `userRetryError` is set to true by default, the `onError` will not be triggered until the user runs out of tries.
|
|
188
|
+
|
|
173
189
|
#### Peer dependencies updates
|
|
174
190
|
|
|
175
191
|
- Updated `react` dependency version to be at least `16.14.0` and a maximum of `18.2.0`.
|
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 |
|
|
28
|
-
| chrome |
|
|
29
|
-
| edge |
|
|
30
|
-
| firefox |
|
|
31
|
-
| ios_saf | 17.
|
|
32
|
-
| safari | 17.4,17.3,17.2
|
|
27
|
+
| and_chr | 127 |
|
|
28
|
+
| chrome | 127,126,125,124 |
|
|
29
|
+
| edge | 127,126 |
|
|
30
|
+
| firefox | 129,128,127,126 |
|
|
31
|
+
| ios_saf | 17.5,17.4,17.3 |
|
|
32
|
+
| safari | 17.5,17.4,17.3,17.2 |
|
|
33
33
|
|
|
34
34
|
</browserSupportTable>
|
|
35
35
|
|
|
@@ -83,7 +83,7 @@ Now, it is possible to customize the style by changing the following CSS propert
|
|
|
83
83
|
- `--fcm-primary-button-background-color` changes the background color in primary buttons (Take picture, Try again, ... ).
|
|
84
84
|
- `--fcm-primary-button-background-color-hover` changes the background color in primary buttons (Take picture, Try again, ... ) when is hovered.
|
|
85
85
|
- `--fcm-primary-button-text-color` changes the text color in primary buttons (Take picture, Try again, ... ).
|
|
86
|
-
- `--fcm-secondary-button-background-color` changes the background color in
|
|
86
|
+
- `--fcm-secondary-button-background-color` changes the background color in secondary buttons (Get help).
|
|
87
87
|
- `--fcm-secondary-button-text-color` changes the text color in secondary buttons (Get help).
|
|
88
88
|
- `--fcm-secondary-button-text-color-hover` changes the text color in secondary buttons (Get help) when the button is hovered.
|
|
89
89
|
- `--fcm-font-family` sets the font family.
|
|
@@ -129,8 +129,7 @@ The CSS custom properties must be defined using the `:root` CSS selector. Here i
|
|
|
129
129
|
| encryptImage | Boolean | `true` | - | Encrypt the image inside the payload argument on the `onSuccess` callback when it runs the secure mode. |
|
|
130
130
|
| allowBackgroundFaces | Boolean | `false` | - | Allows faces to be present in the background when the image is being captured. The face capture will return a cropped image with the main face when set to `true`. Note: This feature is designed for retail terminals and unsuitable for online user's face capture. |
|
|
131
131
|
| faceSelectionMethod | String `center/area` | `center` | - | Defines where the main face can be placed, in the center or anywhere in the image. Note: This feature is designed for retail terminals and unsuitable for online user's face capture. It is recommend to enable `allowBackgroundFaces` when `faceSelectionMethod` is set to `area`. |
|
|
132
|
-
|
|
|
133
|
-
| numStableFrames | Number | 4 | - | Determines how many frames are used for the stability check. The minimum value is 2 and the maximum is 5. |
|
|
132
|
+
| numStableFrames | Number | 4 | - | Determines how many frames are used for the stability check. The minimum value is 3 and the maximum is 6. |
|
|
134
133
|
|
|
135
134
|
**(\*)**
|
|
136
135
|
This field is only mandatory when using the secure mode. (secure = true)
|
|
@@ -154,6 +153,7 @@ Current languages supported:
|
|
|
154
153
|
- `fr-FR`: French
|
|
155
154
|
- `he-IL`: Hebrew
|
|
156
155
|
- `hi-IN`: Hindi
|
|
156
|
+
- `hr-HR`: Croatian
|
|
157
157
|
- `hu-HU`: Hungarian
|
|
158
158
|
- `hy-AM`: Armenian
|
|
159
159
|
- `id-ID`: Bahasa
|
|
@@ -353,3 +353,7 @@ Face Capture uses the comment `/* webpackIgnore: true */` order to tell webpack
|
|
|
353
353
|
that it does not need to resolve the dependency locally so this comment cannot
|
|
354
354
|
be removed before webpack builds the final javascript files for the web
|
|
355
355
|
application.
|
|
356
|
+
|
|
357
|
+
### iOS distorted layout
|
|
358
|
+
|
|
359
|
+
We are aware of a rare display issue on iOS devices which can make the video element appear distorted. This issue is not related to the FCM but is an open issue regarding iOS video elements. Refreshing or reloading will resolve this, and it should not happen often.
|
package/index.d.ts
CHANGED
|
@@ -116,6 +116,8 @@ declare module '@getyoti/react-face-capture' {
|
|
|
116
116
|
HE_IL = 'he-IL',
|
|
117
117
|
HI = 'hi',
|
|
118
118
|
HI_IN = 'hi-IN',
|
|
119
|
+
HR = 'hr',
|
|
120
|
+
HR_HR = 'hr-HR',
|
|
119
121
|
HU = 'hu',
|
|
120
122
|
HU_HU = 'hu-HU',
|
|
121
123
|
HY = 'hy',
|
|
@@ -251,11 +253,8 @@ declare module '@getyoti/react-face-capture' {
|
|
|
251
253
|
* 'allowBackgroundFaces' when 'faceSelectionMethod' is set to 'area'.
|
|
252
254
|
* (default:center) */
|
|
253
255
|
faceSelectionMethod?: FACE_SELECTION_METHOD;
|
|
254
|
-
/** Configures how strict the stability check will be.
|
|
255
|
-
* The minimum value is 0.4 and the maximum value is 0.9. */
|
|
256
|
-
faceStabilityThreshold: number;
|
|
257
256
|
/** Determines how many frames are used for the stability check.
|
|
258
|
-
* The minimum value is
|
|
257
|
+
* The minimum value is 3 and the maximum is 6. */
|
|
259
258
|
numStableFrames: number;
|
|
260
259
|
}
|
|
261
260
|
|