idmission-web-sdk 2.3.29 → 2.3.31

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.3.29';
214
+ var webSdkVersion = '2.3.31';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -17104,7 +17104,8 @@
17104
17104
  return /*#__PURE__*/React.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React.createElement("div", {
17105
17105
  ref: ref,
17106
17106
  style: {
17107
- aspectRatio: aspectRatio
17107
+ aspectRatio: aspectRatio,
17108
+ flex: 1
17108
17109
  }
17109
17110
  }, children), status === 'ready' && !wavesDisabled && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IdCardBorderSvg, {
17110
17111
  width: width,
@@ -17598,7 +17599,7 @@
17598
17599
  var imageWidth = state.guideRectWidth - paddingForMathMax * 2;
17599
17600
  var imageHeight = state.guideRectHeight - paddingForMathMax * 2;
17600
17601
  var centerRegionMinWidth = imageAspectRatio >= wrapperAspectRatio ? wrapperWidth - paddingAndBorderPx : undefined;
17601
- var cardAspectRatio = imageAspectRatio > 1 ? '16/10' : '10/16';
17602
+ var cardAspectRatio = imageAspectRatio > 1 ? '1.6' : '0.625';
17602
17603
  var onImageLoaded = React.useCallback(function (e) {
17603
17604
  var _a, _b;
17604
17605
  guideOrientationOnImageLoaded(e);