@seafile/sdoc-editor 3.0.41 → 3.0.43
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/extension/plugins/ai/ai-module/index.js +6 -3
- package/dist/extension/plugins/ai/ai-module/style.css +11 -12
- package/dist/extension/plugins/callout/render-elem/callout-hover-menu/style.css +1 -1
- package/dist/extension/plugins/code-block/hover-menu/index.css +3 -3
- package/dist/extension/plugins/file-link/hover-menu/index.css +2 -2
- package/dist/extension/plugins/image/hover-menu/index.css +2 -2
- package/dist/extension/plugins/link/hover/index.css +2 -2
- package/dist/extension/plugins/sdoc-link/hover-menu/index.css +2 -2
- package/dist/extension/plugins/video/hover-menu/index.css +2 -2
- package/dist/extension/plugins/whiteboard/hover-menu/index.css +2 -2
- package/package.json +4 -4
|
@@ -264,6 +264,9 @@ function AIModule(_ref) {
|
|
|
264
264
|
var value = event.target.value;
|
|
265
265
|
if (value === searchValue) return;
|
|
266
266
|
setSearchValue(value);
|
|
267
|
+
var el = event.target;
|
|
268
|
+
el.style.height = 'auto';
|
|
269
|
+
el.style.height = el.scrollHeight + 'px';
|
|
267
270
|
}, [searchValue]);
|
|
268
271
|
var transferHtml = /*#__PURE__*/function () {
|
|
269
272
|
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/(0, _regenerator2["default"])().m(function _callee(mdString) {
|
|
@@ -555,14 +558,14 @@ function AIModule(_ref) {
|
|
|
555
558
|
className: "sdoc-ai-content"
|
|
556
559
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
557
560
|
className: "sdoc-ai-search"
|
|
558
|
-
}, /*#__PURE__*/_react["default"].createElement(_aiIcon["default"], null), /*#__PURE__*/_react["default"].createElement("
|
|
559
|
-
type: "text",
|
|
561
|
+
}, /*#__PURE__*/_react["default"].createElement(_aiIcon["default"], null), /*#__PURE__*/_react["default"].createElement("textarea", {
|
|
560
562
|
ref: inputRef,
|
|
561
563
|
autoFocus: true,
|
|
562
564
|
placeholder: t('Ask_AI_anything'),
|
|
563
565
|
value: inputValue,
|
|
564
566
|
onKeyDown: onKeyDown,
|
|
565
|
-
onChange: onSearchValueChanged
|
|
567
|
+
onChange: onSearchValueChanged,
|
|
568
|
+
rows: 1
|
|
566
569
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
567
570
|
className: "sdocfont sdoc-send-arrow ".concat(!searchValue ? 'disable' : ''),
|
|
568
571
|
onClick: onEnter
|
|
@@ -16,26 +16,25 @@
|
|
|
16
16
|
|
|
17
17
|
.sdoc-ai-content .sdoc-ai-search {
|
|
18
18
|
position: relative;
|
|
19
|
-
height:
|
|
19
|
+
height: fit-content;
|
|
20
20
|
line-height: 50px;
|
|
21
21
|
display: flex;
|
|
22
22
|
align-items: center;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.sdoc-ai-content .sdoc-ai-search
|
|
26
|
-
border: none;
|
|
27
|
-
padding: 0 44px;
|
|
28
|
-
border-radius: 10px;
|
|
29
|
-
width: 100%;
|
|
30
|
-
outline: none;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.sdoc-ai-content .sdoc-ai-search input {
|
|
25
|
+
.sdoc-ai-content .sdoc-ai-search textarea {
|
|
34
26
|
border: none;
|
|
35
|
-
padding:
|
|
36
|
-
border-radius: 10px;
|
|
27
|
+
padding: 10px 44px;
|
|
37
28
|
width: 100%;
|
|
38
29
|
pointer-events: all;
|
|
30
|
+
flex: 1;
|
|
31
|
+
outline: none;
|
|
32
|
+
resize: none;
|
|
33
|
+
background: transparent;
|
|
34
|
+
font: inherit;
|
|
35
|
+
line-height: 1.5;
|
|
36
|
+
white-space: pre-wrap;
|
|
37
|
+
word-break: break-word;
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
.sdoc-ai-content .sdoc-ai-search .sdoc-send-arrow {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.sdoc-code-block-hover-menu-container .hover-menu-container .active {
|
|
23
|
-
color: #
|
|
23
|
+
color: #444444;
|
|
24
24
|
text-decoration: none;
|
|
25
25
|
background: #f2f2f2;
|
|
26
26
|
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
height: 100%;
|
|
31
31
|
width: 100%;
|
|
32
32
|
font-size: 12px;
|
|
33
|
-
color: #
|
|
33
|
+
color: #444444;
|
|
34
34
|
border-radius: 2px;
|
|
35
35
|
text-align: center;
|
|
36
36
|
line-height: 20px;
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.sdoc-code-block-hover-menu-container .hover-menu-container .op-item:hover {
|
|
73
|
-
color: #
|
|
73
|
+
color: #444444;
|
|
74
74
|
text-decoration: none;
|
|
75
75
|
background: #f2f2f2;
|
|
76
76
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
.sdoc-file-link-hover-menu-container .hover-menu-container .op-item {
|
|
26
26
|
position: relative;
|
|
27
27
|
font-size: 12px;
|
|
28
|
-
color: #
|
|
28
|
+
color: #444444;
|
|
29
29
|
padding: 0 5px;
|
|
30
30
|
border-radius: 2px;
|
|
31
31
|
min-width: 24px;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.sdoc-file-link-hover-menu-container .hover-menu-container .op-item:hover {
|
|
39
|
-
color: #
|
|
39
|
+
color: #444444;
|
|
40
40
|
text-decoration: none;
|
|
41
41
|
background: #f1f1f1;
|
|
42
42
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
.sdoc-image-hover-menu-container .hover-menu-container .op-item {
|
|
29
29
|
position: relative;
|
|
30
30
|
font-size: 12px;
|
|
31
|
-
color: #
|
|
31
|
+
color: #444444;
|
|
32
32
|
padding: 0 5px;
|
|
33
33
|
border-radius: 2px;
|
|
34
34
|
min-width: 24px;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.sdoc-image-hover-menu-container .hover-menu-container .op-item:hover {
|
|
42
|
-
color: #
|
|
42
|
+
color: #444444;
|
|
43
43
|
text-decoration: none;
|
|
44
44
|
background: #f1f1f1;
|
|
45
45
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
.link-op-menu-link {
|
|
27
27
|
font-size: 12px;
|
|
28
|
-
color: #
|
|
28
|
+
color: #444444;
|
|
29
29
|
padding: 0 5px;
|
|
30
30
|
border-radius: 2px;
|
|
31
31
|
line-height: 20px;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.link-op-menu-link:hover {
|
|
36
|
-
color: #
|
|
36
|
+
color: #444444;
|
|
37
37
|
text-decoration: none;
|
|
38
38
|
background: #f1f1f1;
|
|
39
39
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
.sdoc-link-hover-menu-container .hover-menu-container .op-item {
|
|
26
26
|
position: relative;
|
|
27
27
|
font-size: 12px;
|
|
28
|
-
color: #
|
|
28
|
+
color: #444444;
|
|
29
29
|
padding: 0 5px;
|
|
30
30
|
border-radius: 2px;
|
|
31
31
|
min-width: 24px;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.sdoc-link-hover-menu-container .hover-menu-container .op-item:hover {
|
|
39
|
-
color: #
|
|
39
|
+
color: #444444;
|
|
40
40
|
text-decoration: none;
|
|
41
41
|
background: #f1f1f1;
|
|
42
42
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
.video-hover-menu-container .hover-menu-container .op-item {
|
|
26
26
|
position: relative;
|
|
27
27
|
font-size: 12px;
|
|
28
|
-
color: #
|
|
28
|
+
color: #444444;
|
|
29
29
|
padding: 0 5px;
|
|
30
30
|
border-radius: 2px;
|
|
31
31
|
min-width: 24px;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.video-hover-menu-container .hover-menu-container .op-item:hover {
|
|
39
|
-
color: #
|
|
39
|
+
color: #444444;
|
|
40
40
|
text-decoration: none;
|
|
41
41
|
background: #f1f1f1;
|
|
42
42
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
.sdoc-whiteboard-hover-menu-container .hover-menu-container .op-item {
|
|
29
29
|
position: relative;
|
|
30
30
|
font-size: 12px;
|
|
31
|
-
color: #
|
|
31
|
+
color: #444444;
|
|
32
32
|
padding: 0 5px;
|
|
33
33
|
border-radius: 2px;
|
|
34
34
|
min-width: 24px;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.sdoc-whiteboard-hover-menu-container .hover-menu-container .op-item:hover {
|
|
42
|
-
color: #
|
|
42
|
+
color: #444444;
|
|
43
43
|
text-decoration: none;
|
|
44
44
|
background: #f1f1f1;
|
|
45
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.43",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"description": "",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@seafile/comment-editor": "1.0.
|
|
20
|
+
"@seafile/comment-editor": "1.0.5",
|
|
21
21
|
"@seafile/print-js": "1.6.6",
|
|
22
22
|
"@seafile/react-image-lightbox": "^5.0.2",
|
|
23
|
-
"@seafile/seafile-database": "0.0.
|
|
23
|
+
"@seafile/seafile-database": "0.0.17",
|
|
24
24
|
"@seafile/slate": "0.91.8",
|
|
25
25
|
"@seafile/slate-history": "0.86.2",
|
|
26
26
|
"@seafile/slate-hyperscript": "0.81.7",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "6f763fc2312ff3e88bc9cb4a9ae64cc0118d93f6"
|
|
76
76
|
}
|