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
@@ -230,7 +230,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
230
230
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
231
231
  };
232
232
 
233
- var webSdkVersion = '2.2.11';
233
+ var webSdkVersion = '2.2.13';
234
234
 
235
235
  function getPlatform() {
236
236
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -5866,7 +5866,6 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
5866
5866
  var _b, _c, _d, _e, _f, _g;
5867
5867
  var onDismissed = _a.onDismissed,
5868
5868
  onUserCancel = _a.onUserCancel,
5869
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
5870
5869
  instructions = _a.instructions,
5871
5870
  _h = _a.rotateImage,
5872
5871
  rotateImage = _h === void 0 ? false : _h,
@@ -6003,7 +6002,6 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
6003
6002
  onClick: function onClick() {
6004
6003
  setDismissed(true);
6005
6004
  onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
6006
- onCustomOverlayDismissed === null || onCustomOverlayDismissed === void 0 ? void 0 : onCustomOverlayDismissed();
6007
6005
  }
6008
6006
  }, verbiage.continueText))))));
6009
6007
  };
@@ -8181,7 +8179,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
8181
8179
  _h = _a.loadingOverlayMode,
8182
8180
  loadingOverlayMode = _h === void 0 ? 'default' : _h,
8183
8181
  customOverlayContent = _a.customOverlayContent,
8184
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
8182
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
8185
8183
  precapturedDocuments = _a.precapturedDocuments,
8186
8184
  _j = _a.captureRequirement,
8187
8185
  captureRequirement = _j === void 0 ? 'idCardOrPassport' : _j,
@@ -8491,7 +8489,6 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
8491
8489
  key: "loading".concat(attempt),
8492
8490
  mode: loadingOverlayMode,
8493
8491
  customOverlayContent: customOverlayContent,
8494
- onCustomOverlayDismissed: onCustomOverlayDismissed,
8495
8492
  instructions: instructions,
8496
8493
  assets: assets.loadingOverlay,
8497
8494
  classNames: classNames.loadingOverlay,
@@ -8500,6 +8497,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
8500
8497
  onUserCancel: onUserCancel,
8501
8498
  onDismissed: function onDismissed() {
8502
8499
  setOverlayDismissed(true);
8500
+ onLoadingOverlayDismissed === null || onLoadingOverlayDismissed === void 0 ? void 0 : onLoadingOverlayDismissed();
8503
8501
  },
8504
8502
  rotateImage: rotateLoadingOverlayImageWhenPortrait && portraitGuidesOnMobile && window.innerWidth < window.innerHeight
8505
8503
  })), state.captureState === 'requestingFlip' && separateIdCardCaptureSequence && ( /*#__PURE__*/React__namespace.default.createElement(IdCaptureSuccess, {
@@ -10182,7 +10180,6 @@ var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png"
10182
10180
  var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
10183
10181
  var onDismissed = _a.onDismissed,
10184
10182
  onUserCancel = _a.onUserCancel,
10185
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
10186
10183
  _b = _a.assets,
10187
10184
  assets = _b === void 0 ? {} : _b,
10188
10185
  _c = _a.classNames,
@@ -10295,7 +10292,6 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
10295
10292
  onClick: function onClick() {
10296
10293
  setDismissed(true);
10297
10294
  onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
10298
- onCustomOverlayDismissed === null || onCustomOverlayDismissed === void 0 ? void 0 : onCustomOverlayDismissed();
10299
10295
  }
10300
10296
  }, verbiage.continueText))))));
10301
10297
  };
@@ -10376,7 +10372,7 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10376
10372
  _e = _a.loadingOverlayMode,
10377
10373
  loadingOverlayMode = _e === void 0 ? 'default' : _e,
10378
10374
  customOverlayContent = _a.customOverlayContent,
10379
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
10375
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
10380
10376
  _f = _a.timeoutDurationMs,
10381
10377
  timeoutDurationMs = _f === void 0 ? 15000 : _f,
10382
10378
  _g = _a.maxRetries,
@@ -10519,9 +10515,10 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10519
10515
  setCaptureState('LOADING');
10520
10516
  }
10521
10517
  }, [cameraAccessDenied]);
10522
- var onLoadingOverlayDismissed = React.useCallback(function () {
10518
+ var onLoadingOverlayDismissedCallback = React.useCallback(function () {
10523
10519
  setCaptureState('CAPTURING');
10524
- }, []);
10520
+ onLoadingOverlayDismissed === null || onLoadingOverlayDismissed === void 0 ? void 0 : onLoadingOverlayDismissed();
10521
+ }, [onLoadingOverlayDismissed]);
10525
10522
  var onFailureExitClick = React.useCallback(function () {
10526
10523
  releaseCameraAccessOnExit && releaseCameraAccess();
10527
10524
  setTimeout(function () {
@@ -10581,13 +10578,12 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10581
10578
  key: attempt,
10582
10579
  mode: loadingOverlayMode,
10583
10580
  customOverlayContent: customOverlayContent,
10584
- onCustomOverlayDismissed: onCustomOverlayDismissed,
10585
10581
  assets: assets.loadingOverlay,
10586
10582
  classNames: classNames.loadingOverlay,
10587
10583
  colors: colors.loadingOverlay,
10588
10584
  verbiage: verbiage.loadingOverlay,
10589
10585
  onUserCancel: onUserCancel,
10590
- onDismissed: onLoadingOverlayDismissed
10586
+ onDismissed: onLoadingOverlayDismissedCallback
10591
10587
  }));
10592
10588
  };
10593
10589
 
@@ -11495,41 +11491,44 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11495
11491
  onRetryClicked = _a.onRetryClicked,
11496
11492
  onExitCapture = _a.onExitCapture,
11497
11493
  onUserCancel = _a.onUserCancel,
11498
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
11494
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
11499
11495
  _c = _a.loadingOverlayMode,
11500
11496
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
11501
11497
  customOverlayContent = _a.customOverlayContent,
11502
11498
  _d = _a.skipSuccessScreen,
11503
11499
  skipSuccessScreen = _d === void 0 ? false : _d,
11504
- _e = _a.assets,
11505
- assets = _e === void 0 ? {} : _e,
11506
- _f = _a.classNames,
11507
- classNames = _f === void 0 ? {} : _f,
11508
- _g = _a.colors,
11509
- colors = _g === void 0 ? {} : _g,
11510
- _h = _a.verbiage,
11511
- verbiage = _h === void 0 ? {} : _h,
11512
- _j = _a.debugMode,
11513
- debugMode = _j === void 0 ? false : _j;
11514
- var _k = React.useContext(SubmissionContext),
11515
- selfieImage = _k.selfieImage,
11516
- setSelfieImage = _k.setSelfieImage,
11517
- setSignatureData = _k.setSignatureData,
11518
- setSignatureVideoUrl = _k.setSignatureVideoUrl,
11519
- logSelfieCaptureAttempt = _k.logSelfieCaptureAttempt;
11520
- var _l = React.useContext(CameraStateContext),
11521
- cameraAccessDenied = _l.cameraAccessDenied,
11522
- requestCameraAccess = _l.requestCameraAccess,
11523
- releaseCameraAccess = _l.releaseCameraAccess;
11524
- var _m = React.useState('LOADING'),
11525
- captureState = _m[0],
11526
- setCaptureState = _m[1];
11500
+ _e = _a.allowSignatureAfterLivenessCheckFailure,
11501
+ allowSignatureAfterLivenessCheckFailure = _e === void 0 ? false : _e,
11502
+ faceLivenessProps = _a.faceLivenessProps,
11503
+ _f = _a.assets,
11504
+ assets = _f === void 0 ? {} : _f,
11505
+ _g = _a.classNames,
11506
+ classNames = _g === void 0 ? {} : _g,
11507
+ _h = _a.colors,
11508
+ colors = _h === void 0 ? {} : _h,
11509
+ _j = _a.verbiage,
11510
+ verbiage = _j === void 0 ? {} : _j,
11511
+ _k = _a.debugMode,
11512
+ debugMode = _k === void 0 ? false : _k;
11513
+ var _l = React.useContext(SubmissionContext),
11514
+ selfieImage = _l.selfieImage,
11515
+ setSelfieImage = _l.setSelfieImage,
11516
+ setSignatureData = _l.setSignatureData,
11517
+ setSignatureVideoUrl = _l.setSignatureVideoUrl,
11518
+ logSelfieCaptureAttempt = _l.logSelfieCaptureAttempt;
11519
+ var _m = React.useContext(CameraStateContext),
11520
+ cameraAccessDenied = _m.cameraAccessDenied,
11521
+ requestCameraAccess = _m.requestCameraAccess,
11522
+ releaseCameraAccess = _m.releaseCameraAccess;
11523
+ var _o = React.useState('CHECKING_LIVENESS'),
11524
+ captureState = _o[0],
11525
+ setCaptureState = _o[1];
11527
11526
  var operationStartedAt = React.useRef();
11528
11527
  var captureStartedAt = React.useRef();
11529
11528
  var captureEndedAt = React.useRef();
11530
- var _o = React.useContext(SelfieGuidanceModelsContext),
11531
- start = _o.start,
11532
- stop = _o.stop;
11529
+ var _p = React.useContext(SelfieGuidanceModelsContext),
11530
+ start = _p.start,
11531
+ stop = _p.stop;
11533
11532
  React.useEffect(function () {
11534
11533
  operationStartedAt.current = new Date();
11535
11534
  }, []);
@@ -11554,32 +11553,20 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11554
11553
  });
11555
11554
  operationStartedAt.current = new Date();
11556
11555
  }, [logSelfieCaptureAttempt]);
11557
- var onLoadingOverlayDismissed = React.useCallback(function () {
11558
- setCaptureState('CHECKING_LIVENESS');
11559
- }, []);
11560
- var onFaceCaptureSuccess = React.useCallback(function (faceCropImageUrl) {
11561
- return __awaiter(void 0, void 0, void 0, function () {
11562
- var _a;
11563
- return __generator(this, function (_b) {
11564
- switch (_b.label) {
11565
- case 0:
11566
- setCaptureState('CAPTURING_SIGNATURE');
11567
- logCaptureMetadata();
11568
- if (!!selfieImage) return [3 /*break*/, 2];
11569
- _a = setSelfieImage;
11570
- return [4 /*yield*/, dataUrlToBase64(faceCropImageUrl)];
11571
- case 1:
11572
- _a.apply(void 0, [_b.sent()]);
11573
- _b.label = 2;
11574
- case 2:
11575
- return [2 /*return*/];
11576
- }
11577
- });
11578
- });
11579
- }, [logCaptureMetadata, selfieImage, setSelfieImage]);
11580
- var _p = React.useState(null),
11581
- signatureImageUrl = _p[0],
11582
- setSignatureImageUrl = _p[1];
11556
+ var onFaceLivenessSuccessProp = faceLivenessProps === null || faceLivenessProps === void 0 ? void 0 : faceLivenessProps.onSuccess;
11557
+ var onFaceCaptureSuccess = React.useCallback(function (response, request) {
11558
+ var _a, _b;
11559
+ onFaceLivenessSuccessProp === null || onFaceLivenessSuccessProp === void 0 ? void 0 : onFaceLivenessSuccessProp(response, request);
11560
+ setCaptureState('CAPTURING_SIGNATURE');
11561
+ logCaptureMetadata();
11562
+ var selfieFromRequest = (_b = (_a = request.customerData) === null || _a === void 0 ? void 0 : _a.biometricData) === null || _b === void 0 ? void 0 : _b.selfie;
11563
+ if (!selfieImage && selfieFromRequest) {
11564
+ setSelfieImage(selfieFromRequest);
11565
+ }
11566
+ }, [logCaptureMetadata, onFaceLivenessSuccessProp, selfieImage, setSelfieImage]);
11567
+ var _q = React.useState(null),
11568
+ signatureImageUrl = _q[0],
11569
+ setSignatureImageUrl = _q[1];
11583
11570
  var onSignatureCaptureCompleted = React.useCallback(function (videoData, signatureData, signatureImageData) {
11584
11571
  setSignatureData(signatureData);
11585
11572
  setSignatureVideoUrl(URL.createObjectURL(videoData));
@@ -11590,15 +11577,15 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11590
11577
  var onSignatureCaptureFacesNotDetected = React.useCallback(function () {
11591
11578
  setCaptureState('CHECKING_LIVENESS');
11592
11579
  }, []);
11593
- var _q = React.useState(0),
11594
- attempt = _q[0],
11595
- setAttempt = _q[1];
11580
+ var _r = React.useState(0),
11581
+ attempt = _r[0],
11582
+ setAttempt = _r[1];
11596
11583
  var onExit = React.useCallback(function () {
11597
11584
  releaseCameraAccess();
11598
11585
  setAttempt(function (n) {
11599
11586
  return n + 1;
11600
11587
  });
11601
- setCaptureState('LOADING');
11588
+ setCaptureState('CHECKING_LIVENESS');
11602
11589
  onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
11603
11590
  requestCameraAccess();
11604
11591
  }, [onExitCapture, releaseCameraAccess, requestCameraAccess]);
@@ -11612,7 +11599,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11612
11599
  setAttempt(function (n) {
11613
11600
  return n + 1;
11614
11601
  });
11615
- setCaptureState('LOADING');
11602
+ setCaptureState('CHECKING_LIVENESS');
11616
11603
  }
11617
11604
  }, [cameraAccessDenied]);
11618
11605
  var guidesComponent = React.useCallback(function (_a) {
@@ -11623,22 +11610,37 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11623
11610
  requestedAction: status === 'success' ? 'CAPTURE_SIGNATURE' : 'VERIFY_LIVENESS'
11624
11611
  });
11625
11612
  }, [classNames === null || classNames === void 0 ? void 0 : classNames.videoSignatureGuidesClassNames]);
11613
+ var onExitAfterFailure = React.useCallback(function () {
11614
+ if (allowSignatureAfterLivenessCheckFailure) {
11615
+ setCaptureState('CAPTURING_SIGNATURE');
11616
+ }
11617
+ }, [allowSignatureAfterLivenessCheckFailure]);
11626
11618
  return /*#__PURE__*/React__namespace.default.createElement(VideoSignatureContextProvider, null, /*#__PURE__*/React__namespace.default.createElement(PageContainer, {
11627
11619
  className: "flex ".concat((_b = classNames === null || classNames === void 0 ? void 0 : classNames.container) !== null && _b !== void 0 ? _b : '')
11628
11620
  }, /*#__PURE__*/React__namespace.default.createElement(CameraVideoTag, {
11629
11621
  className: classNames.cameraFeed
11630
- }), captureState !== 'LOADING' && function () {
11622
+ }), function () {
11631
11623
  switch (captureState) {
11632
11624
  case 'CHECKING_LIVENESS':
11633
- return /*#__PURE__*/React__namespace.default.createElement(FaceLivenessCapture, {
11625
+ return /*#__PURE__*/React__namespace.default.createElement(FaceLivenessWizard, _assign({
11626
+ key: "face-liveness-".concat(attempt)
11627
+ }, faceLivenessProps, {
11634
11628
  onSuccess: onFaceCaptureSuccess,
11635
- onExit: onExit,
11629
+ onExitCapture: onExit,
11630
+ onUserCancel: onUserCancel,
11631
+ onExitAfterFailure: onExitAfterFailure,
11632
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
11633
+ customOverlayContent: customOverlayContent,
11634
+ loadingOverlayMode: loadingOverlayMode,
11636
11635
  guidesComponent: guidesComponent,
11636
+ assets: assets.faceLiveness,
11637
11637
  classNames: classNames.faceLiveness,
11638
11638
  colors: colors.faceLiveness,
11639
11639
  verbiage: verbiage.faceLiveness,
11640
- debugMode: debugMode
11641
- });
11640
+ debugMode: debugMode,
11641
+ releaseCameraAccessOnExit: false,
11642
+ renderCameraFeed: false
11643
+ }));
11642
11644
  case 'CAPTURING_SIGNATURE':
11643
11645
  return /*#__PURE__*/React__namespace.default.createElement(VideoSignatureCapture, {
11644
11646
  onVideoCaptured: onSignatureCaptureCompleted,
@@ -11663,18 +11665,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11663
11665
  default:
11664
11666
  return null;
11665
11667
  }
11666
- }()), /*#__PURE__*/React__namespace.default.createElement(SelfieCaptureLoadingOverlay, {
11667
- key: attempt,
11668
- mode: loadingOverlayMode,
11669
- assets: assets.loadingOverlay,
11670
- classNames: classNames.loadingOverlay,
11671
- colors: colors.loadingOverlay,
11672
- verbiage: verbiage.loadingOverlay,
11673
- onDismissed: onLoadingOverlayDismissed,
11674
- onUserCancel: onUserCancel,
11675
- customOverlayContent: customOverlayContent,
11676
- onCustomOverlayDismissed: onCustomOverlayDismissed
11677
- }));
11668
+ }()));
11678
11669
  };
11679
11670
 
11680
11671
  var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
@@ -12492,7 +12483,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12492
12483
  _t = _a.idCaptureLoadingOverlayMode,
12493
12484
  idCaptureLoadingOverlayMode = _t === void 0 ? 'default' : _t,
12494
12485
  customOverlayContent = _a.customOverlayContent,
12495
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
12486
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
12496
12487
  _u = _a.idCaptureGuideType,
12497
12488
  idCaptureGuideType = _u === void 0 ? 'fit' : _u,
12498
12489
  _v = _a.idCaptureGuideImages,
@@ -12649,7 +12640,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12649
12640
  key: "id-capture-".concat(attempt),
12650
12641
  loadingOverlayMode: idCaptureLoadingOverlayMode,
12651
12642
  customOverlayContent: customOverlayContent,
12652
- onCustomOverlayDismissed: onCustomOverlayDismissed,
12643
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
12653
12644
  silentFallback: silentFallback,
12654
12645
  guideImages: idCaptureGuideImages
12655
12646
  }, idCaptureProps, {
@@ -12672,7 +12663,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12672
12663
  key: "face-liveness-".concat(attempt),
12673
12664
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
12674
12665
  customOverlayContent: customOverlayContent,
12675
- onCustomOverlayDismissed: onCustomOverlayDismissed,
12666
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
12676
12667
  silentFallback: silentFallback
12677
12668
  }, faceLivenessProps, {
12678
12669
  onComplete: onFaceCaptureSuccess,
@@ -13211,7 +13202,7 @@ var IdValidation = function IdValidation(_a) {
13211
13202
  _c = _a.loadingOverlayMode,
13212
13203
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
13213
13204
  customOverlayContent = _a.customOverlayContent,
13214
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
13205
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
13215
13206
  _d = _a.idCaptureRequirement,
13216
13207
  idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
13217
13208
  _e = _a.separateIdCardCaptureSequence,
@@ -13288,7 +13279,7 @@ var IdValidation = function IdValidation(_a) {
13288
13279
  skipSuccessScreen: skipSuccessScreen,
13289
13280
  loadingOverlayMode: loadingOverlayMode,
13290
13281
  customOverlayContent: customOverlayContent,
13291
- onCustomOverlayDismissed: onCustomOverlayDismissed,
13282
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
13292
13283
  forceFallbackMode: forceFallbackMode,
13293
13284
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
13294
13285
  instructions: instructions,
@@ -13305,7 +13296,7 @@ var IdValidation = function IdValidation(_a) {
13305
13296
  verbiage: verbiage,
13306
13297
  debugMode: debugMode
13307
13298
  };
13308
- }, [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]);
13299
+ }, [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]);
13309
13300
  var additionalDocumentCaptureProps = React.useMemo(function () {
13310
13301
  return {
13311
13302
  documents: captureAdditionalDocuments,
@@ -15118,7 +15109,7 @@ var SignatureKYC = function SignatureKYC(_a) {
15118
15109
  onUserCancel = _a.onUserCancel,
15119
15110
  onModelError = _a.onModelError,
15120
15111
  onCameraAccessDenied = _a.onCameraAccessDenied,
15121
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
15112
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
15122
15113
  _c = _a.loadingOverlayMode,
15123
15114
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
15124
15115
  customOverlayContent = _a.customOverlayContent,
@@ -15127,15 +15118,18 @@ var SignatureKYC = function SignatureKYC(_a) {
15127
15118
  idCardForFaceMatch = _a.idCardForFaceMatch,
15128
15119
  _e = _a.modelLoadTimeoutMs,
15129
15120
  modelLoadTimeoutMs = _e === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _e,
15130
- _f = _a.theme,
15131
- theme = _f === void 0 ? 'default' : _f,
15121
+ _f = _a.allowSignatureAfterLivenessCheckFailure,
15122
+ allowSignatureAfterLivenessCheckFailure = _f === void 0 ? false : _f,
15123
+ faceLivenessProps = _a.faceLivenessProps,
15124
+ _g = _a.theme,
15125
+ theme = _g === void 0 ? 'default' : _g,
15132
15126
  classNames = _a.classNames,
15133
15127
  colors = _a.colors,
15134
15128
  verbiage = _a.verbiage,
15135
15129
  geolocationEnabled = _a.geolocationEnabled,
15136
15130
  geolocationRequired = _a.geolocationRequired,
15137
- _g = _a.debugMode,
15138
- debugMode = _g === void 0 ? false : _g;
15131
+ _h = _a.debugMode,
15132
+ debugMode = _h === void 0 ? false : _h;
15139
15133
  useLanguage(lang);
15140
15134
  useDebugLogging(debugMode);
15141
15135
  return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
@@ -15167,10 +15161,12 @@ var SignatureKYC = function SignatureKYC(_a) {
15167
15161
  videoSignatureCaptureProps: React.useMemo(function () {
15168
15162
  return {
15169
15163
  customOverlayContent: customOverlayContent,
15170
- onCustomOverlayDismissed: onCustomOverlayDismissed,
15164
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
15171
15165
  loadingOverlayMode: loadingOverlayMode,
15172
15166
  skipSuccessScreen: skipSuccessScreen,
15173
15167
  modelLoadTimeoutMs: modelLoadTimeoutMs,
15168
+ faceLivenessProps: faceLivenessProps,
15169
+ allowSignatureAfterLivenessCheckFailure: allowSignatureAfterLivenessCheckFailure,
15174
15170
  classNames: classNames,
15175
15171
  colors: colors,
15176
15172
  debugMode: debugMode,
@@ -15178,7 +15174,7 @@ var SignatureKYC = function SignatureKYC(_a) {
15178
15174
  onModelError: onModelError,
15179
15175
  onUserCancel: onUserCancel
15180
15176
  };
15181
- }, [customOverlayContent, onCustomOverlayDismissed, classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onModelError, onUserCancel, skipSuccessScreen, verbiage])
15177
+ }, [customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
15182
15178
  }))));
15183
15179
  };
15184
15180
 
@@ -15243,7 +15239,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15243
15239
  _k = _a.idCaptureLoadingOverlayMode,
15244
15240
  idCaptureLoadingOverlayMode = _k === void 0 ? 'default' : _k,
15245
15241
  customOverlayContent = _a.customOverlayContent,
15246
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
15242
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
15247
15243
  _l = _a.idCaptureGuideType,
15248
15244
  idCaptureGuideType = _l === void 0 ? 'fit' : _l,
15249
15245
  _m = _a.idCaptureGuideImages,
@@ -15306,7 +15302,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15306
15302
  skipShowIdCardBack: skipShowIdCardBack,
15307
15303
  idCaptureLoadingOverlayMode: idCaptureLoadingOverlayMode,
15308
15304
  customOverlayContent: customOverlayContent,
15309
- onCustomOverlayDismissed: onCustomOverlayDismissed,
15305
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
15310
15306
  idCaptureGuideType: idCaptureGuideType,
15311
15307
  idCaptureGuideImages: idCaptureGuideImages,
15312
15308
  idCapturePortraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
@@ -15322,7 +15318,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15322
15318
  verbiage: verbiage,
15323
15319
  debugMode: debugMode
15324
15320
  };
15325
- }, [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]);
15321
+ }, [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]);
15326
15322
  var additionalDocumentCaptureProps = React.useMemo(function () {
15327
15323
  return {
15328
15324
  documents: captureAdditionalDocuments,