feat: add support chat widget demo and state management

- Implemented SupportWidgetDemo component for configuring and mounting the support chat widget.
- Introduced Zustand store for managing support chat state, including message handling and socket connection.
- Created support host bridge for communication between the widget and parent window.
- Added utility functions for JWT token generation and local storage management.
- Enhanced user experience with notifications for new messages and chat status updates.
This commit is contained in:
mlogclub
2026-05-30 14:00:23 +08:00
parent bcab31eaa8
commit 86ff71596d
28 changed files with 139 additions and 139 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { KefuChatShell } from "@/components/kefu/chat-shell"
import { SupportChatShell } from "@/components/support-chat/chat-shell"
export default function Page() {
return <KefuChatShell />
return <SupportChatShell />
}