@micromag/screen-slideshow 0.3.68 → 0.3.69
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 -3
- package/lib/index.js +5 -3
- package/package.json +10 -10
package/es/index.js
CHANGED
|
@@ -64,7 +64,8 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
|
|
|
64
64
|
var _useScreenSize = useScreenSize(),
|
|
65
65
|
width = _useScreenSize.width,
|
|
66
66
|
height = _useScreenSize.height,
|
|
67
|
-
menuOverScreen = _useScreenSize.menuOverScreen
|
|
67
|
+
menuOverScreen = _useScreenSize.menuOverScreen,
|
|
68
|
+
resolution = _useScreenSize.resolution;
|
|
68
69
|
|
|
69
70
|
var _useViewer = useViewer(),
|
|
70
71
|
menuSize = _useViewer.menuSize;
|
|
@@ -102,8 +103,7 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
|
|
|
102
103
|
|
|
103
104
|
var _ref2 = callToActionRect || {},
|
|
104
105
|
_ref2$height = _ref2.height,
|
|
105
|
-
callToActionHeight = _ref2$height === void 0 ? 0 : _ref2$height;
|
|
106
|
-
|
|
106
|
+
callToActionHeight = _ref2$height === void 0 ? 0 : _ref2$height;
|
|
107
107
|
|
|
108
108
|
var items = (slides || []).map(function (item, itemI) {
|
|
109
109
|
var _ref3 = item || {},
|
|
@@ -152,6 +152,7 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
|
|
|
152
152
|
className: styles.image,
|
|
153
153
|
media: visual
|
|
154
154
|
}, imageSize, {
|
|
155
|
+
resolution: resolution,
|
|
155
156
|
objectFit: {
|
|
156
157
|
fit: 'cover'
|
|
157
158
|
},
|
|
@@ -187,6 +188,7 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
|
|
|
187
188
|
background: background,
|
|
188
189
|
width: width,
|
|
189
190
|
height: height,
|
|
191
|
+
resolution: resolution,
|
|
190
192
|
playing: backgroundPlaying,
|
|
191
193
|
shouldLoad: backgroundShouldLoad
|
|
192
194
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
package/lib/index.js
CHANGED
|
@@ -81,7 +81,8 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
|
|
|
81
81
|
var _useScreenSize = contexts.useScreenSize(),
|
|
82
82
|
width = _useScreenSize.width,
|
|
83
83
|
height = _useScreenSize.height,
|
|
84
|
-
menuOverScreen = _useScreenSize.menuOverScreen
|
|
84
|
+
menuOverScreen = _useScreenSize.menuOverScreen,
|
|
85
|
+
resolution = _useScreenSize.resolution;
|
|
85
86
|
|
|
86
87
|
var _useViewer = contexts.useViewer(),
|
|
87
88
|
menuSize = _useViewer.menuSize;
|
|
@@ -119,8 +120,7 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
|
|
|
119
120
|
|
|
120
121
|
var _ref2 = callToActionRect || {},
|
|
121
122
|
_ref2$height = _ref2.height,
|
|
122
|
-
callToActionHeight = _ref2$height === void 0 ? 0 : _ref2$height;
|
|
123
|
-
|
|
123
|
+
callToActionHeight = _ref2$height === void 0 ? 0 : _ref2$height;
|
|
124
124
|
|
|
125
125
|
var items = (slides || []).map(function (item, itemI) {
|
|
126
126
|
var _ref3 = item || {},
|
|
@@ -169,6 +169,7 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
|
|
|
169
169
|
className: styles.image,
|
|
170
170
|
media: visual
|
|
171
171
|
}, imageSize, {
|
|
172
|
+
resolution: resolution,
|
|
172
173
|
objectFit: {
|
|
173
174
|
fit: 'cover'
|
|
174
175
|
},
|
|
@@ -204,6 +205,7 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
|
|
|
204
205
|
background: background,
|
|
205
206
|
width: width,
|
|
206
207
|
height: height,
|
|
208
|
+
resolution: resolution,
|
|
207
209
|
playing: backgroundPlaying,
|
|
208
210
|
shouldLoad: backgroundShouldLoad
|
|
209
211
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-slideshow",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.69",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
|
-
"@micromag/core": "^0.3.
|
|
53
|
-
"@micromag/element-background": "^0.3.
|
|
54
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
55
|
-
"@micromag/element-container": "^0.3.
|
|
56
|
-
"@micromag/element-layout": "^0.3.
|
|
57
|
-
"@micromag/element-text": "^0.3.
|
|
58
|
-
"@micromag/element-visual": "^0.3.
|
|
59
|
-
"@micromag/transforms": "^0.3.
|
|
52
|
+
"@micromag/core": "^0.3.69",
|
|
53
|
+
"@micromag/element-background": "^0.3.69",
|
|
54
|
+
"@micromag/element-call-to-action": "^0.3.69",
|
|
55
|
+
"@micromag/element-container": "^0.3.69",
|
|
56
|
+
"@micromag/element-layout": "^0.3.69",
|
|
57
|
+
"@micromag/element-text": "^0.3.69",
|
|
58
|
+
"@micromag/element-visual": "^0.3.69",
|
|
59
|
+
"@micromag/transforms": "^0.3.69",
|
|
60
60
|
"classnames": "^2.2.6",
|
|
61
61
|
"lodash": "^4.17.21",
|
|
62
62
|
"prop-types": "^15.7.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "c69c85dbe321ddcd2d57f5d972b456ab76b5da3e"
|
|
70
70
|
}
|