@micromag/screen-video-360 0.2.401 → 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 +13 -11
- package/lib/index.js +13 -11
- 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
|
|
@@ -627,8 +629,8 @@ var definition = {
|
|
|
627
629
|
type: 'screen',
|
|
628
630
|
group: {
|
|
629
631
|
label: defineMessage({
|
|
630
|
-
|
|
631
|
-
|
|
632
|
+
id: "+9akmg",
|
|
633
|
+
defaultMessage: [{
|
|
632
634
|
"type": 0,
|
|
633
635
|
"value": "Audio and Video"
|
|
634
636
|
}]
|
|
@@ -636,8 +638,8 @@ var definition = {
|
|
|
636
638
|
order: 5
|
|
637
639
|
},
|
|
638
640
|
title: defineMessage({
|
|
639
|
-
|
|
640
|
-
|
|
641
|
+
id: "GRVidW",
|
|
642
|
+
defaultMessage: [{
|
|
641
643
|
"type": 0,
|
|
642
644
|
"value": "360 Video"
|
|
643
645
|
}]
|
|
@@ -655,8 +657,8 @@ var definition = {
|
|
|
655
657
|
autoPlay: true
|
|
656
658
|
},
|
|
657
659
|
label: defineMessage({
|
|
658
|
-
|
|
659
|
-
|
|
660
|
+
id: "tvl2Zc",
|
|
661
|
+
defaultMessage: [{
|
|
660
662
|
"type": 0,
|
|
661
663
|
"value": "Video"
|
|
662
664
|
}]
|
|
@@ -665,8 +667,8 @@ var definition = {
|
|
|
665
667
|
name: 'background',
|
|
666
668
|
type: 'background',
|
|
667
669
|
label: defineMessage({
|
|
668
|
-
|
|
669
|
-
|
|
670
|
+
id: "+MPZRu",
|
|
671
|
+
defaultMessage: [{
|
|
670
672
|
"type": 0,
|
|
671
673
|
"value": "Background"
|
|
672
674
|
}]
|
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
|
|
@@ -666,8 +668,8 @@ var definition = {
|
|
|
666
668
|
type: 'screen',
|
|
667
669
|
group: {
|
|
668
670
|
label: reactIntl.defineMessage({
|
|
669
|
-
|
|
670
|
-
|
|
671
|
+
id: "+9akmg",
|
|
672
|
+
defaultMessage: [{
|
|
671
673
|
"type": 0,
|
|
672
674
|
"value": "Audio and Video"
|
|
673
675
|
}]
|
|
@@ -675,8 +677,8 @@ var definition = {
|
|
|
675
677
|
order: 5
|
|
676
678
|
},
|
|
677
679
|
title: reactIntl.defineMessage({
|
|
678
|
-
|
|
679
|
-
|
|
680
|
+
id: "GRVidW",
|
|
681
|
+
defaultMessage: [{
|
|
680
682
|
"type": 0,
|
|
681
683
|
"value": "360 Video"
|
|
682
684
|
}]
|
|
@@ -694,8 +696,8 @@ var definition = {
|
|
|
694
696
|
autoPlay: true
|
|
695
697
|
},
|
|
696
698
|
label: reactIntl.defineMessage({
|
|
697
|
-
|
|
698
|
-
|
|
699
|
+
id: "tvl2Zc",
|
|
700
|
+
defaultMessage: [{
|
|
699
701
|
"type": 0,
|
|
700
702
|
"value": "Video"
|
|
701
703
|
}]
|
|
@@ -704,8 +706,8 @@ var definition = {
|
|
|
704
706
|
name: 'background',
|
|
705
707
|
type: 'background',
|
|
706
708
|
label: reactIntl.defineMessage({
|
|
707
|
-
|
|
708
|
-
|
|
709
|
+
id: "+MPZRu",
|
|
710
|
+
defaultMessage: [{
|
|
709
711
|
"type": 0,
|
|
710
712
|
"value": "Background"
|
|
711
713
|
}]
|
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.406",
|
|
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.406",
|
|
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.405",
|
|
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": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
|
|
74
74
|
}
|