@regulaforensics/idv-document 4.0.681-rc → 4.0.683-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 +49 -10
- package/dist/main.iife.js +23 -23
- package/dist/main.js +164 -138
- package/package.json +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
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';
|
|
5
1
|
import { InternalScenarios } from '@regulaforensics/vp-frontend-document-components';
|
|
6
2
|
import { LitElement } from 'lit';
|
|
7
3
|
import { MirrorType } from '@regulaforensics/vp-frontend-document-components';
|
|
8
|
-
import { ModuleType
|
|
4
|
+
import { ModuleType } from '@regulaforensics/vp-frontend-document-components';
|
|
9
5
|
import { TemplateResult } from 'lit-html';
|
|
10
6
|
|
|
7
|
+
declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
|
|
8
|
+
abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
|
|
9
|
+
abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
|
|
10
|
+
}
|
|
11
|
+
|
|
11
12
|
declare type DocumentGalleryProps = {
|
|
12
13
|
processParam?: {
|
|
13
14
|
multipageProcessing?: boolean;
|
|
@@ -59,7 +60,7 @@ declare type DocumentModuleProps = DocumentGalleryProps | DocumentReaderProps;
|
|
|
59
60
|
declare type DocumentModulesConfig = {
|
|
60
61
|
docreader: {
|
|
61
62
|
devLicense?: string;
|
|
62
|
-
module?:
|
|
63
|
+
module?: ModuleType;
|
|
63
64
|
};
|
|
64
65
|
};
|
|
65
66
|
|
|
@@ -164,9 +165,47 @@ declare type DocumentReaderProps = {
|
|
|
164
165
|
};
|
|
165
166
|
};
|
|
166
167
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
declare type FailedAssets = {
|
|
169
|
+
imageURL: Set<string>;
|
|
170
|
+
base64: Set<string>;
|
|
171
|
+
blockingAssets: Set<string>;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
declare type IdvAsset = {
|
|
175
|
+
idvAsset: ImageLike;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
179
|
+
isProcessing?: (isProcessing: boolean) => void;
|
|
180
|
+
moduleProps: TModuleProps;
|
|
181
|
+
modulesConfig?: TModulesConfig;
|
|
182
|
+
perform: (data: any, type?: PerformType) => void;
|
|
183
|
+
idvEventListener: (module: string, data: any, logLevel?: 'INFO' | 'DEBUG') => void;
|
|
184
|
+
nonce?: string;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
declare type ImageBase = {
|
|
188
|
+
imageURL?: string;
|
|
189
|
+
imageId?: string;
|
|
190
|
+
base64?: string;
|
|
191
|
+
prepareRequired?: boolean;
|
|
192
|
+
failurePolicy?: ImageFailurePolicy;
|
|
193
|
+
timeout?: number;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
declare type ImageFailurePolicy = 'ignore' | 'placeholderImage' | 'error';
|
|
197
|
+
|
|
198
|
+
declare type ImageLike = ImageBase & {
|
|
199
|
+
placeholderImage?: ImageLike;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
export { ModuleType }
|
|
203
|
+
|
|
204
|
+
declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
|
|
205
|
+
|
|
206
|
+
declare const PerformTypes: {
|
|
207
|
+
readonly FORM: "form";
|
|
208
|
+
readonly DATA: "data";
|
|
209
|
+
};
|
|
171
210
|
|
|
172
211
|
export { }
|