@regulaforensics/idv-gui 3.4.310-nightly → 3.4.311-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 +21 -5
- package/dist/main.iife.js +4 -4
- package/dist/main.js +1309 -1292
- package/dist/main.umd.cjs +4 -4
- package/package.json +1 -1
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
|
+
isCritical: boolean;
|
|
39
|
+
};
|
|
40
|
+
|
|
35
41
|
export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig> {
|
|
36
42
|
private _mounted;
|
|
37
43
|
private _shadowRoot;
|
|
@@ -84,13 +90,15 @@ export declare type GuiModuleDevSettings = {
|
|
|
84
90
|
};
|
|
85
91
|
|
|
86
92
|
export declare const GuiModuleError: {
|
|
87
|
-
readonly DECODING_FAILED:
|
|
93
|
+
readonly DECODING_FAILED: 0;
|
|
94
|
+
readonly IMAGE_LOADING_FAILED: 1;
|
|
88
95
|
};
|
|
89
96
|
|
|
90
97
|
export declare type GuiModuleError = (typeof GuiModuleError)[keyof typeof GuiModuleError];
|
|
91
98
|
|
|
92
99
|
export declare type GuiModuleProps = {
|
|
93
100
|
locale: string;
|
|
101
|
+
failedAssets?: FailedAssets;
|
|
94
102
|
} & ({
|
|
95
103
|
templateId: typeof GuiIdvSteps.INFO;
|
|
96
104
|
templateLayout: UIInfoScreenClientConfig;
|
|
@@ -170,6 +178,16 @@ declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
|
170
178
|
nonce?: string;
|
|
171
179
|
};
|
|
172
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
|
+
|
|
173
191
|
declare type JsonArray = JsonValue[];
|
|
174
192
|
|
|
175
193
|
declare type JsonObject = {
|
|
@@ -380,10 +398,8 @@ declare type UIGeolocationScreenClientConfig = {
|
|
|
380
398
|
getLocationTimeout?: number;
|
|
381
399
|
};
|
|
382
400
|
|
|
383
|
-
declare type UIImage = {
|
|
384
|
-
|
|
385
|
-
base64?: string;
|
|
386
|
-
imageId?: string;
|
|
401
|
+
declare type UIImage = ImageBase & {
|
|
402
|
+
placeholderImage?: UIImage;
|
|
387
403
|
contentMode?: ContentMode;
|
|
388
404
|
backgroundColor?: string;
|
|
389
405
|
cornerRadius?: number;
|