@ones-editor/editor 2.1.1-beta.68 → 2.1.1-beta.69

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
@@ -49729,6 +49729,7 @@ ${codeText}
49729
49729
  this.linkPopup.addListener("show", this.onShow);
49730
49730
  this.linkPopup.addListener("shown", this.handleShown);
49731
49731
  this.linkPopup.manualShow(target);
49732
+ tippy$1.hideAll();
49732
49733
  });
49733
49734
  this.editor = editor;
49734
49735
  this.content = content;
@@ -59135,6 +59136,17 @@ $$${mathData.mathjaxText}$$
59135
59136
  name: "",
59136
59137
  type: "separator"
59137
59138
  };
59139
+ function isCodeTextBlock$1(editor, block) {
59140
+ if (!isTextKindBlock(editor, block)) {
59141
+ return false;
59142
+ }
59143
+ const container = getParentContainer(block);
59144
+ const parentBlock = getParentBlock(container);
59145
+ if (!parentBlock) {
59146
+ return false;
59147
+ }
59148
+ return getBlockType(parentBlock) === "code";
59149
+ }
59138
59150
  class ReadonlyToolbar {
59139
59151
  constructor(editor) {
59140
59152
  __publicField(this, "toolbar");
@@ -59330,6 +59342,9 @@ $$${mathData.mathjaxText}$$
59330
59342
  if (!firstBlock) {
59331
59343
  return;
59332
59344
  }
59345
+ if (isCodeTextBlock$1(this.editor, firstBlock.block)) {
59346
+ return;
59347
+ }
59333
59348
  if (selectedBlocks.length === 1) {
59334
59349
  if (isEmbedBlock(firstBlock.block)) {
59335
59350
  return;
@@ -86750,7 +86765,7 @@ ${data2.flowchartText}
86750
86765
  }
86751
86766
  }
86752
86767
  });
86753
- editor.version = "2.1.1-beta.68";
86768
+ editor.version = "2.1.1-beta.69";
86754
86769
  if (Logger$2.level === LogLevel.DEBUG) {
86755
86770
  window.setReauthFail = (fail) => {
86756
86771
  window.isReauthError = fail;
@@ -86848,7 +86863,7 @@ ${data2.flowchartText}
86848
86863
  });
86849
86864
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
86850
86865
  OnesEditorToolbar.register(editor);
86851
- editor.version = "2.1.1-beta.68";
86866
+ editor.version = "2.1.1-beta.69";
86852
86867
  return editor;
86853
86868
  }
86854
86869
  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.1.1-beta.68",
3
+ "version": "2.1.1-beta.69",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",