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.
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.152';
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
  }, []);
@@ -13449,7 +13452,9 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
13449
13452
  }, verbiage.guidanceMessageText))), /*#__PURE__*/React__default.createElement(GuidesComponent, {
13450
13453
  status: "success",
13451
13454
  classNames: classNames.videoSignatureGuidesClassNames,
13452
- onClearSignaturePadClicked: restartVideoOnSignaturePadCleared ? clearRecordedData : undefined
13455
+ onClearSignaturePadClicked: restartVideoOnSignaturePadCleared ? function () {
13456
+ return setTimeout(clearRecordedData, 100);
13457
+ } : undefined
13453
13458
  }), debugMode && ( /*#__PURE__*/React__default.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__default.createElement("br", null), "Recording: ", isRecording ? 'true' : 'false')), /*#__PURE__*/React__default.createElement(ExitCaptureButton, {
13454
13459
  onClick: onExit,
13455
13460
  className: classNames.exitCaptureBtn
@@ -13466,7 +13471,7 @@ var VideoSignatureSuccess = function VideoSignatureSuccess(_a) {
13466
13471
  colors = _c === void 0 ? {} : _c,
13467
13472
  _d = _a.verbiage,
13468
13473
  rawVerbiage = _d === void 0 ? {} : _d;
13469
- var signatureVideoUrl = useVideoSignatureContext().signatureVideoUrl;
13474
+ var signatureVideoUrl = useContext(SubmissionContext).signatureVideoUrl;
13470
13475
  var verbiage = useTranslations(rawVerbiage, {
13471
13476
  headingText: 'Video signature has been successfully captured!',
13472
13477
  retryBtnText: 'Retry',
@@ -13711,7 +13716,9 @@ function VideoSignatureWizardGuides(_a) {
13711
13716
  classNames: classNames,
13712
13717
  faceGuideStatus: status,
13713
13718
  requestedAction: status === 'success' ? 'CAPTURE_SIGNATURE' : 'VERIFY_LIVENESS',
13714
- onClearSignaturePadClicked: restartVideoOnSignaturePadCleared ? clearRecordedData : undefined
13719
+ onClearSignaturePadClicked: restartVideoOnSignaturePadCleared ? function () {
13720
+ return setTimeout(clearRecordedData, 100);
13721
+ } : undefined
13715
13722
  });
13716
13723
  }
13717
13724
  var VideoSignatureWizardWithProviders = function VideoSignatureWizardWithProviders(props) {