@ones-editor/editor 2.9.8-beta.65 → 2.9.8-beta.67

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
@@ -75884,10 +75884,10 @@ ${codeText}
75884
75884
  strong: "style-bold",
75885
75885
  em: "style-italic",
75886
75886
  del: "style-strikethrough",
75887
- superscript: "style-superscript",
75888
- sup: "style-superscript",
75889
- subscript: "style-subscript",
75890
- sub: "style-subscript"
75887
+ superscript: "style-super",
75888
+ sup: "style-super",
75889
+ subscript: "style-sub",
75890
+ sub: "style-sub"
75891
75891
  };
75892
75892
  function applyHtmlToText(htm, attributes) {
75893
75893
  const html = htm.toLowerCase();
@@ -80715,7 +80715,7 @@ ${docStr}
80715
80715
  const box = OnesEditorHoveringBlock.get(this.editor).hoveringTextChild;
80716
80716
  if (box && isBox(box) && getBoxTypeFromElement(box) === "file") {
80717
80717
  const file2 = this.editor.getBoxData(box);
80718
- if (!file2.size || !file2.creator) {
80718
+ if (!file2.fileSize || !file2.creator) {
80719
80719
  needRemoveCommandIds.add("to-link");
80720
80720
  needRemoveCommandIds.add("to-card");
80721
80721
  }
@@ -94914,6 +94914,9 @@ ${JSON.stringify(error2, null, 2)}`);
94914
94914
  }
94915
94915
  const content = toolbar2.content;
94916
94916
  const toolbarRoot = content.closest(".editor-main-toolbar-resizer");
94917
+ if (!toolbarRoot) {
94918
+ return;
94919
+ }
94917
94920
  const toolbarRect = toolbarRoot.getBoundingClientRect();
94918
94921
  const toolbarRight = toolbarRect.right;
94919
94922
  items.forEach((item) => {
@@ -95911,7 +95914,7 @@ ${JSON.stringify(error2, null, 2)}`);
95911
95914
  }
95912
95915
  }
95913
95916
  });
95914
- editor.version = "2.9.8-beta.65";
95917
+ editor.version = "2.9.8-beta.67";
95915
95918
  return editor;
95916
95919
  }
95917
95920
  function isDoc(doc2) {
@@ -96045,7 +96048,7 @@ ${JSON.stringify(error2, null, 2)}`);
96045
96048
  OnesEditorDropTarget.register(editor);
96046
96049
  OnesEditorTocProvider.register(editor);
96047
96050
  OnesEditorExclusiveBlock.register(editor);
96048
- editor.version = "2.9.8-beta.65";
96051
+ editor.version = "2.9.8-beta.67";
96049
96052
  return editor;
96050
96053
  }
96051
96054
  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.65",
3
+ "version": "2.9.8-beta.67",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {