@seafile/sdoc-editor 1.0.182 → 1.0.183
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.
|
@@ -348,7 +348,8 @@ function AIModule(_ref) {
|
|
|
348
348
|
const discardCurrentContent = (0, _react.useCallback)(() => {
|
|
349
349
|
onCloseClick();
|
|
350
350
|
setIsShowTipDialog(false);
|
|
351
|
-
|
|
351
|
+
(0, _core.focusEditor)(editor);
|
|
352
|
+
}, [editor, onCloseClick]);
|
|
352
353
|
return /*#__PURE__*/_react.default.createElement(_commons.ElementPopover, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
353
354
|
className: "sdoc-ai-module-container",
|
|
354
355
|
ref: aiRef
|
|
@@ -421,7 +422,7 @@ function AIModule(_ref) {
|
|
|
421
422
|
onKeyDown: onKeyDown,
|
|
422
423
|
onChange: onSearchValueChanged
|
|
423
424
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
424
|
-
className:
|
|
425
|
+
className: `sdocfont sdoc-send-arrow ${!searchValue ? 'disable' : ''}`,
|
|
425
426
|
onClick: onEnter
|
|
426
427
|
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
427
428
|
className: "sdoc-ai-operations sdoc-dropdown-menu"
|
|
@@ -83,6 +83,10 @@
|
|
|
83
83
|
align-items: center;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
.sdoc-ai-module-container .sdoc-ai-result .sdoc-ai-result-header span {
|
|
87
|
+
color: #666;
|
|
88
|
+
}
|
|
89
|
+
|
|
86
90
|
.sdoc-ai-module-container .sdoc-ai-result .sdoc-ai-result-header .sdocfont {
|
|
87
91
|
font-size: 14px;
|
|
88
92
|
}
|
|
@@ -102,3 +106,16 @@
|
|
|
102
106
|
.sdoc-ai-module-container .sdoc-ai-result .sdoc-ai-result-content {
|
|
103
107
|
padding: 16px 0;
|
|
104
108
|
}
|
|
109
|
+
|
|
110
|
+
.sdoc-ai-module-container .sdoc-ai-result .sdoc-ai-statistic {
|
|
111
|
+
color: #666;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.ai-lang-sub-menu .popover,
|
|
115
|
+
.ai-adjust-sub-menu .popover {
|
|
116
|
+
padding: 8px 0;
|
|
117
|
+
border: 1px solid #eee;
|
|
118
|
+
border-radius: 10px;
|
|
119
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
120
|
+
background-color: #fff;
|
|
121
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.183",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "This is a sdoc editor",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@seafile/print-js": "1.6.6",
|
|
9
|
-
"@seafile/react-image-lightbox": "
|
|
9
|
+
"@seafile/react-image-lightbox": "2.0.5",
|
|
10
10
|
"@seafile/slate": "0.91.8",
|
|
11
11
|
"@seafile/slate-history": "0.86.2",
|
|
12
12
|
"@seafile/slate-hyperscript": "0.81.7",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"copy-to-clipboard": "^3.3.3",
|
|
17
17
|
"dayjs": "1.10.7",
|
|
18
18
|
"deep-copy": "1.4.2",
|
|
19
|
-
"dtable-ui-component": "^5.
|
|
19
|
+
"dtable-ui-component": "^5.1.9",
|
|
20
20
|
"is-hotkey": "0.2.0",
|
|
21
21
|
"is-url": "^1.2.4",
|
|
22
22
|
"lodash.isequal": "4.5.0",
|