@connectycube/chat-widget
Version:
A customizable React chat widget built on the ConnectyCube platform, enabling real-time messaging, calls, and user engagement in any web app.
49 lines • 2.37 kB
TypeScript
import { DefaultChat, SingleViewChat } from './store/useAppDefaultChatStore';
import { QuickActions } from './store/useAppQuickActionsStore';
export type AppPresets = {
open?: boolean;
embedView?: boolean;
splitView?: boolean;
singleView?: boolean;
showChatStatus?: boolean;
showChatActionsAsMenu?: boolean;
showOnlineUsersTab?: boolean;
hideNewChatButton?: boolean;
hideNewUserChatOption?: boolean;
hideNewGroupChatOption?: boolean;
imgLogoSource?: string;
muted?: boolean;
showNotifications?: boolean;
playSound?: boolean;
webPushNotifications?: boolean;
webPushVapidPublicKey?: string;
serviceWorkerPath?: string | URL;
attachmentsAccept?: string;
enableUserLogin?: boolean;
enableCalls?: boolean;
enableUserStatuses?: boolean;
enableLastSeen?: boolean;
enableContentReporting?: boolean;
enableBlockList?: boolean;
enableOnlineUsersBadge?: boolean;
getOnlineUsersInterval?: number;
enableUrlPreview?: boolean;
limitUrlsPreviews?: number;
singleViewChat?: SingleViewChat;
termsAndConditions?: string;
quickActions?: QuickActions;
defaultChat?: DefaultChat | null;
ai?: {
changeMessageTone?: boolean;
textSummarization?: boolean;
apiKey?: string;
};
onUnreadCountChange?: (count: number) => void;
onOnlineUsersCountChange?: (count: number) => void;
onOpenChange?: (open: boolean) => void;
onMessageBeforeSend?: (body: string) => string;
onMessageBeforeDisplay?: (body: string) => string;
};
declare const useAppPresets: ({ open, embedView, splitView, singleView, showChatStatus, showChatActionsAsMenu, showOnlineUsersTab, hideNewChatButton, hideNewUserChatOption, hideNewGroupChatOption, imgLogoSource, muted, showNotifications, playSound, webPushNotifications, serviceWorkerPath, webPushVapidPublicKey, attachmentsAccept, enableUserLogin, enableCalls, enableUserStatuses, enableLastSeen, enableContentReporting, enableBlockList, enableUrlPreview, limitUrlsPreviews, termsAndConditions, quickActions, defaultChat, singleViewChat, enableOnlineUsersBadge, getOnlineUsersInterval, ai, onUnreadCountChange, onOnlineUsersCountChange, onOpenChange, onMessageBeforeSend, onMessageBeforeDisplay, }: AppPresets) => void;
export default useAppPresets;
//# sourceMappingURL=useAppPresets.d.ts.map