@industry-theme/repository-composition-panels 0.6.4 → 0.6.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/{BufferResource-C4JAb2AR.js → BufferResource-COIBph2K.js} +2 -2
- package/dist/{BufferResource-C4JAb2AR.js.map → BufferResource-COIBph2K.js.map} +1 -1
- package/dist/{CanvasRenderer-Bx4mUhDS.js → CanvasRenderer-os9XVFU1.js} +3 -3
- package/dist/{CanvasRenderer-Bx4mUhDS.js.map → CanvasRenderer-os9XVFU1.js.map} +1 -1
- package/dist/{Filter-CMd5y77j.js → Filter-Cga-hPyS.js} +2 -2
- package/dist/{Filter-CMd5y77j.js.map → Filter-Cga-hPyS.js.map} +1 -1
- package/dist/{RenderTargetSystem-DlP3_KYR.js → RenderTargetSystem-dKyRZcjY.js} +3 -3
- package/dist/{RenderTargetSystem-DlP3_KYR.js.map → RenderTargetSystem-dKyRZcjY.js.map} +1 -1
- package/dist/{WebGLRenderer-CONpCWoC.js → WebGLRenderer-D6PCzY96.js} +4 -4
- package/dist/{WebGLRenderer-CONpCWoC.js.map → WebGLRenderer-D6PCzY96.js.map} +1 -1
- package/dist/{WebGPURenderer-DlSGQqdB.js → WebGPURenderer-BPbpe2qf.js} +4 -4
- package/dist/{WebGPURenderer-DlSGQqdB.js.map → WebGPURenderer-BPbpe2qf.js.map} +1 -1
- package/dist/{browserAll-O7Xyj4BL.js → browserAll-Bkn6RsGL.js} +3 -3
- package/dist/{browserAll-O7Xyj4BL.js.map → browserAll-Bkn6RsGL.js.map} +1 -1
- package/dist/{index-fps1VjS-.js → index-BnHKy4Xw.js} +22 -63
- package/dist/{index-fps1VjS-.js.map → index-BnHKy4Xw.js.map} +1 -1
- package/dist/{init-B0QFq-ml.js → init-CtgKz_ge.js} +3 -3
- package/dist/{init-B0QFq-ml.js.map → init-CtgKz_ge.js.map} +1 -1
- package/dist/panels/CollectionMapPanel.d.ts.map +1 -1
- package/dist/panels.bundle.js +1 -1
- package/dist/webworkerAll-CGgU2W8C.js +3 -0
- package/dist/webworkerAll-CGgU2W8C.js.map +1 -0
- package/package.json +1 -1
- package/dist/webworkerAll-BoRXm1qW.js +0 -3
- package/dist/webworkerAll-BoRXm1qW.js.map +0 -1
|
@@ -104205,7 +104205,7 @@ const browserExt = {
|
|
|
104205
104205
|
},
|
|
104206
104206
|
test: () => true,
|
|
104207
104207
|
load: async () => {
|
|
104208
|
-
await import("./browserAll-
|
|
104208
|
+
await import("./browserAll-Bkn6RsGL.js");
|
|
104209
104209
|
}
|
|
104210
104210
|
};
|
|
104211
104211
|
const webworkerExt = {
|
|
@@ -104216,7 +104216,7 @@ const webworkerExt = {
|
|
|
104216
104216
|
},
|
|
104217
104217
|
test: () => typeof self !== "undefined" && self.WorkerGlobalScope !== void 0,
|
|
104218
104218
|
load: async () => {
|
|
104219
|
-
await import("./webworkerAll-
|
|
104219
|
+
await import("./webworkerAll-CGgU2W8C.js");
|
|
104220
104220
|
}
|
|
104221
104221
|
};
|
|
104222
104222
|
class ObservablePoint {
|
|
@@ -116459,19 +116459,19 @@ async function autoDetectRenderer(options) {
|
|
|
116459
116459
|
for (let i2 = 0; i2 < preferredOrder.length; i2++) {
|
|
116460
116460
|
const rendererType = preferredOrder[i2];
|
|
116461
116461
|
if (rendererType === "webgpu" && await isWebGPUSupported()) {
|
|
116462
|
-
const { WebGPURenderer } = await import("./WebGPURenderer-
|
|
116462
|
+
const { WebGPURenderer } = await import("./WebGPURenderer-BPbpe2qf.js");
|
|
116463
116463
|
RendererClass = WebGPURenderer;
|
|
116464
116464
|
finalOptions = { ...options, ...options.webgpu };
|
|
116465
116465
|
break;
|
|
116466
116466
|
} else if (rendererType === "webgl" && isWebGLSupported(
|
|
116467
116467
|
options.failIfMajorPerformanceCaveat ?? AbstractRenderer.defaultOptions.failIfMajorPerformanceCaveat
|
|
116468
116468
|
)) {
|
|
116469
|
-
const { WebGLRenderer } = await import("./WebGLRenderer-
|
|
116469
|
+
const { WebGLRenderer } = await import("./WebGLRenderer-D6PCzY96.js");
|
|
116470
116470
|
RendererClass = WebGLRenderer;
|
|
116471
116471
|
finalOptions = { ...options, ...options.webgl };
|
|
116472
116472
|
break;
|
|
116473
116473
|
} else if (rendererType === "canvas") {
|
|
116474
|
-
const { CanvasRenderer } = await import("./CanvasRenderer-
|
|
116474
|
+
const { CanvasRenderer } = await import("./CanvasRenderer-os9XVFU1.js");
|
|
116475
116475
|
RendererClass = CanvasRenderer;
|
|
116476
116476
|
finalOptions = { ...options, ...options.canvasOptions };
|
|
116477
116477
|
break;
|
|
@@ -132607,12 +132607,6 @@ const CollectionMapPanelContent = ({
|
|
|
132607
132607
|
regionCallbacks
|
|
132608
132608
|
}) => {
|
|
132609
132609
|
var _a;
|
|
132610
|
-
React2__default.useEffect(() => {
|
|
132611
|
-
console.info("[CollectionMapPanelContent] 🎬 Component MOUNTED for collection:", collection.name);
|
|
132612
|
-
return () => {
|
|
132613
|
-
console.info("[CollectionMapPanelContent] 💀 Component UNMOUNTING for collection:", collection.name);
|
|
132614
|
-
};
|
|
132615
|
-
}, []);
|
|
132616
132610
|
const customRegions = ((_a = collection.metadata) == null ? void 0 : _a.customRegions) || [];
|
|
132617
132611
|
const [isEditingRegions, setIsEditingRegions] = React2__default.useState(false);
|
|
132618
132612
|
const handleRenameRegion = useCallback(async (regionId, name2) => {
|
|
@@ -132628,28 +132622,29 @@ const CollectionMapPanelContent = ({
|
|
|
132628
132622
|
}, [regionCallbacks, collection.id, customRegions.length]);
|
|
132629
132623
|
const handleProjectMoved = useCallback(async (projectId, gridX, gridY) => {
|
|
132630
132624
|
var _a2;
|
|
132631
|
-
const
|
|
132632
|
-
const
|
|
132633
|
-
const
|
|
132634
|
-
const
|
|
132635
|
-
const
|
|
132636
|
-
|
|
132625
|
+
const regionCol = Math.floor(gridX / REGION_SIZE_TILES);
|
|
132626
|
+
const regionRow = Math.floor(gridY / REGION_SIZE_TILES);
|
|
132627
|
+
const regionOrder = regionRow * 10 + regionCol;
|
|
132628
|
+
const targetRegion = customRegions.find((r2) => r2.order === regionOrder);
|
|
132629
|
+
const newRegionId = targetRegion == null ? void 0 : targetRegion.id;
|
|
132630
|
+
if (!newRegionId) {
|
|
132631
|
+
console.warn("[CollectionMapPanel] ⚠️ Could not determine region for position:", { gridX, gridY, regionOrder });
|
|
132632
|
+
return;
|
|
132633
|
+
}
|
|
132637
132634
|
const regionBoundsX = regionCol * REGION_SIZE_TILES;
|
|
132638
132635
|
const regionBoundsY = regionRow * REGION_SIZE_TILES;
|
|
132639
132636
|
const relativeGridX = gridX - regionBoundsX;
|
|
132640
132637
|
const relativeGridY = gridY - regionBoundsY;
|
|
132641
|
-
console.info("[CollectionMapPanel] 💾 Saving position:", {
|
|
132642
|
-
projectId,
|
|
132643
|
-
absolute: { gridX, gridY },
|
|
132644
|
-
region: (region == null ? void 0 : region.name) || "none",
|
|
132645
|
-
regionBounds: { x: regionBoundsX, y: regionBoundsY },
|
|
132646
|
-
relative: { gridX: relativeGridX, gridY: relativeGridY }
|
|
132647
|
-
});
|
|
132648
132638
|
const layout = {
|
|
132649
132639
|
gridX: relativeGridX,
|
|
132650
132640
|
gridY: relativeGridY
|
|
132651
132641
|
};
|
|
132652
132642
|
await regionCallbacks.onRepositoryPositionUpdated(collection.id, projectId, layout);
|
|
132643
|
+
const membership = memberships.find((m2) => m2.repositoryId === projectId);
|
|
132644
|
+
const oldRegionId = (_a2 = membership == null ? void 0 : membership.metadata) == null ? void 0 : _a2.regionId;
|
|
132645
|
+
if (oldRegionId !== newRegionId) {
|
|
132646
|
+
await regionCallbacks.onRepositoryAssigned(collection.id, projectId, newRegionId);
|
|
132647
|
+
}
|
|
132653
132648
|
}, [collection.id, regionCallbacks, memberships, customRegions]);
|
|
132654
132649
|
const handleProjectDrop = useCallback(async (data, event) => {
|
|
132655
132650
|
var _a2, _b, _c;
|
|
@@ -132688,12 +132683,11 @@ const CollectionMapPanelContent = ({
|
|
|
132688
132683
|
showVisualFeedback: true
|
|
132689
132684
|
});
|
|
132690
132685
|
const nodes = useMemo(() => {
|
|
132691
|
-
console.info("[CollectionMapPanel] 📦 Recomputing nodes for collection:", collection.name);
|
|
132692
132686
|
const collectionMemberships = memberships.filter(
|
|
132693
132687
|
(m2) => m2.collectionId === collection.id
|
|
132694
132688
|
);
|
|
132695
132689
|
return collectionMemberships.map((membership) => {
|
|
132696
|
-
var _a2, _b, _c, _d, _e2, _f, _g
|
|
132690
|
+
var _a2, _b, _c, _d, _e2, _f, _g;
|
|
132697
132691
|
const repo = repositories.find((r2) => {
|
|
132698
132692
|
var _a3;
|
|
132699
132693
|
const repoId = ((_a3 = r2.github) == null ? void 0 : _a3.id) || r2.name;
|
|
@@ -132732,27 +132726,20 @@ const CollectionMapPanelContent = ({
|
|
|
132732
132726
|
layout: (_g = membership.metadata) == null ? void 0 : _g.layout
|
|
132733
132727
|
// Pass saved position data
|
|
132734
132728
|
};
|
|
132735
|
-
if ((_h = membership.metadata) == null ? void 0 : _h.layout) {
|
|
132736
|
-
console.info("[CollectionMapPanel] 📍 Node", repo.name, "has saved layout:", membership.metadata.layout);
|
|
132737
|
-
}
|
|
132738
132729
|
return node2;
|
|
132739
132730
|
}).filter((n2) => n2 !== null);
|
|
132740
132731
|
}, [collection.id, memberships, repositories, dependencies]);
|
|
132741
132732
|
const hasComputedLayout = useRef(false);
|
|
132742
132733
|
const prevCollectionIdRef = useRef(null);
|
|
132743
132734
|
useEffect(() => {
|
|
132744
|
-
console.info("[CollectionMapPanel] 🏗️ Layout effect running, hasComputedLayout:", hasComputedLayout.current, "nodes:", nodes.length);
|
|
132745
132735
|
if (prevCollectionIdRef.current !== null && prevCollectionIdRef.current !== collection.id) {
|
|
132746
|
-
console.info("[CollectionMapPanel] 🔄 Collection changed from", prevCollectionIdRef.current, "to", collection.id, "- resetting hasComputedLayout");
|
|
132747
132736
|
hasComputedLayout.current = false;
|
|
132748
132737
|
}
|
|
132749
132738
|
prevCollectionIdRef.current = collection.id;
|
|
132750
132739
|
if (hasComputedLayout.current) {
|
|
132751
|
-
console.info("[CollectionMapPanel] 🏗️ Skipping - already computed layout");
|
|
132752
132740
|
return;
|
|
132753
132741
|
}
|
|
132754
132742
|
if (nodes.length === 0) {
|
|
132755
|
-
console.info("[CollectionMapPanel] 🏗️ Skipping - no nodes");
|
|
132756
132743
|
return;
|
|
132757
132744
|
}
|
|
132758
132745
|
const needsRegions = customRegions.length === 0 && !nodes.some((n2) => n2.regionId);
|
|
@@ -132760,9 +132747,7 @@ const CollectionMapPanelContent = ({
|
|
|
132760
132747
|
const needsLayout = anyMissingRegionId || nodes.some(
|
|
132761
132748
|
(node2) => !node2.layout || node2.layout.gridX === void 0 || node2.layout.gridY === void 0
|
|
132762
132749
|
);
|
|
132763
|
-
console.info("[CollectionMapPanel] 🏗️ needsRegions:", needsRegions, "needsLayout:", needsLayout, "anyMissingRegionId:", anyMissingRegionId);
|
|
132764
132750
|
if (!needsRegions && !needsLayout) {
|
|
132765
|
-
console.info("[CollectionMapPanel] 🏗️ All nodes have layout, setting hasComputedLayout=true");
|
|
132766
132751
|
hasComputedLayout.current = true;
|
|
132767
132752
|
return;
|
|
132768
132753
|
}
|
|
@@ -132771,7 +132756,7 @@ const CollectionMapPanelContent = ({
|
|
|
132771
132756
|
customRegions
|
|
132772
132757
|
});
|
|
132773
132758
|
(async () => {
|
|
132774
|
-
var _a2
|
|
132759
|
+
var _a2;
|
|
132775
132760
|
const updates = {};
|
|
132776
132761
|
if (needsRegions && map2.regions.length > 0) {
|
|
132777
132762
|
updates.regions = map2.regions.map((region, index2) => ({
|
|
@@ -132785,9 +132770,6 @@ const CollectionMapPanelContent = ({
|
|
|
132785
132770
|
updates.positions = map2.nodes.filter((node2) => {
|
|
132786
132771
|
const originalNode = nodes.find((n2) => n2.id === node2.id);
|
|
132787
132772
|
const needsUpdate = anyMissingRegionId2 || !(originalNode == null ? void 0 : originalNode.layout) || originalNode.layout.gridX === void 0 || originalNode.layout.gridY === void 0;
|
|
132788
|
-
if (!needsUpdate) {
|
|
132789
|
-
console.info("[CollectionMapPanel] 🏗️ Skipping", node2.id, "- already has layout:", originalNode == null ? void 0 : originalNode.layout);
|
|
132790
|
-
}
|
|
132791
132773
|
return needsUpdate;
|
|
132792
132774
|
}).map((node2) => ({
|
|
132793
132775
|
repositoryId: node2.id,
|
|
@@ -132810,14 +132792,8 @@ const CollectionMapPanelContent = ({
|
|
|
132810
132792
|
}
|
|
132811
132793
|
}
|
|
132812
132794
|
}
|
|
132813
|
-
console.info("[CollectionMapPanel] 🏗️ Creating", updates.assignments.length, "region assignments");
|
|
132814
|
-
}
|
|
132815
|
-
if (anyMissingRegionId2) {
|
|
132816
|
-
console.info("[CollectionMapPanel] 🏗️ Recomputing ALL positions due to missing regionId assignments");
|
|
132817
132795
|
}
|
|
132818
|
-
console.info("[CollectionMapPanel] 🏗️ Initializing layout for", (_b = updates.positions) == null ? void 0 : _b.length, "nodes");
|
|
132819
132796
|
await regionCallbacks.onBatchLayoutInitialized(collection.id, updates);
|
|
132820
|
-
console.info("[CollectionMapPanel] 🏗️ Layout initialized, setting hasComputedLayout=true");
|
|
132821
132797
|
hasComputedLayout.current = true;
|
|
132822
132798
|
})();
|
|
132823
132799
|
}, [collection.id, nodes, regionLayout, customRegions, regionCallbacks]);
|
|
@@ -132889,29 +132865,12 @@ const CollectionMapPanelContent = ({
|
|
|
132889
132865
|
};
|
|
132890
132866
|
const CollectionMapPanel = ({ context: context2, actions }) => {
|
|
132891
132867
|
var _a, _b, _c, _d;
|
|
132892
|
-
React2__default.useEffect(() => {
|
|
132893
|
-
console.info("[CollectionMapPanel] 🎬 Panel component MOUNTED");
|
|
132894
|
-
return () => {
|
|
132895
|
-
console.info("[CollectionMapPanel] 💀 Panel component UNMOUNTING");
|
|
132896
|
-
};
|
|
132897
|
-
}, []);
|
|
132898
132868
|
const { selectedCollectionView } = context2;
|
|
132899
132869
|
const selectedCollection = (_a = selectedCollectionView == null ? void 0 : selectedCollectionView.data) == null ? void 0 : _a.collection;
|
|
132900
132870
|
const memberships = ((_b = selectedCollectionView == null ? void 0 : selectedCollectionView.data) == null ? void 0 : _b.memberships) || [];
|
|
132901
132871
|
const repositories = ((_c = selectedCollectionView == null ? void 0 : selectedCollectionView.data) == null ? void 0 : _c.repositories) || [];
|
|
132902
132872
|
const dependencies = ((_d = selectedCollectionView == null ? void 0 : selectedCollectionView.data) == null ? void 0 : _d.dependencies) || {};
|
|
132903
132873
|
const isLoading = (selectedCollectionView == null ? void 0 : selectedCollectionView.loading) ?? false;
|
|
132904
|
-
React2__default.useEffect(() => {
|
|
132905
|
-
console.info("[CollectionMapPanel] 📊 Memberships updated for collection:", selectedCollection == null ? void 0 : selectedCollection.name);
|
|
132906
|
-
console.info("[CollectionMapPanel] 📊 Memberships:", memberships.map((m2) => {
|
|
132907
|
-
var _a2, _b2;
|
|
132908
|
-
return {
|
|
132909
|
-
repo: m2.repositoryId,
|
|
132910
|
-
regionId: (_a2 = m2.metadata) == null ? void 0 : _a2.regionId,
|
|
132911
|
-
layout: (_b2 = m2.metadata) == null ? void 0 : _b2.layout
|
|
132912
|
-
};
|
|
132913
|
-
}));
|
|
132914
|
-
}, [memberships, selectedCollection == null ? void 0 : selectedCollection.name]);
|
|
132915
132874
|
const handleProjectAdded = useCallback((repositoryPath, repositoryMetadata) => {
|
|
132916
132875
|
if (!selectedCollection) return;
|
|
132917
132876
|
if (actions.addRepositoryToCollection) {
|
|
@@ -133995,4 +133954,4 @@ export {
|
|
|
133995
133954
|
UPDATE_PRIORITY as y,
|
|
133996
133955
|
removeItems as z
|
|
133997
133956
|
};
|
|
133998
|
-
//# sourceMappingURL=index-
|
|
133957
|
+
//# sourceMappingURL=index-BnHKy4Xw.js.map
|