@ones-editor/editor 2.1.1-beta.52 → 2.1.1-beta.53
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/dist/index.js
CHANGED
|
@@ -5829,7 +5829,7 @@ div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .co
|
|
|
5829
5829
|
line-height: 2.4;
|
|
5830
5830
|
}
|
|
5831
5831
|
div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .command-item .mobile-item-wrap .mobile-item-content {
|
|
5832
|
-
max-height:
|
|
5832
|
+
max-height: calc(100vh - 180px);
|
|
5833
5833
|
height: 400px;
|
|
5834
5834
|
overflow-x: auto;
|
|
5835
5835
|
overscroll-behavior: contain;
|
|
@@ -5857,6 +5857,17 @@ div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .co
|
|
|
5857
5857
|
width: 100%;
|
|
5858
5858
|
height: 100%;
|
|
5859
5859
|
}
|
|
5860
|
+
div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .command-item .mobile-item-wrap .mobile-item-content .mobile-item .mobile-item-icon .mention-user-avatar-string {
|
|
5861
|
+
align-items: center;
|
|
5862
|
+
display: flex;
|
|
5863
|
+
justify-content: center;
|
|
5864
|
+
overflow: hidden;
|
|
5865
|
+
height: 100%;
|
|
5866
|
+
width: 100%;
|
|
5867
|
+
font-size: 12px;
|
|
5868
|
+
color: white;
|
|
5869
|
+
flex-shrink: 0;
|
|
5870
|
+
}
|
|
5860
5871
|
div[data-command-bar-id=mobile-bottom-menu] .mobile-menu-wrap.editor-mention .command-item .mobile-item-wrap .mobile-item-content .mobile-item .mobile-item-name {
|
|
5861
5872
|
color: #2D2D2E;
|
|
5862
5873
|
font-size: 14px;
|
|
@@ -46568,6 +46579,9 @@ ${codeText}
|
|
|
46568
46579
|
}
|
|
46569
46580
|
}
|
|
46570
46581
|
get commands() {
|
|
46582
|
+
if (this.editor.readonly) {
|
|
46583
|
+
return [];
|
|
46584
|
+
}
|
|
46571
46585
|
const items = [];
|
|
46572
46586
|
const focusedBlock = this.editor.selection.focusedBlock;
|
|
46573
46587
|
for (const provider of this.providers) {
|
|
@@ -50421,14 +50435,14 @@ ${codeText}
|
|
|
50421
50435
|
OnesEditorHoveringBlock.get(editor).addListener("childChange", this.handleHoveringBlockChildChange);
|
|
50422
50436
|
OnesEditorHoveringBlock.get(editor).addFilter(this);
|
|
50423
50437
|
editor.blockHooks.push(new LinkCommands(editor));
|
|
50424
|
-
if (
|
|
50425
|
-
editor.editorCommandProviders.registerCommandProvider(new BlockTurnIntoCommandProvider(editor));
|
|
50426
|
-
editor.editorCommandProviders.registerCommandProvider(new ParagraphProvider$1(editor));
|
|
50427
|
-
editor.editorCommandProviders.registerCommandProvider(new AlignDropdownProvider$1(editor));
|
|
50428
|
-
} else {
|
|
50438
|
+
if (clientType.isMobile) {
|
|
50429
50439
|
editor.editorCommandProviders.registerCommandProvider(new MobileLinkProvider(editor));
|
|
50430
50440
|
editor.editorCommandProviders.registerCommandProvider(new StandardBoxProvider(editor));
|
|
50431
50441
|
editor.editorCommandProviders.registerCommandProvider(new ClipboardProvider(editor, { withPaste: true }));
|
|
50442
|
+
} else {
|
|
50443
|
+
editor.editorCommandProviders.registerCommandProvider(new BlockTurnIntoCommandProvider(editor));
|
|
50444
|
+
editor.editorCommandProviders.registerCommandProvider(new ParagraphProvider$1(editor));
|
|
50445
|
+
editor.editorCommandProviders.registerCommandProvider(new AlignDropdownProvider$1(editor));
|
|
50432
50446
|
}
|
|
50433
50447
|
}
|
|
50434
50448
|
disableTextToolbar() {
|
|
@@ -57961,7 +57975,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57961
57975
|
heading: "Heading {name}",
|
|
57962
57976
|
headingGroup: "Text style",
|
|
57963
57977
|
text: "Text",
|
|
57964
|
-
paste: "
|
|
57978
|
+
paste: "Paste",
|
|
57965
57979
|
tab: "Tab",
|
|
57966
57980
|
shiftTab: "Shift+Tab"
|
|
57967
57981
|
}
|
|
@@ -62660,7 +62674,7 @@ ${codeText}
|
|
|
62660
62674
|
const block = editor.selection.focusedBlock;
|
|
62661
62675
|
const blockType = getBlockType(block);
|
|
62662
62676
|
const defaultPlaceholder = options.contentPlaceholder || i18n$1.t("placeholder.default");
|
|
62663
|
-
let placeholder2 = defaultPlaceholder;
|
|
62677
|
+
let placeholder2 = clientType.isMobile ? "" : defaultPlaceholder;
|
|
62664
62678
|
if (blockType && isTextKindBlockType(editor, blockType)) {
|
|
62665
62679
|
if (block) {
|
|
62666
62680
|
if (!editor.isBlockWritable(block)) {
|
|
@@ -62669,7 +62683,7 @@ ${codeText}
|
|
|
62669
62683
|
if (isCodeLineBlock(block)) {
|
|
62670
62684
|
return "";
|
|
62671
62685
|
}
|
|
62672
|
-
if (isChildBlock(block)) {
|
|
62686
|
+
if (isChildBlock(block) && !clientType.isMobile) {
|
|
62673
62687
|
const parentContainerBlock = getParentBlock(getParentContainer(block));
|
|
62674
62688
|
if (!parentContainerBlock || !((_b = (_a = getBlockClass(editor, parentContainerBlock)).getOptions) == null ? void 0 : _b.call(_a, editor).isMenuButtonBaseContainer)) {
|
|
62675
62689
|
placeholder2 = i18n$1.t("placeholder.common.contentInTable");
|
|
@@ -74886,7 +74900,7 @@ ${content}
|
|
|
74886
74900
|
const enUS$g = {
|
|
74887
74901
|
contextMenu: {
|
|
74888
74902
|
copyMarkdown: "Copy as Markdown",
|
|
74889
|
-
paste: "
|
|
74903
|
+
paste: "Paste",
|
|
74890
74904
|
copyImage: "Copy image",
|
|
74891
74905
|
copyImageUrl: "Copy image address",
|
|
74892
74906
|
imageSaveAs: "Save image as",
|
|
@@ -78484,16 +78498,16 @@ ${content}
|
|
|
78484
78498
|
mention: {
|
|
78485
78499
|
abstract: "Member",
|
|
78486
78500
|
placeholder: "Please select a member",
|
|
78487
|
-
noResult: "No
|
|
78488
|
-
header: "
|
|
78501
|
+
noResult: "No matches",
|
|
78502
|
+
header: "Mention members"
|
|
78489
78503
|
}
|
|
78490
78504
|
};
|
|
78491
78505
|
const jaJP$a = {
|
|
78492
78506
|
mention: {
|
|
78493
78507
|
abstract: "\u30E1\u30F3\u30D0\u30FC",
|
|
78494
78508
|
placeholder: "\u30E1\u30F3\u30D0\u30FC\u3092\u691C\u7D22",
|
|
78495
|
-
noResult: "\
|
|
78496
|
-
header: "\u30E1\u30F3\u30D0\u30FC\u3092\
|
|
78509
|
+
noResult: "\u4E00\u81F4\u3059\u308B\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
78510
|
+
header: "\u30E1\u30F3\u30D0\u30FC\u3092\u30E1\u30F3\u30B7\u30E7\u30F3"
|
|
78497
78511
|
}
|
|
78498
78512
|
};
|
|
78499
78513
|
i18n$1.mergeLang({
|
|
@@ -79606,7 +79620,7 @@ ${content}
|
|
|
79606
79620
|
this.toolbar.close("selectionChange");
|
|
79607
79621
|
});
|
|
79608
79622
|
__publicField(this, "getCommands", () => {
|
|
79609
|
-
const commands = [{ id: "select", name: "
|
|
79623
|
+
const commands = [{ id: "select", name: i18n$1.t("mobile.commands.select") }];
|
|
79610
79624
|
const focusBlock = this.editor.selection.focusedBlock;
|
|
79611
79625
|
const clipboardCommands = new ClipboardProvider(this.editor, { withPaste: true }).getAvailableCommands(this.editor, focusBlock);
|
|
79612
79626
|
clipboardCommands.filter((cmd) => cmd.id === "paste").forEach((cmd) => commands.push(cmd));
|
|
@@ -80028,17 +80042,26 @@ ${content}
|
|
|
80028
80042
|
const mobileHelperStyles = "";
|
|
80029
80043
|
const zhCN$7 = {
|
|
80030
80044
|
mobile: {
|
|
80031
|
-
insert: "\u63D2\u5165"
|
|
80045
|
+
insert: "\u63D2\u5165",
|
|
80046
|
+
commands: {
|
|
80047
|
+
select: "\u9009\u62E9"
|
|
80048
|
+
}
|
|
80032
80049
|
}
|
|
80033
80050
|
};
|
|
80034
80051
|
const enUS$7 = {
|
|
80035
80052
|
mobile: {
|
|
80036
|
-
insert: "Insert"
|
|
80053
|
+
insert: "Insert",
|
|
80054
|
+
commands: {
|
|
80055
|
+
select: "Select"
|
|
80056
|
+
}
|
|
80037
80057
|
}
|
|
80038
80058
|
};
|
|
80039
80059
|
const jaJP$7 = {
|
|
80040
80060
|
mobile: {
|
|
80041
|
-
insert: "\
|
|
80061
|
+
insert: "\u633F\u5165",
|
|
80062
|
+
commands: {
|
|
80063
|
+
select: "\u9078\u629E"
|
|
80064
|
+
}
|
|
80042
80065
|
}
|
|
80043
80066
|
};
|
|
80044
80067
|
i18n$1.mergeLang({
|
|
@@ -86518,7 +86541,7 @@ ${data2.flowchartText}
|
|
|
86518
86541
|
}
|
|
86519
86542
|
}
|
|
86520
86543
|
});
|
|
86521
|
-
editor.version = "2.1.1-beta.
|
|
86544
|
+
editor.version = "2.1.1-beta.53";
|
|
86522
86545
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
86523
86546
|
window.setReauthFail = (fail) => {
|
|
86524
86547
|
window.isReauthError = fail;
|
|
@@ -86616,7 +86639,7 @@ ${data2.flowchartText}
|
|
|
86616
86639
|
});
|
|
86617
86640
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
86618
86641
|
OnesEditorToolbar.register(editor);
|
|
86619
|
-
editor.version = "2.1.1-beta.
|
|
86642
|
+
editor.version = "2.1.1-beta.53";
|
|
86620
86643
|
return editor;
|
|
86621
86644
|
}
|
|
86622
86645
|
async function showDocVersions(editor, options, serverUrl) {
|