@regulaforensics/idv-face 3.1.232-nightly → 3.2.233-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/dist/index.d.ts +51 -10
- package/dist/main.iife.js +74 -48
- package/dist/main.js +13587 -13004
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -7,21 +7,24 @@ declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unkno
|
|
|
7
7
|
abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
declare class FaceIdv extends BaseModule<
|
|
11
|
-
props: IdvModuleProps<
|
|
10
|
+
declare class FaceIdv extends BaseModule<FaceModuleProps, FaceIdvModulesConfig> {
|
|
11
|
+
props: IdvModuleProps<FaceModuleProps, FaceIdvModulesConfig> | null;
|
|
12
12
|
webComponent: FaceLivenessWebComponent | null;
|
|
13
13
|
private _mounted;
|
|
14
14
|
private _isFinishWithExitOnce;
|
|
15
15
|
constructor();
|
|
16
16
|
static displayName: string;
|
|
17
17
|
listener: (data: CustomEvent<FaceLivenessDetailType>) => void;
|
|
18
|
-
|
|
18
|
+
private prepareStyles;
|
|
19
|
+
private injectStyles;
|
|
20
|
+
private prepareSettings;
|
|
21
|
+
setProps(props: IdvModuleProps<FaceModuleProps, FaceIdvModulesConfig>): void;
|
|
19
22
|
connectedCallback(): void;
|
|
20
23
|
render(): void;
|
|
21
24
|
disconnectedCallback(): void;
|
|
22
25
|
static isReady(): boolean;
|
|
23
26
|
static getSupportedTemplates: () => FaceIdvSteps[];
|
|
24
|
-
static initialize(
|
|
27
|
+
static initialize(_modulesConfig: Record<string, unknown>): void;
|
|
25
28
|
static deinitialize(): void;
|
|
26
29
|
static getIdentifier: () => string;
|
|
27
30
|
}
|
|
@@ -30,9 +33,13 @@ export default FaceIdv;
|
|
|
30
33
|
|
|
31
34
|
declare type FaceIdvModulesConfig = object;
|
|
32
35
|
|
|
33
|
-
declare
|
|
36
|
+
declare enum FaceIdvSteps {
|
|
37
|
+
LIVENESS = "LIVENESS"
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare type FaceModuleProps = {
|
|
34
41
|
config?: {
|
|
35
|
-
skipSteps?:
|
|
42
|
+
skipSteps?: Array<'ONBOARDING_STEP' | 'SUCCESS_STEP'>;
|
|
36
43
|
attemptsCount?: number;
|
|
37
44
|
copyright?: boolean;
|
|
38
45
|
recordingProcess?: RecordingProcessKeys;
|
|
@@ -44,6 +51,44 @@ declare type FaceIdvProps = {
|
|
|
44
51
|
workerPath?: string;
|
|
45
52
|
detectOcclusion?: boolean;
|
|
46
53
|
metadata?: Record<string, unknown>;
|
|
54
|
+
nonce?: string;
|
|
55
|
+
};
|
|
56
|
+
customization?: {
|
|
57
|
+
onboardingScreenStartButtonBackground?: string;
|
|
58
|
+
onboardingScreenStartButtonTitle?: string;
|
|
59
|
+
onboardingScreenIllumination?: string;
|
|
60
|
+
onboardingScreenAccessories?: string;
|
|
61
|
+
onboardingScreenCameraLevel?: string;
|
|
62
|
+
cameraScreenFrontHintLabelText?: string;
|
|
63
|
+
cameraScreenFrontHintLabelBackground?: string;
|
|
64
|
+
cameraScreenStrokeNormal?: string;
|
|
65
|
+
cameraScreenSectorTarget?: string;
|
|
66
|
+
cameraScreenSectorActive?: string;
|
|
67
|
+
processingScreenProgress?: string;
|
|
68
|
+
successScreenImage?: string;
|
|
69
|
+
retryScreenRetryButtonTitle?: string;
|
|
70
|
+
retryScreenRetryButtonBackground?: string;
|
|
71
|
+
retryScreenHintSubject?: string;
|
|
72
|
+
retryScreenHintEnvironment?: string;
|
|
73
|
+
onboardingScreenStartButton?: string;
|
|
74
|
+
onboardingScreenTitleLabelText?: string;
|
|
75
|
+
onboardingScreenTitleLabel?: string;
|
|
76
|
+
onboardingScreenSubtitleLabelText?: string;
|
|
77
|
+
onboardingScreenSubtitleLabel?: string;
|
|
78
|
+
cameraScreenHintLabel?: string;
|
|
79
|
+
retryScreenTitleLabelText?: string;
|
|
80
|
+
retryScreenTitleLabel?: string;
|
|
81
|
+
retryScreenSubtitleLabelText?: string;
|
|
82
|
+
retryScreenSubtitleLabel?: string;
|
|
83
|
+
retryScreenHintLabelsText?: string;
|
|
84
|
+
retryScreenHintLabels?: string;
|
|
85
|
+
retryScreenRetryButton?: string;
|
|
86
|
+
fontSize?: string;
|
|
87
|
+
fontFamily?: string;
|
|
88
|
+
onboardingScreenStartButtonBackgroundHover?: string;
|
|
89
|
+
onboardingScreenStartButtonTitleHover?: string;
|
|
90
|
+
retryScreenRetryButtonTitleHover?: string;
|
|
91
|
+
retryScreenRetryButtonBackgroundHover?: string;
|
|
47
92
|
};
|
|
48
93
|
copyright: boolean;
|
|
49
94
|
serviceURL?: string;
|
|
@@ -54,10 +99,6 @@ declare type FaceIdvProps = {
|
|
|
54
99
|
serviceToken?: string;
|
|
55
100
|
};
|
|
56
101
|
|
|
57
|
-
declare enum FaceIdvSteps {
|
|
58
|
-
LIVENESS = "LIVENESS"
|
|
59
|
-
}
|
|
60
|
-
|
|
61
102
|
declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
62
103
|
isProcessing?: (isProcessing: boolean) => void;
|
|
63
104
|
moduleProps: TModuleProps;
|