idmission-web-sdk 2.2.11 → 2.2.13

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.
Files changed (34) hide show
  1. package/dist/components/customer_flows/IdValidation.d.ts +2 -2
  2. package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
  3. package/dist/components/customer_flows/SignatureKYC.d.ts +7 -2
  4. package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
  5. package/dist/components/customer_flows/VideoIdValidation.d.ts +2 -2
  6. package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
  7. package/dist/components/face_liveness/FaceLivenessWizard.d.ts +2 -2
  8. package/dist/components/face_liveness/FaceLivenessWizard.d.ts.map +1 -1
  9. package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +0 -1
  10. package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts.map +1 -1
  11. package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts +1 -1
  12. package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts.map +1 -1
  13. package/dist/components/id_capture/IdCaptureWizard.d.ts +2 -2
  14. package/dist/components/id_capture/IdCaptureWizard.d.ts.map +1 -1
  15. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +0 -1
  16. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts.map +1 -1
  17. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts +1 -1
  18. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -1
  19. package/dist/components/video_id/IdVideoCaptureWizard.d.ts +2 -2
  20. package/dist/components/video_id/IdVideoCaptureWizard.d.ts.map +1 -1
  21. package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +8 -10
  22. package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
  23. package/dist/sdk2.cjs.development.js +99 -103
  24. package/dist/sdk2.cjs.development.js.map +1 -1
  25. package/dist/sdk2.cjs.production.js +1 -1
  26. package/dist/sdk2.cjs.production.js.map +1 -1
  27. package/dist/sdk2.esm.js +99 -103
  28. package/dist/sdk2.esm.js.map +1 -1
  29. package/dist/sdk2.umd.development.js +99 -103
  30. package/dist/sdk2.umd.development.js.map +1 -1
  31. package/dist/sdk2.umd.production.js +1 -1
  32. package/dist/sdk2.umd.production.js.map +1 -1
  33. package/dist/version.d.ts +1 -1
  34. package/package.json +3 -3
package/dist/sdk2.esm.js CHANGED
@@ -200,7 +200,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
200
200
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
201
201
  };
202
202
 
203
- var webSdkVersion = '2.2.11';
203
+ var webSdkVersion = '2.2.13';
204
204
 
205
205
  function getPlatform() {
206
206
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -5836,7 +5836,6 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
5836
5836
  var _b, _c, _d, _e, _f, _g;
5837
5837
  var onDismissed = _a.onDismissed,
5838
5838
  onUserCancel = _a.onUserCancel,
5839
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
5840
5839
  instructions = _a.instructions,
5841
5840
  _h = _a.rotateImage,
5842
5841
  rotateImage = _h === void 0 ? false : _h,
@@ -5973,7 +5972,6 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
5973
5972
  onClick: function onClick() {
5974
5973
  setDismissed(true);
5975
5974
  onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
5976
- onCustomOverlayDismissed === null || onCustomOverlayDismissed === void 0 ? void 0 : onCustomOverlayDismissed();
5977
5975
  }
5978
5976
  }, verbiage.continueText))))));
5979
5977
  };
@@ -8151,7 +8149,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
8151
8149
  _h = _a.loadingOverlayMode,
8152
8150
  loadingOverlayMode = _h === void 0 ? 'default' : _h,
8153
8151
  customOverlayContent = _a.customOverlayContent,
8154
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
8152
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
8155
8153
  precapturedDocuments = _a.precapturedDocuments,
8156
8154
  _j = _a.captureRequirement,
8157
8155
  captureRequirement = _j === void 0 ? 'idCardOrPassport' : _j,
@@ -8461,7 +8459,6 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
8461
8459
  key: "loading".concat(attempt),
8462
8460
  mode: loadingOverlayMode,
8463
8461
  customOverlayContent: customOverlayContent,
8464
- onCustomOverlayDismissed: onCustomOverlayDismissed,
8465
8462
  instructions: instructions,
8466
8463
  assets: assets.loadingOverlay,
8467
8464
  classNames: classNames.loadingOverlay,
@@ -8470,6 +8467,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
8470
8467
  onUserCancel: onUserCancel,
8471
8468
  onDismissed: function onDismissed() {
8472
8469
  setOverlayDismissed(true);
8470
+ onLoadingOverlayDismissed === null || onLoadingOverlayDismissed === void 0 ? void 0 : onLoadingOverlayDismissed();
8473
8471
  },
8474
8472
  rotateImage: rotateLoadingOverlayImageWhenPortrait && portraitGuidesOnMobile && window.innerWidth < window.innerHeight
8475
8473
  })), state.captureState === 'requestingFlip' && separateIdCardCaptureSequence && ( /*#__PURE__*/React__default.createElement(IdCaptureSuccess, {
@@ -10152,7 +10150,6 @@ var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png"
10152
10150
  var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
10153
10151
  var onDismissed = _a.onDismissed,
10154
10152
  onUserCancel = _a.onUserCancel,
10155
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
10156
10153
  _b = _a.assets,
10157
10154
  assets = _b === void 0 ? {} : _b,
10158
10155
  _c = _a.classNames,
@@ -10265,7 +10262,6 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
10265
10262
  onClick: function onClick() {
10266
10263
  setDismissed(true);
10267
10264
  onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
10268
- onCustomOverlayDismissed === null || onCustomOverlayDismissed === void 0 ? void 0 : onCustomOverlayDismissed();
10269
10265
  }
10270
10266
  }, verbiage.continueText))))));
10271
10267
  };
@@ -10346,7 +10342,7 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10346
10342
  _e = _a.loadingOverlayMode,
10347
10343
  loadingOverlayMode = _e === void 0 ? 'default' : _e,
10348
10344
  customOverlayContent = _a.customOverlayContent,
10349
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
10345
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
10350
10346
  _f = _a.timeoutDurationMs,
10351
10347
  timeoutDurationMs = _f === void 0 ? 15000 : _f,
10352
10348
  _g = _a.maxRetries,
@@ -10489,9 +10485,10 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10489
10485
  setCaptureState('LOADING');
10490
10486
  }
10491
10487
  }, [cameraAccessDenied]);
10492
- var onLoadingOverlayDismissed = useCallback(function () {
10488
+ var onLoadingOverlayDismissedCallback = useCallback(function () {
10493
10489
  setCaptureState('CAPTURING');
10494
- }, []);
10490
+ onLoadingOverlayDismissed === null || onLoadingOverlayDismissed === void 0 ? void 0 : onLoadingOverlayDismissed();
10491
+ }, [onLoadingOverlayDismissed]);
10495
10492
  var onFailureExitClick = useCallback(function () {
10496
10493
  releaseCameraAccessOnExit && releaseCameraAccess();
10497
10494
  setTimeout(function () {
@@ -10551,13 +10548,12 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10551
10548
  key: attempt,
10552
10549
  mode: loadingOverlayMode,
10553
10550
  customOverlayContent: customOverlayContent,
10554
- onCustomOverlayDismissed: onCustomOverlayDismissed,
10555
10551
  assets: assets.loadingOverlay,
10556
10552
  classNames: classNames.loadingOverlay,
10557
10553
  colors: colors.loadingOverlay,
10558
10554
  verbiage: verbiage.loadingOverlay,
10559
10555
  onUserCancel: onUserCancel,
10560
- onDismissed: onLoadingOverlayDismissed
10556
+ onDismissed: onLoadingOverlayDismissedCallback
10561
10557
  }));
10562
10558
  };
10563
10559
 
@@ -11465,41 +11461,44 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11465
11461
  onRetryClicked = _a.onRetryClicked,
11466
11462
  onExitCapture = _a.onExitCapture,
11467
11463
  onUserCancel = _a.onUserCancel,
11468
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
11464
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
11469
11465
  _c = _a.loadingOverlayMode,
11470
11466
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
11471
11467
  customOverlayContent = _a.customOverlayContent,
11472
11468
  _d = _a.skipSuccessScreen,
11473
11469
  skipSuccessScreen = _d === void 0 ? false : _d,
11474
- _e = _a.assets,
11475
- assets = _e === void 0 ? {} : _e,
11476
- _f = _a.classNames,
11477
- classNames = _f === void 0 ? {} : _f,
11478
- _g = _a.colors,
11479
- colors = _g === void 0 ? {} : _g,
11480
- _h = _a.verbiage,
11481
- verbiage = _h === void 0 ? {} : _h,
11482
- _j = _a.debugMode,
11483
- debugMode = _j === void 0 ? false : _j;
11484
- var _k = useContext(SubmissionContext),
11485
- selfieImage = _k.selfieImage,
11486
- setSelfieImage = _k.setSelfieImage,
11487
- setSignatureData = _k.setSignatureData,
11488
- setSignatureVideoUrl = _k.setSignatureVideoUrl,
11489
- logSelfieCaptureAttempt = _k.logSelfieCaptureAttempt;
11490
- var _l = useContext(CameraStateContext),
11491
- cameraAccessDenied = _l.cameraAccessDenied,
11492
- requestCameraAccess = _l.requestCameraAccess,
11493
- releaseCameraAccess = _l.releaseCameraAccess;
11494
- var _m = useState('LOADING'),
11495
- captureState = _m[0],
11496
- setCaptureState = _m[1];
11470
+ _e = _a.allowSignatureAfterLivenessCheckFailure,
11471
+ allowSignatureAfterLivenessCheckFailure = _e === void 0 ? false : _e,
11472
+ faceLivenessProps = _a.faceLivenessProps,
11473
+ _f = _a.assets,
11474
+ assets = _f === void 0 ? {} : _f,
11475
+ _g = _a.classNames,
11476
+ classNames = _g === void 0 ? {} : _g,
11477
+ _h = _a.colors,
11478
+ colors = _h === void 0 ? {} : _h,
11479
+ _j = _a.verbiage,
11480
+ verbiage = _j === void 0 ? {} : _j,
11481
+ _k = _a.debugMode,
11482
+ debugMode = _k === void 0 ? false : _k;
11483
+ var _l = useContext(SubmissionContext),
11484
+ selfieImage = _l.selfieImage,
11485
+ setSelfieImage = _l.setSelfieImage,
11486
+ setSignatureData = _l.setSignatureData,
11487
+ setSignatureVideoUrl = _l.setSignatureVideoUrl,
11488
+ logSelfieCaptureAttempt = _l.logSelfieCaptureAttempt;
11489
+ var _m = useContext(CameraStateContext),
11490
+ cameraAccessDenied = _m.cameraAccessDenied,
11491
+ requestCameraAccess = _m.requestCameraAccess,
11492
+ releaseCameraAccess = _m.releaseCameraAccess;
11493
+ var _o = useState('CHECKING_LIVENESS'),
11494
+ captureState = _o[0],
11495
+ setCaptureState = _o[1];
11497
11496
  var operationStartedAt = useRef();
11498
11497
  var captureStartedAt = useRef();
11499
11498
  var captureEndedAt = useRef();
11500
- var _o = useContext(SelfieGuidanceModelsContext),
11501
- start = _o.start,
11502
- stop = _o.stop;
11499
+ var _p = useContext(SelfieGuidanceModelsContext),
11500
+ start = _p.start,
11501
+ stop = _p.stop;
11503
11502
  useEffect(function () {
11504
11503
  operationStartedAt.current = new Date();
11505
11504
  }, []);
@@ -11524,32 +11523,20 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11524
11523
  });
11525
11524
  operationStartedAt.current = new Date();
11526
11525
  }, [logSelfieCaptureAttempt]);
11527
- var onLoadingOverlayDismissed = useCallback(function () {
11528
- setCaptureState('CHECKING_LIVENESS');
11529
- }, []);
11530
- var onFaceCaptureSuccess = useCallback(function (faceCropImageUrl) {
11531
- return __awaiter(void 0, void 0, void 0, function () {
11532
- var _a;
11533
- return __generator(this, function (_b) {
11534
- switch (_b.label) {
11535
- case 0:
11536
- setCaptureState('CAPTURING_SIGNATURE');
11537
- logCaptureMetadata();
11538
- if (!!selfieImage) return [3 /*break*/, 2];
11539
- _a = setSelfieImage;
11540
- return [4 /*yield*/, dataUrlToBase64(faceCropImageUrl)];
11541
- case 1:
11542
- _a.apply(void 0, [_b.sent()]);
11543
- _b.label = 2;
11544
- case 2:
11545
- return [2 /*return*/];
11546
- }
11547
- });
11548
- });
11549
- }, [logCaptureMetadata, selfieImage, setSelfieImage]);
11550
- var _p = useState(null),
11551
- signatureImageUrl = _p[0],
11552
- setSignatureImageUrl = _p[1];
11526
+ var onFaceLivenessSuccessProp = faceLivenessProps === null || faceLivenessProps === void 0 ? void 0 : faceLivenessProps.onSuccess;
11527
+ var onFaceCaptureSuccess = useCallback(function (response, request) {
11528
+ var _a, _b;
11529
+ onFaceLivenessSuccessProp === null || onFaceLivenessSuccessProp === void 0 ? void 0 : onFaceLivenessSuccessProp(response, request);
11530
+ setCaptureState('CAPTURING_SIGNATURE');
11531
+ logCaptureMetadata();
11532
+ var selfieFromRequest = (_b = (_a = request.customerData) === null || _a === void 0 ? void 0 : _a.biometricData) === null || _b === void 0 ? void 0 : _b.selfie;
11533
+ if (!selfieImage && selfieFromRequest) {
11534
+ setSelfieImage(selfieFromRequest);
11535
+ }
11536
+ }, [logCaptureMetadata, onFaceLivenessSuccessProp, selfieImage, setSelfieImage]);
11537
+ var _q = useState(null),
11538
+ signatureImageUrl = _q[0],
11539
+ setSignatureImageUrl = _q[1];
11553
11540
  var onSignatureCaptureCompleted = useCallback(function (videoData, signatureData, signatureImageData) {
11554
11541
  setSignatureData(signatureData);
11555
11542
  setSignatureVideoUrl(URL.createObjectURL(videoData));
@@ -11560,15 +11547,15 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11560
11547
  var onSignatureCaptureFacesNotDetected = useCallback(function () {
11561
11548
  setCaptureState('CHECKING_LIVENESS');
11562
11549
  }, []);
11563
- var _q = useState(0),
11564
- attempt = _q[0],
11565
- setAttempt = _q[1];
11550
+ var _r = useState(0),
11551
+ attempt = _r[0],
11552
+ setAttempt = _r[1];
11566
11553
  var onExit = useCallback(function () {
11567
11554
  releaseCameraAccess();
11568
11555
  setAttempt(function (n) {
11569
11556
  return n + 1;
11570
11557
  });
11571
- setCaptureState('LOADING');
11558
+ setCaptureState('CHECKING_LIVENESS');
11572
11559
  onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
11573
11560
  requestCameraAccess();
11574
11561
  }, [onExitCapture, releaseCameraAccess, requestCameraAccess]);
@@ -11582,7 +11569,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11582
11569
  setAttempt(function (n) {
11583
11570
  return n + 1;
11584
11571
  });
11585
- setCaptureState('LOADING');
11572
+ setCaptureState('CHECKING_LIVENESS');
11586
11573
  }
11587
11574
  }, [cameraAccessDenied]);
11588
11575
  var guidesComponent = useCallback(function (_a) {
@@ -11593,22 +11580,37 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11593
11580
  requestedAction: status === 'success' ? 'CAPTURE_SIGNATURE' : 'VERIFY_LIVENESS'
11594
11581
  });
11595
11582
  }, [classNames === null || classNames === void 0 ? void 0 : classNames.videoSignatureGuidesClassNames]);
11583
+ var onExitAfterFailure = useCallback(function () {
11584
+ if (allowSignatureAfterLivenessCheckFailure) {
11585
+ setCaptureState('CAPTURING_SIGNATURE');
11586
+ }
11587
+ }, [allowSignatureAfterLivenessCheckFailure]);
11596
11588
  return /*#__PURE__*/React__default.createElement(VideoSignatureContextProvider, null, /*#__PURE__*/React__default.createElement(PageContainer, {
11597
11589
  className: "flex ".concat((_b = classNames === null || classNames === void 0 ? void 0 : classNames.container) !== null && _b !== void 0 ? _b : '')
11598
11590
  }, /*#__PURE__*/React__default.createElement(CameraVideoTag, {
11599
11591
  className: classNames.cameraFeed
11600
- }), captureState !== 'LOADING' && function () {
11592
+ }), function () {
11601
11593
  switch (captureState) {
11602
11594
  case 'CHECKING_LIVENESS':
11603
- return /*#__PURE__*/React__default.createElement(FaceLivenessCapture, {
11595
+ return /*#__PURE__*/React__default.createElement(FaceLivenessWizard, _assign({
11596
+ key: "face-liveness-".concat(attempt)
11597
+ }, faceLivenessProps, {
11604
11598
  onSuccess: onFaceCaptureSuccess,
11605
- onExit: onExit,
11599
+ onExitCapture: onExit,
11600
+ onUserCancel: onUserCancel,
11601
+ onExitAfterFailure: onExitAfterFailure,
11602
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
11603
+ customOverlayContent: customOverlayContent,
11604
+ loadingOverlayMode: loadingOverlayMode,
11606
11605
  guidesComponent: guidesComponent,
11606
+ assets: assets.faceLiveness,
11607
11607
  classNames: classNames.faceLiveness,
11608
11608
  colors: colors.faceLiveness,
11609
11609
  verbiage: verbiage.faceLiveness,
11610
- debugMode: debugMode
11611
- });
11610
+ debugMode: debugMode,
11611
+ releaseCameraAccessOnExit: false,
11612
+ renderCameraFeed: false
11613
+ }));
11612
11614
  case 'CAPTURING_SIGNATURE':
11613
11615
  return /*#__PURE__*/React__default.createElement(VideoSignatureCapture, {
11614
11616
  onVideoCaptured: onSignatureCaptureCompleted,
@@ -11633,18 +11635,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11633
11635
  default:
11634
11636
  return null;
11635
11637
  }
11636
- }()), /*#__PURE__*/React__default.createElement(SelfieCaptureLoadingOverlay, {
11637
- key: attempt,
11638
- mode: loadingOverlayMode,
11639
- assets: assets.loadingOverlay,
11640
- classNames: classNames.loadingOverlay,
11641
- colors: colors.loadingOverlay,
11642
- verbiage: verbiage.loadingOverlay,
11643
- onDismissed: onLoadingOverlayDismissed,
11644
- onUserCancel: onUserCancel,
11645
- customOverlayContent: customOverlayContent,
11646
- onCustomOverlayDismissed: onCustomOverlayDismissed
11647
- }));
11638
+ }()));
11648
11639
  };
11649
11640
 
11650
11641
  var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
@@ -12462,7 +12453,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12462
12453
  _t = _a.idCaptureLoadingOverlayMode,
12463
12454
  idCaptureLoadingOverlayMode = _t === void 0 ? 'default' : _t,
12464
12455
  customOverlayContent = _a.customOverlayContent,
12465
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
12456
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
12466
12457
  _u = _a.idCaptureGuideType,
12467
12458
  idCaptureGuideType = _u === void 0 ? 'fit' : _u,
12468
12459
  _v = _a.idCaptureGuideImages,
@@ -12619,7 +12610,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12619
12610
  key: "id-capture-".concat(attempt),
12620
12611
  loadingOverlayMode: idCaptureLoadingOverlayMode,
12621
12612
  customOverlayContent: customOverlayContent,
12622
- onCustomOverlayDismissed: onCustomOverlayDismissed,
12613
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
12623
12614
  silentFallback: silentFallback,
12624
12615
  guideImages: idCaptureGuideImages
12625
12616
  }, idCaptureProps, {
@@ -12642,7 +12633,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12642
12633
  key: "face-liveness-".concat(attempt),
12643
12634
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
12644
12635
  customOverlayContent: customOverlayContent,
12645
- onCustomOverlayDismissed: onCustomOverlayDismissed,
12636
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
12646
12637
  silentFallback: silentFallback
12647
12638
  }, faceLivenessProps, {
12648
12639
  onComplete: onFaceCaptureSuccess,
@@ -13181,7 +13172,7 @@ var IdValidation = function IdValidation(_a) {
13181
13172
  _c = _a.loadingOverlayMode,
13182
13173
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
13183
13174
  customOverlayContent = _a.customOverlayContent,
13184
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
13175
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
13185
13176
  _d = _a.idCaptureRequirement,
13186
13177
  idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
13187
13178
  _e = _a.separateIdCardCaptureSequence,
@@ -13258,7 +13249,7 @@ var IdValidation = function IdValidation(_a) {
13258
13249
  skipSuccessScreen: skipSuccessScreen,
13259
13250
  loadingOverlayMode: loadingOverlayMode,
13260
13251
  customOverlayContent: customOverlayContent,
13261
- onCustomOverlayDismissed: onCustomOverlayDismissed,
13252
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
13262
13253
  forceFallbackMode: forceFallbackMode,
13263
13254
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
13264
13255
  instructions: instructions,
@@ -13275,7 +13266,7 @@ var IdValidation = function IdValidation(_a) {
13275
13266
  verbiage: verbiage,
13276
13267
  debugMode: debugMode
13277
13268
  };
13278
- }, [onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent, onCustomOverlayDismissed, forceFallbackMode, allowIdCardBackToFrontCapture, instructions, guideType, guideImages, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
13269
+ }, [onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, forceFallbackMode, allowIdCardBackToFrontCapture, instructions, guideType, guideImages, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
13279
13270
  var additionalDocumentCaptureProps = useMemo(function () {
13280
13271
  return {
13281
13272
  documents: captureAdditionalDocuments,
@@ -15088,7 +15079,7 @@ var SignatureKYC = function SignatureKYC(_a) {
15088
15079
  onUserCancel = _a.onUserCancel,
15089
15080
  onModelError = _a.onModelError,
15090
15081
  onCameraAccessDenied = _a.onCameraAccessDenied,
15091
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
15082
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
15092
15083
  _c = _a.loadingOverlayMode,
15093
15084
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
15094
15085
  customOverlayContent = _a.customOverlayContent,
@@ -15097,15 +15088,18 @@ var SignatureKYC = function SignatureKYC(_a) {
15097
15088
  idCardForFaceMatch = _a.idCardForFaceMatch,
15098
15089
  _e = _a.modelLoadTimeoutMs,
15099
15090
  modelLoadTimeoutMs = _e === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _e,
15100
- _f = _a.theme,
15101
- theme = _f === void 0 ? 'default' : _f,
15091
+ _f = _a.allowSignatureAfterLivenessCheckFailure,
15092
+ allowSignatureAfterLivenessCheckFailure = _f === void 0 ? false : _f,
15093
+ faceLivenessProps = _a.faceLivenessProps,
15094
+ _g = _a.theme,
15095
+ theme = _g === void 0 ? 'default' : _g,
15102
15096
  classNames = _a.classNames,
15103
15097
  colors = _a.colors,
15104
15098
  verbiage = _a.verbiage,
15105
15099
  geolocationEnabled = _a.geolocationEnabled,
15106
15100
  geolocationRequired = _a.geolocationRequired,
15107
- _g = _a.debugMode,
15108
- debugMode = _g === void 0 ? false : _g;
15101
+ _h = _a.debugMode,
15102
+ debugMode = _h === void 0 ? false : _h;
15109
15103
  useLanguage(lang);
15110
15104
  useDebugLogging(debugMode);
15111
15105
  return /*#__PURE__*/React__default.createElement(AuthProvider, {
@@ -15137,10 +15131,12 @@ var SignatureKYC = function SignatureKYC(_a) {
15137
15131
  videoSignatureCaptureProps: useMemo(function () {
15138
15132
  return {
15139
15133
  customOverlayContent: customOverlayContent,
15140
- onCustomOverlayDismissed: onCustomOverlayDismissed,
15134
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
15141
15135
  loadingOverlayMode: loadingOverlayMode,
15142
15136
  skipSuccessScreen: skipSuccessScreen,
15143
15137
  modelLoadTimeoutMs: modelLoadTimeoutMs,
15138
+ faceLivenessProps: faceLivenessProps,
15139
+ allowSignatureAfterLivenessCheckFailure: allowSignatureAfterLivenessCheckFailure,
15144
15140
  classNames: classNames,
15145
15141
  colors: colors,
15146
15142
  debugMode: debugMode,
@@ -15148,7 +15144,7 @@ var SignatureKYC = function SignatureKYC(_a) {
15148
15144
  onModelError: onModelError,
15149
15145
  onUserCancel: onUserCancel
15150
15146
  };
15151
- }, [customOverlayContent, onCustomOverlayDismissed, classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onModelError, onUserCancel, skipSuccessScreen, verbiage])
15147
+ }, [customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
15152
15148
  }))));
15153
15149
  };
15154
15150
 
@@ -15213,7 +15209,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15213
15209
  _k = _a.idCaptureLoadingOverlayMode,
15214
15210
  idCaptureLoadingOverlayMode = _k === void 0 ? 'default' : _k,
15215
15211
  customOverlayContent = _a.customOverlayContent,
15216
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
15212
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
15217
15213
  _l = _a.idCaptureGuideType,
15218
15214
  idCaptureGuideType = _l === void 0 ? 'fit' : _l,
15219
15215
  _m = _a.idCaptureGuideImages,
@@ -15276,7 +15272,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15276
15272
  skipShowIdCardBack: skipShowIdCardBack,
15277
15273
  idCaptureLoadingOverlayMode: idCaptureLoadingOverlayMode,
15278
15274
  customOverlayContent: customOverlayContent,
15279
- onCustomOverlayDismissed: onCustomOverlayDismissed,
15275
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
15280
15276
  idCaptureGuideType: idCaptureGuideType,
15281
15277
  idCaptureGuideImages: idCaptureGuideImages,
15282
15278
  idCapturePortraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
@@ -15292,7 +15288,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15292
15288
  verbiage: verbiage,
15293
15289
  debugMode: debugMode
15294
15290
  };
15295
- }, [idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, customOverlayContent, onCustomOverlayDismissed, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode]);
15291
+ }, [idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode]);
15296
15292
  var additionalDocumentCaptureProps = useMemo(function () {
15297
15293
  return {
15298
15294
  documents: captureAdditionalDocuments,