@ones-editor/editor 5.0.4-beta.ONES22302091.1 → 5.0.4-beta.ONES22302151.1

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
@@ -68773,13 +68773,16 @@ ${codeText}
68773
68773
  };
68774
68774
  });
68775
68775
  __publicField(this, "handleDrop", (event) => {
68776
- var _a, _b, _c;
68777
- event.stopPropagation();
68776
+ var _a, _b, _c, _d, _e;
68777
+ const dragObject = getDragObject(this.editor, event.dataTransfer);
68778
+ const isExternalFileDrop = !dragObject && Array.from((_b = (_a = event.dataTransfer) == null ? void 0 : _a.types) != null ? _b : []).includes("Files");
68779
+ if (!isExternalFileDrop) {
68780
+ event.stopPropagation();
68781
+ }
68778
68782
  setTimeout(() => {
68779
68783
  this.indicator.hide();
68780
68784
  });
68781
- const dragObject = getDragObject(this.editor, event.dataTransfer);
68782
- const files = Array.from((_b = (_a = event.dataTransfer) == null ? void 0 : _a.files) != null ? _b : []);
68785
+ const files = Array.from((_d = (_c = event.dataTransfer) == null ? void 0 : _c.files) != null ? _d : []);
68783
68786
  if (!dragObject && files.length === 0) {
68784
68787
  if (event.dataTransfer) {
68785
68788
  event.dataTransfer.dropEffect = "none";
@@ -68790,7 +68793,7 @@ ${codeText}
68790
68793
  const target = this.indicator.target;
68791
68794
  if (target) {
68792
68795
  const { block, insertPos } = target;
68793
- const targetBlock = (_c = typeof insertPos === "object" && insertPos.type === "custom" ? insertPos.targetBlock : void 0) != null ? _c : block;
68796
+ const targetBlock = (_e = typeof insertPos === "object" && insertPos.type === "custom" ? insertPos.targetBlock : void 0) != null ? _e : block;
68794
68797
  const sourceBlock = getDraggedBlock(this.editor, event.dataTransfer);
68795
68798
  this.editor.undoManager.runInGroup(() => {
68796
68799
  if (typeof insertPos === "object" && insertPos.type === "combine" && sourceBlock) {
@@ -97572,7 +97575,7 @@ ${JSON.stringify(error2, null, 2)}`);
97572
97575
  }
97573
97576
  }
97574
97577
  });
97575
- editor.version = "5.0.4-beta.ONES22302091.1";
97578
+ editor.version = "5.0.4-beta.ONES22302151.1";
97576
97579
  return editor;
97577
97580
  }
97578
97581
  function isDoc(doc2) {
@@ -97708,7 +97711,7 @@ ${JSON.stringify(error2, null, 2)}`);
97708
97711
  OnesEditorDropTarget.register(editor);
97709
97712
  OnesEditorTocProvider.register(editor);
97710
97713
  OnesEditorExclusiveBlock.register(editor);
97711
- editor.version = "5.0.4-beta.ONES22302091.1";
97714
+ editor.version = "5.0.4-beta.ONES22302151.1";
97712
97715
  return editor;
97713
97716
  } catch (error2) {
97714
97717
  try {
@@ -97851,7 +97854,7 @@ ${JSON.stringify(error2, null, 2)}`);
97851
97854
  }
97852
97855
  }
97853
97856
  });
97854
- editor.version = "5.0.4-beta.ONES22302091.1";
97857
+ editor.version = "5.0.4-beta.ONES22302151.1";
97855
97858
  return editor;
97856
97859
  }
97857
97860
  const emojis$1 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "5.0.4-beta.ONES22302091.1",
3
+ "version": "5.0.4-beta.ONES22302151.1",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {