@regulaforensics/idv-gui 4.0.679-nightly → 4.0.682-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.
Files changed (2) hide show
  1. package/dist/index.d.ts +38 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- import { BaseModule } from '../../interfaces-idv/src';
2
- import { FailedAssets } from '../../interfaces-idv/src';
3
1
  import { FunctionComponent } from 'preact';
4
- import { IdvModuleProps } from '../../interfaces-idv/src';
5
- import { ImageBase } from '../../interfaces-idv/src';
6
2
  import { JSX } from 'preact';
7
3
 
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
+
8
9
  declare const CLIENT_VALIDATOR_TYPE: {
9
10
  readonly NOT_EMPTY: "notEmpty";
10
11
  readonly REGEX: "regex";
@@ -76,6 +77,12 @@ declare type DropdownControl = {
76
77
  expandButton?: UIImage;
77
78
  };
78
79
 
80
+ declare type FailedAssets = {
81
+ imageURL: Set<string>;
82
+ base64: Set<string>;
83
+ blockingAssets: Set<string>;
84
+ };
85
+
79
86
  declare const FontWeight: {
80
87
  readonly NORMAL: "NORMAL";
81
88
  readonly BOLD: "BOLD";
@@ -267,6 +274,26 @@ export declare type IDV_UI_ICONS = (typeof IDV_UI_ICONS)[keyof typeof IDV_UI_ICO
267
274
 
268
275
  export declare const idvIconDataUrlMap: Record<IDV_UI_ICONS, (color?: string) => string>;
269
276
 
277
+ declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
278
+ isProcessing?: (isProcessing: boolean) => void;
279
+ moduleProps: TModuleProps;
280
+ modulesConfig?: TModulesConfig;
281
+ perform: (data: any, type?: PerformType) => void;
282
+ idvEventListener: (module: string, data: any, logLevel?: 'INFO' | 'DEBUG') => void;
283
+ nonce?: string;
284
+ };
285
+
286
+ declare type ImageBase = {
287
+ imageURL?: string;
288
+ imageId?: string;
289
+ base64?: string;
290
+ prepareRequired?: boolean;
291
+ failurePolicy?: ImageFailurePolicy;
292
+ timeout?: number;
293
+ };
294
+
295
+ declare type ImageFailurePolicy = 'ignore' | 'placeholderImage' | 'error';
296
+
270
297
  declare type JsonArray = JsonValue[];
271
298
 
272
299
  declare type JsonObject = {
@@ -300,6 +327,13 @@ declare type LocationSettings = {
300
327
  locationAccuracy: LocationAccuracy;
301
328
  };
302
329
 
330
+ declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
331
+
332
+ declare const PerformTypes: {
333
+ readonly FORM: "form";
334
+ readonly DATA: "data";
335
+ };
336
+
303
337
  declare type PopupActionButton = {
304
338
  title?: UILabel;
305
339
  type: 'FORM';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-gui",
3
- "version": "4.0.679-nightly",
3
+ "version": "4.0.682-nightly",
4
4
  "description": "Regula framework agnostic web components to work with gui idv",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/main.iife.js",