@ones-editor/editor 2.1.2-beta.20 → 2.1.2-beta.22

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
@@ -66095,6 +66095,9 @@ ${codeText}
66095
66095
  this.tryEnableResizer(block);
66096
66096
  }
66097
66097
  });
66098
+ __publicField(this, "handleEditorResize", () => {
66099
+ this.blockResizer.updateResizer();
66100
+ });
66098
66101
  this.editor = editor;
66099
66102
  OnesEditorHoveringBlock.get(editor).addListener("change", this.handleHoveringBlockChange);
66100
66103
  this.blockResizer = new BlockResizer(this.editor, {
@@ -66102,8 +66105,10 @@ ${codeText}
66102
66105
  });
66103
66106
  this.blockResizer.addListener("resizing", this.handleResizing);
66104
66107
  this.blockResizer.addListener("resized", this.handleResized);
66108
+ this.editor.addListener("resize", this.handleEditorResize);
66105
66109
  }
66106
66110
  destroy() {
66111
+ this.editor.removeListener("resize", this.handleEditorResize);
66107
66112
  OnesEditorHoveringBlock.get(this.editor).removeListener("change", this.handleHoveringBlockChange);
66108
66113
  }
66109
66114
  tryEnableResizer(block) {
@@ -68494,7 +68499,6 @@ ${codeText}
68494
68499
  }
68495
68500
  };
68496
68501
  }
68497
- return void 0;
68498
68502
  }
68499
68503
  const types2 = ["embed", "code", "callout"];
68500
68504
  const type = getBlockType(blockElement);
@@ -88119,7 +88123,7 @@ ${data2.flowchartText}
88119
88123
  }
88120
88124
  }
88121
88125
  });
88122
- editor.version = "2.1.2-beta.20";
88126
+ editor.version = "2.1.2-beta.22";
88123
88127
  if (Logger$2.level === LogLevel.DEBUG) {
88124
88128
  window.setReauthFail = (fail) => {
88125
88129
  window.isReauthError = fail;
@@ -88220,7 +88224,7 @@ ${data2.flowchartText}
88220
88224
  });
88221
88225
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
88222
88226
  OnesEditorToolbar.register(editor);
88223
- editor.version = "2.1.2-beta.20";
88227
+ editor.version = "2.1.2-beta.22";
88224
88228
  return editor;
88225
88229
  }
88226
88230
  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.2-beta.20",
3
+ "version": "2.1.2-beta.22",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",