@micromag/screen-gallery-feed 0.2.405 → 0.2.406

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,
@@ -239,7 +242,8 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
239
242
  background: background,
240
243
  width: width,
241
244
  height: height,
242
- playing: backgroundPlaying
245
+ playing: backgroundPlaying,
246
+ shouldLoad: current || active
243
247
  }) : null, /*#__PURE__*/React.createElement(Container, {
244
248
  width: width,
245
249
  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,
@@ -261,7 +264,8 @@ var GalleryFeedScreen = function GalleryFeedScreen(_ref) {
261
264
  background: background,
262
265
  width: width,
263
266
  height: height,
264
- playing: backgroundPlaying
267
+ playing: backgroundPlaying,
268
+ shouldLoad: current || active
265
269
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
266
270
  width: width,
267
271
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-gallery-feed",
3
- "version": "0.2.405",
3
+ "version": "0.2.406",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -50,14 +50,14 @@
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
52
  "@micromag/core": "^0.2.405",
53
- "@micromag/element-background": "^0.2.405",
53
+ "@micromag/element-background": "^0.2.406",
54
54
  "@micromag/element-call-to-action": "^0.2.405",
55
55
  "@micromag/element-container": "^0.2.405",
56
56
  "@micromag/element-layout": "^0.2.405",
57
57
  "@micromag/element-scroll": "^0.2.405",
58
58
  "@micromag/element-stack": "^0.2.405",
59
59
  "@micromag/element-text": "^0.2.405",
60
- "@micromag/element-visual": "^0.2.405",
60
+ "@micromag/element-visual": "^0.2.406",
61
61
  "@micromag/transforms": "^0.2.405",
62
62
  "classnames": "^2.2.6",
63
63
  "lodash": "^4.17.21",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "e3d172d92d78222d5307cc1513fee7eef9f28402"
71
+ "gitHead": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
72
72
  }