@idealyst/mcp-server 1.2.131 → 1.2.133

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.
@@ -82,7 +82,7 @@ import {
82
82
  toolDefinitionMap,
83
83
  toolDefinitions,
84
84
  toolHandlers
85
- } from "../chunk-L3TA6GOW.js";
85
+ } from "../chunk-QM67ZCZ4.js";
86
86
  export {
87
87
  callTool,
88
88
  getAnimateGuide,
@@ -319,3 +319,30 @@ export function DropdownMenu() {
319
319
  </View>
320
320
  );
321
321
  }
322
+
323
+ // Example 12: Menu with Anchor Ref (no children wrapper)
324
+ export function MenuWithAnchor() {
325
+ const [open, setOpen] = React.useState(false);
326
+ const anchorRef = React.useRef(null);
327
+
328
+ const items: MenuItem[] = [
329
+ { id: '1', label: 'Profile', icon: 'account', onClick: () => console.log('Profile') },
330
+ { id: '2', label: 'Settings', icon: 'cog', onClick: () => console.log('Settings') },
331
+ { id: '3', label: 'separator', separator: true },
332
+ { id: '4', label: 'Logout', icon: 'logout', intent: 'danger', onClick: () => console.log('Logout') },
333
+ ];
334
+
335
+ return (
336
+ <View spacing="md">
337
+ <Button ref={anchorRef} onPress={() => setOpen(!open)}>
338
+ User Menu
339
+ </Button>
340
+ <Menu
341
+ anchor={anchorRef}
342
+ items={items}
343
+ open={open}
344
+ onOpenChange={setOpen}
345
+ />
346
+ </View>
347
+ );
348
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idealyst/mcp-server",
3
- "version": "1.2.131",
3
+ "version": "1.2.133",
4
4
  "description": "MCP server providing documentation and examples for the Idealyst framework",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -55,13 +55,13 @@
55
55
  "author": "Idealyst",
56
56
  "license": "MIT",
57
57
  "dependencies": {
58
- "@idealyst/components": "^1.2.131",
59
- "@idealyst/navigation": "^1.2.131",
60
- "@idealyst/theme": "^1.2.131",
58
+ "@idealyst/components": "^1.2.133",
59
+ "@idealyst/navigation": "^1.2.133",
60
+ "@idealyst/theme": "^1.2.133",
61
61
  "@modelcontextprotocol/sdk": "^1.0.4"
62
62
  },
63
63
  "devDependencies": {
64
- "@idealyst/tooling": "^1.2.131",
64
+ "@idealyst/tooling": "^1.2.133",
65
65
  "@types/better-sqlite3": "^7.6.12",
66
66
  "@types/node": "^20.0.0",
67
67
  "@types/react": "^19.1.0",