@seafile/sdoc-editor 3.0.122 → 3.0.123
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.
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
border-radius: 4px;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.sdoc-file-view-container .sdoc-file-view-content {
|
|
30
|
+
/* .sdoc-file-view-container .sdoc-file-view-content {
|
|
31
31
|
height: 400px;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.sdoc-file-view-container .sdoc-file-view-content .sea-metadata {
|
|
35
35
|
height: 396px;
|
|
36
|
-
}
|
|
36
|
+
} */
|
|
37
37
|
|
|
38
38
|
.sdoc-file-view-container .sdoc-file-view-content .sea-metadata .sea-metadata-table-main-container {
|
|
39
39
|
border: 1px solid #eee;
|
|
@@ -48,4 +48,5 @@
|
|
|
48
48
|
background-color: #007bff;
|
|
49
49
|
border: 1px solid #fff;
|
|
50
50
|
cursor: se-resize;
|
|
51
|
+
display: none;
|
|
51
52
|
}
|
|
@@ -49,13 +49,13 @@ var FileViewPlugin = function FileViewPlugin(_ref) {
|
|
|
49
49
|
var viewSettings = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, settings), {}, {
|
|
50
50
|
view_data: {
|
|
51
51
|
wiki_id: data.wiki_id,
|
|
52
|
-
file_view_id: data.file_view_id
|
|
53
|
-
height: data.height
|
|
52
|
+
file_view_id: data.file_view_id
|
|
53
|
+
// height: data.height,
|
|
54
54
|
// width: data.width,
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
return viewSettings;
|
|
58
|
-
}, [data.file_view_id, data.
|
|
58
|
+
}, [data.file_view_id, data.wiki_id]);
|
|
59
59
|
(0, _react.useEffect)(function () {
|
|
60
60
|
var copyContent = _localStorageUtils["default"].getItem(_constants.RECENT_COPY_CONTENT);
|
|
61
61
|
var wikiId = _context["default"].getSetting('wikiId');
|
|
@@ -144,16 +144,7 @@ var FileViewPlugin = function FileViewPlugin(_ref) {
|
|
|
144
144
|
'event': onResizeEnd
|
|
145
145
|
}]);
|
|
146
146
|
}, [onMouseMove, onResizeEnd, registerEvent]);
|
|
147
|
-
|
|
148
|
-
var height = data.height;
|
|
149
|
-
if (height) {
|
|
150
|
-
return {
|
|
151
|
-
// width,
|
|
152
|
-
height: height
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
return null;
|
|
156
|
-
}, [data]);
|
|
147
|
+
console.log(viewSettings);
|
|
157
148
|
return /*#__PURE__*/_react["default"].createElement("div", Object.assign({
|
|
158
149
|
"data-id": element.id
|
|
159
150
|
}, attributes, {
|
|
@@ -164,8 +155,7 @@ var FileViewPlugin = function FileViewPlugin(_ref) {
|
|
|
164
155
|
className: (0, _classnames["default"])('sdoc-file-view-content', {
|
|
165
156
|
'is-selected': isSelected
|
|
166
157
|
}),
|
|
167
|
-
ref: wrapperRef
|
|
168
|
-
style: style
|
|
158
|
+
ref: wrapperRef
|
|
169
159
|
}, /*#__PURE__*/_react["default"].createElement(_seafileDatabase.FileView, {
|
|
170
160
|
settings: viewSettings,
|
|
171
161
|
ref: databaseRef,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.123",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@seafile/comment-editor": "1.0.19",
|
|
21
21
|
"@seafile/print-js": "1.6.6",
|
|
22
22
|
"@seafile/react-image-lightbox": "5.0.4",
|
|
23
|
-
"@seafile/seafile-database": "0.0.
|
|
23
|
+
"@seafile/seafile-database": "0.0.43",
|
|
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": "a9e3b6f309ad176cd1ec83997229670e75af81fc"
|
|
76
76
|
}
|