@getyoti/react-face-capture 2.9.0 → 2.9.1
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 +38 -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,34 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v2.9.1
|
|
4
|
+
|
|
5
|
+
### New features
|
|
6
|
+
|
|
7
|
+
- Implemented theming capabilities for customizing the border radius of different elements.
|
|
8
|
+
|
|
9
|
+
- Buttons
|
|
10
|
+
- `--fcm-button-border-radius-bottom-left`
|
|
11
|
+
- `--fcm-button-border-radius-bottom-right`
|
|
12
|
+
- `--fcm-button-border-radius-top-right`
|
|
13
|
+
- `--fcm-button-border-radius-top-left`
|
|
14
|
+
- Help dialogue
|
|
15
|
+
- `--fcm-help-panel-border-radius-bottom-left`
|
|
16
|
+
- `--fcm-help-panel-border-radius-bottom-right`
|
|
17
|
+
- `--fcm-help-panel-border-radius-top-right`
|
|
18
|
+
- `--fcm-help-panel-border-radius-top-left`
|
|
19
|
+
- User feedback
|
|
20
|
+
- `--fcm-feedback-border-radius-bottom-left`
|
|
21
|
+
- `--fcm-feedback-border-radius-bottom-right`
|
|
22
|
+
- `--fcm-feedback-border-radius-top-right`
|
|
23
|
+
- `--fcm-feedback-border-radius-top-left`
|
|
24
|
+
|
|
25
|
+
- Add new localisation:
|
|
26
|
+
- `az-AZ`: Azerbaijani (Azerbaijan)
|
|
27
|
+
- `zh-TW`: Traditional Chinese (Taiwan)
|
|
28
|
+
|
|
29
|
+
- 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):
|
|
30
|
+
- `--fcm-prompt-portrait-top`
|
|
31
|
+
|
|
3
32
|
## v2.9.0
|
|
4
33
|
|
|
5
34
|
### New features
|
|
@@ -58,7 +87,7 @@
|
|
|
58
87
|
|
|
59
88
|
### Fixes
|
|
60
89
|
|
|
61
|
-
- Fix visual bug when taking a picture in manual mode. The feedback prompt is now highlighted correctly.
|
|
90
|
+
- Fix visual bug when taking a picture in manual mode. The user feedback prompt is now highlighted correctly.
|
|
62
91
|
|
|
63
92
|
## v2.8.0
|
|
64
93
|
|
|
@@ -101,12 +130,12 @@ Multiframe is a new layer of protection added on top of the curren security feat
|
|
|
101
130
|
|
|
102
131
|
- Adds a new prop `sessionDuration` which specifies the maximum duration of the session before it times out, regardless of number of retry attempts.
|
|
103
132
|
- 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.
|
|
133
|
+
- The icon for the multiple faces user feedback was changed.
|
|
105
134
|
- `a11yLiveRegionMode` is now deprecated and will be removed in the next major release. Accessibility features like `aria-live` are now handled internally.
|
|
106
135
|
|
|
107
136
|
### Fixes
|
|
108
137
|
|
|
109
|
-
- The feedback message is centred so the possibility of overlap with the face layout has been reduced.
|
|
138
|
+
- The user feedback message is centred so the possibility of overlap with the face layout has been reduced.
|
|
110
139
|
- Localisation has been revised. The following languages have been updated:
|
|
111
140
|
- `bs-BA`: Bosnian
|
|
112
141
|
- `sr-RS`: Serbian (Latin script)
|
|
@@ -337,7 +366,7 @@ Fixed an issue introduced in v2.3.0 causing the `numStableFrames` property to be
|
|
|
337
366
|
|
|
338
367
|
- Improve security checks.
|
|
339
368
|
- UI improvements on help dialogue.
|
|
340
|
-
- Change feedback message for `OVERCONSTRAINED` and `NO_CAMERA` errors from
|
|
369
|
+
- Change user feedback message for `OVERCONSTRAINED` and `NO_CAMERA` errors from
|
|
341
370
|
`Please try again` to `Please try using a different device`.
|
|
342
371
|
|
|
343
372
|
### Fixes
|
|
@@ -365,7 +394,7 @@ See section [v2.0.0-beta.1](#v200-beta1) with previous changes for version
|
|
|
365
394
|
|
|
366
395
|
- Improved the help dialogue UI.
|
|
367
396
|
|
|
368
|
-
- Updated Tagalog localisation message for "Only one face allowed" feedback.
|
|
397
|
+
- Updated Tagalog localisation message for "Only one face allowed" user feedback.
|
|
369
398
|
|
|
370
399
|
### Fixes
|
|
371
400
|
|
|
@@ -530,7 +559,7 @@ See section [v2.0.0-beta.1](#v200-beta1) with previous changes for version
|
|
|
530
559
|
|
|
531
560
|
### Fixes
|
|
532
561
|
|
|
533
|
-
- Fix Greek localisation for "Place your face in the frame" feedback.
|
|
562
|
+
- Fix Greek localisation for "Place your face in the frame" user feedback.
|
|
534
563
|
|
|
535
564
|
## v1.3.0
|
|
536
565
|
|
|
@@ -554,7 +583,7 @@ See section [v2.0.0-beta.1](#v200-beta1) with previous changes for version
|
|
|
554
583
|
|
|
555
584
|
- Secure session initialisation request is no longer cached.
|
|
556
585
|
- Added missing fields in the typing file.
|
|
557
|
-
- Camera feedback messages are shown only after the camera permissions were
|
|
586
|
+
- Camera user feedback messages are shown only after the camera permissions were
|
|
558
587
|
giving not before.
|
|
559
588
|
|
|
560
589
|
## v1.2.0
|
|
@@ -574,7 +603,7 @@ See section [v2.0.0-beta.1](#v200-beta1) with previous changes for version
|
|
|
574
603
|
|
|
575
604
|
- Fix the error when the FCM component is unmounted if it uses the secure mode.
|
|
576
605
|
|
|
577
|
-
- Use the new Yoti colors for the button and overlay feedback.
|
|
606
|
+
- Use the new Yoti colors for the button and overlay user feedback.
|
|
578
607
|
|
|
579
608
|
## v1.1.0
|
|
580
609
|
|
|
@@ -763,7 +792,7 @@ component.
|
|
|
763
792
|
|
|
764
793
|
### Fixes
|
|
765
794
|
|
|
766
|
-
- Fix feedback message when the user is too close to the camera
|
|
795
|
+
- Fix user feedback message when the user is too close to the camera
|
|
767
796
|
|
|
768
797
|
- Fix state warning after component mounting
|
|
769
798
|
|
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 | 146
|
|
30
|
-
| firefox | 148,147
|
|
31
|
-
| ios_saf | 26.
|
|
32
|
-
| safari | 26.3,26.2,26.1
|
|
27
|
+
| and_chr | 147 |
|
|
28
|
+
| chrome | 148,147,146,145 |
|
|
29
|
+
| edge | 147,146 |
|
|
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
|
/**
|