@idscan/onboarding 2.0.20 → 2.0.22

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.0.20",
3
+ "version": "2.0.22",
4
4
  "description": "Wrapper of the IDVC library for DVS Online.",
5
5
  "main": "dist/js/wrapper.js",
6
6
  "files": [
@@ -11,7 +11,8 @@
11
11
  "build": "webpack build --mode development --progress --stats-children",
12
12
  "prod": "webpack build --mode production --progress --stats-children",
13
13
  "pack": "npm pack",
14
- "patch": "npm version patch"
14
+ "patch": "npm version patch",
15
+ "minor": "npm version minor"
15
16
  },
16
17
  "dependencies": {
17
18
  "@idscan/idvc2": "2.2.3",
package/readme.md CHANGED
@@ -56,7 +56,7 @@ new CopyWebpackPlugin ([
56
56
 
57
57
  ```javascript
58
58
  import DVSOIDVC from '@idscan/onboarding';
59
- import '@idscan/onboarding/dist/css/onboarding.css';
59
+ import '@idscan/onboarding/dist/css/onboarding.css';
60
60
  ```
61
61
  ## Initialization
62
62
 
@@ -74,6 +74,8 @@ Available fields:
74
74
 
75
75
  **publicKey** (string) - DVS Web API Public Key. Required
76
76
 
77
+ **chunkPublicPath** (string) - Path to the folder with chunks. Specify the path on the server if you need to remove the folder to another location. The default path is \'networks\'.
78
+
77
79
  **callbacks** (object) - object with callback hooks. Available next hooks:
78
80
 
79
81
  - **onChange** - callback-function which will be called after change one step. The returnable value is the object with the type and the image
@@ -127,6 +129,7 @@ const lib = new DVSOIDVC({
127
129
  applicantId: '...',
128
130
  domainId: '...',
129
131
  publicKey: '...',
132
+ chunkPublicPath: '/customPath/',
130
133
  });
131
134
 
132
135
  const btn = document.getElementById('btn');
@@ -139,6 +142,12 @@ btn.addEventListener('click', () => {
139
142
  **updateConfig** (string) - the method that reinitialize wrapper with new config. Parameter is an JSON encoded IDVC config. Works only in demo mode.
140
143
 
141
144
  ## Version history
145
+ - **2.1.0**
146
+ - Added: new option in config "chunkPublicPath"
147
+
148
+ - **2.0.19**
149
+ - Updated IDVC component
150
+
142
151
  - **2.0.18**
143
152
  - Updated IDVC component
144
153