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.
package/dist/sdk2.esm.js CHANGED
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
204
204
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
205
205
  };
206
206
 
207
- var webSdkVersion = '2.3.40';
207
+ var webSdkVersion = '2.3.41';
208
208
 
209
209
  function getPlatform() {
210
210
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -2816,7 +2816,7 @@ function processFaceDetectorPrediction(_a) {
2816
2816
  stabilityThreshold = _c === void 0 ? 0.7 : _c;
2817
2817
  var face = faces[0];
2818
2818
  var faceNotDetected = faces.length === 0;
2819
- var faceNotCentered = requireVerticalFaceCentering,
2819
+ var faceNotCentered = false,
2820
2820
  faceLookingAway = false,
2821
2821
  faceTooClose = false,
2822
2822
  faceTooFar = false;
@@ -11849,7 +11849,7 @@ var SelfieCapture = function SelfieCapture(_a) {
11849
11849
  });
11850
11850
  var satisfied = (_b = prediction === null || prediction === void 0 ? void 0 : prediction.faceReady) !== null && _b !== void 0 ? _b : false;
11851
11851
  if (typeof guidanceSatisfied === 'boolean') satisfied = guidanceSatisfied;
11852
- 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 : '');
11852
+ 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 : '');
11853
11853
  if (guidanceError) {
11854
11854
  return /*#__PURE__*/React__default.createElement(SelfieCaptureFallback, {
11855
11855
  classNames: classNames.fallback
@@ -14125,7 +14125,7 @@ function SelfieCaptureWizard(_a) {
14125
14125
  setCaptureState('LOADING');
14126
14126
  }
14127
14127
  }, [cameraAccessDenied]);
14128
- var initialDelayOver = useTimeout(initialCaptureDelayMs).timedOut;
14128
+ var initialDelayOver = useTimeout(initialCaptureDelayMs, undefined, undefined, undefined, captureState === 'CAPTURING').timedOut;
14129
14129
  if (modelError) {
14130
14130
  return /*#__PURE__*/React__default.createElement(SelfieCaptureFallback, {
14131
14131
  onFinished: onFallbackImageCaptured,