@micromag/viewer 0.3.461 → 0.3.462
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 +24 -13
- package/lib/index.js +24 -13
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -966,6 +966,7 @@ var _excluded$3 = ["textAlign"];
|
|
|
966
966
|
var propTypes$c = {
|
|
967
967
|
viewerTheme: PropTypes$1.viewerTheme,
|
|
968
968
|
header: PropTypes.node,
|
|
969
|
+
footer: PropTypes.node,
|
|
969
970
|
screenSize: PropTypes$1.screenSize,
|
|
970
971
|
title: PropTypes.string,
|
|
971
972
|
menuWidth: PropTypes.number,
|
|
@@ -985,6 +986,7 @@ var propTypes$c = {
|
|
|
985
986
|
var defaultProps$c = {
|
|
986
987
|
viewerTheme: null,
|
|
987
988
|
header: null,
|
|
989
|
+
footer: null,
|
|
988
990
|
screenSize: null,
|
|
989
991
|
title: null,
|
|
990
992
|
menuWidth: null,
|
|
@@ -1003,6 +1005,7 @@ var defaultProps$c = {
|
|
|
1003
1005
|
var ViewerMenuPreview = function ViewerMenuPreview(_ref) {
|
|
1004
1006
|
var viewerTheme = _ref.viewerTheme,
|
|
1005
1007
|
header = _ref.header,
|
|
1008
|
+
footer = _ref.footer,
|
|
1006
1009
|
screenSize = _ref.screenSize,
|
|
1007
1010
|
title = _ref.title,
|
|
1008
1011
|
menuWidth = _ref.menuWidth,
|
|
@@ -1129,7 +1132,7 @@ var ViewerMenuPreview = function ViewerMenuPreview(_ref) {
|
|
|
1129
1132
|
onClick: onClickScreen,
|
|
1130
1133
|
focusable: focusable
|
|
1131
1134
|
}) : null)));
|
|
1132
|
-
}))))));
|
|
1135
|
+
}))), footer)));
|
|
1133
1136
|
};
|
|
1134
1137
|
ViewerMenuPreview.propTypes = propTypes$c;
|
|
1135
1138
|
ViewerMenuPreview.defaultProps = defaultProps$c;
|
|
@@ -1332,6 +1335,7 @@ var propTypes$9 = {
|
|
|
1332
1335
|
screenSize: PropTypes$1.screenSize,
|
|
1333
1336
|
menuWidth: PropTypes.number,
|
|
1334
1337
|
previewHeader: PropTypes.node,
|
|
1338
|
+
previewFooter: PropTypes.node,
|
|
1335
1339
|
withDotItemClick: PropTypes.bool,
|
|
1336
1340
|
withoutScreensMenu: PropTypes.bool,
|
|
1337
1341
|
withoutShareMenu: PropTypes.bool,
|
|
@@ -1357,6 +1361,7 @@ var defaultProps$9 = {
|
|
|
1357
1361
|
screenSize: null,
|
|
1358
1362
|
menuWidth: null,
|
|
1359
1363
|
previewHeader: null,
|
|
1364
|
+
previewFooter: null,
|
|
1360
1365
|
withDotItemClick: false,
|
|
1361
1366
|
withoutScreensMenu: false,
|
|
1362
1367
|
withoutShareMenu: false,
|
|
@@ -1381,6 +1386,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
|
|
|
1381
1386
|
screenSize = _ref.screenSize,
|
|
1382
1387
|
menuWidth = _ref.menuWidth,
|
|
1383
1388
|
previewHeader = _ref.previewHeader,
|
|
1389
|
+
previewFooter = _ref.previewFooter,
|
|
1384
1390
|
withDotItemClick = _ref.withDotItemClick,
|
|
1385
1391
|
withoutScreensMenu = _ref.withoutScreensMenu,
|
|
1386
1392
|
withoutShareMenu = _ref.withoutShareMenu,
|
|
@@ -1713,6 +1719,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
|
|
|
1713
1719
|
}, menuMounted ? /*#__PURE__*/React.createElement(ViewerMenuPreview, {
|
|
1714
1720
|
viewerTheme: viewerTheme,
|
|
1715
1721
|
header: previewHeader,
|
|
1722
|
+
footer: previewFooter,
|
|
1716
1723
|
title: title,
|
|
1717
1724
|
className: styles$6.menuPreview,
|
|
1718
1725
|
screenSize: screenSize,
|
|
@@ -2444,6 +2451,11 @@ var propTypes$2 = {
|
|
|
2444
2451
|
neighborScreenScale: PropTypes.number,
|
|
2445
2452
|
topSafezoneHeight: PropTypes.number,
|
|
2446
2453
|
bottomSafezoneHeight: PropTypes.number,
|
|
2454
|
+
menuDotsButtons: PropTypes.node,
|
|
2455
|
+
menuIsScreenWidth: PropTypes.bool,
|
|
2456
|
+
menuHeader: PropTypes.node,
|
|
2457
|
+
menuFooter: PropTypes.node,
|
|
2458
|
+
closeable: PropTypes.bool,
|
|
2447
2459
|
withMetadata: PropTypes.bool,
|
|
2448
2460
|
withoutGestures: PropTypes.bool,
|
|
2449
2461
|
withoutMenu: PropTypes.bool,
|
|
@@ -2456,16 +2468,12 @@ var propTypes$2 = {
|
|
|
2456
2468
|
withNeighborScreens: PropTypes.bool,
|
|
2457
2469
|
withNavigationHint: PropTypes.bool,
|
|
2458
2470
|
withoutPlaybackControls: PropTypes.bool,
|
|
2459
|
-
menuDotsButtons: PropTypes.node,
|
|
2460
|
-
closeable: PropTypes.bool,
|
|
2461
2471
|
onClose: PropTypes.func,
|
|
2462
2472
|
onInteraction: PropTypes.func,
|
|
2463
2473
|
onEnd: PropTypes.func,
|
|
2464
2474
|
onViewModeChange: PropTypes.func,
|
|
2465
2475
|
onMenuChange: PropTypes.func,
|
|
2466
2476
|
currentScreenMedia: PropTypes$1.ref,
|
|
2467
|
-
menuIsScreenWidth: PropTypes.bool,
|
|
2468
|
-
menuHeader: PropTypes.node,
|
|
2469
2477
|
screensMedias: PropTypes$1.ref,
|
|
2470
2478
|
screenSizeOptions: PropTypes.shape({
|
|
2471
2479
|
withoutMaxSize: PropTypes.bool,
|
|
@@ -2492,6 +2500,11 @@ var defaultProps$2 = {
|
|
|
2492
2500
|
neighborScreenScale: 0.8,
|
|
2493
2501
|
topSafezoneHeight: null,
|
|
2494
2502
|
bottomSafezoneHeight: null,
|
|
2503
|
+
menuIsScreenWidth: false,
|
|
2504
|
+
menuHeader: null,
|
|
2505
|
+
menuFooter: null,
|
|
2506
|
+
menuDotsButtons: null,
|
|
2507
|
+
closeable: false,
|
|
2495
2508
|
withMetadata: false,
|
|
2496
2509
|
withNeighborScreens: false,
|
|
2497
2510
|
withNavigationHint: false,
|
|
@@ -2504,10 +2517,6 @@ var defaultProps$2 = {
|
|
|
2504
2517
|
withoutTransitions: false,
|
|
2505
2518
|
withoutNavigationArrow: false,
|
|
2506
2519
|
withoutPlaybackControls: false,
|
|
2507
|
-
menuIsScreenWidth: false,
|
|
2508
|
-
menuHeader: null,
|
|
2509
|
-
menuDotsButtons: null,
|
|
2510
|
-
closeable: false,
|
|
2511
2520
|
onClose: null,
|
|
2512
2521
|
onInteraction: null,
|
|
2513
2522
|
onEnd: null,
|
|
@@ -2535,6 +2544,11 @@ var Viewer = function Viewer(_ref) {
|
|
|
2535
2544
|
neighborScreenScale = _ref.neighborScreenScale,
|
|
2536
2545
|
topSafezoneHeight = _ref.topSafezoneHeight,
|
|
2537
2546
|
bottomSafezoneHeight = _ref.bottomSafezoneHeight,
|
|
2547
|
+
menuIsScreenWidth = _ref.menuIsScreenWidth,
|
|
2548
|
+
menuHeader = _ref.menuHeader,
|
|
2549
|
+
menuDotsButtons = _ref.menuDotsButtons,
|
|
2550
|
+
menuFooter = _ref.menuFooter,
|
|
2551
|
+
closeable = _ref.closeable,
|
|
2538
2552
|
withMetadata = _ref.withMetadata,
|
|
2539
2553
|
withoutGestures = _ref.withoutGestures,
|
|
2540
2554
|
withoutMenu = _ref.withoutMenu,
|
|
@@ -2547,10 +2561,6 @@ var Viewer = function Viewer(_ref) {
|
|
|
2547
2561
|
withNeighborScreens = _ref.withNeighborScreens,
|
|
2548
2562
|
withNavigationHint = _ref.withNavigationHint,
|
|
2549
2563
|
withoutPlaybackControls = _ref.withoutPlaybackControls,
|
|
2550
|
-
menuIsScreenWidth = _ref.menuIsScreenWidth,
|
|
2551
|
-
menuHeader = _ref.menuHeader,
|
|
2552
|
-
menuDotsButtons = _ref.menuDotsButtons,
|
|
2553
|
-
closeable = _ref.closeable,
|
|
2554
2564
|
onCloseViewer = _ref.onClose,
|
|
2555
2565
|
onInteraction = _ref.onInteraction,
|
|
2556
2566
|
onEnd = _ref.onEnd,
|
|
@@ -3036,6 +3046,7 @@ var Viewer = function Viewer(_ref) {
|
|
|
3036
3046
|
menuWidth: menuIsScreenWidth ? screenContainerWidth : null,
|
|
3037
3047
|
theme: viewerTheme,
|
|
3038
3048
|
previewHeader: menuHeader,
|
|
3049
|
+
previewFooter: menuFooter,
|
|
3039
3050
|
trackingEnabled: trackingEnabled,
|
|
3040
3051
|
onClickScreen: onClickScreen,
|
|
3041
3052
|
onClickCloseViewer: onCloseViewer,
|
package/lib/index.js
CHANGED
|
@@ -970,6 +970,7 @@ var _excluded$3 = ["textAlign"];
|
|
|
970
970
|
var propTypes$c = {
|
|
971
971
|
viewerTheme: core.PropTypes.viewerTheme,
|
|
972
972
|
header: PropTypes.node,
|
|
973
|
+
footer: PropTypes.node,
|
|
973
974
|
screenSize: core.PropTypes.screenSize,
|
|
974
975
|
title: PropTypes.string,
|
|
975
976
|
menuWidth: PropTypes.number,
|
|
@@ -989,6 +990,7 @@ var propTypes$c = {
|
|
|
989
990
|
var defaultProps$c = {
|
|
990
991
|
viewerTheme: null,
|
|
991
992
|
header: null,
|
|
993
|
+
footer: null,
|
|
992
994
|
screenSize: null,
|
|
993
995
|
title: null,
|
|
994
996
|
menuWidth: null,
|
|
@@ -1007,6 +1009,7 @@ var defaultProps$c = {
|
|
|
1007
1009
|
var ViewerMenuPreview = function ViewerMenuPreview(_ref) {
|
|
1008
1010
|
var viewerTheme = _ref.viewerTheme,
|
|
1009
1011
|
header = _ref.header,
|
|
1012
|
+
footer = _ref.footer,
|
|
1010
1013
|
screenSize = _ref.screenSize,
|
|
1011
1014
|
title = _ref.title,
|
|
1012
1015
|
menuWidth = _ref.menuWidth,
|
|
@@ -1133,7 +1136,7 @@ var ViewerMenuPreview = function ViewerMenuPreview(_ref) {
|
|
|
1133
1136
|
onClick: onClickScreen,
|
|
1134
1137
|
focusable: focusable
|
|
1135
1138
|
}) : null)));
|
|
1136
|
-
}))))));
|
|
1139
|
+
}))), footer)));
|
|
1137
1140
|
};
|
|
1138
1141
|
ViewerMenuPreview.propTypes = propTypes$c;
|
|
1139
1142
|
ViewerMenuPreview.defaultProps = defaultProps$c;
|
|
@@ -1336,6 +1339,7 @@ var propTypes$9 = {
|
|
|
1336
1339
|
screenSize: core.PropTypes.screenSize,
|
|
1337
1340
|
menuWidth: PropTypes.number,
|
|
1338
1341
|
previewHeader: PropTypes.node,
|
|
1342
|
+
previewFooter: PropTypes.node,
|
|
1339
1343
|
withDotItemClick: PropTypes.bool,
|
|
1340
1344
|
withoutScreensMenu: PropTypes.bool,
|
|
1341
1345
|
withoutShareMenu: PropTypes.bool,
|
|
@@ -1361,6 +1365,7 @@ var defaultProps$9 = {
|
|
|
1361
1365
|
screenSize: null,
|
|
1362
1366
|
menuWidth: null,
|
|
1363
1367
|
previewHeader: null,
|
|
1368
|
+
previewFooter: null,
|
|
1364
1369
|
withDotItemClick: false,
|
|
1365
1370
|
withoutScreensMenu: false,
|
|
1366
1371
|
withoutShareMenu: false,
|
|
@@ -1385,6 +1390,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
|
|
|
1385
1390
|
screenSize = _ref.screenSize,
|
|
1386
1391
|
menuWidth = _ref.menuWidth,
|
|
1387
1392
|
previewHeader = _ref.previewHeader,
|
|
1393
|
+
previewFooter = _ref.previewFooter,
|
|
1388
1394
|
withDotItemClick = _ref.withDotItemClick,
|
|
1389
1395
|
withoutScreensMenu = _ref.withoutScreensMenu,
|
|
1390
1396
|
withoutShareMenu = _ref.withoutShareMenu,
|
|
@@ -1717,6 +1723,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
|
|
|
1717
1723
|
}, menuMounted ? /*#__PURE__*/React.createElement(ViewerMenuPreview, {
|
|
1718
1724
|
viewerTheme: viewerTheme,
|
|
1719
1725
|
header: previewHeader,
|
|
1726
|
+
footer: previewFooter,
|
|
1720
1727
|
title: title,
|
|
1721
1728
|
className: styles$6.menuPreview,
|
|
1722
1729
|
screenSize: screenSize,
|
|
@@ -2448,6 +2455,11 @@ var propTypes$2 = {
|
|
|
2448
2455
|
neighborScreenScale: PropTypes.number,
|
|
2449
2456
|
topSafezoneHeight: PropTypes.number,
|
|
2450
2457
|
bottomSafezoneHeight: PropTypes.number,
|
|
2458
|
+
menuDotsButtons: PropTypes.node,
|
|
2459
|
+
menuIsScreenWidth: PropTypes.bool,
|
|
2460
|
+
menuHeader: PropTypes.node,
|
|
2461
|
+
menuFooter: PropTypes.node,
|
|
2462
|
+
closeable: PropTypes.bool,
|
|
2451
2463
|
withMetadata: PropTypes.bool,
|
|
2452
2464
|
withoutGestures: PropTypes.bool,
|
|
2453
2465
|
withoutMenu: PropTypes.bool,
|
|
@@ -2460,16 +2472,12 @@ var propTypes$2 = {
|
|
|
2460
2472
|
withNeighborScreens: PropTypes.bool,
|
|
2461
2473
|
withNavigationHint: PropTypes.bool,
|
|
2462
2474
|
withoutPlaybackControls: PropTypes.bool,
|
|
2463
|
-
menuDotsButtons: PropTypes.node,
|
|
2464
|
-
closeable: PropTypes.bool,
|
|
2465
2475
|
onClose: PropTypes.func,
|
|
2466
2476
|
onInteraction: PropTypes.func,
|
|
2467
2477
|
onEnd: PropTypes.func,
|
|
2468
2478
|
onViewModeChange: PropTypes.func,
|
|
2469
2479
|
onMenuChange: PropTypes.func,
|
|
2470
2480
|
currentScreenMedia: core.PropTypes.ref,
|
|
2471
|
-
menuIsScreenWidth: PropTypes.bool,
|
|
2472
|
-
menuHeader: PropTypes.node,
|
|
2473
2481
|
screensMedias: core.PropTypes.ref,
|
|
2474
2482
|
screenSizeOptions: PropTypes.shape({
|
|
2475
2483
|
withoutMaxSize: PropTypes.bool,
|
|
@@ -2496,6 +2504,11 @@ var defaultProps$2 = {
|
|
|
2496
2504
|
neighborScreenScale: 0.8,
|
|
2497
2505
|
topSafezoneHeight: null,
|
|
2498
2506
|
bottomSafezoneHeight: null,
|
|
2507
|
+
menuIsScreenWidth: false,
|
|
2508
|
+
menuHeader: null,
|
|
2509
|
+
menuFooter: null,
|
|
2510
|
+
menuDotsButtons: null,
|
|
2511
|
+
closeable: false,
|
|
2499
2512
|
withMetadata: false,
|
|
2500
2513
|
withNeighborScreens: false,
|
|
2501
2514
|
withNavigationHint: false,
|
|
@@ -2508,10 +2521,6 @@ var defaultProps$2 = {
|
|
|
2508
2521
|
withoutTransitions: false,
|
|
2509
2522
|
withoutNavigationArrow: false,
|
|
2510
2523
|
withoutPlaybackControls: false,
|
|
2511
|
-
menuIsScreenWidth: false,
|
|
2512
|
-
menuHeader: null,
|
|
2513
|
-
menuDotsButtons: null,
|
|
2514
|
-
closeable: false,
|
|
2515
2524
|
onClose: null,
|
|
2516
2525
|
onInteraction: null,
|
|
2517
2526
|
onEnd: null,
|
|
@@ -2539,6 +2548,11 @@ var Viewer = function Viewer(_ref) {
|
|
|
2539
2548
|
neighborScreenScale = _ref.neighborScreenScale,
|
|
2540
2549
|
topSafezoneHeight = _ref.topSafezoneHeight,
|
|
2541
2550
|
bottomSafezoneHeight = _ref.bottomSafezoneHeight,
|
|
2551
|
+
menuIsScreenWidth = _ref.menuIsScreenWidth,
|
|
2552
|
+
menuHeader = _ref.menuHeader,
|
|
2553
|
+
menuDotsButtons = _ref.menuDotsButtons,
|
|
2554
|
+
menuFooter = _ref.menuFooter,
|
|
2555
|
+
closeable = _ref.closeable,
|
|
2542
2556
|
withMetadata = _ref.withMetadata,
|
|
2543
2557
|
withoutGestures = _ref.withoutGestures,
|
|
2544
2558
|
withoutMenu = _ref.withoutMenu,
|
|
@@ -2551,10 +2565,6 @@ var Viewer = function Viewer(_ref) {
|
|
|
2551
2565
|
withNeighborScreens = _ref.withNeighborScreens,
|
|
2552
2566
|
withNavigationHint = _ref.withNavigationHint,
|
|
2553
2567
|
withoutPlaybackControls = _ref.withoutPlaybackControls,
|
|
2554
|
-
menuIsScreenWidth = _ref.menuIsScreenWidth,
|
|
2555
|
-
menuHeader = _ref.menuHeader,
|
|
2556
|
-
menuDotsButtons = _ref.menuDotsButtons,
|
|
2557
|
-
closeable = _ref.closeable,
|
|
2558
2568
|
onCloseViewer = _ref.onClose,
|
|
2559
2569
|
onInteraction = _ref.onInteraction,
|
|
2560
2570
|
onEnd = _ref.onEnd,
|
|
@@ -3040,6 +3050,7 @@ var Viewer = function Viewer(_ref) {
|
|
|
3040
3050
|
menuWidth: menuIsScreenWidth ? screenContainerWidth : null,
|
|
3041
3051
|
theme: viewerTheme,
|
|
3042
3052
|
previewHeader: menuHeader,
|
|
3053
|
+
previewFooter: menuFooter,
|
|
3043
3054
|
trackingEnabled: trackingEnabled,
|
|
3044
3055
|
onClickScreen: onClickScreen,
|
|
3045
3056
|
onClickCloseViewer: onCloseViewer,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.462",
|
|
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": "
|
|
93
|
+
"gitHead": "cdf44482ebdc89155b55ad52824e88dd8c4e322b"
|
|
94
94
|
}
|