@ones-editor/editor 2.2.16-beta.9 → 2.2.17
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 +28 -15
- package/dist/lang/en-us.d.ts +1 -0
- package/dist/lang/ja-jp.d.ts +1 -0
- package/dist/lang/zh-cn.d.ts +1 -0
- 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);
|
|
@@ -82349,8 +82359,7 @@ ${content}
|
|
|
82349
82359
|
assert(logger$j, iframe.contentWindow, "iframe.contentWindow does not exist");
|
|
82350
82360
|
if (evt.data.length > 0) {
|
|
82351
82361
|
const msg = JSON.parse(evt.data);
|
|
82352
|
-
const xml = drawIoData.xmlSvg || drawIoData.xml;
|
|
82353
|
-
assert(logger$j, xml, "xml does not exist");
|
|
82362
|
+
const xml = drawIoData.xmlSvg || drawIoData.xml || "";
|
|
82354
82363
|
switch (msg.event) {
|
|
82355
82364
|
case "configure":
|
|
82356
82365
|
iframe.contentWindow.postMessage(JSON.stringify({
|
|
@@ -82423,12 +82432,13 @@ ${content}
|
|
|
82423
82432
|
const svg = await downloadSvgToString(editor, editor.doc.buildResourceUrl(data2.src));
|
|
82424
82433
|
if (svg) {
|
|
82425
82434
|
data2.xmlSvg = svg;
|
|
82435
|
+
} else {
|
|
82436
|
+
if (!data2.xml && !data2.xmlSvg) {
|
|
82437
|
+
showWarnToast();
|
|
82438
|
+
return;
|
|
82439
|
+
}
|
|
82426
82440
|
}
|
|
82427
82441
|
}
|
|
82428
|
-
if (!data2.xml && !data2.xmlSvg) {
|
|
82429
|
-
showWarnToast();
|
|
82430
|
-
return;
|
|
82431
|
-
}
|
|
82432
82442
|
const { drawioIframe, exit: exitIframe } = await initializeDrawioIframe(editor, block);
|
|
82433
82443
|
exclusiveBlock(editor, block);
|
|
82434
82444
|
const loaded = () => {
|
|
@@ -82678,7 +82688,7 @@ ${content}
|
|
|
82678
82688
|
abstract: "Flowchart/UML",
|
|
82679
82689
|
errorTips: "Flowchart/UML loading failed",
|
|
82680
82690
|
errorSubTips: "The network service is abnormal, you can",
|
|
82681
|
-
warnTips: "
|
|
82691
|
+
warnTips: "Failed to retrieve flowchart/UML resources, unable to edit.",
|
|
82682
82692
|
retry: "Try again",
|
|
82683
82693
|
save: "Saving"
|
|
82684
82694
|
}
|
|
@@ -82704,7 +82714,7 @@ ${content}
|
|
|
82704
82714
|
abstract: "\u30D5\u30ED\u30FC\u30C1\u30E3\u30FC\u30C8/UML",
|
|
82705
82715
|
errorTips: "\u30D5\u30ED\u30FC\u30C1\u30E3\u30FC\u30C8/UML \u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
|
|
82706
82716
|
errorSubTips: "\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 ",
|
|
82707
|
-
warnTips: "\
|
|
82717
|
+
warnTips: "\u7DE8\u96C6\u3067\u304D\u307E\u305B\u3093\u3002\u30D5\u30ED\u30FC\u30C1\u30E3\u30FC\u30C8/UML \u306E\u30EA\u30BD\u30FC\u30B9\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",
|
|
82708
82718
|
retry: "\u518D\u8A66\u884C",
|
|
82709
82719
|
save: "\u4FDD\u5B58\u4E2D"
|
|
82710
82720
|
}
|
|
@@ -86835,6 +86845,7 @@ ${data2.flowchartText}
|
|
|
86835
86845
|
placeholder: {
|
|
86836
86846
|
common: {
|
|
86837
86847
|
title: "\u8BF7\u8F93\u5165\u6807\u9898",
|
|
86848
|
+
mobileTitle: "\u8BF7\u8F93\u5165\u6807\u9898",
|
|
86838
86849
|
readonlyTitle: "\u8BF7\u8F93\u5165\u6807\u9898",
|
|
86839
86850
|
content: "\u70B9\u51FB + \uFF0C\u6216\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6",
|
|
86840
86851
|
contentInContainer: "\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6",
|
|
@@ -86855,6 +86866,7 @@ ${data2.flowchartText}
|
|
|
86855
86866
|
placeholder: {
|
|
86856
86867
|
common: {
|
|
86857
86868
|
title: "Enter a title",
|
|
86869
|
+
mobileTitle: "Enter a title",
|
|
86858
86870
|
readonlyTitle: "Enter a title",
|
|
86859
86871
|
content: 'Click "+", or enter "/" to insert components quickly',
|
|
86860
86872
|
contentInContainer: 'Enter "/" to insert components quickly',
|
|
@@ -86875,6 +86887,7 @@ ${data2.flowchartText}
|
|
|
86875
86887
|
placeholder: {
|
|
86876
86888
|
common: {
|
|
86877
86889
|
title: "\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
86890
|
+
mobileTitle: "\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B",
|
|
86878
86891
|
readonlyTitle: "\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
86879
86892
|
content: "\u300C+\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u304B\u3001\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059",
|
|
86880
86893
|
contentInContainer: "\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059",
|
|
@@ -88378,7 +88391,7 @@ ${data2.flowchartText}
|
|
|
88378
88391
|
new EnforceWithDocumentTitleHandler(editor, {
|
|
88379
88392
|
hideTitle: options.hideTitle,
|
|
88380
88393
|
headingLevel: 1,
|
|
88381
|
-
titlePlaceholder: i18n$1.t("placeholder.common.title"),
|
|
88394
|
+
titlePlaceholder: clientType.isMobile ? i18n$1.t("placeholder.common.mobileTitle") : i18n$1.t("placeholder.common.title"),
|
|
88382
88395
|
contentPlaceholder: clientType.isMobile ? "" : i18n$1.t("placeholder.common.content"),
|
|
88383
88396
|
readonlyTitlePlaceholder: i18n$1.t("placeholder.common.readonlyTitle"),
|
|
88384
88397
|
addPlaceholderToAllCurrentEmptyBlock: true,
|
|
@@ -88476,7 +88489,7 @@ ${data2.flowchartText}
|
|
|
88476
88489
|
}
|
|
88477
88490
|
}
|
|
88478
88491
|
});
|
|
88479
|
-
editor.version = "2.2.
|
|
88492
|
+
editor.version = "2.2.17";
|
|
88480
88493
|
return editor;
|
|
88481
88494
|
}
|
|
88482
88495
|
function isDoc(doc2) {
|
|
@@ -88518,7 +88531,7 @@ ${data2.flowchartText}
|
|
|
88518
88531
|
new EnforceWithDocumentTitleHandler(editor, {
|
|
88519
88532
|
hideTitle: options.hideTitle,
|
|
88520
88533
|
headingLevel: 1,
|
|
88521
|
-
titlePlaceholder: i18n$1.t("placeholder.common.title"),
|
|
88534
|
+
titlePlaceholder: clientType.isMobile ? i18n$1.t("placeholder.common.mobileTitle") : i18n$1.t("placeholder.common.title"),
|
|
88522
88535
|
contentPlaceholder: clientType.isMobile ? "" : i18n$1.t("placeholder.common.content"),
|
|
88523
88536
|
readonlyTitlePlaceholder: i18n$1.t("placeholder.local.readonlyTitle"),
|
|
88524
88537
|
addPlaceholderToAllCurrentEmptyBlock: true
|
|
@@ -88571,7 +88584,7 @@ ${data2.flowchartText}
|
|
|
88571
88584
|
});
|
|
88572
88585
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88573
88586
|
OnesEditorToolbar.register(editor);
|
|
88574
|
-
editor.version = "2.2.
|
|
88587
|
+
editor.version = "2.2.17";
|
|
88575
88588
|
return editor;
|
|
88576
88589
|
}
|
|
88577
88590
|
async function showDocVersions(editor, options, serverUrl) {
|
package/dist/lang/en-us.d.ts
CHANGED
package/dist/lang/ja-jp.d.ts
CHANGED
package/dist/lang/zh-cn.d.ts
CHANGED