@getyoti/react-face-capture 2.2.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 +18 -0
- package/README.md +11 -5
- package/index.d.ts +5 -0
- package/index.js +7 -7
- package/package.json +1 -1
- package/vanilla/index.js +10 -10
- package/vanilla/index.js.LICENSE.txt +1 -1
- package/vanilla/index.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v2.3.0
|
|
4
|
+
|
|
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.
|
|
9
|
+
|
|
10
|
+
### New features
|
|
11
|
+
|
|
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
|
|
18
|
+
|
|
19
|
+
- Fix text position and margin on initial guidance for large languages.
|
|
20
|
+
|
|
3
21
|
## v2.2.1
|
|
4
22
|
|
|
5
23
|
### Notices
|
package/README.md
CHANGED
|
@@ -24,10 +24,10 @@ The package depends on the following peer dependencies
|
|
|
24
24
|
|
|
25
25
|
| Browser | Versions |
|
|
26
26
|
| ------- | ------------------- |
|
|
27
|
-
| and_chr |
|
|
28
|
-
| chrome | 125,124
|
|
29
|
-
| edge |
|
|
30
|
-
| firefox |
|
|
27
|
+
| and_chr | 127 |
|
|
28
|
+
| chrome | 127,126,125,124 |
|
|
29
|
+
| edge | 127,126 |
|
|
30
|
+
| firefox | 129,128,127,126 |
|
|
31
31
|
| ios_saf | 17.5,17.4,17.3 |
|
|
32
32
|
| safari | 17.5,17.4,17.3,17.2 |
|
|
33
33
|
|
|
@@ -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,6 +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
|
+
| numStableFrames | Number | 4 | - | Determines how many frames are used for the stability check. The minimum value is 3 and the maximum is 6. |
|
|
132
133
|
|
|
133
134
|
**(\*)**
|
|
134
135
|
This field is only mandatory when using the secure mode. (secure = true)
|
|
@@ -152,6 +153,7 @@ Current languages supported:
|
|
|
152
153
|
- `fr-FR`: French
|
|
153
154
|
- `he-IL`: Hebrew
|
|
154
155
|
- `hi-IN`: Hindi
|
|
156
|
+
- `hr-HR`: Croatian
|
|
155
157
|
- `hu-HU`: Hungarian
|
|
156
158
|
- `hy-AM`: Armenian
|
|
157
159
|
- `id-ID`: Bahasa
|
|
@@ -351,3 +353,7 @@ Face Capture uses the comment `/* webpackIgnore: true */` order to tell webpack
|
|
|
351
353
|
that it does not need to resolve the dependency locally so this comment cannot
|
|
352
354
|
be removed before webpack builds the final javascript files for the web
|
|
353
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,6 +253,9 @@ 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;
|
|
256
|
+
/** Determines how many frames are used for the stability check.
|
|
257
|
+
* The minimum value is 3 and the maximum is 6. */
|
|
258
|
+
numStableFrames: number;
|
|
254
259
|
}
|
|
255
260
|
|
|
256
261
|
/**
|