idmission-web-sdk 2.2.129 → 2.2.130

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.129';
214
+ var webSdkVersion = '2.2.130';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -20882,6 +20882,7 @@
20882
20882
  type: 'guidanceUnsatisfied'
20883
20883
  });
20884
20884
  }, []);
20885
+ var been1s = useTimeout(1000).timedOut;
20885
20886
  if (modelError) {
20886
20887
  return /*#__PURE__*/React.createElement(SelfieCaptureFallback, {
20887
20888
  key: state.timesLivenessCheckFailed,
@@ -20898,7 +20899,7 @@
20898
20899
  }), /*#__PURE__*/React.createElement(InvisibleCanvas, {
20899
20900
  ref: resizeCanvas
20900
20901
  }), /*#__PURE__*/React.createElement(SelfieCapture, {
20901
- shouldCapture: state.requestState === 'CAPTURING',
20902
+ shouldCapture: state.requestState === 'CAPTURING' && been1s,
20902
20903
  onFaceDetected: onFaceDetected,
20903
20904
  onSelfieCaptureStarted: onSelfieCaptureStarted,
20904
20905
  onSelfieCaptured: onSelfieCaptured,