@regulaforensics/idv-gui 3.2.269-rc → 3.2.271-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 +1 -108
- package/dist/main.iife.js +4 -4
- package/dist/main.js +2983 -3392
- package/dist/main.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,36 +1,10 @@
|
|
|
1
1
|
import { FunctionComponent } from 'preact';
|
|
2
|
-
import { JSX } from 'preact';
|
|
3
|
-
|
|
4
|
-
declare function AgeIcon({ size }: {
|
|
5
|
-
size?: number;
|
|
6
|
-
color?: string;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
-
|
|
9
|
-
declare function AndroidIcon({ size, color }: {
|
|
10
|
-
size?: number;
|
|
11
|
-
color?: string;
|
|
12
|
-
}): JSX.Element;
|
|
13
|
-
|
|
14
|
-
declare function ArrowIcon({ size }: {
|
|
15
|
-
size?: number;
|
|
16
|
-
color?: string;
|
|
17
|
-
}): JSX.Element;
|
|
18
|
-
|
|
19
|
-
declare function BackIcon({ size }: {
|
|
20
|
-
size?: number;
|
|
21
|
-
color?: string;
|
|
22
|
-
}): JSX.Element;
|
|
23
2
|
|
|
24
3
|
declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
|
|
25
4
|
abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
|
|
26
5
|
abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
|
|
27
6
|
}
|
|
28
7
|
|
|
29
|
-
declare function BiometricIcon({ size }: {
|
|
30
|
-
size?: number;
|
|
31
|
-
color?: string;
|
|
32
|
-
}): JSX.Element;
|
|
33
|
-
|
|
34
8
|
declare const ContentMode: {
|
|
35
9
|
readonly ASPECT_FILL: "ASPECT_FILL";
|
|
36
10
|
readonly ASPECT_FIT: "ASPECT_FIT";
|
|
@@ -57,11 +31,6 @@ declare type DropdownControl = {
|
|
|
57
31
|
expandButton?: UIImage;
|
|
58
32
|
};
|
|
59
33
|
|
|
60
|
-
declare function ErrorIcon({ size, color }: {
|
|
61
|
-
size?: number;
|
|
62
|
-
color?: string;
|
|
63
|
-
}): JSX.Element;
|
|
64
|
-
|
|
65
34
|
export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig> {
|
|
66
35
|
private _mounted;
|
|
67
36
|
private _shadowRoot;
|
|
@@ -169,61 +138,7 @@ export declare const IDV_UI_ICONS: {
|
|
|
169
138
|
|
|
170
139
|
export declare type IDV_UI_ICONS = (typeof IDV_UI_ICONS)[keyof typeof IDV_UI_ICONS];
|
|
171
140
|
|
|
172
|
-
export declare const
|
|
173
|
-
warning_icon: typeof WarningIcon;
|
|
174
|
-
spinner: ({ indicatorColor }: {
|
|
175
|
-
indicatorColor?: string;
|
|
176
|
-
}) => JSX.Element;
|
|
177
|
-
failure: typeof ErrorIcon;
|
|
178
|
-
age: typeof AgeIcon;
|
|
179
|
-
android: typeof AndroidIcon;
|
|
180
|
-
arrow: typeof ArrowIcon;
|
|
181
|
-
apple: ({ size, color }: {
|
|
182
|
-
size?: number;
|
|
183
|
-
color?: string;
|
|
184
|
-
}) => JSX.Element;
|
|
185
|
-
back: typeof BackIcon;
|
|
186
|
-
biometricIcon: typeof BiometricIcon;
|
|
187
|
-
info: typeof InfoIcon;
|
|
188
|
-
toMobile: typeof ToMobileIcon;
|
|
189
|
-
underage: typeof UnderageIcon;
|
|
190
|
-
cross: ({ size, color }: {
|
|
191
|
-
size?: number;
|
|
192
|
-
color?: string;
|
|
193
|
-
}) => JSX.Element;
|
|
194
|
-
regulaLogo: ({ size, color }: {
|
|
195
|
-
size?: number;
|
|
196
|
-
color?: string;
|
|
197
|
-
}) => JSX.Element;
|
|
198
|
-
empty: () => JSX.Element;
|
|
199
|
-
signature: typeof PoweredByRegula;
|
|
200
|
-
success: ({ size, color }: {
|
|
201
|
-
size?: number;
|
|
202
|
-
color?: string;
|
|
203
|
-
}) => JSX.Element;
|
|
204
|
-
radio_selected: () => JSX.Element;
|
|
205
|
-
radio_normal: () => JSX.Element;
|
|
206
|
-
square_selected: () => JSX.Element;
|
|
207
|
-
square_normal: () => JSX.Element;
|
|
208
|
-
selected: ({ color }: {
|
|
209
|
-
color?: string | undefined;
|
|
210
|
-
}) => JSX.Element;
|
|
211
|
-
chevronDown: ({ color }: {
|
|
212
|
-
color?: string | undefined;
|
|
213
|
-
}) => JSX.Element;
|
|
214
|
-
close_icon: ({ size, color }: {
|
|
215
|
-
size?: number;
|
|
216
|
-
color?: string;
|
|
217
|
-
}) => JSX.Element;
|
|
218
|
-
gallery: ({ size, color }: {
|
|
219
|
-
size?: number;
|
|
220
|
-
color?: string;
|
|
221
|
-
}) => JSX.Element;
|
|
222
|
-
camera: ({ size, color }: {
|
|
223
|
-
size?: number;
|
|
224
|
-
color?: string;
|
|
225
|
-
}) => JSX.Element;
|
|
226
|
-
};
|
|
141
|
+
export declare const idvIconDataUrlMap: Record<IDV_UI_ICONS, (color?: string) => string>;
|
|
227
142
|
|
|
228
143
|
declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
229
144
|
isProcessing?: (isProcessing: boolean) => void;
|
|
@@ -234,11 +149,6 @@ declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
|
234
149
|
nonce?: string;
|
|
235
150
|
};
|
|
236
151
|
|
|
237
|
-
declare function InfoIcon({ size, color }: {
|
|
238
|
-
size?: number;
|
|
239
|
-
color?: string;
|
|
240
|
-
}): JSX.Element;
|
|
241
|
-
|
|
242
152
|
declare type JsonArray = JsonValue[];
|
|
243
153
|
|
|
244
154
|
declare type JsonObject = {
|
|
@@ -254,8 +164,6 @@ declare const performType: {
|
|
|
254
164
|
readonly DATA: "data";
|
|
255
165
|
};
|
|
256
166
|
|
|
257
|
-
declare function PoweredByRegula(): JSX.Element;
|
|
258
|
-
|
|
259
167
|
declare type QuestionDataSource = {
|
|
260
168
|
id: string | number;
|
|
261
169
|
placeholder?: string | null;
|
|
@@ -338,11 +246,6 @@ declare const TextAlignment: {
|
|
|
338
246
|
|
|
339
247
|
declare type TextAlignment = (typeof TextAlignment)[keyof typeof TextAlignment];
|
|
340
248
|
|
|
341
|
-
declare function ToMobileIcon({ size }: {
|
|
342
|
-
size?: number;
|
|
343
|
-
color?: string;
|
|
344
|
-
}): JSX.Element;
|
|
345
|
-
|
|
346
249
|
declare type UIButton = {
|
|
347
250
|
type?: 'RESPONSE_BODY' | 'FORM';
|
|
348
251
|
title?: UILabel;
|
|
@@ -575,11 +478,6 @@ declare type UITextQuestion = QuestionItem & {
|
|
|
575
478
|
textField?: UITextField;
|
|
576
479
|
};
|
|
577
480
|
|
|
578
|
-
declare function UnderageIcon({ size }: {
|
|
579
|
-
size?: number;
|
|
580
|
-
color?: string;
|
|
581
|
-
}): JSX.Element;
|
|
582
|
-
|
|
583
481
|
declare type Validator = {
|
|
584
482
|
type: typeof VALIDATOR_TYPE.NOT_EMPTY;
|
|
585
483
|
message: string;
|
|
@@ -596,9 +494,4 @@ declare const VALIDATOR_TYPE: {
|
|
|
596
494
|
|
|
597
495
|
declare type VALIDATOR_TYPE = (typeof VALIDATOR_TYPE)[keyof typeof VALIDATOR_TYPE];
|
|
598
496
|
|
|
599
|
-
declare function WarningIcon({ size, color }: {
|
|
600
|
-
size?: number;
|
|
601
|
-
color?: string;
|
|
602
|
-
}): JSX.Element;
|
|
603
|
-
|
|
604
497
|
export { }
|