@cometchat/chat-uikit-react 4.3.30 → 4.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/Audio-Call.svg +11 -0
- package/dist/assets/Audio-Call2x.svg +11 -0
- package/dist/assets/Copy.svg +17 -0
- package/dist/assets/IncomingAudio.svg +5 -0
- package/dist/assets/IncomingVideo.svg +6 -0
- package/dist/assets/Info.svg +13 -0
- package/dist/assets/InfoSimpleIcon.svg +4 -0
- package/dist/assets/LoadingIcon.svg +15 -0
- package/dist/assets/Locked.svg +10 -0
- package/dist/assets/MissedAudio.svg +5 -0
- package/dist/assets/MissedVideo.svg +6 -0
- package/dist/assets/More.svg +9 -0
- package/dist/assets/More@2x.svg +9 -0
- package/dist/assets/OutgoingAudio.svg +5 -0
- package/dist/assets/OutgoingVideo.svg +6 -0
- package/dist/assets/Plus-1.svg +12 -0
- package/dist/assets/Private.svg +10 -0
- package/dist/assets/StartConversation.svg +13 -0
- package/dist/assets/Stickers.svg +16 -0
- package/dist/assets/Video-call.svg +12 -0
- package/dist/assets/Video-call2x.svg +12 -0
- package/dist/assets/VideoCall2xIcon.svg +12 -0
- package/dist/assets/addreaction.svg +9 -0
- package/dist/assets/ai-bot.svg +3 -0
- package/dist/assets/ai-empty.svg +22 -0
- package/dist/assets/ai-error.svg +3 -0
- package/dist/assets/attachment-file.svg +14 -0
- package/dist/assets/audio-file.svg +12 -0
- package/dist/assets/backbutton.svg +12 -0
- package/dist/assets/close.svg +12 -0
- package/dist/assets/close2x.svg +12 -0
- package/dist/assets/collaborativedocument.svg +13 -0
- package/dist/assets/collaborativewhiteboard.svg +12 -0
- package/dist/assets/create-button.svg +12 -0
- package/dist/assets/delete.svg +15 -0
- package/dist/assets/deleteicon.svg +15 -0
- package/dist/assets/down-arrow.svg +1 -0
- package/dist/assets/download.svg +13 -0
- package/dist/assets/editicon.svg +14 -0
- package/dist/assets/heart-reaction.png +0 -0
- package/dist/assets/heart.svg +11 -0
- package/dist/assets/increase-size.svg +6 -0
- package/dist/assets/loading.svg +16 -0
- package/dist/assets/mention-icon.svg +11 -0
- package/dist/assets/message-delivered.svg +5 -0
- package/dist/assets/message-read.svg +5 -0
- package/dist/assets/message-sent.svg +9 -0
- package/dist/assets/mic.svg +11 -0
- package/dist/assets/more-icon.svg +9 -0
- package/dist/assets/photolibrary.svg +11 -0
- package/dist/assets/placeholder.png +0 -0
- package/dist/assets/plus-rotated.svg +13 -0
- package/dist/assets/plus.svg +13 -0
- package/dist/assets/polls.svg +14 -0
- package/dist/assets/reduce-size.svg +6 -0
- package/dist/assets/search.svg +4 -0
- package/dist/assets/send-message-in-private.svg +6 -0
- package/dist/assets/send.svg +12 -0
- package/dist/assets/side-arrow.svg +1 -0
- package/dist/assets/smileys.svg +16 -0
- package/dist/assets/spinner.svg +15 -0
- package/dist/assets/stipop.svg +9 -0
- package/dist/assets/stop.svg +1 -0
- package/dist/assets/thread-arrow.svg +1 -0
- package/dist/assets/threadIndicatorIcon.svg +11 -0
- package/dist/assets/threadicon.svg +14 -0
- package/dist/assets/translation.svg +16 -0
- package/dist/assets/video.svg +12 -0
- package/dist/assets/wait.svg +4 -0
- package/dist/assets/warning-small.svg +5 -0
- package/dist/index.d.ts +3366 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/types/AI/AIAssistBot/AIAssistBotChatView.d.ts +10 -0
- package/dist/types/AI/AIAssistBot/AIAssistBotDecorator.d.ts +22 -0
- package/dist/types/AI/AIAssistBot/AIAssistBotExtension.d.ts +8 -0
- package/dist/types/AI/AIAssistBot/AIAssistBotOptionsView.d.ts +11 -0
- package/dist/types/AI/AIAssistBot/style.d.ts +37 -0
- package/dist/types/AI/AIAssistBot/utils.d.ts +5 -0
- package/dist/types/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +20 -0
- package/dist/types/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +8 -0
- package/dist/types/AI/AIConversationStarter/AIConversationStarterView.d.ts +9 -0
- package/dist/types/AI/AIConversationStarter/style.d.ts +26 -0
- package/dist/types/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +22 -0
- package/dist/types/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +8 -0
- package/dist/types/AI/AIConversationSummary/AIConversationSummaryView.d.ts +10 -0
- package/dist/types/AI/AIConversationSummary/style.d.ts +28 -0
- package/dist/types/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +25 -0
- package/dist/types/AI/AISmartReplies/AISmartRepliesExtension.d.ts +8 -0
- package/dist/types/AI/AISmartReplies/AISmartRepliesView.d.ts +12 -0
- package/dist/types/AI/AISmartReplies/style.d.ts +28 -0
- package/dist/types/Calling/CallingExtension.d.ts +8 -0
- package/dist/types/Calling/CallingExtensionDecorator.d.ts +75 -0
- package/dist/types/Calling/CometChatCallButtons/hooks.d.ts +3 -0
- package/dist/types/Calling/CometChatCallButtons/index.d.ts +19 -0
- package/dist/types/Calling/CometChatCallButtons/style.d.ts +28 -0
- package/dist/types/Calling/CometChatCallLogDetails/hooks.d.ts +2 -0
- package/dist/types/Calling/CometChatCallLogDetails/index.d.ts +17 -0
- package/dist/types/Calling/CometChatCallLogDetails/style.d.ts +21 -0
- package/dist/types/Calling/CometChatCallLogHistory/hooks.d.ts +2 -0
- package/dist/types/Calling/CometChatCallLogHistory/index.d.ts +27 -0
- package/dist/types/Calling/CometChatCallLogHistory/style.d.ts +41 -0
- package/dist/types/Calling/CometChatCallLogParticipants/index.d.ts +19 -0
- package/dist/types/Calling/CometChatCallLogParticipants/style.d.ts +31 -0
- package/dist/types/Calling/CometChatCallLogRecordings/index.d.ts +21 -0
- package/dist/types/Calling/CometChatCallLogRecordings/style.d.ts +35 -0
- package/dist/types/Calling/CometChatCallLogs/hooks.d.ts +2 -0
- package/dist/types/Calling/CometChatCallLogs/index.d.ts +37 -0
- package/dist/types/Calling/CometChatCallLogs/style.d.ts +37 -0
- package/dist/types/Calling/CometChatCallLogsWithDetails/hooks.d.ts +4 -0
- package/dist/types/Calling/CometChatCallLogsWithDetails/index.d.ts +10 -0
- package/dist/types/Calling/CometChatCallLogsWithDetails/style.d.ts +13 -0
- package/dist/types/Calling/CometChatIncomingCall/hooks.d.ts +2 -0
- package/dist/types/Calling/CometChatIncomingCall/index.d.ts +19 -0
- package/dist/types/Calling/CometChatIncomingCall/style.d.ts +72 -0
- package/dist/types/Calling/CometChatOngoingCall/hooks.d.ts +2 -0
- package/dist/types/Calling/CometChatOngoingCall/index.d.ts +15 -0
- package/dist/types/Calling/CometChatOngoingCall/style.d.ts +2 -0
- package/dist/types/Calling/CometChatOutgoingCall/hooks.d.ts +2 -0
- package/dist/types/Calling/CometChatOutgoingCall/index.d.ts +16 -0
- package/dist/types/Calling/CometChatOutgoingCall/style.d.ts +39 -0
- package/dist/types/Calling/Utils/CallDetailsUtils.d.ts +11 -0
- package/dist/types/Calling/Utils/CallingDetailsUtils.d.ts +7 -0
- package/dist/types/Calling/Utils/utils.d.ts +7 -0
- package/dist/types/CometChatAddMembers/hooks.d.ts +11 -0
- package/dist/types/CometChatAddMembers/index.d.ts +229 -0
- package/dist/types/CometChatAddMembers/style.d.ts +13 -0
- package/dist/types/CometChatBannedMembers/controller.d.ts +37 -0
- package/dist/types/CometChatBannedMembers/hooks.d.ts +17 -0
- package/dist/types/CometChatBannedMembers/index.d.ts +228 -0
- package/dist/types/CometChatBannedMembers/style.d.ts +19 -0
- package/dist/types/CometChatContacts/index.d.ts +22 -0
- package/dist/types/CometChatContacts/style.d.ts +20 -0
- package/dist/types/CometChatConversations/controller.d.ts +74 -0
- package/dist/types/CometChatConversations/hooks.d.ts +22 -0
- package/dist/types/CometChatConversations/index.d.ts +344 -0
- package/dist/types/CometChatConversations/style.d.ts +29 -0
- package/dist/types/CometChatConversationsWithMessages/hooks.d.ts +2 -0
- package/dist/types/CometChatConversationsWithMessages/index.d.ts +15 -0
- package/dist/types/CometChatConversationsWithMessages/style.d.ts +87 -0
- package/dist/types/CometChatCustomHooks.d.ts +27 -0
- package/dist/types/CometChatDetails/hooks.d.ts +17 -0
- package/dist/types/CometChatDetails/index.d.ts +186 -0
- package/dist/types/CometChatDetails/style.d.ts +40 -0
- package/dist/types/CometChatGroupMembers/controller.d.ts +38 -0
- package/dist/types/CometChatGroupMembers/hooks.d.ts +22 -0
- package/dist/types/CometChatGroupMembers/index.d.ts +281 -0
- package/dist/types/CometChatGroupMembers/style.d.ts +24 -0
- package/dist/types/CometChatGroups/controller.d.ts +44 -0
- package/dist/types/CometChatGroups/hooks.d.ts +15 -0
- package/dist/types/CometChatGroups/index.d.ts +215 -0
- package/dist/types/CometChatGroups/style.d.ts +11 -0
- package/dist/types/CometChatGroupsWithMessages/hooks.d.ts +3 -0
- package/dist/types/CometChatGroupsWithMessages/index.d.ts +14 -0
- package/dist/types/CometChatGroupsWithMessages/style.d.ts +874 -0
- package/dist/types/CometChatMessageComposer/hooks.d.ts +66 -0
- package/dist/types/CometChatMessageComposer/index.d.ts +221 -0
- package/dist/types/CometChatMessageComposer/style.d.ts +92 -0
- package/dist/types/CometChatMessageHeader/hooks.d.ts +3 -0
- package/dist/types/CometChatMessageHeader/index.d.ts +29 -0
- package/dist/types/CometChatMessageHeader/style.d.ts +56 -0
- package/dist/types/CometChatMessageInformation/index.d.ts +29 -0
- package/dist/types/CometChatMessageInformation/style.d.ts +48 -0
- package/dist/types/CometChatMessageList/CometChatMessageList.d.ts +58 -0
- package/dist/types/CometChatMessageList/controller.d.ts +48 -0
- package/dist/types/CometChatMessageList/style.d.ts +237 -0
- package/dist/types/CometChatMessageList/useCometChatMessageList.d.ts +6 -0
- package/dist/types/CometChatMessages/hooks.d.ts +2 -0
- package/dist/types/CometChatMessages/index.d.ts +25 -0
- package/dist/types/CometChatMessages/style.d.ts +26 -0
- package/dist/types/CometChatThemeContext.d.ts +5 -0
- package/dist/types/CometChatThreadedMessages/hooks.d.ts +2 -0
- package/dist/types/CometChatThreadedMessages/index.d.ts +19 -0
- package/dist/types/CometChatThreadedMessages/style.d.ts +21 -0
- package/dist/types/CometChatTransferOwnership/hooks.d.ts +7 -0
- package/dist/types/CometChatTransferOwnership/index.d.ts +163 -0
- package/dist/types/CometChatTransferOwnership/style.d.ts +17 -0
- package/dist/types/CometChatUserMemberWrapper/index.d.ts +25 -0
- package/dist/types/CometChatUsers/controller.d.ts +34 -0
- package/dist/types/CometChatUsers/hooks.d.ts +18 -0
- package/dist/types/CometChatUsers/index.d.ts +260 -0
- package/dist/types/CometChatUsers/style.d.ts +11 -0
- package/dist/types/CometChatUsersWithMessages/hooks.d.ts +2 -0
- package/dist/types/CometChatUsersWithMessages/index.d.ts +12 -0
- package/dist/types/CometChatUsersWithMessages/style.d.ts +70 -0
- package/dist/types/Extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +18 -0
- package/dist/types/Extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +8 -0
- package/dist/types/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +21 -0
- package/dist/types/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +18 -0
- package/dist/types/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +8 -0
- package/dist/types/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +21 -0
- package/dist/types/Extensions/ImageModeration/ImageModerationConfiguration.d.ts +15 -0
- package/dist/types/Extensions/ImageModeration/ImageModerationExtension.d.ts +8 -0
- package/dist/types/Extensions/ImageModeration/ImageModerationExtensionDecorator.d.ts +26 -0
- package/dist/types/Extensions/LinkPreview/LinkPreviewConfiguration.d.ts +8 -0
- package/dist/types/Extensions/LinkPreview/LinkPreviewExtension.d.ts +8 -0
- package/dist/types/Extensions/LinkPreview/LinkPreviewExtensionDecorator.d.ts +24 -0
- package/dist/types/Extensions/MessageTranslation/MessageTranslationConfiguration.d.ts +14 -0
- package/dist/types/Extensions/MessageTranslation/MessageTranslationExtension.d.ts +8 -0
- package/dist/types/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +19 -0
- package/dist/types/Extensions/Polls/PollsConfiguration.d.ts +29 -0
- package/dist/types/Extensions/Polls/PollsExtension.d.ts +8 -0
- package/dist/types/Extensions/Polls/PollsExtensionDecorator.d.ts +26 -0
- package/dist/types/Extensions/SmartReplies/SmartRepliesConfiguration.d.ts +8 -0
- package/dist/types/Extensions/SmartReplies/SmartRepliesExtension.d.ts +9 -0
- package/dist/types/Extensions/SmartReplies/SmartRepliesExtensionDecorator.d.ts +35 -0
- package/dist/types/Extensions/Stickers/StickersConfiguration.d.ts +14 -0
- package/dist/types/Extensions/Stickers/StickersExtension.d.ts +8 -0
- package/dist/types/Extensions/Stickers/StickersExtensionDecorator.d.ts +27 -0
- package/dist/types/Extensions/TextModerator/TextModeratorExtension.d.ts +6 -0
- package/dist/types/Extensions/TextModerator/TextModeratorExtensionDecorator.d.ts +8 -0
- package/dist/types/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +5 -0
- package/dist/types/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +8 -0
- package/dist/types/Shared/CometChatUIKit/CometChatUIKit.d.ts +42 -0
- package/dist/types/Shared/Framework/AIExtensionDataSource.d.ts +6 -0
- package/dist/types/Shared/Framework/ChatConfigurator.d.ts +8 -0
- package/dist/types/Shared/Framework/DataSource.d.ts +56 -0
- package/dist/types/Shared/Framework/DataSourceDecorator.d.ts +59 -0
- package/dist/types/Shared/Framework/ExtensionsDataSource.d.ts +6 -0
- package/dist/types/Shared/Utils/MessageUtils.d.ts +16 -0
- package/dist/types/Shared/Utils/MessagesDataSource.d.ts +92 -0
- package/dist/types/Shared/Views/CometChatButton/hooks.d.ts +11 -0
- package/dist/types/Shared/Views/CometChatButton/index.d.ts +19 -0
- package/dist/types/Shared/Views/CometChatCheckbox/hooks.d.ts +9 -0
- package/dist/types/Shared/Views/CometChatCheckbox/index.d.ts +13 -0
- package/dist/types/Shared/Views/CometChatContextMenu/index.d.ts +14 -0
- package/dist/types/Shared/Views/CometChatContextMenu/style.d.ts +28 -0
- package/dist/types/Shared/Views/CometChatList/hooks.d.ts +20 -0
- package/dist/types/Shared/Views/CometChatList/index.d.ts +151 -0
- package/dist/types/Shared/Views/CometChatList/style.d.ts +18 -0
- package/dist/types/Shared/Views/CometChatListItem/hooks.d.ts +9 -0
- package/dist/types/Shared/Views/CometChatListItem/index.d.ts +29 -0
- package/dist/types/Shared/Views/CometChatMenuList/hooks.d.ts +12 -0
- package/dist/types/Shared/Views/CometChatMenuList/index.d.ts +13 -0
- package/dist/types/Shared/Views/CometChatMessageBubble/index.d.ts +22 -0
- package/dist/types/Shared/Views/CometChatMessageBubble/style.d.ts +22 -0
- package/dist/types/Shared/Views/CometChatRadioButton/hooks.d.ts +9 -0
- package/dist/types/Shared/Views/CometChatRadioButton/index.d.ts +13 -0
- package/dist/types/Shared/Views/CometChatTabs/TabsStyle.d.ts +31 -0
- package/dist/types/Shared/Views/CometChatTabs/index.d.ts +11 -0
- package/dist/types/Shared/Views/CometChatTabs/style.d.ts +42 -0
- package/dist/types/Shared/Views/LitElementsWrapper/LitElementsWrapper.d.ts +49 -0
- package/dist/types/index.d.ts +84 -0
- package/package.json +4 -4
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3366 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { CSSProperties, JSX as JSX$1 } from 'react';
|
|
4
|
+
import { UserMemberListType, UserPresencePlacement, CometChatLocalize, FormMessage, CardMessage, CustomInteractiveMessage, SchedulerMessage, CometChatTheme, CometChatActionsIcon, CometChatActionsView, MessageBubbleAlignment, CometChatMessageTemplate, CometChatMessageComposerAction, CometChatDetailsTemplate, MentionsTargetElement, TabAlignment, CometChatTabItem, IconButtonAlignment, TitleAlignment, States, CallWorkflow, DatePatterns, CometChatOption, SelectionMode, PreviewMessageMode, AuxiliaryButtonAlignment, MessageListAlignment, TimestampAlignment, TabsVisibility } from '@cometchat/uikit-resources';
|
|
5
|
+
export * from '@cometchat/uikit-resources';
|
|
6
|
+
import { AvatarStyle, TextBubbleStyle, BaseStyle, ImageBubbleStyle, FileBubbleStyle, DocumentBubbleStyle, ConfirmDialogStyle, ListItemStyle, CallscreenStyle, BadgeStyle, ReceiptStyle, DateStyle, ChangeScopeStyle, ActionSheetStyle, MediaRecorderStyle, EmojiKeyboardStyle, BackdropStyle, CometChatEmojiKeyboard, CometChatIconButton, CometChatButton as CometChatButton$1, CometChatDate, CometChatLabel, CometChatLoader, CometChatAvatar, CometChatReceipt } from '@cometchat/uikit-elements';
|
|
7
|
+
export { ActionSheetStyle, AvatarStyle, BackdropStyle, BadgeStyle, ButtonGroupStyle, CallscreenStyle, CardStyle, ChangeScopeStyle, CheckboxStyle, CometChatActionItem, CometChatActionSheet, CometChatAvatar, CometChatBackdrop, CometChatBadge, CometChatButton, CometChatButtonGroup, CometChatCallscreenWrapper, CometChatCard, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatCreateGroup, CometChatDate, CometChatDivider, CometChatDocumentBubble, CometChatDraggable, CometChatDropdown, CometChatEmoji, CometChatEmojiKeyboard, CometChatFullScreenViewer, CometChatIcon, CometChatIconButton, CometChatInput, CometChatJoinGroup, CometChatLabel, CometChatListItem, CometChatLiveReaction, CometChatLoader, CometChatMediaRecorder, CometChatMenuList, CometChatMessageInput, CometChatModal, CometChatPopover, CometChatPreview, CometChatQuickView, CometChatRadioButton, CometChatReceipt, CometChatSearchInput, CometChatSingleSelect, CometChatStatusIndicator, CometChatTextInput, ConfirmDialogStyle, ContextMenuStyle, CreateGroupStyle, DateStyle, DocumentBubbleStyle, DropdownStyle, EmojiKeyboardStyle, Emojis, FileBubbleStyle, FullScreenViewerStyle, IconStyle, ImageBubbleStyle, InputStyle, JoinGroupStyle, LabelStyle, ListItemStyle, LoaderStyle, MediaRecorderStyle, MenuListStyle, MessageInputStyle, ModalStyle, PopoverStyle, PreviewStyle, QuickViewStyle, RadioButtonStyle, ReceiptStyle, SearchInputStyle, SingleSelectStyle, TextBubbleStyle, TextInputStyle, auxiliaryButtonAlignmentEnum, layoutType } from '@cometchat/uikit-elements';
|
|
8
|
+
import { UIKitSettings, CometChatSoundManager, CallingExtensionDataSource, ComposerId as ComposerId$1, FormBubbleStyle, SchedulerBubbleStyle, CardBubbleStyle, AIOptionsStyle, CometChatTextFormatter, CometChatMentionsFormatter, CometChatUrlsFormatter, BaseStyle as BaseStyle$1, ListStyle, OptionsStyle, ImageModerationStyle, LinkPreviewStyle, MessageTranslationStyle, PollsBubbleStyle, CreatePollStyle, SmartRepliesStyle, StickersStyle, CallingConfiguration, CallButtonsStyle, OutgoingCallConfiguration, CallScreenConfiguration, IncomingCallStyle, CometChatUIKitCalls, OutgoingCallStyle, CallLogsStyle, CallLogHistoryConfiguration, CallLogParticipantsConfiguration, CallLogRecordingsConfiguration, CallLogDetailsStyle, CallLogHistoryStyle, CallLogParticipantsStyle, CallLogRecordingsStyle, WithDetailsStyle, CallLogDetailsConfiguration, CallLogsConfiguration, AddMembersStyle, BannedMembersStyle, ConversationsStyle, WithMessagesStyle, MessagesConfiguration, ConversationsConfiguration, ContactsConfiguration, AddMembersConfiguration, BannedMembersConfiguration, GroupMembersConfiguration, TransferOwnershipConfiguration, DetailsStyle, GroupMembersStyle, GroupsStyle, GroupsConfiguration, CreateGroupConfiguration, JoinGroupConfiguration, MessageComposerStyle, UserMemberWrapperConfiguration, MessageHeaderStyle, MessageListStyle, MessageInformationConfiguration, ReactionsConfiguration, MessageHeaderConfiguration, MessageListConfiguration, MessageComposerConfiguration, ThreadedMessagesConfiguration, DetailsConfiguration, MessagesStyle, TransferOwnershipStyle, UsersStyle, UsersConfiguration, ContactsStyle, MessageInformationStyle, AIAssistBotConfiguration, AIConversationStarterConfiguration, AISmartRepliesConfiguration, AIConversationSummaryConfiguration, CometChatReactions } from '@cometchat/uikit-shared';
|
|
9
|
+
export * from '@cometchat/uikit-shared';
|
|
10
|
+
import { CometChat as CometChat$1 } from '@cometchat/chat-sdk-javascript';
|
|
11
|
+
import * as _lit_labs_react from '@lit-labs/react';
|
|
12
|
+
|
|
13
|
+
interface IMentionsProps {
|
|
14
|
+
userMemberListType?: UserMemberListType;
|
|
15
|
+
onItemClick?: (user: CometChat.User | CometChat.GroupMember) => void;
|
|
16
|
+
listItemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
|
|
17
|
+
avatarStyle?: AvatarStyle;
|
|
18
|
+
statusIndicatorStyle?: CSSProperties;
|
|
19
|
+
searchKeyword?: string;
|
|
20
|
+
group?: CometChat.Group;
|
|
21
|
+
subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
|
|
22
|
+
usersRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
23
|
+
disableUsersPresence?: boolean;
|
|
24
|
+
userPresencePlacement?: UserPresencePlacement;
|
|
25
|
+
hideSeparator?: boolean;
|
|
26
|
+
loadingStateView?: JSX.Element;
|
|
27
|
+
onEmpty?: () => void;
|
|
28
|
+
groupMemberRequestBuilder?: CometChat.GroupMembersRequestBuilder;
|
|
29
|
+
loadingIconUrl?: string;
|
|
30
|
+
disableLoadingState?: boolean;
|
|
31
|
+
onError?: () => void;
|
|
32
|
+
}
|
|
33
|
+
declare function CometChatUserMemberWrapper(props: IMentionsProps): react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
35
|
+
declare abstract class AIExtensionDataSource {
|
|
36
|
+
abstract addExtension(): void;
|
|
37
|
+
abstract getExtensionId(): string;
|
|
38
|
+
enable(): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare abstract class ExtensionsDataSource {
|
|
42
|
+
abstract addExtension(): void;
|
|
43
|
+
abstract getExtensionId(): string;
|
|
44
|
+
enable(): void;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare class CometChatUIKit {
|
|
48
|
+
static uiKitSettings: UIKitSettings | null;
|
|
49
|
+
static SoundManager: typeof CometChatSoundManager;
|
|
50
|
+
static Localize: typeof CometChatLocalize;
|
|
51
|
+
static conversationUpdateSettings: CometChat.ConversationUpdateSettings;
|
|
52
|
+
static init(uiKitSettings: UIKitSettings | null): Promise<Object> | undefined;
|
|
53
|
+
static defaultExtensions: ExtensionsDataSource[];
|
|
54
|
+
/**
|
|
55
|
+
* Default callingExtension included in the UI Kit.
|
|
56
|
+
* @type {CallingExtensionDataSource}
|
|
57
|
+
*/
|
|
58
|
+
static defaultCallingExtension: CallingExtensionDataSource;
|
|
59
|
+
static defaultAIFeatures: AIExtensionDataSource[];
|
|
60
|
+
static enableCalling(): void;
|
|
61
|
+
private static initiateAfterLogin;
|
|
62
|
+
static login(uid: string): Promise<CometChat.User>;
|
|
63
|
+
static loginWithAuthToken(authToken: string): Promise<CometChat.User>;
|
|
64
|
+
static getLoggedinUser(): Promise<CometChat.User | null>;
|
|
65
|
+
static createUser(user: CometChat.User): Promise<CometChat.User>;
|
|
66
|
+
static updateUser(user: CometChat.User): Promise<CometChat.User>;
|
|
67
|
+
static logout(): Promise<Object>;
|
|
68
|
+
static checkAuthSettings(): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Sends a form message and emits events based on the message status.
|
|
71
|
+
* @param message - The form message to be sent.
|
|
72
|
+
* @param disableLocalEvents - A boolean indicating whether to disable local events or not. Default value is false.
|
|
73
|
+
*/
|
|
74
|
+
static sendFormMessage(message: FormMessage, disableLocalEvents?: boolean): void;
|
|
75
|
+
static sendCardMessage(message: CardMessage, disableLocalEvents?: boolean): void;
|
|
76
|
+
static sendCustomInteractiveMessage(message: CustomInteractiveMessage, disableLocalEvents?: boolean): void;
|
|
77
|
+
static sendCustomMessage(message: CometChat.CustomMessage): Promise<unknown>;
|
|
78
|
+
static sendTextMessage(message: CometChat.TextMessage): Promise<unknown>;
|
|
79
|
+
static sendMediaMessage(message: CometChat.MediaMessage): Promise<unknown>;
|
|
80
|
+
static sendSchedulerMessage(message: SchedulerMessage, disableLocalEvents?: boolean): Promise<unknown>;
|
|
81
|
+
static getDataSource(): DataSource;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare abstract class DataSource {
|
|
85
|
+
abstract getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
86
|
+
abstract getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
87
|
+
abstract getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
88
|
+
abstract getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
89
|
+
abstract getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
90
|
+
abstract getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): any;
|
|
91
|
+
abstract getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, otherParams: any): any;
|
|
92
|
+
abstract getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
93
|
+
abstract getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
94
|
+
abstract getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
95
|
+
abstract getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
96
|
+
abstract getFormMessageContentView(message: FormMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
97
|
+
abstract getSchedulerMessageContentView(message: SchedulerMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
98
|
+
abstract getCardMessageContentView(message: CardMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
99
|
+
abstract getTextMessageTemplate(theme: CometChatTheme, additionalConfigurations?: any): CometChatMessageTemplate;
|
|
100
|
+
abstract getImageMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
101
|
+
abstract getVideoMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
102
|
+
abstract getAudioMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
103
|
+
abstract getFileMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
104
|
+
abstract getFormMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
105
|
+
abstract getSchedulerMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
106
|
+
abstract getCardMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
107
|
+
abstract getGroupActionTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
108
|
+
abstract getAllMessageTemplates(theme?: CometChatTheme, additionalConfigurations?: any): Array<CometChatMessageTemplate>;
|
|
109
|
+
abstract getMessageTemplate(messageType: string, messageCategory: string, theme?: CometChatTheme): CometChatMessageTemplate | null;
|
|
110
|
+
abstract getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
111
|
+
abstract getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
112
|
+
abstract getAttachmentOptions(theme: CometChatTheme, id: ComposerId$1): CometChatMessageComposerAction[];
|
|
113
|
+
abstract getAllMessageTypes(): Array<string>;
|
|
114
|
+
abstract getAllMessageCategories(): Array<string>;
|
|
115
|
+
abstract getAuxiliaryOptions(id: Map<String, any>, theme: CometChatTheme, user?: CometChat.User, group?: CometChat.Group): any;
|
|
116
|
+
abstract getId(): string;
|
|
117
|
+
abstract getDeleteMessageBubble(messageObject: CometChat.BaseMessage, theme: CometChatTheme, style?: TextBubbleStyle): any;
|
|
118
|
+
abstract getGroupActionBubble(message: CometChat.BaseMessage, theme: CometChatTheme, style?: TextBubbleStyle): any;
|
|
119
|
+
abstract getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, style?: TextBubbleStyle, additionalConfigurations?: any): any;
|
|
120
|
+
abstract getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, thumbnailUrl?: string, onClick?: Function, style?: BaseStyle): any;
|
|
121
|
+
abstract getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, theme: CometChatTheme, onClick?: Function, style?: ImageBubbleStyle): any;
|
|
122
|
+
abstract getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, title?: string, style?: BaseStyle): any;
|
|
123
|
+
abstract getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, title?: string, style?: FileBubbleStyle): any;
|
|
124
|
+
abstract getFormMessageBubble(message: FormMessage, theme: CometChatTheme, style?: FormBubbleStyle, onSubmitClick?: Function): any;
|
|
125
|
+
abstract getSchedulerMessageBubble(message: SchedulerMessage, theme: CometChatTheme, style?: SchedulerBubbleStyle, onSubmitClick?: Function): any;
|
|
126
|
+
abstract getCardMessageBubble(message: CardMessage, theme: CometChatTheme, style?: CardBubbleStyle): any;
|
|
127
|
+
abstract getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
128
|
+
abstract getDefaultDetailsTemplate(loggedInUser: CometChat.User, user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme): CometChatDetailsTemplate[];
|
|
129
|
+
abstract getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group): any;
|
|
130
|
+
abstract getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme, id?: Map<String, any>, AIOptionsStyle?: AIOptionsStyle): (CometChatMessageComposerAction | CometChatActionsView)[];
|
|
131
|
+
abstract getAllTextFormatters(formatterParams: any): CometChatTextFormatter[];
|
|
132
|
+
abstract getMentionsTextFormatter(params: any): CometChatMentionsFormatter;
|
|
133
|
+
abstract getUrlTextFormatter(params: any): CometChatUrlsFormatter;
|
|
134
|
+
abstract getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations?: any): string;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare class ChatConfigurator {
|
|
138
|
+
static dataSource: DataSource;
|
|
139
|
+
static names: Array<string>;
|
|
140
|
+
static init(initialSource?: DataSource): void;
|
|
141
|
+
static enable(callback: (dataSource: DataSource) => DataSource): void;
|
|
142
|
+
static getDataSource(): DataSource;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
declare abstract class DataSourceDecorator implements DataSource {
|
|
146
|
+
dataSource: DataSource;
|
|
147
|
+
constructor(dataSource: DataSource);
|
|
148
|
+
getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
149
|
+
getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
150
|
+
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
151
|
+
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
152
|
+
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
153
|
+
getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): any;
|
|
154
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, additionalConfigurations?: any): any;
|
|
155
|
+
getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
156
|
+
getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
157
|
+
getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
158
|
+
getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
159
|
+
getFormMessageContentView(message: FormMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
160
|
+
getSchedulerMessageContentView(message: SchedulerMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
161
|
+
getCardMessageContentView(message: CardMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
162
|
+
getTextMessageTemplate(theme: CometChatTheme, additionalConfigurations?: any): CometChatMessageTemplate;
|
|
163
|
+
getImageMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
164
|
+
getVideoMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
165
|
+
getAudioMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
166
|
+
getFileMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
167
|
+
getGroupActionTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
168
|
+
getFormMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
169
|
+
getSchedulerMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
170
|
+
getCardMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
171
|
+
getAllMessageTemplates(theme?: CometChatTheme | undefined, additionalConfigurations?: any): CometChatMessageTemplate[];
|
|
172
|
+
getMessageTemplate(messageType: string, messageCategory: string, theme?: CometChatTheme | undefined): CometChatMessageTemplate | null;
|
|
173
|
+
getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
174
|
+
getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
175
|
+
getAttachmentOptions(theme: CometChatTheme, id: ComposerId$1): CometChatMessageComposerAction[];
|
|
176
|
+
getAllMessageTypes(): string[];
|
|
177
|
+
getAllMessageCategories(): string[];
|
|
178
|
+
getAuxiliaryOptions(id: Map<String, any>, theme: CometChatTheme, user?: CometChat.User, group?: CometChat.Group): any;
|
|
179
|
+
getId(): string;
|
|
180
|
+
getDeleteMessageBubble(messageObject: CometChat.BaseMessage, theme: CometChatTheme, style?: TextBubbleStyle): any;
|
|
181
|
+
getGroupActionBubble(message: CometChat.BaseMessage, theme: CometChatTheme, style?: TextBubbleStyle): any;
|
|
182
|
+
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, style?: TextBubbleStyle, additionalConfigurations?: any): any;
|
|
183
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, thumbnailUrl?: string, onClick?: Function, style?: BaseStyle): any;
|
|
184
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, theme: CometChatTheme, onClick?: Function, style?: ImageBubbleStyle): any;
|
|
185
|
+
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, title?: string, style?: BaseStyle): any;
|
|
186
|
+
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, title?: string, style?: FileBubbleStyle): any;
|
|
187
|
+
getFormMessageBubble(message: FormMessage, theme: CometChatTheme, style?: FormBubbleStyle, onSubmitClick?: Function): any;
|
|
188
|
+
getSchedulerMessageBubble(message: SchedulerMessage, theme: CometChatTheme, style?: SchedulerBubbleStyle, onSubmitClick?: Function): any;
|
|
189
|
+
getCardMessageBubble(message: CardMessage, theme: CometChatTheme, style?: CardBubbleStyle): any;
|
|
190
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
191
|
+
getDefaultDetailsTemplate(loggedInUser: CometChat.User, user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme): CometChatDetailsTemplate[];
|
|
192
|
+
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group): any;
|
|
193
|
+
getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme, id?: Map<String, any>, AIOptionsStyle?: AIOptionsStyle): (CometChatMessageComposerAction | CometChatActionsView)[];
|
|
194
|
+
getAllTextFormatters(formatterParams: any): CometChatTextFormatter[];
|
|
195
|
+
getMentionsTextFormatter(params?: any): CometChatMentionsFormatter;
|
|
196
|
+
getUrlTextFormatter(params?: any): CometChatUrlsFormatter;
|
|
197
|
+
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: any): string;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
declare class MessagesDataSource implements DataSource {
|
|
201
|
+
getEditOption(theme: CometChatTheme): CometChatActionsIcon;
|
|
202
|
+
getDeleteOption(theme: CometChatTheme): CometChatActionsIcon;
|
|
203
|
+
getReactionOption(theme: CometChatTheme): CometChatActionsView;
|
|
204
|
+
getReplyInThreadOption(theme: CometChatTheme): CometChatActionsIcon;
|
|
205
|
+
getSendMessagePrivatelyOption(theme: CometChatTheme): CometChatActionsIcon;
|
|
206
|
+
getCopyOption(theme: CometChatTheme): CometChatActionsIcon;
|
|
207
|
+
getMessageInfoOption(theme: CometChatTheme): CometChatActionsIcon;
|
|
208
|
+
isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
|
|
209
|
+
getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
210
|
+
getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
211
|
+
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
212
|
+
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
213
|
+
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
214
|
+
getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
|
|
215
|
+
getTextMessageTemplate(theme: CometChatTheme, additionalConfigurations?: any): CometChatMessageTemplate;
|
|
216
|
+
getAudioMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
217
|
+
getVideoMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
218
|
+
getImageMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
219
|
+
getGroupActionTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
220
|
+
getFileMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
221
|
+
getFormMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
222
|
+
getSchedulerMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
223
|
+
getCardMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
224
|
+
getAllMessageTemplates(theme?: CometChatTheme, additionalConfigurations?: any): Array<CometChatMessageTemplate>;
|
|
225
|
+
getMessageTemplate(messageType: string, messageCategory: string, theme?: CometChatTheme, additionalConfigurations?: any): CometChatMessageTemplate | null;
|
|
226
|
+
getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
227
|
+
getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
228
|
+
getAllMessageTypes(): Array<string>;
|
|
229
|
+
addList(): string;
|
|
230
|
+
getAllMessageCategories(): Array<string>;
|
|
231
|
+
getAuxiliaryOptions(id: Map<String, any>, theme: CometChatTheme, user?: CometChat.User, group?: CometChat.Group): any;
|
|
232
|
+
getId(): string;
|
|
233
|
+
getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme, additionalConfigurations?: any): any;
|
|
234
|
+
getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
235
|
+
getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
236
|
+
getFormMessageContentView(message: FormMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
237
|
+
getSchedulerMessageContentView(message: SchedulerMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
238
|
+
getCardMessageContentView(message: CardMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
239
|
+
getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
240
|
+
getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
241
|
+
getActionMessage(message: any): string;
|
|
242
|
+
getDeleteMessageBubble(message: CometChat.BaseMessage, theme: CometChatTheme, style?: TextBubbleStyle): react_jsx_runtime.JSX.Element;
|
|
243
|
+
getGroupActionBubble(message: CometChat.BaseMessage, theme: CometChatTheme, style?: TextBubbleStyle): react_jsx_runtime.JSX.Element;
|
|
244
|
+
getTextMessageBubbleStyle(alignment: MessageBubbleAlignment, theme: CometChatTheme): {
|
|
245
|
+
textFont: string;
|
|
246
|
+
textColor: string;
|
|
247
|
+
};
|
|
248
|
+
getFormMessageBubbleStyle(theme: CometChatTheme): FormBubbleStyle;
|
|
249
|
+
getSchedulerBubbleStyle: (theme: CometChatTheme) => SchedulerBubbleStyle;
|
|
250
|
+
getCardMessageBubbleStyle(theme: CometChatTheme): CardBubbleStyle;
|
|
251
|
+
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, style?: TextBubbleStyle, additionalConfigurations?: any): any;
|
|
252
|
+
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, title?: string, style?: BaseStyle): any;
|
|
253
|
+
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, title?: string, style?: FileBubbleStyle): any;
|
|
254
|
+
getFormMessageBubble(message: FormMessage, theme: CometChatTheme, style?: any, onSubmitClick?: Function): any;
|
|
255
|
+
getSchedulerMessageBubble(message: SchedulerMessage, theme: CometChatTheme, style?: any, onSubmitClick?: (timestamp: string, message: SchedulerMessage) => void): any;
|
|
256
|
+
getSchedulerWrapperStyle(): {
|
|
257
|
+
height: string;
|
|
258
|
+
width: string;
|
|
259
|
+
display: string;
|
|
260
|
+
};
|
|
261
|
+
getCardMessageBubble(message: CardMessage, theme: CometChatTheme, style?: CardBubbleStyle): any;
|
|
262
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, theme: CometChatTheme, onClick?: Function, style?: ImageBubbleStyle): react_jsx_runtime.JSX.Element;
|
|
263
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, thumbnailUrl?: string, onClick?: Function, style?: BaseStyle): any;
|
|
264
|
+
imageAttachmentOption(theme: CometChatTheme): CometChatMessageComposerAction;
|
|
265
|
+
videoAttachmentOption(theme: CometChatTheme): CometChatMessageComposerAction;
|
|
266
|
+
audioAttachmentOption(theme: CometChatTheme): CometChatMessageComposerAction;
|
|
267
|
+
fileAttachmentOption(theme: CometChatTheme): CometChatMessageComposerAction;
|
|
268
|
+
getAttachmentOptions(theme: CometChatTheme, id: ComposerId$1): Array<CometChatMessageComposerAction>;
|
|
269
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: any): string;
|
|
270
|
+
getDefaultDetailsTemplate(loggedInUser: CometChat.User, user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme): CometChatDetailsTemplate[];
|
|
271
|
+
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group): any;
|
|
272
|
+
getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme, id?: Map<String, any>, AIOptionsStyle?: AIOptionsStyle): Array<CometChatMessageComposerAction | CometChatActionsView>;
|
|
273
|
+
/**
|
|
274
|
+
* Adds styled @ for every mention in the text by matching uid
|
|
275
|
+
*
|
|
276
|
+
* @param {CometChat.TextMessage} message
|
|
277
|
+
* @param {string} subtitle
|
|
278
|
+
* @returns {void}
|
|
279
|
+
*/
|
|
280
|
+
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, mentionsFormatterParams: {
|
|
281
|
+
mentionsTargetElement: MentionsTargetElement;
|
|
282
|
+
theme: CometChatTheme;
|
|
283
|
+
}): string;
|
|
284
|
+
getAllTextFormatters(formatterParams: any): CometChatTextFormatter[];
|
|
285
|
+
getMentionsTextFormatter(params: any): CometChatMentionsFormatter;
|
|
286
|
+
getUrlTextFormatter(params?: any): CometChatUrlsFormatter;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
declare const CometChatThemeContext: React$1.Context<{
|
|
290
|
+
theme: CometChatTheme;
|
|
291
|
+
}>;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* TabsStyle
|
|
295
|
+
*
|
|
296
|
+
* @property {string} height - The height of the component.
|
|
297
|
+
* @property {string} width - The width of the component.
|
|
298
|
+
* @property {string} border - The border of the component.
|
|
299
|
+
* @property {string} borderRadius - The border radius of the component.
|
|
300
|
+
* @property {string} background - The background color of the component.
|
|
301
|
+
* @property {string} tabListHeight - The height of the tab list.
|
|
302
|
+
* @property {string} tabListWidth - The width of the tab list.
|
|
303
|
+
* @property {string} tabListBorder - The border of the tab list.
|
|
304
|
+
* @property {string} tabListBorderRadius - The border radius of the tab list.
|
|
305
|
+
* @property {string} tabListBackground - The background color of the tab list.
|
|
306
|
+
* @property {string} tabListBoxShadow - The box shadow of the tab list.
|
|
307
|
+
* @property {string} tabListPadding - The padding of the tab list.
|
|
308
|
+
* @property {string} tabPaneWidth - The width of the tab pane.
|
|
309
|
+
* @property {string} tabPaneHeight - The height of the tab pane.
|
|
310
|
+
*/
|
|
311
|
+
declare class TabsStyle extends BaseStyle$1 {
|
|
312
|
+
tabListHeight?: string;
|
|
313
|
+
tabListWidth?: string;
|
|
314
|
+
tabListBorder?: string;
|
|
315
|
+
tabListBorderRadius?: string;
|
|
316
|
+
tabListBackground?: string;
|
|
317
|
+
tabListBoxShadow?: string;
|
|
318
|
+
tabListPadding?: string;
|
|
319
|
+
tabPaneWidth?: string;
|
|
320
|
+
tabPaneHeight?: string;
|
|
321
|
+
constructor(props: Partial<TabsStyle>);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
interface TabsProps {
|
|
325
|
+
tabAlignment?: TabAlignment;
|
|
326
|
+
tabsStyle?: TabsStyle;
|
|
327
|
+
tabs: CometChatTabItem[];
|
|
328
|
+
keepAlive?: boolean;
|
|
329
|
+
tabIconAlignment?: IconButtonAlignment;
|
|
330
|
+
}
|
|
331
|
+
declare const CometChatTabs: (props: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
332
|
+
|
|
333
|
+
interface IListProps<T> {
|
|
334
|
+
/**
|
|
335
|
+
* Title of the component
|
|
336
|
+
*
|
|
337
|
+
* @defaultValue `""`
|
|
338
|
+
*/
|
|
339
|
+
title?: string;
|
|
340
|
+
/**
|
|
341
|
+
* Alignment of the `title` text
|
|
342
|
+
*
|
|
343
|
+
* @defaultValue `TitleAlignment.left`
|
|
344
|
+
*/
|
|
345
|
+
titleAlignment?: TitleAlignment;
|
|
346
|
+
/**
|
|
347
|
+
* Hide the search bar
|
|
348
|
+
*
|
|
349
|
+
* @defaulValue `false`
|
|
350
|
+
*/
|
|
351
|
+
hideSearch?: boolean;
|
|
352
|
+
/**
|
|
353
|
+
* Text to fill the search input with
|
|
354
|
+
*
|
|
355
|
+
* @defaultValue `""`
|
|
356
|
+
*/
|
|
357
|
+
searchText?: string;
|
|
358
|
+
/**
|
|
359
|
+
* Function to call when the search input text changes
|
|
360
|
+
*
|
|
361
|
+
* @remarks
|
|
362
|
+
* This function will only be called after 500ms of the search input text change
|
|
363
|
+
*/
|
|
364
|
+
onSearch?: (searchStr: string) => void;
|
|
365
|
+
/**
|
|
366
|
+
* Image URL for the search icon to use in the search bar
|
|
367
|
+
*/
|
|
368
|
+
searchIconURL?: string;
|
|
369
|
+
/**
|
|
370
|
+
* Text to be displayed when the search input has no value
|
|
371
|
+
*
|
|
372
|
+
* @defaultValue `"Search"`
|
|
373
|
+
*/
|
|
374
|
+
searchPlaceholderText?: string;
|
|
375
|
+
/**
|
|
376
|
+
* List of objects to display
|
|
377
|
+
*/
|
|
378
|
+
list: T[];
|
|
379
|
+
/**
|
|
380
|
+
* Custom list item view to be rendered for each object in the `list` prop
|
|
381
|
+
*/
|
|
382
|
+
listItem: (item: T, itemIndex: number) => JSX$1.Element;
|
|
383
|
+
/**
|
|
384
|
+
* Function to call when the scrollbar is at the top-most position of the scrollable list
|
|
385
|
+
*/
|
|
386
|
+
onScrolledToBottom?: () => Promise<any>;
|
|
387
|
+
/**
|
|
388
|
+
* Function to call when the scrollbar is at the bottom-most position of the scrollable list
|
|
389
|
+
*/
|
|
390
|
+
onScrolledToTop?: () => Promise<any>;
|
|
391
|
+
/**
|
|
392
|
+
* Function to call when the scrollbar is not at the bottom-most position of the scrollable list
|
|
393
|
+
*/
|
|
394
|
+
scrolledUpCallback?: (boolean?: boolean) => void;
|
|
395
|
+
/**
|
|
396
|
+
* Show alphabetical header
|
|
397
|
+
*
|
|
398
|
+
* @defaultValue `true`
|
|
399
|
+
*/
|
|
400
|
+
showSectionHeader?: boolean;
|
|
401
|
+
/**
|
|
402
|
+
* Property on each object in the `list` prop
|
|
403
|
+
*
|
|
404
|
+
* @remarks
|
|
405
|
+
* This property will be used to extract the section header character from each object in the `list` prop
|
|
406
|
+
*/
|
|
407
|
+
sectionHeaderKey?: keyof T;
|
|
408
|
+
/**
|
|
409
|
+
* Property on each object in the `list` prop
|
|
410
|
+
*
|
|
411
|
+
* @remarks
|
|
412
|
+
* This property will be used to extract the key value from each object in the `list` prop. The extracted key value is set as a `key` of a React element
|
|
413
|
+
*/
|
|
414
|
+
listItemKey?: keyof T;
|
|
415
|
+
/**
|
|
416
|
+
* Fetch state of the component
|
|
417
|
+
*/
|
|
418
|
+
state: States;
|
|
419
|
+
/**
|
|
420
|
+
* Custom view for the loading state of the component
|
|
421
|
+
*/
|
|
422
|
+
loadingView?: JSX$1.Element;
|
|
423
|
+
/**
|
|
424
|
+
* Image URL for the default loading view
|
|
425
|
+
*/
|
|
426
|
+
loadingIconURL?: string;
|
|
427
|
+
/**
|
|
428
|
+
* Hide error view
|
|
429
|
+
*
|
|
430
|
+
* @remarks
|
|
431
|
+
* If set to true, hides the default and the custom error view
|
|
432
|
+
*
|
|
433
|
+
* @defaultValue `false`
|
|
434
|
+
*/
|
|
435
|
+
hideError?: boolean;
|
|
436
|
+
/**
|
|
437
|
+
* Custom view for the error state of the component
|
|
438
|
+
*/
|
|
439
|
+
errorStateView?: JSX$1.Element;
|
|
440
|
+
/**
|
|
441
|
+
* Text to display in the default error view
|
|
442
|
+
*
|
|
443
|
+
* @defaultValue `"ERROR"`
|
|
444
|
+
*/
|
|
445
|
+
errorStateText?: string;
|
|
446
|
+
/**
|
|
447
|
+
* Custom view for the empty state of the component
|
|
448
|
+
*/
|
|
449
|
+
emptyStateView?: JSX$1.Element;
|
|
450
|
+
/**
|
|
451
|
+
* Text to display in the default empty view
|
|
452
|
+
*
|
|
453
|
+
* @defaultValue `"EMPTY"`
|
|
454
|
+
*/
|
|
455
|
+
emptyStateText?: string;
|
|
456
|
+
/**
|
|
457
|
+
* Set the scrollbar to the bottom-most position of the scrollable list
|
|
458
|
+
*
|
|
459
|
+
* @remarks
|
|
460
|
+
* If the scrollbar of the scrollable list is set to the bottom-most position of the scrollable list because of this `prop`, the component won't call the `onScrolledToBottom` prop
|
|
461
|
+
*/
|
|
462
|
+
scrollToBottom?: boolean;
|
|
463
|
+
/**
|
|
464
|
+
* Function to call whenever the component encounters an error
|
|
465
|
+
*/
|
|
466
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
467
|
+
/**
|
|
468
|
+
* Styles to apply to this component
|
|
469
|
+
*/
|
|
470
|
+
listStyle?: ListStyle;
|
|
471
|
+
theme?: CometChatTheme;
|
|
472
|
+
}
|
|
473
|
+
declare function List<T>(props: IListProps<T>): JSX$1.Element;
|
|
474
|
+
/**
|
|
475
|
+
* Renders a scrollable list
|
|
476
|
+
*/
|
|
477
|
+
declare const CometChatList: typeof List;
|
|
478
|
+
|
|
479
|
+
declare class CollaborativeDocumentConfiguration {
|
|
480
|
+
private style;
|
|
481
|
+
private iconURL;
|
|
482
|
+
private optionIconURL;
|
|
483
|
+
private optionStyle;
|
|
484
|
+
constructor(configuration: {
|
|
485
|
+
style?: DocumentBubbleStyle;
|
|
486
|
+
iconURL?: string;
|
|
487
|
+
optionIconURL?: string;
|
|
488
|
+
optionStyle?: OptionsStyle;
|
|
489
|
+
});
|
|
490
|
+
getDocumentBubbleStyle(): DocumentBubbleStyle;
|
|
491
|
+
getIconURL(): string;
|
|
492
|
+
getOptionIconURL(): string;
|
|
493
|
+
getOptionStyle(): OptionsStyle;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
declare class CollaborativeDocumentExtension extends ExtensionsDataSource {
|
|
497
|
+
private configuration?;
|
|
498
|
+
constructor(configuration?: CollaborativeDocumentConfiguration);
|
|
499
|
+
addExtension(): void;
|
|
500
|
+
getExtensionId(): string;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
declare class CollaborativeDocumentExtensionDecorator extends DataSourceDecorator {
|
|
504
|
+
configuration?: CollaborativeDocumentConfiguration;
|
|
505
|
+
newDataSource: DataSource;
|
|
506
|
+
theme: CometChatTheme;
|
|
507
|
+
constructor(dataSource: DataSource, configuration?: CollaborativeDocumentConfiguration);
|
|
508
|
+
getAllMessageTypes(): string[];
|
|
509
|
+
getId(): string;
|
|
510
|
+
getAllMessageCategories(): string[];
|
|
511
|
+
checkIfTemplateExist(template: CometChatMessageTemplate[], type: string): boolean;
|
|
512
|
+
getAllMessageTemplates(_theme?: CometChatTheme | undefined, additionalConfigurations?: any): CometChatMessageTemplate[];
|
|
513
|
+
getDocumentTemplate(_theme: CometChatTheme): CometChatMessageTemplate;
|
|
514
|
+
getDocumentContentView(documentMessage: CometChat.CustomMessage, _theme: CometChatTheme): react_jsx_runtime.JSX.Element;
|
|
515
|
+
launchCollaborativeDocument(documentURL: string): void;
|
|
516
|
+
getDocumentURL(message: CometChat.CustomMessage): any;
|
|
517
|
+
getAttachmentOptions(theme: CometChatTheme, id: any): CometChatMessageComposerAction[];
|
|
518
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
declare class CollaborativeWhiteboardConfiguration {
|
|
522
|
+
private style;
|
|
523
|
+
private iconURL;
|
|
524
|
+
private optionIconURL;
|
|
525
|
+
private optionStyle;
|
|
526
|
+
constructor(configuration: {
|
|
527
|
+
style?: DocumentBubbleStyle;
|
|
528
|
+
iconURL?: string;
|
|
529
|
+
optionIconURL?: string;
|
|
530
|
+
optionStyle?: OptionsStyle;
|
|
531
|
+
});
|
|
532
|
+
getWhiteboardBubbleStyle(): DocumentBubbleStyle;
|
|
533
|
+
getIconURL(): string;
|
|
534
|
+
getOptionIconURL(): string;
|
|
535
|
+
getOptionStyle(): OptionsStyle;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
declare class CollaborativeWhiteboardExtension extends ExtensionsDataSource {
|
|
539
|
+
private configuration?;
|
|
540
|
+
constructor(configuration?: CollaborativeWhiteboardConfiguration);
|
|
541
|
+
addExtension(): void;
|
|
542
|
+
getExtensionId(): string;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
declare class CollaborativeWhiteBoardExtensionDecorator extends DataSourceDecorator {
|
|
546
|
+
configuration?: CollaborativeWhiteboardConfiguration;
|
|
547
|
+
newDataSource: DataSource;
|
|
548
|
+
theme: CometChatTheme;
|
|
549
|
+
constructor(dataSource: DataSource, configuration?: CollaborativeWhiteboardConfiguration);
|
|
550
|
+
getAllMessageTypes(): string[];
|
|
551
|
+
getId(): string;
|
|
552
|
+
getAllMessageCategories(): string[];
|
|
553
|
+
checkIfTemplateExist(template: CometChatMessageTemplate[], type: string): boolean;
|
|
554
|
+
getAllMessageTemplates(theme?: CometChatTheme | undefined, additionalConfigurations?: any): CometChatMessageTemplate[];
|
|
555
|
+
getWhiteBoardTemplate(_theme: CometChatTheme): CometChatMessageTemplate;
|
|
556
|
+
getWhiteboardContentView(whiteboardMessage: CometChat.CustomMessage, _theme: CometChatTheme): react_jsx_runtime.JSX.Element;
|
|
557
|
+
launchCollaborativeWhiteboardDocument(whiteboardURL: string): void;
|
|
558
|
+
getWhiteboardDocument(message: CometChat.CustomMessage): any;
|
|
559
|
+
getAttachmentOptions(theme: CometChatTheme, id: any): CometChatMessageComposerAction[];
|
|
560
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: any): string;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
declare class ImageModerationConfiguration {
|
|
564
|
+
private style;
|
|
565
|
+
private confirmDialogStyle;
|
|
566
|
+
private backDropStyle;
|
|
567
|
+
constructor(configuration: {
|
|
568
|
+
style?: ImageModerationStyle;
|
|
569
|
+
confirmDialogStyle?: ConfirmDialogStyle;
|
|
570
|
+
backDropStyle?: BaseStyle$1;
|
|
571
|
+
});
|
|
572
|
+
getImageModerationStyle(): ImageModerationStyle;
|
|
573
|
+
getConfirmDialogSyle(): ConfirmDialogStyle;
|
|
574
|
+
getBackDropStyle(): BaseStyle$1;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
declare class ImageModerationExtension extends ExtensionsDataSource {
|
|
578
|
+
private configuration?;
|
|
579
|
+
constructor(configuration?: ImageModerationConfiguration);
|
|
580
|
+
addExtension(): void;
|
|
581
|
+
getExtensionId(): string;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
declare class ImageModerationExtensionDecorator extends DataSourceDecorator {
|
|
585
|
+
configuration?: ImageModerationConfiguration;
|
|
586
|
+
newDataSource: DataSource;
|
|
587
|
+
private theme;
|
|
588
|
+
loggedInUser: CometChat.User;
|
|
589
|
+
constructor(dataSource: DataSource, configuration?: ImageModerationConfiguration);
|
|
590
|
+
getId(): string;
|
|
591
|
+
getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme): any;
|
|
592
|
+
showDialog(_event: any): void;
|
|
593
|
+
getConfirmationModal(_event: any): react_jsx_runtime.JSX.Element;
|
|
594
|
+
onConfirmClicked(_event: any): void;
|
|
595
|
+
onCancelClicked(): void;
|
|
596
|
+
getImageModerationStyle(_theme: CometChatTheme): {
|
|
597
|
+
filterColor: string | undefined;
|
|
598
|
+
height: string;
|
|
599
|
+
width: string;
|
|
600
|
+
border: string;
|
|
601
|
+
borderRadius: string;
|
|
602
|
+
warningTextColor: string | undefined;
|
|
603
|
+
warningTextFont: string;
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
declare class LinkPreviewConfiguration {
|
|
608
|
+
private style;
|
|
609
|
+
constructor(configuration: {
|
|
610
|
+
style?: LinkPreviewStyle;
|
|
611
|
+
});
|
|
612
|
+
getLinkPreviewStyle(): LinkPreviewStyle;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
declare class LinkPreviewExtension extends ExtensionsDataSource {
|
|
616
|
+
private configuration?;
|
|
617
|
+
constructor(configuration?: LinkPreviewConfiguration);
|
|
618
|
+
addExtension(): void;
|
|
619
|
+
getExtensionId(): string;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
|
|
623
|
+
configuration?: LinkPreviewConfiguration;
|
|
624
|
+
newDataSource: DataSource;
|
|
625
|
+
constructor(dataSource: DataSource, configuration?: LinkPreviewConfiguration);
|
|
626
|
+
getId(): string;
|
|
627
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, additionalConfigurations?: any): any;
|
|
628
|
+
getLinkPreviewWrapperStyle(): {
|
|
629
|
+
height: string;
|
|
630
|
+
width: string;
|
|
631
|
+
};
|
|
632
|
+
openLink(event: any): void;
|
|
633
|
+
getLinkPreviewStyle(_theme: CometChatTheme): LinkPreviewStyle;
|
|
634
|
+
getTextMessageStyle(_alignment: MessageBubbleAlignment, _theme: CometChatTheme): {
|
|
635
|
+
textFont: string;
|
|
636
|
+
textColor: string;
|
|
637
|
+
};
|
|
638
|
+
getLinkPreview(message: CometChat.TextMessage): any;
|
|
639
|
+
getLinkPreviewDetails(linkPreviewObject: any, key: string): string;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
declare class MessageTranslationConfiguration {
|
|
643
|
+
private style;
|
|
644
|
+
private optionIconURL;
|
|
645
|
+
private optionStyle;
|
|
646
|
+
constructor(configuration: {
|
|
647
|
+
style?: MessageTranslationStyle;
|
|
648
|
+
optionIconURL?: string;
|
|
649
|
+
optionStyle?: OptionsStyle;
|
|
650
|
+
});
|
|
651
|
+
getMessageTranslationStyle(): MessageTranslationStyle;
|
|
652
|
+
getOptionIconURL(): string;
|
|
653
|
+
getOptionStyle(): OptionsStyle;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
declare class MessageTranslationExtension extends ExtensionsDataSource {
|
|
657
|
+
private configuration?;
|
|
658
|
+
constructor(configuration?: MessageTranslationConfiguration);
|
|
659
|
+
addExtension(): void;
|
|
660
|
+
getExtensionId(): string;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
|
|
664
|
+
configuration?: MessageTranslationConfiguration;
|
|
665
|
+
newDataSource: DataSource;
|
|
666
|
+
constructor(dataSource: DataSource, configuration?: MessageTranslationConfiguration);
|
|
667
|
+
getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): (CometChatActionsIcon | CometChatActionsView)[];
|
|
668
|
+
getTranslationStyle: (_alignment: MessageBubbleAlignment, _theme: CometChatTheme) => MessageTranslationStyle;
|
|
669
|
+
getTextMessageStyle(_alignment: MessageBubbleAlignment, _theme: CometChatTheme): {
|
|
670
|
+
textFont: string;
|
|
671
|
+
textColor: string;
|
|
672
|
+
};
|
|
673
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, additionalConfigurations?: any): any;
|
|
674
|
+
checkIfOptionExist(template: (CometChatActionsIcon | CometChatActionsView)[], id: string): boolean;
|
|
675
|
+
getId(): string;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
declare class PollsConfiguration {
|
|
679
|
+
private style;
|
|
680
|
+
private createPollStyle;
|
|
681
|
+
private createPollIconURL;
|
|
682
|
+
private deleteIconURL;
|
|
683
|
+
private closeIconURL;
|
|
684
|
+
private optionIconURL;
|
|
685
|
+
private addAnswerIconURL;
|
|
686
|
+
private optionStyle;
|
|
687
|
+
constructor(configuration: {
|
|
688
|
+
style?: PollsBubbleStyle;
|
|
689
|
+
createPollStyle?: CreatePollStyle;
|
|
690
|
+
createPollIconURL?: string;
|
|
691
|
+
deleteIconURL?: string;
|
|
692
|
+
closeIconURL?: string;
|
|
693
|
+
optionIconURL?: string;
|
|
694
|
+
addAnswerIconURL?: string;
|
|
695
|
+
optionStyle?: OptionsStyle;
|
|
696
|
+
});
|
|
697
|
+
getPollsBubbleStyle(): PollsBubbleStyle;
|
|
698
|
+
getCreatePollStyle(): CreatePollStyle;
|
|
699
|
+
getCreatePollIconURL(): string;
|
|
700
|
+
getDeleteIconURL(): string;
|
|
701
|
+
getCloseIconURL(): string;
|
|
702
|
+
getOptionIconURL(): string;
|
|
703
|
+
getAddAnswerIconURL(): string;
|
|
704
|
+
getOptionStyle(): OptionsStyle;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
declare class PollsExtension extends ExtensionsDataSource {
|
|
708
|
+
private configuration?;
|
|
709
|
+
constructor(configuration?: PollsConfiguration);
|
|
710
|
+
addExtension(): void;
|
|
711
|
+
getExtensionId(): string;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
declare class PollsExtensionDecorator extends DataSourceDecorator {
|
|
715
|
+
theme: CometChatTheme;
|
|
716
|
+
private loggedInUser;
|
|
717
|
+
configuration?: PollsConfiguration;
|
|
718
|
+
newDataSource: DataSource;
|
|
719
|
+
constructor(dataSource: DataSource, configuration?: PollsConfiguration);
|
|
720
|
+
getLoggedInUser(): Promise<void>;
|
|
721
|
+
getId(): string;
|
|
722
|
+
getAllMessageTypes(): string[];
|
|
723
|
+
getAllMessageCategories(): string[];
|
|
724
|
+
checkIfTemplateExist(template: CometChatMessageTemplate[], type: string): boolean;
|
|
725
|
+
getAllMessageTemplates(_theme?: CometChatTheme | undefined, additionalConfigurations?: any): CometChatMessageTemplate[];
|
|
726
|
+
getPollsTemplate(_theme: CometChatTheme): CometChatMessageTemplate;
|
|
727
|
+
getPollsContentView(message: CometChat.CustomMessage, _theme: CometChatTheme): react_jsx_runtime.JSX.Element;
|
|
728
|
+
getPollBubbleData(message: CometChat.CustomMessage, key?: string): any;
|
|
729
|
+
getAttachmentOptions(theme: CometChatTheme, id: any): CometChatMessageComposerAction[];
|
|
730
|
+
onPollsButtonClicked(theme: CometChatTheme, ...args: any[]): void;
|
|
731
|
+
getPollView(user: CometChat.User, group: CometChat.Group, createPollStyle: CreatePollStyle): react_jsx_runtime.JSX.Element;
|
|
732
|
+
triggerCloseEvent(): void;
|
|
733
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
declare class SmartRepliesConfiguration {
|
|
737
|
+
private style;
|
|
738
|
+
constructor(configuration: {
|
|
739
|
+
style?: SmartRepliesStyle;
|
|
740
|
+
});
|
|
741
|
+
getSmartRepliesStyle(): SmartRepliesStyle;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
declare class SmartReplyExtension extends ExtensionsDataSource {
|
|
745
|
+
private configuration?;
|
|
746
|
+
private theme?;
|
|
747
|
+
constructor(configuration?: SmartRepliesConfiguration);
|
|
748
|
+
addExtension(): void;
|
|
749
|
+
getExtensionId(): string;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
declare class SmartReplyExtensionDecorator extends DataSourceDecorator {
|
|
753
|
+
configuration?: SmartRepliesConfiguration;
|
|
754
|
+
theme?: CometChatTheme;
|
|
755
|
+
private LISTENER_ID;
|
|
756
|
+
private activeUser;
|
|
757
|
+
private activeGroup;
|
|
758
|
+
currentMessage: CometChat.BaseMessage | null;
|
|
759
|
+
loggedInUser: CometChat.User | null;
|
|
760
|
+
constructor(dataSource: DataSource, configuration?: SmartRepliesConfiguration, theme?: CometChatTheme);
|
|
761
|
+
private addMessageListener;
|
|
762
|
+
getReplies(message: CometChat.TextMessage): any[] | null;
|
|
763
|
+
getSmartReplyStyle(): {
|
|
764
|
+
replyTextFont: string;
|
|
765
|
+
replyTextColor: string | undefined;
|
|
766
|
+
replyBackground: string;
|
|
767
|
+
boxShadow: string;
|
|
768
|
+
closeIconTint: string | undefined;
|
|
769
|
+
background: string;
|
|
770
|
+
width: string;
|
|
771
|
+
height: string;
|
|
772
|
+
border: string;
|
|
773
|
+
display: string;
|
|
774
|
+
justifyContent: string;
|
|
775
|
+
};
|
|
776
|
+
sendSmartReply(_event: any): void;
|
|
777
|
+
closeSmartReply(): void;
|
|
778
|
+
getSmartReplyButtonStyle(): React__default.CSSProperties;
|
|
779
|
+
getSmartReplyView(message: CometChat.TextMessage): react_jsx_runtime.JSX.Element | null;
|
|
780
|
+
getId(): string;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
declare class StickersConfiguration {
|
|
784
|
+
private style;
|
|
785
|
+
private stickerIconURL;
|
|
786
|
+
private closeIconURL;
|
|
787
|
+
constructor(configuration: {
|
|
788
|
+
style?: StickersStyle;
|
|
789
|
+
stickerIconURL?: string;
|
|
790
|
+
closeIconURL?: string;
|
|
791
|
+
});
|
|
792
|
+
getStickersStyle(): StickersStyle;
|
|
793
|
+
getStickerIconURL(): string;
|
|
794
|
+
getCloseIconURL(): string;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
declare class StickersExtension extends ExtensionsDataSource {
|
|
798
|
+
private configuration?;
|
|
799
|
+
constructor(configuration?: StickersConfiguration);
|
|
800
|
+
addExtension(): void;
|
|
801
|
+
getExtensionId(): string;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
805
|
+
configuration?: StickersConfiguration;
|
|
806
|
+
newDataSource: DataSource;
|
|
807
|
+
showStickerKeyboard: boolean;
|
|
808
|
+
theme: CometChatTheme;
|
|
809
|
+
private id;
|
|
810
|
+
private user;
|
|
811
|
+
private group;
|
|
812
|
+
constructor(dataSource: DataSource, configuration?: StickersConfiguration);
|
|
813
|
+
getDataSource(): DataSource;
|
|
814
|
+
getAllMessageTemplates(theme?: CometChatTheme | undefined, additionalConfigurations?: any): CometChatMessageTemplate[];
|
|
815
|
+
getAuxiliaryOptions(id: Map<String, any>, theme: CometChatTheme, user?: CometChat.User, group?: CometChat.Group): any;
|
|
816
|
+
getStickerAuxiliaryButton(id: Map<String, any>, theme: CometChatTheme, user?: CometChat.User, group?: CometChat.Group): react_jsx_runtime.JSX.Element;
|
|
817
|
+
sendSticker(event: any): void;
|
|
818
|
+
getSticker(message: CometChat.CustomMessage): any;
|
|
819
|
+
getStickerMessageContentView(stickerMessage: CometChat.CustomMessage, _theme: CometChatTheme): react_jsx_runtime.JSX.Element;
|
|
820
|
+
getStickerTemplate(_theme: CometChatTheme): CometChatMessageTemplate;
|
|
821
|
+
checkIfTemplateExist(template: CometChatMessageTemplate[], type: string): boolean;
|
|
822
|
+
getAllMessageCategories(): string[];
|
|
823
|
+
getAllMessageTypes(): string[];
|
|
824
|
+
getId(): string;
|
|
825
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
declare class TextModeratorExtension extends ExtensionsDataSource {
|
|
829
|
+
addExtension(): void;
|
|
830
|
+
getExtensionId(): string;
|
|
831
|
+
enable(): void;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
declare class TextModeratorExtensionDecorator extends DataSourceDecorator {
|
|
835
|
+
getId(): string;
|
|
836
|
+
getModeratedtext(message: CometChat.TextMessage): string;
|
|
837
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: any): string;
|
|
838
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, theme: CometChatTheme, additionalConfigurations?: any): any;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
declare class ThumbnailGenerationExtension extends ExtensionsDataSource {
|
|
842
|
+
addExtension(): void;
|
|
843
|
+
getExtensionId(): string;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator {
|
|
847
|
+
getId(): string;
|
|
848
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, theme: CometChatTheme, onClick?: Function, style?: ImageBubbleStyle): any;
|
|
849
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, thumbnailUrl?: string, onClick?: Function, style?: BaseStyle): any;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
declare class CallingExtension extends CallingExtensionDataSource {
|
|
853
|
+
private configuration?;
|
|
854
|
+
constructor(configuration?: CallingConfiguration);
|
|
855
|
+
enable(): void;
|
|
856
|
+
addExtension(): void;
|
|
857
|
+
getExtensionId(): string;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
861
|
+
theme: CometChatTheme;
|
|
862
|
+
loggedInUser: CometChat.User | null;
|
|
863
|
+
configuration?: CallingConfiguration;
|
|
864
|
+
constructor(dataSource: DataSource, configuration?: CallingConfiguration);
|
|
865
|
+
addLoginListener(): void;
|
|
866
|
+
getLoggedInUser(): Promise<void>;
|
|
867
|
+
getAllMessageTypes(): string[];
|
|
868
|
+
getId(): string;
|
|
869
|
+
getAllMessageCategories(): string[];
|
|
870
|
+
checkIfTemplateTypeExist(template: CometChatMessageTemplate[], type: string): boolean;
|
|
871
|
+
checkIfTemplateCategoryExist(template: CometChatMessageTemplate[], category: string): boolean;
|
|
872
|
+
getAllMessageTemplates(_theme?: CometChatTheme | undefined, additionalConfigurations?: any): CometChatMessageTemplate[];
|
|
873
|
+
getDirectCallTemplate(_theme: CometChatTheme): CometChatMessageTemplate;
|
|
874
|
+
getDefaultCallTemplate(_theme: CometChatTheme): CometChatMessageTemplate[];
|
|
875
|
+
getCallBubbleStyle(_alignment: MessageBubbleAlignment, _theme: CometChatTheme): {
|
|
876
|
+
titleFont: string;
|
|
877
|
+
titleColor: string | undefined;
|
|
878
|
+
iconTint: string | undefined;
|
|
879
|
+
buttonTextFont: string;
|
|
880
|
+
buttonTextColor: string | undefined;
|
|
881
|
+
buttonBackground: string | undefined;
|
|
882
|
+
width: string;
|
|
883
|
+
background: string | undefined;
|
|
884
|
+
borderRadius: string;
|
|
885
|
+
} | {
|
|
886
|
+
titleFont: string;
|
|
887
|
+
titleColor: string | undefined;
|
|
888
|
+
iconTint: string | undefined;
|
|
889
|
+
buttonTextFont: string;
|
|
890
|
+
buttonTextColor: string | undefined;
|
|
891
|
+
buttonBackground: string | undefined;
|
|
892
|
+
width: string;
|
|
893
|
+
borderRadius: string;
|
|
894
|
+
background?: undefined;
|
|
895
|
+
};
|
|
896
|
+
getSessionId(_message: CometChat.CustomMessage): any;
|
|
897
|
+
getCallBubbleTitle(_message: CometChat.CustomMessage): any;
|
|
898
|
+
getDirectCallMessageBubble(_message: CometChat.CustomMessage, _alignment: MessageBubbleAlignment, _theme: CometChatTheme): react_jsx_runtime.JSX.Element;
|
|
899
|
+
startDirectCall(sessionId: string, message: CometChat.CustomMessage, theme: CometChatTheme): void;
|
|
900
|
+
callStatusStyle(_message: CometChat.Call, theme: CometChatTheme): {
|
|
901
|
+
buttonTextFont: string;
|
|
902
|
+
buttonTextColor: string | undefined;
|
|
903
|
+
borderRadius: string;
|
|
904
|
+
border: string;
|
|
905
|
+
buttonIconTint: string | undefined;
|
|
906
|
+
background: string;
|
|
907
|
+
iconBackground: string;
|
|
908
|
+
padding: string;
|
|
909
|
+
gap: string;
|
|
910
|
+
height: string;
|
|
911
|
+
justifyContent: string;
|
|
912
|
+
} | {
|
|
913
|
+
buttonTextFont?: undefined;
|
|
914
|
+
buttonTextColor?: undefined;
|
|
915
|
+
borderRadius?: undefined;
|
|
916
|
+
border?: undefined;
|
|
917
|
+
buttonIconTint?: undefined;
|
|
918
|
+
background?: undefined;
|
|
919
|
+
iconBackground?: undefined;
|
|
920
|
+
padding?: undefined;
|
|
921
|
+
gap?: undefined;
|
|
922
|
+
height?: undefined;
|
|
923
|
+
justifyContent?: undefined;
|
|
924
|
+
};
|
|
925
|
+
getCallActionMessage(_message: CometChat.Call): string;
|
|
926
|
+
getDefaultAudioCallMessageBubble(_message: CometChat.Call, _alignment: MessageBubbleAlignment, _theme: CometChatTheme): react_jsx_runtime.JSX.Element;
|
|
927
|
+
getDefaultVideoCallMessageBubble(_message: CometChat.Call, _alignment: MessageBubbleAlignment, _theme: CometChatTheme): react_jsx_runtime.JSX.Element;
|
|
928
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalParams?: any): string;
|
|
929
|
+
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group): any[];
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
interface ICallButtonsBaseProps {
|
|
933
|
+
voiceCallIconURL?: string;
|
|
934
|
+
voiceCallIconText?: string;
|
|
935
|
+
voiceCallIconHoverText?: string;
|
|
936
|
+
videoCallIconURL?: string;
|
|
937
|
+
videoCallIconText?: string;
|
|
938
|
+
videoCallIconHoverText?: string;
|
|
939
|
+
callButtonsStyle?: CallButtonsStyle;
|
|
940
|
+
onVoiceCallClick?: () => void;
|
|
941
|
+
onVideoCallClick?: () => void;
|
|
942
|
+
onError?: (error: CometChat.CometChatException) => void;
|
|
943
|
+
user?: CometChat.User | null;
|
|
944
|
+
group?: CometChat.Group | null;
|
|
945
|
+
outgoingCallConfiguration?: OutgoingCallConfiguration;
|
|
946
|
+
ongoingCallConfiguration?: CallScreenConfiguration;
|
|
947
|
+
}
|
|
948
|
+
declare const CometChatCallButtons: (props: ICallButtonsBaseProps) => react_jsx_runtime.JSX.Element;
|
|
949
|
+
|
|
950
|
+
interface IIncomingCallProps {
|
|
951
|
+
call?: any;
|
|
952
|
+
disableSoundForCalls?: boolean;
|
|
953
|
+
customSoundForCalls?: string;
|
|
954
|
+
onAccept?: Function;
|
|
955
|
+
onDecline?: Function;
|
|
956
|
+
acceptButtonText?: string;
|
|
957
|
+
ongoingCallConfiguration?: CallScreenConfiguration;
|
|
958
|
+
declineButtonText?: string;
|
|
959
|
+
subtitleView?: any;
|
|
960
|
+
onError?: Function;
|
|
961
|
+
listItemStyle?: ListItemStyle;
|
|
962
|
+
avatarStyle?: AvatarStyle;
|
|
963
|
+
incomingCallStyle?: IncomingCallStyle;
|
|
964
|
+
}
|
|
965
|
+
declare const CometChatIncomingCall: (props: IIncomingCallProps) => react_jsx_runtime.JSX.Element;
|
|
966
|
+
|
|
967
|
+
interface IOngoingCallProps {
|
|
968
|
+
callSettingsBuilder?: typeof CometChatUIKitCalls.CallSettings;
|
|
969
|
+
sessionID: string;
|
|
970
|
+
ongoingCallStyle?: CallscreenStyle;
|
|
971
|
+
resizeIconHoverText?: string;
|
|
972
|
+
minimizeIconURL?: string;
|
|
973
|
+
maximizeIconURL?: string;
|
|
974
|
+
onError?: Function;
|
|
975
|
+
callWorkflow?: CallWorkflow;
|
|
976
|
+
}
|
|
977
|
+
declare const CometChatOngoingCall: (props: IOngoingCallProps) => react_jsx_runtime.JSX.Element;
|
|
978
|
+
|
|
979
|
+
interface IOutgoingCallProps {
|
|
980
|
+
call: CometChat.Call;
|
|
981
|
+
disableSoundForCalls?: boolean;
|
|
982
|
+
customSoundForCalls?: string;
|
|
983
|
+
declineButtonText?: string;
|
|
984
|
+
declineButtonIconURL?: string;
|
|
985
|
+
customView?: any;
|
|
986
|
+
onError?: Function;
|
|
987
|
+
avatarStyle?: AvatarStyle;
|
|
988
|
+
outgoingCallStyle?: OutgoingCallStyle;
|
|
989
|
+
onCloseClicked?: Function;
|
|
990
|
+
}
|
|
991
|
+
declare const CometChatOutgoingCall: (props: IOutgoingCallProps) => react_jsx_runtime.JSX.Element;
|
|
992
|
+
|
|
993
|
+
interface ICallLogsProps {
|
|
994
|
+
title?: string;
|
|
995
|
+
titleAlignment?: TitleAlignment;
|
|
996
|
+
listItemView?: any;
|
|
997
|
+
subtitleView?: any;
|
|
998
|
+
tailView?: any;
|
|
999
|
+
emptyStateView?: any;
|
|
1000
|
+
errorStateView?: any;
|
|
1001
|
+
loadingStateView?: any;
|
|
1002
|
+
emptyStateText?: string;
|
|
1003
|
+
errorStateText?: string;
|
|
1004
|
+
loadingIconURL?: string;
|
|
1005
|
+
incomingAudioCallIconUrl?: string;
|
|
1006
|
+
incomingVideoCallIconUrl?: string;
|
|
1007
|
+
outgoingAudioCallIconUrl?: string;
|
|
1008
|
+
outgoingVideoCallIconUrl?: string;
|
|
1009
|
+
missedAudioCallIconUrl?: string;
|
|
1010
|
+
missedVideoCallIconUrl?: string;
|
|
1011
|
+
infoIconUrl?: string;
|
|
1012
|
+
activeCall?: any;
|
|
1013
|
+
callLogRequestBuilder?: any;
|
|
1014
|
+
onItemClick?: Function;
|
|
1015
|
+
onInfoClick?: Function;
|
|
1016
|
+
onError?: Function;
|
|
1017
|
+
hideSeparator?: boolean;
|
|
1018
|
+
datePattern?: DatePatterns;
|
|
1019
|
+
dateSeparatorPattern?: DatePatterns;
|
|
1020
|
+
callLogsStyle?: CallLogsStyle;
|
|
1021
|
+
avatarStyle?: AvatarStyle;
|
|
1022
|
+
listItemStyle?: ListItemStyle;
|
|
1023
|
+
outgoingCallConfiguration?: OutgoingCallConfiguration;
|
|
1024
|
+
}
|
|
1025
|
+
declare const CometChatCallLogs: (props: ICallLogsProps) => react_jsx_runtime.JSX.Element;
|
|
1026
|
+
|
|
1027
|
+
interface ICallLogDetailsProps {
|
|
1028
|
+
title?: string;
|
|
1029
|
+
backIconUrl?: string;
|
|
1030
|
+
call: CometChat.Call;
|
|
1031
|
+
onBackClick?: Function;
|
|
1032
|
+
avatarStyle?: AvatarStyle;
|
|
1033
|
+
data?: (callLog: any, loggedInUser: CometChat.User, theme: CometChatTheme) => CometChatDetailsTemplate[];
|
|
1034
|
+
callLogHistoryConfiguration?: CallLogHistoryConfiguration;
|
|
1035
|
+
callLogParticipantsConfiguration?: CallLogParticipantsConfiguration;
|
|
1036
|
+
callLogRecordingsConfiguration?: CallLogRecordingsConfiguration;
|
|
1037
|
+
callLogDetailsStyle?: CallLogDetailsStyle;
|
|
1038
|
+
}
|
|
1039
|
+
declare const CometChatCallLogDetails: (props: ICallLogDetailsProps) => react_jsx_runtime.JSX.Element;
|
|
1040
|
+
|
|
1041
|
+
interface ICallLogHistoryProps {
|
|
1042
|
+
title?: string;
|
|
1043
|
+
emptyStateText?: string;
|
|
1044
|
+
errorStateText?: string;
|
|
1045
|
+
backIconUrl?: string;
|
|
1046
|
+
loadingIconURL?: string;
|
|
1047
|
+
emptyStateView?: any;
|
|
1048
|
+
loadingStateView?: any;
|
|
1049
|
+
errorStateView?: any;
|
|
1050
|
+
subtitleView?: any;
|
|
1051
|
+
tailView?: any;
|
|
1052
|
+
callLogRequestBuilder?: any;
|
|
1053
|
+
callUser?: any;
|
|
1054
|
+
callGroup?: any;
|
|
1055
|
+
onItemClick?: Function;
|
|
1056
|
+
onBackClick?: Function;
|
|
1057
|
+
onError?: Function;
|
|
1058
|
+
datePattern?: DatePatterns;
|
|
1059
|
+
dateSeparatorPattern?: DatePatterns;
|
|
1060
|
+
listItemStyle?: ListItemStyle;
|
|
1061
|
+
callLogHistoryStyle?: CallLogHistoryStyle;
|
|
1062
|
+
}
|
|
1063
|
+
declare const CometChatCallLogHistory: (props: ICallLogHistoryProps) => react_jsx_runtime.JSX.Element;
|
|
1064
|
+
|
|
1065
|
+
interface ICallLogParticipantsProps {
|
|
1066
|
+
title?: string;
|
|
1067
|
+
backIconUrl?: string;
|
|
1068
|
+
call: any;
|
|
1069
|
+
datePattern?: DatePatterns;
|
|
1070
|
+
avatarStyle?: AvatarStyle;
|
|
1071
|
+
listItemStyle?: ListItemStyle;
|
|
1072
|
+
callLogParticipantsStyle?: CallLogParticipantsStyle;
|
|
1073
|
+
listItemView?: any;
|
|
1074
|
+
subtitleView?: any;
|
|
1075
|
+
tailView?: any;
|
|
1076
|
+
onBackClick?: Function;
|
|
1077
|
+
onItemClick?: Function;
|
|
1078
|
+
}
|
|
1079
|
+
declare const CometChatCallLogParticipants: (props: ICallLogParticipantsProps) => react_jsx_runtime.JSX.Element;
|
|
1080
|
+
|
|
1081
|
+
interface ICallLogRecordingsProps {
|
|
1082
|
+
title?: string;
|
|
1083
|
+
backIconUrl?: string;
|
|
1084
|
+
downloadIconUrl?: string;
|
|
1085
|
+
hideDownloadButton?: boolean;
|
|
1086
|
+
call: any;
|
|
1087
|
+
datePattern?: DatePatterns;
|
|
1088
|
+
listItemStyle?: ListItemStyle;
|
|
1089
|
+
callLogRecordingsStyle?: CallLogRecordingsStyle;
|
|
1090
|
+
onBackClick?: Function;
|
|
1091
|
+
onItemClick?: Function;
|
|
1092
|
+
onDownloadClick?: Function;
|
|
1093
|
+
listItemView?: any;
|
|
1094
|
+
subtitleView?: any;
|
|
1095
|
+
tailView?: any;
|
|
1096
|
+
}
|
|
1097
|
+
declare const CometChatCallLogRecordings: (props: ICallLogRecordingsProps) => react_jsx_runtime.JSX.Element;
|
|
1098
|
+
|
|
1099
|
+
interface ICallLogWithDetailsProps {
|
|
1100
|
+
isMobileView?: boolean;
|
|
1101
|
+
messageText?: string;
|
|
1102
|
+
withDetailsStyle?: WithDetailsStyle;
|
|
1103
|
+
callLogDetailsConfiguration?: CallLogDetailsConfiguration;
|
|
1104
|
+
callLogsConfiguration?: CallLogsConfiguration;
|
|
1105
|
+
}
|
|
1106
|
+
declare const CometChatCallLogsWithDetails: (props: ICallLogWithDetailsProps) => react_jsx_runtime.JSX.Element;
|
|
1107
|
+
|
|
1108
|
+
interface IAddMembersProps {
|
|
1109
|
+
/**
|
|
1110
|
+
* Image URL for the back button
|
|
1111
|
+
*
|
|
1112
|
+
* @remarks
|
|
1113
|
+
* This prop will also be used if `backButton` prop is not provided
|
|
1114
|
+
*
|
|
1115
|
+
* @defaultValue `./assets/backbutton.svg`
|
|
1116
|
+
*/
|
|
1117
|
+
backButtonIconURL?: string;
|
|
1118
|
+
/**
|
|
1119
|
+
* Show back button
|
|
1120
|
+
*
|
|
1121
|
+
* @defaultValue `true`
|
|
1122
|
+
*/
|
|
1123
|
+
showBackButton?: boolean;
|
|
1124
|
+
/**
|
|
1125
|
+
* Function to call when the back button is clicked
|
|
1126
|
+
*/
|
|
1127
|
+
onBack?: () => void;
|
|
1128
|
+
/**
|
|
1129
|
+
* Title of the component
|
|
1130
|
+
*
|
|
1131
|
+
* @defaultValue `localize("ADD_MEMBERS")`
|
|
1132
|
+
*/
|
|
1133
|
+
title?: string;
|
|
1134
|
+
/**
|
|
1135
|
+
* Alignment of the `title` text
|
|
1136
|
+
*
|
|
1137
|
+
* @defaultValue `TitleAlignment.center`
|
|
1138
|
+
*/
|
|
1139
|
+
titleAlignment?: TitleAlignment;
|
|
1140
|
+
/**
|
|
1141
|
+
* Hide the search bar
|
|
1142
|
+
*
|
|
1143
|
+
* @defaulValue `false`
|
|
1144
|
+
*/
|
|
1145
|
+
hideSearch?: boolean;
|
|
1146
|
+
/**
|
|
1147
|
+
* Image URL for the search icon to use in the search bar
|
|
1148
|
+
*
|
|
1149
|
+
* @defaultValue `./assets/search.svg`
|
|
1150
|
+
*/
|
|
1151
|
+
searchIconURL?: string;
|
|
1152
|
+
/**
|
|
1153
|
+
* Text to be displayed when the search input has no value
|
|
1154
|
+
*
|
|
1155
|
+
* @defaultValue `localize("SEARCH")`
|
|
1156
|
+
*/
|
|
1157
|
+
searchPlaceholder?: string;
|
|
1158
|
+
/**
|
|
1159
|
+
* Show alphabetical header
|
|
1160
|
+
*
|
|
1161
|
+
* @defaultValue `false`
|
|
1162
|
+
*/
|
|
1163
|
+
showSectionHeader?: boolean;
|
|
1164
|
+
/**
|
|
1165
|
+
* Property on the user object
|
|
1166
|
+
*
|
|
1167
|
+
* @remarks
|
|
1168
|
+
* This property will be used to extract the section header character from the user object
|
|
1169
|
+
*
|
|
1170
|
+
* @defaultValue `getName`
|
|
1171
|
+
*/
|
|
1172
|
+
sectionHeaderField?: keyof CometChat.User;
|
|
1173
|
+
/**
|
|
1174
|
+
* Image URL for the default loading view
|
|
1175
|
+
*
|
|
1176
|
+
* @defaultValue `./assets/spinner.svg`
|
|
1177
|
+
*/
|
|
1178
|
+
loadingIconURL?: string;
|
|
1179
|
+
/**
|
|
1180
|
+
* Custom view for the loading state of the component
|
|
1181
|
+
*/
|
|
1182
|
+
loadingStateView?: JSX$1.Element;
|
|
1183
|
+
/**
|
|
1184
|
+
* Text to display in the default empty view
|
|
1185
|
+
*
|
|
1186
|
+
* @defaultValue `localize("NO_USERS_FOUND")`
|
|
1187
|
+
*/
|
|
1188
|
+
emptyStateText?: string;
|
|
1189
|
+
/**
|
|
1190
|
+
* Custom view for the empty state of the component
|
|
1191
|
+
*/
|
|
1192
|
+
emptyStateView?: JSX$1.Element;
|
|
1193
|
+
/**
|
|
1194
|
+
* Text to display in the default error view
|
|
1195
|
+
*
|
|
1196
|
+
* @defaultValue `localize("SOMETHING_WRONG")`
|
|
1197
|
+
*/
|
|
1198
|
+
errorStateText?: string;
|
|
1199
|
+
/**
|
|
1200
|
+
* Custom view for the error state of the component
|
|
1201
|
+
*/
|
|
1202
|
+
errorStateView?: JSX$1.Element;
|
|
1203
|
+
/**
|
|
1204
|
+
* Hide error view
|
|
1205
|
+
*
|
|
1206
|
+
* @remarks
|
|
1207
|
+
* If set to true, hides the default and the custom error view
|
|
1208
|
+
*
|
|
1209
|
+
* @defaultValue `false`
|
|
1210
|
+
*/
|
|
1211
|
+
hideError?: boolean;
|
|
1212
|
+
/**
|
|
1213
|
+
* Hide user presence
|
|
1214
|
+
*
|
|
1215
|
+
* @remarks
|
|
1216
|
+
* If set to true, the status indicator of the default list item view is not displayed
|
|
1217
|
+
*
|
|
1218
|
+
* @defaultValue `false`
|
|
1219
|
+
*/
|
|
1220
|
+
disableUsersPresence?: boolean;
|
|
1221
|
+
/**
|
|
1222
|
+
* Hide the separator at the bottom of the default list item view
|
|
1223
|
+
*
|
|
1224
|
+
* @defaultValue `false`
|
|
1225
|
+
*/
|
|
1226
|
+
hideSeparator?: boolean;
|
|
1227
|
+
/**
|
|
1228
|
+
* Function to call whenever the component encounters an error
|
|
1229
|
+
*/
|
|
1230
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
1231
|
+
/**
|
|
1232
|
+
* Custom view to render on the top-right of the component
|
|
1233
|
+
*/
|
|
1234
|
+
menus?: JSX$1.Element;
|
|
1235
|
+
/**
|
|
1236
|
+
* List of actions available on mouse over on the default list item component
|
|
1237
|
+
*/
|
|
1238
|
+
options?: (user: CometChat.User) => CometChatOption[];
|
|
1239
|
+
/**
|
|
1240
|
+
* Selection mode to use for the default tail view
|
|
1241
|
+
*
|
|
1242
|
+
* @remarks
|
|
1243
|
+
* This prop is used if `listItemView` prop is not provided.
|
|
1244
|
+
*
|
|
1245
|
+
* @defaultValue `SelectionMode.multiple`
|
|
1246
|
+
*/
|
|
1247
|
+
selectionMode?: SelectionMode;
|
|
1248
|
+
/**
|
|
1249
|
+
* Function to call when a user from the fetched list is selected
|
|
1250
|
+
*
|
|
1251
|
+
* @remarks
|
|
1252
|
+
* This prop is used if `selectionMode` prop is not `SelectionMode.none`
|
|
1253
|
+
*/
|
|
1254
|
+
onSelect?: (user: CometChat.User, selected: boolean) => void;
|
|
1255
|
+
/**
|
|
1256
|
+
* Request builder to fetch users
|
|
1257
|
+
*
|
|
1258
|
+
* @remarks
|
|
1259
|
+
* If the search input is not empty and the `searchRequestBuilder` prop is not provided,
|
|
1260
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
1261
|
+
*
|
|
1262
|
+
* @defaultValue Default request builder having the limit set to 30
|
|
1263
|
+
*/
|
|
1264
|
+
usersRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
1265
|
+
/**
|
|
1266
|
+
* Request builder with search parameters to fetch users
|
|
1267
|
+
*
|
|
1268
|
+
* @remarks
|
|
1269
|
+
* If the search input is not empty,
|
|
1270
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
1271
|
+
*/
|
|
1272
|
+
searchRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
1273
|
+
/**
|
|
1274
|
+
* Custom list item view to be rendered for each user in the fetched list
|
|
1275
|
+
*/
|
|
1276
|
+
listItemView?: (user: CometChat.User) => JSX$1.Element;
|
|
1277
|
+
/**
|
|
1278
|
+
* Custom subtitle view to be rendered for each user in the fetched list
|
|
1279
|
+
*
|
|
1280
|
+
* @remarks
|
|
1281
|
+
* This prop is used if `listItemView` prop is not provided
|
|
1282
|
+
*/
|
|
1283
|
+
subtitleView?: (user: CometChat.User) => JSX$1.Element;
|
|
1284
|
+
/**
|
|
1285
|
+
* Group to add members to
|
|
1286
|
+
*/
|
|
1287
|
+
group: CometChat.Group;
|
|
1288
|
+
/**
|
|
1289
|
+
* Function to call when add button of the component is clicked
|
|
1290
|
+
*
|
|
1291
|
+
* @remarks
|
|
1292
|
+
* This function won't be call if no users are selected
|
|
1293
|
+
*/
|
|
1294
|
+
onAddMembersButtonClick?: (guid: string, membersToAdd: CometChat.GroupMember[]) => void;
|
|
1295
|
+
/**
|
|
1296
|
+
* Text to display for the default add button
|
|
1297
|
+
*
|
|
1298
|
+
* @defaultValue `localize("ADD_MEMBERS")`
|
|
1299
|
+
*/
|
|
1300
|
+
buttonText?: string;
|
|
1301
|
+
/**
|
|
1302
|
+
* Image URL for the close button
|
|
1303
|
+
*
|
|
1304
|
+
* @defaultValue `./assets/close2x.svg`
|
|
1305
|
+
*/
|
|
1306
|
+
closeButtonIconURL?: string;
|
|
1307
|
+
/**
|
|
1308
|
+
* Function to call when the close button is clicked
|
|
1309
|
+
*/
|
|
1310
|
+
onClose?: () => void;
|
|
1311
|
+
/**
|
|
1312
|
+
* Styles to apply to the status indicator component of the default list item view
|
|
1313
|
+
*/
|
|
1314
|
+
statusIndicatorStyle?: CSSProperties;
|
|
1315
|
+
/**
|
|
1316
|
+
* Styles to apply to the avatar component of the default list item view
|
|
1317
|
+
*/
|
|
1318
|
+
avatarStyle?: AvatarStyle;
|
|
1319
|
+
/**
|
|
1320
|
+
* Styles to apply to the default list item view
|
|
1321
|
+
*/
|
|
1322
|
+
listItemStyle?: ListItemStyle;
|
|
1323
|
+
/**
|
|
1324
|
+
* Styles to apply to this component
|
|
1325
|
+
*/
|
|
1326
|
+
addMembersStyle?: AddMembersStyle;
|
|
1327
|
+
}
|
|
1328
|
+
/**
|
|
1329
|
+
* Renders a scrollable list of users to add to a group of a CometChat App
|
|
1330
|
+
*/
|
|
1331
|
+
declare function CometChatAddMembers(props: IAddMembersProps): react_jsx_runtime.JSX.Element;
|
|
1332
|
+
|
|
1333
|
+
interface IBannedMembersProps {
|
|
1334
|
+
/**
|
|
1335
|
+
* Image URL for the back button
|
|
1336
|
+
*
|
|
1337
|
+
* @defaultValue `./assets/backbutton.svg`
|
|
1338
|
+
*/
|
|
1339
|
+
backButtonIconURL?: string;
|
|
1340
|
+
/**
|
|
1341
|
+
* Show back button
|
|
1342
|
+
*
|
|
1343
|
+
* @defaultValue `true`
|
|
1344
|
+
*/
|
|
1345
|
+
showBackButton?: boolean;
|
|
1346
|
+
/**
|
|
1347
|
+
* Function to call when the back button is clicked
|
|
1348
|
+
*/
|
|
1349
|
+
onBack?: () => void;
|
|
1350
|
+
/**
|
|
1351
|
+
* Custom view to render on the top-right of the component
|
|
1352
|
+
*/
|
|
1353
|
+
menus?: JSX$1.Element;
|
|
1354
|
+
/**
|
|
1355
|
+
* Title of the component
|
|
1356
|
+
*
|
|
1357
|
+
* @defaultValue `localize("BANNED_MEMBERS")`
|
|
1358
|
+
*/
|
|
1359
|
+
title?: string;
|
|
1360
|
+
/**
|
|
1361
|
+
* Alignment of the `title` text
|
|
1362
|
+
*
|
|
1363
|
+
* @defaultValue `TitleAlignment.center`
|
|
1364
|
+
*/
|
|
1365
|
+
titleAlignment?: TitleAlignment;
|
|
1366
|
+
/**
|
|
1367
|
+
* Text to be displayed when the search input has no value
|
|
1368
|
+
*
|
|
1369
|
+
* @defaultValue `localize("SEARCH")`
|
|
1370
|
+
*/
|
|
1371
|
+
searchPlaceholder?: string;
|
|
1372
|
+
/**
|
|
1373
|
+
* Image URL for the search icon to use in the search bar
|
|
1374
|
+
*
|
|
1375
|
+
* @defaultValue `./assets/search.svg`
|
|
1376
|
+
*/
|
|
1377
|
+
searchIconURL?: string;
|
|
1378
|
+
/**
|
|
1379
|
+
* Hide the search bar
|
|
1380
|
+
*
|
|
1381
|
+
* @defaulValue `true`
|
|
1382
|
+
*/
|
|
1383
|
+
hideSearch?: boolean;
|
|
1384
|
+
/**
|
|
1385
|
+
* Image URL for the default loading view
|
|
1386
|
+
*
|
|
1387
|
+
* @defaultValue `./assets/spinner.svg`
|
|
1388
|
+
*/
|
|
1389
|
+
loadingIconURL?: string;
|
|
1390
|
+
/**
|
|
1391
|
+
* Custom view for the loading state of the component
|
|
1392
|
+
*/
|
|
1393
|
+
loadingStateView?: JSX$1.Element;
|
|
1394
|
+
/**
|
|
1395
|
+
* Text to display in the default empty view
|
|
1396
|
+
*
|
|
1397
|
+
* @defaultValue `localize("")`
|
|
1398
|
+
*/
|
|
1399
|
+
emptyStateText?: string;
|
|
1400
|
+
/**
|
|
1401
|
+
* Custom view for the empty state of the component
|
|
1402
|
+
*/
|
|
1403
|
+
emptyStateView?: JSX$1.Element;
|
|
1404
|
+
/**
|
|
1405
|
+
* Text to display in the default error view
|
|
1406
|
+
*
|
|
1407
|
+
* @defaultValue `localize("SOMETHING_WRONG")`
|
|
1408
|
+
*/
|
|
1409
|
+
errorStateText?: string;
|
|
1410
|
+
/**
|
|
1411
|
+
* Custom view for the error state of the component
|
|
1412
|
+
*/
|
|
1413
|
+
errorStateView?: JSX$1.Element;
|
|
1414
|
+
/**
|
|
1415
|
+
* Function to call whenever the component encounters an error
|
|
1416
|
+
*/
|
|
1417
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
1418
|
+
/**
|
|
1419
|
+
* Group to ban members from
|
|
1420
|
+
*/
|
|
1421
|
+
group: CometChat.Group;
|
|
1422
|
+
/**
|
|
1423
|
+
* Request builder to fetch banned members
|
|
1424
|
+
*
|
|
1425
|
+
* @remarks
|
|
1426
|
+
* If the search input is not empty and the `searchRequestBuilder` prop is not provided,
|
|
1427
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
1428
|
+
*
|
|
1429
|
+
* @defaultValue Default request builder having the limit set to 30
|
|
1430
|
+
*/
|
|
1431
|
+
bannedMembersRequestBuilder?: CometChat.BannedMembersRequestBuilder;
|
|
1432
|
+
/**
|
|
1433
|
+
* Request builder with search parameters to fetch banned members
|
|
1434
|
+
*
|
|
1435
|
+
* @remarks
|
|
1436
|
+
* If the search input is not empty,
|
|
1437
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
1438
|
+
*/
|
|
1439
|
+
searchRequestBuilder?: CometChat.BannedMembersRequestBuilder;
|
|
1440
|
+
/**
|
|
1441
|
+
* Custom list item view to be rendered for each banned member in the fetched list
|
|
1442
|
+
*/
|
|
1443
|
+
listItemView?: (bannedMember: CometChat.GroupMember) => JSX$1.Element;
|
|
1444
|
+
/**
|
|
1445
|
+
* Hide the separator at the bottom of the default list item view
|
|
1446
|
+
*
|
|
1447
|
+
* @defaultValue `false`
|
|
1448
|
+
*/
|
|
1449
|
+
hideSeparator?: boolean;
|
|
1450
|
+
/**
|
|
1451
|
+
* Hide user presence
|
|
1452
|
+
*
|
|
1453
|
+
* @remarks
|
|
1454
|
+
* If set to true, the status indicator of the default list item view is not displayed
|
|
1455
|
+
*
|
|
1456
|
+
* @defaultValue `true`
|
|
1457
|
+
*/
|
|
1458
|
+
disableUsersPresence?: boolean;
|
|
1459
|
+
/**
|
|
1460
|
+
* Image URL for the close button
|
|
1461
|
+
*
|
|
1462
|
+
* @defaultValue `./assets/close2x.svg`
|
|
1463
|
+
*/
|
|
1464
|
+
closeButtonIconURL?: string;
|
|
1465
|
+
/**
|
|
1466
|
+
* Function to call when the close button is clicked
|
|
1467
|
+
*/
|
|
1468
|
+
onClose?: () => void;
|
|
1469
|
+
/**
|
|
1470
|
+
* Custom subtitle view to be rendered for each banned member in the fetched list
|
|
1471
|
+
*
|
|
1472
|
+
* @remarks
|
|
1473
|
+
* This prop is used if `listItemView` prop is not provided
|
|
1474
|
+
*/
|
|
1475
|
+
subtitleView?: (bannedMember: CometChat.GroupMember) => JSX$1.Element;
|
|
1476
|
+
/**
|
|
1477
|
+
* List of actions available on mouse over on the default list item component
|
|
1478
|
+
*/
|
|
1479
|
+
options?: (bannedMember: CometChat.GroupMember) => CometChatOption[];
|
|
1480
|
+
/**
|
|
1481
|
+
* Selection mode to use for the default tail view
|
|
1482
|
+
*
|
|
1483
|
+
* @remarks
|
|
1484
|
+
* This prop is used if `listItemView` prop is not provided.
|
|
1485
|
+
*
|
|
1486
|
+
* @defaultValue `SelectionMode.none`
|
|
1487
|
+
*/
|
|
1488
|
+
selectionMode?: SelectionMode;
|
|
1489
|
+
/**
|
|
1490
|
+
*
|
|
1491
|
+
*/
|
|
1492
|
+
unbanIconURL?: string;
|
|
1493
|
+
/**
|
|
1494
|
+
* Function to call on click of the default list item view of a banned member
|
|
1495
|
+
*/
|
|
1496
|
+
onItemClick?: (bannedMember: CometChat.GroupMember) => void;
|
|
1497
|
+
/**
|
|
1498
|
+
* Function to call when a banned member from the fetched list is selected
|
|
1499
|
+
*
|
|
1500
|
+
* @remarks
|
|
1501
|
+
* This prop is used if `selectionMode` prop is not `SelectionMode.none`
|
|
1502
|
+
*/
|
|
1503
|
+
onSelect?: (bannedMember: CometChat.GroupMember, selected: boolean) => void;
|
|
1504
|
+
/**
|
|
1505
|
+
* Hide error view
|
|
1506
|
+
*
|
|
1507
|
+
* @remarks
|
|
1508
|
+
* If set to true, hides the default and the custom error view
|
|
1509
|
+
*
|
|
1510
|
+
* @defaultValue `false`
|
|
1511
|
+
*/
|
|
1512
|
+
hideError?: boolean;
|
|
1513
|
+
/**
|
|
1514
|
+
* Styles to apply to the status indicator component of the default list item view
|
|
1515
|
+
*/
|
|
1516
|
+
statusIndicatorStyle?: CSSProperties;
|
|
1517
|
+
/**
|
|
1518
|
+
* Styles to apply to the avatar component of the default list item view
|
|
1519
|
+
*/
|
|
1520
|
+
avatarStyle?: AvatarStyle;
|
|
1521
|
+
/**
|
|
1522
|
+
* Styles to apply to the default list item view
|
|
1523
|
+
*/
|
|
1524
|
+
listItemStyle?: ListItemStyle;
|
|
1525
|
+
/**
|
|
1526
|
+
* Styles to apply to this component
|
|
1527
|
+
*/
|
|
1528
|
+
bannedMemberStyle?: BannedMembersStyle;
|
|
1529
|
+
}
|
|
1530
|
+
/**
|
|
1531
|
+
* Renders a scrollable list of banned members related to a group of a CometChat App
|
|
1532
|
+
*/
|
|
1533
|
+
declare function CometChatBannedMembers(props: IBannedMembersProps): react_jsx_runtime.JSX.Element;
|
|
1534
|
+
|
|
1535
|
+
interface IConversationsProps {
|
|
1536
|
+
/**
|
|
1537
|
+
* Custom view to render on the top-right of the component
|
|
1538
|
+
*/
|
|
1539
|
+
menus?: JSX$1.Element;
|
|
1540
|
+
/**
|
|
1541
|
+
* Title of the component
|
|
1542
|
+
*
|
|
1543
|
+
* @defaultValue `localize("CHATS")`
|
|
1544
|
+
*/
|
|
1545
|
+
title?: string;
|
|
1546
|
+
/**
|
|
1547
|
+
* Alignment of the `title` text
|
|
1548
|
+
*
|
|
1549
|
+
* @defaultValue `TitleAlignment.left`
|
|
1550
|
+
*/
|
|
1551
|
+
titleAlignment?: TitleAlignment;
|
|
1552
|
+
/**
|
|
1553
|
+
* Request builder to fetch conversations
|
|
1554
|
+
* @defaultValue Default request builder having the limit set to 30
|
|
1555
|
+
*/
|
|
1556
|
+
conversationsRequestBuilder?: CometChat.ConversationsRequestBuilder;
|
|
1557
|
+
/**
|
|
1558
|
+
* Function to call whenever the component encounters an error
|
|
1559
|
+
*/
|
|
1560
|
+
onError?: (error: CometChat.CometChatException) => void;
|
|
1561
|
+
/**
|
|
1562
|
+
* Custom list item view to be rendered for each conversation in the fetched list
|
|
1563
|
+
*/
|
|
1564
|
+
listItemView?: (conversation: CometChat.Conversation) => JSX$1.Element;
|
|
1565
|
+
/**
|
|
1566
|
+
* Custom subtitle view to be rendered for each conversation in the fetched list
|
|
1567
|
+
*
|
|
1568
|
+
* @remarks
|
|
1569
|
+
* This prop is used if `listItemView` prop is not provided
|
|
1570
|
+
*/
|
|
1571
|
+
subtitleView?: (conversation: CometChat.Conversation) => JSX$1.Element;
|
|
1572
|
+
/**
|
|
1573
|
+
* Hide user presence
|
|
1574
|
+
*
|
|
1575
|
+
* @remarks
|
|
1576
|
+
* If set to true, the status indicator of the default list item view is not displayed for conversation objects related to users
|
|
1577
|
+
*
|
|
1578
|
+
* @defaultValue `false`
|
|
1579
|
+
*/
|
|
1580
|
+
disableUsersPresence?: boolean;
|
|
1581
|
+
/**
|
|
1582
|
+
* Hide the separator at the bottom of the default list item view
|
|
1583
|
+
*
|
|
1584
|
+
* @defaultValue `false`
|
|
1585
|
+
*/
|
|
1586
|
+
hideSeparator?: boolean;
|
|
1587
|
+
/**
|
|
1588
|
+
* Conversation to highlight
|
|
1589
|
+
*
|
|
1590
|
+
* @remarks
|
|
1591
|
+
* This prop is used if `listItemView` prop is not provided
|
|
1592
|
+
*/
|
|
1593
|
+
activeConversation?: CometChat.Conversation;
|
|
1594
|
+
/**
|
|
1595
|
+
* Selection mode to use for the default tail view
|
|
1596
|
+
*
|
|
1597
|
+
* @remarks
|
|
1598
|
+
* This prop is used if `listItemView` prop is not provided.
|
|
1599
|
+
*
|
|
1600
|
+
* @defaultValue `SelectionMode.none`
|
|
1601
|
+
*/
|
|
1602
|
+
selectionMode?: SelectionMode;
|
|
1603
|
+
/**
|
|
1604
|
+
* @deprecated
|
|
1605
|
+
*
|
|
1606
|
+
* This property is deprecated as of version 4.3.19 due to newer property 'hideReceipt'. It will be removed in subsequent versions.
|
|
1607
|
+
*/
|
|
1608
|
+
/**
|
|
1609
|
+
* Disable receipt status
|
|
1610
|
+
*
|
|
1611
|
+
* @remarks
|
|
1612
|
+
* If set to true, the receipt status of the sent message won't be displayed, and received messages won't be marked as delivered
|
|
1613
|
+
*
|
|
1614
|
+
* @defaultValue `false`
|
|
1615
|
+
*/
|
|
1616
|
+
disableReceipt?: boolean;
|
|
1617
|
+
/**
|
|
1618
|
+
* hide receipt status
|
|
1619
|
+
*
|
|
1620
|
+
* @remarks
|
|
1621
|
+
* If set to true, the receipt status of the message won't be displayed
|
|
1622
|
+
*
|
|
1623
|
+
* @defaultValue `false`
|
|
1624
|
+
*/
|
|
1625
|
+
hideReceipt?: boolean;
|
|
1626
|
+
/**
|
|
1627
|
+
* List of actions available on mouse over on the default list item component
|
|
1628
|
+
*/
|
|
1629
|
+
options?: ((conversation: CometChat.Conversation) => CometChatOption[]) | null;
|
|
1630
|
+
/**
|
|
1631
|
+
* Date format for the date component
|
|
1632
|
+
*
|
|
1633
|
+
* @remarks
|
|
1634
|
+
* The date component is inside the tail view of the default list item view when `selectionMode` prop is set to `SelectionMode.none`
|
|
1635
|
+
*/
|
|
1636
|
+
datePattern?: DatePatterns;
|
|
1637
|
+
/**
|
|
1638
|
+
* @deprecated
|
|
1639
|
+
*
|
|
1640
|
+
* This property is deprecated as of version 4.3.8 due to newer property 'passwordGroupIcon'. It will be removed in subsequent versions.
|
|
1641
|
+
*/
|
|
1642
|
+
/**
|
|
1643
|
+
* Image URL for the status indicator icon in the default list item view of a conversation related to a password-protected group
|
|
1644
|
+
*
|
|
1645
|
+
* @defaultValue `./assets/locked.svg`
|
|
1646
|
+
*/
|
|
1647
|
+
protectedGroupIcon?: string;
|
|
1648
|
+
/**
|
|
1649
|
+
* Image URL for the status indicator icon in the default list item view of a conversation related to a password-protected group
|
|
1650
|
+
*
|
|
1651
|
+
* @defaultValue {undefined}
|
|
1652
|
+
*/
|
|
1653
|
+
passwordGroupIcon?: string;
|
|
1654
|
+
/**
|
|
1655
|
+
* Image URL for the status indicator icon in the default list item view of a conversation related to a private group
|
|
1656
|
+
*
|
|
1657
|
+
* @defaultValue `./assets/private.svg`
|
|
1658
|
+
*/
|
|
1659
|
+
privateGroupIcon?: string;
|
|
1660
|
+
/**
|
|
1661
|
+
* Image URL for the read status of the sent message
|
|
1662
|
+
*
|
|
1663
|
+
* @defaultValue `./assets/message-read.svg`
|
|
1664
|
+
*/
|
|
1665
|
+
readIcon?: string;
|
|
1666
|
+
/**
|
|
1667
|
+
* Image URL for the delivered status of the sent message
|
|
1668
|
+
*
|
|
1669
|
+
* @defaultValue `./assets/message-delivered.svg`
|
|
1670
|
+
*/
|
|
1671
|
+
deliveredIcon?: string;
|
|
1672
|
+
/**
|
|
1673
|
+
* Image URL for the wait status of the sent message
|
|
1674
|
+
*
|
|
1675
|
+
* @defaultValue `./assets/wait.svg`
|
|
1676
|
+
*/
|
|
1677
|
+
waitIcon?: string;
|
|
1678
|
+
/**
|
|
1679
|
+
* Image URL for the error status of the sent message
|
|
1680
|
+
*
|
|
1681
|
+
* @defaultValue `./assets/warning-small.svg`
|
|
1682
|
+
*/
|
|
1683
|
+
errorIcon?: string;
|
|
1684
|
+
/**
|
|
1685
|
+
* Image URL for the sent status of the sent message
|
|
1686
|
+
*
|
|
1687
|
+
* @defaultValue `./assets/message-sent.svg`
|
|
1688
|
+
*/
|
|
1689
|
+
sentIcon?: string;
|
|
1690
|
+
/**
|
|
1691
|
+
* Image URL for the default loading view
|
|
1692
|
+
*
|
|
1693
|
+
* @defaultValue `./assets/spinner.svg`
|
|
1694
|
+
*/
|
|
1695
|
+
loadingIconURL?: string;
|
|
1696
|
+
/**
|
|
1697
|
+
* Custom view for the loading state of the component
|
|
1698
|
+
*/
|
|
1699
|
+
loadingStateView?: JSX$1.Element;
|
|
1700
|
+
/**
|
|
1701
|
+
* Text to display in the default empty view
|
|
1702
|
+
*
|
|
1703
|
+
* @defaultValue `localize("NO_CHATS_FOUND")`
|
|
1704
|
+
*/
|
|
1705
|
+
emptyStateText?: string;
|
|
1706
|
+
/**
|
|
1707
|
+
* Custom view for the empty state of the component
|
|
1708
|
+
*/
|
|
1709
|
+
emptyStateView?: JSX$1.Element;
|
|
1710
|
+
/**
|
|
1711
|
+
* Text to display in the default error view
|
|
1712
|
+
*
|
|
1713
|
+
* @defaultValue `localize("SOMETHING_WRONG")`
|
|
1714
|
+
*/
|
|
1715
|
+
errorStateText?: string;
|
|
1716
|
+
/**
|
|
1717
|
+
* Custom view for the error state of the component
|
|
1718
|
+
*/
|
|
1719
|
+
errorStateView?: JSX$1.Element;
|
|
1720
|
+
/**
|
|
1721
|
+
* Hide error view
|
|
1722
|
+
*
|
|
1723
|
+
* @remarks
|
|
1724
|
+
* If set to true, hides the default and the custom error view
|
|
1725
|
+
*
|
|
1726
|
+
* @defaultValue `false`
|
|
1727
|
+
*/
|
|
1728
|
+
hideError?: boolean;
|
|
1729
|
+
/**
|
|
1730
|
+
* Function to call on click of the default list item view of a conversation
|
|
1731
|
+
*/
|
|
1732
|
+
onItemClick?: (conversation: CometChat.Conversation) => void;
|
|
1733
|
+
/**
|
|
1734
|
+
* Function to call when a conversation from the fetched list is selected
|
|
1735
|
+
*
|
|
1736
|
+
* @remarks
|
|
1737
|
+
* This prop is used if `selectionMode` prop is not `SelectionMode.none`
|
|
1738
|
+
*/
|
|
1739
|
+
onSelect?: (conversation: CometChat.Conversation, selected: boolean) => void;
|
|
1740
|
+
/**
|
|
1741
|
+
* Disable sound for incoming messages
|
|
1742
|
+
*
|
|
1743
|
+
* @defaulValue `false`
|
|
1744
|
+
*/
|
|
1745
|
+
disableSoundForMessages?: boolean;
|
|
1746
|
+
/**
|
|
1747
|
+
* Disable typing indicator display
|
|
1748
|
+
*
|
|
1749
|
+
* @defaultValue `false`
|
|
1750
|
+
*/
|
|
1751
|
+
disableTyping?: boolean;
|
|
1752
|
+
/**
|
|
1753
|
+
* Custom audio sound for incoming messages
|
|
1754
|
+
*/
|
|
1755
|
+
customSoundForMessages?: string;
|
|
1756
|
+
/**
|
|
1757
|
+
* Styles to apply to this component
|
|
1758
|
+
*/
|
|
1759
|
+
conversationsStyle?: ConversationsStyle;
|
|
1760
|
+
/**
|
|
1761
|
+
* Styles to apply to the delete conversation dialog component
|
|
1762
|
+
*/
|
|
1763
|
+
deleteConversationDialogStyle?: ConfirmDialogStyle;
|
|
1764
|
+
/**
|
|
1765
|
+
* Styles to apply to the avatar component of the default list item view
|
|
1766
|
+
*/
|
|
1767
|
+
avatarStyle?: AvatarStyle;
|
|
1768
|
+
/**
|
|
1769
|
+
* Styles to apply to the status indicator component of the default list item view
|
|
1770
|
+
*/
|
|
1771
|
+
statusIndicatorStyle?: CSSProperties;
|
|
1772
|
+
/**
|
|
1773
|
+
* Styles to apply to the default list item view
|
|
1774
|
+
*/
|
|
1775
|
+
listItemStyle?: ListItemStyle;
|
|
1776
|
+
/**
|
|
1777
|
+
* Styles to apply to the badge component
|
|
1778
|
+
*
|
|
1779
|
+
* @remarks
|
|
1780
|
+
* The badge component is inside the tail view of the default list item view when `selectionMode` prop is set to `SelectionMode.none`
|
|
1781
|
+
*/
|
|
1782
|
+
badgeStyle?: BadgeStyle;
|
|
1783
|
+
/**
|
|
1784
|
+
* Styles to apply to the receipt component
|
|
1785
|
+
*
|
|
1786
|
+
* @remarks
|
|
1787
|
+
* The receipt component is rendered conditionally inside the subtitle view of the default list item view
|
|
1788
|
+
*/
|
|
1789
|
+
receiptStyle?: ReceiptStyle;
|
|
1790
|
+
/**
|
|
1791
|
+
* Styles to apply to the date component
|
|
1792
|
+
*
|
|
1793
|
+
* @remarks
|
|
1794
|
+
* The date component is inside the tail view of the default list item view when `selectionMode` prop is set to `SelectionMode.none`
|
|
1795
|
+
*/
|
|
1796
|
+
dateStyle?: DateStyle;
|
|
1797
|
+
/**
|
|
1798
|
+
* Styles to apply to the backdrop component
|
|
1799
|
+
*/
|
|
1800
|
+
backdropStyle?: BaseStyle;
|
|
1801
|
+
confirmDialogTitle?: string;
|
|
1802
|
+
confirmDialogMessage?: string;
|
|
1803
|
+
cancelButtonText?: string;
|
|
1804
|
+
confirmButtonText?: string;
|
|
1805
|
+
disableMentions?: boolean;
|
|
1806
|
+
textFormatters?: CometChatTextFormatter[];
|
|
1807
|
+
}
|
|
1808
|
+
/**
|
|
1809
|
+
* Renders a scrollable list of conversations that has been created in a CometChat app
|
|
1810
|
+
*/
|
|
1811
|
+
declare function CometChatConversations(props: IConversationsProps): react_jsx_runtime.JSX.Element;
|
|
1812
|
+
|
|
1813
|
+
interface IConversationsWithMessagesProps {
|
|
1814
|
+
user?: CometChat.User;
|
|
1815
|
+
group?: CometChat.Group;
|
|
1816
|
+
isMobileView?: boolean;
|
|
1817
|
+
messageText?: string;
|
|
1818
|
+
conversationsWithMessagesStyle?: WithMessagesStyle;
|
|
1819
|
+
messagesConfiguration?: MessagesConfiguration;
|
|
1820
|
+
conversationsConfiguration?: ConversationsConfiguration;
|
|
1821
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
1822
|
+
startConversationConfiguration?: ContactsConfiguration;
|
|
1823
|
+
startConversationIconURL?: string;
|
|
1824
|
+
}
|
|
1825
|
+
declare const CometChatConversationsWithMessages: (props: IConversationsWithMessagesProps) => react_jsx_runtime.JSX.Element;
|
|
1826
|
+
|
|
1827
|
+
interface IDetailsProps {
|
|
1828
|
+
/**
|
|
1829
|
+
* User to display details of
|
|
1830
|
+
*/
|
|
1831
|
+
user?: CometChat.User;
|
|
1832
|
+
/**
|
|
1833
|
+
* Group to display details of
|
|
1834
|
+
*
|
|
1835
|
+
* @remarks
|
|
1836
|
+
* This prop is used if `user` prop is not provided
|
|
1837
|
+
*/
|
|
1838
|
+
group?: CometChat.Group;
|
|
1839
|
+
/**
|
|
1840
|
+
* Custom profile view
|
|
1841
|
+
*
|
|
1842
|
+
* @remarks
|
|
1843
|
+
* This prop is used only if `hideProfile` is set to `false`
|
|
1844
|
+
*/
|
|
1845
|
+
customProfileView?: (user?: CometChat.User, group?: CometChat.Group) => JSX$1.Element;
|
|
1846
|
+
/**
|
|
1847
|
+
* Custom subtitle view for the `user` or `group` prop
|
|
1848
|
+
*
|
|
1849
|
+
* @remarks
|
|
1850
|
+
* This prop is used only if `hideProfile` is set `false` & `customProfileView` prop is not provided
|
|
1851
|
+
*/
|
|
1852
|
+
subtitleView?: (user?: CometChat.User, group?: CometChat.Group) => JSX$1.Element;
|
|
1853
|
+
/**
|
|
1854
|
+
* Title of the component
|
|
1855
|
+
*
|
|
1856
|
+
* @defaultValue `localize("DETAILS")`
|
|
1857
|
+
*/
|
|
1858
|
+
title?: string;
|
|
1859
|
+
/**
|
|
1860
|
+
* Image URL for the close button
|
|
1861
|
+
*
|
|
1862
|
+
* @defaultValue `./assets/close2x.svg`
|
|
1863
|
+
*/
|
|
1864
|
+
closeButtonIconURL?: string;
|
|
1865
|
+
/**
|
|
1866
|
+
* Text to display for the cancel button
|
|
1867
|
+
*/
|
|
1868
|
+
cancelButtonText?: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* Function to call when the close button is clicked
|
|
1871
|
+
*/
|
|
1872
|
+
onClose?: () => void;
|
|
1873
|
+
/**
|
|
1874
|
+
* Hide user presence
|
|
1875
|
+
*
|
|
1876
|
+
* @remarks
|
|
1877
|
+
* If set to true, the status indicator of the default profile view is not displayed
|
|
1878
|
+
*
|
|
1879
|
+
* @defaultValue `false`
|
|
1880
|
+
*/
|
|
1881
|
+
disableUsersPresence?: boolean;
|
|
1882
|
+
/**
|
|
1883
|
+
* Hide profile
|
|
1884
|
+
*
|
|
1885
|
+
* @defaultValue `false`
|
|
1886
|
+
*/
|
|
1887
|
+
hideProfile?: boolean;
|
|
1888
|
+
/**
|
|
1889
|
+
* Image URL for the status indicator icon of a private group
|
|
1890
|
+
*
|
|
1891
|
+
* @defaultValue `./assets/private.svg`
|
|
1892
|
+
*/
|
|
1893
|
+
privateGroupIcon?: string;
|
|
1894
|
+
/**
|
|
1895
|
+
* @deprecated
|
|
1896
|
+
*
|
|
1897
|
+
* This property is deprecated as of version 4.3.8 due to newer property 'passwordGroupIcon'. It will be removed in subsequent versions.
|
|
1898
|
+
*/
|
|
1899
|
+
/**
|
|
1900
|
+
* Image URL for the status indicator icon of a password-protected group
|
|
1901
|
+
*
|
|
1902
|
+
* @defaultValue `./assets/locked.svg`
|
|
1903
|
+
*/
|
|
1904
|
+
protectedGroupIcon?: string;
|
|
1905
|
+
/**
|
|
1906
|
+
* Image URL for the status indicator icon of a password-protected group
|
|
1907
|
+
*
|
|
1908
|
+
* @defaultValue {undefined}
|
|
1909
|
+
*/
|
|
1910
|
+
passwordGroupIcon?: string;
|
|
1911
|
+
/**
|
|
1912
|
+
* Function to create a list of `CometChatTemplate` instances from the `user` or `group` prop
|
|
1913
|
+
*/
|
|
1914
|
+
data?: CometChatDetailsTemplate[];
|
|
1915
|
+
/**
|
|
1916
|
+
* Function to call whenever the component encounters an error
|
|
1917
|
+
*/
|
|
1918
|
+
onError?: (error: CometChat.CometChatException) => void;
|
|
1919
|
+
/**
|
|
1920
|
+
* Text to display for the confirm button of the leave confirm modal
|
|
1921
|
+
*
|
|
1922
|
+
* @defaultValue `localize("LEAVE_GROUP")`
|
|
1923
|
+
*/
|
|
1924
|
+
leaveButtonText?: string;
|
|
1925
|
+
/**
|
|
1926
|
+
* Message to display for the leave confirm modal
|
|
1927
|
+
*
|
|
1928
|
+
* @defaultValue `localize("LEAVE_CONFIRM")`
|
|
1929
|
+
*/
|
|
1930
|
+
leaveConfirmDialogMessage?: string;
|
|
1931
|
+
/**
|
|
1932
|
+
* Text to display for the confirm button of the transfer ownership confirm modal
|
|
1933
|
+
*
|
|
1934
|
+
* @defaultValue `localize("TRANSFER_OWNERSHIP")`
|
|
1935
|
+
*/
|
|
1936
|
+
transferButtonText?: string;
|
|
1937
|
+
/**
|
|
1938
|
+
* Message to display for the transfer onwership confirm modal
|
|
1939
|
+
*
|
|
1940
|
+
* @defaultValue `localize("LEAVE_CONFIRM")`
|
|
1941
|
+
*/
|
|
1942
|
+
transferConfirmDialogMessage?: string;
|
|
1943
|
+
/**
|
|
1944
|
+
* Text to display for the confirm button of the delete confirm modal
|
|
1945
|
+
*
|
|
1946
|
+
* @defaultValue `localize("DELETE")`
|
|
1947
|
+
*/
|
|
1948
|
+
deleteButtonText?: string;
|
|
1949
|
+
/**
|
|
1950
|
+
* Message to display for the delete confirm modal
|
|
1951
|
+
*
|
|
1952
|
+
* @defaultValue `localize("DELETE_CONFIRM")`
|
|
1953
|
+
*/
|
|
1954
|
+
deleteConfirmDialogMessage?: string;
|
|
1955
|
+
/**
|
|
1956
|
+
* `CometChatAddMembers` configuration
|
|
1957
|
+
*/
|
|
1958
|
+
addMembersConfiguration?: AddMembersConfiguration;
|
|
1959
|
+
/**
|
|
1960
|
+
* `CometChatBannedMembers` configuration
|
|
1961
|
+
*/
|
|
1962
|
+
bannedMembersConfiguration?: BannedMembersConfiguration;
|
|
1963
|
+
/**
|
|
1964
|
+
* `CometChatGroupMembers` configuration
|
|
1965
|
+
*/
|
|
1966
|
+
groupMembersConfiguration?: GroupMembersConfiguration;
|
|
1967
|
+
/**
|
|
1968
|
+
* `CometChatTransferOwnership` configuration
|
|
1969
|
+
*/
|
|
1970
|
+
transferOwnershipConfiguration?: TransferOwnershipConfiguration;
|
|
1971
|
+
/**
|
|
1972
|
+
* Styles to apply to the default profile view
|
|
1973
|
+
*/
|
|
1974
|
+
listItemStyle?: ListItemStyle;
|
|
1975
|
+
/**
|
|
1976
|
+
* Styles to apply to the status indicator component of the default profile view
|
|
1977
|
+
*/
|
|
1978
|
+
statusIndicatorStyle?: CSSProperties;
|
|
1979
|
+
/**
|
|
1980
|
+
* Styles to apply to the avatar component of the default profile view
|
|
1981
|
+
*/
|
|
1982
|
+
avatarStyle?: AvatarStyle;
|
|
1983
|
+
/**
|
|
1984
|
+
* Styles to apply to the leave group confirm dialog component
|
|
1985
|
+
*/
|
|
1986
|
+
leaveDialogStyle?: ConfirmDialogStyle;
|
|
1987
|
+
deleteDialogStyle?: ConfirmDialogStyle;
|
|
1988
|
+
/**
|
|
1989
|
+
* Styles to apply to the backdrop component
|
|
1990
|
+
*/
|
|
1991
|
+
backdropStyle?: BaseStyle;
|
|
1992
|
+
/**
|
|
1993
|
+
* Styles to apply to this component
|
|
1994
|
+
*/
|
|
1995
|
+
detailsStyle?: DetailsStyle;
|
|
1996
|
+
}
|
|
1997
|
+
/**
|
|
1998
|
+
* Renders details view of a user or group of a CometChat App
|
|
1999
|
+
*/
|
|
2000
|
+
declare function CometChatDetails(props: IDetailsProps): react_jsx_runtime.JSX.Element | null;
|
|
2001
|
+
|
|
2002
|
+
interface IGroupMembersProps {
|
|
2003
|
+
/**
|
|
2004
|
+
* Image URL for the back button
|
|
2005
|
+
*
|
|
2006
|
+
* @defaultValue `./assets/backbutton.svg`
|
|
2007
|
+
*/
|
|
2008
|
+
backButtonIconURL?: string;
|
|
2009
|
+
/**
|
|
2010
|
+
* Show back button
|
|
2011
|
+
*
|
|
2012
|
+
* @defaultValue `true`
|
|
2013
|
+
*/
|
|
2014
|
+
showBackButton?: boolean;
|
|
2015
|
+
/**
|
|
2016
|
+
* Function to call when the default back button is clicked
|
|
2017
|
+
*/
|
|
2018
|
+
onBack?: () => void;
|
|
2019
|
+
/**
|
|
2020
|
+
* Custom view to render on the top-right of the component
|
|
2021
|
+
*/
|
|
2022
|
+
menus?: JSX$1.Element;
|
|
2023
|
+
/**
|
|
2024
|
+
* Title of the component
|
|
2025
|
+
*
|
|
2026
|
+
* @defaultValue `localize("MEMBERS")`
|
|
2027
|
+
*/
|
|
2028
|
+
title?: string;
|
|
2029
|
+
/**
|
|
2030
|
+
* Alignment of the `title` text
|
|
2031
|
+
*
|
|
2032
|
+
* @defaultValue `TitleAlignment.center`
|
|
2033
|
+
*/
|
|
2034
|
+
titleAlignment?: TitleAlignment;
|
|
2035
|
+
/**
|
|
2036
|
+
* Text to be displayed when the search input has no value
|
|
2037
|
+
*
|
|
2038
|
+
* @defaultValue `localize("SEARCH")`
|
|
2039
|
+
*/
|
|
2040
|
+
searchPlaceholder?: string;
|
|
2041
|
+
/**
|
|
2042
|
+
* Image URL for the search icon to use in the search bar
|
|
2043
|
+
*
|
|
2044
|
+
* @defaultValue `./assets/search.svg`
|
|
2045
|
+
*/
|
|
2046
|
+
searchIconURL?: string;
|
|
2047
|
+
/**
|
|
2048
|
+
* Hide the search bar
|
|
2049
|
+
*
|
|
2050
|
+
* @defaulValue `false`
|
|
2051
|
+
*/
|
|
2052
|
+
hideSearch?: boolean;
|
|
2053
|
+
/**
|
|
2054
|
+
* Request builder to fetch group members
|
|
2055
|
+
*
|
|
2056
|
+
* @remarks
|
|
2057
|
+
* If the search input is not empty and the `searchRequestBuilder` prop is not provided,
|
|
2058
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
2059
|
+
*
|
|
2060
|
+
* @defaultValue Default request builder having the limit set to 30
|
|
2061
|
+
*/
|
|
2062
|
+
groupMemberRequestBuilder?: CometChat.GroupMembersRequestBuilder;
|
|
2063
|
+
/**
|
|
2064
|
+
* Request builder with search parameters to fetch group members
|
|
2065
|
+
*
|
|
2066
|
+
* @remarks
|
|
2067
|
+
* If the search input is not empty,
|
|
2068
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
2069
|
+
*/
|
|
2070
|
+
searchRequestBuilder?: CometChat.GroupMembersRequestBuilder;
|
|
2071
|
+
/**
|
|
2072
|
+
* Group the fetched groupMembers belong to
|
|
2073
|
+
*/
|
|
2074
|
+
group: CometChat.Group;
|
|
2075
|
+
/**
|
|
2076
|
+
* Function to call whenever the component encounters an error
|
|
2077
|
+
*/
|
|
2078
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
2079
|
+
/**
|
|
2080
|
+
* Text to display in the default empty view
|
|
2081
|
+
*
|
|
2082
|
+
* @defaultValue `localize("NO_USERS_FOUND")`
|
|
2083
|
+
*/
|
|
2084
|
+
emptyStateText?: string;
|
|
2085
|
+
/**
|
|
2086
|
+
* Text to display in the default error view
|
|
2087
|
+
*
|
|
2088
|
+
* @defaultValue `localize("SOMETHING_WRONG")`
|
|
2089
|
+
*/
|
|
2090
|
+
errorStateText?: string;
|
|
2091
|
+
/**
|
|
2092
|
+
* Image URL for the default loading view
|
|
2093
|
+
*
|
|
2094
|
+
* @defaultValue `./assets/spinner.svg`
|
|
2095
|
+
*/
|
|
2096
|
+
loadingIconURL?: string;
|
|
2097
|
+
/**
|
|
2098
|
+
* Custom view for the loading state of the component
|
|
2099
|
+
*/
|
|
2100
|
+
loadingStateView?: JSX$1.Element;
|
|
2101
|
+
/**
|
|
2102
|
+
* Custom view for the empty state of the component
|
|
2103
|
+
*/
|
|
2104
|
+
emptyStateView?: JSX$1.Element;
|
|
2105
|
+
/**
|
|
2106
|
+
* Custom view for the error state of the component
|
|
2107
|
+
*/
|
|
2108
|
+
errorStateView?: JSX$1.Element;
|
|
2109
|
+
/**
|
|
2110
|
+
* @deprecated
|
|
2111
|
+
*
|
|
2112
|
+
* This property is deprecated as of version 4.3.8 due to newer property 'errorStateView'. It will be removed in subsequent versions.
|
|
2113
|
+
*/
|
|
2114
|
+
errorSateView?: JSX$1.Element;
|
|
2115
|
+
/**
|
|
2116
|
+
* Hide error view
|
|
2117
|
+
*
|
|
2118
|
+
* @remarks
|
|
2119
|
+
* If set to true, hides the default and the custom error view
|
|
2120
|
+
*
|
|
2121
|
+
* @defaultValue `false`
|
|
2122
|
+
*/
|
|
2123
|
+
hideError?: boolean;
|
|
2124
|
+
/**
|
|
2125
|
+
* Hide the separator at the bottom of the default list item view
|
|
2126
|
+
*
|
|
2127
|
+
* @defaultValue `true`
|
|
2128
|
+
*/
|
|
2129
|
+
hideSeparator?: boolean;
|
|
2130
|
+
/**
|
|
2131
|
+
* Hide user presence
|
|
2132
|
+
*
|
|
2133
|
+
* @remarks
|
|
2134
|
+
* If set to true, the status indicator of the default list item view is not displayed
|
|
2135
|
+
*
|
|
2136
|
+
* @defaultValue `false`
|
|
2137
|
+
*/
|
|
2138
|
+
disableUsersPresence?: boolean;
|
|
2139
|
+
/**
|
|
2140
|
+
* Custom subtitle view to be rendered for each group member in the fetched list
|
|
2141
|
+
*
|
|
2142
|
+
* @remarks
|
|
2143
|
+
* This prop is used if `listItemView` prop is not provided
|
|
2144
|
+
*/
|
|
2145
|
+
subtitleView?: (groupMember: CometChat.GroupMember) => JSX$1.Element;
|
|
2146
|
+
/**
|
|
2147
|
+
* Custom list item view to be rendered for each group member in the fetched list
|
|
2148
|
+
*/
|
|
2149
|
+
listItemView?: (groupMember: CometChat.GroupMember) => JSX$1.Element;
|
|
2150
|
+
/**
|
|
2151
|
+
* List of actions available on mouse over on the default list item component
|
|
2152
|
+
*/
|
|
2153
|
+
options?: (group: CometChat.Group, groupMember: CometChat.GroupMember) => CometChatOption[];
|
|
2154
|
+
/**
|
|
2155
|
+
* Image URL for the change scope component's `arrowIconURL` prop
|
|
2156
|
+
*
|
|
2157
|
+
* @defaultValue `./assets/down-arrow.svg`
|
|
2158
|
+
*/
|
|
2159
|
+
dropDownIconURL?: string;
|
|
2160
|
+
/**
|
|
2161
|
+
* View to be placed in the tail view
|
|
2162
|
+
*
|
|
2163
|
+
* @remarks
|
|
2164
|
+
* This prop will be used if `listItemView` is not provided
|
|
2165
|
+
*/
|
|
2166
|
+
tailView?: (groupMember: CometChat.GroupMember) => JSX$1.Element;
|
|
2167
|
+
/**
|
|
2168
|
+
* Selection mode to use for the default list item view
|
|
2169
|
+
*
|
|
2170
|
+
* @remarks
|
|
2171
|
+
* This prop is used if `listItemView` prop is not provided
|
|
2172
|
+
*
|
|
2173
|
+
* @defaultValue `SelectionMode.none`
|
|
2174
|
+
*/
|
|
2175
|
+
selectionMode?: SelectionMode;
|
|
2176
|
+
/**
|
|
2177
|
+
* Function to call on click of the default list item view of a group member
|
|
2178
|
+
*/
|
|
2179
|
+
onItemClick?: (groupMember: CometChat.GroupMember) => void;
|
|
2180
|
+
/**
|
|
2181
|
+
* Function to call when a group member from the fetched list is selected
|
|
2182
|
+
*
|
|
2183
|
+
* @remarks
|
|
2184
|
+
* This prop is used if `selectionMode` prop is not `SelectionMode.none`
|
|
2185
|
+
*/
|
|
2186
|
+
onSelect?: (groupMember: CometChat.GroupMember, selected: boolean) => void;
|
|
2187
|
+
/**
|
|
2188
|
+
* Image URL for the close button
|
|
2189
|
+
*
|
|
2190
|
+
* @defaultValue `./assets/close2x.svg`
|
|
2191
|
+
*/
|
|
2192
|
+
closeButtonIconURL?: string;
|
|
2193
|
+
/**
|
|
2194
|
+
* Function to call when the close button is clicked
|
|
2195
|
+
*/
|
|
2196
|
+
onClose?: () => void;
|
|
2197
|
+
/**
|
|
2198
|
+
* Styles to apply to the avatar component of the default list item view
|
|
2199
|
+
*/
|
|
2200
|
+
avatarStyle?: AvatarStyle;
|
|
2201
|
+
/**
|
|
2202
|
+
* Styles to apply to the status indicator component of the default list item view
|
|
2203
|
+
*/
|
|
2204
|
+
statusIndicatorStyle?: CSSProperties;
|
|
2205
|
+
/**
|
|
2206
|
+
* Styles to apply to the default list item view
|
|
2207
|
+
*/
|
|
2208
|
+
listItemStyle?: ListItemStyle;
|
|
2209
|
+
/**
|
|
2210
|
+
* Styles to apply to the change scope component
|
|
2211
|
+
*/
|
|
2212
|
+
groupScopeStyle?: ChangeScopeStyle;
|
|
2213
|
+
/**
|
|
2214
|
+
* Styles to apply to this component
|
|
2215
|
+
*/
|
|
2216
|
+
groupMembersStyle?: GroupMembersStyle;
|
|
2217
|
+
/**
|
|
2218
|
+
* Search keyword to filter the list of users.
|
|
2219
|
+
*
|
|
2220
|
+
* @defaultValue `""`
|
|
2221
|
+
*/
|
|
2222
|
+
searchKeyword?: string;
|
|
2223
|
+
/**
|
|
2224
|
+
* Callback function to be executed when the user list is empty.
|
|
2225
|
+
*/
|
|
2226
|
+
onEmpty?: () => void;
|
|
2227
|
+
/**
|
|
2228
|
+
* Timeout reference for fetching users.
|
|
2229
|
+
*/
|
|
2230
|
+
fetchTimeOut?: any;
|
|
2231
|
+
/**
|
|
2232
|
+
* Placement of user presence information within the user interface.
|
|
2233
|
+
* @defaultValue `bottom`
|
|
2234
|
+
*/
|
|
2235
|
+
userPresencePlacement?: UserPresencePlacement;
|
|
2236
|
+
/**
|
|
2237
|
+
* Flag to indicate whether to disable loading state while fetching users.
|
|
2238
|
+
* @defaultValue `false`
|
|
2239
|
+
*/
|
|
2240
|
+
disableLoadingState?: boolean;
|
|
2241
|
+
}
|
|
2242
|
+
declare function CometChatGroupMembers(props: IGroupMembersProps): react_jsx_runtime.JSX.Element;
|
|
2243
|
+
|
|
2244
|
+
interface IGroupsProps {
|
|
2245
|
+
/**
|
|
2246
|
+
* Custom view to render on the top-right of the component
|
|
2247
|
+
*/
|
|
2248
|
+
menus?: JSX$1.Element;
|
|
2249
|
+
/**
|
|
2250
|
+
* Title of the component
|
|
2251
|
+
*
|
|
2252
|
+
* @defaultValue `localize("GROUPS")`
|
|
2253
|
+
*/
|
|
2254
|
+
title?: string;
|
|
2255
|
+
/**
|
|
2256
|
+
* Alignment of the `title` text
|
|
2257
|
+
*
|
|
2258
|
+
* @defaultValue `TitleAlignment.left`
|
|
2259
|
+
*/
|
|
2260
|
+
titleAlignment?: TitleAlignment;
|
|
2261
|
+
/**
|
|
2262
|
+
* Text to be displayed when the search input has no value
|
|
2263
|
+
*
|
|
2264
|
+
* @defaultValue `localize("SEARCH")`
|
|
2265
|
+
*/
|
|
2266
|
+
searchPlaceholderText?: string;
|
|
2267
|
+
/**
|
|
2268
|
+
* Image URL for the search icon to use in the search bar
|
|
2269
|
+
*
|
|
2270
|
+
* @defaultValue `./assets/search.svg`
|
|
2271
|
+
*/
|
|
2272
|
+
searchIconURL?: string;
|
|
2273
|
+
/**
|
|
2274
|
+
* Hide the search bar
|
|
2275
|
+
*
|
|
2276
|
+
* @defaulValue `false`
|
|
2277
|
+
*/
|
|
2278
|
+
hideSearch?: boolean;
|
|
2279
|
+
/**
|
|
2280
|
+
* Request builder to fetch groups
|
|
2281
|
+
*
|
|
2282
|
+
* @remarks
|
|
2283
|
+
* If the search input is not empty and the `searchRequestBuilder` prop is not provided,
|
|
2284
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
2285
|
+
*
|
|
2286
|
+
* @defaultValue Default request builder having the limit set to 30
|
|
2287
|
+
*/
|
|
2288
|
+
groupsRequestBuilder?: CometChat.GroupsRequestBuilder;
|
|
2289
|
+
/**
|
|
2290
|
+
* Request builder with search parameters to fetch groups
|
|
2291
|
+
*
|
|
2292
|
+
* @remarks
|
|
2293
|
+
* If the search input is not empty,
|
|
2294
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
2295
|
+
*/
|
|
2296
|
+
searchRequestBuilder?: CometChat.GroupsRequestBuilder;
|
|
2297
|
+
/**
|
|
2298
|
+
* Function to call whenever the component encounters an error
|
|
2299
|
+
*/
|
|
2300
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
2301
|
+
/**
|
|
2302
|
+
* Custom list item view to be rendered for each group in the fetched list
|
|
2303
|
+
*/
|
|
2304
|
+
listItemView?: (group: CometChat.Group) => JSX$1.Element;
|
|
2305
|
+
/**
|
|
2306
|
+
* Hide the separator at the bottom of the default list item view
|
|
2307
|
+
*
|
|
2308
|
+
* @defaultValue `false`
|
|
2309
|
+
*/
|
|
2310
|
+
hideSeparator?: boolean;
|
|
2311
|
+
/**
|
|
2312
|
+
* Custom subtitle view to be rendered for each group in the fetched list
|
|
2313
|
+
*
|
|
2314
|
+
* @remarks
|
|
2315
|
+
* This prop is used if `listItemView` prop is not provided
|
|
2316
|
+
*/
|
|
2317
|
+
subtitleView?: (group: CometChat.Group) => JSX$1.Element;
|
|
2318
|
+
/**
|
|
2319
|
+
* List of actions available on mouse over on the default list item component
|
|
2320
|
+
*/
|
|
2321
|
+
options?: (group: CometChat.Group) => CometChatOption[];
|
|
2322
|
+
/**
|
|
2323
|
+
* Selection mode to use for the default tail view
|
|
2324
|
+
*
|
|
2325
|
+
* @remarks
|
|
2326
|
+
* This prop is used if `listItemView` prop is not provided.
|
|
2327
|
+
*
|
|
2328
|
+
* @defaultValue `SelectionMode.none`
|
|
2329
|
+
*/
|
|
2330
|
+
selectionMode?: SelectionMode;
|
|
2331
|
+
/**
|
|
2332
|
+
* Function to call when a group from the fetched list is selected
|
|
2333
|
+
*
|
|
2334
|
+
* @remarks
|
|
2335
|
+
* This prop is used if `selectionMode` prop is not `SelectionMode.none`
|
|
2336
|
+
*/
|
|
2337
|
+
onSelect?: (group: CometChat.Group, selected: boolean) => void;
|
|
2338
|
+
/**
|
|
2339
|
+
* Function to call on click of the default list item view of a group
|
|
2340
|
+
*/
|
|
2341
|
+
onItemClick?: (group: CometChat.Group) => void;
|
|
2342
|
+
/**
|
|
2343
|
+
* Group to highlight
|
|
2344
|
+
*
|
|
2345
|
+
* @remarks
|
|
2346
|
+
* This prop is used if `listItemView` prop is not provided
|
|
2347
|
+
*/
|
|
2348
|
+
activeGroup?: CometChat.Group;
|
|
2349
|
+
/**
|
|
2350
|
+
* Image URL for the default loading view
|
|
2351
|
+
*
|
|
2352
|
+
* @defaultValue `./assets/spinner.svg`
|
|
2353
|
+
*/
|
|
2354
|
+
loadingIconURL?: string;
|
|
2355
|
+
/**
|
|
2356
|
+
* Custom view for the loading state of the component
|
|
2357
|
+
*/
|
|
2358
|
+
loadingStateView?: JSX$1.Element;
|
|
2359
|
+
/**
|
|
2360
|
+
* Text to display in the default empty view
|
|
2361
|
+
*
|
|
2362
|
+
* @defaultValue `localize("NO_GROUPS_FOUND")`
|
|
2363
|
+
*/
|
|
2364
|
+
emptyStateText?: string;
|
|
2365
|
+
/**
|
|
2366
|
+
* Custom view for the empty state of the component
|
|
2367
|
+
*/
|
|
2368
|
+
emptyStateView?: JSX$1.Element;
|
|
2369
|
+
/**
|
|
2370
|
+
* Text to display in the default error view
|
|
2371
|
+
*
|
|
2372
|
+
* @defaultValue `localize("SOMETHING_WRONG")`
|
|
2373
|
+
*/
|
|
2374
|
+
errorStateText?: string;
|
|
2375
|
+
/**
|
|
2376
|
+
* Custom view for the error state of the component
|
|
2377
|
+
*/
|
|
2378
|
+
errorStateView?: JSX$1.Element;
|
|
2379
|
+
/**
|
|
2380
|
+
* Hide error view
|
|
2381
|
+
*
|
|
2382
|
+
* @remarks
|
|
2383
|
+
* If set to true, hides the default and the custom error view
|
|
2384
|
+
*
|
|
2385
|
+
* @defaultValue `false`
|
|
2386
|
+
*/
|
|
2387
|
+
hideError?: boolean;
|
|
2388
|
+
/**
|
|
2389
|
+
* Image URL for the status indicator icon in the default list item view of a password-protected group
|
|
2390
|
+
*
|
|
2391
|
+
* @defaultValue `./assets/locked.svg`
|
|
2392
|
+
*/
|
|
2393
|
+
passwordGroupIcon?: string;
|
|
2394
|
+
/**
|
|
2395
|
+
* Image URL for the status indicator icon in the default list item view of a private group
|
|
2396
|
+
*
|
|
2397
|
+
* @defaultValue `./assets/private.svg`
|
|
2398
|
+
*/
|
|
2399
|
+
privateGroupIcon?: string;
|
|
2400
|
+
/**
|
|
2401
|
+
* Styles to apply to the status indicator component of the default list item view
|
|
2402
|
+
*/
|
|
2403
|
+
statusIndicatorStyle?: CSSProperties;
|
|
2404
|
+
/**
|
|
2405
|
+
* Styles to apply to the avatar component of the default list item view
|
|
2406
|
+
*/
|
|
2407
|
+
avatarStyle?: AvatarStyle;
|
|
2408
|
+
/**
|
|
2409
|
+
* Styles to apply to the default list item view
|
|
2410
|
+
*/
|
|
2411
|
+
listItemStyle?: ListItemStyle;
|
|
2412
|
+
/**
|
|
2413
|
+
* Styles to apply to this component
|
|
2414
|
+
*/
|
|
2415
|
+
groupsStyle?: GroupsStyle;
|
|
2416
|
+
}
|
|
2417
|
+
/**
|
|
2418
|
+
* Renders a scrollable list of groups that has been created in a CometChat app
|
|
2419
|
+
*/
|
|
2420
|
+
declare function CometChatGroups(props: IGroupsProps): react_jsx_runtime.JSX.Element;
|
|
2421
|
+
|
|
2422
|
+
interface IGroupsWithMessagesProps {
|
|
2423
|
+
group?: CometChat.Group;
|
|
2424
|
+
isMobileView?: boolean;
|
|
2425
|
+
messageText?: string;
|
|
2426
|
+
groupsWithMessagesStyle?: WithMessagesStyle;
|
|
2427
|
+
messagesConfiguration?: MessagesConfiguration;
|
|
2428
|
+
groupsConfiguration?: GroupsConfiguration;
|
|
2429
|
+
createGroupConfiguration?: CreateGroupConfiguration;
|
|
2430
|
+
joinGroupConfiguration?: JoinGroupConfiguration;
|
|
2431
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
2432
|
+
}
|
|
2433
|
+
declare const CometChatGroupsWithMessages: (props: IGroupsWithMessagesProps) => react_jsx_runtime.JSX.Element;
|
|
2434
|
+
|
|
2435
|
+
interface IMessageBubbleProps {
|
|
2436
|
+
id: any;
|
|
2437
|
+
setRef?: (ref: any) => void;
|
|
2438
|
+
leadingView: any;
|
|
2439
|
+
headerView: any;
|
|
2440
|
+
replyView: any;
|
|
2441
|
+
contentView: any;
|
|
2442
|
+
bottomView: any;
|
|
2443
|
+
threadView: any;
|
|
2444
|
+
footerView: any;
|
|
2445
|
+
statusInfoView?: any;
|
|
2446
|
+
options: (CometChatActionsIcon | CometChatActionsView)[];
|
|
2447
|
+
alignment: MessageBubbleAlignment;
|
|
2448
|
+
messageBubbleStyle: BaseStyle$1;
|
|
2449
|
+
moreIconURL?: string;
|
|
2450
|
+
topMenuSize?: number;
|
|
2451
|
+
}
|
|
2452
|
+
declare const CometChatMessageBubble: (props: IMessageBubbleProps) => react_jsx_runtime.JSX.Element;
|
|
2453
|
+
|
|
2454
|
+
type ComposerId = {
|
|
2455
|
+
parentMessageId: number | null;
|
|
2456
|
+
user: string | null;
|
|
2457
|
+
group: string | null;
|
|
2458
|
+
};
|
|
2459
|
+
interface IMessageComposerProps {
|
|
2460
|
+
/**
|
|
2461
|
+
* User to send messages to
|
|
2462
|
+
*/
|
|
2463
|
+
user?: CometChat.User;
|
|
2464
|
+
/**
|
|
2465
|
+
* Group to send messages to
|
|
2466
|
+
*
|
|
2467
|
+
* @remarks
|
|
2468
|
+
* This prop is used if `user` prop is not provided
|
|
2469
|
+
*/
|
|
2470
|
+
group?: CometChat.Group;
|
|
2471
|
+
/**
|
|
2472
|
+
* Text to fill the message input with
|
|
2473
|
+
*
|
|
2474
|
+
* @remarks
|
|
2475
|
+
* This prop is used only when this component mounts
|
|
2476
|
+
*
|
|
2477
|
+
* @defaultValue `""`
|
|
2478
|
+
*/
|
|
2479
|
+
text?: string;
|
|
2480
|
+
/**
|
|
2481
|
+
* Function to call when the message input's text value changes
|
|
2482
|
+
*/
|
|
2483
|
+
onTextChange?: (text: string) => void;
|
|
2484
|
+
/**
|
|
2485
|
+
* Text shown in the message input when it is empty
|
|
2486
|
+
*/
|
|
2487
|
+
placeHolderText?: string;
|
|
2488
|
+
/**
|
|
2489
|
+
* Image URL for the send button
|
|
2490
|
+
*
|
|
2491
|
+
* @remarks
|
|
2492
|
+
* This prop is used if `sendButtonView` prop is not provided
|
|
2493
|
+
*
|
|
2494
|
+
* @defaultValue `SendIcon`
|
|
2495
|
+
*/
|
|
2496
|
+
sendButtonIconURL?: string;
|
|
2497
|
+
/**
|
|
2498
|
+
* Custom send button view
|
|
2499
|
+
*/
|
|
2500
|
+
sendButtonView?: (userOrGroup: CometChat.User | CometChat.Group, composerId: ComposerId) => JSX$1.Element;
|
|
2501
|
+
/**
|
|
2502
|
+
* Function to call whenever a new text message is sent
|
|
2503
|
+
*/
|
|
2504
|
+
onSendButtonClick?: (message: CometChat.BaseMessage, previewMessageMode?: PreviewMessageMode) => void;
|
|
2505
|
+
/**
|
|
2506
|
+
* Custom secondary button view
|
|
2507
|
+
*/
|
|
2508
|
+
secondaryButtonView?: (userOrGroup: CometChat.User | CometChat.Group, composerId: ComposerId) => JSX$1.Element;
|
|
2509
|
+
/**
|
|
2510
|
+
* Image URL for the default secondary button
|
|
2511
|
+
*
|
|
2512
|
+
* @remarks
|
|
2513
|
+
* This prop is used if `secondaryButtonView` prop is not provided
|
|
2514
|
+
*
|
|
2515
|
+
* @defaultValue `./assets/plus.svg`
|
|
2516
|
+
*/
|
|
2517
|
+
attachmentIconURL?: string;
|
|
2518
|
+
/**
|
|
2519
|
+
* Image URL for the emoji button
|
|
2520
|
+
*
|
|
2521
|
+
* @defaultValue `SmileysIcon`
|
|
2522
|
+
*/
|
|
2523
|
+
emojiIconURL?: string;
|
|
2524
|
+
/**
|
|
2525
|
+
* Image URL for the AI button
|
|
2526
|
+
*
|
|
2527
|
+
* @defaultValue `AIIcon`
|
|
2528
|
+
*/
|
|
2529
|
+
AIIconURL?: string;
|
|
2530
|
+
/**
|
|
2531
|
+
* Custom auxiliary button view
|
|
2532
|
+
*/
|
|
2533
|
+
auxiliaryButtonView?: (userOrGroup: CometChat.User | CometChat.Group, composerId: ComposerId) => JSX$1.Element;
|
|
2534
|
+
/**
|
|
2535
|
+
* Alignment of the auxiliary button
|
|
2536
|
+
*
|
|
2537
|
+
* @defaultValue `AuxiliaryButtonAlignment.right`
|
|
2538
|
+
*/
|
|
2539
|
+
auxiliaryButtonAlignment?: AuxiliaryButtonAlignment;
|
|
2540
|
+
/**
|
|
2541
|
+
* Options for the default secondary view
|
|
2542
|
+
*/
|
|
2543
|
+
attachmentOptions?: (userOrGroup: CometChat.User | CometChat.Group, composerId: ComposerId) => CometChatMessageComposerAction[];
|
|
2544
|
+
/**
|
|
2545
|
+
* Hide layout button
|
|
2546
|
+
*
|
|
2547
|
+
* @defaultValue `false`
|
|
2548
|
+
*/
|
|
2549
|
+
hideLayoutMode?: boolean;
|
|
2550
|
+
/**
|
|
2551
|
+
* Id of the parent message
|
|
2552
|
+
*/
|
|
2553
|
+
parentMessageId?: number;
|
|
2554
|
+
/**
|
|
2555
|
+
* Image URL for the live reaction button
|
|
2556
|
+
*
|
|
2557
|
+
* @defaultValue `./assets/heart.svg`
|
|
2558
|
+
*/
|
|
2559
|
+
LiveReactionIconURL?: string;
|
|
2560
|
+
/**
|
|
2561
|
+
* Hide live reaction button
|
|
2562
|
+
*
|
|
2563
|
+
* @defaultValue `false`
|
|
2564
|
+
*/
|
|
2565
|
+
hideLiveReaction?: boolean;
|
|
2566
|
+
/**
|
|
2567
|
+
* Preview section at the top of the message input
|
|
2568
|
+
*/
|
|
2569
|
+
headerView?: JSX$1.Element;
|
|
2570
|
+
/**
|
|
2571
|
+
* Function to call whenever the component encounters an error
|
|
2572
|
+
*/
|
|
2573
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
2574
|
+
/**
|
|
2575
|
+
* Disable sound for outgoing messages
|
|
2576
|
+
*
|
|
2577
|
+
* @defaulValue `false`
|
|
2578
|
+
*/
|
|
2579
|
+
disableSoundForMessages?: boolean;
|
|
2580
|
+
/**
|
|
2581
|
+
* Custom audio sound for outgoing messages
|
|
2582
|
+
*/
|
|
2583
|
+
customSoundForMessage?: string;
|
|
2584
|
+
/**
|
|
2585
|
+
* Disable sending typing events
|
|
2586
|
+
*
|
|
2587
|
+
* @defaultValue `false`
|
|
2588
|
+
*/
|
|
2589
|
+
disableTypingEvents?: boolean;
|
|
2590
|
+
/**
|
|
2591
|
+
* Styles to apply to this component
|
|
2592
|
+
*/
|
|
2593
|
+
messageComposerStyle?: MessageComposerStyle;
|
|
2594
|
+
/**
|
|
2595
|
+
* Styles to apply to action sheet component
|
|
2596
|
+
*/
|
|
2597
|
+
actionSheetStyle?: ActionSheetStyle;
|
|
2598
|
+
/**
|
|
2599
|
+
* Styles to apply to AI action sheet component
|
|
2600
|
+
*/
|
|
2601
|
+
AIOptionsStyle?: AIOptionsStyle;
|
|
2602
|
+
/**
|
|
2603
|
+
* Hide voice recording button
|
|
2604
|
+
*/
|
|
2605
|
+
hideVoiceRecording?: boolean;
|
|
2606
|
+
/**
|
|
2607
|
+
* Styles to apply voice recording view
|
|
2608
|
+
*/
|
|
2609
|
+
mediaRecorderStyle?: MediaRecorderStyle;
|
|
2610
|
+
/**
|
|
2611
|
+
* Icon for voice recording start
|
|
2612
|
+
*/
|
|
2613
|
+
voiceRecordingStartIconURL?: string;
|
|
2614
|
+
/**
|
|
2615
|
+
* Icon for voice recording close
|
|
2616
|
+
*/
|
|
2617
|
+
voiceRecordingCloseIconURL?: string;
|
|
2618
|
+
/**
|
|
2619
|
+
* Icon for voice recording stop
|
|
2620
|
+
*/
|
|
2621
|
+
voiceRecordingStopIconURL?: string;
|
|
2622
|
+
/**
|
|
2623
|
+
* Icon for voice recording submit
|
|
2624
|
+
*/
|
|
2625
|
+
voiceRecordingSubmitIconURL?: string;
|
|
2626
|
+
InfoSimpleIcon?: string;
|
|
2627
|
+
userMemberWrapperConfiguration?: UserMemberWrapperConfiguration;
|
|
2628
|
+
textFormatters?: Array<CometChatTextFormatter>;
|
|
2629
|
+
disableMentions?: boolean;
|
|
2630
|
+
mentionsWarningText?: string;
|
|
2631
|
+
mentionsWarningStyle?: React__default.CSSProperties;
|
|
2632
|
+
}
|
|
2633
|
+
/**
|
|
2634
|
+
* Renders a message composer to send messages to a user or group of a CometChat App
|
|
2635
|
+
*/
|
|
2636
|
+
declare function CometChatMessageComposer(props: IMessageComposerProps): react_jsx_runtime.JSX.Element;
|
|
2637
|
+
|
|
2638
|
+
interface IMessageHeaderProps {
|
|
2639
|
+
avatarStyle?: AvatarStyle;
|
|
2640
|
+
statusIndicatorStyle?: BaseStyle;
|
|
2641
|
+
messageHeaderStyle?: MessageHeaderStyle;
|
|
2642
|
+
listItemStyle?: ListItemStyle;
|
|
2643
|
+
subtitleView?: any;
|
|
2644
|
+
disableUsersPresence?: boolean;
|
|
2645
|
+
disableTyping?: boolean;
|
|
2646
|
+
/**
|
|
2647
|
+
* @deprecated
|
|
2648
|
+
*
|
|
2649
|
+
* This property is deprecated as of version 4.3.8 due to newer property 'passwordGroupIcon'. It will be removed in subsequent versions.
|
|
2650
|
+
*/
|
|
2651
|
+
protectedGroupIcon?: string;
|
|
2652
|
+
passwordGroupIcon?: string | undefined;
|
|
2653
|
+
privateGroupIcon?: string;
|
|
2654
|
+
menu?: any;
|
|
2655
|
+
user?: CometChat.User;
|
|
2656
|
+
group?: CometChat.Group;
|
|
2657
|
+
backButtonIconURL?: string;
|
|
2658
|
+
hideBackButton?: boolean;
|
|
2659
|
+
listItemView?: any;
|
|
2660
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
2661
|
+
onBack?: () => void;
|
|
2662
|
+
}
|
|
2663
|
+
declare const CometChatMessageHeader: (props: IMessageHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
2664
|
+
|
|
2665
|
+
interface IMessageListProps {
|
|
2666
|
+
parentMessageId?: number;
|
|
2667
|
+
user?: CometChat.User;
|
|
2668
|
+
group?: CometChat.Group;
|
|
2669
|
+
emptyStateText?: string;
|
|
2670
|
+
errorStateText?: string;
|
|
2671
|
+
emptyStateView?: any;
|
|
2672
|
+
errorStateView?: any;
|
|
2673
|
+
loadingStateView?: any;
|
|
2674
|
+
/**
|
|
2675
|
+
* @deprecated
|
|
2676
|
+
*
|
|
2677
|
+
* This property is deprecated as of version 4.3.19 due to newer property 'hideReceipt'. It will be removed in subsequent versions.
|
|
2678
|
+
*/
|
|
2679
|
+
disableReceipt?: boolean;
|
|
2680
|
+
hideReceipt?: boolean;
|
|
2681
|
+
disableSoundForMessages?: boolean;
|
|
2682
|
+
customSoundForMessages?: string;
|
|
2683
|
+
readIcon?: string;
|
|
2684
|
+
deliveredIcon?: string;
|
|
2685
|
+
sentIcon?: string;
|
|
2686
|
+
waitIcon?: string;
|
|
2687
|
+
errorIcon?: string;
|
|
2688
|
+
loadingIconURL?: string;
|
|
2689
|
+
alignment?: MessageListAlignment;
|
|
2690
|
+
showAvatar?: boolean;
|
|
2691
|
+
datePattern?: DatePatterns;
|
|
2692
|
+
timestampAlignment?: TimestampAlignment;
|
|
2693
|
+
DateSeparatorPattern?: DatePatterns;
|
|
2694
|
+
hideDateSeparator?: boolean;
|
|
2695
|
+
templates?: CometChatMessageTemplate[];
|
|
2696
|
+
messagesRequestBuilder?: CometChat.MessagesRequestBuilder;
|
|
2697
|
+
newMessageIndicatorText?: string;
|
|
2698
|
+
scrollToBottomOnNewMessages?: boolean;
|
|
2699
|
+
thresholdValue?: number;
|
|
2700
|
+
onThreadRepliesClick?: Function;
|
|
2701
|
+
headerView?: any;
|
|
2702
|
+
footerView?: any;
|
|
2703
|
+
avatarStyle?: AvatarStyle;
|
|
2704
|
+
dateSeparatorStyle?: DateStyle;
|
|
2705
|
+
messageListStyle?: MessageListStyle;
|
|
2706
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
2707
|
+
hideError?: boolean;
|
|
2708
|
+
messageInformationConfiguration?: MessageInformationConfiguration;
|
|
2709
|
+
reactionsConfiguration?: ReactionsConfiguration;
|
|
2710
|
+
disableReactions?: boolean;
|
|
2711
|
+
emojiKeyboardStyle?: EmojiKeyboardStyle;
|
|
2712
|
+
threadIndicatorIcon?: string;
|
|
2713
|
+
disableMentions?: boolean;
|
|
2714
|
+
textFormatters?: CometChatTextFormatter[];
|
|
2715
|
+
backdropStyle?: BackdropStyle;
|
|
2716
|
+
}
|
|
2717
|
+
declare const CometChatMessageList: (props: IMessageListProps) => react_jsx_runtime.JSX.Element;
|
|
2718
|
+
|
|
2719
|
+
interface IMessagesProps {
|
|
2720
|
+
user?: CometChat.User;
|
|
2721
|
+
group?: CometChat.Group;
|
|
2722
|
+
hideMessageComposer?: boolean;
|
|
2723
|
+
disableTyping?: boolean;
|
|
2724
|
+
messageHeaderConfiguration?: MessageHeaderConfiguration;
|
|
2725
|
+
messageListConfiguration?: MessageListConfiguration;
|
|
2726
|
+
messageComposerConfiguration?: MessageComposerConfiguration;
|
|
2727
|
+
threadedMessagesConfiguration?: ThreadedMessagesConfiguration;
|
|
2728
|
+
detailsConfiguration?: DetailsConfiguration;
|
|
2729
|
+
customSoundForIncomingMessages?: string;
|
|
2730
|
+
customSoundForOutgoingMessages?: string;
|
|
2731
|
+
disableSoundForMessages?: boolean;
|
|
2732
|
+
messagesStyle?: MessagesStyle;
|
|
2733
|
+
messageHeaderView?: any;
|
|
2734
|
+
messageComposerView?: any;
|
|
2735
|
+
messageListView?: any;
|
|
2736
|
+
hideMessageHeader?: boolean;
|
|
2737
|
+
hideDetails?: boolean;
|
|
2738
|
+
auxiliaryMenu?: any;
|
|
2739
|
+
}
|
|
2740
|
+
declare const CometChatMessages: (props: IMessagesProps) => react_jsx_runtime.JSX.Element | null;
|
|
2741
|
+
|
|
2742
|
+
interface IThreadedMessagesProps {
|
|
2743
|
+
parentMessage: CometChat.BaseMessage;
|
|
2744
|
+
title?: string;
|
|
2745
|
+
closeIconURL?: string;
|
|
2746
|
+
bubbleView: any;
|
|
2747
|
+
messageActionView?: any;
|
|
2748
|
+
onClose?: any;
|
|
2749
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
2750
|
+
threadedMessagesStyle?: any;
|
|
2751
|
+
messageListConfiguration?: any;
|
|
2752
|
+
messageComposerConfiguration?: any;
|
|
2753
|
+
hideMessageComposer?: boolean;
|
|
2754
|
+
messageComposerView?: (user?: CometChat.User, group?: CometChat.Group, parentMessage?: CometChat.BaseMessage) => JSX.Element;
|
|
2755
|
+
messageListView?: (user?: CometChat.User, group?: CometChat.Group, parentMessage?: CometChat.BaseMessage) => JSX.Element;
|
|
2756
|
+
}
|
|
2757
|
+
declare const CometChatThreadedMessages: (props: IThreadedMessagesProps) => react_jsx_runtime.JSX.Element;
|
|
2758
|
+
|
|
2759
|
+
interface ITransferOwnershipProps {
|
|
2760
|
+
/**
|
|
2761
|
+
* Group to transfer ownership of
|
|
2762
|
+
*/
|
|
2763
|
+
group: CometChat.Group;
|
|
2764
|
+
/**
|
|
2765
|
+
* Title of the component
|
|
2766
|
+
*
|
|
2767
|
+
* @defaultValue `localize("TRANSFER_OWNERSHIP")`
|
|
2768
|
+
*/
|
|
2769
|
+
title?: string;
|
|
2770
|
+
/**
|
|
2771
|
+
* Alignment of the `title` text
|
|
2772
|
+
*
|
|
2773
|
+
* @defaultValue `TitleAlignment.center`
|
|
2774
|
+
*/
|
|
2775
|
+
titleAlignment?: TitleAlignment;
|
|
2776
|
+
/**
|
|
2777
|
+
* Image URL for the search icon to use in the search bar
|
|
2778
|
+
*
|
|
2779
|
+
* @defaultValue `./assets/search.svg`
|
|
2780
|
+
*/
|
|
2781
|
+
searchIconURL?: string;
|
|
2782
|
+
/**
|
|
2783
|
+
* Text to be displayed when the search input has no value
|
|
2784
|
+
*
|
|
2785
|
+
* @defaultValue `localize("SEARCH")`
|
|
2786
|
+
*/
|
|
2787
|
+
searchPlaceholder?: string;
|
|
2788
|
+
/**
|
|
2789
|
+
* Hide the search bar
|
|
2790
|
+
*
|
|
2791
|
+
* @defaulValue `false`
|
|
2792
|
+
*/
|
|
2793
|
+
hideSearch?: boolean;
|
|
2794
|
+
/**
|
|
2795
|
+
* Request builder to fetch group members
|
|
2796
|
+
*
|
|
2797
|
+
* @remarks
|
|
2798
|
+
* If the search input is not empty and the `searchRequestBuilder` prop is not provided,
|
|
2799
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
2800
|
+
*
|
|
2801
|
+
* @defaultValue Default request builder having the limit set to 30
|
|
2802
|
+
*/
|
|
2803
|
+
groupMembersRequestBuilder?: CometChat.GroupMembersRequestBuilder;
|
|
2804
|
+
/**
|
|
2805
|
+
* Request builder with search parameters to fetch group members
|
|
2806
|
+
*
|
|
2807
|
+
* @remarks
|
|
2808
|
+
* If the search input is not empty,
|
|
2809
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
2810
|
+
*/
|
|
2811
|
+
searchRequestBuilder?: CometChat.GroupMembersRequestBuilder;
|
|
2812
|
+
/**
|
|
2813
|
+
* Image URL for the default loading view
|
|
2814
|
+
*
|
|
2815
|
+
* @defaultValue `./assets/spinner.svg`
|
|
2816
|
+
*/
|
|
2817
|
+
loadingIconURL?: string;
|
|
2818
|
+
/**
|
|
2819
|
+
* Custom view for the loading state of the component
|
|
2820
|
+
*/
|
|
2821
|
+
loadingStateView?: JSX.Element;
|
|
2822
|
+
/**
|
|
2823
|
+
* Text to display in the default empty view
|
|
2824
|
+
*
|
|
2825
|
+
* @defaultValue `localize("NO_USERS_FOUND")`
|
|
2826
|
+
*/
|
|
2827
|
+
emptyStateText?: string;
|
|
2828
|
+
/**
|
|
2829
|
+
* Custom view for the empty state of the component
|
|
2830
|
+
*/
|
|
2831
|
+
emptyStateView?: JSX.Element;
|
|
2832
|
+
/**
|
|
2833
|
+
* Text to display in the default error view
|
|
2834
|
+
*
|
|
2835
|
+
* @defaultValue `localize("SOMETHING_WRONG")`
|
|
2836
|
+
*/
|
|
2837
|
+
errorStateText?: string;
|
|
2838
|
+
/**
|
|
2839
|
+
* Custom view for the error state of the component
|
|
2840
|
+
*/
|
|
2841
|
+
errorStateView?: JSX.Element;
|
|
2842
|
+
/**
|
|
2843
|
+
* Function to call whenever the component encounters an error
|
|
2844
|
+
*/
|
|
2845
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
2846
|
+
/**
|
|
2847
|
+
* Hide the separator at the bottom of the default list item view
|
|
2848
|
+
*
|
|
2849
|
+
* @defaultValue `false`
|
|
2850
|
+
*/
|
|
2851
|
+
hideSeparator?: boolean;
|
|
2852
|
+
/**
|
|
2853
|
+
* Hide user presence
|
|
2854
|
+
*
|
|
2855
|
+
* @remarks
|
|
2856
|
+
* If set to true, the status indicator of the default list item view is not displayed
|
|
2857
|
+
*
|
|
2858
|
+
* @defaultValue `false`
|
|
2859
|
+
*/
|
|
2860
|
+
disableUsersPresence?: boolean;
|
|
2861
|
+
/**
|
|
2862
|
+
* Image URL for the close button
|
|
2863
|
+
*
|
|
2864
|
+
* @defaultValue `./assets/close2x.svg`
|
|
2865
|
+
*/
|
|
2866
|
+
closeButtonIconURL?: string;
|
|
2867
|
+
/**
|
|
2868
|
+
* Function to call when the close button is clicked
|
|
2869
|
+
*/
|
|
2870
|
+
onClose?: () => void;
|
|
2871
|
+
/**
|
|
2872
|
+
* Custom list item view to be rendered for each group member in the fetched list
|
|
2873
|
+
*/
|
|
2874
|
+
listItemView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
2875
|
+
/**
|
|
2876
|
+
* Custom subtitle view to be rendered for each group member in the fetched list
|
|
2877
|
+
*
|
|
2878
|
+
* @remarks
|
|
2879
|
+
* This prop is used if `listItemView` prop is not provided
|
|
2880
|
+
*/
|
|
2881
|
+
subtitleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
2882
|
+
transferButtonText?: string;
|
|
2883
|
+
onTransferOwnership?: (groupMember: CometChat.GroupMember) => void;
|
|
2884
|
+
/**
|
|
2885
|
+
* Text to display for the cancel button
|
|
2886
|
+
*/
|
|
2887
|
+
cancelButtonText?: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* List of actions available on mouse over on the default list item component
|
|
2890
|
+
*/
|
|
2891
|
+
options?: (group: CometChat.Group, groupMember: CometChat.GroupMember) => CometChatOption[];
|
|
2892
|
+
/**
|
|
2893
|
+
* Styles to apply to the status indicator component of the default list item view
|
|
2894
|
+
*/
|
|
2895
|
+
statusIndicatorStyle?: CSSProperties;
|
|
2896
|
+
/**
|
|
2897
|
+
* Styles to apply to the avatar component of the default list item view
|
|
2898
|
+
*/
|
|
2899
|
+
avatarStyle?: AvatarStyle;
|
|
2900
|
+
/**
|
|
2901
|
+
* Styles to apply to the default list item view
|
|
2902
|
+
*/
|
|
2903
|
+
listItemStyle?: ListItemStyle;
|
|
2904
|
+
/**
|
|
2905
|
+
* Styles to apply to the `CometChatGroupMembers` component
|
|
2906
|
+
*/
|
|
2907
|
+
groupMemberStyle?: GroupMembersStyle;
|
|
2908
|
+
/**
|
|
2909
|
+
* Styles to apply to this component
|
|
2910
|
+
*/
|
|
2911
|
+
transferOwnershipStyle?: TransferOwnershipStyle;
|
|
2912
|
+
}
|
|
2913
|
+
/**
|
|
2914
|
+
* Renders transfer ownership view related to a group of a CometChat App
|
|
2915
|
+
*/
|
|
2916
|
+
declare function CometChatTransferOwnership(props: ITransferOwnershipProps): react_jsx_runtime.JSX.Element;
|
|
2917
|
+
|
|
2918
|
+
interface IUsersProps {
|
|
2919
|
+
/**
|
|
2920
|
+
* Title of the component
|
|
2921
|
+
*
|
|
2922
|
+
* @defaultValue `localize("USERS")`
|
|
2923
|
+
*/
|
|
2924
|
+
title?: string;
|
|
2925
|
+
/**
|
|
2926
|
+
* Alignment of the `title` text
|
|
2927
|
+
*
|
|
2928
|
+
* @defaultValue `TitleAlignment.left`
|
|
2929
|
+
*/
|
|
2930
|
+
tileAlignment?: TitleAlignment;
|
|
2931
|
+
/**
|
|
2932
|
+
* Hide the search bar
|
|
2933
|
+
*
|
|
2934
|
+
* @defaulValue `false`
|
|
2935
|
+
*/
|
|
2936
|
+
hideSearch?: boolean;
|
|
2937
|
+
/**
|
|
2938
|
+
* Image URL for the search icon to use in the search bar
|
|
2939
|
+
*
|
|
2940
|
+
* @defaultValue `./assets/search.svg`
|
|
2941
|
+
*/
|
|
2942
|
+
searchIconURL?: string;
|
|
2943
|
+
/**
|
|
2944
|
+
* Text to be displayed when the search input has no value
|
|
2945
|
+
*
|
|
2946
|
+
* @defaultValue `localize("SEARCH")`
|
|
2947
|
+
*/
|
|
2948
|
+
searchPlaceholderText?: string;
|
|
2949
|
+
/**
|
|
2950
|
+
* Custom list item view to be rendered for each user in the fetched list
|
|
2951
|
+
*/
|
|
2952
|
+
listItemView?: (user: CometChat.User) => JSX$1.Element;
|
|
2953
|
+
/**
|
|
2954
|
+
* Show alphabetical header
|
|
2955
|
+
*
|
|
2956
|
+
* @defaultValue `true`
|
|
2957
|
+
*/
|
|
2958
|
+
showSectionHeader?: boolean;
|
|
2959
|
+
/**
|
|
2960
|
+
* Property on the user object
|
|
2961
|
+
*
|
|
2962
|
+
* @remarks
|
|
2963
|
+
* This property will be used to extract the section header character from the user object
|
|
2964
|
+
*
|
|
2965
|
+
* @defaultValue `getName`
|
|
2966
|
+
*/
|
|
2967
|
+
sectionHeaderKey?: keyof CometChat.User;
|
|
2968
|
+
/**
|
|
2969
|
+
* Custom view for the loading state of the component
|
|
2970
|
+
*/
|
|
2971
|
+
loadingStateView?: JSX$1.Element;
|
|
2972
|
+
/**
|
|
2973
|
+
* Image URL for the default loading view
|
|
2974
|
+
*
|
|
2975
|
+
* @defaultValue `./assets/spinner.svg`
|
|
2976
|
+
*/
|
|
2977
|
+
loadingIconURL?: string;
|
|
2978
|
+
/**
|
|
2979
|
+
* Hide error view
|
|
2980
|
+
*
|
|
2981
|
+
* @remarks
|
|
2982
|
+
* If set to true, hides the default and the custom error view
|
|
2983
|
+
*
|
|
2984
|
+
* @defaultValue `false`
|
|
2985
|
+
*/
|
|
2986
|
+
hideError?: boolean;
|
|
2987
|
+
/**
|
|
2988
|
+
* Custom view for the error state of the component
|
|
2989
|
+
*/
|
|
2990
|
+
errorStateView?: JSX$1.Element;
|
|
2991
|
+
/**
|
|
2992
|
+
* Text to display in the default error view
|
|
2993
|
+
*
|
|
2994
|
+
* @defaultValue `localize("SOMETHING_WRONG")`
|
|
2995
|
+
*/
|
|
2996
|
+
errorStateText?: string;
|
|
2997
|
+
/**
|
|
2998
|
+
* Custom view for the empty state of the component
|
|
2999
|
+
*/
|
|
3000
|
+
emptyStateView?: JSX$1.Element;
|
|
3001
|
+
/**
|
|
3002
|
+
* Text to display in the default empty view
|
|
3003
|
+
*
|
|
3004
|
+
* @defaultValue `localize("NO_USERS_FOUND")`
|
|
3005
|
+
*/
|
|
3006
|
+
emptyStateText?: string;
|
|
3007
|
+
/**
|
|
3008
|
+
* Custom subtitle view to be rendered for each user in the fetched list
|
|
3009
|
+
*
|
|
3010
|
+
* @remarks
|
|
3011
|
+
* This prop is used if `listItemView` prop is not provided
|
|
3012
|
+
*/
|
|
3013
|
+
subtitleView?: (user: CometChat.User) => JSX$1.Element;
|
|
3014
|
+
/**
|
|
3015
|
+
* Hide user presence
|
|
3016
|
+
*
|
|
3017
|
+
* @remarks
|
|
3018
|
+
* If set to true, the status indicator of the default list item view is not displayed
|
|
3019
|
+
*
|
|
3020
|
+
* @defaultValue `false`
|
|
3021
|
+
*/
|
|
3022
|
+
disableUsersPresence?: boolean;
|
|
3023
|
+
/**
|
|
3024
|
+
* Custom view to render on the top-right of the component
|
|
3025
|
+
*/
|
|
3026
|
+
menus?: JSX$1.Element;
|
|
3027
|
+
/**
|
|
3028
|
+
* List of actions available on mouse over on the default list item component
|
|
3029
|
+
*/
|
|
3030
|
+
options?: (user: CometChat.User) => CometChatOption[];
|
|
3031
|
+
/**
|
|
3032
|
+
* Hide the separator at the bottom of the default list item view
|
|
3033
|
+
*
|
|
3034
|
+
* @defaultValue `false`
|
|
3035
|
+
*/
|
|
3036
|
+
hideSeparator?: boolean;
|
|
3037
|
+
/**
|
|
3038
|
+
* Selection mode to use for the default tail view
|
|
3039
|
+
*
|
|
3040
|
+
* @remarks
|
|
3041
|
+
* This prop is used if `listItemView` prop is not provided.
|
|
3042
|
+
*
|
|
3043
|
+
* @defaultValue `SelectionMode.none`
|
|
3044
|
+
*/
|
|
3045
|
+
selectionMode?: SelectionMode;
|
|
3046
|
+
/**
|
|
3047
|
+
* Function to call when a user from the fetched list is selected
|
|
3048
|
+
*
|
|
3049
|
+
* @remarks
|
|
3050
|
+
* This prop is used if `selectionMode` prop is not `SelectionMode.none`
|
|
3051
|
+
*/
|
|
3052
|
+
onSelect?: (users: CometChat.User, selected: boolean) => void;
|
|
3053
|
+
/**
|
|
3054
|
+
* Request builder to fetch users
|
|
3055
|
+
*
|
|
3056
|
+
* @remarks
|
|
3057
|
+
* If the search input is not empty and the `searchRequestBuilder` prop is not provided,
|
|
3058
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
3059
|
+
*
|
|
3060
|
+
* @defaultValue Default request builder having the limit set to 30
|
|
3061
|
+
*/
|
|
3062
|
+
usersRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
3063
|
+
/**
|
|
3064
|
+
* Request builder with search parameters to fetch users
|
|
3065
|
+
*
|
|
3066
|
+
* @remarks
|
|
3067
|
+
* If the search input is not empty,
|
|
3068
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
3069
|
+
*/
|
|
3070
|
+
searchRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
3071
|
+
/**
|
|
3072
|
+
* Function to call on click of the default list item view of a user
|
|
3073
|
+
*/
|
|
3074
|
+
onItemClick?: (user: CometChat.User) => void;
|
|
3075
|
+
/**
|
|
3076
|
+
* Function to call whenever the component encounters an error
|
|
3077
|
+
*/
|
|
3078
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
3079
|
+
/**
|
|
3080
|
+
* Styles to apply to the status indicator component of the default list item view
|
|
3081
|
+
*/
|
|
3082
|
+
statusIndicatorStyle?: CSSProperties;
|
|
3083
|
+
/**
|
|
3084
|
+
* Styles to apply to the avatar component of the default list item view
|
|
3085
|
+
*/
|
|
3086
|
+
avatarStyle?: AvatarStyle;
|
|
3087
|
+
/**
|
|
3088
|
+
* Styles to apply to this component
|
|
3089
|
+
*/
|
|
3090
|
+
usersStyle?: UsersStyle;
|
|
3091
|
+
/**
|
|
3092
|
+
* Styles to apply to the default list item view
|
|
3093
|
+
*/
|
|
3094
|
+
listItemStyle?: ListItemStyle;
|
|
3095
|
+
/**
|
|
3096
|
+
* User to highlight
|
|
3097
|
+
*
|
|
3098
|
+
* @remarks
|
|
3099
|
+
* This prop is used if `listItemView` prop is not provided
|
|
3100
|
+
*/
|
|
3101
|
+
activeUser?: CometChat.User;
|
|
3102
|
+
/**
|
|
3103
|
+
* Search keyword to filter the list of users.
|
|
3104
|
+
*
|
|
3105
|
+
* @defaultValue `""`
|
|
3106
|
+
*/
|
|
3107
|
+
searchKeyword?: string;
|
|
3108
|
+
/**
|
|
3109
|
+
* Callback function to be executed when the user list is empty.
|
|
3110
|
+
*/
|
|
3111
|
+
onEmpty?: () => void;
|
|
3112
|
+
/**
|
|
3113
|
+
* Flag to indicate whether users are currently being fetched.
|
|
3114
|
+
*
|
|
3115
|
+
* @defaultValue `false`
|
|
3116
|
+
*/
|
|
3117
|
+
fetchingUsers?: boolean;
|
|
3118
|
+
/**
|
|
3119
|
+
* Timeout reference for fetching users.
|
|
3120
|
+
*/
|
|
3121
|
+
fetchTimeOut?: any;
|
|
3122
|
+
/**
|
|
3123
|
+
* Placement of user presence information within the user interface.
|
|
3124
|
+
* @defaultValue `bottom`
|
|
3125
|
+
*/
|
|
3126
|
+
userPresencePlacement?: UserPresencePlacement;
|
|
3127
|
+
/**
|
|
3128
|
+
* Flag to indicate whether to disable loading state while fetching users.
|
|
3129
|
+
* @defaultValue `false`
|
|
3130
|
+
*/
|
|
3131
|
+
disableLoadingState?: boolean;
|
|
3132
|
+
/**
|
|
3133
|
+
* URL of the icon to be used for the close button.
|
|
3134
|
+
*/
|
|
3135
|
+
closeButtonIconURL?: string;
|
|
3136
|
+
}
|
|
3137
|
+
/**
|
|
3138
|
+
* Renders a scrollable list of users that has been created in a CometChat app
|
|
3139
|
+
*/
|
|
3140
|
+
declare function CometChatUsers(props: IUsersProps): react_jsx_runtime.JSX.Element;
|
|
3141
|
+
|
|
3142
|
+
interface IUsersWithMessagesProps {
|
|
3143
|
+
user?: CometChat.User;
|
|
3144
|
+
isMobileView?: boolean;
|
|
3145
|
+
messageText?: string;
|
|
3146
|
+
usersWithMessagesStyle?: WithMessagesStyle;
|
|
3147
|
+
messagesConfiguration?: MessagesConfiguration;
|
|
3148
|
+
usersConfiguration?: UsersConfiguration;
|
|
3149
|
+
onError?: Function;
|
|
3150
|
+
}
|
|
3151
|
+
declare const CometChatUsersWithMessages: (props: IUsersWithMessagesProps) => react_jsx_runtime.JSX.Element;
|
|
3152
|
+
|
|
3153
|
+
interface ContactsProps {
|
|
3154
|
+
title?: string;
|
|
3155
|
+
usersTabTitle?: string;
|
|
3156
|
+
groupsTabTitle?: string;
|
|
3157
|
+
usersConfiguration?: UsersConfiguration;
|
|
3158
|
+
groupsConfiguration?: GroupsConfiguration;
|
|
3159
|
+
onSubmitButtonClick?: (users?: CometChat.User[], groups?: CometChat.Group[]) => void;
|
|
3160
|
+
closeIconURL?: string;
|
|
3161
|
+
onClose?: () => void;
|
|
3162
|
+
onItemClick?: (user?: CometChat.User, group?: CometChat.Group) => void;
|
|
3163
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
3164
|
+
submitButtonText?: string;
|
|
3165
|
+
hideSubmitButton?: boolean;
|
|
3166
|
+
selectionLimit?: number;
|
|
3167
|
+
tabVisibility?: TabsVisibility;
|
|
3168
|
+
contactsStyle?: ContactsStyle;
|
|
3169
|
+
selectionMode?: SelectionMode;
|
|
3170
|
+
}
|
|
3171
|
+
declare const CometChatContacts: (props: ContactsProps) => react_jsx_runtime.JSX.Element;
|
|
3172
|
+
|
|
3173
|
+
interface MessageInformationProps {
|
|
3174
|
+
title?: string;
|
|
3175
|
+
message: CometChat.BaseMessage;
|
|
3176
|
+
template?: CometChatMessageTemplate;
|
|
3177
|
+
closeIconURL?: string;
|
|
3178
|
+
bubbleView?: (messageObject: CometChat.BaseMessage) => void | JSX.Element;
|
|
3179
|
+
listItemView?: (messageObject: CometChat.BaseMessage, messageReceipt?: CometChat.MessageReceipt) => JSX.Element;
|
|
3180
|
+
subtitleView?: (messageObject: CometChat.BaseMessage, messageReceipt?: CometChat.MessageReceipt) => void | JSX.Element;
|
|
3181
|
+
receiptDatePattern?: (timestamp: number) => string;
|
|
3182
|
+
onClose?: () => void;
|
|
3183
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
3184
|
+
messageInformationStyle?: MessageInformationStyle;
|
|
3185
|
+
readIcon?: string;
|
|
3186
|
+
deliveredIcon?: string;
|
|
3187
|
+
listItemStyle?: ListItemStyle;
|
|
3188
|
+
emptyStateText?: any;
|
|
3189
|
+
emptyStateView?: any;
|
|
3190
|
+
loadingIconURL?: string;
|
|
3191
|
+
loadingStateView?: any;
|
|
3192
|
+
errorStateText?: any;
|
|
3193
|
+
errorStateView?: any;
|
|
3194
|
+
backdropStyle?: BackdropStyle;
|
|
3195
|
+
}
|
|
3196
|
+
declare const CometChatMessageInformation: (props: MessageInformationProps) => react_jsx_runtime.JSX.Element;
|
|
3197
|
+
|
|
3198
|
+
declare class AIAssistBotExtension extends AIExtensionDataSource {
|
|
3199
|
+
private configuration?;
|
|
3200
|
+
constructor(configuration?: AIAssistBotConfiguration);
|
|
3201
|
+
addExtension(): void;
|
|
3202
|
+
getExtensionId(): string;
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
declare class AIAssistBotDecorator extends DataSourceDecorator {
|
|
3206
|
+
configuration?: AIAssistBotConfiguration;
|
|
3207
|
+
newDataSource: DataSource;
|
|
3208
|
+
loggedInUser: CometChat$1.User | null;
|
|
3209
|
+
user: CometChat$1.User;
|
|
3210
|
+
group: CometChat$1.Group;
|
|
3211
|
+
bots: CometChat$1.User[] | [];
|
|
3212
|
+
theme: CometChatTheme;
|
|
3213
|
+
constructor(dataSource: DataSource, configuration?: AIAssistBotConfiguration);
|
|
3214
|
+
getId(): string;
|
|
3215
|
+
getAIOptions(user: CometChat$1.User | null, group: CometChat$1.Group | null, theme: CometChatTheme, id?: any, aiOptionsStyle?: AIOptionsStyle): (CometChatMessageComposerAction | CometChatActionsView)[];
|
|
3216
|
+
onMessageSent: (message: string, bot: CometChat$1.User) => Promise<string>;
|
|
3217
|
+
closeChat: () => void;
|
|
3218
|
+
onOptionClick: (bot: CometChat$1.User) => void;
|
|
3219
|
+
private getAllBots;
|
|
3220
|
+
private addMessageListener;
|
|
3221
|
+
}
|
|
3222
|
+
|
|
3223
|
+
declare class AIConversationStarterExtension extends AIExtensionDataSource {
|
|
3224
|
+
private configuration?;
|
|
3225
|
+
constructor(configuration?: AIConversationStarterConfiguration);
|
|
3226
|
+
addExtension(): void;
|
|
3227
|
+
getExtensionId(): string;
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
declare class AIConversationStarterDecorator extends DataSourceDecorator {
|
|
3231
|
+
configuration?: AIConversationStarterConfiguration;
|
|
3232
|
+
newDataSource: DataSource;
|
|
3233
|
+
currentMessage: CometChat.BaseMessage | null;
|
|
3234
|
+
loggedInUser: CometChat.User | null;
|
|
3235
|
+
user: CometChat.User;
|
|
3236
|
+
group: CometChat.Group;
|
|
3237
|
+
theme: CometChatTheme;
|
|
3238
|
+
constructor(dataSource: DataSource, configuration?: AIConversationStarterConfiguration);
|
|
3239
|
+
getId(): string;
|
|
3240
|
+
editReply(reply: string): void;
|
|
3241
|
+
closeIfMessageReceived(message: CometChat.BaseMessage): void;
|
|
3242
|
+
getConversationStarter: (theme?: CometChatTheme) => Promise<string[]>;
|
|
3243
|
+
private loadConversationStarter;
|
|
3244
|
+
private addMessageListener;
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
declare class AISmartRepliesExtension extends AIExtensionDataSource {
|
|
3248
|
+
private configuration?;
|
|
3249
|
+
constructor(configuration?: AISmartRepliesConfiguration);
|
|
3250
|
+
addExtension(): void;
|
|
3251
|
+
getExtensionId(): string;
|
|
3252
|
+
}
|
|
3253
|
+
|
|
3254
|
+
type ButtonStyle = {
|
|
3255
|
+
buttonTextFont?: string;
|
|
3256
|
+
buttonTextColor?: string;
|
|
3257
|
+
buttonIconTint?: string;
|
|
3258
|
+
} & CSSProperties;
|
|
3259
|
+
interface ICometChatButtonProps {
|
|
3260
|
+
text?: string;
|
|
3261
|
+
hoverText?: string;
|
|
3262
|
+
iconURL?: string;
|
|
3263
|
+
disabled?: boolean;
|
|
3264
|
+
buttonStyle?: ButtonStyle;
|
|
3265
|
+
onClick?: (customEvent: CustomEvent<{
|
|
3266
|
+
event: PointerEvent;
|
|
3267
|
+
}>) => void;
|
|
3268
|
+
childRefCallback?: (ref: React.RefObject<typeof CometChatButton>) => void;
|
|
3269
|
+
}
|
|
3270
|
+
declare function CometChatButton(props: ICometChatButtonProps): react_jsx_runtime.JSX.Element;
|
|
3271
|
+
|
|
3272
|
+
declare class AISmartRepliesDecorator extends DataSourceDecorator {
|
|
3273
|
+
configuration?: AISmartRepliesConfiguration;
|
|
3274
|
+
newDataSource: DataSource;
|
|
3275
|
+
loggedInUser: CometChat.User | null;
|
|
3276
|
+
user: CometChat.User;
|
|
3277
|
+
group: CometChat.Group;
|
|
3278
|
+
theme: CometChatTheme;
|
|
3279
|
+
buttonRef: any;
|
|
3280
|
+
isModalClosed: boolean;
|
|
3281
|
+
private closeCallback?;
|
|
3282
|
+
constructor(dataSource: DataSource, configuration?: AISmartRepliesConfiguration);
|
|
3283
|
+
childRefCallback: (childRef: React__default.RefObject<typeof CometChatButton>) => void;
|
|
3284
|
+
getId(): string;
|
|
3285
|
+
editReply(reply: string): void;
|
|
3286
|
+
closeIfMessageReceived(message: CometChat.BaseMessage): void;
|
|
3287
|
+
getSmartReplies: (theme?: CometChatTheme) => Promise<string[]>;
|
|
3288
|
+
getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme, id?: any, aiOptionsStyle?: AIOptionsStyle): (CometChatMessageComposerAction | CometChatActionsView)[];
|
|
3289
|
+
private addMessageListener;
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
declare class AIConversationSummaryExtension extends AIExtensionDataSource {
|
|
3293
|
+
private configuration?;
|
|
3294
|
+
constructor(configuration?: AIConversationSummaryConfiguration);
|
|
3295
|
+
addExtension(): void;
|
|
3296
|
+
getExtensionId(): string;
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3299
|
+
declare class AIConversationSummaryDecorator extends DataSourceDecorator {
|
|
3300
|
+
configuration?: AIConversationSummaryConfiguration;
|
|
3301
|
+
newDataSource: DataSource;
|
|
3302
|
+
currentMessage: CometChat.BaseMessage | null;
|
|
3303
|
+
unreadMessageCount: number;
|
|
3304
|
+
loggedInUser: CometChat.User | null;
|
|
3305
|
+
user: CometChat.User;
|
|
3306
|
+
group: CometChat.Group;
|
|
3307
|
+
theme: CometChatTheme;
|
|
3308
|
+
private LISTENER_ID;
|
|
3309
|
+
constructor(dataSource: DataSource, configuration?: AIConversationSummaryConfiguration);
|
|
3310
|
+
getId(): string;
|
|
3311
|
+
closePanel: () => void;
|
|
3312
|
+
getConversationSummary: (theme?: CometChatTheme) => Promise<string>;
|
|
3313
|
+
private loadConversationSummary;
|
|
3314
|
+
getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, theme: CometChatTheme, id?: any, aiOptionsStyle?: AIOptionsStyle): (CometChatMessageComposerAction | CometChatActionsView)[];
|
|
3315
|
+
private addMessageListener;
|
|
3316
|
+
}
|
|
3317
|
+
|
|
3318
|
+
/**
|
|
3319
|
+
* Converts Lit web components into React components using the createComponent function from lit labs. This conversion allows these components to be seamlessly integrated and used within a React application while preserving their original functionalities and event handling capabilities.
|
|
3320
|
+
**/
|
|
3321
|
+
/**
|
|
3322
|
+
* Converts CometChatReactions Lit web component to a React component using createComponent from lit labs. This can be used to show a list of reactions for a particular message. It can be customized using the style class of this component.For more details, go to [CometChatReactions](https://www.cometchat.com/docs-beta/ui-kit/react/reaction)
|
|
3323
|
+
*
|
|
3324
|
+
*/
|
|
3325
|
+
declare const CometChatReactionsView: _lit_labs_react.ReactWebComponent<CometChatReactions, {}>;
|
|
3326
|
+
/**
|
|
3327
|
+
* Converts CometChatEmojiKeyboard Lit web component to a React component using createComponent from lit labs. This can be used to show a list of emojis, which returns a particular emoji on click. It can be customized using the style class of this component.For more details, go to [CometChatEmojiKeyboard](https://www.cometchat.com/docs-beta/ui-kit/react/emoji-keyboard)
|
|
3328
|
+
*
|
|
3329
|
+
*/
|
|
3330
|
+
declare const CometChatEmojiKeyboardView: _lit_labs_react.ReactWebComponent<CometChatEmojiKeyboard, {
|
|
3331
|
+
onEmojiClick: string;
|
|
3332
|
+
}>;
|
|
3333
|
+
/**
|
|
3334
|
+
* Converts CometChatIconButton Lit web component to a React component using createComponent from lit labs. This can be used to display a button which has an icon, a button, or both. It can be customized using the style class of this component.For more details, go to [CometChatIconButton](https://www.cometchat.com/docs-beta/ui-kit/react/icon-button)
|
|
3335
|
+
*/
|
|
3336
|
+
declare const CometChatIconButtonView: _lit_labs_react.ReactWebComponent<CometChatIconButton, {
|
|
3337
|
+
buttonClick: string;
|
|
3338
|
+
}>;
|
|
3339
|
+
/**
|
|
3340
|
+
* Converts CometChatButton Lit web component to a React component using createComponent from lit labs. It can be used to display a button with customizable text. It can be customized using the style class of this component.
|
|
3341
|
+
*/
|
|
3342
|
+
declare const CometChatButtonView: _lit_labs_react.ReactWebComponent<CometChatButton$1, {
|
|
3343
|
+
buttonClick: string;
|
|
3344
|
+
}>;
|
|
3345
|
+
/**
|
|
3346
|
+
* Converts CometChatDate Lit web component to a React component using createComponent from lit labs. It can be used to display a date in different time formats by providing the enum and timestamp. It can be customized using the style class of this component.For more details, go to [CometChatDate](https://www.cometchat.com/docs-beta/ui-kit/react/date)
|
|
3347
|
+
*/
|
|
3348
|
+
declare const CometChatDateView: _lit_labs_react.ReactWebComponent<CometChatDate, {}>;
|
|
3349
|
+
/**
|
|
3350
|
+
* Converts CometChatLabel Lit web component to a React component using createComponent from lit labs. It can be used to display normal text or a title with customizable text. It can be customized using the style class of this component.For more details, go to [CometChatLabel](https://www.cometchat.com/docs-beta/ui-kit/react/label)
|
|
3351
|
+
*/
|
|
3352
|
+
declare const CometChatLabelView: _lit_labs_react.ReactWebComponent<CometChatLabel, {}>;
|
|
3353
|
+
/**
|
|
3354
|
+
* Converts CometChatLoader Lit web component to a React component using createComponent from lit labs. It can be used to display a loading icon which is customizable. By default, it has a loading icon inside the component. It can be customized using the style class of this component.For more details, go to [CometChatLoader](https://www.cometchat.com/docs-beta/ui-kit/react/loader)
|
|
3355
|
+
*/
|
|
3356
|
+
declare const CometChatLoaderView: _lit_labs_react.ReactWebComponent<CometChatLoader, {}>;
|
|
3357
|
+
/**
|
|
3358
|
+
* Converts CometChatAvatar Lit web component to a React component using createComponent from lit labs. It can be used to display a user/group image with a fallback name if the URL is not present. It can be customized using the style class of this component. For more details, go to [CometChatAvatar](https://www.cometchat.com/docs-beta/ui-kit/react/avatar)
|
|
3359
|
+
*/
|
|
3360
|
+
declare const CometChatAvatarView: _lit_labs_react.ReactWebComponent<CometChatAvatar, {}>;
|
|
3361
|
+
/**
|
|
3362
|
+
* Converts CometChatReceipt Lit web component to a React component using createComponent from lit labs. It can be used to display various types of receipt statuses for a message (like sent, delivered, etc.) which can be customized by sending the enum for which state to be shown. It can be customized using the style class of this component.For more details, go to [CometChatReceipt](https://www.cometchat.com/docs-beta/ui-kit/react/receipt)
|
|
3363
|
+
*/
|
|
3364
|
+
declare const CometChatReceiptView: _lit_labs_react.ReactWebComponent<CometChatReceipt, {}>;
|
|
3365
|
+
|
|
3366
|
+
export { AIAssistBotDecorator, AIAssistBotExtension, AIConversationStarterDecorator, AIConversationStarterExtension, AIConversationSummaryDecorator, AIConversationSummaryExtension, AIExtensionDataSource, AISmartRepliesDecorator, AISmartRepliesExtension, CallingExtension, CallingExtensionDecorator, ChatConfigurator, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatAddMembers, CometChatAvatarView, CometChatBannedMembers, CometChatButtonView, CometChatCallButtons, CometChatCallLogDetails, CometChatCallLogHistory, CometChatCallLogParticipants, CometChatCallLogRecordings, CometChatCallLogs, CometChatCallLogsWithDetails, CometChatContacts, CometChatConversations, CometChatConversationsWithMessages, CometChatDateView, CometChatDetails, CometChatEmojiKeyboardView, CometChatGroupMembers, CometChatGroups, CometChatGroupsWithMessages, CometChatIconButtonView, CometChatIncomingCall, CometChatLabelView, CometChatList, CometChatLoaderView, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessages, CometChatOngoingCall, CometChatOutgoingCall, CometChatReactionsView, CometChatReceiptView, CometChatTabs, CometChatThemeContext, CometChatThreadedMessages, CometChatTransferOwnership, CometChatUIKit, CometChatUserMemberWrapper, CometChatUsers, CometChatUsersWithMessages, DataSource, DataSourceDecorator, ExtensionsDataSource, ImageModerationConfiguration, ImageModerationExtension, ImageModerationExtensionDecorator, LinkPreviewConfiguration, LinkPreviewExtension, LinkPreviewExtensionDecorator, MessageTranslationConfiguration, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessagesDataSource, PollsConfiguration, PollsExtension, PollsExtensionDecorator, SmartRepliesConfiguration, SmartReplyExtension, SmartReplyExtensionDecorator, StickersConfiguration, StickersExtension, StickersExtensionDecorator, TabsStyle, TextModeratorExtension, TextModeratorExtensionDecorator, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator };
|