@ones-editor/editor 3.0.1-beta.17 → 3.0.1-beta.18

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
@@ -26467,11 +26467,11 @@ var __publicField = (obj, key, value) => {
26467
26467
  const x2 = rect.right > windowWidth ? windowWidth : rect.right;
26468
26468
  const y2 = rect.bottom > windowHeight ? windowHeight : rect.bottom;
26469
26469
  const centerX = (x1 + x2) / 2;
26470
- const centerY = (y1 + y2) / 2;
26470
+ const centerY = (y1 + y2) / 8;
26471
26471
  const input2 = editor.input.inputElement;
26472
26472
  const inputHeight = input2.getBoundingClientRect().height;
26473
26473
  const x = 0 - rect.left + centerX;
26474
- const y = 0 - rect.top + centerY + container.scrollTop - inputHeight / 8;
26474
+ const y = 0 - rect.top + centerY + container.scrollTop - inputHeight / 2;
26475
26475
  input2.style.left = `${x / scale}px`;
26476
26476
  input2.style.top = `${y / scale}px`;
26477
26477
  }
@@ -95969,7 +95969,7 @@ ${JSON.stringify(error2, null, 2)}`);
95969
95969
  }
95970
95970
  }
95971
95971
  });
95972
- editor.version = "3.0.1-beta.17";
95972
+ editor.version = "3.0.1-beta.18";
95973
95973
  return editor;
95974
95974
  }
95975
95975
  function isDoc(doc2) {
@@ -96103,7 +96103,7 @@ ${JSON.stringify(error2, null, 2)}`);
96103
96103
  OnesEditorDropTarget.register(editor);
96104
96104
  OnesEditorTocProvider.register(editor);
96105
96105
  OnesEditorExclusiveBlock.register(editor);
96106
- editor.version = "3.0.1-beta.17";
96106
+ editor.version = "3.0.1-beta.18";
96107
96107
  return editor;
96108
96108
  }
96109
96109
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "3.0.1-beta.17",
3
+ "version": "3.0.1-beta.18",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {