@micromag/element-video 0.3.396 → 0.3.397
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 -1
- package/lib/index.js +5 -1
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -26,6 +26,7 @@ var propTypes = {
|
|
|
26
26
|
loop: PropTypes$1.bool,
|
|
27
27
|
playsInline: PropTypes$1.bool,
|
|
28
28
|
preload: PropTypes$1.oneOf(['auto', 'metadata', 'none', null]),
|
|
29
|
+
disablePictureInPicture: PropTypes$1.bool,
|
|
29
30
|
shouldLoad: PropTypes$1.bool,
|
|
30
31
|
withoutCors: PropTypes$1.bool,
|
|
31
32
|
className: PropTypes$1.string,
|
|
@@ -56,6 +57,7 @@ var defaultProps = {
|
|
|
56
57
|
loop: false,
|
|
57
58
|
playsInline: true,
|
|
58
59
|
preload: 'auto',
|
|
60
|
+
disablePictureInPicture: false,
|
|
59
61
|
shouldLoad: true,
|
|
60
62
|
withoutCors: false,
|
|
61
63
|
className: null,
|
|
@@ -103,7 +105,8 @@ var Video = function Video(_ref) {
|
|
|
103
105
|
onSuspended = _ref.onSuspended,
|
|
104
106
|
focusable = _ref.focusable,
|
|
105
107
|
withPoster = _ref.withPoster,
|
|
106
|
-
withLoading = _ref.withLoading
|
|
108
|
+
withLoading = _ref.withLoading,
|
|
109
|
+
disablePictureInPicture = _ref.disablePictureInPicture;
|
|
107
110
|
var _ref2 = media || {},
|
|
108
111
|
_ref2$url = _ref2.url,
|
|
109
112
|
mediaUrl = _ref2$url === void 0 ? null : _ref2$url,
|
|
@@ -284,6 +287,7 @@ var Video = function Video(_ref) {
|
|
|
284
287
|
preload: shouldLoad ? preload : 'none',
|
|
285
288
|
playsInline: playsInline,
|
|
286
289
|
crossOrigin: withoutCors ? 'anonymous' : null,
|
|
290
|
+
disablePictureInPicture: disablePictureInPicture,
|
|
287
291
|
tabIndex: focusable ? '0' : '-1',
|
|
288
292
|
className: classNames(styles.video),
|
|
289
293
|
onPlay: onPlay,
|
package/lib/index.js
CHANGED
|
@@ -38,6 +38,7 @@ var propTypes = {
|
|
|
38
38
|
loop: PropTypes__default["default"].bool,
|
|
39
39
|
playsInline: PropTypes__default["default"].bool,
|
|
40
40
|
preload: PropTypes__default["default"].oneOf(['auto', 'metadata', 'none', null]),
|
|
41
|
+
disablePictureInPicture: PropTypes__default["default"].bool,
|
|
41
42
|
shouldLoad: PropTypes__default["default"].bool,
|
|
42
43
|
withoutCors: PropTypes__default["default"].bool,
|
|
43
44
|
className: PropTypes__default["default"].string,
|
|
@@ -68,6 +69,7 @@ var defaultProps = {
|
|
|
68
69
|
loop: false,
|
|
69
70
|
playsInline: true,
|
|
70
71
|
preload: 'auto',
|
|
72
|
+
disablePictureInPicture: false,
|
|
71
73
|
shouldLoad: true,
|
|
72
74
|
withoutCors: false,
|
|
73
75
|
className: null,
|
|
@@ -115,7 +117,8 @@ var Video = function Video(_ref) {
|
|
|
115
117
|
onSuspended = _ref.onSuspended,
|
|
116
118
|
focusable = _ref.focusable,
|
|
117
119
|
withPoster = _ref.withPoster,
|
|
118
|
-
withLoading = _ref.withLoading
|
|
120
|
+
withLoading = _ref.withLoading,
|
|
121
|
+
disablePictureInPicture = _ref.disablePictureInPicture;
|
|
119
122
|
var _ref2 = media || {},
|
|
120
123
|
_ref2$url = _ref2.url,
|
|
121
124
|
mediaUrl = _ref2$url === void 0 ? null : _ref2$url,
|
|
@@ -296,6 +299,7 @@ var Video = function Video(_ref) {
|
|
|
296
299
|
preload: shouldLoad ? preload : 'none',
|
|
297
300
|
playsInline: playsInline,
|
|
298
301
|
crossOrigin: withoutCors ? 'anonymous' : null,
|
|
302
|
+
disablePictureInPicture: disablePictureInPicture,
|
|
299
303
|
tabIndex: focusable ? '0' : '-1',
|
|
300
304
|
className: classNames__default["default"](styles.video),
|
|
301
305
|
onPlay: onPlay,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-video",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.397",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"access": "public",
|
|
66
66
|
"registry": "https://registry.npmjs.org/"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "8d668040e508b2ccc1d0f2907464e7c54fbb0bb3"
|
|
69
69
|
}
|