@micromag/screen-urbania-recommendation 0.3.792 → 0.3.796
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 +6 -3
- package/package.json +14 -14
package/es/index.js
CHANGED
|
@@ -104,7 +104,10 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
104
104
|
setPlaying = _usePlaybackContext.setPlaying,
|
|
105
105
|
muted = _usePlaybackContext.muted,
|
|
106
106
|
setMuted = _usePlaybackContext.setMuted;
|
|
107
|
-
var
|
|
107
|
+
var _usePlaybackMediaRef = usePlaybackMediaRef(current, true),
|
|
108
|
+
mediaRef = _usePlaybackMediaRef.ref,
|
|
109
|
+
_usePlaybackMediaRef$ = _usePlaybackMediaRef.isCurrent,
|
|
110
|
+
isCurrentMedia = _usePlaybackMediaRef$ === void 0 ? false : _usePlaybackMediaRef$;
|
|
108
111
|
var _useViewerInteraction = useViewerInteraction(),
|
|
109
112
|
enableInteraction = _useViewerInteraction.enableInteraction,
|
|
110
113
|
disableInteraction = _useViewerInteraction.disableInteraction;
|
|
@@ -146,8 +149,8 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
|
|
|
146
149
|
var hasDescription = isTextFilled(description);
|
|
147
150
|
var hasSponsor = isTextFilled(sponsor);
|
|
148
151
|
var hasTextCard = hasCategory || hasTitle || hasDate || hasLocation || hasDescription || hasSponsor;
|
|
149
|
-
var backgroundPlaying = current && (isView || isEdit);
|
|
150
|
-
var videoPlaying = current && (isView || isEdit) && playing;
|
|
152
|
+
var backgroundPlaying = current && (isView || isEdit) && (isCurrentMedia || !isView);
|
|
153
|
+
var videoPlaying = current && (isView || isEdit) && playing && (isCurrentMedia || !isView);
|
|
151
154
|
var mediaShouldLoad = current || preload;
|
|
152
155
|
var scrollingDisabled = !isView && !isEdit || !current;
|
|
153
156
|
var hasHeader = isHeaderFilled(header);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-urbania-recommendation",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.796",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -60,18 +60,18 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@babel/runtime": "^7.13.10",
|
|
63
|
-
"@micromag/core": "^0.3.
|
|
64
|
-
"@micromag/element-background": "^0.3.
|
|
65
|
-
"@micromag/element-button": "^0.3.
|
|
66
|
-
"@micromag/element-container": "^0.3.
|
|
67
|
-
"@micromag/element-footer": "^0.3.
|
|
68
|
-
"@micromag/element-header": "^0.3.
|
|
69
|
-
"@micromag/element-heading": "^0.3.
|
|
70
|
-
"@micromag/element-layout": "^0.3.
|
|
71
|
-
"@micromag/element-scroll": "^0.3.
|
|
72
|
-
"@micromag/element-text": "^0.3.
|
|
73
|
-
"@micromag/element-visual": "^0.3.
|
|
74
|
-
"@micromag/transforms": "^0.3.
|
|
63
|
+
"@micromag/core": "^0.3.796",
|
|
64
|
+
"@micromag/element-background": "^0.3.796",
|
|
65
|
+
"@micromag/element-button": "^0.3.796",
|
|
66
|
+
"@micromag/element-container": "^0.3.796",
|
|
67
|
+
"@micromag/element-footer": "^0.3.796",
|
|
68
|
+
"@micromag/element-header": "^0.3.796",
|
|
69
|
+
"@micromag/element-heading": "^0.3.796",
|
|
70
|
+
"@micromag/element-layout": "^0.3.796",
|
|
71
|
+
"@micromag/element-scroll": "^0.3.796",
|
|
72
|
+
"@micromag/element-text": "^0.3.796",
|
|
73
|
+
"@micromag/element-visual": "^0.3.796",
|
|
74
|
+
"@micromag/transforms": "^0.3.796",
|
|
75
75
|
"classnames": "^2.2.6",
|
|
76
76
|
"lodash": "^4.17.21",
|
|
77
77
|
"prop-types": "^15.7.2",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"access": "public",
|
|
83
83
|
"registry": "https://registry.npmjs.org/"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "d3bf71e5a23e09d0cd26f543fb1327ff7eb27983"
|
|
86
86
|
}
|