@micromag/element-visual 0.3.68 → 0.3.73

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
@@ -11,11 +11,12 @@ import Video from '@micromag/element-video';
11
11
 
12
12
  var styles = {"container":"micromag-element-visual-container","videoContainer":"micromag-element-visual-videoContainer"};
13
13
 
14
- var _excluded = ["media", "width", "height", "objectFit", "playing", "videoLoop", "videoInitialMuted", "onLoaded", "className", "videoClassName"];
14
+ var _excluded = ["media", "width", "height", "resolution", "objectFit", "playing", "videoLoop", "videoInitialMuted", "onLoaded", "className", "videoClassName"];
15
15
  var propTypes = {
16
16
  media: PropTypes.media,
17
17
  width: PropTypes$1.oneOfType([PropTypes$1.number, PropTypes$1.string]),
18
18
  height: PropTypes$1.oneOfType([PropTypes$1.number, PropTypes$1.string]),
19
+ resolution: PropTypes$1.number,
19
20
  objectFit: PropTypes.objectFit,
20
21
  playing: PropTypes$1.bool,
21
22
  videoLoop: PropTypes$1.bool,
@@ -28,6 +29,7 @@ var defaultProps = {
28
29
  media: null,
29
30
  width: null,
30
31
  height: null,
32
+ resolution: 1,
31
33
  objectFit: null,
32
34
  playing: true,
33
35
  videoLoop: true,
@@ -41,6 +43,7 @@ var Visual = function Visual(_ref) {
41
43
  var media = _ref.media,
42
44
  width = _ref.width,
43
45
  height = _ref.height,
46
+ resolution = _ref.resolution,
44
47
  objectFit = _ref.objectFit,
45
48
  playing = _ref.playing,
46
49
  videoLoop = _ref.videoLoop,
@@ -117,6 +120,7 @@ var Visual = function Visual(_ref) {
117
120
  objectFit: objectFit,
118
121
  width: width,
119
122
  height: height,
123
+ resolution: resolution,
120
124
  onLoaded: onLoaded,
121
125
  className: classNames([styles.container, _defineProperty({}, className, className !== null)])
122
126
  })) : null, isVideo && playing ? /*#__PURE__*/React.createElement("div", {
package/lib/index.js CHANGED
@@ -24,11 +24,12 @@ var Video__default = /*#__PURE__*/_interopDefaultLegacy(Video);
24
24
 
25
25
  var styles = {"container":"micromag-element-visual-container","videoContainer":"micromag-element-visual-videoContainer"};
26
26
 
27
- var _excluded = ["media", "width", "height", "objectFit", "playing", "videoLoop", "videoInitialMuted", "onLoaded", "className", "videoClassName"];
27
+ var _excluded = ["media", "width", "height", "resolution", "objectFit", "playing", "videoLoop", "videoInitialMuted", "onLoaded", "className", "videoClassName"];
28
28
  var propTypes = {
29
29
  media: core.PropTypes.media,
30
30
  width: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string]),
31
31
  height: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string]),
32
+ resolution: PropTypes__default["default"].number,
32
33
  objectFit: core.PropTypes.objectFit,
33
34
  playing: PropTypes__default["default"].bool,
34
35
  videoLoop: PropTypes__default["default"].bool,
@@ -41,6 +42,7 @@ var defaultProps = {
41
42
  media: null,
42
43
  width: null,
43
44
  height: null,
45
+ resolution: 1,
44
46
  objectFit: null,
45
47
  playing: true,
46
48
  videoLoop: true,
@@ -54,6 +56,7 @@ var Visual = function Visual(_ref) {
54
56
  var media = _ref.media,
55
57
  width = _ref.width,
56
58
  height = _ref.height,
59
+ resolution = _ref.resolution,
57
60
  objectFit = _ref.objectFit,
58
61
  playing = _ref.playing,
59
62
  videoLoop = _ref.videoLoop,
@@ -130,6 +133,7 @@ var Visual = function Visual(_ref) {
130
133
  objectFit: objectFit,
131
134
  width: width,
132
135
  height: height,
136
+ resolution: resolution,
133
137
  onLoaded: onLoaded,
134
138
  className: classNames__default["default"]([styles.container, _defineProperty__default["default"]({}, className, className !== null)])
135
139
  })) : null, isVideo && playing ? /*#__PURE__*/React__default["default"].createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-visual",
3
- "version": "0.3.68",
3
+ "version": "0.3.73",
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.20",
53
- "@micromag/core": "^0.3.68",
54
- "@micromag/element-image": "^0.3.68",
55
- "@micromag/element-video": "^0.3.68",
53
+ "@micromag/core": "^0.3.73",
54
+ "@micromag/element-image": "^0.3.73",
55
+ "@micromag/element-video": "^0.3.73",
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": "3f6e61d8a3340735f345a20d1f0f86e91c820d9a"
63
+ "gitHead": "88ca59e9f89a4135924ffdca6a3e977047ac03e9"
64
64
  }