idmission-web-sdk 2.3.16 → 2.3.17

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.16';
207
+ var webSdkVersion = '2.3.17';
208
208
 
209
209
  function getPlatform() {
210
210
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -14173,6 +14173,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
14173
14173
  });
14174
14174
  setCaptureState('CHECKING_LIVENESS');
14175
14175
  onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
14176
+ useVideoSignatureStore.getState().clearRecordedData();
14176
14177
  }, [onExitCapture]);
14177
14178
  var showSuccessScreen = useShowSuccessScreen(skipSuccessScreen, captureState === 'SUCCESS', onComplete);
14178
14179
  useEffect(function () {
@@ -15277,12 +15278,14 @@ var VideoIdWizard = function VideoIdWizard(_a) {
15277
15278
  return n + 1;
15278
15279
  });
15279
15280
  setCaptureState('CHECKING_LIVENESS');
15281
+ useVideoRecorderStore.getState().clearRecordedData();
15280
15282
  }, []);
15281
15283
  var handleExitCapture = useCallback(function () {
15282
15284
  setAttempt(function (n) {
15283
15285
  return n + 1;
15284
15286
  });
15285
15287
  onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
15288
+ useVideoRecorderStore.getState().clearRecordedData();
15286
15289
  }, [onExitCapture]);
15287
15290
  var capturedIdDocumentType = idDocumentType !== 'idCardOrPassport' ? idDocumentType : passportImage ? 'passport' : 'idCard';
15288
15291
  var faceLivenessGuides = useCallback(function (_a) {