@micromag/element-video 0.3.619 → 0.3.628

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.
Files changed (2) hide show
  1. package/es/index.js +37 -37
  2. package/package.json +4 -4
package/es/index.js CHANGED
@@ -4,9 +4,9 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
4
4
  import classNames from 'classnames';
5
5
  import Hls from 'hls.js';
6
6
  import isFunction from 'lodash/isFunction';
7
- import PropTypes$1 from 'prop-types';
7
+ import PropTypes from 'prop-types';
8
8
  import React, { useMemo, useRef, useState, useEffect, useCallback } from 'react';
9
- import { PropTypes } from '@micromag/core';
9
+ import { PropTypes as PropTypes$1 } from '@micromag/core';
10
10
  import { Spinner } from '@micromag/core/components';
11
11
  import { useMediaThumbnail, useMediaCurrentTime, useMediaDuration, useMediaReady, useProgressSteps } from '@micromag/core/hooks';
12
12
  import { getMediaFilesAsArray, getVideoSupportedMimes } from '@micromag/core/utils';
@@ -14,42 +14,42 @@ import { getMediaFilesAsArray, getVideoSupportedMimes } from '@micromag/core/uti
14
14
  var styles = {"container":"micromag-element-video-container","withSize":"micromag-element-video-withSize","media":"micromag-element-video-media","spinner":"micromag-element-video-spinner"};
15
15
 
16
16
  var propTypes = {
17
- media: PropTypes.videoMedia,
18
- thumbnail: PropTypes$1.oneOf([PropTypes$1.string, PropTypes.imageMedia]),
19
- width: PropTypes$1.number,
20
- height: PropTypes$1.number,
21
- mediaRef: PropTypes$1.oneOfType([PropTypes$1.func, PropTypes$1.shape({
22
- current: PropTypes$1.any
17
+ media: PropTypes$1.videoMedia,
18
+ thumbnail: PropTypes.oneOf([PropTypes.string, PropTypes$1.imageMedia]),
19
+ width: PropTypes.number,
20
+ height: PropTypes.number,
21
+ mediaRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
22
+ current: PropTypes.any
23
23
  })]),
24
- muted: PropTypes$1.bool,
25
- autoPlay: PropTypes$1.bool,
26
- paused: PropTypes$1.bool,
27
- loop: PropTypes$1.bool,
28
- playsInline: PropTypes$1.bool,
29
- preload: PropTypes$1.oneOf(['auto', 'metadata', 'none', null]),
30
- disablePictureInPicture: PropTypes$1.bool,
31
- disableHls: PropTypes$1.bool,
32
- shouldLoad: PropTypes$1.bool,
33
- withoutCors: PropTypes$1.bool,
34
- className: PropTypes$1.string,
35
- innerClassName: PropTypes$1.string,
36
- onReady: PropTypes$1.func,
37
- onPlay: PropTypes$1.func,
38
- onPause: PropTypes$1.func,
39
- onEnded: PropTypes$1.func,
40
- onSeeked: PropTypes$1.func,
41
- onTimeUpdate: PropTypes$1.func,
42
- onProgressStep: PropTypes$1.func,
43
- onDurationChange: PropTypes$1.func,
44
- onVolumeChange: PropTypes$1.func,
45
- onSuspend: PropTypes$1.func,
46
- onSuspended: PropTypes$1.func,
47
- onPlayError: PropTypes$1.func,
48
- onQualityLevelChange: PropTypes$1.func,
49
- focusable: PropTypes$1.bool,
50
- withPoster: PropTypes$1.bool,
51
- withLoading: PropTypes$1.bool,
52
- qualityStartLevel: PropTypes$1.number
24
+ muted: PropTypes.bool,
25
+ autoPlay: PropTypes.bool,
26
+ paused: PropTypes.bool,
27
+ loop: PropTypes.bool,
28
+ playsInline: PropTypes.bool,
29
+ preload: PropTypes.oneOf(['auto', 'metadata', 'none', null]),
30
+ disablePictureInPicture: PropTypes.bool,
31
+ disableHls: PropTypes.bool,
32
+ shouldLoad: PropTypes.bool,
33
+ withoutCors: PropTypes.bool,
34
+ className: PropTypes.string,
35
+ innerClassName: PropTypes.string,
36
+ onReady: PropTypes.func,
37
+ onPlay: PropTypes.func,
38
+ onPause: PropTypes.func,
39
+ onEnded: PropTypes.func,
40
+ onSeeked: PropTypes.func,
41
+ onTimeUpdate: PropTypes.func,
42
+ onProgressStep: PropTypes.func,
43
+ onDurationChange: PropTypes.func,
44
+ onVolumeChange: PropTypes.func,
45
+ onSuspend: PropTypes.func,
46
+ onSuspended: PropTypes.func,
47
+ onPlayError: PropTypes.func,
48
+ onQualityLevelChange: PropTypes.func,
49
+ focusable: PropTypes.bool,
50
+ withPoster: PropTypes.bool,
51
+ withLoading: PropTypes.bool,
52
+ qualityStartLevel: PropTypes.number
53
53
  };
54
54
  var defaultProps = {
55
55
  media: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-video",
3
- "version": "0.3.619",
3
+ "version": "0.3.628",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -59,8 +59,8 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@babel/runtime": "^7.13.10",
62
- "@micromag/core": "^0.3.619",
63
- "@micromag/element-closed-captions": "^0.3.619",
62
+ "@micromag/core": "^0.3.628",
63
+ "@micromag/element-closed-captions": "^0.3.628",
64
64
  "classnames": "^2.2.6",
65
65
  "hls.js": "^1.5.15",
66
66
  "lodash": "^4.17.21",
@@ -72,5 +72,5 @@
72
72
  "access": "public",
73
73
  "registry": "https://registry.npmjs.org/"
74
74
  },
75
- "gitHead": "21a901b0f800114994f30dfe692c664d378e12f7"
75
+ "gitHead": "6f1230244a2966c16e85b7d44583276421a38cca"
76
76
  }