@micromag/core 0.4.74 → 0.4.77
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 -3
- package/package.json +2 -2
package/es/contexts.js
CHANGED
|
@@ -9,7 +9,7 @@ import uniqBy from 'lodash/uniqBy';
|
|
|
9
9
|
import { getJSON } from '@folklore/fetch';
|
|
10
10
|
import isObject from 'lodash/isObject';
|
|
11
11
|
import { loadGoogleApi, loadGoogleMaps } from '@folklore/services';
|
|
12
|
-
import { getDisplayName,
|
|
12
|
+
import { getDisplayName, getMediaSrc, getMediaHasAudio, getMediaFilename, getMediaDuration, getScreenExtraField } from '@micromag/core/utils';
|
|
13
13
|
import createDebug from 'debug';
|
|
14
14
|
import { useUrlGenerator } from '@folklore/routes';
|
|
15
15
|
export { RoutesContext, RoutesProvider, useRoutes, useUrlGenerator } from '@folklore/routes';
|
|
@@ -1604,10 +1604,9 @@ const usePlaybackMediaRef = (t0, t1, t2) => {
|
|
|
1604
1604
|
const currentMedia = t4 === undefined ? null : t4;
|
|
1605
1605
|
return () => {
|
|
1606
1606
|
if (active) {
|
|
1607
|
-
const shouldPause = currentMedia !== null && getMediaIsPlaying(currentMedia);
|
|
1608
1607
|
setMedia(null);
|
|
1609
1608
|
setIsBackground(false);
|
|
1610
|
-
if (
|
|
1609
|
+
if (currentMedia !== null) {
|
|
1611
1610
|
currentMedia.pause();
|
|
1612
1611
|
}
|
|
1613
1612
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.77",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -157,6 +157,6 @@
|
|
|
157
157
|
"access": "public",
|
|
158
158
|
"registry": "https://registry.npmjs.org/"
|
|
159
159
|
},
|
|
160
|
-
"gitHead": "
|
|
160
|
+
"gitHead": "b55c2c748383d30c8ff0ca7594e499dbdc8d1c10",
|
|
161
161
|
"types": "es/index.d.ts"
|
|
162
162
|
}
|