@lvce-editor/explorer-view 3.26.0 → 3.27.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.
|
@@ -2846,7 +2846,7 @@ const wrapListItemCommand = fn => {
|
|
|
2846
2846
|
const intermediate = get(id);
|
|
2847
2847
|
set$1(id, intermediate.oldState, updatedState);
|
|
2848
2848
|
const maxLineY = getExplorerMaxLineY(minLineY, height, itemHeight, items.length);
|
|
2849
|
-
if (items === intermediate.newState.items && minLineY === intermediate.newState.minLineY && editingIcon === intermediate.newState.editingIcon && cutItems === intermediate.newState.cutItems && editingErrorMessage === intermediate.newState.editingErrorMessage) {
|
|
2849
|
+
if (items === intermediate.newState.items && minLineY === intermediate.newState.minLineY && editingIcon === intermediate.newState.editingIcon && cutItems === intermediate.newState.cutItems && editingErrorMessage === intermediate.newState.editingErrorMessage && dropTargets === intermediate.newState.dropTargets) {
|
|
2850
2850
|
return;
|
|
2851
2851
|
}
|
|
2852
2852
|
const visible = items.slice(minLineY, maxLineY);
|
|
@@ -3116,8 +3116,9 @@ const getChildDirentsRecursively = async (dirent, pathSeparator) => {
|
|
|
3116
3116
|
|
|
3117
3117
|
const getParentEndIndex = (dirents, index) => {
|
|
3118
3118
|
const dirent = dirents[index];
|
|
3119
|
+
const depth = dirent.depth;
|
|
3119
3120
|
let endIndex = index + 1;
|
|
3120
|
-
while (endIndex < dirents.length && dirents[endIndex].depth >
|
|
3121
|
+
while (endIndex < dirents.length && dirents[endIndex].depth > depth) {
|
|
3121
3122
|
endIndex++;
|
|
3122
3123
|
}
|
|
3123
3124
|
return endIndex;
|
|
@@ -4078,7 +4079,7 @@ const canBeDroppedInto = dirent => {
|
|
|
4078
4079
|
|
|
4079
4080
|
const countInRange = (start, end) => {
|
|
4080
4081
|
const items = [];
|
|
4081
|
-
for (let i = start; i
|
|
4082
|
+
for (let i = start; i <= end; i++) {
|
|
4082
4083
|
items.push(i);
|
|
4083
4084
|
}
|
|
4084
4085
|
return items;
|
|
@@ -6312,8 +6313,6 @@ const commandMap = {
|
|
|
6312
6313
|
'Explorer.focusFirst': wrapListItemCommand(focusFirst),
|
|
6313
6314
|
'Explorer.focusIndex': wrapListItemCommand(focusIndex),
|
|
6314
6315
|
'Explorer.focusLast': wrapListItemCommand(focusLast),
|
|
6315
|
-
'Explorer.handleDragStart': wrapListItemCommand(handleDragStart),
|
|
6316
|
-
'Explorer.handleDragOverIndex': wrapListItemCommand(handleDragOverIndex),
|
|
6317
6316
|
'Explorer.focusNext': wrapListItemCommand(focusNext),
|
|
6318
6317
|
'Explorer.focusNone': wrapListItemCommand(focusNone),
|
|
6319
6318
|
'Explorer.focusPrevious': wrapListItemCommand(focusPrevious),
|
|
@@ -6322,7 +6321,6 @@ const commandMap = {
|
|
|
6322
6321
|
'Explorer.getMouseActions': getMouseActions,
|
|
6323
6322
|
'Explorer.handleArrowLeft': wrapListItemCommand(handleArrowLeft),
|
|
6324
6323
|
'Explorer.handleArrowRight': wrapListItemCommand(handleArrowRight),
|
|
6325
|
-
'Explorer.handleEscape': wrapListItemCommand(handleEscape),
|
|
6326
6324
|
'Explorer.handleBlur': wrapListItemCommand(handleBlur),
|
|
6327
6325
|
'Explorer.handleClick': wrapListItemCommand(handleClick),
|
|
6328
6326
|
'Explorer.handleClickAt': wrapListItemCommand(handleClickAt),
|
|
@@ -6335,7 +6333,10 @@ const commandMap = {
|
|
|
6335
6333
|
'Explorer.handleCut': wrapListItemCommand(handleCut),
|
|
6336
6334
|
'Explorer.handleDragLeave': wrapListItemCommand(handleDragLeave),
|
|
6337
6335
|
'Explorer.handleDragOver': wrapListItemCommand(handleDragOver),
|
|
6336
|
+
'Explorer.handleDragOverIndex': wrapListItemCommand(handleDragOverIndex),
|
|
6337
|
+
'Explorer.handleDragStart': wrapListItemCommand(handleDragStart),
|
|
6338
6338
|
'Explorer.handleDrop': wrapListItemCommand(handleDrop),
|
|
6339
|
+
'Explorer.handleEscape': wrapListItemCommand(handleEscape),
|
|
6339
6340
|
'Explorer.handleFocus': wrapListItemCommand(handleFocus),
|
|
6340
6341
|
'Explorer.handleIconThemeChange': wrapListItemCommand(handleIconThemeChange),
|
|
6341
6342
|
'Explorer.handleInputBlur': wrapListItemCommand(handleInputBlur),
|