@regulaforensics/idv-document 2.5.200-nightly → 2.5.207-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 +66 -3
- package/dist/main.iife.js +218 -28
- package/dist/main.js +17126 -15443
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DocumentReaderDetailType } from '@regulaforensics/vp-frontend-document-components';
|
|
2
2
|
import { DocumentReaderWebComponent } from '@regulaforensics/vp-frontend-document-components';
|
|
3
3
|
import { InternalScenarios } from '@regulaforensics/vp-frontend-document-components';
|
|
4
|
+
import { MirrorType } from '@regulaforensics/vp-frontend-document-components';
|
|
4
5
|
import { TransactionEvent } from '@regulaforensics/vp-frontend-document-components';
|
|
5
6
|
|
|
6
7
|
declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
|
|
@@ -11,13 +12,20 @@ declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unkno
|
|
|
11
12
|
declare class DocumentIdv extends BaseModule<DocumentModuleProps, DocumentModulesConfig> {
|
|
12
13
|
props: IdvModuleProps<DocumentModuleProps, DocumentModulesConfig> | null;
|
|
13
14
|
webComponent: DocumentReaderWebComponent | null;
|
|
14
|
-
private _mounted;
|
|
15
15
|
constructor();
|
|
16
16
|
static displayName: string;
|
|
17
17
|
listener: (data: CustomEvent<DocumentReaderDetailType | TransactionEvent>) => void;
|
|
18
|
+
private prepareStyles;
|
|
19
|
+
private injectStyles;
|
|
20
|
+
private prepareSettings;
|
|
18
21
|
setProps(props: IdvModuleProps<DocumentModuleProps, DocumentModulesConfig>): void;
|
|
22
|
+
setDocReaderProps(props: IdvModuleProps<DocumentModuleProps, DocumentModulesConfig>): void;
|
|
23
|
+
setDocReaderGalleryProps(props: IdvModuleProps<DocumentModuleProps, DocumentModulesConfig>): void;
|
|
19
24
|
connectedCallback(): void;
|
|
20
|
-
|
|
25
|
+
private getFilesAndProcess;
|
|
26
|
+
private render;
|
|
27
|
+
private renderDocReader;
|
|
28
|
+
private renderDocReaderGallery;
|
|
21
29
|
disconnectedCallback(): void;
|
|
22
30
|
static isReady(): boolean;
|
|
23
31
|
static getSupportedTemplates: () => DocumentIdvSteps[];
|
|
@@ -29,7 +37,8 @@ export { DocumentIdv }
|
|
|
29
37
|
export default DocumentIdv;
|
|
30
38
|
|
|
31
39
|
declare enum DocumentIdvSteps {
|
|
32
|
-
DOC_READER = "DOC_READER"
|
|
40
|
+
DOC_READER = "DOC_READER",
|
|
41
|
+
DOC_READER_GALLERY = "DOC_READER_GALLERY"
|
|
33
42
|
}
|
|
34
43
|
|
|
35
44
|
declare type DocumentModuleProps = {
|
|
@@ -48,6 +57,27 @@ declare type DocumentModuleProps = {
|
|
|
48
57
|
showCaptureButton?: boolean;
|
|
49
58
|
showSkipNextPageButton?: boolean;
|
|
50
59
|
locale?: string;
|
|
60
|
+
cameraFrame?: number;
|
|
61
|
+
showCloseButton?: boolean;
|
|
62
|
+
showCameraSwitchButton?: boolean;
|
|
63
|
+
videoCaptureMotionControl?: boolean;
|
|
64
|
+
videoOutputSettings?: {
|
|
65
|
+
AVVideoWidthKey?: number;
|
|
66
|
+
AVVideoHeightKey?: number;
|
|
67
|
+
};
|
|
68
|
+
captureMode?: number;
|
|
69
|
+
cameraMode?: number;
|
|
70
|
+
internalScenario?: InternalScenarios;
|
|
71
|
+
multipageProcessing?: boolean;
|
|
72
|
+
startScreen?: boolean;
|
|
73
|
+
multipleFileInput?: boolean;
|
|
74
|
+
cameraId?: string;
|
|
75
|
+
nonce?: string;
|
|
76
|
+
mirrorType?: MirrorType;
|
|
77
|
+
mobileDelegate?: boolean;
|
|
78
|
+
finalizeOnTimeout?: boolean;
|
|
79
|
+
maxImageSize?: number;
|
|
80
|
+
maxResolutionSize?: number;
|
|
51
81
|
};
|
|
52
82
|
customization: {
|
|
53
83
|
cameraFrameWidthOffset?: number;
|
|
@@ -55,12 +85,45 @@ declare type DocumentModuleProps = {
|
|
|
55
85
|
backgroundMaskColor?: string;
|
|
56
86
|
cameraFrameActiveColor?: string;
|
|
57
87
|
cameraFrameDefaultColor?: string;
|
|
88
|
+
showStatusMessages?: boolean;
|
|
89
|
+
cameraFrameBorderWidth?: number;
|
|
90
|
+
cameraFrameLineLength?: number;
|
|
91
|
+
cameraFrameShapeType?: number;
|
|
92
|
+
nextPageAnimationEndDelay?: number;
|
|
93
|
+
nextPageAnimationStartDelay?: number;
|
|
94
|
+
statusPositionMultiplier?: number;
|
|
95
|
+
cameraFrameLandscapeAspectRatio?: number;
|
|
96
|
+
cameraFramePortraitAspectRatio?: number;
|
|
97
|
+
cameraFrameCornerRadius?: number;
|
|
98
|
+
cameraFramePositionMultiplier?: number;
|
|
99
|
+
activityIndicatorLandscapePositionMultiplier?: number;
|
|
100
|
+
activityIndicatorPortraitPositionMultiplier?: number;
|
|
101
|
+
cameraFrameLineCap?: string;
|
|
102
|
+
fromCameraButton?: boolean;
|
|
103
|
+
uploadFileButton?: boolean;
|
|
104
|
+
mirrorButton?: boolean;
|
|
105
|
+
statusTextColor?: string;
|
|
106
|
+
statusBackgroundColor?: string;
|
|
107
|
+
resultStatusTextColor?: string;
|
|
108
|
+
resultStatusBackgroundColor?: string;
|
|
109
|
+
activityIndicatorColor?: string;
|
|
110
|
+
showNextPageAnimation?: boolean;
|
|
111
|
+
showBackgroundMask?: boolean;
|
|
112
|
+
statusTextSize?: number;
|
|
113
|
+
statusTextFontName?: string;
|
|
114
|
+
resultStatusTextSize?: number;
|
|
115
|
+
resultStatusTextFontName?: string;
|
|
116
|
+
activityIndicatorSize?: number;
|
|
117
|
+
cameraPreviewBackgroundColor?: string;
|
|
58
118
|
};
|
|
59
119
|
copyright?: boolean;
|
|
60
120
|
tag?: string;
|
|
61
121
|
templateId: string;
|
|
62
122
|
sessionId?: string;
|
|
63
123
|
serviceToken?: string;
|
|
124
|
+
locale?: string;
|
|
125
|
+
backgroundColor?: string;
|
|
126
|
+
selectionLimit?: number;
|
|
64
127
|
};
|
|
65
128
|
|
|
66
129
|
declare type DocumentModulesConfig = {
|