@mastra/playground-ui 30.0.1 → 30.0.2-alpha.1

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.
@@ -1,6 +1,7 @@
1
1
  import { Drawer as DrawerPrimitive } from '@base-ui/react/drawer';
2
2
  import * as React from 'react';
3
3
  export type DrawerSide = 'top' | 'right' | 'bottom' | 'left';
4
+ export declare const useDrawerSide: () => DrawerSide;
4
5
  export type DrawerProps<Payload = unknown> = Omit<DrawerPrimitive.Root.Props<Payload>, 'swipeDirection'> & {
5
6
  /** Edge the drawer is anchored to. Defaults to `bottom`. */
6
7
  side?: DrawerSide;
@@ -26,6 +27,7 @@ declare const DrawerIndent: React.ForwardRefExoticComponent<Omit<import('@base-u
26
27
  declare const DrawerIndentBackground: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').DrawerIndentBackgroundProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
27
28
  declare const DrawerSwipeArea: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').DrawerSwipeAreaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
28
29
  declare const createDrawerHandle: typeof DrawerPrimitive.createHandle;
30
+ declare const DrawerInteractive: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').DrawerContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
29
31
  type DrawerBackdropProps = Omit<DrawerPrimitive.Backdrop.Props, 'className'> & {
30
32
  className?: string;
31
33
  };
@@ -38,33 +40,10 @@ type DrawerPopupProps = Omit<DrawerPrimitive.Popup.Props, 'className'> & {
38
40
  className?: string;
39
41
  };
40
42
  declare const DrawerPopup: React.ForwardRefExoticComponent<Omit<DrawerPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
41
- type DrawerContentProps = Omit<DrawerPrimitive.Popup.Props, 'className'> & {
43
+ type DrawerContentProps = Omit<DrawerPrimitive.Popup.Props, 'className' | 'children'> & {
42
44
  className?: string;
43
- /** Portal target. Defaults to `document.body`. */
44
- container?: HTMLElement | null;
45
- /** Hide the dimmed backdrop layer (use for non-modal drawers). */
46
- hideBackdrop?: boolean;
47
- /** Hide the built-in close button. */
48
- hideCloseButton?: boolean;
49
- /** Hide the drag handle shown on top/bottom sheets. */
50
- hideHandle?: boolean;
45
+ children?: React.ReactNode;
51
46
  };
52
- /**
53
- * Convenience composition of Portal + Backdrop + Viewport + Popup.
54
- *
55
- * Children sit in a plain `<div>`, not Base UI's `Drawer.Content`. `Drawer.Content`
56
- * marks its subtree as mouse-text-selectable, so a *pointer* drag inside it selects
57
- * text instead of swiping (touch still swipes). A plain `<div>` keeps the entire
58
- * panel drag-to-dismiss for pointer and touch alike. Pair this with not putting
59
- * `pointer-events: none` on a modal viewport — that also blocks the swipe.
60
- *
61
- * `hideBackdrop` marks the drawer as non-modal: it drops the backdrop and switches the
62
- * viewport to `pointer-events: none` (popup re-enables its own) so the page behind
63
- * stays interactive — the only case where that opt-out is correct.
64
- *
65
- * For layouts that need their own structure, compose the styled parts
66
- * (`DrawerPortal`, `DrawerBackdrop`, `DrawerViewport`, `DrawerPopup`) directly instead.
67
- */
68
47
  declare const DrawerContent: React.ForwardRefExoticComponent<Omit<DrawerContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
69
48
  declare const DrawerHeader: {
70
49
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
@@ -86,5 +65,5 @@ type DrawerDescriptionProps = Omit<DrawerPrimitive.Description.Props, 'className
86
65
  className?: string;
87
66
  };
88
67
  declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DrawerDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
89
- export { Drawer, DrawerTrigger, DrawerClose, DrawerPortal, DrawerBackdrop, DrawerViewport, DrawerPopup, DrawerContent, DrawerHeader, DrawerFooter, DrawerBody, DrawerTitle, DrawerDescription, DrawerProvider, DrawerIndent, DrawerIndentBackground, DrawerSwipeArea, createDrawerHandle, };
68
+ export { Drawer, DrawerTrigger, DrawerClose, DrawerPortal, DrawerBackdrop, DrawerViewport, DrawerPopup, DrawerContent, DrawerHeader, DrawerFooter, DrawerBody, DrawerTitle, DrawerDescription, DrawerProvider, DrawerIndent, DrawerIndentBackground, DrawerSwipeArea, DrawerInteractive, createDrawerHandle, };
90
69
  export type { DrawerTriggerProps, DrawerCloseProps, DrawerBackdropProps, DrawerViewportProps, DrawerPopupProps, DrawerContentProps, DrawerTitleProps, DrawerDescriptionProps, };
@@ -31,9 +31,10 @@ export type MainSidebarNavLinkProps = Omit<ComponentPropsWithoutRef<'li'>, 'chil
31
31
  /** Override the Provider-level LinkComponent for this row. Defaults to `<a>` when neither is set. */
32
32
  LinkComponent?: LinkComponent;
33
33
  /**
34
- * When true, render `children` as the interactive element (Radix Slot pattern).
34
+ * When true, render `children` as the interactive element.
35
35
  * Use for `<button>` items or custom router Links. Item classes are forwarded
36
- * to the slotted element. `link` and `LinkComponent` are ignored.
36
+ * to the slotted element. `link.url` and `LinkComponent` are ignored; other
37
+ * `link` presentation fields still apply when supplied.
37
38
  */
38
39
  asChild?: boolean;
39
40
  };
@@ -1,8 +1,5 @@
1
1
  export type SideDialogContentProps = {
2
2
  children?: React.ReactNode;
3
3
  className?: string;
4
- isCentered?: boolean;
5
- isFullHeight?: boolean;
6
- variant?: 'default' | 'confirmation';
7
4
  };
8
5
  export declare function SideDialogContent({ children, className }: SideDialogContentProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { VisuallyHidden } from '@radix-ui/react-visually-hidden';
2
+ export type { VisuallyHiddenProps } from '@radix-ui/react-visually-hidden';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mastra/playground-ui",
3
3
  "type": "module",
4
- "version": "30.0.1",
4
+ "version": "30.0.2-alpha.1",
5
5
  "description": "Mastra Playground components",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
@@ -61,13 +61,6 @@
61
61
  "@codemirror/view": "^6.40.0",
62
62
  "@hello-pangea/dnd": "^18.0.1",
63
63
  "@lezer/highlight": "^1.2.3",
64
- "@radix-ui/react-alert-dialog": "^1.1.15",
65
- "@radix-ui/react-collapsible": "^1.1.12",
66
- "@radix-ui/react-dialog": "^1.1.15",
67
- "@radix-ui/react-dropdown-menu": "^2.1.16",
68
- "@radix-ui/react-popover": "^1.1.15",
69
- "@radix-ui/react-slot": "^1.2.4",
70
- "@radix-ui/react-tooltip": "^1.2.8",
71
64
  "@radix-ui/react-visually-hidden": "^1.2.4",
72
65
  "@tanstack/react-virtual": "^3.13.22",
73
66
  "@uiw/codemirror-theme-dracula": "^4.25.9",
@@ -92,8 +85,8 @@
92
85
  "react": ">=19.0.0",
93
86
  "react-dom": ">=19.0.0",
94
87
  "tailwindcss": "^4.0.0",
95
- "@mastra/client-js": "^1.21.1",
96
- "@mastra/react": "0.4.2"
88
+ "@mastra/client-js": "^1.21.2-alpha.1",
89
+ "@mastra/react": "0.4.3-alpha.1"
97
90
  },
98
91
  "devDependencies": {
99
92
  "@storybook/addon-a11y": "^10.3.6",
@@ -130,9 +123,9 @@
130
123
  "vite-plugin-lib-inject-css": "^2.2.2",
131
124
  "vitest": "4.1.5",
132
125
  "@internal/lint": "0.0.99",
133
- "@mastra/react": "0.4.2",
134
- "@mastra/client-js": "^1.21.1",
135
- "@mastra/core": "1.37.1"
126
+ "@mastra/client-js": "^1.21.2-alpha.1",
127
+ "@mastra/core": "1.37.2-alpha.1",
128
+ "@mastra/react": "0.4.3-alpha.1"
136
129
  },
137
130
  "homepage": "https://mastra.ai",
138
131
  "repository": {