myoperator-mcp 0.2.389 → 0.2.390

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 +19 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10392,6 +10392,14 @@ export interface SelectFieldProps {
10392
10392
  * presentation only.
10393
10393
  */
10394
10394
  truncateOptionText?: boolean;
10395
+ /**
10396
+ * Content shown inside the open dropdown when \`options\` is empty (and no
10397
+ * search query is active \u2014 that case shows "No results found"). Use it to
10398
+ * tell the user why the list is empty and what to do next, e.g.
10399
+ * "No AI Agents yet. Build one in AI Agents first."
10400
+ * Default: "No options available".
10401
+ */
10402
+ emptyMessage?: React.ReactNode;
10395
10403
  }
10396
10404
 
10397
10405
  /**
@@ -10470,6 +10478,7 @@ const SelectField = React.forwardRef(
10470
10478
  loadingMore,
10471
10479
  hasMore,
10472
10480
  truncateOptionText,
10481
+ emptyMessage = "No options available",
10473
10482
  }: SelectFieldProps,
10474
10483
  ref: React.Ref<HTMLButtonElement>
10475
10484
  ) => {
@@ -10752,6 +10761,16 @@ const SelectField = React.forwardRef(
10752
10761
  </div>
10753
10762
  )}
10754
10763
 
10764
+ {/* Empty state \u2014 no options at all and nothing being searched/loaded. */}
10765
+ {options.length === 0 && !effectiveSearchQuery && !loadingMore && (
10766
+ <div
10767
+ role="status"
10768
+ className="px-3 py-6 text-center text-sm text-semantic-text-muted"
10769
+ >
10770
+ {emptyMessage}
10771
+ </div>
10772
+ )}
10773
+
10755
10774
  {/* Loading-more row (lazy-load) */}
10756
10775
  {loadingMore && (
10757
10776
  <div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-mcp",
3
- "version": "0.2.389",
3
+ "version": "0.2.390",
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",