idmission-web-sdk 2.3.40 → 2.3.41

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.3.40';
214
+ var webSdkVersion = '2.3.41';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -8721,7 +8721,7 @@
8721
8721
  stabilityThreshold = _c === void 0 ? 0.7 : _c;
8722
8722
  var face = faces[0];
8723
8723
  var faceNotDetected = faces.length === 0;
8724
- var faceNotCentered = requireVerticalFaceCentering,
8724
+ var faceNotCentered = false,
8725
8725
  faceLookingAway = false,
8726
8726
  faceTooClose = false,
8727
8727
  faceTooFar = false;
@@ -20987,7 +20987,7 @@
20987
20987
  });
20988
20988
  var satisfied = (_b = prediction === null || prediction === void 0 ? void 0 : prediction.faceReady) !== null && _b !== void 0 ? _b : false;
20989
20989
  if (typeof guidanceSatisfied === 'boolean') satisfied = guidanceSatisfied;
20990
- guidanceMessage || (guidanceMessage = satisfied ? verbiage.guidanceHoldStillText : (prediction === null || prediction === void 0 ? void 0 : prediction.faceLookingAway) ? verbiage.guidanceLookStraightText : (prediction === null || prediction === void 0 ? void 0 : prediction.faceTooClose) ? verbiage.guidanceMoveBackText : (prediction === null || prediction === void 0 ? void 0 : prediction.faceTooFar) ? verbiage.guidanceMoveForwardText : (prediction === null || prediction === void 0 ? void 0 : prediction.faceNotCentered) ? verbiage.guidanceMoveToCenterText : (prediction === null || prediction === void 0 ? void 0 : prediction.faceNotDetected) ? verbiage.guidanceNoFaceDetectedText : !(prediction === null || prediction === void 0 ? void 0 : prediction.faceIsStable) ? verbiage.guidanceNotStableText : '');
20990
+ guidanceMessage || (guidanceMessage = satisfied ? verbiage.guidanceHoldStillText : !prediction || (prediction === null || prediction === void 0 ? void 0 : prediction.faceNotDetected) ? verbiage.guidanceNoFaceDetectedText : (prediction === null || prediction === void 0 ? void 0 : prediction.faceNotCentered) ? verbiage.guidanceMoveToCenterText : (prediction === null || prediction === void 0 ? void 0 : prediction.faceLookingAway) ? verbiage.guidanceLookStraightText : (prediction === null || prediction === void 0 ? void 0 : prediction.faceTooClose) ? verbiage.guidanceMoveBackText : (prediction === null || prediction === void 0 ? void 0 : prediction.faceTooFar) ? verbiage.guidanceMoveForwardText : !(prediction === null || prediction === void 0 ? void 0 : prediction.faceIsStable) ? verbiage.guidanceNotStableText : '');
20991
20991
  if (guidanceError) {
20992
20992
  return /*#__PURE__*/React.createElement(SelfieCaptureFallback, {
20993
20993
  classNames: classNames.fallback
@@ -24031,7 +24031,7 @@
24031
24031
  setCaptureState('LOADING');
24032
24032
  }
24033
24033
  }, [cameraAccessDenied]);
24034
- var initialDelayOver = useTimeout(initialCaptureDelayMs).timedOut;
24034
+ var initialDelayOver = useTimeout(initialCaptureDelayMs, undefined, undefined, undefined, captureState === 'CAPTURING').timedOut;
24035
24035
  if (modelError) {
24036
24036
  return /*#__PURE__*/React.createElement(SelfieCaptureFallback, {
24037
24037
  onFinished: onFallbackImageCaptured,