@micromag/screen-quote 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
|
@@ -87,6 +87,7 @@ var QuoteScreen = function QuoteScreen(_ref) {
|
|
|
87
87
|
var transitionPlaying = current;
|
|
88
88
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
89
89
|
var backgroundPlaying = current && (isView || isEdit);
|
|
90
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
90
91
|
var hasCallToAction = callToAction !== null && callToAction.active === true;
|
|
91
92
|
var items = [!isPlaceholder && hasCallToAction && isMiddleLayout ? /*#__PURE__*/React.createElement(Spacer, {
|
|
92
93
|
key: "spacer-cta-top"
|
|
@@ -143,7 +144,7 @@ var QuoteScreen = function QuoteScreen(_ref) {
|
|
|
143
144
|
width: width,
|
|
144
145
|
height: height,
|
|
145
146
|
playing: backgroundPlaying,
|
|
146
|
-
shouldLoad:
|
|
147
|
+
shouldLoad: backgroundShouldLoad
|
|
147
148
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
148
149
|
width: width,
|
|
149
150
|
height: height
|
package/lib/index.js
CHANGED
|
@@ -106,6 +106,7 @@ var QuoteScreen = function QuoteScreen(_ref) {
|
|
|
106
106
|
var transitionPlaying = current;
|
|
107
107
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
108
108
|
var backgroundPlaying = current && (isView || isEdit);
|
|
109
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
109
110
|
var hasCallToAction = callToAction !== null && callToAction.active === true;
|
|
110
111
|
var items = [!isPlaceholder && hasCallToAction && isMiddleLayout ? /*#__PURE__*/React__default["default"].createElement(Layout.Spacer, {
|
|
111
112
|
key: "spacer-cta-top"
|
|
@@ -162,7 +163,7 @@ var QuoteScreen = function QuoteScreen(_ref) {
|
|
|
162
163
|
width: width,
|
|
163
164
|
height: height,
|
|
164
165
|
playing: backgroundPlaying,
|
|
165
|
-
shouldLoad:
|
|
166
|
+
shouldLoad: backgroundShouldLoad
|
|
166
167
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
167
168
|
width: width,
|
|
168
169
|
height: height
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-quote",
|
|
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-layout": "^0.2.
|
|
57
|
-
"@micromag/element-quote": "^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-layout": "^0.2.412",
|
|
57
|
+
"@micromag/element-quote": "^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
|
}
|