@regulaforensics/idv-gui 3.3.308 → 3.4.70-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
@@ -32,6 +32,12 @@ declare type DropdownControl = {
32
32
  expandButton?: UIImage;
33
33
  };
34
34
 
35
+ declare type FailedAssets = {
36
+ imageURL: Set<string>;
37
+ base64: Set<string>;
38
+ blockingAssets: Set<string>;
39
+ };
40
+
35
41
  export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig> {
36
42
  private _mounted;
37
43
  private _shadowRoot;
@@ -47,7 +53,7 @@ export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig>
47
53
  private render;
48
54
  disconnectedCallback(): void;
49
55
  static isReady(): boolean;
50
- static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS" | "CAMERA" | "GALLERY" | "GEOLOCATION")[];
56
+ static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS" | "CAMERA" | "GALLERY" | "GEOLOCATION" | "DEVICE_TRANSFER")[];
51
57
  static initialize(_modulesConfig: Record<string, unknown>): void;
52
58
  static deinitialize(): void;
53
59
  static getIdentifier: () => string;
@@ -66,6 +72,7 @@ export declare const GuiIdvSteps: {
66
72
  readonly CAMERA: "CAMERA";
67
73
  readonly GALLERY: "GALLERY";
68
74
  readonly GEOLOCATION: "GEOLOCATION";
75
+ readonly DEVICE_TRANSFER: "DEVICE_TRANSFER";
69
76
  };
70
77
 
71
78
  export declare type GuiIdvSteps = (typeof GuiIdvSteps)[keyof typeof GuiIdvSteps];
@@ -83,13 +90,15 @@ export declare type GuiModuleDevSettings = {
83
90
  };
84
91
 
85
92
  export declare const GuiModuleError: {
86
- readonly DECODING_FAILED: "DECODING_FAILED";
93
+ readonly DECODING_FAILED: 0;
94
+ readonly IMAGE_LOADING_FAILED: 1;
87
95
  };
88
96
 
89
97
  export declare type GuiModuleError = (typeof GuiModuleError)[keyof typeof GuiModuleError];
90
98
 
91
99
  export declare type GuiModuleProps = {
92
100
  locale: string;
101
+ failedAssets?: FailedAssets;
93
102
  } & ({
94
103
  templateId: typeof GuiIdvSteps.INFO;
95
104
  templateLayout: UIInfoScreenClientConfig;
@@ -121,6 +130,10 @@ export declare type GuiModuleProps = {
121
130
  templateLayout: UIQuestionsScreenClientConfig;
122
131
  dataSource?: QuestionsDataSource | null;
123
132
  properties?: SessionPropertiesItem[];
133
+ } | {
134
+ templateId: typeof GuiIdvSteps.DEVICE_TRANSFER;
135
+ templateLayout: UIDeviceTransferScreenClientConfig;
136
+ url?: string;
124
137
  });
125
138
 
126
139
  export declare const IDV_UI_ICONS: {
@@ -165,6 +178,16 @@ declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
165
178
  nonce?: string;
166
179
  };
167
180
 
181
+ declare type ImageBase = {
182
+ imageURL?: string;
183
+ imageId?: string;
184
+ base64?: string;
185
+ prepareRequired?: boolean;
186
+ failurePolicy?: ImageFailurePolicy;
187
+ };
188
+
189
+ declare type ImageFailurePolicy = 'ignore' | 'placeholderImage' | 'error';
190
+
168
191
  declare type JsonArray = JsonValue[];
169
192
 
170
193
  declare type JsonObject = {
@@ -319,6 +342,18 @@ declare type UIDetailsList = {
319
342
  cornerRadius: number;
320
343
  };
321
344
 
345
+ declare type UIDeviceTransferScreenClientConfig = {
346
+ header?: UIInfoHeaderView;
347
+ title?: UILabel;
348
+ description?: UILabel;
349
+ buttons?: UIButton[];
350
+ footer?: UIInfoFooterView;
351
+ backgroundColor?: string;
352
+ qr?: {
353
+ color?: string;
354
+ };
355
+ };
356
+
322
357
  declare type UIDropdownControl = DropdownControl & {
323
358
  title: UILabel;
324
359
  };
@@ -363,10 +398,8 @@ declare type UIGeolocationScreenClientConfig = {
363
398
  getLocationTimeout?: number;
364
399
  };
365
400
 
366
- declare type UIImage = {
367
- imageURL?: string;
368
- base64?: string;
369
- imageId?: string;
401
+ declare type UIImage = ImageBase & {
402
+ placeholderImage?: UIImage;
370
403
  contentMode?: ContentMode;
371
404
  backgroundColor?: string;
372
405
  cornerRadius?: number;