@getyoti/react-face-capture 2.8.1 → 2.9.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 +43 -0
- package/README.md +25 -7
- package/index.d.ts +1 -0
- package/index.js +11 -11
- package/index.js.LICENSE.txt +3 -3
- package/package.json +4 -3
- package/vanilla/index.js +14 -14
- package/vanilla/index.js.LICENSE.txt +4 -4
- package/vanilla/index.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v2.9.0
|
|
4
|
+
|
|
5
|
+
### New features
|
|
6
|
+
|
|
7
|
+
- Improved and updated security features.
|
|
8
|
+
|
|
9
|
+
- Enhanced UI.
|
|
10
|
+
|
|
11
|
+
- Added automatic state reports to improve debugging.
|
|
12
|
+
|
|
13
|
+
- The FCM will periodically call the `/state` endpoint, sending performance metrics and the state.
|
|
14
|
+
|
|
15
|
+
### Fixes
|
|
16
|
+
|
|
17
|
+
- Corrected a layout issue on the loading and error screens in Safari.
|
|
18
|
+
|
|
19
|
+
- Fixed a minor misalignment of the loading page layout in Safari under specific circumstances.
|
|
20
|
+
|
|
21
|
+
- Improved CSS isolation of text in the FCM. Text will no longer inherit the text-align property.
|
|
22
|
+
|
|
23
|
+
- Improved accessibility
|
|
24
|
+
|
|
25
|
+
- Removed unnecessary element announced as “group” in some screen readers.
|
|
26
|
+
|
|
27
|
+
- Fixed a runtime console warning.
|
|
28
|
+
|
|
29
|
+
- Localisation has been revised. The following languages have been updated:
|
|
30
|
+
- `cs-CZ`
|
|
31
|
+
- `es-ES`
|
|
32
|
+
- `fr-FR`
|
|
33
|
+
- `hu-HU`
|
|
34
|
+
- `ms-MY` which is now alias of `ms-SG`
|
|
35
|
+
- `ms-SG`
|
|
36
|
+
- `sk-SK`
|
|
37
|
+
- `ta-TG`
|
|
38
|
+
|
|
39
|
+
#### Peer dependencies updates
|
|
40
|
+
|
|
41
|
+
- Updated `react` dependency version to be at least `16.14.0` and a maximum of `18.3.1`.
|
|
42
|
+
|
|
43
|
+
- Updated `react-dom` dependency version to be at least `16.14.0` and a maximum of `18.3.1`.
|
|
44
|
+
|
|
3
45
|
## v2.8.1
|
|
4
46
|
|
|
5
47
|
### New features
|
|
@@ -12,6 +54,7 @@
|
|
|
12
54
|
- Update UI component library to enhance theming stability.
|
|
13
55
|
- Improve usability for keyboard only users.
|
|
14
56
|
- Improve screen readers compatibility.
|
|
57
|
+
- Fixed LICENCE.md text formatting
|
|
15
58
|
|
|
16
59
|
### Fixes
|
|
17
60
|
|
package/README.md
CHANGED
|
@@ -14,8 +14,8 @@ to review release changes, issues, fixes, and possible breaking changes on Major
|
|
|
14
14
|
The package depends on the following peer dependencies
|
|
15
15
|
|
|
16
16
|
```
|
|
17
|
-
"react": ">=16.14.0 <=18.
|
|
18
|
-
"react-dom": ">=16.14.0 <=18.
|
|
17
|
+
"react": ">=16.14.0 <=18.3.1",
|
|
18
|
+
"react-dom": ">=16.14.0 <=18.3.1"
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### Browser support
|
|
@@ -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 | 145,144,143
|
|
29
|
-
| edge | 145
|
|
30
|
-
| firefox | 147,146,145
|
|
27
|
+
| and_chr | 146 |
|
|
28
|
+
| chrome | 146,145,144,143 |
|
|
29
|
+
| edge | 146,145 |
|
|
30
|
+
| firefox | 148,147,146,145 |
|
|
31
31
|
| ios_saf | 26.3,26.2,26.1 |
|
|
32
32
|
| safari | 26.3,26.2,26.1,26.0 |
|
|
33
33
|
|
|
@@ -183,7 +183,9 @@ Current languages supported:
|
|
|
183
183
|
- `ko-KR`: Korean
|
|
184
184
|
- `lt-LT`: Lithuanian
|
|
185
185
|
- `lv-LV`: Latvian
|
|
186
|
-
- `ms
|
|
186
|
+
- `ms`: Malay (Malaysia) \*\*\*
|
|
187
|
+
- `ms-MY`: Malay (Malaysia)
|
|
188
|
+
- `ms-SG:` Malay (Singapore)
|
|
187
189
|
- `nb-NO`: Norwegian
|
|
188
190
|
- `nl-NL`: Dutch
|
|
189
191
|
- `pl-PL`: Polish
|
|
@@ -401,3 +403,19 @@ Modifications over the original image captured by the camera, like virtual backg
|
|
|
401
403
|
When using multiframe mode, the prediction request must include the query parameter `multiframe=true`. This is required for the service to process the request correctly. If there is a mismatch between the Face Capture's multiframe setting and the multiframe query parameter in the request, the response will always be `UNTRUSTED_SECURE_SESSION`.
|
|
402
404
|
|
|
403
405
|
When enabling this mode, ensure both the Face Capture configuration and the prediction request are aligned to avoid this error.
|
|
406
|
+
|
|
407
|
+
### Permission Policies
|
|
408
|
+
|
|
409
|
+
When running the FCM inside an iFrame, you might need to set [Permission Policies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Permissions_Policy) to ensure the system works as expected.
|
|
410
|
+
|
|
411
|
+
The FCM uses `camera` and `autoplay` policies, so you can set the `allow` iFrame attribute to something like.
|
|
412
|
+
|
|
413
|
+
```html
|
|
414
|
+
<iframe allow="autoplay *; camera *;" />
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
This enables only `camera` and `autoplay` regardless of the origin of the host document. Other attributes can be set to `none`.
|
|
418
|
+
|
|
419
|
+
Please remember that you need to reflect the changes in the `<head>` of your host HTML file by setting the `<meta>` tag with the same permissions policy string as shown above. For example:
|
|
420
|
+
|
|
421
|
+
`<meta http-equiv="Permissions-Policy" content="autoplay=*, camera=*">`
|