myoperator-mcp 0.2.32 → 0.2.34

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 +11 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1097,9 +1097,9 @@ const ConfirmationModal = React.forwardRef<
1097
1097
  <DialogContent ref={ref} size="sm" className={cn(className)}>
1098
1098
  <DialogHeader>
1099
1099
  <DialogTitle>{title}</DialogTitle>
1100
- {description && (
1101
- <DialogDescription>{description}</DialogDescription>
1102
- )}
1100
+ <DialogDescription className={description ? undefined : "sr-only"}>
1101
+ {description || "Confirmation dialog"}
1102
+ </DialogDescription>
1103
1103
  </DialogHeader>
1104
1104
  <DialogFooter className="gap-2 sm:gap-0">
1105
1105
  <Button variant="outline" onClick={handleCancel} disabled={loading}>
@@ -1249,9 +1249,9 @@ const DeleteConfirmationModal = React.forwardRef<
1249
1249
  <DialogContent ref={ref} size="sm" className={cn(className)}>
1250
1250
  <DialogHeader>
1251
1251
  <DialogTitle>{title || defaultTitle}</DialogTitle>
1252
- {description && (
1253
- <DialogDescription>{description}</DialogDescription>
1254
- )}
1252
+ <DialogDescription className={description ? undefined : "sr-only"}>
1253
+ {description || "Delete confirmation dialog - this action cannot be undone"}
1254
+ </DialogDescription>
1255
1255
  </DialogHeader>
1256
1256
  <div className="grid gap-2 py-4">
1257
1257
  <label
@@ -2248,7 +2248,8 @@ const PageHeader = React.forwardRef<HTMLDivElement, PageHeaderProps>(
2248
2248
  const result: React.ReactNode[] = [];
2249
2249
  React.Children.forEach(children, (child) => {
2250
2250
  if (React.isValidElement(child) && child.type === React.Fragment) {
2251
- result.push(...flattenChildren(child.props.children));
2251
+ const fragmentProps = child.props as { children?: React.ReactNode };
2252
+ result.push(...flattenChildren(fragmentProps.children));
2252
2253
  } else if (child !== null && child !== undefined) {
2253
2254
  result.push(child);
2254
2255
  }
@@ -3935,7 +3936,6 @@ const addToRemoveQueue = (toastId: string) => {
3935
3936
  toastTimeouts.set(toastId, timeout);
3936
3937
  };
3937
3938
 
3938
- // eslint-disable-next-line react-refresh/only-export-components
3939
3939
  export const reducer = (state: State, action: Action): State => {
3940
3940
  switch (action.type) {
3941
3941
  case "ADD_TOAST":
@@ -4100,7 +4100,7 @@ function Toaster() {
4100
4100
  const Icon = variant ? variantIcons[variant] : null;
4101
4101
 
4102
4102
  return (
4103
- <Toast key={id} variant={variant} className={variant} {...props}>
4103
+ <Toast key={id} variant={variant} className={variant ?? undefined} {...props}>
4104
4104
  <div className="flex gap-3">
4105
4105
  {Icon && (
4106
4106
  <Icon
@@ -4130,7 +4130,6 @@ function Toaster() {
4130
4130
  );
4131
4131
  }
4132
4132
 
4133
- // eslint-disable-next-line react-refresh/only-export-components
4134
4133
  export { useToast, toast, Toaster };
4135
4134
 
4136
4135
  /**
@@ -4272,7 +4271,7 @@ type Key = \`\${Kind}-\${Variant}\`;
4272
4271
  /**
4273
4272
  * Maps kind-variant combinations to semantic HTML tags
4274
4273
  */
4275
- const mapTagName: { [key in Key]: keyof JSX.IntrinsicElements } = {
4274
+ const mapTagName: { [key in Key]: keyof React.JSX.IntrinsicElements } = {
4276
4275
  "display-large": "h4",
4277
4276
  "display-medium": "h4",
4278
4277
  "display-small": "h4",
@@ -4355,7 +4354,7 @@ export interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
4355
4354
  /** Enable text truncation with ellipsis */
4356
4355
  truncate?: boolean;
4357
4356
  /** Override the default HTML tag */
4358
- tag?: keyof JSX.IntrinsicElements;
4357
+ tag?: keyof React.JSX.IntrinsicElements;
4359
4358
  /** For label elements - associates with form input */
4360
4359
  htmlFor?: string;
4361
4360
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-mcp",
3
- "version": "0.2.32",
3
+ "version": "0.2.34",
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",