idmission-web-sdk 1.0.150 → 1.0.151

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.
@@ -47,7 +47,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
47
47
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
48
48
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
49
49
 
50
- var webSdkVersion = '1.0.150';
50
+ var webSdkVersion = '1.0.151';
51
51
 
52
52
  function getPlatform() {
53
53
  if (typeof window === 'undefined') return;
@@ -13415,6 +13415,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
13415
13415
  _g = _a.debugMode,
13416
13416
  debugMode = _g === void 0 ? false : _g;
13417
13417
  var _h = React.useContext(SubmissionContext),
13418
+ submit = _h.submit,
13418
13419
  selfieImage = _h.selfieImage,
13419
13420
  signatureVideoUrl = _h.signatureVideoUrl,
13420
13421
  setSelfieImage = _h.setSelfieImage,
@@ -13491,6 +13492,20 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
13491
13492
  onExit();
13492
13493
  }, [onExit, onRetryClicked]);
13493
13494
  var showSuccessScreen = useShowSuccessScreen(skipSuccessScreen, captureState === 'SUCCESS', onComplete);
13495
+ var onDoneClick = React.useCallback(function () {
13496
+ return tslib.__awaiter(void 0, void 0, void 0, function () {
13497
+ return tslib.__generator(this, function (_a) {
13498
+ switch (_a.label) {
13499
+ case 0:
13500
+ return [4 /*yield*/, submit()];
13501
+ case 1:
13502
+ _a.sent();
13503
+ onComplete === null || onComplete === void 0 ? void 0 : onComplete();
13504
+ return [2 /*return*/];
13505
+ }
13506
+ });
13507
+ });
13508
+ }, [onComplete, submit]);
13494
13509
  return /*#__PURE__*/React__default['default'].createElement(HighPerformanceSelfieGuidanceModelsProvider, {
13495
13510
  throttleMs: captureState === 'CAPTURING_SIGNATURE' ? 250 : 0
13496
13511
  }, captureState !== 'LOADING' && function () {
@@ -13518,7 +13533,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
13518
13533
  if (!showSuccessScreen) return;
13519
13534
  return /*#__PURE__*/React__default['default'].createElement(VideoSignatureSuccess, {
13520
13535
  videoUrl: signatureVideoUrl !== null && signatureVideoUrl !== void 0 ? signatureVideoUrl : '',
13521
- onDoneClick: onComplete,
13536
+ onDoneClick: onDoneClick,
13522
13537
  onRetryClick: onRetry,
13523
13538
  classNames: classNames.success,
13524
13539
  colors: colors.success,