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.
@@ -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.16';
214
+ var webSdkVersion = '2.3.17';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -24079,6 +24079,7 @@
24079
24079
  });
24080
24080
  setCaptureState('CHECKING_LIVENESS');
24081
24081
  onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
24082
+ useVideoSignatureStore.getState().clearRecordedData();
24082
24083
  }, [onExitCapture]);
24083
24084
  var showSuccessScreen = useShowSuccessScreen(skipSuccessScreen, captureState === 'SUCCESS', onComplete);
24084
24085
  React.useEffect(function () {
@@ -25183,12 +25184,14 @@
25183
25184
  return n + 1;
25184
25185
  });
25185
25186
  setCaptureState('CHECKING_LIVENESS');
25187
+ useVideoRecorderStore.getState().clearRecordedData();
25186
25188
  }, []);
25187
25189
  var handleExitCapture = React.useCallback(function () {
25188
25190
  setAttempt(function (n) {
25189
25191
  return n + 1;
25190
25192
  });
25191
25193
  onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
25194
+ useVideoRecorderStore.getState().clearRecordedData();
25192
25195
  }, [onExitCapture]);
25193
25196
  var capturedIdDocumentType = idDocumentType !== 'idCardOrPassport' ? idDocumentType : passportImage ? 'passport' : 'idCard';
25194
25197
  var faceLivenessGuides = React.useCallback(function (_a) {