@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
784 lines (753 loc) • 21.8 kB
text/typescript
import {
//Model
BaseStyleInterface,
BorderStyleInterface,
FontStyleInterface,
ShadowStyleInterface,
ImageType,
CometChatOptions,
CometChatMessageOption,
CometChatMessageTemplate,
CometChatDetailsTemplate,
CometChatDetailsOption,
CometChatMessageComposerActionInterface,
//Constants
CometChatTabAlignment,
ConversationType,
AdditionalBubbleStylingParams,
MessageTimeAlignmentType,
MessageListAlignmentType,
MessageBubbleAlignmentType,
SelectionMode,
DatePattern,
CometChatUiKitConstants,
//Utils
CometChatConversationUtils,
getDefaultDetailsTemplate,
CometChatLiveReactions,
messageStatus,
//Resources
CometChatLocalize,
localize,
CometChatSoundManager,
CometChatTheme,
Palette,
Typography,
//View
ListItemConfiguration,
CometChatListItem,
CometChatListItemInterface,
ListItemStyleInterface,
CometChatAvatar,
CometChatBadge,
CometChatStatusIndicator,
CometChatReceipt,
CometChatDate,
AudioBubbleStyleInterface,
CometChatAudioBubble,
CometChatAudioBubbleInterface,
CometChatFileBubble,
CometChatFileBubbleInterface,
FileBubbleStyleInterface,
CometChatVideoBubble,
CometChatVideoBubbleInterface,
VideoBubbleStyleInterface,
CometChatTextBubble,
CometChatTextBubbleInterface,
TextBubbleStyleInterface,
CometChatImageBubble,
CometChatImageBubbleInterface,
ImageBubbleStyleInterface,
CometChatActionSheet,
ActionItem,
CometChatBottomSheet,
CometChatConfirmDialog,
CometChatMessagePreview,
MessagePreviewConfiguration,
AvatarStyleInterface,
CometChatListActionsInterface,
CometChatListStylesInterface,
CometChatConfirmDialogInterface,
CometChatConfirmDialogStyleInterface,
MessageReceipt,
//Events
CometChatUIEventHandler,
CometChatConversationEvents,
CometChatGroupsEvents,
CometChatUIEvents,
MessageEvents,
//Add Call events here already exposed in Calls
//Framework
ChatConfigurator,
DataSource,
MessageDataSource,
DataSourceDecorator,
ExtensionsDataSource,
//CometChatUIKit
CometChatUIKit,
CometChatUIKitHelper,
UIKitSettings,
//Context
CometChatContext,
CometChatContextType,
CometChatContextProvider,
//
ActionItemInterface,
ActionSheetStylesInterface,
AvatarConfigurationInterface,
BadgeConfigurationInterface,
BadgeStyleInterface,
CometChatBottomSheetInterface,
CometChatDateInterface,
CometChatMessageInputInterface,
CometChatMessageInputStyleInterface,
CometChatReceiptInterface,
CometChatStatusIndicatorInterface,
DateConfigurationInterface,
DateStyleInterface,
ReceiptConfigurationInterface,
StatusIndicatorConfigurationInterface,
StatusIndicatorStyleInterface,
CometChatMediaRecorder,
CometChatMediaRecorderInterface,
MediaRecorderStyleInterface,
MediaRecorderStyle,
CometChatFormBubble,
CometChatFormBubbleInterface,
CometChatCardBubble,
CometChatCardBubbleInterface,
CometChatSchedulerBubble,
CometChatSchedulerBubbleInterface,
APIAction,
ActionEntity,
BaseInputElement,
BaseInteractiveElement,
ButtonElement,
CardMessage,
CheckboxElement,
CustomAction,
CustomInteractiveMessage,
DropdownElement,
ElementEntity,
FormMessage,
SchedulerMessage,
LabelElement,
OptionElement,
RadioButtonElement,
SingleSelectElement,
TextInputElement,
URLNavigationAction,
CometChatReactions,
CometChatReactionsInterface,
ReactionsConfiguration,
ReactionsConfigurationInterface,
ReactionsStyle,
ReactionsStyleInterface,
CometChatReactionList,
CometChatReactionListInterface,
ReactionListConfiguration,
ReactionListConfigurationInterface,
ReactionListStyle,
ReactionListStyleInterface,
CometChatQuickReactions,
CometChatQuickReactionsInterface,
QuickReactionsConfiguration,
QuickReactionsConfigurationInterface,
QuickReactionsStyle,
QuickReactionsStyleInterface,
CometChatEmojiKeyboard,
EmojiKeyboardConfiguration,
EmojiKeyboardStyle,
CometChatMentionsFormatter,
CometChatTextFormatter,
CometChatUrlsFormatter,
MentionTextStyle,
CometChatSuggestionList,
CometChatSuggestionListInterface,
SuggestionListConfiguration,
SuggestionListConfigurationInterface,
SuggestionItem,
DateTimeElement,
CometChatDateTimePicker,
CometChatDateTimePickerInterface,
DatePickerStyleInterface,
} from "./shared";
import {
CometChatUsers,
CometChatUsersActionsInterface,
CometChatUsersInterface,
UsersStyle,
UsersStyleInterface,
UsersConfigurationInterface,
} from "./CometChatUsers";
import {
CometChatGroups,
GroupsConfigurationInterface,
GroupsStyleInterface,
CometChatGroupsInterface,
} from "./CometChatGroups";
import {
CometChatConversations,
ConversationInterface,
ConversationsConfigurationInterface,
ConversationsStyleInterface,
} from "./CometChatConversations";
import {
CometChatGroupsMembers,
CometChatGroupsMembersInterface,
GroupMemberConfigurationInterface,
GroupMembersStyleInterface,
GroupScopeStyleInterface,
} from "./CometChatGroupMembers";
import {
CometChatBannedMembers,
BannedMembersConfigurationInterface,
CometChatBannedMembersInterface,
} from "./CometChatBannedMembers";
import {
CometChatContacts,
CometChatContactsInterface,
ContactsStyleInterface,
StartConversationConfigurationInterface,
} from "./CometChatContacts";
import {
CometChatAddMembers,
AddMembersConfigurationInterface,
CometChatAddMembersInterface,
} from "./CometChatAddMembers";
import {
CometChatTransferOwnership,
CometChatTransferOwnershipInterface,
TransferOwnershipConfigurationInterface,
} from "./CometChatTransferOwnership";
import {
CreateGroupStyleInterface,
CometChatCreateGroup,
CometChatCreateGroupInterface,
CreateGroupConfigurationInterface,
} from "./CometChatCreateGroup";
import {
CometChatJoinProtectedGroup,
CometChatJoinProtectedGroupInterface,
JoinProtectedGroupConfigurationInterface,
JoinProtectedGroupStyleInterface,
} from "./CometChatJoinProtectedGroup";
import {
CometChatDetails,
CometChatDetailsInterface,
DetailsConfigurationInterface,
DetailsStyleInterface,
ModalDetailsInterface,
ModalDetailsStyleInterface,
} from "./CometChatDetails";
import {
CometChatMessageHeader,
CometChatMessageHeaderInterface,
MessageHeaderConfigurationInterface,
MessageHeaderStyleInterface,
} from "./CometChatMessageHeader";
import {
CometChatMessageInformation,
CometChatMessageInformationInterface,
CometChatMessageInformationConfigurationInterface,
CometChatMessageInformationConfiguration,
MessageInformationStyleInterface,
} from "./CometChatMessageInformation";
import {
CometChatMessageList,
CometChatMessageListActionsInterface,
CometChatMessageListProps,
MessageListStyleInterface,
MessageListConfigurationInterface,
} from "./CometChatMessageList";
import {
CometChatMessageComposer,
CometChatMessageComposerInterface,
MessageComposerConfigurationInterface,
MessageComposerStyleInterface,
} from "./CometChatMessageComposer";
import {
CometChatMessages,
CometChatMessagesInterface,
MessageStyleInterface,
MessagesConfiguration,
MessagesConfigurationInterface,
} from "./CometChatMessages";
import {
CometChatThreadedMessages,
CometChatThreadedMessagesInterface,
ThreadedMessagesConfigurationInterface,
ThreadedMessagesStyleInterface,
} from "./CometChatThreadedMessages";
import {
CometChatUsersWithMessages,
CometChatUsersWithMessagesInterface,
} from "./CometChatUsersWithMessages";
import {
CometChatGroupsWithMessages,
CometChatGroupsWithMessagesInterface,
} from "./CometChatGroupsWithMessages";
import {
CometChatConversationsWithMessages,
CometChatConversationsWithMessagesInterface,
} from "./CometChatConversationsWithMessages";
import {
CometChatCallButtons,
CallButtonStyleInterface,
CallUIEvents,
CallingExtension,
CallingPackage,
CometChatCallButtonConfigurationInterface,
CometChatCallButtonsInterface,
CometChatIncomingCall,
CometChatOngoingCall,
CometChatOutgoingCall,
CometChatCallBubble,
CallingExtensionDecorator,
CometChatCallLogsWithDetails,
CallLogsWithDetailsConfigurationInterface,
CometChatCallLogs,
CallLogsConfiguration,
CallLogsConfigurationInterface,
CallLogsStyle,
CallLogsStyleInterface,
CometChatCallLogsConfigurationInterface,
CometChatCallLogDetails,
CometChatCallLogDetailsConfigurationInterface,
CallLogDetailsConfiguration,
CallLogDetailsConfigurationInterface,
CallLogDetailsStyle,
CallLogDetailsStyleInterface,
CometChatCallLogHistory,
CallLogHistoryConfiguration,
CallLogHistoryConfigurationInterface,
CallLogHistoryStyle,
CallLogHistoryStyleInterface,
CometChatCallLogHistoryInterface,
CometChatParticipants,
CallLogParticipantsConfiguration,
CallLogParticipantsConfigurationInterface,
CallParticipantsStyle,
CallParticipantsStyleInterface,
CometChatCallLogParticipantsConfigurationInterface,
CometChatRecordings,
CallLogRecordingsConfiguration,
CallLogRecordingsConfigurationInterface,
CallRecordingsStyle,
CallRecordingsStyleInterface,
CometChatCallLogRecordingsConfigurationInterface,
} from "./calls";
import {
ExtensionConstants,
CollaborativeDocumentExtension,
CollaborativeDocumentConfigurationInterface,
CometChatCollaborativeDocumentBubble,
CollaborativeWhiteboardConfigurationInterface,
CollaborativeWhiteboardExtension,
CometChatCollaborativeWhiteBoardBubble,
ImageModerationConfigurationInterface,
ImageModerationExtension,
ImageModerationFilterInterface,
TextModerationExtensionDecorator,
TextModerationExtension,
TextModerationConfigurationInterface,
LinkPreviewConfigurationInterface,
LinkPreviewExtention,
LinkPreviewBubble,
LinkPreviewBubbleInterface,
LinkPreviewBubbleStyleInterface,
MessageTranslationBubble,
MessageTranslationExtension,
MessageTranslationConfigurationInterface,
CometChatCreatePoll,
CometChatCreatePollInterface,
PollsConfigurationInterface,
PollsExtension,
PollsStyleInterface,
SmartRepliesExtension,
SmartRepliesConfigurationInterface,
SmartRepliesInterface,
SmartRepliesView,
CometChatStickerBubble,
StickerConfigurationInterface,
StickersExtension,
CometChatStickerBubbleInterface,
ThumbnailGenerationConfigurationInterface,
ThumbnailGenerationExtension,
} from "./extensions";
import {
CometChatTabs,
CometChatTabsInterface,
TabItemStyleInterface,
TabItem,
} from "./CometChatTabs";
import { CometChatMessageListProps as CometChatMessageListInterface } from "./CometChatMessageList";
export {
CometChatUIEventHandler,
CometChatContextProvider,
ThumbnailGenerationExtension,
LinkPreviewBubble,
TextModerationExtensionDecorator,
TextModerationExtension,
CometChatJoinProtectedGroup,
CometChatTabs,
CometChatThreadedMessages,
CometChatTransferOwnership,
ExtensionConstants,
CollaborativeDocumentExtension,
CometChatCollaborativeDocumentBubble,
CollaborativeWhiteboardExtension,
CometChatCollaborativeWhiteBoardBubble,
ImageModerationExtension,
LinkPreviewExtention,
MessageTranslationBubble,
MessageTranslationExtension,
CometChatCreatePoll,
PollsExtension,
SmartRepliesExtension,
SmartRepliesView,
CometChatStickerBubble,
StickersExtension,
CometChatTheme,
Palette,
Typography,
CometChatConversationEvents,
CometChatGroupsEvents,
CometChatUIEvents,
MessageEvents,
CometChatCallButtons,
CallUIEvents,
CallingExtension,
CallingPackage,
MessagesConfiguration,
DataSourceDecorator,
ExtensionsDataSource,
CometChatUIKit,
CometChatUIKitHelper,
UIKitSettings,
CometChatGroupsWithMessages,
CometChatUsersWithMessages,
CometChatConversationsWithMessages,
CometChatContext,
CometChatMessages,
ListItemConfiguration,
CometChatMessageList,
CometChatGroups,
CometChatConversations,
CometChatGroupsMembers,
CometChatMessageHeader,
CometChatMessageComposer,
CometChatDetails,
CometChatUsers,
UsersStyle,
CometChatAddMembers,
CometChatBannedMembers,
//
ChatConfigurator,
MessageDataSource,
CometChatMessageTemplate,
//
CometChatLocalize,
localize,
//
CometChatConversationUtils,
getDefaultDetailsTemplate,
CometChatLiveReactions,
//
CometChatListItem,
CometChatAvatar,
CometChatBadge,
CometChatStatusIndicator,
CometChatReceipt,
CometChatDate,
CometChatAudioBubble,
CometChatFileBubble,
CometChatVideoBubble,
CometChatTextBubble,
CometChatImageBubble,
//
CometChatActionSheet,
ActionItem,
CometChatBottomSheet,
CometChatMediaRecorder,
MediaRecorderStyle,
CometChatConfirmDialog,
CometChatMessagePreview,
MessagePreviewConfiguration,
CometChatSoundManager,
CometChatUiKitConstants,
messageStatus,
CometChatCreateGroup,
CometChatIncomingCall,
CometChatOngoingCall,
CometChatOutgoingCall,
CometChatCallBubble,
CallingExtensionDecorator,
CometChatContacts,
CometChatMessageInformation,
CometChatFormBubble,
CometChatCardBubble,
CometChatSchedulerBubble,
APIAction,
ActionEntity,
BaseInputElement,
BaseInteractiveElement,
ButtonElement,
CardMessage,
CheckboxElement,
CustomAction,
CustomInteractiveMessage,
DropdownElement,
ElementEntity,
FormMessage,
SchedulerMessage,
LabelElement,
OptionElement,
RadioButtonElement,
SingleSelectElement,
TextInputElement,
URLNavigationAction,
/*Call Logs */
CometChatCallLogsWithDetails,
CometChatCallLogs,
CallLogsConfiguration,
CallLogsStyle,
CometChatCallLogDetails,
CallLogDetailsConfiguration,
CallLogDetailsStyle,
CometChatCallLogHistory,
CallLogHistoryConfiguration,
CallLogHistoryStyle,
CometChatParticipants,
CallLogParticipantsConfiguration,
CallParticipantsStyle,
CometChatRecordings,
CallLogRecordingsConfiguration,
CallRecordingsStyle,
/*Call Logs */
/* Reactions */
CometChatReactions,
ReactionsConfiguration,
ReactionsStyle,
CometChatReactionList,
ReactionListConfiguration,
ReactionListStyle,
CometChatQuickReactions,
QuickReactionsConfiguration,
QuickReactionsStyle,
/* Reactions */
/* Emoji Keyboard */
CometChatEmojiKeyboard,
EmojiKeyboardConfiguration,
EmojiKeyboardStyle,
/* Emoji Keyboard */
/* Text Formatters */
CometChatMentionsFormatter,
CometChatTextFormatter,
CometChatUrlsFormatter,
MentionTextStyle,
CometChatSuggestionList,
SuggestionItem,
SuggestionListConfiguration,
/* Text Formatters */
DateTimeElement,
CometChatDateTimePicker,
CometChatMessageInformationConfiguration
};
export type {
ThumbnailGenerationConfigurationInterface,
PollsStyleInterface,
LinkPreviewBubbleInterface,
LinkPreviewBubbleStyleInterface,
TextModerationConfigurationInterface,
SmartRepliesConfigurationInterface,
CometChatJoinProtectedGroupInterface,
JoinProtectedGroupConfigurationInterface,
JoinProtectedGroupStyleInterface,
CometChatMessageListInterface,
CometChatTabsInterface,
TabItemStyleInterface,
TabItem,
CometChatThreadedMessagesInterface,
ThreadedMessagesConfigurationInterface,
ThreadedMessagesStyleInterface,
CometChatTransferOwnershipInterface,
TransferOwnershipConfigurationInterface,
CollaborativeDocumentConfigurationInterface,
CollaborativeWhiteboardConfigurationInterface,
ImageModerationConfigurationInterface,
ImageModerationFilterInterface,
LinkPreviewConfigurationInterface,
MessageTranslationConfigurationInterface,
CometChatCreatePollInterface,
PollsConfigurationInterface,
SmartRepliesInterface,
StickerConfigurationInterface,
CometChatStickerBubbleInterface,
CallButtonStyleInterface,
CometChatCallButtonConfigurationInterface,
CometChatCallButtonsInterface,
CometChatMessagesInterface,
MessageStyleInterface,
MessagesConfigurationInterface,
MessageListConfigurationInterface,
CometChatGroupsInterface,
ConversationsConfigurationInterface,
ConversationsStyleInterface,
GroupMemberConfigurationInterface,
GroupMembersStyleInterface,
GroupScopeStyleInterface,
CometChatMessageHeaderInterface,
MessageHeaderConfigurationInterface,
MessageHeaderStyleInterface,
CometChatMessageComposerInterface,
MessageComposerConfigurationInterface,
MessageComposerStyleInterface,
CometChatDetailsInterface,
DetailsConfigurationInterface,
DetailsStyleInterface,
ModalDetailsInterface,
ModalDetailsStyleInterface,
CometChatUsersActionsInterface,
CometChatUsersInterface,
UsersConfigurationInterface,
UsersStyleInterface,
BannedMembersConfigurationInterface,
CometChatBannedMembersInterface,
AddMembersConfigurationInterface,
CometChatAddMembersInterface,
CometChatContextType,
CometChatTabAlignment,
ConversationType,
AdditionalBubbleStylingParams,
MessageBubbleAlignmentType,
MessageListAlignmentType,
MessageTimeAlignmentType,
SelectionMode,
DatePattern,
MessageReceipt,
CometChatConfirmDialogInterface,
CometChatConfirmDialogStyleInterface,
CometChatGroupsWithMessagesInterface,
CometChatUsersWithMessagesInterface,
CometChatConversationsWithMessagesInterface,
CometChatMessageListActionsInterface,
CometChatMessageListProps,
MessageListStyleInterface,
GroupsConfigurationInterface,
GroupsStyleInterface,
ConversationInterface,
CometChatGroupsMembersInterface,
BaseStyleInterface,
BorderStyleInterface,
FontStyleInterface,
ShadowStyleInterface,
ImageType,
DataSource,
//
CometChatOptions,
CometChatMessageOption,
CometChatDetailsTemplate,
CometChatDetailsOption,
CometChatListItemInterface,
ListItemStyleInterface,
AudioBubbleStyleInterface,
CometChatAudioBubbleInterface,
CometChatFileBubbleInterface,
FileBubbleStyleInterface,
CometChatVideoBubbleInterface,
VideoBubbleStyleInterface,
CometChatTextBubbleInterface,
TextBubbleStyleInterface,
CometChatImageBubbleInterface,
ImageBubbleStyleInterface,
AvatarStyleInterface,
CometChatMediaRecorderInterface,
MediaRecorderStyleInterface,
//
CometChatListActionsInterface,
CometChatListStylesInterface,
CometChatMessageComposerActionInterface,
ActionItemInterface,
ActionSheetStylesInterface,
AvatarConfigurationInterface,
BadgeConfigurationInterface,
BadgeStyleInterface,
CometChatBottomSheetInterface,
CometChatDateInterface,
CometChatMessageInputInterface,
CometChatMessageInputStyleInterface,
CometChatReceiptInterface,
CometChatStatusIndicatorInterface,
DateConfigurationInterface,
DateStyleInterface,
ReceiptConfigurationInterface,
StatusIndicatorConfigurationInterface,
StatusIndicatorStyleInterface,
CreateGroupStyleInterface,
CometChatCreateGroupInterface,
CreateGroupConfigurationInterface,
CometChatContactsInterface,
ContactsStyleInterface,
StartConversationConfigurationInterface,
CometChatMessageInformationInterface,
MessageInformationStyleInterface,
CometChatFormBubbleInterface,
CometChatCardBubbleInterface,
CometChatSchedulerBubbleInterface,
CallLogsWithDetailsConfigurationInterface,
CallLogsConfigurationInterface,
CallLogsStyleInterface,
CometChatCallLogsConfigurationInterface,
CometChatCallLogDetailsConfigurationInterface,
CallLogDetailsConfigurationInterface,
CallLogDetailsStyleInterface,
CallLogHistoryConfigurationInterface,
CallLogHistoryStyleInterface,
CometChatCallLogHistoryInterface,
CallLogParticipantsConfigurationInterface,
CallParticipantsStyleInterface,
CometChatCallLogParticipantsConfigurationInterface,
CallLogRecordingsConfigurationInterface,
CallRecordingsStyleInterface,
CometChatCallLogRecordingsConfigurationInterface,
CometChatReactionsInterface,
ReactionsConfigurationInterface,
ReactionsStyleInterface,
CometChatReactionListInterface,
ReactionListConfigurationInterface,
ReactionListStyleInterface,
CometChatQuickReactionsInterface,
QuickReactionsConfigurationInterface,
QuickReactionsStyleInterface,
CometChatSuggestionListInterface,
SuggestionListConfigurationInterface,
CometChatDateTimePickerInterface,
DatePickerStyleInterface,
CometChatMessageInformationConfigurationInterface,
};
// AI
export { AIConversationStarterExtension } from "./AI/AIConversationStarter/AIConversationStarter";
export { AIConversationStarterDecorator } from "./AI/AIConversationStarter/AIConversationStarterDecorator";
export { AIConversationStarterStyle } from "./AI/AIConversationStarter/AIConversationStarterStyle";
export { AIConversationStarterConfiguration } from "./AI/AIConversationStarter/configuration";
export { AIExtensionDataSource } from "./AI/AIExtensionDataSource";
export { AISmartRepliesExtension } from "./AI/AISmartReplies/AISmartReplies";
export { AISmartRepliesExtensionDecorator } from "./AI/AISmartReplies/AISmartRepliesDecorator";
export { AISmartRepliesStyle } from "./AI/AISmartReplies/AISmartRepliesStyle";
export { AISmartRepliesConfiguration } from "./AI/AISmartReplies/configuration";
export { CardStyle, CardViewStyle } from "./AI/CardViewStyle";
export { AIBaseConfiguration } from "./AI/AIBaseConfiguration";
export { AIAssistBotConfiguration } from "./AI/AIAssistBot/configuration";
export { AIAssistBotDecorator } from "./AI/AIAssistBot/AIAssistBotDecorator";
export { AIAssistBotExtension } from "./AI/AIAssistBot/AIAssistBotExtension";
export {
AIAssistBotStyle,
AIBotMessageBubbleStyle,
AISenderMessageBubbleStyle,
} from "./AI/AIAssistBot/AIAssistBotStyle";
export { AIConversationSummaryDecorator } from "./AI/AIConversationSummary/AIConversationSummaryDecorator";
export { AIConversationSummaryExtension } from "./AI/AIConversationSummary/AIConversationSummaryExtension";
export { AIConversationSummaryStyle } from "./AI/AIConversationSummary/AIConversationSummaryStyle";
export { AIConversationSummaryConfiguration } from "./AI/AIConversationSummary/configuration";
export { AIBaseStyle } from "./AI/AIBaseStyle";