@ones-editor/editor 2.8.10 → 2.8.11

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
@@ -68138,7 +68138,7 @@ ${codeText}
68138
68138
  if ((dragObject == null ? void 0 : dragObject.type) === "block") {
68139
68139
  return void 0;
68140
68140
  }
68141
- if (images.length >= 6 || images.length === 1) {
68141
+ if (images.length >= 6) {
68142
68142
  if ((dragObject == null ? void 0 : dragObject.blockId) !== getBlockId(block)) {
68143
68143
  return void 0;
68144
68144
  }
@@ -87101,6 +87101,15 @@ ${data2.plantumlText}
87101
87101
  if (getContainerId(editor.getParentContainer(target)) !== "root") {
87102
87102
  return void 0;
87103
87103
  }
87104
+ const sourceType = getBlockType(source);
87105
+ const targetType = getBlockType(target);
87106
+ if (sourceType === targetType && sourceType === "embed") {
87107
+ const sourceEmbed = getEmbedType(source);
87108
+ const targetEmbed = getEmbedType(target);
87109
+ if (sourceEmbed === targetEmbed && sourceEmbed === "image") {
87110
+ return void 0;
87111
+ }
87112
+ }
87104
87113
  if (getBlockType(source) === LAYOUT_BLOCK_TYPE || getBlockType(target) === LAYOUT_BLOCK_TYPE) {
87105
87114
  return void 0;
87106
87115
  }
@@ -92594,7 +92603,7 @@ ${data2.plantumlText}
92594
92603
  }
92595
92604
  }
92596
92605
  });
92597
- editor.version = "2.8.10";
92606
+ editor.version = "2.8.11";
92598
92607
  return editor;
92599
92608
  }
92600
92609
  function isDoc(doc2) {
@@ -92707,7 +92716,7 @@ ${data2.plantumlText}
92707
92716
  }
92708
92717
  });
92709
92718
  OnesEditorToolbar.register(editor);
92710
- editor.version = "2.8.10";
92719
+ editor.version = "2.8.11";
92711
92720
  return editor;
92712
92721
  }
92713
92722
  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.10",
3
+ "version": "2.8.11",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {