@micromag/screen-audio 0.3.152 → 0.3.153
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 -5
- package/lib/index.js +8 -5
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -109,8 +109,10 @@ var AudioScreen = function AudioScreen(_ref) {
|
|
|
109
109
|
autoPlay = _ref3$autoPlay === void 0 ? true : _ref3$autoPlay,
|
|
110
110
|
_ref3$closedCaptions = _ref3.closedCaptions,
|
|
111
111
|
closedCaptions = _ref3$closedCaptions === void 0 ? null : _ref3$closedCaptions,
|
|
112
|
-
_ref3$
|
|
113
|
-
|
|
112
|
+
_ref3$withControls = _ref3.withControls,
|
|
113
|
+
withControls = _ref3$withControls === void 0 ? false : _ref3$withControls,
|
|
114
|
+
_ref3$withSeekBar = _ref3.withSeekBar,
|
|
115
|
+
withSeekBar = _ref3$withSeekBar === void 0 ? false : _ref3$withSeekBar,
|
|
114
116
|
_ref3$color = _ref3.color,
|
|
115
117
|
color = _ref3$color === void 0 ? null : _ref3$color,
|
|
116
118
|
_ref3$progressColor = _ref3.progressColor,
|
|
@@ -140,9 +142,10 @@ var AudioScreen = function AudioScreen(_ref) {
|
|
|
140
142
|
return function () {};
|
|
141
143
|
}
|
|
142
144
|
|
|
143
|
-
if (
|
|
145
|
+
if (withControls || withSeekBar) {
|
|
144
146
|
setControls(true);
|
|
145
147
|
setControlsTheme({
|
|
148
|
+
seekBarOnly: withSeekBar,
|
|
146
149
|
color: color,
|
|
147
150
|
progressColor: progressColor
|
|
148
151
|
});
|
|
@@ -151,11 +154,11 @@ var AudioScreen = function AudioScreen(_ref) {
|
|
|
151
154
|
}
|
|
152
155
|
|
|
153
156
|
return function () {
|
|
154
|
-
if (
|
|
157
|
+
if (withControls || withSeekBar) {
|
|
155
158
|
setControls(false);
|
|
156
159
|
}
|
|
157
160
|
};
|
|
158
|
-
}, [current,
|
|
161
|
+
}, [current, withControls, withSeekBar, setControls, color, progressColor]);
|
|
159
162
|
useEffect(function () {
|
|
160
163
|
if (customMediaRef !== null) {
|
|
161
164
|
customMediaRef(mediaRef.current);
|
package/lib/index.js
CHANGED
|
@@ -129,8 +129,10 @@ var AudioScreen = function AudioScreen(_ref) {
|
|
|
129
129
|
autoPlay = _ref3$autoPlay === void 0 ? true : _ref3$autoPlay,
|
|
130
130
|
_ref3$closedCaptions = _ref3.closedCaptions,
|
|
131
131
|
closedCaptions = _ref3$closedCaptions === void 0 ? null : _ref3$closedCaptions,
|
|
132
|
-
_ref3$
|
|
133
|
-
|
|
132
|
+
_ref3$withControls = _ref3.withControls,
|
|
133
|
+
withControls = _ref3$withControls === void 0 ? false : _ref3$withControls,
|
|
134
|
+
_ref3$withSeekBar = _ref3.withSeekBar,
|
|
135
|
+
withSeekBar = _ref3$withSeekBar === void 0 ? false : _ref3$withSeekBar,
|
|
134
136
|
_ref3$color = _ref3.color,
|
|
135
137
|
color = _ref3$color === void 0 ? null : _ref3$color,
|
|
136
138
|
_ref3$progressColor = _ref3.progressColor,
|
|
@@ -160,9 +162,10 @@ var AudioScreen = function AudioScreen(_ref) {
|
|
|
160
162
|
return function () {};
|
|
161
163
|
}
|
|
162
164
|
|
|
163
|
-
if (
|
|
165
|
+
if (withControls || withSeekBar) {
|
|
164
166
|
setControls(true);
|
|
165
167
|
setControlsTheme({
|
|
168
|
+
seekBarOnly: withSeekBar,
|
|
166
169
|
color: color,
|
|
167
170
|
progressColor: progressColor
|
|
168
171
|
});
|
|
@@ -171,11 +174,11 @@ var AudioScreen = function AudioScreen(_ref) {
|
|
|
171
174
|
}
|
|
172
175
|
|
|
173
176
|
return function () {
|
|
174
|
-
if (
|
|
177
|
+
if (withControls || withSeekBar) {
|
|
175
178
|
setControls(false);
|
|
176
179
|
}
|
|
177
180
|
};
|
|
178
|
-
}, [current,
|
|
181
|
+
}, [current, withControls, withSeekBar, setControls, color, progressColor]);
|
|
179
182
|
React.useEffect(function () {
|
|
180
183
|
if (customMediaRef !== null) {
|
|
181
184
|
customMediaRef(mediaRef.current);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-audio",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.153",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
|
-
"@micromag/core": "^0.3.
|
|
53
|
-
"@micromag/element-audio": "^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-layout": "^0.3.
|
|
59
|
-
"@micromag/element-media-controls": "^0.3.
|
|
60
|
-
"@micromag/transforms": "^0.3.
|
|
52
|
+
"@micromag/core": "^0.3.153",
|
|
53
|
+
"@micromag/element-audio": "^0.3.153",
|
|
54
|
+
"@micromag/element-background": "^0.3.153",
|
|
55
|
+
"@micromag/element-call-to-action": "^0.3.153",
|
|
56
|
+
"@micromag/element-closed-captions": "^0.3.153",
|
|
57
|
+
"@micromag/element-container": "^0.3.153",
|
|
58
|
+
"@micromag/element-layout": "^0.3.153",
|
|
59
|
+
"@micromag/element-media-controls": "^0.3.153",
|
|
60
|
+
"@micromag/transforms": "^0.3.153",
|
|
61
61
|
"classnames": "^2.2.6",
|
|
62
62
|
"lodash": "^4.17.21",
|
|
63
63
|
"prop-types": "^15.7.2",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "3832de24bc306639b162f9778b3250ce1d05b2aa"
|
|
71
71
|
}
|