@ones-editor/editor 4.0.4-beta.ONES22302151.1 → 4.0.4-beta.h1448.2
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +8 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -68745,16 +68745,13 @@ ${codeText}
|
|
|
68745
68745
|
};
|
|
68746
68746
|
});
|
|
68747
68747
|
__publicField(this, "handleDrop", (event) => {
|
|
68748
|
-
var _a, _b, _c
|
|
68749
|
-
|
|
68750
|
-
const isExternalFileDrop = !dragObject && Array.from((_b = (_a = event.dataTransfer) == null ? void 0 : _a.types) != null ? _b : []).includes("Files");
|
|
68751
|
-
if (!isExternalFileDrop) {
|
|
68752
|
-
event.stopPropagation();
|
|
68753
|
-
}
|
|
68748
|
+
var _a, _b, _c;
|
|
68749
|
+
event.stopPropagation();
|
|
68754
68750
|
setTimeout(() => {
|
|
68755
68751
|
this.indicator.hide();
|
|
68756
68752
|
});
|
|
68757
|
-
const
|
|
68753
|
+
const dragObject = getDragObject(this.editor, event.dataTransfer);
|
|
68754
|
+
const files = Array.from((_b = (_a = event.dataTransfer) == null ? void 0 : _a.files) != null ? _b : []);
|
|
68758
68755
|
if (!dragObject && files.length === 0) {
|
|
68759
68756
|
if (event.dataTransfer) {
|
|
68760
68757
|
event.dataTransfer.dropEffect = "none";
|
|
@@ -68765,7 +68762,7 @@ ${codeText}
|
|
|
68765
68762
|
const target = this.indicator.target;
|
|
68766
68763
|
if (target) {
|
|
68767
68764
|
const { block, insertPos } = target;
|
|
68768
|
-
const targetBlock = (
|
|
68765
|
+
const targetBlock = (_c = typeof insertPos === "object" && insertPos.type === "custom" ? insertPos.targetBlock : void 0) != null ? _c : block;
|
|
68769
68766
|
const sourceBlock = getDraggedBlock(this.editor, event.dataTransfer);
|
|
68770
68767
|
this.editor.undoManager.runInGroup(() => {
|
|
68771
68768
|
if (typeof insertPos === "object" && insertPos.type === "combine" && sourceBlock) {
|
|
@@ -97256,7 +97253,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97256
97253
|
}
|
|
97257
97254
|
}
|
|
97258
97255
|
});
|
|
97259
|
-
editor.version = "4.0.4-beta.
|
|
97256
|
+
editor.version = "4.0.4-beta.h1448.2";
|
|
97260
97257
|
return editor;
|
|
97261
97258
|
}
|
|
97262
97259
|
function isDoc(doc2) {
|
|
@@ -97392,7 +97389,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97392
97389
|
OnesEditorDropTarget.register(editor);
|
|
97393
97390
|
OnesEditorTocProvider.register(editor);
|
|
97394
97391
|
OnesEditorExclusiveBlock.register(editor);
|
|
97395
|
-
editor.version = "4.0.4-beta.
|
|
97392
|
+
editor.version = "4.0.4-beta.h1448.2";
|
|
97396
97393
|
return editor;
|
|
97397
97394
|
} catch (error2) {
|
|
97398
97395
|
try {
|
|
@@ -97535,7 +97532,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97535
97532
|
}
|
|
97536
97533
|
}
|
|
97537
97534
|
});
|
|
97538
|
-
editor.version = "4.0.4-beta.
|
|
97535
|
+
editor.version = "4.0.4-beta.h1448.2";
|
|
97539
97536
|
return editor;
|
|
97540
97537
|
}
|
|
97541
97538
|
const emojis$1 = {
|