@ones-editor/editor 3.0.12-beta.3 → 3.0.12-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
@@ -88431,7 +88431,12 @@ ${data2.flowchartText}
88431
88431
  function getBlockProperties$3(editor, block) {
88432
88432
  const properties = getStandardEmbedBlockProperties(editor, block, {
88433
88433
  handleExecuteCommand: (editor2, block2, item) => {
88434
+ var _a, _b;
88434
88435
  if (item.id === "edit") {
88436
+ const drawioOptions = getDrawioOptions(editor2);
88437
+ if (((_b = (_a = drawioOptions.callbacks) == null ? void 0 : _a.onBeforeInsertDrawio) == null ? void 0 : _b.call(_a, editor2)) === false) {
88438
+ return true;
88439
+ }
88435
88440
  const data2 = editor2.getBlockData(block2).embedData;
88436
88441
  editGraph(editor2, block2, data2, false);
88437
88442
  return true;
@@ -96912,7 +96917,7 @@ ${JSON.stringify(error2, null, 2)}`);
96912
96917
  }
96913
96918
  }
96914
96919
  });
96915
- editor.version = "3.0.12-beta.3";
96920
+ editor.version = "3.0.12-beta.4";
96916
96921
  return editor;
96917
96922
  }
96918
96923
  function isDoc(doc2) {
@@ -97046,7 +97051,7 @@ ${JSON.stringify(error2, null, 2)}`);
97046
97051
  OnesEditorDropTarget.register(editor);
97047
97052
  OnesEditorTocProvider.register(editor);
97048
97053
  OnesEditorExclusiveBlock.register(editor);
97049
- editor.version = "3.0.12-beta.3";
97054
+ editor.version = "3.0.12-beta.4";
97050
97055
  return editor;
97051
97056
  }
97052
97057
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "3.0.12-beta.3",
3
+ "version": "3.0.12-beta.4",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {