@regulaforensics/vp-frontend-face-components 6.5.1591-nightly → 6.5.1610-nightly
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/README.md +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/main.iife.js +40 -40
- package/dist/main.js +7712 -7574
- package/package.json +1 -1
package/README.md
CHANGED
@@ -333,6 +333,7 @@ Table of event causes:
|
|
333
333
|
| `INCORRECT_CAMERA_ID` | No camera with the specified ID found. |
|
334
334
|
| `WEBSERVICE_NOT_COMPATIBLE` | The web service and component versions are incompatible. |
|
335
335
|
| `HTTP_NOT_SUPPORTED` | The web component does not work over the HTTP protocol, use HTTPS instead. |
|
336
|
+
| `CANCELLED` | The user has clicked by close button |
|
336
337
|
|
337
338
|
The table below describes the cases of event generation:
|
338
339
|
|
package/dist/index.d.ts
CHANGED
@@ -27,6 +27,7 @@ export declare type CustomEventDataType<R> = {
|
|
27
27
|
status: ResponseCode;
|
28
28
|
reason?: ErrorTypes;
|
29
29
|
response?: R;
|
30
|
+
transactionId?: string;
|
30
31
|
};
|
31
32
|
|
32
33
|
declare type DebugOptions = {
|
@@ -43,7 +44,7 @@ export declare interface DetailEvent<A, R> {
|
|
43
44
|
|
44
45
|
export declare type ErrorTypes = 'WASM_ERROR' | 'UNKNOWN_ERROR' | 'NOT_SUPPORTED' | 'CAMERA_UNKNOWN_ERROR' | 'CAMERA_PERMISSION_DENIED' | 'NO_CAMERA' | 'INCORRECT_CAMERA_ID' | 'CONNECTION_ERROR' | 'LANDSCAPE_MODE_RESTRICTED' | 'TIMEOUT_ERROR' | 'CHANGE_CAMERA' | 'DEVICE_ROTATE' | 'APP_INACTIVE' | 'HTTP_NOT_SUPPORTED';
|
45
46
|
|
46
|
-
export declare type FaceCaptureDetailType = DetailEvent<FaceEventActions, FaceDetectionResponseType>;
|
47
|
+
export declare type FaceCaptureDetailType = Omit<DetailEvent<FaceEventActions, FaceDetectionResponseType>, 'transactionId'>;
|
47
48
|
|
48
49
|
export declare type FaceDetectionResponseType = {
|
49
50
|
capture: Array<string>;
|
@@ -66,6 +67,7 @@ export declare interface FaceDetectionSettings {
|
|
66
67
|
timeoutInterval?: number;
|
67
68
|
workerPath?: string;
|
68
69
|
detectOcclusion?: boolean;
|
70
|
+
showFaceAnimation?: boolean;
|
69
71
|
}
|
70
72
|
|
71
73
|
export declare class FaceDetectionWebComponent extends HTMLElement {
|
@@ -103,7 +105,7 @@ export declare type FaceLivenessResponseType = {
|
|
103
105
|
type: number;
|
104
106
|
};
|
105
107
|
|
106
|
-
export declare interface FaceLivenessSettings extends Omit<FaceDetectionSettings, 'holdStillDuration' | 'timeoutInterval'> {
|
108
|
+
export declare interface FaceLivenessSettings extends Omit<FaceDetectionSettings, 'holdStillDuration' | 'timeoutInterval' | 'showFaceAnimation'> {
|
107
109
|
url?: string;
|
108
110
|
deviceOrientation?: boolean;
|
109
111
|
videoRecording?: boolean;
|