idmission-web-sdk 2.3.72 → 2.3.74

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.72';
214
+ var webSdkVersion = '2.3.74';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -19977,16 +19977,15 @@
19977
19977
  var _a;
19978
19978
  var _b = useIdCaptureStore.getState(),
19979
19979
  captureState = _b.captureState,
19980
- requestedDocumentType = _b.requestedDocumentType,
19981
- detectedDocumentType = _b.detectedDocumentType;
19980
+ requestedDocumentType = _b.requestedDocumentType;
19982
19981
  var k = "".concat(requestedDocumentType, "DetectionThresholdMet");
19983
19982
  var thresholdMet = prediction[k];
19984
19983
  if (captureState === 'capturing') {
19985
- if (detectedDocumentType !== 'none') {
19984
+ if (prediction.detectedDocumentType !== 'none') {
19986
19985
  var now = Date.now();
19987
- if (!lastDocumentDetectedAt.current[detectedDocumentType] || documentDetectionThrottleMs && now - ((_a = lastDocumentDetectedAt.current[detectedDocumentType]) !== null && _a !== void 0 ? _a : 0) > documentDetectionThrottleMs) {
19988
- lastDocumentDetectedAt.current[detectedDocumentType] = now;
19989
- onDocumentDetected === null || onDocumentDetected === void 0 ? void 0 : onDocumentDetected(detectedDocumentType);
19986
+ if (!lastDocumentDetectedAt.current[prediction.detectedDocumentType] || documentDetectionThrottleMs && now - ((_a = lastDocumentDetectedAt.current[prediction.detectedDocumentType]) !== null && _a !== void 0 ? _a : 0) > documentDetectionThrottleMs) {
19987
+ lastDocumentDetectedAt.current[prediction.detectedDocumentType] = now;
19988
+ onDocumentDetected === null || onDocumentDetected === void 0 ? void 0 : onDocumentDetected(prediction.detectedDocumentType);
19990
19989
  }
19991
19990
  }
19992
19991
  dispatchIdCaptureAction({
@@ -20206,10 +20205,10 @@
20206
20205
  imageUrl: state.imageUrl
20207
20206
  })), state.captureState !== 'complete' && ( /*#__PURE__*/React.createElement("div", {
20208
20207
  id: "idmission-above-guides-content"
20209
- })), /*#__PURE__*/React.createElement(ExitCaptureButton, {
20208
+ })), (!customOverlayContent || !!customOverlayContent && overlayDismissed) && ( /*#__PURE__*/React.createElement(ExitCaptureButton, {
20210
20209
  onClick: onExit,
20211
20210
  className: (_f = classNames.capture) === null || _f === void 0 ? void 0 : _f.exitCaptureBtn
20212
- }), !overlayDismissed && ( /*#__PURE__*/React.createElement(IdCaptureLoadingOverlay, {
20211
+ })), !overlayDismissed && ( /*#__PURE__*/React.createElement(IdCaptureLoadingOverlay, {
20213
20212
  key: "loading".concat(attempt),
20214
20213
  mode: loadingOverlayMode,
20215
20214
  customOverlayContent: customOverlayContent,