@lvce-editor/explorer-view 5.6.0 → 5.8.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.
|
@@ -2205,11 +2205,14 @@ const toCollapsedDirent = dirent => {
|
|
|
2205
2205
|
|
|
2206
2206
|
const collapseAll = async state => {
|
|
2207
2207
|
const {
|
|
2208
|
+
focusedIndex,
|
|
2208
2209
|
items
|
|
2209
2210
|
} = state;
|
|
2210
2211
|
const newDirents = items.filter(isTopLevel).map(toCollapsedDirent);
|
|
2212
|
+
const newFocusedIndex = getFocusedIndexCancel(newDirents, focusedIndex);
|
|
2211
2213
|
return {
|
|
2212
2214
|
...state,
|
|
2215
|
+
focusedIndex: newFocusedIndex,
|
|
2213
2216
|
items: newDirents
|
|
2214
2217
|
};
|
|
2215
2218
|
};
|
|
@@ -3771,6 +3774,13 @@ const handleCut = async state => {
|
|
|
3771
3774
|
};
|
|
3772
3775
|
};
|
|
3773
3776
|
|
|
3777
|
+
const handleDragEnd = state => {
|
|
3778
|
+
return {
|
|
3779
|
+
...state,
|
|
3780
|
+
dropTargets: []
|
|
3781
|
+
};
|
|
3782
|
+
};
|
|
3783
|
+
|
|
3774
3784
|
const handleDragLeave = state => {
|
|
3775
3785
|
return state;
|
|
3776
3786
|
};
|
|
@@ -6156,6 +6166,7 @@ const commandMap = {
|
|
|
6156
6166
|
'Explorer.handleContextMenuKeyboard': wrapListItemCommand(handleContextMenuKeyboard),
|
|
6157
6167
|
'Explorer.handleCopy': wrapListItemCommand(handleCopy),
|
|
6158
6168
|
'Explorer.handleCut': wrapListItemCommand(handleCut),
|
|
6169
|
+
'Explorer.handleDragEnd': wrapListItemCommand(handleDragEnd),
|
|
6159
6170
|
'Explorer.handleDragLeave': wrapListItemCommand(handleDragLeave),
|
|
6160
6171
|
'Explorer.handleDragOver': wrapListItemCommand(handleDragOver),
|
|
6161
6172
|
'Explorer.handleDragOverIndex': wrapListItemCommand(handleDragOverIndex),
|