@micromag/core 0.4.74 → 0.4.79

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 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, getMediaIsPlaying, getMediaSrc, getMediaHasAudio, getMediaFilename, getMediaDuration, getScreenExtraField } from '@micromag/core/utils';
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 (shouldPause) {
1609
+ if (currentMedia !== null) {
1611
1610
  currentMedia.pause();
1612
1611
  }
1613
1612
  }
package/es/hooks.js CHANGED
@@ -344,7 +344,6 @@ function useDragProgress(t0) {
344
344
  tap,
345
345
  first
346
346
  } = gestureState;
347
- console.log("DRAG");
348
347
  if (disabled) {
349
348
  draggingRef.current = false;
350
349
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/core",
3
- "version": "0.4.74",
3
+ "version": "0.4.79",
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": "fe510ee87845280d0760cb292aef9d2eb69e67c1",
160
+ "gitHead": "9390fd82c9dbf9c0eeaa15697e34bbc79625383c",
161
161
  "types": "es/index.d.ts"
162
162
  }