idmission-web-sdk 2.3.52 → 2.3.54
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/components/customer_flows/CustomerBiometricsEnrollment.d.ts +3 -0
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +3 -0
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdentification.d.ts +3 -0
- package/dist/components/customer_flows/CustomerIdentification.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerVerification.d.ts +3 -0
- package/dist/components/customer_flows/CustomerVerification.d.ts.map +1 -1
- package/dist/components/customer_flows/DocumentCapture.d.ts +3 -0
- package/dist/components/customer_flows/DocumentCapture.d.ts.map +1 -1
- package/dist/components/customer_flows/FaceValidation.d.ts +3 -0
- package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +3 -0
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdValidation.d.ts +3 -0
- package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/SignatureKYC.d.ts +3 -0
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts +3 -0
- package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureContext.d.ts.map +1 -1
- package/dist/contexts/AuthStateContext.d.ts +2 -1
- package/dist/contexts/AuthStateContext.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +44 -13
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +44 -13
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +44 -13
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.3.
|
|
214
|
+
var webSdkVersion = '2.3.54';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -1357,10 +1357,19 @@
|
|
|
1357
1357
|
var _c = _a.authUrl,
|
|
1358
1358
|
authUrl = _c === void 0 ? exports.defaultAuthUrl : _c,
|
|
1359
1359
|
sessionId = _a.sessionId,
|
|
1360
|
-
children = _a.children
|
|
1360
|
+
children = _a.children,
|
|
1361
|
+
onAuthError = _a.onAuthError;
|
|
1361
1362
|
var _d = useAuthReducer(authUrl, sessionId),
|
|
1362
1363
|
state = _d[0],
|
|
1363
1364
|
dispatch = _d[1];
|
|
1365
|
+
var onAuthErrorRef = React.useRef(onAuthError);
|
|
1366
|
+
React.useEffect(function () {
|
|
1367
|
+
onAuthErrorRef.current = onAuthError;
|
|
1368
|
+
}, [onAuthError]);
|
|
1369
|
+
React.useEffect(function () {
|
|
1370
|
+
var _a;
|
|
1371
|
+
if (state.authError) (_a = onAuthErrorRef.current) === null || _a === void 0 ? void 0 : _a.call(onAuthErrorRef, state.authError);
|
|
1372
|
+
}, [state.authError, onAuthErrorRef]);
|
|
1364
1373
|
if (state.sessionCheckState === 'MISSING') {
|
|
1365
1374
|
return /*#__PURE__*/React.createElement(SessionIdMissingOverlay, null);
|
|
1366
1375
|
}
|
|
@@ -23544,7 +23553,9 @@
|
|
|
23544
23553
|
signatureRecorder === null || signatureRecorder === void 0 ? void 0 : signatureRecorder.stop();
|
|
23545
23554
|
signatureRecorder = null;
|
|
23546
23555
|
set({
|
|
23547
|
-
isRecording: false
|
|
23556
|
+
isRecording: false,
|
|
23557
|
+
signaturePadEmpty: true,
|
|
23558
|
+
signatureValid: false
|
|
23548
23559
|
});
|
|
23549
23560
|
}
|
|
23550
23561
|
});
|
|
@@ -26114,6 +26125,7 @@
|
|
|
26114
26125
|
onLoadingStarted = _a.onLoadingStarted,
|
|
26115
26126
|
onLoadingProgress = _a.onLoadingProgress,
|
|
26116
26127
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
26128
|
+
onAuthError = _a.onAuthError,
|
|
26117
26129
|
onBeforeSubmit = _a.onBeforeSubmit,
|
|
26118
26130
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
26119
26131
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -26222,7 +26234,8 @@
|
|
|
26222
26234
|
}, [onApproved, onComplete, onDenied]);
|
|
26223
26235
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
26224
26236
|
sessionId: sessionId,
|
|
26225
|
-
authUrl: authUrl
|
|
26237
|
+
authUrl: authUrl,
|
|
26238
|
+
onAuthError: onAuthError
|
|
26226
26239
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
26227
26240
|
theme: theme
|
|
26228
26241
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -26319,6 +26332,7 @@
|
|
|
26319
26332
|
onLoadingStarted = _a.onLoadingStarted,
|
|
26320
26333
|
onLoadingProgress = _a.onLoadingProgress,
|
|
26321
26334
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
26335
|
+
onAuthError = _a.onAuthError,
|
|
26322
26336
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
26323
26337
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
26324
26338
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -26374,7 +26388,8 @@
|
|
|
26374
26388
|
}, [assets, classNames, colors, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onLoadingCompleted, onLoadingProgress, onLoadingStarted, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
|
|
26375
26389
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
26376
26390
|
sessionId: sessionId,
|
|
26377
|
-
authUrl: authUrl
|
|
26391
|
+
authUrl: authUrl,
|
|
26392
|
+
onAuthError: onAuthError
|
|
26378
26393
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
26379
26394
|
theme: theme
|
|
26380
26395
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -26497,6 +26512,7 @@
|
|
|
26497
26512
|
onLoadingStarted = _a.onLoadingStarted,
|
|
26498
26513
|
onLoadingProgress = _a.onLoadingProgress,
|
|
26499
26514
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
26515
|
+
onAuthError = _a.onAuthError,
|
|
26500
26516
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
26501
26517
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
26502
26518
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -26632,7 +26648,8 @@
|
|
|
26632
26648
|
}, [precapturedDocuments === null || precapturedDocuments === void 0 ? void 0 : precapturedDocuments.selfie]);
|
|
26633
26649
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
26634
26650
|
sessionId: sessionId,
|
|
26635
|
-
authUrl: authUrl
|
|
26651
|
+
authUrl: authUrl,
|
|
26652
|
+
onAuthError: onAuthError
|
|
26636
26653
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
26637
26654
|
theme: theme
|
|
26638
26655
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -26773,6 +26790,7 @@
|
|
|
26773
26790
|
onLoadingStarted = _a.onLoadingStarted,
|
|
26774
26791
|
onLoadingProgress = _a.onLoadingProgress,
|
|
26775
26792
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
26793
|
+
onAuthError = _a.onAuthError,
|
|
26776
26794
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
26777
26795
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
26778
26796
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -26925,7 +26943,8 @@
|
|
|
26925
26943
|
}, [captureVideoId]);
|
|
26926
26944
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
26927
26945
|
sessionId: sessionId,
|
|
26928
|
-
authUrl: authUrl
|
|
26946
|
+
authUrl: authUrl,
|
|
26947
|
+
onAuthError: onAuthError
|
|
26929
26948
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
26930
26949
|
theme: theme
|
|
26931
26950
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -27484,6 +27503,7 @@
|
|
|
27484
27503
|
onLoadingStarted = _a.onLoadingStarted,
|
|
27485
27504
|
onLoadingProgress = _a.onLoadingProgress,
|
|
27486
27505
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
27506
|
+
onAuthError = _a.onAuthError,
|
|
27487
27507
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
27488
27508
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
27489
27509
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -27510,7 +27530,8 @@
|
|
|
27510
27530
|
useDebugLogging(debugMode);
|
|
27511
27531
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
27512
27532
|
sessionId: sessionId,
|
|
27513
|
-
authUrl: authUrl
|
|
27533
|
+
authUrl: authUrl,
|
|
27534
|
+
onAuthError: onAuthError
|
|
27514
27535
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
27515
27536
|
theme: theme
|
|
27516
27537
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -28059,6 +28080,7 @@
|
|
|
28059
28080
|
onLoadingStarted = _a.onLoadingStarted,
|
|
28060
28081
|
onLoadingProgress = _a.onLoadingProgress,
|
|
28061
28082
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
28083
|
+
onAuthError = _a.onAuthError,
|
|
28062
28084
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
28063
28085
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
28064
28086
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -28091,7 +28113,8 @@
|
|
|
28091
28113
|
useDebugLogging(debugMode);
|
|
28092
28114
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
28093
28115
|
sessionId: sessionId,
|
|
28094
|
-
authUrl: authUrl
|
|
28116
|
+
authUrl: authUrl,
|
|
28117
|
+
onAuthError: onAuthError
|
|
28095
28118
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
28096
28119
|
theme: theme
|
|
28097
28120
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -28169,6 +28192,7 @@
|
|
|
28169
28192
|
onLoadingStarted = _a.onLoadingStarted,
|
|
28170
28193
|
onLoadingProgress = _a.onLoadingProgress,
|
|
28171
28194
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
28195
|
+
onAuthError = _a.onAuthError,
|
|
28172
28196
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
28173
28197
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
28174
28198
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -28220,7 +28244,8 @@
|
|
|
28220
28244
|
useDebugLogging(debugMode);
|
|
28221
28245
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
28222
28246
|
sessionId: sessionId,
|
|
28223
|
-
authUrl: authUrl
|
|
28247
|
+
authUrl: authUrl,
|
|
28248
|
+
onAuthError: onAuthError
|
|
28224
28249
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
28225
28250
|
theme: theme
|
|
28226
28251
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -28320,6 +28345,7 @@
|
|
|
28320
28345
|
onLoadingStarted = _a.onLoadingStarted,
|
|
28321
28346
|
onLoadingProgress = _a.onLoadingProgress,
|
|
28322
28347
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
28348
|
+
onAuthError = _a.onAuthError,
|
|
28323
28349
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
28324
28350
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
28325
28351
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -28466,7 +28492,8 @@
|
|
|
28466
28492
|
}, [classNames.videoSignatureCapture, colors.videoSignatureCapture, debugMode, onExitCapture, onUserCancel, skipSuccessScreen, verbiage.videoSignatureCapture]);
|
|
28467
28493
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
28468
28494
|
sessionId: sessionId,
|
|
28469
|
-
authUrl: authUrl
|
|
28495
|
+
authUrl: authUrl,
|
|
28496
|
+
onAuthError: onAuthError
|
|
28470
28497
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
28471
28498
|
theme: theme
|
|
28472
28499
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -28565,6 +28592,7 @@
|
|
|
28565
28592
|
onLoadingStarted = _a.onLoadingStarted,
|
|
28566
28593
|
onLoadingProgress = _a.onLoadingProgress,
|
|
28567
28594
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
28595
|
+
onAuthError = _a.onAuthError,
|
|
28568
28596
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
28569
28597
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
28570
28598
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -28660,7 +28688,8 @@
|
|
|
28660
28688
|
}, [onEnrolled, onComplete, onDenied]);
|
|
28661
28689
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
28662
28690
|
sessionId: sessionId,
|
|
28663
|
-
authUrl: authUrl
|
|
28691
|
+
authUrl: authUrl,
|
|
28692
|
+
onAuthError: onAuthError
|
|
28664
28693
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
28665
28694
|
theme: theme
|
|
28666
28695
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -28726,6 +28755,7 @@
|
|
|
28726
28755
|
documentServiceUrl = _a.documentServiceUrl,
|
|
28727
28756
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
28728
28757
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
28758
|
+
onAuthError = _a.onAuthError,
|
|
28729
28759
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
28730
28760
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
28731
28761
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -28757,7 +28787,8 @@
|
|
|
28757
28787
|
useDebugLogging(debugMode);
|
|
28758
28788
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
28759
28789
|
sessionId: sessionId,
|
|
28760
|
-
authUrl: authUrl
|
|
28790
|
+
authUrl: authUrl,
|
|
28791
|
+
onAuthError: onAuthError
|
|
28761
28792
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
28762
28793
|
theme: theme
|
|
28763
28794
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|