idmission-web-sdk 1.0.157 → 1.0.159

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.
@@ -48,7 +48,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
48
48
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
49
49
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
50
50
 
51
- var webSdkVersion = '1.0.157';
51
+ var webSdkVersion = '1.0.159';
52
52
 
53
53
  function getPlatform() {
54
54
  if (typeof window === 'undefined') return;
@@ -1285,7 +1285,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
1285
1285
  });
1286
1286
  });
1287
1287
  });
1288
- }, [token]);
1288
+ }, [documentServiceUrl, token]);
1289
1289
  var value = {
1290
1290
  submit: submit,
1291
1291
  submissionStatus: submissionStatus,
@@ -10609,6 +10609,10 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
10609
10609
  function onImageLoaded(e) {
10610
10610
  guideOrientationOnImageLoaded(e);
10611
10611
  var img = e.target;
10612
+ console.log('first load', {
10613
+ width: img.naturalWidth,
10614
+ height: img.naturalHeight
10615
+ });
10612
10616
  dispatch({
10613
10617
  type: 'guideImageLoaded',
10614
10618
  payload: {
@@ -10616,6 +10620,12 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
10616
10620
  height: img.naturalHeight
10617
10621
  }
10618
10622
  });
10623
+ setTimeout(function () {
10624
+ console.log('10ms later', {
10625
+ width: img.naturalWidth,
10626
+ height: img.naturalHeight
10627
+ });
10628
+ }, 10);
10619
10629
  }
10620
10630
  var theme = styled.useTheme();
10621
10631
  if (borderWidth === undefined) borderWidth = (_d = (_c = (_b = theme.idCapture) === null || _b === void 0 ? void 0 : _b.guideBox) === null || _c === void 0 ? void 0 : _c.borderWidth) !== null && _d !== void 0 ? _d : 4;
@@ -11508,9 +11518,9 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
11508
11518
  classNames: (_g = classNames.capture) === null || _g === void 0 ? void 0 : _g.imagePreview,
11509
11519
  text: (_h = idCaptureVerbiages === null || idCaptureVerbiages === void 0 ? void 0 : idCaptureVerbiages.idCardFront) === null || _h === void 0 ? void 0 : _h.processingIdCardText,
11510
11520
  imageUrl: imageUrl
11511
- })), /*#__PURE__*/React__default['default'].createElement("div", {
11521
+ })), state.captureState !== 'complete' && ( /*#__PURE__*/React__default['default'].createElement("div", {
11512
11522
  id: "idmission-above-guides-content"
11513
- }), /*#__PURE__*/React__default['default'].createElement(ExitCaptureButton, {
11523
+ })), /*#__PURE__*/React__default['default'].createElement(ExitCaptureButton, {
11514
11524
  onClick: onExit,
11515
11525
  className: (_j = classNames.capture) === null || _j === void 0 ? void 0 : _j.exitCaptureBtn
11516
11526
  }), !overlayDismissed && ( /*#__PURE__*/React__default['default'].createElement(IdCaptureLoadingOverlay, {