idmission-web-sdk 2.2.11 → 2.2.12

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 +5 -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 +7 -10
  22. package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
  23. package/dist/sdk2.cjs.development.js +53 -68
  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 +53 -68
  28. package/dist/sdk2.esm.js.map +1 -1
  29. package/dist/sdk2.umd.development.js +53 -68
  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 +1 -1
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.12';
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,12 +11461,13 @@ 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,
11470
+ faceLivenessProps = _a.faceLivenessProps,
11474
11471
  _e = _a.assets,
11475
11472
  assets = _e === void 0 ? {} : _e,
11476
11473
  _f = _a.classNames,
@@ -11491,7 +11488,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11491
11488
  cameraAccessDenied = _l.cameraAccessDenied,
11492
11489
  requestCameraAccess = _l.requestCameraAccess,
11493
11490
  releaseCameraAccess = _l.releaseCameraAccess;
11494
- var _m = useState('LOADING'),
11491
+ var _m = useState('CHECKING_LIVENESS'),
11495
11492
  captureState = _m[0],
11496
11493
  setCaptureState = _m[1];
11497
11494
  var operationStartedAt = useRef();
@@ -11524,29 +11521,17 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11524
11521
  });
11525
11522
  operationStartedAt.current = new Date();
11526
11523
  }, [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]);
11524
+ var onFaceLivenessSuccessProp = faceLivenessProps === null || faceLivenessProps === void 0 ? void 0 : faceLivenessProps.onSuccess;
11525
+ var onFaceCaptureSuccess = useCallback(function (response, request) {
11526
+ var _a, _b;
11527
+ onFaceLivenessSuccessProp === null || onFaceLivenessSuccessProp === void 0 ? void 0 : onFaceLivenessSuccessProp(response, request);
11528
+ setCaptureState('CAPTURING_SIGNATURE');
11529
+ logCaptureMetadata();
11530
+ var selfieFromRequest = (_b = (_a = request.customerData) === null || _a === void 0 ? void 0 : _a.biometricData) === null || _b === void 0 ? void 0 : _b.selfie;
11531
+ if (!selfieImage && selfieFromRequest) {
11532
+ setSelfieImage(selfieFromRequest);
11533
+ }
11534
+ }, [logCaptureMetadata, onFaceLivenessSuccessProp, selfieImage, setSelfieImage]);
11550
11535
  var _p = useState(null),
11551
11536
  signatureImageUrl = _p[0],
11552
11537
  setSignatureImageUrl = _p[1];
@@ -11568,7 +11553,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11568
11553
  setAttempt(function (n) {
11569
11554
  return n + 1;
11570
11555
  });
11571
- setCaptureState('LOADING');
11556
+ setCaptureState('CHECKING_LIVENESS');
11572
11557
  onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
11573
11558
  requestCameraAccess();
11574
11559
  }, [onExitCapture, releaseCameraAccess, requestCameraAccess]);
@@ -11582,7 +11567,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11582
11567
  setAttempt(function (n) {
11583
11568
  return n + 1;
11584
11569
  });
11585
- setCaptureState('LOADING');
11570
+ setCaptureState('CHECKING_LIVENESS');
11586
11571
  }
11587
11572
  }, [cameraAccessDenied]);
11588
11573
  var guidesComponent = useCallback(function (_a) {
@@ -11597,18 +11582,27 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11597
11582
  className: "flex ".concat((_b = classNames === null || classNames === void 0 ? void 0 : classNames.container) !== null && _b !== void 0 ? _b : '')
11598
11583
  }, /*#__PURE__*/React__default.createElement(CameraVideoTag, {
11599
11584
  className: classNames.cameraFeed
11600
- }), captureState !== 'LOADING' && function () {
11585
+ }), function () {
11601
11586
  switch (captureState) {
11602
11587
  case 'CHECKING_LIVENESS':
11603
- return /*#__PURE__*/React__default.createElement(FaceLivenessCapture, {
11588
+ return /*#__PURE__*/React__default.createElement(FaceLivenessWizard, _assign({
11589
+ key: "face-liveness-".concat(attempt)
11590
+ }, faceLivenessProps, {
11604
11591
  onSuccess: onFaceCaptureSuccess,
11605
- onExit: onExit,
11592
+ onExitCapture: onExit,
11593
+ onUserCancel: onUserCancel,
11594
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
11595
+ customOverlayContent: customOverlayContent,
11596
+ loadingOverlayMode: loadingOverlayMode,
11606
11597
  guidesComponent: guidesComponent,
11598
+ assets: assets.faceLiveness,
11607
11599
  classNames: classNames.faceLiveness,
11608
11600
  colors: colors.faceLiveness,
11609
11601
  verbiage: verbiage.faceLiveness,
11610
- debugMode: debugMode
11611
- });
11602
+ debugMode: debugMode,
11603
+ releaseCameraAccessOnExit: false,
11604
+ renderCameraFeed: false
11605
+ }));
11612
11606
  case 'CAPTURING_SIGNATURE':
11613
11607
  return /*#__PURE__*/React__default.createElement(VideoSignatureCapture, {
11614
11608
  onVideoCaptured: onSignatureCaptureCompleted,
@@ -11633,18 +11627,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11633
11627
  default:
11634
11628
  return null;
11635
11629
  }
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
- }));
11630
+ }()));
11648
11631
  };
11649
11632
 
11650
11633
  var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
@@ -12462,7 +12445,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12462
12445
  _t = _a.idCaptureLoadingOverlayMode,
12463
12446
  idCaptureLoadingOverlayMode = _t === void 0 ? 'default' : _t,
12464
12447
  customOverlayContent = _a.customOverlayContent,
12465
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
12448
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
12466
12449
  _u = _a.idCaptureGuideType,
12467
12450
  idCaptureGuideType = _u === void 0 ? 'fit' : _u,
12468
12451
  _v = _a.idCaptureGuideImages,
@@ -12619,7 +12602,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12619
12602
  key: "id-capture-".concat(attempt),
12620
12603
  loadingOverlayMode: idCaptureLoadingOverlayMode,
12621
12604
  customOverlayContent: customOverlayContent,
12622
- onCustomOverlayDismissed: onCustomOverlayDismissed,
12605
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
12623
12606
  silentFallback: silentFallback,
12624
12607
  guideImages: idCaptureGuideImages
12625
12608
  }, idCaptureProps, {
@@ -12642,7 +12625,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12642
12625
  key: "face-liveness-".concat(attempt),
12643
12626
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
12644
12627
  customOverlayContent: customOverlayContent,
12645
- onCustomOverlayDismissed: onCustomOverlayDismissed,
12628
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
12646
12629
  silentFallback: silentFallback
12647
12630
  }, faceLivenessProps, {
12648
12631
  onComplete: onFaceCaptureSuccess,
@@ -13181,7 +13164,7 @@ var IdValidation = function IdValidation(_a) {
13181
13164
  _c = _a.loadingOverlayMode,
13182
13165
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
13183
13166
  customOverlayContent = _a.customOverlayContent,
13184
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
13167
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
13185
13168
  _d = _a.idCaptureRequirement,
13186
13169
  idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
13187
13170
  _e = _a.separateIdCardCaptureSequence,
@@ -13258,7 +13241,7 @@ var IdValidation = function IdValidation(_a) {
13258
13241
  skipSuccessScreen: skipSuccessScreen,
13259
13242
  loadingOverlayMode: loadingOverlayMode,
13260
13243
  customOverlayContent: customOverlayContent,
13261
- onCustomOverlayDismissed: onCustomOverlayDismissed,
13244
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
13262
13245
  forceFallbackMode: forceFallbackMode,
13263
13246
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
13264
13247
  instructions: instructions,
@@ -13275,7 +13258,7 @@ var IdValidation = function IdValidation(_a) {
13275
13258
  verbiage: verbiage,
13276
13259
  debugMode: debugMode
13277
13260
  };
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]);
13261
+ }, [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
13262
  var additionalDocumentCaptureProps = useMemo(function () {
13280
13263
  return {
13281
13264
  documents: captureAdditionalDocuments,
@@ -15088,7 +15071,7 @@ var SignatureKYC = function SignatureKYC(_a) {
15088
15071
  onUserCancel = _a.onUserCancel,
15089
15072
  onModelError = _a.onModelError,
15090
15073
  onCameraAccessDenied = _a.onCameraAccessDenied,
15091
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
15074
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
15092
15075
  _c = _a.loadingOverlayMode,
15093
15076
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
15094
15077
  customOverlayContent = _a.customOverlayContent,
@@ -15097,6 +15080,7 @@ var SignatureKYC = function SignatureKYC(_a) {
15097
15080
  idCardForFaceMatch = _a.idCardForFaceMatch,
15098
15081
  _e = _a.modelLoadTimeoutMs,
15099
15082
  modelLoadTimeoutMs = _e === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _e,
15083
+ faceLivenessProps = _a.faceLivenessProps,
15100
15084
  _f = _a.theme,
15101
15085
  theme = _f === void 0 ? 'default' : _f,
15102
15086
  classNames = _a.classNames,
@@ -15137,10 +15121,11 @@ var SignatureKYC = function SignatureKYC(_a) {
15137
15121
  videoSignatureCaptureProps: useMemo(function () {
15138
15122
  return {
15139
15123
  customOverlayContent: customOverlayContent,
15140
- onCustomOverlayDismissed: onCustomOverlayDismissed,
15124
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
15141
15125
  loadingOverlayMode: loadingOverlayMode,
15142
15126
  skipSuccessScreen: skipSuccessScreen,
15143
15127
  modelLoadTimeoutMs: modelLoadTimeoutMs,
15128
+ faceLivenessProps: faceLivenessProps,
15144
15129
  classNames: classNames,
15145
15130
  colors: colors,
15146
15131
  debugMode: debugMode,
@@ -15148,7 +15133,7 @@ var SignatureKYC = function SignatureKYC(_a) {
15148
15133
  onModelError: onModelError,
15149
15134
  onUserCancel: onUserCancel
15150
15135
  };
15151
- }, [customOverlayContent, onCustomOverlayDismissed, classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onModelError, onUserCancel, skipSuccessScreen, verbiage])
15136
+ }, [customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, modelLoadTimeoutMs, faceLivenessProps, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
15152
15137
  }))));
15153
15138
  };
15154
15139
 
@@ -15213,7 +15198,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15213
15198
  _k = _a.idCaptureLoadingOverlayMode,
15214
15199
  idCaptureLoadingOverlayMode = _k === void 0 ? 'default' : _k,
15215
15200
  customOverlayContent = _a.customOverlayContent,
15216
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
15201
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
15217
15202
  _l = _a.idCaptureGuideType,
15218
15203
  idCaptureGuideType = _l === void 0 ? 'fit' : _l,
15219
15204
  _m = _a.idCaptureGuideImages,
@@ -15276,7 +15261,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15276
15261
  skipShowIdCardBack: skipShowIdCardBack,
15277
15262
  idCaptureLoadingOverlayMode: idCaptureLoadingOverlayMode,
15278
15263
  customOverlayContent: customOverlayContent,
15279
- onCustomOverlayDismissed: onCustomOverlayDismissed,
15264
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
15280
15265
  idCaptureGuideType: idCaptureGuideType,
15281
15266
  idCaptureGuideImages: idCaptureGuideImages,
15282
15267
  idCapturePortraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
@@ -15292,7 +15277,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15292
15277
  verbiage: verbiage,
15293
15278
  debugMode: debugMode
15294
15279
  };
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]);
15280
+ }, [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
15281
  var additionalDocumentCaptureProps = useMemo(function () {
15297
15282
  return {
15298
15283
  documents: captureAdditionalDocuments,