idmission-web-sdk 1.0.160 → 1.0.162

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.160';
51
+ var webSdkVersion = '1.0.162';
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,15 +10611,13 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
10609
10611
  function onImageLoaded(e) {
10610
10612
  guideOrientationOnImageLoaded(e);
10611
10613
  var img = e.target;
10612
- setTimeout(function () {
10613
- dispatch({
10614
- type: 'guideImageLoaded',
10615
- payload: {
10616
- width: img.naturalWidth,
10617
- height: img.naturalHeight
10618
- }
10619
- });
10620
- }, 10);
10614
+ dispatch({
10615
+ type: 'guideImageLoaded',
10616
+ payload: {
10617
+ width: img.naturalWidth,
10618
+ height: img.naturalHeight
10619
+ }
10620
+ });
10621
10621
  }
10622
10622
  var theme = styled.useTheme();
10623
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;
@@ -10659,6 +10659,7 @@ var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_a) {
10659
10659
  "$minWidth": padding,
10660
10660
  className: regionClsx$1(classNames, 'Left')
10661
10661
  }), /*#__PURE__*/React__default['default'].createElement(GuideCenterRegion, {
10662
+ "$minWidth": imageWidth,
10662
10663
  "$isMirrored": isMirrored,
10663
10664
  className: classNames.centerRegion
10664
10665
  }, /*#__PURE__*/React__default['default'].createElement(GuideCenterBorder, {