@idscan/idvc2 3.1.1 → 3.3.0
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/idvc.js +1 -1
- package/dist/idvc.js.gzip +0 -0
- package/dist/js/defaultConfig.ts +21 -9
- package/dist/langs.js.gzip +0 -0
- package/dist/networks/Face-chunk.js +1 -1
- package/dist/networks/angle03032023.onnx.gzip +0 -0
- package/dist/networks/blurWorker.js.gzip +0 -0
- package/dist/networks/bubbleWorker.js.gzip +0 -0
- package/dist/networks/faceDetection03032023.onnx.gzip +0 -0
- package/dist/networks/faceLandmark03032023.onnx.gzip +0 -0
- package/dist/networks/mrz03032023.onnx.gzip +0 -0
- package/dist/networks/mrzWorker.js.gzip +0 -0
- package/dist/networks/ort-wasm-simd.wasm.gzip +0 -0
- package/dist/networks/ort-wasm.wasm.gzip +0 -0
- package/dist/networks/pdfWorker.js.gzip +0 -0
- package/dist/networks/yoloFaceFingers.onnx.gzip +0 -0
- package/dist/types/defaultConfig.d.ts +3 -1
- package/dist/types/modules/App/UI.d.ts +1 -0
- package/dist/types/modules/Config.d.ts +9 -2
- package/dist/types/modules/Step.d.ts +5 -0
- package/dist/types/modules/ui/HelpTooltip/HelpTooltip.d.ts +3 -0
- package/dist/types/modules/ui/HelpTooltip/index.d.ts +1 -0
- package/dist/types/modules/ui/InitScreeen/InitScreen.d.ts +1 -1
- package/dist/types/modules/ui/SelectDocumentType.d.ts +6 -2
- package/dist/types/modules/ui/VideoWrapper/CanvasWrapper.d.ts +3 -0
- package/dist/types/modules/ui/VideoWrapper/VideoRecorderService.d.ts +9 -0
- package/dist/types/modules/validation/ValidateDocumentTypes.d.ts +2 -0
- package/dist/types/util.d.ts +5 -1
- package/package.json +1 -1
package/dist/idvc.js.gzip
CHANGED
|
Binary file
|
package/dist/js/defaultConfig.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import realFaceModes, { RealFaceMode } from './environment/realFaceModes';
|
|
2
2
|
import { DocumentTypeName } from './environment/documentTypes';
|
|
3
3
|
import { StepType } from './environment/stepsDescription';
|
|
4
|
-
import { AllLabels, supportedLanguages} from './environment/langs';
|
|
4
|
+
import { AllLabels, supportedLanguages } from './environment/langs';
|
|
5
5
|
import { ModalPositionKeys, modalPositions } from './environment/modalPosition';
|
|
6
6
|
import { DeepPartial } from './types/helpers/DeepPartial';
|
|
7
7
|
|
|
8
8
|
export type ValidationFn =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
'validateElement'
|
|
10
|
+
| 'validateString'
|
|
11
|
+
| 'validateDocumentTypes'
|
|
12
|
+
| 'validateDistinctStringInArray'
|
|
13
|
+
| 'validateNumber'
|
|
14
|
+
| 'validateFunction'
|
|
15
|
+
| 'ValidateDictionaryLangMatch'
|
|
16
|
+
| 'validateBool';
|
|
17
17
|
type DefaultValueFunction = () => boolean;
|
|
18
18
|
export type NormalizedType = 'Path';
|
|
19
19
|
|
|
@@ -33,12 +33,14 @@ export type StepConfig = {
|
|
|
33
33
|
autocaptureDelay?: number,
|
|
34
34
|
enableDesktopNotification?: boolean,
|
|
35
35
|
enableFourCornerCapture?: boolean,
|
|
36
|
+
shouldRecordVideo?: boolean,
|
|
36
37
|
};
|
|
37
38
|
|
|
38
39
|
export type DocumentType = {
|
|
39
40
|
type: DocumentTypeName,
|
|
40
41
|
steps: StepConfig[],
|
|
41
42
|
mode?: StepMode,
|
|
43
|
+
tooltipText?: string,
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
type ImageURI = 'png' | 'jpeg' | 'webp';
|
|
@@ -71,6 +73,7 @@ export type DefaultConfigName = 'el'
|
|
|
71
73
|
| 'onRetakeHook'
|
|
72
74
|
| 'onCameraError'
|
|
73
75
|
| 'onMounted'
|
|
76
|
+
| 'onDocumentTypeSelect'
|
|
74
77
|
| 'onReloaded';
|
|
75
78
|
|
|
76
79
|
/**
|
|
@@ -118,6 +121,15 @@ const defaultConfig: IDefaultConfig[] = [
|
|
|
118
121
|
defaultValue: '',
|
|
119
122
|
validationFn: 'validateString',
|
|
120
123
|
},
|
|
124
|
+
{
|
|
125
|
+
name: 'onDocumentTypeSelect',
|
|
126
|
+
type: 'Function',
|
|
127
|
+
description: 'Callback-function which will be called after change type of document',
|
|
128
|
+
defaultValue() {
|
|
129
|
+
return true;
|
|
130
|
+
},
|
|
131
|
+
validationFn: 'validateFunction',
|
|
132
|
+
},
|
|
121
133
|
{
|
|
122
134
|
name: 'networkUrl',
|
|
123
135
|
type: 'String',
|
package/dist/langs.js.gzip
CHANGED
|
Binary file
|