idmission-web-sdk 2.3.53 → 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/contexts/AuthStateContext.d.ts +2 -1
- package/dist/contexts/AuthStateContext.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +41 -12
- 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 +41 -12
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +41 -12
- 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 +3 -3
|
@@ -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
|
}
|
|
@@ -26116,6 +26125,7 @@
|
|
|
26116
26125
|
onLoadingStarted = _a.onLoadingStarted,
|
|
26117
26126
|
onLoadingProgress = _a.onLoadingProgress,
|
|
26118
26127
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
26128
|
+
onAuthError = _a.onAuthError,
|
|
26119
26129
|
onBeforeSubmit = _a.onBeforeSubmit,
|
|
26120
26130
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
26121
26131
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -26224,7 +26234,8 @@
|
|
|
26224
26234
|
}, [onApproved, onComplete, onDenied]);
|
|
26225
26235
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
26226
26236
|
sessionId: sessionId,
|
|
26227
|
-
authUrl: authUrl
|
|
26237
|
+
authUrl: authUrl,
|
|
26238
|
+
onAuthError: onAuthError
|
|
26228
26239
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
26229
26240
|
theme: theme
|
|
26230
26241
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -26321,6 +26332,7 @@
|
|
|
26321
26332
|
onLoadingStarted = _a.onLoadingStarted,
|
|
26322
26333
|
onLoadingProgress = _a.onLoadingProgress,
|
|
26323
26334
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
26335
|
+
onAuthError = _a.onAuthError,
|
|
26324
26336
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
26325
26337
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
26326
26338
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -26376,7 +26388,8 @@
|
|
|
26376
26388
|
}, [assets, classNames, colors, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onLoadingCompleted, onLoadingProgress, onLoadingStarted, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
|
|
26377
26389
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
26378
26390
|
sessionId: sessionId,
|
|
26379
|
-
authUrl: authUrl
|
|
26391
|
+
authUrl: authUrl,
|
|
26392
|
+
onAuthError: onAuthError
|
|
26380
26393
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
26381
26394
|
theme: theme
|
|
26382
26395
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -26499,6 +26512,7 @@
|
|
|
26499
26512
|
onLoadingStarted = _a.onLoadingStarted,
|
|
26500
26513
|
onLoadingProgress = _a.onLoadingProgress,
|
|
26501
26514
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
26515
|
+
onAuthError = _a.onAuthError,
|
|
26502
26516
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
26503
26517
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
26504
26518
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -26634,7 +26648,8 @@
|
|
|
26634
26648
|
}, [precapturedDocuments === null || precapturedDocuments === void 0 ? void 0 : precapturedDocuments.selfie]);
|
|
26635
26649
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
26636
26650
|
sessionId: sessionId,
|
|
26637
|
-
authUrl: authUrl
|
|
26651
|
+
authUrl: authUrl,
|
|
26652
|
+
onAuthError: onAuthError
|
|
26638
26653
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
26639
26654
|
theme: theme
|
|
26640
26655
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -26775,6 +26790,7 @@
|
|
|
26775
26790
|
onLoadingStarted = _a.onLoadingStarted,
|
|
26776
26791
|
onLoadingProgress = _a.onLoadingProgress,
|
|
26777
26792
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
26793
|
+
onAuthError = _a.onAuthError,
|
|
26778
26794
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
26779
26795
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
26780
26796
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -26927,7 +26943,8 @@
|
|
|
26927
26943
|
}, [captureVideoId]);
|
|
26928
26944
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
26929
26945
|
sessionId: sessionId,
|
|
26930
|
-
authUrl: authUrl
|
|
26946
|
+
authUrl: authUrl,
|
|
26947
|
+
onAuthError: onAuthError
|
|
26931
26948
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
26932
26949
|
theme: theme
|
|
26933
26950
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -27486,6 +27503,7 @@
|
|
|
27486
27503
|
onLoadingStarted = _a.onLoadingStarted,
|
|
27487
27504
|
onLoadingProgress = _a.onLoadingProgress,
|
|
27488
27505
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
27506
|
+
onAuthError = _a.onAuthError,
|
|
27489
27507
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
27490
27508
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
27491
27509
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -27512,7 +27530,8 @@
|
|
|
27512
27530
|
useDebugLogging(debugMode);
|
|
27513
27531
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
27514
27532
|
sessionId: sessionId,
|
|
27515
|
-
authUrl: authUrl
|
|
27533
|
+
authUrl: authUrl,
|
|
27534
|
+
onAuthError: onAuthError
|
|
27516
27535
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
27517
27536
|
theme: theme
|
|
27518
27537
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -28061,6 +28080,7 @@
|
|
|
28061
28080
|
onLoadingStarted = _a.onLoadingStarted,
|
|
28062
28081
|
onLoadingProgress = _a.onLoadingProgress,
|
|
28063
28082
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
28083
|
+
onAuthError = _a.onAuthError,
|
|
28064
28084
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
28065
28085
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
28066
28086
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -28093,7 +28113,8 @@
|
|
|
28093
28113
|
useDebugLogging(debugMode);
|
|
28094
28114
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
28095
28115
|
sessionId: sessionId,
|
|
28096
|
-
authUrl: authUrl
|
|
28116
|
+
authUrl: authUrl,
|
|
28117
|
+
onAuthError: onAuthError
|
|
28097
28118
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
28098
28119
|
theme: theme
|
|
28099
28120
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -28171,6 +28192,7 @@
|
|
|
28171
28192
|
onLoadingStarted = _a.onLoadingStarted,
|
|
28172
28193
|
onLoadingProgress = _a.onLoadingProgress,
|
|
28173
28194
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
28195
|
+
onAuthError = _a.onAuthError,
|
|
28174
28196
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
28175
28197
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
28176
28198
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -28222,7 +28244,8 @@
|
|
|
28222
28244
|
useDebugLogging(debugMode);
|
|
28223
28245
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
28224
28246
|
sessionId: sessionId,
|
|
28225
|
-
authUrl: authUrl
|
|
28247
|
+
authUrl: authUrl,
|
|
28248
|
+
onAuthError: onAuthError
|
|
28226
28249
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
28227
28250
|
theme: theme
|
|
28228
28251
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -28322,6 +28345,7 @@
|
|
|
28322
28345
|
onLoadingStarted = _a.onLoadingStarted,
|
|
28323
28346
|
onLoadingProgress = _a.onLoadingProgress,
|
|
28324
28347
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
28348
|
+
onAuthError = _a.onAuthError,
|
|
28325
28349
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
28326
28350
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
28327
28351
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -28468,7 +28492,8 @@
|
|
|
28468
28492
|
}, [classNames.videoSignatureCapture, colors.videoSignatureCapture, debugMode, onExitCapture, onUserCancel, skipSuccessScreen, verbiage.videoSignatureCapture]);
|
|
28469
28493
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
28470
28494
|
sessionId: sessionId,
|
|
28471
|
-
authUrl: authUrl
|
|
28495
|
+
authUrl: authUrl,
|
|
28496
|
+
onAuthError: onAuthError
|
|
28472
28497
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
28473
28498
|
theme: theme
|
|
28474
28499
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -28567,6 +28592,7 @@
|
|
|
28567
28592
|
onLoadingStarted = _a.onLoadingStarted,
|
|
28568
28593
|
onLoadingProgress = _a.onLoadingProgress,
|
|
28569
28594
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
28595
|
+
onAuthError = _a.onAuthError,
|
|
28570
28596
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
28571
28597
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
28572
28598
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -28662,7 +28688,8 @@
|
|
|
28662
28688
|
}, [onEnrolled, onComplete, onDenied]);
|
|
28663
28689
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
28664
28690
|
sessionId: sessionId,
|
|
28665
|
-
authUrl: authUrl
|
|
28691
|
+
authUrl: authUrl,
|
|
28692
|
+
onAuthError: onAuthError
|
|
28666
28693
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
28667
28694
|
theme: theme
|
|
28668
28695
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|
|
@@ -28728,6 +28755,7 @@
|
|
|
28728
28755
|
documentServiceUrl = _a.documentServiceUrl,
|
|
28729
28756
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
28730
28757
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
28758
|
+
onAuthError = _a.onAuthError,
|
|
28731
28759
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
28732
28760
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
28733
28761
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -28759,7 +28787,8 @@
|
|
|
28759
28787
|
useDebugLogging(debugMode);
|
|
28760
28788
|
return /*#__PURE__*/React.createElement(AuthProvider, {
|
|
28761
28789
|
sessionId: sessionId,
|
|
28762
|
-
authUrl: authUrl
|
|
28790
|
+
authUrl: authUrl,
|
|
28791
|
+
onAuthError: onAuthError
|
|
28763
28792
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
28764
28793
|
theme: theme
|
|
28765
28794
|
}, /*#__PURE__*/React.createElement(SubmissionProvider, {
|