@getyoti/react-face-capture 2.6.0 → 2.6.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 +13 -0
- package/README.md +8 -8
- package/index.d.ts +1 -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,18 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v2.6.1
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- Fixed a bug causing the module to expand in height before capturing the image.
|
|
8
|
+
- Improve containment for layout isolation, preventing CSS leakage.
|
|
9
|
+
- Increase the default `loadTimeout` value from 15000 to 60000 ms.
|
|
10
|
+
- Fixed `loadTimeout` documentation definition.
|
|
11
|
+
|
|
12
|
+
#### Peer dependencies updates
|
|
13
|
+
|
|
14
|
+
- Updated `axios` dependency from `1.6.5` to `1.8.4`.
|
|
15
|
+
|
|
3
16
|
## v2.6.0
|
|
4
17
|
|
|
5
18
|
### 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,132
|
|
29
|
-
| edge | 134
|
|
30
|
-
| firefox | 136,135,134
|
|
31
|
-
| ios_saf | 18.
|
|
32
|
-
| safari | 18.3,18.2,18.1
|
|
27
|
+
| and_chr | 135 |
|
|
28
|
+
| chrome | 135,134,133,132 |
|
|
29
|
+
| edge | 135,134 |
|
|
30
|
+
| firefox | 137,136,135,134 |
|
|
31
|
+
| ios_saf | 18.4,18.3,18.2 |
|
|
32
|
+
| safari | 18.4,18.3,18.2,18.1 |
|
|
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. |
|
|
@@ -224,7 +224,7 @@ A mechanism used for the property `language` to avoid issues when the value pass
|
|
|
224
224
|
| `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
225
|
| `VIDEO_STREAM_INTERRUPTED` | The camera stream has stopped unexpectedly. |
|
|
226
226
|
| `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
|
|
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 60 seconds. |
|
|
228
228
|
| `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
229
|
| `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
230
|
|
package/index.d.ts
CHANGED
|
@@ -243,7 +243,7 @@ declare module '@getyoti/react-face-capture' {
|
|
|
243
243
|
/** Indicates if the face capture will use the manual capture method because of slow performance. (default:true) */
|
|
244
244
|
manualCaptureFallback?: boolean;
|
|
245
245
|
/** Indicates the time (in milliseconds) to call the onError callback if the
|
|
246
|
-
* module takes that time to load (default:
|
|
246
|
+
* module takes that time to load (default: 60000) */
|
|
247
247
|
loadTimeout?: number;
|
|
248
248
|
/** Identifies your Yoti Hub application. */
|
|
249
249
|
clientSdkId?: string;
|