@ones-editor/editor 2.2.16-beta.10 → 2.2.16-beta.12
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/input-handlers/src/i18n/en-us.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/ja-jp.d.ts +1 -0
- package/@ones-editor/input-handlers/src/i18n/zh-cn.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/locale/en-us.d.ts +2 -0
- package/@ones-editor/ui/src/locale/ja-jp.d.ts +2 -0
- package/@ones-editor/ui/src/locale/zh-cn.d.ts +2 -0
- package/dist/index.js +15 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -84,6 +84,7 @@ div.editor-root div.editor-content .editor-input {
|
|
|
84
84
|
position: absolute;
|
|
85
85
|
opacity: 0;
|
|
86
86
|
pointer-events: none;
|
|
87
|
+
caret-color: transparent;
|
|
87
88
|
/* width cannot be too small, otherwise the input will not receive the compositionend message */
|
|
88
89
|
width: 16px;
|
|
89
90
|
height: 20px;
|
|
@@ -51382,7 +51383,7 @@ ${codeText}
|
|
|
51382
51383
|
this.form.linkText = createInput(content, {
|
|
51383
51384
|
label: i18n$1.t("link.textLabel"),
|
|
51384
51385
|
required: false,
|
|
51385
|
-
placeholder: i18n$1.t("link.textPlaceholder"),
|
|
51386
|
+
placeholder: clientType.isMobile ? i18n$1.t("link.mobileTextPlaceholder") : i18n$1.t("link.textPlaceholder"),
|
|
51386
51387
|
defaultValue: linkText,
|
|
51387
51388
|
suffixClose: clientType.isMobile,
|
|
51388
51389
|
onChange: this.onChange,
|
|
@@ -51393,7 +51394,7 @@ ${codeText}
|
|
|
51393
51394
|
className: "link-popup-gap",
|
|
51394
51395
|
label: i18n$1.t("link.urlLabel"),
|
|
51395
51396
|
required: true,
|
|
51396
|
-
placeholder: i18n$1.t("link.urlPlaceholder"),
|
|
51397
|
+
placeholder: clientType.isMobile ? i18n$1.t("link.mobileUrlPlaceholder") : i18n$1.t("link.urlPlaceholder"),
|
|
51397
51398
|
defaultValue: linkUrl,
|
|
51398
51399
|
suffixClose: clientType.isMobile,
|
|
51399
51400
|
onChange: this.onChange,
|
|
@@ -59896,6 +59897,8 @@ $$${mathData.mathjaxText}$$
|
|
|
59896
59897
|
urlLabel: "\u94FE\u63A5\u5730\u5740",
|
|
59897
59898
|
textPlaceholder: "\u8BF7\u8F93\u5165\u6587\u672C",
|
|
59898
59899
|
urlPlaceholder: "\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740",
|
|
59900
|
+
mobileTextPlaceholder: "\u8BF7\u8F93\u5165\u6587\u672C",
|
|
59901
|
+
mobileUrlPlaceholder: "\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740",
|
|
59899
59902
|
submitText: "\u786E\u5B9A",
|
|
59900
59903
|
cancelText: "\u53D6\u6D88",
|
|
59901
59904
|
edit: "\u7F16\u8F91",
|
|
@@ -59952,6 +59955,8 @@ $$${mathData.mathjaxText}$$
|
|
|
59952
59955
|
urlLabel: "URL",
|
|
59953
59956
|
textPlaceholder: "Please enter text",
|
|
59954
59957
|
urlPlaceholder: "Please enter URL",
|
|
59958
|
+
mobileTextPlaceholder: "Please enter text",
|
|
59959
|
+
mobileUrlPlaceholder: "Please enter URL",
|
|
59955
59960
|
submitText: "Confirm",
|
|
59956
59961
|
cancelText: "Cancel",
|
|
59957
59962
|
edit: "Edit",
|
|
@@ -60008,6 +60013,8 @@ $$${mathData.mathjaxText}$$
|
|
|
60008
60013
|
urlLabel: "URL",
|
|
60009
60014
|
textPlaceholder: "\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
60010
60015
|
urlPlaceholder: "URL \u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
60016
|
+
mobileTextPlaceholder: "\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B",
|
|
60017
|
+
mobileUrlPlaceholder: "URL \u3092\u5165\u529B",
|
|
60011
60018
|
submitText: "OK",
|
|
60012
60019
|
cancelText: "\u30AD\u30E3\u30F3\u30BB\u30EB",
|
|
60013
60020
|
edit: "\u7DE8\u96C6",
|
|
@@ -64128,6 +64135,7 @@ ${codeText}
|
|
|
64128
64135
|
heading: "Heading {heading}",
|
|
64129
64136
|
list: "List",
|
|
64130
64137
|
mention: "Quickly assign tasks and use @ to mention yourself or others",
|
|
64138
|
+
mobileMention: "Use @ to mention members",
|
|
64131
64139
|
quote: "Quote",
|
|
64132
64140
|
title: "Enter document title",
|
|
64133
64141
|
mobileDefault: "Type to add content"
|
|
@@ -64139,6 +64147,7 @@ ${codeText}
|
|
|
64139
64147
|
heading: "\u6807\u9898{heading}",
|
|
64140
64148
|
list: "\u5217\u8868",
|
|
64141
64149
|
mention: "\u5FEB\u901F\u5206\u914D\u4EFB\u52A1\uFF0C@\u63D0\u53CA\u81EA\u5DF1\u6216\u4ED6\u4EBA",
|
|
64150
|
+
mobileMention: "\u5FEB\u901F\u5206\u914D\u4EFB\u52A1\uFF0C@\u63D0\u53CA\u81EA\u5DF1\u6216\u4ED6\u4EBA",
|
|
64142
64151
|
quote: "\u5F15\u7528",
|
|
64143
64152
|
title: "\u8BF7\u8F93\u5165\u6587\u6863\u6807\u9898",
|
|
64144
64153
|
mobileDefault: "\u8F93\u5165\u4EE5\u6DFB\u52A0\u5185\u5BB9"
|
|
@@ -64150,6 +64159,7 @@ ${codeText}
|
|
|
64150
64159
|
heading: "\u898B\u51FA\u3057{heading}",
|
|
64151
64160
|
list: "\u30EA\u30B9\u30C8",
|
|
64152
64161
|
mention: "\u81EA\u5206\u3084\u30E1\u30F3\u30D0\u30FC\u3092\uFF20\u3057\u3001\u30BF\u30B9\u30AF\u3092\u7D20\u65E9\u304F\u5272\u308A\u5F53\u3066\u307E\u3059",
|
|
64162
|
+
mobileMention: "\u30E1\u30F3\u30D0\u30FC\u3092\uFF20\u3057\u3066\u30A2\u30B5\u30A4\u30F3\u3059\u308B",
|
|
64153
64163
|
quote: "\u5F15\u7528",
|
|
64154
64164
|
title: "\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
64155
64165
|
mobileDefault: "\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u8FFD\u52A0\u3059\u308B\u306B\u306F\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"
|
|
@@ -64213,7 +64223,7 @@ ${codeText}
|
|
|
64213
64223
|
if (listType === "ordered" || listType === "unordered") {
|
|
64214
64224
|
return i18n$1.t("placeholder.list");
|
|
64215
64225
|
}
|
|
64216
|
-
return i18n$1.t("placeholder.mention");
|
|
64226
|
+
return clientType.isMobile ? i18n$1.t("placeholder.mobileMention") : i18n$1.t("placeholder.mention");
|
|
64217
64227
|
}
|
|
64218
64228
|
function getTextKindBlockPlaceholder(block) {
|
|
64219
64229
|
const blockType = getBlockType(block);
|
|
@@ -88476,7 +88486,7 @@ ${data2.flowchartText}
|
|
|
88476
88486
|
}
|
|
88477
88487
|
}
|
|
88478
88488
|
});
|
|
88479
|
-
editor.version = "2.2.16-beta.
|
|
88489
|
+
editor.version = "2.2.16-beta.12";
|
|
88480
88490
|
return editor;
|
|
88481
88491
|
}
|
|
88482
88492
|
function isDoc(doc2) {
|
|
@@ -88571,7 +88581,7 @@ ${data2.flowchartText}
|
|
|
88571
88581
|
});
|
|
88572
88582
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88573
88583
|
OnesEditorToolbar.register(editor);
|
|
88574
|
-
editor.version = "2.2.16-beta.
|
|
88584
|
+
editor.version = "2.2.16-beta.12";
|
|
88575
88585
|
return editor;
|
|
88576
88586
|
}
|
|
88577
88587
|
async function showDocVersions(editor, options, serverUrl) {
|