@micromag/screen-video-360 0.3.86 → 0.3.91
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 +9 -1
- package/lib/index.js +9 -1
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -92,6 +92,8 @@ var propTypes = {
|
|
|
92
92
|
onNext: PropTypes.func,
|
|
93
93
|
type: PropTypes.string,
|
|
94
94
|
spacing: PropTypes.number,
|
|
95
|
+
enableInteraction: PropTypes.func,
|
|
96
|
+
disableInteraction: PropTypes.func,
|
|
95
97
|
className: PropTypes.string
|
|
96
98
|
};
|
|
97
99
|
var defaultProps = {
|
|
@@ -106,6 +108,8 @@ var defaultProps = {
|
|
|
106
108
|
onNext: null,
|
|
107
109
|
type: null,
|
|
108
110
|
spacing: 20,
|
|
111
|
+
enableInteraction: null,
|
|
112
|
+
disableInteraction: null,
|
|
109
113
|
className: null
|
|
110
114
|
};
|
|
111
115
|
|
|
@@ -123,6 +127,8 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
123
127
|
onNext = _ref.onNext,
|
|
124
128
|
type = _ref.type,
|
|
125
129
|
spacing = _ref.spacing,
|
|
130
|
+
enableInteraction = _ref.enableInteraction,
|
|
131
|
+
disableInteraction = _ref.disableInteraction,
|
|
126
132
|
className = _ref.className;
|
|
127
133
|
var THREE = useThree();
|
|
128
134
|
var trackScreenEvent = useTrackScreenEvent(type);
|
|
@@ -558,7 +564,9 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
558
564
|
screenSize: {
|
|
559
565
|
width: width,
|
|
560
566
|
height: height
|
|
561
|
-
}
|
|
567
|
+
},
|
|
568
|
+
enableInteraction: enableInteraction,
|
|
569
|
+
disableInteraction: disableInteraction
|
|
562
570
|
})) : null)) : null];
|
|
563
571
|
return /*#__PURE__*/React.createElement("div", {
|
|
564
572
|
className: classNames([styles.container, (_ref12 = {}, _defineProperty(_ref12, className, className !== null), _defineProperty(_ref12, styles.showVideo, isPreview || isStatic || isCapture), _ref12)]),
|
package/lib/index.js
CHANGED
|
@@ -131,6 +131,8 @@ var propTypes = {
|
|
|
131
131
|
onNext: PropTypes__default["default"].func,
|
|
132
132
|
type: PropTypes__default["default"].string,
|
|
133
133
|
spacing: PropTypes__default["default"].number,
|
|
134
|
+
enableInteraction: PropTypes__default["default"].func,
|
|
135
|
+
disableInteraction: PropTypes__default["default"].func,
|
|
134
136
|
className: PropTypes__default["default"].string
|
|
135
137
|
};
|
|
136
138
|
var defaultProps = {
|
|
@@ -145,6 +147,8 @@ var defaultProps = {
|
|
|
145
147
|
onNext: null,
|
|
146
148
|
type: null,
|
|
147
149
|
spacing: 20,
|
|
150
|
+
enableInteraction: null,
|
|
151
|
+
disableInteraction: null,
|
|
148
152
|
className: null
|
|
149
153
|
};
|
|
150
154
|
|
|
@@ -162,6 +166,8 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
162
166
|
onNext = _ref.onNext,
|
|
163
167
|
type = _ref.type,
|
|
164
168
|
spacing = _ref.spacing,
|
|
169
|
+
enableInteraction = _ref.enableInteraction,
|
|
170
|
+
disableInteraction = _ref.disableInteraction,
|
|
165
171
|
className = _ref.className;
|
|
166
172
|
var THREE = useThree();
|
|
167
173
|
var trackScreenEvent = hooks.useTrackScreenEvent(type);
|
|
@@ -597,7 +603,9 @@ var Video360Screen = function Video360Screen(_ref) {
|
|
|
597
603
|
screenSize: {
|
|
598
604
|
width: width,
|
|
599
605
|
height: height
|
|
600
|
-
}
|
|
606
|
+
},
|
|
607
|
+
enableInteraction: enableInteraction,
|
|
608
|
+
disableInteraction: disableInteraction
|
|
601
609
|
})) : null)) : null];
|
|
602
610
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
603
611
|
className: classNames__default["default"]([styles.container, (_ref12 = {}, _defineProperty__default["default"](_ref12, className, className !== null), _defineProperty__default["default"](_ref12, styles.showVideo, isPreview || isStatic || isCapture), _ref12)]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-video-360",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.91",
|
|
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.20",
|
|
53
|
-
"@micromag/core": "^0.3.
|
|
54
|
-
"@micromag/element-background": "^0.3.
|
|
55
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
56
|
-
"@micromag/element-closed-captions": "^0.3.
|
|
57
|
-
"@micromag/element-container": "^0.3.
|
|
58
|
-
"@micromag/element-image": "^0.3.
|
|
59
|
-
"@micromag/element-media-controls": "^0.3.
|
|
60
|
-
"@micromag/element-video": "^0.3.
|
|
61
|
-
"@micromag/transforms": "^0.3.
|
|
53
|
+
"@micromag/core": "^0.3.91",
|
|
54
|
+
"@micromag/element-background": "^0.3.91",
|
|
55
|
+
"@micromag/element-call-to-action": "^0.3.91",
|
|
56
|
+
"@micromag/element-closed-captions": "^0.3.91",
|
|
57
|
+
"@micromag/element-container": "^0.3.91",
|
|
58
|
+
"@micromag/element-image": "^0.3.91",
|
|
59
|
+
"@micromag/element-media-controls": "^0.3.91",
|
|
60
|
+
"@micromag/element-video": "^0.3.91",
|
|
61
|
+
"@micromag/transforms": "^0.3.91",
|
|
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": "bce204f3045898193845386933a98a5e3666bcf3"
|
|
74
74
|
}
|