myoperator-mcp 0.2.271 → 0.2.273

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 +8 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7249,7 +7249,13 @@ export { TextField, textFieldContainerVariants, textFieldInputVariants };
7249
7249
  import { CircleAlert } from "lucide-react";
7250
7250
  import { cva, type VariantProps } from "class-variance-authority";
7251
7251
 
7252
- import { cn, countNonWhitespaceChars } from "@/lib/utils";
7252
+ import { cn } from "@/lib/utils";
7253
+
7254
+ // Length of the string with all whitespace removed. Inlined so the component
7255
+ // is self-contained when distributed via the CLI (consumer's lib/utils.ts is
7256
+ // scaffolded once at init and not updated by \`add\`).
7257
+ const countNonWhitespaceChars = (value: string): number =>
7258
+ String(value).replace(/\\s/g, "").length;
7253
7259
 
7254
7260
  /**
7255
7261
  * Textarea variants for different visual states
@@ -7310,7 +7316,7 @@ export interface TextareaProps
7310
7316
  showCount?: boolean;
7311
7317
  /**
7312
7318
  * When set, the counter shows this number instead of the default non-whitespace length
7313
- * (see {@link countNonWhitespaceChars} in \`@/lib/utils\`).
7319
+ * (see \`countNonWhitespaceChars\` defined in this file).
7314
7320
  * Does not change native \`maxLength\` or stored value \u2014 display only.
7315
7321
  */
7316
7322
  displayCharCount?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-mcp",
3
- "version": "0.2.271",
3
+ "version": "0.2.273",
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",