@regulaforensics/idv-gui 2.3.123 → 2.3.126-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 +57 -15
- package/dist/main.js +1664 -1633
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
declare
|
|
2
|
-
ASPECT_FILL
|
|
3
|
-
ASPECT_FIT
|
|
4
|
-
FILL
|
|
5
|
-
}
|
|
1
|
+
declare const ContentMode: {
|
|
2
|
+
readonly ASPECT_FILL: "ASPECT_FILL";
|
|
3
|
+
readonly ASPECT_FIT: "ASPECT_FIT";
|
|
4
|
+
readonly FILL: "FILL";
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
declare type ContentMode = keyof typeof ContentMode;
|
|
6
8
|
|
|
7
|
-
declare const GuiIdv: React.FC<IdvModuleProps<GuiModuleProps, GuiModuleConfig>> & IdvModuleMethods;
|
|
9
|
+
declare const GuiIdv: React.FC<IdvModuleProps<GuiModuleProps | GuiModulePropsUnknown, GuiModuleConfig>> & IdvModuleMethods;
|
|
8
10
|
export default GuiIdv;
|
|
9
11
|
|
|
10
12
|
declare const GuiIdvSteps: {
|
|
@@ -14,12 +16,16 @@ declare const GuiIdvSteps: {
|
|
|
14
16
|
readonly PROGRESS: "PROGRESS";
|
|
15
17
|
};
|
|
16
18
|
|
|
19
|
+
declare type GuiIdvSteps = keyof typeof GuiIdvSteps;
|
|
20
|
+
|
|
17
21
|
declare type GuiModuleConfig = Record<string, any>;
|
|
18
22
|
|
|
19
|
-
declare type GuiModuleProps = {
|
|
23
|
+
export declare type GuiModuleProps = {
|
|
20
24
|
[K in keyof GuiModulePropsMap]: {
|
|
21
|
-
templateId
|
|
25
|
+
templateId: K;
|
|
22
26
|
templateLayout?: GuiModulePropsMap[K];
|
|
27
|
+
sessionId?: string;
|
|
28
|
+
serviceToken?: string;
|
|
23
29
|
};
|
|
24
30
|
}[keyof GuiModulePropsMap];
|
|
25
31
|
|
|
@@ -30,6 +36,40 @@ declare type GuiModulePropsMap = {
|
|
|
30
36
|
[GuiIdvSteps.STATUS]: UIStatusScreenClientConfig;
|
|
31
37
|
};
|
|
32
38
|
|
|
39
|
+
export declare type GuiModulePropsUnknown = {
|
|
40
|
+
templateId: string;
|
|
41
|
+
templateLayout?: Record<string, any>;
|
|
42
|
+
sessionId?: string;
|
|
43
|
+
serviceToken?: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export declare const IDV_UI_ICONS: {
|
|
47
|
+
readonly WARNING: "warning_icon";
|
|
48
|
+
readonly SPINNER: "spinner";
|
|
49
|
+
readonly ERROR: "failure";
|
|
50
|
+
readonly AGE: "age";
|
|
51
|
+
readonly ANDROID: "android";
|
|
52
|
+
readonly ARROW: "arrow";
|
|
53
|
+
readonly APPLE: "apple";
|
|
54
|
+
readonly BACK: "back";
|
|
55
|
+
readonly BIOMETRIC: "biometricIcon";
|
|
56
|
+
readonly INFO: "info";
|
|
57
|
+
readonly TO_MOBILE: "toMobile";
|
|
58
|
+
readonly UNDERAGE: "underage";
|
|
59
|
+
readonly CROSS: "cross";
|
|
60
|
+
readonly REGULA_LOGO: "regulaLogo";
|
|
61
|
+
readonly POWERED_BY: "signature";
|
|
62
|
+
readonly SUCCESS: "success";
|
|
63
|
+
readonly DEFAULT: "empty";
|
|
64
|
+
readonly ONBOARDING_SCAN_ID: "onboardingScanYourId";
|
|
65
|
+
readonly ONBOARDING_READ_RFID: "onboardingReadRfidChip";
|
|
66
|
+
readonly ONBOARDING_TAKE_SELFIE: "onboardgTakeASelfie";
|
|
67
|
+
readonly PREPARE_DOCUMENT_STEP: "prepareDocumentStep";
|
|
68
|
+
readonly PREPARE_LIVENESS_STEP: "prepareLivenessStep";
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export declare type IDV_UI_ICONS = keyof typeof IDV_UI_ICONS;
|
|
72
|
+
|
|
33
73
|
declare type IdvModuleMethods = {
|
|
34
74
|
isReady: () => boolean;
|
|
35
75
|
getSupportedTemplates: () => string[];
|
|
@@ -49,16 +89,18 @@ declare type IdvModuleProps<T, R> = {
|
|
|
49
89
|
export declare const MODULE_NAME = "GUI";
|
|
50
90
|
|
|
51
91
|
/** Common UI elements types */
|
|
52
|
-
declare
|
|
53
|
-
LEFT
|
|
54
|
-
CENTER
|
|
55
|
-
RIGHT
|
|
56
|
-
}
|
|
92
|
+
declare const TextAlignment: {
|
|
93
|
+
readonly LEFT: "LEFT";
|
|
94
|
+
readonly CENTER: "CENTER";
|
|
95
|
+
readonly RIGHT: "RIGHT";
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
declare type TextAlignment = keyof typeof TextAlignment;
|
|
57
99
|
|
|
58
100
|
declare type UIButton = {
|
|
59
101
|
title?: UILabel;
|
|
60
102
|
image?: UIImage;
|
|
61
|
-
responseBody?: string
|
|
103
|
+
responseBody?: string | Record<string, any>;
|
|
62
104
|
backgroundColor?: string;
|
|
63
105
|
cornerRadius?: number;
|
|
64
106
|
highlightColor?: string;
|
|
@@ -117,7 +159,7 @@ declare type UIInfoScreenClientConfig = {
|
|
|
117
159
|
declare type UILabel = {
|
|
118
160
|
text?: string;
|
|
119
161
|
fontName?: string;
|
|
120
|
-
fontSize?: string;
|
|
162
|
+
fontSize?: string | number;
|
|
121
163
|
fontColor?: string;
|
|
122
164
|
alignment?: TextAlignment;
|
|
123
165
|
backgroundColor?: string;
|