@ones-editor/editor 3.0.3-beta.7 → 3.0.3-beta.9

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
@@ -42628,6 +42628,9 @@ ${codeText}
42628
42628
  function initMenuItem$1(item, elem) {
42629
42629
  var _a, _b;
42630
42630
  addClass(elem, "menu-item");
42631
+ if (item.className) {
42632
+ addClass(elem, ...item.className.split(" "));
42633
+ }
42631
42634
  if (item.element) {
42632
42635
  return;
42633
42636
  }
@@ -42703,6 +42706,9 @@ ${codeText}
42703
42706
  });
42704
42707
  }
42705
42708
  function initToolbarItem(item, elem, options) {
42709
+ if (item.className) {
42710
+ addClass(elem, ...item.className.split(" "));
42711
+ }
42706
42712
  elem.setAttribute("data-button-id", item.id);
42707
42713
  if (options.tooltipId && item.name && !item.disableTooltip) {
42708
42714
  elem.setAttribute(`data-editor-tooltip-${options.tooltipId}`, item.name);
@@ -95511,9 +95517,8 @@ ${JSON.stringify(error2, null, 2)}`);
95511
95517
  }
95512
95518
  const elem = node;
95513
95519
  const refId = elem.getAttribute("data-ref-id");
95514
- const refType = elem.getAttribute("data-ref-type");
95515
95520
  const uuid = elem.getAttribute("data-uuid");
95516
- return Boolean(refType === "task" && refId && uuid);
95521
+ return Boolean(refId && uuid);
95517
95522
  },
95518
95523
  replacement: (content, node) => {
95519
95524
  const refType = node.getAttribute("data-ref-type");
@@ -96051,7 +96056,7 @@ ${JSON.stringify(error2, null, 2)}`);
96051
96056
  }
96052
96057
  }
96053
96058
  });
96054
- editor.version = "3.0.3-beta.7";
96059
+ editor.version = "3.0.3-beta.9";
96055
96060
  return editor;
96056
96061
  }
96057
96062
  function isDoc(doc2) {
@@ -96185,7 +96190,7 @@ ${JSON.stringify(error2, null, 2)}`);
96185
96190
  OnesEditorDropTarget.register(editor);
96186
96191
  OnesEditorTocProvider.register(editor);
96187
96192
  OnesEditorExclusiveBlock.register(editor);
96188
- editor.version = "3.0.3-beta.7";
96193
+ editor.version = "3.0.3-beta.9";
96189
96194
  return editor;
96190
96195
  }
96191
96196
  async function showDocVersions(editor, options, serverUrl) {
@@ -96320,7 +96325,7 @@ ${JSON.stringify(error2, null, 2)}`);
96320
96325
  }
96321
96326
  }
96322
96327
  });
96323
- editor.version = "3.0.3-beta.7";
96328
+ editor.version = "3.0.3-beta.9";
96324
96329
  return editor;
96325
96330
  }
96326
96331
  const emojis$1 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "3.0.3-beta.7",
3
+ "version": "3.0.3-beta.9",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {