@micromag/screen-title 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 +5 -2
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -98,7 +98,10 @@ var TitleScreen = function TitleScreen(_ref) {
|
|
|
98
98
|
openWebView = _useViewerWebView.open;
|
|
99
99
|
var _usePlaybackContext = usePlaybackContext(),
|
|
100
100
|
muted = _usePlaybackContext.muted;
|
|
101
|
-
var
|
|
101
|
+
var _usePlaybackMediaRef = usePlaybackMediaRef(current, true),
|
|
102
|
+
mediaRef = _usePlaybackMediaRef.ref,
|
|
103
|
+
_usePlaybackMediaRef$ = _usePlaybackMediaRef.isCurrent,
|
|
104
|
+
isCurrentMedia = _usePlaybackMediaRef$ === void 0 ? false : _usePlaybackMediaRef$;
|
|
102
105
|
var hasTitle = isTextFilled(title);
|
|
103
106
|
var hasSubtitle = isTextFilled(subtitle);
|
|
104
107
|
var hasDescription = isTextFilled(description);
|
|
@@ -110,7 +113,7 @@ var TitleScreen = function TitleScreen(_ref) {
|
|
|
110
113
|
var verticalAlign = isSplitted ? layoutParts[1] || null : layoutParts[0];
|
|
111
114
|
var titleWithMargin = hasTitle && (hasSubtitle || hasDescription) && (!isSplitted || verticalAlign === 'top');
|
|
112
115
|
var subtitleWithMargin = hasSubtitle && hasDescription && (!isSplitted || verticalAlign === 'bottom');
|
|
113
|
-
var backgroundPlaying = current && (isView || isEdit);
|
|
116
|
+
var backgroundPlaying = current && (isView || isEdit) && (isCurrentMedia || !isView);
|
|
114
117
|
var backgroundShouldLoad = current || active;
|
|
115
118
|
var hasHeader = isHeaderFilled(header);
|
|
116
119
|
var hasFooter = isFooterFilled(footer);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-title",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.796",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -60,15 +60,15 @@
|
|
|
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-container": "^0.3.
|
|
66
|
-
"@micromag/element-footer": "^0.3.
|
|
67
|
-
"@micromag/element-header": "^0.3.
|
|
68
|
-
"@micromag/element-heading": "^0.3.
|
|
69
|
-
"@micromag/element-layout": "^0.3.
|
|
70
|
-
"@micromag/element-text": "^0.3.
|
|
71
|
-
"@micromag/transforms": "^0.3.
|
|
63
|
+
"@micromag/core": "^0.3.796",
|
|
64
|
+
"@micromag/element-background": "^0.3.796",
|
|
65
|
+
"@micromag/element-container": "^0.3.796",
|
|
66
|
+
"@micromag/element-footer": "^0.3.796",
|
|
67
|
+
"@micromag/element-header": "^0.3.796",
|
|
68
|
+
"@micromag/element-heading": "^0.3.796",
|
|
69
|
+
"@micromag/element-layout": "^0.3.796",
|
|
70
|
+
"@micromag/element-text": "^0.3.796",
|
|
71
|
+
"@micromag/transforms": "^0.3.796",
|
|
72
72
|
"classnames": "^2.2.6",
|
|
73
73
|
"lodash": "^4.17.21",
|
|
74
74
|
"prop-types": "^15.7.2",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"access": "public",
|
|
80
80
|
"registry": "https://registry.npmjs.org/"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "d3bf71e5a23e09d0cd26f543fb1327ff7eb27983"
|
|
83
83
|
}
|