@ones-editor/editor 2.1.1-beta.72 → 2.1.1-beta.73

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
@@ -50740,7 +50740,6 @@ ${codeText}
50740
50740
  }
50741
50741
  const block = this.hoveringBlock;
50742
50742
  const child = this.hoveringTextChild;
50743
- const isBoxChild = child && isTextBlockContentBoxChild(child);
50744
50743
  const { commands, element } = getObjectCommands(this.editor, block, child);
50745
50744
  if (!commands.length || !element) {
50746
50745
  this.toolbar.close("fromHover");
@@ -50765,7 +50764,7 @@ ${codeText}
50765
50764
  lineRects.push(y);
50766
50765
  });
50767
50766
  if (lineRects.length > 1) {
50768
- rect = isBoxChild ? clientRects[clientRects.length - 1] : clientRects[0];
50767
+ rect = child ? clientRects[clientRects.length - 1] : clientRects[0];
50769
50768
  if (event) {
50770
50769
  for (let i = 0; i < clientRects.length; i++) {
50771
50770
  const clientRect = clientRects[i];
@@ -50778,7 +50777,7 @@ ${codeText}
50778
50777
  }
50779
50778
  } else {
50780
50779
  rect = element.getBoundingClientRect();
50781
- if (isBoxChild) {
50780
+ if (child) {
50782
50781
  const childRect = child.getBoundingClientRect();
50783
50782
  return new DOMRect(childRect.x, childRect.y, childRect.width, childRect.height);
50784
50783
  }
@@ -86802,7 +86801,7 @@ ${data2.flowchartText}
86802
86801
  }
86803
86802
  }
86804
86803
  });
86805
- editor.version = "2.1.1-beta.72";
86804
+ editor.version = "2.1.1-beta.73";
86806
86805
  if (Logger$2.level === LogLevel.DEBUG) {
86807
86806
  window.setReauthFail = (fail) => {
86808
86807
  window.isReauthError = fail;
@@ -86903,7 +86902,7 @@ ${data2.flowchartText}
86903
86902
  });
86904
86903
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
86905
86904
  OnesEditorToolbar.register(editor);
86906
- editor.version = "2.1.1-beta.72";
86905
+ editor.version = "2.1.1-beta.73";
86907
86906
  return editor;
86908
86907
  }
86909
86908
  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.72",
3
+ "version": "2.1.1-beta.73",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",