@micromag/screen-video-360 0.2.403 → 0.2.407
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
|
@@ -86,7 +86,7 @@ var propTypes = {
|
|
|
86
86
|
background: PropTypes$1.backgroundElement,
|
|
87
87
|
callToAction: PropTypes$1.callToAction,
|
|
88
88
|
current: PropTypes.bool,
|
|
89
|
-
|
|
89
|
+
active: PropTypes.bool,
|
|
90
90
|
transitions: PropTypes$1.transitions,
|
|
91
91
|
onPrevious: PropTypes.func,
|
|
92
92
|
onNext: PropTypes.func,
|
|
@@ -100,7 +100,7 @@ var defaultProps = {
|
|
|
100
100
|
background: null,
|
|
101
101
|
callToAction: null,
|
|
102
102
|
current: true,
|
|
103
|
-
|
|
103
|
+
active: true,
|
|
104
104
|
transitions: null,
|
|
105
105
|
onPrevious: null,
|
|
106
106
|
onNext: null,
|
|
@@ -117,6 +117,7 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
117
117
|
background = _ref.background,
|
|
118
118
|
callToAction = _ref.callToAction,
|
|
119
119
|
current = _ref.current,
|
|
120
|
+
active = _ref.active,
|
|
120
121
|
transitions = _ref.transitions,
|
|
121
122
|
onPrevious = _ref.onPrevious,
|
|
122
123
|
onNext = _ref.onNext,
|
|
@@ -559,7 +560,8 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
559
560
|
background: background,
|
|
560
561
|
width: width,
|
|
561
562
|
height: height,
|
|
562
|
-
playing: backgroundPlaying
|
|
563
|
+
playing: backgroundPlaying,
|
|
564
|
+
shouldLoad: current || active
|
|
563
565
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
564
566
|
width: width,
|
|
565
567
|
height: height
|
package/lib/index.js
CHANGED
|
@@ -125,7 +125,7 @@ var propTypes = {
|
|
|
125
125
|
background: core.PropTypes.backgroundElement,
|
|
126
126
|
callToAction: core.PropTypes.callToAction,
|
|
127
127
|
current: PropTypes__default["default"].bool,
|
|
128
|
-
|
|
128
|
+
active: PropTypes__default["default"].bool,
|
|
129
129
|
transitions: core.PropTypes.transitions,
|
|
130
130
|
onPrevious: PropTypes__default["default"].func,
|
|
131
131
|
onNext: PropTypes__default["default"].func,
|
|
@@ -139,7 +139,7 @@ var defaultProps = {
|
|
|
139
139
|
background: null,
|
|
140
140
|
callToAction: null,
|
|
141
141
|
current: true,
|
|
142
|
-
|
|
142
|
+
active: true,
|
|
143
143
|
transitions: null,
|
|
144
144
|
onPrevious: null,
|
|
145
145
|
onNext: null,
|
|
@@ -156,6 +156,7 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
156
156
|
background = _ref.background,
|
|
157
157
|
callToAction = _ref.callToAction,
|
|
158
158
|
current = _ref.current,
|
|
159
|
+
active = _ref.active,
|
|
159
160
|
transitions = _ref.transitions,
|
|
160
161
|
onPrevious = _ref.onPrevious,
|
|
161
162
|
onNext = _ref.onNext,
|
|
@@ -598,7 +599,8 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
598
599
|
background: background,
|
|
599
600
|
width: width,
|
|
600
601
|
height: height,
|
|
601
|
-
playing: backgroundPlaying
|
|
602
|
+
playing: backgroundPlaying,
|
|
603
|
+
shouldLoad: current || active
|
|
602
604
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
603
605
|
width: width,
|
|
604
606
|
height: height
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-video-360",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.407",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
52
|
"@folklore/size": "^0.1.15",
|
|
53
|
-
"@micromag/core": "^0.2.
|
|
54
|
-
"@micromag/element-background": "^0.2.
|
|
55
|
-
"@micromag/element-call-to-action": "^0.2.
|
|
56
|
-
"@micromag/element-closed-captions": "^0.2.
|
|
57
|
-
"@micromag/element-container": "^0.2.
|
|
58
|
-
"@micromag/element-image": "^0.2.
|
|
59
|
-
"@micromag/element-media-controls": "^0.2.
|
|
60
|
-
"@micromag/element-video": "^0.2.
|
|
61
|
-
"@micromag/transforms": "^0.2.
|
|
53
|
+
"@micromag/core": "^0.2.405",
|
|
54
|
+
"@micromag/element-background": "^0.2.407",
|
|
55
|
+
"@micromag/element-call-to-action": "^0.2.405",
|
|
56
|
+
"@micromag/element-closed-captions": "^0.2.405",
|
|
57
|
+
"@micromag/element-container": "^0.2.405",
|
|
58
|
+
"@micromag/element-image": "^0.2.406",
|
|
59
|
+
"@micromag/element-media-controls": "^0.2.405",
|
|
60
|
+
"@micromag/element-video": "^0.2.407",
|
|
61
|
+
"@micromag/transforms": "^0.2.405",
|
|
62
62
|
"classnames": "^2.2.6",
|
|
63
63
|
"lodash": "^4.17.21",
|
|
64
64
|
"prop-types": "^15.7.2",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "6e9f2acd39ad4982b571b91c406d30c59f4be473"
|
|
74
74
|
}
|