@idscan/idvc2 3.2.0 → 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 +4 -0
- package/dist/idvc.js +1 -1
- package/dist/idvc.js.gzip +0 -0
- package/dist/js/defaultConfig.ts +20 -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 +2 -1
- package/dist/types/modules/App/UI.d.ts +1 -0
- package/dist/types/modules/Config.d.ts +9 -2
- 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/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
|
|
|
@@ -40,6 +40,7 @@ export type DocumentType = {
|
|
|
40
40
|
type: DocumentTypeName,
|
|
41
41
|
steps: StepConfig[],
|
|
42
42
|
mode?: StepMode,
|
|
43
|
+
tooltipText?: string,
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
type ImageURI = 'png' | 'jpeg' | 'webp';
|
|
@@ -72,6 +73,7 @@ export type DefaultConfigName = 'el'
|
|
|
72
73
|
| 'onRetakeHook'
|
|
73
74
|
| 'onCameraError'
|
|
74
75
|
| 'onMounted'
|
|
76
|
+
| 'onDocumentTypeSelect'
|
|
75
77
|
| 'onReloaded';
|
|
76
78
|
|
|
77
79
|
/**
|
|
@@ -119,6 +121,15 @@ const defaultConfig: IDefaultConfig[] = [
|
|
|
119
121
|
defaultValue: '',
|
|
120
122
|
validationFn: 'validateString',
|
|
121
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
|
+
},
|
|
122
133
|
{
|
|
123
134
|
name: 'networkUrl',
|
|
124
135
|
type: 'String',
|
package/dist/langs.js.gzip
CHANGED
|
Binary file
|