@idscan/onboarding 2.2.25 → 2.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/@types/src/@types/Data.d.ts +2 -1
- package/dist/@types/src/Wrapper.d.ts +2 -0
- package/dist/js/wrapper.js +1 -1
- package/dist/networks/Blur-chunk.js +1 -0
- package/dist/networks/Bubble-chunk.js +1 -0
- package/dist/networks/MRZ-chunk.js +1 -0
- package/dist/networks/{156-2c44-chunk.js → bubbleWorker.js} +1 -1
- package/dist/networks/mrzWorker.js +1 -0
- package/package.json +2 -2
- package/readme.md +34 -13
- package/dist/networks/190-0e4f-chunk.js +0 -1
- package/dist/networks/Blur-a35a-chunk.js +0 -1
- package/dist/networks/MRZ-6b1d-chunk.js +0 -1
- /package/dist/networks/{ClassLocal-835d-chunk.js → ClassLocal-chunk.js} +0 -0
- /package/dist/networks/{Face-e2da-chunk.js → Face-chunk.js} +0 -0
- /package/dist/networks/{PDF-c6c7-chunk.js → PDF-chunk.js} +0 -0
- /package/dist/networks/{ZXing-ce9f-chunk.js → ZXing-chunk.js} +0 -0
- /package/dist/networks/{77-7273-chunk.js → blurWorker.js} +0 -0
package/readme.md
CHANGED
|
@@ -66,11 +66,11 @@ All configurations of @idscan/IDVC will be fetched from DVS Online by domainId.
|
|
|
66
66
|
|
|
67
67
|
Available fields:
|
|
68
68
|
|
|
69
|
-
**el** (string) -
|
|
69
|
+
**el** (string) - Id of an element on the page where the component will be integrated. Required.
|
|
70
70
|
|
|
71
|
-
**applicantId** (string) -
|
|
71
|
+
**applicantId** (string) - Id of applicant. Required.
|
|
72
72
|
|
|
73
|
-
**domainId** (string) -
|
|
73
|
+
**domainId** (string) - Domain id where from will get configs and styles. Required.
|
|
74
74
|
|
|
75
75
|
**domainApi** (string) - URL address of onboarding API. Required.
|
|
76
76
|
|
|
@@ -92,25 +92,37 @@ Available fields:
|
|
|
92
92
|
|
|
93
93
|
**processingImageFormat** (string) - This option switches image format, that used for image processing.
|
|
94
94
|
|
|
95
|
-
**
|
|
95
|
+
**demoMode** (boolean) - In true mode, the wrapper stops documents validation.
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
**wrapperSettings** (object) - Object with wrapper (not IDVC) settings. Allows you to override the config that came from the API. Available fields:
|
|
98
98
|
|
|
99
|
-
- **
|
|
99
|
+
- **showQrCode** - Enable validation on another device using a QR link.
|
|
100
100
|
|
|
101
|
-
- **
|
|
101
|
+
- **showConsentForm** - This option switches on/off the displaying consent form.
|
|
102
102
|
|
|
103
|
-
- **
|
|
103
|
+
- **consentText** - This option allows you to set the body text of the consent form.
|
|
104
104
|
|
|
105
|
-
- **
|
|
105
|
+
- **checkboxText** - This option allows you to set the confirmation text of the consent form.
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
**callbacks** (object) - Object with callback hooks. Available hooks:
|
|
108
108
|
|
|
109
|
-
- **
|
|
109
|
+
- **onChange** - Callback-function which will be called after change one step. The returnable value is the object with the type and the image.
|
|
110
110
|
|
|
111
|
-
- **
|
|
111
|
+
- **onCameraError** - Callback-function which is invoked in case if the camera is not available. The response value is the object with the error code and the message.
|
|
112
112
|
|
|
113
|
-
- **
|
|
113
|
+
- **onReset** - Callback-function which will be called after reset all the steps. The returnable value is the object with the steps.
|
|
114
|
+
|
|
115
|
+
- **onRetakeHook** - Callback-function which will be called before reset the current step. The returnable value is the object with the current step.
|
|
116
|
+
|
|
117
|
+
- **onValidate** - Callback-function which will be called after validation response received. The returnable value is the object with validation information.
|
|
118
|
+
|
|
119
|
+
- **onError** - Callback-function which will be called on error. The response value is the object with the error code and the message.
|
|
120
|
+
|
|
121
|
+
- **onReloaded** - Callback-function which will be called after the component finishes reloading. This function doesn't return a value.
|
|
122
|
+
|
|
123
|
+
- **onMounted** - Callback-function which will be called on the component mounted. This function doesn't return a value.
|
|
124
|
+
|
|
125
|
+
- **submit** - Callback-function which will be called after completing all the steps. The returnable value is the object with the following content:
|
|
114
126
|
```javascript
|
|
115
127
|
documentTypes: [
|
|
116
128
|
{
|
|
@@ -161,6 +173,15 @@ btn.addEventListener('click', () => {
|
|
|
161
173
|
**updateConfig** (string) - the method that reinitialize wrapper with new config. Parameter is an JSON encoded IDVC config. Works only in demo mode.
|
|
162
174
|
|
|
163
175
|
## Version history
|
|
176
|
+
- **2.2.28**
|
|
177
|
+
- feat: added 'wrapperSettings' option that allows you to override the wrapper config that comes from the API. This option works if the 'preferApiConfig' option is set to false.
|
|
178
|
+
|
|
179
|
+
- **2.2.27**
|
|
180
|
+
- Updated IDVC component
|
|
181
|
+
|
|
182
|
+
- **2.2.26**
|
|
183
|
+
- Updated IDVC component
|
|
184
|
+
|
|
164
185
|
- **2.2.25**
|
|
165
186
|
- Updated IDVC component
|
|
166
187
|
- fix: wrapper config option 'el'
|