@ones-editor/editor 2.9.8-beta.2 → 2.9.8-beta.4

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
@@ -26352,9 +26352,10 @@ var __publicField = (obj, key, value) => {
26352
26352
  const y2 = rect.bottom > windowHeight ? windowHeight : rect.bottom;
26353
26353
  const centerX = (x1 + x2) / 2;
26354
26354
  const centerY = (y1 + y2) / 2;
26355
- const x = 0 - rect.left + centerX;
26356
- const y = 0 - rect.top + centerY + container.scrollTop;
26357
26355
  const input2 = editor.input.inputElement;
26356
+ const inputHeight = input2.getBoundingClientRect().height;
26357
+ const x = 0 - rect.left + centerX;
26358
+ const y = 0 - rect.top + centerY + container.scrollTop - inputHeight / 2;
26358
26359
  input2.style.left = `${x / scale}px`;
26359
26360
  input2.style.top = `${y / scale}px`;
26360
26361
  }
@@ -74544,20 +74545,6 @@ ${codeText}
74544
74545
  const maxCellTextLength = maxCellTextLengths.get(cell.col) || 0;
74545
74546
  return padText(text2, maxCellTextLength);
74546
74547
  };
74547
- if (type === "text") {
74548
- const text2 = [];
74549
- for (let col = 0; col < grid.colCount; col++) {
74550
- const cellText = getCellText({ row: 0, col });
74551
- text2.push(cellText);
74552
- }
74553
- for (let row = 1; row < grid.rowCount; row++) {
74554
- for (let col = 0; col < grid.colCount; col++) {
74555
- const cellText = getCellText({ row, col });
74556
- text2.push(cellText);
74557
- }
74558
- }
74559
- return text2.join("\n");
74560
- }
74561
74548
  const lines = [];
74562
74549
  let headerText = "|";
74563
74550
  let headerSeparator = "|";
@@ -95021,7 +95008,7 @@ ${JSON.stringify(error2, null, 2)}`);
95021
95008
  }
95022
95009
  }
95023
95010
  });
95024
- editor.version = "2.9.8-beta.2";
95011
+ editor.version = "2.9.8-beta.4";
95025
95012
  return editor;
95026
95013
  }
95027
95014
  function isDoc(doc2) {
@@ -95153,7 +95140,7 @@ ${JSON.stringify(error2, null, 2)}`);
95153
95140
  OnesEditorDropTarget.register(editor);
95154
95141
  OnesEditorTocProvider.register(editor);
95155
95142
  OnesEditorExclusiveBlock.register(editor);
95156
- editor.version = "2.9.8-beta.2";
95143
+ editor.version = "2.9.8-beta.4";
95157
95144
  return editor;
95158
95145
  }
95159
95146
  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.9.8-beta.2",
3
+ "version": "2.9.8-beta.4",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {