@idscan/onboarding 2.2.27 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idscan/onboarding",
3
- "version": "2.2.27",
3
+ "version": "2.3.0",
4
4
  "description": "Wrapper of the IDVC library for DVS Online.",
5
5
  "main": "dist/js/wrapper.js",
6
6
  "types": "dist/@types/src/Wrapper.d.ts",
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) - id of an element on the page where the component will be integrated. Required.
69
+ **el** (string) - Id of an element on the page where the component will be integrated. Required.
70
70
 
71
- **applicantId** (string) - id of applicant. Required.
71
+ **applicantId** (string) - Id of applicant. Required.
72
72
 
73
- **domainId** (string) - domain id where from will get configs and styles. Required.
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
- **callbacks** (object) - object with callback hooks. Available next hooks:
95
+ **demoMode** (boolean) - In true mode, the wrapper stops documents validation.
96
96
 
97
- - **onChange** - callback-function which will be called after change one step. The returnable value is the object with the type and the image.
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
- - **onCameraError** - The function that is invoked in case if the camera is not available. The response value is the object with the error code and the message.
99
+ - **showQrCode** - Enable validation on another device using a QR link.
100
100
 
101
- - **onReset** - callback-function which will be called after reset all the steps. The returnable value is the object with the steps.
101
+ - **showConsentForm** - This option switches on/off the displaying consent form.
102
102
 
103
- - **onRetakeHook** - the function that will be called before reset the current step. The returnable value is the object with the current step.
103
+ - **consentText** - This option allows you to set the body text of the consent form.
104
104
 
105
- - **onValidate** - the function that will be called after validation response received. The returnable value is the object with validation information.
105
+ - **checkboxText** - This option allows you to set the confirmation text of the consent form.
106
106
 
107
- - **onError** - the function that will be called on error. The response value is the object with the error code and the message.
107
+ **callbacks** (object) - Object with callback hooks. Available hooks:
108
108
 
109
- - **onReloaded** - the function that will be called after the component finishes reloading. This function doesn't return a value.
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
- - **onMounted** - the function that will be called on the component mounted. This function doesn't return a value.
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
- - **submit** - callback-function which will be called after completing all the steps. The returnable value is the object with the following content:
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,9 @@ 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
+
164
179
  - **2.2.27**
165
180
  - Updated IDVC component
166
181