@seafile/sdoc-editor 3.0.82 → 3.0.83
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.
|
@@ -43,7 +43,7 @@ var withLink = function withLink(editor) {
|
|
|
43
43
|
};
|
|
44
44
|
newEditor.insertData = /*#__PURE__*/function () {
|
|
45
45
|
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/(0, _regenerator2["default"])().m(function _callee(data) {
|
|
46
|
-
var text, res, fileName, fileUuid, _fileName, fileParentPath, filePath, _fileName2, _fileUuid, url, pathname, _context$getSetting, parts, wikiPageId, title, wikiPageList, page, linkedNodeId, _title, params, link, _link, _link2, _Editor$next, _Editor$next2, focusPath, focusPoint, _t;
|
|
46
|
+
var text, res, fileName, fileUuid, _fileName, fileParentPath, filePath, repoId, _fileName2, _fileUuid, url, pathname, _context$getSetting, parts, wikiPageId, title, wikiPageList, page, linkedNodeId, _title, params, link, _link, _link2, _Editor$next, _Editor$next2, focusPath, focusPoint, _t;
|
|
47
47
|
return (0, _regenerator2["default"])().w(function (_context) {
|
|
48
48
|
while (1) switch (_context.p = _context.n) {
|
|
49
49
|
case 0:
|
|
@@ -79,7 +79,8 @@ var withLink = function withLink(editor) {
|
|
|
79
79
|
_fileName = res.data.files_info[text].name;
|
|
80
80
|
fileParentPath = res.data.files_info[text].parent_path;
|
|
81
81
|
filePath = fileParentPath + '/' + _fileName;
|
|
82
|
-
|
|
82
|
+
repoId = res.data.files_info[text].repo_id;
|
|
83
|
+
(0, _helper.insertWhiteboard)(editor, _fileName, filePath, repoId);
|
|
83
84
|
_context.n = 9;
|
|
84
85
|
break;
|
|
85
86
|
case 4:
|
|
@@ -66,7 +66,7 @@ var generateWhiteboardNode = exports.generateWhiteboardNode = function generateW
|
|
|
66
66
|
return whiteboardNode;
|
|
67
67
|
};
|
|
68
68
|
var insertWhiteboard = exports.insertWhiteboard = /*#__PURE__*/function () {
|
|
69
|
-
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/(0, _regenerator2["default"])().m(function _callee(editor, filename, filePath) {
|
|
69
|
+
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/(0, _regenerator2["default"])().m(function _callee(editor, filename, filePath, repoId) {
|
|
70
70
|
var _editor$selection;
|
|
71
71
|
var repoID, eventBus, exdrawReadOnlyLink, whiteboardNode, path, position, nextPath, endOfFirstNode, range;
|
|
72
72
|
return (0, _regenerator2["default"])().w(function (_context) {
|
|
@@ -84,7 +84,10 @@ var insertWhiteboard = exports.insertWhiteboard = /*#__PURE__*/function () {
|
|
|
84
84
|
}
|
|
85
85
|
return _context.a(2);
|
|
86
86
|
case 2:
|
|
87
|
-
repoID =
|
|
87
|
+
repoID = repoId;
|
|
88
|
+
if (!repoId) {
|
|
89
|
+
repoID = _context2["default"].getSetting('repoID');
|
|
90
|
+
}
|
|
88
91
|
eventBus = _eventBus["default"].getInstance();
|
|
89
92
|
_context.n = 3;
|
|
90
93
|
return new Promise(function (resolve) {
|
|
@@ -126,7 +129,7 @@ var insertWhiteboard = exports.insertWhiteboard = /*#__PURE__*/function () {
|
|
|
126
129
|
}
|
|
127
130
|
}, _callee);
|
|
128
131
|
}));
|
|
129
|
-
return function insertWhiteboard(_x, _x2, _x3) {
|
|
132
|
+
return function insertWhiteboard(_x, _x2, _x3, _x4) {
|
|
130
133
|
return _ref.apply(this, arguments);
|
|
131
134
|
};
|
|
132
135
|
}();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.83",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "b46d847b2723878e37bf05209d47a2059a49d098"
|
|
76
76
|
}
|