@ones-editor/editor 2.1.1-beta.73 → 2.1.1-beta.75
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/core/src/core/command-providers/block-attributes.d.ts +2 -0
- package/@ones-editor/core/src/core/containers/root-container.d.ts +0 -3
- package/@ones-editor/core/src/core/editor/index.d.ts +1 -1
- package/@ones-editor/core/src/utils/dom.d.ts +1 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/index.d.ts +1 -0
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert-menu.d.ts +2 -4
- package/@ones-editor/mobile-helper/src/fixed-toolbar/toolbar-handler.d.ts +1 -1
- package/@ones-editor/mobile-helper/src/index.d.ts +2 -1
- package/@ones-editor/table-block/src/index.d.ts +2 -5
- package/@ones-editor/text-commands/src/index.d.ts +0 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/locale/en-us.d.ts +9 -0
- package/@ones-editor/ui/src/locale/ja-jp.d.ts +9 -0
- package/@ones-editor/ui/src/locale/zh-cn.d.ts +9 -0
- package/@ones-editor/ui/src/providers/mobile-link-provider.d.ts +4 -1
- package/@ones-editor/ui/src/providers/selection-provider.d.ts +9 -0
- package/@ones-editor/ui/src/providers/utils/text-styles.d.ts +1 -1
- package/@ones-editor/ui-base/src/color-palette/color-palette.d.ts +1 -1
- package/@ones-editor/ui-base/src/index.d.ts +1 -1
- package/@ones-editor/ui-base/src/mobile-command-bar/mobile-bottom-menu.d.ts +0 -1
- package/@ones-editor/ui-base/src/mobile-command-bar/scroll-into-view.d.ts +1 -1
- package/dist/index.js +366 -485
- package/package.json +1 -1
- package/@ones-editor/text-commands/src/locale/en-us.d.ts +0 -13
- package/@ones-editor/text-commands/src/locale/index.d.ts +0 -1
- package/@ones-editor/text-commands/src/locale/ja-jp.d.ts +0 -13
- package/@ones-editor/text-commands/src/locale/zh-cn.d.ts +0 -13
- package/@ones-editor/ui/src/providers/utils/text-commands.d.ts +0 -3
- /package/@ones-editor/table-block/src/commands/{table-command-provider.d.ts → mobile-command-provider.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -443,6 +443,9 @@ div.comment-editor-root div.root.select-all > .container-blocks > div[data-type=
|
|
|
443
443
|
}.editor-command-bar.toolbar .command-item.disabled .color-button {
|
|
444
444
|
color: #c7c7c7;
|
|
445
445
|
}
|
|
446
|
+
.editor-command-bar.toolbar .command-item-paste.disabled {
|
|
447
|
+
color: #c7c7c7;
|
|
448
|
+
}
|
|
446
449
|
.editor-command-bar.toolbar .color-button {
|
|
447
450
|
width: 24px;
|
|
448
451
|
height: 24px;
|
|
@@ -2022,12 +2025,6 @@ div.tippy-box[data-theme=editor-tooltip] > .tippy-content {
|
|
|
2022
2025
|
:root div.tippy-box[data-theme=editor-tooltip] > .tippy-content > div > span:nth-of-type(2) {
|
|
2023
2026
|
font-weight: 400;
|
|
2024
2027
|
}
|
|
2025
|
-
[data-command-bar-id] .command-item.disabled > .color-button svg {
|
|
2026
|
-
color: #b2bccd;
|
|
2027
|
-
}
|
|
2028
|
-
[data-command-bar-id] .command-item .command-item-paste.disabled {
|
|
2029
|
-
color: #c7c7c7;
|
|
2030
|
-
}
|
|
2031
2028
|
[data-command-bar-id=cursor-toolbar].mobile .tippy-box,
|
|
2032
2029
|
[data-command-bar-id=paste-special-button].mobile .tippy-box,
|
|
2033
2030
|
[data-command-bar-id=editor-toolbar].mobile .tippy-box {
|
|
@@ -4675,10 +4672,6 @@ div[data-command-bar-id=table-row-column-toolbar] .tippy-box .tippy-content butt
|
|
|
4675
4672
|
div[data-command-bar-id=table-cell-menu] .tippy-box .tippy-content .editor-command-bar.menu .command-item.selected[data-id=delete-select-row], div[data-command-bar-id=table-cell-menu] .tippy-box .tippy-content .editor-command-bar.menu .command-item.selected[data-id=delete-select-col] {
|
|
4676
4673
|
color: #eb3723;
|
|
4677
4674
|
background-color: #fff6f5;
|
|
4678
|
-
}
|
|
4679
|
-
.editor-root.mobile [data-type=editor-container].root div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root,
|
|
4680
|
-
.editor-root.mobile [data-type=editor-container].root div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root {
|
|
4681
|
-
display: none;
|
|
4682
4675
|
}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-anchor[data-id=paste-special-button-anchor] {
|
|
4683
4676
|
z-index: unset;
|
|
4684
4677
|
}
|
|
@@ -6432,7 +6425,7 @@ div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .co
|
|
|
6432
6425
|
width: 100%;
|
|
6433
6426
|
display: flex;
|
|
6434
6427
|
align-items: center;
|
|
6435
|
-
border-top: 1px solid #
|
|
6428
|
+
border-top: 1px solid #dfe1e5;
|
|
6436
6429
|
}
|
|
6437
6430
|
.command-m-bar > .editor-command-bar-root {
|
|
6438
6431
|
scrollbar-width: none;
|
|
@@ -6443,68 +6436,25 @@ div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .co
|
|
|
6443
6436
|
.command-m-bar > .editor-command-bar-root::-webkit-scrollbar {
|
|
6444
6437
|
display: none;
|
|
6445
6438
|
}
|
|
6446
|
-
.command-m-bar > .editor-command-bar-root.overflowing::after {
|
|
6439
|
+
.command-m-bar > .editor-command-bar-root .overflowing-float, .command-m-bar > .editor-command-bar-root .command-m-bar > .editor-command-bar-root.overflowing::before, .command-m-bar > .editor-command-bar-root .command-m-bar > .editor-command-bar-root.overflowing::after {
|
|
6447
6440
|
content: "";
|
|
6448
6441
|
position: absolute;
|
|
6449
6442
|
top: 0;
|
|
6450
|
-
|
|
6443
|
+
left: 0;
|
|
6451
6444
|
bottom: 0;
|
|
6452
6445
|
width: 10px;
|
|
6453
|
-
background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgb(255, 255, 255));
|
|
6454
6446
|
z-index: 1;
|
|
6455
6447
|
pointer-events: none;
|
|
6456
6448
|
}
|
|
6449
|
+
.command-m-bar > .editor-command-bar-root.overflowing::after {
|
|
6450
|
+
background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgb(255, 255, 255));
|
|
6451
|
+
}
|
|
6457
6452
|
.command-m-bar > .editor-command-bar-root.overflowing::before {
|
|
6458
|
-
content: "";
|
|
6459
|
-
position: absolute;
|
|
6460
|
-
top: 0;
|
|
6461
|
-
left: 0;
|
|
6462
|
-
bottom: 0;
|
|
6463
|
-
width: 10px;
|
|
6464
6453
|
background: linear-gradient(90deg, rgb(255, 255, 255) 0, rgba(255, 255, 255, 0));
|
|
6465
|
-
z-index: 1;
|
|
6466
|
-
pointer-events: none;
|
|
6467
6454
|
}
|
|
6468
6455
|
.command-m-bar > .editor-command-bar-root > .editor-command-bar {
|
|
6469
6456
|
width: max-content;
|
|
6470
6457
|
max-width: max-content;
|
|
6471
|
-
}
|
|
6472
|
-
.command-m-bar .command-m-container {
|
|
6473
|
-
display: flex;
|
|
6474
|
-
}
|
|
6475
|
-
.command-m-bar .child-layout {
|
|
6476
|
-
height: 280px;
|
|
6477
|
-
width: 100%;
|
|
6478
|
-
display: flex;
|
|
6479
|
-
display: none;
|
|
6480
|
-
padding-top: 20px;
|
|
6481
|
-
position: relative;
|
|
6482
|
-
}
|
|
6483
|
-
.command-m-bar .child-layout.card {
|
|
6484
|
-
flex-wrap: wrap;
|
|
6485
|
-
gap: 15px;
|
|
6486
|
-
justify-content: flex-start;
|
|
6487
|
-
}
|
|
6488
|
-
.command-m-bar .child-layout.card .child-item {
|
|
6489
|
-
width: 80px;
|
|
6490
|
-
height: 80px;
|
|
6491
|
-
display: flex;
|
|
6492
|
-
align-items: center;
|
|
6493
|
-
justify-content: center;
|
|
6494
|
-
border: 1px solid #ccc;
|
|
6495
|
-
}
|
|
6496
|
-
.command-m-bar .child-layout.menu {
|
|
6497
|
-
flex-direction: column;
|
|
6498
|
-
}
|
|
6499
|
-
.command-m-bar .child-layout.menu .child-item {
|
|
6500
|
-
width: 100%;
|
|
6501
|
-
height: 32px;
|
|
6502
|
-
line-height: 32px;
|
|
6503
|
-
}
|
|
6504
|
-
.command-m-bar .child-layout.menu .child-layout-close {
|
|
6505
|
-
position: absolute;
|
|
6506
|
-
right: 20px;
|
|
6507
|
-
top: 20px;
|
|
6508
6458
|
}[data-command-bar-id=editor-toolbar] .editor-content div[data-type=editor-block] div[data-type=block-tools] div.select-handle,
|
|
6509
6459
|
.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] div.select-handle {
|
|
6510
6460
|
position: absolute;
|
|
@@ -7823,7 +7773,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7823
7773
|
loggerClass.set(category, instance);
|
|
7824
7774
|
return instance;
|
|
7825
7775
|
}
|
|
7826
|
-
const enUS$
|
|
7776
|
+
const enUS$x = {
|
|
7827
7777
|
name: "ONES Editor",
|
|
7828
7778
|
date: {
|
|
7829
7779
|
dateFromFuture: "From the future",
|
|
@@ -7843,7 +7793,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7843
7793
|
imageExportFailed: "Failed to load image"
|
|
7844
7794
|
}
|
|
7845
7795
|
};
|
|
7846
|
-
const zhCN$
|
|
7796
|
+
const zhCN$x = {
|
|
7847
7797
|
name: "Ones Editor",
|
|
7848
7798
|
date: {
|
|
7849
7799
|
dateFromFuture: "\u6765\u81EA\u672A\u6765",
|
|
@@ -7863,7 +7813,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7863
7813
|
imageExportFailed: "\u56FE\u7247\u52A0\u8F7D\u5931\u8D25"
|
|
7864
7814
|
}
|
|
7865
7815
|
};
|
|
7866
|
-
const jaJP$
|
|
7816
|
+
const jaJP$x = {
|
|
7867
7817
|
name: "ONES \u30A8\u30C7\u30A3\u30BF\u30FC",
|
|
7868
7818
|
date: {
|
|
7869
7819
|
dateFromFuture: "\u672A\u6765\u304B\u3089",
|
|
@@ -7885,9 +7835,9 @@ var __publicField = (obj, key, value) => {
|
|
|
7885
7835
|
};
|
|
7886
7836
|
const logger$4C = getLogger("i18n");
|
|
7887
7837
|
const langs$3 = {
|
|
7888
|
-
"en-US": enUS$
|
|
7889
|
-
"zh-CN": zhCN$
|
|
7890
|
-
"ja-JP": jaJP$
|
|
7838
|
+
"en-US": enUS$x,
|
|
7839
|
+
"zh-CN": zhCN$x,
|
|
7840
|
+
"ja-JP": jaJP$x
|
|
7891
7841
|
};
|
|
7892
7842
|
const i18n = KiwiIntl__default.default.init("en-US", langs$3);
|
|
7893
7843
|
let currentLang = "en-US";
|
|
@@ -8981,29 +8931,42 @@ var __publicField = (obj, key, value) => {
|
|
|
8981
8931
|
return events2 instanceof TouchEvent;
|
|
8982
8932
|
}
|
|
8983
8933
|
function bindDbClick(elem, handler) {
|
|
8984
|
-
let
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
8934
|
+
let clickCount = 0;
|
|
8935
|
+
function simulateDoubleClick(event) {
|
|
8936
|
+
clickCount++;
|
|
8937
|
+
if (clickCount === 1) {
|
|
8938
|
+
setTimeout(() => {
|
|
8939
|
+
if (clickCount === 2) {
|
|
8940
|
+
handler(event);
|
|
8941
|
+
}
|
|
8942
|
+
clickCount = 0;
|
|
8943
|
+
}, 300);
|
|
8993
8944
|
}
|
|
8994
|
-
}
|
|
8995
|
-
elem.addEventListener("click",
|
|
8945
|
+
}
|
|
8946
|
+
elem.addEventListener("click", simulateDoubleClick);
|
|
8996
8947
|
return () => {
|
|
8997
|
-
elem.removeEventListener("click",
|
|
8948
|
+
elem.removeEventListener("click", simulateDoubleClick);
|
|
8998
8949
|
};
|
|
8999
8950
|
}
|
|
8951
|
+
const getVisualViewportHeightOffset = () => {
|
|
8952
|
+
var _a, _b;
|
|
8953
|
+
if (!clientType.isMobile) {
|
|
8954
|
+
return 0;
|
|
8955
|
+
}
|
|
8956
|
+
let topWindow = window;
|
|
8957
|
+
if (window.top) {
|
|
8958
|
+
topWindow = window.top;
|
|
8959
|
+
}
|
|
8960
|
+
const visualViewportHeight = (_b = (_a = topWindow.visualViewport) == null ? void 0 : _a.height) != null ? _b : topWindow.innerHeight || topWindow.document.documentElement.clientHeight;
|
|
8961
|
+
return Math.max(topWindow.innerHeight - visualViewportHeight, 40);
|
|
8962
|
+
};
|
|
9000
8963
|
class ScrollDomElement {
|
|
9001
8964
|
constructor(element) {
|
|
9002
8965
|
__publicField(this, "element");
|
|
9003
8966
|
this.element = element;
|
|
9004
8967
|
}
|
|
9005
8968
|
getClientHeight() {
|
|
9006
|
-
return this.element.clientHeight;
|
|
8969
|
+
return this.element.clientHeight - getVisualViewportHeightOffset();
|
|
9007
8970
|
}
|
|
9008
8971
|
getHorizontalScroll() {
|
|
9009
8972
|
return this.element.scrollLeft;
|
|
@@ -9912,6 +9875,11 @@ var __publicField = (obj, key, value) => {
|
|
|
9912
9875
|
});
|
|
9913
9876
|
}
|
|
9914
9877
|
function select(element) {
|
|
9878
|
+
const preventDefault = (event) => {
|
|
9879
|
+
event.preventDefault();
|
|
9880
|
+
event.stopPropagation();
|
|
9881
|
+
};
|
|
9882
|
+
document.addEventListener("selectionchange", preventDefault, { capture: true, passive: false });
|
|
9915
9883
|
if (element instanceof HTMLInputElement || element instanceof HTMLTextAreaElement) {
|
|
9916
9884
|
element.select();
|
|
9917
9885
|
} else {
|
|
@@ -9921,6 +9889,9 @@ var __publicField = (obj, key, value) => {
|
|
|
9921
9889
|
selection == null ? void 0 : selection.removeAllRanges();
|
|
9922
9890
|
selection == null ? void 0 : selection.addRange(range);
|
|
9923
9891
|
}
|
|
9892
|
+
setTimeout(() => {
|
|
9893
|
+
document.removeEventListener("selectionchange", preventDefault, { capture: true });
|
|
9894
|
+
});
|
|
9924
9895
|
}
|
|
9925
9896
|
async function copyTextToClipboard(text2) {
|
|
9926
9897
|
const textarea2 = document.createElement("textarea");
|
|
@@ -11214,16 +11185,6 @@ var __publicField = (obj, key, value) => {
|
|
|
11214
11185
|
__publicField(this, "isMoved", false);
|
|
11215
11186
|
__publicField(this, "mouseDownEvent", null);
|
|
11216
11187
|
__publicField(this, "dbClickRef", null);
|
|
11217
|
-
__publicField(this, "isMove", false);
|
|
11218
|
-
__publicField(this, "handleTouchMove", (e2) => {
|
|
11219
|
-
this.isMove = true;
|
|
11220
|
-
});
|
|
11221
|
-
__publicField(this, "handleTouchEnd", (e2) => {
|
|
11222
|
-
if (this.isMove) {
|
|
11223
|
-
e2.stopPropagation();
|
|
11224
|
-
}
|
|
11225
|
-
this.isMove = false;
|
|
11226
|
-
});
|
|
11227
11188
|
__publicField(this, "handleContextMenu", (event) => {
|
|
11228
11189
|
if (clientType.isSafari) {
|
|
11229
11190
|
const sel = document.getSelection();
|
|
@@ -11249,7 +11210,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11249
11210
|
if (event.detail === 1) {
|
|
11250
11211
|
this.editor.input.focus();
|
|
11251
11212
|
}
|
|
11252
|
-
if (event.detail === 3) {
|
|
11213
|
+
if (event.detail === 3 && !clientType.isMobile) {
|
|
11253
11214
|
this.editor.selectionHandler.handleTripleClick(event);
|
|
11254
11215
|
}
|
|
11255
11216
|
if (event.detail === 1 && event.button === 0) {
|
|
@@ -11366,8 +11327,6 @@ var __publicField = (obj, key, value) => {
|
|
|
11366
11327
|
const container = this.editor.rootElement;
|
|
11367
11328
|
if (clientType.isMobile) {
|
|
11368
11329
|
container.ontouchend = this.handleMouseDown;
|
|
11369
|
-
window.addEventListener("touchmove", this.handleTouchMove);
|
|
11370
|
-
window.addEventListener("touchend", this.handleTouchEnd, true);
|
|
11371
11330
|
} else {
|
|
11372
11331
|
container.onmousedown = this.handleMouseDown;
|
|
11373
11332
|
container.oncontextmenu = this.handleContextMenu;
|
|
@@ -11387,8 +11346,6 @@ var __publicField = (obj, key, value) => {
|
|
|
11387
11346
|
container.onclick = null;
|
|
11388
11347
|
container.oncontextmenu = null;
|
|
11389
11348
|
container.ontouchend = null;
|
|
11390
|
-
window.removeEventListener("touchmove", this.handleTouchMove);
|
|
11391
|
-
window.removeEventListener("touchend", this.handleTouchEnd, true);
|
|
11392
11349
|
if (this.dbClickRef) {
|
|
11393
11350
|
this.dbClickRef();
|
|
11394
11351
|
this.dbClickRef = null;
|
|
@@ -25073,7 +25030,10 @@ var __publicField = (obj, key, value) => {
|
|
|
25073
25030
|
const x1 = rect.x < 0 ? 0 : rect.x;
|
|
25074
25031
|
const y1 = rect.y < 0 ? 0 : rect.y;
|
|
25075
25032
|
const x2 = rect.right > window.innerWidth ? window.innerWidth : rect.right;
|
|
25076
|
-
|
|
25033
|
+
let y2 = rect.bottom > window.innerHeight ? window.innerHeight : rect.bottom;
|
|
25034
|
+
if (clientType.isIOS) {
|
|
25035
|
+
y2 -= getVisualViewportHeightOffset();
|
|
25036
|
+
}
|
|
25077
25037
|
return new DOMRect(x1, y1, x2 - x1, y2 - y1);
|
|
25078
25038
|
}
|
|
25079
25039
|
function isBlockPositionVisible(editor, pos) {
|
|
@@ -25116,7 +25076,7 @@ var __publicField = (obj, key, value) => {
|
|
|
25116
25076
|
const rect = target.getBoundingClientRect();
|
|
25117
25077
|
return rect.right > visibleRect.right || rect.left < visibleRect.left;
|
|
25118
25078
|
}
|
|
25119
|
-
function scrollIntoView
|
|
25079
|
+
function scrollIntoView(editor, target, options) {
|
|
25120
25080
|
var _a;
|
|
25121
25081
|
if (!target) {
|
|
25122
25082
|
return;
|
|
@@ -25181,10 +25141,10 @@ var __publicField = (obj, key, value) => {
|
|
|
25181
25141
|
const delayEmbedBlockTypes = ["image"];
|
|
25182
25142
|
if (delayEmbedBlockTypes.includes(getEmbedType(block))) {
|
|
25183
25143
|
setTimeout(() => {
|
|
25184
|
-
scrollIntoView
|
|
25144
|
+
scrollIntoView(editor, next2, { animation: true });
|
|
25185
25145
|
}, 500);
|
|
25186
25146
|
} else {
|
|
25187
|
-
scrollIntoView
|
|
25147
|
+
scrollIntoView(editor, next2, { animation: true });
|
|
25188
25148
|
}
|
|
25189
25149
|
return;
|
|
25190
25150
|
}
|
|
@@ -25195,7 +25155,7 @@ var __publicField = (obj, key, value) => {
|
|
|
25195
25155
|
const anchorElem = createElement("div", ["editor-block-anchor"], tools);
|
|
25196
25156
|
const scale = getElementScale(block);
|
|
25197
25157
|
anchorElem.style.top = `${(rect.top - blockRect.top) / scale}px`;
|
|
25198
|
-
scrollIntoView
|
|
25158
|
+
scrollIntoView(editor, anchorElem, { animation: true });
|
|
25199
25159
|
setTimeout(() => {
|
|
25200
25160
|
anchorElem.remove();
|
|
25201
25161
|
}, 200);
|
|
@@ -30514,14 +30474,23 @@ ${codeText}
|
|
|
30514
30474
|
constructor(editor) {
|
|
30515
30475
|
__publicField(this, "textBlockAttributes", /* @__PURE__ */ new Map());
|
|
30516
30476
|
__publicField(this, "activeBlockAttributes", /* @__PURE__ */ new Map());
|
|
30477
|
+
__publicField(this, "lastRange");
|
|
30517
30478
|
__publicField(this, "clear", () => {
|
|
30518
30479
|
this.activeBlockAttributes.clear();
|
|
30519
30480
|
});
|
|
30481
|
+
__publicField(this, "handleSelectionChanged", () => {
|
|
30482
|
+
var _a, _b, _c, _d;
|
|
30483
|
+
const range = this.editor.selection.range;
|
|
30484
|
+
if (range.isSimple() && ((_a = this.lastRange) == null ? void 0 : _a.start.blockId) === range.start.blockId && ((_b = this.lastRange) == null ? void 0 : _b.end.blockId) === range.end.blockId && ((_c = this.lastRange) == null ? void 0 : _c.start.offset) === range.start.offset && ((_d = this.lastRange) == null ? void 0 : _d.end.offset) === range.end.offset) {
|
|
30485
|
+
return;
|
|
30486
|
+
}
|
|
30487
|
+
this.clear();
|
|
30488
|
+
});
|
|
30520
30489
|
__publicField(this, "setActiveBlockAttributes", (attributes) => {
|
|
30521
30490
|
Array.from(this.activeBlockAttributes).forEach(([key, value]) => {
|
|
30522
30491
|
const op = { attributes, insert: "" };
|
|
30523
30492
|
if (key === "color" || key === "backgroundColor") {
|
|
30524
|
-
if (
|
|
30493
|
+
if (value === null || value === void 0) {
|
|
30525
30494
|
deleteColor(op, key);
|
|
30526
30495
|
} else {
|
|
30527
30496
|
addColor(op, key, value);
|
|
@@ -30543,11 +30512,11 @@ ${codeText}
|
|
|
30543
30512
|
});
|
|
30544
30513
|
this.editor = editor;
|
|
30545
30514
|
this.editor.addListener("docChanged", this.clear);
|
|
30546
|
-
this.editor.addListener("selectionChanged", this.
|
|
30515
|
+
this.editor.addListener("selectionChanged", this.handleSelectionChanged);
|
|
30547
30516
|
}
|
|
30548
30517
|
destroy() {
|
|
30549
30518
|
this.editor.removeListener("docChanged", this.clear);
|
|
30550
|
-
this.editor.removeListener("selectionChanged", this.
|
|
30519
|
+
this.editor.removeListener("selectionChanged", this.handleSelectionChanged);
|
|
30551
30520
|
}
|
|
30552
30521
|
getEmptyBlockTextAttributes(blockId) {
|
|
30553
30522
|
var _a;
|
|
@@ -38585,7 +38554,7 @@ ${codeText}
|
|
|
38585
38554
|
handler.removeListener("insert", callback);
|
|
38586
38555
|
}
|
|
38587
38556
|
const style$c = "";
|
|
38588
|
-
const zhCN$
|
|
38557
|
+
const zhCN$w = {
|
|
38589
38558
|
colorPalette: {
|
|
38590
38559
|
colorDesc: "\u5B57\u4F53\u989C\u8272",
|
|
38591
38560
|
name: "\u6587\u672C\u989C\u8272",
|
|
@@ -38616,7 +38585,7 @@ ${codeText}
|
|
|
38616
38585
|
emptyTips: "\u6682\u65E0\u641C\u7D22\u7ED3\u679C"
|
|
38617
38586
|
}
|
|
38618
38587
|
};
|
|
38619
|
-
const enUS$
|
|
38588
|
+
const enUS$w = {
|
|
38620
38589
|
colorPalette: {
|
|
38621
38590
|
colorDesc: "Text color",
|
|
38622
38591
|
name: "Text color",
|
|
@@ -38647,7 +38616,7 @@ ${codeText}
|
|
|
38647
38616
|
emptyTips: "No results found"
|
|
38648
38617
|
}
|
|
38649
38618
|
};
|
|
38650
|
-
const jaJP$
|
|
38619
|
+
const jaJP$w = {
|
|
38651
38620
|
colorPalette: {
|
|
38652
38621
|
colorDesc: "\u30D5\u30A9\u30F3\u30C8\u306E\u8272",
|
|
38653
38622
|
name: "\u30C6\u30AD\u30B9\u30C8\u306E\u8272",
|
|
@@ -38679,9 +38648,9 @@ ${codeText}
|
|
|
38679
38648
|
}
|
|
38680
38649
|
};
|
|
38681
38650
|
i18n$1.mergeLang({
|
|
38682
|
-
"zh-CN": zhCN$
|
|
38683
|
-
"en-US": enUS$
|
|
38684
|
-
"ja-JP": jaJP$
|
|
38651
|
+
"zh-CN": zhCN$w,
|
|
38652
|
+
"en-US": enUS$w,
|
|
38653
|
+
"ja-JP": jaJP$w
|
|
38685
38654
|
});
|
|
38686
38655
|
const button = "";
|
|
38687
38656
|
getLogger("button");
|
|
@@ -39162,9 +39131,6 @@ ${codeText}
|
|
|
39162
39131
|
if (!item) {
|
|
39163
39132
|
return;
|
|
39164
39133
|
}
|
|
39165
|
-
if (item.switchable && !(target == null ? void 0 : target.closest(".menu-item-checked-icon"))) {
|
|
39166
|
-
return;
|
|
39167
|
-
}
|
|
39168
39134
|
const customItem = (item == null ? void 0 : item.element) && !item.children;
|
|
39169
39135
|
if (clientType.isMobile && !customItem) {
|
|
39170
39136
|
event.preventDefault();
|
|
@@ -40385,22 +40351,6 @@ ${codeText}
|
|
|
40385
40351
|
}
|
|
40386
40352
|
}, 200);
|
|
40387
40353
|
});
|
|
40388
|
-
__publicField(this, "getSubBarOptions", (item) => {
|
|
40389
|
-
var _a, _b;
|
|
40390
|
-
const getReferenceClientRect2 = () => {
|
|
40391
|
-
const elem = this.getItemElementById(item.id);
|
|
40392
|
-
const content = this.content;
|
|
40393
|
-
const contentRect = content.getBoundingClientRect();
|
|
40394
|
-
const elemRect = elem.getBoundingClientRect();
|
|
40395
|
-
return new DOMRect(elemRect.left, contentRect.top, elemRect.width, contentRect.height);
|
|
40396
|
-
};
|
|
40397
|
-
const options = {
|
|
40398
|
-
placement: (_a = item.childrenPlacement) != null ? _a : "top",
|
|
40399
|
-
getReferenceClientRect: getReferenceClientRect2,
|
|
40400
|
-
offset: (_b = item.childrenOffset) != null ? _b : [0, 4]
|
|
40401
|
-
};
|
|
40402
|
-
return options;
|
|
40403
|
-
});
|
|
40404
40354
|
}
|
|
40405
40355
|
close(reason) {
|
|
40406
40356
|
var _a;
|
|
@@ -41031,9 +40981,7 @@ ${codeText}
|
|
|
41031
40981
|
this.errorContent.innerText = error2;
|
|
41032
40982
|
});
|
|
41033
40983
|
__publicField(this, "focus", () => {
|
|
41034
|
-
|
|
41035
|
-
this.input.focus();
|
|
41036
|
-
}, 200);
|
|
40984
|
+
this.input.focus();
|
|
41037
40985
|
});
|
|
41038
40986
|
__publicField(this, "handleKeyDown", (e2, composing) => {
|
|
41039
40987
|
var _a, _b;
|
|
@@ -41982,7 +41930,7 @@ ${codeText}
|
|
|
41982
41930
|
return new EmojiItem();
|
|
41983
41931
|
}
|
|
41984
41932
|
}
|
|
41985
|
-
const
|
|
41933
|
+
const scrollBarIntoView = (editor, bar2) => {
|
|
41986
41934
|
var _a;
|
|
41987
41935
|
const activeRect = getBlockClientRects(editor, editor.selection.endBlock, editor.selection.range);
|
|
41988
41936
|
const popperRect = (_a = bar2.popper) == null ? void 0 : _a.getBoundingClientRect();
|
|
@@ -44055,44 +44003,19 @@ ${codeText}
|
|
|
44055
44003
|
if (getBlockType(block) !== "table" || clientType.isMobile) {
|
|
44056
44004
|
return [];
|
|
44057
44005
|
}
|
|
44058
|
-
const ext = {
|
|
44059
|
-
blockId: getBlockId(block),
|
|
44060
|
-
blockKind: getBlockKind(editor, block),
|
|
44061
|
-
blockType: getBlockType(block)
|
|
44062
|
-
};
|
|
44063
44006
|
const commands = [];
|
|
44064
|
-
const { selectedColumns, selectedRows } = getTableSelectedRowsAndColumns(editor, block);
|
|
44065
|
-
if (clientType.isMobile) {
|
|
44066
|
-
if (selectedColumns.size > 0) {
|
|
44067
|
-
commands.push({
|
|
44068
|
-
id: "table/delete-columns",
|
|
44069
|
-
name: i18n$1.t("table.deleteSelectCol"),
|
|
44070
|
-
icon: DeleteColIcon,
|
|
44071
|
-
...ext
|
|
44072
|
-
});
|
|
44073
|
-
} else if (selectedRows.size > 0) {
|
|
44074
|
-
commands.push({
|
|
44075
|
-
id: "table/delete-rows",
|
|
44076
|
-
name: i18n$1.t("table.deleteSelectRow"),
|
|
44077
|
-
icon: DeleteRowIcon,
|
|
44078
|
-
...ext
|
|
44079
|
-
});
|
|
44080
|
-
}
|
|
44081
|
-
}
|
|
44082
44007
|
if (canMergeCells(editor, block, range)) {
|
|
44083
44008
|
commands.push({
|
|
44084
44009
|
id: "table/merge-cells",
|
|
44085
44010
|
name: i18n$1.t("table.mergeCell"),
|
|
44086
|
-
icon: MergeCellIcon
|
|
44087
|
-
...ext
|
|
44011
|
+
icon: MergeCellIcon
|
|
44088
44012
|
});
|
|
44089
44013
|
}
|
|
44090
44014
|
if (canSplitCell(editor, block, range)) {
|
|
44091
44015
|
commands.push({
|
|
44092
44016
|
id: "table/split-cell",
|
|
44093
44017
|
name: i18n$1.t("table.splitCell"),
|
|
44094
|
-
icon: SplitCellIcon
|
|
44095
|
-
...ext
|
|
44018
|
+
icon: SplitCellIcon
|
|
44096
44019
|
});
|
|
44097
44020
|
}
|
|
44098
44021
|
const deleteColumns2 = canDeleteColumns(editor, block, range);
|
|
@@ -44101,8 +44024,7 @@ ${codeText}
|
|
|
44101
44024
|
commands.push({
|
|
44102
44025
|
id: "table/delete",
|
|
44103
44026
|
name: i18n$1.t("table.deleteTable"),
|
|
44104
|
-
icon: DeleteTableIcon
|
|
44105
|
-
...ext
|
|
44027
|
+
icon: DeleteTableIcon
|
|
44106
44028
|
});
|
|
44107
44029
|
}
|
|
44108
44030
|
return commands;
|
|
@@ -46164,28 +46086,28 @@ ${codeText}
|
|
|
46164
46086
|
}
|
|
46165
46087
|
}
|
|
46166
46088
|
const exclusiveBlockStyles = "";
|
|
46167
|
-
const zhCN$
|
|
46089
|
+
const zhCN$v = {
|
|
46168
46090
|
exclusive: {
|
|
46169
46091
|
tips: "\u300C{editor}\u300D\u6B63\u5728\u7F16\u8F91\uFF0C\u300C{embedType}\u300D\u4E0D\u652F\u6301\u591A\u4EBA\u7F16\u8F91",
|
|
46170
46092
|
fallbackAbstract: "\u8BE5 Block"
|
|
46171
46093
|
}
|
|
46172
46094
|
};
|
|
46173
|
-
const enUS$
|
|
46095
|
+
const enUS$v = {
|
|
46174
46096
|
exclusive: {
|
|
46175
46097
|
tips: "\u300C{editor}\u300Dis editing\uFF0C\u300C{embedType}\u300Ddoes not support multi-person editing",
|
|
46176
46098
|
fallbackAbstract: "This Block"
|
|
46177
46099
|
}
|
|
46178
46100
|
};
|
|
46179
|
-
const jaJP$
|
|
46101
|
+
const jaJP$v = {
|
|
46180
46102
|
exclusive: {
|
|
46181
46103
|
tips: "\u300C{editor}\u300D\u306F\u7DE8\u96C6\u4E2D\u3067\u3059\u3002\u300C{embedType}\u300D\u306F\u8907\u6570\u4EBA\u3067\u540C\u6642\u7DE8\u96C6\u3067\u304D\u307E\u305B\u3093",
|
|
46182
46104
|
fallbackAbstract: "\u3053\u306E\u8981\u7D20"
|
|
46183
46105
|
}
|
|
46184
46106
|
};
|
|
46185
46107
|
i18n$1.mergeLang({
|
|
46186
|
-
"zh-CN": zhCN$
|
|
46187
|
-
"en-US": enUS$
|
|
46188
|
-
"ja-JP": jaJP$
|
|
46108
|
+
"zh-CN": zhCN$v,
|
|
46109
|
+
"en-US": enUS$v,
|
|
46110
|
+
"ja-JP": jaJP$v
|
|
46189
46111
|
});
|
|
46190
46112
|
function getBlockInfo(editor, block) {
|
|
46191
46113
|
const data2 = editor.getBlockData(block);
|
|
@@ -46362,21 +46284,21 @@ ${codeText}
|
|
|
46362
46284
|
}
|
|
46363
46285
|
}
|
|
46364
46286
|
const style$a = "";
|
|
46365
|
-
const zhCN$
|
|
46287
|
+
const zhCN$u = {
|
|
46366
46288
|
locker: {
|
|
46367
46289
|
lock: "\u9501\u5B9A",
|
|
46368
46290
|
unlock: "\u89E3\u9664\u9501\u5B9A",
|
|
46369
46291
|
lockedBy: "\u88AB {name} \u9501\u5B9A"
|
|
46370
46292
|
}
|
|
46371
46293
|
};
|
|
46372
|
-
const enUS$
|
|
46294
|
+
const enUS$u = {
|
|
46373
46295
|
locker: {
|
|
46374
46296
|
lock: "Lock",
|
|
46375
46297
|
unlock: "Unlock",
|
|
46376
46298
|
lockedBy: "Locked by {name}"
|
|
46377
46299
|
}
|
|
46378
46300
|
};
|
|
46379
|
-
const jaJP$
|
|
46301
|
+
const jaJP$u = {
|
|
46380
46302
|
locker: {
|
|
46381
46303
|
lock: "\u30ED\u30C3\u30AF",
|
|
46382
46304
|
unlock: "\u30ED\u30C3\u30AF\u89E3\u9664",
|
|
@@ -46384,9 +46306,9 @@ ${codeText}
|
|
|
46384
46306
|
}
|
|
46385
46307
|
};
|
|
46386
46308
|
i18n$1.mergeLang({
|
|
46387
|
-
"zh-CN": zhCN$
|
|
46388
|
-
"en-US": enUS$
|
|
46389
|
-
"ja-JP": jaJP$
|
|
46309
|
+
"zh-CN": zhCN$u,
|
|
46310
|
+
"en-US": enUS$u,
|
|
46311
|
+
"ja-JP": jaJP$u
|
|
46390
46312
|
});
|
|
46391
46313
|
class BlockLockerPasteHandler {
|
|
46392
46314
|
async handleBeforePasteDoc(editor, doc2) {
|
|
@@ -46499,10 +46421,11 @@ ${codeText}
|
|
|
46499
46421
|
element: this.createPasteElement(editor),
|
|
46500
46422
|
states: []
|
|
46501
46423
|
};
|
|
46502
|
-
const items = [
|
|
46424
|
+
const items = [copyItem];
|
|
46503
46425
|
if (this.options.withPaste) {
|
|
46504
46426
|
items.push(pasteItem);
|
|
46505
46427
|
}
|
|
46428
|
+
items.push(cutItem);
|
|
46506
46429
|
return items;
|
|
46507
46430
|
});
|
|
46508
46431
|
__publicField(this, "getInsertCommands", () => []);
|
|
@@ -49240,7 +49163,7 @@ ${codeText}
|
|
|
49240
49163
|
}
|
|
49241
49164
|
return blockContent;
|
|
49242
49165
|
}
|
|
49243
|
-
const zhCN$
|
|
49166
|
+
const zhCN$t = {
|
|
49244
49167
|
list: {
|
|
49245
49168
|
confirm: "\u786E\u5B9A",
|
|
49246
49169
|
setStart: "\u8BBE\u7F6E\u7F16\u53F7",
|
|
@@ -49260,7 +49183,7 @@ ${codeText}
|
|
|
49260
49183
|
exitFullscreen: "\u9000\u51FA\u5168\u5C4F"
|
|
49261
49184
|
}
|
|
49262
49185
|
};
|
|
49263
|
-
const enUS$
|
|
49186
|
+
const enUS$t = {
|
|
49264
49187
|
list: {
|
|
49265
49188
|
confirm: "Confirm",
|
|
49266
49189
|
setStart: "Set number",
|
|
@@ -49280,7 +49203,7 @@ ${codeText}
|
|
|
49280
49203
|
exitFullscreen: "Exit full screen"
|
|
49281
49204
|
}
|
|
49282
49205
|
};
|
|
49283
|
-
const jaJP$
|
|
49206
|
+
const jaJP$t = {
|
|
49284
49207
|
list: {
|
|
49285
49208
|
confirm: "OK",
|
|
49286
49209
|
setStart: "\u756A\u53F7\u3092\u8A2D\u5B9A",
|
|
@@ -49301,9 +49224,9 @@ ${codeText}
|
|
|
49301
49224
|
}
|
|
49302
49225
|
};
|
|
49303
49226
|
i18n$1.mergeLang({
|
|
49304
|
-
"zh-CN": zhCN$
|
|
49305
|
-
"en-US": enUS$
|
|
49306
|
-
"ja-JP": jaJP$
|
|
49227
|
+
"zh-CN": zhCN$t,
|
|
49228
|
+
"en-US": enUS$t,
|
|
49229
|
+
"ja-JP": jaJP$t
|
|
49307
49230
|
});
|
|
49308
49231
|
const style$9 = "";
|
|
49309
49232
|
const logger$1W = getLogger("list-block:paste-handler");
|
|
@@ -49714,7 +49637,7 @@ ${codeText}
|
|
|
49714
49637
|
this.close();
|
|
49715
49638
|
});
|
|
49716
49639
|
__publicField(this, "handleShown", () => {
|
|
49717
|
-
|
|
49640
|
+
scrollBarIntoView(this.editor, this.linkPopup);
|
|
49718
49641
|
});
|
|
49719
49642
|
__publicField(this, "disabledSubmit", () => {
|
|
49720
49643
|
var _a;
|
|
@@ -50382,7 +50305,7 @@ ${codeText}
|
|
|
50382
50305
|
this.clipboardProvider.executeRangeCommand(editor, range, item);
|
|
50383
50306
|
});
|
|
50384
50307
|
this.editor = editor;
|
|
50385
|
-
this.clipboardProvider = new ClipboardProvider(this.editor, { withPaste:
|
|
50308
|
+
this.clipboardProvider = new ClipboardProvider(this.editor, { withPaste: false });
|
|
50386
50309
|
}
|
|
50387
50310
|
commands(editor, block, child) {
|
|
50388
50311
|
if (!editor.isWritable()) {
|
|
@@ -50392,11 +50315,11 @@ ${codeText}
|
|
|
50392
50315
|
return void 0;
|
|
50393
50316
|
}
|
|
50394
50317
|
const commands = [];
|
|
50318
|
+
commands.push(...this.provider.getAvailableCommands(editor, block, this.editor.selection.range, { child }));
|
|
50395
50319
|
if (clientType.isMobile) {
|
|
50396
50320
|
this.clipboardProvider.getAvailableCommands(editor, block).forEach((c) => commands.push(c));
|
|
50397
50321
|
commands.push({ id: "separator", name: "", type: "separator" });
|
|
50398
50322
|
}
|
|
50399
|
-
commands.push(...this.provider.getAvailableCommands(editor, block, this.editor.selection.range, { child }));
|
|
50400
50323
|
return {
|
|
50401
50324
|
element: child,
|
|
50402
50325
|
group: "hovering-toolbar",
|
|
@@ -50450,6 +50373,33 @@ ${codeText}
|
|
|
50450
50373
|
return false;
|
|
50451
50374
|
}
|
|
50452
50375
|
}
|
|
50376
|
+
class SelectionProvider {
|
|
50377
|
+
constructor(editor) {
|
|
50378
|
+
__publicField(this, "id", "SelectionProvider");
|
|
50379
|
+
__publicField(this, "getInsertCommands", () => []);
|
|
50380
|
+
this.editor = editor;
|
|
50381
|
+
}
|
|
50382
|
+
getAvailableCommands(editor, block, range, params) {
|
|
50383
|
+
const disabled = !isTextKindBlock(editor, block) || isSelectBoxOnly(editor);
|
|
50384
|
+
if (disabled && (params == null ? void 0 : params.isFilter)) {
|
|
50385
|
+
return [];
|
|
50386
|
+
}
|
|
50387
|
+
return [
|
|
50388
|
+
{
|
|
50389
|
+
name: i18n$1.t("commands.selectBlock"),
|
|
50390
|
+
id: "select-block",
|
|
50391
|
+
states: disabled ? ["disabled"] : []
|
|
50392
|
+
}
|
|
50393
|
+
];
|
|
50394
|
+
}
|
|
50395
|
+
executeCommand(editor, block, range, command) {
|
|
50396
|
+
if (command.id === "select-block") {
|
|
50397
|
+
editor.selection.selectBlock(block, 0, getBlockTextLength$6(editor, block));
|
|
50398
|
+
return true;
|
|
50399
|
+
}
|
|
50400
|
+
return false;
|
|
50401
|
+
}
|
|
50402
|
+
}
|
|
50453
50403
|
const logger$1S = getLogger("toolbar-handler");
|
|
50454
50404
|
class OnesEditorToolbar {
|
|
50455
50405
|
constructor(editor) {
|
|
@@ -50589,9 +50539,11 @@ ${codeText}
|
|
|
50589
50539
|
OnesEditorHoveringBlock.get(editor).addFilter(this);
|
|
50590
50540
|
editor.blockHooks.push(new LinkCommands(editor));
|
|
50591
50541
|
if (clientType.isMobile) {
|
|
50592
|
-
editor.editorCommandProviders.registerCommandProvider(new MobileLinkProvider(editor));
|
|
50542
|
+
editor.editorCommandProviders.registerCommandProvider(new MobileLinkProvider(editor, { linkMode: "edit" }));
|
|
50593
50543
|
editor.editorCommandProviders.registerCommandProvider(new StandardBoxProvider(editor));
|
|
50594
50544
|
editor.editorCommandProviders.registerCommandProvider(new ClipboardProvider(editor, { withPaste: true }));
|
|
50545
|
+
editor.editorCommandProviders.registerCommandProvider(new SelectionProvider(editor));
|
|
50546
|
+
editor.editorCommandProviders.registerCommandProvider(new MobileLinkProvider(editor, { linkMode: "insert" }));
|
|
50595
50547
|
} else {
|
|
50596
50548
|
editor.editorCommandProviders.registerCommandProvider(new BlockTurnIntoCommandProvider(editor));
|
|
50597
50549
|
editor.editorCommandProviders.registerCommandProvider(new ParagraphProvider$1(editor));
|
|
@@ -51395,28 +51347,28 @@ $$${mathData.mathjaxText}$$
|
|
|
51395
51347
|
getBlockProperties: getBlockProperties$b
|
|
51396
51348
|
};
|
|
51397
51349
|
const mathjaxStyle = "";
|
|
51398
|
-
const zhCN$
|
|
51350
|
+
const zhCN$s = {
|
|
51399
51351
|
mathjax: {
|
|
51400
51352
|
emptyText: "\u7A7A\u7684\u516C\u5F0F",
|
|
51401
51353
|
abstract: "\u516C\u5F0F"
|
|
51402
51354
|
}
|
|
51403
51355
|
};
|
|
51404
|
-
const enUS$
|
|
51356
|
+
const enUS$s = {
|
|
51405
51357
|
mathjax: {
|
|
51406
51358
|
emptyText: "Empty formula",
|
|
51407
51359
|
abstract: "Formula"
|
|
51408
51360
|
}
|
|
51409
51361
|
};
|
|
51410
|
-
const jaJP$
|
|
51362
|
+
const jaJP$s = {
|
|
51411
51363
|
mathjax: {
|
|
51412
51364
|
emptyText: "\u6570\u5F0F\u306A\u3057",
|
|
51413
51365
|
abstract: "\u6570\u5F0F"
|
|
51414
51366
|
}
|
|
51415
51367
|
};
|
|
51416
51368
|
i18n$1.mergeLang({
|
|
51417
|
-
"zh-CN": zhCN$
|
|
51418
|
-
"en-US": enUS$
|
|
51419
|
-
"ja-JP": jaJP$
|
|
51369
|
+
"zh-CN": zhCN$s,
|
|
51370
|
+
"en-US": enUS$s,
|
|
51371
|
+
"ja-JP": jaJP$s
|
|
51420
51372
|
});
|
|
51421
51373
|
function convertToMath(editor, containerId, blockIndex, offset) {
|
|
51422
51374
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -57182,7 +57134,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57182
57134
|
}
|
|
57183
57135
|
}
|
|
57184
57136
|
__publicField(StatusBoxCommand, "id", "insert-status");
|
|
57185
|
-
const enUS$
|
|
57137
|
+
const enUS$r = {
|
|
57186
57138
|
status: {
|
|
57187
57139
|
empty: "Set status",
|
|
57188
57140
|
command: {
|
|
@@ -57206,7 +57158,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57206
57158
|
}
|
|
57207
57159
|
}
|
|
57208
57160
|
};
|
|
57209
|
-
const zhCN$
|
|
57161
|
+
const zhCN$r = {
|
|
57210
57162
|
status: {
|
|
57211
57163
|
empty: "\u8BBE\u7F6E\u72B6\u6001",
|
|
57212
57164
|
command: {
|
|
@@ -57230,7 +57182,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57230
57182
|
}
|
|
57231
57183
|
}
|
|
57232
57184
|
};
|
|
57233
|
-
const jaJP$
|
|
57185
|
+
const jaJP$r = {
|
|
57234
57186
|
status: {
|
|
57235
57187
|
empty: "\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8A2D\u5B9A",
|
|
57236
57188
|
command: {
|
|
@@ -57255,9 +57207,9 @@ $$${mathData.mathjaxText}$$
|
|
|
57255
57207
|
}
|
|
57256
57208
|
};
|
|
57257
57209
|
const langs$2 = {
|
|
57258
|
-
"en-US": enUS$
|
|
57259
|
-
"zh-CN": zhCN$
|
|
57260
|
-
"ja-JP": jaJP$
|
|
57210
|
+
"en-US": enUS$r,
|
|
57211
|
+
"zh-CN": zhCN$r,
|
|
57212
|
+
"ja-JP": jaJP$r
|
|
57261
57213
|
};
|
|
57262
57214
|
i18n$1.mergeLang(langs$2);
|
|
57263
57215
|
const logger$1M = getLogger("inline-box-items");
|
|
@@ -57464,7 +57416,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57464
57416
|
}
|
|
57465
57417
|
});
|
|
57466
57418
|
};
|
|
57467
|
-
class InsertMenuProvider
|
|
57419
|
+
class InsertMenuProvider extends ProxyProvider {
|
|
57468
57420
|
constructor(editor, options) {
|
|
57469
57421
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
57470
57422
|
super();
|
|
@@ -57646,7 +57598,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57646
57598
|
return {};
|
|
57647
57599
|
});
|
|
57648
57600
|
this.editor = editor;
|
|
57649
|
-
this.registerCommandProvider(new InsertMenuProvider
|
|
57601
|
+
this.registerCommandProvider(new InsertMenuProvider(editor, { withPlainText: false }));
|
|
57650
57602
|
}
|
|
57651
57603
|
getCommands(range) {
|
|
57652
57604
|
var _a, _b;
|
|
@@ -57988,8 +57940,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57988
57940
|
function getTextCommands(editor, blockCommands) {
|
|
57989
57941
|
const styleCommandsSet = new Set(Object.keys(TextCommands));
|
|
57990
57942
|
const styleCommands = blockCommands.filter((command) => styleCommandsSet.has(command.id));
|
|
57991
|
-
|
|
57992
|
-
return commands;
|
|
57943
|
+
return styleCommands;
|
|
57993
57944
|
}
|
|
57994
57945
|
function executeShortcut(editor, style2) {
|
|
57995
57946
|
if (!editor.isWritable()) {
|
|
@@ -58043,7 +57994,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58043
57994
|
"CtrlOrCmd+K": (editor) => executeShortcut(editor, "link"),
|
|
58044
57995
|
...headingShortcut()
|
|
58045
57996
|
};
|
|
58046
|
-
const zhCN$
|
|
57997
|
+
const zhCN$q = {
|
|
58047
57998
|
quickMenu: {
|
|
58048
57999
|
basic: {
|
|
58049
58000
|
heading: {
|
|
@@ -58087,10 +58038,19 @@ $$${mathData.mathjaxText}$$
|
|
|
58087
58038
|
text: "\u6B63\u6587",
|
|
58088
58039
|
paste: "\u7C98\u8D34",
|
|
58089
58040
|
tab: "Tab",
|
|
58090
|
-
shiftTab: "Shift+Tab"
|
|
58041
|
+
shiftTab: "Shift+Tab",
|
|
58042
|
+
bold: "\u7C97\u4F53",
|
|
58043
|
+
italic: "\u659C\u4F53",
|
|
58044
|
+
underline: "\u4E0B\u5212\u7EBF",
|
|
58045
|
+
strikethrough: "\u5220\u9664\u7EBF",
|
|
58046
|
+
code: "\u884C\u5185\u4EE3\u7801",
|
|
58047
|
+
subscript: "\u4E0B\u6807",
|
|
58048
|
+
superscript: "\u4E0A\u6807",
|
|
58049
|
+
more: "\u66F4\u591A",
|
|
58050
|
+
selectBlock: "\u9009\u62E9\u533A\u5757"
|
|
58091
58051
|
}
|
|
58092
58052
|
};
|
|
58093
|
-
const enUS$
|
|
58053
|
+
const enUS$q = {
|
|
58094
58054
|
quickMenu: {
|
|
58095
58055
|
basic: {
|
|
58096
58056
|
heading: {
|
|
@@ -58134,10 +58094,19 @@ $$${mathData.mathjaxText}$$
|
|
|
58134
58094
|
text: "Text",
|
|
58135
58095
|
paste: "Paste",
|
|
58136
58096
|
tab: "Tab",
|
|
58137
|
-
shiftTab: "Shift+Tab"
|
|
58097
|
+
shiftTab: "Shift+Tab",
|
|
58098
|
+
bold: "Bold",
|
|
58099
|
+
italic: "Italic",
|
|
58100
|
+
underline: "Underline",
|
|
58101
|
+
strikethrough: "Strikethrough",
|
|
58102
|
+
code: "Inline code",
|
|
58103
|
+
subscript: "Subscript",
|
|
58104
|
+
superscript: "Superscript",
|
|
58105
|
+
more: "More",
|
|
58106
|
+
selectBlock: "Select Block"
|
|
58138
58107
|
}
|
|
58139
58108
|
};
|
|
58140
|
-
const jaJP$
|
|
58109
|
+
const jaJP$q = {
|
|
58141
58110
|
quickMenu: {
|
|
58142
58111
|
basic: {
|
|
58143
58112
|
heading: {
|
|
@@ -58181,13 +58150,22 @@ $$${mathData.mathjaxText}$$
|
|
|
58181
58150
|
text: "\u672C\u6587",
|
|
58182
58151
|
paste: "\u8CBC\u308A\u4ED8\u3051",
|
|
58183
58152
|
tab: "\u30BF\u30D6",
|
|
58184
|
-
shiftTab: "Shift+Tab"
|
|
58153
|
+
shiftTab: "Shift+Tab",
|
|
58154
|
+
bold: "\u592A\u5B57",
|
|
58155
|
+
italic: "\u659C\u4F53",
|
|
58156
|
+
underline: "\u4E0B\u7DDA",
|
|
58157
|
+
strikethrough: "\u53D6\u308A\u6D88\u3057\u7DDA",
|
|
58158
|
+
code: "\u30A4\u30F3\u30E9\u30A4\u30F3\u30B3\u30FC\u30C9",
|
|
58159
|
+
subscript: "\u4E0B\u4ED8\u304D\u6587\u5B57",
|
|
58160
|
+
superscript: "\u4E0A\u4ED8\u304D\u6587\u5B57",
|
|
58161
|
+
more: "\u305D\u306E\u4ED6",
|
|
58162
|
+
selectBlock: "\u30D6\u30ED\u30C3\u30AF\u3092\u9078\u629E"
|
|
58185
58163
|
}
|
|
58186
58164
|
};
|
|
58187
58165
|
i18n$1.mergeLang({
|
|
58188
|
-
"zh-CN": zhCN$
|
|
58189
|
-
"en-US": enUS$
|
|
58190
|
-
"ja-JP": jaJP$
|
|
58166
|
+
"zh-CN": zhCN$q,
|
|
58167
|
+
"en-US": enUS$q,
|
|
58168
|
+
"ja-JP": jaJP$q
|
|
58191
58169
|
});
|
|
58192
58170
|
class TextStylesFixedProvider extends ProxyProvider {
|
|
58193
58171
|
constructor(editor, afterCommandCallback) {
|
|
@@ -58297,7 +58275,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58297
58275
|
return false;
|
|
58298
58276
|
});
|
|
58299
58277
|
this.editor = editor;
|
|
58300
|
-
this.providers = [new InsertMenuProvider
|
|
58278
|
+
this.providers = [new InsertMenuProvider(this.editor)];
|
|
58301
58279
|
}
|
|
58302
58280
|
}
|
|
58303
58281
|
class InsertAfterProvider extends ProxyProvider {
|
|
@@ -58344,7 +58322,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58344
58322
|
return false;
|
|
58345
58323
|
});
|
|
58346
58324
|
this.editor = editor;
|
|
58347
|
-
this.providers = [new InsertMenuProvider
|
|
58325
|
+
this.providers = [new InsertMenuProvider(this.editor)];
|
|
58348
58326
|
}
|
|
58349
58327
|
}
|
|
58350
58328
|
class InsertGroupProvider extends ProxyProvider {
|
|
@@ -58535,7 +58513,6 @@ $$${mathData.mathjaxText}$$
|
|
|
58535
58513
|
__publicField(this, "handleItemClick", (bar2, item) => {
|
|
58536
58514
|
assert(logger$1H, this.commandBlock, "no command block before show block menu");
|
|
58537
58515
|
this.blockCommandProviders.executeCommand(this.editor.selection.range, item);
|
|
58538
|
-
this.close();
|
|
58539
58516
|
});
|
|
58540
58517
|
__publicField(this, "close", () => {
|
|
58541
58518
|
this.menu.close("clickItem");
|
|
@@ -58543,7 +58520,8 @@ $$${mathData.mathjaxText}$$
|
|
|
58543
58520
|
this.editor = editor;
|
|
58544
58521
|
this.blockCommandProviders = new BlockCommandProviders(editor, this.close);
|
|
58545
58522
|
this.menu = new ManualMenu([], void 0, {
|
|
58546
|
-
id: "block-menu"
|
|
58523
|
+
id: "block-menu",
|
|
58524
|
+
autoClose: true
|
|
58547
58525
|
});
|
|
58548
58526
|
this.menu.on("show", this.handleShow);
|
|
58549
58527
|
this.menu.on("close", this.handleClose);
|
|
@@ -58600,6 +58578,12 @@ $$${mathData.mathjaxText}$$
|
|
|
58600
58578
|
}
|
|
58601
58579
|
return styles1;
|
|
58602
58580
|
}
|
|
58581
|
+
function mergeActiveStyle(editor, style2) {
|
|
58582
|
+
var _a;
|
|
58583
|
+
const attributes = Object.fromEntries(style2.entries());
|
|
58584
|
+
(_a = editor.findCustom("block-attributes-handler")) == null ? void 0 : _a.setActiveBlockAttributes(attributes);
|
|
58585
|
+
return new Map(Object.entries(attributes));
|
|
58586
|
+
}
|
|
58603
58587
|
function applyTextStyle(editor, block, range, style2, value) {
|
|
58604
58588
|
assert(logger$1G, range.isSimple(), "invalid range");
|
|
58605
58589
|
const { start, end } = range;
|
|
@@ -58620,11 +58604,12 @@ $$${mathData.mathjaxText}$$
|
|
|
58620
58604
|
editor.setBlockText(block, newText);
|
|
58621
58605
|
return newText;
|
|
58622
58606
|
}
|
|
58623
|
-
function getStandardTextStyles(textStyles, text2) {
|
|
58607
|
+
function getStandardTextStyles(editor, textStyles, text2) {
|
|
58624
58608
|
if (getTextLength(text2) === 0) {
|
|
58625
58609
|
return textStyles;
|
|
58626
58610
|
}
|
|
58627
|
-
|
|
58611
|
+
let styles = getIntersectionStyles(text2);
|
|
58612
|
+
styles = mergeActiveStyle(editor, styles);
|
|
58628
58613
|
function getTextStyle(item) {
|
|
58629
58614
|
const { id, icon, desc, name } = item;
|
|
58630
58615
|
const value = styles.get(id);
|
|
@@ -58668,7 +58653,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58668
58653
|
return subText2;
|
|
58669
58654
|
}
|
|
58670
58655
|
const logger$1F = getLogger("text-commands");
|
|
58671
|
-
function getCommands$1(text2) {
|
|
58656
|
+
function getCommands$1(editor, text2) {
|
|
58672
58657
|
const StandardTextStyles = {
|
|
58673
58658
|
"style-bold": [i18n$1.t("commands.bold"), shortcutToDisplayText("CtrlOrCmd+B"), BoldIcon],
|
|
58674
58659
|
"style-italic": [i18n$1.t("commands.italic"), shortcutToDisplayText("CtrlOrCmd+I"), ItalicIcon],
|
|
@@ -58681,7 +58666,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58681
58666
|
icon,
|
|
58682
58667
|
desc
|
|
58683
58668
|
}));
|
|
58684
|
-
return getStandardTextStyles(standardItems, text2);
|
|
58669
|
+
return getStandardTextStyles(editor, standardItems, text2);
|
|
58685
58670
|
}
|
|
58686
58671
|
function executeStyleCommand(editor, block, range, command, params, result) {
|
|
58687
58672
|
if (!command.startsWith("style-")) {
|
|
@@ -58711,10 +58696,10 @@ $$${mathData.mathjaxText}$$
|
|
|
58711
58696
|
}
|
|
58712
58697
|
let commands;
|
|
58713
58698
|
if (getBlockTextLength$6(editor, block) === 0 || !isTextKindBlock(editor, block)) {
|
|
58714
|
-
commands = getCommands$1([]);
|
|
58699
|
+
commands = getCommands$1(editor, []);
|
|
58715
58700
|
} else {
|
|
58716
58701
|
const subText2 = getSubText(editor, block, range);
|
|
58717
|
-
commands = getCommands$1(subText2);
|
|
58702
|
+
commands = getCommands$1(editor, subText2);
|
|
58718
58703
|
}
|
|
58719
58704
|
if (!(params == null ? void 0 : params.isFilter)) {
|
|
58720
58705
|
commands.forEach((item) => {
|
|
@@ -58830,7 +58815,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58830
58815
|
return false;
|
|
58831
58816
|
}
|
|
58832
58817
|
}
|
|
58833
|
-
function getCommands(text2) {
|
|
58818
|
+
function getCommands(editor, text2) {
|
|
58834
58819
|
const StandardTextStyles = {
|
|
58835
58820
|
"style-super": [i18n$1.t("commands.superscript"), void 0, SuperscriptIcon],
|
|
58836
58821
|
"style-sub": [i18n$1.t("commands.subscript"), void 0, SubscriptIcon]
|
|
@@ -58841,7 +58826,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58841
58826
|
icon,
|
|
58842
58827
|
desc
|
|
58843
58828
|
}));
|
|
58844
|
-
return getStandardTextStyles(standardItems, text2);
|
|
58829
|
+
return getStandardTextStyles(editor, standardItems, text2);
|
|
58845
58830
|
}
|
|
58846
58831
|
class TextScriptProvider {
|
|
58847
58832
|
constructor(editor) {
|
|
@@ -58856,10 +58841,10 @@ $$${mathData.mathjaxText}$$
|
|
|
58856
58841
|
}
|
|
58857
58842
|
let commands;
|
|
58858
58843
|
if (getBlockTextLength$6(editor, block) === 0 || !isTextKindBlock(editor, block)) {
|
|
58859
|
-
commands = getCommands([]);
|
|
58844
|
+
commands = getCommands(editor, []);
|
|
58860
58845
|
} else {
|
|
58861
58846
|
const subText2 = getSubText(editor, block, range);
|
|
58862
|
-
commands = getCommands(subText2);
|
|
58847
|
+
commands = getCommands(editor, subText2);
|
|
58863
58848
|
}
|
|
58864
58849
|
if (!(params == null ? void 0 : params.isFilter)) {
|
|
58865
58850
|
commands.forEach((item) => {
|
|
@@ -59056,10 +59041,10 @@ $$${mathData.mathjaxText}$$
|
|
|
59056
59041
|
icon: InlineCodeIcon
|
|
59057
59042
|
}];
|
|
59058
59043
|
if (getBlockTextLength$6(editor, block) === 0 || !isTextKindBlock(editor, block)) {
|
|
59059
|
-
commands = getStandardTextStyles(commands, []);
|
|
59044
|
+
commands = getStandardTextStyles(editor, commands, []);
|
|
59060
59045
|
} else {
|
|
59061
59046
|
const subText2 = getSubText(editor, block, range);
|
|
59062
|
-
commands = getStandardTextStyles(commands, subText2);
|
|
59047
|
+
commands = getStandardTextStyles(editor, commands, subText2);
|
|
59063
59048
|
}
|
|
59064
59049
|
if (!(params == null ? void 0 : params.isFilter)) {
|
|
59065
59050
|
commands.forEach((item) => {
|
|
@@ -59088,7 +59073,7 @@ $$${mathData.mathjaxText}$$
|
|
|
59088
59073
|
}
|
|
59089
59074
|
}
|
|
59090
59075
|
class MobileLinkProvider {
|
|
59091
|
-
constructor(editor) {
|
|
59076
|
+
constructor(editor, options) {
|
|
59092
59077
|
__publicField(this, "id", "MobileLinkProvider");
|
|
59093
59078
|
__publicField(this, "insertProvider");
|
|
59094
59079
|
__publicField(this, "editProvider");
|
|
@@ -59112,12 +59097,16 @@ $$${mathData.mathjaxText}$$
|
|
|
59112
59097
|
return null;
|
|
59113
59098
|
});
|
|
59114
59099
|
__publicField(this, "getAvailableCommands", (editor, block, range, params) => {
|
|
59100
|
+
var _a, _b;
|
|
59115
59101
|
const editorRange = editor.selection.range;
|
|
59116
59102
|
const child = this.getSelectedLinkChild(editor, editorRange);
|
|
59117
|
-
if (child) {
|
|
59103
|
+
if (child && ((_a = this.options) == null ? void 0 : _a.linkMode) === "edit") {
|
|
59118
59104
|
return this.editProvider.getAvailableCommands(editor, block, range, { child });
|
|
59119
59105
|
}
|
|
59120
|
-
|
|
59106
|
+
if (((_b = this.options) == null ? void 0 : _b.linkMode) === "insert" && !child) {
|
|
59107
|
+
return this.insertProvider.getAvailableCommands(editor, block, range, { ...params, isFilter: true });
|
|
59108
|
+
}
|
|
59109
|
+
return [];
|
|
59121
59110
|
});
|
|
59122
59111
|
__publicField(this, "executeCommand", (editor, block, range, item, params, result) => {
|
|
59123
59112
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -59128,6 +59117,7 @@ $$${mathData.mathjaxText}$$
|
|
|
59128
59117
|
}
|
|
59129
59118
|
return (_f = (_e = (_d = this.insertProvider) == null ? void 0 : _d.executeCommand) == null ? void 0 : _e.call(_d, editor, block, range, item, params, result)) != null ? _f : false;
|
|
59130
59119
|
});
|
|
59120
|
+
this.options = options;
|
|
59131
59121
|
this.insertProvider = new LinkProvider(editor);
|
|
59132
59122
|
this.editProvider = new EditLinkProvider();
|
|
59133
59123
|
}
|
|
@@ -62297,7 +62287,7 @@ ${codeText}
|
|
|
62297
62287
|
};
|
|
62298
62288
|
}
|
|
62299
62289
|
}
|
|
62300
|
-
const zhCN$
|
|
62290
|
+
const zhCN$p = {
|
|
62301
62291
|
code: {
|
|
62302
62292
|
title: "\u4EE3\u7801",
|
|
62303
62293
|
abstract: "\u4EE3\u7801",
|
|
@@ -62309,7 +62299,7 @@ ${codeText}
|
|
|
62309
62299
|
plainText: "Plain Text"
|
|
62310
62300
|
}
|
|
62311
62301
|
};
|
|
62312
|
-
const enUS$
|
|
62302
|
+
const enUS$p = {
|
|
62313
62303
|
code: {
|
|
62314
62304
|
title: "Code",
|
|
62315
62305
|
abstract: "Code",
|
|
@@ -62321,7 +62311,7 @@ ${codeText}
|
|
|
62321
62311
|
plainText: "Plain Text"
|
|
62322
62312
|
}
|
|
62323
62313
|
};
|
|
62324
|
-
const jaJP$
|
|
62314
|
+
const jaJP$p = {
|
|
62325
62315
|
code: {
|
|
62326
62316
|
title: "\u30B3\u30FC\u30C9",
|
|
62327
62317
|
abstract: "\u30B3\u30FC\u30C9",
|
|
@@ -62334,9 +62324,9 @@ ${codeText}
|
|
|
62334
62324
|
}
|
|
62335
62325
|
};
|
|
62336
62326
|
i18n$1.mergeLang({
|
|
62337
|
-
"zh-CN": zhCN$
|
|
62338
|
-
"en-US": enUS$
|
|
62339
|
-
"ja-JP": jaJP$
|
|
62327
|
+
"zh-CN": zhCN$p,
|
|
62328
|
+
"en-US": enUS$p,
|
|
62329
|
+
"ja-JP": jaJP$p
|
|
62340
62330
|
});
|
|
62341
62331
|
function convertToTable(editor, containerId, blockIndex, offset) {
|
|
62342
62332
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -62724,7 +62714,7 @@ ${codeText}
|
|
|
62724
62714
|
return false;
|
|
62725
62715
|
}
|
|
62726
62716
|
}
|
|
62727
|
-
const enUS$
|
|
62717
|
+
const enUS$o = {
|
|
62728
62718
|
placeholder: {
|
|
62729
62719
|
default: "Type / for commands",
|
|
62730
62720
|
heading: "Heading {heading}",
|
|
@@ -62735,7 +62725,7 @@ ${codeText}
|
|
|
62735
62725
|
mobileDefault: "Type to add content"
|
|
62736
62726
|
}
|
|
62737
62727
|
};
|
|
62738
|
-
const zhCN$
|
|
62728
|
+
const zhCN$o = {
|
|
62739
62729
|
placeholder: {
|
|
62740
62730
|
default: "\u8F93\u5165\u300C/\u300D\u5FEB\u901F\u63D2\u5165",
|
|
62741
62731
|
heading: "\u6807\u9898{heading}",
|
|
@@ -62746,7 +62736,7 @@ ${codeText}
|
|
|
62746
62736
|
mobileDefault: "\u8F93\u5165\u4EE5\u6DFB\u52A0\u5185\u5BB9"
|
|
62747
62737
|
}
|
|
62748
62738
|
};
|
|
62749
|
-
const jaJP$
|
|
62739
|
+
const jaJP$o = {
|
|
62750
62740
|
placeholder: {
|
|
62751
62741
|
default: "\u300C/\u300D\u3092\u5165\u529B\u3057\u3066\u7D20\u65E9\u304F\u633F\u5165\u3059\u308B",
|
|
62752
62742
|
heading: "\u898B\u51FA\u3057{heading}",
|
|
@@ -62758,9 +62748,9 @@ ${codeText}
|
|
|
62758
62748
|
}
|
|
62759
62749
|
};
|
|
62760
62750
|
const langs$1 = {
|
|
62761
|
-
"en-US": enUS$
|
|
62762
|
-
"zh-CN": zhCN$
|
|
62763
|
-
"ja-JP": jaJP$
|
|
62751
|
+
"en-US": enUS$o,
|
|
62752
|
+
"zh-CN": zhCN$o,
|
|
62753
|
+
"ja-JP": jaJP$o
|
|
62764
62754
|
};
|
|
62765
62755
|
i18n$1.mergeLang(langs$1);
|
|
62766
62756
|
function isEmptyTextBlockWithoutCompositionText(editor, block) {
|
|
@@ -63487,7 +63477,7 @@ ${codeText}
|
|
|
63487
63477
|
this.rootButton.destroy();
|
|
63488
63478
|
}
|
|
63489
63479
|
}
|
|
63490
|
-
const zhCN$
|
|
63480
|
+
const zhCN$n = {
|
|
63491
63481
|
blockMenu: {
|
|
63492
63482
|
section: {
|
|
63493
63483
|
basics: "\u57FA\u7840",
|
|
@@ -63511,7 +63501,7 @@ ${codeText}
|
|
|
63511
63501
|
}
|
|
63512
63502
|
}
|
|
63513
63503
|
};
|
|
63514
|
-
const enUS$
|
|
63504
|
+
const enUS$n = {
|
|
63515
63505
|
blockMenu: {
|
|
63516
63506
|
section: {
|
|
63517
63507
|
basics: "Basic",
|
|
@@ -63535,7 +63525,7 @@ ${codeText}
|
|
|
63535
63525
|
}
|
|
63536
63526
|
}
|
|
63537
63527
|
};
|
|
63538
|
-
const jaJP$
|
|
63528
|
+
const jaJP$n = {
|
|
63539
63529
|
blockMenu: {
|
|
63540
63530
|
section: {
|
|
63541
63531
|
basics: "\u4E00\u822C",
|
|
@@ -63560,9 +63550,9 @@ ${codeText}
|
|
|
63560
63550
|
}
|
|
63561
63551
|
};
|
|
63562
63552
|
i18n$1.mergeLang({
|
|
63563
|
-
"zh-CN": zhCN$
|
|
63564
|
-
"en-US": enUS$
|
|
63565
|
-
"ja-JP": jaJP$
|
|
63553
|
+
"zh-CN": zhCN$n,
|
|
63554
|
+
"en-US": enUS$n,
|
|
63555
|
+
"ja-JP": jaJP$n
|
|
63566
63556
|
});
|
|
63567
63557
|
const style$6 = "";
|
|
63568
63558
|
class DragData {
|
|
@@ -64518,7 +64508,7 @@ ${codeText}
|
|
|
64518
64508
|
}
|
|
64519
64509
|
}
|
|
64520
64510
|
}
|
|
64521
|
-
const zhCN$
|
|
64511
|
+
const zhCN$m = {
|
|
64522
64512
|
image: {
|
|
64523
64513
|
title: "\u56FE\u7247",
|
|
64524
64514
|
upload: {
|
|
@@ -64534,7 +64524,7 @@ ${codeText}
|
|
|
64534
64524
|
abstract: "\u56FE\u7247"
|
|
64535
64525
|
}
|
|
64536
64526
|
};
|
|
64537
|
-
const enUS$
|
|
64527
|
+
const enUS$m = {
|
|
64538
64528
|
image: {
|
|
64539
64529
|
title: "Image",
|
|
64540
64530
|
upload: {
|
|
@@ -64550,7 +64540,7 @@ ${codeText}
|
|
|
64550
64540
|
abstract: "Image"
|
|
64551
64541
|
}
|
|
64552
64542
|
};
|
|
64553
|
-
const jaJP$
|
|
64543
|
+
const jaJP$m = {
|
|
64554
64544
|
image: {
|
|
64555
64545
|
title: "\u753B\u50CF",
|
|
64556
64546
|
upload: {
|
|
@@ -64567,9 +64557,9 @@ ${codeText}
|
|
|
64567
64557
|
}
|
|
64568
64558
|
};
|
|
64569
64559
|
i18n$1.mergeLang({
|
|
64570
|
-
"zh-CN": zhCN$
|
|
64571
|
-
"en-US": enUS$
|
|
64572
|
-
"ja-JP": jaJP$
|
|
64560
|
+
"zh-CN": zhCN$m,
|
|
64561
|
+
"en-US": enUS$m,
|
|
64562
|
+
"ja-JP": jaJP$m
|
|
64573
64563
|
});
|
|
64574
64564
|
function convertToImage(editor, containerId, blockIndex, offset) {
|
|
64575
64565
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -64937,28 +64927,28 @@ ${codeText}
|
|
|
64937
64927
|
}
|
|
64938
64928
|
return getDragInsertPos(editor, block, images, x);
|
|
64939
64929
|
}
|
|
64940
|
-
const zhCN$
|
|
64930
|
+
const zhCN$l = {
|
|
64941
64931
|
embedProperties: {
|
|
64942
64932
|
edit: "\u7F16\u8F91",
|
|
64943
64933
|
addComment: "\u6DFB\u52A0\u6279\u6CE8"
|
|
64944
64934
|
}
|
|
64945
64935
|
};
|
|
64946
|
-
const enUS$
|
|
64936
|
+
const enUS$l = {
|
|
64947
64937
|
embedProperties: {
|
|
64948
64938
|
edit: "Edit",
|
|
64949
64939
|
addComment: "Add annotation"
|
|
64950
64940
|
}
|
|
64951
64941
|
};
|
|
64952
|
-
const jaJP$
|
|
64942
|
+
const jaJP$l = {
|
|
64953
64943
|
embedProperties: {
|
|
64954
64944
|
edit: "\u7DE8\u96C6",
|
|
64955
64945
|
addComment: "\u6CE8\u91C8\u3092\u8FFD\u52A0"
|
|
64956
64946
|
}
|
|
64957
64947
|
};
|
|
64958
64948
|
i18n$1.mergeLang({
|
|
64959
|
-
"zh-CN": zhCN$
|
|
64960
|
-
"en-US": enUS$
|
|
64961
|
-
"ja-JP": jaJP$
|
|
64949
|
+
"zh-CN": zhCN$l,
|
|
64950
|
+
"en-US": enUS$l,
|
|
64951
|
+
"ja-JP": jaJP$l
|
|
64962
64952
|
});
|
|
64963
64953
|
const logger$1c = getLogger("embed-block-properties");
|
|
64964
64954
|
function addCommentToBlock(editor, block) {
|
|
@@ -67538,7 +67528,7 @@ ${codeText}
|
|
|
67538
67528
|
}
|
|
67539
67529
|
}
|
|
67540
67530
|
const style$5 = "";
|
|
67541
|
-
const zhCN$
|
|
67531
|
+
const zhCN$k = {
|
|
67542
67532
|
comment: {
|
|
67543
67533
|
count: "\u6279\u6CE8 ({num})",
|
|
67544
67534
|
hide: "\u9690\u85CF\u6279\u6CE8",
|
|
@@ -67561,7 +67551,7 @@ ${codeText}
|
|
|
67561
67551
|
quickMenuCommand: "\u6DFB\u52A0\u6279\u6CE8"
|
|
67562
67552
|
}
|
|
67563
67553
|
};
|
|
67564
|
-
const enUS$
|
|
67554
|
+
const enUS$k = {
|
|
67565
67555
|
comment: {
|
|
67566
67556
|
count: "Annotations ({num})",
|
|
67567
67557
|
hide: "Hide Annotations",
|
|
@@ -67584,7 +67574,7 @@ ${codeText}
|
|
|
67584
67574
|
quickMenuCommand: "Add annotation"
|
|
67585
67575
|
}
|
|
67586
67576
|
};
|
|
67587
|
-
const jaJP$
|
|
67577
|
+
const jaJP$k = {
|
|
67588
67578
|
comment: {
|
|
67589
67579
|
count: "\u6CE8\u91C8 ({num})",
|
|
67590
67580
|
hide: "\u6CE8\u91C8\u3092\u975E\u8868\u793A",
|
|
@@ -67608,9 +67598,9 @@ ${codeText}
|
|
|
67608
67598
|
}
|
|
67609
67599
|
};
|
|
67610
67600
|
i18n$1.mergeLang({
|
|
67611
|
-
"zh-CN": zhCN$
|
|
67612
|
-
"en-US": enUS$
|
|
67613
|
-
"ja-JP": jaJP$
|
|
67601
|
+
"zh-CN": zhCN$k,
|
|
67602
|
+
"en-US": enUS$k,
|
|
67603
|
+
"ja-JP": jaJP$k
|
|
67614
67604
|
});
|
|
67615
67605
|
class OnesEditorCommentsRender {
|
|
67616
67606
|
renderText(editor, path, attributes) {
|
|
@@ -70195,7 +70185,7 @@ ${codeText}
|
|
|
70195
70185
|
return void 0;
|
|
70196
70186
|
}
|
|
70197
70187
|
};
|
|
70198
|
-
const zhCN$
|
|
70188
|
+
const zhCN$j = {
|
|
70199
70189
|
table: {
|
|
70200
70190
|
cellBackground: "\u5355\u5143\u683C\u80CC\u666F\u8272",
|
|
70201
70191
|
deleteSelectRow: "\u5220\u9664\u6240\u9009\u884C",
|
|
@@ -70226,7 +70216,7 @@ ${codeText}
|
|
|
70226
70216
|
}
|
|
70227
70217
|
}
|
|
70228
70218
|
};
|
|
70229
|
-
const enUS$
|
|
70219
|
+
const enUS$j = {
|
|
70230
70220
|
table: {
|
|
70231
70221
|
cellBackground: "Cell background color",
|
|
70232
70222
|
deleteSelectRow: "Delete selected rows",
|
|
@@ -70257,7 +70247,7 @@ ${codeText}
|
|
|
70257
70247
|
}
|
|
70258
70248
|
}
|
|
70259
70249
|
};
|
|
70260
|
-
const jaJP$
|
|
70250
|
+
const jaJP$j = {
|
|
70261
70251
|
table: {
|
|
70262
70252
|
cellBackground: "\u30BB\u30EB\u306E\u80CC\u666F\u8272",
|
|
70263
70253
|
deleteSelectRow: "\u9078\u629E\u3057\u305F\u884C\u3092\u524A\u9664",
|
|
@@ -70289,9 +70279,9 @@ ${codeText}
|
|
|
70289
70279
|
}
|
|
70290
70280
|
};
|
|
70291
70281
|
i18n$1.mergeLang({
|
|
70292
|
-
"zh-CN": zhCN$
|
|
70293
|
-
"en-US": enUS$
|
|
70294
|
-
"ja-JP": jaJP$
|
|
70282
|
+
"zh-CN": zhCN$j,
|
|
70283
|
+
"en-US": enUS$j,
|
|
70284
|
+
"ja-JP": jaJP$j
|
|
70295
70285
|
});
|
|
70296
70286
|
const tableStyle = "";
|
|
70297
70287
|
const logger$N = getLogger("table");
|
|
@@ -70555,13 +70545,7 @@ ${codeText}
|
|
|
70555
70545
|
if (!clientType.isMobile) {
|
|
70556
70546
|
this.item.children = items;
|
|
70557
70547
|
} else {
|
|
70558
|
-
const
|
|
70559
|
-
id: "",
|
|
70560
|
-
name: "",
|
|
70561
|
-
type: "separator"
|
|
70562
|
-
};
|
|
70563
|
-
const commands = items.reduce((prev, curr) => prev.concat([SEP2, curr]), []);
|
|
70564
|
-
commands.shift();
|
|
70548
|
+
const commands = groupEachCommand(items);
|
|
70565
70549
|
this.toolbar.updateItems(commands);
|
|
70566
70550
|
}
|
|
70567
70551
|
this.toolbar.manualShow(this.anchor, {
|
|
@@ -70699,21 +70683,21 @@ ${codeText}
|
|
|
70699
70683
|
return false;
|
|
70700
70684
|
}
|
|
70701
70685
|
}
|
|
70702
|
-
const zhCN$
|
|
70686
|
+
const zhCN$i = {
|
|
70703
70687
|
pasteSpecial: {
|
|
70704
70688
|
originFormats: "\u4FDD\u6301\u539F\u6837\u5F0F",
|
|
70705
70689
|
plainText: "\u7C98\u8D34\u7EAF\u6587\u672C",
|
|
70706
70690
|
markdown: "\u7C98\u8D34\u4E3A Markdown"
|
|
70707
70691
|
}
|
|
70708
70692
|
};
|
|
70709
|
-
const enUS$
|
|
70693
|
+
const enUS$i = {
|
|
70710
70694
|
pasteSpecial: {
|
|
70711
70695
|
originFormats: "Keep origin formats",
|
|
70712
70696
|
plainText: "Paste as plain text",
|
|
70713
70697
|
markdown: "Paste as markdown"
|
|
70714
70698
|
}
|
|
70715
70699
|
};
|
|
70716
|
-
const jaJP$
|
|
70700
|
+
const jaJP$i = {
|
|
70717
70701
|
pasteSpecial: {
|
|
70718
70702
|
originFormats: "\u5143\u306E\u30B9\u30BF\u30A4\u30EB\u3092\u7DAD\u6301\u3059\u308B",
|
|
70719
70703
|
plainText: "\u30D7\u30EC\u30FC\u30F3\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u308B",
|
|
@@ -70721,9 +70705,9 @@ ${codeText}
|
|
|
70721
70705
|
}
|
|
70722
70706
|
};
|
|
70723
70707
|
i18n$1.mergeLang({
|
|
70724
|
-
"zh-CN": zhCN$
|
|
70725
|
-
"en-US": enUS$
|
|
70726
|
-
"ja-JP": jaJP$
|
|
70708
|
+
"zh-CN": zhCN$i,
|
|
70709
|
+
"en-US": enUS$i,
|
|
70710
|
+
"ja-JP": jaJP$i
|
|
70727
70711
|
});
|
|
70728
70712
|
const style$4 = "";
|
|
70729
70713
|
const logger$L = getLogger("html-to-doc");
|
|
@@ -73486,7 +73470,7 @@ ${content}
|
|
|
73486
73470
|
const eleRect = firstChild.getBoundingClientRect();
|
|
73487
73471
|
offsetTop = eleRect.y;
|
|
73488
73472
|
}
|
|
73489
|
-
scrollIntoView
|
|
73473
|
+
scrollIntoView(editor, firstChild, { animation: true });
|
|
73490
73474
|
}
|
|
73491
73475
|
function getCurrentHighligh(editor) {
|
|
73492
73476
|
const elem = editor.rootContainer.querySelector(".editor-highlight.active");
|
|
@@ -74136,7 +74120,7 @@ ${content}
|
|
|
74136
74120
|
(_a = this.dialog) == null ? void 0 : _a.destroy();
|
|
74137
74121
|
}
|
|
74138
74122
|
}
|
|
74139
|
-
const zhCN$
|
|
74123
|
+
const zhCN$h = {
|
|
74140
74124
|
find: {
|
|
74141
74125
|
findLabel: "\u67E5\u627E:",
|
|
74142
74126
|
replaceLabel: "\u66FF\u6362:",
|
|
@@ -74148,7 +74132,7 @@ ${content}
|
|
|
74148
74132
|
replacePlaceholder: "\u66FF\u6362\u4E3A"
|
|
74149
74133
|
}
|
|
74150
74134
|
};
|
|
74151
|
-
const enUS$
|
|
74135
|
+
const enUS$h = {
|
|
74152
74136
|
find: {
|
|
74153
74137
|
findLabel: "Search:",
|
|
74154
74138
|
replaceLabel: "Replace:",
|
|
@@ -74160,7 +74144,7 @@ ${content}
|
|
|
74160
74144
|
replacePlaceholder: "Replace with"
|
|
74161
74145
|
}
|
|
74162
74146
|
};
|
|
74163
|
-
const jaJP$
|
|
74147
|
+
const jaJP$h = {
|
|
74164
74148
|
find: {
|
|
74165
74149
|
findLabel: "\u691C\u7D22\uFF1A",
|
|
74166
74150
|
replaceLabel: "\u7F6E\u63DB\uFF1A",
|
|
@@ -74173,9 +74157,9 @@ ${content}
|
|
|
74173
74157
|
}
|
|
74174
74158
|
};
|
|
74175
74159
|
i18n$1.mergeLang({
|
|
74176
|
-
"zh-CN": zhCN$
|
|
74177
|
-
"en-US": enUS$
|
|
74178
|
-
"ja-JP": jaJP$
|
|
74160
|
+
"zh-CN": zhCN$h,
|
|
74161
|
+
"en-US": enUS$h,
|
|
74162
|
+
"ja-JP": jaJP$h
|
|
74179
74163
|
});
|
|
74180
74164
|
function handleFindReplace(editor) {
|
|
74181
74165
|
const dialog = editor.addCustom("find-dialog", () => new FindDialog(editor));
|
|
@@ -74445,28 +74429,28 @@ ${content}
|
|
|
74445
74429
|
this.isShown = false;
|
|
74446
74430
|
}
|
|
74447
74431
|
}
|
|
74448
|
-
const zhCN$
|
|
74432
|
+
const zhCN$g = {
|
|
74449
74433
|
authError: {
|
|
74450
74434
|
tips: '<div>\u670D\u52A1\u5DF2\u65AD\u5F00\uFF0C\u6B63\u5728\u91CD\u65B0\u8FDE\u63A5\uFF0C\u4E3A\u907F\u514D\u5185\u5BB9\u4E22\u5931\uFF0C\u6211\u4EEC\u6682\u65F6\u7981\u7528\u7F16\u8F91\u80FD\u529B\uFF0C\u4F60\u53EF\u4EE5<span id="exit">\u9000\u51FA\u7F16\u8F91</span></div>',
|
|
74451
74435
|
successTips: "<div>\u7F16\u8F91\u72B6\u6001\u5DF2\u6062\u590D\uFF0C\u4F60\u53EF\u4EE5\u7EE7\u7EED\u7F16\u8F91</div>"
|
|
74452
74436
|
}
|
|
74453
74437
|
};
|
|
74454
|
-
const enUS$
|
|
74438
|
+
const enUS$g = {
|
|
74455
74439
|
authError: {
|
|
74456
74440
|
tips: '<div>Network disconnected. To avoid any potential loss of content, editing is temporarily disabled. <span id="exit">Exit editor<span id="exit">',
|
|
74457
74441
|
successTips: "<div>The editing mode has been restored and you can now continue editing.</div>"
|
|
74458
74442
|
}
|
|
74459
74443
|
};
|
|
74460
|
-
const jaJP$
|
|
74444
|
+
const jaJP$g = {
|
|
74461
74445
|
authError: {
|
|
74462
74446
|
tips: '<div>\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3002\u30C7\u30FC\u30BF\u640D\u5931\u306E\u56DE\u907F\u306E\u305F\u3081\u306B\u3001\u63A5\u7D9A\u304C\u56DE\u5FA9\u3059\u308B\u307E\u3067\u7DE8\u96C6\u6A5F\u80FD\u306F\u4F7F\u3048\u307E\u305B\u3093\u3002<span id="exit">\u7DE8\u96C6\u3092\u7D42\u4E86</span></div>',
|
|
74463
74447
|
successTips: "<div>\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u304C\u56DE\u5FA9\u3057\u307E\u3057\u305F\u3002\u5F15\u304D\u7D9A\u3051\u3054\u7DE8\u96C6\u3044\u305F\u3060\u3051\u307E\u3059\u3002</div>"
|
|
74464
74448
|
}
|
|
74465
74449
|
};
|
|
74466
74450
|
i18n$1.mergeLang({
|
|
74467
|
-
"zh-CN": zhCN$
|
|
74468
|
-
"en-US": enUS$
|
|
74469
|
-
"ja-JP": jaJP$
|
|
74451
|
+
"zh-CN": zhCN$g,
|
|
74452
|
+
"en-US": enUS$g,
|
|
74453
|
+
"ja-JP": jaJP$g
|
|
74470
74454
|
});
|
|
74471
74455
|
const logger$B = getLogger("re-auth");
|
|
74472
74456
|
const DOC_RE_AUTH_KEYS = "doc-re-auth-event";
|
|
@@ -75041,7 +75025,7 @@ ${content}
|
|
|
75041
75025
|
return false;
|
|
75042
75026
|
}
|
|
75043
75027
|
}
|
|
75044
|
-
const zhCN$
|
|
75028
|
+
const zhCN$f = {
|
|
75045
75029
|
contextMenu: {
|
|
75046
75030
|
copyMarkdown: "\u590D\u5236\u4E3A Markdown",
|
|
75047
75031
|
paste: "\u7C98\u8D34",
|
|
@@ -75054,7 +75038,7 @@ ${content}
|
|
|
75054
75038
|
uneditableBlockSelected: "\u9009\u4E2D\u533A\u57DF\u5305\u542B\u9501\u5B9A\u533A\u5757\uFF0C\u6682\u4E0D\u652F\u6301\u526A\u5207"
|
|
75055
75039
|
}
|
|
75056
75040
|
};
|
|
75057
|
-
const enUS$
|
|
75041
|
+
const enUS$f = {
|
|
75058
75042
|
contextMenu: {
|
|
75059
75043
|
copyMarkdown: "Copy as Markdown",
|
|
75060
75044
|
paste: "Paste",
|
|
@@ -75067,7 +75051,7 @@ ${content}
|
|
|
75067
75051
|
uneditableBlockSelected: "The selected area contains locked blocks, and cutting is not currently supported"
|
|
75068
75052
|
}
|
|
75069
75053
|
};
|
|
75070
|
-
const jaJP$
|
|
75054
|
+
const jaJP$f = {
|
|
75071
75055
|
contextMenu: {
|
|
75072
75056
|
copyMarkdown: "Markdown \u3068\u3057\u3066\u30B3\u30D4\u30FC",
|
|
75073
75057
|
paste: "\u8CBC\u308A\u4ED8\u3051",
|
|
@@ -75081,9 +75065,9 @@ ${content}
|
|
|
75081
75065
|
}
|
|
75082
75066
|
};
|
|
75083
75067
|
i18n$1.mergeLang({
|
|
75084
|
-
"zh-CN": zhCN$
|
|
75085
|
-
"en-US": enUS$
|
|
75086
|
-
"ja-JP": jaJP$
|
|
75068
|
+
"zh-CN": zhCN$f,
|
|
75069
|
+
"en-US": enUS$f,
|
|
75070
|
+
"ja-JP": jaJP$f
|
|
75087
75071
|
});
|
|
75088
75072
|
function hideToolbar(editor) {
|
|
75089
75073
|
const toolbar2 = editor.findCustom("toolbar-handler");
|
|
@@ -75109,47 +75093,6 @@ ${content}
|
|
|
75109
75093
|
"CtrlOrCmd+Z": undoHandler,
|
|
75110
75094
|
"CtrlOrCmd+Shift+Z": redoHandler
|
|
75111
75095
|
};
|
|
75112
|
-
const zhCN$f = {
|
|
75113
|
-
commands: {
|
|
75114
|
-
bold: "\u7C97\u4F53",
|
|
75115
|
-
italic: "\u659C\u4F53",
|
|
75116
|
-
underline: "\u4E0B\u5212\u7EBF",
|
|
75117
|
-
strikethrough: "\u5220\u9664\u7EBF",
|
|
75118
|
-
code: "\u884C\u5185\u4EE3\u7801",
|
|
75119
|
-
subscript: "\u4E0B\u6807",
|
|
75120
|
-
superscript: "\u4E0A\u6807",
|
|
75121
|
-
more: "\u66F4\u591A"
|
|
75122
|
-
}
|
|
75123
|
-
};
|
|
75124
|
-
const enUS$f = {
|
|
75125
|
-
commands: {
|
|
75126
|
-
bold: "Bold",
|
|
75127
|
-
italic: "Italic",
|
|
75128
|
-
underline: "Underline",
|
|
75129
|
-
strikethrough: "Strikethrough",
|
|
75130
|
-
code: "Inline code",
|
|
75131
|
-
subscript: "Subscript",
|
|
75132
|
-
superscript: "Superscript",
|
|
75133
|
-
more: "More"
|
|
75134
|
-
}
|
|
75135
|
-
};
|
|
75136
|
-
const jaJP$f = {
|
|
75137
|
-
commands: {
|
|
75138
|
-
bold: "\u592A\u5B57",
|
|
75139
|
-
italic: "\u659C\u4F53",
|
|
75140
|
-
underline: "\u4E0B\u7DDA",
|
|
75141
|
-
strikethrough: "\u53D6\u308A\u6D88\u3057\u7DDA",
|
|
75142
|
-
code: "\u30A4\u30F3\u30E9\u30A4\u30F3\u30B3\u30FC\u30C9",
|
|
75143
|
-
subscript: "\u4E0B\u4ED8\u304D\u6587\u5B57",
|
|
75144
|
-
superscript: "\u4E0A\u4ED8\u304D\u6587\u5B57",
|
|
75145
|
-
more: "\u305D\u306E\u4ED6"
|
|
75146
|
-
}
|
|
75147
|
-
};
|
|
75148
|
-
i18n$1.mergeLang({
|
|
75149
|
-
"zh-CN": zhCN$f,
|
|
75150
|
-
"en-US": enUS$f,
|
|
75151
|
-
"ja-JP": jaJP$f
|
|
75152
|
-
});
|
|
75153
75096
|
var FilePreviewType = /* @__PURE__ */ ((FilePreviewType2) => {
|
|
75154
75097
|
FilePreviewType2["Card"] = "card";
|
|
75155
75098
|
FilePreviewType2["Preview"] = "preview";
|
|
@@ -78410,7 +78353,7 @@ ${content}
|
|
|
78410
78353
|
const mobileWrap = this.getMobileCommandElement();
|
|
78411
78354
|
const input2 = mobileWrap.querySelector("input");
|
|
78412
78355
|
input2.focus();
|
|
78413
|
-
|
|
78356
|
+
scrollBarIntoView(this.editor, bar2.menu.menu);
|
|
78414
78357
|
}
|
|
78415
78358
|
});
|
|
78416
78359
|
__publicField(this, "handleClickItem", (item) => {
|
|
@@ -79687,86 +79630,31 @@ ${content}
|
|
|
79687
79630
|
removeClass(this.endGripper, "active");
|
|
79688
79631
|
}
|
|
79689
79632
|
}
|
|
79690
|
-
class
|
|
79633
|
+
class MobileInsertMenuProvider extends ProxyProvider {
|
|
79691
79634
|
constructor(editor) {
|
|
79692
79635
|
super();
|
|
79693
79636
|
__publicField(this, "id", "InsertMenuProvider");
|
|
79694
79637
|
__publicField(this, "providers", []);
|
|
79695
79638
|
__publicField(this, "getInsertCommands", () => []);
|
|
79696
79639
|
__publicField(this, "getAvailableCommands", (editor, block, range, params) => {
|
|
79697
|
-
var _a, _b;
|
|
79698
79640
|
const commands = [];
|
|
79699
|
-
|
|
79700
|
-
|
|
79701
|
-
return;
|
|
79702
|
-
}
|
|
79703
|
-
const options = blockClass.getOptions(editor);
|
|
79704
|
-
if (!options.insertBlockCommandItems) {
|
|
79705
|
-
return;
|
|
79706
|
-
}
|
|
79707
|
-
injectBlockOptions(options.insertBlockCommandItems, options);
|
|
79708
|
-
commands.push(...options.insertBlockCommandItems);
|
|
79709
|
-
});
|
|
79710
|
-
if (!isTextKindBlock(editor, block)) {
|
|
79711
|
-
const container = getParentContainer(block);
|
|
79712
|
-
const containerId = getContainerId(container);
|
|
79713
|
-
for (const provider of this.providers) {
|
|
79714
|
-
commands.push(...(_b = (_a = provider.getInsertCommands) == null ? void 0 : _a.call(provider, editor, containerId)) != null ? _b : []);
|
|
79715
|
-
}
|
|
79716
|
-
} else {
|
|
79717
|
-
for (const provider of this.providers) {
|
|
79718
|
-
commands.push(...provider.getAvailableCommands(editor, block, range, params));
|
|
79719
|
-
}
|
|
79641
|
+
for (const provider of this.providers) {
|
|
79642
|
+
commands.push(...provider.getAvailableCommands(editor, block, range, params));
|
|
79720
79643
|
}
|
|
79721
79644
|
return commands.filter((command) => this.whiteList.includes(command.id)).sort((a, b) => this.whiteList.indexOf(a.id) - this.whiteList.indexOf(b.id));
|
|
79722
79645
|
});
|
|
79723
79646
|
__publicField(this, "executeInsertCommand", () => false);
|
|
79724
|
-
__publicField(this, "getNextBlockIndex", (container, block) => {
|
|
79725
|
-
let nextBlock = getNextVisibleBlock(block);
|
|
79726
|
-
if (!nextBlock) {
|
|
79727
|
-
nextBlock = getLastChildBlock(container);
|
|
79728
|
-
return getBlockIndex(nextBlock) + 1;
|
|
79729
|
-
}
|
|
79730
|
-
return getBlockIndex(nextBlock);
|
|
79731
|
-
});
|
|
79732
79647
|
__publicField(this, "executeCommand", (editor, block, range, item, params) => {
|
|
79733
|
-
var _a
|
|
79734
|
-
const
|
|
79735
|
-
|
|
79736
|
-
|
|
79737
|
-
const blockIndex = editor.getBlockIndex(block);
|
|
79738
|
-
if ((_a = quickItem.blockOptions) == null ? void 0 : _a.handleInsertEmptyBlock) {
|
|
79739
|
-
let insertIndex = blockIndex;
|
|
79740
|
-
const isEmptyBlock = isEmptyTextBlock(editor, block);
|
|
79741
|
-
if (!isEmptyBlock) {
|
|
79742
|
-
insertIndex = this.getNextBlock(container, block);
|
|
79743
|
-
}
|
|
79744
|
-
(_b = quickItem.blockOptions) == null ? void 0 : _b.handleInsertEmptyBlock(editor, {
|
|
79745
|
-
containerId,
|
|
79746
|
-
blockIndex: insertIndex,
|
|
79747
|
-
item,
|
|
79748
|
-
from: isEmptyBlock ? "add-block-menu" : "quick-menu"
|
|
79749
|
-
});
|
|
79750
|
-
return true;
|
|
79751
|
-
}
|
|
79752
|
-
if (!isTextKindBlock(editor, block)) {
|
|
79753
|
-
const insertIndex = this.getNextBlock(container, block);
|
|
79754
|
-
for (const provider of this.providers) {
|
|
79755
|
-
if ((_c = provider.executeInsertCommand) == null ? void 0 : _c.call(provider, editor, containerId, insertIndex, item, params)) {
|
|
79756
|
-
return true;
|
|
79757
|
-
}
|
|
79758
|
-
}
|
|
79759
|
-
} else {
|
|
79760
|
-
for (const provider of this.providers) {
|
|
79761
|
-
if ((_d = provider.executeCommand) == null ? void 0 : _d.call(provider, editor, block, range, item, params)) {
|
|
79762
|
-
return true;
|
|
79763
|
-
}
|
|
79648
|
+
var _a;
|
|
79649
|
+
for (const provider of this.providers) {
|
|
79650
|
+
if ((_a = provider.executeCommand) == null ? void 0 : _a.call(provider, editor, block, range, item, params)) {
|
|
79651
|
+
return true;
|
|
79764
79652
|
}
|
|
79765
79653
|
}
|
|
79766
79654
|
return false;
|
|
79767
79655
|
});
|
|
79768
79656
|
this.editor = editor;
|
|
79769
|
-
this.providers.push(new
|
|
79657
|
+
this.providers.push(new InsertMenuProvider(editor));
|
|
79770
79658
|
}
|
|
79771
79659
|
get whiteList() {
|
|
79772
79660
|
const list2 = ["insert-image", "insert-table", "insert-link", "insert-hr"];
|
|
@@ -79776,14 +79664,6 @@ ${content}
|
|
|
79776
79664
|
}
|
|
79777
79665
|
return list2;
|
|
79778
79666
|
}
|
|
79779
|
-
getNextBlock(container, block) {
|
|
79780
|
-
let nextBlock = getNextVisibleBlock(block);
|
|
79781
|
-
if (!nextBlock) {
|
|
79782
|
-
nextBlock = getLastChildBlock(container);
|
|
79783
|
-
return getBlockIndex(nextBlock) + 1;
|
|
79784
|
-
}
|
|
79785
|
-
return getBlockIndex(nextBlock);
|
|
79786
|
-
}
|
|
79787
79667
|
}
|
|
79788
79668
|
class CursorToolbarHandler {
|
|
79789
79669
|
constructor(editor) {
|
|
@@ -79809,7 +79689,7 @@ ${content}
|
|
|
79809
79689
|
return groupEachCommand(commands);
|
|
79810
79690
|
});
|
|
79811
79691
|
__publicField(this, "showToolbar", () => {
|
|
79812
|
-
|
|
79692
|
+
tippy$1.hideAll();
|
|
79813
79693
|
const commands = this.getCommands();
|
|
79814
79694
|
this.toolbar.updateItems(commands);
|
|
79815
79695
|
const focusBlock = this.editor.selection.focusedBlock;
|
|
@@ -79871,7 +79751,7 @@ ${content}
|
|
|
79871
79751
|
];
|
|
79872
79752
|
});
|
|
79873
79753
|
this.editor = editor;
|
|
79874
|
-
this.providers = [new
|
|
79754
|
+
this.providers = [new MobileInsertMenuProvider(editor)];
|
|
79875
79755
|
}
|
|
79876
79756
|
}
|
|
79877
79757
|
class TurnIntoCommandProvider extends ProxyProvider {
|
|
@@ -80104,15 +79984,13 @@ ${content}
|
|
|
80104
79984
|
__publicField(this, "mobileToolbar");
|
|
80105
79985
|
__publicField(this, "fixedProviders");
|
|
80106
79986
|
__publicField(this, "bar");
|
|
80107
|
-
__publicField(this, "
|
|
80108
|
-
|
|
80109
|
-
});
|
|
80110
|
-
__publicField(this, "handleSelectionChange", () => {
|
|
80111
|
-
setTimeout(() => {
|
|
80112
|
-
const commands = this.fixedProviders.getCommands(this.editor.selection.range);
|
|
80113
|
-
this.mobileToolbar.updateItems(commands);
|
|
80114
|
-
});
|
|
79987
|
+
__publicField(this, "handleSubBarShown", (_2, subBar) => {
|
|
79988
|
+
scrollBarIntoView(this.editor, subBar);
|
|
80115
79989
|
});
|
|
79990
|
+
__publicField(this, "handleSelectionChange", debounce__default.default(() => {
|
|
79991
|
+
const commands = this.fixedProviders.getCommands(this.editor.selection.range);
|
|
79992
|
+
this.mobileToolbar.updateItems(commands);
|
|
79993
|
+
}, 60));
|
|
80116
79994
|
__publicField(this, "handleClick", (_2, item) => {
|
|
80117
79995
|
this.fixedProviders.executeCommand(this.editor.selection.range, item, {});
|
|
80118
79996
|
setTimeout(() => {
|
|
@@ -80126,10 +80004,8 @@ ${content}
|
|
|
80126
80004
|
this.fixedProviders = new FixedProviders(editor);
|
|
80127
80005
|
this.bar = createElement("div", ["command-m-bar"], parent);
|
|
80128
80006
|
const commands = this.fixedProviders.getCommands(this.editor.selection.range);
|
|
80129
|
-
this.mobileToolbar = new FixedToolbar(this.bar, commands
|
|
80130
|
-
|
|
80131
|
-
});
|
|
80132
|
-
this.mobileToolbar.addListener("subBarShown", this.handleSubBarShow);
|
|
80007
|
+
this.mobileToolbar = new FixedToolbar(this.bar, commands);
|
|
80008
|
+
this.mobileToolbar.addListener("subBarShown", this.handleSubBarShown);
|
|
80133
80009
|
this.mobileToolbar.addListener("click", this.handleClick);
|
|
80134
80010
|
this.editor.addListener("selectionChanged", this.handleSelectionChange);
|
|
80135
80011
|
setTimeout(() => {
|
|
@@ -80172,8 +80048,15 @@ ${content}
|
|
|
80172
80048
|
__publicField(this, "commandBar");
|
|
80173
80049
|
__publicField(this, "observer");
|
|
80174
80050
|
__publicField(this, "toggleDelay", clientType.isSafari ? 800 : 100);
|
|
80051
|
+
__publicField(this, "preHeight", this.virtualViewportHeight);
|
|
80175
80052
|
__publicField(this, "layoutBar", debounce__default.default(() => {
|
|
80176
80053
|
const offsetHeight = Math.max(this.clientHeight - this.virtualViewportHeight, 0);
|
|
80054
|
+
if (clientType.isIOS) {
|
|
80055
|
+
if (this.preHeight > this.virtualViewportHeight) {
|
|
80056
|
+
editorScrollIntoView(this.editor);
|
|
80057
|
+
}
|
|
80058
|
+
}
|
|
80059
|
+
this.preHeight = this.virtualViewportHeight;
|
|
80177
80060
|
this.commandBar.bar.style.bottom = `${offsetHeight}px`;
|
|
80178
80061
|
}, this.toggleDelay));
|
|
80179
80062
|
__publicField(this, "handScroll", debounce__default.default(() => {
|
|
@@ -80221,36 +80104,6 @@ ${content}
|
|
|
80221
80104
|
this.editor.scrollContainer.removeEventListener("scroll", this.handScroll);
|
|
80222
80105
|
}
|
|
80223
80106
|
}
|
|
80224
|
-
const mobileHelperStyles = "";
|
|
80225
|
-
const zhCN$7 = {
|
|
80226
|
-
mobile: {
|
|
80227
|
-
insert: "\u63D2\u5165",
|
|
80228
|
-
commands: {
|
|
80229
|
-
select: "\u9009\u62E9"
|
|
80230
|
-
}
|
|
80231
|
-
}
|
|
80232
|
-
};
|
|
80233
|
-
const enUS$7 = {
|
|
80234
|
-
mobile: {
|
|
80235
|
-
insert: "Insert",
|
|
80236
|
-
commands: {
|
|
80237
|
-
select: "Select"
|
|
80238
|
-
}
|
|
80239
|
-
}
|
|
80240
|
-
};
|
|
80241
|
-
const jaJP$7 = {
|
|
80242
|
-
mobile: {
|
|
80243
|
-
insert: "\u633F\u5165",
|
|
80244
|
-
commands: {
|
|
80245
|
-
select: "\u9078\u629E"
|
|
80246
|
-
}
|
|
80247
|
-
}
|
|
80248
|
-
};
|
|
80249
|
-
i18n$1.mergeLang({
|
|
80250
|
-
"zh-CN": zhCN$7,
|
|
80251
|
-
"en-US": enUS$7,
|
|
80252
|
-
"ja-JP": jaJP$7
|
|
80253
|
-
});
|
|
80254
80107
|
class MobileEmbedMask {
|
|
80255
80108
|
constructor(editor) {
|
|
80256
80109
|
__publicField(this, "addMask", (block) => {
|
|
@@ -80284,6 +80137,36 @@ ${content}
|
|
|
80284
80137
|
this.editor.removeListener("selectionChanged", this.handleSelectionChanged);
|
|
80285
80138
|
}
|
|
80286
80139
|
}
|
|
80140
|
+
const zhCN$7 = {
|
|
80141
|
+
mobile: {
|
|
80142
|
+
insert: "\u63D2\u5165",
|
|
80143
|
+
commands: {
|
|
80144
|
+
select: "\u9009\u62E9"
|
|
80145
|
+
}
|
|
80146
|
+
}
|
|
80147
|
+
};
|
|
80148
|
+
const enUS$7 = {
|
|
80149
|
+
mobile: {
|
|
80150
|
+
insert: "Insert",
|
|
80151
|
+
commands: {
|
|
80152
|
+
select: "Select"
|
|
80153
|
+
}
|
|
80154
|
+
}
|
|
80155
|
+
};
|
|
80156
|
+
const jaJP$7 = {
|
|
80157
|
+
mobile: {
|
|
80158
|
+
insert: "\u633F\u5165",
|
|
80159
|
+
commands: {
|
|
80160
|
+
select: "\u9078\u629E"
|
|
80161
|
+
}
|
|
80162
|
+
}
|
|
80163
|
+
};
|
|
80164
|
+
i18n$1.mergeLang({
|
|
80165
|
+
"zh-CN": zhCN$7,
|
|
80166
|
+
"en-US": enUS$7,
|
|
80167
|
+
"ja-JP": jaJP$7
|
|
80168
|
+
});
|
|
80169
|
+
const mobileHelperStyles = "";
|
|
80287
80170
|
const LONG_PRESS_DELAY = 800;
|
|
80288
80171
|
class OnesEditorMobileHelper {
|
|
80289
80172
|
constructor(editor) {
|
|
@@ -80318,17 +80201,6 @@ ${content}
|
|
|
80318
80201
|
this.editor.selection.selectBlock(block, offset, offset + 1);
|
|
80319
80202
|
return true;
|
|
80320
80203
|
}
|
|
80321
|
-
if (this.editor.selection.range.isCollapsed()) {
|
|
80322
|
-
const rangeRect = getBlockClientRects(this.editor, block, this.editor.selection.range);
|
|
80323
|
-
const clientX = event.touches[0].clientX;
|
|
80324
|
-
const clientY = event.touches[0].clientY;
|
|
80325
|
-
const step = 10;
|
|
80326
|
-
const inRect = rangeRect.some((rect) => clientX > rect.left - step && clientX < rect.right + step && clientY > rect.top - step && clientY < rect.bottom + step);
|
|
80327
|
-
if (inRect) {
|
|
80328
|
-
this.cursorToolbar.showToolbar();
|
|
80329
|
-
return true;
|
|
80330
|
-
}
|
|
80331
|
-
}
|
|
80332
80204
|
}
|
|
80333
80205
|
return false;
|
|
80334
80206
|
});
|
|
@@ -80346,16 +80218,32 @@ ${content}
|
|
|
80346
80218
|
}, LONG_PRESS_DELAY);
|
|
80347
80219
|
}
|
|
80348
80220
|
});
|
|
80221
|
+
__publicField(this, "debounceShowCursorToolbar", debounce__default.default(() => {
|
|
80222
|
+
if (this.editor.selection.range.isCollapsed()) {
|
|
80223
|
+
this.cursorToolbar.showToolbar();
|
|
80224
|
+
}
|
|
80225
|
+
}, 400));
|
|
80349
80226
|
__publicField(this, "handleTouchEnd", (event) => {
|
|
80350
80227
|
if (this.longPressTimeout) {
|
|
80351
80228
|
window.clearTimeout(this.longPressTimeout);
|
|
80352
80229
|
this.longPressTimeout = 0;
|
|
80353
80230
|
}
|
|
80354
|
-
this.isMoving
|
|
80355
|
-
if (this.longPressTriggered) {
|
|
80231
|
+
if (this.longPressTriggered || this.isMoving) {
|
|
80356
80232
|
event.preventDefault();
|
|
80357
80233
|
event.stopPropagation();
|
|
80358
|
-
|
|
80234
|
+
}
|
|
80235
|
+
this.longPressTriggered = false;
|
|
80236
|
+
this.isMoving = false;
|
|
80237
|
+
if (this.editor.selection.range.isCollapsed()) {
|
|
80238
|
+
const block = this.editor.selection.focusedBlock;
|
|
80239
|
+
const rangeRect = getBlockClientRects(this.editor, block, this.editor.selection.range);
|
|
80240
|
+
const clientX = event.changedTouches[0].clientX;
|
|
80241
|
+
const clientY = event.changedTouches[0].clientY;
|
|
80242
|
+
const step = 18;
|
|
80243
|
+
const inRect = rangeRect.some((rect) => clientX > rect.left - step && clientX < rect.right + step && clientY > rect.top - step && clientY < rect.bottom + step);
|
|
80244
|
+
if (inRect) {
|
|
80245
|
+
this.debounceShowCursorToolbar();
|
|
80246
|
+
}
|
|
80359
80247
|
}
|
|
80360
80248
|
});
|
|
80361
80249
|
this.editor = editor;
|
|
@@ -82179,7 +82067,7 @@ ${content}
|
|
|
82179
82067
|
reject();
|
|
82180
82068
|
}
|
|
82181
82069
|
});
|
|
82182
|
-
dialog.addListener("
|
|
82070
|
+
dialog.addListener("shown", focus);
|
|
82183
82071
|
dialog.show();
|
|
82184
82072
|
const input2 = getField();
|
|
82185
82073
|
bindKeyDownEvent(input2, async (event, composing) => {
|
|
@@ -86801,7 +86689,7 @@ ${data2.flowchartText}
|
|
|
86801
86689
|
}
|
|
86802
86690
|
}
|
|
86803
86691
|
});
|
|
86804
|
-
editor.version = "2.1.1-beta.
|
|
86692
|
+
editor.version = "2.1.1-beta.75";
|
|
86805
86693
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
86806
86694
|
window.setReauthFail = (fail) => {
|
|
86807
86695
|
window.isReauthError = fail;
|
|
@@ -86902,7 +86790,7 @@ ${data2.flowchartText}
|
|
|
86902
86790
|
});
|
|
86903
86791
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
86904
86792
|
OnesEditorToolbar.register(editor);
|
|
86905
|
-
editor.version = "2.1.1-beta.
|
|
86793
|
+
editor.version = "2.1.1-beta.75";
|
|
86906
86794
|
return editor;
|
|
86907
86795
|
}
|
|
86908
86796
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -132691,7 +132579,7 @@ ${data2.flowchartText}
|
|
|
132691
132579
|
exports2.InlineCodeProvider = InlineCodeProvider;
|
|
132692
132580
|
exports2.InlineStyleProvider = InlineStyleProvider;
|
|
132693
132581
|
exports2.InputtingInsertion = InputtingInsertion;
|
|
132694
|
-
exports2.InsertMenuProvider = InsertMenuProvider
|
|
132582
|
+
exports2.InsertMenuProvider = InsertMenuProvider;
|
|
132695
132583
|
exports2.LayoutBlock = LayoutBlock;
|
|
132696
132584
|
exports2.LayoutBlockCaptionInputHandler = LayoutBlockCaptionInputHandler;
|
|
132697
132585
|
exports2.LayoutQuickMenuItemFilter = LayoutQuickMenuItemFilter;
|
|
@@ -132826,7 +132714,6 @@ ${data2.flowchartText}
|
|
|
132826
132714
|
exports2.createEmptyContainer = createEmptyContainer;
|
|
132827
132715
|
exports2.createEmptyDoc = createEmptyDoc$1;
|
|
132828
132716
|
exports2.createEmptyTextBlockData = createEmptyTextBlockData;
|
|
132829
|
-
exports2.createEntireRowAndColumnRange = createEntireRowAndColumnRange;
|
|
132830
132717
|
exports2.createExpandedRange = createExpandedRange;
|
|
132831
132718
|
exports2.createIconButton = createIconButton;
|
|
132832
132719
|
exports2.createImage = createImage;
|
|
@@ -132847,8 +132734,6 @@ ${data2.flowchartText}
|
|
|
132847
132734
|
exports2.createTextWithReplaceSoftReturn = createTextWithReplaceSoftReturn;
|
|
132848
132735
|
exports2.daysAfter = daysAfter;
|
|
132849
132736
|
exports2.deleteColor = deleteColor;
|
|
132850
|
-
exports2.deleteColumns = deleteColumns;
|
|
132851
|
-
exports2.deleteRows = deleteRows;
|
|
132852
132737
|
exports2.deleteText = deleteText;
|
|
132853
132738
|
exports2.diffDays = diffDays;
|
|
132854
132739
|
exports2.disablePageScroll = disablePageScroll;
|
|
@@ -132912,6 +132797,7 @@ ${data2.flowchartText}
|
|
|
132912
132797
|
exports2.editorReplaceBlockText = editorReplaceBlockText;
|
|
132913
132798
|
exports2.editorReplaceContainer = editorReplaceContainer;
|
|
132914
132799
|
exports2.editorRunOnce = editorRunOnce;
|
|
132800
|
+
exports2.editorScrollIntoView = editorScrollIntoView;
|
|
132915
132801
|
exports2.editorSelectAll = editorSelectAll;
|
|
132916
132802
|
exports2.editorSelectContainer = editorSelectContainer;
|
|
132917
132803
|
exports2.editorSelectDown = editorSelectDown;
|
|
@@ -132968,7 +132854,6 @@ ${data2.flowchartText}
|
|
|
132968
132854
|
exports2.fromNowString = fromNowString;
|
|
132969
132855
|
exports2.genId = genId;
|
|
132970
132856
|
exports2.generateEditorContainerId = generateEditorContainerId;
|
|
132971
|
-
exports2.getAbstractTableSelectionRange = getAbstractTableSelectionRange;
|
|
132972
132857
|
exports2.getAllChildBlocks = getAllChildBlocks;
|
|
132973
132858
|
exports2.getAllSelectedBlocks = getAllSelectedBlocks;
|
|
132974
132859
|
exports2.getAttributesAt = getAttributesAt;
|
|
@@ -133071,6 +132956,7 @@ ${data2.flowchartText}
|
|
|
133071
132956
|
exports2.getTextOpLength = getTextOpLength;
|
|
133072
132957
|
exports2.getTextWidth = getTextWidth;
|
|
133073
132958
|
exports2.getToolbar = getToolbar;
|
|
132959
|
+
exports2.getVisualViewportHeightOffset = getVisualViewportHeightOffset;
|
|
133074
132960
|
exports2.groupEachCommand = groupEachCommand;
|
|
133075
132961
|
exports2.handleBlockElementUpdated = handleBlockElementUpdated$1;
|
|
133076
132962
|
exports2.hasAltOnly = hasAltOnly;
|
|
@@ -133090,10 +132976,8 @@ ${data2.flowchartText}
|
|
|
133090
132976
|
exports2.injectSource = injectSource;
|
|
133091
132977
|
exports2.injectStyle = injectStyle;
|
|
133092
132978
|
exports2.inputActions = actions;
|
|
133093
|
-
exports2.insertColumn = insertColumn;
|
|
133094
132979
|
exports2.insertEmptyBlock = insertEmptyBlock;
|
|
133095
132980
|
exports2.insertEmptyEmbedBlock = insertEmptyEmbedBlock;
|
|
133096
|
-
exports2.insertRow = insertRow;
|
|
133097
132981
|
exports2.insertText = insertText;
|
|
133098
132982
|
exports2.intersectionCommands = intersectionCommands;
|
|
133099
132983
|
exports2.isBackspace = isBackspace;
|
|
@@ -133205,7 +133089,7 @@ ${data2.flowchartText}
|
|
|
133205
133089
|
exports2.requestDownload = requestDownload;
|
|
133206
133090
|
exports2.resetListStart = resetListStart;
|
|
133207
133091
|
exports2.saveAs = saveAs$1;
|
|
133208
|
-
exports2.scrollIntoView = scrollIntoView
|
|
133092
|
+
exports2.scrollIntoView = scrollIntoView;
|
|
133209
133093
|
exports2.scrollable = scrollable;
|
|
133210
133094
|
exports2.selectFile = selectFile;
|
|
133211
133095
|
exports2.selectedBlockToDoc = selectedBlockToDoc;
|
|
@@ -133213,12 +133097,9 @@ ${data2.flowchartText}
|
|
|
133213
133097
|
exports2.setAttributes = setAttributes;
|
|
133214
133098
|
exports2.setClipboardData = setClipboardData;
|
|
133215
133099
|
exports2.setClipboardDataByEvent = setClipboardDataByEvent;
|
|
133216
|
-
exports2.setColTitle = setColTitle;
|
|
133217
133100
|
exports2.setColorToAttributes = setColorToAttributes;
|
|
133218
133101
|
exports2.setDataset = setDataset;
|
|
133219
133102
|
exports2.setDefaultCursor = setDefaultCursor;
|
|
133220
|
-
exports2.setRowTitle = setRowTitle;
|
|
133221
|
-
exports2.setStripeStyle = setStripeStyle;
|
|
133222
133103
|
exports2.setStyles = setStyles;
|
|
133223
133104
|
exports2.shareDBCommentToDocObject = shareDBCommentToDocObject;
|
|
133224
133105
|
exports2.shareDBDocCommentToComment = shareDBDocCommentToComment;
|