@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 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); // Call to Action
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: current || active
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); // Call to Action
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: current || active
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.406",
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.405",
56
- "@micromag/data": "^0.2.405",
57
- "@micromag/element-background": "^0.2.406",
58
- "@micromag/element-button": "^0.2.405",
59
- "@micromag/element-call-to-action": "^0.2.405",
60
- "@micromag/element-container": "^0.2.405",
61
- "@micromag/element-heading": "^0.2.405",
62
- "@micromag/element-layout": "^0.2.405",
63
- "@micromag/element-text": "^0.2.405",
64
- "@micromag/transforms": "^0.2.405",
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": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
74
+ "gitHead": "e16acc4643a563f4b7e98ddc1b778ea8a6c8b320"
75
75
  }