@ones-editor/editor 2.2.14-beta.20 → 2.2.14-beta.22

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
@@ -72535,6 +72535,7 @@ ${codeText}
72535
72535
  }];
72536
72536
  }
72537
72537
  function codeToBlocks(token, options) {
72538
+ var _a;
72538
72539
  const code = token.text;
72539
72540
  if (!code) {
72540
72541
  return [];
@@ -72553,7 +72554,7 @@ ${codeText}
72553
72554
  }
72554
72555
  } catch (err) {
72555
72556
  }
72556
- const lang = i18n$1.t("code.plainText");
72557
+ const lang = (_a = token.lang) != null ? _a : i18n$1.t("code.plainText");
72557
72558
  if (lang === "mermaid") {
72558
72559
  return [{
72559
72560
  id: genId(),
@@ -81779,7 +81780,7 @@ ${content}
81779
81780
  this.editor.updateEmbedData(this.block, newData);
81780
81781
  });
81781
81782
  __publicField(this, "getRealView", (view) => {
81782
- if (this.editor.readonly) {
81783
+ if (this.editor.readonly || clientType.isMobile) {
81783
81784
  return ViewId.Draw;
81784
81785
  }
81785
81786
  return view != null ? view : ViewId.Both;
@@ -89182,7 +89183,7 @@ ${data2.plantumlText}
89182
89183
  }
89183
89184
  }
89184
89185
  });
89185
- editor.version = "2.2.14-beta.20";
89186
+ editor.version = "2.2.14-beta.22";
89186
89187
  return editor;
89187
89188
  }
89188
89189
  function isDoc(doc2) {
@@ -89284,7 +89285,7 @@ ${data2.plantumlText}
89284
89285
  });
89285
89286
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
89286
89287
  OnesEditorToolbar.register(editor);
89287
- editor.version = "2.2.14-beta.20";
89288
+ editor.version = "2.2.14-beta.22";
89288
89289
  return editor;
89289
89290
  }
89290
89291
  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.14-beta.20",
3
+ "version": "2.2.14-beta.22",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {