idmission-web-sdk 2.3.72 → 2.3.73

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.73';
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({