idmission-web-sdk 2.3.26 → 2.3.27

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.
package/dist/sdk2.esm.js CHANGED
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
204
204
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
205
205
  };
206
206
 
207
- var webSdkVersion = '2.3.26';
207
+ var webSdkVersion = '2.3.27';
208
208
 
209
209
  function getPlatform() {
210
210
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -8460,7 +8460,7 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
8460
8460
  var imageWidth = state.guideRectWidth - paddingForMathMax * 2;
8461
8461
  var imageHeight = state.guideRectHeight - paddingForMathMax * 2;
8462
8462
  var centerRegionMinWidth = imageAspectRatio >= wrapperAspectRatio ? wrapperWidth - paddingAndBorderPx : undefined;
8463
- var cardAspectRatio = orientation === 'landscape' ? '16/10' : '10/16';
8463
+ var cardAspectRatio = imageAspectRatio > 1 ? '16/10' : '10/16';
8464
8464
  var onImageLoaded = useCallback(function (e) {
8465
8465
  var _a, _b;
8466
8466
  guideOrientationOnImageLoaded(e);