diff --git a/CHANGELOG.md b/CHANGELOG.md index 3453669..2295ee8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,36 @@ +## [2.38.0] - 2025-10-12 + +### 🚀 Enhancements + +- UI components (#217) +- _(components)_ Add AutoSizingTextArea component (#219) + +### 🛠 Fixes + +- _(inference)_ Update condition for loading models (#221) + +### 🎨 Styling + +- _(chat)_ Expand ChatInput on focus (#220) + +### 🚜 Refactor + +- _(ui)_ Replace button elements with Button component +- _(common)_ Replace IntlIconButton with Button component +- _(ui)_ Replace label elements with custom Label component +- _(chat)_ Replace collapse component with custom button in ChatMessage +- Migrate project structure +- _(components)_ Introduce Icon component to replace direct react-icons usage +- _(vite.config)_ Update vendor chunk splitting logic +- _(chat)_ Move prefilled message logic to custom hook (#218) +- _(app)_ Simplify App component and extract toast logic to custom hooks + +## [2.37.0] - 2025-10-06 + +### 🚀 Enhancements + +- Speech to Text #66 (#127) + ## [2.36.0] - 2025-10-01 ### 🚀 Enhancements diff --git a/package-lock.json b/package-lock.json index ff7992b..ab7e52e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "llama.ui", - "version": "2.37.0", + "version": "2.38.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "llama.ui", - "version": "2.37.0", + "version": "2.38.0", "license": "MIT", "dependencies": { "@radix-ui/react-collapsible": "^1.1.12", diff --git a/package.json b/package.json index 56a9446..f43189d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "name": "llama.ui", "description": "A minimal Interface for AI Companion that runs entirely in your browser.", - "version": "2.37.0", + "version": "2.38.0", "homepage": "https://llama-ui.js.org/", "license": "MIT", "type": "module", diff --git a/src/components/Textarea.tsx b/src/components/Textarea.tsx index 81bcab6..a8b8d0b 100644 --- a/src/components/Textarea.tsx +++ b/src/components/Textarea.tsx @@ -1,6 +1,16 @@ import { cva, VariantProps } from 'class-variance-authority'; -import * as React from 'react'; -import { cn } from '../utils'; +import { + ChangeEvent, + forwardRef, + TextareaHTMLAttributes, + useCallback, + useEffect, + useImperativeHandle, + useLayoutEffect, + useRef, + useState, +} from 'react'; +import { cn, throttle } from '../utils'; const variants = cva('textarea min-h-auto resize-none', { variants: { @@ -8,7 +18,7 @@ const variants = cva('textarea min-h-auto resize-none', { default: 'focus:outline-1 focus:outline-offset-0', code: 'font-mono', transparent: - 'bg-transparent border-none outline-none ring-0 focus:outline-none focus:ring-0', + 'bg-transparent border-none outline-0 ring-0 focus:outline-0 focus:ring-0', }, size: { default: 'h-24', @@ -21,10 +31,10 @@ const variants = cva('textarea min-h-auto resize-none', { }, }); -export type TextareaProps = React.TextareaHTMLAttributes & +export type TextAreaProps = TextareaHTMLAttributes & VariantProps; -const Textarea = React.forwardRef( +const TextArea = forwardRef( ({ className, variant, size, ...props }, ref) => (