@micromag/viewer 0.3.448 → 0.3.450

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
@@ -1323,7 +1323,7 @@ var propTypes$9 = {
1323
1323
  toggleFullscreen: PropTypes.func,
1324
1324
  fullscreenActive: PropTypes.bool,
1325
1325
  fullscreenEnabled: PropTypes.bool,
1326
- buttons: PropTypes.node,
1326
+ menuDotsButtons: PropTypes.node,
1327
1327
  closeable: PropTypes.bool,
1328
1328
  withShadow: PropTypes.bool,
1329
1329
  trackingEnabled: PropTypes.bool,
@@ -1348,7 +1348,7 @@ var defaultProps$9 = {
1348
1348
  toggleFullscreen: null,
1349
1349
  fullscreenActive: false,
1350
1350
  fullscreenEnabled: false,
1351
- buttons: null,
1351
+ menuDotsButtons: null,
1352
1352
  closeable: false,
1353
1353
  withShadow: false,
1354
1354
  trackingEnabled: false,
@@ -1372,7 +1372,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
1372
1372
  toggleFullscreen = _ref.toggleFullscreen,
1373
1373
  fullscreenActive = _ref.fullscreenActive,
1374
1374
  fullscreenEnabled = _ref.fullscreenEnabled,
1375
- buttons = _ref.buttons,
1375
+ menuDotsButtons = _ref.menuDotsButtons,
1376
1376
  closeable = _ref.closeable,
1377
1377
  withShadow = _ref.withShadow,
1378
1378
  shareBasePath = _ref.shareBasePath,
@@ -1464,7 +1464,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
1464
1464
  // const base =
1465
1465
  // typeof window !== 'undefined' ? window.location.origin.replace(/\/+$/, '') : '';
1466
1466
  // const path = shareBasePath !== null ? `${base}${shareBasePath}` : base;
1467
- var base = typeof window !== 'undefined' ? window.location.host : '';
1467
+ var base = typeof window !== 'undefined' ? "".concat(window.location.protocol, "//").concat(window.location.host) : '';
1468
1468
  var path = shareBasePath !== null ? "".concat(base).concat(shareBasePath) : base;
1469
1469
  return path;
1470
1470
  }, [shareBasePath]);
@@ -1682,7 +1682,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
1682
1682
  items: items,
1683
1683
  onClickDot: onClickScreen,
1684
1684
  onClickScreensMenu: onOpenMenu,
1685
- buttons: buttons,
1685
+ buttons: menuDotsButtons,
1686
1686
  closeable: closeable,
1687
1687
  withItemClick: withDotItemClick,
1688
1688
  withoutScreensMenu: withoutScreensMenu,
@@ -2418,7 +2418,7 @@ var propTypes$2 = {
2418
2418
  withNeighborScreens: PropTypes.bool,
2419
2419
  withNavigationHint: PropTypes.bool,
2420
2420
  withoutPlaybackControls: PropTypes.bool,
2421
- buttons: PropTypes.node,
2421
+ menuDotsButtons: PropTypes.node,
2422
2422
  closeable: PropTypes.bool,
2423
2423
  onClose: PropTypes.func,
2424
2424
  onInteraction: PropTypes.func,
@@ -2466,7 +2466,7 @@ var defaultProps$2 = {
2466
2466
  withoutPlaybackControls: false,
2467
2467
  menuIsScreenWidth: false,
2468
2468
  menuHeader: null,
2469
- buttons: null,
2469
+ menuDotsButtons: null,
2470
2470
  closeable: false,
2471
2471
  onClose: null,
2472
2472
  onInteraction: null,
@@ -2507,7 +2507,7 @@ var Viewer = function Viewer(_ref) {
2507
2507
  withoutPlaybackControls = _ref.withoutPlaybackControls,
2508
2508
  menuIsScreenWidth = _ref.menuIsScreenWidth,
2509
2509
  menuHeader = _ref.menuHeader,
2510
- buttons = _ref.buttons,
2510
+ menuDotsButtons = _ref.menuDotsButtons,
2511
2511
  closeable = _ref.closeable,
2512
2512
  onCloseViewer = _ref.onClose,
2513
2513
  onInteraction = _ref.onInteraction,
@@ -2975,7 +2975,7 @@ var Viewer = function Viewer(_ref) {
2975
2975
  toggleFullscreen: toggleFullscreen,
2976
2976
  fullscreenActive: fullscreenActive,
2977
2977
  fullscreenEnabled: fullscreenEnabled,
2978
- buttons: buttons,
2978
+ menuDotsButtons: menuDotsButtons,
2979
2979
  closeable: closeable,
2980
2980
  shareBasePath: basePath,
2981
2981
  screenSize: screenSize,
package/lib/index.js CHANGED
@@ -1327,7 +1327,7 @@ var propTypes$9 = {
1327
1327
  toggleFullscreen: PropTypes.func,
1328
1328
  fullscreenActive: PropTypes.bool,
1329
1329
  fullscreenEnabled: PropTypes.bool,
1330
- buttons: PropTypes.node,
1330
+ menuDotsButtons: PropTypes.node,
1331
1331
  closeable: PropTypes.bool,
1332
1332
  withShadow: PropTypes.bool,
1333
1333
  trackingEnabled: PropTypes.bool,
@@ -1352,7 +1352,7 @@ var defaultProps$9 = {
1352
1352
  toggleFullscreen: null,
1353
1353
  fullscreenActive: false,
1354
1354
  fullscreenEnabled: false,
1355
- buttons: null,
1355
+ menuDotsButtons: null,
1356
1356
  closeable: false,
1357
1357
  withShadow: false,
1358
1358
  trackingEnabled: false,
@@ -1376,7 +1376,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
1376
1376
  toggleFullscreen = _ref.toggleFullscreen,
1377
1377
  fullscreenActive = _ref.fullscreenActive,
1378
1378
  fullscreenEnabled = _ref.fullscreenEnabled,
1379
- buttons = _ref.buttons,
1379
+ menuDotsButtons = _ref.menuDotsButtons,
1380
1380
  closeable = _ref.closeable,
1381
1381
  withShadow = _ref.withShadow,
1382
1382
  shareBasePath = _ref.shareBasePath,
@@ -1468,7 +1468,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
1468
1468
  // const base =
1469
1469
  // typeof window !== 'undefined' ? window.location.origin.replace(/\/+$/, '') : '';
1470
1470
  // const path = shareBasePath !== null ? `${base}${shareBasePath}` : base;
1471
- var base = typeof window !== 'undefined' ? window.location.host : '';
1471
+ var base = typeof window !== 'undefined' ? "".concat(window.location.protocol, "//").concat(window.location.host) : '';
1472
1472
  var path = shareBasePath !== null ? "".concat(base).concat(shareBasePath) : base;
1473
1473
  return path;
1474
1474
  }, [shareBasePath]);
@@ -1686,7 +1686,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
1686
1686
  items: items,
1687
1687
  onClickDot: onClickScreen,
1688
1688
  onClickScreensMenu: onOpenMenu,
1689
- buttons: buttons,
1689
+ buttons: menuDotsButtons,
1690
1690
  closeable: closeable,
1691
1691
  withItemClick: withDotItemClick,
1692
1692
  withoutScreensMenu: withoutScreensMenu,
@@ -2422,7 +2422,7 @@ var propTypes$2 = {
2422
2422
  withNeighborScreens: PropTypes.bool,
2423
2423
  withNavigationHint: PropTypes.bool,
2424
2424
  withoutPlaybackControls: PropTypes.bool,
2425
- buttons: PropTypes.node,
2425
+ menuDotsButtons: PropTypes.node,
2426
2426
  closeable: PropTypes.bool,
2427
2427
  onClose: PropTypes.func,
2428
2428
  onInteraction: PropTypes.func,
@@ -2470,7 +2470,7 @@ var defaultProps$2 = {
2470
2470
  withoutPlaybackControls: false,
2471
2471
  menuIsScreenWidth: false,
2472
2472
  menuHeader: null,
2473
- buttons: null,
2473
+ menuDotsButtons: null,
2474
2474
  closeable: false,
2475
2475
  onClose: null,
2476
2476
  onInteraction: null,
@@ -2511,7 +2511,7 @@ var Viewer = function Viewer(_ref) {
2511
2511
  withoutPlaybackControls = _ref.withoutPlaybackControls,
2512
2512
  menuIsScreenWidth = _ref.menuIsScreenWidth,
2513
2513
  menuHeader = _ref.menuHeader,
2514
- buttons = _ref.buttons,
2514
+ menuDotsButtons = _ref.menuDotsButtons,
2515
2515
  closeable = _ref.closeable,
2516
2516
  onCloseViewer = _ref.onClose,
2517
2517
  onInteraction = _ref.onInteraction,
@@ -2979,7 +2979,7 @@ var Viewer = function Viewer(_ref) {
2979
2979
  toggleFullscreen: toggleFullscreen,
2980
2980
  fullscreenActive: fullscreenActive,
2981
2981
  fullscreenEnabled: fullscreenEnabled,
2982
- buttons: buttons,
2982
+ menuDotsButtons: menuDotsButtons,
2983
2983
  closeable: closeable,
2984
2984
  shareBasePath: basePath,
2985
2985
  screenSize: screenSize,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/viewer",
3
- "version": "0.3.448",
3
+ "version": "0.3.450",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -90,5 +90,5 @@
90
90
  "access": "public",
91
91
  "registry": "https://registry.npmjs.org/"
92
92
  },
93
- "gitHead": "5ed502871fe921a4bbd4ad4a6e1b5d8bd6513fab"
93
+ "gitHead": "d0e770e40fb7bf9e5de4fb8ea1ee8b7ee4a72d7a"
94
94
  }