@getyoti/react-face-capture 2.9.0 → 2.9.2
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 +44 -9
- package/README.md +22 -7
- package/index.d.ts +3 -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,40 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v2.9.2
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- Fixed a bug causing the FCM to sometimes freeze after taking the picture.
|
|
8
|
+
|
|
9
|
+
## v2.9.1
|
|
10
|
+
|
|
11
|
+
### New features
|
|
12
|
+
|
|
13
|
+
- Implemented theming capabilities for customizing the border radius of different elements.
|
|
14
|
+
|
|
15
|
+
- Buttons
|
|
16
|
+
- `--fcm-button-border-radius-bottom-left`
|
|
17
|
+
- `--fcm-button-border-radius-bottom-right`
|
|
18
|
+
- `--fcm-button-border-radius-top-right`
|
|
19
|
+
- `--fcm-button-border-radius-top-left`
|
|
20
|
+
- Help dialogue
|
|
21
|
+
- `--fcm-help-panel-border-radius-bottom-left`
|
|
22
|
+
- `--fcm-help-panel-border-radius-bottom-right`
|
|
23
|
+
- `--fcm-help-panel-border-radius-top-right`
|
|
24
|
+
- `--fcm-help-panel-border-radius-top-left`
|
|
25
|
+
- User feedback
|
|
26
|
+
- `--fcm-feedback-border-radius-bottom-left`
|
|
27
|
+
- `--fcm-feedback-border-radius-bottom-right`
|
|
28
|
+
- `--fcm-feedback-border-radius-top-right`
|
|
29
|
+
- `--fcm-feedback-border-radius-top-left`
|
|
30
|
+
|
|
31
|
+
- Add new localisation:
|
|
32
|
+
- `az-AZ`: Azerbaijani (Azerbaijan)
|
|
33
|
+
- `zh-TW`: Traditional Chinese (Taiwan)
|
|
34
|
+
|
|
35
|
+
- Added a new theming capability to control the vertical offset of the user feedback (prompt) from the top edge on portrait devices (default: 0; percentage recommended):
|
|
36
|
+
- `--fcm-prompt-portrait-top`
|
|
37
|
+
|
|
3
38
|
## v2.9.0
|
|
4
39
|
|
|
5
40
|
### New features
|
|
@@ -58,7 +93,7 @@
|
|
|
58
93
|
|
|
59
94
|
### Fixes
|
|
60
95
|
|
|
61
|
-
- Fix visual bug when taking a picture in manual mode. The feedback prompt is now highlighted correctly.
|
|
96
|
+
- Fix visual bug when taking a picture in manual mode. The user feedback prompt is now highlighted correctly.
|
|
62
97
|
|
|
63
98
|
## v2.8.0
|
|
64
99
|
|
|
@@ -101,12 +136,12 @@ Multiframe is a new layer of protection added on top of the curren security feat
|
|
|
101
136
|
|
|
102
137
|
- Adds a new prop `sessionDuration` which specifies the maximum duration of the session before it times out, regardless of number of retry attempts.
|
|
103
138
|
- The value must be within 30s and 5m (in milliseconds), and invalid values will trigger an exception.
|
|
104
|
-
- The icon for the multiple faces feedback was changed.
|
|
139
|
+
- The icon for the multiple faces user feedback was changed.
|
|
105
140
|
- `a11yLiveRegionMode` is now deprecated and will be removed in the next major release. Accessibility features like `aria-live` are now handled internally.
|
|
106
141
|
|
|
107
142
|
### Fixes
|
|
108
143
|
|
|
109
|
-
- The feedback message is centred so the possibility of overlap with the face layout has been reduced.
|
|
144
|
+
- The user feedback message is centred so the possibility of overlap with the face layout has been reduced.
|
|
110
145
|
- Localisation has been revised. The following languages have been updated:
|
|
111
146
|
- `bs-BA`: Bosnian
|
|
112
147
|
- `sr-RS`: Serbian (Latin script)
|
|
@@ -337,7 +372,7 @@ Fixed an issue introduced in v2.3.0 causing the `numStableFrames` property to be
|
|
|
337
372
|
|
|
338
373
|
- Improve security checks.
|
|
339
374
|
- UI improvements on help dialogue.
|
|
340
|
-
- Change feedback message for `OVERCONSTRAINED` and `NO_CAMERA` errors from
|
|
375
|
+
- Change user feedback message for `OVERCONSTRAINED` and `NO_CAMERA` errors from
|
|
341
376
|
`Please try again` to `Please try using a different device`.
|
|
342
377
|
|
|
343
378
|
### Fixes
|
|
@@ -365,7 +400,7 @@ See section [v2.0.0-beta.1](#v200-beta1) with previous changes for version
|
|
|
365
400
|
|
|
366
401
|
- Improved the help dialogue UI.
|
|
367
402
|
|
|
368
|
-
- Updated Tagalog localisation message for "Only one face allowed" feedback.
|
|
403
|
+
- Updated Tagalog localisation message for "Only one face allowed" user feedback.
|
|
369
404
|
|
|
370
405
|
### Fixes
|
|
371
406
|
|
|
@@ -530,7 +565,7 @@ See section [v2.0.0-beta.1](#v200-beta1) with previous changes for version
|
|
|
530
565
|
|
|
531
566
|
### Fixes
|
|
532
567
|
|
|
533
|
-
- Fix Greek localisation for "Place your face in the frame" feedback.
|
|
568
|
+
- Fix Greek localisation for "Place your face in the frame" user feedback.
|
|
534
569
|
|
|
535
570
|
## v1.3.0
|
|
536
571
|
|
|
@@ -554,7 +589,7 @@ See section [v2.0.0-beta.1](#v200-beta1) with previous changes for version
|
|
|
554
589
|
|
|
555
590
|
- Secure session initialisation request is no longer cached.
|
|
556
591
|
- Added missing fields in the typing file.
|
|
557
|
-
- Camera feedback messages are shown only after the camera permissions were
|
|
592
|
+
- Camera user feedback messages are shown only after the camera permissions were
|
|
558
593
|
giving not before.
|
|
559
594
|
|
|
560
595
|
## v1.2.0
|
|
@@ -574,7 +609,7 @@ See section [v2.0.0-beta.1](#v200-beta1) with previous changes for version
|
|
|
574
609
|
|
|
575
610
|
- Fix the error when the FCM component is unmounted if it uses the secure mode.
|
|
576
611
|
|
|
577
|
-
- Use the new Yoti colors for the button and overlay feedback.
|
|
612
|
+
- Use the new Yoti colors for the button and overlay user feedback.
|
|
578
613
|
|
|
579
614
|
## v1.1.0
|
|
580
615
|
|
|
@@ -763,7 +798,7 @@ component.
|
|
|
763
798
|
|
|
764
799
|
### Fixes
|
|
765
800
|
|
|
766
|
-
- Fix feedback message when the user is too close to the camera
|
|
801
|
+
- Fix user feedback message when the user is too close to the camera
|
|
767
802
|
|
|
768
803
|
- Fix state warning after component mounting
|
|
769
804
|
|
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 | 146,145
|
|
29
|
-
| edge |
|
|
30
|
-
| firefox | 148,147
|
|
31
|
-
| ios_saf | 26.
|
|
32
|
-
| safari | 26.3,26.2,26.1
|
|
27
|
+
| and_chr | 148 |
|
|
28
|
+
| chrome | 148,147,146,145 |
|
|
29
|
+
| edge | 148,147 |
|
|
30
|
+
| firefox | 150,149,148,147 |
|
|
31
|
+
| ios_saf | 26.4,26.3,26.2 |
|
|
32
|
+
| safari | 26.4,26.3,26.2,26.1 |
|
|
33
33
|
|
|
34
34
|
</browserSupportTable>
|
|
35
35
|
|
|
@@ -94,7 +94,20 @@ It is possible to customize the style by changing the following CSS properties:
|
|
|
94
94
|
- `--fcm-frame-color-neutral` Sets the color of the face frame.
|
|
95
95
|
- `--fcm-frame-color-success` Sets the success color of the face frame.
|
|
96
96
|
- `--fcm-frame-color-warning` Sets the warning color of the face frame.
|
|
97
|
-
- `--fcm-frame-color-invalid-manual` Sets the color of the face frame for manual mode invalid image feedback.
|
|
97
|
+
- `--fcm-frame-color-invalid-manual` Sets the color of the face frame for manual mode invalid image user feedback.
|
|
98
|
+
- `--fcm-button-border-radius-bottom-left` Sets the border radius of the buttons.
|
|
99
|
+
- `--fcm-button-border-radius-bottom-right` Sets the border radius of the buttons.
|
|
100
|
+
- `--fcm-button-border-radius-top-right` Sets the border radius of the buttons.
|
|
101
|
+
- `--fcm-button-border-radius-top-left` Sets the border radius of the buttons.
|
|
102
|
+
- `--fcm-help-panel-border-radius-bottom-left` Sets the border radius of the help dialogue.
|
|
103
|
+
- `--fcm-help-panel-border-radius-bottom-right` Sets the border radius of the help dialogue.
|
|
104
|
+
- `--fcm-help-panel-border-radius-top-right` Sets the border radius of the help dialogue.
|
|
105
|
+
- `--fcm-help-panel-border-radius-top-left` Sets the border radius of the help dialogue.
|
|
106
|
+
- `--fcm-feedback-border-radius-bottom-left` Sets the border radius of the user feedback.
|
|
107
|
+
- `--fcm-feedback-border-radius-bottom-right` Sets the border radius of the user feedback.
|
|
108
|
+
- `--fcm-feedback-border-radius-top-right` Sets the border radius of the user feedback.
|
|
109
|
+
- `--fcm-feedback-border-radius-top-left` Sets the border radius of the user feedback.
|
|
110
|
+
- `--fcm-prompt-portrait-top` Sets the user feedback (prompt) vertical offset for portrait devices using `center` faceSelectionMethod (percentage recommended). The default value is 0.
|
|
98
111
|
|
|
99
112
|
The approach for the customization changed on version 2.6.0. The following variables got deprecated and will be removed in future versions:
|
|
100
113
|
|
|
@@ -159,6 +172,7 @@ Current languages supported:
|
|
|
159
172
|
|
|
160
173
|
- `en-GB`: English
|
|
161
174
|
- `ar-XN`: Arabic
|
|
175
|
+
- `az-AZ`: Azerbaijani
|
|
162
176
|
- `bg-BG`: Bulgarian
|
|
163
177
|
- `bs-BA`: Bosnian
|
|
164
178
|
- `cs-CZ`: Czech
|
|
@@ -205,6 +219,7 @@ Current languages supported:
|
|
|
205
219
|
- `ur-PK`: Urdu
|
|
206
220
|
- `vi-VN`: Vietnamese
|
|
207
221
|
- `zh-CN`: Chinese (Simplified)
|
|
222
|
+
- `zh-TW`: Traditional Chinese (Taiwan)
|
|
208
223
|
|
|
209
224
|
**(\*\*\*)**
|
|
210
225
|
Language codes marked with \*\*\* are listed for disambiguation purposes on the fallback. They are exactly the same as their respective regional variants.
|
package/index.d.ts
CHANGED
|
@@ -108,6 +108,8 @@ declare module '@getyoti/react-face-capture' {
|
|
|
108
108
|
export enum LANGUAGE_CODE {
|
|
109
109
|
AR = 'ar',
|
|
110
110
|
AR_XN = 'ar-XN',
|
|
111
|
+
AZ = 'az',
|
|
112
|
+
AZ_AZ = 'az-AZ',
|
|
111
113
|
BG = 'bg',
|
|
112
114
|
BG_BG = 'bg-BG',
|
|
113
115
|
BS = 'bs',
|
|
@@ -198,6 +200,7 @@ declare module '@getyoti/react-face-capture' {
|
|
|
198
200
|
ZH = 'zh',
|
|
199
201
|
ZH_CN = 'zh-CN',
|
|
200
202
|
ZH_SG = 'zh-SG',
|
|
203
|
+
ZH_TW = 'zh-TW',
|
|
201
204
|
}
|
|
202
205
|
|
|
203
206
|
/**
|