feat: integrate Chatwoot widget into dashboard layout and replace project layout with dashboard layout in various pages

This commit is contained in:
Mauricio Siu
2025-05-28 02:22:56 -06:00
parent 274d80ea7c
commit 037343a796
13 changed files with 137 additions and 31 deletions
+39
View File
@@ -0,0 +1,39 @@
declare global {
interface Window {
chatwootSettings?: {
position?: "left" | "right";
type?: "standard" | "expanded_bubble";
launcherTitle?: string;
darkMode?: boolean;
hideMessageBubble?: boolean;
placement?: "right" | "left";
showPopoutButton?: boolean;
widgetStyle?: "standard" | "bubble";
};
chatwootSDK?: {
run: (config: {
websiteToken: string;
baseUrl: string;
user?: {
identifier?: string;
name?: string;
email?: string;
phone?: string;
avatar_url?: string;
custom_attributes?: Record<string, any>;
};
}) => void;
};
$chatwoot?: {
setUser: (
identifier: string,
userAttributes: Record<string, any>,
) => void;
reset: () => void;
toggle: () => void;
};
chatwootSDKReady?: () => void;
}
}
export {};