@micromag/viewer 0.3.781 → 0.3.784
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 +18 -2
- package/package.json +5 -5
package/es/index.js
CHANGED
|
@@ -1323,6 +1323,7 @@ var propTypes$c = {
|
|
|
1323
1323
|
title: PropTypes.string,
|
|
1324
1324
|
description: PropTypes.string,
|
|
1325
1325
|
items: PropTypes$1.menuItems,
|
|
1326
|
+
shareOptions: PropTypes.arrayOf(PropTypes.string),
|
|
1326
1327
|
focusable: PropTypes.bool,
|
|
1327
1328
|
paddingTop: PropTypes.number,
|
|
1328
1329
|
currentScreenIndex: PropTypes.number,
|
|
@@ -1336,6 +1337,7 @@ var defaultProps$c = {
|
|
|
1336
1337
|
title: null,
|
|
1337
1338
|
description: null,
|
|
1338
1339
|
items: [],
|
|
1340
|
+
shareOptions: null,
|
|
1339
1341
|
focusable: true,
|
|
1340
1342
|
paddingTop: null,
|
|
1341
1343
|
currentScreenIndex: 0,
|
|
@@ -1349,6 +1351,7 @@ var ViewerMenuShare = function ViewerMenuShare(_ref) {
|
|
|
1349
1351
|
title = _ref.title,
|
|
1350
1352
|
description = _ref.description,
|
|
1351
1353
|
items = _ref.items,
|
|
1354
|
+
shareOptions = _ref.shareOptions,
|
|
1352
1355
|
focusable = _ref.focusable,
|
|
1353
1356
|
paddingTop = _ref.paddingTop,
|
|
1354
1357
|
currentScreenIndex = _ref.currentScreenIndex,
|
|
@@ -1440,6 +1443,7 @@ var ViewerMenuShare = function ViewerMenuShare(_ref) {
|
|
|
1440
1443
|
itemClassName: styles$8.optionItem,
|
|
1441
1444
|
buttonClassName: styles$8.optionButton,
|
|
1442
1445
|
title: title,
|
|
1446
|
+
options: shareOptions,
|
|
1443
1447
|
url: finalShareUrl,
|
|
1444
1448
|
focusable: focusable,
|
|
1445
1449
|
onShare: onShare,
|
|
@@ -1464,6 +1468,7 @@ var propTypes$b = {
|
|
|
1464
1468
|
withShadow: PropTypes.bool,
|
|
1465
1469
|
trackingEnabled: PropTypes.bool,
|
|
1466
1470
|
shareBasePath: PropTypes.string,
|
|
1471
|
+
shareOptions: PropTypes.arrayOf(PropTypes.string),
|
|
1467
1472
|
theme: PropTypes$1.viewerTheme,
|
|
1468
1473
|
screenSize: PropTypes$1.screenSize,
|
|
1469
1474
|
menuWidth: PropTypes.number,
|
|
@@ -1494,6 +1499,7 @@ var defaultProps$b = {
|
|
|
1494
1499
|
withShadow: false,
|
|
1495
1500
|
trackingEnabled: false,
|
|
1496
1501
|
shareBasePath: null,
|
|
1502
|
+
shareOptions: null,
|
|
1497
1503
|
theme: null,
|
|
1498
1504
|
screenSize: null,
|
|
1499
1505
|
menuWidth: null,
|
|
@@ -1522,6 +1528,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
|
|
|
1522
1528
|
closeable = _ref.closeable,
|
|
1523
1529
|
withShadow = _ref.withShadow,
|
|
1524
1530
|
shareBasePath = _ref.shareBasePath,
|
|
1531
|
+
shareOptions = _ref.shareOptions,
|
|
1525
1532
|
trackingEnabled = _ref.trackingEnabled,
|
|
1526
1533
|
viewerTheme = _ref.theme,
|
|
1527
1534
|
screenSize = _ref.screenSize,
|
|
@@ -1879,6 +1886,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
|
|
|
1879
1886
|
paddingTop: navContainerHeight,
|
|
1880
1887
|
focusable: shareOpened,
|
|
1881
1888
|
items: items,
|
|
1889
|
+
shareOptions: shareOptions,
|
|
1882
1890
|
currentScreenIndex: currentScreenIndex,
|
|
1883
1891
|
shareUrl: shareUrl,
|
|
1884
1892
|
onShare: onShare,
|
|
@@ -2766,6 +2774,7 @@ var propTypes$2 = {
|
|
|
2766
2774
|
menuFooter: PropTypes.node,
|
|
2767
2775
|
menuItems: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.node])),
|
|
2768
2776
|
shareBasePath: PropTypes.string,
|
|
2777
|
+
shareOptions: PropTypes.arrayOf(PropTypes.string),
|
|
2769
2778
|
afterShareMenuButton: PropTypes.node,
|
|
2770
2779
|
beforeScreensMenuButton: PropTypes.node,
|
|
2771
2780
|
backToFirstScreenTimeout: PropTypes.number,
|
|
@@ -2826,6 +2835,7 @@ var defaultProps$2 = {
|
|
|
2826
2835
|
menuFooter: null,
|
|
2827
2836
|
menuItems: ['share', 'main'],
|
|
2828
2837
|
shareBasePath: null,
|
|
2838
|
+
shareOptions: null,
|
|
2829
2839
|
afterShareMenuButton: null,
|
|
2830
2840
|
beforeScreensMenuButton: null,
|
|
2831
2841
|
backToFirstScreenTimeout: null,
|
|
@@ -2882,6 +2892,7 @@ var Viewer = function Viewer(_ref) {
|
|
|
2882
2892
|
menuFooter = _ref.menuFooter,
|
|
2883
2893
|
menuItems = _ref.menuItems,
|
|
2884
2894
|
shareBasePath = _ref.shareBasePath,
|
|
2895
|
+
shareOptions = _ref.shareOptions,
|
|
2885
2896
|
afterShareMenuButton = _ref.afterShareMenuButton,
|
|
2886
2897
|
beforeScreensMenuButton = _ref.beforeScreensMenuButton,
|
|
2887
2898
|
backToFirstScreenTimeout = _ref.backToFirstScreenTimeout,
|
|
@@ -3588,6 +3599,7 @@ var Viewer = function Viewer(_ref) {
|
|
|
3588
3599
|
menuDotsButtons: menuDotsButtons,
|
|
3589
3600
|
closeable: closeable,
|
|
3590
3601
|
shareBasePath: shareBasePath || basePath,
|
|
3602
|
+
shareOptions: shareOptions,
|
|
3591
3603
|
screenSize: screenSize,
|
|
3592
3604
|
menuWidth: menuIsScreenWidth ? screenContainerWidth : null,
|
|
3593
3605
|
theme: viewerTheme,
|
|
@@ -3771,10 +3783,11 @@ var defaultRoutes = {
|
|
|
3771
3783
|
screen: screen
|
|
3772
3784
|
};
|
|
3773
3785
|
|
|
3774
|
-
var _excluded = ["story", "paused", "screenComponents", "memoryRouter", "basePath", "routes", "withoutRouter", "googleApiKey", "visitor", "locale", "locales", "translations", "pathWithIndex", "trackingVariables", "trackingDisabled", "trackingPaused"];
|
|
3786
|
+
var _excluded = ["story", "paused", "muted", "screenComponents", "memoryRouter", "basePath", "routes", "withoutRouter", "googleApiKey", "visitor", "locale", "locales", "translations", "pathWithIndex", "trackingVariables", "trackingDisabled", "trackingPaused"];
|
|
3775
3787
|
var propTypes = {
|
|
3776
3788
|
story: PropTypes$1.story,
|
|
3777
3789
|
paused: PropTypes.bool,
|
|
3790
|
+
muted: PropTypes.bool,
|
|
3778
3791
|
screen: PropTypes.string,
|
|
3779
3792
|
screenComponents: PropTypes.objectOf(PropTypes.elementType),
|
|
3780
3793
|
memoryRouter: PropTypes.bool,
|
|
@@ -3795,6 +3808,7 @@ var propTypes = {
|
|
|
3795
3808
|
var defaultProps = {
|
|
3796
3809
|
story: null,
|
|
3797
3810
|
paused: false,
|
|
3811
|
+
muted: true,
|
|
3798
3812
|
screen: null,
|
|
3799
3813
|
screenComponents: null,
|
|
3800
3814
|
memoryRouter: false,
|
|
@@ -3815,6 +3829,7 @@ var defaultProps = {
|
|
|
3815
3829
|
var ViewerContainer = function ViewerContainer(_ref) {
|
|
3816
3830
|
var story = _ref.story,
|
|
3817
3831
|
paused = _ref.paused,
|
|
3832
|
+
muted = _ref.muted,
|
|
3818
3833
|
screenComponents = _ref.screenComponents,
|
|
3819
3834
|
memoryRouter = _ref.memoryRouter,
|
|
3820
3835
|
basePath = _ref.basePath,
|
|
@@ -3895,7 +3910,8 @@ var ViewerContainer = function ViewerContainer(_ref) {
|
|
|
3895
3910
|
}, /*#__PURE__*/React.createElement(VisitorProvider, {
|
|
3896
3911
|
visitor: visitor
|
|
3897
3912
|
}, /*#__PURE__*/React.createElement(PlaybackProvider, {
|
|
3898
|
-
paused: paused
|
|
3913
|
+
paused: paused,
|
|
3914
|
+
muted: muted
|
|
3899
3915
|
}, /*#__PURE__*/React.createElement(TrackingProvider, {
|
|
3900
3916
|
variables: finalTrackingVariables,
|
|
3901
3917
|
disabled: trackingDisabled,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.784",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
"@micromag/core": "^0.3.781",
|
|
68
68
|
"@micromag/element-badge": "^0.3.781",
|
|
69
69
|
"@micromag/element-scroll": "^0.3.781",
|
|
70
|
-
"@micromag/element-share-options": "^0.3.
|
|
70
|
+
"@micromag/element-share-options": "^0.3.783",
|
|
71
71
|
"@micromag/element-webview": "^0.3.781",
|
|
72
|
-
"@micromag/elements": "^0.3.
|
|
72
|
+
"@micromag/elements": "^0.3.783",
|
|
73
73
|
"@micromag/intl": "^0.3.781",
|
|
74
|
-
"@micromag/screens": "^0.3.
|
|
74
|
+
"@micromag/screens": "^0.3.783",
|
|
75
75
|
"@react-spring/core": "^9.6.1",
|
|
76
76
|
"@react-spring/web": "^9.6.1",
|
|
77
77
|
"@use-gesture/react": "^10.3.0",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"access": "public",
|
|
92
92
|
"registry": "https://registry.npmjs.org/"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "516257dfb521d7241096cd2e0d31aa6b08721640"
|
|
95
95
|
}
|