@micromag/element-video 0.3.213 → 0.3.215
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 +6 -6
- package/lib/index.js +5 -5
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import isFunction from 'lodash/isFunction';
|
|
|
6
6
|
import PropTypes$1 from 'prop-types';
|
|
7
7
|
import React, { useMemo, useRef, useEffect, useCallback, useState } from 'react';
|
|
8
8
|
import { PropTypes } from '@micromag/core';
|
|
9
|
-
import { useMediaThumbnail, useMediaCurrentTime, useMediaDuration, useMediaReady,
|
|
9
|
+
import { useMediaThumbnail, useMediaCurrentTime, useMediaDuration, useMediaReady, useProgressSteps } from '@micromag/core/hooks';
|
|
10
10
|
import { getMediaFilesAsArray } from '@micromag/core/utils';
|
|
11
11
|
|
|
12
12
|
var styles = {"container":"micromag-element-video-container","withSize":"micromag-element-video-withSize","video":"micromag-element-video-video"};
|
|
@@ -140,11 +140,11 @@ var Video = function Video(_ref) {
|
|
|
140
140
|
});
|
|
141
141
|
var ready = useMediaReady(_ref9.current, {
|
|
142
142
|
id: mediaUrl
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
}); // useMediaLoad(ref.current, {
|
|
144
|
+
// preload,
|
|
145
|
+
// shouldLoad,
|
|
146
|
+
// });
|
|
147
|
+
// Get source files with supported mimes
|
|
148
148
|
|
|
149
149
|
var sourceFiles = useMemo(function () {
|
|
150
150
|
if (filesArray.length === 0) {
|
package/lib/index.js
CHANGED
|
@@ -152,11 +152,11 @@ var Video = function Video(_ref) {
|
|
|
152
152
|
});
|
|
153
153
|
var ready = hooks.useMediaReady(_ref9.current, {
|
|
154
154
|
id: mediaUrl
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
155
|
+
}); // useMediaLoad(ref.current, {
|
|
156
|
+
// preload,
|
|
157
|
+
// shouldLoad,
|
|
158
|
+
// });
|
|
159
|
+
// Get source files with supported mimes
|
|
160
160
|
|
|
161
161
|
var sourceFiles = React.useMemo(function () {
|
|
162
162
|
if (filesArray.length === 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-video",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.215",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "2a7a0cb941473db8a20f36ab03dfe8979320df9a"
|
|
68
68
|
}
|