@regulaforensics/idv-gui 3.9.492-nightly → 3.9.494-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 +4 -38
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import { BaseModule } from '../../interfaces-idv/src';
|
|
2
|
+
import { FailedAssets } from '../../interfaces-idv/src';
|
|
1
3
|
import { FunctionComponent } from 'preact';
|
|
4
|
+
import { IdvModuleProps } from '../../interfaces-idv/src';
|
|
5
|
+
import { ImageBase } from '../../interfaces-idv/src';
|
|
2
6
|
import { JSX } from 'preact';
|
|
3
7
|
|
|
4
|
-
declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
|
|
5
|
-
abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
|
|
6
|
-
abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
8
|
declare const ContentMode: {
|
|
10
9
|
readonly ASPECT_FILL: "ASPECT_FILL";
|
|
11
10
|
readonly ASPECT_FIT: "ASPECT_FIT";
|
|
@@ -32,12 +31,6 @@ declare type DropdownControl = {
|
|
|
32
31
|
expandButton?: UIImage;
|
|
33
32
|
};
|
|
34
33
|
|
|
35
|
-
declare type FailedAssets = {
|
|
36
|
-
imageURL: Set<string>;
|
|
37
|
-
base64: Set<string>;
|
|
38
|
-
blockingAssets: Set<string>;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
34
|
declare const FontWeight: {
|
|
42
35
|
readonly NORMAL: "NORMAL";
|
|
43
36
|
readonly BOLD: "BOLD";
|
|
@@ -217,26 +210,6 @@ export declare type IDV_UI_ICONS = (typeof IDV_UI_ICONS)[keyof typeof IDV_UI_ICO
|
|
|
217
210
|
|
|
218
211
|
export declare const idvIconDataUrlMap: Record<IDV_UI_ICONS, (color?: string) => string>;
|
|
219
212
|
|
|
220
|
-
declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
221
|
-
isProcessing?: (isProcessing: boolean) => void;
|
|
222
|
-
moduleProps: TModuleProps;
|
|
223
|
-
modulesConfig?: TModulesConfig;
|
|
224
|
-
perform: (data: any, type?: PerformType) => void;
|
|
225
|
-
idvEventListener: (module: string, data: any) => void;
|
|
226
|
-
nonce?: string;
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
declare type ImageBase = {
|
|
230
|
-
imageURL?: string;
|
|
231
|
-
imageId?: string;
|
|
232
|
-
base64?: string;
|
|
233
|
-
prepareRequired?: boolean;
|
|
234
|
-
failurePolicy?: ImageFailurePolicy;
|
|
235
|
-
timeout?: number;
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
declare type ImageFailurePolicy = 'ignore' | 'placeholderImage' | 'error';
|
|
239
|
-
|
|
240
213
|
declare type JsonArray = JsonValue[];
|
|
241
214
|
|
|
242
215
|
declare type JsonObject = {
|
|
@@ -250,13 +223,6 @@ declare type LocationSettings = {
|
|
|
250
223
|
getLocationTimeout: number;
|
|
251
224
|
};
|
|
252
225
|
|
|
253
|
-
declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
|
|
254
|
-
|
|
255
|
-
declare const PerformTypes: {
|
|
256
|
-
readonly FORM: "form";
|
|
257
|
-
readonly DATA: "data";
|
|
258
|
-
};
|
|
259
|
-
|
|
260
226
|
declare type PopupActionButton = {
|
|
261
227
|
title?: UILabel;
|
|
262
228
|
type: 'FORM';
|
package/package.json
CHANGED