@micromag/screen-urbania-article 0.3.167 → 0.3.170
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 +4 -3
- package/lib/index.js +4 -3
- package/package.json +15 -15
package/es/index.js
CHANGED
|
@@ -185,7 +185,8 @@ var UrbaniaArticle = function UrbaniaArticle(_ref) {
|
|
|
185
185
|
viewerBottomSidesWidth = _useViewerContext.bottomSidesWidth;
|
|
186
186
|
|
|
187
187
|
var _usePlaybackContext = usePlaybackContext(),
|
|
188
|
-
muted = _usePlaybackContext.muted
|
|
188
|
+
muted = _usePlaybackContext.muted,
|
|
189
|
+
playing = _usePlaybackContext.playing;
|
|
189
190
|
|
|
190
191
|
var mediaRef = usePlaybackMediaRef(current);
|
|
191
192
|
|
|
@@ -394,7 +395,7 @@ var UrbaniaArticle = function UrbaniaArticle(_ref) {
|
|
|
394
395
|
fit: 'cover'
|
|
395
396
|
},
|
|
396
397
|
shouldLoad: mediaShouldLoad,
|
|
397
|
-
playing: backgroundPlaying
|
|
398
|
+
playing: backgroundPlaying && playing
|
|
398
399
|
}) : null, hasImage && isVideo ? /*#__PURE__*/React.createElement(Visual, {
|
|
399
400
|
className: styles.video,
|
|
400
401
|
media: image,
|
|
@@ -405,7 +406,7 @@ var UrbaniaArticle = function UrbaniaArticle(_ref) {
|
|
|
405
406
|
fit: 'cover'
|
|
406
407
|
},
|
|
407
408
|
shouldLoad: mediaShouldLoad,
|
|
408
|
-
playing: backgroundPlaying,
|
|
409
|
+
playing: backgroundPlaying && playing,
|
|
409
410
|
muted: muted,
|
|
410
411
|
mediaRef: mediaRef
|
|
411
412
|
}) : null), !isPlaceholder && hasCallToAction ? /*#__PURE__*/React.createElement("div", {
|
package/lib/index.js
CHANGED
|
@@ -206,7 +206,8 @@ var UrbaniaArticle = function UrbaniaArticle(_ref) {
|
|
|
206
206
|
viewerBottomSidesWidth = _useViewerContext.bottomSidesWidth;
|
|
207
207
|
|
|
208
208
|
var _usePlaybackContext = contexts.usePlaybackContext(),
|
|
209
|
-
muted = _usePlaybackContext.muted
|
|
209
|
+
muted = _usePlaybackContext.muted,
|
|
210
|
+
playing = _usePlaybackContext.playing;
|
|
210
211
|
|
|
211
212
|
var mediaRef = contexts.usePlaybackMediaRef(current);
|
|
212
213
|
|
|
@@ -415,7 +416,7 @@ var UrbaniaArticle = function UrbaniaArticle(_ref) {
|
|
|
415
416
|
fit: 'cover'
|
|
416
417
|
},
|
|
417
418
|
shouldLoad: mediaShouldLoad,
|
|
418
|
-
playing: backgroundPlaying
|
|
419
|
+
playing: backgroundPlaying && playing
|
|
419
420
|
}) : null, hasImage && isVideo ? /*#__PURE__*/React__default["default"].createElement(Visual__default["default"], {
|
|
420
421
|
className: styles.video,
|
|
421
422
|
media: image,
|
|
@@ -426,7 +427,7 @@ var UrbaniaArticle = function UrbaniaArticle(_ref) {
|
|
|
426
427
|
fit: 'cover'
|
|
427
428
|
},
|
|
428
429
|
shouldLoad: mediaShouldLoad,
|
|
429
|
-
playing: backgroundPlaying,
|
|
430
|
+
playing: backgroundPlaying && playing,
|
|
430
431
|
muted: muted,
|
|
431
432
|
mediaRef: mediaRef
|
|
432
433
|
}) : null), !isPlaceholder && hasCallToAction ? /*#__PURE__*/React__default["default"].createElement("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-urbania-article",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.170",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -51,19 +51,19 @@
|
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
52
|
"@folklore/fetch": "^0.1.15",
|
|
53
53
|
"@folklore/size": "^0.1.20",
|
|
54
|
-
"@micromag/core": "^0.3.
|
|
55
|
-
"@micromag/element-background": "^0.3.
|
|
56
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
57
|
-
"@micromag/element-closed-captions": "^0.3.
|
|
58
|
-
"@micromag/element-container": "^0.3.
|
|
59
|
-
"@micromag/element-heading": "^0.3.
|
|
60
|
-
"@micromag/element-image": "^0.3.
|
|
61
|
-
"@micromag/element-media-controls": "^0.3.
|
|
62
|
-
"@micromag/element-text": "^0.3.
|
|
63
|
-
"@micromag/element-urbania-author": "^0.3.
|
|
64
|
-
"@micromag/element-video": "^0.3.
|
|
65
|
-
"@micromag/element-visual": "^0.3.
|
|
66
|
-
"@micromag/transforms": "^0.3.
|
|
54
|
+
"@micromag/core": "^0.3.169",
|
|
55
|
+
"@micromag/element-background": "^0.3.170",
|
|
56
|
+
"@micromag/element-call-to-action": "^0.3.169",
|
|
57
|
+
"@micromag/element-closed-captions": "^0.3.169",
|
|
58
|
+
"@micromag/element-container": "^0.3.169",
|
|
59
|
+
"@micromag/element-heading": "^0.3.169",
|
|
60
|
+
"@micromag/element-image": "^0.3.169",
|
|
61
|
+
"@micromag/element-media-controls": "^0.3.169",
|
|
62
|
+
"@micromag/element-text": "^0.3.169",
|
|
63
|
+
"@micromag/element-urbania-author": "^0.3.169",
|
|
64
|
+
"@micromag/element-video": "^0.3.170",
|
|
65
|
+
"@micromag/element-visual": "^0.3.170",
|
|
66
|
+
"@micromag/transforms": "^0.3.169",
|
|
67
67
|
"classnames": "^2.2.6",
|
|
68
68
|
"lodash": "^4.17.21",
|
|
69
69
|
"prop-types": "^15.7.2",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "2aa04370d70f3bc7ee3992cad30b0877b23f5a20"
|
|
77
77
|
}
|