@ones-editor/editor 3.0.1-beta.5 → 3.0.1-beta.7
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.
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +17 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8948,8 +8948,8 @@ div.editor-root.compact.no-heading-collapse.no-block-menu > .editor-content {
|
|
|
8948
8948
|
display: none;
|
|
8949
8949
|
}
|
|
8950
8950
|
.error-info-bar[data-type=error] .content {
|
|
8951
|
-
background:
|
|
8952
|
-
color: #
|
|
8951
|
+
background-color: #FFEAE8;
|
|
8952
|
+
color: #EB3723;
|
|
8953
8953
|
}
|
|
8954
8954
|
.error-info-bar[data-type=warning] .content {
|
|
8955
8955
|
background-color: #ff9800;
|
|
@@ -29187,7 +29187,15 @@ var __publicField = (obj, key, value) => {
|
|
|
29187
29187
|
if (Math.abs(this.mouseDownEvent.x - event.x) < 3 && Math.abs(this.mouseDownEvent.y - event.y) < 3) {
|
|
29188
29188
|
return;
|
|
29189
29189
|
}
|
|
29190
|
-
const
|
|
29190
|
+
const lastBlock2 = getLastChildBlock(this.editor.rootContainer);
|
|
29191
|
+
const rect = lastBlock2.getBoundingClientRect();
|
|
29192
|
+
let range;
|
|
29193
|
+
if (event.y > rect.bottom) {
|
|
29194
|
+
const length = getBlockTextLength$6(this.editor, lastBlock2);
|
|
29195
|
+
range = createBlockSimpleRange(this.editor, lastBlock2, length, length);
|
|
29196
|
+
} else {
|
|
29197
|
+
range = getBlockRangeFromPoint(this.editor, event.x, event.y, true);
|
|
29198
|
+
}
|
|
29191
29199
|
if (!range) {
|
|
29192
29200
|
return;
|
|
29193
29201
|
}
|
|
@@ -92546,7 +92554,7 @@ ${data2.plantumlText}
|
|
|
92546
92554
|
},
|
|
92547
92555
|
error: {
|
|
92548
92556
|
retry: "\u91CD\u8BD5",
|
|
92549
|
-
network: "\u670D\u52A1\
|
|
92557
|
+
network: "\u670D\u52A1\u8FDE\u63A5\u5F02\u5E38\uFF0C\u6B63\u5728\u5C1D\u8BD5\u91CD\u8FDE\u3002\u4E3A\u907F\u514D\u5185\u5BB9\u65E0\u6CD5\u540C\u6B65\uFF0C\u5DF2\u6682\u65F6\u7981\u7528\u7F16\u8F91\u3002\u8BF7\u5728\u670D\u52A1\u8FDE\u63A5\u540E\u7EE7\u7EED\u3002",
|
|
92550
92558
|
networkPopup: "\u670D\u52A1\u8FDE\u63A5\u5F02\u5E38\uFF0C\u6B63\u5728\u5C1D\u8BD5\u91CD\u8FDE...",
|
|
92551
92559
|
uploadResourceError: "\u6570\u636E\u4FDD\u5B58\u5F02\u5E38",
|
|
92552
92560
|
uploadResourceErrorMessage: "\u8D44\u6E90\u4FDD\u5B58\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002",
|
|
@@ -92576,7 +92584,7 @@ ${data2.plantumlText}
|
|
|
92576
92584
|
},
|
|
92577
92585
|
error: {
|
|
92578
92586
|
retry: "\u91CD\u8A66",
|
|
92579
|
-
network: "\u670D\u52D9\
|
|
92587
|
+
network: "\u670D\u52D9\u9023\u63A5\u7570\u5E38\uFF0C\u6B63\u5728\u5617\u8A66\u91CD\u9023\u3002\u70BA\u907F\u514D\u5167\u5BB9\u7121\u6CD5\u540C\u6B65\uFF0C\u5DF2\u66AB\u6642\u7981\u7528\u7DE8\u8F2F\u3002\u8ACB\u5728\u670D\u52D9\u9023\u63A5\u5F8C\u7E7C\u7E8C\u3002",
|
|
92580
92588
|
networkPopup: "\u670D\u52D9\u9023\u63A5\u7570\u5E38\uFF0C\u6B63\u5728\u5617\u8A66\u91CD\u9023...",
|
|
92581
92589
|
uploadResourceError: "\u6578\u64DA\u4FDD\u5B58\u7570\u5E38",
|
|
92582
92590
|
uploadResourceErrorMessage: "\u8CC7\u6E90\u4FDD\u5B58\u5931\u6557\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66\u3002",
|
|
@@ -92606,7 +92614,7 @@ ${data2.plantumlText}
|
|
|
92606
92614
|
},
|
|
92607
92615
|
error: {
|
|
92608
92616
|
retry: "Try again",
|
|
92609
|
-
network: "
|
|
92617
|
+
network: "Service connection lost, trying to reconnect. Editing is temporarily disabled to prevent unsynced content. Please continue once the connection is restored.",
|
|
92610
92618
|
networkPopup: "Service connection lost, trying to reconnect...",
|
|
92611
92619
|
uploadResourceError: "Unable to save data",
|
|
92612
92620
|
uploadResourceErrorMessage: "Resource upload failed, please retry later.",
|
|
@@ -92636,7 +92644,7 @@ ${data2.plantumlText}
|
|
|
92636
92644
|
},
|
|
92637
92645
|
error: {
|
|
92638
92646
|
retry: "\u518D\u8A66\u884C",
|
|
92639
|
-
network: "\u63A5\u7D9A\u304C\u5207\u65AD\u3055\u308C\u307E\u3057\u305F\u3002\
|
|
92647
|
+
network: "\u30B5\u30FC\u30D3\u30B9\u3078\u306E\u63A5\u7D9A\u304C\u5207\u65AD\u3055\u308C\u307E\u3057\u305F\u3002\u7DE8\u96C6\u3059\u308B\u5185\u5BB9\u306E\u540C\u671F\u304C\u5931\u6557\u3057\u306A\u3044\u3088\u3046\u306B\u3001\u7DE8\u96C6\u6A5F\u80FD\u304C\u4E00\u6642\u5229\u7528\u3067\u304D\u306A\u3044\u72B6\u614B\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30B5\u30FC\u30D3\u30B9\u3078\u306E\u63A5\u7D9A\u304C\u56DE\u5FA9\u3059\u308B\u307E\u3067\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002",
|
|
92640
92648
|
networkPopup: "\u30B5\u30FC\u30D3\u30B9\u3078\u306E\u63A5\u7D9A\u304C\u5207\u65AD\u3055\u308C\u307E\u3057\u305F\u3002\u518D\u63A5\u7D9A\u3092\u8A66\u307F\u3066\u3044\u307E\u3059...",
|
|
92641
92649
|
uploadResourceError: "\u30C7\u30FC\u30BF\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093",
|
|
92642
92650
|
uploadResourceErrorMessage: "\u30EA\u30BD\u30FC\u30B9\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
@@ -95952,7 +95960,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
95952
95960
|
}
|
|
95953
95961
|
}
|
|
95954
95962
|
});
|
|
95955
|
-
editor.version = "3.0.1-beta.
|
|
95963
|
+
editor.version = "3.0.1-beta.7";
|
|
95956
95964
|
return editor;
|
|
95957
95965
|
}
|
|
95958
95966
|
function isDoc(doc2) {
|
|
@@ -96086,7 +96094,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96086
96094
|
OnesEditorDropTarget.register(editor);
|
|
96087
96095
|
OnesEditorTocProvider.register(editor);
|
|
96088
96096
|
OnesEditorExclusiveBlock.register(editor);
|
|
96089
|
-
editor.version = "3.0.1-beta.
|
|
96097
|
+
editor.version = "3.0.1-beta.7";
|
|
96090
96098
|
return editor;
|
|
96091
96099
|
}
|
|
96092
96100
|
async function showDocVersions(editor, options, serverUrl) {
|