@industry-theme/file-city-panel 0.5.68 → 0.5.69
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":"FileCityTrailExplorerPanel.d.ts","sourceRoot":"","sources":["../../../src/panels/FileCityTrailExplorerPanel/FileCityTrailExplorerPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,8BAA8B,CAAC;AAiBtC,OAAO,KAAK,EAEV,oCAAoC,EAErC,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"FileCityTrailExplorerPanel.d.ts","sourceRoot":"","sources":["../../../src/panels/FileCityTrailExplorerPanel/FileCityTrailExplorerPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,8BAA8B,CAAC;AAiBtC,OAAO,KAAK,EAEV,oCAAoC,EAErC,MAAM,wCAAwC,CAAC;AA2BhD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAC/C,oCAAoC,CA+ErC,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -258686,43 +258686,6 @@ const pierreOptionsBase = {
|
|
|
258686
258686
|
const pierreStyle = {
|
|
258687
258687
|
display: "block"
|
|
258688
258688
|
};
|
|
258689
|
-
function useRenderTracer(name2, watch) {
|
|
258690
|
-
const renderCount = React.useRef(0);
|
|
258691
|
-
renderCount.current += 1;
|
|
258692
|
-
const prevWatch = React.useRef(
|
|
258693
|
-
void 0
|
|
258694
|
-
);
|
|
258695
|
-
const changed = [];
|
|
258696
|
-
if (watch && prevWatch.current) {
|
|
258697
|
-
for (const k of Object.keys(watch)) {
|
|
258698
|
-
if (watch[k] !== prevWatch.current[k]) changed.push(k);
|
|
258699
|
-
}
|
|
258700
|
-
}
|
|
258701
|
-
prevWatch.current = watch;
|
|
258702
|
-
console.log(
|
|
258703
|
-
`[trail-trace] render ${name2} #${renderCount.current}` + (changed.length ? ` changed=[${changed.join(",")}]` : "")
|
|
258704
|
-
);
|
|
258705
|
-
React.useEffect(() => {
|
|
258706
|
-
console.log(`[trail-trace] mount ${name2}`);
|
|
258707
|
-
return () => {
|
|
258708
|
-
console.log(`[trail-trace] unmount ${name2}`);
|
|
258709
|
-
};
|
|
258710
|
-
}, [name2]);
|
|
258711
|
-
}
|
|
258712
|
-
let __fc3dInstanceCounter = 0;
|
|
258713
|
-
function FileCity3DLifecycleTracer({ tag }) {
|
|
258714
|
-
const id2 = React.useRef(null);
|
|
258715
|
-
if (id2.current === null) {
|
|
258716
|
-
id2.current = ++__fc3dInstanceCounter;
|
|
258717
|
-
}
|
|
258718
|
-
React.useEffect(() => {
|
|
258719
|
-
console.log(`[trail-trace] FC3D mount id=${id2.current} site=${tag}`);
|
|
258720
|
-
return () => {
|
|
258721
|
-
console.log(`[trail-trace] FC3D unmount id=${id2.current} site=${tag}`);
|
|
258722
|
-
};
|
|
258723
|
-
}, [tag]);
|
|
258724
|
-
return null;
|
|
258725
|
-
}
|
|
258726
258689
|
const SEQUENCE_DRAWER_HEIGHT_PCT = 45;
|
|
258727
258690
|
const SNIPPET_PANE_WIDTH_PX = 460;
|
|
258728
258691
|
const PANEL_TRANSITION_MS = 280;
|
|
@@ -258733,14 +258696,6 @@ const FileCityTrailExplorerPanel = ({ context, actions }) => {
|
|
|
258733
258696
|
const lineCounts = ((_a = context.lineCounts.data) == null ? void 0 : _a.lineCounts) ?? null;
|
|
258734
258697
|
const trail2 = context.trail.data;
|
|
258735
258698
|
const repository = context.repository;
|
|
258736
|
-
useRenderTracer("FileCityTrailExplorerPanel", {
|
|
258737
|
-
context,
|
|
258738
|
-
actions,
|
|
258739
|
-
tree,
|
|
258740
|
-
lineCounts,
|
|
258741
|
-
trail: trail2,
|
|
258742
|
-
repository
|
|
258743
|
-
});
|
|
258744
258699
|
const cityData = React.useMemo(
|
|
258745
258700
|
() => tree ? buildCityDataFromContext({ fileTree: tree, lineCounts }) : null,
|
|
258746
258701
|
[tree, lineCounts]
|
|
@@ -258807,15 +258762,6 @@ const FileCityTrailSequenceLayout = ({
|
|
|
258807
258762
|
}) => {
|
|
258808
258763
|
var _a, _b;
|
|
258809
258764
|
const { theme: theme2 } = useTheme();
|
|
258810
|
-
useRenderTracer("FileCityTrailSequenceLayout", {
|
|
258811
|
-
trail: trail2,
|
|
258812
|
-
view,
|
|
258813
|
-
markersForThisRepo,
|
|
258814
|
-
selectedMarkerId,
|
|
258815
|
-
cityData,
|
|
258816
|
-
hasLineCounts,
|
|
258817
|
-
readFile
|
|
258818
|
-
});
|
|
258819
258765
|
const [show3D, setShow3D] = React.useState(
|
|
258820
258766
|
false
|
|
258821
258767
|
);
|
|
@@ -259180,26 +259126,23 @@ const FileCityTrailSequenceLayout = ({
|
|
|
259180
259126
|
overflow: "hidden"
|
|
259181
259127
|
},
|
|
259182
259128
|
children: [
|
|
259183
|
-
cityData ? /* @__PURE__ */
|
|
259184
|
-
|
|
259185
|
-
|
|
259186
|
-
|
|
259187
|
-
|
|
259188
|
-
|
|
259189
|
-
|
|
259190
|
-
|
|
259191
|
-
|
|
259192
|
-
|
|
259193
|
-
|
|
259194
|
-
|
|
259195
|
-
|
|
259196
|
-
|
|
259197
|
-
|
|
259198
|
-
|
|
259199
|
-
|
|
259200
|
-
}
|
|
259201
|
-
)
|
|
259202
|
-
] }) : /* @__PURE__ */ jsx(CityLoadingPlaceholder, {}),
|
|
259129
|
+
cityData ? /* @__PURE__ */ jsx(
|
|
259130
|
+
FileCity3D,
|
|
259131
|
+
{
|
|
259132
|
+
cityData,
|
|
259133
|
+
width: "100%",
|
|
259134
|
+
height: "100%",
|
|
259135
|
+
selectedPath: (selectedMarker == null ? void 0 : selectedMarker.sourcePath) ?? null,
|
|
259136
|
+
onBuildingClick: handleBuildingClick,
|
|
259137
|
+
onCameraFrame,
|
|
259138
|
+
showControls: false,
|
|
259139
|
+
backgroundColor: theme2.colors.background,
|
|
259140
|
+
textColor: theme2.colors.textMuted,
|
|
259141
|
+
isGrown: effectiveShow3D,
|
|
259142
|
+
highlightLayers: cityHighlightLayers,
|
|
259143
|
+
defaultBuildingColor: trailFilesActive ? theme2.colors.textTertiary : void 0
|
|
259144
|
+
}
|
|
259145
|
+
) : /* @__PURE__ */ jsx(CityLoadingPlaceholder, {}),
|
|
259203
259146
|
/* @__PURE__ */ jsx(
|
|
259204
259147
|
TrailFilePath,
|
|
259205
259148
|
{
|
|
@@ -260159,20 +260102,17 @@ const FileCityTrailExplorerEmptyState = ({
|
|
|
260159
260102
|
color: theme2.colors.text
|
|
260160
260103
|
},
|
|
260161
260104
|
children: [
|
|
260162
|
-
cityData ? /* @__PURE__ */
|
|
260163
|
-
|
|
260164
|
-
|
|
260165
|
-
|
|
260166
|
-
|
|
260167
|
-
|
|
260168
|
-
|
|
260169
|
-
|
|
260170
|
-
|
|
260171
|
-
|
|
260172
|
-
|
|
260173
|
-
}
|
|
260174
|
-
)
|
|
260175
|
-
] }) : null,
|
|
260105
|
+
cityData ? /* @__PURE__ */ jsx(
|
|
260106
|
+
FileCity3D,
|
|
260107
|
+
{
|
|
260108
|
+
cityData,
|
|
260109
|
+
width: "100%",
|
|
260110
|
+
height: "100%",
|
|
260111
|
+
showControls: false,
|
|
260112
|
+
backgroundColor: theme2.colors.background,
|
|
260113
|
+
textColor: theme2.colors.textMuted
|
|
260114
|
+
}
|
|
260115
|
+
) : null,
|
|
260176
260116
|
/* @__PURE__ */ jsx(
|
|
260177
260117
|
"div",
|
|
260178
260118
|
{
|