@regulaforensics/idv-gui 3.2.272-nightly → 3.2.277-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
@@ -34,10 +34,14 @@ declare type DropdownControl = {
34
34
  export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig> {
35
35
  private _mounted;
36
36
  private _shadowRoot;
37
- props: IdvModuleProps<GuiModuleProps, GuiModuleConfig> | null;
37
+ props: (IdvModuleProps<GuiModuleProps, GuiModuleConfig> & {
38
+ devSettings?: GuiModuleDevSettings;
39
+ }) | null;
38
40
  constructor();
39
41
  static displayName: string;
40
- setProps(props: IdvModuleProps<GuiModuleProps, GuiModuleConfig>): void;
42
+ setProps(props: IdvModuleProps<GuiModuleProps, GuiModuleConfig> & {
43
+ devSettings?: GuiModuleDevSettings;
44
+ }): void;
41
45
  connectedCallback(): void;
42
46
  private render;
43
47
  disconnectedCallback(): void;
@@ -48,7 +52,9 @@ export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig>
48
52
  static getIdentifier: () => string;
49
53
  }
50
54
 
51
- export declare const GuiIdvReactComponent: FunctionComponent<IdvModuleProps<GuiModuleProps | GuiModulePropsUnknown, GuiModuleConfig>>;
55
+ export declare const GuiIdvReactComponent: FunctionComponent<IdvModuleProps<GuiModuleProps | GuiModulePropsUnknown, GuiModuleConfig> & {
56
+ devSettings?: GuiModuleDevSettings;
57
+ }>;
52
58
 
53
59
  export declare const GuiIdvSteps: {
54
60
  readonly INFO: "INFO";
@@ -67,6 +73,14 @@ export declare const GuiIdvStyleInjectionWrapper: FunctionComponent;
67
73
 
68
74
  declare type GuiModuleConfig = Record<string, any>;
69
75
 
76
+ export declare type GuiModuleDevSettings = {
77
+ popups?: {
78
+ [K in PopupReason]?: {
79
+ isOpen: boolean;
80
+ };
81
+ };
82
+ };
83
+
70
84
  export declare const GuiModuleError: {
71
85
  readonly DECODING_FAILED: "DECODING_FAILED";
72
86
  };
@@ -164,6 +178,20 @@ declare const performType: {
164
178
  readonly DATA: "data";
165
179
  };
166
180
 
181
+ declare type PopupActionButton = {
182
+ title?: UILabel;
183
+ type: 'FORM';
184
+ backgroundColor?: string;
185
+ cornerRadius?: number;
186
+ };
187
+
188
+ export declare const PopupReason: {
189
+ readonly APP_DENIED: "app_denied";
190
+ readonly SYSTEM_RESTRICTED: "system_restricted";
191
+ };
192
+
193
+ export declare type PopupReason = (typeof PopupReason)[keyof typeof PopupReason];
194
+
167
195
  declare type QuestionDataSource = {
168
196
  id: string | number;
169
197
  placeholder?: string | null;
@@ -316,6 +344,10 @@ declare type UIGalleryScreenClientConfig = {
316
344
  selectionLimit?: number;
317
345
  };
318
346
 
347
+ declare type UIGeolocationPopupSystemRestrictedOnly = UIPopup & {
348
+ reason: typeof PopupReason.SYSTEM_RESTRICTED;
349
+ };
350
+
319
351
  declare type UIGeolocationScreenClientConfig = {
320
352
  header?: UIInfoHeaderView;
321
353
  title?: UILabel;
@@ -324,7 +356,7 @@ declare type UIGeolocationScreenClientConfig = {
324
356
  buttons?: UIButton[];
325
357
  footer?: UIInfoFooterView;
326
358
  backgroundColor?: string;
327
- popups: UIPopup[];
359
+ popups: [UIGeolocationPopupSystemRestrictedOnly];
328
360
  askEveryTime?: boolean;
329
361
  };
330
362
 
@@ -387,17 +419,14 @@ declare type UIMultiSelectorQuestion = QuestionItem & {
387
419
  };
388
420
 
389
421
  declare type UIPopup = {
390
- reason: 'system_restricted';
391
- actionButton1: {
392
- title?: UILabel;
393
- type: 'FORM';
394
- backgroundColor?: string;
395
- cornerRadius?: number;
396
- };
422
+ reason: PopupReason;
423
+ actionButton1: PopupActionButton;
397
424
  title?: UILabel;
398
425
  message?: UILabel;
399
426
  backgroundColor?: string;
400
427
  cornerRadius?: number;
428
+ } & {
429
+ [K in `actionButton${number}`]?: PopupActionButton;
401
430
  };
402
431
 
403
432
  declare type UIProgressScreenClientConfig = {