@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/dist/idvc.js.gzip CHANGED
Binary file
@@ -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
- 'validateElement'
10
- | 'validateString'
11
- | 'validateDocumentTypes'
12
- | 'validateDistinctStringInArray'
13
- | 'validateNumber'
14
- | 'validateFunction'
15
- | 'ValidateDictionaryLangMatch'
16
- | 'validateBool';
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',
Binary file