@micromag/element-audio 0.3.637 → 0.3.639
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 +4 -1
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -198,6 +198,7 @@ var propTypes$1 = {
|
|
|
198
198
|
autoWaveHeight: PropTypes.bool,
|
|
199
199
|
// reduceBufferFactor: PropTypes.number,
|
|
200
200
|
updateInterval: PropTypes.number,
|
|
201
|
+
withoutSeek: PropTypes.bool,
|
|
201
202
|
className: PropTypes.string,
|
|
202
203
|
onReady: PropTypes.func,
|
|
203
204
|
onPlay: PropTypes.func,
|
|
@@ -225,6 +226,7 @@ var defaultProps$1 = {
|
|
|
225
226
|
autoWaveHeight: false,
|
|
226
227
|
// reduceBufferFactor: 100,
|
|
227
228
|
updateInterval: 1000,
|
|
229
|
+
withoutSeek: false,
|
|
228
230
|
className: null,
|
|
229
231
|
onReady: null,
|
|
230
232
|
onPlay: null,
|
|
@@ -251,6 +253,7 @@ var Audio = function Audio(_ref) {
|
|
|
251
253
|
autoWaveHeight = _ref.autoWaveHeight,
|
|
252
254
|
updateInterval = _ref.updateInterval,
|
|
253
255
|
className = _ref.className,
|
|
256
|
+
withoutSeek = _ref.withoutSeek,
|
|
254
257
|
onReady = _ref.onReady,
|
|
255
258
|
onPlay = _ref.onPlay,
|
|
256
259
|
onPause = _ref.onPause,
|
|
@@ -399,7 +402,7 @@ var Audio = function Audio(_ref) {
|
|
|
399
402
|
,
|
|
400
403
|
duration: duration,
|
|
401
404
|
playing: !paused,
|
|
402
|
-
seek: onWaveSeek,
|
|
405
|
+
seek: !withoutSeek ? onWaveSeek : null,
|
|
403
406
|
play: onWavePlay
|
|
404
407
|
}) : null);
|
|
405
408
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-audio",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.639",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"access": "public",
|
|
75
75
|
"registry": "https://registry.npmjs.org/"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "a14314db53352d16f34104cb2da1b2e6e89a1eda"
|
|
78
78
|
}
|