@regulaforensics/vp-frontend-face-components 3.0.1 → 3.1.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/README.md +78 -99
- package/dist/main.js +1 -1
- package/lib/index.d.ts +17 -6
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ type Locales =
|
|
|
32
32
|
| 'hr'
|
|
33
33
|
| 'no'
|
|
34
34
|
| string;
|
|
35
|
+
|
|
35
36
|
interface FaceTranslations {
|
|
36
37
|
showOnlyOneFace?: string;
|
|
37
38
|
preparingCamera?: string;
|
|
@@ -87,11 +88,6 @@ type ErrorTypes =
|
|
|
87
88
|
| 'INCORRECT_CAMERA_ID'
|
|
88
89
|
| 'CONNECTION_ERROR'
|
|
89
90
|
| 'LANDSCAPE_MODE_RESTRICTED'
|
|
90
|
-
| 'NOT_PREPARED'
|
|
91
|
-
| 'NOT_INITIALIZED'
|
|
92
|
-
| 'IN_PROCESS'
|
|
93
|
-
| 'ALREADY_PREPARED'
|
|
94
|
-
| 'ALREADY_INITIALIZED'
|
|
95
91
|
| 'TIMEOUT_ERROR'
|
|
96
92
|
| 'CHANGE_CAMERA'
|
|
97
93
|
| 'DEVICE_ROTATE'
|
|
@@ -159,7 +155,6 @@ export interface IFaceDetection {
|
|
|
159
155
|
export interface IFaceLiveness extends IFaceDetection {
|
|
160
156
|
url?: string;
|
|
161
157
|
'device-orientation'?: boolean;
|
|
162
|
-
'video-recording'?: boolean;
|
|
163
158
|
}
|
|
164
159
|
|
|
165
160
|
export type ComputedCss = {
|
|
@@ -186,6 +181,18 @@ export type ComputedCss = {
|
|
|
186
181
|
retryScreenEnvironmentImage?: string;
|
|
187
182
|
retryScreenPersonImage?: string;
|
|
188
183
|
};
|
|
184
|
+
|
|
185
|
+
declare enum RecordingProcess {
|
|
186
|
+
ASYNCHRONOUS_UPLOAD = 0,
|
|
187
|
+
SYNCHRONOUS_UPLOAD = 1,
|
|
188
|
+
NOT_UPLOAD = 2,
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
declare enum FaceLivenessType {
|
|
192
|
+
ACTIVE = 0,
|
|
193
|
+
PASSIVE = 1,
|
|
194
|
+
}
|
|
195
|
+
|
|
189
196
|
interface FaceDetectionSettings {
|
|
190
197
|
url?: string;
|
|
191
198
|
debug?: boolean;
|
|
@@ -198,6 +205,7 @@ interface FaceDetectionSettings {
|
|
|
198
205
|
startScreen?: boolean;
|
|
199
206
|
customization?: ComputedCss;
|
|
200
207
|
nonce?: string;
|
|
208
|
+
rotationAngle?: number;
|
|
201
209
|
holdStillDuration?: number;
|
|
202
210
|
timeoutInterval?: number;
|
|
203
211
|
}
|
|
@@ -209,6 +217,8 @@ interface FaceLivenessSettings extends Omit<FaceDetectionSettings, 'holdStillDur
|
|
|
209
217
|
tag?: string;
|
|
210
218
|
headers?: Record<string, string>;
|
|
211
219
|
retryCount?: number;
|
|
220
|
+
recordingProcess?: RecordingProcess;
|
|
221
|
+
livenessType?: FaceLivenessType;
|
|
212
222
|
}
|
|
213
223
|
|
|
214
224
|
export type FaceLivenessDetailType = DetailEvent<FaceEventActions, FaceLivenessResponseType>;
|
|
@@ -223,6 +233,7 @@ export class FaceDetectionWebComponent extends HTMLElement {
|
|
|
223
233
|
get settings(): FaceDetectionSettings;
|
|
224
234
|
set settings(params: FaceDetectionSettings);
|
|
225
235
|
}
|
|
236
|
+
|
|
226
237
|
export class FaceLivenessWebComponent extends HTMLElement {
|
|
227
238
|
get version(): string;
|
|
228
239
|
set translations(dictionary: FaceDictionaries | null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/vp-frontend-face-components",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Regula framework agnostic web components to work with webcamera",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"test": "jest --testPathPattern=src/tests"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@regulaforensics/facesdk-webclient": "^
|
|
19
|
+
"@regulaforensics/facesdk-webclient": "^5.2.7",
|
|
20
20
|
"zustand": "^4.3.7"
|
|
21
21
|
}
|
|
22
22
|
}
|