@nysds/mcp-server 1.22.0 → 1.22.3

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.
@@ -7360,6 +7360,12 @@
7360
7360
  "code": "<nys-button id=\"my-trigger-id\" label=\"Open Menu\"></nys-button>\n<nys-dropdownmenu id=\"my-dropdownmenu\" for=\"my-trigger-id\">\n<nys-dropdownmenuitem label=\"Profile\" href=\"/profile\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Repositories & Github Pages\" href=\"/repos\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Organizations\" href=\"/organizations\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Sign out\" href=\"/logout\"></nys-dropdownmenuitem>\n</nys-dropdownmenu>\n</div>",
7361
7361
  "lang": "html",
7362
7362
  "render": "<div style=\"margin: 200px; display: flex; justify-content: center; align-items: center;\">\n<nys-button id=\"my-trigger-id\" label=\"Open Menu\"></nys-button>\n<nys-dropdownmenu id=\"my-dropdownmenu\" for=\"my-trigger-id\">\n<nys-dropdownmenuitem label=\"Profile\" href=\"/profile\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Repositories & Github Pages\" href=\"/repos\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Organizations\" href=\"/organizations\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Sign out\" href=\"/logout\"></nys-dropdownmenuitem>\n</nys-dropdownmenu>\n</div>"
7363
+ },
7364
+ {
7365
+ "title": "Prefix & Suffix Icon",
7366
+ "code": "<div>\n<nys-button id=\"my-trigger-id\" label=\"Open Menu\"></nys-button>\n<nys-dropdownmenu id=\"my-dropdownmenu\" for=\"my-trigger-id\">\n<nys-dropdownmenuitem label=\"Profile\" href=\"/profile\" prefixIcon=\"account_circle\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Repositories & Github Pages\" href=\"/repos\" prefixIcon=\"drive_folder_upload\" suffixIcon=\"open_in_new\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Organizations\" href=\"/organizations\" prefixIcon=\"account_balance_filled\" suffixIcon=\"chevron_right\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Sign out\" href=\"/logout\" suffixIcon=\"lock_filled\"></nys-dropdownmenuitem>\n</nys-dropdownmenu>\n</div>",
7367
+ "lang": "html",
7368
+ "render": "<div style=\"margin: 200px; display: flex; justify-content: center; align-items: center;\">\n<nys-button id=\"my-trigger-id\" label=\"Open Menu\"></nys-button>\n<nys-dropdownmenu id=\"my-dropdownmenu\" for=\"my-trigger-id\">\n<nys-dropdownmenuitem label=\"Profile\" href=\"/profile\" prefixIcon=\"account_circle\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Repositories & Github Pages\" href=\"/repos\" prefixIcon=\"drive_folder_upload\" suffixIcon=\"open_in_new\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Organizations\" href=\"/organizations\" prefixIcon=\"account_balance_filled\" suffixIcon=\"chevron_right\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Sign out\" href=\"/logout\" suffixIcon=\"lock_filled\"></nys-dropdownmenuitem>\n</nys-dropdownmenu>\n</div>"
7363
7369
  }
7364
7370
  ],
7365
7371
  "usagedos": [
@@ -7422,6 +7428,7 @@
7422
7428
  "text": "string"
7423
7429
  },
7424
7430
  "default": "\"\"",
7431
+ "description": "Text shown in the item. Also the accessible name and the `nys-click` detail label.",
7425
7432
  "attribute": "label"
7426
7433
  },
7427
7434
  {
@@ -7431,6 +7438,7 @@
7431
7438
  "text": "string"
7432
7439
  },
7433
7440
  "default": "\"\"",
7441
+ "description": "Link URL. Renders a link when set, a button when empty.",
7434
7442
  "attribute": "href"
7435
7443
  },
7436
7444
  {
@@ -7440,6 +7448,7 @@
7440
7448
  "text": "boolean"
7441
7449
  },
7442
7450
  "default": "false",
7451
+ "description": "Disables the item. No `nys-click` event and no link navigation.",
7443
7452
  "attribute": "disabled",
7444
7453
  "reflects": true
7445
7454
  },
@@ -7450,6 +7459,7 @@
7450
7459
  "text": "string"
7451
7460
  },
7452
7461
  "default": "\"_self\"",
7462
+ "description": "Where the link opens (e.g. `_self`, `_blank`). Only used with `href`.",
7453
7463
  "attribute": "target"
7454
7464
  },
7455
7465
  {
@@ -7459,16 +7469,18 @@
7459
7469
  "text": "string"
7460
7470
  },
7461
7471
  "default": "\"\"",
7472
+ "description": "Icon name shown before the label.",
7462
7473
  "attribute": "prefixIcon"
7463
7474
  },
7464
7475
  {
7465
7476
  "kind": "field",
7466
- "name": "divider",
7477
+ "name": "suffixIcon",
7467
7478
  "type": {
7468
7479
  "text": "string"
7469
7480
  },
7470
7481
  "default": "\"\"",
7471
- "attribute": "divider"
7482
+ "description": "Icon name shown after the label.",
7483
+ "attribute": "suffixIcon"
7472
7484
  },
7473
7485
  {
7474
7486
  "kind": "method",
@@ -7482,6 +7494,19 @@
7482
7494
  }
7483
7495
  }
7484
7496
  ]
7497
+ },
7498
+ {
7499
+ "kind": "method",
7500
+ "name": "_renderIcon",
7501
+ "privacy": "private",
7502
+ "parameters": [
7503
+ {
7504
+ "name": "iconName",
7505
+ "type": {
7506
+ "text": "string"
7507
+ }
7508
+ }
7509
+ ]
7485
7510
  }
7486
7511
  ],
7487
7512
  "events": [
@@ -7500,6 +7525,7 @@
7500
7525
  "text": "string"
7501
7526
  },
7502
7527
  "default": "\"\"",
7528
+ "description": "Text shown in the item. Also the accessible name and the `nys-click` detail label.",
7503
7529
  "fieldName": "label"
7504
7530
  },
7505
7531
  {
@@ -7508,6 +7534,7 @@
7508
7534
  "text": "string"
7509
7535
  },
7510
7536
  "default": "\"\"",
7537
+ "description": "Link URL. Renders a link when set, a button when empty.",
7511
7538
  "fieldName": "href"
7512
7539
  },
7513
7540
  {
@@ -7516,6 +7543,7 @@
7516
7543
  "text": "boolean"
7517
7544
  },
7518
7545
  "default": "false",
7546
+ "description": "Disables the item. No `nys-click` event and no link navigation.",
7519
7547
  "fieldName": "disabled"
7520
7548
  },
7521
7549
  {
@@ -7524,6 +7552,7 @@
7524
7552
  "text": "string"
7525
7553
  },
7526
7554
  "default": "\"_self\"",
7555
+ "description": "Where the link opens (e.g. `_self`, `_blank`). Only used with `href`.",
7527
7556
  "fieldName": "target"
7528
7557
  },
7529
7558
  {
@@ -7532,15 +7561,17 @@
7532
7561
  "text": "string"
7533
7562
  },
7534
7563
  "default": "\"\"",
7564
+ "description": "Icon name shown before the label.",
7535
7565
  "fieldName": "prefixIcon"
7536
7566
  },
7537
7567
  {
7538
- "name": "divider",
7568
+ "name": "suffixIcon",
7539
7569
  "type": {
7540
7570
  "text": "string"
7541
7571
  },
7542
7572
  "default": "\"\"",
7543
- "fieldName": "divider"
7573
+ "description": "Icon name shown after the label.",
7574
+ "fieldName": "suffixIcon"
7544
7575
  }
7545
7576
  ],
7546
7577
  "superclass": {
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "react": {
3
3
  "packageName": "@nysds/react",
4
- "version": "1.22.0"
4
+ "version": "1.22.3"
5
5
  },
6
6
  "vue": {
7
7
  "packageName": "@nysds/vue",
8
- "version": "1.22.0"
8
+ "version": "1.22.3"
9
9
  },
10
10
  "angular": {
11
11
  "packageName": "@nysds/angular",
12
- "version": "1.22.0"
12
+ "version": "1.22.3"
13
13
  }
14
14
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * New York State Design System v1.22.0
2
+ * New York State Design System v1.22.3
3
3
  * Description: A design system for New York State's digital products.
4
4
  * Repository: https://github.com/its-hcd/nysds
5
5
  * License: MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nysds/mcp-server",
3
- "version": "1.22.0",
3
+ "version": "1.22.3",
4
4
  "description": "MCP server for the New York State Design System. Exposes components, tokens, and documentation to AI assistants.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -28,12 +28,12 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@modelcontextprotocol/sdk": "^1.26.0",
31
- "@nysds/codegen": "^1.20.1",
31
+ "@nysds/codegen": "^1.22.3",
32
32
  "zod": "^3.25"
33
33
  },
34
34
  "devDependencies": {
35
- "@nysds/styles": "^1.22.0",
36
- "@nysds/tokens": "^1.22.0",
35
+ "@nysds/styles": "^1.22.3",
36
+ "@nysds/tokens": "^1.22.3",
37
37
  "@types/node": "^22.0.0",
38
38
  "typescript": "^5.9.3"
39
39
  },