@micromag/screen-gallery 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 +11 -11
package/es/index.js
CHANGED
|
@@ -260,6 +260,7 @@ var GalleryScreen = function GalleryScreen(_ref) {
|
|
|
260
260
|
isCapture = _useScreenRenderConte.isCapture;
|
|
261
261
|
|
|
262
262
|
var backgroundPlaying = current && (isView || isEdit);
|
|
263
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
263
264
|
var finalSpacing = isPlaceholder ? 5 : spacing;
|
|
264
265
|
var grid = isPlainObject(layoutProps[layout]) ? layoutProps[layout] : {};
|
|
265
266
|
var _grid$layout = grid.layout,
|
|
@@ -404,7 +405,7 @@ var GalleryScreen = function GalleryScreen(_ref) {
|
|
|
404
405
|
width: width,
|
|
405
406
|
height: height,
|
|
406
407
|
playing: backgroundPlaying,
|
|
407
|
-
shouldLoad:
|
|
408
|
+
shouldLoad: backgroundShouldLoad
|
|
408
409
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
409
410
|
width: width,
|
|
410
411
|
height: height
|
package/lib/index.js
CHANGED
|
@@ -282,6 +282,7 @@ var GalleryScreen = function GalleryScreen(_ref) {
|
|
|
282
282
|
isCapture = _useScreenRenderConte.isCapture;
|
|
283
283
|
|
|
284
284
|
var backgroundPlaying = current && (isView || isEdit);
|
|
285
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
285
286
|
var finalSpacing = isPlaceholder ? 5 : spacing;
|
|
286
287
|
var grid = isPlainObject__default["default"](layoutProps[layout]) ? layoutProps[layout] : {};
|
|
287
288
|
var _grid$layout = grid.layout,
|
|
@@ -426,7 +427,7 @@ var GalleryScreen = function GalleryScreen(_ref) {
|
|
|
426
427
|
width: width,
|
|
427
428
|
height: height,
|
|
428
429
|
playing: backgroundPlaying,
|
|
429
|
-
shouldLoad:
|
|
430
|
+
shouldLoad: backgroundShouldLoad
|
|
430
431
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
431
432
|
width: width,
|
|
432
433
|
height: height
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-gallery",
|
|
3
|
-
"version": "0.2.
|
|
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.
|
|
53
|
-
"@micromag/element-background": "^0.2.
|
|
54
|
-
"@micromag/element-call-to-action": "^0.2.
|
|
55
|
-
"@micromag/element-container": "^0.2.
|
|
56
|
-
"@micromag/element-grid": "^0.2.
|
|
57
|
-
"@micromag/element-layout": "^0.2.
|
|
58
|
-
"@micromag/element-text": "^0.2.
|
|
59
|
-
"@micromag/element-visual": "^0.2.
|
|
60
|
-
"@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-grid": "^0.2.412",
|
|
57
|
+
"@micromag/element-layout": "^0.2.412",
|
|
58
|
+
"@micromag/element-text": "^0.2.412",
|
|
59
|
+
"@micromag/element-visual": "^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": "
|
|
70
|
+
"gitHead": "e16acc4643a563f4b7e98ddc1b778ea8a6c8b320"
|
|
71
71
|
}
|