UNPKG

@connectycube/chat-widget

Version:

A React component that seamlessly integrates ConnectyCube's real-time chat capabilities into your web applications. This widget offers an out-of-the-box solution for embedding chat features—such as instant messaging, user presence, and file sharing—withou

36 lines (35 loc) 1.74 kB
import { DefaultChat } from './store/useAppDefaultChatStore'; import { QuickActions } from './store/useAppQuickActionsStore'; export type AppPresets = { open?: boolean; embedView?: boolean; splitView?: boolean; showChatStatus?: boolean; showOnlineUsersTab?: boolean; hideNewChatButton?: boolean; hideNewUserChatOption?: boolean; hideNewGroupChatOption?: boolean; muted?: boolean; showNotifications?: boolean; playSound?: boolean; webPushNotifications?: boolean; webPushVapidPublicKey?: string; serviceWorkerPath?: string | URL; attachmentsAccept?: string; enableCalls?: boolean; enableUserStatuses?: boolean; enableLastSeen?: boolean; enableContentReporting?: boolean; enableBlockList?: boolean; enableOnlineUsersBadge?: boolean; getOnlineUsersInterval?: number; enableUrlPreview?: boolean; limitUrlsPreviews?: number; quickActions?: QuickActions; defaultChat?: DefaultChat | null; onUnreadCountChange?: (count: number) => void; onOnlineUsersCountChange?: (count: number) => void; onOpenChange?: (open: boolean) => void; }; declare const useAppPresets: ({ embedView, open, splitView, showChatStatus, showOnlineUsersTab, hideNewChatButton, hideNewUserChatOption, hideNewGroupChatOption, muted, showNotifications, playSound, webPushNotifications, serviceWorkerPath, webPushVapidPublicKey, attachmentsAccept, enableCalls, enableUserStatuses, enableLastSeen, enableContentReporting, enableBlockList, enableUrlPreview, limitUrlsPreviews, quickActions, defaultChat, enableOnlineUsersBadge, getOnlineUsersInterval, onUnreadCountChange, onOnlineUsersCountChange, onOpenChange, }: AppPresets) => void; export default useAppPresets;