@micromag/screen-timeline 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 +3 -2
- package/lib/index.js +3 -2
- package/package.json +12 -12
package/es/index.js
CHANGED
|
@@ -128,7 +128,7 @@ var Timeline = function Timeline(_ref) {
|
|
|
128
128
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
129
129
|
var scrollingDisabled = !isEdit && transitionDisabled || !current;
|
|
130
130
|
var backgroundPlaying = current && (isView || isEdit);
|
|
131
|
-
var
|
|
131
|
+
var mediaShouldLoad = current || active;
|
|
132
132
|
var onImageLoaded = useCallback(function () {
|
|
133
133
|
setImagesLoaded(imagesLoaded + 1);
|
|
134
134
|
}, [imagesLoaded, setImagesLoaded]);
|
|
@@ -217,6 +217,7 @@ var Timeline = function Timeline(_ref) {
|
|
|
217
217
|
width: imageWidth,
|
|
218
218
|
resolution: resolution,
|
|
219
219
|
playing: backgroundPlaying,
|
|
220
|
+
shouldLoad: mediaShouldLoad,
|
|
220
221
|
onLoaded: onImageLoaded
|
|
221
222
|
}) : null));
|
|
222
223
|
break;
|
|
@@ -304,7 +305,7 @@ var Timeline = function Timeline(_ref) {
|
|
|
304
305
|
height: height,
|
|
305
306
|
resolution: resolution,
|
|
306
307
|
playing: backgroundPlaying,
|
|
307
|
-
shouldLoad:
|
|
308
|
+
shouldLoad: mediaShouldLoad
|
|
308
309
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
309
310
|
width: width,
|
|
310
311
|
height: height
|
package/lib/index.js
CHANGED
|
@@ -151,7 +151,7 @@ var Timeline = function Timeline(_ref) {
|
|
|
151
151
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
152
152
|
var scrollingDisabled = !isEdit && transitionDisabled || !current;
|
|
153
153
|
var backgroundPlaying = current && (isView || isEdit);
|
|
154
|
-
var
|
|
154
|
+
var mediaShouldLoad = current || active;
|
|
155
155
|
var onImageLoaded = React.useCallback(function () {
|
|
156
156
|
setImagesLoaded(imagesLoaded + 1);
|
|
157
157
|
}, [imagesLoaded, setImagesLoaded]);
|
|
@@ -240,6 +240,7 @@ var Timeline = function Timeline(_ref) {
|
|
|
240
240
|
width: imageWidth,
|
|
241
241
|
resolution: resolution,
|
|
242
242
|
playing: backgroundPlaying,
|
|
243
|
+
shouldLoad: mediaShouldLoad,
|
|
243
244
|
onLoaded: onImageLoaded
|
|
244
245
|
}) : null));
|
|
245
246
|
break;
|
|
@@ -327,7 +328,7 @@ var Timeline = function Timeline(_ref) {
|
|
|
327
328
|
height: height,
|
|
328
329
|
resolution: resolution,
|
|
329
330
|
playing: backgroundPlaying,
|
|
330
|
-
shouldLoad:
|
|
331
|
+
shouldLoad: mediaShouldLoad
|
|
331
332
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
332
333
|
width: width,
|
|
333
334
|
height: height
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-timeline",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.108",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,16 +49,16 @@
|
|
|
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-scroll": "^0.3.
|
|
59
|
-
"@micromag/element-text": "^0.3.
|
|
60
|
-
"@micromag/element-visual": "^0.3.
|
|
61
|
-
"@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-scroll": "^0.3.108",
|
|
59
|
+
"@micromag/element-text": "^0.3.108",
|
|
60
|
+
"@micromag/element-visual": "^0.3.108",
|
|
61
|
+
"@micromag/transforms": "^0.3.108",
|
|
62
62
|
"classnames": "^2.2.6",
|
|
63
63
|
"lodash": "^4.17.21",
|
|
64
64
|
"prop-types": "^15.7.2",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "d7681b84be82b08eff5ed444f910ed367f235f4e"
|
|
72
72
|
}
|