@micromag/element-visual 0.3.583 → 0.3.585

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.
Files changed (2) hide show
  1. package/es/index.js +12 -4
  2. package/package.json +5 -5
package/es/index.js CHANGED
@@ -11,7 +11,7 @@ import Video from '@micromag/element-video';
11
11
 
12
12
  var styles = {"container":"micromag-element-visual-container","videoContainer":"micromag-element-visual-videoContainer","videoTag":"micromag-element-visual-videoTag","videoTouchOverlay":"micromag-element-visual-videoTouchOverlay"};
13
13
 
14
- var _excluded = ["media", "mediaRef", "width", "height", "resolution", "objectFit", "playing", "muted", "shouldLoad", "videoLoop", "videoInitialMuted", "onLoaded", "className", "imageClassName", "videoClassName", "withoutVideo"];
14
+ var _excluded = ["media", "mediaRef", "width", "height", "resolution", "objectFit", "playing", "muted", "shouldLoad", "videoLoop", "videoInitialMuted", "onLoaded", "className", "imageClassName", "videoClassName", "withoutVideo", "qualityStartLevel", "onQualityLevelChange"];
15
15
  var propTypes = {
16
16
  media: PropTypes.media,
17
17
  mediaRef: PropTypes$1.oneOfType([PropTypes$1.func, PropTypes$1.shape({
@@ -31,7 +31,9 @@ var propTypes = {
31
31
  onLoaded: PropTypes$1.func,
32
32
  className: PropTypes$1.string,
33
33
  imageClassName: PropTypes$1.string,
34
- videoClassName: PropTypes$1.string
34
+ videoClassName: PropTypes$1.string,
35
+ qualityStartLevel: PropTypes$1.number,
36
+ onQualityLevelChange: PropTypes$1.func
35
37
  };
36
38
  var defaultProps = {
37
39
  media: null,
@@ -49,7 +51,9 @@ var defaultProps = {
49
51
  onLoaded: null,
50
52
  className: null,
51
53
  imageClassName: null,
52
- videoClassName: null
54
+ videoClassName: null,
55
+ qualityStartLevel: null,
56
+ onQualityLevelChange: null
53
57
  };
54
58
  var Visual = function Visual(_ref) {
55
59
  var media = _ref.media,
@@ -68,6 +72,8 @@ var Visual = function Visual(_ref) {
68
72
  imageClassName = _ref.imageClassName,
69
73
  videoClassName = _ref.videoClassName,
70
74
  withoutVideo = _ref.withoutVideo,
75
+ qualityStartLevel = _ref.qualityStartLevel,
76
+ onQualityLevelChange = _ref.onQualityLevelChange,
71
77
  props = _objectWithoutProperties(_ref, _excluded);
72
78
  var _ref2 = media || {},
73
79
  _ref2$type = _ref2.type,
@@ -154,7 +160,9 @@ var Visual = function Visual(_ref) {
154
160
  loop: videoLoop,
155
161
  shouldLoad: shouldLoad,
156
162
  onReady: onLoaded,
157
- autoPlay: true
163
+ autoPlay: true,
164
+ qualityStartLevel: qualityStartLevel,
165
+ onQualityLevelChange: onQualityLevelChange
158
166
  })), /*#__PURE__*/React.createElement("div", {
159
167
  className: styles.videoTouchOverlay
160
168
  }))) : null) : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-visual",
3
- "version": "0.3.583",
3
+ "version": "0.3.585",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -60,9 +60,9 @@
60
60
  "dependencies": {
61
61
  "@babel/runtime": "^7.13.10",
62
62
  "@folklore/size": "^0.1.20",
63
- "@micromag/core": "^0.3.583",
64
- "@micromag/element-image": "^0.3.583",
65
- "@micromag/element-video": "^0.3.583",
63
+ "@micromag/core": "^0.3.585",
64
+ "@micromag/element-image": "^0.3.585",
65
+ "@micromag/element-video": "^0.3.585",
66
66
  "classnames": "^2.2.6",
67
67
  "prop-types": "^15.7.2",
68
68
  "uuid": "^9.0.0"
@@ -71,5 +71,5 @@
71
71
  "access": "public",
72
72
  "registry": "https://registry.npmjs.org/"
73
73
  },
74
- "gitHead": "d899cc28ac1f5b552114d8bfcd668a9bb8ab651c"
74
+ "gitHead": "f8c2902ea472fcb2d1cdd3fe5d6054afd0cc766b"
75
75
  }