@micromag/viewer 0.3.43 → 0.3.44
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 +5 -2
- package/lib/index.js +5 -2
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -1374,6 +1374,7 @@ var propTypes$2 = {
|
|
|
1374
1374
|
withMetadata: PropTypes.bool,
|
|
1375
1375
|
withoutMenu: PropTypes.bool,
|
|
1376
1376
|
withoutScreensMenu: PropTypes.bool,
|
|
1377
|
+
withoutMenuShadow: PropTypes.bool,
|
|
1377
1378
|
withoutFullscreen: PropTypes.bool,
|
|
1378
1379
|
withLandscapeSiblingsScreens: PropTypes.bool,
|
|
1379
1380
|
closeable: PropTypes.bool,
|
|
@@ -1409,6 +1410,7 @@ var defaultProps$2 = {
|
|
|
1409
1410
|
withMetadata: false,
|
|
1410
1411
|
withoutMenu: false,
|
|
1411
1412
|
withoutScreensMenu: false,
|
|
1413
|
+
withoutMenuShadow: false,
|
|
1412
1414
|
withoutFullscreen: false,
|
|
1413
1415
|
withLandscapeSiblingsScreens: false,
|
|
1414
1416
|
menuIsScreenWidth: false,
|
|
@@ -1442,7 +1444,8 @@ var Viewer = function Viewer(_ref) {
|
|
|
1442
1444
|
landscapeScreenMargin = _ref.landscapeScreenMargin,
|
|
1443
1445
|
withMetadata = _ref.withMetadata,
|
|
1444
1446
|
withoutMenu = _ref.withoutMenu,
|
|
1445
|
-
withoutScreensMenu = _ref.withoutScreensMenu
|
|
1447
|
+
withoutScreensMenu = _ref.withoutScreensMenu,
|
|
1448
|
+
withoutMenuShadow = _ref.withoutMenuShadow;
|
|
1446
1449
|
_ref.withoutFullscreen;
|
|
1447
1450
|
var withLandscapeSiblingsScreens = _ref.withLandscapeSiblingsScreens,
|
|
1448
1451
|
menuIsScreenWidth = _ref.menuIsScreenWidth,
|
|
@@ -1729,7 +1732,7 @@ var Viewer = function Viewer(_ref) {
|
|
|
1729
1732
|
story: parsedStory,
|
|
1730
1733
|
currentScreenIndex: screenIndex,
|
|
1731
1734
|
opened: menuOpened,
|
|
1732
|
-
withShadow: menuOverScreen,
|
|
1735
|
+
withShadow: menuOverScreen && !withoutMenuShadow,
|
|
1733
1736
|
toggleFullscreen: toggleFullscreen,
|
|
1734
1737
|
fullscreenActive: fullscreenActive,
|
|
1735
1738
|
fullscreenEnabled: fullscreenEnabled,
|
package/lib/index.js
CHANGED
|
@@ -1392,6 +1392,7 @@ var propTypes$2 = {
|
|
|
1392
1392
|
withMetadata: PropTypes__default["default"].bool,
|
|
1393
1393
|
withoutMenu: PropTypes__default["default"].bool,
|
|
1394
1394
|
withoutScreensMenu: PropTypes__default["default"].bool,
|
|
1395
|
+
withoutMenuShadow: PropTypes__default["default"].bool,
|
|
1395
1396
|
withoutFullscreen: PropTypes__default["default"].bool,
|
|
1396
1397
|
withLandscapeSiblingsScreens: PropTypes__default["default"].bool,
|
|
1397
1398
|
closeable: PropTypes__default["default"].bool,
|
|
@@ -1427,6 +1428,7 @@ var defaultProps$2 = {
|
|
|
1427
1428
|
withMetadata: false,
|
|
1428
1429
|
withoutMenu: false,
|
|
1429
1430
|
withoutScreensMenu: false,
|
|
1431
|
+
withoutMenuShadow: false,
|
|
1430
1432
|
withoutFullscreen: false,
|
|
1431
1433
|
withLandscapeSiblingsScreens: false,
|
|
1432
1434
|
menuIsScreenWidth: false,
|
|
@@ -1460,7 +1462,8 @@ var Viewer = function Viewer(_ref) {
|
|
|
1460
1462
|
landscapeScreenMargin = _ref.landscapeScreenMargin,
|
|
1461
1463
|
withMetadata = _ref.withMetadata,
|
|
1462
1464
|
withoutMenu = _ref.withoutMenu,
|
|
1463
|
-
withoutScreensMenu = _ref.withoutScreensMenu
|
|
1465
|
+
withoutScreensMenu = _ref.withoutScreensMenu,
|
|
1466
|
+
withoutMenuShadow = _ref.withoutMenuShadow;
|
|
1464
1467
|
_ref.withoutFullscreen;
|
|
1465
1468
|
var withLandscapeSiblingsScreens = _ref.withLandscapeSiblingsScreens,
|
|
1466
1469
|
menuIsScreenWidth = _ref.menuIsScreenWidth,
|
|
@@ -1747,7 +1750,7 @@ var Viewer = function Viewer(_ref) {
|
|
|
1747
1750
|
story: parsedStory,
|
|
1748
1751
|
currentScreenIndex: screenIndex,
|
|
1749
1752
|
opened: menuOpened,
|
|
1750
|
-
withShadow: menuOverScreen,
|
|
1753
|
+
withShadow: menuOverScreen && !withoutMenuShadow,
|
|
1751
1754
|
toggleFullscreen: toggleFullscreen,
|
|
1752
1755
|
fullscreenActive: fullscreenActive,
|
|
1753
1756
|
fullscreenEnabled: fullscreenEnabled,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.44",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "b9db1927fe4b107bc5c102d91d74bd3b338a46a9"
|
|
85
85
|
}
|