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.
@@ -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.15';
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 () {
@@ -25172,6 +25173,7 @@
25172
25173
  return n + 1;
25173
25174
  });
25174
25175
  setCaptureState('CAPTURING_ID');
25176
+ useVideoRecorderStore.getState().clearRecordedData();
25175
25177
  }, []);
25176
25178
  var isCapturingId = !skipIdCapture && ['LOADING', 'CAPTURING_ID'].includes(captureState);
25177
25179
  React.useEffect(function () {
@@ -25182,12 +25184,14 @@
25182
25184
  return n + 1;
25183
25185
  });
25184
25186
  setCaptureState('CHECKING_LIVENESS');
25187
+ useVideoRecorderStore.getState().clearRecordedData();
25185
25188
  }, []);
25186
25189
  var handleExitCapture = React.useCallback(function () {
25187
25190
  setAttempt(function (n) {
25188
25191
  return n + 1;
25189
25192
  });
25190
25193
  onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
25194
+ useVideoRecorderStore.getState().clearRecordedData();
25191
25195
  }, [onExitCapture]);
25192
25196
  var capturedIdDocumentType = idDocumentType !== 'idCardOrPassport' ? idDocumentType : passportImage ? 'passport' : 'idCard';
25193
25197
  var faceLivenessGuides = React.useCallback(function (_a) {