idmission-web-sdk 2.2.13 → 2.2.15

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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.2.13';
214
+ var webSdkVersion = '2.2.15';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -21319,11 +21319,13 @@
21319
21319
  requestedAction: status === 'success' ? 'CAPTURE_SIGNATURE' : 'VERIFY_LIVENESS'
21320
21320
  });
21321
21321
  }, [classNames === null || classNames === void 0 ? void 0 : classNames.videoSignatureGuidesClassNames]);
21322
- var onExitAfterFailure = React.useCallback(function () {
21322
+ var onExitAfterFailureProp = faceLivenessProps === null || faceLivenessProps === void 0 ? void 0 : faceLivenessProps.onExitAfterFailure;
21323
+ var onExitAfterFailure = React.useCallback(function (resp, req) {
21324
+ onExitAfterFailureProp === null || onExitAfterFailureProp === void 0 ? void 0 : onExitAfterFailureProp(resp, req);
21323
21325
  if (allowSignatureAfterLivenessCheckFailure) {
21324
21326
  setCaptureState('CAPTURING_SIGNATURE');
21325
21327
  }
21326
- }, [allowSignatureAfterLivenessCheckFailure]);
21328
+ }, [allowSignatureAfterLivenessCheckFailure, onExitAfterFailureProp]);
21327
21329
  return /*#__PURE__*/React.createElement(VideoSignatureContextProvider, null, /*#__PURE__*/React.createElement(PageContainer, {
21328
21330
  className: "flex ".concat((_b = classNames === null || classNames === void 0 ? void 0 : classNames.container) !== null && _b !== void 0 ? _b : '')
21329
21331
  }, /*#__PURE__*/React.createElement(CameraVideoTag, {