@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/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
 
@@ -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',
Binary file