@seafile/comment-editor 0.0.6 → 0.0.7-alpha.0
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/dist/basic-sdk/editor/comment-editor.css +5 -11
- package/dist/basic-sdk/extension/commons/menu/index.js +1 -2
- package/dist/basic-sdk/extension/commons/menu/menu-group.js +1 -1
- package/dist/basic-sdk/extension/commons/menu/menu-item.js +1 -1
- package/dist/basic-sdk/extension/toolbar/comment-editor-toolbar/index.js +1 -1
- package/dist/pages/seafile-comment-editor.js +1 -21
- package/package.json +1 -1
- package/dist/basic-sdk/extension/commons/menu/menu.css +0 -82
|
@@ -95,13 +95,8 @@
|
|
|
95
95
|
.comment-editor-wrapper .comment-editor-toolbar .comment-editor-menu-group {
|
|
96
96
|
border-right: none !important;
|
|
97
97
|
padding-left: 0 !important;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.comment-editor-wrapper .comment-editor-toolbar .menu-group {
|
|
101
98
|
height: 100%;
|
|
102
|
-
padding: 6px 0 6px 8px;
|
|
103
99
|
font-size: 0.75rem;
|
|
104
|
-
border-right: 1px solid #e5e6e8;
|
|
105
100
|
border-radius: 0 !important;
|
|
106
101
|
color: #444;
|
|
107
102
|
display: flex;
|
|
@@ -109,7 +104,7 @@
|
|
|
109
104
|
justify-content: center;
|
|
110
105
|
}
|
|
111
106
|
|
|
112
|
-
.comment-editor-wrapper .comment-editor-toolbar .menu-group .menu-group-item {
|
|
107
|
+
.comment-editor-wrapper .comment-editor-toolbar .comment-editor-menu-group .comment-editor-menu-group-item {
|
|
113
108
|
width: 24px;
|
|
114
109
|
height: 24px;
|
|
115
110
|
line-height: 24px;
|
|
@@ -119,20 +114,19 @@
|
|
|
119
114
|
background-color: transparent;
|
|
120
115
|
}
|
|
121
116
|
|
|
122
|
-
.comment-editor-wrapper .comment-editor-toolbar .menu-group .menu-group-item:disabled {
|
|
117
|
+
.comment-editor-wrapper .comment-editor-toolbar .comment-editor-menu-group .comment-editor-menu-group-item:disabled {
|
|
123
118
|
color: #BDBDBD;
|
|
124
119
|
}
|
|
125
120
|
|
|
126
|
-
.comment-editor-wrapper .comment-editor-toolbar .menu-group .menu-group-item:hover {
|
|
121
|
+
.comment-editor-wrapper .comment-editor-toolbar .comment-editor-menu-group .comment-editor-menu-group-item:hover {
|
|
127
122
|
background-color: #F2F2F2;
|
|
128
123
|
border-radius: 2px;
|
|
129
124
|
}
|
|
130
125
|
|
|
131
|
-
.comment-editor-wrapper .comment-editor-toolbar .menu-group .menu-group-item[data-active='true'] {
|
|
126
|
+
.comment-editor-wrapper .comment-editor-toolbar .comment-editor-menu-group .comment-editor-menu-group-item[data-active='true'] {
|
|
132
127
|
color: #eb8205;
|
|
133
128
|
}
|
|
134
129
|
|
|
135
|
-
.comment-editor-wrapper .comment-editor-toolbar .menu-group .menu-group-item .sdocfont
|
|
136
|
-
.sdoc-menu-with-dropdown .sdoc-menu-with-dropdown-icon .sdocfont {
|
|
130
|
+
.comment-editor-wrapper .comment-editor-toolbar .comment-editor-menu-group .comment-editor-menu-group-item .sdocfont {
|
|
137
131
|
font-size: 12px;
|
|
138
132
|
}
|
|
@@ -17,5 +17,4 @@ Object.defineProperty(exports, "MenuItem", {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
var _menuGroup = _interopRequireDefault(require("./menu-group"));
|
|
20
|
-
var _menuItem = _interopRequireDefault(require("./menu-item"));
|
|
21
|
-
require("./menu.css");
|
|
20
|
+
var _menuItem = _interopRequireDefault(require("./menu-item"));
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
class MenuGroup extends _react.default.PureComponent {
|
|
10
10
|
render() {
|
|
11
11
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
12
|
-
className: 'btn-group ' +
|
|
12
|
+
className: 'btn-group ' + this.props.className,
|
|
13
13
|
role: 'group'
|
|
14
14
|
}, this.props.children);
|
|
15
15
|
}
|
|
@@ -33,7 +33,7 @@ const CommentEditorToolbar = _ref => {
|
|
|
33
33
|
justifyContent: toolMenus.length === 0 ? 'end' : ''
|
|
34
34
|
}
|
|
35
35
|
}, toolMenus.length !== 0 && /*#__PURE__*/_react.default.createElement(_commons.MenuGroup, {
|
|
36
|
-
className: "
|
|
36
|
+
className: "comment-editor-menu-group"
|
|
37
37
|
}, toolMenus.includes('text_style') && /*#__PURE__*/_react.default.createElement(_comemntEditorMenu.default, {
|
|
38
38
|
editor: editor,
|
|
39
39
|
readonly: readonly
|
|
@@ -41,26 +41,6 @@ const SeafileCommentEditor = _ref => {
|
|
|
41
41
|
_basicSdk.context.init(settings, api);
|
|
42
42
|
setI18n((0, _i18n.default)(settings));
|
|
43
43
|
}, [api, settings]);
|
|
44
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null,
|
|
45
|
-
i18n: i18n
|
|
46
|
-
}, /*#__PURE__*/_react.default.createElement(_react.Suspense, null, /*#__PURE__*/_react.default.createElement(_basicSdk.CommentProvider, {
|
|
47
|
-
type: type,
|
|
48
|
-
className: className,
|
|
49
|
-
pluginName: pluginName,
|
|
50
|
-
pluginEventBus: pluginEventBus,
|
|
51
|
-
pluginEvent: pluginEvent,
|
|
52
|
-
collaborators: collaborators,
|
|
53
|
-
participants: participants,
|
|
54
|
-
addParticipants: addParticipants
|
|
55
|
-
}, /*#__PURE__*/_react.default.createElement(_basicSdk.CommentEditor, {
|
|
56
|
-
content: content,
|
|
57
|
-
placeholder: placeholder,
|
|
58
|
-
toolMenus: toolMenus,
|
|
59
|
-
insertContent: insertContent,
|
|
60
|
-
onContentChange: onContentChange,
|
|
61
|
-
hiddenComment: hiddenComment,
|
|
62
|
-
hiddenUserInfo: hiddenUserInfo,
|
|
63
|
-
closePanel: closePanel
|
|
64
|
-
})))));
|
|
44
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, "123"));
|
|
65
45
|
};
|
|
66
46
|
var _default = exports.default = SeafileCommentEditor;
|
package/package.json
CHANGED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
.menu-group {
|
|
2
|
-
height: 100%;
|
|
3
|
-
padding: 6px 0 6px 8px;
|
|
4
|
-
font-size: 0.75rem;
|
|
5
|
-
border-right: 1px solid #e5e6e8;
|
|
6
|
-
border-radius: 0 !important;
|
|
7
|
-
color: #444;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.menu-group .menu-group-item {
|
|
14
|
-
width: 24px;
|
|
15
|
-
height: 24px;
|
|
16
|
-
line-height: 24px;
|
|
17
|
-
margin-right: 8px;
|
|
18
|
-
border: none !important;
|
|
19
|
-
color: #444;
|
|
20
|
-
background-color: transparent;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.menu-group .menu-group-item:disabled {
|
|
24
|
-
color: #BDBDBD;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.menu-group .menu-group-item:hover {
|
|
28
|
-
background-color: #F2F2F2;
|
|
29
|
-
border-radius: 2px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.menu-group .menu-group-item[data-active='true'] {
|
|
33
|
-
color: #eb8205;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.menu-group .menu-group-item .sdocfont,
|
|
37
|
-
.sdoc-menu-with-dropdown .sdoc-menu-with-dropdown-icon .sdocfont {
|
|
38
|
-
font-size: 12px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* sdoc-menu-with-dropdown */
|
|
42
|
-
.menu-group .menu-group-item.sdoc-menu-with-dropdown {
|
|
43
|
-
width: 36px;
|
|
44
|
-
height: 24px;
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
border: 0 !important;
|
|
49
|
-
padding: 0 !important;
|
|
50
|
-
margin-right: 10px;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.menu-group .menu-group-item.sdoc-menu-with-dropdown.disabled {
|
|
55
|
-
color: #999;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.sdoc-menu-with-dropdown:not(.disabled):hover {
|
|
59
|
-
background: #F2F2F2;
|
|
60
|
-
border-radius: 2px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.sdoc-menu-with-dropdown .sdoc-menu-with-dropdown-icon {
|
|
64
|
-
width: 24px;
|
|
65
|
-
height: 24px;
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
justify-content: center;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.sdoc-menu-with-dropdown .sdoc-menu-with-dropdown-triangle {
|
|
72
|
-
width: 12px;
|
|
73
|
-
height: 24px;
|
|
74
|
-
display: flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
justify-content: center;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.sdoc-menu-with-dropdown .sdoc-menu-with-dropdown-triangle .sdoc-menu-with-dropdown-triangle-icon {
|
|
80
|
-
font-size: 12px;
|
|
81
|
-
color: #999;
|
|
82
|
-
}
|