@micromag/screen-image 0.3.105 → 0.3.108
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 +5 -3
- package/lib/index.js +5 -3
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -111,8 +111,9 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
111
111
|
isStatic = _useScreenRenderConte.isStatic,
|
|
112
112
|
isCapture = _useScreenRenderConte.isCapture;
|
|
113
113
|
|
|
114
|
-
var backgroundPlaying = current && (isView || isEdit);
|
|
115
|
-
|
|
114
|
+
var backgroundPlaying = current && (isView || isEdit); // const mediaShouldLoad = current || active;
|
|
115
|
+
|
|
116
|
+
var mediaShouldLoad = current || active;
|
|
116
117
|
var hasImage = image !== null;
|
|
117
118
|
var hasTitle = isTextFilled(title);
|
|
118
119
|
var hasText = isTextFilled(text);
|
|
@@ -180,6 +181,7 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
180
181
|
height: imageHeight,
|
|
181
182
|
resolution: resolution,
|
|
182
183
|
playing: backgroundPlaying,
|
|
184
|
+
shouldLoad: mediaShouldLoad,
|
|
183
185
|
onLoaded: onImageLoaded
|
|
184
186
|
})) : null)), withTitle && /*#__PURE__*/React.createElement(ScreenElement, {
|
|
185
187
|
key: "title",
|
|
@@ -295,7 +297,7 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
295
297
|
height: height,
|
|
296
298
|
resolution: resolution,
|
|
297
299
|
playing: backgroundPlaying,
|
|
298
|
-
shouldLoad:
|
|
300
|
+
shouldLoad: mediaShouldLoad
|
|
299
301
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
300
302
|
width: width,
|
|
301
303
|
height: height
|
package/lib/index.js
CHANGED
|
@@ -133,8 +133,9 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
133
133
|
isStatic = _useScreenRenderConte.isStatic,
|
|
134
134
|
isCapture = _useScreenRenderConte.isCapture;
|
|
135
135
|
|
|
136
|
-
var backgroundPlaying = current && (isView || isEdit);
|
|
137
|
-
|
|
136
|
+
var backgroundPlaying = current && (isView || isEdit); // const mediaShouldLoad = current || active;
|
|
137
|
+
|
|
138
|
+
var mediaShouldLoad = current || active;
|
|
138
139
|
var hasImage = image !== null;
|
|
139
140
|
var hasTitle = utils.isTextFilled(title);
|
|
140
141
|
var hasText = utils.isTextFilled(text);
|
|
@@ -202,6 +203,7 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
202
203
|
height: imageHeight,
|
|
203
204
|
resolution: resolution,
|
|
204
205
|
playing: backgroundPlaying,
|
|
206
|
+
shouldLoad: mediaShouldLoad,
|
|
205
207
|
onLoaded: onImageLoaded
|
|
206
208
|
})) : null)), withTitle && /*#__PURE__*/React__default["default"].createElement(components.ScreenElement, {
|
|
207
209
|
key: "title",
|
|
@@ -317,7 +319,7 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
317
319
|
height: height,
|
|
318
320
|
resolution: resolution,
|
|
319
321
|
playing: backgroundPlaying,
|
|
320
|
-
shouldLoad:
|
|
322
|
+
shouldLoad: mediaShouldLoad
|
|
321
323
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
322
324
|
width: width,
|
|
323
325
|
height: height
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-image",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.108",
|
|
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.3.
|
|
53
|
-
"@micromag/element-background": "^0.3.
|
|
54
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
55
|
-
"@micromag/element-container": "^0.3.
|
|
56
|
-
"@micromag/element-heading": "^0.3.
|
|
57
|
-
"@micromag/element-layout": "^0.3.
|
|
58
|
-
"@micromag/element-text": "^0.3.
|
|
59
|
-
"@micromag/element-visual": "^0.3.
|
|
60
|
-
"@micromag/transforms": "^0.3.
|
|
52
|
+
"@micromag/core": "^0.3.108",
|
|
53
|
+
"@micromag/element-background": "^0.3.108",
|
|
54
|
+
"@micromag/element-call-to-action": "^0.3.108",
|
|
55
|
+
"@micromag/element-container": "^0.3.108",
|
|
56
|
+
"@micromag/element-heading": "^0.3.108",
|
|
57
|
+
"@micromag/element-layout": "^0.3.108",
|
|
58
|
+
"@micromag/element-text": "^0.3.108",
|
|
59
|
+
"@micromag/element-visual": "^0.3.108",
|
|
60
|
+
"@micromag/transforms": "^0.3.108",
|
|
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": "d7681b84be82b08eff5ed444f910ed367f235f4e"
|
|
71
71
|
}
|