@micromag/screen-text 0.2.406 → 0.2.412
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 +2 -1
- package/lib/index.js +2 -1
- package/package.json +10 -10
package/es/index.js
CHANGED
|
@@ -91,6 +91,7 @@ var TextScreen = function TextScreen(_ref) {
|
|
|
91
91
|
var transitionPlaying = current;
|
|
92
92
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
93
93
|
var backgroundPlaying = current && (isView || isEdit);
|
|
94
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
94
95
|
var hasCallToAction = callToAction !== null && callToAction.active === true; // Create elements
|
|
95
96
|
|
|
96
97
|
var items = [!isPlaceholder && hasCallToAction && isMiddleLayout ? /*#__PURE__*/React.createElement(Spacer, {
|
|
@@ -148,7 +149,7 @@ var TextScreen = function TextScreen(_ref) {
|
|
|
148
149
|
width: width,
|
|
149
150
|
height: height,
|
|
150
151
|
playing: backgroundPlaying,
|
|
151
|
-
shouldLoad:
|
|
152
|
+
shouldLoad: backgroundShouldLoad
|
|
152
153
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
153
154
|
width: width,
|
|
154
155
|
height: height
|
package/lib/index.js
CHANGED
|
@@ -111,6 +111,7 @@ var TextScreen = function TextScreen(_ref) {
|
|
|
111
111
|
var transitionPlaying = current;
|
|
112
112
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
113
113
|
var backgroundPlaying = current && (isView || isEdit);
|
|
114
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
114
115
|
var hasCallToAction = callToAction !== null && callToAction.active === true; // Create elements
|
|
115
116
|
|
|
116
117
|
var items = [!isPlaceholder && hasCallToAction && isMiddleLayout ? /*#__PURE__*/React__default["default"].createElement(Layout.Spacer, {
|
|
@@ -168,7 +169,7 @@ var TextScreen = function TextScreen(_ref) {
|
|
|
168
169
|
width: width,
|
|
169
170
|
height: height,
|
|
170
171
|
playing: backgroundPlaying,
|
|
171
|
-
shouldLoad:
|
|
172
|
+
shouldLoad: backgroundShouldLoad
|
|
172
173
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
173
174
|
width: width,
|
|
174
175
|
height: height
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-text",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.412",
|
|
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.2.
|
|
53
|
-
"@micromag/element-background": "^0.2.
|
|
54
|
-
"@micromag/element-call-to-action": "^0.2.
|
|
55
|
-
"@micromag/element-container": "^0.2.
|
|
56
|
-
"@micromag/element-heading": "^0.2.
|
|
57
|
-
"@micromag/element-layout": "^0.2.
|
|
58
|
-
"@micromag/element-text": "^0.2.
|
|
59
|
-
"@micromag/transforms": "^0.2.
|
|
52
|
+
"@micromag/core": "^0.2.412",
|
|
53
|
+
"@micromag/element-background": "^0.2.412",
|
|
54
|
+
"@micromag/element-call-to-action": "^0.2.412",
|
|
55
|
+
"@micromag/element-container": "^0.2.412",
|
|
56
|
+
"@micromag/element-heading": "^0.2.412",
|
|
57
|
+
"@micromag/element-layout": "^0.2.412",
|
|
58
|
+
"@micromag/element-text": "^0.2.412",
|
|
59
|
+
"@micromag/transforms": "^0.2.412",
|
|
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": "e16acc4643a563f4b7e98ddc1b778ea8a6c8b320"
|
|
70
70
|
}
|