@micromag/element-visual 0.2.300 → 0.2.320

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 CHANGED
@@ -16,7 +16,6 @@ var propTypes = {
16
16
  width: PropTypes$1.oneOfType([PropTypes$1.number, PropTypes$1.string]),
17
17
  height: PropTypes$1.oneOfType([PropTypes$1.number, PropTypes$1.string]),
18
18
  objectFit: PropTypes.objectFit,
19
- videoPreload: PropTypes$1.string,
20
19
  videoAutoplay: PropTypes$1.bool,
21
20
  videoLoop: PropTypes$1.bool,
22
21
  videoInitialMuted: PropTypes$1.bool,
@@ -28,7 +27,6 @@ var defaultProps = {
28
27
  width: null,
29
28
  height: null,
30
29
  objectFit: null,
31
- videoPreload: 'metadata',
32
30
  videoAutoplay: true,
33
31
  videoLoop: true,
34
32
  videoInitialMuted: true,
@@ -41,13 +39,12 @@ var Visual = function Visual(_ref) {
41
39
  width = _ref.width,
42
40
  height = _ref.height,
43
41
  objectFit = _ref.objectFit,
44
- videoPreload = _ref.videoPreload,
45
42
  videoAutoplay = _ref.videoAutoplay,
46
43
  videoLoop = _ref.videoLoop,
47
44
  videoInitialMuted = _ref.videoInitialMuted,
48
45
  onLoaded = _ref.onLoaded,
49
46
  className = _ref.className,
50
- props = _objectWithoutProperties(_ref, ["media", "width", "height", "objectFit", "videoPreload", "videoAutoplay", "videoLoop", "videoInitialMuted", "onLoaded", "className"]);
47
+ props = _objectWithoutProperties(_ref, ["media", "width", "height", "objectFit", "videoAutoplay", "videoLoop", "videoInitialMuted", "onLoaded", "className"]);
51
48
 
52
49
  var _ref2 = media || {},
53
50
  _ref2$type = _ref2.type,
@@ -108,7 +105,6 @@ var Visual = function Visual(_ref) {
108
105
  }, /*#__PURE__*/React.createElement(Video, Object.assign({}, elProps, {
109
106
  width: objectFit === null ? width : null,
110
107
  height: objectFit === null ? height : null,
111
- preload: videoPreload,
112
108
  autoPlay: videoAutoplay,
113
109
  loop: videoLoop,
114
110
  initialMuted: videoInitialMuted,
package/lib/index.js CHANGED
@@ -29,7 +29,6 @@ var propTypes = {
29
29
  width: PropTypes__default['default'].oneOfType([PropTypes__default['default'].number, PropTypes__default['default'].string]),
30
30
  height: PropTypes__default['default'].oneOfType([PropTypes__default['default'].number, PropTypes__default['default'].string]),
31
31
  objectFit: core.PropTypes.objectFit,
32
- videoPreload: PropTypes__default['default'].string,
33
32
  videoAutoplay: PropTypes__default['default'].bool,
34
33
  videoLoop: PropTypes__default['default'].bool,
35
34
  videoInitialMuted: PropTypes__default['default'].bool,
@@ -41,7 +40,6 @@ var defaultProps = {
41
40
  width: null,
42
41
  height: null,
43
42
  objectFit: null,
44
- videoPreload: 'metadata',
45
43
  videoAutoplay: true,
46
44
  videoLoop: true,
47
45
  videoInitialMuted: true,
@@ -54,13 +52,12 @@ var Visual = function Visual(_ref) {
54
52
  width = _ref.width,
55
53
  height = _ref.height,
56
54
  objectFit = _ref.objectFit,
57
- videoPreload = _ref.videoPreload,
58
55
  videoAutoplay = _ref.videoAutoplay,
59
56
  videoLoop = _ref.videoLoop,
60
57
  videoInitialMuted = _ref.videoInitialMuted,
61
58
  onLoaded = _ref.onLoaded,
62
59
  className = _ref.className,
63
- props = _objectWithoutProperties__default['default'](_ref, ["media", "width", "height", "objectFit", "videoPreload", "videoAutoplay", "videoLoop", "videoInitialMuted", "onLoaded", "className"]);
60
+ props = _objectWithoutProperties__default['default'](_ref, ["media", "width", "height", "objectFit", "videoAutoplay", "videoLoop", "videoInitialMuted", "onLoaded", "className"]);
64
61
 
65
62
  var _ref2 = media || {},
66
63
  _ref2$type = _ref2.type,
@@ -121,7 +118,6 @@ var Visual = function Visual(_ref) {
121
118
  }, /*#__PURE__*/React__default['default'].createElement(Video__default['default'], Object.assign({}, elProps, {
122
119
  width: objectFit === null ? width : null,
123
120
  height: objectFit === null ? height : null,
124
- preload: videoPreload,
125
121
  autoPlay: videoAutoplay,
126
122
  loop: videoLoop,
127
123
  initialMuted: videoInitialMuted,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-visual",
3
- "version": "0.2.300",
3
+ "version": "0.2.320",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -50,9 +50,9 @@
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
52
  "@folklore/size": "^0.1.14",
53
- "@micromag/core": "^0.2.300",
54
- "@micromag/element-image": "^0.2.300",
55
- "@micromag/element-video": "^0.2.300",
53
+ "@micromag/core": "^0.2.320",
54
+ "@micromag/element-image": "^0.2.320",
55
+ "@micromag/element-video": "^0.2.320",
56
56
  "classnames": "^2.2.6",
57
57
  "prop-types": "^15.7.2",
58
58
  "uuid": "^8.3.2"
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "0beff892194f4a52ce6b916d3c819f46354b92ec"
63
+ "gitHead": "e710981101344c5b9dabf805fae6258743337e51"
64
64
  }