@micromag/screen-gallery-feed 0.3.103 → 0.3.107

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 CHANGED
@@ -93,7 +93,7 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
93
93
  isCapture = _useScreenRenderConte.isCapture;
94
94
 
95
95
  var backgroundPlaying = current && (isView || isEdit);
96
- var backgroundShouldLoad = current || active || !isView;
96
+ var mediaShouldLoad = current || active;
97
97
  var hasImages = images !== null;
98
98
  var imagesCount = hasImages ? images.length : 0;
99
99
 
@@ -151,7 +151,8 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
151
151
  width: firstImageRefWidth,
152
152
  resolution: resolution,
153
153
  onLoaded: onImageLoaded,
154
- playing: backgroundPlaying
154
+ playing: backgroundPlaying,
155
+ shouldLoad: mediaShouldLoad
155
156
  }))));
156
157
  var captionElement = null;
157
158
 
@@ -253,7 +254,7 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
253
254
  height: height,
254
255
  resolution: resolution,
255
256
  playing: backgroundPlaying,
256
- shouldLoad: backgroundShouldLoad
257
+ shouldLoad: mediaShouldLoad
257
258
  }) : null, /*#__PURE__*/React.createElement(Container, {
258
259
  width: width,
259
260
  height: height
package/lib/index.js CHANGED
@@ -115,7 +115,7 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
115
115
  isCapture = _useScreenRenderConte.isCapture;
116
116
 
117
117
  var backgroundPlaying = current && (isView || isEdit);
118
- var backgroundShouldLoad = current || active || !isView;
118
+ var mediaShouldLoad = current || active;
119
119
  var hasImages = images !== null;
120
120
  var imagesCount = hasImages ? images.length : 0;
121
121
 
@@ -173,7 +173,8 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
173
173
  width: firstImageRefWidth,
174
174
  resolution: resolution,
175
175
  onLoaded: onImageLoaded,
176
- playing: backgroundPlaying
176
+ playing: backgroundPlaying,
177
+ shouldLoad: mediaShouldLoad
177
178
  }))));
178
179
  var captionElement = null;
179
180
 
@@ -275,7 +276,7 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
275
276
  height: height,
276
277
  resolution: resolution,
277
278
  playing: backgroundPlaying,
278
- shouldLoad: backgroundShouldLoad
279
+ shouldLoad: mediaShouldLoad
279
280
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
280
281
  width: width,
281
282
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-gallery-feed",
3
- "version": "0.3.103",
3
+ "version": "0.3.107",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -40,25 +40,25 @@
40
40
  "prepare": "../../scripts/prepare-package.sh"
41
41
  },
42
42
  "devDependencies": {
43
- "react": "^16.8.0 || ^17.0.0",
44
- "react-dom": "^16.8.0 || ^17.0.0"
43
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
44
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
- "react": "^16.8.0 || ^17.0.0",
48
- "react-dom": "^16.8.0 || ^17.0.0"
47
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
48
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.3.91",
53
- "@micromag/element-background": "^0.3.91",
54
- "@micromag/element-call-to-action": "^0.3.103",
55
- "@micromag/element-container": "^0.3.91",
56
- "@micromag/element-layout": "^0.3.91",
57
- "@micromag/element-scroll": "^0.3.91",
58
- "@micromag/element-stack": "^0.3.91",
59
- "@micromag/element-text": "^0.3.91",
60
- "@micromag/element-visual": "^0.3.91",
61
- "@micromag/transforms": "^0.3.91",
52
+ "@micromag/core": "^0.3.107",
53
+ "@micromag/element-background": "^0.3.107",
54
+ "@micromag/element-call-to-action": "^0.3.107",
55
+ "@micromag/element-container": "^0.3.107",
56
+ "@micromag/element-layout": "^0.3.107",
57
+ "@micromag/element-scroll": "^0.3.107",
58
+ "@micromag/element-stack": "^0.3.107",
59
+ "@micromag/element-text": "^0.3.107",
60
+ "@micromag/element-visual": "^0.3.107",
61
+ "@micromag/transforms": "^0.3.107",
62
62
  "classnames": "^2.2.6",
63
63
  "lodash": "^4.17.21",
64
64
  "prop-types": "^15.7.2",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "660b2ada7b03941feb841470abf5cd2cc6e3e68f"
71
+ "gitHead": "952ef450fe62328a0ae3ab6dbb3c3079bb66d17a"
72
72
  }