@idscan/onboarding 2.2.11 → 2.2.13

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.11",
3
+ "version": "2.2.13",
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",
@@ -20,7 +20,7 @@
20
20
  "minor": "npm version minor"
21
21
  },
22
22
  "dependencies": {
23
- "@idscan/idvc2": "^2.5.6",
23
+ "@idscan/idvc2": "^2.5.9",
24
24
  "core-js": "^3.30.0",
25
25
  "qrcode": "^1.5.1",
26
26
  "regenerator-runtime": "^0.13.11"
package/readme.md CHANGED
@@ -46,7 +46,7 @@ There are binary files in the folder which do not have the extension. These file
46
46
  new CopyWebpackPlugin ([
47
47
  {
48
48
  from: 'node_modules/@idscan/onboarding/dist/networks/**/*',
49
- to: 'networks/[folder]/[name].[ext]',
49
+ to: `${networkUrl}/[folder]/[name].[ext]`,
50
50
  toType: 'template'
51
51
  }
52
52
  ])
@@ -68,33 +68,39 @@ Available fields:
68
68
 
69
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
- **domainApi** (string) - URL address of onboarding API
75
+ **domainApi** (string) - URL address of onboarding API. Required.
76
76
 
77
- **publicKey** (string) - DVS Web API Public Key. Required
77
+ **publicKey** (string) - DVS Web API Public Key. Required.
78
78
 
79
- **isAuth** (boolean) - Flag indicating that only face authentication is required
79
+ **isAuth** (boolean) - Flag indicating that only face authentication is required.
80
80
 
81
- **faceOnly** (boolean) - Flag indicating that only face registration is required
81
+ **faceOnly** (boolean) - Flag indicating that only face registration is required.
82
82
 
83
83
  **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\'.
84
84
 
85
+ **networkUrl** (boolean) - Path to the folder with neural networks. Specify the path on the server if you need to remove the folder to another location. The default path is \'networks\'.'
86
+
87
+ **useCDN** (boolean) - Flag indicating that you want to load networks from cdn instead of your domain.
88
+
89
+ **preferApiConfig** (boolean) - Flag indicating that you prefer to use IDVC library configuration, that was sent from the DVS Online API, instead of the configuration used when initializing the wrapper.
90
+
85
91
  **callbacks** (object) - object with callback hooks. Available next hooks:
86
92
 
87
- - **onChange** - callback-function which will be called after change one step. The returnable value is the object with the type and the image
93
+ - **onChange** - callback-function which will be called after change one step. The returnable value is the object with the type and the image.
88
94
 
89
- - **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
95
+ - **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.
90
96
 
91
- - **onReset** - callback-function which will be called after reset all the steps. The returnable value is the object with the steps
97
+ - **onReset** - callback-function which will be called after reset all the steps. The returnable value is the object with the steps.
92
98
 
93
- - **onRetakeHook** - the function that will be called before reset the current step. The returnable value is the object with the current step
99
+ - **onRetakeHook** - the function that will be called before reset the current step. The returnable value is the object with the current step.
94
100
 
95
- - **onValidate** - the function that will be called after validation response received. The returnable value is the object with validation information
101
+ - **onValidate** - the function that will be called after validation response received. The returnable value is the object with validation information.
96
102
 
97
- - **onError** - the function that will be called on error. The response value is the object with the error code and the message
103
+ - **onError** - the function that will be called on error. The response value is the object with the error code and the message.
98
104
 
99
105
  - **onReloaded** - the function that will be called after the component finishes reloading. This function doesn't return a value.
100
106
 
@@ -138,6 +144,7 @@ const lib = new DVSOIDVC({
138
144
  domainId: '...',
139
145
  publicKey: '...',
140
146
  chunkPublicPath: '/customPath/',
147
+ domainApi: '...',
141
148
  });
142
149
 
143
150
  const btn = document.getElementById('btn');
@@ -150,6 +157,16 @@ btn.addEventListener('click', () => {
150
157
  **updateConfig** (string) - the method that reinitialize wrapper with new config. Parameter is an JSON encoded IDVC config. Works only in demo mode.
151
158
 
152
159
  ## Version history
160
+ - **2.2.13**
161
+ - Added: new config options 'networkUrl', 'useCDN', 'preferApiConfig'
162
+
163
+ - **2.2.12**
164
+ - Updated IDVC component
165
+ - Updated readme
166
+
167
+ - **2.2.11**
168
+ - Feat: some minor fixes
169
+
153
170
  - **2.2.10**
154
171
  - Feat: face only mode
155
172