@micromag/core 0.4.45 → 0.4.46
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/contexts.js +2 -2
- package/lib/contexts.js +2 -2
- package/package.json +2 -2
package/es/contexts.js
CHANGED
|
@@ -1167,7 +1167,7 @@ function PlaybackProvider(_ref) {
|
|
|
1167
1167
|
if (fromRef === null || media === null || fromRef === media) {
|
|
1168
1168
|
setCurrentQualityLevel(level);
|
|
1169
1169
|
}
|
|
1170
|
-
}, [setCurrentQualityLevel]);
|
|
1170
|
+
}, [media, setCurrentQualityLevel]);
|
|
1171
1171
|
var value = useMemo(function () {
|
|
1172
1172
|
return {
|
|
1173
1173
|
muted: muted,
|
|
@@ -1193,7 +1193,7 @@ function PlaybackProvider(_ref) {
|
|
|
1193
1193
|
setMedia: setMedia,
|
|
1194
1194
|
setCurrentQualityLevel: finalSetCurrentQualityLevel
|
|
1195
1195
|
};
|
|
1196
|
-
}, [muted, playing, completed, paused, controls, controlsSuggestPlay, controlsVisible, controlsTheme, media, hasAudio, currentQualityLevel, setMuted, setIsBackground, isBackground, finalSetPlaying, finalSetControls, finalSetControlsTheme, setControlsSuggestPlay, setControlsVisible,
|
|
1196
|
+
}, [muted, playing, completed, paused, controls, controlsSuggestPlay, controlsVisible, controlsTheme, media, hasAudio, currentQualityLevel, setMuted, setIsBackground, isBackground, finalSetPlaying, finalSetControls, finalSetControlsTheme, setControlsSuggestPlay, setControlsVisible, showControls, hideControls, setMedia, finalSetCurrentQualityLevel]);
|
|
1197
1197
|
return /*#__PURE__*/React.createElement(PlaybackContext.Provider, {
|
|
1198
1198
|
value: value
|
|
1199
1199
|
}, children);
|
package/lib/contexts.js
CHANGED
|
@@ -1167,7 +1167,7 @@ function PlaybackProvider(_ref) {
|
|
|
1167
1167
|
if (fromRef === null || media === null || fromRef === media) {
|
|
1168
1168
|
setCurrentQualityLevel(level);
|
|
1169
1169
|
}
|
|
1170
|
-
}, [setCurrentQualityLevel]);
|
|
1170
|
+
}, [media, setCurrentQualityLevel]);
|
|
1171
1171
|
var value = React.useMemo(function () {
|
|
1172
1172
|
return {
|
|
1173
1173
|
muted: muted,
|
|
@@ -1193,7 +1193,7 @@ function PlaybackProvider(_ref) {
|
|
|
1193
1193
|
setMedia: setMedia,
|
|
1194
1194
|
setCurrentQualityLevel: finalSetCurrentQualityLevel
|
|
1195
1195
|
};
|
|
1196
|
-
}, [muted, playing, completed, paused, controls, controlsSuggestPlay, controlsVisible, controlsTheme, media, hasAudio, currentQualityLevel, setMuted, setIsBackground, isBackground, finalSetPlaying, finalSetControls, finalSetControlsTheme, setControlsSuggestPlay, setControlsVisible,
|
|
1196
|
+
}, [muted, playing, completed, paused, controls, controlsSuggestPlay, controlsVisible, controlsTheme, media, hasAudio, currentQualityLevel, setMuted, setIsBackground, isBackground, finalSetPlaying, finalSetControls, finalSetControlsTheme, setControlsSuggestPlay, setControlsVisible, showControls, hideControls, setMedia, finalSetCurrentQualityLevel]);
|
|
1197
1197
|
return /*#__PURE__*/React.createElement(PlaybackContext.Provider, {
|
|
1198
1198
|
value: value
|
|
1199
1199
|
}, children);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.46",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -161,6 +161,6 @@
|
|
|
161
161
|
"access": "public",
|
|
162
162
|
"registry": "https://registry.npmjs.org/"
|
|
163
163
|
},
|
|
164
|
-
"gitHead": "
|
|
164
|
+
"gitHead": "4c2fdb2bb166162be997a70d13a14255e9975e1b",
|
|
165
165
|
"types": "es/index.d.ts"
|
|
166
166
|
}
|