idmission-web-sdk 2.3.15 → 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.15';
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 () {
@@ -15266,6 +15267,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
15266
15267
  return n + 1;
15267
15268
  });
15268
15269
  setCaptureState('CAPTURING_ID');
15270
+ useVideoRecorderStore.getState().clearRecordedData();
15269
15271
  }, []);
15270
15272
  var isCapturingId = !skipIdCapture && ['LOADING', 'CAPTURING_ID'].includes(captureState);
15271
15273
  useEffect(function () {
@@ -15276,12 +15278,14 @@ var VideoIdWizard = function VideoIdWizard(_a) {
15276
15278
  return n + 1;
15277
15279
  });
15278
15280
  setCaptureState('CHECKING_LIVENESS');
15281
+ useVideoRecorderStore.getState().clearRecordedData();
15279
15282
  }, []);
15280
15283
  var handleExitCapture = useCallback(function () {
15281
15284
  setAttempt(function (n) {
15282
15285
  return n + 1;
15283
15286
  });
15284
15287
  onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
15288
+ useVideoRecorderStore.getState().clearRecordedData();
15285
15289
  }, [onExitCapture]);
15286
15290
  var capturedIdDocumentType = idDocumentType !== 'idCardOrPassport' ? idDocumentType : passportImage ? 'passport' : 'idCard';
15287
15291
  var faceLivenessGuides = useCallback(function (_a) {