Performance improvements, controlled widget support, and enhanced contact management
Significant performance improvements for the React widget with better composability, automatic positioning, and a new contact management system.
Support Widget
-
new
Controlled mode: Widget can now be controlled with
openandsetOpenprops. -
new
Custom components: Support for custom trigger and content components.
-
new
Smart positioning: Automatic collision avoidance ensures visibility.
-
new
Event handling: New event system for analytics integration.
-
updated
Performance: Reduced queries and improved overall performance.
Dashboard
-
new
Contact management: Mini-CRM system to manage contact information.
-
new
File sharing: Upload images and documents in conversations.
-
new
AI typing preview: See when AI is composing a response.
Bug Fixes
-
fixed
WebSocket: Improved connection management and reliability.
-
fixed
Timeline: Enhanced conversation scrolling behavior.
-
fixed
Types: Fixed typing issues across the codebase.
Upgrade
Example
import { Support } from "@cossistant/next";
export function App() {
const [open, setOpen] = useState(false);
return (
<Support
open={open}
onOpenChange={setOpen}
avoidCollisions={true}
onEvent={(event) => console.log("Widget event:", event)}
/>
);
}