@micromag/viewer 0.4.51 → 0.4.54

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/es/index.js CHANGED
@@ -772,7 +772,7 @@ function ViewerMenuDots(_ref) {
772
772
  }
773
773
  },
774
774
  vertical: direction === 'vertical'
775
- });
775
+ }, index);
776
776
  }), closeable ? /*#__PURE__*/jsx("button", {
777
777
  type: "button",
778
778
  className: styles$d.closeButton,
@@ -1667,7 +1667,7 @@ function ViewerMenu(_ref) {
1667
1667
  }),
1668
1668
  progressSpring: shareOpenedProgress
1669
1669
  }) : null, afterShareMenuButton]
1670
- })) : null;
1670
+ }), "share") : null;
1671
1671
  }
1672
1672
  if (item === 'main') {
1673
1673
  return !withoutScreensMenu || beforeScreensMenuButton !== null ? /*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({
@@ -1697,7 +1697,7 @@ function ViewerMenu(_ref) {
1697
1697
  progressSpring: menuOpenedProgress,
1698
1698
  toggledButtonClassName: styles$7.screensMenuButtonToggled
1699
1699
  }) : null]
1700
- })) : null;
1700
+ }), "main") : null;
1701
1701
  }
1702
1702
  return item || null;
1703
1703
  })
@@ -2738,8 +2738,8 @@ function Viewer(_ref) {
2738
2738
  landscape = _ref9$landscape === void 0 ? false : _ref9$landscape,
2739
2739
  _ref9$menuOverScreen = _ref9.menuOverScreen,
2740
2740
  menuOverScreen = _ref9$menuOverScreen === void 0 ? false : _ref9$menuOverScreen;
2741
- var screenContainerWidth = screenScale !== null ? screenWidth * screenScale : screenWidth;
2742
- var screenContainerHeight = screenScale !== null ? screenHeight * screenScale : screenHeight;
2741
+ var screenContainerWidth = screenScale !== null && screenWidth !== null ? screenWidth * screenScale : screenWidth;
2742
+ var screenContainerHeight = screenScale !== null && screenHeight !== null ? screenHeight * screenScale : screenHeight;
2743
2743
  var hasSize = screenWidth > 0 && screenHeight > 0;
2744
2744
  var ready = hasSize || readyWithoutSize;
2745
2745
  var trackingEnabled = isView;