@idscan/idvc2 2.5.9 → 2.5.10
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/README.md +8 -0
- package/dist/css/idvc.css +1 -1
- package/dist/idvc.js +3 -3
- package/dist/index.html +13 -4
- package/dist/js/defaultConfig.ts +27 -2
- package/dist/networks/190-0e4f-chunk.js +5 -0
- package/dist/networks/77-7273-chunk.js +5 -0
- package/dist/networks/PDF-c6c7-chunk.js +5 -0
- package/package.json +1 -1
- package/dist/networks/190-00d9-chunk.js +0 -1
- package/dist/networks/77-6aeb-chunk.js +0 -1
- package/dist/networks/PDF-441b-chunk.js +0 -1
package/dist/index.html
CHANGED
|
@@ -16,16 +16,17 @@
|
|
|
16
16
|
parsePDF: true,
|
|
17
17
|
realFaceMode: 'all', // none, auto, all
|
|
18
18
|
useCDN: false,
|
|
19
|
+
// hideDocumentTitle: true,
|
|
19
20
|
useHeic: false,
|
|
20
21
|
resizeUploadedImage: 2000,
|
|
21
|
-
isShowDocumentTypeSelect:
|
|
22
|
+
isShowDocumentTypeSelect: true,
|
|
22
23
|
isShowGuidelinesButton: true,
|
|
23
24
|
language: 'en',
|
|
24
25
|
documentTypes: [
|
|
25
26
|
{
|
|
26
27
|
type: 'ID',
|
|
27
28
|
steps:[
|
|
28
|
-
{ type: 'front', name: 'Document Front' },
|
|
29
|
+
// { type: 'front', name: 'Document Front' },
|
|
29
30
|
{ type: 'pdf', name: 'Document PDF417 Barcode' },
|
|
30
31
|
{ type: 'face', name: 'Face' },
|
|
31
32
|
],
|
|
@@ -45,11 +46,19 @@
|
|
|
45
46
|
{
|
|
46
47
|
type: 'Passport',
|
|
47
48
|
steps:[
|
|
48
|
-
{ type: 'front', name: 'Document Front' },
|
|
49
|
-
{ type: 'mrz', name: 'Passport
|
|
49
|
+
// { type: 'front', name: 'Document Front' },
|
|
50
|
+
{ type: 'mrz', name: 'Passport Back', mode: { uploader: true, video: true } },
|
|
50
51
|
{ type: 'face', name: 'Face', mode: { uploader: false, video: true } }
|
|
51
52
|
],
|
|
52
53
|
},
|
|
54
|
+
{
|
|
55
|
+
type: 'InternationalId',
|
|
56
|
+
steps:[
|
|
57
|
+
// { type: 'front', name: 'Document Front' },
|
|
58
|
+
{ type: 'back', name: 'Passport Back', mode: { uploader: true, video: true } },
|
|
59
|
+
// { type: 'face', name: 'Face', mode: { uploader: false, video: true } }
|
|
60
|
+
],
|
|
61
|
+
},
|
|
53
62
|
],
|
|
54
63
|
clickGuidlines () {
|
|
55
64
|
console.log('clickGuidlines')
|
package/dist/js/defaultConfig.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { ModalPositionKeys, modalPositions } from './environment/modalPosition';
|
|
|
6
6
|
|
|
7
7
|
export type ValidationFn = 'validateElement' | 'validateString' | 'validateDocumentTypes' | 'validateDistinctStringInArray' | 'validateNumber' | 'validateFunction' | 'validateBool';
|
|
8
8
|
type DefaultValueFunction = () => boolean;
|
|
9
|
+
export type NormalizedType = 'Path';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* { boolean? } uploader
|
|
@@ -28,6 +29,8 @@ export interface IDocumentType {
|
|
|
28
29
|
mode?: IStepMode,
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
type ImageURI = 'png' | 'jpeg' | 'webp';
|
|
33
|
+
|
|
31
34
|
export type DefaultConfigName = 'el'
|
|
32
35
|
| 'licenseKey'
|
|
33
36
|
| 'networkUrl'
|
|
@@ -42,6 +45,8 @@ export type DefaultConfigName = 'el'
|
|
|
42
45
|
| 'isShowDocumentTypeSelect'
|
|
43
46
|
| 'useCDN'
|
|
44
47
|
| 'useHeic'
|
|
48
|
+
| 'processingImageFormat'
|
|
49
|
+
| 'hideDocumentTitle'
|
|
45
50
|
| 'autoContinue'
|
|
46
51
|
| 'isShowGuidelinesButton'
|
|
47
52
|
| 'fixFrontOrientAfterUpload'
|
|
@@ -73,9 +78,10 @@ export interface IDefaultConfig {
|
|
|
73
78
|
defaultValue: IStepMode | string | boolean | DefaultValueFunction | number | IDocumentType[],
|
|
74
79
|
validationFn: ValidationFn,
|
|
75
80
|
hidden?: boolean,
|
|
76
|
-
values?: ModalPositionKeys[] | RealFaceMode[] | typeof supportedLanguages[number][],
|
|
81
|
+
values?: ModalPositionKeys[] | RealFaceMode[] | typeof supportedLanguages[number][] | ImageURI[],
|
|
77
82
|
arrayValues?: unknown[],
|
|
78
83
|
multiple?: boolean,
|
|
84
|
+
normalizedType?: NormalizedType,
|
|
79
85
|
}
|
|
80
86
|
|
|
81
87
|
/**
|
|
@@ -102,8 +108,9 @@ const defaultConfig: IDefaultConfig[] = [
|
|
|
102
108
|
name: 'networkUrl',
|
|
103
109
|
type: 'String',
|
|
104
110
|
description: 'Path to the folder with neural networks. Specify the path on the server if you need to remove the folder to another location. The default path is \'networks\'.',
|
|
105
|
-
defaultValue: 'networks',
|
|
111
|
+
defaultValue: 'networks/',
|
|
106
112
|
validationFn: 'validateString',
|
|
113
|
+
normalizedType: 'Path',
|
|
107
114
|
},
|
|
108
115
|
{
|
|
109
116
|
name: 'chunkPublicPath',
|
|
@@ -111,6 +118,7 @@ const defaultConfig: IDefaultConfig[] = [
|
|
|
111
118
|
description: 'Path to the folder with chunks. Specify the path on the server if you need to remove the folder to another location. The default path is \'networks\'.',
|
|
112
119
|
defaultValue: 'networks/',
|
|
113
120
|
validationFn: 'validateString',
|
|
121
|
+
normalizedType: 'Path',
|
|
114
122
|
},
|
|
115
123
|
{
|
|
116
124
|
name: 'language',
|
|
@@ -198,6 +206,13 @@ const defaultConfig: IDefaultConfig[] = [
|
|
|
198
206
|
defaultValue: false,
|
|
199
207
|
validationFn: 'validateBool',
|
|
200
208
|
},
|
|
209
|
+
{
|
|
210
|
+
name: 'hideDocumentTitle',
|
|
211
|
+
type: 'Boolean',
|
|
212
|
+
description: 'This option switches on/off the displaying document titles',
|
|
213
|
+
defaultValue: false,
|
|
214
|
+
validationFn: 'validateBool',
|
|
215
|
+
},
|
|
201
216
|
{
|
|
202
217
|
name: 'useHeic',
|
|
203
218
|
type: 'Boolean',
|
|
@@ -205,6 +220,16 @@ const defaultConfig: IDefaultConfig[] = [
|
|
|
205
220
|
defaultValue: false,
|
|
206
221
|
validationFn: 'validateBool',
|
|
207
222
|
},
|
|
223
|
+
{
|
|
224
|
+
name: 'processingImageFormat',
|
|
225
|
+
values: ['jpeg', 'png', 'webp'],
|
|
226
|
+
type: 'Array',
|
|
227
|
+
description: 'This option switches image format, that used for image processing',
|
|
228
|
+
defaultValue: 'webp',
|
|
229
|
+
validationFn: 'validateDistinctStringInArray',
|
|
230
|
+
arrayValues: ['jpeg', 'png', 'webp'],
|
|
231
|
+
multiple: false,
|
|
232
|
+
},
|
|
208
233
|
{
|
|
209
234
|
name: 'autoContinue',
|
|
210
235
|
type: 'Boolean',
|