idmission-web-sdk 2.2.153 → 2.2.154

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.2.153';
214
+ var webSdkVersion = '2.2.154';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -23028,10 +23028,13 @@
23028
23028
  }, []);
23029
23029
  var clearRecordedData = React.useCallback(function () {
23030
23030
  var _a;
23031
- recordingLock.current = false;
23032
23031
  onRecordingStopped.current = function () {
23033
- return setIsRecording(true);
23032
+ setSignatureVideoUrl(null);
23033
+ setSignatureVideoData(null);
23034
+ setIsRecording(true);
23035
+ onRecordingStopped.current = function () {};
23034
23036
  };
23037
+ recordingLock.current = false;
23035
23038
  setIsRecording(false);
23036
23039
  (_a = signatureRecorder.current) === null || _a === void 0 ? void 0 : _a.stop();
23037
23040
  }, []);
@@ -23360,7 +23363,7 @@
23360
23363
  colors = _c === void 0 ? {} : _c,
23361
23364
  _d = _a.verbiage,
23362
23365
  rawVerbiage = _d === void 0 ? {} : _d;
23363
- var signatureVideoUrl = useVideoSignatureContext().signatureVideoUrl;
23366
+ var signatureVideoUrl = React.useContext(SubmissionContext).signatureVideoUrl;
23364
23367
  var verbiage = useTranslations(rawVerbiage, {
23365
23368
  headingText: 'Video signature has been successfully captured!',
23366
23369
  retryBtnText: 'Retry',