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
package/dist/sdk2.esm.js
CHANGED
|
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
204
204
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
var webSdkVersion = '2.3.
|
|
207
|
+
var webSdkVersion = '2.3.54';
|
|
208
208
|
|
|
209
209
|
function getPlatform() {
|
|
210
210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -1032,10 +1032,19 @@ function AuthProvider(_a) {
|
|
|
1032
1032
|
var _c = _a.authUrl,
|
|
1033
1033
|
authUrl = _c === void 0 ? defaultAuthUrl : _c,
|
|
1034
1034
|
sessionId = _a.sessionId,
|
|
1035
|
-
children = _a.children
|
|
1035
|
+
children = _a.children,
|
|
1036
|
+
onAuthError = _a.onAuthError;
|
|
1036
1037
|
var _d = useAuthReducer(authUrl, sessionId),
|
|
1037
1038
|
state = _d[0],
|
|
1038
1039
|
dispatch = _d[1];
|
|
1040
|
+
var onAuthErrorRef = useRef(onAuthError);
|
|
1041
|
+
useEffect(function () {
|
|
1042
|
+
onAuthErrorRef.current = onAuthError;
|
|
1043
|
+
}, [onAuthError]);
|
|
1044
|
+
useEffect(function () {
|
|
1045
|
+
var _a;
|
|
1046
|
+
if (state.authError) (_a = onAuthErrorRef.current) === null || _a === void 0 ? void 0 : _a.call(onAuthErrorRef, state.authError);
|
|
1047
|
+
}, [state.authError, onAuthErrorRef]);
|
|
1039
1048
|
if (state.sessionCheckState === 'MISSING') {
|
|
1040
1049
|
return /*#__PURE__*/React__default.createElement(SessionIdMissingOverlay, null);
|
|
1041
1050
|
}
|
|
@@ -16210,6 +16219,7 @@ var IdValidation = function IdValidation(_a) {
|
|
|
16210
16219
|
onLoadingStarted = _a.onLoadingStarted,
|
|
16211
16220
|
onLoadingProgress = _a.onLoadingProgress,
|
|
16212
16221
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
16222
|
+
onAuthError = _a.onAuthError,
|
|
16213
16223
|
onBeforeSubmit = _a.onBeforeSubmit,
|
|
16214
16224
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16215
16225
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -16318,7 +16328,8 @@ var IdValidation = function IdValidation(_a) {
|
|
|
16318
16328
|
}, [onApproved, onComplete, onDenied]);
|
|
16319
16329
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
16320
16330
|
sessionId: sessionId,
|
|
16321
|
-
authUrl: authUrl
|
|
16331
|
+
authUrl: authUrl,
|
|
16332
|
+
onAuthError: onAuthError
|
|
16322
16333
|
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
16323
16334
|
theme: theme
|
|
16324
16335
|
}, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
|
|
@@ -16415,6 +16426,7 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
16415
16426
|
onLoadingStarted = _a.onLoadingStarted,
|
|
16416
16427
|
onLoadingProgress = _a.onLoadingProgress,
|
|
16417
16428
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
16429
|
+
onAuthError = _a.onAuthError,
|
|
16418
16430
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16419
16431
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
16420
16432
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -16470,7 +16482,8 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
16470
16482
|
}, [assets, classNames, colors, debugMode, initialCaptureDelayMs, loadingOverlayMode, modelLoadTimeoutMs, onApproved, onComplete, onDenied, onExitAfterFailure, onExitCapture, onLoadingCompleted, onLoadingProgress, onLoadingStarted, onModelError, onUserCancel, skipSuccessScreen, timeoutDurationMs, verbiage]);
|
|
16471
16483
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
16472
16484
|
sessionId: sessionId,
|
|
16473
|
-
authUrl: authUrl
|
|
16485
|
+
authUrl: authUrl,
|
|
16486
|
+
onAuthError: onAuthError
|
|
16474
16487
|
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
16475
16488
|
theme: theme
|
|
16476
16489
|
}, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
|
|
@@ -16593,6 +16606,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
16593
16606
|
onLoadingStarted = _a.onLoadingStarted,
|
|
16594
16607
|
onLoadingProgress = _a.onLoadingProgress,
|
|
16595
16608
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
16609
|
+
onAuthError = _a.onAuthError,
|
|
16596
16610
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16597
16611
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
16598
16612
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -16728,7 +16742,8 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
16728
16742
|
}, [precapturedDocuments === null || precapturedDocuments === void 0 ? void 0 : precapturedDocuments.selfie]);
|
|
16729
16743
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
16730
16744
|
sessionId: sessionId,
|
|
16731
|
-
authUrl: authUrl
|
|
16745
|
+
authUrl: authUrl,
|
|
16746
|
+
onAuthError: onAuthError
|
|
16732
16747
|
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
16733
16748
|
theme: theme
|
|
16734
16749
|
}, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
|
|
@@ -16869,6 +16884,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
16869
16884
|
onLoadingStarted = _a.onLoadingStarted,
|
|
16870
16885
|
onLoadingProgress = _a.onLoadingProgress,
|
|
16871
16886
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
16887
|
+
onAuthError = _a.onAuthError,
|
|
16872
16888
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16873
16889
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
16874
16890
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -17021,7 +17037,8 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
17021
17037
|
}, [captureVideoId]);
|
|
17022
17038
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
17023
17039
|
sessionId: sessionId,
|
|
17024
|
-
authUrl: authUrl
|
|
17040
|
+
authUrl: authUrl,
|
|
17041
|
+
onAuthError: onAuthError
|
|
17025
17042
|
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
17026
17043
|
theme: theme
|
|
17027
17044
|
}, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
|
|
@@ -17580,6 +17597,7 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
17580
17597
|
onLoadingStarted = _a.onLoadingStarted,
|
|
17581
17598
|
onLoadingProgress = _a.onLoadingProgress,
|
|
17582
17599
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
17600
|
+
onAuthError = _a.onAuthError,
|
|
17583
17601
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
17584
17602
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
17585
17603
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -17606,7 +17624,8 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
17606
17624
|
useDebugLogging(debugMode);
|
|
17607
17625
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
17608
17626
|
sessionId: sessionId,
|
|
17609
|
-
authUrl: authUrl
|
|
17627
|
+
authUrl: authUrl,
|
|
17628
|
+
onAuthError: onAuthError
|
|
17610
17629
|
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
17611
17630
|
theme: theme
|
|
17612
17631
|
}, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
|
|
@@ -18155,6 +18174,7 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
18155
18174
|
onLoadingStarted = _a.onLoadingStarted,
|
|
18156
18175
|
onLoadingProgress = _a.onLoadingProgress,
|
|
18157
18176
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
18177
|
+
onAuthError = _a.onAuthError,
|
|
18158
18178
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
18159
18179
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
18160
18180
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -18187,7 +18207,8 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
18187
18207
|
useDebugLogging(debugMode);
|
|
18188
18208
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
18189
18209
|
sessionId: sessionId,
|
|
18190
|
-
authUrl: authUrl
|
|
18210
|
+
authUrl: authUrl,
|
|
18211
|
+
onAuthError: onAuthError
|
|
18191
18212
|
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
18192
18213
|
theme: theme
|
|
18193
18214
|
}, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
|
|
@@ -18265,6 +18286,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
18265
18286
|
onLoadingStarted = _a.onLoadingStarted,
|
|
18266
18287
|
onLoadingProgress = _a.onLoadingProgress,
|
|
18267
18288
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
18289
|
+
onAuthError = _a.onAuthError,
|
|
18268
18290
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
18269
18291
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
18270
18292
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -18316,7 +18338,8 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
18316
18338
|
useDebugLogging(debugMode);
|
|
18317
18339
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
18318
18340
|
sessionId: sessionId,
|
|
18319
|
-
authUrl: authUrl
|
|
18341
|
+
authUrl: authUrl,
|
|
18342
|
+
onAuthError: onAuthError
|
|
18320
18343
|
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
18321
18344
|
theme: theme
|
|
18322
18345
|
}, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
|
|
@@ -18416,6 +18439,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
18416
18439
|
onLoadingStarted = _a.onLoadingStarted,
|
|
18417
18440
|
onLoadingProgress = _a.onLoadingProgress,
|
|
18418
18441
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
18442
|
+
onAuthError = _a.onAuthError,
|
|
18419
18443
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
18420
18444
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
18421
18445
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -18562,7 +18586,8 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
18562
18586
|
}, [classNames.videoSignatureCapture, colors.videoSignatureCapture, debugMode, onExitCapture, onUserCancel, skipSuccessScreen, verbiage.videoSignatureCapture]);
|
|
18563
18587
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
18564
18588
|
sessionId: sessionId,
|
|
18565
|
-
authUrl: authUrl
|
|
18589
|
+
authUrl: authUrl,
|
|
18590
|
+
onAuthError: onAuthError
|
|
18566
18591
|
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
18567
18592
|
theme: theme
|
|
18568
18593
|
}, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
|
|
@@ -18661,6 +18686,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
18661
18686
|
onLoadingStarted = _a.onLoadingStarted,
|
|
18662
18687
|
onLoadingProgress = _a.onLoadingProgress,
|
|
18663
18688
|
onLoadingCompleted = _a.onLoadingCompleted,
|
|
18689
|
+
onAuthError = _a.onAuthError,
|
|
18664
18690
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
18665
18691
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
18666
18692
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -18756,7 +18782,8 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
18756
18782
|
}, [onEnrolled, onComplete, onDenied]);
|
|
18757
18783
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
18758
18784
|
sessionId: sessionId,
|
|
18759
|
-
authUrl: authUrl
|
|
18785
|
+
authUrl: authUrl,
|
|
18786
|
+
onAuthError: onAuthError
|
|
18760
18787
|
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
18761
18788
|
theme: theme
|
|
18762
18789
|
}, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
|
|
@@ -18822,6 +18849,7 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
18822
18849
|
documentServiceUrl = _a.documentServiceUrl,
|
|
18823
18850
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
18824
18851
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
18852
|
+
onAuthError = _a.onAuthError,
|
|
18825
18853
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
18826
18854
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
18827
18855
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -18853,7 +18881,8 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
18853
18881
|
useDebugLogging(debugMode);
|
|
18854
18882
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
18855
18883
|
sessionId: sessionId,
|
|
18856
|
-
authUrl: authUrl
|
|
18884
|
+
authUrl: authUrl,
|
|
18885
|
+
onAuthError: onAuthError
|
|
18857
18886
|
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
18858
18887
|
theme: theme
|
|
18859
18888
|
}, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
|