@micromag/screen-timeline 0.3.803 → 0.3.807
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 +14 -13
- package/package.json +13 -13
package/es/index.js
CHANGED
|
@@ -374,6 +374,7 @@ var Timeline = function Timeline(_ref) {
|
|
|
374
374
|
}, hasImage ? /*#__PURE__*/React.createElement(Visual, {
|
|
375
375
|
className: styles.image,
|
|
376
376
|
videoClassName: styles.video,
|
|
377
|
+
loadindMode: "lazy",
|
|
377
378
|
media: image,
|
|
378
379
|
width: imageWidth,
|
|
379
380
|
resolution: resolution,
|
|
@@ -521,18 +522,7 @@ var Timeline = function Timeline(_ref) {
|
|
|
521
522
|
paddingTop: spacing / 2,
|
|
522
523
|
paddingBottom: spacing / 2
|
|
523
524
|
}
|
|
524
|
-
}, /*#__PURE__*/React.createElement(Footer, footerProps)) : null),
|
|
525
|
-
background: background,
|
|
526
|
-
width: width,
|
|
527
|
-
height: height,
|
|
528
|
-
resolution: imageResolution,
|
|
529
|
-
playing: backgroundPlaying,
|
|
530
|
-
muted: muted,
|
|
531
|
-
shouldLoad: mediaShouldLoad,
|
|
532
|
-
mediaRef: audioAlternativeMedia === null ? mediaRef : null,
|
|
533
|
-
withoutVideo: isPreview,
|
|
534
|
-
className: styles.background
|
|
535
|
-
}) : null, audioAlternativeMedia !== null ? /*#__PURE__*/React.createElement(Audio, Object.assign({}, finalAudioAlternative, {
|
|
525
|
+
}, /*#__PURE__*/React.createElement(Footer, footerProps)) : null), audioAlternativeMedia !== null ? /*#__PURE__*/React.createElement(Audio, Object.assign({}, finalAudioAlternative, {
|
|
536
526
|
paused: !audioPlaying,
|
|
537
527
|
mediaRef: mediaRef,
|
|
538
528
|
muted: muted,
|
|
@@ -546,7 +536,18 @@ var Timeline = function Timeline(_ref) {
|
|
|
546
536
|
onDurationChange: onAudioDurationChange,
|
|
547
537
|
onSeeked: onAudioSeeked,
|
|
548
538
|
onEnded: onAudioEnded
|
|
549
|
-
})) : null
|
|
539
|
+
})) : null, !isPlaceholder ? /*#__PURE__*/React.createElement(Background, {
|
|
540
|
+
background: background,
|
|
541
|
+
width: width,
|
|
542
|
+
height: height,
|
|
543
|
+
resolution: imageResolution,
|
|
544
|
+
playing: backgroundPlaying,
|
|
545
|
+
muted: muted,
|
|
546
|
+
shouldLoad: mediaShouldLoad,
|
|
547
|
+
mediaRef: audioAlternativeMedia === null ? mediaRef : null,
|
|
548
|
+
withoutVideo: isPreview,
|
|
549
|
+
className: styles.background
|
|
550
|
+
}) : null);
|
|
550
551
|
};
|
|
551
552
|
Timeline.propTypes = propTypes;
|
|
552
553
|
Timeline.defaultProps = defaultProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-timeline",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.807",
|
|
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.807",
|
|
64
|
+
"@micromag/element-background": "^0.3.807",
|
|
65
|
+
"@micromag/element-container": "^0.3.807",
|
|
66
|
+
"@micromag/element-footer": "^0.3.807",
|
|
67
|
+
"@micromag/element-header": "^0.3.807",
|
|
68
|
+
"@micromag/element-heading": "^0.3.807",
|
|
69
|
+
"@micromag/element-layout": "^0.3.807",
|
|
70
|
+
"@micromag/element-scroll": "^0.3.807",
|
|
71
|
+
"@micromag/element-text": "^0.3.807",
|
|
72
|
+
"@micromag/element-visual": "^0.3.807",
|
|
73
|
+
"@micromag/transforms": "^0.3.807",
|
|
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": "5aee5186c7e3b3dc6fe0f11e848943f21c33a195"
|
|
85
85
|
}
|