@micromag/screen-text 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
@@ -29,6 +29,7 @@ var propTypes = {
29
29
  background: PropTypes$1.backgroundElement,
30
30
  callToAction: PropTypes$1.callToAction,
31
31
  current: PropTypes.bool,
32
+ active: PropTypes.bool,
32
33
  transitions: PropTypes$1.transitions,
33
34
  transitionStagger: PropTypes.number,
34
35
  className: PropTypes.string
@@ -42,6 +43,7 @@ var defaultProps = {
42
43
  background: null,
43
44
  callToAction: null,
44
45
  current: true,
46
+ active: true,
45
47
  transitions: null,
46
48
  transitionStagger: 100,
47
49
  className: null
@@ -58,6 +60,7 @@ var TextScreen = function TextScreen(_ref) {
58
60
  background = _ref.background,
59
61
  callToAction = _ref.callToAction,
60
62
  current = _ref.current,
63
+ active = _ref.active,
61
64
  transitions = _ref.transitions,
62
65
  transitionStagger = _ref.transitionStagger,
63
66
  className = _ref.className;
@@ -144,7 +147,8 @@ var TextScreen = function TextScreen(_ref) {
144
147
  background: background,
145
148
  width: width,
146
149
  height: height,
147
- playing: backgroundPlaying
150
+ playing: backgroundPlaying,
151
+ shouldLoad: current || active
148
152
  }) : null, /*#__PURE__*/React.createElement(Container, {
149
153
  width: width,
150
154
  height: height
package/lib/index.js CHANGED
@@ -49,6 +49,7 @@ var propTypes = {
49
49
  background: core.PropTypes.backgroundElement,
50
50
  callToAction: core.PropTypes.callToAction,
51
51
  current: PropTypes__default["default"].bool,
52
+ active: PropTypes__default["default"].bool,
52
53
  transitions: core.PropTypes.transitions,
53
54
  transitionStagger: PropTypes__default["default"].number,
54
55
  className: PropTypes__default["default"].string
@@ -62,6 +63,7 @@ var defaultProps = {
62
63
  background: null,
63
64
  callToAction: null,
64
65
  current: true,
66
+ active: true,
65
67
  transitions: null,
66
68
  transitionStagger: 100,
67
69
  className: null
@@ -78,6 +80,7 @@ var TextScreen = function TextScreen(_ref) {
78
80
  background = _ref.background,
79
81
  callToAction = _ref.callToAction,
80
82
  current = _ref.current,
83
+ active = _ref.active,
81
84
  transitions = _ref.transitions,
82
85
  transitionStagger = _ref.transitionStagger,
83
86
  className = _ref.className;
@@ -164,7 +167,8 @@ var TextScreen = function TextScreen(_ref) {
164
167
  background: background,
165
168
  width: width,
166
169
  height: height,
167
- playing: backgroundPlaying
170
+ playing: backgroundPlaying,
171
+ shouldLoad: current || active
168
172
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
169
173
  width: width,
170
174
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-text",
3
- "version": "0.2.405",
3
+ "version": "0.2.406",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -50,7 +50,7 @@
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-heading": "^0.2.405",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "e3d172d92d78222d5307cc1513fee7eef9f28402"
69
+ "gitHead": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
70
70
  }