idmission-web-sdk 2.2.54 → 2.2.56

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.54';
214
+ var webSdkVersion = '2.2.56';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -493,7 +493,16 @@
493
493
  var GrayOverlayContainer = styled(OverlayContainer)(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n background: #f7f6fb;\n"], ["\n background: #f7f6fb;\n"])));
494
494
  var ButtonsColumn = styled.div(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 15px 0;\n justify-content: center;\n margin-top: 24px;\n"], ["\n display: flex;\n flex-direction: column;\n gap: 15px 0;\n justify-content: center;\n margin-top: 24px;\n"])));
495
495
  var WideButton = styled(LoaderButton)(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n width: 100%;\n border-radius: 30px;\n"], ["\n width: 100%;\n border-radius: 30px;\n"])));
496
- var WideBorderButton = styled(WideButton)(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n color: black;\n background: white;\n border: 1px solid var(--idm-color-secondary-500);\n box-sizing: border-box;\n"], ["\n color: black;\n background: white;\n border: 1px solid var(--idm-color-secondary-500);\n box-sizing: border-box;\n"])));
496
+ var WideBorderButton = styled(WideButton)(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n color: ", ";\n background: ", ";\n border: 1px solid\n ", ";\n box-sizing: border-box;\n"], ["\n color: ", ";\n background: ", ";\n border: 1px solid\n ", ";\n box-sizing: border-box;\n"])), function (props) {
497
+ var _a, _b;
498
+ return (_b = (_a = props.colors) === null || _a === void 0 ? void 0 : _a.textColor) !== null && _b !== void 0 ? _b : 'black';
499
+ }, function (props) {
500
+ var _a, _b;
501
+ return (_b = (_a = props.colors) === null || _a === void 0 ? void 0 : _a.backgroundColor) !== null && _b !== void 0 ? _b : 'white';
502
+ }, function (props) {
503
+ var _a, _b;
504
+ return (_b = (_a = props.colors) === null || _a === void 0 ? void 0 : _a.borderColor) !== null && _b !== void 0 ? _b : 'var(--idm-color-secondary-500)';
505
+ });
497
506
  var templateObject_1$J, templateObject_2$A, templateObject_3$r, templateObject_4$l, templateObject_5$c, templateObject_6$9, templateObject_7$6, templateObject_8$3;
498
507
 
499
508
  function _extends() {
@@ -22655,15 +22664,17 @@
22655
22664
  _o = _a.captureSignatureVideo,
22656
22665
  captureSignatureVideo = _o === void 0 ? false : _o,
22657
22666
  onCameraAccessDenied = _a.onCameraAccessDenied,
22658
- onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied;
22659
- var _p = React.useContext(SubmissionContext),
22660
- submit = _p.submit,
22661
- submissionStatus = _p.submissionStatus,
22662
- setSignatureData = _p.setSignatureData,
22663
- setAdditionalDocuments = _p.setAdditionalDocuments;
22664
- var _q = React.useState(0),
22665
- checkIndex = _q[0],
22666
- setCheckIndex = _q[1];
22667
+ onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
22668
+ _p = _a.debugMode,
22669
+ debugMode = _p === void 0 ? false : _p;
22670
+ var _q = React.useContext(SubmissionContext),
22671
+ submit = _q.submit,
22672
+ submissionStatus = _q.submissionStatus,
22673
+ setSignatureData = _q.setSignatureData,
22674
+ setAdditionalDocuments = _q.setAdditionalDocuments;
22675
+ var _r = React.useState(0),
22676
+ checkIndex = _r[0],
22677
+ setCheckIndex = _r[1];
22667
22678
  var checks = React.useMemo(function () {
22668
22679
  var _a, _b;
22669
22680
  var checks = __spreadArray([], userChecks, true);
@@ -22760,9 +22771,11 @@
22760
22771
  className: "flex"
22761
22772
  }, /*#__PURE__*/React.createElement(Spinner$1, null));
22762
22773
  case SubmissionStatus.SUBMITTED:
22763
- return /*#__PURE__*/React.createElement(SubmissionSuccess, null);
22774
+ if (debugMode) return /*#__PURE__*/React.createElement(SubmissionSuccess, null);
22775
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
22764
22776
  case SubmissionStatus.FAILED:
22765
- return /*#__PURE__*/React.createElement(React.Fragment, null, "Submission failed!");
22777
+ if (debugMode) return /*#__PURE__*/React.createElement(React.Fragment, null, "Submission failed!");
22778
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
22766
22779
  default:
22767
22780
  return /*#__PURE__*/React.createElement(React.Fragment, null);
22768
22781
  }
@@ -23272,7 +23285,8 @@
23272
23285
  videoSignatureCaptureProps: videoSignatureCaptureProps,
23273
23286
  captureSignature: captureSignature,
23274
23287
  captureSignatureVideo: captureSignatureVideo,
23275
- onCameraAccessDenied: onCameraAccessDenied
23288
+ onCameraAccessDenied: onCameraAccessDenied,
23289
+ debugMode: debugMode
23276
23290
  }))));
23277
23291
  };
23278
23292
 
@@ -23378,7 +23392,8 @@
23378
23392
  return ['FaceLiveness'];
23379
23393
  }, []),
23380
23394
  faceLivenessProps: faceLivenessProps,
23381
- onCameraAccessDenied: onCameraAccessDenied
23395
+ onCameraAccessDenied: onCameraAccessDenied,
23396
+ debugMode: debugMode
23382
23397
  }))));
23383
23398
  };
23384
23399
 
@@ -23611,7 +23626,8 @@
23611
23626
  additionalDocumentCaptureProps: additionalDocumentCaptureProps,
23612
23627
  captureSignature: captureSignature,
23613
23628
  captureSignatureVideo: captureSignatureVideo,
23614
- onCameraAccessDenied: onCameraAccessDenied
23629
+ onCameraAccessDenied: onCameraAccessDenied,
23630
+ debugMode: debugMode
23615
23631
  }))));
23616
23632
  };
23617
23633
 
@@ -23866,7 +23882,8 @@
23866
23882
  videoSignatureCaptureProps: videoSignatureCaptureProps,
23867
23883
  captureSignature: captureSignature,
23868
23884
  captureSignatureVideo: captureSignatureVideo,
23869
- onCameraAccessDenied: onCameraAccessDenied
23885
+ onCameraAccessDenied: onCameraAccessDenied,
23886
+ debugMode: debugMode
23870
23887
  }))));
23871
23888
  };
23872
23889
 
@@ -25050,6 +25067,7 @@
25050
25067
  geolocationEnabled: geolocationEnabled,
25051
25068
  geolocationRequired: geolocationRequired
25052
25069
  }, /*#__PURE__*/React.createElement(CompositeWizard, {
25070
+ debugMode: debugMode,
25053
25071
  checks: React.useMemo(function () {
25054
25072
  return ['VideoSignatureCapture'];
25055
25073
  }, []),
@@ -25291,7 +25309,8 @@
25291
25309
  captureSignature: captureSignature,
25292
25310
  captureSignatureVideo: captureSignatureVideo,
25293
25311
  onCameraAccessDenied: onCameraAccessDenied,
25294
- onMicrophoneAccessDenied: onMicrophoneAccessDenied
25312
+ onMicrophoneAccessDenied: onMicrophoneAccessDenied,
25313
+ debugMode: debugMode
25295
25314
  }))));
25296
25315
  };
25297
25316
 
@@ -25448,7 +25467,8 @@
25448
25467
  videoSignatureCaptureProps: videoSignatureCaptureProps,
25449
25468
  captureSignature: captureSignature,
25450
25469
  captureSignatureVideo: captureSignatureVideo,
25451
- onCameraAccessDenied: onCameraAccessDenied
25470
+ onCameraAccessDenied: onCameraAccessDenied,
25471
+ debugMode: debugMode
25452
25472
  }))));
25453
25473
  };
25454
25474