@micromag/element-urbania-author 0.3.618 → 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.
- package/es/index.js +26 -26
- package/package.json +6 -6
package/es/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
|
-
import { PropTypes } from '@micromag/core';
|
|
7
|
+
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
8
8
|
import { getOptimalImageUrl, pascalCase, isTextFilled } from '@micromag/core/utils';
|
|
9
9
|
import Link from '@micromag/element-link';
|
|
10
10
|
import Text from '@micromag/element-text';
|
|
@@ -12,14 +12,14 @@ import Text from '@micromag/element-text';
|
|
|
12
12
|
var styles$1 = {"container":"micromag-element-urbania-author-avatar-container","shapeCircle":"micromag-element-urbania-author-avatar-shapeCircle","shape":"micromag-element-urbania-author-avatar-shape"};
|
|
13
13
|
|
|
14
14
|
var propTypes$1 = {
|
|
15
|
-
image: PropTypes.imageElement,
|
|
16
|
-
width: PropTypes
|
|
17
|
-
height: PropTypes
|
|
18
|
-
resolution: PropTypes
|
|
19
|
-
isTag: PropTypes
|
|
20
|
-
shape: PropTypes
|
|
21
|
-
className: PropTypes
|
|
22
|
-
shouldLoad: PropTypes
|
|
15
|
+
image: PropTypes$1.imageElement,
|
|
16
|
+
width: PropTypes.number,
|
|
17
|
+
height: PropTypes.number,
|
|
18
|
+
resolution: PropTypes.number,
|
|
19
|
+
isTag: PropTypes.bool,
|
|
20
|
+
shape: PropTypes.oneOf([null, 'tag', 'circle']),
|
|
21
|
+
className: PropTypes.string,
|
|
22
|
+
shouldLoad: PropTypes.bool
|
|
23
23
|
};
|
|
24
24
|
var defaultProps$1 = {
|
|
25
25
|
image: null,
|
|
@@ -60,23 +60,23 @@ var styles = {"container":"micromag-element-urbania-author-container","image":"m
|
|
|
60
60
|
|
|
61
61
|
var _excluded = ["author", "withImage", "withoutLink", "withoutPrefix", "withoutBackground", "isSmall", "linkUnderlineColor", "className", "backgroundClassName", "collaboratorClassName", "shouldLoad"];
|
|
62
62
|
var propTypes = {
|
|
63
|
-
author: PropTypes
|
|
64
|
-
slug: PropTypes
|
|
65
|
-
name: PropTypes.textElement,
|
|
66
|
-
image: PropTypes.imageElement,
|
|
67
|
-
url: PropTypes
|
|
68
|
-
collaborator: PropTypes.textElement
|
|
63
|
+
author: PropTypes.shape({
|
|
64
|
+
slug: PropTypes.string,
|
|
65
|
+
name: PropTypes$1.textElement,
|
|
66
|
+
image: PropTypes$1.imageElement,
|
|
67
|
+
url: PropTypes.string,
|
|
68
|
+
collaborator: PropTypes$1.textElement
|
|
69
69
|
}),
|
|
70
|
-
withImage: PropTypes
|
|
71
|
-
withoutLink: PropTypes
|
|
72
|
-
withoutPrefix: PropTypes
|
|
73
|
-
withoutBackground: PropTypes
|
|
74
|
-
isSmall: PropTypes
|
|
75
|
-
linkUnderlineColor: PropTypes
|
|
76
|
-
className: PropTypes
|
|
77
|
-
backgroundClassName: PropTypes
|
|
78
|
-
collaboratorClassName: PropTypes
|
|
79
|
-
shouldLoad: PropTypes
|
|
70
|
+
withImage: PropTypes.bool,
|
|
71
|
+
withoutLink: PropTypes.bool,
|
|
72
|
+
withoutPrefix: PropTypes.bool,
|
|
73
|
+
withoutBackground: PropTypes.bool,
|
|
74
|
+
isSmall: PropTypes.bool,
|
|
75
|
+
linkUnderlineColor: PropTypes.string,
|
|
76
|
+
className: PropTypes.string,
|
|
77
|
+
backgroundClassName: PropTypes.string,
|
|
78
|
+
collaboratorClassName: PropTypes.string,
|
|
79
|
+
shouldLoad: PropTypes.bool
|
|
80
80
|
};
|
|
81
81
|
var defaultProps = {
|
|
82
82
|
author: null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-urbania-author",
|
|
3
|
-
"version": "0.3.
|
|
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.
|
|
63
|
-
"@micromag/element-button": "^0.3.
|
|
64
|
-
"@micromag/element-link": "^0.3.
|
|
65
|
-
"@micromag/element-text": "^0.3.
|
|
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": "
|
|
76
|
+
"gitHead": "6f1230244a2966c16e85b7d44583276421a38cca"
|
|
77
77
|
}
|