@ones-editor/editor 2.8.9 → 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
  }
@@ -91822,7 +91831,7 @@ ${data2.plantumlText}
91822
91831
  __publicField(this, "manualShowChildren", true);
91823
91832
  __publicField(this, "childrenPlacement", "bottom-start");
91824
91833
  this.children = [{
91825
- name: "Plain text",
91834
+ name: i18n$1.t("commands.text"),
91826
91835
  id: "text",
91827
91836
  icon: TextIcon
91828
91837
  }, {
@@ -91840,7 +91849,7 @@ ${data2.plantumlText}
91840
91849
  ];
91841
91850
  for (let i = 1; i <= 6; i++) {
91842
91851
  this.children.push({
91843
- name: `Heading ${i}`,
91852
+ name: i18n$1.t("commands.heading", { name: `${i}` }),
91844
91853
  id: `heading-${i}`,
91845
91854
  icon: icons[i - 1],
91846
91855
  value: `${i}`
@@ -92594,7 +92603,7 @@ ${data2.plantumlText}
92594
92603
  }
92595
92604
  }
92596
92605
  });
92597
- editor.version = "2.8.9";
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.9";
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.9",
3
+ "version": "2.8.11",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {