@micromag/screen-video-360 0.2.404 → 0.2.408
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 +6 -3
- package/lib/index.js +6 -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,
|
|
@@ -141,6 +142,7 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
141
142
|
isCapture = _useScreenRenderConte.isCapture;
|
|
142
143
|
|
|
143
144
|
var backgroundPlaying = current && (isView || isEdit);
|
|
145
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
144
146
|
var videoContainerRef = useRef();
|
|
145
147
|
var apiRef = useRef();
|
|
146
148
|
|
|
@@ -559,7 +561,8 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
559
561
|
background: background,
|
|
560
562
|
width: width,
|
|
561
563
|
height: height,
|
|
562
|
-
playing: backgroundPlaying
|
|
564
|
+
playing: backgroundPlaying,
|
|
565
|
+
shouldLoad: backgroundShouldLoad
|
|
563
566
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
564
567
|
width: width,
|
|
565
568
|
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,
|
|
@@ -180,6 +181,7 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
180
181
|
isCapture = _useScreenRenderConte.isCapture;
|
|
181
182
|
|
|
182
183
|
var backgroundPlaying = current && (isView || isEdit);
|
|
184
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
183
185
|
var videoContainerRef = React.useRef();
|
|
184
186
|
var apiRef = React.useRef();
|
|
185
187
|
|
|
@@ -598,7 +600,8 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
598
600
|
background: background,
|
|
599
601
|
width: width,
|
|
600
602
|
height: height,
|
|
601
|
-
playing: backgroundPlaying
|
|
603
|
+
playing: backgroundPlaying,
|
|
604
|
+
shouldLoad: backgroundShouldLoad
|
|
602
605
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
603
606
|
width: width,
|
|
604
607
|
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.408",
|
|
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": "4bc2ba99622adef74bd0da42cb52d1a575c1a544"
|
|
74
74
|
}
|