@regulaforensics/idv-gui 4.0.669-nightly → 4.0.670-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 CHANGED
@@ -12,23 +12,6 @@ declare const CLIENT_VALIDATOR_TYPE: {
12
12
 
13
13
  declare type CLIENT_VALIDATOR_TYPE = (typeof CLIENT_VALIDATOR_TYPE)[keyof typeof CLIENT_VALIDATOR_TYPE];
14
14
 
15
- declare const CodeFieldInputType: {
16
- readonly NUMERIC: "NUMERIC";
17
- readonly ALPHA_NUMERIC: "ALPHA_NUMERIC";
18
- };
19
-
20
- declare type CodeFieldInputType = (typeof CodeFieldInputType)[keyof typeof CodeFieldInputType];
21
-
22
- declare type CodeInputDataItem = {
23
- id: string | number;
24
- text: string;
25
- required: boolean | null;
26
- property: {
27
- id: string;
28
- };
29
- validators: Array<Validator>;
30
- };
31
-
32
15
  declare const ContentMode: {
33
16
  readonly ASPECT_FILL: "ASPECT_FILL";
34
17
  readonly ASPECT_FIT: "ASPECT_FIT";
@@ -45,27 +28,6 @@ declare const DATA_SOURCE_ANSWER_TYPE: {
45
28
 
46
29
  declare type DATA_SOURCE_ANSWER_TYPE = (typeof DATA_SOURCE_ANSWER_TYPE)[keyof typeof DATA_SOURCE_ANSWER_TYPE];
47
30
 
48
- declare type DataItem = {
49
- type: typeof ListElementTypes.GENERIC_COLUMN;
50
- uiComponentId: string;
51
- } | {
52
- type: typeof ListElementTypes.QUESTION;
53
- uiComponentId: string;
54
- content: QuestionDataItem;
55
- } | {
56
- type: typeof ListElementTypes.SECTION;
57
- uiComponentId: string;
58
- content: SectionDataItem;
59
- } | {
60
- type: typeof ListElementTypes.CODE_INPUT;
61
- uiComponentId: string;
62
- content: CodeInputDataItem;
63
- } | {
64
- type: typeof ListElementTypes.TEXT_INPUT;
65
- uiComponentId: string;
66
- content: TextInputDataItem;
67
- };
68
-
69
31
  declare type DropdownControl = {
70
32
  backgroundColor?: string;
71
33
  cornerRadius?: number;
@@ -83,10 +45,6 @@ declare const FontWeight: {
83
45
 
84
46
  declare type FontWeight = (typeof FontWeight)[keyof typeof FontWeight];
85
47
 
86
- declare type GenericListDataSource = {
87
- dataItems: DataItem[];
88
- };
89
-
90
48
  declare type GenericPopup = {
91
49
  rootElement: UIRootElement;
92
50
  reason: string;
@@ -109,7 +67,7 @@ export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig>
109
67
  private render;
110
68
  disconnectedCallback(): void;
111
69
  static isReady(): boolean;
112
- static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS" | "CAMERA" | "GALLERY" | "GEOLOCATION" | "DEVICE_TRANSFER" | "GENERIC" | "GENERIC_LIST" | "GENERIC_LOCATION" | "GENERIC_PROGRESS" | "UPLOAD_FILES")[];
70
+ static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS" | "CAMERA" | "GALLERY" | "GEOLOCATION" | "DEVICE_TRANSFER" | "GENERIC" | "GENERIC_LOCATION" | "GENERIC_PROGRESS" | "UPLOAD_FILES")[];
113
71
  static initialize(_modulesConfig: Record<string, unknown>): void;
114
72
  static deinitialize(): void;
115
73
  static getIdentifier: () => string;
@@ -130,7 +88,6 @@ export declare const GuiIdvSteps: {
130
88
  readonly GEOLOCATION: "GEOLOCATION";
131
89
  readonly DEVICE_TRANSFER: "DEVICE_TRANSFER";
132
90
  readonly GENERIC: "GENERIC";
133
- readonly GENERIC_LIST: "GENERIC_LIST";
134
91
  readonly GENERIC_LOCATION: "GENERIC_LOCATION";
135
92
  readonly GENERIC_PROGRESS: "GENERIC_PROGRESS";
136
93
  readonly UPLOAD_FILES: "UPLOAD_FILES";
@@ -211,11 +168,6 @@ export declare type GuiModuleProps = {
211
168
  } | {
212
169
  templateId: typeof GuiIdvSteps.GENERIC;
213
170
  templateLayout: UIGenericScreenClientConfig;
214
- } | {
215
- templateId: typeof GuiIdvSteps.GENERIC_LIST;
216
- templateLayout: UIGenericListScreenClientConfig;
217
- dataSource?: GenericListDataSource | null;
218
- properties?: SessionPropertiesItem[];
219
171
  } | {
220
172
  templateId: typeof GuiIdvSteps.GENERIC_PROGRESS;
221
173
  templateLayout: UIGenericProgressScreenClientConfig;
@@ -275,18 +227,6 @@ declare type JsonObject = {
275
227
 
276
228
  declare type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
277
229
 
278
- declare const ListElementTypes: {
279
- readonly GENERIC_COLUMN: "genericColumn";
280
- readonly QUESTION: "question";
281
- readonly SECTION: "section";
282
- readonly CODE_INPUT: "codeInput";
283
- readonly TEXT_INPUT: "textInput";
284
- };
285
-
286
- declare const ListRootElementTypes: {
287
- readonly LIST_SCAFFOLD: "listScaffold";
288
- };
289
-
290
230
  declare enum LocationAccuracy {
291
231
  HIGH = "HIGH",
292
232
  BALANCED = "BALANCED",
@@ -316,8 +256,6 @@ export declare const PopupReason: {
316
256
 
317
257
  export declare type PopupReason = (typeof PopupReason)[keyof typeof PopupReason];
318
258
 
319
- declare type QuestionDataItem = QuestionDataSource;
320
-
321
259
  declare type QuestionDataSource = {
322
260
  id: string | number;
323
261
  placeholder?: string | null;
@@ -369,10 +307,6 @@ declare const RootElementTypes: {
369
307
  readonly SCAFFOLD: "scaffold";
370
308
  };
371
309
 
372
- declare type SectionDataItem = {
373
- dataItems: DataItem[];
374
- };
375
-
376
310
  declare type SessionPropertiesItem = {
377
311
  id: string;
378
312
  createdAt: string;
@@ -410,24 +344,6 @@ declare const TextAlignment: {
410
344
 
411
345
  declare type TextAlignment = (typeof TextAlignment)[keyof typeof TextAlignment];
412
346
 
413
- declare const TextFieldInputType: {
414
- readonly EMAIL: "EMAIL";
415
- readonly PHONE: "PHONE";
416
- };
417
-
418
- declare type TextFieldInputType = (typeof TextFieldInputType)[keyof typeof TextFieldInputType];
419
-
420
- declare type TextInputDataItem = {
421
- id: string | number;
422
- text: string;
423
- placeholder?: string | null;
424
- required: boolean | null;
425
- property: {
426
- id: string;
427
- };
428
- validators: Array<Validator>;
429
- };
430
-
431
347
  declare type UIButton = {
432
348
  actionId?: string;
433
349
  type?: 'RESPONSE_BODY' | 'FORM' | 'URL';
@@ -462,36 +378,6 @@ declare type UIChip = {
462
378
  backgroundColor?: string;
463
379
  };
464
380
 
465
- declare type UICodeField = {
466
- codeLength?: number;
467
- inputType?: CodeFieldInputType;
468
- fontName?: string;
469
- fontColor?: string;
470
- fontSize?: number;
471
- fontWeight?: FontWeight;
472
- interSlotSpacing?: number;
473
- slot: UICodeFieldSlot;
474
- };
475
-
476
- declare type UICodeFieldSlot = {
477
- width?: number;
478
- height?: number;
479
- backgroundColor?: string;
480
- cornerRadius?: number;
481
- borderWidth?: number;
482
- borderColor?: string;
483
- focusedBorderWidth?: number;
484
- focusedBorderColor?: string;
485
- errorBorderWidth?: number;
486
- errorBorderColor?: string;
487
- };
488
-
489
- declare type UICodeInput = {
490
- titleLabel?: UILabel;
491
- codeField: UICodeField;
492
- descriptionLabel?: UILabel;
493
- };
494
-
495
381
  declare type UIColumn = {
496
382
  elements?: UIElement[];
497
383
  horizontalAlignment?: UIHorizontalAlignment;
@@ -501,28 +387,6 @@ declare type UIColumn = {
501
387
  paddings?: UIPaddings;
502
388
  };
503
389
 
504
- declare type UiComponent = {
505
- id: string;
506
- type: typeof ListElementTypes.GENERIC_COLUMN;
507
- content: UIColumn;
508
- } | {
509
- id: string;
510
- type: typeof ListElementTypes.QUESTION;
511
- content: QuestionsItem;
512
- } | {
513
- id: string;
514
- type: typeof ListElementTypes.SECTION;
515
- content: UISection;
516
- } | {
517
- id: string;
518
- type: typeof ListElementTypes.CODE_INPUT;
519
- content: UICodeInput;
520
- } | {
521
- id: string;
522
- type: typeof ListElementTypes.TEXT_INPUT;
523
- content: UITextInput;
524
- };
525
-
526
390
  declare type UIDetailsItem = {
527
391
  title?: UILabel;
528
392
  description?: UILabel;
@@ -624,11 +488,6 @@ declare type UIGalleryScreenClientConfig = {
624
488
  selectionLimit?: number;
625
489
  };
626
490
 
627
- declare type UIGenericListScreenClientConfig = {
628
- rootElement: UIListRootElement;
629
- dataSource: GenericListDataSource;
630
- };
631
-
632
491
  declare type UIGenericLocationScreenClientConfig = {
633
492
  rootElement: UIRootElement;
634
493
  popups: GenericPopup[];
@@ -731,28 +590,6 @@ declare type UILabel = {
731
590
  fontWeight?: FontWeight;
732
591
  };
733
592
 
734
- declare type UIListColumn = {
735
- uiComponents: UiComponent[];
736
- verticalAlignment?: UIVerticalAlignment;
737
- backgroundColor?: string;
738
- cornerRadius?: number;
739
- paddings?: UIPaddings;
740
- };
741
-
742
- declare type UIListRootElement = {
743
- type: typeof ListRootElementTypes.LIST_SCAFFOLD;
744
- content: UIListScaffoldContainer;
745
- };
746
-
747
- declare type UIListScaffoldContainer = {
748
- topColumn: UIColumn;
749
- mainListColumn: UIListColumn;
750
- bottomColumn: UIColumn;
751
- backgroundColor: string;
752
- backgroundImage?: UIImage;
753
- cornerRadius?: number;
754
- };
755
-
756
593
  declare type UIMultiDropdownControl = DropdownControl & {
757
594
  chip: UIChip;
758
595
  };
@@ -852,12 +689,6 @@ declare type UIScaffoldContainer = {
852
689
  cornerRadius?: number;
853
690
  };
854
691
 
855
- declare type UISection = {
856
- backgroundColor?: string;
857
- cornerRadius?: number;
858
- paddings?: UIPaddings;
859
- };
860
-
861
692
  declare type UISelectorButtonsQuestion = QuestionItem & {
862
693
  displayType: typeof QUESTIONS_DISPLAY_TYPES.SELECTOR_BUTTONS;
863
694
  option: UIButtonOption;
@@ -896,39 +727,18 @@ declare type UIStatusScreenClientConfig = {
896
727
  backgroundImage?: UIImage;
897
728
  };
898
729
 
899
- declare type UITextField = {
900
- inputType?: TextFieldInputType;
901
- fontName: string;
902
- fontColor: string;
903
- fontSize: number;
904
- fontWeight: FontWeight;
730
+ declare type UITextField = UILabel & {
905
731
  placeholder?: UILabel;
732
+ inputType?: TEXT_INPUT_TYPES;
906
733
  backgroundColor?: string;
907
734
  cornerRadius?: number;
908
735
  borderWidth?: number;
909
736
  borderColor?: string;
910
- focusedBorderWidth?: number;
911
- focusedBorderColor?: string;
912
- errorBorderWidth?: number;
913
- errorBorderColor?: string;
914
- };
915
-
916
- declare type UITextInput = {
917
- titleLabel?: UILabel;
918
- textField: UITextField;
919
- descriptionLabel?: UILabel;
920
737
  };
921
738
 
922
739
  declare type UITextQuestion = QuestionItem & {
923
740
  displayType: typeof QUESTIONS_DISPLAY_TYPES.TEXT_EXPANDABLE | typeof QUESTIONS_DISPLAY_TYPES.TEXT_SINGLE_LINE;
924
- textField?: UILabel & {
925
- placeholder?: UILabel;
926
- inputType?: TEXT_INPUT_TYPES;
927
- backgroundColor?: string;
928
- cornerRadius?: number;
929
- borderWidth?: number;
930
- borderColor?: string;
931
- };
741
+ textField?: UITextField;
932
742
  };
933
743
 
934
744
  declare type UIUploadFilesScreenClientConfig = {