@industry-theme/file-city-panel 0.2.28 → 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;
|
|
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"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -17096,6 +17096,22 @@ 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
|
+
}
|
|
17099
17115
|
if (selectedPackagePath) {
|
|
17100
17116
|
packageFilteredLayers.push({
|
|
17101
17117
|
id: "selected-package-highlight",
|
|
@@ -17115,7 +17131,24 @@ const CodeCityPanelContent = ({
|
|
|
17115
17131
|
}
|
|
17116
17132
|
setHighlightLayers(packageFilteredLayers);
|
|
17117
17133
|
} else {
|
|
17118
|
-
|
|
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);
|
|
17119
17152
|
}
|
|
17120
17153
|
fileColorLayersRegistered.current = !hasAgentLayers && colorMode === "fileTypes";
|
|
17121
17154
|
gitLayersRegistered.current = hasAgentLayers || colorMode === "git";
|