@regulaforensics/idv-face 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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -46
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,12 +1,11 @@
1
+ import { BaseModule } from '../../../../interfaces-idv/src';
2
+ import { FailedAssets } from '../../interfaces-idv/src';
3
+ import { IdvAsset } from '../../interfaces-idv/src';
4
+ import { IdvModuleProps } from '../../../../interfaces-idv/src';
1
5
  import { LitElement } from 'lit';
2
6
  import { RecordingProcess } from '@regulaforensics/vp-frontend-face-components';
3
7
  import { TemplateResult } from 'lit-html';
4
8
 
5
- declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
6
- abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
7
- abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
8
- }
9
-
10
9
  export declare class FaceIdv extends LitElement implements BaseModule<FaceModuleProps, object> {
11
10
  props: IdvModuleProps<FaceModuleProps, object> | null;
12
11
  private renderVersion;
@@ -111,47 +110,6 @@ declare type FaceModuleProps = {
111
110
  preloadAssetsRequired?: boolean;
112
111
  };
113
112
 
114
- declare type FailedAssets = {
115
- imageURL: Set<string>;
116
- base64: Set<string>;
117
- blockingAssets: Set<string>;
118
- };
119
-
120
- declare type IdvAsset = {
121
- idvAsset: ImageLike;
122
- };
123
-
124
- declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
125
- isProcessing?: (isProcessing: boolean) => void;
126
- moduleProps: TModuleProps;
127
- modulesConfig?: TModulesConfig;
128
- perform: (data: any, type?: PerformType) => void;
129
- idvEventListener: (module: string, data: any) => void;
130
- nonce?: string;
131
- };
132
-
133
- declare type ImageBase = {
134
- imageURL?: string;
135
- imageId?: string;
136
- base64?: string;
137
- prepareRequired?: boolean;
138
- failurePolicy?: ImageFailurePolicy;
139
- timeout?: number;
140
- };
141
-
142
- declare type ImageFailurePolicy = 'ignore' | 'placeholderImage' | 'error';
143
-
144
- declare type ImageLike = ImageBase & {
145
- placeholderImage?: ImageLike;
146
- };
147
-
148
- declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
149
-
150
- declare const PerformTypes: {
151
- readonly FORM: "form";
152
- readonly DATA: "data";
153
- };
154
-
155
113
  declare type RecordingProcessKeys = keyof typeof RecordingProcess;
156
114
 
157
115
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-face",
3
- "version": "3.9.492-nightly",
3
+ "version": "3.9.494-nightly",
4
4
  "description": "Regula framework agnostic web components to work with face idv",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/main.js",