@micromag/screen-timeline 0.3.588 → 0.3.590
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 +4 -1
- package/package.json +13 -13
package/es/index.js
CHANGED
|
@@ -41,6 +41,7 @@ var propTypes = {
|
|
|
41
41
|
background: PropTypes$1.backgroundElement,
|
|
42
42
|
current: PropTypes.bool,
|
|
43
43
|
active: PropTypes.bool,
|
|
44
|
+
preload: PropTypes.bool,
|
|
44
45
|
type: PropTypes.string,
|
|
45
46
|
className: PropTypes.string
|
|
46
47
|
};
|
|
@@ -60,6 +61,7 @@ var defaultProps = {
|
|
|
60
61
|
background: null,
|
|
61
62
|
current: true,
|
|
62
63
|
active: true,
|
|
64
|
+
preload: true,
|
|
63
65
|
type: null,
|
|
64
66
|
className: null
|
|
65
67
|
};
|
|
@@ -79,6 +81,7 @@ var Timeline = function Timeline(_ref) {
|
|
|
79
81
|
background = _ref.background,
|
|
80
82
|
current = _ref.current,
|
|
81
83
|
active = _ref.active,
|
|
84
|
+
preload = _ref.preload,
|
|
82
85
|
type = _ref.type,
|
|
83
86
|
className = _ref.className;
|
|
84
87
|
var trackScreenEvent = useTrackScreenEvent(type);
|
|
@@ -125,7 +128,7 @@ var Timeline = function Timeline(_ref) {
|
|
|
125
128
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
126
129
|
var scrollingDisabled = !isEdit && transitionDisabled || !current;
|
|
127
130
|
var backgroundPlaying = current && (isView || isEdit);
|
|
128
|
-
var mediaShouldLoad = current ||
|
|
131
|
+
var mediaShouldLoad = current || preload;
|
|
129
132
|
var onImageLoaded = useCallback(function () {
|
|
130
133
|
setImagesLoaded(function (count) {
|
|
131
134
|
return count + 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-timeline",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.590",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -60,17 +60,17 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@babel/runtime": "^7.13.10",
|
|
63
|
-
"@micromag/core": "^0.3.
|
|
64
|
-
"@micromag/element-background": "^0.3.
|
|
65
|
-
"@micromag/element-container": "^0.3.
|
|
66
|
-
"@micromag/element-footer": "^0.3.
|
|
67
|
-
"@micromag/element-header": "^0.3.
|
|
68
|
-
"@micromag/element-heading": "^0.3.
|
|
69
|
-
"@micromag/element-layout": "^0.3.
|
|
70
|
-
"@micromag/element-scroll": "^0.3.
|
|
71
|
-
"@micromag/element-text": "^0.3.
|
|
72
|
-
"@micromag/element-visual": "^0.3.
|
|
73
|
-
"@micromag/transforms": "^0.3.
|
|
63
|
+
"@micromag/core": "^0.3.590",
|
|
64
|
+
"@micromag/element-background": "^0.3.590",
|
|
65
|
+
"@micromag/element-container": "^0.3.590",
|
|
66
|
+
"@micromag/element-footer": "^0.3.590",
|
|
67
|
+
"@micromag/element-header": "^0.3.590",
|
|
68
|
+
"@micromag/element-heading": "^0.3.590",
|
|
69
|
+
"@micromag/element-layout": "^0.3.590",
|
|
70
|
+
"@micromag/element-scroll": "^0.3.590",
|
|
71
|
+
"@micromag/element-text": "^0.3.590",
|
|
72
|
+
"@micromag/element-visual": "^0.3.590",
|
|
73
|
+
"@micromag/transforms": "^0.3.590",
|
|
74
74
|
"classnames": "^2.2.6",
|
|
75
75
|
"lodash": "^4.17.21",
|
|
76
76
|
"prop-types": "^15.7.2",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"access": "public",
|
|
82
82
|
"registry": "https://registry.npmjs.org/"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "aee5033c29da327111287f71fd59cb77f469306a"
|
|
85
85
|
}
|