idmission-web-sdk 1.0.159 → 1.0.161

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.
@@ -549,6 +549,7 @@ export declare const GuideRegion: import("styled-components").IStyledComponent<"
549
549
  $maskColor?: string | undefined;
550
550
  }>>;
551
551
  export declare const GuideCenterRegion: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
552
+ $minWidth?: number | undefined;
552
553
  $isMirrored?: boolean | undefined;
553
554
  }>>;
554
555
  export declare const GuideCenterBorder: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
@@ -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.159';
51
+ var webSdkVersion = '1.0.161';
52
52
 
53
53
  function getPlatform() {
54
54
  if (typeof window === 'undefined') return;
@@ -10560,7 +10560,9 @@ var GuideRegion = styled__default['default'].div(templateObject_4$6 || (template
10560
10560
  }, function (props) {
10561
10561
  return props.$minHeight ? "min-width: ".concat(props.$minHeight, "px;") : "";
10562
10562
  });
10563
- var GuideCenterRegion = styled__default['default'].div(templateObject_5$3 || (templateObject_5$3 = tslib.__makeTemplateObject(["\n ", "\n box-sizing: border-box;\n"], ["\n ", "\n box-sizing: border-box;\n"])), function (props) {
10563
+ var GuideCenterRegion = styled__default['default'].div(templateObject_5$3 || (templateObject_5$3 = tslib.__makeTemplateObject(["\n ", "\n ", "\n box-sizing: border-box;\n"], ["\n ", "\n ", "\n box-sizing: border-box;\n"])), function (props) {
10564
+ return props.$minWidth ? "min-width: ".concat(props.$minWidth, "px;") : "";
10565
+ }, function (props) {
10564
10566
  return props.$isMirrored ? 'transform: scaleX(-1);' : '';
10565
10567
  });
10566
10568
  var GuideCenterBorder = styled__default['default'].div(templateObject_6$2 || (templateObject_6$2 = tslib.__makeTemplateObject(["\n box-sizing: border-box;\n position: relative;\n border: ", ";\n"], ["\n box-sizing: border-box;\n position: relative;\n border: ", ";\n"])), function (props) {
@@ -10609,10 +10611,6 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
10609
10611
  function onImageLoaded(e) {
10610
10612
  guideOrientationOnImageLoaded(e);
10611
10613
  var img = e.target;
10612
- console.log('first load', {
10613
- width: img.naturalWidth,
10614
- height: img.naturalHeight
10615
- });
10616
10614
  dispatch({
10617
10615
  type: 'guideImageLoaded',
10618
10616
  payload: {
@@ -10620,12 +10618,6 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
10620
10618
  height: img.naturalHeight
10621
10619
  }
10622
10620
  });
10623
- setTimeout(function () {
10624
- console.log('10ms later', {
10625
- width: img.naturalWidth,
10626
- height: img.naturalHeight
10627
- });
10628
- }, 10);
10629
10621
  }
10630
10622
  var theme = styled.useTheme();
10631
10623
  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;
@@ -10667,6 +10659,7 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
10667
10659
  "$minWidth": padding,
10668
10660
  className: regionClsx$1(classNames, 'Left')
10669
10661
  }), /*#__PURE__*/React__default['default'].createElement(GuideCenterRegion, {
10662
+ "$minWidth": imageWidth,
10670
10663
  "$isMirrored": isMirrored,
10671
10664
  className: classNames.centerRegion
10672
10665
  }, /*#__PURE__*/React__default['default'].createElement(GuideCenterBorder, {