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.
@@ -235,7 +235,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
235
235
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
236
236
  };
237
237
 
238
- var webSdkVersion = '2.3.29';
238
+ var webSdkVersion = '2.3.31';
239
239
 
240
240
  function getPlatform() {
241
241
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -7997,7 +7997,8 @@ function IdCardBorder(_a) {
7997
7997
  return /*#__PURE__*/React__namespace.default.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React__namespace.default.createElement("div", {
7998
7998
  ref: ref,
7999
7999
  style: {
8000
- aspectRatio: aspectRatio
8000
+ aspectRatio: aspectRatio,
8001
+ flex: 1
8001
8002
  }
8002
8003
  }, children), status === 'ready' && !wavesDisabled && ( /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(IdCardBorderSvg, {
8003
8004
  width: width,
@@ -8491,7 +8492,7 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
8491
8492
  var imageWidth = state.guideRectWidth - paddingForMathMax * 2;
8492
8493
  var imageHeight = state.guideRectHeight - paddingForMathMax * 2;
8493
8494
  var centerRegionMinWidth = imageAspectRatio >= wrapperAspectRatio ? wrapperWidth - paddingAndBorderPx : undefined;
8494
- var cardAspectRatio = imageAspectRatio > 1 ? '16/10' : '10/16';
8495
+ var cardAspectRatio = imageAspectRatio > 1 ? '1.6' : '0.625';
8495
8496
  var onImageLoaded = React.useCallback(function (e) {
8496
8497
  var _a, _b;
8497
8498
  guideOrientationOnImageLoaded(e);