@regulaforensics/idv-face 4.0.690-rc → 4.0.691-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 +60 -4
- package/dist/main.iife.js +86 -15
- package/dist/main.js +1652 -1558
- package/package.json +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
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';
|
|
5
1
|
import { LitElement } from 'lit';
|
|
6
2
|
import { RecordingProcess } from '@regulaforensics/vp-frontend-face-components';
|
|
7
3
|
import { TemplateResult } from 'lit-html';
|
|
8
4
|
|
|
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
|
+
|
|
9
10
|
export declare class FaceIdv extends LitElement implements BaseModule<FaceModuleProps, object> {
|
|
10
11
|
props: IdvModuleProps<FaceModuleProps, object> | null;
|
|
11
12
|
private renderVersion;
|
|
@@ -51,6 +52,10 @@ declare type FaceModuleProps = {
|
|
|
51
52
|
onboardingScreenStartButtonTitleHover?: string;
|
|
52
53
|
onboardingScreenSubtitleLabelTextColor?: string;
|
|
53
54
|
onboardingScreenMessageLabelsTextColor?: string;
|
|
55
|
+
onboardingScreenStartButtonFontName?: string;
|
|
56
|
+
onboardingScreenTitleLabelFontName?: string;
|
|
57
|
+
onboardingScreenSubtitleLabelFontName?: string;
|
|
58
|
+
onboardingScreenMessageLabelsFontName?: string;
|
|
54
59
|
onboardingScreenStartButtonFontSize?: number;
|
|
55
60
|
onboardingScreenTitleLabelFontSize?: number;
|
|
56
61
|
onboardingScreenSubtitleLabelFontSize?: number;
|
|
@@ -65,6 +70,7 @@ declare type FaceModuleProps = {
|
|
|
65
70
|
cameraScreenFrontHintLabelBackgroundColor?: string;
|
|
66
71
|
cameraScreenFrontHintLabelTextColor?: string;
|
|
67
72
|
cameraScreenHintLabelFontSize?: number;
|
|
73
|
+
cameraScreenHintLabelFontName?: string;
|
|
68
74
|
retryScreenBackgroundColor?: string;
|
|
69
75
|
retryScreenRetryButtonBackgroundColor?: string;
|
|
70
76
|
retryScreenRetryButtonBackgroundHover?: string;
|
|
@@ -73,6 +79,10 @@ declare type FaceModuleProps = {
|
|
|
73
79
|
retryScreenSubtitleLabelTextColor?: string;
|
|
74
80
|
retryScreenRetryButtonTitleHover?: string;
|
|
75
81
|
retryScreenHintLabelsTextColor?: string;
|
|
82
|
+
retryScreenRetryButtonFontName?: string;
|
|
83
|
+
retryScreenTitleLabelFontName?: string;
|
|
84
|
+
retryScreenSubtitleLabelFontName?: string;
|
|
85
|
+
retryScreenHintLabelsFontName?: string;
|
|
76
86
|
retryScreenRetryButtonFontSize?: number;
|
|
77
87
|
retryScreenTitleLabelFontSize?: number;
|
|
78
88
|
retryScreenSubtitleLabelFontSize?: number;
|
|
@@ -84,20 +94,25 @@ declare type FaceModuleProps = {
|
|
|
84
94
|
processingScreenProgressColor?: string;
|
|
85
95
|
processingScreenTitleColor?: string;
|
|
86
96
|
processingScreenFontSize?: number;
|
|
97
|
+
processingScreenFontName?: string;
|
|
87
98
|
successScreenBackgroundColor?: string;
|
|
88
99
|
successScreenImage?: IdvAsset;
|
|
89
100
|
infoScreenBackgroundColor?: string;
|
|
90
101
|
infoScreenTitleTextColor?: string;
|
|
91
102
|
infoScreenTitleTextFontSize?: number;
|
|
103
|
+
infoScreenTitleTextFontName?: string;
|
|
92
104
|
infoScreenSubtitleTextColor?: string;
|
|
93
105
|
infoScreenSubtitleTextFontSize?: number;
|
|
106
|
+
infoScreenSubtitleTextFontName?: string;
|
|
94
107
|
infoScreenRetryButtonFontSize?: number;
|
|
108
|
+
infoScreenRetryButtonFontName?: string;
|
|
95
109
|
infoScreenRetryButtonBackgroundColor?: string;
|
|
96
110
|
infoScreenRetryButtonTitleColor?: string;
|
|
97
111
|
infoScreenRetryButtonTitleHover?: string;
|
|
98
112
|
infoScreenRetryButtonBackgroundHover?: string;
|
|
99
113
|
infoScreenErrorCodeColor?: string;
|
|
100
114
|
infoScreenErrorCodeTextFontSize?: number;
|
|
115
|
+
infoScreenErrorCodeTextFontName?: string;
|
|
101
116
|
};
|
|
102
117
|
copyright?: boolean;
|
|
103
118
|
serviceURL?: string;
|
|
@@ -111,6 +126,47 @@ declare type FaceModuleProps = {
|
|
|
111
126
|
preloadAssetsRequired?: boolean;
|
|
112
127
|
};
|
|
113
128
|
|
|
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
|
+
|
|
114
170
|
declare type RecordingProcessKeys = keyof typeof RecordingProcess;
|
|
115
171
|
|
|
116
172
|
export { }
|