myoperator-mcp 0.2.155 → 0.2.156

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 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2253,7 +2253,7 @@ const DialogOverlay = React.forwardRef(({ className, ...props }: React.Component
2253
2253
  <DialogPrimitive.Overlay
2254
2254
  ref={ref}
2255
2255
  className={cn(
2256
- "fixed inset-0 z-[9999] bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
2256
+ "fixed inset-0 z-[9999] bg-black/50 overflow-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
2257
2257
  className
2258
2258
  )}
2259
2259
  {...props}
@@ -2262,7 +2262,7 @@ const DialogOverlay = React.forwardRef(({ className, ...props }: React.Component
2262
2262
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
2263
2263
 
2264
2264
  const dialogContentVariants = cva(
2265
- "fixed left-[50%] top-[50%] z-[9999] flex flex-col translate-x-[-50%] translate-y-[-50%] gap-4 border border-solid border-border bg-background p-6 shadow-lg duration-200 max-h-[calc(100vh-2rem)] overflow-y-auto data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg",
2265
+ "fixed left-[50%] top-[50%] z-[9999] flex flex-col translate-x-[-50%] translate-y-[-50%] gap-4 border border-solid border-border bg-background p-6 shadow-lg duration-200 max-h-[calc(100vh-2rem)] overflow-y-auto overscroll-contain data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg",
2266
2266
  {
2267
2267
  variants: {
2268
2268
  size: {
@@ -2310,6 +2310,15 @@ const hasDialogDescription = (children: React.ReactNode): boolean => {
2310
2310
  const DialogContent = React.forwardRef(({ className, children, size, hideCloseButton = false, ...props }: DialogContentProps, ref: React.Ref<React.ElementRef<typeof DialogPrimitive.Content>>) => {
2311
2311
  const hasDescription = hasDialogDescription(children);
2312
2312
 
2313
+ // Lock body scroll when dialog is open \u2014 works regardless of host app CSS overrides
2314
+ React.useEffect(() => {
2315
+ const originalOverflow = document.body.style.overflow;
2316
+ document.body.style.overflow = "hidden";
2317
+ return () => {
2318
+ document.body.style.overflow = originalOverflow;
2319
+ };
2320
+ }, []);
2321
+
2313
2322
  return (
2314
2323
  <DialogPortal>
2315
2324
  <DialogOverlay />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-mcp",
3
- "version": "0.2.155",
3
+ "version": "0.2.156",
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",