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.
package/dist/sdk2.esm.js CHANGED
@@ -205,7 +205,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
205
205
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
206
206
  };
207
207
 
208
- var webSdkVersion = '2.3.72';
208
+ var webSdkVersion = '2.3.74';
209
209
 
210
210
  function getPlatform() {
211
211
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -10663,16 +10663,15 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
10663
10663
  var _a;
10664
10664
  var _b = useIdCaptureStore.getState(),
10665
10665
  captureState = _b.captureState,
10666
- requestedDocumentType = _b.requestedDocumentType,
10667
- detectedDocumentType = _b.detectedDocumentType;
10666
+ requestedDocumentType = _b.requestedDocumentType;
10668
10667
  var k = "".concat(requestedDocumentType, "DetectionThresholdMet");
10669
10668
  var thresholdMet = prediction[k];
10670
10669
  if (captureState === 'capturing') {
10671
- if (detectedDocumentType !== 'none') {
10670
+ if (prediction.detectedDocumentType !== 'none') {
10672
10671
  var now = Date.now();
10673
- if (!lastDocumentDetectedAt.current[detectedDocumentType] || documentDetectionThrottleMs && now - ((_a = lastDocumentDetectedAt.current[detectedDocumentType]) !== null && _a !== void 0 ? _a : 0) > documentDetectionThrottleMs) {
10674
- lastDocumentDetectedAt.current[detectedDocumentType] = now;
10675
- onDocumentDetected === null || onDocumentDetected === void 0 ? void 0 : onDocumentDetected(detectedDocumentType);
10672
+ if (!lastDocumentDetectedAt.current[prediction.detectedDocumentType] || documentDetectionThrottleMs && now - ((_a = lastDocumentDetectedAt.current[prediction.detectedDocumentType]) !== null && _a !== void 0 ? _a : 0) > documentDetectionThrottleMs) {
10673
+ lastDocumentDetectedAt.current[prediction.detectedDocumentType] = now;
10674
+ onDocumentDetected === null || onDocumentDetected === void 0 ? void 0 : onDocumentDetected(prediction.detectedDocumentType);
10676
10675
  }
10677
10676
  }
10678
10677
  dispatchIdCaptureAction({
@@ -10892,10 +10891,10 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
10892
10891
  imageUrl: state.imageUrl
10893
10892
  })), state.captureState !== 'complete' && ( /*#__PURE__*/React__default.createElement("div", {
10894
10893
  id: "idmission-above-guides-content"
10895
- })), /*#__PURE__*/React__default.createElement(ExitCaptureButton, {
10894
+ })), (!customOverlayContent || !!customOverlayContent && overlayDismissed) && ( /*#__PURE__*/React__default.createElement(ExitCaptureButton, {
10896
10895
  onClick: onExit,
10897
10896
  className: (_f = classNames.capture) === null || _f === void 0 ? void 0 : _f.exitCaptureBtn
10898
- }), !overlayDismissed && ( /*#__PURE__*/React__default.createElement(IdCaptureLoadingOverlay, {
10897
+ })), !overlayDismissed && ( /*#__PURE__*/React__default.createElement(IdCaptureLoadingOverlay, {
10899
10898
  key: "loading".concat(attempt),
10900
10899
  mode: loadingOverlayMode,
10901
10900
  customOverlayContent: customOverlayContent,