@industry-theme/repository-composition-panels 0.3.0 → 0.4.1
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-w_Mblh-U.js → BufferResource-BX9Bwcpk.js} +2 -2
- package/dist/{BufferResource-w_Mblh-U.js.map → BufferResource-BX9Bwcpk.js.map} +1 -1
- package/dist/{CanvasRenderer-DaRXUH5B.js → CanvasRenderer-Bfy295P3.js} +3 -3
- package/dist/{CanvasRenderer-DaRXUH5B.js.map → CanvasRenderer-Bfy295P3.js.map} +1 -1
- package/dist/{Filter-Bik-uNoM.js → Filter-CQ5zaaWV.js} +2 -2
- package/dist/{Filter-Bik-uNoM.js.map → Filter-CQ5zaaWV.js.map} +1 -1
- package/dist/{RenderTargetSystem-BHqboLvI.js → RenderTargetSystem-Bg5fYjqR.js} +3 -3
- package/dist/{RenderTargetSystem-BHqboLvI.js.map → RenderTargetSystem-Bg5fYjqR.js.map} +1 -1
- package/dist/{WebGLRenderer-au9moLXi.js → WebGLRenderer-C5mfN078.js} +4 -4
- package/dist/{WebGLRenderer-au9moLXi.js.map → WebGLRenderer-C5mfN078.js.map} +1 -1
- package/dist/{WebGPURenderer-CE4FSASL.js → WebGPURenderer-CUDVFENt.js} +4 -4
- package/dist/{WebGPURenderer-CE4FSASL.js.map → WebGPURenderer-CUDVFENt.js.map} +1 -1
- package/dist/{browserAll-Ce9SOske.js → browserAll-BM9ks-6u.js} +3 -3
- package/dist/{browserAll-Ce9SOske.js.map → browserAll-BM9ks-6u.js.map} +1 -1
- package/dist/{index-SLDu-OgG.js → index-Buvz5cyD.js} +22 -43
- package/dist/{index-SLDu-OgG.js.map → index-Buvz5cyD.js.map} +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/{init-CORdPbRQ.js → init-Cc6yM9BD.js} +3 -3
- package/dist/{init-CORdPbRQ.js.map → init-Cc6yM9BD.js.map} +1 -1
- package/dist/panels/CollectionMapPanel.d.ts +10 -2
- package/dist/panels/CollectionMapPanel.d.ts.map +1 -1
- package/dist/panels.bundle.js +1 -1
- package/dist/webworkerAll-DY6FwGj3.js +3 -0
- package/dist/webworkerAll-DY6FwGj3.js.map +1 -0
- package/package.json +3 -3
- package/dist/webworkerAll-B0aIVLd6.js +0 -3
- package/dist/webworkerAll-B0aIVLd6.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-BM9ks-6u.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-DY6FwGj3.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-CUDVFENt.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-C5mfN078.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-Bfy295P3.js");
|
|
116475
116475
|
RendererClass = CanvasRenderer;
|
|
116476
116476
|
finalOptions = { ...options, ...options.canvasOptions };
|
|
116477
116477
|
break;
|
|
@@ -132834,55 +132834,34 @@ const CollectionMapPanel = ({ context: context2, actions }) => {
|
|
|
132834
132834
|
const collections = ((_a = collectionsSlice == null ? void 0 : collectionsSlice.data) == null ? void 0 : _a.collections) || [];
|
|
132835
132835
|
const memberships = ((_b = collectionsSlice == null ? void 0 : collectionsSlice.data) == null ? void 0 : _b.memberships) || [];
|
|
132836
132836
|
const collectionsLoading = (collectionsSlice == null ? void 0 : collectionsSlice.loading) ?? false;
|
|
132837
|
+
React2__default.useEffect(() => {
|
|
132838
|
+
console.info("[CollectionMapPanel] 📊 Memberships updated:", memberships.map((m2) => {
|
|
132839
|
+
var _a2;
|
|
132840
|
+
return {
|
|
132841
|
+
repo: m2.repositoryId,
|
|
132842
|
+
layout: (_a2 = m2.metadata) == null ? void 0 : _a2.layout
|
|
132843
|
+
};
|
|
132844
|
+
}));
|
|
132845
|
+
}, [memberships]);
|
|
132837
132846
|
const repositoriesSlice = context2.getSlice("alexandriaRepositories");
|
|
132838
132847
|
const repositories = ((_c = repositoriesSlice == null ? void 0 : repositoriesSlice.data) == null ? void 0 : _c.repositories) || [];
|
|
132839
132848
|
const repositoriesLoading = (repositoriesSlice == null ? void 0 : repositoriesSlice.loading) ?? false;
|
|
132840
132849
|
const selectedCollectionId = (_d = context2.selectedCollection) == null ? void 0 : _d.id;
|
|
132841
132850
|
const selectedCollection = collections.find((c2) => c2.id === selectedCollectionId);
|
|
132842
132851
|
const handleProjectAdded = useCallback((repositoryPath, repositoryMetadata) => {
|
|
132843
|
-
if (actions
|
|
132852
|
+
if (actions.addRepositoryToCollection) {
|
|
132844
132853
|
actions.addRepositoryToCollection(selectedCollectionId, repositoryPath, repositoryMetadata);
|
|
132845
132854
|
} else {
|
|
132846
132855
|
console.warn("Actions does not support addRepositoryToCollection - drag-drop feature requires context integration");
|
|
132847
132856
|
}
|
|
132848
132857
|
}, [actions, selectedCollectionId]);
|
|
132849
132858
|
const regionCallbacks = useMemo(() => ({
|
|
132850
|
-
onRegionCreated:
|
|
132851
|
-
|
|
132852
|
-
|
|
132853
|
-
|
|
132854
|
-
|
|
132855
|
-
|
|
132856
|
-
onRegionUpdated: async (collectionId, regionId, updates) => {
|
|
132857
|
-
if (!(actions == null ? void 0 : actions.onRegionUpdated)) {
|
|
132858
|
-
throw new Error("Actions must implement onRegionUpdated for CollectionMapPanel");
|
|
132859
|
-
}
|
|
132860
|
-
await actions.onRegionUpdated(collectionId, regionId, updates);
|
|
132861
|
-
},
|
|
132862
|
-
onRegionDeleted: async (collectionId, regionId) => {
|
|
132863
|
-
if (!(actions == null ? void 0 : actions.onRegionDeleted)) {
|
|
132864
|
-
throw new Error("Actions must implement onRegionDeleted for CollectionMapPanel");
|
|
132865
|
-
}
|
|
132866
|
-
await actions.onRegionDeleted(collectionId, regionId);
|
|
132867
|
-
},
|
|
132868
|
-
onRepositoryAssigned: async (collectionId, repositoryId, regionId) => {
|
|
132869
|
-
if (!(actions == null ? void 0 : actions.onRepositoryAssigned)) {
|
|
132870
|
-
throw new Error("Actions must implement onRepositoryAssigned for CollectionMapPanel");
|
|
132871
|
-
}
|
|
132872
|
-
await actions.onRepositoryAssigned(collectionId, repositoryId, regionId);
|
|
132873
|
-
},
|
|
132874
|
-
onRepositoryPositionUpdated: async (collectionId, repositoryId, layout) => {
|
|
132875
|
-
if (!(actions == null ? void 0 : actions.onRepositoryPositionUpdated)) {
|
|
132876
|
-
throw new Error("Actions must implement onRepositoryPositionUpdated for CollectionMapPanel");
|
|
132877
|
-
}
|
|
132878
|
-
await actions.onRepositoryPositionUpdated(collectionId, repositoryId, layout);
|
|
132879
|
-
},
|
|
132880
|
-
onBatchLayoutInitialized: async (collectionId, updates) => {
|
|
132881
|
-
if (!(actions == null ? void 0 : actions.onBatchLayoutInitialized)) {
|
|
132882
|
-
throw new Error("Actions must implement onBatchLayoutInitialized for CollectionMapPanel");
|
|
132883
|
-
}
|
|
132884
|
-
await actions.onBatchLayoutInitialized(collectionId, updates);
|
|
132885
|
-
}
|
|
132859
|
+
onRegionCreated: actions.onRegionCreated,
|
|
132860
|
+
onRegionUpdated: actions.onRegionUpdated,
|
|
132861
|
+
onRegionDeleted: actions.onRegionDeleted,
|
|
132862
|
+
onRepositoryAssigned: actions.onRepositoryAssigned,
|
|
132863
|
+
onRepositoryPositionUpdated: actions.onRepositoryPositionUpdated,
|
|
132864
|
+
onBatchLayoutInitialized: actions.onBatchLayoutInitialized
|
|
132886
132865
|
}), [actions]);
|
|
132887
132866
|
if (!selectedCollection) {
|
|
132888
132867
|
return /* @__PURE__ */ jsxs(
|
|
@@ -133956,4 +133935,4 @@ export {
|
|
|
133956
133935
|
UPDATE_PRIORITY as y,
|
|
133957
133936
|
removeItems as z
|
|
133958
133937
|
};
|
|
133959
|
-
//# sourceMappingURL=index-
|
|
133938
|
+
//# sourceMappingURL=index-Buvz5cyD.js.map
|