@industry-theme/file-city-panel 0.2.7 → 0.2.8

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.
@@ -1 +1 @@
1
- {"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAsBjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAYpD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAguCD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAEvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EA8BxC,CAAC"}
1
+ {"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAsBjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAYpD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AA6sCD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAEvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EA8BxC,CAAC"}
@@ -15089,32 +15089,14 @@ const CodeCityPanelContent = ({
15089
15089
  if (activePackagePath !== null && modeLayers.length > 0) {
15090
15090
  const packageFilteredLayers = [];
15091
15091
  modeLayers.forEach((layer) => {
15092
- const insidePackage = [];
15093
- const outsidePackage = [];
15094
- layer.items.forEach((item) => {
15095
- if (isFileInPackage(item.path, activePackagePath)) {
15096
- insidePackage.push(item);
15097
- } else {
15098
- outsidePackage.push(item);
15099
- }
15100
- });
15092
+ const insidePackage = layer.items.filter(
15093
+ (item) => isFileInPackage(item.path, activePackagePath)
15094
+ );
15101
15095
  if (insidePackage.length > 0) {
15102
15096
  packageFilteredLayers.push({
15103
15097
  ...layer,
15104
15098
  id: `${layer.id}-package-focus`,
15105
- items: insidePackage,
15106
- priority: (layer.priority || 0) + 100
15107
- // Higher priority for focused files
15108
- });
15109
- }
15110
- if (outsidePackage.length > 0) {
15111
- packageFilteredLayers.push({
15112
- ...layer,
15113
- id: `${layer.id}-dimmed`,
15114
- items: outsidePackage,
15115
- opacity: 0.15,
15116
- // Dim files outside the active package
15117
- priority: layer.priority || 0
15099
+ items: insidePackage
15118
15100
  });
15119
15101
  }
15120
15102
  });