@micromag/element-visual 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 +21 -21
  2. package/package.json +5 -5
package/es/index.js CHANGED
@@ -3,9 +3,9 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
3
3
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
4
4
  import { getSizeWithinBounds } from '@folklore/size';
5
5
  import classNames from 'classnames';
6
- import PropTypes$1 from 'prop-types';
6
+ import PropTypes from 'prop-types';
7
7
  import React, { useMemo, useCallback } from 'react';
8
- import { PropTypes } from '@micromag/core';
8
+ import { PropTypes as PropTypes$1 } from '@micromag/core';
9
9
  import Image from '@micromag/element-image';
10
10
  import Video from '@micromag/element-video';
11
11
 
@@ -13,27 +13,27 @@ var styles = {"container":"micromag-element-visual-container","videoContainer":"
13
13
 
14
14
  var _excluded = ["media", "mediaRef", "width", "height", "resolution", "objectFit", "playing", "muted", "shouldLoad", "videoLoop", "videoInitialMuted", "onLoaded", "className", "imageClassName", "videoClassName", "withoutVideo", "qualityStartLevel", "onQualityLevelChange"];
15
15
  var propTypes = {
16
- media: PropTypes.media,
17
- mediaRef: PropTypes$1.oneOfType([PropTypes$1.func, PropTypes$1.shape({
16
+ media: PropTypes$1.media,
17
+ mediaRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
18
18
  // eslint-disable-next-line react/forbid-prop-types
19
- current: PropTypes$1.any
19
+ current: PropTypes.any
20
20
  })]),
21
- width: PropTypes$1.oneOfType([PropTypes$1.number, PropTypes$1.string]),
22
- height: PropTypes$1.oneOfType([PropTypes$1.number, PropTypes$1.string]),
23
- resolution: PropTypes$1.number,
24
- objectFit: PropTypes.objectFit,
25
- playing: PropTypes$1.bool,
26
- muted: PropTypes$1.bool,
27
- shouldLoad: PropTypes$1.bool,
28
- videoLoop: PropTypes$1.bool,
29
- withoutVideo: PropTypes$1.bool,
30
- videoInitialMuted: PropTypes$1.bool,
31
- onLoaded: PropTypes$1.func,
32
- className: PropTypes$1.string,
33
- imageClassName: PropTypes$1.string,
34
- videoClassName: PropTypes$1.string,
35
- qualityStartLevel: PropTypes$1.number,
36
- onQualityLevelChange: PropTypes$1.func
21
+ width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
22
+ height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
23
+ resolution: PropTypes.number,
24
+ objectFit: PropTypes$1.objectFit,
25
+ playing: PropTypes.bool,
26
+ muted: PropTypes.bool,
27
+ shouldLoad: PropTypes.bool,
28
+ videoLoop: PropTypes.bool,
29
+ withoutVideo: PropTypes.bool,
30
+ videoInitialMuted: PropTypes.bool,
31
+ onLoaded: PropTypes.func,
32
+ className: PropTypes.string,
33
+ imageClassName: PropTypes.string,
34
+ videoClassName: PropTypes.string,
35
+ qualityStartLevel: PropTypes.number,
36
+ onQualityLevelChange: PropTypes.func
37
37
  };
38
38
  var defaultProps = {
39
39
  media: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-visual",
3
- "version": "0.3.619",
3
+ "version": "0.3.628",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -60,9 +60,9 @@
60
60
  "dependencies": {
61
61
  "@babel/runtime": "^7.13.10",
62
62
  "@folklore/size": "^0.1.20",
63
- "@micromag/core": "^0.3.619",
64
- "@micromag/element-image": "^0.3.619",
65
- "@micromag/element-video": "^0.3.619",
63
+ "@micromag/core": "^0.3.628",
64
+ "@micromag/element-image": "^0.3.628",
65
+ "@micromag/element-video": "^0.3.628",
66
66
  "classnames": "^2.2.6",
67
67
  "prop-types": "^15.7.2",
68
68
  "uuid": "^9.0.0"
@@ -71,5 +71,5 @@
71
71
  "access": "public",
72
72
  "registry": "https://registry.npmjs.org/"
73
73
  },
74
- "gitHead": "21a901b0f800114994f30dfe692c664d378e12f7"
74
+ "gitHead": "6f1230244a2966c16e85b7d44583276421a38cca"
75
75
  }