@ones-editor/editor 2.1.1-beta.72 → 2.1.1-beta.74
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/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 +1 -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 +8 -0
- package/@ones-editor/ui/src/locale/ja-jp.d.ts +8 -0
- package/@ones-editor/ui/src/locale/zh-cn.d.ts +8 -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 +257 -453
- 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";
|
|
@@ -11214,16 +11164,6 @@ var __publicField = (obj, key, value) => {
|
|
|
11214
11164
|
__publicField(this, "isMoved", false);
|
|
11215
11165
|
__publicField(this, "mouseDownEvent", null);
|
|
11216
11166
|
__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
11167
|
__publicField(this, "handleContextMenu", (event) => {
|
|
11228
11168
|
if (clientType.isSafari) {
|
|
11229
11169
|
const sel = document.getSelection();
|
|
@@ -11366,8 +11306,6 @@ var __publicField = (obj, key, value) => {
|
|
|
11366
11306
|
const container = this.editor.rootElement;
|
|
11367
11307
|
if (clientType.isMobile) {
|
|
11368
11308
|
container.ontouchend = this.handleMouseDown;
|
|
11369
|
-
window.addEventListener("touchmove", this.handleTouchMove);
|
|
11370
|
-
window.addEventListener("touchend", this.handleTouchEnd, true);
|
|
11371
11309
|
} else {
|
|
11372
11310
|
container.onmousedown = this.handleMouseDown;
|
|
11373
11311
|
container.oncontextmenu = this.handleContextMenu;
|
|
@@ -11387,8 +11325,6 @@ var __publicField = (obj, key, value) => {
|
|
|
11387
11325
|
container.onclick = null;
|
|
11388
11326
|
container.oncontextmenu = null;
|
|
11389
11327
|
container.ontouchend = null;
|
|
11390
|
-
window.removeEventListener("touchmove", this.handleTouchMove);
|
|
11391
|
-
window.removeEventListener("touchend", this.handleTouchEnd, true);
|
|
11392
11328
|
if (this.dbClickRef) {
|
|
11393
11329
|
this.dbClickRef();
|
|
11394
11330
|
this.dbClickRef = null;
|
|
@@ -25116,7 +25052,7 @@ var __publicField = (obj, key, value) => {
|
|
|
25116
25052
|
const rect = target.getBoundingClientRect();
|
|
25117
25053
|
return rect.right > visibleRect.right || rect.left < visibleRect.left;
|
|
25118
25054
|
}
|
|
25119
|
-
function scrollIntoView
|
|
25055
|
+
function scrollIntoView(editor, target, options) {
|
|
25120
25056
|
var _a;
|
|
25121
25057
|
if (!target) {
|
|
25122
25058
|
return;
|
|
@@ -25181,10 +25117,10 @@ var __publicField = (obj, key, value) => {
|
|
|
25181
25117
|
const delayEmbedBlockTypes = ["image"];
|
|
25182
25118
|
if (delayEmbedBlockTypes.includes(getEmbedType(block))) {
|
|
25183
25119
|
setTimeout(() => {
|
|
25184
|
-
scrollIntoView
|
|
25120
|
+
scrollIntoView(editor, next2, { animation: true });
|
|
25185
25121
|
}, 500);
|
|
25186
25122
|
} else {
|
|
25187
|
-
scrollIntoView
|
|
25123
|
+
scrollIntoView(editor, next2, { animation: true });
|
|
25188
25124
|
}
|
|
25189
25125
|
return;
|
|
25190
25126
|
}
|
|
@@ -25195,7 +25131,7 @@ var __publicField = (obj, key, value) => {
|
|
|
25195
25131
|
const anchorElem = createElement("div", ["editor-block-anchor"], tools);
|
|
25196
25132
|
const scale = getElementScale(block);
|
|
25197
25133
|
anchorElem.style.top = `${(rect.top - blockRect.top) / scale}px`;
|
|
25198
|
-
scrollIntoView
|
|
25134
|
+
scrollIntoView(editor, anchorElem, { animation: true });
|
|
25199
25135
|
setTimeout(() => {
|
|
25200
25136
|
anchorElem.remove();
|
|
25201
25137
|
}, 200);
|
|
@@ -30514,9 +30450,18 @@ ${codeText}
|
|
|
30514
30450
|
constructor(editor) {
|
|
30515
30451
|
__publicField(this, "textBlockAttributes", /* @__PURE__ */ new Map());
|
|
30516
30452
|
__publicField(this, "activeBlockAttributes", /* @__PURE__ */ new Map());
|
|
30453
|
+
__publicField(this, "lastRange");
|
|
30517
30454
|
__publicField(this, "clear", () => {
|
|
30518
30455
|
this.activeBlockAttributes.clear();
|
|
30519
30456
|
});
|
|
30457
|
+
__publicField(this, "handleSelectionChanged", () => {
|
|
30458
|
+
var _a, _b, _c, _d;
|
|
30459
|
+
const range = this.editor.selection.range;
|
|
30460
|
+
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) {
|
|
30461
|
+
return;
|
|
30462
|
+
}
|
|
30463
|
+
this.clear();
|
|
30464
|
+
});
|
|
30520
30465
|
__publicField(this, "setActiveBlockAttributes", (attributes) => {
|
|
30521
30466
|
Array.from(this.activeBlockAttributes).forEach(([key, value]) => {
|
|
30522
30467
|
const op = { attributes, insert: "" };
|
|
@@ -30543,11 +30488,11 @@ ${codeText}
|
|
|
30543
30488
|
});
|
|
30544
30489
|
this.editor = editor;
|
|
30545
30490
|
this.editor.addListener("docChanged", this.clear);
|
|
30546
|
-
this.editor.addListener("selectionChanged", this.
|
|
30491
|
+
this.editor.addListener("selectionChanged", this.handleSelectionChanged);
|
|
30547
30492
|
}
|
|
30548
30493
|
destroy() {
|
|
30549
30494
|
this.editor.removeListener("docChanged", this.clear);
|
|
30550
|
-
this.editor.removeListener("selectionChanged", this.
|
|
30495
|
+
this.editor.removeListener("selectionChanged", this.handleSelectionChanged);
|
|
30551
30496
|
}
|
|
30552
30497
|
getEmptyBlockTextAttributes(blockId) {
|
|
30553
30498
|
var _a;
|
|
@@ -38585,7 +38530,7 @@ ${codeText}
|
|
|
38585
38530
|
handler.removeListener("insert", callback);
|
|
38586
38531
|
}
|
|
38587
38532
|
const style$c = "";
|
|
38588
|
-
const zhCN$
|
|
38533
|
+
const zhCN$w = {
|
|
38589
38534
|
colorPalette: {
|
|
38590
38535
|
colorDesc: "\u5B57\u4F53\u989C\u8272",
|
|
38591
38536
|
name: "\u6587\u672C\u989C\u8272",
|
|
@@ -38616,7 +38561,7 @@ ${codeText}
|
|
|
38616
38561
|
emptyTips: "\u6682\u65E0\u641C\u7D22\u7ED3\u679C"
|
|
38617
38562
|
}
|
|
38618
38563
|
};
|
|
38619
|
-
const enUS$
|
|
38564
|
+
const enUS$w = {
|
|
38620
38565
|
colorPalette: {
|
|
38621
38566
|
colorDesc: "Text color",
|
|
38622
38567
|
name: "Text color",
|
|
@@ -38647,7 +38592,7 @@ ${codeText}
|
|
|
38647
38592
|
emptyTips: "No results found"
|
|
38648
38593
|
}
|
|
38649
38594
|
};
|
|
38650
|
-
const jaJP$
|
|
38595
|
+
const jaJP$w = {
|
|
38651
38596
|
colorPalette: {
|
|
38652
38597
|
colorDesc: "\u30D5\u30A9\u30F3\u30C8\u306E\u8272",
|
|
38653
38598
|
name: "\u30C6\u30AD\u30B9\u30C8\u306E\u8272",
|
|
@@ -38679,9 +38624,9 @@ ${codeText}
|
|
|
38679
38624
|
}
|
|
38680
38625
|
};
|
|
38681
38626
|
i18n$1.mergeLang({
|
|
38682
|
-
"zh-CN": zhCN$
|
|
38683
|
-
"en-US": enUS$
|
|
38684
|
-
"ja-JP": jaJP$
|
|
38627
|
+
"zh-CN": zhCN$w,
|
|
38628
|
+
"en-US": enUS$w,
|
|
38629
|
+
"ja-JP": jaJP$w
|
|
38685
38630
|
});
|
|
38686
38631
|
const button = "";
|
|
38687
38632
|
getLogger("button");
|
|
@@ -39162,9 +39107,6 @@ ${codeText}
|
|
|
39162
39107
|
if (!item) {
|
|
39163
39108
|
return;
|
|
39164
39109
|
}
|
|
39165
|
-
if (item.switchable && !(target == null ? void 0 : target.closest(".menu-item-checked-icon"))) {
|
|
39166
|
-
return;
|
|
39167
|
-
}
|
|
39168
39110
|
const customItem = (item == null ? void 0 : item.element) && !item.children;
|
|
39169
39111
|
if (clientType.isMobile && !customItem) {
|
|
39170
39112
|
event.preventDefault();
|
|
@@ -40385,22 +40327,6 @@ ${codeText}
|
|
|
40385
40327
|
}
|
|
40386
40328
|
}, 200);
|
|
40387
40329
|
});
|
|
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
40330
|
}
|
|
40405
40331
|
close(reason) {
|
|
40406
40332
|
var _a;
|
|
@@ -41031,9 +40957,7 @@ ${codeText}
|
|
|
41031
40957
|
this.errorContent.innerText = error2;
|
|
41032
40958
|
});
|
|
41033
40959
|
__publicField(this, "focus", () => {
|
|
41034
|
-
|
|
41035
|
-
this.input.focus();
|
|
41036
|
-
}, 200);
|
|
40960
|
+
this.input.focus();
|
|
41037
40961
|
});
|
|
41038
40962
|
__publicField(this, "handleKeyDown", (e2, composing) => {
|
|
41039
40963
|
var _a, _b;
|
|
@@ -41982,7 +41906,7 @@ ${codeText}
|
|
|
41982
41906
|
return new EmojiItem();
|
|
41983
41907
|
}
|
|
41984
41908
|
}
|
|
41985
|
-
const
|
|
41909
|
+
const scrollBarIntoView = (editor, bar2) => {
|
|
41986
41910
|
var _a;
|
|
41987
41911
|
const activeRect = getBlockClientRects(editor, editor.selection.endBlock, editor.selection.range);
|
|
41988
41912
|
const popperRect = (_a = bar2.popper) == null ? void 0 : _a.getBoundingClientRect();
|
|
@@ -44055,44 +43979,19 @@ ${codeText}
|
|
|
44055
43979
|
if (getBlockType(block) !== "table" || clientType.isMobile) {
|
|
44056
43980
|
return [];
|
|
44057
43981
|
}
|
|
44058
|
-
const ext = {
|
|
44059
|
-
blockId: getBlockId(block),
|
|
44060
|
-
blockKind: getBlockKind(editor, block),
|
|
44061
|
-
blockType: getBlockType(block)
|
|
44062
|
-
};
|
|
44063
43982
|
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
43983
|
if (canMergeCells(editor, block, range)) {
|
|
44083
43984
|
commands.push({
|
|
44084
43985
|
id: "table/merge-cells",
|
|
44085
43986
|
name: i18n$1.t("table.mergeCell"),
|
|
44086
|
-
icon: MergeCellIcon
|
|
44087
|
-
...ext
|
|
43987
|
+
icon: MergeCellIcon
|
|
44088
43988
|
});
|
|
44089
43989
|
}
|
|
44090
43990
|
if (canSplitCell(editor, block, range)) {
|
|
44091
43991
|
commands.push({
|
|
44092
43992
|
id: "table/split-cell",
|
|
44093
43993
|
name: i18n$1.t("table.splitCell"),
|
|
44094
|
-
icon: SplitCellIcon
|
|
44095
|
-
...ext
|
|
43994
|
+
icon: SplitCellIcon
|
|
44096
43995
|
});
|
|
44097
43996
|
}
|
|
44098
43997
|
const deleteColumns2 = canDeleteColumns(editor, block, range);
|
|
@@ -44101,8 +44000,7 @@ ${codeText}
|
|
|
44101
44000
|
commands.push({
|
|
44102
44001
|
id: "table/delete",
|
|
44103
44002
|
name: i18n$1.t("table.deleteTable"),
|
|
44104
|
-
icon: DeleteTableIcon
|
|
44105
|
-
...ext
|
|
44003
|
+
icon: DeleteTableIcon
|
|
44106
44004
|
});
|
|
44107
44005
|
}
|
|
44108
44006
|
return commands;
|
|
@@ -46164,28 +46062,28 @@ ${codeText}
|
|
|
46164
46062
|
}
|
|
46165
46063
|
}
|
|
46166
46064
|
const exclusiveBlockStyles = "";
|
|
46167
|
-
const zhCN$
|
|
46065
|
+
const zhCN$v = {
|
|
46168
46066
|
exclusive: {
|
|
46169
46067
|
tips: "\u300C{editor}\u300D\u6B63\u5728\u7F16\u8F91\uFF0C\u300C{embedType}\u300D\u4E0D\u652F\u6301\u591A\u4EBA\u7F16\u8F91",
|
|
46170
46068
|
fallbackAbstract: "\u8BE5 Block"
|
|
46171
46069
|
}
|
|
46172
46070
|
};
|
|
46173
|
-
const enUS$
|
|
46071
|
+
const enUS$v = {
|
|
46174
46072
|
exclusive: {
|
|
46175
46073
|
tips: "\u300C{editor}\u300Dis editing\uFF0C\u300C{embedType}\u300Ddoes not support multi-person editing",
|
|
46176
46074
|
fallbackAbstract: "This Block"
|
|
46177
46075
|
}
|
|
46178
46076
|
};
|
|
46179
|
-
const jaJP$
|
|
46077
|
+
const jaJP$v = {
|
|
46180
46078
|
exclusive: {
|
|
46181
46079
|
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
46080
|
fallbackAbstract: "\u3053\u306E\u8981\u7D20"
|
|
46183
46081
|
}
|
|
46184
46082
|
};
|
|
46185
46083
|
i18n$1.mergeLang({
|
|
46186
|
-
"zh-CN": zhCN$
|
|
46187
|
-
"en-US": enUS$
|
|
46188
|
-
"ja-JP": jaJP$
|
|
46084
|
+
"zh-CN": zhCN$v,
|
|
46085
|
+
"en-US": enUS$v,
|
|
46086
|
+
"ja-JP": jaJP$v
|
|
46189
46087
|
});
|
|
46190
46088
|
function getBlockInfo(editor, block) {
|
|
46191
46089
|
const data2 = editor.getBlockData(block);
|
|
@@ -46362,21 +46260,21 @@ ${codeText}
|
|
|
46362
46260
|
}
|
|
46363
46261
|
}
|
|
46364
46262
|
const style$a = "";
|
|
46365
|
-
const zhCN$
|
|
46263
|
+
const zhCN$u = {
|
|
46366
46264
|
locker: {
|
|
46367
46265
|
lock: "\u9501\u5B9A",
|
|
46368
46266
|
unlock: "\u89E3\u9664\u9501\u5B9A",
|
|
46369
46267
|
lockedBy: "\u88AB {name} \u9501\u5B9A"
|
|
46370
46268
|
}
|
|
46371
46269
|
};
|
|
46372
|
-
const enUS$
|
|
46270
|
+
const enUS$u = {
|
|
46373
46271
|
locker: {
|
|
46374
46272
|
lock: "Lock",
|
|
46375
46273
|
unlock: "Unlock",
|
|
46376
46274
|
lockedBy: "Locked by {name}"
|
|
46377
46275
|
}
|
|
46378
46276
|
};
|
|
46379
|
-
const jaJP$
|
|
46277
|
+
const jaJP$u = {
|
|
46380
46278
|
locker: {
|
|
46381
46279
|
lock: "\u30ED\u30C3\u30AF",
|
|
46382
46280
|
unlock: "\u30ED\u30C3\u30AF\u89E3\u9664",
|
|
@@ -46384,9 +46282,9 @@ ${codeText}
|
|
|
46384
46282
|
}
|
|
46385
46283
|
};
|
|
46386
46284
|
i18n$1.mergeLang({
|
|
46387
|
-
"zh-CN": zhCN$
|
|
46388
|
-
"en-US": enUS$
|
|
46389
|
-
"ja-JP": jaJP$
|
|
46285
|
+
"zh-CN": zhCN$u,
|
|
46286
|
+
"en-US": enUS$u,
|
|
46287
|
+
"ja-JP": jaJP$u
|
|
46390
46288
|
});
|
|
46391
46289
|
class BlockLockerPasteHandler {
|
|
46392
46290
|
async handleBeforePasteDoc(editor, doc2) {
|
|
@@ -49240,7 +49138,7 @@ ${codeText}
|
|
|
49240
49138
|
}
|
|
49241
49139
|
return blockContent;
|
|
49242
49140
|
}
|
|
49243
|
-
const zhCN$
|
|
49141
|
+
const zhCN$t = {
|
|
49244
49142
|
list: {
|
|
49245
49143
|
confirm: "\u786E\u5B9A",
|
|
49246
49144
|
setStart: "\u8BBE\u7F6E\u7F16\u53F7",
|
|
@@ -49260,7 +49158,7 @@ ${codeText}
|
|
|
49260
49158
|
exitFullscreen: "\u9000\u51FA\u5168\u5C4F"
|
|
49261
49159
|
}
|
|
49262
49160
|
};
|
|
49263
|
-
const enUS$
|
|
49161
|
+
const enUS$t = {
|
|
49264
49162
|
list: {
|
|
49265
49163
|
confirm: "Confirm",
|
|
49266
49164
|
setStart: "Set number",
|
|
@@ -49280,7 +49178,7 @@ ${codeText}
|
|
|
49280
49178
|
exitFullscreen: "Exit full screen"
|
|
49281
49179
|
}
|
|
49282
49180
|
};
|
|
49283
|
-
const jaJP$
|
|
49181
|
+
const jaJP$t = {
|
|
49284
49182
|
list: {
|
|
49285
49183
|
confirm: "OK",
|
|
49286
49184
|
setStart: "\u756A\u53F7\u3092\u8A2D\u5B9A",
|
|
@@ -49301,9 +49199,9 @@ ${codeText}
|
|
|
49301
49199
|
}
|
|
49302
49200
|
};
|
|
49303
49201
|
i18n$1.mergeLang({
|
|
49304
|
-
"zh-CN": zhCN$
|
|
49305
|
-
"en-US": enUS$
|
|
49306
|
-
"ja-JP": jaJP$
|
|
49202
|
+
"zh-CN": zhCN$t,
|
|
49203
|
+
"en-US": enUS$t,
|
|
49204
|
+
"ja-JP": jaJP$t
|
|
49307
49205
|
});
|
|
49308
49206
|
const style$9 = "";
|
|
49309
49207
|
const logger$1W = getLogger("list-block:paste-handler");
|
|
@@ -49714,7 +49612,7 @@ ${codeText}
|
|
|
49714
49612
|
this.close();
|
|
49715
49613
|
});
|
|
49716
49614
|
__publicField(this, "handleShown", () => {
|
|
49717
|
-
|
|
49615
|
+
scrollBarIntoView(this.editor, this.linkPopup);
|
|
49718
49616
|
});
|
|
49719
49617
|
__publicField(this, "disabledSubmit", () => {
|
|
49720
49618
|
var _a;
|
|
@@ -50740,7 +50638,6 @@ ${codeText}
|
|
|
50740
50638
|
}
|
|
50741
50639
|
const block = this.hoveringBlock;
|
|
50742
50640
|
const child = this.hoveringTextChild;
|
|
50743
|
-
const isBoxChild = child && isTextBlockContentBoxChild(child);
|
|
50744
50641
|
const { commands, element } = getObjectCommands(this.editor, block, child);
|
|
50745
50642
|
if (!commands.length || !element) {
|
|
50746
50643
|
this.toolbar.close("fromHover");
|
|
@@ -50765,7 +50662,7 @@ ${codeText}
|
|
|
50765
50662
|
lineRects.push(y);
|
|
50766
50663
|
});
|
|
50767
50664
|
if (lineRects.length > 1) {
|
|
50768
|
-
rect =
|
|
50665
|
+
rect = child ? clientRects[clientRects.length - 1] : clientRects[0];
|
|
50769
50666
|
if (event) {
|
|
50770
50667
|
for (let i = 0; i < clientRects.length; i++) {
|
|
50771
50668
|
const clientRect = clientRects[i];
|
|
@@ -50778,7 +50675,7 @@ ${codeText}
|
|
|
50778
50675
|
}
|
|
50779
50676
|
} else {
|
|
50780
50677
|
rect = element.getBoundingClientRect();
|
|
50781
|
-
if (
|
|
50678
|
+
if (child) {
|
|
50782
50679
|
const childRect = child.getBoundingClientRect();
|
|
50783
50680
|
return new DOMRect(childRect.x, childRect.y, childRect.width, childRect.height);
|
|
50784
50681
|
}
|
|
@@ -51396,28 +51293,28 @@ $$${mathData.mathjaxText}$$
|
|
|
51396
51293
|
getBlockProperties: getBlockProperties$b
|
|
51397
51294
|
};
|
|
51398
51295
|
const mathjaxStyle = "";
|
|
51399
|
-
const zhCN$
|
|
51296
|
+
const zhCN$s = {
|
|
51400
51297
|
mathjax: {
|
|
51401
51298
|
emptyText: "\u7A7A\u7684\u516C\u5F0F",
|
|
51402
51299
|
abstract: "\u516C\u5F0F"
|
|
51403
51300
|
}
|
|
51404
51301
|
};
|
|
51405
|
-
const enUS$
|
|
51302
|
+
const enUS$s = {
|
|
51406
51303
|
mathjax: {
|
|
51407
51304
|
emptyText: "Empty formula",
|
|
51408
51305
|
abstract: "Formula"
|
|
51409
51306
|
}
|
|
51410
51307
|
};
|
|
51411
|
-
const jaJP$
|
|
51308
|
+
const jaJP$s = {
|
|
51412
51309
|
mathjax: {
|
|
51413
51310
|
emptyText: "\u6570\u5F0F\u306A\u3057",
|
|
51414
51311
|
abstract: "\u6570\u5F0F"
|
|
51415
51312
|
}
|
|
51416
51313
|
};
|
|
51417
51314
|
i18n$1.mergeLang({
|
|
51418
|
-
"zh-CN": zhCN$
|
|
51419
|
-
"en-US": enUS$
|
|
51420
|
-
"ja-JP": jaJP$
|
|
51315
|
+
"zh-CN": zhCN$s,
|
|
51316
|
+
"en-US": enUS$s,
|
|
51317
|
+
"ja-JP": jaJP$s
|
|
51421
51318
|
});
|
|
51422
51319
|
function convertToMath(editor, containerId, blockIndex, offset) {
|
|
51423
51320
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -57183,7 +57080,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57183
57080
|
}
|
|
57184
57081
|
}
|
|
57185
57082
|
__publicField(StatusBoxCommand, "id", "insert-status");
|
|
57186
|
-
const enUS$
|
|
57083
|
+
const enUS$r = {
|
|
57187
57084
|
status: {
|
|
57188
57085
|
empty: "Set status",
|
|
57189
57086
|
command: {
|
|
@@ -57207,7 +57104,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57207
57104
|
}
|
|
57208
57105
|
}
|
|
57209
57106
|
};
|
|
57210
|
-
const zhCN$
|
|
57107
|
+
const zhCN$r = {
|
|
57211
57108
|
status: {
|
|
57212
57109
|
empty: "\u8BBE\u7F6E\u72B6\u6001",
|
|
57213
57110
|
command: {
|
|
@@ -57231,7 +57128,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57231
57128
|
}
|
|
57232
57129
|
}
|
|
57233
57130
|
};
|
|
57234
|
-
const jaJP$
|
|
57131
|
+
const jaJP$r = {
|
|
57235
57132
|
status: {
|
|
57236
57133
|
empty: "\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8A2D\u5B9A",
|
|
57237
57134
|
command: {
|
|
@@ -57256,9 +57153,9 @@ $$${mathData.mathjaxText}$$
|
|
|
57256
57153
|
}
|
|
57257
57154
|
};
|
|
57258
57155
|
const langs$2 = {
|
|
57259
|
-
"en-US": enUS$
|
|
57260
|
-
"zh-CN": zhCN$
|
|
57261
|
-
"ja-JP": jaJP$
|
|
57156
|
+
"en-US": enUS$r,
|
|
57157
|
+
"zh-CN": zhCN$r,
|
|
57158
|
+
"ja-JP": jaJP$r
|
|
57262
57159
|
};
|
|
57263
57160
|
i18n$1.mergeLang(langs$2);
|
|
57264
57161
|
const logger$1M = getLogger("inline-box-items");
|
|
@@ -57465,7 +57362,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57465
57362
|
}
|
|
57466
57363
|
});
|
|
57467
57364
|
};
|
|
57468
|
-
class InsertMenuProvider
|
|
57365
|
+
class InsertMenuProvider extends ProxyProvider {
|
|
57469
57366
|
constructor(editor, options) {
|
|
57470
57367
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
57471
57368
|
super();
|
|
@@ -57647,7 +57544,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57647
57544
|
return {};
|
|
57648
57545
|
});
|
|
57649
57546
|
this.editor = editor;
|
|
57650
|
-
this.registerCommandProvider(new InsertMenuProvider
|
|
57547
|
+
this.registerCommandProvider(new InsertMenuProvider(editor, { withPlainText: false }));
|
|
57651
57548
|
}
|
|
57652
57549
|
getCommands(range) {
|
|
57653
57550
|
var _a, _b;
|
|
@@ -57989,8 +57886,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57989
57886
|
function getTextCommands(editor, blockCommands) {
|
|
57990
57887
|
const styleCommandsSet = new Set(Object.keys(TextCommands));
|
|
57991
57888
|
const styleCommands = blockCommands.filter((command) => styleCommandsSet.has(command.id));
|
|
57992
|
-
|
|
57993
|
-
return commands;
|
|
57889
|
+
return styleCommands;
|
|
57994
57890
|
}
|
|
57995
57891
|
function executeShortcut(editor, style2) {
|
|
57996
57892
|
if (!editor.isWritable()) {
|
|
@@ -58044,7 +57940,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58044
57940
|
"CtrlOrCmd+K": (editor) => executeShortcut(editor, "link"),
|
|
58045
57941
|
...headingShortcut()
|
|
58046
57942
|
};
|
|
58047
|
-
const zhCN$
|
|
57943
|
+
const zhCN$q = {
|
|
58048
57944
|
quickMenu: {
|
|
58049
57945
|
basic: {
|
|
58050
57946
|
heading: {
|
|
@@ -58088,10 +57984,18 @@ $$${mathData.mathjaxText}$$
|
|
|
58088
57984
|
text: "\u6B63\u6587",
|
|
58089
57985
|
paste: "\u7C98\u8D34",
|
|
58090
57986
|
tab: "Tab",
|
|
58091
|
-
shiftTab: "Shift+Tab"
|
|
57987
|
+
shiftTab: "Shift+Tab",
|
|
57988
|
+
bold: "\u7C97\u4F53",
|
|
57989
|
+
italic: "\u659C\u4F53",
|
|
57990
|
+
underline: "\u4E0B\u5212\u7EBF",
|
|
57991
|
+
strikethrough: "\u5220\u9664\u7EBF",
|
|
57992
|
+
code: "\u884C\u5185\u4EE3\u7801",
|
|
57993
|
+
subscript: "\u4E0B\u6807",
|
|
57994
|
+
superscript: "\u4E0A\u6807",
|
|
57995
|
+
more: "\u66F4\u591A"
|
|
58092
57996
|
}
|
|
58093
57997
|
};
|
|
58094
|
-
const enUS$
|
|
57998
|
+
const enUS$q = {
|
|
58095
57999
|
quickMenu: {
|
|
58096
58000
|
basic: {
|
|
58097
58001
|
heading: {
|
|
@@ -58135,10 +58039,18 @@ $$${mathData.mathjaxText}$$
|
|
|
58135
58039
|
text: "Text",
|
|
58136
58040
|
paste: "Paste",
|
|
58137
58041
|
tab: "Tab",
|
|
58138
|
-
shiftTab: "Shift+Tab"
|
|
58042
|
+
shiftTab: "Shift+Tab",
|
|
58043
|
+
bold: "Bold",
|
|
58044
|
+
italic: "Italic",
|
|
58045
|
+
underline: "Underline",
|
|
58046
|
+
strikethrough: "Strikethrough",
|
|
58047
|
+
code: "Inline code",
|
|
58048
|
+
subscript: "Subscript",
|
|
58049
|
+
superscript: "Superscript",
|
|
58050
|
+
more: "More"
|
|
58139
58051
|
}
|
|
58140
58052
|
};
|
|
58141
|
-
const jaJP$
|
|
58053
|
+
const jaJP$q = {
|
|
58142
58054
|
quickMenu: {
|
|
58143
58055
|
basic: {
|
|
58144
58056
|
heading: {
|
|
@@ -58182,13 +58094,21 @@ $$${mathData.mathjaxText}$$
|
|
|
58182
58094
|
text: "\u672C\u6587",
|
|
58183
58095
|
paste: "\u8CBC\u308A\u4ED8\u3051",
|
|
58184
58096
|
tab: "\u30BF\u30D6",
|
|
58185
|
-
shiftTab: "Shift+Tab"
|
|
58097
|
+
shiftTab: "Shift+Tab",
|
|
58098
|
+
bold: "\u592A\u5B57",
|
|
58099
|
+
italic: "\u659C\u4F53",
|
|
58100
|
+
underline: "\u4E0B\u7DDA",
|
|
58101
|
+
strikethrough: "\u53D6\u308A\u6D88\u3057\u7DDA",
|
|
58102
|
+
code: "\u30A4\u30F3\u30E9\u30A4\u30F3\u30B3\u30FC\u30C9",
|
|
58103
|
+
subscript: "\u4E0B\u4ED8\u304D\u6587\u5B57",
|
|
58104
|
+
superscript: "\u4E0A\u4ED8\u304D\u6587\u5B57",
|
|
58105
|
+
more: "\u305D\u306E\u4ED6"
|
|
58186
58106
|
}
|
|
58187
58107
|
};
|
|
58188
58108
|
i18n$1.mergeLang({
|
|
58189
|
-
"zh-CN": zhCN$
|
|
58190
|
-
"en-US": enUS$
|
|
58191
|
-
"ja-JP": jaJP$
|
|
58109
|
+
"zh-CN": zhCN$q,
|
|
58110
|
+
"en-US": enUS$q,
|
|
58111
|
+
"ja-JP": jaJP$q
|
|
58192
58112
|
});
|
|
58193
58113
|
class TextStylesFixedProvider extends ProxyProvider {
|
|
58194
58114
|
constructor(editor, afterCommandCallback) {
|
|
@@ -58298,7 +58218,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58298
58218
|
return false;
|
|
58299
58219
|
});
|
|
58300
58220
|
this.editor = editor;
|
|
58301
|
-
this.providers = [new InsertMenuProvider
|
|
58221
|
+
this.providers = [new InsertMenuProvider(this.editor)];
|
|
58302
58222
|
}
|
|
58303
58223
|
}
|
|
58304
58224
|
class InsertAfterProvider extends ProxyProvider {
|
|
@@ -58345,7 +58265,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58345
58265
|
return false;
|
|
58346
58266
|
});
|
|
58347
58267
|
this.editor = editor;
|
|
58348
|
-
this.providers = [new InsertMenuProvider
|
|
58268
|
+
this.providers = [new InsertMenuProvider(this.editor)];
|
|
58349
58269
|
}
|
|
58350
58270
|
}
|
|
58351
58271
|
class InsertGroupProvider extends ProxyProvider {
|
|
@@ -58536,7 +58456,6 @@ $$${mathData.mathjaxText}$$
|
|
|
58536
58456
|
__publicField(this, "handleItemClick", (bar2, item) => {
|
|
58537
58457
|
assert(logger$1H, this.commandBlock, "no command block before show block menu");
|
|
58538
58458
|
this.blockCommandProviders.executeCommand(this.editor.selection.range, item);
|
|
58539
|
-
this.close();
|
|
58540
58459
|
});
|
|
58541
58460
|
__publicField(this, "close", () => {
|
|
58542
58461
|
this.menu.close("clickItem");
|
|
@@ -58544,7 +58463,8 @@ $$${mathData.mathjaxText}$$
|
|
|
58544
58463
|
this.editor = editor;
|
|
58545
58464
|
this.blockCommandProviders = new BlockCommandProviders(editor, this.close);
|
|
58546
58465
|
this.menu = new ManualMenu([], void 0, {
|
|
58547
|
-
id: "block-menu"
|
|
58466
|
+
id: "block-menu",
|
|
58467
|
+
autoClose: true
|
|
58548
58468
|
});
|
|
58549
58469
|
this.menu.on("show", this.handleShow);
|
|
58550
58470
|
this.menu.on("close", this.handleClose);
|
|
@@ -58601,6 +58521,12 @@ $$${mathData.mathjaxText}$$
|
|
|
58601
58521
|
}
|
|
58602
58522
|
return styles1;
|
|
58603
58523
|
}
|
|
58524
|
+
function mergeActiveStyle(editor, style2) {
|
|
58525
|
+
var _a;
|
|
58526
|
+
const attributes = Object.fromEntries(style2.entries());
|
|
58527
|
+
(_a = editor.findCustom("block-attributes-handler")) == null ? void 0 : _a.setActiveBlockAttributes(attributes);
|
|
58528
|
+
return new Map(Object.entries(attributes));
|
|
58529
|
+
}
|
|
58604
58530
|
function applyTextStyle(editor, block, range, style2, value) {
|
|
58605
58531
|
assert(logger$1G, range.isSimple(), "invalid range");
|
|
58606
58532
|
const { start, end } = range;
|
|
@@ -58621,11 +58547,12 @@ $$${mathData.mathjaxText}$$
|
|
|
58621
58547
|
editor.setBlockText(block, newText);
|
|
58622
58548
|
return newText;
|
|
58623
58549
|
}
|
|
58624
|
-
function getStandardTextStyles(textStyles, text2) {
|
|
58550
|
+
function getStandardTextStyles(editor, textStyles, text2) {
|
|
58625
58551
|
if (getTextLength(text2) === 0) {
|
|
58626
58552
|
return textStyles;
|
|
58627
58553
|
}
|
|
58628
|
-
|
|
58554
|
+
let styles = getIntersectionStyles(text2);
|
|
58555
|
+
styles = mergeActiveStyle(editor, styles);
|
|
58629
58556
|
function getTextStyle(item) {
|
|
58630
58557
|
const { id, icon, desc, name } = item;
|
|
58631
58558
|
const value = styles.get(id);
|
|
@@ -58669,7 +58596,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58669
58596
|
return subText2;
|
|
58670
58597
|
}
|
|
58671
58598
|
const logger$1F = getLogger("text-commands");
|
|
58672
|
-
function getCommands$1(text2) {
|
|
58599
|
+
function getCommands$1(editor, text2) {
|
|
58673
58600
|
const StandardTextStyles = {
|
|
58674
58601
|
"style-bold": [i18n$1.t("commands.bold"), shortcutToDisplayText("CtrlOrCmd+B"), BoldIcon],
|
|
58675
58602
|
"style-italic": [i18n$1.t("commands.italic"), shortcutToDisplayText("CtrlOrCmd+I"), ItalicIcon],
|
|
@@ -58682,7 +58609,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58682
58609
|
icon,
|
|
58683
58610
|
desc
|
|
58684
58611
|
}));
|
|
58685
|
-
return getStandardTextStyles(standardItems, text2);
|
|
58612
|
+
return getStandardTextStyles(editor, standardItems, text2);
|
|
58686
58613
|
}
|
|
58687
58614
|
function executeStyleCommand(editor, block, range, command, params, result) {
|
|
58688
58615
|
if (!command.startsWith("style-")) {
|
|
@@ -58712,10 +58639,10 @@ $$${mathData.mathjaxText}$$
|
|
|
58712
58639
|
}
|
|
58713
58640
|
let commands;
|
|
58714
58641
|
if (getBlockTextLength$6(editor, block) === 0 || !isTextKindBlock(editor, block)) {
|
|
58715
|
-
commands = getCommands$1([]);
|
|
58642
|
+
commands = getCommands$1(editor, []);
|
|
58716
58643
|
} else {
|
|
58717
58644
|
const subText2 = getSubText(editor, block, range);
|
|
58718
|
-
commands = getCommands$1(subText2);
|
|
58645
|
+
commands = getCommands$1(editor, subText2);
|
|
58719
58646
|
}
|
|
58720
58647
|
if (!(params == null ? void 0 : params.isFilter)) {
|
|
58721
58648
|
commands.forEach((item) => {
|
|
@@ -58831,7 +58758,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58831
58758
|
return false;
|
|
58832
58759
|
}
|
|
58833
58760
|
}
|
|
58834
|
-
function getCommands(text2) {
|
|
58761
|
+
function getCommands(editor, text2) {
|
|
58835
58762
|
const StandardTextStyles = {
|
|
58836
58763
|
"style-super": [i18n$1.t("commands.superscript"), void 0, SuperscriptIcon],
|
|
58837
58764
|
"style-sub": [i18n$1.t("commands.subscript"), void 0, SubscriptIcon]
|
|
@@ -58842,7 +58769,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58842
58769
|
icon,
|
|
58843
58770
|
desc
|
|
58844
58771
|
}));
|
|
58845
|
-
return getStandardTextStyles(standardItems, text2);
|
|
58772
|
+
return getStandardTextStyles(editor, standardItems, text2);
|
|
58846
58773
|
}
|
|
58847
58774
|
class TextScriptProvider {
|
|
58848
58775
|
constructor(editor) {
|
|
@@ -58857,10 +58784,10 @@ $$${mathData.mathjaxText}$$
|
|
|
58857
58784
|
}
|
|
58858
58785
|
let commands;
|
|
58859
58786
|
if (getBlockTextLength$6(editor, block) === 0 || !isTextKindBlock(editor, block)) {
|
|
58860
|
-
commands = getCommands([]);
|
|
58787
|
+
commands = getCommands(editor, []);
|
|
58861
58788
|
} else {
|
|
58862
58789
|
const subText2 = getSubText(editor, block, range);
|
|
58863
|
-
commands = getCommands(subText2);
|
|
58790
|
+
commands = getCommands(editor, subText2);
|
|
58864
58791
|
}
|
|
58865
58792
|
if (!(params == null ? void 0 : params.isFilter)) {
|
|
58866
58793
|
commands.forEach((item) => {
|
|
@@ -59057,10 +58984,10 @@ $$${mathData.mathjaxText}$$
|
|
|
59057
58984
|
icon: InlineCodeIcon
|
|
59058
58985
|
}];
|
|
59059
58986
|
if (getBlockTextLength$6(editor, block) === 0 || !isTextKindBlock(editor, block)) {
|
|
59060
|
-
commands = getStandardTextStyles(commands, []);
|
|
58987
|
+
commands = getStandardTextStyles(editor, commands, []);
|
|
59061
58988
|
} else {
|
|
59062
58989
|
const subText2 = getSubText(editor, block, range);
|
|
59063
|
-
commands = getStandardTextStyles(commands, subText2);
|
|
58990
|
+
commands = getStandardTextStyles(editor, commands, subText2);
|
|
59064
58991
|
}
|
|
59065
58992
|
if (!(params == null ? void 0 : params.isFilter)) {
|
|
59066
58993
|
commands.forEach((item) => {
|
|
@@ -62298,7 +62225,7 @@ ${codeText}
|
|
|
62298
62225
|
};
|
|
62299
62226
|
}
|
|
62300
62227
|
}
|
|
62301
|
-
const zhCN$
|
|
62228
|
+
const zhCN$p = {
|
|
62302
62229
|
code: {
|
|
62303
62230
|
title: "\u4EE3\u7801",
|
|
62304
62231
|
abstract: "\u4EE3\u7801",
|
|
@@ -62310,7 +62237,7 @@ ${codeText}
|
|
|
62310
62237
|
plainText: "Plain Text"
|
|
62311
62238
|
}
|
|
62312
62239
|
};
|
|
62313
|
-
const enUS$
|
|
62240
|
+
const enUS$p = {
|
|
62314
62241
|
code: {
|
|
62315
62242
|
title: "Code",
|
|
62316
62243
|
abstract: "Code",
|
|
@@ -62322,7 +62249,7 @@ ${codeText}
|
|
|
62322
62249
|
plainText: "Plain Text"
|
|
62323
62250
|
}
|
|
62324
62251
|
};
|
|
62325
|
-
const jaJP$
|
|
62252
|
+
const jaJP$p = {
|
|
62326
62253
|
code: {
|
|
62327
62254
|
title: "\u30B3\u30FC\u30C9",
|
|
62328
62255
|
abstract: "\u30B3\u30FC\u30C9",
|
|
@@ -62335,9 +62262,9 @@ ${codeText}
|
|
|
62335
62262
|
}
|
|
62336
62263
|
};
|
|
62337
62264
|
i18n$1.mergeLang({
|
|
62338
|
-
"zh-CN": zhCN$
|
|
62339
|
-
"en-US": enUS$
|
|
62340
|
-
"ja-JP": jaJP$
|
|
62265
|
+
"zh-CN": zhCN$p,
|
|
62266
|
+
"en-US": enUS$p,
|
|
62267
|
+
"ja-JP": jaJP$p
|
|
62341
62268
|
});
|
|
62342
62269
|
function convertToTable(editor, containerId, blockIndex, offset) {
|
|
62343
62270
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -62725,7 +62652,7 @@ ${codeText}
|
|
|
62725
62652
|
return false;
|
|
62726
62653
|
}
|
|
62727
62654
|
}
|
|
62728
|
-
const enUS$
|
|
62655
|
+
const enUS$o = {
|
|
62729
62656
|
placeholder: {
|
|
62730
62657
|
default: "Type / for commands",
|
|
62731
62658
|
heading: "Heading {heading}",
|
|
@@ -62736,7 +62663,7 @@ ${codeText}
|
|
|
62736
62663
|
mobileDefault: "Type to add content"
|
|
62737
62664
|
}
|
|
62738
62665
|
};
|
|
62739
|
-
const zhCN$
|
|
62666
|
+
const zhCN$o = {
|
|
62740
62667
|
placeholder: {
|
|
62741
62668
|
default: "\u8F93\u5165\u300C/\u300D\u5FEB\u901F\u63D2\u5165",
|
|
62742
62669
|
heading: "\u6807\u9898{heading}",
|
|
@@ -62747,7 +62674,7 @@ ${codeText}
|
|
|
62747
62674
|
mobileDefault: "\u8F93\u5165\u4EE5\u6DFB\u52A0\u5185\u5BB9"
|
|
62748
62675
|
}
|
|
62749
62676
|
};
|
|
62750
|
-
const jaJP$
|
|
62677
|
+
const jaJP$o = {
|
|
62751
62678
|
placeholder: {
|
|
62752
62679
|
default: "\u300C/\u300D\u3092\u5165\u529B\u3057\u3066\u7D20\u65E9\u304F\u633F\u5165\u3059\u308B",
|
|
62753
62680
|
heading: "\u898B\u51FA\u3057{heading}",
|
|
@@ -62759,9 +62686,9 @@ ${codeText}
|
|
|
62759
62686
|
}
|
|
62760
62687
|
};
|
|
62761
62688
|
const langs$1 = {
|
|
62762
|
-
"en-US": enUS$
|
|
62763
|
-
"zh-CN": zhCN$
|
|
62764
|
-
"ja-JP": jaJP$
|
|
62689
|
+
"en-US": enUS$o,
|
|
62690
|
+
"zh-CN": zhCN$o,
|
|
62691
|
+
"ja-JP": jaJP$o
|
|
62765
62692
|
};
|
|
62766
62693
|
i18n$1.mergeLang(langs$1);
|
|
62767
62694
|
function isEmptyTextBlockWithoutCompositionText(editor, block) {
|
|
@@ -63488,7 +63415,7 @@ ${codeText}
|
|
|
63488
63415
|
this.rootButton.destroy();
|
|
63489
63416
|
}
|
|
63490
63417
|
}
|
|
63491
|
-
const zhCN$
|
|
63418
|
+
const zhCN$n = {
|
|
63492
63419
|
blockMenu: {
|
|
63493
63420
|
section: {
|
|
63494
63421
|
basics: "\u57FA\u7840",
|
|
@@ -63512,7 +63439,7 @@ ${codeText}
|
|
|
63512
63439
|
}
|
|
63513
63440
|
}
|
|
63514
63441
|
};
|
|
63515
|
-
const enUS$
|
|
63442
|
+
const enUS$n = {
|
|
63516
63443
|
blockMenu: {
|
|
63517
63444
|
section: {
|
|
63518
63445
|
basics: "Basic",
|
|
@@ -63536,7 +63463,7 @@ ${codeText}
|
|
|
63536
63463
|
}
|
|
63537
63464
|
}
|
|
63538
63465
|
};
|
|
63539
|
-
const jaJP$
|
|
63466
|
+
const jaJP$n = {
|
|
63540
63467
|
blockMenu: {
|
|
63541
63468
|
section: {
|
|
63542
63469
|
basics: "\u4E00\u822C",
|
|
@@ -63561,9 +63488,9 @@ ${codeText}
|
|
|
63561
63488
|
}
|
|
63562
63489
|
};
|
|
63563
63490
|
i18n$1.mergeLang({
|
|
63564
|
-
"zh-CN": zhCN$
|
|
63565
|
-
"en-US": enUS$
|
|
63566
|
-
"ja-JP": jaJP$
|
|
63491
|
+
"zh-CN": zhCN$n,
|
|
63492
|
+
"en-US": enUS$n,
|
|
63493
|
+
"ja-JP": jaJP$n
|
|
63567
63494
|
});
|
|
63568
63495
|
const style$6 = "";
|
|
63569
63496
|
class DragData {
|
|
@@ -64519,7 +64446,7 @@ ${codeText}
|
|
|
64519
64446
|
}
|
|
64520
64447
|
}
|
|
64521
64448
|
}
|
|
64522
|
-
const zhCN$
|
|
64449
|
+
const zhCN$m = {
|
|
64523
64450
|
image: {
|
|
64524
64451
|
title: "\u56FE\u7247",
|
|
64525
64452
|
upload: {
|
|
@@ -64535,7 +64462,7 @@ ${codeText}
|
|
|
64535
64462
|
abstract: "\u56FE\u7247"
|
|
64536
64463
|
}
|
|
64537
64464
|
};
|
|
64538
|
-
const enUS$
|
|
64465
|
+
const enUS$m = {
|
|
64539
64466
|
image: {
|
|
64540
64467
|
title: "Image",
|
|
64541
64468
|
upload: {
|
|
@@ -64551,7 +64478,7 @@ ${codeText}
|
|
|
64551
64478
|
abstract: "Image"
|
|
64552
64479
|
}
|
|
64553
64480
|
};
|
|
64554
|
-
const jaJP$
|
|
64481
|
+
const jaJP$m = {
|
|
64555
64482
|
image: {
|
|
64556
64483
|
title: "\u753B\u50CF",
|
|
64557
64484
|
upload: {
|
|
@@ -64568,9 +64495,9 @@ ${codeText}
|
|
|
64568
64495
|
}
|
|
64569
64496
|
};
|
|
64570
64497
|
i18n$1.mergeLang({
|
|
64571
|
-
"zh-CN": zhCN$
|
|
64572
|
-
"en-US": enUS$
|
|
64573
|
-
"ja-JP": jaJP$
|
|
64498
|
+
"zh-CN": zhCN$m,
|
|
64499
|
+
"en-US": enUS$m,
|
|
64500
|
+
"ja-JP": jaJP$m
|
|
64574
64501
|
});
|
|
64575
64502
|
function convertToImage(editor, containerId, blockIndex, offset) {
|
|
64576
64503
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -64938,28 +64865,28 @@ ${codeText}
|
|
|
64938
64865
|
}
|
|
64939
64866
|
return getDragInsertPos(editor, block, images, x);
|
|
64940
64867
|
}
|
|
64941
|
-
const zhCN$
|
|
64868
|
+
const zhCN$l = {
|
|
64942
64869
|
embedProperties: {
|
|
64943
64870
|
edit: "\u7F16\u8F91",
|
|
64944
64871
|
addComment: "\u6DFB\u52A0\u6279\u6CE8"
|
|
64945
64872
|
}
|
|
64946
64873
|
};
|
|
64947
|
-
const enUS$
|
|
64874
|
+
const enUS$l = {
|
|
64948
64875
|
embedProperties: {
|
|
64949
64876
|
edit: "Edit",
|
|
64950
64877
|
addComment: "Add annotation"
|
|
64951
64878
|
}
|
|
64952
64879
|
};
|
|
64953
|
-
const jaJP$
|
|
64880
|
+
const jaJP$l = {
|
|
64954
64881
|
embedProperties: {
|
|
64955
64882
|
edit: "\u7DE8\u96C6",
|
|
64956
64883
|
addComment: "\u6CE8\u91C8\u3092\u8FFD\u52A0"
|
|
64957
64884
|
}
|
|
64958
64885
|
};
|
|
64959
64886
|
i18n$1.mergeLang({
|
|
64960
|
-
"zh-CN": zhCN$
|
|
64961
|
-
"en-US": enUS$
|
|
64962
|
-
"ja-JP": jaJP$
|
|
64887
|
+
"zh-CN": zhCN$l,
|
|
64888
|
+
"en-US": enUS$l,
|
|
64889
|
+
"ja-JP": jaJP$l
|
|
64963
64890
|
});
|
|
64964
64891
|
const logger$1c = getLogger("embed-block-properties");
|
|
64965
64892
|
function addCommentToBlock(editor, block) {
|
|
@@ -67539,7 +67466,7 @@ ${codeText}
|
|
|
67539
67466
|
}
|
|
67540
67467
|
}
|
|
67541
67468
|
const style$5 = "";
|
|
67542
|
-
const zhCN$
|
|
67469
|
+
const zhCN$k = {
|
|
67543
67470
|
comment: {
|
|
67544
67471
|
count: "\u6279\u6CE8 ({num})",
|
|
67545
67472
|
hide: "\u9690\u85CF\u6279\u6CE8",
|
|
@@ -67562,7 +67489,7 @@ ${codeText}
|
|
|
67562
67489
|
quickMenuCommand: "\u6DFB\u52A0\u6279\u6CE8"
|
|
67563
67490
|
}
|
|
67564
67491
|
};
|
|
67565
|
-
const enUS$
|
|
67492
|
+
const enUS$k = {
|
|
67566
67493
|
comment: {
|
|
67567
67494
|
count: "Annotations ({num})",
|
|
67568
67495
|
hide: "Hide Annotations",
|
|
@@ -67585,7 +67512,7 @@ ${codeText}
|
|
|
67585
67512
|
quickMenuCommand: "Add annotation"
|
|
67586
67513
|
}
|
|
67587
67514
|
};
|
|
67588
|
-
const jaJP$
|
|
67515
|
+
const jaJP$k = {
|
|
67589
67516
|
comment: {
|
|
67590
67517
|
count: "\u6CE8\u91C8 ({num})",
|
|
67591
67518
|
hide: "\u6CE8\u91C8\u3092\u975E\u8868\u793A",
|
|
@@ -67609,9 +67536,9 @@ ${codeText}
|
|
|
67609
67536
|
}
|
|
67610
67537
|
};
|
|
67611
67538
|
i18n$1.mergeLang({
|
|
67612
|
-
"zh-CN": zhCN$
|
|
67613
|
-
"en-US": enUS$
|
|
67614
|
-
"ja-JP": jaJP$
|
|
67539
|
+
"zh-CN": zhCN$k,
|
|
67540
|
+
"en-US": enUS$k,
|
|
67541
|
+
"ja-JP": jaJP$k
|
|
67615
67542
|
});
|
|
67616
67543
|
class OnesEditorCommentsRender {
|
|
67617
67544
|
renderText(editor, path, attributes) {
|
|
@@ -70196,7 +70123,7 @@ ${codeText}
|
|
|
70196
70123
|
return void 0;
|
|
70197
70124
|
}
|
|
70198
70125
|
};
|
|
70199
|
-
const zhCN$
|
|
70126
|
+
const zhCN$j = {
|
|
70200
70127
|
table: {
|
|
70201
70128
|
cellBackground: "\u5355\u5143\u683C\u80CC\u666F\u8272",
|
|
70202
70129
|
deleteSelectRow: "\u5220\u9664\u6240\u9009\u884C",
|
|
@@ -70227,7 +70154,7 @@ ${codeText}
|
|
|
70227
70154
|
}
|
|
70228
70155
|
}
|
|
70229
70156
|
};
|
|
70230
|
-
const enUS$
|
|
70157
|
+
const enUS$j = {
|
|
70231
70158
|
table: {
|
|
70232
70159
|
cellBackground: "Cell background color",
|
|
70233
70160
|
deleteSelectRow: "Delete selected rows",
|
|
@@ -70258,7 +70185,7 @@ ${codeText}
|
|
|
70258
70185
|
}
|
|
70259
70186
|
}
|
|
70260
70187
|
};
|
|
70261
|
-
const jaJP$
|
|
70188
|
+
const jaJP$j = {
|
|
70262
70189
|
table: {
|
|
70263
70190
|
cellBackground: "\u30BB\u30EB\u306E\u80CC\u666F\u8272",
|
|
70264
70191
|
deleteSelectRow: "\u9078\u629E\u3057\u305F\u884C\u3092\u524A\u9664",
|
|
@@ -70290,9 +70217,9 @@ ${codeText}
|
|
|
70290
70217
|
}
|
|
70291
70218
|
};
|
|
70292
70219
|
i18n$1.mergeLang({
|
|
70293
|
-
"zh-CN": zhCN$
|
|
70294
|
-
"en-US": enUS$
|
|
70295
|
-
"ja-JP": jaJP$
|
|
70220
|
+
"zh-CN": zhCN$j,
|
|
70221
|
+
"en-US": enUS$j,
|
|
70222
|
+
"ja-JP": jaJP$j
|
|
70296
70223
|
});
|
|
70297
70224
|
const tableStyle = "";
|
|
70298
70225
|
const logger$N = getLogger("table");
|
|
@@ -70556,13 +70483,7 @@ ${codeText}
|
|
|
70556
70483
|
if (!clientType.isMobile) {
|
|
70557
70484
|
this.item.children = items;
|
|
70558
70485
|
} else {
|
|
70559
|
-
const
|
|
70560
|
-
id: "",
|
|
70561
|
-
name: "",
|
|
70562
|
-
type: "separator"
|
|
70563
|
-
};
|
|
70564
|
-
const commands = items.reduce((prev, curr) => prev.concat([SEP2, curr]), []);
|
|
70565
|
-
commands.shift();
|
|
70486
|
+
const commands = groupEachCommand(items);
|
|
70566
70487
|
this.toolbar.updateItems(commands);
|
|
70567
70488
|
}
|
|
70568
70489
|
this.toolbar.manualShow(this.anchor, {
|
|
@@ -70700,21 +70621,21 @@ ${codeText}
|
|
|
70700
70621
|
return false;
|
|
70701
70622
|
}
|
|
70702
70623
|
}
|
|
70703
|
-
const zhCN$
|
|
70624
|
+
const zhCN$i = {
|
|
70704
70625
|
pasteSpecial: {
|
|
70705
70626
|
originFormats: "\u4FDD\u6301\u539F\u6837\u5F0F",
|
|
70706
70627
|
plainText: "\u7C98\u8D34\u7EAF\u6587\u672C",
|
|
70707
70628
|
markdown: "\u7C98\u8D34\u4E3A Markdown"
|
|
70708
70629
|
}
|
|
70709
70630
|
};
|
|
70710
|
-
const enUS$
|
|
70631
|
+
const enUS$i = {
|
|
70711
70632
|
pasteSpecial: {
|
|
70712
70633
|
originFormats: "Keep origin formats",
|
|
70713
70634
|
plainText: "Paste as plain text",
|
|
70714
70635
|
markdown: "Paste as markdown"
|
|
70715
70636
|
}
|
|
70716
70637
|
};
|
|
70717
|
-
const jaJP$
|
|
70638
|
+
const jaJP$i = {
|
|
70718
70639
|
pasteSpecial: {
|
|
70719
70640
|
originFormats: "\u5143\u306E\u30B9\u30BF\u30A4\u30EB\u3092\u7DAD\u6301\u3059\u308B",
|
|
70720
70641
|
plainText: "\u30D7\u30EC\u30FC\u30F3\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u308B",
|
|
@@ -70722,9 +70643,9 @@ ${codeText}
|
|
|
70722
70643
|
}
|
|
70723
70644
|
};
|
|
70724
70645
|
i18n$1.mergeLang({
|
|
70725
|
-
"zh-CN": zhCN$
|
|
70726
|
-
"en-US": enUS$
|
|
70727
|
-
"ja-JP": jaJP$
|
|
70646
|
+
"zh-CN": zhCN$i,
|
|
70647
|
+
"en-US": enUS$i,
|
|
70648
|
+
"ja-JP": jaJP$i
|
|
70728
70649
|
});
|
|
70729
70650
|
const style$4 = "";
|
|
70730
70651
|
const logger$L = getLogger("html-to-doc");
|
|
@@ -73487,7 +73408,7 @@ ${content}
|
|
|
73487
73408
|
const eleRect = firstChild.getBoundingClientRect();
|
|
73488
73409
|
offsetTop = eleRect.y;
|
|
73489
73410
|
}
|
|
73490
|
-
scrollIntoView
|
|
73411
|
+
scrollIntoView(editor, firstChild, { animation: true });
|
|
73491
73412
|
}
|
|
73492
73413
|
function getCurrentHighligh(editor) {
|
|
73493
73414
|
const elem = editor.rootContainer.querySelector(".editor-highlight.active");
|
|
@@ -74137,7 +74058,7 @@ ${content}
|
|
|
74137
74058
|
(_a = this.dialog) == null ? void 0 : _a.destroy();
|
|
74138
74059
|
}
|
|
74139
74060
|
}
|
|
74140
|
-
const zhCN$
|
|
74061
|
+
const zhCN$h = {
|
|
74141
74062
|
find: {
|
|
74142
74063
|
findLabel: "\u67E5\u627E:",
|
|
74143
74064
|
replaceLabel: "\u66FF\u6362:",
|
|
@@ -74149,7 +74070,7 @@ ${content}
|
|
|
74149
74070
|
replacePlaceholder: "\u66FF\u6362\u4E3A"
|
|
74150
74071
|
}
|
|
74151
74072
|
};
|
|
74152
|
-
const enUS$
|
|
74073
|
+
const enUS$h = {
|
|
74153
74074
|
find: {
|
|
74154
74075
|
findLabel: "Search:",
|
|
74155
74076
|
replaceLabel: "Replace:",
|
|
@@ -74161,7 +74082,7 @@ ${content}
|
|
|
74161
74082
|
replacePlaceholder: "Replace with"
|
|
74162
74083
|
}
|
|
74163
74084
|
};
|
|
74164
|
-
const jaJP$
|
|
74085
|
+
const jaJP$h = {
|
|
74165
74086
|
find: {
|
|
74166
74087
|
findLabel: "\u691C\u7D22\uFF1A",
|
|
74167
74088
|
replaceLabel: "\u7F6E\u63DB\uFF1A",
|
|
@@ -74174,9 +74095,9 @@ ${content}
|
|
|
74174
74095
|
}
|
|
74175
74096
|
};
|
|
74176
74097
|
i18n$1.mergeLang({
|
|
74177
|
-
"zh-CN": zhCN$
|
|
74178
|
-
"en-US": enUS$
|
|
74179
|
-
"ja-JP": jaJP$
|
|
74098
|
+
"zh-CN": zhCN$h,
|
|
74099
|
+
"en-US": enUS$h,
|
|
74100
|
+
"ja-JP": jaJP$h
|
|
74180
74101
|
});
|
|
74181
74102
|
function handleFindReplace(editor) {
|
|
74182
74103
|
const dialog = editor.addCustom("find-dialog", () => new FindDialog(editor));
|
|
@@ -74446,28 +74367,28 @@ ${content}
|
|
|
74446
74367
|
this.isShown = false;
|
|
74447
74368
|
}
|
|
74448
74369
|
}
|
|
74449
|
-
const zhCN$
|
|
74370
|
+
const zhCN$g = {
|
|
74450
74371
|
authError: {
|
|
74451
74372
|
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>',
|
|
74452
74373
|
successTips: "<div>\u7F16\u8F91\u72B6\u6001\u5DF2\u6062\u590D\uFF0C\u4F60\u53EF\u4EE5\u7EE7\u7EED\u7F16\u8F91</div>"
|
|
74453
74374
|
}
|
|
74454
74375
|
};
|
|
74455
|
-
const enUS$
|
|
74376
|
+
const enUS$g = {
|
|
74456
74377
|
authError: {
|
|
74457
74378
|
tips: '<div>Network disconnected. To avoid any potential loss of content, editing is temporarily disabled. <span id="exit">Exit editor<span id="exit">',
|
|
74458
74379
|
successTips: "<div>The editing mode has been restored and you can now continue editing.</div>"
|
|
74459
74380
|
}
|
|
74460
74381
|
};
|
|
74461
|
-
const jaJP$
|
|
74382
|
+
const jaJP$g = {
|
|
74462
74383
|
authError: {
|
|
74463
74384
|
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>',
|
|
74464
74385
|
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>"
|
|
74465
74386
|
}
|
|
74466
74387
|
};
|
|
74467
74388
|
i18n$1.mergeLang({
|
|
74468
|
-
"zh-CN": zhCN$
|
|
74469
|
-
"en-US": enUS$
|
|
74470
|
-
"ja-JP": jaJP$
|
|
74389
|
+
"zh-CN": zhCN$g,
|
|
74390
|
+
"en-US": enUS$g,
|
|
74391
|
+
"ja-JP": jaJP$g
|
|
74471
74392
|
});
|
|
74472
74393
|
const logger$B = getLogger("re-auth");
|
|
74473
74394
|
const DOC_RE_AUTH_KEYS = "doc-re-auth-event";
|
|
@@ -75042,7 +74963,7 @@ ${content}
|
|
|
75042
74963
|
return false;
|
|
75043
74964
|
}
|
|
75044
74965
|
}
|
|
75045
|
-
const zhCN$
|
|
74966
|
+
const zhCN$f = {
|
|
75046
74967
|
contextMenu: {
|
|
75047
74968
|
copyMarkdown: "\u590D\u5236\u4E3A Markdown",
|
|
75048
74969
|
paste: "\u7C98\u8D34",
|
|
@@ -75055,7 +74976,7 @@ ${content}
|
|
|
75055
74976
|
uneditableBlockSelected: "\u9009\u4E2D\u533A\u57DF\u5305\u542B\u9501\u5B9A\u533A\u5757\uFF0C\u6682\u4E0D\u652F\u6301\u526A\u5207"
|
|
75056
74977
|
}
|
|
75057
74978
|
};
|
|
75058
|
-
const enUS$
|
|
74979
|
+
const enUS$f = {
|
|
75059
74980
|
contextMenu: {
|
|
75060
74981
|
copyMarkdown: "Copy as Markdown",
|
|
75061
74982
|
paste: "Paste",
|
|
@@ -75068,7 +74989,7 @@ ${content}
|
|
|
75068
74989
|
uneditableBlockSelected: "The selected area contains locked blocks, and cutting is not currently supported"
|
|
75069
74990
|
}
|
|
75070
74991
|
};
|
|
75071
|
-
const jaJP$
|
|
74992
|
+
const jaJP$f = {
|
|
75072
74993
|
contextMenu: {
|
|
75073
74994
|
copyMarkdown: "Markdown \u3068\u3057\u3066\u30B3\u30D4\u30FC",
|
|
75074
74995
|
paste: "\u8CBC\u308A\u4ED8\u3051",
|
|
@@ -75082,9 +75003,9 @@ ${content}
|
|
|
75082
75003
|
}
|
|
75083
75004
|
};
|
|
75084
75005
|
i18n$1.mergeLang({
|
|
75085
|
-
"zh-CN": zhCN$
|
|
75086
|
-
"en-US": enUS$
|
|
75087
|
-
"ja-JP": jaJP$
|
|
75006
|
+
"zh-CN": zhCN$f,
|
|
75007
|
+
"en-US": enUS$f,
|
|
75008
|
+
"ja-JP": jaJP$f
|
|
75088
75009
|
});
|
|
75089
75010
|
function hideToolbar(editor) {
|
|
75090
75011
|
const toolbar2 = editor.findCustom("toolbar-handler");
|
|
@@ -75110,47 +75031,6 @@ ${content}
|
|
|
75110
75031
|
"CtrlOrCmd+Z": undoHandler,
|
|
75111
75032
|
"CtrlOrCmd+Shift+Z": redoHandler
|
|
75112
75033
|
};
|
|
75113
|
-
const zhCN$f = {
|
|
75114
|
-
commands: {
|
|
75115
|
-
bold: "\u7C97\u4F53",
|
|
75116
|
-
italic: "\u659C\u4F53",
|
|
75117
|
-
underline: "\u4E0B\u5212\u7EBF",
|
|
75118
|
-
strikethrough: "\u5220\u9664\u7EBF",
|
|
75119
|
-
code: "\u884C\u5185\u4EE3\u7801",
|
|
75120
|
-
subscript: "\u4E0B\u6807",
|
|
75121
|
-
superscript: "\u4E0A\u6807",
|
|
75122
|
-
more: "\u66F4\u591A"
|
|
75123
|
-
}
|
|
75124
|
-
};
|
|
75125
|
-
const enUS$f = {
|
|
75126
|
-
commands: {
|
|
75127
|
-
bold: "Bold",
|
|
75128
|
-
italic: "Italic",
|
|
75129
|
-
underline: "Underline",
|
|
75130
|
-
strikethrough: "Strikethrough",
|
|
75131
|
-
code: "Inline code",
|
|
75132
|
-
subscript: "Subscript",
|
|
75133
|
-
superscript: "Superscript",
|
|
75134
|
-
more: "More"
|
|
75135
|
-
}
|
|
75136
|
-
};
|
|
75137
|
-
const jaJP$f = {
|
|
75138
|
-
commands: {
|
|
75139
|
-
bold: "\u592A\u5B57",
|
|
75140
|
-
italic: "\u659C\u4F53",
|
|
75141
|
-
underline: "\u4E0B\u7DDA",
|
|
75142
|
-
strikethrough: "\u53D6\u308A\u6D88\u3057\u7DDA",
|
|
75143
|
-
code: "\u30A4\u30F3\u30E9\u30A4\u30F3\u30B3\u30FC\u30C9",
|
|
75144
|
-
subscript: "\u4E0B\u4ED8\u304D\u6587\u5B57",
|
|
75145
|
-
superscript: "\u4E0A\u4ED8\u304D\u6587\u5B57",
|
|
75146
|
-
more: "\u305D\u306E\u4ED6"
|
|
75147
|
-
}
|
|
75148
|
-
};
|
|
75149
|
-
i18n$1.mergeLang({
|
|
75150
|
-
"zh-CN": zhCN$f,
|
|
75151
|
-
"en-US": enUS$f,
|
|
75152
|
-
"ja-JP": jaJP$f
|
|
75153
|
-
});
|
|
75154
75034
|
var FilePreviewType = /* @__PURE__ */ ((FilePreviewType2) => {
|
|
75155
75035
|
FilePreviewType2["Card"] = "card";
|
|
75156
75036
|
FilePreviewType2["Preview"] = "preview";
|
|
@@ -78411,7 +78291,7 @@ ${content}
|
|
|
78411
78291
|
const mobileWrap = this.getMobileCommandElement();
|
|
78412
78292
|
const input2 = mobileWrap.querySelector("input");
|
|
78413
78293
|
input2.focus();
|
|
78414
|
-
|
|
78294
|
+
scrollBarIntoView(this.editor, bar2.menu.menu);
|
|
78415
78295
|
}
|
|
78416
78296
|
});
|
|
78417
78297
|
__publicField(this, "handleClickItem", (item) => {
|
|
@@ -79688,86 +79568,31 @@ ${content}
|
|
|
79688
79568
|
removeClass(this.endGripper, "active");
|
|
79689
79569
|
}
|
|
79690
79570
|
}
|
|
79691
|
-
class
|
|
79571
|
+
class MobileInsertMenuProvider extends ProxyProvider {
|
|
79692
79572
|
constructor(editor) {
|
|
79693
79573
|
super();
|
|
79694
79574
|
__publicField(this, "id", "InsertMenuProvider");
|
|
79695
79575
|
__publicField(this, "providers", []);
|
|
79696
79576
|
__publicField(this, "getInsertCommands", () => []);
|
|
79697
79577
|
__publicField(this, "getAvailableCommands", (editor, block, range, params) => {
|
|
79698
|
-
var _a, _b;
|
|
79699
79578
|
const commands = [];
|
|
79700
|
-
|
|
79701
|
-
|
|
79702
|
-
return;
|
|
79703
|
-
}
|
|
79704
|
-
const options = blockClass.getOptions(editor);
|
|
79705
|
-
if (!options.insertBlockCommandItems) {
|
|
79706
|
-
return;
|
|
79707
|
-
}
|
|
79708
|
-
injectBlockOptions(options.insertBlockCommandItems, options);
|
|
79709
|
-
commands.push(...options.insertBlockCommandItems);
|
|
79710
|
-
});
|
|
79711
|
-
if (!isTextKindBlock(editor, block)) {
|
|
79712
|
-
const container = getParentContainer(block);
|
|
79713
|
-
const containerId = getContainerId(container);
|
|
79714
|
-
for (const provider of this.providers) {
|
|
79715
|
-
commands.push(...(_b = (_a = provider.getInsertCommands) == null ? void 0 : _a.call(provider, editor, containerId)) != null ? _b : []);
|
|
79716
|
-
}
|
|
79717
|
-
} else {
|
|
79718
|
-
for (const provider of this.providers) {
|
|
79719
|
-
commands.push(...provider.getAvailableCommands(editor, block, range, params));
|
|
79720
|
-
}
|
|
79579
|
+
for (const provider of this.providers) {
|
|
79580
|
+
commands.push(...provider.getAvailableCommands(editor, block, range, params));
|
|
79721
79581
|
}
|
|
79722
79582
|
return commands.filter((command) => this.whiteList.includes(command.id)).sort((a, b) => this.whiteList.indexOf(a.id) - this.whiteList.indexOf(b.id));
|
|
79723
79583
|
});
|
|
79724
79584
|
__publicField(this, "executeInsertCommand", () => false);
|
|
79725
|
-
__publicField(this, "getNextBlockIndex", (container, block) => {
|
|
79726
|
-
let nextBlock = getNextVisibleBlock(block);
|
|
79727
|
-
if (!nextBlock) {
|
|
79728
|
-
nextBlock = getLastChildBlock(container);
|
|
79729
|
-
return getBlockIndex(nextBlock) + 1;
|
|
79730
|
-
}
|
|
79731
|
-
return getBlockIndex(nextBlock);
|
|
79732
|
-
});
|
|
79733
79585
|
__publicField(this, "executeCommand", (editor, block, range, item, params) => {
|
|
79734
|
-
var _a
|
|
79735
|
-
const
|
|
79736
|
-
|
|
79737
|
-
|
|
79738
|
-
const blockIndex = editor.getBlockIndex(block);
|
|
79739
|
-
if ((_a = quickItem.blockOptions) == null ? void 0 : _a.handleInsertEmptyBlock) {
|
|
79740
|
-
let insertIndex = blockIndex;
|
|
79741
|
-
const isEmptyBlock = isEmptyTextBlock(editor, block);
|
|
79742
|
-
if (!isEmptyBlock) {
|
|
79743
|
-
insertIndex = this.getNextBlock(container, block);
|
|
79744
|
-
}
|
|
79745
|
-
(_b = quickItem.blockOptions) == null ? void 0 : _b.handleInsertEmptyBlock(editor, {
|
|
79746
|
-
containerId,
|
|
79747
|
-
blockIndex: insertIndex,
|
|
79748
|
-
item,
|
|
79749
|
-
from: isEmptyBlock ? "add-block-menu" : "quick-menu"
|
|
79750
|
-
});
|
|
79751
|
-
return true;
|
|
79752
|
-
}
|
|
79753
|
-
if (!isTextKindBlock(editor, block)) {
|
|
79754
|
-
const insertIndex = this.getNextBlock(container, block);
|
|
79755
|
-
for (const provider of this.providers) {
|
|
79756
|
-
if ((_c = provider.executeInsertCommand) == null ? void 0 : _c.call(provider, editor, containerId, insertIndex, item, params)) {
|
|
79757
|
-
return true;
|
|
79758
|
-
}
|
|
79759
|
-
}
|
|
79760
|
-
} else {
|
|
79761
|
-
for (const provider of this.providers) {
|
|
79762
|
-
if ((_d = provider.executeCommand) == null ? void 0 : _d.call(provider, editor, block, range, item, params)) {
|
|
79763
|
-
return true;
|
|
79764
|
-
}
|
|
79586
|
+
var _a;
|
|
79587
|
+
for (const provider of this.providers) {
|
|
79588
|
+
if ((_a = provider.executeCommand) == null ? void 0 : _a.call(provider, editor, block, range, item, params)) {
|
|
79589
|
+
return true;
|
|
79765
79590
|
}
|
|
79766
79591
|
}
|
|
79767
79592
|
return false;
|
|
79768
79593
|
});
|
|
79769
79594
|
this.editor = editor;
|
|
79770
|
-
this.providers.push(new
|
|
79595
|
+
this.providers.push(new InsertMenuProvider(editor));
|
|
79771
79596
|
}
|
|
79772
79597
|
get whiteList() {
|
|
79773
79598
|
const list2 = ["insert-image", "insert-table", "insert-link", "insert-hr"];
|
|
@@ -79777,14 +79602,6 @@ ${content}
|
|
|
79777
79602
|
}
|
|
79778
79603
|
return list2;
|
|
79779
79604
|
}
|
|
79780
|
-
getNextBlock(container, block) {
|
|
79781
|
-
let nextBlock = getNextVisibleBlock(block);
|
|
79782
|
-
if (!nextBlock) {
|
|
79783
|
-
nextBlock = getLastChildBlock(container);
|
|
79784
|
-
return getBlockIndex(nextBlock) + 1;
|
|
79785
|
-
}
|
|
79786
|
-
return getBlockIndex(nextBlock);
|
|
79787
|
-
}
|
|
79788
79605
|
}
|
|
79789
79606
|
class CursorToolbarHandler {
|
|
79790
79607
|
constructor(editor) {
|
|
@@ -79872,7 +79689,7 @@ ${content}
|
|
|
79872
79689
|
];
|
|
79873
79690
|
});
|
|
79874
79691
|
this.editor = editor;
|
|
79875
|
-
this.providers = [new
|
|
79692
|
+
this.providers = [new MobileInsertMenuProvider(editor)];
|
|
79876
79693
|
}
|
|
79877
79694
|
}
|
|
79878
79695
|
class TurnIntoCommandProvider extends ProxyProvider {
|
|
@@ -80105,15 +79922,13 @@ ${content}
|
|
|
80105
79922
|
__publicField(this, "mobileToolbar");
|
|
80106
79923
|
__publicField(this, "fixedProviders");
|
|
80107
79924
|
__publicField(this, "bar");
|
|
80108
|
-
__publicField(this, "
|
|
80109
|
-
|
|
80110
|
-
});
|
|
80111
|
-
__publicField(this, "handleSelectionChange", () => {
|
|
80112
|
-
setTimeout(() => {
|
|
80113
|
-
const commands = this.fixedProviders.getCommands(this.editor.selection.range);
|
|
80114
|
-
this.mobileToolbar.updateItems(commands);
|
|
80115
|
-
});
|
|
79925
|
+
__publicField(this, "handleSubBarShown", (_2, subBar) => {
|
|
79926
|
+
scrollBarIntoView(this.editor, subBar);
|
|
80116
79927
|
});
|
|
79928
|
+
__publicField(this, "handleSelectionChange", debounce__default.default(() => {
|
|
79929
|
+
const commands = this.fixedProviders.getCommands(this.editor.selection.range);
|
|
79930
|
+
this.mobileToolbar.updateItems(commands);
|
|
79931
|
+
}, 60));
|
|
80117
79932
|
__publicField(this, "handleClick", (_2, item) => {
|
|
80118
79933
|
this.fixedProviders.executeCommand(this.editor.selection.range, item, {});
|
|
80119
79934
|
setTimeout(() => {
|
|
@@ -80127,10 +79942,8 @@ ${content}
|
|
|
80127
79942
|
this.fixedProviders = new FixedProviders(editor);
|
|
80128
79943
|
this.bar = createElement("div", ["command-m-bar"], parent);
|
|
80129
79944
|
const commands = this.fixedProviders.getCommands(this.editor.selection.range);
|
|
80130
|
-
this.mobileToolbar = new FixedToolbar(this.bar, commands
|
|
80131
|
-
|
|
80132
|
-
});
|
|
80133
|
-
this.mobileToolbar.addListener("subBarShown", this.handleSubBarShow);
|
|
79945
|
+
this.mobileToolbar = new FixedToolbar(this.bar, commands);
|
|
79946
|
+
this.mobileToolbar.addListener("subBarShown", this.handleSubBarShown);
|
|
80134
79947
|
this.mobileToolbar.addListener("click", this.handleClick);
|
|
80135
79948
|
this.editor.addListener("selectionChanged", this.handleSelectionChange);
|
|
80136
79949
|
setTimeout(() => {
|
|
@@ -80222,36 +80035,6 @@ ${content}
|
|
|
80222
80035
|
this.editor.scrollContainer.removeEventListener("scroll", this.handScroll);
|
|
80223
80036
|
}
|
|
80224
80037
|
}
|
|
80225
|
-
const mobileHelperStyles = "";
|
|
80226
|
-
const zhCN$7 = {
|
|
80227
|
-
mobile: {
|
|
80228
|
-
insert: "\u63D2\u5165",
|
|
80229
|
-
commands: {
|
|
80230
|
-
select: "\u9009\u62E9"
|
|
80231
|
-
}
|
|
80232
|
-
}
|
|
80233
|
-
};
|
|
80234
|
-
const enUS$7 = {
|
|
80235
|
-
mobile: {
|
|
80236
|
-
insert: "Insert",
|
|
80237
|
-
commands: {
|
|
80238
|
-
select: "Select"
|
|
80239
|
-
}
|
|
80240
|
-
}
|
|
80241
|
-
};
|
|
80242
|
-
const jaJP$7 = {
|
|
80243
|
-
mobile: {
|
|
80244
|
-
insert: "\u633F\u5165",
|
|
80245
|
-
commands: {
|
|
80246
|
-
select: "\u9078\u629E"
|
|
80247
|
-
}
|
|
80248
|
-
}
|
|
80249
|
-
};
|
|
80250
|
-
i18n$1.mergeLang({
|
|
80251
|
-
"zh-CN": zhCN$7,
|
|
80252
|
-
"en-US": enUS$7,
|
|
80253
|
-
"ja-JP": jaJP$7
|
|
80254
|
-
});
|
|
80255
80038
|
class MobileEmbedMask {
|
|
80256
80039
|
constructor(editor) {
|
|
80257
80040
|
__publicField(this, "addMask", (block) => {
|
|
@@ -80285,6 +80068,36 @@ ${content}
|
|
|
80285
80068
|
this.editor.removeListener("selectionChanged", this.handleSelectionChanged);
|
|
80286
80069
|
}
|
|
80287
80070
|
}
|
|
80071
|
+
const zhCN$7 = {
|
|
80072
|
+
mobile: {
|
|
80073
|
+
insert: "\u63D2\u5165",
|
|
80074
|
+
commands: {
|
|
80075
|
+
select: "\u9009\u62E9"
|
|
80076
|
+
}
|
|
80077
|
+
}
|
|
80078
|
+
};
|
|
80079
|
+
const enUS$7 = {
|
|
80080
|
+
mobile: {
|
|
80081
|
+
insert: "Insert",
|
|
80082
|
+
commands: {
|
|
80083
|
+
select: "Select"
|
|
80084
|
+
}
|
|
80085
|
+
}
|
|
80086
|
+
};
|
|
80087
|
+
const jaJP$7 = {
|
|
80088
|
+
mobile: {
|
|
80089
|
+
insert: "\u633F\u5165",
|
|
80090
|
+
commands: {
|
|
80091
|
+
select: "\u9078\u629E"
|
|
80092
|
+
}
|
|
80093
|
+
}
|
|
80094
|
+
};
|
|
80095
|
+
i18n$1.mergeLang({
|
|
80096
|
+
"zh-CN": zhCN$7,
|
|
80097
|
+
"en-US": enUS$7,
|
|
80098
|
+
"ja-JP": jaJP$7
|
|
80099
|
+
});
|
|
80100
|
+
const mobileHelperStyles = "";
|
|
80288
80101
|
const LONG_PRESS_DELAY = 800;
|
|
80289
80102
|
class OnesEditorMobileHelper {
|
|
80290
80103
|
constructor(editor) {
|
|
@@ -80352,12 +80165,12 @@ ${content}
|
|
|
80352
80165
|
window.clearTimeout(this.longPressTimeout);
|
|
80353
80166
|
this.longPressTimeout = 0;
|
|
80354
80167
|
}
|
|
80355
|
-
this.isMoving
|
|
80356
|
-
if (this.longPressTriggered) {
|
|
80168
|
+
if (this.longPressTriggered || this.isMoving) {
|
|
80357
80169
|
event.preventDefault();
|
|
80358
80170
|
event.stopPropagation();
|
|
80359
|
-
this.longPressTriggered = false;
|
|
80360
80171
|
}
|
|
80172
|
+
this.longPressTriggered = false;
|
|
80173
|
+
this.isMoving = false;
|
|
80361
80174
|
});
|
|
80362
80175
|
this.editor = editor;
|
|
80363
80176
|
this.editor.addListener("selectionChanged", this.handleSelectionChange);
|
|
@@ -82180,7 +81993,7 @@ ${content}
|
|
|
82180
81993
|
reject();
|
|
82181
81994
|
}
|
|
82182
81995
|
});
|
|
82183
|
-
dialog.addListener("
|
|
81996
|
+
dialog.addListener("shown", focus);
|
|
82184
81997
|
dialog.show();
|
|
82185
81998
|
const input2 = getField();
|
|
82186
81999
|
bindKeyDownEvent(input2, async (event, composing) => {
|
|
@@ -86802,7 +86615,7 @@ ${data2.flowchartText}
|
|
|
86802
86615
|
}
|
|
86803
86616
|
}
|
|
86804
86617
|
});
|
|
86805
|
-
editor.version = "2.1.1-beta.
|
|
86618
|
+
editor.version = "2.1.1-beta.74";
|
|
86806
86619
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
86807
86620
|
window.setReauthFail = (fail) => {
|
|
86808
86621
|
window.isReauthError = fail;
|
|
@@ -86903,7 +86716,7 @@ ${data2.flowchartText}
|
|
|
86903
86716
|
});
|
|
86904
86717
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
86905
86718
|
OnesEditorToolbar.register(editor);
|
|
86906
|
-
editor.version = "2.1.1-beta.
|
|
86719
|
+
editor.version = "2.1.1-beta.74";
|
|
86907
86720
|
return editor;
|
|
86908
86721
|
}
|
|
86909
86722
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -132692,7 +132505,7 @@ ${data2.flowchartText}
|
|
|
132692
132505
|
exports2.InlineCodeProvider = InlineCodeProvider;
|
|
132693
132506
|
exports2.InlineStyleProvider = InlineStyleProvider;
|
|
132694
132507
|
exports2.InputtingInsertion = InputtingInsertion;
|
|
132695
|
-
exports2.InsertMenuProvider = InsertMenuProvider
|
|
132508
|
+
exports2.InsertMenuProvider = InsertMenuProvider;
|
|
132696
132509
|
exports2.LayoutBlock = LayoutBlock;
|
|
132697
132510
|
exports2.LayoutBlockCaptionInputHandler = LayoutBlockCaptionInputHandler;
|
|
132698
132511
|
exports2.LayoutQuickMenuItemFilter = LayoutQuickMenuItemFilter;
|
|
@@ -132827,7 +132640,6 @@ ${data2.flowchartText}
|
|
|
132827
132640
|
exports2.createEmptyContainer = createEmptyContainer;
|
|
132828
132641
|
exports2.createEmptyDoc = createEmptyDoc$1;
|
|
132829
132642
|
exports2.createEmptyTextBlockData = createEmptyTextBlockData;
|
|
132830
|
-
exports2.createEntireRowAndColumnRange = createEntireRowAndColumnRange;
|
|
132831
132643
|
exports2.createExpandedRange = createExpandedRange;
|
|
132832
132644
|
exports2.createIconButton = createIconButton;
|
|
132833
132645
|
exports2.createImage = createImage;
|
|
@@ -132848,8 +132660,6 @@ ${data2.flowchartText}
|
|
|
132848
132660
|
exports2.createTextWithReplaceSoftReturn = createTextWithReplaceSoftReturn;
|
|
132849
132661
|
exports2.daysAfter = daysAfter;
|
|
132850
132662
|
exports2.deleteColor = deleteColor;
|
|
132851
|
-
exports2.deleteColumns = deleteColumns;
|
|
132852
|
-
exports2.deleteRows = deleteRows;
|
|
132853
132663
|
exports2.deleteText = deleteText;
|
|
132854
132664
|
exports2.diffDays = diffDays;
|
|
132855
132665
|
exports2.disablePageScroll = disablePageScroll;
|
|
@@ -132969,7 +132779,6 @@ ${data2.flowchartText}
|
|
|
132969
132779
|
exports2.fromNowString = fromNowString;
|
|
132970
132780
|
exports2.genId = genId;
|
|
132971
132781
|
exports2.generateEditorContainerId = generateEditorContainerId;
|
|
132972
|
-
exports2.getAbstractTableSelectionRange = getAbstractTableSelectionRange;
|
|
132973
132782
|
exports2.getAllChildBlocks = getAllChildBlocks;
|
|
132974
132783
|
exports2.getAllSelectedBlocks = getAllSelectedBlocks;
|
|
132975
132784
|
exports2.getAttributesAt = getAttributesAt;
|
|
@@ -133091,10 +132900,8 @@ ${data2.flowchartText}
|
|
|
133091
132900
|
exports2.injectSource = injectSource;
|
|
133092
132901
|
exports2.injectStyle = injectStyle;
|
|
133093
132902
|
exports2.inputActions = actions;
|
|
133094
|
-
exports2.insertColumn = insertColumn;
|
|
133095
132903
|
exports2.insertEmptyBlock = insertEmptyBlock;
|
|
133096
132904
|
exports2.insertEmptyEmbedBlock = insertEmptyEmbedBlock;
|
|
133097
|
-
exports2.insertRow = insertRow;
|
|
133098
132905
|
exports2.insertText = insertText;
|
|
133099
132906
|
exports2.intersectionCommands = intersectionCommands;
|
|
133100
132907
|
exports2.isBackspace = isBackspace;
|
|
@@ -133206,7 +133013,7 @@ ${data2.flowchartText}
|
|
|
133206
133013
|
exports2.requestDownload = requestDownload;
|
|
133207
133014
|
exports2.resetListStart = resetListStart;
|
|
133208
133015
|
exports2.saveAs = saveAs$1;
|
|
133209
|
-
exports2.scrollIntoView = scrollIntoView
|
|
133016
|
+
exports2.scrollIntoView = scrollIntoView;
|
|
133210
133017
|
exports2.scrollable = scrollable;
|
|
133211
133018
|
exports2.selectFile = selectFile;
|
|
133212
133019
|
exports2.selectedBlockToDoc = selectedBlockToDoc;
|
|
@@ -133214,12 +133021,9 @@ ${data2.flowchartText}
|
|
|
133214
133021
|
exports2.setAttributes = setAttributes;
|
|
133215
133022
|
exports2.setClipboardData = setClipboardData;
|
|
133216
133023
|
exports2.setClipboardDataByEvent = setClipboardDataByEvent;
|
|
133217
|
-
exports2.setColTitle = setColTitle;
|
|
133218
133024
|
exports2.setColorToAttributes = setColorToAttributes;
|
|
133219
133025
|
exports2.setDataset = setDataset;
|
|
133220
133026
|
exports2.setDefaultCursor = setDefaultCursor;
|
|
133221
|
-
exports2.setRowTitle = setRowTitle;
|
|
133222
|
-
exports2.setStripeStyle = setStripeStyle;
|
|
133223
133027
|
exports2.setStyles = setStyles;
|
|
133224
133028
|
exports2.shareDBCommentToDocObject = shareDBCommentToDocObject;
|
|
133225
133029
|
exports2.shareDBDocCommentToComment = shareDBDocCommentToComment;
|