@idscan/onboarding 2.6.0 → 2.6.2

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/readme.md CHANGED
@@ -1,561 +1,567 @@
1
- ## Overview
2
-
3
- Wrapper of the IDVC library for DVS Online.
4
-
5
- ## Use cases
6
-
7
- - Capture and determination of the document type
8
- - Capture of pdf417
9
- - Capture of MRZ
10
- - Capture of faces
11
-
12
- ## Recommendations
13
-
14
- Use a modern phone with a good camera having the definition of not less than 8 megapixels.
15
- The capture must be made in a well-lighted room. A document must be located at the uniform background.
16
-
17
- ## Limitations
18
-
19
- This component works in phones with the operating system Android in the browser Chrome (minimum version 52) and in phones with the operating system iOS (minimum version 15) in the browser Safari
20
-
21
- ## Installation
22
-
23
- ```
24
- $ npm install @idscan/onboarding
25
- ```
26
-
27
- This component contains JS, CSS files which require the mandatory import into your project.
28
-
29
- 1. Before importing it is necessary to set the webpack-configuration.
30
-
31
- *Note: The project must use the webpack 4 and later versions.*
32
-
33
- 1.1. Add the following rules of loading to the field rules
34
- ```javascript
35
- {
36
- test: /\.css$/,
37
- use: ["style-loader", "css-loader"]
38
- }
39
- ```
40
-
41
- 1.2. If you prefer to use neural networks from your domain, you should add the 'CopyWebpackPlugin' into the section 'plugins' which will copy the files, which are necessary for the work of the neural network, from the folder to another folder that should be selected by you.
42
-
43
- *Note: The structure inside the folder of the component 'networks' must be saved on the server with due regard to the nesting.
44
- There are binary files in the folder which do not have the extension. These files must be provided by the server with the header `Content-Type: application/octet-stream`.*
45
- ```javascript
46
- new CopyWebpackPlugin ([
47
- {
48
- from: 'node_modules/@idscan/onboarding/dist/networks/**/*',
49
- to: `${networkUrl}/[folder]/[name].[ext]`,
50
- toType: 'template'
51
- }
52
- ])
53
- ```
54
-
55
- 1.3. Import the library and css to your project.
56
-
57
- ```javascript
58
- import DVSOIDVC from '@idscan/onboarding';
59
- import '@idscan/onboarding/dist/css/onboarding.css';
60
- ```
61
- ## Initialization
62
-
63
- Create an instance of the object 'DVS Online IDVC library wrapper'. The object takes one object of the component configuration as a parameter.
64
-
65
- All configurations of @idscan/IDVC will be fetched from DVS Online by domainId.
66
-
67
- Available fields:
68
-
69
- **el** (string) - Id of an element on the page where the component will be integrated. Required.
70
-
71
- **applicantId** (string) - Id of applicant. Required.
72
-
73
- **domainId** (string) - Domain id where from will get configs and styles. Required.
74
-
75
- **domainApi** (string) - URL address of onboarding API. Required.
76
-
77
- **publicKey** (string) - DVS Web API Public Key. Required.
78
-
79
- **isAuth** (boolean) - Flag indicating that only face authentication is required.
80
-
81
- **faceOnly** (boolean) - Flag indicating that only face registration is required.
82
-
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
-
85
- **networkUrl** (string) - 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
-
91
- **hideDocumentTitle** (boolean) - This option switches on/off the displaying document titles.
92
-
93
- **processingImageFormat** (string) - This option switches image format, that used for image processing.
94
-
95
- **demoMode** (boolean) - In true mode, the wrapper stops documents validation.
96
-
97
- **qrCodeLinkOrigin** (string) - Allows you to change the QR-link. Should look like window.location.origin (protocol://domain:port)
98
-
99
- **getApplicantIdFromURL** (boolean) - Allows you to take the applicant id from the browser URL
100
-
101
- **wrapperSettings** (object) - Object with wrapper (not IDVC) settings. Allows you to override the config that came from the API. Available fields:
102
-
103
- - **showQrCode** (boolean) - Enable validation on another device using a QR link.
104
-
105
- - **showConsentForm** (boolean) - This option switches on/off the displaying consent form.
106
-
107
- - **consentText** (string) - This option allows you to set the body text of the consent form.
108
-
109
- - **checkboxText** (string) - This option allows you to set the confirmation text of the consent form.
110
-
111
- **callbacks** (object) - Object with callback hooks. Available hooks:
112
-
113
- - **onChange** - Callback-function which will be called after change one step. The returnable value is the object with the type and the image.
114
-
115
- - **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.
116
-
117
- - **onReset** - Callback-function which will be called after reset all the steps. The returnable value is the object with the steps.
118
-
119
- - **onRetakeHook** - Callback-function which will be called before reset the current step. The returnable value is the object with the current step.
120
-
121
- - **onValidate** - Callback-function which will be called after validation response received. The returnable value is the object with validation information.
122
-
123
- - **onError** - Callback-function which will be called on error. The response value is the object with the error code and the message.
124
-
125
- - **onReloaded** - Callback-function which will be called after the component finishes reloading. This function doesn't return a value.
126
-
127
- - **onMounted** - Callback-function which will be called on the component mounted. This function doesn't return a value.
128
-
129
- - **submit** - Callback-function which will be called after completing all the steps. The returnable value is the object with the following content:
130
- ```javascript
131
- documentTypes: [
132
- {
133
- type: "ID",
134
- steps:[
135
- { type: 'front', name: 'Document Front', mode: { uploader: true, video: true } },
136
- { type: 'pdf', name: 'Document PDF417 Barcode' , mode: { uploader: true, video: true } },
137
- { type: 'face', name: 'Face', mode: { uploader: false, video: true } }
138
- ]},
139
- {
140
- type: "Passport",
141
- steps:[
142
- { type: 'mrz', name: 'Passport Front' , mode: { uploader: true, video: true } },
143
- { type: 'face', name: 'Face', mode: { uploader: false, video: true } }
144
- ]},
145
- ]
146
- ```
147
-
148
- steps – steps with the type and the image in the format 'base64'.
149
-
150
- Also, if you use automatic capture, in the "back" step **trackstring** will be returned (raw PDF417 data from Barcode encoded in base64)
151
-
152
-
153
- *Note: Request an license key for the library by emailing
154
- [sales@idscan.net](mailto:sales@idscan.net) or [support@idscan.net](mailto:support@idscan.net)*
155
-
156
- ## Methods
157
-
158
- **setApplicant** (string) - the method that reinitialize wrapper for new applicant. Parameter is an applicant id of string type.
159
- ```javascript
160
- import DVSOIDVC from './Wrapper';
161
-
162
- const lib = new DVSOIDVC({
163
- applicantId: '...',
164
- domainId: '...',
165
- publicKey: '...',
166
- chunkPublicPath: '/customPath/',
167
- domainApi: '...',
168
- });
169
-
170
- const btn = document.getElementById('btn');
171
- btn.addEventListener('click', () => {
172
- const applicantId = 'new applicant id';
173
- lib.setApplicant(applicantId);
174
- });
175
- ```
176
-
177
- **updateConfig** (string) - the method that reinitialize wrapper with new config. Parameter is an JSON encoded IDVC config. Works only in demo mode.
178
-
179
- ## Version history
180
-
181
- - **2.6.0**
182
- - feat: Added new options: getApplicantIdFromURL, qrCodeLinkOrigin
183
- - Updated IDVC component
184
-
185
- - **2.5.1**
186
- - feat: added 'isOcrEnabled' field in Validation request
187
-
188
- - **2.5.0**
189
- - Updated IDVC component
190
- - feat: update UI
191
-
192
- - **2.4.1**
193
- - Minor fixes
194
-
195
- - **2.4.0**
196
- - feat: added a new public method to show the loader.
197
- Method: showLoader(val: boolean, bottomText?: string, topText?: string)
198
- - Updated IDVC component
199
-
200
- - **2.3.16**
201
- - Updated IDVC component
202
-
203
- - **2.3.15**
204
- - Updated IDVC component
205
- - feat: added 'isBackOrSecondImageProcessingEnabled' field in Validation request
206
-
207
- - **2.3.14**
208
- - fix: validation modal showing
209
-
210
- - **2.3.13**
211
- - Updated IDVC component
212
- - feat: performance improvement
213
-
214
- - **2.3.12**
215
- - Updated IDVC component
216
-
217
- - **2.3.11**
218
- - Updated IDVC component
219
-
220
- - **2.3.10**
221
- - Updated IDVC component
222
- - feat: changed UI for QR Code modal
223
-
224
- - **2.3.9**
225
- - Updated IDVC component
226
- - fix: track string capturing from MRZ
227
-
228
- - **2.3.8**
229
- - fix: validation process
230
-
231
- - **2.3.7**
232
- - Little fixes
233
-
234
- - **2.3.6**
235
- - Updated IDVC component
236
- - Now, the wrapper replaces the 'front' step for the 'Passport' document with the 'mrz' step.
237
-
238
- - **2.3.5**
239
- - Updated IDVC component
240
-
241
- - **2.3.4**
242
- - Updated IDVC component
243
-
244
- - **2.3.3**
245
- - fix: QR code process on SPA
246
-
247
- - **2.3.2**
248
- - Improving modal window styles
249
-
250
- - **2.3.1**
251
- - Updated IDVC component
252
-
253
- - **2.3.0**
254
- - 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.
255
-
256
- - **2.2.27**
257
- - Updated IDVC component
258
-
259
- - **2.2.26**
260
- - Updated IDVC component
261
-
262
- - **2.2.25**
263
- - Updated IDVC component
264
- - fix: wrapper config option 'el'
265
-
266
- - **2.2.24**
267
- - Updated IDVC component
268
-
269
- - **2.2.23**
270
- - Updated IDVC component
271
- - feat: simplify the Passport verification, now front step it's union of front and mrz
272
-
273
- - **2.2.22**
274
- - Updated IDVC component
275
-
276
- - **2.2.21**
277
- - Fixes: The image of the back of the document was not sent when International ID was selected
278
-
279
- - **2.2.20**
280
- - Updated IDVC component
281
- - Fixes: Response when isAuth = true
282
-
283
- - **2.2.19**
284
- - Updated IDVC component
285
-
286
- - **2.2.18**
287
- - Updated IDVC component
288
-
289
- - **2.2.17**
290
- - Added: documents config validation
291
- - Fixes: QR code processing
292
-
293
- - **2.2.16**
294
- - Added: mobile checking for qr code
295
-
296
- - **2.2.15**
297
- - Added: new config options 'hideDocumentTitle', 'processingImageFormat'
298
- - Updated IDVC component
299
-
300
- - **2.2.14**
301
- - Change webpack build options. Remove eval
302
-
303
- - **2.2.13**
304
- - Added: new config options 'networkUrl', 'useCDN', 'preferApiConfig'
305
-
306
- - **2.2.12**
307
- - Updated IDVC component
308
- - Updated readme
309
-
310
- - **2.2.11**
311
- - Feat: some minor fixes
312
-
313
- - **2.2.10**
314
- - Feat: face only mode
315
-
316
- - **2.2.9**
317
- - Fixed qr link
318
-
319
- - **2.2.8**
320
- - Updated IDVC component
321
-
322
- - **2.2.7**
323
- - Update TS types
324
-
325
- - **2.2.6**
326
- - Fixed config
327
-
328
- - **2.2.5**
329
- - Fixed build issue
330
- - Added: webp support
331
-
332
- - **2.2.4**
333
- - Updated IDVC component
334
-
335
- - **2.2.3**
336
- - Added: face auth success modal
337
-
338
- - **2.2.2**
339
- - Added: config change
340
- - Changed API calls
341
-
342
- - **2.2.1**
343
- - Fix: face validation
344
-
345
- - **2.2.0**
346
- - Feat: add flag indicating that only face authentication is required
347
- - Feat: some minor fixes
348
-
349
- - **2.1.29**
350
- - Feat: some minor fixes
351
-
352
- - **2.1.28**
353
- - Updated IDVC component
354
-
355
- - **2.1.27**
356
- - Updated IDVC component
357
-
358
- - **2.1.26**
359
- - Fix: Consent Form styles
360
-
361
- - **2.1.25**
362
- - Feat: Add attempt left status text
363
- - Fix: Validation Modal
364
-
365
- - **2.1.24**
366
- - Fix: Consent Form styles
367
-
368
- - **2.1.23**
369
- - Feat: rework Consent Form
370
- - Feat: change Domains Api to Integrations Api
371
-
372
- - **2.1.22**
373
- - Fix: embedded app status from api
374
- - Feat: update IDVC callbacks readme
375
-
376
- - **2.1.21**
377
- - Feat: change domain to domainApi
378
- - Feat: domainApi is required now
379
-
380
- - **2.1.20**
381
- - Fix: change showQRCode flag name to showQrCode
382
-
383
- - **2.1.19**
384
- - Fix: return old check validation endpoint
385
- - Feat: add check for showQRCode flag from backend
386
-
387
- - **2.1.18**
388
- - Add the possibility of continuing the documents' check on a mobile device
389
-
390
- - **2.1.17**
391
- - Change verifyFace option behavior
392
-
393
- - **2.1.16**
394
- - Updated IDVC component
395
-
396
- - **2.1.15**
397
- - Updated IDVC component
398
-
399
- - **2.1.14**
400
- - Updated IDVC component
401
-
402
- - **2.1.13**
403
- - Updated IDVC component
404
-
405
- - **2.1.12**
406
- - Fix: validation model
407
-
408
- - **2.1.11**
409
- - Updated IDVC component
410
-
411
- - **2.1.10**
412
- - Updated IDVC component
413
-
414
- - **2.1.9**
415
- - Fixed API path
416
-
417
- - **2.1.8**
418
- - Updated IDVC component
419
-
420
- - **2.1.7**
421
- - Added support for Proxy based frameworks
422
-
423
- - **2.1.6**
424
- - Added support for ios < 15
425
-
426
- - **2.1.5**
427
- - Updated IDVC component
428
-
429
- - **2.1.4**
430
- - Improved document types validation
431
-
432
- - **2.1.3**
433
- - Updated IDVC component
434
-
435
- - **2.1.2**
436
- - Updated IDVC component
437
- - Changed: modal message behaviour
438
-
439
- - **2.1.1**
440
- - Fixed: submit mrz
441
-
442
- - **2.1.0**
443
- - Added: new option in config "chunkPublicPath"
444
-
445
- - **2.0.19**
446
- - Updated IDVC component
447
-
448
- - **2.0.18**
449
- - Updated IDVC component
450
-
451
- - **2.0.17**
452
- - Some improvements
453
-
454
- - **2.0.16**
455
- - Some improvements
456
-
457
- - **2.0.15**
458
- - Some improvements
459
-
460
- - **2.0.14**
461
- - Some improvements
462
-
463
- - **2.0.13**
464
- - Updated IDVC component
465
-
466
- - **2.0.12**
467
- - Updated IDVC component
468
-
469
- - **2.0.11**
470
- - Updated IDVC component
471
-
472
- - **2.0.10**
473
- - Updated IDVC component
474
-
475
- - **2.0.9**
476
- - Updated IDVC component
477
-
478
- - **2.0.8**
479
- - Some improvements
480
-
481
- - **2.0.7**
482
- - Fixed background
483
-
484
- - **2.0.6**
485
- - Added version 1 config support
486
-
487
- - **2.0.5**
488
- - Updated IDVC component
489
- - Fixed submit method
490
-
491
- - **2.0.4**
492
- - Updated IDVC component
493
-
494
- - **2.0.3**
495
- - Some improvements
496
-
497
- - **2.0.2**
498
- - Updated IDVC component
499
-
500
- - **2.0.1**
501
- - Added consent form
502
-
503
- - **2.0.0**
504
- - Migrate to the IDVC version 2
505
-
506
- - **1.0.18**
507
- - Fixed spinner
508
-
509
- - **1.0.17**
510
- - Fixed license key
511
-
512
- - **1.0.16**
513
- - Added sign for forced closing of the request
514
-
515
- - **1.0.15**
516
- - updated IDVC component
517
-
518
- - **1.0.14**
519
- - updated IDVC component
520
-
521
- - **1.0.13**
522
- - added ids for style tags
523
-
524
- - **1.0.12**
525
- - updated IDVC component
526
-
527
- - **1.0.11**
528
- - updated using DVS Online API
529
-
530
- - **1.0.10**
531
- - added: onMounted callback
532
-
533
- - **1.0.9**
534
- - @idscan/idvc dependency updated
535
-
536
- - **1.0.8**
537
- - added: reload component with new configs in demo mode
538
-
539
- - **1.0.7**
540
- - updated using DVS Online API
541
-
542
- - **1.0.6**
543
- - updated using DVS Online API
544
-
545
- - **1.0.5**
546
- - updated IDVC component
547
- - updated using DVS Online API
548
-
549
- - **1.0.4**
550
- - use CDN
551
-
552
- - **1.0.3**
553
- - Changed readme
554
-
555
- - **1.0.2**
556
- - Some improvements
557
-
558
- - **1.0.1**
559
- - Changed readme
560
-
561
- - **1.0.0**
1
+ ## Overview
2
+
3
+ Wrapper of the IDVC library for DVS Online.
4
+
5
+ ## Use cases
6
+
7
+ - Capture and determination of the document type
8
+ - Capture of pdf417
9
+ - Capture of MRZ
10
+ - Capture of faces
11
+
12
+ ## Recommendations
13
+
14
+ Use a modern phone with a good camera having the definition of not less than 8 megapixels.
15
+ The capture must be made in a well-lighted room. A document must be located at the uniform background.
16
+
17
+ ## Limitations
18
+
19
+ This component works in phones with the operating system Android in the browser Chrome (minimum version 52) and in phones with the operating system iOS (minimum version 15) in the browser Safari
20
+
21
+ ## Installation
22
+
23
+ ```
24
+ $ npm install @idscan/onboarding
25
+ ```
26
+
27
+ This component contains JS, CSS files which require the mandatory import into your project.
28
+
29
+ 1. Before importing it is necessary to set the webpack-configuration.
30
+
31
+ *Note: The project must use the webpack 4 and later versions.*
32
+
33
+ 1.1. Add the following rules of loading to the field rules
34
+ ```javascript
35
+ {
36
+ test: /\.css$/,
37
+ use: ["style-loader", "css-loader"]
38
+ }
39
+ ```
40
+
41
+ 1.2. If you prefer to use neural networks from your domain, you should add the &#39;CopyWebpackPlugin&#39; into the section &#39;plugins&#39; which will copy the files, which are necessary for the work of the neural network, from the folder to another folder that should be selected by you.
42
+
43
+ *Note: The structure inside the folder of the component &#39;networks&#39; must be saved on the server with due regard to the nesting.
44
+ There are binary files in the folder which do not have the extension. These files must be provided by the server with the header `Content-Type: application/octet-stream`.*
45
+ ```javascript
46
+ new CopyWebpackPlugin ([
47
+ {
48
+ from: 'node_modules/@idscan/onboarding/dist/networks/**/*',
49
+ to: `${networkUrl}/[folder]/[name].[ext]`,
50
+ toType: 'template'
51
+ }
52
+ ])
53
+ ```
54
+
55
+ 1.3. Import the library and css to your project.
56
+
57
+ ```javascript
58
+ import DVSOIDVC from '@idscan/onboarding';
59
+ import '@idscan/onboarding/dist/css/onboarding.css';
60
+ ```
61
+ ## Initialization
62
+
63
+ Create an instance of the object &#39;DVS Online IDVC library wrapper&#39;. The object takes one object of the component configuration as a parameter.
64
+
65
+ All configurations of @idscan/IDVC will be fetched from DVS Online by domainId.
66
+
67
+ Available fields:
68
+
69
+ **el** (string) - Id of an element on the page where the component will be integrated. Required.
70
+
71
+ **applicantId** (string) - Id of applicant. Required.
72
+
73
+ **domainId** (string) - Domain id where from will get configs and styles. Required.
74
+
75
+ **domainApi** (string) - URL address of onboarding API. Required.
76
+
77
+ **publicKey** (string) - DVS Web API Public Key. Required.
78
+
79
+ **isAuth** (boolean) - Flag indicating that only face authentication is required.
80
+
81
+ **faceOnly** (boolean) - Flag indicating that only face registration is required.
82
+
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
+
85
+ **networkUrl** (string) - 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
+
91
+ **hideDocumentTitle** (boolean) - This option switches on/off the displaying document titles.
92
+
93
+ **processingImageFormat** (string) - This option switches image format, that used for image processing.
94
+
95
+ **demoMode** (boolean) - In true mode, the wrapper stops documents validation.
96
+
97
+ **qrCodeLinkOrigin** (string) - Allows you to change the QR-link. Should look like window.location.origin (protocol://domain:port)
98
+
99
+ **getApplicantIdFromURL** (boolean) - Allows you to take the applicant id from the browser URL
100
+
101
+ **wrapperSettings** (object) - Object with wrapper (not IDVC) settings. Allows you to override the config that came from the API. Available fields:
102
+
103
+ - **showQrCode** (boolean) - Enable validation on another device using a QR link.
104
+
105
+ - **showConsentForm** (boolean) - This option switches on/off the displaying consent form.
106
+
107
+ - **consentText** (string) - This option allows you to set the body text of the consent form.
108
+
109
+ - **checkboxText** (string) - This option allows you to set the confirmation text of the consent form.
110
+
111
+ **callbacks** (object) - Object with callback hooks. Available hooks:
112
+
113
+ - **onChange** - Callback-function which will be called after change one step. The returnable value is the object with the type and the image.
114
+
115
+ - **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.
116
+
117
+ - **onReset** - Callback-function which will be called after reset all the steps. The returnable value is the object with the steps.
118
+
119
+ - **onRetakeHook** - Callback-function which will be called before reset the current step. The returnable value is the object with the current step.
120
+
121
+ - **onValidate** - Callback-function which will be called after validation response received. The returnable value is the object with validation information.
122
+
123
+ - **onError** - Callback-function which will be called on error. The response value is the object with the error code and the message.
124
+
125
+ - **onReloaded** - Callback-function which will be called after the component finishes reloading. This function doesn't return a value.
126
+
127
+ - **onMounted** - Callback-function which will be called on the component mounted. This function doesn't return a value.
128
+
129
+ - **submit** - Callback-function which will be called after completing all the steps. The returnable value is the object with the following content:
130
+ ```javascript
131
+ documentTypes: [
132
+ {
133
+ type: "ID",
134
+ steps:[
135
+ { type: 'front', name: 'Document Front', mode: { uploader: true, video: true } },
136
+ { type: 'pdf', name: 'Document PDF417 Barcode' , mode: { uploader: true, video: true } },
137
+ { type: 'face', name: 'Face', mode: { uploader: false, video: true } }
138
+ ]},
139
+ {
140
+ type: "Passport",
141
+ steps:[
142
+ { type: 'mrz', name: 'Passport Front' , mode: { uploader: true, video: true } },
143
+ { type: 'face', name: 'Face', mode: { uploader: false, video: true } }
144
+ ]},
145
+ ]
146
+ ```
147
+
148
+ steps – steps with the type and the image in the format &#39;base64&#39;.
149
+
150
+ Also, if you use automatic capture, in the "back" step **trackstring** will be returned (raw PDF417 data from Barcode encoded in base64)
151
+
152
+
153
+ *Note: Request an license key for the library by emailing
154
+ [sales@idscan.net](mailto:sales@idscan.net) or [support@idscan.net](mailto:support@idscan.net)*
155
+
156
+ ## Methods
157
+
158
+ **setApplicant** (string) - the method that reinitialize wrapper for new applicant. Parameter is an applicant id of string type.
159
+ ```javascript
160
+ import DVSOIDVC from './Wrapper';
161
+
162
+ const lib = new DVSOIDVC({
163
+ applicantId: '...',
164
+ domainId: '...',
165
+ publicKey: '...',
166
+ chunkPublicPath: '/customPath/',
167
+ domainApi: '...',
168
+ });
169
+
170
+ const btn = document.getElementById('btn');
171
+ btn.addEventListener('click', () => {
172
+ const applicantId = 'new applicant id';
173
+ lib.setApplicant(applicantId);
174
+ });
175
+ ```
176
+
177
+ **updateConfig** (string) - the method that reinitialize wrapper with new config. Parameter is an JSON encoded IDVC config. Works only in demo mode.
178
+
179
+ ## Version history
180
+
181
+ - **2.6.2**
182
+ - Updated IDVC component
183
+
184
+ - **2.6.1**
185
+ - Updated IDVC component
186
+
187
+ - **2.6.0**
188
+ - feat: Added new options: getApplicantIdFromURL, qrCodeLinkOrigin
189
+ - Updated IDVC component
190
+
191
+ - **2.5.1**
192
+ - feat: added 'isOcrEnabled' field in Validation request
193
+
194
+ - **2.5.0**
195
+ - Updated IDVC component
196
+ - feat: update UI
197
+
198
+ - **2.4.1**
199
+ - Minor fixes
200
+
201
+ - **2.4.0**
202
+ - feat: added a new public method to show the loader.
203
+ Method: showLoader(val: boolean, bottomText?: string, topText?: string)
204
+ - Updated IDVC component
205
+
206
+ - **2.3.16**
207
+ - Updated IDVC component
208
+
209
+ - **2.3.15**
210
+ - Updated IDVC component
211
+ - feat: added 'isBackOrSecondImageProcessingEnabled' field in Validation request
212
+
213
+ - **2.3.14**
214
+ - fix: validation modal showing
215
+
216
+ - **2.3.13**
217
+ - Updated IDVC component
218
+ - feat: performance improvement
219
+
220
+ - **2.3.12**
221
+ - Updated IDVC component
222
+
223
+ - **2.3.11**
224
+ - Updated IDVC component
225
+
226
+ - **2.3.10**
227
+ - Updated IDVC component
228
+ - feat: changed UI for QR Code modal
229
+
230
+ - **2.3.9**
231
+ - Updated IDVC component
232
+ - fix: track string capturing from MRZ
233
+
234
+ - **2.3.8**
235
+ - fix: validation process
236
+
237
+ - **2.3.7**
238
+ - Little fixes
239
+
240
+ - **2.3.6**
241
+ - Updated IDVC component
242
+ - Now, the wrapper replaces the 'front' step for the 'Passport' document with the 'mrz' step.
243
+
244
+ - **2.3.5**
245
+ - Updated IDVC component
246
+
247
+ - **2.3.4**
248
+ - Updated IDVC component
249
+
250
+ - **2.3.3**
251
+ - fix: QR code process on SPA
252
+
253
+ - **2.3.2**
254
+ - Improving modal window styles
255
+
256
+ - **2.3.1**
257
+ - Updated IDVC component
258
+
259
+ - **2.3.0**
260
+ - 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.
261
+
262
+ - **2.2.27**
263
+ - Updated IDVC component
264
+
265
+ - **2.2.26**
266
+ - Updated IDVC component
267
+
268
+ - **2.2.25**
269
+ - Updated IDVC component
270
+ - fix: wrapper config option 'el'
271
+
272
+ - **2.2.24**
273
+ - Updated IDVC component
274
+
275
+ - **2.2.23**
276
+ - Updated IDVC component
277
+ - feat: simplify the Passport verification, now front step it's union of front and mrz
278
+
279
+ - **2.2.22**
280
+ - Updated IDVC component
281
+
282
+ - **2.2.21**
283
+ - Fixes: The image of the back of the document was not sent when International ID was selected
284
+
285
+ - **2.2.20**
286
+ - Updated IDVC component
287
+ - Fixes: Response when isAuth = true
288
+
289
+ - **2.2.19**
290
+ - Updated IDVC component
291
+
292
+ - **2.2.18**
293
+ - Updated IDVC component
294
+
295
+ - **2.2.17**
296
+ - Added: documents config validation
297
+ - Fixes: QR code processing
298
+
299
+ - **2.2.16**
300
+ - Added: mobile checking for qr code
301
+
302
+ - **2.2.15**
303
+ - Added: new config options 'hideDocumentTitle', 'processingImageFormat'
304
+ - Updated IDVC component
305
+
306
+ - **2.2.14**
307
+ - Change webpack build options. Remove eval
308
+
309
+ - **2.2.13**
310
+ - Added: new config options 'networkUrl', 'useCDN', 'preferApiConfig'
311
+
312
+ - **2.2.12**
313
+ - Updated IDVC component
314
+ - Updated readme
315
+
316
+ - **2.2.11**
317
+ - Feat: some minor fixes
318
+
319
+ - **2.2.10**
320
+ - Feat: face only mode
321
+
322
+ - **2.2.9**
323
+ - Fixed qr link
324
+
325
+ - **2.2.8**
326
+ - Updated IDVC component
327
+
328
+ - **2.2.7**
329
+ - Update TS types
330
+
331
+ - **2.2.6**
332
+ - Fixed config
333
+
334
+ - **2.2.5**
335
+ - Fixed build issue
336
+ - Added: webp support
337
+
338
+ - **2.2.4**
339
+ - Updated IDVC component
340
+
341
+ - **2.2.3**
342
+ - Added: face auth success modal
343
+
344
+ - **2.2.2**
345
+ - Added: config change
346
+ - Changed API calls
347
+
348
+ - **2.2.1**
349
+ - Fix: face validation
350
+
351
+ - **2.2.0**
352
+ - Feat: add flag indicating that only face authentication is required
353
+ - Feat: some minor fixes
354
+
355
+ - **2.1.29**
356
+ - Feat: some minor fixes
357
+
358
+ - **2.1.28**
359
+ - Updated IDVC component
360
+
361
+ - **2.1.27**
362
+ - Updated IDVC component
363
+
364
+ - **2.1.26**
365
+ - Fix: Consent Form styles
366
+
367
+ - **2.1.25**
368
+ - Feat: Add attempt left status text
369
+ - Fix: Validation Modal
370
+
371
+ - **2.1.24**
372
+ - Fix: Consent Form styles
373
+
374
+ - **2.1.23**
375
+ - Feat: rework Consent Form
376
+ - Feat: change Domains Api to Integrations Api
377
+
378
+ - **2.1.22**
379
+ - Fix: embedded app status from api
380
+ - Feat: update IDVC callbacks readme
381
+
382
+ - **2.1.21**
383
+ - Feat: change domain to domainApi
384
+ - Feat: domainApi is required now
385
+
386
+ - **2.1.20**
387
+ - Fix: change showQRCode flag name to showQrCode
388
+
389
+ - **2.1.19**
390
+ - Fix: return old check validation endpoint
391
+ - Feat: add check for showQRCode flag from backend
392
+
393
+ - **2.1.18**
394
+ - Add the possibility of continuing the documents' check on a mobile device
395
+
396
+ - **2.1.17**
397
+ - Change verifyFace option behavior
398
+
399
+ - **2.1.16**
400
+ - Updated IDVC component
401
+
402
+ - **2.1.15**
403
+ - Updated IDVC component
404
+
405
+ - **2.1.14**
406
+ - Updated IDVC component
407
+
408
+ - **2.1.13**
409
+ - Updated IDVC component
410
+
411
+ - **2.1.12**
412
+ - Fix: validation model
413
+
414
+ - **2.1.11**
415
+ - Updated IDVC component
416
+
417
+ - **2.1.10**
418
+ - Updated IDVC component
419
+
420
+ - **2.1.9**
421
+ - Fixed API path
422
+
423
+ - **2.1.8**
424
+ - Updated IDVC component
425
+
426
+ - **2.1.7**
427
+ - Added support for Proxy based frameworks
428
+
429
+ - **2.1.6**
430
+ - Added support for ios < 15
431
+
432
+ - **2.1.5**
433
+ - Updated IDVC component
434
+
435
+ - **2.1.4**
436
+ - Improved document types validation
437
+
438
+ - **2.1.3**
439
+ - Updated IDVC component
440
+
441
+ - **2.1.2**
442
+ - Updated IDVC component
443
+ - Changed: modal message behaviour
444
+
445
+ - **2.1.1**
446
+ - Fixed: submit mrz
447
+
448
+ - **2.1.0**
449
+ - Added: new option in config "chunkPublicPath"
450
+
451
+ - **2.0.19**
452
+ - Updated IDVC component
453
+
454
+ - **2.0.18**
455
+ - Updated IDVC component
456
+
457
+ - **2.0.17**
458
+ - Some improvements
459
+
460
+ - **2.0.16**
461
+ - Some improvements
462
+
463
+ - **2.0.15**
464
+ - Some improvements
465
+
466
+ - **2.0.14**
467
+ - Some improvements
468
+
469
+ - **2.0.13**
470
+ - Updated IDVC component
471
+
472
+ - **2.0.12**
473
+ - Updated IDVC component
474
+
475
+ - **2.0.11**
476
+ - Updated IDVC component
477
+
478
+ - **2.0.10**
479
+ - Updated IDVC component
480
+
481
+ - **2.0.9**
482
+ - Updated IDVC component
483
+
484
+ - **2.0.8**
485
+ - Some improvements
486
+
487
+ - **2.0.7**
488
+ - Fixed background
489
+
490
+ - **2.0.6**
491
+ - Added version 1 config support
492
+
493
+ - **2.0.5**
494
+ - Updated IDVC component
495
+ - Fixed submit method
496
+
497
+ - **2.0.4**
498
+ - Updated IDVC component
499
+
500
+ - **2.0.3**
501
+ - Some improvements
502
+
503
+ - **2.0.2**
504
+ - Updated IDVC component
505
+
506
+ - **2.0.1**
507
+ - Added consent form
508
+
509
+ - **2.0.0**
510
+ - Migrate to the IDVC version 2
511
+
512
+ - **1.0.18**
513
+ - Fixed spinner
514
+
515
+ - **1.0.17**
516
+ - Fixed license key
517
+
518
+ - **1.0.16**
519
+ - Added sign for forced closing of the request
520
+
521
+ - **1.0.15**
522
+ - updated IDVC component
523
+
524
+ - **1.0.14**
525
+ - updated IDVC component
526
+
527
+ - **1.0.13**
528
+ - added ids for style tags
529
+
530
+ - **1.0.12**
531
+ - updated IDVC component
532
+
533
+ - **1.0.11**
534
+ - updated using DVS Online API
535
+
536
+ - **1.0.10**
537
+ - added: onMounted callback
538
+
539
+ - **1.0.9**
540
+ - @idscan/idvc dependency updated
541
+
542
+ - **1.0.8**
543
+ - added: reload component with new configs in demo mode
544
+
545
+ - **1.0.7**
546
+ - updated using DVS Online API
547
+
548
+ - **1.0.6**
549
+ - updated using DVS Online API
550
+
551
+ - **1.0.5**
552
+ - updated IDVC component
553
+ - updated using DVS Online API
554
+
555
+ - **1.0.4**
556
+ - use CDN
557
+
558
+ - **1.0.3**
559
+ - Changed readme
560
+
561
+ - **1.0.2**
562
+ - Some improvements
563
+
564
+ - **1.0.1**
565
+ - Changed readme
566
+
567
+ - **1.0.0**