@lvce-editor/main-area-worker 9.54.3 → 9.55.0
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/mainAreaWorkerMain.js +2 -13
- package/package.json +1 -1
|
@@ -1606,9 +1606,6 @@ const {
|
|
|
1606
1606
|
invoke: invoke$4,
|
|
1607
1607
|
set: set$5
|
|
1608
1608
|
} = create$3(DragAndDropWorker);
|
|
1609
|
-
const getDroppedItems = async (itemIds, isElectron) => {
|
|
1610
|
-
return invoke$4('DragAndDrop.getDroppedItems', itemIds, isElectron);
|
|
1611
|
-
};
|
|
1612
1609
|
const getDroppedUrisByDropId = async (dropId, isElectron) => {
|
|
1613
1610
|
return invoke$4('DragAndDrop.getDroppedUrisByDropId', dropId, isElectron);
|
|
1614
1611
|
};
|
|
@@ -5275,7 +5272,7 @@ const getDropAction = async uris => {
|
|
|
5275
5272
|
const normalizeUri = uri => {
|
|
5276
5273
|
return uri.startsWith('/') ? `file://${uri}` : uri;
|
|
5277
5274
|
};
|
|
5278
|
-
const handleDrop = async (context,
|
|
5275
|
+
const handleDrop = async (context, dropId) => {
|
|
5279
5276
|
const initialState = context.getState();
|
|
5280
5277
|
const {
|
|
5281
5278
|
pointerDownGroupIndex,
|
|
@@ -5292,15 +5289,7 @@ const handleDrop = async (context, dropIdOrItemIds) => {
|
|
|
5292
5289
|
platform
|
|
5293
5290
|
} = context.getState();
|
|
5294
5291
|
const isElectron = platform === Electron;
|
|
5295
|
-
|
|
5296
|
-
if (typeof dropIdOrItemIds === 'number') {
|
|
5297
|
-
uris = await getDroppedUrisByDropId(dropIdOrItemIds, isElectron);
|
|
5298
|
-
} else {
|
|
5299
|
-
const {
|
|
5300
|
-
uris: droppedUris
|
|
5301
|
-
} = await getDroppedItems(dropIdOrItemIds, isElectron);
|
|
5302
|
-
uris = droppedUris;
|
|
5303
|
-
}
|
|
5292
|
+
const uris = await getDroppedUrisByDropId(dropId, isElectron);
|
|
5304
5293
|
if (draggedTab?.uri && uris.length === 1 && normalizeUri(uris[0]) === normalizeUri(draggedTab.uri)) {
|
|
5305
5294
|
await context.updateState(state => resetPointerDown(applyTabDrop(state, sourceGroup.id, draggedTab.id, splitDirection, targetGroupId)));
|
|
5306
5295
|
return;
|