@rohitninawe/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
785 lines (733 loc) • 21.6 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,
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,
MessageInformationConfigurationInterface,
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,
ThumbnailGenerationConfigurationInterface,
ThumbnailGenerationExtension,
PollsStyleInterface,
LinkPreviewBubble,
LinkPreviewBubbleInterface,
LinkPreviewBubbleStyleInterface,
TextModerationExtensionDecorator,
TextModerationExtension,
TextModerationConfigurationInterface,
SmartRepliesConfigurationInterface,
CometChatJoinProtectedGroup,
CometChatJoinProtectedGroupInterface,
JoinProtectedGroupConfigurationInterface,
JoinProtectedGroupStyleInterface,
CometChatMessageListInterface,
CometChatTabs,
CometChatTabsInterface,
TabItemStyleInterface,
TabItem,
CometChatThreadedMessages,
CometChatThreadedMessagesInterface,
ThreadedMessagesConfigurationInterface,
ThreadedMessagesStyleInterface,
CometChatTransferOwnership,
CometChatTransferOwnershipInterface,
TransferOwnershipConfigurationInterface,
ExtensionConstants,
CollaborativeDocumentExtension,
CollaborativeDocumentConfigurationInterface,
CometChatCollaborativeDocumentBubble,
CollaborativeWhiteboardConfigurationInterface,
CollaborativeWhiteboardExtension,
CometChatCollaborativeWhiteBoardBubble,
ImageModerationConfigurationInterface,
ImageModerationExtension,
ImageModerationFilterInterface,
LinkPreviewConfigurationInterface,
LinkPreviewExtention,
MessageTranslationBubble,
MessageTranslationExtension,
MessageTranslationConfigurationInterface,
CometChatCreatePoll,
CometChatCreatePollInterface,
PollsConfigurationInterface, PollsExtension,
SmartRepliesExtension,
SmartRepliesInterface,
SmartRepliesView,
CometChatStickerBubble,
StickerConfigurationInterface,
StickersExtension, CometChatStickerBubbleInterface,
CometChatTheme,
Palette,
Typography,
CometChatConversationEvents,
CometChatGroupsEvents,
CometChatUIEvents,
MessageEvents,
CometChatCallButtons,
CallButtonStyleInterface,
CallUIEvents,
CallingExtension,
CallingPackage,
CometChatCallButtonConfigurationInterface,
CometChatCallButtonsInterface,
CometChatMessagesInterface,
MessageStyleInterface,
MessagesConfiguration,
MessagesConfigurationInterface,
MessageListConfigurationInterface,
CometChatGroupsInterface,
ConversationsConfigurationInterface,
ConversationsStyleInterface,
GroupMemberConfigurationInterface,
GroupMembersStyleInterface,
GroupScopeStyleInterface,
CometChatMessageHeaderInterface,
MessageHeaderConfigurationInterface,
MessageHeaderStyleInterface,
CometChatMessageComposerInterface,
MessageComposerConfigurationInterface,
MessageComposerStyleInterface,
CometChatDetailsInterface,
DetailsConfigurationInterface,
DetailsStyleInterface,
ModalDetailsInterface,
ModalDetailsStyleInterface,
CometChatUsersActionsInterface,
CometChatUsersInterface,
UsersConfigurationInterface,
BannedMembersConfigurationInterface,
CometChatBannedMembersInterface,
AddMembersConfigurationInterface,
CometChatAddMembersInterface,
CometChatContextType,
CometChatTabAlignment,
ConversationType,
AdditionalBubbleStylingParams,
MessageBubbleAlignmentType,
MessageListAlignmentType,
MessageTimeAlignmentType,
SelectionMode,
DataSourceDecorator,
DatePattern,
ExtensionsDataSource,
MessageReceipt,
CometChatUIKit,
CometChatUIKitHelper,
UIKitSettings,
CometChatConfirmDialogInterface,
CometChatConfirmDialogStyleInterface,
CometChatGroupsWithMessages,
CometChatGroupsWithMessagesInterface,
CometChatUsersWithMessages,
CometChatUsersWithMessagesInterface,
CometChatConversationsWithMessages,
CometChatConversationsWithMessagesInterface,
CometChatContext,
CometChatMessages,
ListItemConfiguration,
CometChatMessageList,
CometChatMessageListActionsInterface,
CometChatMessageListProps,
MessageListStyleInterface,
CometChatGroups,
GroupsConfigurationInterface,
GroupsStyleInterface,
CometChatConversations,
ConversationInterface,
CometChatGroupsMembers,
CometChatGroupsMembersInterface,
CometChatMessageHeader,
CometChatMessageComposer,
CometChatDetails,
CometChatUsers,
CometChatAddMembers,
CometChatBannedMembers,
BaseStyleInterface,
BorderStyleInterface,
FontStyleInterface,
ShadowStyleInterface,
ImageType,
//
ChatConfigurator,
DataSource,
MessageDataSource,
//
CometChatOptions,
CometChatMessageOption,
CometChatMessageTemplate,
CometChatDetailsTemplate,
CometChatDetailsOption,
//
CometChatLocalize,
localize,
//
CometChatConversationUtils,
getDefaultDetailsTemplate,
CometChatLiveReactions,
//
CometChatListItem,
CometChatListItemInterface,
ListItemStyleInterface,
CometChatAvatar,
CometChatBadge,
CometChatStatusIndicator,
CometChatReceipt,
CometChatDate,
AudioBubbleStyleInterface,
CometChatAudioBubble,
CometChatAudioBubbleInterface,
CometChatFileBubble,
CometChatFileBubbleInterface,
FileBubbleStyleInterface,
CometChatVideoBubble,
CometChatVideoBubbleInterface,
VideoBubbleStyleInterface,
CometChatTextBubble,
CometChatTextBubbleInterface,
TextBubbleStyleInterface,
CometChatImageBubble,
CometChatImageBubbleInterface,
ImageBubbleStyleInterface,
AvatarStyleInterface,
//
CometChatActionSheet,
ActionItem,
CometChatBottomSheet,
CometChatMediaRecorder,
CometChatMediaRecorderInterface,
MediaRecorderStyleInterface,
MediaRecorderStyle,
CometChatConfirmDialog,
CometChatMessagePreview,
MessagePreviewConfiguration,
CometChatSoundManager,
//
CometChatListActionsInterface,
CometChatListStylesInterface,
CometChatMessageComposerActionInterface,
CometChatUiKitConstants,
messageStatus,
ActionItemInterface,
ActionSheetStylesInterface,
AvatarConfigurationInterface,
BadgeConfigurationInterface,
BadgeStyleInterface,
CometChatBottomSheetInterface,
CometChatDateInterface,
CometChatMessageInputInterface,
CometChatMessageInputStyleInterface,
CometChatReceiptInterface,
CometChatStatusIndicatorInterface,
DateConfigurationInterface,
DateStyleInterface,
ReceiptConfigurationInterface,
StatusIndicatorConfigurationInterface,
StatusIndicatorStyleInterface,
CreateGroupStyleInterface,
CometChatCreateGroup,
CometChatCreateGroupInterface,
CreateGroupConfigurationInterface,
CometChatIncomingCall,
CometChatOngoingCall,
CometChatOutgoingCall,
CometChatCallBubble,
CallingExtensionDecorator,
CometChatContacts,
CometChatContactsInterface,
ContactsStyleInterface,
StartConversationConfigurationInterface,
CometChatMessageInformation,
CometChatMessageInformationInterface,
MessageInformationConfigurationInterface,
MessageInformationStyleInterface,
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,
/*Call Logs */
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,
/*Call Logs */
/* Reactions */
CometChatReactions,
CometChatReactionsInterface,
ReactionsConfiguration,
ReactionsConfigurationInterface,
ReactionsStyle,
ReactionsStyleInterface,
CometChatReactionList,
CometChatReactionListInterface,
ReactionListConfiguration,
ReactionListConfigurationInterface,
ReactionListStyle,
ReactionListStyleInterface,
CometChatQuickReactions,
CometChatQuickReactionsInterface,
QuickReactionsConfiguration,
QuickReactionsConfigurationInterface,
QuickReactionsStyle,
QuickReactionsStyleInterface,
/* Reactions */
/* Emoji Keyboard */
CometChatEmojiKeyboard,
EmojiKeyboardConfiguration,
EmojiKeyboardStyle,
/* Emoji Keyboard */
/* Text Formatters */
CometChatMentionsFormatter,
CometChatTextFormatter,
CometChatUrlsFormatter,
MentionTextStyle,
CometChatSuggestionList,
CometChatSuggestionListInterface,
SuggestionItem,
SuggestionListConfiguration,
SuggestionListConfigurationInterface,
/* Text Formatters */
DateTimeElement,
CometChatDateTimePicker,
CometChatDateTimePickerInterface,
DatePickerStyleInterface,
};
// 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'