@regulaforensics/idv-document 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 -46
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
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 { InternalScenarios } from '@regulaforensics/vp-frontend-document-components';
|
|
2
6
|
import { LitElement } from 'lit';
|
|
3
7
|
import { MirrorType } from '@regulaforensics/vp-frontend-document-components';
|
|
4
8
|
import { ModuleType as ModuleType_2 } from '@regulaforensics/vp-frontend-document-components';
|
|
5
9
|
import { TemplateResult } from 'lit-html';
|
|
6
10
|
|
|
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
|
-
|
|
12
11
|
declare type DocumentGalleryProps = {
|
|
13
12
|
processParam?: {
|
|
14
13
|
multipageProcessing?: boolean;
|
|
@@ -162,50 +161,9 @@ declare type DocumentReaderProps = {
|
|
|
162
161
|
};
|
|
163
162
|
};
|
|
164
163
|
|
|
165
|
-
declare type FailedAssets = {
|
|
166
|
-
imageURL: Set<string>;
|
|
167
|
-
base64: Set<string>;
|
|
168
|
-
blockingAssets: Set<string>;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
declare type IdvAsset = {
|
|
172
|
-
idvAsset: ImageLike;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
|
|
176
|
-
isProcessing?: (isProcessing: boolean) => void;
|
|
177
|
-
moduleProps: TModuleProps;
|
|
178
|
-
modulesConfig?: TModulesConfig;
|
|
179
|
-
perform: (data: any, type?: PerformType) => void;
|
|
180
|
-
idvEventListener: (module: string, data: any) => void;
|
|
181
|
-
nonce?: string;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
declare type ImageBase = {
|
|
185
|
-
imageURL?: string;
|
|
186
|
-
imageId?: string;
|
|
187
|
-
base64?: string;
|
|
188
|
-
prepareRequired?: boolean;
|
|
189
|
-
failurePolicy?: ImageFailurePolicy;
|
|
190
|
-
timeout?: number;
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
declare type ImageFailurePolicy = 'ignore' | 'placeholderImage' | 'error';
|
|
194
|
-
|
|
195
|
-
declare type ImageLike = ImageBase & {
|
|
196
|
-
placeholderImage?: ImageLike;
|
|
197
|
-
};
|
|
198
|
-
|
|
199
164
|
export declare enum ModuleType {
|
|
200
165
|
BarcodeMRZ = "BarcodeMRZ",
|
|
201
166
|
BoundsLite = "BoundsLite"
|
|
202
167
|
}
|
|
203
168
|
|
|
204
|
-
declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
|
|
205
|
-
|
|
206
|
-
declare const PerformTypes: {
|
|
207
|
-
readonly FORM: "form";
|
|
208
|
-
readonly DATA: "data";
|
|
209
|
-
};
|
|
210
|
-
|
|
211
169
|
export { }
|
package/package.json
CHANGED