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.
package/dist/sdk2.esm.js CHANGED
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
203
203
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
204
204
  };
205
205
 
206
- var webSdkVersion = '2.2.153';
206
+ var webSdkVersion = '2.2.154';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -13136,10 +13136,13 @@ function VideoSignatureContextProvider(_a) {
13136
13136
  }, []);
13137
13137
  var clearRecordedData = useCallback(function () {
13138
13138
  var _a;
13139
- recordingLock.current = false;
13140
13139
  onRecordingStopped.current = function () {
13141
- return setIsRecording(true);
13140
+ setSignatureVideoUrl(null);
13141
+ setSignatureVideoData(null);
13142
+ setIsRecording(true);
13143
+ onRecordingStopped.current = function () {};
13142
13144
  };
13145
+ recordingLock.current = false;
13143
13146
  setIsRecording(false);
13144
13147
  (_a = signatureRecorder.current) === null || _a === void 0 ? void 0 : _a.stop();
13145
13148
  }, []);
@@ -13468,7 +13471,7 @@ var VideoSignatureSuccess = function VideoSignatureSuccess(_a) {
13468
13471
  colors = _c === void 0 ? {} : _c,
13469
13472
  _d = _a.verbiage,
13470
13473
  rawVerbiage = _d === void 0 ? {} : _d;
13471
- var signatureVideoUrl = useVideoSignatureContext().signatureVideoUrl;
13474
+ var signatureVideoUrl = useContext(SubmissionContext).signatureVideoUrl;
13472
13475
  var verbiage = useTranslations(rawVerbiage, {
13473
13476
  headingText: 'Video signature has been successfully captured!',
13474
13477
  retryBtnText: 'Retry',