@ones-editor/editor 3.1.4-beta.ONES22302151.1 → 3.1.4-beta.h1447.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
@@ -63118,7 +63118,7 @@ $$${mathData.mathjaxText}$$
63118
63118
  alignLeft: "\u5DE6\u63C3\u3048",
63119
63119
  alignRight: "\u53F3\u63C3\u3048",
63120
63120
  alignCenter: "\u4E2D\u592E\u63C3\u3048",
63121
- alignGroup: "\u5BF9\u9F50\u65B9\u5F0F",
63121
+ alignGroup: "\u6587\u5B57\u63C3\u3048",
63122
63122
  heading: "\u898B\u51FA\u3057{name}",
63123
63123
  headingGroup: "\u30BF\u30A4\u30C8\u30EB\u30B9\u30BF\u30A4\u30EB",
63124
63124
  text: "\u672C\u6587",
@@ -68638,16 +68638,13 @@ ${codeText}
68638
68638
  };
68639
68639
  });
68640
68640
  __publicField(this, "handleDrop", (event) => {
68641
- var _a, _b, _c, _d, _e;
68642
- const dragObject = getDragObject(this.editor, event.dataTransfer);
68643
- const isExternalFileDrop = !dragObject && Array.from((_b = (_a = event.dataTransfer) == null ? void 0 : _a.types) != null ? _b : []).includes("Files");
68644
- if (!isExternalFileDrop) {
68645
- event.stopPropagation();
68646
- }
68641
+ var _a, _b, _c;
68642
+ event.stopPropagation();
68647
68643
  setTimeout(() => {
68648
68644
  this.indicator.hide();
68649
68645
  });
68650
- const files = Array.from((_d = (_c = event.dataTransfer) == null ? void 0 : _c.files) != null ? _d : []);
68646
+ const dragObject = getDragObject(this.editor, event.dataTransfer);
68647
+ const files = Array.from((_b = (_a = event.dataTransfer) == null ? void 0 : _a.files) != null ? _b : []);
68651
68648
  if (!dragObject && files.length === 0) {
68652
68649
  if (event.dataTransfer) {
68653
68650
  event.dataTransfer.dropEffect = "none";
@@ -68658,7 +68655,7 @@ ${codeText}
68658
68655
  const target = this.indicator.target;
68659
68656
  if (target) {
68660
68657
  const { block, insertPos } = target;
68661
- const targetBlock = (_e = typeof insertPos === "object" && insertPos.type === "custom" ? insertPos.targetBlock : void 0) != null ? _e : block;
68658
+ const targetBlock = (_c = typeof insertPos === "object" && insertPos.type === "custom" ? insertPos.targetBlock : void 0) != null ? _c : block;
68662
68659
  const sourceBlock = getDraggedBlock(this.editor, event.dataTransfer);
68663
68660
  this.editor.undoManager.runInGroup(() => {
68664
68661
  if (typeof insertPos === "object" && insertPos.type === "combine" && sourceBlock) {
@@ -97111,7 +97108,7 @@ ${JSON.stringify(error2, null, 2)}`);
97111
97108
  }
97112
97109
  }
97113
97110
  });
97114
- editor.version = "3.1.4-beta.ONES22302151.1";
97111
+ editor.version = "3.1.4-beta.h1447.1";
97115
97112
  return editor;
97116
97113
  }
97117
97114
  function isDoc(doc2) {
@@ -97252,7 +97249,7 @@ ${JSON.stringify(error2, null, 2)}`);
97252
97249
  OnesEditorDropTarget.register(editor);
97253
97250
  OnesEditorTocProvider.register(editor);
97254
97251
  OnesEditorExclusiveBlock.register(editor);
97255
- editor.version = "3.1.4-beta.ONES22302151.1";
97252
+ editor.version = "3.1.4-beta.h1447.1";
97256
97253
  return editor;
97257
97254
  } catch (error2) {
97258
97255
  if (editorForCleanup) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "3.1.4-beta.ONES22302151.1",
3
+ "version": "3.1.4-beta.h1447.1",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {