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
|
@@ -235,7 +235,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
235
235
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
236
236
|
};
|
|
237
237
|
|
|
238
|
-
var webSdkVersion = '2.3.
|
|
238
|
+
var webSdkVersion = '2.3.54';
|
|
239
239
|
|
|
240
240
|
function getPlatform() {
|
|
241
241
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -1063,10 +1063,19 @@ function AuthProvider(_a) {
|
|
|
1063
1063
|
var _c = _a.authUrl,
|
|
1064
1064
|
authUrl = _c === void 0 ? exports.defaultAuthUrl : _c,
|
|
1065
1065
|
sessionId = _a.sessionId,
|
|
1066
|
-
children = _a.children
|
|
1066
|
+
children = _a.children,
|
|
1067
|
+
onAuthError = _a.onAuthError;
|
|
1067
1068
|
var _d = useAuthReducer(authUrl, sessionId),
|
|
1068
1069
|
state = _d[0],
|
|
1069
1070
|
dispatch = _d[1];
|
|
1071
|
+
var onAuthErrorRef = React.useRef(onAuthError);
|
|
1072
|
+
React.useEffect(function () {
|
|
1073
|
+
onAuthErrorRef.current = onAuthError;
|
|
1074
|
+
}, [onAuthError]);
|
|
1075
|
+
React.useEffect(function () {
|
|
1076
|
+
var _a;
|
|
1077
|
+
if (state.authError) (_a = onAuthErrorRef.current) === null || _a === void 0 ? void 0 : _a.call(onAuthErrorRef, state.authError);
|
|
1078
|
+
}, [state.authError, onAuthErrorRef]);
|
|
1070
1079
|
if (state.sessionCheckState === 'MISSING') {
|
|
1071
1080
|
return /*#__PURE__*/React__namespace.default.createElement(SessionIdMissingOverlay, null);
|
|
1072
1081
|
}
|
|
@@ -13669,7 +13678,9 @@ var useVideoSignatureStore = zustand.create()(middleware.devtools(function (set,
|
|
|
13669
13678
|
signatureRecorder === null || signatureRecorder === void 0 ? void 0 : signatureRecorder.stop();
|
|
13670
13679
|
signatureRecorder = null;
|
|
13671
13680
|
set({
|
|
13672
|
-
isRecording: false
|
|
13681
|
+
isRecording: false,
|
|
13682
|
+
signaturePadEmpty: true,
|
|
13683
|
+
signatureValid: false
|
|
13673
13684
|
});
|
|
13674
13685
|
}
|
|
13675
13686
|
});
|
|
@@ -16239,6 +16250,7 @@ var IdValidation = function IdValidation(_a) {
|
|
|
16239
16250
|
onLoadingStarted = _a.onLoadingStarted,
|
|
16240
16251
|
onLoadingProgress = _a.onLoadingProgress,
|
|
16241
16252
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
16253
|
+
onAuthError = _a.onAuthError,
|
|
16242
16254
|
onBeforeSubmit = _a.onBeforeSubmit,
|
|
16243
16255
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16244
16256
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -16347,7 +16359,8 @@ var IdValidation = function IdValidation(_a) {
|
|
|
16347
16359
|
}, [onApproved, onComplete, onDenied]);
|
|
16348
16360
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
16349
16361
|
sessionId: sessionId,
|
|
16350
|
-
authUrl: authUrl
|
|
16362
|
+
authUrl: authUrl,
|
|
16363
|
+
onAuthError: onAuthError
|
|
16351
16364
|
}, /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
16352
16365
|
theme: theme
|
|
16353
16366
|
}, /*#__PURE__*/React__namespace.default.createElement(SubmissionProvider, {
|
|
@@ -16444,6 +16457,7 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
16444
16457
|
onLoadingStarted = _a.onLoadingStarted,
|
|
16445
16458
|
onLoadingProgress = _a.onLoadingProgress,
|
|
16446
16459
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
16460
|
+
onAuthError = _a.onAuthError,
|
|
16447
16461
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16448
16462
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
16449
16463
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -16499,7 +16513,8 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
16499
16513
|
}, [assets, classNames, colors, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onLoadingCompleted, onLoadingProgress, onLoadingStarted, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
|
|
16500
16514
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
16501
16515
|
sessionId: sessionId,
|
|
16502
|
-
authUrl: authUrl
|
|
16516
|
+
authUrl: authUrl,
|
|
16517
|
+
onAuthError: onAuthError
|
|
16503
16518
|
}, /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
16504
16519
|
theme: theme
|
|
16505
16520
|
}, /*#__PURE__*/React__namespace.default.createElement(SubmissionProvider, {
|
|
@@ -16622,6 +16637,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
16622
16637
|
onLoadingStarted = _a.onLoadingStarted,
|
|
16623
16638
|
onLoadingProgress = _a.onLoadingProgress,
|
|
16624
16639
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
16640
|
+
onAuthError = _a.onAuthError,
|
|
16625
16641
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16626
16642
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
16627
16643
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -16757,7 +16773,8 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
16757
16773
|
}, [precapturedDocuments === null || precapturedDocuments === void 0 ? void 0 : precapturedDocuments.selfie]);
|
|
16758
16774
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
16759
16775
|
sessionId: sessionId,
|
|
16760
|
-
authUrl: authUrl
|
|
16776
|
+
authUrl: authUrl,
|
|
16777
|
+
onAuthError: onAuthError
|
|
16761
16778
|
}, /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
16762
16779
|
theme: theme
|
|
16763
16780
|
}, /*#__PURE__*/React__namespace.default.createElement(SubmissionProvider, {
|
|
@@ -16898,6 +16915,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
16898
16915
|
onLoadingStarted = _a.onLoadingStarted,
|
|
16899
16916
|
onLoadingProgress = _a.onLoadingProgress,
|
|
16900
16917
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
16918
|
+
onAuthError = _a.onAuthError,
|
|
16901
16919
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16902
16920
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
16903
16921
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -17050,7 +17068,8 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
17050
17068
|
}, [captureVideoId]);
|
|
17051
17069
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
17052
17070
|
sessionId: sessionId,
|
|
17053
|
-
authUrl: authUrl
|
|
17071
|
+
authUrl: authUrl,
|
|
17072
|
+
onAuthError: onAuthError
|
|
17054
17073
|
}, /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
17055
17074
|
theme: theme
|
|
17056
17075
|
}, /*#__PURE__*/React__namespace.default.createElement(SubmissionProvider, {
|
|
@@ -17609,6 +17628,7 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
17609
17628
|
onLoadingStarted = _a.onLoadingStarted,
|
|
17610
17629
|
onLoadingProgress = _a.onLoadingProgress,
|
|
17611
17630
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
17631
|
+
onAuthError = _a.onAuthError,
|
|
17612
17632
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
17613
17633
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
17614
17634
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -17635,7 +17655,8 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
17635
17655
|
useDebugLogging(debugMode);
|
|
17636
17656
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
17637
17657
|
sessionId: sessionId,
|
|
17638
|
-
authUrl: authUrl
|
|
17658
|
+
authUrl: authUrl,
|
|
17659
|
+
onAuthError: onAuthError
|
|
17639
17660
|
}, /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
17640
17661
|
theme: theme
|
|
17641
17662
|
}, /*#__PURE__*/React__namespace.default.createElement(SubmissionProvider, {
|
|
@@ -18184,6 +18205,7 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
18184
18205
|
onLoadingStarted = _a.onLoadingStarted,
|
|
18185
18206
|
onLoadingProgress = _a.onLoadingProgress,
|
|
18186
18207
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
18208
|
+
onAuthError = _a.onAuthError,
|
|
18187
18209
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
18188
18210
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
18189
18211
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -18216,7 +18238,8 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
18216
18238
|
useDebugLogging(debugMode);
|
|
18217
18239
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
18218
18240
|
sessionId: sessionId,
|
|
18219
|
-
authUrl: authUrl
|
|
18241
|
+
authUrl: authUrl,
|
|
18242
|
+
onAuthError: onAuthError
|
|
18220
18243
|
}, /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
18221
18244
|
theme: theme
|
|
18222
18245
|
}, /*#__PURE__*/React__namespace.default.createElement(SubmissionProvider, {
|
|
@@ -18294,6 +18317,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
18294
18317
|
onLoadingStarted = _a.onLoadingStarted,
|
|
18295
18318
|
onLoadingProgress = _a.onLoadingProgress,
|
|
18296
18319
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
18320
|
+
onAuthError = _a.onAuthError,
|
|
18297
18321
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
18298
18322
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
18299
18323
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -18345,7 +18369,8 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
18345
18369
|
useDebugLogging(debugMode);
|
|
18346
18370
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
18347
18371
|
sessionId: sessionId,
|
|
18348
|
-
authUrl: authUrl
|
|
18372
|
+
authUrl: authUrl,
|
|
18373
|
+
onAuthError: onAuthError
|
|
18349
18374
|
}, /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
18350
18375
|
theme: theme
|
|
18351
18376
|
}, /*#__PURE__*/React__namespace.default.createElement(SubmissionProvider, {
|
|
@@ -18445,6 +18470,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
18445
18470
|
onLoadingStarted = _a.onLoadingStarted,
|
|
18446
18471
|
onLoadingProgress = _a.onLoadingProgress,
|
|
18447
18472
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
18473
|
+
onAuthError = _a.onAuthError,
|
|
18448
18474
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
18449
18475
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
18450
18476
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -18591,7 +18617,8 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
18591
18617
|
}, [classNames.videoSignatureCapture, colors.videoSignatureCapture, debugMode, onExitCapture, onUserCancel, skipSuccessScreen, verbiage.videoSignatureCapture]);
|
|
18592
18618
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
18593
18619
|
sessionId: sessionId,
|
|
18594
|
-
authUrl: authUrl
|
|
18620
|
+
authUrl: authUrl,
|
|
18621
|
+
onAuthError: onAuthError
|
|
18595
18622
|
}, /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
18596
18623
|
theme: theme
|
|
18597
18624
|
}, /*#__PURE__*/React__namespace.default.createElement(SubmissionProvider, {
|
|
@@ -18690,6 +18717,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
18690
18717
|
onLoadingStarted = _a.onLoadingStarted,
|
|
18691
18718
|
onLoadingProgress = _a.onLoadingProgress,
|
|
18692
18719
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
18720
|
+
onAuthError = _a.onAuthError,
|
|
18693
18721
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
18694
18722
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
18695
18723
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -18785,7 +18813,8 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
18785
18813
|
}, [onEnrolled, onComplete, onDenied]);
|
|
18786
18814
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
18787
18815
|
sessionId: sessionId,
|
|
18788
|
-
authUrl: authUrl
|
|
18816
|
+
authUrl: authUrl,
|
|
18817
|
+
onAuthError: onAuthError
|
|
18789
18818
|
}, /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
18790
18819
|
theme: theme
|
|
18791
18820
|
}, /*#__PURE__*/React__namespace.default.createElement(SubmissionProvider, {
|
|
@@ -18851,6 +18880,7 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
18851
18880
|
documentServiceUrl = _a.documentServiceUrl,
|
|
18852
18881
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
18853
18882
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
18883
|
+
onAuthError = _a.onAuthError,
|
|
18854
18884
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
18855
18885
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
18856
18886
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -18882,7 +18912,8 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
18882
18912
|
useDebugLogging(debugMode);
|
|
18883
18913
|
return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
|
|
18884
18914
|
sessionId: sessionId,
|
|
18885
|
-
authUrl: authUrl
|
|
18915
|
+
authUrl: authUrl,
|
|
18916
|
+
onAuthError: onAuthError
|
|
18886
18917
|
}, /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
18887
18918
|
theme: theme
|
|
18888
18919
|
}, /*#__PURE__*/React__namespace.default.createElement(SubmissionProvider, {
|