@seafile/comment-editor 0.0.1-alpha.66 → 0.0.1-alpha.68

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.
@@ -219,9 +219,51 @@ const CommentEditor = _ref => {
219
219
  eventProxy.onKeyDown(event);
220
220
  }, [eventProxy, editor]);
221
221
  console.log('toolMenus', toolMenus);
222
- return /*#__PURE__*/_react.default.createElement("div", {
223
- className: (0, _classnames.default)('comment-editor-wrapper', className),
224
- ref: commentWrapperRef
225
- });
222
+ return /*#__PURE__*/_react.default.createElement("div", null, "123")
223
+ // <div className={classNames('comment-editor-wrapper', className)} ref={commentWrapperRef}>
224
+ // {type === 'comment' && !hiddenUserInfo && (
225
+ // <div className="comment-editor-user-info">
226
+ // <div className="comment-editor-user-img">
227
+ // <img src={userInfo.avatar_url} alt="" height="100%" width="100%" />
228
+ // </div>
229
+ // <div className="comment-editor-user-name">{userInfo.name}</div>
230
+ // </div>
231
+ // )}
232
+ // <div className='comment-editor-container'>
233
+ // <div className="comment-editor-content">
234
+ // <div ref={commentEditorContainerRef} className='article comment-editor' onClick={handleFocusEditor} >
235
+ // <ScrollContext.Provider value={{ scrollRef: commentEditorContainerRef }}>
236
+ // <Slate editor={editor} value={slateValue} onChange={setSlateValue}>
237
+ // <Editable
238
+ // id='sdoc-editor'
239
+ // scrollSelectionIntoView={handleScrollIntoView}
240
+ // cursors={cursors}
241
+ // renderElement={(props) => RenderCommentEditorCustomRenderElement({ ...props, commentType: type })}
242
+ // renderLeaf={renderLeaf}
243
+ // onMouseDown={onMouseDown}
244
+ // decorate={decorate}
245
+ // onCut={eventProxy.onCut}
246
+ // onCopy={eventProxy.onCopy}
247
+ // onCompositionStart={eventProxy.onCompositionStart}
248
+ // onCompositionUpdate={eventProxy.onCompositionUpdate}
249
+ // onCompositionEnd={eventProxy.onCompositionEnd}
250
+ // onKeyDown={onKeyDown}
251
+ // onBeforeInput={eventProxy.onBeforeInput}
252
+ // />
253
+ // </Slate>
254
+ // </ScrollContext.Provider>
255
+ // </div>
256
+ // <CommentEditorToolbar
257
+ // editor={editor}
258
+ // toolMenus={toolMenus}
259
+ // onSubmit={onSubmit}
260
+ // submitBtnText={t(submitTip)}
261
+ // onCancel={onCancel}
262
+ // />
263
+ // </div>
264
+ // </div>
265
+ // {toolMenus.includes(IMAGE) && <InsertElementDialog editor={editor} />}
266
+ // </div>
267
+ ;
226
268
  };
227
269
  var _default = exports.default = CommentEditor;
@@ -30,6 +30,7 @@ const CommentProvider = _ref => {
30
30
  participants = [],
31
31
  addParticipants
32
32
  } = _ref;
33
+ console.log('children', children);
33
34
  const getCollaborators = (0, _react.useCallback)(() => {
34
35
  const newCollaborators = collaborators.map(user => new _model.User(user));
35
36
  return newCollaborators;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.1-alpha.66",
3
+ "version": "0.0.1-alpha.68",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",