@lvce-editor/explorer-view 2.16.0 → 2.17.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.
@@ -4226,7 +4226,7 @@ const getPathPartChildren = async pathPart => {
4226
4226
  return children;
4227
4227
  };
4228
4228
  const mergeVisibleWithHiddenItems = (visibleItems, hiddenItems) => {
4229
- const merged = [...hiddenItems];
4229
+ const merged = [...visibleItems, ...hiddenItems];
4230
4230
  const seen = Object.create(null);
4231
4231
  const unique = [];
4232
4232
  for (const item of merged) {
@@ -4236,57 +4236,6 @@ const mergeVisibleWithHiddenItems = (visibleItems, hiddenItems) => {
4236
4236
  seen[item.path] = true;
4237
4237
  unique.push(item);
4238
4238
  }
4239
-
4240
- // depth one
4241
- // let depth=1
4242
- // while(true){
4243
- // for(const item of unique){
4244
- // if(item.depth===depth){
4245
- // ordered.push(item)
4246
- // }
4247
- // }
4248
- // break
4249
- // }
4250
- // const getChildren = (path) => {
4251
- // const children = []
4252
- // for (const item of unique) {
4253
- // if (item.path.startsWith(path) && item.path !== path) {
4254
- // ordered.push(item)
4255
- // }
4256
- // }
4257
- // return children
4258
- // }
4259
- // for (const item of unique) {
4260
- // for (const potentialChild of unique) {
4261
- // if (
4262
- // potentialChild.path.startsWith(item.path) &&
4263
- // potentialChild.path !== item.path
4264
- // ) {
4265
- // ordered.push(potentialChild)
4266
- // }
4267
- // }
4268
- // }
4269
- // const refreshedRoots = Object.create(null)
4270
- // for (const hiddenItem of hiddenItems) {
4271
- // const parent = hiddenItem.path.slice(0, hiddenItem.path.lastIndexOf('/'))
4272
- // refreshedRoots[parent] = true
4273
- // }
4274
- // const mergedDirents = []
4275
- // for(const v)
4276
- // for (const visibleItem of visibleItems) {
4277
- // if (visibleItem.path === hiddenItemRoot) {
4278
- // // TODO update aria posinset and aria setsize
4279
- // mergedDirents.push(...hiddenItems)
4280
- // } else {
4281
- // for (const hiddenItem of hiddenItems) {
4282
- // if (hiddenItem.path === visibleItem.path) {
4283
- // continue
4284
- // }
4285
- // }
4286
- // mergedDirents.push(visibleItem)
4287
- // }
4288
- // }
4289
-
4290
4239
  return unique;
4291
4240
  };
4292
4241
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/explorer-view",
3
- "version": "2.16.0",
3
+ "version": "2.17.0",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",