@micromag/element-audio 0.2.393 → 0.2.403
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 +3 -3
- package/lib/index.js +4 -4
- package/package.json +6 -6
package/es/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import PropTypes from 'prop-types';
|
|
|
10
10
|
import React, { useRef, useEffect, useCallback, useState } from 'react';
|
|
11
11
|
import { useSpring } from '@react-spring/core';
|
|
12
12
|
import { animated } from '@react-spring/web';
|
|
13
|
-
import { useGesture } from '
|
|
13
|
+
import { useGesture } from '@use-gesture/react';
|
|
14
14
|
import 'whatwg-fetch';
|
|
15
15
|
|
|
16
16
|
var styles$1 = {"container":"micromag-element-audio-audio-wave-container","button":"micromag-element-audio-audio-wave-button","canvasBackground":"micromag-element-audio-audio-wave-canvasBackground","canvasProgress":"micromag-element-audio-audio-wave-canvasProgress"};
|
|
@@ -46,7 +46,7 @@ var defaultProps$1 = {
|
|
|
46
46
|
onReady: null
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
function AudioWave(_ref) {
|
|
50
50
|
var currentTime = _ref.currentTime,
|
|
51
51
|
duration = _ref.duration,
|
|
52
52
|
playing = _ref.playing,
|
|
@@ -229,7 +229,7 @@ var AudioWave = function AudioWave(_ref) {
|
|
|
229
229
|
})
|
|
230
230
|
}
|
|
231
231
|
}));
|
|
232
|
-
}
|
|
232
|
+
}
|
|
233
233
|
|
|
234
234
|
AudioWave.propTypes = propTypes$1;
|
|
235
235
|
AudioWave.defaultProps = defaultProps$1;
|
package/lib/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var PropTypes = require('prop-types');
|
|
|
14
14
|
var React = require('react');
|
|
15
15
|
var core = require('@react-spring/core');
|
|
16
16
|
var web = require('@react-spring/web');
|
|
17
|
-
var
|
|
17
|
+
var react = require('@use-gesture/react');
|
|
18
18
|
require('whatwg-fetch');
|
|
19
19
|
|
|
20
20
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -60,7 +60,7 @@ var defaultProps$1 = {
|
|
|
60
60
|
onReady: null
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
function AudioWave(_ref) {
|
|
64
64
|
var currentTime = _ref.currentTime,
|
|
65
65
|
duration = _ref.duration,
|
|
66
66
|
playing = _ref.playing,
|
|
@@ -209,7 +209,7 @@ var AudioWave = function AudioWave(_ref) {
|
|
|
209
209
|
onResume();
|
|
210
210
|
}
|
|
211
211
|
}, [duration, playing, onSeek, onResume]);
|
|
212
|
-
var bind =
|
|
212
|
+
var bind = react.useGesture({
|
|
213
213
|
onDrag: function onDrag(_ref3) {
|
|
214
214
|
var _ref3$xy = _slicedToArray__default["default"](_ref3.xy, 1),
|
|
215
215
|
x = _ref3$xy[0],
|
|
@@ -243,7 +243,7 @@ var AudioWave = function AudioWave(_ref) {
|
|
|
243
243
|
})
|
|
244
244
|
}
|
|
245
245
|
}));
|
|
246
|
-
}
|
|
246
|
+
}
|
|
247
247
|
|
|
248
248
|
AudioWave.propTypes = propTypes$1;
|
|
249
249
|
AudioWave.defaultProps = defaultProps$1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-audio",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.403",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -52,20 +52,20 @@
|
|
|
52
52
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
53
53
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
54
54
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
55
|
-
"@micromag/core": "^0.2.
|
|
56
|
-
"@micromag/element-closed-captions": "^0.2.
|
|
57
|
-
"@micromag/element-media-controls": "^0.2.
|
|
55
|
+
"@micromag/core": "^0.2.403",
|
|
56
|
+
"@micromag/element-closed-captions": "^0.2.403",
|
|
57
|
+
"@micromag/element-media-controls": "^0.2.403",
|
|
58
58
|
"@react-spring/core": "^9.1.1",
|
|
59
59
|
"@react-spring/web": "^9.1.1",
|
|
60
|
+
"@use-gesture/react": "^10.2.4",
|
|
60
61
|
"classnames": "^2.2.6",
|
|
61
62
|
"prop-types": "^15.7.2",
|
|
62
63
|
"react-intl": "^5.12.1",
|
|
63
|
-
"react-use-gesture": "^9.0.0",
|
|
64
64
|
"uuid": "^8.3.2",
|
|
65
65
|
"whatwg-fetch": "^3.6.1"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "7a6604651c990286e594350ef730d40772937195"
|
|
71
71
|
}
|