@seafile/sdoc-editor 2.0.122 → 2.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.
|
@@ -209,7 +209,7 @@ var queryCopyMoveProgressView = exports.queryCopyMoveProgressView = function que
|
|
|
209
209
|
};
|
|
210
210
|
var _start = /*#__PURE__*/function () {
|
|
211
211
|
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function _callee() {
|
|
212
|
-
var res,
|
|
212
|
+
var res, successful, eventBus;
|
|
213
213
|
return (0, _regeneratorRuntime2["default"])().wrap(function _callee$(_context) {
|
|
214
214
|
while (1) switch (_context.prev = _context.next) {
|
|
215
215
|
case 0:
|
|
@@ -217,8 +217,8 @@ var queryCopyMoveProgressView = exports.queryCopyMoveProgressView = function que
|
|
|
217
217
|
return _context2["default"].getCopyMoveProgressView(taskId);
|
|
218
218
|
case 2:
|
|
219
219
|
res = _context.sent;
|
|
220
|
-
|
|
221
|
-
if (
|
|
220
|
+
successful = res.data.successful;
|
|
221
|
+
if (successful) {
|
|
222
222
|
stop();
|
|
223
223
|
// Reload image
|
|
224
224
|
eventBus = _eventBus["default"].getInstance();
|
|
@@ -238,7 +238,6 @@ var Image = function Image(_ref) {
|
|
|
238
238
|
return (0, _helpers.handleBase64Image)(editor, path, data);
|
|
239
239
|
}
|
|
240
240
|
setIsShowImagePlaceholder(true);
|
|
241
|
-
console.log(data.src);
|
|
242
241
|
// External network images do not reload after failure to load
|
|
243
242
|
if (!data.src.startsWith('http')) {
|
|
244
243
|
var eventBus = _eventBus["default"].getInstance();
|
|
@@ -363,15 +363,18 @@ var QuickInsertBlockMenu = function QuickInsertBlockMenu(_ref) {
|
|
|
363
363
|
}
|
|
364
364
|
if (keyCode === Enter) {
|
|
365
365
|
e.preventDefault();
|
|
366
|
+
if (currentSelectIndex === -1) return;
|
|
366
367
|
var item = renderItems[currentSelectIndex];
|
|
367
368
|
if (item === _constants2.TABLE) {
|
|
368
369
|
tableSizeRef.current.uncontrolledPopoverRef.current.toggle();
|
|
369
370
|
return;
|
|
370
371
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
372
|
+
if (dropDownItems[item]) {
|
|
373
|
+
var _dropDownItems$item$p = dropDownItems[item].props,
|
|
374
|
+
disabled = _dropDownItems$item$p.disabled,
|
|
375
|
+
onClick = _dropDownItems$item$p.onClick;
|
|
376
|
+
!disabled && onClick();
|
|
377
|
+
}
|
|
375
378
|
}
|
|
376
379
|
if (keyCode === Esc) {
|
|
377
380
|
e.preventDefault();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.123",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "6381a83479253e6fbdc0955a14c0ded4ca799d53"
|
|
74
74
|
}
|