@micromag/screen-audio 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
@@ -86,6 +86,7 @@ var AudioScreen = function AudioScreen(_ref) {
86
86
  setReady = _useState2[1];
87
87
 
88
88
  var backgroundPlaying = current && (isView || isEdit);
89
+ var backgroundShouldLoad = current || active || !isView;
89
90
  var transitionPlaying = current && ready;
90
91
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
91
92
  var hasAudio = audio !== null;
@@ -268,7 +269,7 @@ var AudioScreen = function AudioScreen(_ref) {
268
269
  width: width,
269
270
  height: height,
270
271
  playing: backgroundPlaying,
271
- shouldLoad: current || active
272
+ shouldLoad: backgroundShouldLoad
272
273
  }) : null, /*#__PURE__*/React.createElement(Container, {
273
274
  width: width,
274
275
  height: height
package/lib/index.js CHANGED
@@ -107,6 +107,7 @@ var AudioScreen = function AudioScreen(_ref) {
107
107
  setReady = _useState2[1];
108
108
 
109
109
  var backgroundPlaying = current && (isView || isEdit);
110
+ var backgroundShouldLoad = current || active || !isView;
110
111
  var transitionPlaying = current && ready;
111
112
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
112
113
  var hasAudio = audio !== null;
@@ -289,7 +290,7 @@ var AudioScreen = function AudioScreen(_ref) {
289
290
  width: width,
290
291
  height: height,
291
292
  playing: backgroundPlaying,
292
- shouldLoad: current || active
293
+ shouldLoad: backgroundShouldLoad
293
294
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
294
295
  width: width,
295
296
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-audio",
3
- "version": "0.2.406",
3
+ "version": "0.2.412",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,15 +49,15 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.2.405",
53
- "@micromag/element-audio": "^0.2.405",
54
- "@micromag/element-background": "^0.2.406",
55
- "@micromag/element-call-to-action": "^0.2.405",
56
- "@micromag/element-closed-captions": "^0.2.405",
57
- "@micromag/element-container": "^0.2.405",
58
- "@micromag/element-layout": "^0.2.405",
59
- "@micromag/element-media-controls": "^0.2.405",
60
- "@micromag/transforms": "^0.2.405",
52
+ "@micromag/core": "^0.2.412",
53
+ "@micromag/element-audio": "^0.2.412",
54
+ "@micromag/element-background": "^0.2.412",
55
+ "@micromag/element-call-to-action": "^0.2.412",
56
+ "@micromag/element-closed-captions": "^0.2.412",
57
+ "@micromag/element-container": "^0.2.412",
58
+ "@micromag/element-layout": "^0.2.412",
59
+ "@micromag/element-media-controls": "^0.2.412",
60
+ "@micromag/transforms": "^0.2.412",
61
61
  "classnames": "^2.2.6",
62
62
  "lodash": "^4.17.21",
63
63
  "prop-types": "^15.7.2",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
70
+ "gitHead": "e16acc4643a563f4b7e98ddc1b778ea8a6c8b320"
71
71
  }