@mcp-b/react-components 0.51.0 → 0.51.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.
@@ -117,7 +117,6 @@ declare function WebPreviewUrl({
117
117
  placeholder,
118
118
  value,
119
119
  onChange,
120
- onKeyDown,
121
120
  ref,
122
121
  ...props
123
122
  }: WebPreviewUrlProps & {
@@ -184,7 +184,7 @@ function WebPreviewNavigationButton({ className, action, label, tooltip, childre
184
184
  children: children ?? def?.icon
185
185
  });
186
186
  }
187
- function WebPreviewUrl({ className, placeholder = "Enter URL…", value, onChange, onKeyDown, ref, ...props }) {
187
+ function WebPreviewUrl({ className, placeholder = "Enter URL…", value, onChange, ref, ...props }) {
188
188
  const { url, setUrl } = useWebPreviewContext();
189
189
  const [draft, setDraft] = React.useState(() => ({
190
190
  url,
@@ -214,10 +214,6 @@ function WebPreviewUrl({ className, placeholder = "Enter URL…", value, onChang
214
214
  });
215
215
  onChange?.(e);
216
216
  },
217
- onKeyDown: (e) => {
218
- onKeyDown?.(e);
219
- if (!e.defaultPrevented && e.key === "Enter") setUrl(e.currentTarget.value);
220
- },
221
217
  placeholder,
222
218
  className: cx("web-preview__url", className),
223
219
  ...props
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/react-components",
3
- "version": "0.51.0",
3
+ "version": "0.51.1",
4
4
  "description": "MCP-B React components built on Base UI and shared design tokens, including Cloudflare Think chat primitives.",
5
5
  "homepage": "https://design-system.sigvelo.com",
6
6
  "bugs": {
@@ -54,7 +54,7 @@
54
54
  "streamdown": "^2.5.0",
55
55
  "unist-util-visit": "^5.1.0",
56
56
  "yet-another-react-lightbox": "^3.32.2",
57
- "@mcp-b/design-tokens": "0.51.0"
57
+ "@mcp-b/design-tokens": "0.51.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@ai-sdk/react": "^3.0.249",