@robosystems/core 0.13.6 → 0.14.0

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.
@@ -78,12 +78,12 @@ export function createGraphProvider(Context) {
78
78
  // Only treat as a user graph if found and NOT a repository
79
79
  const isUserGraph = graph ? !graph.isRepository : false;
80
80
  setBaseState((prev) => (Object.assign(Object.assign({}, prev), { currentGraphId: graphId })));
81
- // Only call selectGraph API for user graphs, not repositories
81
+ // Only call setSelectedGraph for user graphs, not repositories
82
82
  // Repositories can be accessed but not "selected" in the backend
83
83
  // If graph is not found in local state, skip the API call (likely a repository)
84
84
  if (isUserGraph) {
85
- unwrapSdk(await SDK.selectGraph({
86
- path: { graph_id: graphId },
85
+ unwrapSdk(await SDK.setSelectedGraph({
86
+ body: { graph_id: graphId },
87
87
  }));
88
88
  }
89
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/core",
3
- "version": "0.13.6",
3
+ "version": "0.14.0",
4
4
  "description": "Shared RoboSystems frontend core library (auth, contexts, task monitoring, UI components) for the RoboSystems Next.js apps",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -27,7 +27,7 @@
27
27
  "tailwind-merge": "^3"
28
28
  },
29
29
  "peerDependencies": {
30
- "@robosystems/client": ">=1.10 <3",
30
+ "@robosystems/client": ">=2.7 <3",
31
31
  "flowbite-react": "^0.12.5",
32
32
  "next": ">=15 <17",
33
33
  "react": ">=18 <20",