idmission-web-sdk 2.2.10 → 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 (36) 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/FaceLivenessCapture.d.ts +3 -1
  8. package/dist/components/face_liveness/FaceLivenessCapture.d.ts.map +1 -1
  9. package/dist/components/face_liveness/FaceLivenessWizard.d.ts +10 -8
  10. package/dist/components/face_liveness/FaceLivenessWizard.d.ts.map +1 -1
  11. package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +0 -1
  12. package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts.map +1 -1
  13. package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts +1 -1
  14. package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts.map +1 -1
  15. package/dist/components/id_capture/IdCaptureWizard.d.ts +2 -2
  16. package/dist/components/id_capture/IdCaptureWizard.d.ts.map +1 -1
  17. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +0 -1
  18. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts.map +1 -1
  19. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts +1 -1
  20. package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -1
  21. package/dist/components/video_id/IdVideoCaptureWizard.d.ts +2 -2
  22. package/dist/components/video_id/IdVideoCaptureWizard.d.ts.map +1 -1
  23. package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +7 -10
  24. package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
  25. package/dist/sdk2.cjs.development.js +86 -85
  26. package/dist/sdk2.cjs.development.js.map +1 -1
  27. package/dist/sdk2.cjs.production.js +1 -1
  28. package/dist/sdk2.cjs.production.js.map +1 -1
  29. package/dist/sdk2.esm.js +86 -85
  30. package/dist/sdk2.esm.js.map +1 -1
  31. package/dist/sdk2.umd.development.js +86 -85
  32. package/dist/sdk2.umd.development.js.map +1 -1
  33. package/dist/sdk2.umd.production.js +1 -1
  34. package/dist/sdk2.umd.production.js.map +1 -1
  35. package/dist/version.d.ts +1 -1
  36. 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.10';
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, {
@@ -9682,7 +9680,9 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
9682
9680
  var _b, _c, _d, _e;
9683
9681
  var onCapture = _a.onCapture,
9684
9682
  onSuccess = _a.onSuccess,
9683
+ onFailure = _a.onFailure,
9685
9684
  onTimeout = _a.onTimeout,
9685
+ onDenied = _a.onDenied,
9686
9686
  onExit = _a.onExit,
9687
9687
  _f = _a.timeoutDurationMs,
9688
9688
  timeoutDurationMs = _f === void 0 ? 15000 : _f,
@@ -9793,14 +9793,12 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
9793
9793
  return [4 /*yield*/, dataUrlToBase64(imageUrl)];
9794
9794
  case 2:
9795
9795
  imageData = _b.sent();
9796
- return [4 /*yield*/, checkLiveness(imageData)
9797
- // todo: JN - this feels dirty and is the reason for the todo around line 83 - but is necessary to handle fallback liveness validation
9798
- ];
9796
+ return [4 /*yield*/, checkLiveness(imageData)];
9799
9797
  case 3:
9800
9798
  response = _b.sent();
9801
- // todo: JN - this feels dirty and is the reason for the todo around line 83 - but is necessary to handle fallback liveness validation
9802
9799
  if (((_a = response === null || response === void 0 ? void 0 : response.resultData) === null || _a === void 0 ? void 0 : _a.verificationResult) !== 'Live Face Detected') {
9803
- onTimeout === null || onTimeout === void 0 ? void 0 : onTimeout();
9800
+ onFailure === null || onFailure === void 0 ? void 0 : onFailure();
9801
+ onDenied === null || onDenied === void 0 ? void 0 : onDenied();
9804
9802
  }
9805
9803
  dispatch({
9806
9804
  type: 'livenessChecked',
@@ -9824,7 +9822,7 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
9824
9822
  }
9825
9823
  });
9826
9824
  });
9827
- }, [checkLiveness, onTimeout]);
9825
+ }, [checkLiveness, onFailure, onDenied]);
9828
9826
  useEffect(function () {
9829
9827
  if (state.requestState === 'FAILED' || state.requestState === 'ERROR') {
9830
9828
  setTimeout(function () {
@@ -9841,10 +9839,15 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
9841
9839
  if (modelError) return;
9842
9840
  var allowedFailures = 2;
9843
9841
  if (state.timesLivenessCheckFailed > allowedFailures) {
9844
- onTimeout === null || onTimeout === void 0 ? void 0 : onTimeout();
9845
- }
9846
- }, [modelError, onTimeout, state.timesLivenessCheckFailed]);
9847
- useTimeout(timeoutDurationMs, onTimeout, state.requestState === 'PASSED' || !!modelError, state.requestState === 'IN_PROGRESS');
9842
+ onFailure === null || onFailure === void 0 ? void 0 : onFailure();
9843
+ onDenied === null || onDenied === void 0 ? void 0 : onDenied();
9844
+ }
9845
+ }, [modelError, onFailure, onDenied, state.timesLivenessCheckFailed]);
9846
+ var callOnTimeoutHooks = useCallback(function () {
9847
+ onTimeout === null || onTimeout === void 0 ? void 0 : onTimeout();
9848
+ onDenied === null || onDenied === void 0 ? void 0 : onDenied();
9849
+ }, [onDenied, onTimeout]);
9850
+ useTimeout(timeoutDurationMs, callOnTimeoutHooks, state.requestState === 'PASSED' || !!modelError, state.requestState === 'IN_PROGRESS');
9848
9851
  var verbiage = useTranslations(rawVerbiage, {
9849
9852
  guidanceLivenessCheckFailedText: 'Could not verify your face.',
9850
9853
  guidanceLivenessCheckErrorText: 'An error occurred while verifying your face.',
@@ -10147,7 +10150,6 @@ var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png"
10147
10150
  var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
10148
10151
  var onDismissed = _a.onDismissed,
10149
10152
  onUserCancel = _a.onUserCancel,
10150
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
10151
10153
  _b = _a.assets,
10152
10154
  assets = _b === void 0 ? {} : _b,
10153
10155
  _c = _a.classNames,
@@ -10260,7 +10262,6 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
10260
10262
  onClick: function onClick() {
10261
10263
  setDismissed(true);
10262
10264
  onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
10263
- onCustomOverlayDismissed === null || onCustomOverlayDismissed === void 0 ? void 0 : onCustomOverlayDismissed();
10264
10265
  }
10265
10266
  }, verbiage.continueText))))));
10266
10267
  };
@@ -10332,14 +10333,16 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10332
10333
  var _b, _c, _d;
10333
10334
  var onComplete = _a.onComplete,
10334
10335
  onSuccess = _a.onSuccess,
10336
+ onFailure = _a.onFailure,
10335
10337
  onTimeout = _a.onTimeout,
10338
+ onDenied = _a.onDenied,
10336
10339
  onExitCapture = _a.onExitCapture,
10337
10340
  onExitAfterFailure = _a.onExitAfterFailure,
10338
10341
  onUserCancel = _a.onUserCancel,
10339
10342
  _e = _a.loadingOverlayMode,
10340
10343
  loadingOverlayMode = _e === void 0 ? 'default' : _e,
10341
10344
  customOverlayContent = _a.customOverlayContent,
10342
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
10345
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
10343
10346
  _f = _a.timeoutDurationMs,
10344
10347
  timeoutDurationMs = _f === void 0 ? 15000 : _f,
10345
10348
  _g = _a.maxRetries,
@@ -10430,11 +10433,18 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10430
10433
  });
10431
10434
  });
10432
10435
  }, [onSuccess, setSelfieImage, livenessCheckRequest, submissionResponse]);
10433
- // todo: JN - how this is being used, it would make sense to rename the prop as well, but that would be a breaking change - discuss
10434
- var onFailureOrTimeout = useCallback(function () {
10436
+ var onFailureCallback = useCallback(function () {
10437
+ return __awaiter(void 0, void 0, void 0, function () {
10438
+ return __generator(this, function (_a) {
10439
+ onFailure === null || onFailure === void 0 ? void 0 : onFailure(submissionResponse, livenessCheckRequest);
10440
+ return [2 /*return*/];
10441
+ });
10442
+ });
10443
+ }, [livenessCheckRequest, onFailure, submissionResponse]);
10444
+ var onDeniedCallback = useCallback(function () {
10435
10445
  setCaptureState('FAILED');
10436
- onTimeout === null || onTimeout === void 0 ? void 0 : onTimeout(submissionResponse, livenessCheckRequest);
10437
- }, [onTimeout, livenessCheckRequest, submissionResponse]);
10446
+ onDenied === null || onDenied === void 0 ? void 0 : onDenied(submissionResponse, livenessCheckRequest);
10447
+ }, [onDenied, submissionResponse, livenessCheckRequest]);
10438
10448
  var _y = useState(0),
10439
10449
  attempt = _y[0],
10440
10450
  setAttempt = _y[1];
@@ -10475,9 +10485,10 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10475
10485
  setCaptureState('LOADING');
10476
10486
  }
10477
10487
  }, [cameraAccessDenied]);
10478
- var onLoadingOverlayDismissed = useCallback(function () {
10488
+ var onLoadingOverlayDismissedCallback = useCallback(function () {
10479
10489
  setCaptureState('CAPTURING');
10480
- }, []);
10490
+ onLoadingOverlayDismissed === null || onLoadingOverlayDismissed === void 0 ? void 0 : onLoadingOverlayDismissed();
10491
+ }, [onLoadingOverlayDismissed]);
10481
10492
  var onFailureExitClick = useCallback(function () {
10482
10493
  releaseCameraAccessOnExit && releaseCameraAccess();
10483
10494
  setTimeout(function () {
@@ -10495,7 +10506,9 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10495
10506
  key: "capture".concat(attempt),
10496
10507
  onCapture: onCapture,
10497
10508
  onSuccess: onSuccessCallback,
10498
- onTimeout: onFailureOrTimeout,
10509
+ onFailure: onFailureCallback,
10510
+ onTimeout: onTimeout,
10511
+ onDenied: onDeniedCallback,
10499
10512
  onExit: onExitCallback,
10500
10513
  timeoutDurationMs: timeoutDurationMs,
10501
10514
  silentFallback: silentFallback,
@@ -10535,13 +10548,12 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10535
10548
  key: attempt,
10536
10549
  mode: loadingOverlayMode,
10537
10550
  customOverlayContent: customOverlayContent,
10538
- onCustomOverlayDismissed: onCustomOverlayDismissed,
10539
10551
  assets: assets.loadingOverlay,
10540
10552
  classNames: classNames.loadingOverlay,
10541
10553
  colors: colors.loadingOverlay,
10542
10554
  verbiage: verbiage.loadingOverlay,
10543
10555
  onUserCancel: onUserCancel,
10544
- onDismissed: onLoadingOverlayDismissed
10556
+ onDismissed: onLoadingOverlayDismissedCallback
10545
10557
  }));
10546
10558
  };
10547
10559
 
@@ -11449,12 +11461,13 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11449
11461
  onRetryClicked = _a.onRetryClicked,
11450
11462
  onExitCapture = _a.onExitCapture,
11451
11463
  onUserCancel = _a.onUserCancel,
11452
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
11464
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
11453
11465
  _c = _a.loadingOverlayMode,
11454
11466
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
11455
11467
  customOverlayContent = _a.customOverlayContent,
11456
11468
  _d = _a.skipSuccessScreen,
11457
11469
  skipSuccessScreen = _d === void 0 ? false : _d,
11470
+ faceLivenessProps = _a.faceLivenessProps,
11458
11471
  _e = _a.assets,
11459
11472
  assets = _e === void 0 ? {} : _e,
11460
11473
  _f = _a.classNames,
@@ -11475,7 +11488,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11475
11488
  cameraAccessDenied = _l.cameraAccessDenied,
11476
11489
  requestCameraAccess = _l.requestCameraAccess,
11477
11490
  releaseCameraAccess = _l.releaseCameraAccess;
11478
- var _m = useState('LOADING'),
11491
+ var _m = useState('CHECKING_LIVENESS'),
11479
11492
  captureState = _m[0],
11480
11493
  setCaptureState = _m[1];
11481
11494
  var operationStartedAt = useRef();
@@ -11508,29 +11521,17 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11508
11521
  });
11509
11522
  operationStartedAt.current = new Date();
11510
11523
  }, [logSelfieCaptureAttempt]);
11511
- var onLoadingOverlayDismissed = useCallback(function () {
11512
- setCaptureState('CHECKING_LIVENESS');
11513
- }, []);
11514
- var onFaceCaptureSuccess = useCallback(function (faceCropImageUrl) {
11515
- return __awaiter(void 0, void 0, void 0, function () {
11516
- var _a;
11517
- return __generator(this, function (_b) {
11518
- switch (_b.label) {
11519
- case 0:
11520
- setCaptureState('CAPTURING_SIGNATURE');
11521
- logCaptureMetadata();
11522
- if (!!selfieImage) return [3 /*break*/, 2];
11523
- _a = setSelfieImage;
11524
- return [4 /*yield*/, dataUrlToBase64(faceCropImageUrl)];
11525
- case 1:
11526
- _a.apply(void 0, [_b.sent()]);
11527
- _b.label = 2;
11528
- case 2:
11529
- return [2 /*return*/];
11530
- }
11531
- });
11532
- });
11533
- }, [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]);
11534
11535
  var _p = useState(null),
11535
11536
  signatureImageUrl = _p[0],
11536
11537
  setSignatureImageUrl = _p[1];
@@ -11552,7 +11553,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11552
11553
  setAttempt(function (n) {
11553
11554
  return n + 1;
11554
11555
  });
11555
- setCaptureState('LOADING');
11556
+ setCaptureState('CHECKING_LIVENESS');
11556
11557
  onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
11557
11558
  requestCameraAccess();
11558
11559
  }, [onExitCapture, releaseCameraAccess, requestCameraAccess]);
@@ -11566,7 +11567,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11566
11567
  setAttempt(function (n) {
11567
11568
  return n + 1;
11568
11569
  });
11569
- setCaptureState('LOADING');
11570
+ setCaptureState('CHECKING_LIVENESS');
11570
11571
  }
11571
11572
  }, [cameraAccessDenied]);
11572
11573
  var guidesComponent = useCallback(function (_a) {
@@ -11581,18 +11582,27 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11581
11582
  className: "flex ".concat((_b = classNames === null || classNames === void 0 ? void 0 : classNames.container) !== null && _b !== void 0 ? _b : '')
11582
11583
  }, /*#__PURE__*/React__default.createElement(CameraVideoTag, {
11583
11584
  className: classNames.cameraFeed
11584
- }), captureState !== 'LOADING' && function () {
11585
+ }), function () {
11585
11586
  switch (captureState) {
11586
11587
  case 'CHECKING_LIVENESS':
11587
- return /*#__PURE__*/React__default.createElement(FaceLivenessCapture, {
11588
+ return /*#__PURE__*/React__default.createElement(FaceLivenessWizard, _assign({
11589
+ key: "face-liveness-".concat(attempt)
11590
+ }, faceLivenessProps, {
11588
11591
  onSuccess: onFaceCaptureSuccess,
11589
- onExit: onExit,
11592
+ onExitCapture: onExit,
11593
+ onUserCancel: onUserCancel,
11594
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
11595
+ customOverlayContent: customOverlayContent,
11596
+ loadingOverlayMode: loadingOverlayMode,
11590
11597
  guidesComponent: guidesComponent,
11598
+ assets: assets.faceLiveness,
11591
11599
  classNames: classNames.faceLiveness,
11592
11600
  colors: colors.faceLiveness,
11593
11601
  verbiage: verbiage.faceLiveness,
11594
- debugMode: debugMode
11595
- });
11602
+ debugMode: debugMode,
11603
+ releaseCameraAccessOnExit: false,
11604
+ renderCameraFeed: false
11605
+ }));
11596
11606
  case 'CAPTURING_SIGNATURE':
11597
11607
  return /*#__PURE__*/React__default.createElement(VideoSignatureCapture, {
11598
11608
  onVideoCaptured: onSignatureCaptureCompleted,
@@ -11617,18 +11627,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11617
11627
  default:
11618
11628
  return null;
11619
11629
  }
11620
- }()), /*#__PURE__*/React__default.createElement(SelfieCaptureLoadingOverlay, {
11621
- key: attempt,
11622
- mode: loadingOverlayMode,
11623
- assets: assets.loadingOverlay,
11624
- classNames: classNames.loadingOverlay,
11625
- colors: colors.loadingOverlay,
11626
- verbiage: verbiage.loadingOverlay,
11627
- onDismissed: onLoadingOverlayDismissed,
11628
- onUserCancel: onUserCancel,
11629
- customOverlayContent: customOverlayContent,
11630
- onCustomOverlayDismissed: onCustomOverlayDismissed
11631
- }));
11630
+ }()));
11632
11631
  };
11633
11632
 
11634
11633
  var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
@@ -12446,7 +12445,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12446
12445
  _t = _a.idCaptureLoadingOverlayMode,
12447
12446
  idCaptureLoadingOverlayMode = _t === void 0 ? 'default' : _t,
12448
12447
  customOverlayContent = _a.customOverlayContent,
12449
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
12448
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
12450
12449
  _u = _a.idCaptureGuideType,
12451
12450
  idCaptureGuideType = _u === void 0 ? 'fit' : _u,
12452
12451
  _v = _a.idCaptureGuideImages,
@@ -12603,7 +12602,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12603
12602
  key: "id-capture-".concat(attempt),
12604
12603
  loadingOverlayMode: idCaptureLoadingOverlayMode,
12605
12604
  customOverlayContent: customOverlayContent,
12606
- onCustomOverlayDismissed: onCustomOverlayDismissed,
12605
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
12607
12606
  silentFallback: silentFallback,
12608
12607
  guideImages: idCaptureGuideImages
12609
12608
  }, idCaptureProps, {
@@ -12626,7 +12625,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12626
12625
  key: "face-liveness-".concat(attempt),
12627
12626
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
12628
12627
  customOverlayContent: customOverlayContent,
12629
- onCustomOverlayDismissed: onCustomOverlayDismissed,
12628
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
12630
12629
  silentFallback: silentFallback
12631
12630
  }, faceLivenessProps, {
12632
12631
  onComplete: onFaceCaptureSuccess,
@@ -13165,7 +13164,7 @@ var IdValidation = function IdValidation(_a) {
13165
13164
  _c = _a.loadingOverlayMode,
13166
13165
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
13167
13166
  customOverlayContent = _a.customOverlayContent,
13168
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
13167
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
13169
13168
  _d = _a.idCaptureRequirement,
13170
13169
  idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
13171
13170
  _e = _a.separateIdCardCaptureSequence,
@@ -13242,7 +13241,7 @@ var IdValidation = function IdValidation(_a) {
13242
13241
  skipSuccessScreen: skipSuccessScreen,
13243
13242
  loadingOverlayMode: loadingOverlayMode,
13244
13243
  customOverlayContent: customOverlayContent,
13245
- onCustomOverlayDismissed: onCustomOverlayDismissed,
13244
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
13246
13245
  forceFallbackMode: forceFallbackMode,
13247
13246
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
13248
13247
  instructions: instructions,
@@ -13259,7 +13258,7 @@ var IdValidation = function IdValidation(_a) {
13259
13258
  verbiage: verbiage,
13260
13259
  debugMode: debugMode
13261
13260
  };
13262
- }, [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]);
13263
13262
  var additionalDocumentCaptureProps = useMemo(function () {
13264
13263
  return {
13265
13264
  documents: captureAdditionalDocuments,
@@ -13404,7 +13403,7 @@ var FaceValidation = function FaceValidation(_a) {
13404
13403
  skipSuccessScreen: skipSuccessScreen,
13405
13404
  onComplete: onComplete,
13406
13405
  onSuccess: onApproved,
13407
- onTimeout: onDenied,
13406
+ onDenied: onDenied,
13408
13407
  onExitCapture: onExitCapture,
13409
13408
  onExitAfterFailure: onExitAfterFailure,
13410
13409
  onModelError: onModelError,
@@ -13582,7 +13581,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
13582
13581
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
13583
13582
  timeoutDurationMs: faceLivenessTimeoutDurationMs,
13584
13583
  modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
13585
- onTimeout: onDenied,
13584
+ onDenied: onDenied,
13586
13585
  onExitCapture: onExitCapture,
13587
13586
  onExitAfterFailure: onExitAfterFailure,
13588
13587
  onUserCancel: onUserCancel,
@@ -15072,7 +15071,7 @@ var SignatureKYC = function SignatureKYC(_a) {
15072
15071
  onUserCancel = _a.onUserCancel,
15073
15072
  onModelError = _a.onModelError,
15074
15073
  onCameraAccessDenied = _a.onCameraAccessDenied,
15075
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
15074
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
15076
15075
  _c = _a.loadingOverlayMode,
15077
15076
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
15078
15077
  customOverlayContent = _a.customOverlayContent,
@@ -15081,6 +15080,7 @@ var SignatureKYC = function SignatureKYC(_a) {
15081
15080
  idCardForFaceMatch = _a.idCardForFaceMatch,
15082
15081
  _e = _a.modelLoadTimeoutMs,
15083
15082
  modelLoadTimeoutMs = _e === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _e,
15083
+ faceLivenessProps = _a.faceLivenessProps,
15084
15084
  _f = _a.theme,
15085
15085
  theme = _f === void 0 ? 'default' : _f,
15086
15086
  classNames = _a.classNames,
@@ -15121,10 +15121,11 @@ var SignatureKYC = function SignatureKYC(_a) {
15121
15121
  videoSignatureCaptureProps: useMemo(function () {
15122
15122
  return {
15123
15123
  customOverlayContent: customOverlayContent,
15124
- onCustomOverlayDismissed: onCustomOverlayDismissed,
15124
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
15125
15125
  loadingOverlayMode: loadingOverlayMode,
15126
15126
  skipSuccessScreen: skipSuccessScreen,
15127
15127
  modelLoadTimeoutMs: modelLoadTimeoutMs,
15128
+ faceLivenessProps: faceLivenessProps,
15128
15129
  classNames: classNames,
15129
15130
  colors: colors,
15130
15131
  debugMode: debugMode,
@@ -15132,7 +15133,7 @@ var SignatureKYC = function SignatureKYC(_a) {
15132
15133
  onModelError: onModelError,
15133
15134
  onUserCancel: onUserCancel
15134
15135
  };
15135
- }, [customOverlayContent, onCustomOverlayDismissed, classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onModelError, onUserCancel, skipSuccessScreen, verbiage])
15136
+ }, [customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, modelLoadTimeoutMs, faceLivenessProps, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
15136
15137
  }))));
15137
15138
  };
15138
15139
 
@@ -15197,7 +15198,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15197
15198
  _k = _a.idCaptureLoadingOverlayMode,
15198
15199
  idCaptureLoadingOverlayMode = _k === void 0 ? 'default' : _k,
15199
15200
  customOverlayContent = _a.customOverlayContent,
15200
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
15201
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
15201
15202
  _l = _a.idCaptureGuideType,
15202
15203
  idCaptureGuideType = _l === void 0 ? 'fit' : _l,
15203
15204
  _m = _a.idCaptureGuideImages,
@@ -15260,7 +15261,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15260
15261
  skipShowIdCardBack: skipShowIdCardBack,
15261
15262
  idCaptureLoadingOverlayMode: idCaptureLoadingOverlayMode,
15262
15263
  customOverlayContent: customOverlayContent,
15263
- onCustomOverlayDismissed: onCustomOverlayDismissed,
15264
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
15264
15265
  idCaptureGuideType: idCaptureGuideType,
15265
15266
  idCaptureGuideImages: idCaptureGuideImages,
15266
15267
  idCapturePortraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
@@ -15276,7 +15277,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15276
15277
  verbiage: verbiage,
15277
15278
  debugMode: debugMode
15278
15279
  };
15279
- }, [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]);
15280
15281
  var additionalDocumentCaptureProps = useMemo(function () {
15281
15282
  return {
15282
15283
  documents: captureAdditionalDocuments,