@micromag/screen-video 0.3.67 → 0.3.71
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 +8 -4
- package/lib/index.js +8 -4
- package/package.json +11 -11
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:
|
|
318
|
-
height:
|
|
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, {
|
|
@@ -498,8 +501,9 @@ var definition = {
|
|
|
498
501
|
name: 'callToAction',
|
|
499
502
|
type: 'call-to-action',
|
|
500
503
|
theme: {
|
|
504
|
+
boxStyle: 'cta',
|
|
501
505
|
label: {
|
|
502
|
-
textStyle: '
|
|
506
|
+
textStyle: 'cta'
|
|
503
507
|
}
|
|
504
508
|
}
|
|
505
509
|
} // {
|
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:
|
|
339
|
-
height:
|
|
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"], {
|
|
@@ -519,8 +522,9 @@ var definition = {
|
|
|
519
522
|
name: 'callToAction',
|
|
520
523
|
type: 'call-to-action',
|
|
521
524
|
theme: {
|
|
525
|
+
boxStyle: 'cta',
|
|
522
526
|
label: {
|
|
523
|
-
textStyle: '
|
|
527
|
+
textStyle: 'cta'
|
|
524
528
|
}
|
|
525
529
|
}
|
|
526
530
|
} // {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-video",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.71",
|
|
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.
|
|
54
|
-
"@micromag/element-background": "^0.3.
|
|
55
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
56
|
-
"@micromag/element-closed-captions": "^0.3.
|
|
57
|
-
"@micromag/element-container": "^0.3.
|
|
58
|
-
"@micromag/element-image": "^0.3.
|
|
59
|
-
"@micromag/element-media-controls": "^0.3.
|
|
60
|
-
"@micromag/element-video": "^0.3.
|
|
61
|
-
"@micromag/transforms": "^0.3.
|
|
53
|
+
"@micromag/core": "^0.3.71",
|
|
54
|
+
"@micromag/element-background": "^0.3.71",
|
|
55
|
+
"@micromag/element-call-to-action": "^0.3.71",
|
|
56
|
+
"@micromag/element-closed-captions": "^0.3.71",
|
|
57
|
+
"@micromag/element-container": "^0.3.71",
|
|
58
|
+
"@micromag/element-image": "^0.3.71",
|
|
59
|
+
"@micromag/element-media-controls": "^0.3.71",
|
|
60
|
+
"@micromag/element-video": "^0.3.71",
|
|
61
|
+
"@micromag/transforms": "^0.3.71",
|
|
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": "
|
|
71
|
+
"gitHead": "50093d0adc731dfb58656015179c4ac0b1c6765f"
|
|
72
72
|
}
|