@micromag/screen-video 0.2.405 → 0.2.406
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 +4 -4
package/es/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var propTypes = {
|
|
|
28
28
|
background: PropTypes$1.backgroundElement,
|
|
29
29
|
callToAction: PropTypes$1.callToAction,
|
|
30
30
|
current: PropTypes.bool,
|
|
31
|
-
|
|
31
|
+
active: PropTypes.bool,
|
|
32
32
|
transitions: PropTypes$1.transitions,
|
|
33
33
|
spacing: PropTypes.number,
|
|
34
34
|
getMediaRef: PropTypes.func,
|
|
@@ -40,7 +40,7 @@ var defaultProps = {
|
|
|
40
40
|
background: null,
|
|
41
41
|
callToAction: null,
|
|
42
42
|
current: true,
|
|
43
|
-
|
|
43
|
+
active: true,
|
|
44
44
|
transitions: null,
|
|
45
45
|
spacing: 20,
|
|
46
46
|
getMediaRef: null,
|
|
@@ -55,6 +55,7 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
55
55
|
background = _ref.background,
|
|
56
56
|
callToAction = _ref.callToAction,
|
|
57
57
|
current = _ref.current,
|
|
58
|
+
active = _ref.active,
|
|
58
59
|
transitions = _ref.transitions,
|
|
59
60
|
spacing = _ref.spacing,
|
|
60
61
|
getMediaRef = _ref.getMediaRef,
|
|
@@ -319,7 +320,8 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
319
320
|
background: background,
|
|
320
321
|
width: width,
|
|
321
322
|
height: height,
|
|
322
|
-
playing: backgroundPlaying
|
|
323
|
+
playing: backgroundPlaying,
|
|
324
|
+
shouldLoad: current || active
|
|
323
325
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
324
326
|
width: width,
|
|
325
327
|
height: height
|
package/lib/index.js
CHANGED
|
@@ -49,7 +49,7 @@ var propTypes = {
|
|
|
49
49
|
background: core.PropTypes.backgroundElement,
|
|
50
50
|
callToAction: core.PropTypes.callToAction,
|
|
51
51
|
current: PropTypes__default["default"].bool,
|
|
52
|
-
|
|
52
|
+
active: PropTypes__default["default"].bool,
|
|
53
53
|
transitions: core.PropTypes.transitions,
|
|
54
54
|
spacing: PropTypes__default["default"].number,
|
|
55
55
|
getMediaRef: PropTypes__default["default"].func,
|
|
@@ -61,7 +61,7 @@ var defaultProps = {
|
|
|
61
61
|
background: null,
|
|
62
62
|
callToAction: null,
|
|
63
63
|
current: true,
|
|
64
|
-
|
|
64
|
+
active: true,
|
|
65
65
|
transitions: null,
|
|
66
66
|
spacing: 20,
|
|
67
67
|
getMediaRef: null,
|
|
@@ -76,6 +76,7 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
76
76
|
background = _ref.background,
|
|
77
77
|
callToAction = _ref.callToAction,
|
|
78
78
|
current = _ref.current,
|
|
79
|
+
active = _ref.active,
|
|
79
80
|
transitions = _ref.transitions,
|
|
80
81
|
spacing = _ref.spacing,
|
|
81
82
|
getMediaRef = _ref.getMediaRef,
|
|
@@ -340,7 +341,8 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
340
341
|
background: background,
|
|
341
342
|
width: width,
|
|
342
343
|
height: height,
|
|
343
|
-
playing: backgroundPlaying
|
|
344
|
+
playing: backgroundPlaying,
|
|
345
|
+
shouldLoad: current || active
|
|
344
346
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
345
347
|
width: width,
|
|
346
348
|
height: height
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-video",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.406",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
52
|
"@folklore/size": "^0.1.15",
|
|
53
53
|
"@micromag/core": "^0.2.405",
|
|
54
|
-
"@micromag/element-background": "^0.2.
|
|
54
|
+
"@micromag/element-background": "^0.2.406",
|
|
55
55
|
"@micromag/element-call-to-action": "^0.2.405",
|
|
56
56
|
"@micromag/element-closed-captions": "^0.2.405",
|
|
57
57
|
"@micromag/element-container": "^0.2.405",
|
|
58
|
-
"@micromag/element-image": "^0.2.
|
|
58
|
+
"@micromag/element-image": "^0.2.406",
|
|
59
59
|
"@micromag/element-media-controls": "^0.2.405",
|
|
60
60
|
"@micromag/element-video": "^0.2.405",
|
|
61
61
|
"@micromag/transforms": "^0.2.405",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
|
|
72
72
|
}
|