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