@worktile/theia 19.3.5 → 19.4.0
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.
|
@@ -10,7 +10,7 @@ import { cloneDeep, map, assign, defaults, groupBy, uniq, isEqual } from 'lodash
|
|
|
10
10
|
export { assign, cloneDeep, debounce, defaults, groupBy, isEqual, map, uniq } from 'lodash';
|
|
11
11
|
import { Editor, Element, Span, Range, Path, Node, Point, Text, Transforms, Operation, createEditor } from 'slate';
|
|
12
12
|
import * as i4 from 'slate-angular';
|
|
13
|
-
import { FAKE_LEFT_BLOCK_CARD_OFFSET, FAKE_RIGHT_BLOCK_CARD_OFFSET, getClipboardData, AngularEditor, hotkeys, getPlainText as getPlainText$1, createClipboardData, setClipboardData,
|
|
13
|
+
import { FAKE_LEFT_BLOCK_CARD_OFFSET, FAKE_RIGHT_BLOCK_CARD_OFFSET, getClipboardData, AngularEditor, hotkeys, getPlainText as getPlainText$1, createClipboardData, setClipboardData, BaseElementComponent, IS_SAFARI, ELEMENT_TO_COMPONENT, BaseTextComponent, SlateModule, hasBlockCard, isCardLeft, SlateChildrenOutlet, defaultScrollSelectionIntoView, getDataTransferClipboard, withAngular } from 'slate-angular';
|
|
14
14
|
import { HistoryEditor, withHistory } from 'slate-history';
|
|
15
15
|
import { NODE_TO_PARENT, NODE_TO_INDEX, NODE_TO_ELEMENT, EDITOR_TO_ELEMENT } from 'slate-dom';
|
|
16
16
|
import { TheiaConverter } from '@atinc/selene';
|
|
@@ -2206,10 +2206,6 @@ const setClipboardDataByDom = async (e, fragment, data) => {
|
|
|
2206
2206
|
function copyNode(e, element, thyNotifyService, locale) {
|
|
2207
2207
|
const copyFailTips = (locale && locale() && locale().copyFailed) ?? '复制失败';
|
|
2208
2208
|
const copySuccessTips = (locale && locale() && locale().copySuccess) ?? '复制成功';
|
|
2209
|
-
if (!isClipboardWriteSupported()) {
|
|
2210
|
-
thyNotifyService?.error(copyFailTips);
|
|
2211
|
-
return;
|
|
2212
|
-
}
|
|
2213
2209
|
const fragment = cloneDeep(element);
|
|
2214
2210
|
return setClipboardDataByDom(e, fragment)
|
|
2215
2211
|
.then(() => {
|