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
@@ -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.10';
233
+ var webSdkVersion = '2.2.12';
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, {
@@ -9712,7 +9710,9 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
9712
9710
  var _b, _c, _d, _e;
9713
9711
  var onCapture = _a.onCapture,
9714
9712
  onSuccess = _a.onSuccess,
9713
+ onFailure = _a.onFailure,
9715
9714
  onTimeout = _a.onTimeout,
9715
+ onDenied = _a.onDenied,
9716
9716
  onExit = _a.onExit,
9717
9717
  _f = _a.timeoutDurationMs,
9718
9718
  timeoutDurationMs = _f === void 0 ? 15000 : _f,
@@ -9823,14 +9823,12 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
9823
9823
  return [4 /*yield*/, dataUrlToBase64(imageUrl)];
9824
9824
  case 2:
9825
9825
  imageData = _b.sent();
9826
- return [4 /*yield*/, checkLiveness(imageData)
9827
- // todo: JN - this feels dirty and is the reason for the todo around line 83 - but is necessary to handle fallback liveness validation
9828
- ];
9826
+ return [4 /*yield*/, checkLiveness(imageData)];
9829
9827
  case 3:
9830
9828
  response = _b.sent();
9831
- // todo: JN - this feels dirty and is the reason for the todo around line 83 - but is necessary to handle fallback liveness validation
9832
9829
  if (((_a = response === null || response === void 0 ? void 0 : response.resultData) === null || _a === void 0 ? void 0 : _a.verificationResult) !== 'Live Face Detected') {
9833
- onTimeout === null || onTimeout === void 0 ? void 0 : onTimeout();
9830
+ onFailure === null || onFailure === void 0 ? void 0 : onFailure();
9831
+ onDenied === null || onDenied === void 0 ? void 0 : onDenied();
9834
9832
  }
9835
9833
  dispatch({
9836
9834
  type: 'livenessChecked',
@@ -9854,7 +9852,7 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
9854
9852
  }
9855
9853
  });
9856
9854
  });
9857
- }, [checkLiveness, onTimeout]);
9855
+ }, [checkLiveness, onFailure, onDenied]);
9858
9856
  React.useEffect(function () {
9859
9857
  if (state.requestState === 'FAILED' || state.requestState === 'ERROR') {
9860
9858
  setTimeout(function () {
@@ -9871,10 +9869,15 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
9871
9869
  if (modelError) return;
9872
9870
  var allowedFailures = 2;
9873
9871
  if (state.timesLivenessCheckFailed > allowedFailures) {
9874
- onTimeout === null || onTimeout === void 0 ? void 0 : onTimeout();
9875
- }
9876
- }, [modelError, onTimeout, state.timesLivenessCheckFailed]);
9877
- useTimeout(timeoutDurationMs, onTimeout, state.requestState === 'PASSED' || !!modelError, state.requestState === 'IN_PROGRESS');
9872
+ onFailure === null || onFailure === void 0 ? void 0 : onFailure();
9873
+ onDenied === null || onDenied === void 0 ? void 0 : onDenied();
9874
+ }
9875
+ }, [modelError, onFailure, onDenied, state.timesLivenessCheckFailed]);
9876
+ var callOnTimeoutHooks = React.useCallback(function () {
9877
+ onTimeout === null || onTimeout === void 0 ? void 0 : onTimeout();
9878
+ onDenied === null || onDenied === void 0 ? void 0 : onDenied();
9879
+ }, [onDenied, onTimeout]);
9880
+ useTimeout(timeoutDurationMs, callOnTimeoutHooks, state.requestState === 'PASSED' || !!modelError, state.requestState === 'IN_PROGRESS');
9878
9881
  var verbiage = useTranslations(rawVerbiage, {
9879
9882
  guidanceLivenessCheckFailedText: 'Could not verify your face.',
9880
9883
  guidanceLivenessCheckErrorText: 'An error occurred while verifying your face.',
@@ -10177,7 +10180,6 @@ var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png"
10177
10180
  var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
10178
10181
  var onDismissed = _a.onDismissed,
10179
10182
  onUserCancel = _a.onUserCancel,
10180
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
10181
10183
  _b = _a.assets,
10182
10184
  assets = _b === void 0 ? {} : _b,
10183
10185
  _c = _a.classNames,
@@ -10290,7 +10292,6 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
10290
10292
  onClick: function onClick() {
10291
10293
  setDismissed(true);
10292
10294
  onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
10293
- onCustomOverlayDismissed === null || onCustomOverlayDismissed === void 0 ? void 0 : onCustomOverlayDismissed();
10294
10295
  }
10295
10296
  }, verbiage.continueText))))));
10296
10297
  };
@@ -10362,14 +10363,16 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10362
10363
  var _b, _c, _d;
10363
10364
  var onComplete = _a.onComplete,
10364
10365
  onSuccess = _a.onSuccess,
10366
+ onFailure = _a.onFailure,
10365
10367
  onTimeout = _a.onTimeout,
10368
+ onDenied = _a.onDenied,
10366
10369
  onExitCapture = _a.onExitCapture,
10367
10370
  onExitAfterFailure = _a.onExitAfterFailure,
10368
10371
  onUserCancel = _a.onUserCancel,
10369
10372
  _e = _a.loadingOverlayMode,
10370
10373
  loadingOverlayMode = _e === void 0 ? 'default' : _e,
10371
10374
  customOverlayContent = _a.customOverlayContent,
10372
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
10375
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
10373
10376
  _f = _a.timeoutDurationMs,
10374
10377
  timeoutDurationMs = _f === void 0 ? 15000 : _f,
10375
10378
  _g = _a.maxRetries,
@@ -10460,11 +10463,18 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10460
10463
  });
10461
10464
  });
10462
10465
  }, [onSuccess, setSelfieImage, livenessCheckRequest, submissionResponse]);
10463
- // 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
10464
- var onFailureOrTimeout = React.useCallback(function () {
10466
+ var onFailureCallback = React.useCallback(function () {
10467
+ return __awaiter(void 0, void 0, void 0, function () {
10468
+ return __generator(this, function (_a) {
10469
+ onFailure === null || onFailure === void 0 ? void 0 : onFailure(submissionResponse, livenessCheckRequest);
10470
+ return [2 /*return*/];
10471
+ });
10472
+ });
10473
+ }, [livenessCheckRequest, onFailure, submissionResponse]);
10474
+ var onDeniedCallback = React.useCallback(function () {
10465
10475
  setCaptureState('FAILED');
10466
- onTimeout === null || onTimeout === void 0 ? void 0 : onTimeout(submissionResponse, livenessCheckRequest);
10467
- }, [onTimeout, livenessCheckRequest, submissionResponse]);
10476
+ onDenied === null || onDenied === void 0 ? void 0 : onDenied(submissionResponse, livenessCheckRequest);
10477
+ }, [onDenied, submissionResponse, livenessCheckRequest]);
10468
10478
  var _y = React.useState(0),
10469
10479
  attempt = _y[0],
10470
10480
  setAttempt = _y[1];
@@ -10505,9 +10515,10 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10505
10515
  setCaptureState('LOADING');
10506
10516
  }
10507
10517
  }, [cameraAccessDenied]);
10508
- var onLoadingOverlayDismissed = React.useCallback(function () {
10518
+ var onLoadingOverlayDismissedCallback = React.useCallback(function () {
10509
10519
  setCaptureState('CAPTURING');
10510
- }, []);
10520
+ onLoadingOverlayDismissed === null || onLoadingOverlayDismissed === void 0 ? void 0 : onLoadingOverlayDismissed();
10521
+ }, [onLoadingOverlayDismissed]);
10511
10522
  var onFailureExitClick = React.useCallback(function () {
10512
10523
  releaseCameraAccessOnExit && releaseCameraAccess();
10513
10524
  setTimeout(function () {
@@ -10525,7 +10536,9 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10525
10536
  key: "capture".concat(attempt),
10526
10537
  onCapture: onCapture,
10527
10538
  onSuccess: onSuccessCallback,
10528
- onTimeout: onFailureOrTimeout,
10539
+ onFailure: onFailureCallback,
10540
+ onTimeout: onTimeout,
10541
+ onDenied: onDeniedCallback,
10529
10542
  onExit: onExitCallback,
10530
10543
  timeoutDurationMs: timeoutDurationMs,
10531
10544
  silentFallback: silentFallback,
@@ -10565,13 +10578,12 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
10565
10578
  key: attempt,
10566
10579
  mode: loadingOverlayMode,
10567
10580
  customOverlayContent: customOverlayContent,
10568
- onCustomOverlayDismissed: onCustomOverlayDismissed,
10569
10581
  assets: assets.loadingOverlay,
10570
10582
  classNames: classNames.loadingOverlay,
10571
10583
  colors: colors.loadingOverlay,
10572
10584
  verbiage: verbiage.loadingOverlay,
10573
10585
  onUserCancel: onUserCancel,
10574
- onDismissed: onLoadingOverlayDismissed
10586
+ onDismissed: onLoadingOverlayDismissedCallback
10575
10587
  }));
10576
10588
  };
10577
10589
 
@@ -11479,12 +11491,13 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11479
11491
  onRetryClicked = _a.onRetryClicked,
11480
11492
  onExitCapture = _a.onExitCapture,
11481
11493
  onUserCancel = _a.onUserCancel,
11482
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
11494
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
11483
11495
  _c = _a.loadingOverlayMode,
11484
11496
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
11485
11497
  customOverlayContent = _a.customOverlayContent,
11486
11498
  _d = _a.skipSuccessScreen,
11487
11499
  skipSuccessScreen = _d === void 0 ? false : _d,
11500
+ faceLivenessProps = _a.faceLivenessProps,
11488
11501
  _e = _a.assets,
11489
11502
  assets = _e === void 0 ? {} : _e,
11490
11503
  _f = _a.classNames,
@@ -11505,7 +11518,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11505
11518
  cameraAccessDenied = _l.cameraAccessDenied,
11506
11519
  requestCameraAccess = _l.requestCameraAccess,
11507
11520
  releaseCameraAccess = _l.releaseCameraAccess;
11508
- var _m = React.useState('LOADING'),
11521
+ var _m = React.useState('CHECKING_LIVENESS'),
11509
11522
  captureState = _m[0],
11510
11523
  setCaptureState = _m[1];
11511
11524
  var operationStartedAt = React.useRef();
@@ -11538,29 +11551,17 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11538
11551
  });
11539
11552
  operationStartedAt.current = new Date();
11540
11553
  }, [logSelfieCaptureAttempt]);
11541
- var onLoadingOverlayDismissed = React.useCallback(function () {
11542
- setCaptureState('CHECKING_LIVENESS');
11543
- }, []);
11544
- var onFaceCaptureSuccess = React.useCallback(function (faceCropImageUrl) {
11545
- return __awaiter(void 0, void 0, void 0, function () {
11546
- var _a;
11547
- return __generator(this, function (_b) {
11548
- switch (_b.label) {
11549
- case 0:
11550
- setCaptureState('CAPTURING_SIGNATURE');
11551
- logCaptureMetadata();
11552
- if (!!selfieImage) return [3 /*break*/, 2];
11553
- _a = setSelfieImage;
11554
- return [4 /*yield*/, dataUrlToBase64(faceCropImageUrl)];
11555
- case 1:
11556
- _a.apply(void 0, [_b.sent()]);
11557
- _b.label = 2;
11558
- case 2:
11559
- return [2 /*return*/];
11560
- }
11561
- });
11562
- });
11563
- }, [logCaptureMetadata, selfieImage, setSelfieImage]);
11554
+ var onFaceLivenessSuccessProp = faceLivenessProps === null || faceLivenessProps === void 0 ? void 0 : faceLivenessProps.onSuccess;
11555
+ var onFaceCaptureSuccess = React.useCallback(function (response, request) {
11556
+ var _a, _b;
11557
+ onFaceLivenessSuccessProp === null || onFaceLivenessSuccessProp === void 0 ? void 0 : onFaceLivenessSuccessProp(response, request);
11558
+ setCaptureState('CAPTURING_SIGNATURE');
11559
+ logCaptureMetadata();
11560
+ var selfieFromRequest = (_b = (_a = request.customerData) === null || _a === void 0 ? void 0 : _a.biometricData) === null || _b === void 0 ? void 0 : _b.selfie;
11561
+ if (!selfieImage && selfieFromRequest) {
11562
+ setSelfieImage(selfieFromRequest);
11563
+ }
11564
+ }, [logCaptureMetadata, onFaceLivenessSuccessProp, selfieImage, setSelfieImage]);
11564
11565
  var _p = React.useState(null),
11565
11566
  signatureImageUrl = _p[0],
11566
11567
  setSignatureImageUrl = _p[1];
@@ -11582,7 +11583,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11582
11583
  setAttempt(function (n) {
11583
11584
  return n + 1;
11584
11585
  });
11585
- setCaptureState('LOADING');
11586
+ setCaptureState('CHECKING_LIVENESS');
11586
11587
  onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
11587
11588
  requestCameraAccess();
11588
11589
  }, [onExitCapture, releaseCameraAccess, requestCameraAccess]);
@@ -11596,7 +11597,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11596
11597
  setAttempt(function (n) {
11597
11598
  return n + 1;
11598
11599
  });
11599
- setCaptureState('LOADING');
11600
+ setCaptureState('CHECKING_LIVENESS');
11600
11601
  }
11601
11602
  }, [cameraAccessDenied]);
11602
11603
  var guidesComponent = React.useCallback(function (_a) {
@@ -11611,18 +11612,27 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11611
11612
  className: "flex ".concat((_b = classNames === null || classNames === void 0 ? void 0 : classNames.container) !== null && _b !== void 0 ? _b : '')
11612
11613
  }, /*#__PURE__*/React__namespace.default.createElement(CameraVideoTag, {
11613
11614
  className: classNames.cameraFeed
11614
- }), captureState !== 'LOADING' && function () {
11615
+ }), function () {
11615
11616
  switch (captureState) {
11616
11617
  case 'CHECKING_LIVENESS':
11617
- return /*#__PURE__*/React__namespace.default.createElement(FaceLivenessCapture, {
11618
+ return /*#__PURE__*/React__namespace.default.createElement(FaceLivenessWizard, _assign({
11619
+ key: "face-liveness-".concat(attempt)
11620
+ }, faceLivenessProps, {
11618
11621
  onSuccess: onFaceCaptureSuccess,
11619
- onExit: onExit,
11622
+ onExitCapture: onExit,
11623
+ onUserCancel: onUserCancel,
11624
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
11625
+ customOverlayContent: customOverlayContent,
11626
+ loadingOverlayMode: loadingOverlayMode,
11620
11627
  guidesComponent: guidesComponent,
11628
+ assets: assets.faceLiveness,
11621
11629
  classNames: classNames.faceLiveness,
11622
11630
  colors: colors.faceLiveness,
11623
11631
  verbiage: verbiage.faceLiveness,
11624
- debugMode: debugMode
11625
- });
11632
+ debugMode: debugMode,
11633
+ releaseCameraAccessOnExit: false,
11634
+ renderCameraFeed: false
11635
+ }));
11626
11636
  case 'CAPTURING_SIGNATURE':
11627
11637
  return /*#__PURE__*/React__namespace.default.createElement(VideoSignatureCapture, {
11628
11638
  onVideoCaptured: onSignatureCaptureCompleted,
@@ -11647,18 +11657,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
11647
11657
  default:
11648
11658
  return null;
11649
11659
  }
11650
- }()), /*#__PURE__*/React__namespace.default.createElement(SelfieCaptureLoadingOverlay, {
11651
- key: attempt,
11652
- mode: loadingOverlayMode,
11653
- assets: assets.loadingOverlay,
11654
- classNames: classNames.loadingOverlay,
11655
- colors: colors.loadingOverlay,
11656
- verbiage: verbiage.loadingOverlay,
11657
- onDismissed: onLoadingOverlayDismissed,
11658
- onUserCancel: onUserCancel,
11659
- customOverlayContent: customOverlayContent,
11660
- onCustomOverlayDismissed: onCustomOverlayDismissed
11661
- }));
11660
+ }()));
11662
11661
  };
11663
11662
 
11664
11663
  var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
@@ -12476,7 +12475,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12476
12475
  _t = _a.idCaptureLoadingOverlayMode,
12477
12476
  idCaptureLoadingOverlayMode = _t === void 0 ? 'default' : _t,
12478
12477
  customOverlayContent = _a.customOverlayContent,
12479
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
12478
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
12480
12479
  _u = _a.idCaptureGuideType,
12481
12480
  idCaptureGuideType = _u === void 0 ? 'fit' : _u,
12482
12481
  _v = _a.idCaptureGuideImages,
@@ -12633,7 +12632,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12633
12632
  key: "id-capture-".concat(attempt),
12634
12633
  loadingOverlayMode: idCaptureLoadingOverlayMode,
12635
12634
  customOverlayContent: customOverlayContent,
12636
- onCustomOverlayDismissed: onCustomOverlayDismissed,
12635
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
12637
12636
  silentFallback: silentFallback,
12638
12637
  guideImages: idCaptureGuideImages
12639
12638
  }, idCaptureProps, {
@@ -12656,7 +12655,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12656
12655
  key: "face-liveness-".concat(attempt),
12657
12656
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
12658
12657
  customOverlayContent: customOverlayContent,
12659
- onCustomOverlayDismissed: onCustomOverlayDismissed,
12658
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
12660
12659
  silentFallback: silentFallback
12661
12660
  }, faceLivenessProps, {
12662
12661
  onComplete: onFaceCaptureSuccess,
@@ -13195,7 +13194,7 @@ var IdValidation = function IdValidation(_a) {
13195
13194
  _c = _a.loadingOverlayMode,
13196
13195
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
13197
13196
  customOverlayContent = _a.customOverlayContent,
13198
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
13197
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
13199
13198
  _d = _a.idCaptureRequirement,
13200
13199
  idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
13201
13200
  _e = _a.separateIdCardCaptureSequence,
@@ -13272,7 +13271,7 @@ var IdValidation = function IdValidation(_a) {
13272
13271
  skipSuccessScreen: skipSuccessScreen,
13273
13272
  loadingOverlayMode: loadingOverlayMode,
13274
13273
  customOverlayContent: customOverlayContent,
13275
- onCustomOverlayDismissed: onCustomOverlayDismissed,
13274
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
13276
13275
  forceFallbackMode: forceFallbackMode,
13277
13276
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
13278
13277
  instructions: instructions,
@@ -13289,7 +13288,7 @@ var IdValidation = function IdValidation(_a) {
13289
13288
  verbiage: verbiage,
13290
13289
  debugMode: debugMode
13291
13290
  };
13292
- }, [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]);
13291
+ }, [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]);
13293
13292
  var additionalDocumentCaptureProps = React.useMemo(function () {
13294
13293
  return {
13295
13294
  documents: captureAdditionalDocuments,
@@ -13434,7 +13433,7 @@ var FaceValidation = function FaceValidation(_a) {
13434
13433
  skipSuccessScreen: skipSuccessScreen,
13435
13434
  onComplete: onComplete,
13436
13435
  onSuccess: onApproved,
13437
- onTimeout: onDenied,
13436
+ onDenied: onDenied,
13438
13437
  onExitCapture: onExitCapture,
13439
13438
  onExitAfterFailure: onExitAfterFailure,
13440
13439
  onModelError: onModelError,
@@ -13612,7 +13611,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
13612
13611
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
13613
13612
  timeoutDurationMs: faceLivenessTimeoutDurationMs,
13614
13613
  modelLoadTimeoutMs: selfieCaptureModelLoadTimeoutMs,
13615
- onTimeout: onDenied,
13614
+ onDenied: onDenied,
13616
13615
  onExitCapture: onExitCapture,
13617
13616
  onExitAfterFailure: onExitAfterFailure,
13618
13617
  onUserCancel: onUserCancel,
@@ -15102,7 +15101,7 @@ var SignatureKYC = function SignatureKYC(_a) {
15102
15101
  onUserCancel = _a.onUserCancel,
15103
15102
  onModelError = _a.onModelError,
15104
15103
  onCameraAccessDenied = _a.onCameraAccessDenied,
15105
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
15104
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
15106
15105
  _c = _a.loadingOverlayMode,
15107
15106
  loadingOverlayMode = _c === void 0 ? 'default' : _c,
15108
15107
  customOverlayContent = _a.customOverlayContent,
@@ -15111,6 +15110,7 @@ var SignatureKYC = function SignatureKYC(_a) {
15111
15110
  idCardForFaceMatch = _a.idCardForFaceMatch,
15112
15111
  _e = _a.modelLoadTimeoutMs,
15113
15112
  modelLoadTimeoutMs = _e === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _e,
15113
+ faceLivenessProps = _a.faceLivenessProps,
15114
15114
  _f = _a.theme,
15115
15115
  theme = _f === void 0 ? 'default' : _f,
15116
15116
  classNames = _a.classNames,
@@ -15151,10 +15151,11 @@ var SignatureKYC = function SignatureKYC(_a) {
15151
15151
  videoSignatureCaptureProps: React.useMemo(function () {
15152
15152
  return {
15153
15153
  customOverlayContent: customOverlayContent,
15154
- onCustomOverlayDismissed: onCustomOverlayDismissed,
15154
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
15155
15155
  loadingOverlayMode: loadingOverlayMode,
15156
15156
  skipSuccessScreen: skipSuccessScreen,
15157
15157
  modelLoadTimeoutMs: modelLoadTimeoutMs,
15158
+ faceLivenessProps: faceLivenessProps,
15158
15159
  classNames: classNames,
15159
15160
  colors: colors,
15160
15161
  debugMode: debugMode,
@@ -15162,7 +15163,7 @@ var SignatureKYC = function SignatureKYC(_a) {
15162
15163
  onModelError: onModelError,
15163
15164
  onUserCancel: onUserCancel
15164
15165
  };
15165
- }, [customOverlayContent, onCustomOverlayDismissed, classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onModelError, onUserCancel, skipSuccessScreen, verbiage])
15166
+ }, [customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, modelLoadTimeoutMs, faceLivenessProps, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
15166
15167
  }))));
15167
15168
  };
15168
15169
 
@@ -15227,7 +15228,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15227
15228
  _k = _a.idCaptureLoadingOverlayMode,
15228
15229
  idCaptureLoadingOverlayMode = _k === void 0 ? 'default' : _k,
15229
15230
  customOverlayContent = _a.customOverlayContent,
15230
- onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
15231
+ onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
15231
15232
  _l = _a.idCaptureGuideType,
15232
15233
  idCaptureGuideType = _l === void 0 ? 'fit' : _l,
15233
15234
  _m = _a.idCaptureGuideImages,
@@ -15290,7 +15291,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15290
15291
  skipShowIdCardBack: skipShowIdCardBack,
15291
15292
  idCaptureLoadingOverlayMode: idCaptureLoadingOverlayMode,
15292
15293
  customOverlayContent: customOverlayContent,
15293
- onCustomOverlayDismissed: onCustomOverlayDismissed,
15294
+ onLoadingOverlayDismissed: onLoadingOverlayDismissed,
15294
15295
  idCaptureGuideType: idCaptureGuideType,
15295
15296
  idCaptureGuideImages: idCaptureGuideImages,
15296
15297
  idCapturePortraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
@@ -15306,7 +15307,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15306
15307
  verbiage: verbiage,
15307
15308
  debugMode: debugMode
15308
15309
  };
15309
- }, [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]);
15310
+ }, [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]);
15310
15311
  var additionalDocumentCaptureProps = React.useMemo(function () {
15311
15312
  return {
15312
15313
  documents: captureAdditionalDocuments,