@industry-theme/file-city-panel 0.2.27 → 0.2.29

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;AAuBjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAQpD;;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;AAstCD;;;;;;;;;;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;AAuBjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAQpD;;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;AA2wCD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAEvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EA8BxC,CAAC"}
@@ -17096,9 +17096,59 @@ const CodeCityPanelContent = ({
17096
17096
  });
17097
17097
  }
17098
17098
  });
17099
+ if (hoveredPackagePath && hoveredPackagePath !== selectedPackagePath) {
17100
+ packageFilteredLayers.push({
17101
+ id: "hovered-package-highlight",
17102
+ name: "Hovered Package",
17103
+ enabled: true,
17104
+ color: "#6b7280",
17105
+ // Gray highlight for hover
17106
+ priority: 190,
17107
+ items: [{
17108
+ path: hoveredPackagePath,
17109
+ type: "directory",
17110
+ renderStrategy: "border"
17111
+ }],
17112
+ borderWidth: 2
17113
+ });
17114
+ }
17115
+ if (selectedPackagePath) {
17116
+ packageFilteredLayers.push({
17117
+ id: "selected-package-highlight",
17118
+ name: "Selected Package",
17119
+ enabled: true,
17120
+ color: "#3b82f6",
17121
+ // Blue highlight
17122
+ priority: 200,
17123
+ // High priority to show on top
17124
+ items: [{
17125
+ path: selectedPackagePath,
17126
+ type: "directory",
17127
+ renderStrategy: "border"
17128
+ }],
17129
+ borderWidth: 3
17130
+ });
17131
+ }
17099
17132
  setHighlightLayers(packageFilteredLayers);
17100
17133
  } else {
17101
- setHighlightLayers(modeLayers);
17134
+ const layersWithHover = [...modeLayers];
17135
+ if (hoveredPackagePath) {
17136
+ layersWithHover.push({
17137
+ id: "hovered-package-highlight",
17138
+ name: "Hovered Package",
17139
+ enabled: true,
17140
+ color: "#6b7280",
17141
+ // Gray highlight for hover
17142
+ priority: 190,
17143
+ items: [{
17144
+ path: hoveredPackagePath,
17145
+ type: "directory",
17146
+ renderStrategy: "border"
17147
+ }],
17148
+ borderWidth: 2
17149
+ });
17150
+ }
17151
+ setHighlightLayers(layersWithHover);
17102
17152
  }
17103
17153
  fileColorLayersRegistered.current = !hasAgentLayers && colorMode === "fileTypes";
17104
17154
  gitLayersRegistered.current = hasAgentLayers || colorMode === "git";