@ones-editor/editor 2.8.37-beta.12 → 2.8.37-beta.14

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
@@ -64144,6 +64144,9 @@ $$${mathData.mathjaxText}$$
64144
64144
  const failedLoad = !!block.querySelector(".images > .image-container.error, .images > .image-container.empty ");
64145
64145
  const width = calImageBlockStyleWidth(editor, blockData, parentContainer, failedLoad);
64146
64146
  const height = calBlockHeight(editor, blockData, parentContainer, failedLoad);
64147
+ if (height.startsWith("0")) {
64148
+ return;
64149
+ }
64147
64150
  const content = getBlockContent(block);
64148
64151
  if (width === "auto") {
64149
64152
  content.style.width = width;
@@ -94509,6 +94512,7 @@ ${JSON.stringify(error2, null, 2)}`);
94509
94512
  constructor(editor, parent, options = {}) {
94510
94513
  __publicField(this, "toolbar");
94511
94514
  __publicField(this, "toolbarFullScreen");
94515
+ __publicField(this, "root");
94512
94516
  __publicField(this, "handleClick", (bar2, item) => {
94513
94517
  const command = item;
94514
94518
  if (command.onClick) {
@@ -94550,6 +94554,7 @@ ${JSON.stringify(error2, null, 2)}`);
94550
94554
  const container = createElement("div", ["editor-main-toolbar-resizer"], root2);
94551
94555
  const resizer = createElement("div", ["editor-main-toolbar-container"], container);
94552
94556
  const items = getToolbarDefaultItems(editor);
94557
+ this.root = root2;
94553
94558
  this.toolbar = new FixedToolbar(resizer, items, {
94554
94559
  tooltipId: editor.clientId,
94555
94560
  id: "main-toolbar"
@@ -94587,6 +94592,7 @@ ${JSON.stringify(error2, null, 2)}`);
94587
94592
  this.toolbar.destroy();
94588
94593
  this.editor.removeListener("selectionChanged", this.handleSelectionChanged);
94589
94594
  (_a = this.toolbarFullScreen) == null ? void 0 : _a.destroy();
94595
+ this.root.remove();
94590
94596
  }
94591
94597
  setItems(items) {
94592
94598
  this.toolbar.updateItems(items);
@@ -94876,7 +94882,7 @@ ${JSON.stringify(error2, null, 2)}`);
94876
94882
  }
94877
94883
  }
94878
94884
  });
94879
- editor.version = "2.8.37-beta.12";
94885
+ editor.version = "2.8.37-beta.14";
94880
94886
  return editor;
94881
94887
  }
94882
94888
  function isDoc(doc2) {
@@ -95009,7 +95015,7 @@ ${JSON.stringify(error2, null, 2)}`);
95009
95015
  OnesEditorDropTarget.register(editor);
95010
95016
  OnesEditorTocProvider.register(editor);
95011
95017
  OnesEditorExclusiveBlock.register(editor);
95012
- editor.version = "2.8.37-beta.12";
95018
+ editor.version = "2.8.37-beta.14";
95013
95019
  return editor;
95014
95020
  }
95015
95021
  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.8.37-beta.12",
3
+ "version": "2.8.37-beta.14",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {