@regulaforensics/idv-gui 3.9.489-rc → 3.9.490-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
@@ -45,6 +45,11 @@ declare const FontWeight: {
45
45
 
46
46
  declare type FontWeight = (typeof FontWeight)[keyof typeof FontWeight];
47
47
 
48
+ declare type GenericPopup = {
49
+ rootElement: UIRootElement;
50
+ reason: string;
51
+ };
52
+
48
53
  export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig> {
49
54
  private _mounted;
50
55
  private _shadowRoot;
@@ -61,13 +66,13 @@ export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig>
61
66
  private render;
62
67
  disconnectedCallback(): void;
63
68
  static isReady(): boolean;
64
- static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS" | "CAMERA" | "GALLERY" | "GEOLOCATION" | "DEVICE_TRANSFER" | "GENERIC" | "UPLOAD_FILES")[];
69
+ static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS" | "CAMERA" | "GALLERY" | "GEOLOCATION" | "DEVICE_TRANSFER" | "GENERIC" | "GENERIC_LOCATION" | "GENERIC_PROGRESS" | "UPLOAD_FILES")[];
65
70
  static initialize(_modulesConfig: Record<string, unknown>): void;
66
71
  static deinitialize(): void;
67
72
  static getIdentifier: () => string;
68
73
  }
69
74
 
70
- export declare const GuiIdvReactComponent: ({ isProcessing: setIsProcessingCallback, moduleProps, perform, devSettings, }: IdvModuleProps<GuiModuleProps, GuiModuleConfig> & {
75
+ export declare const GuiIdvReactComponent: ({ isProcessing: setIsProcessingCallback, moduleProps, perform, devSettings, idvEventListener, }: IdvModuleProps<GuiModuleProps, GuiModuleConfig> & {
71
76
  devSettings?: GuiModuleDevSettings;
72
77
  }) => JSX.Element;
73
78
 
@@ -82,6 +87,8 @@ export declare const GuiIdvSteps: {
82
87
  readonly GEOLOCATION: "GEOLOCATION";
83
88
  readonly DEVICE_TRANSFER: "DEVICE_TRANSFER";
84
89
  readonly GENERIC: "GENERIC";
90
+ readonly GENERIC_LOCATION: "GENERIC_LOCATION";
91
+ readonly GENERIC_PROGRESS: "GENERIC_PROGRESS";
85
92
  readonly UPLOAD_FILES: "UPLOAD_FILES";
86
93
  };
87
94
 
@@ -105,6 +112,7 @@ export declare type GuiModuleDevSettings = {
105
112
  progressBarRange?: number;
106
113
  name?: string;
107
114
  serverError?: string;
115
+ size?: number;
108
116
  }[];
109
117
  };
110
118
  };
@@ -158,6 +166,12 @@ export declare type GuiModuleProps = {
158
166
  } | {
159
167
  templateId: typeof GuiIdvSteps.GENERIC;
160
168
  templateLayout: UIGenericScreenClientConfig;
169
+ } | {
170
+ templateId: typeof GuiIdvSteps.GENERIC_PROGRESS;
171
+ templateLayout: UIGenericProgressScreenClientConfig;
172
+ } | {
173
+ templateId: typeof GuiIdvSteps.GENERIC_LOCATION;
174
+ templateLayout: UIGenericLocationScreenClientConfig;
161
175
  } | {
162
176
  templateId: typeof GuiIdvSteps.UPLOAD_FILES;
163
177
  templateLayout: UIUploadFilesScreenClientConfig;
@@ -231,6 +245,11 @@ declare type JsonObject = {
231
245
 
232
246
  declare type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
233
247
 
248
+ declare type LocationSettings = {
249
+ askEveryTime: boolean;
250
+ getLocationTimeout: number;
251
+ };
252
+
234
253
  declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
235
254
 
236
255
  declare const PerformTypes: {
@@ -351,6 +370,7 @@ declare type UIButton = {
351
370
  backgroundColor?: string;
352
371
  cornerRadius?: number;
353
372
  highlightColor?: string;
373
+ hoverColor?: string;
354
374
  borderColor?: string;
355
375
  borderWidth?: number;
356
376
  paddings?: UIPaddings;
@@ -362,6 +382,7 @@ declare type UICameraScreenClientConfig = {
362
382
  header?: UIInfoHeaderView;
363
383
  footer?: UIInfoFooterView;
364
384
  backgroundColor?: string;
385
+ backgroundImage?: UIImage;
365
386
  buttons?: UIButton[];
366
387
  selectionLimit?: number;
367
388
  };
@@ -403,6 +424,7 @@ declare type UIDeviceTransferScreenClientConfig = {
403
424
  buttons?: UIButton[];
404
425
  footer?: UIInfoFooterView;
405
426
  backgroundColor?: string;
427
+ backgroundImage?: UIImage;
406
428
  qr?: {
407
429
  color?: string;
408
430
  };
@@ -448,6 +470,9 @@ declare type UIElement = {
448
470
  } | {
449
471
  type: typeof UIElementTypes.SPACER;
450
472
  content: WithWeightProp<WithWidthAndHeightProps<UISpacer>>;
473
+ } | {
474
+ type: typeof UIElementTypes.PROGRESS_VIEW;
475
+ content: WithWidthAndHeightProps<UIProgressView>;
451
476
  };
452
477
 
453
478
  declare const UIElementTypes: {
@@ -458,6 +483,7 @@ declare const UIElementTypes: {
458
483
  readonly COLUMN: "column";
459
484
  readonly ROW: "row";
460
485
  readonly SPACER: "spacer";
486
+ readonly PROGRESS_VIEW: "progressView";
461
487
  };
462
488
 
463
489
  declare type UIFileUploadPopupFilesLimitExceededOnly = UIPopup & {
@@ -472,10 +498,21 @@ declare type UIGalleryScreenClientConfig = {
472
498
  header?: UIInfoHeaderView;
473
499
  footer?: UIInfoFooterView;
474
500
  backgroundColor?: string;
501
+ backgroundImage?: UIImage;
475
502
  buttons?: UIButton[];
476
503
  selectionLimit?: number;
477
504
  };
478
505
 
506
+ declare type UIGenericLocationScreenClientConfig = {
507
+ rootElement: UIRootElement;
508
+ popups: GenericPopup[];
509
+ settings: LocationSettings;
510
+ };
511
+
512
+ declare type UIGenericProgressScreenClientConfig = {
513
+ rootElement: UIRootElement;
514
+ };
515
+
479
516
  declare type UIGenericScreenClientConfig = {
480
517
  rootElement: UIRootElement;
481
518
  };
@@ -492,6 +529,7 @@ declare type UIGeolocationScreenClientConfig = {
492
529
  buttons?: UIButton[];
493
530
  footer?: UIInfoFooterView;
494
531
  backgroundColor?: string;
532
+ backgroundImage?: UIImage;
495
533
  popups: [UIGeolocationPopupSystemRestrictedOnly];
496
534
  askEveryTime?: boolean;
497
535
  };
@@ -514,9 +552,15 @@ declare type UIImage = ImageBase & {
514
552
  };
515
553
 
516
554
  declare type UIImageButton = {
555
+ actionId?: string;
556
+ type?: 'DATA' | 'FORM';
517
557
  paddings?: UIPaddings;
518
558
  image: UIImage;
519
559
  responseBody?: JsonObject;
560
+ backgroundColor?: string;
561
+ highlightColor?: string;
562
+ hoverColor?: string;
563
+ cornerRadius?: number;
520
564
  };
521
565
 
522
566
  declare type UIInfoDetailsScreenClientConfig = {
@@ -526,6 +570,7 @@ declare type UIInfoDetailsScreenClientConfig = {
526
570
  buttons?: UIButton[];
527
571
  footer?: UIInfoFooterView;
528
572
  backgroundColor?: string;
573
+ backgroundImage?: UIImage;
529
574
  };
530
575
 
531
576
  declare type UIInfoFooterView = {
@@ -544,6 +589,7 @@ declare type UIInfoScreenClientConfig = {
544
589
  buttons?: UIButton[];
545
590
  footer?: UIInfoFooterView;
546
591
  backgroundColor?: string;
592
+ backgroundImage?: UIImage;
547
593
  };
548
594
 
549
595
  declare type UILabel = {
@@ -605,6 +651,7 @@ declare type UIProgressScreenClientConfig = {
605
651
  progressView?: UIProgressView;
606
652
  footer?: UIInfoFooterView;
607
653
  backgroundColor?: string;
654
+ backgroundImage?: UIImage;
608
655
  };
609
656
 
610
657
  declare type UIProgressView = {
@@ -621,6 +668,7 @@ declare type UIQuestionsScreenClientConfig = {
621
668
  backgroundColor?: string;
622
669
  };
623
670
  backgroundColor?: string;
671
+ backgroundImage?: UIImage;
624
672
  cornerRadius?: number;
625
673
  };
626
674
 
@@ -651,6 +699,8 @@ declare type UIScaffoldContainer = {
651
699
  mainColumn?: UIColumn;
652
700
  bottomColumn?: UIColumn;
653
701
  backgroundColor?: string;
702
+ backgroundImage?: UIImage;
703
+ cornerRadius?: number;
654
704
  };
655
705
 
656
706
  declare type UISelectorButtonsQuestion = QuestionItem & {
@@ -688,6 +738,7 @@ declare type UIStatusScreenClientConfig = {
688
738
  buttons?: UIButton[];
689
739
  footer?: UIInfoFooterView;
690
740
  backgroundColor?: string;
741
+ backgroundImage?: UIImage;
691
742
  };
692
743
 
693
744
  declare type UITextField = UILabel & {
@@ -711,6 +762,7 @@ declare type UIUploadFilesScreenClientConfig = {
711
762
  buttons?: UIButton[];
712
763
  footer?: UIInfoFooterView;
713
764
  backgroundColor?: string;
765
+ backgroundImage?: UIImage;
714
766
  popups?: [UIFileUploadPopupNoFilesOnly, UIFileUploadPopupFilesLimitExceededOnly];
715
767
  settings: {
716
768
  supportedFileFormats: string[];