@seafile/seafile-sdoc-editor 3.0.222 → 3.0.223
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.
|
@@ -109,14 +109,14 @@ var MoreOperations = function MoreOperations(_ref) {
|
|
|
109
109
|
var serviceUrl = _sdocEditor.context.getSetting('serviceUrl');
|
|
110
110
|
var repoID = _sdocEditor.context.getSetting('repoID');
|
|
111
111
|
var selectedFilePath = _sdocEditor.context.getSetting('docPath');
|
|
112
|
-
var exportUrl = "".concat(serviceUrl, "/repo/sdoc_export_to_markdown/").concat(repoID, "/?file_path=").concat(selectedFilePath);
|
|
112
|
+
var exportUrl = "".concat(serviceUrl, "/repo/sdoc_export_to_markdown/").concat(repoID, "/?file_path=").concat(encodeURIComponent(selectedFilePath));
|
|
113
113
|
window.location.href = exportUrl;
|
|
114
114
|
}, []);
|
|
115
115
|
var handleExportDocx = (0, _react.useCallback)(function () {
|
|
116
116
|
var serviceUrl = _sdocEditor.context.getSetting('serviceUrl');
|
|
117
117
|
var repoID = _sdocEditor.context.getSetting('repoID');
|
|
118
118
|
var selectedFilePath = _sdocEditor.context.getSetting('docPath');
|
|
119
|
-
var exportToDocxUrl = serviceUrl
|
|
119
|
+
var exportToDocxUrl = "".concat(serviceUrl, "/repo/sdoc_export_to_docx/").concat(repoID, "/?file_path=").concat(encodeURIComponent(selectedFilePath));
|
|
120
120
|
window.location.href = exportToDocxUrl;
|
|
121
121
|
}, []);
|
|
122
122
|
return /*#__PURE__*/_react["default"].createElement(_reactstrap.Dropdown, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/seafile-sdoc-editor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.223",
|
|
4
4
|
"author": "shuntian <978987373@qq.com>",
|
|
5
5
|
"homepage": "https://github.com/seafileltd/sea-sdoc-editor#readme",
|
|
6
6
|
"license": "ISC",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"description": "",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@seafile/print-js": "1.6.6",
|
|
32
|
-
"@seafile/sdoc-editor": "^3.0.
|
|
32
|
+
"@seafile/sdoc-editor": "^3.0.223",
|
|
33
33
|
"classnames": "2.3.2",
|
|
34
34
|
"dayjs": "1.10.7"
|
|
35
35
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "b9cb456e0cd947089e7c2d8e1519eb370438c5a0"
|
|
49
49
|
}
|