@lvce-editor/explorer-view 5.6.0 → 5.7.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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/explorer-view",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",