@micromag/element-image 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 +16 -16
  2. package/package.json +3 -3
package/es/index.js CHANGED
@@ -3,27 +3,27 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
3
3
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
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, { useState, useRef, useCallback } from 'react';
8
- import { PropTypes } from '@micromag/core';
8
+ import { PropTypes as PropTypes$1 } from '@micromag/core';
9
9
  import { getOptimalImageUrl } from '@micromag/core/utils';
10
10
 
11
- var styles = {"container":"micromag-element-image-container","showEmpty":"micromag-element-image-showEmpty","img":"micromag-element-image-img"};
11
+ var styles = {"container":"micromag-element-image-container","img":"micromag-element-image-img"};
12
12
 
13
13
  var propTypes = {
14
- media: PropTypes.imageMedia,
15
- alt: PropTypes$1.string,
16
- width: PropTypes$1.oneOfType([PropTypes$1.number, PropTypes$1.string]),
17
- height: PropTypes$1.oneOfType([PropTypes$1.number, PropTypes$1.string]),
18
- resolution: PropTypes$1.number,
19
- objectFit: PropTypes.objectFit,
20
- containerStyle: PropTypes.containerStyle,
21
- imageStyle: PropTypes.containerStyle,
22
- className: PropTypes$1.string,
23
- imageClassName: PropTypes$1.string,
24
- onLoaded: PropTypes$1.func,
25
- loadingMode: PropTypes$1.string,
26
- shouldLoad: PropTypes$1.bool
14
+ media: PropTypes$1.imageMedia,
15
+ alt: PropTypes.string,
16
+ width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
17
+ height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
18
+ resolution: PropTypes.number,
19
+ objectFit: PropTypes$1.objectFit,
20
+ containerStyle: PropTypes$1.containerStyle,
21
+ imageStyle: PropTypes$1.containerStyle,
22
+ className: PropTypes.string,
23
+ imageClassName: PropTypes.string,
24
+ onLoaded: PropTypes.func,
25
+ loadingMode: PropTypes.string,
26
+ shouldLoad: PropTypes.bool
27
27
  };
28
28
  var defaultProps = {
29
29
  media: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-image",
3
- "version": "0.3.619",
3
+ "version": "0.3.628",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -60,7 +60,7 @@
60
60
  "dependencies": {
61
61
  "@babel/runtime": "^7.13.10",
62
62
  "@folklore/size": "^0.1.20",
63
- "@micromag/core": "^0.3.619",
63
+ "@micromag/core": "^0.3.628",
64
64
  "classnames": "^2.2.6",
65
65
  "prop-types": "^15.7.2",
66
66
  "react-intl": "^6.6.4",
@@ -70,5 +70,5 @@
70
70
  "access": "public",
71
71
  "registry": "https://registry.npmjs.org/"
72
72
  },
73
- "gitHead": "21a901b0f800114994f30dfe692c664d378e12f7"
73
+ "gitHead": "6f1230244a2966c16e85b7d44583276421a38cca"
74
74
  }