@regulaforensics/idv-face 4.0.686-nightly → 4.0.687-rc
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 +4 -60
- package/dist/main.iife.js +15 -86
- package/dist/main.js +1558 -1652
- package/package.json +1 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
+
import { BaseModule } from '../../../../interfaces-idv/src';
|
|
2
|
+
import { FailedAssets } from '../../interfaces-idv/src';
|
|
3
|
+
import { IdvAsset } from '../../interfaces-idv/src';
|
|
4
|
+
import { IdvModuleProps } from '../../../../interfaces-idv/src';
|
|
1
5
|
import { LitElement } from 'lit';
|
|
2
6
|
import { RecordingProcess } from '@regulaforensics/vp-frontend-face-components';
|
|
3
7
|
import { TemplateResult } from 'lit-html';
|
|
4
8
|
|
|
5
|
-
declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
|
|
6
|
-
abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
|
|
7
|
-
abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
9
|
export declare class FaceIdv extends LitElement implements BaseModule<FaceModuleProps, object> {
|
|
11
10
|
props: IdvModuleProps<FaceModuleProps, object> | null;
|
|
12
11
|
private renderVersion;
|
|
@@ -52,10 +51,6 @@ declare type FaceModuleProps = {
|
|
|
52
51
|
onboardingScreenStartButtonTitleHover?: string;
|
|
53
52
|
onboardingScreenSubtitleLabelTextColor?: string;
|
|
54
53
|
onboardingScreenMessageLabelsTextColor?: string;
|
|
55
|
-
onboardingScreenStartButtonFontName?: string;
|
|
56
|
-
onboardingScreenTitleLabelFontName?: string;
|
|
57
|
-
onboardingScreenSubtitleLabelFontName?: string;
|
|
58
|
-
onboardingScreenMessageLabelsFontName?: string;
|
|
59
54
|
onboardingScreenStartButtonFontSize?: number;
|
|
60
55
|
onboardingScreenTitleLabelFontSize?: number;
|
|
61
56
|
onboardingScreenSubtitleLabelFontSize?: number;
|
|
@@ -70,7 +65,6 @@ declare type FaceModuleProps = {
|
|
|
70
65
|
cameraScreenFrontHintLabelBackgroundColor?: string;
|
|
71
66
|
cameraScreenFrontHintLabelTextColor?: string;
|
|
72
67
|
cameraScreenHintLabelFontSize?: number;
|
|
73
|
-
cameraScreenHintLabelFontName?: string;
|
|
74
68
|
retryScreenBackgroundColor?: string;
|
|
75
69
|
retryScreenRetryButtonBackgroundColor?: string;
|
|
76
70
|
retryScreenRetryButtonBackgroundHover?: string;
|
|
@@ -79,10 +73,6 @@ declare type FaceModuleProps = {
|
|
|
79
73
|
retryScreenSubtitleLabelTextColor?: string;
|
|
80
74
|
retryScreenRetryButtonTitleHover?: string;
|
|
81
75
|
retryScreenHintLabelsTextColor?: string;
|
|
82
|
-
retryScreenRetryButtonFontName?: string;
|
|
83
|
-
retryScreenTitleLabelFontName?: string;
|
|
84
|
-
retryScreenSubtitleLabelFontName?: string;
|
|
85
|
-
retryScreenHintLabelsFontName?: string;
|
|
86
76
|
retryScreenRetryButtonFontSize?: number;
|
|
87
77
|
retryScreenTitleLabelFontSize?: number;
|
|
88
78
|
retryScreenSubtitleLabelFontSize?: number;
|
|
@@ -94,25 +84,20 @@ declare type FaceModuleProps = {
|
|
|
94
84
|
processingScreenProgressColor?: string;
|
|
95
85
|
processingScreenTitleColor?: string;
|
|
96
86
|
processingScreenFontSize?: number;
|
|
97
|
-
processingScreenFontName?: string;
|
|
98
87
|
successScreenBackgroundColor?: string;
|
|
99
88
|
successScreenImage?: IdvAsset;
|
|
100
89
|
infoScreenBackgroundColor?: string;
|
|
101
90
|
infoScreenTitleTextColor?: string;
|
|
102
91
|
infoScreenTitleTextFontSize?: number;
|
|
103
|
-
infoScreenTitleTextFontName?: string;
|
|
104
92
|
infoScreenSubtitleTextColor?: string;
|
|
105
93
|
infoScreenSubtitleTextFontSize?: number;
|
|
106
|
-
infoScreenSubtitleTextFontName?: string;
|
|
107
94
|
infoScreenRetryButtonFontSize?: number;
|
|
108
|
-
infoScreenRetryButtonFontName?: string;
|
|
109
95
|
infoScreenRetryButtonBackgroundColor?: string;
|
|
110
96
|
infoScreenRetryButtonTitleColor?: string;
|
|
111
97
|
infoScreenRetryButtonTitleHover?: string;
|
|
112
98
|
infoScreenRetryButtonBackgroundHover?: string;
|
|
113
99
|
infoScreenErrorCodeColor?: string;
|
|
114
100
|
infoScreenErrorCodeTextFontSize?: number;
|
|
115
|
-
infoScreenErrorCodeTextFontName?: string;
|
|
116
101
|
};
|
|
117
102
|
copyright?: boolean;
|
|
118
103
|
serviceURL?: string;
|
|
@@ -126,47 +111,6 @@ declare type FaceModuleProps = {
|
|
|
126
111
|
preloadAssetsRequired?: boolean;
|
|
127
112
|
};
|
|
128
113
|
|
|
129
|
-
declare type FailedAssets = {
|
|
130
|
-
imageURL: Set<string>;
|
|
131
|
-
base64: Set<string>;
|
|
132
|
-
blockingAssets: Set<string>;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
declare type IdvAsset = {
|
|
136
|
-
idvAsset: ImageLike;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
140
|
-
isProcessing?: (isProcessing: boolean) => void;
|
|
141
|
-
moduleProps: TModuleProps;
|
|
142
|
-
modulesConfig?: TModulesConfig;
|
|
143
|
-
perform: (data: any, type?: PerformType) => void;
|
|
144
|
-
idvEventListener: (module: string, data: any, logLevel?: 'INFO' | 'DEBUG') => void;
|
|
145
|
-
nonce?: string;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
declare type ImageBase = {
|
|
149
|
-
imageURL?: string;
|
|
150
|
-
imageId?: string;
|
|
151
|
-
base64?: string;
|
|
152
|
-
prepareRequired?: boolean;
|
|
153
|
-
failurePolicy?: ImageFailurePolicy;
|
|
154
|
-
timeout?: number;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
declare type ImageFailurePolicy = 'ignore' | 'placeholderImage' | 'error';
|
|
158
|
-
|
|
159
|
-
declare type ImageLike = ImageBase & {
|
|
160
|
-
placeholderImage?: ImageLike;
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
|
|
164
|
-
|
|
165
|
-
declare const PerformTypes: {
|
|
166
|
-
readonly FORM: "form";
|
|
167
|
-
readonly DATA: "data";
|
|
168
|
-
};
|
|
169
|
-
|
|
170
114
|
declare type RecordingProcessKeys = keyof typeof RecordingProcess;
|
|
171
115
|
|
|
172
116
|
export { }
|