@industry-theme/file-city-panel 0.4.5 → 0.4.6
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.
- package/dist/{browserAll-XNN46GKF-DWjsfUOg.js → browserAll-XNN46GKF-8hJjkg2A.js} +3 -3
- package/dist/{browserAll-XNN46GKF-DWjsfUOg.js.map → browserAll-XNN46GKF-8hJjkg2A.js.map} +1 -1
- package/dist/{index-_kq9SOpa.js → index-BT9gD1MW.js} +31 -22
- package/dist/{index-_kq9SOpa.js.map → index-BT9gD1MW.js.map} +1 -1
- package/dist/{init-Ccb5WXmw-C4UxmFuK.js → init-Ccb5WXmw-BM96TnbG.js} +2 -2
- package/dist/{init-Ccb5WXmw-C4UxmFuK.js.map → init-Ccb5WXmw-BM96TnbG.js.map} +1 -1
- package/dist/panels/CodeCityPanel.d.ts.map +1 -1
- package/dist/panels.bundle.js +1 -1
- package/dist/webworkerAll-Ez5pUZRt-BChgL0D1.js +3 -0
- package/dist/webworkerAll-Ez5pUZRt-BChgL0D1.js.map +1 -0
- package/package.json +1 -1
- package/dist/webworkerAll-Ez5pUZRt-CJkJ04SM.js +0 -3
- package/dist/webworkerAll-Ez5pUZRt-CJkJ04SM.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as extensions, A as AccessibilitySystem, C as Container, a as accessibilityTarget, E as EventSystem, F as FederatedContainer } from "./index-
|
|
2
|
-
import "./init-Ccb5WXmw-
|
|
1
|
+
import { e as extensions, A as AccessibilitySystem, C as Container, a as accessibilityTarget, E as EventSystem, F as FederatedContainer } from "./index-BT9gD1MW.js";
|
|
2
|
+
import "./init-Ccb5WXmw-BM96TnbG.js";
|
|
3
3
|
extensions.add(AccessibilitySystem);
|
|
4
4
|
extensions.mixin(Container, accessibilityTarget);
|
|
5
5
|
extensions.add(EventSystem);
|
|
6
6
|
extensions.mixin(Container, FederatedContainer);
|
|
7
|
-
//# sourceMappingURL=browserAll-XNN46GKF-
|
|
7
|
+
//# sourceMappingURL=browserAll-XNN46GKF-8hJjkg2A.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserAll-XNN46GKF-
|
|
1
|
+
{"version":3,"file":"browserAll-XNN46GKF-8hJjkg2A.js","sources":["../node_modules/@industry-theme/repository-composition-panels/dist/browserAll-XNN46GKF.js"],"sourcesContent":["import { e as extensions, A as AccessibilitySystem, C as Container, b as accessibilityTarget, E as EventSystem, c as FederatedContainer } from \"./index-Bt-XsLNt.js\";\nimport \"./init-Ccb5WXmw.js\";\nextensions.add(AccessibilitySystem);\nextensions.mixin(Container, accessibilityTarget);\nextensions.add(EventSystem);\nextensions.mixin(Container, FederatedContainer);\n//# sourceMappingURL=browserAll-XNN46GKF.js.map\n"],"names":[],"mappings":";;AAEA,WAAW,IAAI,mBAAmB;AAClC,WAAW,MAAM,WAAW,mBAAmB;AAC/C,WAAW,IAAI,WAAW;AAC1B,WAAW,MAAM,WAAW,kBAAkB;","x_google_ignoreList":[0]}
|
|
@@ -149621,7 +149621,7 @@ const browserExt = {
|
|
|
149621
149621
|
},
|
|
149622
149622
|
test: () => true,
|
|
149623
149623
|
load: async () => {
|
|
149624
|
-
await import("./browserAll-XNN46GKF-
|
|
149624
|
+
await import("./browserAll-XNN46GKF-8hJjkg2A.js");
|
|
149625
149625
|
}
|
|
149626
149626
|
};
|
|
149627
149627
|
const webworkerExt = {
|
|
@@ -149632,7 +149632,7 @@ const webworkerExt = {
|
|
|
149632
149632
|
},
|
|
149633
149633
|
test: () => typeof self !== "undefined" && self.WorkerGlobalScope !== void 0,
|
|
149634
149634
|
load: async () => {
|
|
149635
|
-
await import("./webworkerAll-Ez5pUZRt-
|
|
149635
|
+
await import("./webworkerAll-Ez5pUZRt-BChgL0D1.js");
|
|
149636
149636
|
}
|
|
149637
149637
|
};
|
|
149638
149638
|
class ObservablePoint {
|
|
@@ -238487,7 +238487,7 @@ const CodeCityPanelContent = ({
|
|
|
238487
238487
|
actions,
|
|
238488
238488
|
events
|
|
238489
238489
|
}) => {
|
|
238490
|
-
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o2, _p, _q, _r, _s, _t2;
|
|
238490
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o2, _p, _q, _r, _s, _t2, _u;
|
|
238491
238491
|
const autoShowTour = ("autoShowTour" in context2 ? context2.autoShowTour : false) ?? false;
|
|
238492
238492
|
const { theme: theme2 } = useTheme$1();
|
|
238493
238493
|
const [cityData, setCityData] = useState(null);
|
|
@@ -238554,8 +238554,15 @@ const CodeCityPanelContent = ({
|
|
|
238554
238554
|
const agentHighlightLayersSlice = context2.agentHighlightLayers;
|
|
238555
238555
|
const colorModesSlice = context2.fileCityColorModes;
|
|
238556
238556
|
const repositoryEntrySlice = context2.repositoryEntry;
|
|
238557
|
+
const packagesSlice = context2.packages;
|
|
238557
238558
|
const qualityData = (_c = colorModesSlice == null ? void 0 : colorModesSlice.data) == null ? void 0 : _c.qualityData;
|
|
238558
|
-
const
|
|
238559
|
+
const workspacePackages = useMemo(() => {
|
|
238560
|
+
var _a2;
|
|
238561
|
+
const summary = (_a2 = packagesSlice == null ? void 0 : packagesSlice.data) == null ? void 0 : _a2.summary;
|
|
238562
|
+
if (!(summary == null ? void 0 : summary.isMonorepo) || !summary.workspacePackages) return void 0;
|
|
238563
|
+
return summary.workspacePackages.filter((pkg) => !!pkg.name).map((pkg) => ({ name: pkg.name }));
|
|
238564
|
+
}, [(_d = packagesSlice == null ? void 0 : packagesSlice.data) == null ? void 0 : _d.summary]);
|
|
238565
|
+
const githubRepoString = (_e2 = context2.currentScope.repository) == null ? void 0 : _e2.githubRepo;
|
|
238559
238566
|
const [repoOwner, repoName] = (githubRepoString == null ? void 0 : githubRepoString.includes("/")) ? githubRepoString.split("/") : [void 0, void 0];
|
|
238560
238567
|
const fileColorLayersRegistered = useRef(false);
|
|
238561
238568
|
const gitLayersRegistered = useRef(false);
|
|
@@ -238563,7 +238570,7 @@ const CodeCityPanelContent = ({
|
|
|
238563
238570
|
const commitFilesLayersRegistered = useRef(false);
|
|
238564
238571
|
const agentLayersRegistered = useRef(false);
|
|
238565
238572
|
const lastHasGitOrAgentLayers = useRef(null);
|
|
238566
|
-
const currentRepoPath = (
|
|
238573
|
+
const currentRepoPath = (_f = context2.currentScope.repository) == null ? void 0 : _f.path;
|
|
238567
238574
|
const lastRepoPath = useRef(currentRepoPath);
|
|
238568
238575
|
useEffect(() => {
|
|
238569
238576
|
if (lastRepoPath.current !== currentRepoPath) {
|
|
@@ -238619,7 +238626,7 @@ const CodeCityPanelContent = ({
|
|
|
238619
238626
|
}
|
|
238620
238627
|
};
|
|
238621
238628
|
loadTour();
|
|
238622
|
-
}, [fileTreeSlice == null ? void 0 : fileTreeSlice.data, (
|
|
238629
|
+
}, [fileTreeSlice == null ? void 0 : fileTreeSlice.data, (_g = context2.currentScope.repository) == null ? void 0 : _g.path, context2.adapters]);
|
|
238623
238630
|
useEffect(() => {
|
|
238624
238631
|
if (autoShowTour && tourData && !hasAutoShownTourRef.current) {
|
|
238625
238632
|
setShowTourPlayer(true);
|
|
@@ -238891,7 +238898,7 @@ const CodeCityPanelContent = ({
|
|
|
238891
238898
|
}
|
|
238892
238899
|
}
|
|
238893
238900
|
return layers;
|
|
238894
|
-
}, [cityData, (
|
|
238901
|
+
}, [cityData, (_h = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _h.filesByStatus, prFilesVersion]);
|
|
238895
238902
|
const commitFilesLayers = useMemo(() => {
|
|
238896
238903
|
var _a2;
|
|
238897
238904
|
if (!cityData || !cityData.buildings || !((_a2 = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _a2.filesByStatus)) {
|
|
@@ -238969,7 +238976,7 @@ const CodeCityPanelContent = ({
|
|
|
238969
238976
|
}
|
|
238970
238977
|
}
|
|
238971
238978
|
return layers;
|
|
238972
|
-
}, [cityData, (
|
|
238979
|
+
}, [cityData, (_i = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _i.filesByStatus, commitFilesVersion]);
|
|
238973
238980
|
const storyboardLayers = useMemo(() => {
|
|
238974
238981
|
if (!cityData || !cityData.buildings || !(storyboardContextSlice == null ? void 0 : storyboardContextSlice.data)) {
|
|
238975
238982
|
return [];
|
|
@@ -239070,7 +239077,7 @@ const CodeCityPanelContent = ({
|
|
|
239070
239077
|
if (!((_a2 = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _a2.filesByStatus)) return 0;
|
|
239071
239078
|
const { added, modified, removed, renamed } = prFilesSlice.data.filesByStatus;
|
|
239072
239079
|
return added.length + modified.length + removed.length + renamed.length;
|
|
239073
|
-
}, [(
|
|
239080
|
+
}, [(_j = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _j.filesByStatus]);
|
|
239074
239081
|
const legendAgentLayers = useMemo(() => {
|
|
239075
239082
|
const agentLayers = highlightLayers.filter(
|
|
239076
239083
|
(layer) => layer.id.startsWith("event-highlight")
|
|
@@ -239339,7 +239346,7 @@ const CodeCityPanelContent = ({
|
|
|
239339
239346
|
} finally {
|
|
239340
239347
|
setLoading(false);
|
|
239341
239348
|
}
|
|
239342
|
-
}, [fileTreeSlice == null ? void 0 : fileTreeSlice.data, fileTreeSlice == null ? void 0 : fileTreeSlice.loading, (
|
|
239349
|
+
}, [fileTreeSlice == null ? void 0 : fileTreeSlice.data, fileTreeSlice == null ? void 0 : fileTreeSlice.loading, (_k = context2.currentScope.repository) == null ? void 0 : _k.path]);
|
|
239343
239350
|
const handleFileClick = useCallback(
|
|
239344
239351
|
(filePath, type2) => {
|
|
239345
239352
|
if (type2 === "file") {
|
|
@@ -239565,7 +239572,7 @@ const CodeCityPanelContent = ({
|
|
|
239565
239572
|
path: tourFilePath,
|
|
239566
239573
|
commitSha
|
|
239567
239574
|
};
|
|
239568
|
-
}, [tourFilePath, context2.currentScope.repository, (
|
|
239575
|
+
}, [tourFilePath, context2.currentScope.repository, (_m = (_l = fileTreeSlice == null ? void 0 : fileTreeSlice.data) == null ? void 0 : _l.metadata) == null ? void 0 : _m.sourceSha]);
|
|
239569
239576
|
return /* @__PURE__ */ jsxs(
|
|
239570
239577
|
"div",
|
|
239571
239578
|
{
|
|
@@ -239577,7 +239584,7 @@ const CodeCityPanelContent = ({
|
|
|
239577
239584
|
backgroundColor: theme2.colors.background
|
|
239578
239585
|
},
|
|
239579
239586
|
children: [
|
|
239580
|
-
(repositoryEntrySlice == null ? void 0 : repositoryEntrySlice.loading) ? /* @__PURE__ */ jsx(ProjectHeaderSkeleton, {}) : ((
|
|
239587
|
+
(repositoryEntrySlice == null ? void 0 : repositoryEntrySlice.loading) ? /* @__PURE__ */ jsx(ProjectHeaderSkeleton, {}) : ((_n = repositoryEntrySlice == null ? void 0 : repositoryEntrySlice.data) == null ? void 0 : _n.github) ? /* @__PURE__ */ jsx(
|
|
239581
239588
|
ProjectHeader,
|
|
239582
239589
|
{
|
|
239583
239590
|
github: repositoryEntrySlice.data.github,
|
|
@@ -239911,14 +239918,14 @@ const CodeCityPanelContent = ({
|
|
|
239911
239918
|
fileTypes: [],
|
|
239912
239919
|
gitStatus: gitSlice == null ? void 0 : gitSlice.data,
|
|
239913
239920
|
panelActions: actions,
|
|
239914
|
-
prFiles: (
|
|
239915
|
-
prFileStats: (
|
|
239916
|
-
prNumber: (
|
|
239917
|
-
commitFiles: (
|
|
239918
|
-
commitHash: (
|
|
239919
|
-
commitStats: (
|
|
239921
|
+
prFiles: (_o2 = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _o2.filesByStatus,
|
|
239922
|
+
prFileStats: (_p = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _p.files,
|
|
239923
|
+
prNumber: (_q = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _q.pullNumber,
|
|
239924
|
+
commitFiles: (_r = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _r.filesByStatus,
|
|
239925
|
+
commitHash: (_s = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _s.commitHash,
|
|
239926
|
+
commitStats: (_t2 = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _t2.stats,
|
|
239920
239927
|
fileTree: fileTreeSlice == null ? void 0 : fileTreeSlice.data,
|
|
239921
|
-
rootPath: (
|
|
239928
|
+
rootPath: (_u = context2.currentScope.repository) == null ? void 0 : _u.path,
|
|
239922
239929
|
onGitFileClick: handleLegendFileClick,
|
|
239923
239930
|
onGitNodeHover: handleGitNodeHover,
|
|
239924
239931
|
onPrFileClick: handleLegendFileClick,
|
|
@@ -239974,7 +239981,8 @@ const CodeCityPanelContent = ({
|
|
|
239974
239981
|
{
|
|
239975
239982
|
github: tab2.github,
|
|
239976
239983
|
fileCount: computedTreeStats == null ? void 0 : computedTreeStats.fileCount,
|
|
239977
|
-
showHeader: false
|
|
239984
|
+
showHeader: false,
|
|
239985
|
+
workspacePackages
|
|
239978
239986
|
}
|
|
239979
239987
|
)
|
|
239980
239988
|
);
|
|
@@ -240039,7 +240047,8 @@ const CodeCityPanelContent = ({
|
|
|
240039
240047
|
{
|
|
240040
240048
|
github: tab2.github,
|
|
240041
240049
|
fileCount: computedTreeStats == null ? void 0 : computedTreeStats.fileCount,
|
|
240042
|
-
showHeader: true
|
|
240050
|
+
showHeader: true,
|
|
240051
|
+
workspacePackages
|
|
240043
240052
|
}
|
|
240044
240053
|
),
|
|
240045
240054
|
tab2.id === "files" && /* @__PURE__ */ jsx(
|
|
@@ -241577,4 +241586,4 @@ export {
|
|
|
241577
241586
|
resolveImageUrl as u,
|
|
241578
241587
|
selectDistrictTool as v
|
|
241579
241588
|
};
|
|
241580
|
-
//# sourceMappingURL=index-
|
|
241589
|
+
//# sourceMappingURL=index-BT9gD1MW.js.map
|