@cometchat/chat-uikit-react 4.3.29 → 4.3.30
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/package.json +3 -3
- package/dist/assets/Audio-Call.svg +0 -11
- package/dist/assets/Audio-Call2x.svg +0 -11
- package/dist/assets/Copy.svg +0 -17
- package/dist/assets/IncomingAudio.svg +0 -5
- package/dist/assets/IncomingVideo.svg +0 -6
- package/dist/assets/Info.svg +0 -13
- package/dist/assets/InfoSimpleIcon.svg +0 -4
- package/dist/assets/LoadingIcon.svg +0 -15
- package/dist/assets/Locked.svg +0 -10
- package/dist/assets/MissedAudio.svg +0 -5
- package/dist/assets/MissedVideo.svg +0 -6
- package/dist/assets/More.svg +0 -9
- package/dist/assets/More@2x.svg +0 -9
- package/dist/assets/OutgoingAudio.svg +0 -5
- package/dist/assets/OutgoingVideo.svg +0 -6
- package/dist/assets/Plus-1.svg +0 -12
- package/dist/assets/Private.svg +0 -10
- package/dist/assets/StartConversation.svg +0 -13
- package/dist/assets/Stickers.svg +0 -16
- package/dist/assets/Video-call.svg +0 -12
- package/dist/assets/Video-call2x.svg +0 -12
- package/dist/assets/VideoCall2xIcon.svg +0 -12
- package/dist/assets/addreaction.svg +0 -9
- package/dist/assets/ai-bot.svg +0 -3
- package/dist/assets/ai-empty.svg +0 -22
- package/dist/assets/ai-error.svg +0 -3
- package/dist/assets/attachment-file.svg +0 -14
- package/dist/assets/audio-file.svg +0 -12
- package/dist/assets/backbutton.svg +0 -12
- package/dist/assets/close.svg +0 -12
- package/dist/assets/close2x.svg +0 -12
- package/dist/assets/collaborativedocument.svg +0 -13
- package/dist/assets/collaborativewhiteboard.svg +0 -12
- package/dist/assets/create-button.svg +0 -12
- package/dist/assets/delete.svg +0 -15
- package/dist/assets/deleteicon.svg +0 -15
- package/dist/assets/down-arrow.svg +0 -1
- package/dist/assets/download.svg +0 -13
- package/dist/assets/editicon.svg +0 -14
- package/dist/assets/heart-reaction.png +0 -0
- package/dist/assets/heart.svg +0 -11
- package/dist/assets/increase-size.svg +0 -6
- package/dist/assets/loading.svg +0 -16
- package/dist/assets/mention-icon.svg +0 -11
- package/dist/assets/message-delivered.svg +0 -5
- package/dist/assets/message-read.svg +0 -5
- package/dist/assets/message-sent.svg +0 -9
- package/dist/assets/mic.svg +0 -11
- package/dist/assets/more-icon.svg +0 -9
- package/dist/assets/photolibrary.svg +0 -11
- package/dist/assets/placeholder.png +0 -0
- package/dist/assets/plus-rotated.svg +0 -13
- package/dist/assets/plus.svg +0 -13
- package/dist/assets/polls.svg +0 -14
- package/dist/assets/reduce-size.svg +0 -6
- package/dist/assets/search.svg +0 -4
- package/dist/assets/send-message-in-private.svg +0 -6
- package/dist/assets/send.svg +0 -12
- package/dist/assets/side-arrow.svg +0 -1
- package/dist/assets/smileys.svg +0 -16
- package/dist/assets/spinner.svg +0 -15
- package/dist/assets/stipop.svg +0 -9
- package/dist/assets/stop.svg +0 -1
- package/dist/assets/thread-arrow.svg +0 -1
- package/dist/assets/threadIndicatorIcon.svg +0 -11
- package/dist/assets/threadicon.svg +0 -14
- package/dist/assets/translation.svg +0 -16
- package/dist/assets/video.svg +0 -12
- package/dist/assets/wait.svg +0 -4
- package/dist/assets/warning-small.svg +0 -5
- package/dist/index.d.ts +0 -3366
- package/dist/index.js +0 -17
- package/dist/index.js.map +0 -1
- package/dist/types/AI/AIAssistBot/AIAssistBotChatView.d.ts +0 -10
- package/dist/types/AI/AIAssistBot/AIAssistBotDecorator.d.ts +0 -22
- package/dist/types/AI/AIAssistBot/AIAssistBotExtension.d.ts +0 -8
- package/dist/types/AI/AIAssistBot/AIAssistBotOptionsView.d.ts +0 -11
- package/dist/types/AI/AIAssistBot/style.d.ts +0 -37
- package/dist/types/AI/AIAssistBot/utils.d.ts +0 -5
- package/dist/types/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +0 -20
- package/dist/types/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +0 -8
- package/dist/types/AI/AIConversationStarter/AIConversationStarterView.d.ts +0 -9
- package/dist/types/AI/AIConversationStarter/style.d.ts +0 -26
- package/dist/types/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +0 -22
- package/dist/types/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +0 -8
- package/dist/types/AI/AIConversationSummary/AIConversationSummaryView.d.ts +0 -10
- package/dist/types/AI/AIConversationSummary/style.d.ts +0 -28
- package/dist/types/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +0 -25
- package/dist/types/AI/AISmartReplies/AISmartRepliesExtension.d.ts +0 -8
- package/dist/types/AI/AISmartReplies/AISmartRepliesView.d.ts +0 -12
- package/dist/types/AI/AISmartReplies/style.d.ts +0 -28
- package/dist/types/Calling/CallingExtension.d.ts +0 -8
- package/dist/types/Calling/CallingExtensionDecorator.d.ts +0 -75
- package/dist/types/Calling/CometChatCallButtons/hooks.d.ts +0 -3
- package/dist/types/Calling/CometChatCallButtons/index.d.ts +0 -19
- package/dist/types/Calling/CometChatCallButtons/style.d.ts +0 -28
- package/dist/types/Calling/CometChatCallLogDetails/hooks.d.ts +0 -2
- package/dist/types/Calling/CometChatCallLogDetails/index.d.ts +0 -17
- package/dist/types/Calling/CometChatCallLogDetails/style.d.ts +0 -21
- package/dist/types/Calling/CometChatCallLogHistory/hooks.d.ts +0 -2
- package/dist/types/Calling/CometChatCallLogHistory/index.d.ts +0 -27
- package/dist/types/Calling/CometChatCallLogHistory/style.d.ts +0 -41
- package/dist/types/Calling/CometChatCallLogParticipants/index.d.ts +0 -19
- package/dist/types/Calling/CometChatCallLogParticipants/style.d.ts +0 -31
- package/dist/types/Calling/CometChatCallLogRecordings/index.d.ts +0 -21
- package/dist/types/Calling/CometChatCallLogRecordings/style.d.ts +0 -35
- package/dist/types/Calling/CometChatCallLogs/hooks.d.ts +0 -2
- package/dist/types/Calling/CometChatCallLogs/index.d.ts +0 -37
- package/dist/types/Calling/CometChatCallLogs/style.d.ts +0 -37
- package/dist/types/Calling/CometChatCallLogsWithDetails/hooks.d.ts +0 -4
- package/dist/types/Calling/CometChatCallLogsWithDetails/index.d.ts +0 -10
- package/dist/types/Calling/CometChatCallLogsWithDetails/style.d.ts +0 -13
- package/dist/types/Calling/CometChatIncomingCall/hooks.d.ts +0 -2
- package/dist/types/Calling/CometChatIncomingCall/index.d.ts +0 -19
- package/dist/types/Calling/CometChatIncomingCall/style.d.ts +0 -72
- package/dist/types/Calling/CometChatOngoingCall/hooks.d.ts +0 -2
- package/dist/types/Calling/CometChatOngoingCall/index.d.ts +0 -15
- package/dist/types/Calling/CometChatOngoingCall/style.d.ts +0 -2
- package/dist/types/Calling/CometChatOutgoingCall/hooks.d.ts +0 -2
- package/dist/types/Calling/CometChatOutgoingCall/index.d.ts +0 -16
- package/dist/types/Calling/CometChatOutgoingCall/style.d.ts +0 -39
- package/dist/types/Calling/Utils/CallDetailsUtils.d.ts +0 -11
- package/dist/types/Calling/Utils/CallingDetailsUtils.d.ts +0 -7
- package/dist/types/Calling/Utils/utils.d.ts +0 -7
- package/dist/types/CometChatAddMembers/hooks.d.ts +0 -11
- package/dist/types/CometChatAddMembers/index.d.ts +0 -229
- package/dist/types/CometChatAddMembers/style.d.ts +0 -13
- package/dist/types/CometChatBannedMembers/controller.d.ts +0 -37
- package/dist/types/CometChatBannedMembers/hooks.d.ts +0 -17
- package/dist/types/CometChatBannedMembers/index.d.ts +0 -228
- package/dist/types/CometChatBannedMembers/style.d.ts +0 -19
- package/dist/types/CometChatContacts/index.d.ts +0 -22
- package/dist/types/CometChatContacts/style.d.ts +0 -20
- package/dist/types/CometChatConversations/controller.d.ts +0 -74
- package/dist/types/CometChatConversations/hooks.d.ts +0 -22
- package/dist/types/CometChatConversations/index.d.ts +0 -344
- package/dist/types/CometChatConversations/style.d.ts +0 -29
- package/dist/types/CometChatConversationsWithMessages/hooks.d.ts +0 -2
- package/dist/types/CometChatConversationsWithMessages/index.d.ts +0 -15
- package/dist/types/CometChatConversationsWithMessages/style.d.ts +0 -87
- package/dist/types/CometChatCustomHooks.d.ts +0 -27
- package/dist/types/CometChatDetails/hooks.d.ts +0 -17
- package/dist/types/CometChatDetails/index.d.ts +0 -186
- package/dist/types/CometChatDetails/style.d.ts +0 -40
- package/dist/types/CometChatGroupMembers/controller.d.ts +0 -38
- package/dist/types/CometChatGroupMembers/hooks.d.ts +0 -22
- package/dist/types/CometChatGroupMembers/index.d.ts +0 -281
- package/dist/types/CometChatGroupMembers/style.d.ts +0 -24
- package/dist/types/CometChatGroups/controller.d.ts +0 -44
- package/dist/types/CometChatGroups/hooks.d.ts +0 -15
- package/dist/types/CometChatGroups/index.d.ts +0 -215
- package/dist/types/CometChatGroups/style.d.ts +0 -11
- package/dist/types/CometChatGroupsWithMessages/hooks.d.ts +0 -3
- package/dist/types/CometChatGroupsWithMessages/index.d.ts +0 -14
- package/dist/types/CometChatGroupsWithMessages/style.d.ts +0 -874
- package/dist/types/CometChatMessageComposer/hooks.d.ts +0 -65
- package/dist/types/CometChatMessageComposer/index.d.ts +0 -221
- package/dist/types/CometChatMessageComposer/style.d.ts +0 -92
- package/dist/types/CometChatMessageHeader/hooks.d.ts +0 -3
- package/dist/types/CometChatMessageHeader/index.d.ts +0 -29
- package/dist/types/CometChatMessageHeader/style.d.ts +0 -56
- package/dist/types/CometChatMessageInformation/index.d.ts +0 -29
- package/dist/types/CometChatMessageInformation/style.d.ts +0 -48
- package/dist/types/CometChatMessageList/CometChatMessageList.d.ts +0 -58
- package/dist/types/CometChatMessageList/controller.d.ts +0 -48
- package/dist/types/CometChatMessageList/style.d.ts +0 -237
- package/dist/types/CometChatMessageList/useCometChatMessageList.d.ts +0 -6
- package/dist/types/CometChatMessages/hooks.d.ts +0 -2
- package/dist/types/CometChatMessages/index.d.ts +0 -25
- package/dist/types/CometChatMessages/style.d.ts +0 -26
- package/dist/types/CometChatThemeContext.d.ts +0 -5
- package/dist/types/CometChatThreadedMessages/hooks.d.ts +0 -2
- package/dist/types/CometChatThreadedMessages/index.d.ts +0 -19
- package/dist/types/CometChatThreadedMessages/style.d.ts +0 -21
- package/dist/types/CometChatTransferOwnership/hooks.d.ts +0 -7
- package/dist/types/CometChatTransferOwnership/index.d.ts +0 -163
- package/dist/types/CometChatTransferOwnership/style.d.ts +0 -17
- package/dist/types/CometChatUserMemberWrapper/index.d.ts +0 -25
- package/dist/types/CometChatUsers/controller.d.ts +0 -34
- package/dist/types/CometChatUsers/hooks.d.ts +0 -18
- package/dist/types/CometChatUsers/index.d.ts +0 -260
- package/dist/types/CometChatUsers/style.d.ts +0 -11
- package/dist/types/CometChatUsersWithMessages/hooks.d.ts +0 -2
- package/dist/types/CometChatUsersWithMessages/index.d.ts +0 -12
- package/dist/types/CometChatUsersWithMessages/style.d.ts +0 -70
- package/dist/types/Extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +0 -18
- package/dist/types/Extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +0 -8
- package/dist/types/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +0 -21
- package/dist/types/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +0 -18
- package/dist/types/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +0 -8
- package/dist/types/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +0 -21
- package/dist/types/Extensions/ImageModeration/ImageModerationConfiguration.d.ts +0 -15
- package/dist/types/Extensions/ImageModeration/ImageModerationExtension.d.ts +0 -8
- package/dist/types/Extensions/ImageModeration/ImageModerationExtensionDecorator.d.ts +0 -26
- package/dist/types/Extensions/LinkPreview/LinkPreviewConfiguration.d.ts +0 -8
- package/dist/types/Extensions/LinkPreview/LinkPreviewExtension.d.ts +0 -8
- package/dist/types/Extensions/LinkPreview/LinkPreviewExtensionDecorator.d.ts +0 -24
- package/dist/types/Extensions/MessageTranslation/MessageTranslationConfiguration.d.ts +0 -14
- package/dist/types/Extensions/MessageTranslation/MessageTranslationExtension.d.ts +0 -8
- package/dist/types/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +0 -19
- package/dist/types/Extensions/Polls/PollsConfiguration.d.ts +0 -29
- package/dist/types/Extensions/Polls/PollsExtension.d.ts +0 -8
- package/dist/types/Extensions/Polls/PollsExtensionDecorator.d.ts +0 -26
- package/dist/types/Extensions/SmartReplies/SmartRepliesConfiguration.d.ts +0 -8
- package/dist/types/Extensions/SmartReplies/SmartRepliesExtension.d.ts +0 -9
- package/dist/types/Extensions/SmartReplies/SmartRepliesExtensionDecorator.d.ts +0 -35
- package/dist/types/Extensions/Stickers/StickersConfiguration.d.ts +0 -14
- package/dist/types/Extensions/Stickers/StickersExtension.d.ts +0 -8
- package/dist/types/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -27
- package/dist/types/Extensions/TextModerator/TextModeratorExtension.d.ts +0 -6
- package/dist/types/Extensions/TextModerator/TextModeratorExtensionDecorator.d.ts +0 -8
- package/dist/types/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +0 -5
- package/dist/types/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +0 -8
- package/dist/types/Shared/CometChatUIKit/CometChatUIKit.d.ts +0 -42
- package/dist/types/Shared/Framework/AIExtensionDataSource.d.ts +0 -6
- package/dist/types/Shared/Framework/ChatConfigurator.d.ts +0 -8
- package/dist/types/Shared/Framework/DataSource.d.ts +0 -56
- package/dist/types/Shared/Framework/DataSourceDecorator.d.ts +0 -59
- package/dist/types/Shared/Framework/ExtensionsDataSource.d.ts +0 -6
- package/dist/types/Shared/Utils/MessageUtils.d.ts +0 -16
- package/dist/types/Shared/Utils/MessagesDataSource.d.ts +0 -92
- package/dist/types/Shared/Views/CometChatButton/hooks.d.ts +0 -11
- package/dist/types/Shared/Views/CometChatButton/index.d.ts +0 -19
- package/dist/types/Shared/Views/CometChatCheckbox/hooks.d.ts +0 -9
- package/dist/types/Shared/Views/CometChatCheckbox/index.d.ts +0 -13
- package/dist/types/Shared/Views/CometChatContextMenu/index.d.ts +0 -13
- package/dist/types/Shared/Views/CometChatContextMenu/style.d.ts +0 -28
- package/dist/types/Shared/Views/CometChatList/hooks.d.ts +0 -20
- package/dist/types/Shared/Views/CometChatList/index.d.ts +0 -151
- package/dist/types/Shared/Views/CometChatList/style.d.ts +0 -18
- package/dist/types/Shared/Views/CometChatListItem/hooks.d.ts +0 -9
- package/dist/types/Shared/Views/CometChatListItem/index.d.ts +0 -29
- package/dist/types/Shared/Views/CometChatMenuList/hooks.d.ts +0 -12
- package/dist/types/Shared/Views/CometChatMenuList/index.d.ts +0 -13
- package/dist/types/Shared/Views/CometChatMessageBubble/index.d.ts +0 -22
- package/dist/types/Shared/Views/CometChatMessageBubble/style.d.ts +0 -22
- package/dist/types/Shared/Views/CometChatRadioButton/hooks.d.ts +0 -9
- package/dist/types/Shared/Views/CometChatRadioButton/index.d.ts +0 -13
- package/dist/types/Shared/Views/CometChatTabs/TabsStyle.d.ts +0 -31
- package/dist/types/Shared/Views/CometChatTabs/index.d.ts +0 -11
- package/dist/types/Shared/Views/CometChatTabs/style.d.ts +0 -42
- package/dist/types/Shared/Views/LitElementsWrapper/LitElementsWrapper.d.ts +0 -49
- package/dist/types/index.d.ts +0 -84
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { AvatarStyle, DateStyle, LabelStyle, ListItemStyle, LoaderStyle, ReceiptStyle } from "@cometchat/uikit-elements";
|
|
2
|
-
import { CometChatTheme, MessageBubbleAlignment, MessageListAlignment } from "@cometchat/uikit-resources";
|
|
3
|
-
import { BaseStyle, ListStyle, MessageListStyle, ReactionInfoConfiguration, ReactionInfoStyle, ReactionListStyle, ReactionsStyle } from "@cometchat/uikit-shared";
|
|
4
|
-
import { CSSProperties } from "react";
|
|
5
|
-
/**
|
|
6
|
-
* Generates the style object for the new unread-messages view, visible when the user is not at the bottom and receives a new message
|
|
7
|
-
*
|
|
8
|
-
* @returns {CSSProperties}
|
|
9
|
-
*/
|
|
10
|
-
export declare const newMessageIndicatorStyle: () => CSSProperties;
|
|
11
|
-
/**
|
|
12
|
-
* Generates the style object for the custom header view, visible on the top of the message list
|
|
13
|
-
*
|
|
14
|
-
* @returns {CSSProperties}
|
|
15
|
-
*/
|
|
16
|
-
export declare const headerStyle: () => CSSProperties;
|
|
17
|
-
/**
|
|
18
|
-
* Returns the style object for the custom footer view, visible on the bottom of the message list. By default, smart replies are visible for the message received.
|
|
19
|
-
*
|
|
20
|
-
* @returns {CSSProperties}
|
|
21
|
-
*/
|
|
22
|
-
export declare const footerStyle: () => CSSProperties;
|
|
23
|
-
/**
|
|
24
|
-
* Provides the style object for the CometChatList wrapper which renders a list of messages
|
|
25
|
-
|
|
26
|
-
*
|
|
27
|
-
* @returns {CSSProperties}
|
|
28
|
-
*/
|
|
29
|
-
export declare const listWrapperStyle: () => CSSProperties;
|
|
30
|
-
/**
|
|
31
|
-
* Generates the style object for the MessageList wrapper which renders the CometChatList component
|
|
32
|
-
*
|
|
33
|
-
* @param {(MessageListStyle | undefined)} messageListStyle
|
|
34
|
-
* @param {CometChatTheme} theme
|
|
35
|
-
* @returns {CSSProperties}
|
|
36
|
-
*/
|
|
37
|
-
export declare const wrapperStyle: (messageListStyle: MessageListStyle | undefined, theme: CometChatTheme) => CSSProperties;
|
|
38
|
-
/**
|
|
39
|
-
* Style object for the threadView in the CometChatMessageBubble which shows the message count of a specific thread visible below the CometChatMessageBubble in a particular user/group.
|
|
40
|
-
*
|
|
41
|
-
* @param {CometChat.BaseMessage} message
|
|
42
|
-
* @param {CometChatTheme} theme
|
|
43
|
-
* @param {(CometChat.User | null)} loggedInUser
|
|
44
|
-
* @param {MessageListStyle} [messageListStyle={}]
|
|
45
|
-
* @param {MessageBubbleAlignment} [alignment]
|
|
46
|
-
* @returns {CSSProperties}
|
|
47
|
-
*/
|
|
48
|
-
export declare const messageThreadViewStyle: (message: CometChat.BaseMessage, theme: CometChatTheme, loggedInUser: CometChat.User | null, messageListStyle: MessageListStyle | undefined, alignment?: MessageBubbleAlignment) => CSSProperties;
|
|
49
|
-
/**
|
|
50
|
-
* Style object for the new message indicator text visible upon receiving a new message while the screen is not at the last message of the chat.
|
|
51
|
-
*
|
|
52
|
-
* @param {CometChatTheme} theme
|
|
53
|
-
* @returns {CSSProperties}
|
|
54
|
-
*/
|
|
55
|
-
export declare const newMessageTextStyleStyle: (theme: CometChatTheme) => CSSProperties;
|
|
56
|
-
/**
|
|
57
|
-
* Default style object for CometChatMessageBubble component which renders all types of supported message types.
|
|
58
|
-
*
|
|
59
|
-
* @param {CometChat.BaseMessage} message
|
|
60
|
-
* @param {CometChatTheme} theme
|
|
61
|
-
* @param {(MessageListAlignment | undefined)} alignment
|
|
62
|
-
* @param {(CometChat.User | null)} loggedInUser
|
|
63
|
-
* @returns {BaseStyle}
|
|
64
|
-
*/
|
|
65
|
-
export declare const messageBubbleStyle: (message: CometChat.BaseMessage, theme: CometChatTheme, alignment: MessageListAlignment | undefined, loggedInUser: CometChat.User | null) => BaseStyle;
|
|
66
|
-
/**
|
|
67
|
-
* Default style object for receipt status of the message if it's read sent or delivered.
|
|
68
|
-
*
|
|
69
|
-
* @param {CometChatTheme} theme
|
|
70
|
-
* @param {CometChat.BaseMessage} message
|
|
71
|
-
* @returns {ReceiptStyle}
|
|
72
|
-
*/
|
|
73
|
-
export declare const messageReceiptStyle: (theme: CometChatTheme, message: CometChat.BaseMessage) => ReceiptStyle;
|
|
74
|
-
/**
|
|
75
|
-
* Default style object for statusInfo view which renders the time when the message was sent and receipt status
|
|
76
|
-
of the message if it's read or delivered.
|
|
77
|
-
*
|
|
78
|
-
* @param {boolean} isValid
|
|
79
|
-
* @param {CometChatTheme} theme
|
|
80
|
-
* @param {CometChat.BaseMessage} message
|
|
81
|
-
* @param {MessageBubbleAlignment} alignment
|
|
82
|
-
* @returns {CSSProperties}
|
|
83
|
-
*/
|
|
84
|
-
export declare const getStatusInfoViewStyle: (isValid: boolean, theme: CometChatTheme, message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => CSSProperties;
|
|
85
|
-
/**
|
|
86
|
-
* Style object for footerView wrapper which is visible at the bottom of the CometChatMessageBubble component.
|
|
87
|
-
It is a placeholder which accepts a custom view. By default, message Reactions are visible at the bottom for the message
|
|
88
|
-
received in a particular User/Group Chat.
|
|
89
|
-
*
|
|
90
|
-
* @param {MessageBubbleAlignment} alignment
|
|
91
|
-
* @returns {CSSProperties}
|
|
92
|
-
*/
|
|
93
|
-
export declare const bubbleFooterViewWrapperStyle: (alignment: MessageBubbleAlignment) => CSSProperties;
|
|
94
|
-
/**
|
|
95
|
-
* Style object for time in headerView of CometChatMessageBubble which shows the time when the message was sent
|
|
96
|
-
in the particular user/group chat
|
|
97
|
-
|
|
98
|
-
*
|
|
99
|
-
* @param {(MessageListStyle | undefined)} messageListStyle
|
|
100
|
-
* @param {CometChatTheme} theme
|
|
101
|
-
* @returns {DateStyle}
|
|
102
|
-
*/
|
|
103
|
-
export declare const messageBubbleHeaderDateStyle: (messageListStyle: MessageListStyle | undefined, theme: CometChatTheme) => DateStyle;
|
|
104
|
-
/**
|
|
105
|
-
* Style object for title in headerView of CometChatMessageBubble which shows the name
|
|
106
|
-
of the sender of the message in the particular user/group chat
|
|
107
|
-
*
|
|
108
|
-
* @param {CometChatTheme} theme
|
|
109
|
-
* @returns {LabelStyle}
|
|
110
|
-
*/
|
|
111
|
-
export declare const bubbleHeaderTitleStyle: (theme: CometChatTheme, messageListStyle?: MessageListStyle) => LabelStyle;
|
|
112
|
-
/**
|
|
113
|
-
* Generates the style object for the CometChatDate component, visible between the messages in CometChatMessageList as a separator for same-date messages.
|
|
114
|
-
*
|
|
115
|
-
* @param {(DateStyle | undefined)} dateSeparatorStyle
|
|
116
|
-
* @param {CometChatTheme} theme
|
|
117
|
-
* @returns {DateStyle}
|
|
118
|
-
*/
|
|
119
|
-
export declare const dateSeperatorStyle: (dateSeparatorStyle: DateStyle | undefined, theme: CometChatTheme) => DateStyle;
|
|
120
|
-
/**
|
|
121
|
-
* Provides the default style object for the CometChatMessageList component if the required styles are not provided by the parent component.
|
|
122
|
-
*
|
|
123
|
-
* @param {CometChatTheme} theme
|
|
124
|
-
* @returns {MessageListStyle}
|
|
125
|
-
*/
|
|
126
|
-
export declare const tempMessageListStyle: (theme: CometChatTheme) => MessageListStyle;
|
|
127
|
-
/**
|
|
128
|
-
* Generates the style object for the loading view visible in the center of the CometChatMessageList component until the messages for a specific User/Group are fetched.
|
|
129
|
-
*
|
|
130
|
-
* @param {(MessageListStyle | undefined)} messageListStyle
|
|
131
|
-
* @param {CometChatTheme} theme
|
|
132
|
-
* @returns {LoaderStyle}
|
|
133
|
-
*/
|
|
134
|
-
export declare const loadingViewStyle: (messageListStyle: MessageListStyle | undefined, theme: CometChatTheme) => LoaderStyle;
|
|
135
|
-
/**
|
|
136
|
-
* Generates the style object for the error view visible in the center of the CometChatMessageList component when there is an issue fetching the messages of a specific User/Group.
|
|
137
|
-
*
|
|
138
|
-
* @param {(MessageListStyle | undefined)} messageListStyle
|
|
139
|
-
* @param {CometChatTheme} theme
|
|
140
|
-
* @returns {LabelStyle}
|
|
141
|
-
*/
|
|
142
|
-
export declare const errorViewStyle: (messageListStyle: MessageListStyle | undefined, theme: CometChatTheme) => LabelStyle;
|
|
143
|
-
/**
|
|
144
|
-
* Generates the style object for the CometChatAvatar component, which includes both styling received from the parent component and default styling required in the CometChatAvatar component.
|
|
145
|
-
*
|
|
146
|
-
* @param {(AvatarStyle | undefined)} avatarStyle
|
|
147
|
-
* @param {CometChatTheme} theme
|
|
148
|
-
* @returns {AvatarStyle}
|
|
149
|
-
*/
|
|
150
|
-
export declare const messageAvatarStyle: (avatarStyle: AvatarStyle | undefined, theme: CometChatTheme) => AvatarStyle;
|
|
151
|
-
/**
|
|
152
|
-
* Returns the default style object for CometChatDate wrapper, visible in the center between the messages in CometChatMessageList as a separator for same-day messages.
|
|
153
|
-
*
|
|
154
|
-
* @returns {CSSProperties}
|
|
155
|
-
*/
|
|
156
|
-
export declare const dateSeperatorWrapperStyle: () => CSSProperties;
|
|
157
|
-
/**
|
|
158
|
-
* Provides the default style object for the CometChatAvatar visible in the leadingView of CometChatMessageBubble, showing the sender's avatar.
|
|
159
|
-
*
|
|
160
|
-
* @type {AvatarStyle}
|
|
161
|
-
*/
|
|
162
|
-
export declare const defaultAvatarStyle: AvatarStyle;
|
|
163
|
-
/**
|
|
164
|
-
* Returns the default style object for CometChatMessageList if the style is not received from the parent.
|
|
165
|
-
*
|
|
166
|
-
* @type {MessageListStyle}
|
|
167
|
-
*/
|
|
168
|
-
export declare const defaultMessageListStyle: MessageListStyle;
|
|
169
|
-
/**
|
|
170
|
-
* Provides the default style object for the CometChatMessageBubble wrapper div.
|
|
171
|
-
*
|
|
172
|
-
* @param {MessageBubbleAlignment} alignment
|
|
173
|
-
* @returns {CSSProperties}
|
|
174
|
-
*/
|
|
175
|
-
export declare const bubbleStyle: (alignment: MessageBubbleAlignment) => CSSProperties;
|
|
176
|
-
/**
|
|
177
|
-
* Supplies the default style object for the CometChatMessageBubble container.
|
|
178
|
-
*
|
|
179
|
-
* @type {CSSProperties}
|
|
180
|
-
*/
|
|
181
|
-
export declare const defaultMessageListBubbleStyle: CSSProperties;
|
|
182
|
-
/**
|
|
183
|
-
* Returns the default style for the CometChatList component, which renders a list of messages for a specific user/group.
|
|
184
|
-
*
|
|
185
|
-
* @returns {ListStyle}
|
|
186
|
-
*/
|
|
187
|
-
export declare const getListStyle: () => ListStyle;
|
|
188
|
-
/**
|
|
189
|
-
* Provides the default style for the CometChatAvatar component, which renders an Avatar about the reactor in the Reactions list.
|
|
190
|
-
*
|
|
191
|
-
* @param {CometChatTheme} theme
|
|
192
|
-
* @returns {AvatarStyle}
|
|
193
|
-
*/
|
|
194
|
-
export declare const getReactionListAvatarStyle: (theme: CometChatTheme) => AvatarStyle;
|
|
195
|
-
/**
|
|
196
|
-
* Generates the default style for the CometChatListItem component, which renders details about the reaction in the list.
|
|
197
|
-
*
|
|
198
|
-
* @param {CometChatTheme} theme
|
|
199
|
-
* @returns {ListItemStyle}
|
|
200
|
-
*/
|
|
201
|
-
export declare const getReactionListItemStyle: (theme: CometChatTheme) => ListItemStyle;
|
|
202
|
-
/**
|
|
203
|
-
* Provides the default style for the CometChatReactionList component, which shows a list of reactions on a specific reaction along with the reactor's details.
|
|
204
|
-
*
|
|
205
|
-
* @param {CometChatTheme} theme
|
|
206
|
-
* @returns {ReactionListStyle}
|
|
207
|
-
*/
|
|
208
|
-
export declare const getReactionListStyle: (theme: CometChatTheme) => ReactionListStyle;
|
|
209
|
-
/**
|
|
210
|
-
* Default styling for CometChatReactionInfo component. If the configuration styling is not passed.
|
|
211
|
-
*
|
|
212
|
-
* @param {CometChatTheme} theme
|
|
213
|
-
* @param {ReactionInfoConfiguration} config
|
|
214
|
-
* @returns {ReactionInfoStyle}
|
|
215
|
-
*/
|
|
216
|
-
export declare const getReactionInfoStyle: (theme: CometChatTheme, config: ReactionInfoConfiguration) => ReactionInfoStyle;
|
|
217
|
-
/**
|
|
218
|
-
* Default styleing for CometChatReactions component wrapper.
|
|
219
|
-
*
|
|
220
|
-
* @param {MessageBubbleAlignment} alignment
|
|
221
|
-
* @returns {CSSProperties}
|
|
222
|
-
*/
|
|
223
|
-
export declare const getReactionViewStyle: (alignment: MessageBubbleAlignment) => CSSProperties;
|
|
224
|
-
/**
|
|
225
|
-
* Returns the default style for the statusInfoView wrapper in CometChatMessageBubble.
|
|
226
|
-
*
|
|
227
|
-
* @returns {CSSProperties}
|
|
228
|
-
*/
|
|
229
|
-
export declare const getStatusInfoStyle: () => CSSProperties;
|
|
230
|
-
/**
|
|
231
|
-
* Generates the default style for the CometChatReactions component wrapper, which shows a list of reactions on a specific message, visible in the footer view of the message bubble.
|
|
232
|
-
*
|
|
233
|
-
* @param {ReactionsStyle} [reactionsStyle]
|
|
234
|
-
* @param {CometChatTheme} theme
|
|
235
|
-
* @returns {ReactionsStyle}
|
|
236
|
-
*/
|
|
237
|
-
export declare const getReactionsStyle: (reactionsStyle: ReactionsStyle | undefined, theme: CometChatTheme) => ReactionsStyle;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { MutableRefObject } from "react";
|
|
2
|
-
/**
|
|
3
|
-
* This Hooks function is a custom React hook designed to manage functionalities of CometChatMessageList component. It fetches the logged-in user, handles event subscriptions and tracks message IDs for new message retrieval. It plays a key role in maintaining real-time functionality and user interactions in the chat interface.
|
|
4
|
-
**/
|
|
5
|
-
declare function Hooks(loggedInUserRef: MutableRefObject<CometChat.User | null>, messageListManagerRef: MutableRefObject<any>, fetchPreviousMessages: () => void, updateMessage: (key: string, mesage: CometChat.BaseMessage, group?: CometChat.Group) => void, messagesRequestBuilder: CometChat.MessagesRequestBuilder | undefined, user: CometChat.User | undefined, group: CometChat.Group | undefined, subscribeToEvents: () => (() => void) | undefined, messageIdRef: MutableRefObject<any>, totalMessagesCountRef: MutableRefObject<any>, messageList: CometChat.BaseMessage[], onErrorCallback: (error: CometChat.CometChatException) => void, setMessageList: (messages: CometChat.BaseMessage[]) => void, setScrollListToBottom: (scrollToBottom: boolean) => void, smartReplyViewRef: MutableRefObject<any>, isOnBottomRef: MutableRefObject<boolean>, isFirstReloadRef: MutableRefObject<boolean>): void;
|
|
6
|
-
export { Hooks };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare function Hooks(loggedInUser: any, setLoggedInUser: Function, subscribeToEvents: Function, ccHeaderMenuRef: any, setOpenDetails: any, messageListConfiguration: any, user: CometChat.User | null, setActiveUser: Function, group: CometChat.Group | null, setActiveGroup: Function, setOpenThreadedMessages: any): void;
|
|
2
|
-
export { Hooks };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import "@cometchat/uikit-elements";
|
|
2
|
-
import { DetailsConfiguration, MessageComposerConfiguration, MessageHeaderConfiguration, MessageListConfiguration, MessagesStyle, ThreadedMessagesConfiguration } from "@cometchat/uikit-shared";
|
|
3
|
-
interface IMessagesProps {
|
|
4
|
-
user?: CometChat.User;
|
|
5
|
-
group?: CometChat.Group;
|
|
6
|
-
hideMessageComposer?: boolean;
|
|
7
|
-
disableTyping?: boolean;
|
|
8
|
-
messageHeaderConfiguration?: MessageHeaderConfiguration;
|
|
9
|
-
messageListConfiguration?: MessageListConfiguration;
|
|
10
|
-
messageComposerConfiguration?: MessageComposerConfiguration;
|
|
11
|
-
threadedMessagesConfiguration?: ThreadedMessagesConfiguration;
|
|
12
|
-
detailsConfiguration?: DetailsConfiguration;
|
|
13
|
-
customSoundForIncomingMessages?: string;
|
|
14
|
-
customSoundForOutgoingMessages?: string;
|
|
15
|
-
disableSoundForMessages?: boolean;
|
|
16
|
-
messagesStyle?: MessagesStyle;
|
|
17
|
-
messageHeaderView?: any;
|
|
18
|
-
messageComposerView?: any;
|
|
19
|
-
messageListView?: any;
|
|
20
|
-
hideMessageHeader?: boolean;
|
|
21
|
-
hideDetails?: boolean;
|
|
22
|
-
auxiliaryMenu?: any;
|
|
23
|
-
}
|
|
24
|
-
declare const CometChatMessages: (props: IMessagesProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
-
export { CometChatMessages };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { DetailsConfiguration, DetailsStyle, MessageComposerConfiguration, MessageComposerStyle, MessageHeaderConfiguration, MessageHeaderStyle, MessageListConfiguration, MessageListStyle, MessagesStyle } from "@cometchat/uikit-shared";
|
|
2
|
-
import { CSSProperties } from "react";
|
|
3
|
-
import { CometChatTheme } from "@cometchat/uikit-resources";
|
|
4
|
-
export declare const MessagesWrapperStyle: (messagesStyle: MessagesStyle | undefined, theme: CometChatTheme) => CSSProperties;
|
|
5
|
-
export declare const MessagesDivStyle: () => CSSProperties;
|
|
6
|
-
export declare const ThreadedMessagesDivStyle: CSSProperties;
|
|
7
|
-
export declare const MessagesDetailsDivStyle: CSSProperties;
|
|
8
|
-
export declare const MessagesHeaderDivStyle: CSSProperties;
|
|
9
|
-
export declare const MessagesListDivStyle: CSSProperties;
|
|
10
|
-
export declare const CometChatThreadedMessagesDivStyle: CSSProperties;
|
|
11
|
-
export declare const MessagesComposerDivStyle: (theme: CometChatTheme) => CSSProperties;
|
|
12
|
-
export declare const liveReactionStyle: () => CSSProperties;
|
|
13
|
-
export declare const getMessageHeaderStyle: (messageHeaderConfiguration: MessageHeaderConfiguration | undefined) => MessageHeaderStyle;
|
|
14
|
-
export declare const getMessageListStyle: (messageListConfiguration: MessageListConfiguration | undefined) => MessageListStyle;
|
|
15
|
-
export declare const getMessageComposerStyle: (messageComposerConfiguration: MessageComposerConfiguration | undefined) => MessageComposerStyle;
|
|
16
|
-
export declare const getDetailsStyle: (detailsConfiguration: DetailsConfiguration | undefined, messagesStyle: MessagesStyle | undefined, theme: CometChatTheme) => DetailsStyle;
|
|
17
|
-
export declare function detailsButtonStyle(theme: CometChatTheme): {
|
|
18
|
-
height: string;
|
|
19
|
-
width: string;
|
|
20
|
-
border: string;
|
|
21
|
-
borderRadius: string;
|
|
22
|
-
background: string;
|
|
23
|
-
buttonIconTint: string | undefined;
|
|
24
|
-
padding: number;
|
|
25
|
-
};
|
|
26
|
-
export declare const panelDivStyle: CSSProperties;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "@cometchat/uikit-elements";
|
|
3
|
-
interface IThreadedMessagesProps {
|
|
4
|
-
parentMessage: CometChat.BaseMessage;
|
|
5
|
-
title?: string;
|
|
6
|
-
closeIconURL?: string;
|
|
7
|
-
bubbleView: any;
|
|
8
|
-
messageActionView?: any;
|
|
9
|
-
onClose?: any;
|
|
10
|
-
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
11
|
-
threadedMessagesStyle?: any;
|
|
12
|
-
messageListConfiguration?: any;
|
|
13
|
-
messageComposerConfiguration?: any;
|
|
14
|
-
hideMessageComposer?: boolean;
|
|
15
|
-
messageComposerView?: (user?: CometChat.User, group?: CometChat.Group, parentMessage?: CometChat.BaseMessage) => JSX.Element;
|
|
16
|
-
messageListView?: (user?: CometChat.User, group?: CometChat.Group, parentMessage?: CometChat.BaseMessage) => JSX.Element;
|
|
17
|
-
}
|
|
18
|
-
declare const CometChatThreadedMessages: (props: IThreadedMessagesProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export { CometChatThreadedMessages };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CometChatTheme } from "@cometchat/uikit-resources";
|
|
2
|
-
import { CSSProperties } from "react";
|
|
3
|
-
export declare const ThreadedMessagesWrapperStyle: () => CSSProperties;
|
|
4
|
-
export declare const ThreadedMessagesHeaderStyle: () => CSSProperties;
|
|
5
|
-
export declare const ThreadedMessagesCloseButtonStyle: () => {
|
|
6
|
-
display: string;
|
|
7
|
-
alignItems: string;
|
|
8
|
-
width: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const ThreadedMessagesTitleStyle: () => {
|
|
11
|
-
display: string;
|
|
12
|
-
alignItems: string;
|
|
13
|
-
justifyContent: string;
|
|
14
|
-
width: string;
|
|
15
|
-
};
|
|
16
|
-
export declare const ThreadedMessagesBubbleViewStyle: () => CSSProperties;
|
|
17
|
-
export declare const ThreadedMessagesActionViewStyle: (theme: CometChatTheme) => CSSProperties;
|
|
18
|
-
export declare const ThreadedMessagesListStyle: () => CSSProperties;
|
|
19
|
-
export declare const ThreadedMessagesComposerStyle: () => CSSProperties;
|
|
20
|
-
export declare const threadedMessageListStyle: () => CSSProperties;
|
|
21
|
-
export declare const actionButtonStyle: (theme: CometChatTheme) => CSSProperties;
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { AvatarStyle, ListItemStyle } from "@cometchat/uikit-elements";
|
|
2
|
-
import { CSSProperties } from "react";
|
|
3
|
-
import { CometChatOption, TitleAlignment } from "@cometchat/uikit-resources";
|
|
4
|
-
import { GroupMembersStyle, TransferOwnershipStyle } from "@cometchat/uikit-shared";
|
|
5
|
-
interface ITransferOwnershipProps {
|
|
6
|
-
/**
|
|
7
|
-
* Group to transfer ownership of
|
|
8
|
-
*/
|
|
9
|
-
group: CometChat.Group;
|
|
10
|
-
/**
|
|
11
|
-
* Title of the component
|
|
12
|
-
*
|
|
13
|
-
* @defaultValue `localize("TRANSFER_OWNERSHIP")`
|
|
14
|
-
*/
|
|
15
|
-
title?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Alignment of the `title` text
|
|
18
|
-
*
|
|
19
|
-
* @defaultValue `TitleAlignment.center`
|
|
20
|
-
*/
|
|
21
|
-
titleAlignment?: TitleAlignment;
|
|
22
|
-
/**
|
|
23
|
-
* Image URL for the search icon to use in the search bar
|
|
24
|
-
*
|
|
25
|
-
* @defaultValue `./assets/search.svg`
|
|
26
|
-
*/
|
|
27
|
-
searchIconURL?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Text to be displayed when the search input has no value
|
|
30
|
-
*
|
|
31
|
-
* @defaultValue `localize("SEARCH")`
|
|
32
|
-
*/
|
|
33
|
-
searchPlaceholder?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Hide the search bar
|
|
36
|
-
*
|
|
37
|
-
* @defaulValue `false`
|
|
38
|
-
*/
|
|
39
|
-
hideSearch?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Request builder to fetch group members
|
|
42
|
-
*
|
|
43
|
-
* @remarks
|
|
44
|
-
* If the search input is not empty and the `searchRequestBuilder` prop is not provided,
|
|
45
|
-
* the search keyword of this request builder is set to the text in the search input
|
|
46
|
-
*
|
|
47
|
-
* @defaultValue Default request builder having the limit set to 30
|
|
48
|
-
*/
|
|
49
|
-
groupMembersRequestBuilder?: CometChat.GroupMembersRequestBuilder;
|
|
50
|
-
/**
|
|
51
|
-
* Request builder with search parameters to fetch group members
|
|
52
|
-
*
|
|
53
|
-
* @remarks
|
|
54
|
-
* If the search input is not empty,
|
|
55
|
-
* the search keyword of this request builder is set to the text in the search input
|
|
56
|
-
*/
|
|
57
|
-
searchRequestBuilder?: CometChat.GroupMembersRequestBuilder;
|
|
58
|
-
/**
|
|
59
|
-
* Image URL for the default loading view
|
|
60
|
-
*
|
|
61
|
-
* @defaultValue `./assets/spinner.svg`
|
|
62
|
-
*/
|
|
63
|
-
loadingIconURL?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Custom view for the loading state of the component
|
|
66
|
-
*/
|
|
67
|
-
loadingStateView?: JSX.Element;
|
|
68
|
-
/**
|
|
69
|
-
* Text to display in the default empty view
|
|
70
|
-
*
|
|
71
|
-
* @defaultValue `localize("NO_USERS_FOUND")`
|
|
72
|
-
*/
|
|
73
|
-
emptyStateText?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Custom view for the empty state of the component
|
|
76
|
-
*/
|
|
77
|
-
emptyStateView?: JSX.Element;
|
|
78
|
-
/**
|
|
79
|
-
* Text to display in the default error view
|
|
80
|
-
*
|
|
81
|
-
* @defaultValue `localize("SOMETHING_WRONG")`
|
|
82
|
-
*/
|
|
83
|
-
errorStateText?: string;
|
|
84
|
-
/**
|
|
85
|
-
* Custom view for the error state of the component
|
|
86
|
-
*/
|
|
87
|
-
errorStateView?: JSX.Element;
|
|
88
|
-
/**
|
|
89
|
-
* Function to call whenever the component encounters an error
|
|
90
|
-
*/
|
|
91
|
-
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
92
|
-
/**
|
|
93
|
-
* Hide the separator at the bottom of the default list item view
|
|
94
|
-
*
|
|
95
|
-
* @defaultValue `false`
|
|
96
|
-
*/
|
|
97
|
-
hideSeparator?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Hide user presence
|
|
100
|
-
*
|
|
101
|
-
* @remarks
|
|
102
|
-
* If set to true, the status indicator of the default list item view is not displayed
|
|
103
|
-
*
|
|
104
|
-
* @defaultValue `false`
|
|
105
|
-
*/
|
|
106
|
-
disableUsersPresence?: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* Image URL for the close button
|
|
109
|
-
*
|
|
110
|
-
* @defaultValue `./assets/close2x.svg`
|
|
111
|
-
*/
|
|
112
|
-
closeButtonIconURL?: string;
|
|
113
|
-
/**
|
|
114
|
-
* Function to call when the close button is clicked
|
|
115
|
-
*/
|
|
116
|
-
onClose?: () => void;
|
|
117
|
-
/**
|
|
118
|
-
* Custom list item view to be rendered for each group member in the fetched list
|
|
119
|
-
*/
|
|
120
|
-
listItemView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
121
|
-
/**
|
|
122
|
-
* Custom subtitle view to be rendered for each group member in the fetched list
|
|
123
|
-
*
|
|
124
|
-
* @remarks
|
|
125
|
-
* This prop is used if `listItemView` prop is not provided
|
|
126
|
-
*/
|
|
127
|
-
subtitleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
128
|
-
transferButtonText?: string;
|
|
129
|
-
onTransferOwnership?: (groupMember: CometChat.GroupMember) => void;
|
|
130
|
-
/**
|
|
131
|
-
* Text to display for the cancel button
|
|
132
|
-
*/
|
|
133
|
-
cancelButtonText?: string;
|
|
134
|
-
/**
|
|
135
|
-
* List of actions available on mouse over on the default list item component
|
|
136
|
-
*/
|
|
137
|
-
options?: (group: CometChat.Group, groupMember: CometChat.GroupMember) => CometChatOption[];
|
|
138
|
-
/**
|
|
139
|
-
* Styles to apply to the status indicator component of the default list item view
|
|
140
|
-
*/
|
|
141
|
-
statusIndicatorStyle?: CSSProperties;
|
|
142
|
-
/**
|
|
143
|
-
* Styles to apply to the avatar component of the default list item view
|
|
144
|
-
*/
|
|
145
|
-
avatarStyle?: AvatarStyle;
|
|
146
|
-
/**
|
|
147
|
-
* Styles to apply to the default list item view
|
|
148
|
-
*/
|
|
149
|
-
listItemStyle?: ListItemStyle;
|
|
150
|
-
/**
|
|
151
|
-
* Styles to apply to the `CometChatGroupMembers` component
|
|
152
|
-
*/
|
|
153
|
-
groupMemberStyle?: GroupMembersStyle;
|
|
154
|
-
/**
|
|
155
|
-
* Styles to apply to this component
|
|
156
|
-
*/
|
|
157
|
-
transferOwnershipStyle?: TransferOwnershipStyle;
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Renders transfer ownership view related to a group of a CometChat App
|
|
161
|
-
*/
|
|
162
|
-
export declare function CometChatTransferOwnership(props: ITransferOwnershipProps): import("react/jsx-runtime").JSX.Element;
|
|
163
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AvatarStyle, LabelStyle, ListItemStyle } from "@cometchat/uikit-elements";
|
|
2
|
-
import { CometChatTheme } from "@cometchat/uikit-resources";
|
|
3
|
-
import { GroupMembersStyle, TransferOwnershipStyle } from "@cometchat/uikit-shared";
|
|
4
|
-
import { CSSProperties } from "react";
|
|
5
|
-
type ButtonStyle = CSSProperties & {
|
|
6
|
-
buttonIconTint?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function transferOwnershipStyle(transferOwnershipStyleObject: TransferOwnershipStyle | null, theme: CometChatTheme): CSSProperties;
|
|
9
|
-
export declare function scopeLabelStyle(transferOwnershipStyleObject: TransferOwnershipStyle | null, theme: CometChatTheme, isRadioButton: boolean): LabelStyle;
|
|
10
|
-
export declare function transferBtnStyle(transferOwnershipStyleObject: TransferOwnershipStyle | null, theme: CometChatTheme): ButtonStyle;
|
|
11
|
-
export declare function btnsWrapperStyle(): CSSProperties;
|
|
12
|
-
export declare function cancelBtnStyle(transferOwnershipStyleObject: TransferOwnershipStyle | null, theme: CometChatTheme): ButtonStyle;
|
|
13
|
-
export declare function avatarStyle(avatarStyleObject: AvatarStyle | null, theme: CometChatTheme): AvatarStyle;
|
|
14
|
-
export declare function statusIndicatorStyle(statusIndicatorStyleObject: CSSProperties | null): CSSProperties;
|
|
15
|
-
export declare function listItemStyle(listItemStyleObject: ListItemStyle | null, groupMemberStyleObject: GroupMembersStyle | null, theme: CometChatTheme): ListItemStyle;
|
|
16
|
-
export declare function groupMembersStyle(groupMemberStyleObject: GroupMembersStyle | null, theme: CometChatTheme): GroupMembersStyle;
|
|
17
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { UserMemberListType, UserPresencePlacement } from "@cometchat/uikit-resources";
|
|
3
|
-
import { AvatarStyle } from "@cometchat/uikit-elements";
|
|
4
|
-
export interface IMentionsProps {
|
|
5
|
-
userMemberListType?: UserMemberListType;
|
|
6
|
-
onItemClick?: (user: CometChat.User | CometChat.GroupMember) => void;
|
|
7
|
-
listItemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
|
|
8
|
-
avatarStyle?: AvatarStyle;
|
|
9
|
-
statusIndicatorStyle?: CSSProperties;
|
|
10
|
-
searchKeyword?: string;
|
|
11
|
-
group?: CometChat.Group;
|
|
12
|
-
subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
|
|
13
|
-
usersRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
14
|
-
disableUsersPresence?: boolean;
|
|
15
|
-
userPresencePlacement?: UserPresencePlacement;
|
|
16
|
-
hideSeparator?: boolean;
|
|
17
|
-
loadingStateView?: JSX.Element;
|
|
18
|
-
onEmpty?: () => void;
|
|
19
|
-
groupMemberRequestBuilder?: CometChat.GroupMembersRequestBuilder;
|
|
20
|
-
loadingIconUrl?: string;
|
|
21
|
-
disableLoadingState?: boolean;
|
|
22
|
-
onError?: () => void;
|
|
23
|
-
}
|
|
24
|
-
declare function CometChatUserMemberWrapper(props: IMentionsProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export default CometChatUserMemberWrapper;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
type Args = {
|
|
3
|
-
searchText: string;
|
|
4
|
-
usersRequestBuilder: CometChat.UsersRequestBuilder | null;
|
|
5
|
-
searchRequestBuilder: CometChat.UsersRequestBuilder | null;
|
|
6
|
-
usersSearchText: React.MutableRefObject<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare class UsersManager {
|
|
9
|
-
private usersRequest;
|
|
10
|
-
private static defaultLimit;
|
|
11
|
-
/**
|
|
12
|
-
* Set `usersRequest` of the instance
|
|
13
|
-
*/
|
|
14
|
-
constructor(args: Args);
|
|
15
|
-
private getDefaultRequestBuilder;
|
|
16
|
-
/**
|
|
17
|
-
* Calls `fetchNext` method of the set `usersRequest`
|
|
18
|
-
*/
|
|
19
|
-
fetchNext(): Promise<[] | import("@cometchat/chat-sdk-javascript").User[]>;
|
|
20
|
-
getCurrentPage(): number;
|
|
21
|
-
/**
|
|
22
|
-
* Attaches an SDK user listener
|
|
23
|
-
*
|
|
24
|
-
* @returns Function to call to remove the attached SDK user listener
|
|
25
|
-
*/
|
|
26
|
-
static atttachListeners(cb: (user: CometChat.User) => void): () => void;
|
|
27
|
-
/**
|
|
28
|
-
* Attaches an SDK websocket listener
|
|
29
|
-
*
|
|
30
|
-
* @returns - Function to remove the added SDK websocket listener
|
|
31
|
-
*/
|
|
32
|
-
static attachConnestionListener(callback: () => void): () => void;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Action } from ".";
|
|
3
|
-
import { UsersManager } from "./controller";
|
|
4
|
-
type Args = {
|
|
5
|
-
usersManagerRef: React.MutableRefObject<UsersManager | null>;
|
|
6
|
-
fetchNextAndAppendUsers: (fetchId: string) => Promise<void>;
|
|
7
|
-
searchText: string;
|
|
8
|
-
usersRequestBuilder: CometChat.UsersRequestBuilder | null;
|
|
9
|
-
searchRequestBuilder: CometChat.UsersRequestBuilder | null;
|
|
10
|
-
dispatch: React.Dispatch<Action>;
|
|
11
|
-
updateUser: (user: CometChat.User) => void;
|
|
12
|
-
fetchNextIdRef: React.MutableRefObject<string>;
|
|
13
|
-
searchKeyword: string;
|
|
14
|
-
disableLoadingState: boolean;
|
|
15
|
-
usersSearchText: React.MutableRefObject<string>;
|
|
16
|
-
};
|
|
17
|
-
export declare function Hooks(args: Args): void;
|
|
18
|
-
export {};
|