@seafile/comment-editor 0.0.1-alpha.54 → 0.0.1-alpha.55

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.
@@ -221,6 +221,19 @@ const CommentEditor = _ref => {
221
221
  return /*#__PURE__*/_react.default.createElement("div", {
222
222
  className: (0, _classnames.default)('comment-editor-wrapper', className),
223
223
  ref: commentWrapperRef
224
- });
224
+ }, type === 'comment' && !hiddenUserInfo && /*#__PURE__*/_react.default.createElement("div", {
225
+ className: "comment-editor-user-info"
226
+ }, /*#__PURE__*/_react.default.createElement("div", {
227
+ className: "comment-editor-user-img"
228
+ }, /*#__PURE__*/_react.default.createElement("img", {
229
+ src: userInfo.avatar_url,
230
+ alt: "",
231
+ height: "100%",
232
+ width: "100%"
233
+ })), /*#__PURE__*/_react.default.createElement("div", {
234
+ className: "comment-editor-user-name"
235
+ }, userInfo.name)), toolMenus.includes(_constants2.IMAGE) && /*#__PURE__*/_react.default.createElement(_insertElementDialog.default, {
236
+ editor: editor
237
+ }));
225
238
  };
226
239
  var _default = exports.default = CommentEditor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.1-alpha.54",
3
+ "version": "0.0.1-alpha.55",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",