@ones-editor/editor 2.2.16-beta.9 → 2.2.16

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.
@@ -20,6 +20,8 @@ declare const _default: {
20
20
  urlLabel: string;
21
21
  textPlaceholder: string;
22
22
  urlPlaceholder: string;
23
+ mobileTextPlaceholder: string;
24
+ mobileUrlPlaceholder: string;
23
25
  submitText: string;
24
26
  cancelText: string;
25
27
  edit: string;
@@ -20,6 +20,8 @@ declare const _default: {
20
20
  urlLabel: string;
21
21
  textPlaceholder: string;
22
22
  urlPlaceholder: string;
23
+ mobileTextPlaceholder: string;
24
+ mobileUrlPlaceholder: string;
23
25
  submitText: string;
24
26
  cancelText: string;
25
27
  edit: string;
@@ -20,6 +20,8 @@ declare const _default: {
20
20
  urlLabel: string;
21
21
  textPlaceholder: string;
22
22
  urlPlaceholder: string;
23
+ mobileTextPlaceholder: string;
24
+ mobileUrlPlaceholder: string;
23
25
  submitText: string;
24
26
  cancelText: string;
25
27
  edit: string;
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: "\u6D41\u7A0B\u56FE/UML \u8D44\u6E90\u83B7\u53D6\u5931\u8D25\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7F16\u8F91\u3002",
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: "\u6D41\u7A0B\u56FE/UML \u8D44\u6E90\u83B7\u53D6\u5931\u8D25\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7F16\u8F91\u3002",
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
  }
@@ -88476,7 +88486,7 @@ ${data2.flowchartText}
88476
88486
  }
88477
88487
  }
88478
88488
  });
88479
- editor.version = "2.2.16-beta.9";
88489
+ editor.version = "2.2.16";
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.9";
88584
+ editor.version = "2.2.16";
88575
88585
  return editor;
88576
88586
  }
88577
88587
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.2.16-beta.9",
3
+ "version": "2.2.16",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",