@regulaforensics/idv-gui 3.2.252-nightly → 3.2.254-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
@@ -229,7 +229,7 @@ declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
229
229
  isProcessing?: (isProcessing: boolean) => void;
230
230
  moduleProps: TModuleProps;
231
231
  modulesConfig?: TModulesConfig;
232
- perform: (data: any) => void;
232
+ perform: (data: any, type?: PerformType) => void;
233
233
  idvEventListener: (module: string, data: any) => void;
234
234
  };
235
235
 
@@ -246,6 +246,13 @@ declare type JsonObject = {
246
246
 
247
247
  declare type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
248
248
 
249
+ declare type PerformType = (typeof performType)[keyof typeof performType] | undefined;
250
+
251
+ declare const performType: {
252
+ readonly FORM: "form";
253
+ readonly DATA: "data";
254
+ };
255
+
249
256
  declare function PoweredByRegula(): JSX.Element;
250
257
 
251
258
  declare type QuestionDataSource = {
@@ -413,14 +420,7 @@ declare type UIGeolocationScreenClientConfig = {
413
420
  buttons?: UIButton[];
414
421
  footer?: UIInfoFooterView;
415
422
  backgroundColor?: string;
416
- popup: {
417
- image?: UIImage;
418
- title?: UILabel;
419
- message?: UILabel;
420
- backgroundColor?: string;
421
- closeButton: UIButton;
422
- cornerRadius: number;
423
- };
423
+ popups: UIPopup[];
424
424
  };
425
425
 
426
426
  declare type UIImage = {
@@ -481,6 +481,20 @@ declare type UIMultiSelectorQuestion = QuestionItem & {
481
481
  dropdownPicker: UIDropdownPicker;
482
482
  };
483
483
 
484
+ declare type UIPopup = {
485
+ reason: 'system_restricted';
486
+ actionButton1: {
487
+ title?: UILabel;
488
+ type: 'FORM';
489
+ backgroundColor?: string;
490
+ cornerRadius?: number;
491
+ };
492
+ title?: UILabel;
493
+ message?: UILabel;
494
+ backgroundColor?: string;
495
+ cornerRadius?: number;
496
+ };
497
+
484
498
  declare type UIProgressScreenClientConfig = {
485
499
  header?: UIInfoHeaderView;
486
500
  progressView?: UIProgressView;