@micromag/screen-gallery-feed 0.2.404 → 0.2.408

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
@@ -31,6 +31,7 @@ var propTypes = {
31
31
  background: PropTypes$1.backgroundElement,
32
32
  callToAction: PropTypes$1.callToAction,
33
33
  current: PropTypes.bool,
34
+ active: PropTypes.bool,
34
35
  transitions: PropTypes$1.transitions,
35
36
  transitionStagger: PropTypes.number,
36
37
  type: PropTypes.string,
@@ -44,6 +45,7 @@ var defaultProps = {
44
45
  background: null,
45
46
  callToAction: null,
46
47
  current: true,
48
+ active: true,
47
49
  transitions: null,
48
50
  transitionStagger: 75,
49
51
  type: null,
@@ -60,6 +62,7 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
60
62
  background = _ref.background,
61
63
  callToAction = _ref.callToAction,
62
64
  current = _ref.current,
65
+ active = _ref.active,
63
66
  transitions = _ref.transitions,
64
67
  transitionStagger = _ref.transitionStagger,
65
68
  type = _ref.type,
@@ -83,6 +86,7 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
83
86
  isCapture = _useScreenRenderConte.isCapture;
84
87
 
85
88
  var backgroundPlaying = current && (isView || isEdit);
89
+ var backgroundShouldLoad = current || active || !isView;
86
90
  var hasImages = images !== null;
87
91
  var imagesCount = hasImages ? images.length : 0;
88
92
 
@@ -239,7 +243,8 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
239
243
  background: background,
240
244
  width: width,
241
245
  height: height,
242
- playing: backgroundPlaying
246
+ playing: backgroundPlaying,
247
+ shouldLoad: backgroundShouldLoad
243
248
  }) : null, /*#__PURE__*/React.createElement(Container, {
244
249
  width: width,
245
250
  height: height
package/lib/index.js CHANGED
@@ -53,6 +53,7 @@ var propTypes = {
53
53
  background: core.PropTypes.backgroundElement,
54
54
  callToAction: core.PropTypes.callToAction,
55
55
  current: PropTypes__default["default"].bool,
56
+ active: PropTypes__default["default"].bool,
56
57
  transitions: core.PropTypes.transitions,
57
58
  transitionStagger: PropTypes__default["default"].number,
58
59
  type: PropTypes__default["default"].string,
@@ -66,6 +67,7 @@ var defaultProps = {
66
67
  background: null,
67
68
  callToAction: null,
68
69
  current: true,
70
+ active: true,
69
71
  transitions: null,
70
72
  transitionStagger: 75,
71
73
  type: null,
@@ -82,6 +84,7 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
82
84
  background = _ref.background,
83
85
  callToAction = _ref.callToAction,
84
86
  current = _ref.current,
87
+ active = _ref.active,
85
88
  transitions = _ref.transitions,
86
89
  transitionStagger = _ref.transitionStagger,
87
90
  type = _ref.type,
@@ -105,6 +108,7 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
105
108
  isCapture = _useScreenRenderConte.isCapture;
106
109
 
107
110
  var backgroundPlaying = current && (isView || isEdit);
111
+ var backgroundShouldLoad = current || active || !isView;
108
112
  var hasImages = images !== null;
109
113
  var imagesCount = hasImages ? images.length : 0;
110
114
 
@@ -261,7 +265,8 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
261
265
  background: background,
262
266
  width: width,
263
267
  height: height,
264
- playing: backgroundPlaying
268
+ playing: backgroundPlaying,
269
+ shouldLoad: backgroundShouldLoad
265
270
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
266
271
  width: width,
267
272
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-gallery-feed",
3
- "version": "0.2.404",
3
+ "version": "0.2.408",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,16 +49,16 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.2.404",
53
- "@micromag/element-background": "^0.2.404",
54
- "@micromag/element-call-to-action": "^0.2.404",
55
- "@micromag/element-container": "^0.2.404",
56
- "@micromag/element-layout": "^0.2.404",
57
- "@micromag/element-scroll": "^0.2.404",
58
- "@micromag/element-stack": "^0.2.404",
59
- "@micromag/element-text": "^0.2.404",
60
- "@micromag/element-visual": "^0.2.404",
61
- "@micromag/transforms": "^0.2.404",
52
+ "@micromag/core": "^0.2.405",
53
+ "@micromag/element-background": "^0.2.407",
54
+ "@micromag/element-call-to-action": "^0.2.405",
55
+ "@micromag/element-container": "^0.2.405",
56
+ "@micromag/element-layout": "^0.2.405",
57
+ "@micromag/element-scroll": "^0.2.405",
58
+ "@micromag/element-stack": "^0.2.405",
59
+ "@micromag/element-text": "^0.2.405",
60
+ "@micromag/element-visual": "^0.2.407",
61
+ "@micromag/transforms": "^0.2.405",
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": "34d5345cb0dad79206bb6b7a25f02742663023ee"
71
+ "gitHead": "4bc2ba99622adef74bd0da42cb52d1a575c1a544"
72
72
  }