myoperator-mcp 0.2.125 → 0.2.127

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -530,12 +530,14 @@ Alert.displayName = "Alert";
530
530
  /**
531
531
  * Alert title component for the heading text.
532
532
  */
533
- const AlertTitle = React.forwardRef(({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>, ref: React.Ref<HTMLHeadingElement>) => (
533
+ const AlertTitle = React.forwardRef(({ className, children, ...props }: React.HTMLAttributes<HTMLHeadingElement>, ref: React.Ref<HTMLHeadingElement>) => (
534
534
  <h5
535
535
  ref={ref}
536
536
  className={cn("font-semibold leading-tight tracking-tight", className)}
537
537
  {...props}
538
- />
538
+ >
539
+ {children}
540
+ </h5>
539
541
  ));
540
542
  AlertTitle.displayName = "AlertTitle";
541
543
 
@@ -1440,6 +1442,7 @@ const CreatableMultiSelect = React.forwardRef(
1440
1442
  const [inputValue, setInputValue] = React.useState("")
1441
1443
  const containerRef = React.useRef<HTMLDivElement>(null)
1442
1444
  const inputRef = React.useRef<HTMLInputElement>(null)
1445
+ const listboxId = React.useId()
1443
1446
 
1444
1447
  React.useImperativeHandle(ref, () => containerRef.current!)
1445
1448
 
@@ -1577,6 +1580,7 @@ const CreatableMultiSelect = React.forwardRef(
1577
1580
  className="flex-1 min-w-[100px] text-base bg-transparent outline-none text-semantic-text-primary placeholder:text-semantic-text-muted"
1578
1581
  role="combobox"
1579
1582
  aria-expanded={isOpen}
1583
+ aria-controls={listboxId}
1580
1584
  aria-haspopup="listbox"
1581
1585
  />
1582
1586
 
@@ -1590,7 +1594,7 @@ const CreatableMultiSelect = React.forwardRef(
1590
1594
 
1591
1595
  {/* Dropdown panel */}
1592
1596
  {isOpen && (
1593
- <div className="absolute z-[9999] top-full mt-1 w-full bg-semantic-bg-primary border border-semantic-border-layout rounded shadow-md animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 duration-200">
1597
+ <div id={listboxId} role="listbox" className="absolute z-[9999] top-full mt-1 w-full bg-semantic-bg-primary border border-semantic-border-layout rounded shadow-md animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 duration-200">
1594
1598
  {/* Creatable hint \u2014 Enter key */}
1595
1599
  <div className="flex items-center justify-between px-4 py-2 border-b border-semantic-border-layout">
1596
1600
  <span className="text-sm text-semantic-text-muted">
@@ -1730,6 +1734,7 @@ const CreatableSelect = React.forwardRef(
1730
1734
  const containerRef = React.useRef<HTMLDivElement>(null)
1731
1735
  const inputRef = React.useRef<HTMLInputElement>(null)
1732
1736
  const listRef = React.useRef<HTMLDivElement>(null)
1737
+ const listboxId = React.useId()
1733
1738
 
1734
1739
  // Merge forwarded ref with internal ref
1735
1740
  React.useImperativeHandle(ref, () => containerRef.current!)
@@ -1872,6 +1877,7 @@ const CreatableSelect = React.forwardRef(
1872
1877
  placeholder={selectedLabel || placeholder}
1873
1878
  aria-expanded="true"
1874
1879
  aria-haspopup="listbox"
1880
+ aria-controls={listboxId}
1875
1881
  role="combobox"
1876
1882
  aria-autocomplete="list"
1877
1883
  />
@@ -1888,6 +1894,7 @@ const CreatableSelect = React.forwardRef(
1888
1894
  )}
1889
1895
  aria-haspopup="listbox"
1890
1896
  aria-expanded="false"
1897
+ aria-controls={listboxId}
1891
1898
  >
1892
1899
  <span
1893
1900
  className={cn(
@@ -1917,6 +1924,7 @@ const CreatableSelect = React.forwardRef(
1917
1924
  {/* Options list */}
1918
1925
  <div
1919
1926
  ref={listRef}
1927
+ id={listboxId}
1920
1928
  role="listbox"
1921
1929
  className="max-h-60 overflow-y-auto p-1"
1922
1930
  >
@@ -3054,6 +3062,7 @@ const MultiSelect = React.forwardRef(
3054
3062
  // Generate unique IDs for accessibility
3055
3063
  const generatedId = React.useId();
3056
3064
  const selectId = id || generatedId;
3065
+ const listboxId = \`\${selectId}-listbox\`;
3057
3066
  const helperId = \`\${selectId}-helper\`;
3058
3067
  const errorId = \`\${selectId}-error\`;
3059
3068
 
@@ -3167,6 +3176,7 @@ const MultiSelect = React.forwardRef(
3167
3176
  role="combobox"
3168
3177
  aria-expanded={isOpen}
3169
3178
  aria-haspopup="listbox"
3179
+ aria-controls={listboxId}
3170
3180
  aria-invalid={!!error}
3171
3181
  aria-describedby={ariaDescribedBy}
3172
3182
  disabled={disabled || loading}
@@ -3246,6 +3256,7 @@ const MultiSelect = React.forwardRef(
3246
3256
  {/* Dropdown */}
3247
3257
  {isOpen && (
3248
3258
  <div
3259
+ id={listboxId}
3249
3260
  className={cn(
3250
3261
  "absolute z-50 mt-1 w-full rounded bg-semantic-bg-primary border border-semantic-border-layout shadow-md",
3251
3262
  "top-full"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-mcp",
3
- "version": "0.2.125",
3
+ "version": "0.2.127",
4
4
  "description": "MCP server for myOperator UI components - enables AI assistants to access component metadata, examples, and design tokens",
5
5
  "type": "module",
6
6
  "bin": "./dist/index.js",