@meduza/ui-kit-2 0.1.46 → 0.1.48

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.
@@ -456,7 +456,7 @@ var Image = function Image(_ref) {
456
456
  setIsLoaded = _useState[1];
457
457
 
458
458
  var handleClick = function handleClick() {
459
- if (!lightBox || optimized && !optimized.original) {
459
+ if (!fullscreen || !lightBox || optimized && !optimized.original) {
460
460
  return;
461
461
  }
462
462
 
@@ -751,8 +751,7 @@ var DotsOnImage = function DotsOnImage(_ref) {
751
751
  width: width,
752
752
  height: height,
753
753
  alt: credit,
754
- display: display,
755
- fullscreen: false
754
+ display: display
756
755
  }), React__default.createElement("div", {
757
756
  ref: container
758
757
  }, dots.map(function (dot) {
@@ -1745,11 +1744,11 @@ var GroupedBlock = function GroupedBlock(_ref) {
1745
1744
  onlyOn = _ref.block.only_on,
1746
1745
  styleContext = _ref.styleContext;
1747
1746
  var maxHeight = Math.min.apply(Math, block.data.map(function (item) {
1748
- return item.data && item.data.height || item.item.data.height;
1747
+ return item.data && item.data.height || item.item && item.item.data.height;
1749
1748
  }));
1750
1749
  var normalizedBoxesWidth = block.data.map(function (item) {
1751
- var width = item.data && item.data.width || item.item.data.heigh;
1752
- var height = item.data && item.data.height || item.item.data.heigh;
1750
+ var width = item.data && item.data.width || item.item && item.item.data.heigh;
1751
+ var height = item.data && item.data.height || item.item && item.item.data.heigh;
1753
1752
  return width / (height / maxHeight);
1754
1753
  });
1755
1754
  var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {