idmission-web-sdk 2.2.152 → 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.152';
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
  }, []);
@@ -23341,7 +23344,9 @@
23341
23344
  }, verbiage.guidanceMessageText))), /*#__PURE__*/React.createElement(GuidesComponent, {
23342
23345
  status: "success",
23343
23346
  classNames: classNames.videoSignatureGuidesClassNames,
23344
- onClearSignaturePadClicked: restartVideoOnSignaturePadCleared ? clearRecordedData : undefined
23347
+ onClearSignaturePadClicked: restartVideoOnSignaturePadCleared ? function () {
23348
+ return setTimeout(clearRecordedData, 100);
23349
+ } : undefined
23345
23350
  }), debugMode && ( /*#__PURE__*/React.createElement(DebugStatsPane, null, "Video: ", camera === null || camera === void 0 ? void 0 : camera.width, "x", camera === null || camera === void 0 ? void 0 : camera.height, /*#__PURE__*/React.createElement("br", null), "Recording: ", isRecording ? 'true' : 'false')), /*#__PURE__*/React.createElement(ExitCaptureButton, {
23346
23351
  onClick: onExit,
23347
23352
  className: classNames.exitCaptureBtn
@@ -23358,7 +23363,7 @@
23358
23363
  colors = _c === void 0 ? {} : _c,
23359
23364
  _d = _a.verbiage,
23360
23365
  rawVerbiage = _d === void 0 ? {} : _d;
23361
- var signatureVideoUrl = useVideoSignatureContext().signatureVideoUrl;
23366
+ var signatureVideoUrl = React.useContext(SubmissionContext).signatureVideoUrl;
23362
23367
  var verbiage = useTranslations(rawVerbiage, {
23363
23368
  headingText: 'Video signature has been successfully captured!',
23364
23369
  retryBtnText: 'Retry',
@@ -23603,7 +23608,9 @@
23603
23608
  classNames: classNames,
23604
23609
  faceGuideStatus: status,
23605
23610
  requestedAction: status === 'success' ? 'CAPTURE_SIGNATURE' : 'VERIFY_LIVENESS',
23606
- onClearSignaturePadClicked: restartVideoOnSignaturePadCleared ? clearRecordedData : undefined
23611
+ onClearSignaturePadClicked: restartVideoOnSignaturePadCleared ? function () {
23612
+ return setTimeout(clearRecordedData, 100);
23613
+ } : undefined
23607
23614
  });
23608
23615
  }
23609
23616
  var VideoSignatureWizardWithProviders = function VideoSignatureWizardWithProviders(props) {