@micromag/element-urbania-author 0.3.310 → 0.3.318

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.
@@ -1,2 +1,2 @@
1
- .micromag-element-urbania-author-avatar-container{display:inline-block;position:relative;z-index:1;width:100%}.micromag-element-urbania-author-avatar-container .micromag-element-urbania-author-avatar-shape{display:block;width:100%;height:0;padding-bottom:100%;background-color:#fff;background-repeat:no-repeat;background-position:50%;background-size:cover;-webkit-box-shadow:0 0 4px rgba(0,0,0,.2);box-shadow:0 0 4px rgba(0,0,0,.2)}.micromag-element-urbania-author-avatar-container.micromag-element-urbania-author-avatar-shape-circle .micromag-element-urbania-author-avatar-shape{overflow:hidden;border-radius:50%;background-color:#fff;background-position:top}
2
- .micromag-element-urbania-author-container{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#222;font-family:Agrandir;vertical-align:center}.micromag-element-urbania-author-container .micromag-element-urbania-author-image{min-width:2.2em;max-width:4em}.micromag-element-urbania-author-container .micromag-element-urbania-author-link{display:inline-block;color:#222;text-decoration:none}.micromag-element-urbania-author-container .micromag-element-urbania-author-right{display:block}.micromag-element-urbania-author-container .micromag-element-urbania-author-name,.micromag-element-urbania-author-container .micromag-element-urbania-author-prefix{min-height:20px}.micromag-element-urbania-author-container .micromag-element-urbania-author-collaborator,.micromag-element-urbania-author-container .micromag-element-urbania-author-name,.micromag-element-urbania-author-container .micromag-element-urbania-author-prefix{background-color:#efefef;font-family:Agrandir;font-size:10px;letter-spacing:.04em;line-height:1;white-space:nowrap}.micromag-element-urbania-author-container .micromag-element-urbania-author-name{margin-left:-7px;padding:6px 8px 3px 13px;border-top-right-radius:40px;border-bottom-right-radius:40px}.micromag-element-urbania-author-container .micromag-element-urbania-author-name p{display:inline;margin:0;font-size:inherit;font-weight:700;line-height:1;text-transform:uppercase}.micromag-element-urbania-author-container .micromag-element-urbania-author-collaborator{position:absolute;padding-top:2px;background-color:rgba(0,0,0,0);color:#fff}.micromag-element-urbania-author-container .micromag-element-urbania-author-collaborator .micromag-element-urbania-author-collaboratorText{padding-left:7.3px;font-size:inherit}.micromag-element-urbania-author-container .micromag-element-urbania-author-collaborator .micromag-element-urbania-author-collaboratorText p{display:inline;font-size:.9em;line-height:1}.micromag-element-urbania-author-container .micromag-element-urbania-author-prefix{margin-right:-5px;padding:6px 12px 3px 8px;border-top-left-radius:40px;border-bottom-left-radius:40px}.micromag-element-urbania-author-container.micromag-element-urbania-author-isSmall{font-size:9px}.micromag-element-urbania-author-container.micromag-element-urbania-author-isSmall .micromag-element-urbania-author-name,.micromag-element-urbania-author-container.micromag-element-urbania-author-isSmall .micromag-element-urbania-author-prefix{font-size:9px;white-space:normal}.micromag-element-urbania-author-container.micromag-element-urbania-author-isSmall .micromag-element-urbania-author-image{max-width:30px}.micromag-element-urbania-author-container.micromag-element-urbania-author-withoutImage .micromag-element-urbania-author-name{margin-left:0;padding-left:0}.micromag-element-urbania-author-container.micromag-element-urbania-author-withoutImage .micromag-element-urbania-author-prefix{margin-right:0;padding-right:.4em}
1
+ .micromag-element-urbania-author-avatar-container{display:inline-block;position:relative;width:100%;z-index:1}.micromag-element-urbania-author-avatar-container .micromag-element-urbania-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%}.micromag-element-urbania-author-avatar-container.micromag-element-urbania-author-avatar-shape-circle .micromag-element-urbania-author-avatar-shape{background-color:#fff;background-position:top;border-radius:50%;overflow:hidden}
2
+ .micromag-element-urbania-author-container{-ms-flex-align:center;align-items:center;color:#222;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-family:Agrandir;vertical-align:center}.micromag-element-urbania-author-container .micromag-element-urbania-author-image{max-width:4em;min-width:2.2em}.micromag-element-urbania-author-container .micromag-element-urbania-author-link{color:#222;display:inline-block;text-decoration:none}.micromag-element-urbania-author-container .micromag-element-urbania-author-right{display:block}.micromag-element-urbania-author-container .micromag-element-urbania-author-name,.micromag-element-urbania-author-container .micromag-element-urbania-author-prefix{min-height:20px}.micromag-element-urbania-author-container .micromag-element-urbania-author-collaborator,.micromag-element-urbania-author-container .micromag-element-urbania-author-name,.micromag-element-urbania-author-container .micromag-element-urbania-author-prefix{background-color:#efefef;font-family:Agrandir;font-size:10px;letter-spacing:.04em;line-height:1;white-space:nowrap}.micromag-element-urbania-author-container .micromag-element-urbania-author-name{border-bottom-right-radius:40px;border-top-right-radius:40px;margin-left:-7px;padding:6px 8px 3px 13px}.micromag-element-urbania-author-container .micromag-element-urbania-author-name p{display:inline;font-size:inherit;font-weight:700;line-height:1;margin:0;text-transform:uppercase}.micromag-element-urbania-author-container .micromag-element-urbania-author-collaborator{background-color:transparent;color:#fff;padding-top:2px;position:absolute}.micromag-element-urbania-author-container .micromag-element-urbania-author-collaborator .micromag-element-urbania-author-collaboratorText{font-size:inherit;padding-left:7.3px}.micromag-element-urbania-author-container .micromag-element-urbania-author-collaborator .micromag-element-urbania-author-collaboratorText p{display:inline;font-size:.9em;line-height:1}.micromag-element-urbania-author-container .micromag-element-urbania-author-prefix{border-bottom-left-radius:40px;border-top-left-radius:40px;margin-right:-5px;padding:6px 12px 3px 8px}.micromag-element-urbania-author-container.micromag-element-urbania-author-isSmall{font-size:9px}.micromag-element-urbania-author-container.micromag-element-urbania-author-isSmall .micromag-element-urbania-author-name,.micromag-element-urbania-author-container.micromag-element-urbania-author-isSmall .micromag-element-urbania-author-prefix{font-size:9px;white-space:normal}.micromag-element-urbania-author-container.micromag-element-urbania-author-isSmall .micromag-element-urbania-author-image{max-width:30px}.micromag-element-urbania-author-container.micromag-element-urbania-author-withoutImage .micromag-element-urbania-author-name{margin-left:0;padding-left:0}.micromag-element-urbania-author-container.micromag-element-urbania-author-withoutImage .micromag-element-urbania-author-prefix{margin-right:0;padding-right:.4em}
package/es/index.js CHANGED
@@ -31,18 +31,16 @@ var defaultProps$1 = {
31
31
  className: null,
32
32
  shouldLoad: true
33
33
  };
34
-
35
34
  var Avatar = function Avatar(_ref) {
36
35
  var _ref2;
37
-
38
36
  var image = _ref.image,
39
- width = _ref.width,
40
- height = _ref.height,
41
- resolution = _ref.resolution,
42
- shape = _ref.shape,
43
- isTag = _ref.isTag,
44
- className = _ref.className,
45
- shouldLoad = _ref.shouldLoad;
37
+ width = _ref.width,
38
+ height = _ref.height,
39
+ resolution = _ref.resolution,
40
+ shape = _ref.shape,
41
+ isTag = _ref.isTag,
42
+ className = _ref.className,
43
+ shouldLoad = _ref.shouldLoad;
46
44
  var imageAtSize = getOptimalImageUrl(image, width, height, {
47
45
  resolution: resolution
48
46
  });
@@ -55,7 +53,6 @@ var Avatar = function Avatar(_ref) {
55
53
  }
56
54
  }));
57
55
  };
58
-
59
56
  Avatar.propTypes = propTypes$1;
60
57
  Avatar.defaultProps = defaultProps$1;
61
58
 
@@ -92,34 +89,29 @@ var defaultProps = {
92
89
  collaboratorClassName: null,
93
90
  shouldLoad: true
94
91
  };
95
-
96
92
  var UrbaniaAuthor = function UrbaniaAuthor(_ref) {
97
93
  var _ref4;
98
-
99
94
  var author = _ref.author,
100
- withImage = _ref.withImage,
101
- withoutLink = _ref.withoutLink,
102
- withoutPrefix = _ref.withoutPrefix,
103
- isSmall = _ref.isSmall,
104
- linkUnderlineColor = _ref.linkUnderlineColor,
105
- className = _ref.className,
106
- backgroundClassName = _ref.backgroundClassName,
107
- collaboratorClassName = _ref.collaboratorClassName,
108
- shouldLoad = _ref.shouldLoad,
109
- otherProps = _objectWithoutProperties(_ref, _excluded);
110
-
95
+ withImage = _ref.withImage,
96
+ withoutLink = _ref.withoutLink,
97
+ withoutPrefix = _ref.withoutPrefix,
98
+ isSmall = _ref.isSmall,
99
+ linkUnderlineColor = _ref.linkUnderlineColor,
100
+ className = _ref.className,
101
+ backgroundClassName = _ref.backgroundClassName,
102
+ collaboratorClassName = _ref.collaboratorClassName,
103
+ shouldLoad = _ref.shouldLoad,
104
+ otherProps = _objectWithoutProperties(_ref, _excluded);
111
105
  var intl = useIntl();
112
-
113
106
  var _ref2 = author || {},
114
- _ref2$name = _ref2.name,
115
- name = _ref2$name === void 0 ? null : _ref2$name,
116
- _ref2$image = _ref2.image,
117
- image = _ref2$image === void 0 ? null : _ref2$image,
118
- _ref2$url = _ref2.url,
119
- url = _ref2$url === void 0 ? null : _ref2$url,
120
- _ref2$collaborator = _ref2.collaborator,
121
- collaborator = _ref2$collaborator === void 0 ? null : _ref2$collaborator;
122
-
107
+ _ref2$name = _ref2.name,
108
+ name = _ref2$name === void 0 ? null : _ref2$name,
109
+ _ref2$image = _ref2.image,
110
+ image = _ref2$image === void 0 ? null : _ref2$image,
111
+ _ref2$url = _ref2.url,
112
+ url = _ref2$url === void 0 ? null : _ref2$url,
113
+ _ref2$collaborator = _ref2.collaborator,
114
+ collaborator = _ref2$collaborator === void 0 ? null : _ref2$collaborator;
123
115
  var withAvatar = withImage && image !== null;
124
116
  var prefix = intl.formatMessage({
125
117
  id: "jEK6B8",
@@ -158,7 +150,6 @@ var UrbaniaAuthor = function UrbaniaAuthor(_ref) {
158
150
  className: classNames([styles.collaborator, _defineProperty({}, collaboratorClassName, collaboratorClassName)])
159
151
  }, collaboratorText !== null ? collaboratorText : null) : null));
160
152
  };
161
-
162
153
  UrbaniaAuthor.propTypes = propTypes;
163
154
  UrbaniaAuthor.defaultProps = defaultProps;
164
155
 
package/lib/index.js CHANGED
@@ -43,18 +43,16 @@ var defaultProps$1 = {
43
43
  className: null,
44
44
  shouldLoad: true
45
45
  };
46
-
47
46
  var Avatar = function Avatar(_ref) {
48
47
  var _ref2;
49
-
50
48
  var image = _ref.image,
51
- width = _ref.width,
52
- height = _ref.height,
53
- resolution = _ref.resolution,
54
- shape = _ref.shape,
55
- isTag = _ref.isTag,
56
- className = _ref.className,
57
- shouldLoad = _ref.shouldLoad;
49
+ width = _ref.width,
50
+ height = _ref.height,
51
+ resolution = _ref.resolution,
52
+ shape = _ref.shape,
53
+ isTag = _ref.isTag,
54
+ className = _ref.className,
55
+ shouldLoad = _ref.shouldLoad;
58
56
  var imageAtSize = utils.getOptimalImageUrl(image, width, height, {
59
57
  resolution: resolution
60
58
  });
@@ -67,7 +65,6 @@ var Avatar = function Avatar(_ref) {
67
65
  }
68
66
  }));
69
67
  };
70
-
71
68
  Avatar.propTypes = propTypes$1;
72
69
  Avatar.defaultProps = defaultProps$1;
73
70
 
@@ -104,34 +101,29 @@ var defaultProps = {
104
101
  collaboratorClassName: null,
105
102
  shouldLoad: true
106
103
  };
107
-
108
104
  var UrbaniaAuthor = function UrbaniaAuthor(_ref) {
109
105
  var _ref4;
110
-
111
106
  var author = _ref.author,
112
- withImage = _ref.withImage,
113
- withoutLink = _ref.withoutLink,
114
- withoutPrefix = _ref.withoutPrefix,
115
- isSmall = _ref.isSmall,
116
- linkUnderlineColor = _ref.linkUnderlineColor,
117
- className = _ref.className,
118
- backgroundClassName = _ref.backgroundClassName,
119
- collaboratorClassName = _ref.collaboratorClassName,
120
- shouldLoad = _ref.shouldLoad,
121
- otherProps = _objectWithoutProperties__default["default"](_ref, _excluded);
122
-
107
+ withImage = _ref.withImage,
108
+ withoutLink = _ref.withoutLink,
109
+ withoutPrefix = _ref.withoutPrefix,
110
+ isSmall = _ref.isSmall,
111
+ linkUnderlineColor = _ref.linkUnderlineColor,
112
+ className = _ref.className,
113
+ backgroundClassName = _ref.backgroundClassName,
114
+ collaboratorClassName = _ref.collaboratorClassName,
115
+ shouldLoad = _ref.shouldLoad,
116
+ otherProps = _objectWithoutProperties__default["default"](_ref, _excluded);
123
117
  var intl = reactIntl.useIntl();
124
-
125
118
  var _ref2 = author || {},
126
- _ref2$name = _ref2.name,
127
- name = _ref2$name === void 0 ? null : _ref2$name,
128
- _ref2$image = _ref2.image,
129
- image = _ref2$image === void 0 ? null : _ref2$image,
130
- _ref2$url = _ref2.url,
131
- url = _ref2$url === void 0 ? null : _ref2$url,
132
- _ref2$collaborator = _ref2.collaborator,
133
- collaborator = _ref2$collaborator === void 0 ? null : _ref2$collaborator;
134
-
119
+ _ref2$name = _ref2.name,
120
+ name = _ref2$name === void 0 ? null : _ref2$name,
121
+ _ref2$image = _ref2.image,
122
+ image = _ref2$image === void 0 ? null : _ref2$image,
123
+ _ref2$url = _ref2.url,
124
+ url = _ref2$url === void 0 ? null : _ref2$url,
125
+ _ref2$collaborator = _ref2.collaborator,
126
+ collaborator = _ref2$collaborator === void 0 ? null : _ref2$collaborator;
135
127
  var withAvatar = withImage && image !== null;
136
128
  var prefix = intl.formatMessage({
137
129
  id: "jEK6B8",
@@ -170,7 +162,6 @@ var UrbaniaAuthor = function UrbaniaAuthor(_ref) {
170
162
  className: classNames__default["default"]([styles.collaborator, _defineProperty__default["default"]({}, collaboratorClassName, collaboratorClassName)])
171
163
  }, collaboratorText !== null ? collaboratorText : null) : null));
172
164
  };
173
-
174
165
  UrbaniaAuthor.propTypes = propTypes;
175
166
  UrbaniaAuthor.defaultProps = defaultProps;
176
167
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-urbania-author",
3
- "version": "0.3.310",
3
+ "version": "0.3.318",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,18 +49,18 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.3.307",
53
- "@micromag/element-button": "^0.3.310",
54
- "@micromag/element-link": "^0.3.307",
55
- "@micromag/element-text": "^0.3.307",
52
+ "@micromag/core": "^0.3.318",
53
+ "@micromag/element-button": "^0.3.318",
54
+ "@micromag/element-link": "^0.3.318",
55
+ "@micromag/element-text": "^0.3.318",
56
56
  "classnames": "^2.2.6",
57
57
  "lodash": "^4.17.21",
58
58
  "prop-types": "^15.7.2",
59
59
  "react-intl": "^5.12.1",
60
- "uuid": "^8.3.2"
60
+ "uuid": "^9.0.0"
61
61
  },
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "c2f4fbfcf0f643737a77f99dccf4d353f7856c2c"
65
+ "gitHead": "7d1a296e0c0d410e1225279e1f19e3a7715bfa96"
66
66
  }