@regulaforensics/idv-gui 2.5.195 → 2.5.196-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 CHANGED
@@ -1,3 +1,35 @@
1
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
2
+
3
+ declare function AgeIcon({ size }: {
4
+ size?: number;
5
+ color?: string;
6
+ }): JSX_2.Element;
7
+
8
+ declare function AndroidIcon({ size, color }: {
9
+ size?: number;
10
+ color?: string;
11
+ }): JSX_2.Element;
12
+
13
+ declare function ArrowIcon({ size }: {
14
+ size?: number;
15
+ color?: string;
16
+ }): JSX_2.Element;
17
+
18
+ declare function BackIcon({ size }: {
19
+ size?: number;
20
+ color?: string;
21
+ }): JSX_2.Element;
22
+
23
+ declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
24
+ abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
25
+ abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
26
+ }
27
+
28
+ declare function BiometricIcon({ size }: {
29
+ size?: number;
30
+ color?: string;
31
+ }): JSX_2.Element;
32
+
1
33
  declare const ContentMode: {
2
34
  readonly ASPECT_FILL: "ASPECT_FILL";
3
35
  readonly ASPECT_FIT: "ASPECT_FIT";
@@ -14,9 +46,42 @@ declare const DATA_SOURCE_ANSWER_TYPE: {
14
46
 
15
47
  declare type DATA_SOURCE_ANSWER_TYPE = (typeof DATA_SOURCE_ANSWER_TYPE)[keyof typeof DATA_SOURCE_ANSWER_TYPE];
16
48
 
17
- declare const GuiIdv: React.FC<IdvModuleProps<GuiModuleProps | GuiModulePropsUnknown, GuiModuleConfig>> & IdvModuleMethods;
49
+ declare type DropdownControl = {
50
+ backgroundColor?: string;
51
+ cornerRadius?: number;
52
+ borderWidth?: number;
53
+ borderColor?: string;
54
+ highlightBorderColor?: string;
55
+ clearButton?: UIImage;
56
+ expandButton?: UIImage;
57
+ };
58
+
59
+ declare function ErrorIcon({ size, color }: {
60
+ size?: number;
61
+ color?: string;
62
+ }): JSX_2.Element;
63
+
64
+ declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig> {
65
+ private _root;
66
+ private _mounted;
67
+ props: IdvModuleProps<GuiModuleProps, GuiModuleConfig> | null;
68
+ constructor();
69
+ static displayName: string;
70
+ setProps(props: IdvModuleProps<GuiModuleProps, GuiModuleConfig>): void;
71
+ connectedCallback(): void;
72
+ private render;
73
+ disconnectedCallback(): void;
74
+ static isReady(): boolean;
75
+ static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS")[];
76
+ static initialize(modulesConfig: Record<string, unknown>): void;
77
+ static deinitialize(): void;
78
+ static getIdentifier: () => string;
79
+ }
80
+ export { GuiIdv }
18
81
  export default GuiIdv;
19
82
 
83
+ export declare const GuiIdvReactComponent: React.FC<IdvModuleProps<GuiModuleProps | GuiModulePropsUnknown, GuiModuleConfig>>;
84
+
20
85
  export declare const GuiIdvSteps: {
21
86
  readonly INFO: "INFO";
22
87
  readonly INFO_DETAILS: "INFO_DETAILS";
@@ -27,6 +92,10 @@ export declare const GuiIdvSteps: {
27
92
 
28
93
  export declare type GuiIdvSteps = (typeof GuiIdvSteps)[keyof typeof GuiIdvSteps];
29
94
 
95
+ export declare const GuiIdvStyleInjectionWrapper: React.FC<{
96
+ children: React.ReactNode;
97
+ }>;
98
+
30
99
  declare type GuiModuleConfig = Record<string, any>;
31
100
 
32
101
  export declare const GuiModuleError: {
@@ -96,22 +165,82 @@ export declare const IDV_UI_ICONS: {
96
165
 
97
166
  export declare type IDV_UI_ICONS = (typeof IDV_UI_ICONS)[keyof typeof IDV_UI_ICONS];
98
167
 
99
- declare type IdvModuleMethods = {
100
- isReady: () => boolean;
101
- getSupportedTemplates: () => string[];
102
- getIdentifier: () => string;
103
- initialize: (modulesConfig: Record<string, any>) => void;
104
- deinitialize?: () => void;
105
- };
106
-
107
- declare type IdvModuleProps<T, R> = {
168
+ export declare const idvIconComponents: {
169
+ warning_icon: typeof WarningIcon;
170
+ spinner: ({ indicatorColor }: {
171
+ indicatorColor?: string;
172
+ }) => JSX_2.Element;
173
+ failure: typeof ErrorIcon;
174
+ age: typeof AgeIcon;
175
+ android: typeof AndroidIcon;
176
+ arrow: typeof ArrowIcon;
177
+ apple: ({ size, color }: {
178
+ size?: number;
179
+ color?: string;
180
+ }) => JSX_2.Element;
181
+ back: typeof BackIcon;
182
+ biometricIcon: typeof BiometricIcon;
183
+ info: typeof InfoIcon;
184
+ toMobile: typeof ToMobileIcon;
185
+ underage: typeof UnderageIcon;
186
+ cross: ({ size, color }: {
187
+ size?: number;
188
+ color?: string;
189
+ }) => JSX_2.Element;
190
+ regulaLogo: ({ size, color }: {
191
+ size?: number;
192
+ color?: string;
193
+ }) => JSX_2.Element;
194
+ empty: () => JSX_2.Element;
195
+ signature: typeof PoweredByRegula;
196
+ success: ({ size, color }: {
197
+ size?: number;
198
+ color?: string;
199
+ }) => JSX_2.Element;
200
+ onboardingScanYourId: () => JSX_2.Element;
201
+ onboardingReadRfidChip: () => JSX_2.Element;
202
+ onboardgTakeASelfie: () => JSX_2.Element;
203
+ prepareDocumentStep: () => JSX_2.Element;
204
+ prepareLivenessStep: () => JSX_2.Element;
205
+ radio_selected: () => JSX_2.Element;
206
+ radio_normal: () => JSX_2.Element;
207
+ square_selected: () => JSX_2.Element;
208
+ square_normal: () => JSX_2.Element;
209
+ selected: ({ color }: {
210
+ color?: string | undefined;
211
+ }) => JSX_2.Element;
212
+ chevronDown: ({ color }: {
213
+ color?: string | undefined;
214
+ }) => JSX_2.Element;
215
+ close_icon: ({ size, color }: {
216
+ size?: number;
217
+ color?: string;
218
+ }) => JSX_2.Element;
219
+ };
220
+
221
+ declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
108
222
  isProcessing?: (isProcessing: boolean) => void;
109
- moduleProps: T;
110
- modulesConfig?: R;
223
+ moduleProps: TModuleProps;
224
+ modulesConfig?: TModulesConfig;
111
225
  perform: (data: any) => void;
112
226
  idvEventListener: (module: string, data: any) => void;
113
227
  };
114
228
 
229
+ declare function InfoIcon({ size, color }: {
230
+ size?: number;
231
+ color?: string;
232
+ }): JSX_2.Element;
233
+
234
+ declare type JsonArray = JsonValue[];
235
+
236
+ declare type JsonObject = {
237
+ [key: string]: JsonValue;
238
+ };
239
+
240
+ declare type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
241
+
242
+ declare function PoweredByRegula(): JSX_2.Element;
243
+
115
244
  declare type QuestionDataSource = {
116
245
  id: string | number;
117
246
  placeholder?: string | null;
@@ -194,11 +323,16 @@ declare const TextAlignment: {
194
323
 
195
324
  declare type TextAlignment = (typeof TextAlignment)[keyof typeof TextAlignment];
196
325
 
326
+ declare function ToMobileIcon({ size }: {
327
+ size?: number;
328
+ color?: string;
329
+ }): JSX_2.Element;
330
+
197
331
  declare type UIButton = {
198
332
  type?: 'RESPONSE_BODY' | 'FORM';
199
333
  title?: UILabel;
200
334
  image?: UIImage;
201
- responseBody?: string | Record<string, any>;
335
+ responseBody?: JsonObject;
202
336
  backgroundColor?: string;
203
337
  cornerRadius?: number;
204
338
  highlightColor?: string;
@@ -208,6 +342,13 @@ declare type UIButton = {
208
342
 
209
343
  declare type UIButtonOption = UIButton;
210
344
 
345
+ declare type UIChip = {
346
+ title?: UILabel;
347
+ removeImage?: UIImage;
348
+ cornerRadius?: number;
349
+ backgroundColor?: string;
350
+ };
351
+
211
352
  declare type UIDetailsItem = {
212
353
  title?: UILabel;
213
354
  description?: UILabel;
@@ -222,6 +363,10 @@ declare type UIDetailsList = {
222
363
  cornerRadius: number;
223
364
  };
224
365
 
366
+ declare type UIDropdownControl = DropdownControl & {
367
+ title: UILabel;
368
+ };
369
+
225
370
  declare type UIDropdownOption = {
226
371
  title?: UILabel;
227
372
  image?: UIImage;
@@ -230,6 +375,13 @@ declare type UIDropdownOption = {
230
375
  highlightColor?: string;
231
376
  };
232
377
 
378
+ declare type UIDropdownPicker = {
379
+ backgroundColor?: string;
380
+ cornerRadius?: number;
381
+ borderWidth?: number;
382
+ borderColor?: string;
383
+ };
384
+
233
385
  declare type UIImage = {
234
386
  imageURL?: string;
235
387
  base64?: string;
@@ -276,10 +428,16 @@ declare type UILabel = {
276
428
  cornerRadius?: number;
277
429
  };
278
430
 
431
+ declare type UIMultiDropdownControl = DropdownControl & {
432
+ chip: UIChip;
433
+ };
434
+
279
435
  declare type UIMultiSelectorQuestion = QuestionItem & {
280
436
  displayType: typeof QUESTIONS_DISPLAY_TYPES.MULTI_SELECTOR_DROPDOWN;
281
437
  option: UIDropdownOption;
282
438
  optionSelected: UIDropdownOption;
439
+ dropdownControl: UIMultiDropdownControl;
440
+ dropdownPicker: UIDropdownPicker;
283
441
  };
284
442
 
285
443
  declare type UIProgressScreenClientConfig = {
@@ -290,7 +448,6 @@ declare type UIProgressScreenClientConfig = {
290
448
  };
291
449
 
292
450
  declare type UIProgressView = {
293
- title?: UILabel;
294
451
  indicatorColor: string;
295
452
  };
296
453
 
@@ -325,6 +482,8 @@ declare type UISelectorDropdownQuestion = QuestionItem & {
325
482
  displayType: typeof QUESTIONS_DISPLAY_TYPES.SELECTOR_DROPDOWN;
326
483
  option: UIDropdownOption;
327
484
  optionSelected: UIDropdownOption;
485
+ dropdownControl: UIDropdownControl;
486
+ dropdownPicker: UIDropdownPicker;
328
487
  };
329
488
 
330
489
  declare type UISelectorOptionsQuestion = QuestionItem & {
@@ -339,6 +498,7 @@ declare type UIStatusScreenClientConfig = {
339
498
  header?: UIInfoHeaderView;
340
499
  image?: UIImage;
341
500
  title?: UILabel;
501
+ description: UILabel;
342
502
  buttons?: UIButton[];
343
503
  footer?: UIInfoFooterView;
344
504
  backgroundColor?: string;
@@ -358,6 +518,11 @@ declare type UITextQuestion = QuestionItem & {
358
518
  textField?: UITextField;
359
519
  };
360
520
 
521
+ declare function UnderageIcon({ size }: {
522
+ size?: number;
523
+ color?: string;
524
+ }): JSX_2.Element;
525
+
361
526
  declare type Validator = {
362
527
  type: typeof VALIDATOR_TYPE.NOT_EMPTY;
363
528
  message: string;
@@ -374,4 +539,9 @@ declare const VALIDATOR_TYPE: {
374
539
 
375
540
  declare type VALIDATOR_TYPE = (typeof VALIDATOR_TYPE)[keyof typeof VALIDATOR_TYPE];
376
541
 
542
+ declare function WarningIcon({ size, color }: {
543
+ size?: number;
544
+ color?: string;
545
+ }): JSX_2.Element;
546
+
377
547
  export { }