@micromag/element-author 0.3.624 → 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 +23 -23
  2. package/package.json +6 -6
package/es/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import classNames from 'classnames';
4
- import PropTypes$1 from 'prop-types';
4
+ import PropTypes from 'prop-types';
5
5
  import React from 'react';
6
- import { PropTypes } from '@micromag/core';
6
+ import { PropTypes as PropTypes$1 } from '@micromag/core';
7
7
  import { getOptimalImageUrl, pascalCase, isTextFilled } from '@micromag/core/utils';
8
8
  import Link from '@micromag/element-link';
9
9
  import Text from '@micromag/element-text';
@@ -11,14 +11,14 @@ import Text from '@micromag/element-text';
11
11
  var styles$1 = {"container":"micromag-element-author-avatar-container","shapeCircle":"micromag-element-author-avatar-shapeCircle","shape":"micromag-element-author-avatar-shape"};
12
12
 
13
13
  var propTypes$1 = {
14
- image: PropTypes.imageElement,
15
- width: PropTypes$1.number,
16
- height: PropTypes$1.number,
17
- resolution: PropTypes$1.number,
18
- isTag: PropTypes$1.bool,
19
- shape: PropTypes$1.oneOf([null, 'tag', 'circle']),
20
- className: PropTypes$1.string,
21
- shouldLoad: PropTypes$1.bool
14
+ image: PropTypes$1.imageElement,
15
+ width: PropTypes.number,
16
+ height: PropTypes.number,
17
+ resolution: PropTypes.number,
18
+ isTag: PropTypes.bool,
19
+ shape: PropTypes.oneOf([null, 'tag', 'circle']),
20
+ className: PropTypes.string,
21
+ shouldLoad: PropTypes.bool
22
22
  };
23
23
  var defaultProps$1 = {
24
24
  image: null,
@@ -59,20 +59,20 @@ var styles = {"container":"micromag-element-author-container","image":"micromag-
59
59
 
60
60
  var _excluded = ["author", "withImage", "withoutLink", "linkUnderlineColor", "className", "backgroundClassName", "collaboratorClassName", "shouldLoad"];
61
61
  var propTypes = {
62
- author: PropTypes$1.shape({
63
- slug: PropTypes$1.string,
64
- name: PropTypes.textElement,
65
- image: PropTypes.imageElement,
66
- url: PropTypes$1.string,
67
- collaborator: PropTypes.textElement
62
+ author: PropTypes.shape({
63
+ slug: PropTypes.string,
64
+ name: PropTypes$1.textElement,
65
+ image: PropTypes$1.imageElement,
66
+ url: PropTypes.string,
67
+ collaborator: PropTypes$1.textElement
68
68
  }),
69
- withImage: PropTypes$1.bool,
70
- withoutLink: PropTypes$1.bool,
71
- linkUnderlineColor: PropTypes$1.string,
72
- className: PropTypes$1.string,
73
- backgroundClassName: PropTypes$1.string,
74
- collaboratorClassName: PropTypes$1.string,
75
- shouldLoad: PropTypes$1.bool
69
+ withImage: PropTypes.bool,
70
+ withoutLink: PropTypes.bool,
71
+ linkUnderlineColor: PropTypes.string,
72
+ className: PropTypes.string,
73
+ backgroundClassName: PropTypes.string,
74
+ collaboratorClassName: PropTypes.string,
75
+ shouldLoad: PropTypes.bool
76
76
  };
77
77
  var defaultProps = {
78
78
  author: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-author",
3
- "version": "0.3.624",
3
+ "version": "0.3.628",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -59,10 +59,10 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@babel/runtime": "^7.13.10",
62
- "@micromag/core": "^0.3.619",
63
- "@micromag/element-button": "^0.3.619",
64
- "@micromag/element-link": "^0.3.619",
65
- "@micromag/element-text": "^0.3.619",
62
+ "@micromag/core": "^0.3.628",
63
+ "@micromag/element-button": "^0.3.628",
64
+ "@micromag/element-link": "^0.3.628",
65
+ "@micromag/element-text": "^0.3.628",
66
66
  "classnames": "^2.2.6",
67
67
  "lodash": "^4.17.21",
68
68
  "prop-types": "^15.7.2",
@@ -73,5 +73,5 @@
73
73
  "access": "public",
74
74
  "registry": "https://registry.npmjs.org/"
75
75
  },
76
- "gitHead": "dae93d8ee83abe0aa8f51a31a94e32f7b5ad9104"
76
+ "gitHead": "6f1230244a2966c16e85b7d44583276421a38cca"
77
77
  }