@seafile/comment-editor 1.0.24 → 1.0.26
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/README.md +3 -3
- package/dist/basic-sdk/components/tooltip/index.css +13 -20
- package/dist/basic-sdk/components/tooltip/index.js +6 -4
- package/dist/basic-sdk/extension/render/render-comment-editor-element.js +2 -3
- package/package.json +2 -2
- package/public/locales/cs/comment-editor.json +1 -2
- package/public/locales/de/comment-editor.json +1 -2
- package/public/locales/en/comment-editor.json +1 -2
- package/public/locales/es/comment-editor.json +1 -2
- package/public/locales/es_AR/comment-editor.json +1 -2
- package/public/locales/es_MX/comment-editor.json +1 -2
- package/public/locales/fr/comment-editor.json +1 -2
- package/public/locales/it/comment-editor.json +1 -2
- package/public/locales/ru/comment-editor.json +1 -2
- package/public/locales/zh/comment-editor.json +1 -2
- package/public/locales/zh-CN/comment-editor.json +1 -2
- package/public/locales/zh_CN/comment-editor.json +1 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ comment-editor/
|
|
|
9
9
|
dist // 打包后的文件
|
|
10
10
|
node_modules/ // 依赖第三方组件库
|
|
11
11
|
public/ // 公共资源文件库
|
|
12
|
-
index.html
|
|
12
|
+
index.html
|
|
13
13
|
favicon.ico
|
|
14
14
|
site(demo 模块, 基于组件库创建的测试模块)
|
|
15
15
|
_i18n // 国际化模块
|
|
@@ -26,7 +26,7 @@ comment-editor/
|
|
|
26
26
|
pages // 封装的视图组件
|
|
27
27
|
index.js // 组件库导出内容入口文件
|
|
28
28
|
tests // 测试
|
|
29
|
-
webpack // site 打包文件
|
|
29
|
+
webpack // site 打包文件
|
|
30
30
|
config.js // site 打包配置文件
|
|
31
31
|
dev-server.js // site 后端服务器
|
|
32
32
|
package.json
|
|
@@ -40,4 +40,4 @@ comment-editor/
|
|
|
40
40
|
|
|
41
41
|
## 新版本发布
|
|
42
42
|
1. 更新 package.json 中的 version 属性
|
|
43
|
-
2. 执行 npm publish 完成新版本发布
|
|
43
|
+
2. 执行 npm publish 完成新版本发布
|
|
@@ -1,29 +1,22 @@
|
|
|
1
|
-
.
|
|
1
|
+
.comment-editor-tooltip {
|
|
2
2
|
pointer-events: none;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
background-color: #303133;
|
|
5
|
+
.comment-editor-tooltip .tooltip {
|
|
6
|
+
max-width: 242px;
|
|
7
|
+
opacity: 1;
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
.
|
|
12
|
-
|
|
10
|
+
.comment-editor-tooltip .tooltip-inner {
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
text-align: start;
|
|
13
|
+
background-color: #303133;
|
|
14
|
+
border-radius: 4px;
|
|
15
|
+
padding: 4px 8px;
|
|
16
|
+
line-height: 20px;
|
|
17
|
+
font-weight: normal;
|
|
13
18
|
}
|
|
14
19
|
|
|
15
|
-
.
|
|
20
|
+
.comment-editor-tooltip.bs-tooltip-auto[data-popper-placement^="top"] {
|
|
16
21
|
margin-bottom: -2px;
|
|
17
22
|
}
|
|
18
|
-
|
|
19
|
-
.sdoc-tooltip.bs-tooltip-auto[x-placement^="top"] .arrow::before {
|
|
20
|
-
border-top-color: #303133;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.sdoc-tooltip.bs-tooltip-auto[x-placement^="right"] .arrow::before {
|
|
24
|
-
border-right-color: #303133;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.sdoc-tooltip.bs-tooltip-auto[x-placement^="left"] .arrow::before {
|
|
28
|
-
border-left-color: #303133;
|
|
29
|
-
}
|
|
@@ -27,12 +27,14 @@ const Tooltip = _ref => {
|
|
|
27
27
|
}
|
|
28
28
|
}];
|
|
29
29
|
const props = {
|
|
30
|
-
popperClassName: (0, _classnames.default)('sdoc-tooltip', className),
|
|
31
|
-
modifiers: newModifiers,
|
|
32
|
-
placement,
|
|
33
30
|
target,
|
|
31
|
+
placement,
|
|
32
|
+
popperClassName: (0, _classnames.default)('comment-editor-tooltip', className),
|
|
33
|
+
delay,
|
|
34
|
+
hideArrow: true,
|
|
35
|
+
autoHide: false,
|
|
34
36
|
fade,
|
|
35
|
-
|
|
37
|
+
modifiers: newModifiers
|
|
36
38
|
};
|
|
37
39
|
return /*#__PURE__*/_react.default.createElement(_reactstrap.UncontrolledTooltip, props, children);
|
|
38
40
|
};
|
|
@@ -12,8 +12,7 @@ const RenderCommentEditorCustomRenderElement = props => {
|
|
|
12
12
|
const editor = (0, _slateReact.useSlateStatic)();
|
|
13
13
|
const readonly = (0, _slateReact.useReadOnly)();
|
|
14
14
|
const {
|
|
15
|
-
element
|
|
16
|
-
commentType
|
|
15
|
+
element
|
|
17
16
|
} = props;
|
|
18
17
|
switch (element.type) {
|
|
19
18
|
case _constants.PARAGRAPH:
|
|
@@ -27,7 +26,7 @@ const RenderCommentEditorCustomRenderElement = props => {
|
|
|
27
26
|
const [renderParagraph] = _plugins.ParagraphPlugin.renderElements;
|
|
28
27
|
return renderParagraph(_props);
|
|
29
28
|
}
|
|
30
|
-
const placeholder =
|
|
29
|
+
const placeholder = 'shift_enter_for_new_line_Enter_to_send';
|
|
31
30
|
const [renderParagraph] = _plugins.ParagraphPlugin.renderElements;
|
|
32
31
|
return renderParagraph({
|
|
33
32
|
..._props,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/comment-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "This is a comment editor",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"url-loader": "^4.1.1",
|
|
140
140
|
"web-vitals": "2.1.4",
|
|
141
141
|
"webpack": "5.105.4",
|
|
142
|
-
"webpack-dev-server": "5.2.
|
|
142
|
+
"webpack-dev-server": "5.2.4",
|
|
143
143
|
"webpack-manifest-plugin": "5.0.0",
|
|
144
144
|
"webpack-merge": "5.8.0"
|
|
145
145
|
},
|
|
@@ -273,8 +273,7 @@
|
|
|
273
273
|
"Delete_reply": "Delete reply",
|
|
274
274
|
"Are_you_sure_to_delete_this_comment": "Are you sure to delete this comment?",
|
|
275
275
|
"Are_you_sure_to_delete_this_reply": "Are you sure to delete this reply?",
|
|
276
|
-
"
|
|
277
|
-
"Enter_reply_shift_Enter_for_new_line_Enter_to_send": "Enter reply, Shift + Enter for new line, Enter to send",
|
|
276
|
+
"shift_enter_for_new_line_Enter_to_send": "Shift + Enter for new line, Enter to send",
|
|
278
277
|
"Reopen_discussion": "Adding a reply will reopen this discussion",
|
|
279
278
|
"Confirm": "Potvrdit",
|
|
280
279
|
"View_changes": "View changes",
|
|
@@ -273,8 +273,7 @@
|
|
|
273
273
|
"Delete_reply": "Antwort löschen",
|
|
274
274
|
"Are_you_sure_to_delete_this_comment": "Möchten Sie das Kommentar wirklich löschen?",
|
|
275
275
|
"Are_you_sure_to_delete_this_reply": "Möchten Sie die Antwort wirklich löschen?",
|
|
276
|
-
"
|
|
277
|
-
"Enter_reply_shift_Enter_for_new_line_Enter_to_send": "Geben Sie eine Antwort ein (Zeilenumbruch mit SHIFT + ENTER, Kommentar absenden mit ENTER)",
|
|
276
|
+
"shift_enter_for_new_line_Enter_to_send": "Zeilenumbruch mit SHIFT + ENTER, Absenden mit ENTER",
|
|
278
277
|
"Reopen_discussion": "Das Hinzufügen einer Antwort wird die Diskussion wieder öffnen.",
|
|
279
278
|
"Confirm": "Bestätigen",
|
|
280
279
|
"View_changes": "Änderungen ansehen",
|
|
@@ -273,8 +273,7 @@
|
|
|
273
273
|
"Delete_reply": "Delete reply",
|
|
274
274
|
"Are_you_sure_to_delete_this_comment": "Are you sure to delete this comment?",
|
|
275
275
|
"Are_you_sure_to_delete_this_reply": "Are you sure to delete this reply?",
|
|
276
|
-
"
|
|
277
|
-
"Enter_reply_shift_Enter_for_new_line_Enter_to_send": "Enter reply, Shift + Enter for new line, Enter to send",
|
|
276
|
+
"shift_enter_for_new_line_Enter_to_send": "Shift + Enter for new line, Enter to send",
|
|
278
277
|
"Reopen_discussion": "Adding a reply will reopen this discussion",
|
|
279
278
|
"Confirm": "Confirm",
|
|
280
279
|
"View_changes": "View changes",
|
|
@@ -273,8 +273,7 @@
|
|
|
273
273
|
"Delete_reply": "Delete reply",
|
|
274
274
|
"Are_you_sure_to_delete_this_comment": "Are you sure to delete this comment?",
|
|
275
275
|
"Are_you_sure_to_delete_this_reply": "Are you sure to delete this reply?",
|
|
276
|
-
"
|
|
277
|
-
"Enter_reply_shift_Enter_for_new_line_Enter_to_send": "Enter reply, Shift + Enter for new line, Enter to send",
|
|
276
|
+
"shift_enter_for_new_line_Enter_to_send": "Shift + Enter for new line, Enter to send",
|
|
278
277
|
"Reopen_discussion": "Adding a reply will reopen this discussion",
|
|
279
278
|
"Confirm": "Confirmar",
|
|
280
279
|
"View_changes": "View changes",
|
|
@@ -273,8 +273,7 @@
|
|
|
273
273
|
"Delete_reply": "Delete reply",
|
|
274
274
|
"Are_you_sure_to_delete_this_comment": "Are you sure to delete this comment?",
|
|
275
275
|
"Are_you_sure_to_delete_this_reply": "Are you sure to delete this reply?",
|
|
276
|
-
"
|
|
277
|
-
"Enter_reply_shift_Enter_for_new_line_Enter_to_send": "Enter reply, Shift + Enter for new line, Enter to send",
|
|
276
|
+
"shift_enter_for_new_line_Enter_to_send": "Shift + Enter for new line, Enter to send",
|
|
278
277
|
"Reopen_discussion": "Adding a reply will reopen this discussion",
|
|
279
278
|
"Confirm": "Confirmar",
|
|
280
279
|
"View_changes": "View changes",
|
|
@@ -273,8 +273,7 @@
|
|
|
273
273
|
"Delete_reply": "Delete reply",
|
|
274
274
|
"Are_you_sure_to_delete_this_comment": "Are you sure to delete this comment?",
|
|
275
275
|
"Are_you_sure_to_delete_this_reply": "Are you sure to delete this reply?",
|
|
276
|
-
"
|
|
277
|
-
"Enter_reply_shift_Enter_for_new_line_Enter_to_send": "Enter reply, Shift + Enter for new line, Enter to send",
|
|
276
|
+
"shift_enter_for_new_line_Enter_to_send": "Shift + Enter for new line, Enter to send",
|
|
278
277
|
"Reopen_discussion": "Adding a reply will reopen this discussion",
|
|
279
278
|
"Confirm": "Confirmar",
|
|
280
279
|
"View_changes": "View changes",
|
|
@@ -273,8 +273,7 @@
|
|
|
273
273
|
"Delete_reply": "Supprimer la réponse",
|
|
274
274
|
"Are_you_sure_to_delete_this_comment": "Êtes-vous sûr de vouloir supprimer ce commentaire ?",
|
|
275
275
|
"Are_you_sure_to_delete_this_reply": "Êtes-vous sûr de vouloir supprimer cette réponse ?",
|
|
276
|
-
"
|
|
277
|
-
"Enter_reply_shift_Enter_for_new_line_Enter_to_send": "Entrez une réponse (insérez un retour à la ligne avec MAJ + ENTREE ; envoyez le commentaire avec ENTREE)",
|
|
276
|
+
"shift_enter_for_new_line_Enter_to_send": "MAJ + ENTRÉE pour un retour à la ligne, ENTRÉE pour envoyer",
|
|
278
277
|
"Reopen_discussion": "L'ajout d'une réponse rouvrira la discussion.",
|
|
279
278
|
"Confirm": "Confirmer",
|
|
280
279
|
"View_changes": "Afficher les modifications",
|
|
@@ -273,8 +273,7 @@
|
|
|
273
273
|
"Delete_reply": "Delete reply",
|
|
274
274
|
"Are_you_sure_to_delete_this_comment": "Are you sure to delete this comment?",
|
|
275
275
|
"Are_you_sure_to_delete_this_reply": "Are you sure to delete this reply?",
|
|
276
|
-
"
|
|
277
|
-
"Enter_reply_shift_Enter_for_new_line_Enter_to_send": "Enter reply, Shift + Enter for new line, Enter to send",
|
|
276
|
+
"shift_enter_for_new_line_Enter_to_send": "Shift + Enter for new line, Enter to send",
|
|
278
277
|
"Reopen_discussion": "Adding a reply will reopen this discussion",
|
|
279
278
|
"Confirm": "Conferma",
|
|
280
279
|
"View_changes": "View changes",
|
|
@@ -273,8 +273,7 @@
|
|
|
273
273
|
"Delete_reply": "Удалить ответ",
|
|
274
274
|
"Are_you_sure_to_delete_this_comment": "Вы уверены, что удалите этот комментарий?",
|
|
275
275
|
"Are_you_sure_to_delete_this_reply": "Вы уверены, что удалите этот ответ?",
|
|
276
|
-
"
|
|
277
|
-
"Enter_reply_shift_Enter_for_new_line_Enter_to_send": "Введите ответ, Shift + Enter для новой строки, Enter для отправки",
|
|
276
|
+
"shift_enter_for_new_line_Enter_to_send": "Shift + Enter для новой строки, Enter для отправки",
|
|
278
277
|
"Reopen_discussion": "Добавление ответа приведёт к возобновлению обсуждения.",
|
|
279
278
|
"Confirm": "Подтвердить",
|
|
280
279
|
"View_changes": "Просмотр изменений",
|
|
@@ -273,8 +273,7 @@
|
|
|
273
273
|
"Delete_reply": "删除回复",
|
|
274
274
|
"Are_you_sure_to_delete_this_comment": "你确定要删除这个评论吗?",
|
|
275
275
|
"Are_you_sure_to_delete_this_reply": "你确定要删除这个回复吗?",
|
|
276
|
-
"
|
|
277
|
-
"Enter_reply_shift_Enter_for_new_line_Enter_to_send": "输入回复,Shift + Enter 换行,Enter 发送",
|
|
276
|
+
"shift_enter_for_new_line_Enter_to_send": "Shift + Enter 换行,Enter 发送",
|
|
278
277
|
"Reopen_discussion": "添加回复会重新提出该讨论",
|
|
279
278
|
"Confirm": "确认",
|
|
280
279
|
"View_changes": "查看改动",
|
|
@@ -273,8 +273,7 @@
|
|
|
273
273
|
"Delete_reply": "删除回复",
|
|
274
274
|
"Are_you_sure_to_delete_this_comment": "你确定要删除这个评论吗?",
|
|
275
275
|
"Are_you_sure_to_delete_this_reply": "你确定要删除这个回复吗?",
|
|
276
|
-
"
|
|
277
|
-
"Enter_reply_shift_Enter_for_new_line_Enter_to_send": "输入回复,Shift + Enter 换行,Enter 发送",
|
|
276
|
+
"shift_enter_for_new_line_Enter_to_send": "Shift + Enter 换行,Enter 发送",
|
|
278
277
|
"Reopen_discussion": "添加回复会重新提出该讨论",
|
|
279
278
|
"Confirm": "确认",
|
|
280
279
|
"View_changes": "查看改动",
|
|
@@ -273,8 +273,7 @@
|
|
|
273
273
|
"Delete_reply": "删除回复",
|
|
274
274
|
"Are_you_sure_to_delete_this_comment": "你确定要删除这个评论吗?",
|
|
275
275
|
"Are_you_sure_to_delete_this_reply": "你确定要删除这个回复吗?",
|
|
276
|
-
"
|
|
277
|
-
"Enter_reply_shift_Enter_for_new_line_Enter_to_send": "输入回复,Shift + Enter 换行,Enter 发送",
|
|
276
|
+
"shift_enter_for_new_line_Enter_to_send": "Shift + Enter 换行,Enter 发送",
|
|
278
277
|
"Reopen_discussion": "添加回复会重新提出该讨论",
|
|
279
278
|
"Confirm": "确认",
|
|
280
279
|
"View_changes": "查看改动",
|