@ai-sdk/react
Advanced tools
+7
-2
@@ -532,5 +532,10 @@ var __accessCheck = (obj, member, msg) => { | ||
| (_a = event == null ? void 0 : event.preventDefault) == null ? void 0 : _a.call(event); | ||
| return input ? complete(input) : void 0; | ||
| if (!input) { | ||
| return; | ||
| } | ||
| const result = complete(input); | ||
| setInput(""); | ||
| return result; | ||
| }, | ||
| [input, complete] | ||
| [input, complete, setInput] | ||
| ); | ||
@@ -537,0 +542,0 @@ const handleInputChange = useCallback3( |
+4
-4
| { | ||
| "name": "@ai-sdk/react", | ||
| "version": "4.0.63", | ||
| "version": "4.0.64", | ||
| "type": "module", | ||
@@ -31,6 +31,6 @@ "license": "Apache-2.0", | ||
| "throttleit": "2.1.0", | ||
| "@ai-sdk/mcp": "2.0.30", | ||
| "@ai-sdk/mcp": "2.0.31", | ||
| "@ai-sdk/provider": "4.0.7", | ||
| "@ai-sdk/provider-utils": "5.0.26", | ||
| "ai": "7.0.60" | ||
| "ai": "7.0.61", | ||
| "@ai-sdk/provider-utils": "5.0.27" | ||
| }, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
@@ -191,5 +191,11 @@ import { | ||
| event?.preventDefault?.(); | ||
| return input ? complete(input) : undefined; | ||
| if (!input) { | ||
| return; | ||
| } | ||
| const result = complete(input); | ||
| setInput(''); | ||
| return result; | ||
| }, | ||
| [input, complete], | ||
| [input, complete, setInput], | ||
| ); | ||
@@ -196,0 +202,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
304928
0.19%3757
0.27%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
Updated
Updated