@getyoti/react-face-capture 2.6.0 → 2.6.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 +25 -0
- package/README.md +10 -8
- package/index.d.ts +5 -1
- package/index.js +7 -7
- package/index.js.LICENSE.txt +4 -4
- package/package.json +2 -2
- 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,30 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v2.6.2
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- Fixed a bug where the `onSuccess` callback was not called on some iOS versions.
|
|
8
|
+
|
|
9
|
+
### New features
|
|
10
|
+
|
|
11
|
+
- Add new localisations:
|
|
12
|
+
- `bs-BA`: Bosnian
|
|
13
|
+
- `sr-RS`: Serbian (Latin script)
|
|
14
|
+
|
|
15
|
+
## v2.6.1
|
|
16
|
+
|
|
17
|
+
### Fixes
|
|
18
|
+
|
|
19
|
+
- Fixed a bug causing the module to expand in height before capturing the image.
|
|
20
|
+
- Improve containment for layout isolation, preventing CSS leakage.
|
|
21
|
+
- Increase the default `loadTimeout` value from 15000 to 60000 ms.
|
|
22
|
+
- Fixed `loadTimeout` documentation definition.
|
|
23
|
+
|
|
24
|
+
#### Peer dependencies updates
|
|
25
|
+
|
|
26
|
+
- Updated `axios` dependency from `1.6.5` to `1.8.4`.
|
|
27
|
+
|
|
3
28
|
## v2.6.0
|
|
4
29
|
|
|
5
30
|
### 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 |
|
|
28
|
-
| chrome | 134,133
|
|
29
|
-
| edge |
|
|
30
|
-
| firefox | 136,135
|
|
31
|
-
| ios_saf | 18.
|
|
32
|
-
| safari | 18.
|
|
27
|
+
| and_chr | 136 |
|
|
28
|
+
| chrome | 136,135,134,133 |
|
|
29
|
+
| edge | 136,135 |
|
|
30
|
+
| firefox | 138,137,136,135 |
|
|
31
|
+
| ios_saf | 18.5,18.4,18.3 |
|
|
32
|
+
| safari | 18.5,18.4,18.3,18.2 |
|
|
33
33
|
|
|
34
34
|
</browserSupportTable>
|
|
35
35
|
|
|
@@ -137,7 +137,7 @@ The CSS custom properties must be defined using the `:root` CSS selector. Here i
|
|
|
137
137
|
| a11yLiveRegionMode | String `assertive/polite` | `polite` | - | Determines the [politeness setting of the live region](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#live_regions) used to read out prompts for screen reader users |
|
|
138
138
|
| showInitialGuidance | Boolean | `true` | - | Show the initial help guidance. |
|
|
139
139
|
| faceCaptureAssetsRootUrl | String | `assets/face-capture/` | - | Root url where the face detection assets are located. See [copy assets](#copy-assets) section for assets configuration. |
|
|
140
|
-
| loadTimeout | Number |
|
|
140
|
+
| loadTimeout | Number | 60000 milliseconds | - | Sets the time (in ms) the Face Capture will use to notify through the `onError` callback if the module takes too long to download and load the module. The Face Capture will keep loading after the notification. |
|
|
141
141
|
| showGetHelpButton | Boolean | `true` | - | Show the Get Help button. |
|
|
142
142
|
| autoSessionReload | Boolean | `true` | - | Automatically renews sessions after they expire. |
|
|
143
143
|
| userRetryError | Boolean | `true` | - | Gives the possibility to users to retry several times when an error occurs. |
|
|
@@ -158,6 +158,7 @@ Current languages supported:
|
|
|
158
158
|
- `en-GB`: English
|
|
159
159
|
- `ar-XN`: Arabic
|
|
160
160
|
- `bg-BG`: Bulgarian
|
|
161
|
+
- `bs-BA`: Bosnian
|
|
161
162
|
- `cs-CZ`: Czech
|
|
162
163
|
- `da-DK`: Danish
|
|
163
164
|
- `de-DE`: German
|
|
@@ -190,6 +191,7 @@ Current languages supported:
|
|
|
190
191
|
- `ro-RO`: Romanian
|
|
191
192
|
- `ru-RU`: Russian
|
|
192
193
|
- `sk-SK`: Slovak
|
|
194
|
+
- `sr-RS`: Serbian (Latin script)
|
|
193
195
|
- `sv-SE`: Swedish
|
|
194
196
|
- `th-TH`: Thai
|
|
195
197
|
- `tl-PH`: Tagalog
|
|
@@ -224,7 +226,7 @@ A mechanism used for the property `language` to avoid issues when the value pass
|
|
|
224
226
|
| `CAPTURE_LOAD_ERROR` | The secure module could not be loaded. This usually means your token is not updated, or there is an error on the module provider. |
|
|
225
227
|
| `VIDEO_STREAM_INTERRUPTED` | The camera stream has stopped unexpectedly. |
|
|
226
228
|
| `SECURE_SESSION_EXPIRED` | The secure session has expired (the token expire field is older than the current time). |
|
|
227
|
-
| `EXCEEDED_TIME_TO_LOAD` | The module is taking more than the time set in the FaceCapture component to load. The property to change that value is `loadTimeout` which by default is
|
|
229
|
+
| `EXCEEDED_TIME_TO_LOAD` | The module is taking more than the time set in the FaceCapture component to load. The property to change that value is `loadTimeout` which by default is 60 seconds. |
|
|
228
230
|
| `VERSION_NO_LONGER_AVAILABLE` | The requested Face Capture secure module is no longer available. Note that the FCM will log a warning in the console if the module was deprecated. |
|
|
229
231
|
| `INVALID_SECURE_CLIENT_SDK_ID` | The client SDK ID has a wrong format, it isn't included on the internal product mapping or there is a mismatch between the SDK from the JWT and the one related to the internal product contained in the BE request. |
|
|
230
232
|
|
package/index.d.ts
CHANGED
|
@@ -109,6 +109,8 @@ declare module '@getyoti/react-face-capture' {
|
|
|
109
109
|
AR_XN = 'ar-XN',
|
|
110
110
|
BG = 'bg',
|
|
111
111
|
BG_BG = 'bg-BG',
|
|
112
|
+
BS = 'bs',
|
|
113
|
+
BS_BA = 'bs-BA',
|
|
112
114
|
CS = 'cs',
|
|
113
115
|
CS_CZ = 'cs-CZ',
|
|
114
116
|
DA = 'da',
|
|
@@ -169,6 +171,8 @@ declare module '@getyoti/react-face-capture' {
|
|
|
169
171
|
RU_RU = 'ru-RU',
|
|
170
172
|
SK = 'sk',
|
|
171
173
|
SK_SK = 'sk-SK',
|
|
174
|
+
SR = 'sr',
|
|
175
|
+
SR_RS = 'sr-RS',
|
|
172
176
|
SV = 'sv',
|
|
173
177
|
SV_SE = 'sv-SE',
|
|
174
178
|
TH = 'th',
|
|
@@ -243,7 +247,7 @@ declare module '@getyoti/react-face-capture' {
|
|
|
243
247
|
/** Indicates if the face capture will use the manual capture method because of slow performance. (default:true) */
|
|
244
248
|
manualCaptureFallback?: boolean;
|
|
245
249
|
/** Indicates the time (in milliseconds) to call the onError callback if the
|
|
246
|
-
* module takes that time to load (default:
|
|
250
|
+
* module takes that time to load (default: 60000) */
|
|
247
251
|
loadTimeout?: number;
|
|
248
252
|
/** Identifies your Yoti Hub application. */
|
|
249
253
|
clientSdkId?: string;
|