idmission-web-sdk 2.3.26 → 2.3.28

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.28';
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);
@@ -8576,7 +8576,7 @@ var GuideCenterBorder = styled.div(templateObject_7$4 || (templateObject_7$4 = _
8576
8576
  return props.$padding ? "padding: ".concat(props.$padding, ";") : '';
8577
8577
  });
8578
8578
  var GuideText = styled.span(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n align-content: center;\n margin-top: 12px;\n margin-bottom: 12px;\n"], ["\n align-content: center;\n margin-top: 12px;\n margin-bottom: 12px;\n"])));
8579
- var GuideCenterInner = styled.div(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n position: relative;\n margin: auto;\n"], ["\n position: relative;\n margin: auto;\n"])));
8579
+ var GuideCenterInner = styled.div(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n position: relative;\n margin: auto;\n display: flex;\n max-width: 100%;\n max-height: 100%;\n"], ["\n position: relative;\n margin: auto;\n display: flex;\n max-width: 100%;\n max-height: 100%;\n"])));
8580
8580
  var templateObject_1$y, templateObject_2$s, templateObject_3$j, templateObject_4$d, templateObject_5$9, templateObject_6$6, templateObject_7$4, templateObject_8$2, templateObject_9$2;
8581
8581
 
8582
8582
  var IdCaptureFitGuide = function IdCaptureFitGuide(_a) {