@smwb/ui-mcp-react 2.3.0 → 2.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.
@@ -64,9 +64,9 @@
64
64
  "description": "Initially selected node ids (uncontrolled)."
65
65
  },
66
66
  "onSelectedChange": {
67
- "type": "(selected: string[]) => void",
67
+ "type": "(selected: string[], changed?: { id: string; selected: boolean }) => void",
68
68
  "required": false,
69
- "description": "Called with the next selected ids."
69
+ "description": "Called with the next selected ids plus, for user toggles, the node that just changed."
70
70
  },
71
71
  "selectable": {
72
72
  "type": "boolean",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smwb/ui-mcp-react",
3
- "version": "2.3.0",
3
+ "version": "2.4.1",
4
4
  "description": "Model Context Protocol server exposing the @smwb/ui-react (React) component catalog and customization guide.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -28,7 +28,7 @@
28
28
  "zod": "^4.4.3"
29
29
  },
30
30
  "devDependencies": {
31
- "@smwb/ui-react": "^2.3.0",
31
+ "@smwb/ui-react": "^2.4.1",
32
32
  "@smwb/ui-styles": "^1.1.0",
33
33
  "glob": "^13.0.6",
34
34
  "typescript": "^6.0.3",