@micromag/screen-quiz 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 +3 -2
- package/lib/index.js +3 -2
- package/package.json +12 -12
package/es/index.js
CHANGED
|
@@ -144,7 +144,8 @@ var QuizScreen = function QuizScreen(_ref) {
|
|
|
144
144
|
var verticalAlign = isSplitted ? null : layout;
|
|
145
145
|
var transitionPlaying = current;
|
|
146
146
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
147
|
-
var backgroundPlaying = current && (isView || isEdit);
|
|
147
|
+
var backgroundPlaying = current && (isView || isEdit);
|
|
148
|
+
var backgroundShouldLoad = current || active || !isView; // Call to Action
|
|
148
149
|
|
|
149
150
|
var hasCallToAction = callToAction !== null && callToAction.active === true;
|
|
150
151
|
|
|
@@ -400,7 +401,7 @@ var QuizScreen = function QuizScreen(_ref) {
|
|
|
400
401
|
width: width,
|
|
401
402
|
height: height,
|
|
402
403
|
playing: backgroundPlaying,
|
|
403
|
-
shouldLoad:
|
|
404
|
+
shouldLoad: backgroundShouldLoad
|
|
404
405
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
405
406
|
width: width,
|
|
406
407
|
height: height
|
package/lib/index.js
CHANGED
|
@@ -165,7 +165,8 @@ var QuizScreen = function QuizScreen(_ref) {
|
|
|
165
165
|
var verticalAlign = isSplitted ? null : layout;
|
|
166
166
|
var transitionPlaying = current;
|
|
167
167
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
168
|
-
var backgroundPlaying = current && (isView || isEdit);
|
|
168
|
+
var backgroundPlaying = current && (isView || isEdit);
|
|
169
|
+
var backgroundShouldLoad = current || active || !isView; // Call to Action
|
|
169
170
|
|
|
170
171
|
var hasCallToAction = callToAction !== null && callToAction.active === true;
|
|
171
172
|
|
|
@@ -421,7 +422,7 @@ var QuizScreen = function QuizScreen(_ref) {
|
|
|
421
422
|
width: width,
|
|
422
423
|
height: height,
|
|
423
424
|
playing: backgroundPlaying,
|
|
424
|
-
shouldLoad:
|
|
425
|
+
shouldLoad: backgroundShouldLoad
|
|
425
426
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
426
427
|
width: width,
|
|
427
428
|
height: height
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-quiz",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.412",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
53
53
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
54
54
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
55
|
-
"@micromag/core": "^0.2.
|
|
56
|
-
"@micromag/data": "^0.2.
|
|
57
|
-
"@micromag/element-background": "^0.2.
|
|
58
|
-
"@micromag/element-button": "^0.2.
|
|
59
|
-
"@micromag/element-call-to-action": "^0.2.
|
|
60
|
-
"@micromag/element-container": "^0.2.
|
|
61
|
-
"@micromag/element-heading": "^0.2.
|
|
62
|
-
"@micromag/element-layout": "^0.2.
|
|
63
|
-
"@micromag/element-text": "^0.2.
|
|
64
|
-
"@micromag/transforms": "^0.2.
|
|
55
|
+
"@micromag/core": "^0.2.412",
|
|
56
|
+
"@micromag/data": "^0.2.412",
|
|
57
|
+
"@micromag/element-background": "^0.2.412",
|
|
58
|
+
"@micromag/element-button": "^0.2.412",
|
|
59
|
+
"@micromag/element-call-to-action": "^0.2.412",
|
|
60
|
+
"@micromag/element-container": "^0.2.412",
|
|
61
|
+
"@micromag/element-heading": "^0.2.412",
|
|
62
|
+
"@micromag/element-layout": "^0.2.412",
|
|
63
|
+
"@micromag/element-text": "^0.2.412",
|
|
64
|
+
"@micromag/transforms": "^0.2.412",
|
|
65
65
|
"classnames": "^2.2.6",
|
|
66
66
|
"lodash": "^4.17.21",
|
|
67
67
|
"prop-types": "^15.7.2",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "e16acc4643a563f4b7e98ddc1b778ea8a6c8b320"
|
|
75
75
|
}
|