@micromag/screen-video 0.3.68 → 0.3.69

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
@@ -67,7 +67,8 @@ var VideoScreen = function VideoScreen(_ref) {
67
67
 
68
68
  var _useScreenSize = useScreenSize(),
69
69
  width = _useScreenSize.width,
70
- height = _useScreenSize.height;
70
+ height = _useScreenSize.height,
71
+ resolution = _useScreenSize.resolution;
71
72
 
72
73
  var _useScreenRenderConte = useScreenRenderContext(),
73
74
  isView = _useScreenRenderConte.isView,
@@ -314,8 +315,9 @@ var VideoScreen = function VideoScreen(_ref) {
314
315
  height: videoHeight
315
316
  }
316
317
  },
317
- width: "100%",
318
- height: "100%"
318
+ width: resizedVideoWidth,
319
+ height: resizedVideoHeight,
320
+ resolution: resolution
319
321
  }) : /*#__PURE__*/React.createElement(Video, Object.assign({}, finalVideo, {
320
322
  ref: apiRef,
321
323
  className: styles.video,
@@ -382,6 +384,7 @@ var VideoScreen = function VideoScreen(_ref) {
382
384
  background: background,
383
385
  width: width,
384
386
  height: height,
387
+ resolution: resolution,
385
388
  playing: backgroundPlaying,
386
389
  shouldLoad: backgroundShouldLoad
387
390
  }) : null, /*#__PURE__*/React.createElement(Container, {
package/lib/index.js CHANGED
@@ -88,7 +88,8 @@ var VideoScreen = function VideoScreen(_ref) {
88
88
 
89
89
  var _useScreenSize = contexts.useScreenSize(),
90
90
  width = _useScreenSize.width,
91
- height = _useScreenSize.height;
91
+ height = _useScreenSize.height,
92
+ resolution = _useScreenSize.resolution;
92
93
 
93
94
  var _useScreenRenderConte = contexts.useScreenRenderContext(),
94
95
  isView = _useScreenRenderConte.isView,
@@ -335,8 +336,9 @@ var VideoScreen = function VideoScreen(_ref) {
335
336
  height: videoHeight
336
337
  }
337
338
  },
338
- width: "100%",
339
- height: "100%"
339
+ width: resizedVideoWidth,
340
+ height: resizedVideoHeight,
341
+ resolution: resolution
340
342
  }) : /*#__PURE__*/React__default["default"].createElement(Video__default["default"], Object.assign({}, finalVideo, {
341
343
  ref: apiRef,
342
344
  className: styles.video,
@@ -403,6 +405,7 @@ var VideoScreen = function VideoScreen(_ref) {
403
405
  background: background,
404
406
  width: width,
405
407
  height: height,
408
+ resolution: resolution,
406
409
  playing: backgroundPlaying,
407
410
  shouldLoad: backgroundShouldLoad
408
411
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-video",
3
- "version": "0.3.68",
3
+ "version": "0.3.69",
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.68",
54
- "@micromag/element-background": "^0.3.68",
55
- "@micromag/element-call-to-action": "^0.3.68",
56
- "@micromag/element-closed-captions": "^0.3.68",
57
- "@micromag/element-container": "^0.3.68",
58
- "@micromag/element-image": "^0.3.68",
59
- "@micromag/element-media-controls": "^0.3.68",
60
- "@micromag/element-video": "^0.3.68",
61
- "@micromag/transforms": "^0.3.68",
53
+ "@micromag/core": "^0.3.69",
54
+ "@micromag/element-background": "^0.3.69",
55
+ "@micromag/element-call-to-action": "^0.3.69",
56
+ "@micromag/element-closed-captions": "^0.3.69",
57
+ "@micromag/element-container": "^0.3.69",
58
+ "@micromag/element-image": "^0.3.69",
59
+ "@micromag/element-media-controls": "^0.3.69",
60
+ "@micromag/element-video": "^0.3.69",
61
+ "@micromag/transforms": "^0.3.69",
62
62
  "classnames": "^2.2.6",
63
63
  "lodash": "^4.17.21",
64
64
  "prop-types": "^15.7.2",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "3f6e61d8a3340735f345a20d1f0f86e91c820d9a"
71
+ "gitHead": "c69c85dbe321ddcd2d57f5d972b456ab76b5da3e"
72
72
  }