@regulaforensics/vp-frontend-face-components 8.1.1872-nightly → 8.1.1875-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 +4 -0
- package/dist/index.d.ts +4 -2
- package/dist/main.iife.js +19 -19
- package/dist/main.js +8418 -8359
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -154,6 +154,7 @@ component.settings = {
|
|
|
154
154
|
cameraScreenSectorActive: '#7E57C5',
|
|
155
155
|
cameraScreenSectorTarget: '#BEABE2',
|
|
156
156
|
cameraScreenStrokeNormal: '#7E57C5',
|
|
157
|
+
cameraScreenStrokeWidth: 3,
|
|
157
158
|
processingScreenProgress: '#7E57C5',
|
|
158
159
|
retryScreenRetryButtonBackground: '#7E57C5',
|
|
159
160
|
retryScreenRetryButtonBackgroundHover: '#7c45b4',
|
|
@@ -215,6 +216,7 @@ Here are all the available settings:
|
|
|
215
216
|
| `detectOcclusion` | Whether to disable face occlusion hint. | `boolean` | `true` | `true`, `false` | `face-capture` |
|
|
216
217
|
| `tenant` | A label used to group transactions by specific customers, applications, or other criteria. | `string` | `undefined` | tenant | `face-liveness` |
|
|
217
218
|
| `env` | A label used to differentiate transactions by development stages. | `string` | `undefined` | env | `face-liveness` |
|
|
219
|
+
| `captureButton` | Whether to show the "Capture" button | `boolean` | `false` | `true`, `false` | `face-capture` |
|
|
218
220
|
|
|
219
221
|
## Customization
|
|
220
222
|
|
|
@@ -236,6 +238,7 @@ You can customize the color of some elements, fonts, and images with the help of
|
|
|
236
238
|
| `cameraScreenSectorActive` | User progress sector color (available only in face-liveness component). | | string | `#7E57C5` |
|
|
237
239
|
| `cameraScreenSectorTarget` | Target sector color (available only in face-liveness component). | `--target-sector-color` | string | `#BEABE2` |
|
|
238
240
|
| `cameraScreenStrokeNormal` | Stroke color of the camera circle. | | string | `#7E57C5` |
|
|
241
|
+
| `cameraScreenStrokeWidth` | Stroke width of the camera circle. | | number | 3 |
|
|
239
242
|
| `processingScreenProgress` | Processing screen spinner color. | | string | `#7E57C5` |
|
|
240
243
|
| `retryScreenEnvironmentImage` | Retry screen environment image. | | base64 or url or imported image | `` |
|
|
241
244
|
| `retryScreenPersonImage` | Retry screen person image. | | base64 or url or imported image | `` |
|
|
@@ -877,6 +880,7 @@ The list of labels used in the component:
|
|
|
877
880
|
| **moveCloser** | Move closer | `face-liveness`, `face-capture` |
|
|
878
881
|
| **moveAway** | Move away | `face-liveness`, `face-capture` |
|
|
879
882
|
| **holdSteady** | Hold steady | `face-liveness`, `face-capture` |
|
|
883
|
+
| **takeAPhoto** | Take a photo | `face-capture` |
|
|
880
884
|
| **processing** | Processing... | `face-liveness`, `face-capture` |
|
|
881
885
|
| **retryButtonText** | Retry | `face-liveness`, `face-capture` |
|
|
882
886
|
| **followGuidelinesText** | But please follow these guidelines: | `face-liveness`, `face-capture` |
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare type ComputedCss = {
|
|
|
11
11
|
cameraScreenSectorTarget?: string;
|
|
12
12
|
cameraScreenSectorActive?: string;
|
|
13
13
|
cameraScreenStrokeNormal?: string;
|
|
14
|
+
cameraScreenStrokeWidth?: number;
|
|
14
15
|
retryScreenRetryButtonBackground?: string;
|
|
15
16
|
retryScreenRetryButtonBackgroundHover?: string;
|
|
16
17
|
retryScreenRetryButtonTitle?: string;
|
|
@@ -87,6 +88,7 @@ export declare interface FaceDetectionSettings {
|
|
|
87
88
|
workerPath?: string;
|
|
88
89
|
detectOcclusion?: boolean;
|
|
89
90
|
showFaceAnimation?: boolean;
|
|
91
|
+
captureButton?: boolean;
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
export declare class FaceDetectionWebComponent extends HTMLElement {
|
|
@@ -143,7 +145,7 @@ export declare const FaceLivenessResultStatus: {
|
|
|
143
145
|
|
|
144
146
|
export declare type FaceLivenessResultStatus = (typeof FaceLivenessResultStatus)[keyof typeof FaceLivenessResultStatus];
|
|
145
147
|
|
|
146
|
-
export declare interface FaceLivenessSettings extends Omit<FaceDetectionSettings, 'holdStillDuration' | 'timeoutInterval' | 'showFaceAnimation'> {
|
|
148
|
+
export declare interface FaceLivenessSettings extends Omit<FaceDetectionSettings, 'holdStillDuration' | 'timeoutInterval' | 'showFaceAnimation' | 'captureButton'> {
|
|
147
149
|
url?: string;
|
|
148
150
|
deviceOrientation?: boolean;
|
|
149
151
|
videoRecording?: boolean;
|
|
@@ -205,7 +207,7 @@ export declare interface IFaceLiveness extends IFaceDetection {
|
|
|
205
207
|
'device-orientation'?: boolean;
|
|
206
208
|
}
|
|
207
209
|
|
|
208
|
-
declare type Labels = 'showOnlyOneFace' | 'preparingCamera' | 'allowAccessCamera' | 'somethingWentWrong' | 'incorrectCameraId' | 'checkCameraId' | 'preparingService' | 'allowAccessToCamera' | 'error' | 'versionNotSupported' | 'updateBrowser' | 'licenseError' | 'licenseExpired' | 'onlyPortraitOrientation' | 'turnDeviceIntoPortrait' | 'tryAgain' | 'noCameraAvailable' | 'checkCameraConnection' | 'noMaskSunglassesHeaddress' | 'ambientLighting' | 'lookStraight' | 'fitYourFace' | 'moveCloser' | 'moveAway' | 'holdSteady' | 'turnHead' | 'removeOcclusion' | 'turnHeadUp' | 'turnHeadDown' | 'turnHeadLeft' | 'turnHeadRight' | 'blinkYourEyes' | 'processing' | 'retryButtonText' | 'followGuidelinesText' | 'letsTryAgainTitle' | 'noCameraPermission' | 'goButton' | 'centerFaceTurnHead' | 'centerFace' | 'selfieTime' | 'errorCode' | 'illumination' | 'cameraLevel' | 'noAccessories' | 'getReady' | 'httpNotSupported' | 'webServerNotCompatible' | 'processCompleted';
|
|
210
|
+
declare type Labels = 'showOnlyOneFace' | 'preparingCamera' | 'allowAccessCamera' | 'somethingWentWrong' | 'incorrectCameraId' | 'checkCameraId' | 'preparingService' | 'allowAccessToCamera' | 'error' | 'versionNotSupported' | 'updateBrowser' | 'licenseError' | 'licenseExpired' | 'onlyPortraitOrientation' | 'turnDeviceIntoPortrait' | 'tryAgain' | 'noCameraAvailable' | 'checkCameraConnection' | 'noMaskSunglassesHeaddress' | 'ambientLighting' | 'lookStraight' | 'fitYourFace' | 'moveCloser' | 'moveAway' | 'holdSteady' | 'takeAPhoto' | 'turnHead' | 'removeOcclusion' | 'turnHeadUp' | 'turnHeadDown' | 'turnHeadLeft' | 'turnHeadRight' | 'blinkYourEyes' | 'processing' | 'retryButtonText' | 'followGuidelinesText' | 'letsTryAgainTitle' | 'noCameraPermission' | 'goButton' | 'centerFaceTurnHead' | 'centerFace' | 'selfieTime' | 'errorCode' | 'illumination' | 'cameraLevel' | 'noAccessories' | 'getReady' | 'httpNotSupported' | 'webServerNotCompatible' | 'processCompleted';
|
|
209
211
|
|
|
210
212
|
declare type Languages = 'ru' | 'en' | 'de' | 'pl' | 'it' | 'hu' | 'zh' | 'sk' | 'uk' | 'fr' | 'es' | 'pt' | 'ar' | 'nl' | 'id' | 'vi' | 'ko' | 'ms' | 'ro' | 'el' | 'tr' | 'ja' | 'cs' | 'th' | 'hi' | 'bn' | 'he' | 'fi' | 'sv' | 'da' | 'hr' | 'no' | 'uz';
|
|
211
213
|
|