UNPKG

easemob-chat-uikit

Version:

![Static Badge](https://img.shields.io/badge/platform-React-green) ![Static Badge](https://img.shields.io/badge/language-typescript-green) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/easemob/Easemob-UIKit-web) ![GitHub last c

99 lines (98 loc) 2.83 kB
import React, { ReactNode } from 'react'; export interface ProviderProps { initConfig: { appKey: string; userId?: string; token?: string; password?: string; translationTargetLanguage?: string; useUserInfo?: boolean; msyncUrl?: string; restUrl?: string; isHttpDNS?: boolean; useReplacedMessageContents?: boolean; deviceId?: string; maxMessages?: number; isFixedDeviceId?: boolean; useOwnUploadFun?: boolean; }; local?: { fallbackLng?: string; lng?: string; resources?: { [key: string]: { translation: { [key: string]: string; }; }; }; }; children?: ReactNode; features?: { chat?: { header?: { threadList: boolean; moreAction?: boolean; clearMessage?: boolean; deleteConversation?: boolean; audioCall?: boolean; videoCall?: boolean; pinMessage?: boolean; }; message?: { status?: boolean; thread?: boolean; reaction?: boolean; moreAction?: boolean; reply?: boolean; delete?: boolean; recall?: boolean; translate?: boolean; edit?: boolean; select?: boolean; forward?: boolean; report?: boolean; pin?: boolean; }; messageInput?: { mention?: boolean; typing?: boolean; record?: boolean; emoji?: boolean; moreAction?: boolean; file?: boolean; picture?: boolean; video?: boolean; contactCard?: boolean; }; }; conversationList?: { search?: boolean; item?: { moreAction?: boolean; deleteConversation?: boolean; pinConversation?: boolean; muteConversation?: boolean; presence?: boolean; }; }; }; reactionConfig?: { map: { [key: string]: HTMLImageElement; }; }; theme?: { primaryColor?: string | number; mode?: 'light' | 'dark'; avatarShape?: 'circle' | 'square'; bubbleShape?: 'round' | 'square'; componentsShape?: 'round' | 'square'; ripple?: boolean; }; presenceMap?: { [key: string]: string | HTMLImageElement; }; } declare const P: React.NamedExoticComponent<ProviderProps>; export default P;