@micromag/viewer 0.3.105 → 0.3.106
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 +7 -3
- package/lib/index.js +7 -3
- package/package.json +8 -8
package/es/index.js
CHANGED
|
@@ -724,6 +724,7 @@ var propTypes$7 = {
|
|
|
724
724
|
shareUrl: PropTypes.string,
|
|
725
725
|
items: PropTypes$1.menuItems,
|
|
726
726
|
focusable: PropTypes.bool,
|
|
727
|
+
shouldLoad: PropTypes.bool,
|
|
727
728
|
onClickItem: PropTypes.func,
|
|
728
729
|
onClose: PropTypes.func,
|
|
729
730
|
onShare: PropTypes.func,
|
|
@@ -741,6 +742,7 @@ var defaultProps$7 = {
|
|
|
741
742
|
shareUrl: null,
|
|
742
743
|
items: [],
|
|
743
744
|
focusable: true,
|
|
745
|
+
shouldLoad: true,
|
|
744
746
|
onClickItem: null,
|
|
745
747
|
onClose: null,
|
|
746
748
|
onShare: null,
|
|
@@ -758,8 +760,9 @@ var ViewerMenuPreview = function ViewerMenuPreview(_ref) {
|
|
|
758
760
|
title = _ref.title,
|
|
759
761
|
shareUrl = _ref.shareUrl,
|
|
760
762
|
items = _ref.items,
|
|
761
|
-
focusable = _ref.focusable
|
|
762
|
-
|
|
763
|
+
focusable = _ref.focusable;
|
|
764
|
+
_ref.shouldLoad;
|
|
765
|
+
var onClickItem = _ref.onClickItem,
|
|
763
766
|
onClose = _ref.onClose,
|
|
764
767
|
onShare = _ref.onShare,
|
|
765
768
|
maxThumbsWidth = _ref.maxThumbsWidth,
|
|
@@ -981,7 +984,8 @@ var ViewerMenuPreview = function ViewerMenuPreview(_ref) {
|
|
|
981
984
|
screenHeight: screenHeight,
|
|
982
985
|
width: thumbWidth,
|
|
983
986
|
screen: screen,
|
|
984
|
-
focusable:
|
|
987
|
+
focusable: focusable,
|
|
988
|
+
active: focusable,
|
|
985
989
|
withSize: true // withStack
|
|
986
990
|
// stackCount={count}
|
|
987
991
|
|
package/lib/index.js
CHANGED
|
@@ -742,6 +742,7 @@ var propTypes$7 = {
|
|
|
742
742
|
shareUrl: PropTypes__default["default"].string,
|
|
743
743
|
items: core$1.PropTypes.menuItems,
|
|
744
744
|
focusable: PropTypes__default["default"].bool,
|
|
745
|
+
shouldLoad: PropTypes__default["default"].bool,
|
|
745
746
|
onClickItem: PropTypes__default["default"].func,
|
|
746
747
|
onClose: PropTypes__default["default"].func,
|
|
747
748
|
onShare: PropTypes__default["default"].func,
|
|
@@ -759,6 +760,7 @@ var defaultProps$7 = {
|
|
|
759
760
|
shareUrl: null,
|
|
760
761
|
items: [],
|
|
761
762
|
focusable: true,
|
|
763
|
+
shouldLoad: true,
|
|
762
764
|
onClickItem: null,
|
|
763
765
|
onClose: null,
|
|
764
766
|
onShare: null,
|
|
@@ -776,8 +778,9 @@ var ViewerMenuPreview = function ViewerMenuPreview(_ref) {
|
|
|
776
778
|
title = _ref.title,
|
|
777
779
|
shareUrl = _ref.shareUrl,
|
|
778
780
|
items = _ref.items,
|
|
779
|
-
focusable = _ref.focusable
|
|
780
|
-
|
|
781
|
+
focusable = _ref.focusable;
|
|
782
|
+
_ref.shouldLoad;
|
|
783
|
+
var onClickItem = _ref.onClickItem,
|
|
781
784
|
onClose = _ref.onClose,
|
|
782
785
|
onShare = _ref.onShare,
|
|
783
786
|
maxThumbsWidth = _ref.maxThumbsWidth,
|
|
@@ -999,7 +1002,8 @@ var ViewerMenuPreview = function ViewerMenuPreview(_ref) {
|
|
|
999
1002
|
screenHeight: screenHeight,
|
|
1000
1003
|
width: thumbWidth,
|
|
1001
1004
|
screen: screen,
|
|
1002
|
-
focusable:
|
|
1005
|
+
focusable: focusable,
|
|
1006
|
+
active: focusable,
|
|
1003
1007
|
withSize: true // withStack
|
|
1004
1008
|
// stackCount={count}
|
|
1005
1009
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.106",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
60
60
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
61
61
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
62
|
-
"@micromag/core": "^0.3.
|
|
63
|
-
"@micromag/element-scroll": "^0.3.
|
|
64
|
-
"@micromag/elements": "^0.3.
|
|
65
|
-
"@micromag/fields": "^0.3.
|
|
66
|
-
"@micromag/intl": "^0.3.
|
|
67
|
-
"@micromag/screens": "^0.3.
|
|
62
|
+
"@micromag/core": "^0.3.106",
|
|
63
|
+
"@micromag/element-scroll": "^0.3.106",
|
|
64
|
+
"@micromag/elements": "^0.3.106",
|
|
65
|
+
"@micromag/fields": "^0.3.106",
|
|
66
|
+
"@micromag/intl": "^0.3.106",
|
|
67
|
+
"@micromag/screens": "^0.3.106",
|
|
68
68
|
"@react-spring/core": "^9.1.1",
|
|
69
69
|
"@react-spring/web": "^9.1.1",
|
|
70
70
|
"@use-gesture/react": "^10.2.4",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "865842ef7fbdc41f89dd0891857989ded63d44c4"
|
|
85
85
|
}
|