@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/dist/@types/src/@types/Api/Requests.d.ts +1 -1
- package/dist/@types/src/@types/Data.d.ts +5 -2
- package/dist/@types/src/Wrapper.d.ts +2 -0
- package/dist/@types/src/config.d.ts +3 -3
- package/dist/@types/src/helpers/utils.d.ts +2 -2
- package/dist/@types/src/modules/Api.d.ts +1 -0
- package/dist/@types/src/modules/Modal.d.ts +1 -1
- package/dist/@types/src/modules/QRCodeModal.d.ts +4 -1
- package/dist/css/onboarding.css +2 -2
- package/dist/js/wrapper.js +1 -1
- package/dist/networks/{77-705c-chunk.js → 77-6aeb-chunk.js} +1 -1
- package/dist/networks/Blur-a35a-chunk.js +1 -0
- package/dist/networks/ClassLocal-f57b-chunk.js +1 -0
- package/dist/networks/Face-7ab3-chunk.js +1 -0
- package/dist/networks/MRZ-2798-chunk.js +1 -0
- package/dist/networks/{PDF-4ee2-chunk.js → PDF-441b-chunk.js} +1 -1
- package/dist/networks/{ZXing-f54a-chunk.js → ZXing-ce9f-chunk.js} +1 -1
- package/package.json +2 -2
- package/readme.md +30 -13
- package/dist/networks/Face-5c85-chunk.js +0 -1
- package/dist/networks/MRZ-70ee-chunk.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idscan/onboarding",
|
|
3
|
-
"version": "2.2.
|
|
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.
|
|
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:
|
|
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
|
|