idmission-web-sdk 2.1.9 → 2.1.10
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/sdk2.cjs.development.js +4 -6
- 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 +4 -6
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +4 -6
- 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 +2 -2
|
@@ -49,7 +49,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
|
|
|
49
49
|
var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
|
|
50
50
|
var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
|
|
51
51
|
|
|
52
|
-
var webSdkVersion = '2.1.
|
|
52
|
+
var webSdkVersion = '2.1.10';
|
|
53
53
|
|
|
54
54
|
function getPlatform() {
|
|
55
55
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -633,7 +633,6 @@ var reducer$5 = function reducer(state, action) {
|
|
|
633
633
|
sessionCheckState: action.payload
|
|
634
634
|
});
|
|
635
635
|
case 'setError':
|
|
636
|
-
console.log('setting error', action.payload);
|
|
637
636
|
return tslib.__assign(tslib.__assign({}, state), {
|
|
638
637
|
sessionCheckState: 'ERROR',
|
|
639
638
|
authError: action.payload
|
|
@@ -684,7 +683,6 @@ function useAuthReducer(authUrl, sessionId) {
|
|
|
684
683
|
payload: sessionId
|
|
685
684
|
});
|
|
686
685
|
})["catch"](function (e) {
|
|
687
|
-
console.error('failed to resolve session id', e);
|
|
688
686
|
dispatch({
|
|
689
687
|
type: 'setError',
|
|
690
688
|
payload: new SessionValidationFailedError(e, authUrl)
|
|
@@ -1347,7 +1345,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1347
1345
|
}
|
|
1348
1346
|
});
|
|
1349
1347
|
});
|
|
1350
|
-
}, [
|
|
1348
|
+
}, [additionalDocuments, bypassAgeValidation, bypassNameMatching, cardData, clientRequestID, companyId, deduplicationEnabled, deduplicationSynchronous, documentServiceUrl, enrollmentId, expectedAudioText, geolocationResult, idBackCaptureAttempts, idBackImage, idBackImageRequired, idCaptureVideoAudioStartsAt, idCaptureVideoAudioUrl, idCaptureVideoIdBackImage, idCaptureVideoIdFrontImage, idCaptureVideoUrl, idFrontCaptureAttempts, idFrontImage, idImageResolutionCheck, manualReviewRequired, needImmediateResponse, onBeforeSubmit, passportImage, personalData, selfieCaptureAttempts, selfieImage, signatureData, signatureVideoUrl, uploadDocument, verifyIdWithExternalDatabases, webhooksClientTraceId, webhooksEnabled, webhooksFireOnReview, webhooksSendInputImages, webhooksSendProcessedImages, webhooksStripSpecialCharacters]);
|
|
1351
1349
|
var defaultOnSubmit = React.useCallback(function () {
|
|
1352
1350
|
return tslib.__awaiter(void 0, void 0, void 0, function () {
|
|
1353
1351
|
var submissionResponse_1, payload, host, endpoint, response, statusMessage, submissionResponse_2, e_1, err;
|
|
@@ -1546,7 +1544,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1546
1544
|
}
|
|
1547
1545
|
});
|
|
1548
1546
|
});
|
|
1549
|
-
}, [webhooksStripSpecialCharacters, idCardForFaceMatch, selfieCaptureAttempts, idFrontCaptureAttempts, idBackCaptureAttempts, geolocationResult, onBeforeLivenessCheck, submissionUrl, environment, sessionId, onRequestFailure]);
|
|
1547
|
+
}, [webhooksStripSpecialCharacters, clientRequestID, idCardForFaceMatch, selfieCaptureAttempts, idFrontCaptureAttempts, idBackCaptureAttempts, geolocationResult, onBeforeLivenessCheck, submissionUrl, environment, sessionId, sendBase64DocumentsInSwaggerProxy, onRequestFailure]);
|
|
1550
1548
|
var retryLocationAccess = React.useCallback(function () {
|
|
1551
1549
|
setGeolocationAttempts(function (n) {
|
|
1552
1550
|
return n + 1;
|
|
@@ -7456,7 +7454,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
|
|
|
7456
7454
|
});
|
|
7457
7455
|
onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
|
|
7458
7456
|
requestCameraAccess();
|
|
7459
|
-
}, [dispatch, onExitCapture, releaseCameraAccess]);
|
|
7457
|
+
}, [dispatch, onExitCapture, releaseCameraAccess, requestCameraAccess]);
|
|
7460
7458
|
React.useEffect(function () {
|
|
7461
7459
|
if (submissionStatus !== SubmissionStatus.READY) {
|
|
7462
7460
|
releaseCameraAccessOnExit && releaseCameraAccess();
|