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.
- package/dist/index.js +8 -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
|
|
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
|
|
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