@micromag/element-author 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.
- package/assets/css/styles.css +1 -1
- package/es/index.js +23 -23
- package/package.json +6 -6
package/assets/css/styles.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
.micromag-element-author-avatar-container{display:inline-block;position:relative;width:100%;z-index:1}.micromag-element-author-avatar-container.micromag-element-author-avatar-shapeCircle .micromag-element-author-avatar-shape{background-color:#fff;background-position:top;border-radius:50%;overflow:hidden}.micromag-element-author-avatar-container .micromag-element-author-avatar-shape{background-color:#fff;background-position:50%;background-repeat:no-repeat;background-size:cover;-webkit-box-shadow:0 0 4px rgba(0,0,0,.2);box-shadow:0 0 4px rgba(0,0,0,.2);display:block;height:0;padding-bottom:100%;width:100%}
|
|
2
|
-
.micromag-element-author-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;vertical-align:center}.micromag-element-author-container .micromag-element-author-image{margin-right:10px;max-width:35px}.micromag-element-author-container .micromag-element-author-link{-webkit-text-decoration:none;text-decoration:none}.micromag-element-author-container .micromag-element-author-right{display:block}.micromag-element-author-container .micromag-element-author-name p{display:inline;margin:0}.micromag-element-author-container .micromag-element-author-collaborator{background-color:transparent}.micromag-element-author-container .micromag-element-author-collaborator .micromag-element-author-collaboratorText{font-size:inherit}.micromag-element-author-container .micromag-element-author-collaborator .micromag-element-author-collaboratorText p{display:inline}
|
|
2
|
+
.micromag-element-author-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;vertical-align:center}.micromag-element-author-container .micromag-element-author-image{margin-right:10px;max-width:35px}.micromag-element-author-container .micromag-element-author-link{-webkit-text-decoration:none;text-decoration:none}.micromag-element-author-container .micromag-element-author-right{display:block;-ms-flex-positive:1;flex-grow:1}.micromag-element-author-container .micromag-element-author-name p{display:inline;margin:0}.micromag-element-author-container .micromag-element-author-collaborator{background-color:transparent}.micromag-element-author-container .micromag-element-author-collaborator .micromag-element-author-collaboratorText{font-size:inherit}.micromag-element-author-container .micromag-element-author-collaborator .micromag-element-author-collaboratorText p{display:inline}
|
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
|
|
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
|
|
16
|
-
height: PropTypes
|
|
17
|
-
resolution: PropTypes
|
|
18
|
-
isTag: PropTypes
|
|
19
|
-
shape: PropTypes
|
|
20
|
-
className: PropTypes
|
|
21
|
-
shouldLoad: PropTypes
|
|
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
|
|
63
|
-
slug: PropTypes
|
|
64
|
-
name: PropTypes.textElement,
|
|
65
|
-
image: PropTypes.imageElement,
|
|
66
|
-
url: PropTypes
|
|
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
|
|
70
|
-
withoutLink: PropTypes
|
|
71
|
-
linkUnderlineColor: PropTypes
|
|
72
|
-
className: PropTypes
|
|
73
|
-
backgroundClassName: PropTypes
|
|
74
|
-
collaboratorClassName: PropTypes
|
|
75
|
-
shouldLoad: PropTypes
|
|
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.
|
|
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
|
}
|