Reduce browser, React, and Next.js bundle sizes; add focused and lazy Support entry points; remove server-schema dependencies from the browser widget; and harden landing-page hydration without breaking existing APIs.
Smaller bundles and lazy loading options make Cossistant faster to load in your React and Next.js apps.
Highlights
-
new
Lazy Support imports: Load the Support UI from an async chunk with
@cossistant/react/lazy-supportand@cossistant/next/lazy-support. -
updated
Bundle size reductions: Browser widget reduced by 65.3 KB gzip, React SDK initial JS down 91.5 KB with lazy loading.
-
new
Focused entry points: Import only what you need with
@cossistant/react/provider,/support-config, and/support.
Support Widget
-
new
Feedback management: New UI for collecting and prioritizing user feedback.
-
updated
AI agent profiles: Upload custom profile pictures for your AI agents.
-
updated
Escalation notifications: Improved notifications when conversations escalate to human support.
Dashboard
-
new
Admin panel: New administrative interface for managing support operations.
-
updated
Support integration: Support overlay and sidebar now integrated into dashboard layout.
-
fixed
Auth redirects: Fixed authentication redirect issues in the dashboard.
Bug Fixes & Improvements
-
fixed
React strict mode: Fixed compatibility issues with React strict mode.
-
updated
Auto-translation: Improved language detection and translation reliability.
-
fixed
Code block styling: Fixed code block display issues in support conversations.
Upgrade
Example
// LazySupport loads the Support UI from an async chunk on mount
import { SupportProvider } from "@cossistant/next/provider";
import { LazySupport } from "@cossistant/next/lazy-support";
export function App({ children }) {
return (
<SupportProvider publicKey="pk_live_...">
{children}
<LazySupport />
</SupportProvider>
);
}
