@micromag/screen-video 0.3.230 → 0.3.236
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/assets/css/styles.css +1 -1
- package/es/index.js +13 -12
- package/lib/index.js +13 -12
- package/package.json +11 -11
package/assets/css/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.micromag-screen-video-unmuteAndPlayButton{display:inline-block;position:relative;padding:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-screen-video-container .micromag-screen-video-
|
|
1
|
+
.micromag-screen-video-unmuteAndPlayButton{display:inline-block;position:relative;padding:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-screen-video-container .micromag-screen-video-background,.micromag-screen-video-container .micromag-screen-video-empty,.micromag-screen-video-container .micromag-screen-video-emptyContainer,.micromag-screen-video-container.micromag-screen-video-fullscreen .micromag-screen-video-image,.micromag-screen-video-container.micromag-screen-video-fullscreen .micromag-screen-video-placeholder,.micromag-screen-video-container.micromag-screen-video-fullscreen .micromag-screen-video-video,.micromag-screen-video-container .micromag-screen-video-inner{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-video-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-video-disabled.micromag-screen-video-container{overflow:hidden;pointer-events:none}.micromag-screen-video-hidden.micromag-screen-video-container{display:none;visibility:hidden}.micromag-screen-video-placeholder.micromag-screen-video-container .micromag-screen-video-content{position:relative;padding:6px}.micromag-screen-video-container .micromag-screen-video-empty{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-video-container .micromag-screen-video-background{z-index:0}.micromag-screen-video-container .micromag-screen-video-content{z-index:1}.micromag-screen-video-container .micromag-screen-video-emptyContainer{top:50%;height:0;padding-bottom:56.25%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.micromag-screen-video-container .micromag-screen-video-empty{margin:0}.micromag-screen-video-container .micromag-screen-video-inner{z-index:1;overflow:hidden}.micromag-screen-video-container .micromag-screen-video-bottom{position:absolute;z-index:2;bottom:0;left:0;width:100%;-webkit-transition:padding .5s cubic-bezier(.6,0,.4,1),-webkit-transform .5s cubic-bezier(.6,0,.4,1);transition:padding .5s cubic-bezier(.6,0,.4,1),-webkit-transform .5s cubic-bezier(.6,0,.4,1);-o-transition:transform .5s cubic-bezier(.6,0,.4,1),padding .5s cubic-bezier(.6,0,.4,1);transition:transform .5s cubic-bezier(.6,0,.4,1),padding .5s cubic-bezier(.6,0,.4,1);transition:transform .5s cubic-bezier(.6,0,.4,1),padding .5s cubic-bezier(.6,0,.4,1),-webkit-transform .5s cubic-bezier(.6,0,.4,1)}.micromag-screen-video-container .micromag-screen-video-bottom>*{margin-bottom:10px}.micromag-screen-video-container .micromag-screen-video-bottom>:last-child{margin-bottom:0}.micromag-screen-video-container .micromag-screen-video-placeholder{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%}.micromag-screen-video-container .micromag-screen-video-videoContainer{position:absolute}.micromag-screen-video-container.micromag-screen-video-fullscreen .micromag-screen-video-emptyContainer{top:0;height:100%;padding-bottom:0;-webkit-transform:none;-ms-transform:none;transform:none}.micromag-screen-video-unmuteAndPlayButton{display:block;position:absolute;z-index:3;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0;opacity:0;background-color:rgba(0,0,0,0)}
|
package/es/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import Video from '@micromag/element-video';
|
|
|
19
19
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
20
20
|
import { Video as Video$1, Container as Container$1 } from '@micromag/transforms/apple-news';
|
|
21
21
|
|
|
22
|
-
var styles = {"unmuteAndPlayButton":"micromag-screen-video-unmuteAndPlayButton","container":"micromag-screen-video-container","
|
|
22
|
+
var styles = {"unmuteAndPlayButton":"micromag-screen-video-unmuteAndPlayButton","container":"micromag-screen-video-container","background":"micromag-screen-video-background","empty":"micromag-screen-video-empty","emptyContainer":"micromag-screen-video-emptyContainer","fullscreen":"micromag-screen-video-fullscreen","image":"micromag-screen-video-image","placeholder":"micromag-screen-video-placeholder","video":"micromag-screen-video-video","inner":"micromag-screen-video-inner","disabled":"micromag-screen-video-disabled","hidden":"micromag-screen-video-hidden","content":"micromag-screen-video-content","bottom":"micromag-screen-video-bottom","videoContainer":"micromag-screen-video-videoContainer"};
|
|
23
23
|
|
|
24
24
|
var propTypes = {
|
|
25
25
|
layout: PropTypes.oneOf(['middle', 'full']),
|
|
@@ -283,19 +283,12 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
283
283
|
return /*#__PURE__*/React.createElement("div", {
|
|
284
284
|
className: classNames([styles.container, (_ref7 = {}, _defineProperty(_ref7, className, className !== null), _defineProperty(_ref7, styles.fullscreen, fullscreen), _ref7)]),
|
|
285
285
|
"data-screen-ready": isStatic || isCapture || ready
|
|
286
|
-
},
|
|
287
|
-
background: background,
|
|
286
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
288
287
|
width: width,
|
|
289
288
|
height: height,
|
|
290
|
-
resolution: resolution,
|
|
291
|
-
playing: backgroundPlaying,
|
|
292
|
-
shouldLoad: mediaShouldLoad,
|
|
293
|
-
withoutVideo: isPreview
|
|
294
|
-
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
295
|
-
width: width,
|
|
296
|
-
height: height
|
|
297
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
298
289
|
className: styles.content
|
|
290
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
291
|
+
className: styles.inner
|
|
299
292
|
}, /*#__PURE__*/React.createElement(ScreenElement, {
|
|
300
293
|
key: "video",
|
|
301
294
|
placeholder: /*#__PURE__*/React.createElement(PlaceholderVideo, Object.assign({
|
|
@@ -368,7 +361,15 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
368
361
|
animationDisabled: isPreview,
|
|
369
362
|
focusable: current && isView,
|
|
370
363
|
openWebView: openWebView
|
|
371
|
-
})) : null) : null))
|
|
364
|
+
})) : null) : null)), !isPlaceholder ? /*#__PURE__*/React.createElement(Background, {
|
|
365
|
+
background: background,
|
|
366
|
+
width: width,
|
|
367
|
+
height: height,
|
|
368
|
+
resolution: resolution,
|
|
369
|
+
playing: backgroundPlaying,
|
|
370
|
+
shouldLoad: mediaShouldLoad,
|
|
371
|
+
withoutVideo: isPreview
|
|
372
|
+
}) : null);
|
|
372
373
|
};
|
|
373
374
|
|
|
374
375
|
VideoScreen.propTypes = propTypes;
|
package/lib/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var Image__default = /*#__PURE__*/_interopDefaultLegacy(Image);
|
|
|
39
39
|
var Video__default = /*#__PURE__*/_interopDefaultLegacy(Video);
|
|
40
40
|
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
41
41
|
|
|
42
|
-
var styles = {"unmuteAndPlayButton":"micromag-screen-video-unmuteAndPlayButton","container":"micromag-screen-video-container","
|
|
42
|
+
var styles = {"unmuteAndPlayButton":"micromag-screen-video-unmuteAndPlayButton","container":"micromag-screen-video-container","background":"micromag-screen-video-background","empty":"micromag-screen-video-empty","emptyContainer":"micromag-screen-video-emptyContainer","fullscreen":"micromag-screen-video-fullscreen","image":"micromag-screen-video-image","placeholder":"micromag-screen-video-placeholder","video":"micromag-screen-video-video","inner":"micromag-screen-video-inner","disabled":"micromag-screen-video-disabled","hidden":"micromag-screen-video-hidden","content":"micromag-screen-video-content","bottom":"micromag-screen-video-bottom","videoContainer":"micromag-screen-video-videoContainer"};
|
|
43
43
|
|
|
44
44
|
var propTypes = {
|
|
45
45
|
layout: PropTypes__default["default"].oneOf(['middle', 'full']),
|
|
@@ -303,19 +303,12 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
303
303
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
304
304
|
className: classNames__default["default"]([styles.container, (_ref7 = {}, _defineProperty__default["default"](_ref7, className, className !== null), _defineProperty__default["default"](_ref7, styles.fullscreen, fullscreen), _ref7)]),
|
|
305
305
|
"data-screen-ready": isStatic || isCapture || ready
|
|
306
|
-
},
|
|
307
|
-
background: background,
|
|
306
|
+
}, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
308
307
|
width: width,
|
|
309
308
|
height: height,
|
|
310
|
-
resolution: resolution,
|
|
311
|
-
playing: backgroundPlaying,
|
|
312
|
-
shouldLoad: mediaShouldLoad,
|
|
313
|
-
withoutVideo: isPreview
|
|
314
|
-
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
315
|
-
width: width,
|
|
316
|
-
height: height
|
|
317
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
318
309
|
className: styles.content
|
|
310
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
311
|
+
className: styles.inner
|
|
319
312
|
}, /*#__PURE__*/React__default["default"].createElement(components.ScreenElement, {
|
|
320
313
|
key: "video",
|
|
321
314
|
placeholder: /*#__PURE__*/React__default["default"].createElement(components.PlaceholderVideo, Object.assign({
|
|
@@ -388,7 +381,15 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
388
381
|
animationDisabled: isPreview,
|
|
389
382
|
focusable: current && isView,
|
|
390
383
|
openWebView: openWebView
|
|
391
|
-
})) : null) : null))
|
|
384
|
+
})) : null) : null)), !isPlaceholder ? /*#__PURE__*/React__default["default"].createElement(Background__default["default"], {
|
|
385
|
+
background: background,
|
|
386
|
+
width: width,
|
|
387
|
+
height: height,
|
|
388
|
+
resolution: resolution,
|
|
389
|
+
playing: backgroundPlaying,
|
|
390
|
+
shouldLoad: mediaShouldLoad,
|
|
391
|
+
withoutVideo: isPreview
|
|
392
|
+
}) : null);
|
|
392
393
|
};
|
|
393
394
|
|
|
394
395
|
VideoScreen.propTypes = propTypes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-video",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.236",
|
|
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.236",
|
|
54
|
+
"@micromag/element-background": "^0.3.236",
|
|
55
|
+
"@micromag/element-call-to-action": "^0.3.236",
|
|
56
|
+
"@micromag/element-closed-captions": "^0.3.236",
|
|
57
|
+
"@micromag/element-container": "^0.3.236",
|
|
58
|
+
"@micromag/element-image": "^0.3.236",
|
|
59
|
+
"@micromag/element-media-controls": "^0.3.236",
|
|
60
|
+
"@micromag/element-video": "^0.3.236",
|
|
61
|
+
"@micromag/transforms": "^0.3.236",
|
|
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": "8ef5fca04d5826f68ec3ffa8cd0065b4e776ed10"
|
|
72
72
|
}
|