@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,65 +0,0 @@
|
|
|
1
|
-
import { Action, ActionOnClickType, ContentToDisplay } from ".";
|
|
2
|
-
import { Group, GroupMembersRequestBuilder, User, UsersRequestBuilder } from "@cometchat/chat-sdk-javascript";
|
|
3
|
-
import { CometChatMentionsFormatter, CometChatTextFormatter, UserMemberWrapperConfiguration } from "@cometchat/uikit-shared";
|
|
4
|
-
import { UserMemberListType } from "@cometchat/uikit-resources";
|
|
5
|
-
import React, { JSX } from "react";
|
|
6
|
-
type Args = {
|
|
7
|
-
dispatch: React.Dispatch<Action>;
|
|
8
|
-
textInputRef: React.MutableRefObject<JSX.IntrinsicElements["cometchat-message-input"] | null>;
|
|
9
|
-
liveReactionBtnElement: JSX.IntrinsicElements["cometchat-button"] | null;
|
|
10
|
-
LiveReactionIconURL: string;
|
|
11
|
-
mySetAddToMsgInputText: (text: string) => void;
|
|
12
|
-
actionSheetElement: JSX.IntrinsicElements["cometchat-action-sheet"] | null;
|
|
13
|
-
mediaFilePickerRef: React.MutableRefObject<HTMLInputElement | null>;
|
|
14
|
-
secondaryBtnElement: JSX.IntrinsicElements["cometchat-button"] | null;
|
|
15
|
-
textMessageEditPreviewElement: JSX.IntrinsicElements["cometchat-preview"] | null;
|
|
16
|
-
auxiliaryBtnElement: JSX.IntrinsicElements["cometchat-button"] | null;
|
|
17
|
-
voiceRecordingBtnElement: JSX.IntrinsicElements["cometchat-button"] | null;
|
|
18
|
-
emojiKeyboardElement: JSX.IntrinsicElements["cometchat-emoji-keyboard"] | null;
|
|
19
|
-
voiceRecordingElement: JSX.IntrinsicElements["cometchat-emoji-keyboard"] | null;
|
|
20
|
-
auxiliaryPopoverElement: JSX.IntrinsicElements["cometchat-popover"] | null;
|
|
21
|
-
attachmentPopoverElement: JSX.IntrinsicElements["cometchat-popover"] | null;
|
|
22
|
-
text: string;
|
|
23
|
-
handleSendButtonClick: (text: string) => Promise<void>;
|
|
24
|
-
primaryBtnElement: JSX.IntrinsicElements["cometchat-button"] | null;
|
|
25
|
-
onTextChange?: (text: string) => void;
|
|
26
|
-
actionIdToActionOnClick: React.MutableRefObject<Map<string, ActionOnClickType>>;
|
|
27
|
-
handleTyping: () => void;
|
|
28
|
-
errorHandler: (error: unknown) => void;
|
|
29
|
-
getReceiverDetails: () => {
|
|
30
|
-
receiverId: string;
|
|
31
|
-
receiverType: string;
|
|
32
|
-
};
|
|
33
|
-
contentToDisplay: ContentToDisplay;
|
|
34
|
-
createPollViewRef: any;
|
|
35
|
-
handleSendVoiceMessage: (blob: Blob) => Promise<void>;
|
|
36
|
-
aiPopoverElement: JSX.IntrinsicElements["cometchat-popover"] | null;
|
|
37
|
-
aiBtnElement: JSX.IntrinsicElements["cometchat-button"] | null;
|
|
38
|
-
setSmartRepliesView: any;
|
|
39
|
-
textFormatters: Array<CometChatTextFormatter>;
|
|
40
|
-
disableMentions: boolean;
|
|
41
|
-
textFormatterArray: Array<CometChatTextFormatter>;
|
|
42
|
-
mentionsTextFormatterInstanceRef: React.MutableRefObject<CometChatMentionsFormatter>;
|
|
43
|
-
userMemberWrapperConfiguration: UserMemberWrapperConfiguration | undefined;
|
|
44
|
-
setTextFormatters: React.Dispatch<React.SetStateAction<CometChatTextFormatter[]>>;
|
|
45
|
-
CometChatUIKitLoginListener: any;
|
|
46
|
-
group: CometChat.Group | undefined;
|
|
47
|
-
user: CometChat.User | undefined;
|
|
48
|
-
userMemberWrapperConfig: UserMemberWrapperConfiguration;
|
|
49
|
-
setUserMemberWrapperConfig: React.Dispatch<React.SetStateAction<UserMemberWrapperConfiguration>>;
|
|
50
|
-
userPropRef: React.MutableRefObject<User | undefined>;
|
|
51
|
-
groupPropRef: React.MutableRefObject<Group | undefined>;
|
|
52
|
-
setShowListForMentions: any;
|
|
53
|
-
searchMentions: Function;
|
|
54
|
-
mentionsFormatterInstanceId: string;
|
|
55
|
-
setUsersRequestBuilder: React.Dispatch<React.SetStateAction<UsersRequestBuilder | undefined>>;
|
|
56
|
-
setGroupMembersRequestBuilder: React.Dispatch<React.SetStateAction<GroupMembersRequestBuilder | undefined>>;
|
|
57
|
-
setUserMemberListType: React.Dispatch<React.SetStateAction<UserMemberListType | undefined>>;
|
|
58
|
-
userMemberWrapperRef: any;
|
|
59
|
-
getComposerId: Function;
|
|
60
|
-
parentMessageIdPropRef: any;
|
|
61
|
-
isPartOfCurrentChatForUIEvent: (message: CometChat.BaseMessage) => boolean | undefined;
|
|
62
|
-
propsText: string | undefined;
|
|
63
|
-
};
|
|
64
|
-
export declare function Hooks(args: Args): void;
|
|
65
|
-
export {};
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import { AIOptionsStyle, CometChatTextFormatter, MessageComposerStyle, UserMemberWrapperConfiguration } from "@cometchat/uikit-shared";
|
|
2
|
-
import { ActionSheetStyle, MediaRecorderStyle } from "@cometchat/uikit-elements";
|
|
3
|
-
import { AuxiliaryButtonAlignment, CometChatMessageComposerAction, PreviewMessageMode } from "@cometchat/uikit-resources";
|
|
4
|
-
import React, { JSX } from "react";
|
|
5
|
-
type ComposerId = {
|
|
6
|
-
parentMessageId: number | null;
|
|
7
|
-
user: string | null;
|
|
8
|
-
group: string | null;
|
|
9
|
-
};
|
|
10
|
-
export type ContentToDisplay = "attachments" | "emojiKeyboard" | "voiceRecording" | "ai" | "none";
|
|
11
|
-
export type ActionOnClickType = (() => void) | null;
|
|
12
|
-
interface IMessageComposerProps {
|
|
13
|
-
/**
|
|
14
|
-
* User to send messages to
|
|
15
|
-
*/
|
|
16
|
-
user?: CometChat.User;
|
|
17
|
-
/**
|
|
18
|
-
* Group to send messages to
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
* This prop is used if `user` prop is not provided
|
|
22
|
-
*/
|
|
23
|
-
group?: CometChat.Group;
|
|
24
|
-
/**
|
|
25
|
-
* Text to fill the message input with
|
|
26
|
-
*
|
|
27
|
-
* @remarks
|
|
28
|
-
* This prop is used only when this component mounts
|
|
29
|
-
*
|
|
30
|
-
* @defaultValue `""`
|
|
31
|
-
*/
|
|
32
|
-
text?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Function to call when the message input's text value changes
|
|
35
|
-
*/
|
|
36
|
-
onTextChange?: (text: string) => void;
|
|
37
|
-
/**
|
|
38
|
-
* Text shown in the message input when it is empty
|
|
39
|
-
*/
|
|
40
|
-
placeHolderText?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Image URL for the send button
|
|
43
|
-
*
|
|
44
|
-
* @remarks
|
|
45
|
-
* This prop is used if `sendButtonView` prop is not provided
|
|
46
|
-
*
|
|
47
|
-
* @defaultValue `SendIcon`
|
|
48
|
-
*/
|
|
49
|
-
sendButtonIconURL?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Custom send button view
|
|
52
|
-
*/
|
|
53
|
-
sendButtonView?: (userOrGroup: CometChat.User | CometChat.Group, composerId: ComposerId) => JSX.Element;
|
|
54
|
-
/**
|
|
55
|
-
* Function to call whenever a new text message is sent
|
|
56
|
-
*/
|
|
57
|
-
onSendButtonClick?: (message: CometChat.BaseMessage, previewMessageMode?: PreviewMessageMode) => void;
|
|
58
|
-
/**
|
|
59
|
-
* Custom secondary button view
|
|
60
|
-
*/
|
|
61
|
-
secondaryButtonView?: (userOrGroup: CometChat.User | CometChat.Group, composerId: ComposerId) => JSX.Element;
|
|
62
|
-
/**
|
|
63
|
-
* Image URL for the default secondary button
|
|
64
|
-
*
|
|
65
|
-
* @remarks
|
|
66
|
-
* This prop is used if `secondaryButtonView` prop is not provided
|
|
67
|
-
*
|
|
68
|
-
* @defaultValue `./assets/plus.svg`
|
|
69
|
-
*/
|
|
70
|
-
attachmentIconURL?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Image URL for the emoji button
|
|
73
|
-
*
|
|
74
|
-
* @defaultValue `SmileysIcon`
|
|
75
|
-
*/
|
|
76
|
-
emojiIconURL?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Image URL for the AI button
|
|
79
|
-
*
|
|
80
|
-
* @defaultValue `AIIcon`
|
|
81
|
-
*/
|
|
82
|
-
AIIconURL?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Custom auxiliary button view
|
|
85
|
-
*/
|
|
86
|
-
auxiliaryButtonView?: (userOrGroup: CometChat.User | CometChat.Group, composerId: ComposerId) => JSX.Element;
|
|
87
|
-
/**
|
|
88
|
-
* Alignment of the auxiliary button
|
|
89
|
-
*
|
|
90
|
-
* @defaultValue `AuxiliaryButtonAlignment.right`
|
|
91
|
-
*/
|
|
92
|
-
auxiliaryButtonAlignment?: AuxiliaryButtonAlignment;
|
|
93
|
-
/**
|
|
94
|
-
* Options for the default secondary view
|
|
95
|
-
*/
|
|
96
|
-
attachmentOptions?: (userOrGroup: CometChat.User | CometChat.Group, composerId: ComposerId) => CometChatMessageComposerAction[];
|
|
97
|
-
/**
|
|
98
|
-
* Hide layout button
|
|
99
|
-
*
|
|
100
|
-
* @defaultValue `false`
|
|
101
|
-
*/
|
|
102
|
-
hideLayoutMode?: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Id of the parent message
|
|
105
|
-
*/
|
|
106
|
-
parentMessageId?: number;
|
|
107
|
-
/**
|
|
108
|
-
* Image URL for the live reaction button
|
|
109
|
-
*
|
|
110
|
-
* @defaultValue `./assets/heart.svg`
|
|
111
|
-
*/
|
|
112
|
-
LiveReactionIconURL?: string;
|
|
113
|
-
/**
|
|
114
|
-
* Hide live reaction button
|
|
115
|
-
*
|
|
116
|
-
* @defaultValue `false`
|
|
117
|
-
*/
|
|
118
|
-
hideLiveReaction?: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* Preview section at the top of the message input
|
|
121
|
-
*/
|
|
122
|
-
headerView?: JSX.Element;
|
|
123
|
-
/**
|
|
124
|
-
* Function to call whenever the component encounters an error
|
|
125
|
-
*/
|
|
126
|
-
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
127
|
-
/**
|
|
128
|
-
* Disable sound for outgoing messages
|
|
129
|
-
*
|
|
130
|
-
* @defaulValue `false`
|
|
131
|
-
*/
|
|
132
|
-
disableSoundForMessages?: boolean;
|
|
133
|
-
/**
|
|
134
|
-
* Custom audio sound for outgoing messages
|
|
135
|
-
*/
|
|
136
|
-
customSoundForMessage?: string;
|
|
137
|
-
/**
|
|
138
|
-
* Disable sending typing events
|
|
139
|
-
*
|
|
140
|
-
* @defaultValue `false`
|
|
141
|
-
*/
|
|
142
|
-
disableTypingEvents?: boolean;
|
|
143
|
-
/**
|
|
144
|
-
* Styles to apply to this component
|
|
145
|
-
*/
|
|
146
|
-
messageComposerStyle?: MessageComposerStyle;
|
|
147
|
-
/**
|
|
148
|
-
* Styles to apply to action sheet component
|
|
149
|
-
*/
|
|
150
|
-
actionSheetStyle?: ActionSheetStyle;
|
|
151
|
-
/**
|
|
152
|
-
* Styles to apply to AI action sheet component
|
|
153
|
-
*/
|
|
154
|
-
AIOptionsStyle?: AIOptionsStyle;
|
|
155
|
-
/**
|
|
156
|
-
* Hide voice recording button
|
|
157
|
-
*/
|
|
158
|
-
hideVoiceRecording?: boolean;
|
|
159
|
-
/**
|
|
160
|
-
* Styles to apply voice recording view
|
|
161
|
-
*/
|
|
162
|
-
mediaRecorderStyle?: MediaRecorderStyle;
|
|
163
|
-
/**
|
|
164
|
-
* Icon for voice recording start
|
|
165
|
-
*/
|
|
166
|
-
voiceRecordingStartIconURL?: string;
|
|
167
|
-
/**
|
|
168
|
-
* Icon for voice recording close
|
|
169
|
-
*/
|
|
170
|
-
voiceRecordingCloseIconURL?: string;
|
|
171
|
-
/**
|
|
172
|
-
* Icon for voice recording stop
|
|
173
|
-
*/
|
|
174
|
-
voiceRecordingStopIconURL?: string;
|
|
175
|
-
/**
|
|
176
|
-
* Icon for voice recording submit
|
|
177
|
-
*/
|
|
178
|
-
voiceRecordingSubmitIconURL?: string;
|
|
179
|
-
InfoSimpleIcon?: string;
|
|
180
|
-
userMemberWrapperConfiguration?: UserMemberWrapperConfiguration;
|
|
181
|
-
textFormatters?: Array<CometChatTextFormatter>;
|
|
182
|
-
disableMentions?: boolean;
|
|
183
|
-
mentionsWarningText?: string;
|
|
184
|
-
mentionsWarningStyle?: React.CSSProperties;
|
|
185
|
-
}
|
|
186
|
-
type State = {
|
|
187
|
-
text: string;
|
|
188
|
-
addToMsgInputText: string;
|
|
189
|
-
textMessageToEdit: CometChat.TextMessage | null;
|
|
190
|
-
contentToDisplay: ContentToDisplay;
|
|
191
|
-
loggedInUser: CometChat.User | null;
|
|
192
|
-
showPoll: boolean;
|
|
193
|
-
showMentionsCountWarning: boolean;
|
|
194
|
-
};
|
|
195
|
-
export type Action = {
|
|
196
|
-
type: "setText";
|
|
197
|
-
text: State["text"];
|
|
198
|
-
} | {
|
|
199
|
-
type: "setAddToMsgInputText";
|
|
200
|
-
addToMsgInputText: State["addToMsgInputText"];
|
|
201
|
-
} | {
|
|
202
|
-
type: "setTextMessageToEdit";
|
|
203
|
-
textMessageToEdit: State["textMessageToEdit"];
|
|
204
|
-
} | {
|
|
205
|
-
type: "setContentToDisplay";
|
|
206
|
-
contentToDisplay: ContentToDisplay;
|
|
207
|
-
} | {
|
|
208
|
-
type: "setLoggedInUser";
|
|
209
|
-
loggedInUser: CometChat.User;
|
|
210
|
-
} | {
|
|
211
|
-
type: "setShowPoll";
|
|
212
|
-
showPoll: boolean;
|
|
213
|
-
} | {
|
|
214
|
-
type: "setShowMentionsCountWarning";
|
|
215
|
-
showMentionsCountWarning: boolean;
|
|
216
|
-
};
|
|
217
|
-
/**
|
|
218
|
-
* Renders a message composer to send messages to a user or group of a CometChat App
|
|
219
|
-
*/
|
|
220
|
-
export declare function CometChatMessageComposer(props: IMessageComposerProps): import("react/jsx-runtime").JSX.Element;
|
|
221
|
-
export {};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { AIOptionsStyle, CreatePollStyle, MessageComposerStyle } from "@cometchat/uikit-shared";
|
|
2
|
-
import { ActionSheetStyle, EmojiKeyboardStyle, MediaRecorderStyle, PopoverStyle, PreviewStyle, TextInputStyle } from "@cometchat/uikit-elements";
|
|
3
|
-
import { CometChatTheme } from "@cometchat/uikit-resources";
|
|
4
|
-
import { CSSProperties } from "react";
|
|
5
|
-
export declare const LIVE_REACTION_ICON_TINT = "red";
|
|
6
|
-
export type mentionIconStyleType = CSSProperties | {
|
|
7
|
-
buttonTextFont: string;
|
|
8
|
-
buttonTextColor: string;
|
|
9
|
-
buttonIconTint: string;
|
|
10
|
-
iconBackground: string;
|
|
11
|
-
iconHeight: string;
|
|
12
|
-
iconWidth: string;
|
|
13
|
-
};
|
|
14
|
-
export declare function getMessageComposerStyle(messageComposerStyle: MessageComposerStyle | undefined, theme: CometChatTheme): CSSProperties;
|
|
15
|
-
export declare function previewStyle(messageComposerStyle: MessageComposerStyle | undefined, theme: CometChatTheme): PreviewStyle;
|
|
16
|
-
export declare function getMentionsViewStyle(): CSSProperties;
|
|
17
|
-
export declare function getMentionInfoIconStyle(messageComposerStyle: MessageComposerStyle | undefined, theme: CometChatTheme, mentionsWarningStyle: React.CSSProperties): mentionIconStyleType;
|
|
18
|
-
export declare function textInputStyle(messageComposerStyle: MessageComposerStyle | undefined, theme: CometChatTheme): TextInputStyle;
|
|
19
|
-
export declare function liveReactionButtonStyle(theme: CometChatTheme, style?: MessageComposerStyle): {
|
|
20
|
-
height: string;
|
|
21
|
-
width: string;
|
|
22
|
-
border: string;
|
|
23
|
-
borderRadius: string;
|
|
24
|
-
buttonIconTint: string;
|
|
25
|
-
background: string;
|
|
26
|
-
padding: string;
|
|
27
|
-
};
|
|
28
|
-
export declare function sendButtonStyle(messageComposerStyle: MessageComposerStyle | undefined, theme: CometChatTheme, isDisabled?: boolean): {
|
|
29
|
-
height: string;
|
|
30
|
-
width: string;
|
|
31
|
-
border: string;
|
|
32
|
-
borderRadius: string;
|
|
33
|
-
buttonIconTint: string | undefined;
|
|
34
|
-
background: string;
|
|
35
|
-
padding: string;
|
|
36
|
-
};
|
|
37
|
-
export declare function liveReactionButtonDivStyle(): CSSProperties;
|
|
38
|
-
export declare function fileMediaPickerStyle(): CSSProperties;
|
|
39
|
-
export declare function secondaryViewStyle(): CSSProperties;
|
|
40
|
-
export declare function primaryViewStyle(): CSSProperties;
|
|
41
|
-
export declare function auxiliaryViewStyle(): CSSProperties;
|
|
42
|
-
export declare function createPollStyle(theme: CometChatTheme): CreatePollStyle;
|
|
43
|
-
export declare function attachmentPopoverStyle(actionSheetStyle: ActionSheetStyle | undefined, theme: CometChatTheme): PopoverStyle;
|
|
44
|
-
export declare function AIPopoverStyle(aiOptionsStyle: AIOptionsStyle | undefined, theme: CometChatTheme): PopoverStyle;
|
|
45
|
-
export declare function actionSheetContainerStyle(actionSheetStyle: ActionSheetStyle | undefined, theme: CometChatTheme): CSSProperties;
|
|
46
|
-
export declare function AIActionSheetContainerStyle(aiActionSheetStyle: AIOptionsStyle | undefined, theme: CometChatTheme): CSSProperties;
|
|
47
|
-
export declare function getActionSheetStyle(actionSheetStyle: ActionSheetStyle | undefined, theme: CometChatTheme): ActionSheetStyle;
|
|
48
|
-
export declare function getAIActionSheetStyle(aiOptionsStyle: AIOptionsStyle, theme: CometChatTheme): ActionSheetStyle;
|
|
49
|
-
export declare function attachmentButtonStyle(messageComposerStyle: MessageComposerStyle | undefined, theme: CometChatTheme, isSecondaryContentDisplayed: boolean): {
|
|
50
|
-
height: string;
|
|
51
|
-
width: string;
|
|
52
|
-
border: string;
|
|
53
|
-
borderRadius: string;
|
|
54
|
-
padding: string;
|
|
55
|
-
buttonIconTint: string | undefined;
|
|
56
|
-
background: string;
|
|
57
|
-
};
|
|
58
|
-
export declare function aiButtonStyle(messageComposerStyle: MessageComposerStyle | undefined, theme: CometChatTheme, isSecondaryContentDisplayed: boolean): {
|
|
59
|
-
height: string;
|
|
60
|
-
width: string;
|
|
61
|
-
border: string;
|
|
62
|
-
borderRadius: string;
|
|
63
|
-
padding: string;
|
|
64
|
-
buttonIconTint: string | undefined;
|
|
65
|
-
background: string;
|
|
66
|
-
};
|
|
67
|
-
export declare function emojiKeyboardPopoverStyle(): PopoverStyle;
|
|
68
|
-
export declare function emojiKeyboardContainerStyle(theme: CometChatTheme): CSSProperties;
|
|
69
|
-
export declare function emojiKeyboardStyle(messageComposerStyle: MessageComposerStyle | undefined, theme: CometChatTheme): EmojiKeyboardStyle;
|
|
70
|
-
export declare function emojiButtonStyle(messageComposerStyle: MessageComposerStyle | undefined, theme: CometChatTheme, isAuxiliaryContentDisplayed: boolean, applyHorizontalMargin?: boolean): {
|
|
71
|
-
height: string;
|
|
72
|
-
width: string;
|
|
73
|
-
border: string;
|
|
74
|
-
borderRadius: string;
|
|
75
|
-
buttonIconTint: string | undefined;
|
|
76
|
-
background: string;
|
|
77
|
-
padding: string;
|
|
78
|
-
};
|
|
79
|
-
export declare function voiceRecordingPopoverStyle(): PopoverStyle;
|
|
80
|
-
export declare function voiceRecordingContainerStyle(theme: CometChatTheme): CSSProperties;
|
|
81
|
-
export declare function voiceRecordingStyle(mediaRecorderStyle: MediaRecorderStyle | undefined, theme: CometChatTheme): EmojiKeyboardStyle;
|
|
82
|
-
export declare function voiceButtonStyle(messageComposerStyle: MessageComposerStyle | undefined, theme: CometChatTheme, isAuxiliaryContentDisplayed: boolean, applyHorizontalMargin?: boolean): {
|
|
83
|
-
margin?: string | undefined;
|
|
84
|
-
height: string;
|
|
85
|
-
width: string;
|
|
86
|
-
border: string;
|
|
87
|
-
borderRadius: string;
|
|
88
|
-
buttonIconTint: string | undefined;
|
|
89
|
-
background: string;
|
|
90
|
-
};
|
|
91
|
-
export declare function defaultAuxiliaryViewContainer(): CSSProperties;
|
|
92
|
-
export declare function messageComposerHeaderStyle(): CSSProperties;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import React, { JSX } from "react";
|
|
2
|
-
declare function Hooks(loggedInUser: any, setLoggedInUser: Function, subscribeToEvents: any, attachListeners: any, onErrorCallback: any, ccBackBtnElement: JSX.IntrinsicElements["cometchat-button"], onBackRef: React.MutableRefObject<() => void>, userRef: React.MutableRefObject<CometChat.User | undefined>, groupRef: React.MutableRefObject<CometChat.Group | undefined>, updateSubtitle: Function): void;
|
|
3
|
-
export { Hooks };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AvatarStyle, BaseStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
2
|
-
import { MessageHeaderStyle } from '@cometchat/uikit-shared';
|
|
3
|
-
interface IMessageHeaderProps {
|
|
4
|
-
avatarStyle?: AvatarStyle;
|
|
5
|
-
statusIndicatorStyle?: BaseStyle;
|
|
6
|
-
messageHeaderStyle?: MessageHeaderStyle;
|
|
7
|
-
listItemStyle?: ListItemStyle;
|
|
8
|
-
subtitleView?: any;
|
|
9
|
-
disableUsersPresence?: boolean;
|
|
10
|
-
disableTyping?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated
|
|
13
|
-
*
|
|
14
|
-
* This property is deprecated as of version 4.3.8 due to newer property 'passwordGroupIcon'. It will be removed in subsequent versions.
|
|
15
|
-
*/
|
|
16
|
-
protectedGroupIcon?: string;
|
|
17
|
-
passwordGroupIcon?: string | undefined;
|
|
18
|
-
privateGroupIcon?: string;
|
|
19
|
-
menu?: any;
|
|
20
|
-
user?: CometChat.User;
|
|
21
|
-
group?: CometChat.Group;
|
|
22
|
-
backButtonIconURL?: string;
|
|
23
|
-
hideBackButton?: boolean;
|
|
24
|
-
listItemView?: any;
|
|
25
|
-
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
26
|
-
onBack?: () => void;
|
|
27
|
-
}
|
|
28
|
-
export declare const CometChatMessageHeader: (props: IMessageHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
2
|
-
import { ListItemStyle } from "@cometchat/uikit-elements";
|
|
3
|
-
import { CometChatTheme } from "@cometchat/uikit-resources";
|
|
4
|
-
import { BaseStyle, MessageHeaderStyle } from "@cometchat/uikit-shared";
|
|
5
|
-
import React from 'react';
|
|
6
|
-
export declare const getMessageHeaderWrapperStyle: (messageHeaderStyle: MessageHeaderStyle, theme: CometChatTheme) => React.CSSProperties;
|
|
7
|
-
export declare const MessageHeaderDivStyle: () => React.CSSProperties;
|
|
8
|
-
export declare const MessageHeaderBackButtonStyle: () => {
|
|
9
|
-
width: string;
|
|
10
|
-
height: string;
|
|
11
|
-
display: string;
|
|
12
|
-
alignItems: string;
|
|
13
|
-
justifyContent: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const MessageHeaderListItemStyle: () => {
|
|
16
|
-
height: string;
|
|
17
|
-
width: string;
|
|
18
|
-
display: string;
|
|
19
|
-
alignItems: string;
|
|
20
|
-
justifyContent: string;
|
|
21
|
-
};
|
|
22
|
-
export declare const MessageHeaderMenuStyle: () => {
|
|
23
|
-
width: string;
|
|
24
|
-
display: string;
|
|
25
|
-
alignItems: string;
|
|
26
|
-
justifyContent: string;
|
|
27
|
-
};
|
|
28
|
-
export declare const CometChatListItemStyle: () => {
|
|
29
|
-
width: string;
|
|
30
|
-
};
|
|
31
|
-
export declare const subtitleStyle: (user: CometChat.User | undefined, isTypingRef: React.MutableRefObject<boolean>, messageHeaderStyle: MessageHeaderStyle, theme: CometChatTheme) => {
|
|
32
|
-
textFont: string;
|
|
33
|
-
textColor: string | undefined;
|
|
34
|
-
};
|
|
35
|
-
export declare const defaultAvatarStyle: (theme: CometChatTheme) => {
|
|
36
|
-
borderRadius: string;
|
|
37
|
-
width: string;
|
|
38
|
-
height: string;
|
|
39
|
-
border: string;
|
|
40
|
-
backgroundColor: string | undefined;
|
|
41
|
-
nameTextColor: string | undefined;
|
|
42
|
-
backgroundSize: string;
|
|
43
|
-
nameTextFont: string;
|
|
44
|
-
outerViewBorder: string;
|
|
45
|
-
outerViewBorderSpacing: string;
|
|
46
|
-
};
|
|
47
|
-
export declare function statusIndicatorStyle(statusIndicatorStyleObject: BaseStyle | null): BaseStyle;
|
|
48
|
-
export declare const defaultListItemStyle: (listItemStyle: ListItemStyle, theme: CometChatTheme) => ListItemStyle;
|
|
49
|
-
export declare const getBackButtonStyle: (theme: CometChatTheme) => {
|
|
50
|
-
height: string;
|
|
51
|
-
width: string;
|
|
52
|
-
border: string;
|
|
53
|
-
borderRadius: string;
|
|
54
|
-
background: string;
|
|
55
|
-
buttonIconTint: string | undefined;
|
|
56
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BackdropStyle, ListItemStyle } from "@cometchat/uikit-elements";
|
|
3
|
-
import { CometChatMessageTemplate } from "@cometchat/uikit-resources";
|
|
4
|
-
import { MessageInformationStyle } from "@cometchat/uikit-shared";
|
|
5
|
-
interface MessageInformationProps {
|
|
6
|
-
title?: string;
|
|
7
|
-
message: CometChat.BaseMessage;
|
|
8
|
-
template?: CometChatMessageTemplate;
|
|
9
|
-
closeIconURL?: string;
|
|
10
|
-
bubbleView?: (messageObject: CometChat.BaseMessage) => void | JSX.Element;
|
|
11
|
-
listItemView?: (messageObject: CometChat.BaseMessage, messageReceipt?: CometChat.MessageReceipt) => JSX.Element;
|
|
12
|
-
subtitleView?: (messageObject: CometChat.BaseMessage, messageReceipt?: CometChat.MessageReceipt) => void | JSX.Element;
|
|
13
|
-
receiptDatePattern?: (timestamp: number) => string;
|
|
14
|
-
onClose?: () => void;
|
|
15
|
-
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
16
|
-
messageInformationStyle?: MessageInformationStyle;
|
|
17
|
-
readIcon?: string;
|
|
18
|
-
deliveredIcon?: string;
|
|
19
|
-
listItemStyle?: ListItemStyle;
|
|
20
|
-
emptyStateText?: any;
|
|
21
|
-
emptyStateView?: any;
|
|
22
|
-
loadingIconURL?: string;
|
|
23
|
-
loadingStateView?: any;
|
|
24
|
-
errorStateText?: any;
|
|
25
|
-
errorStateView?: any;
|
|
26
|
-
backdropStyle?: BackdropStyle;
|
|
27
|
-
}
|
|
28
|
-
declare const CometChatMessageInformation: (props: MessageInformationProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export { CometChatMessageInformation };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { CometChatTheme } from "@cometchat/uikit-resources";
|
|
2
|
-
import { CSSProperties } from "react";
|
|
3
|
-
import { ReceiptStyle, DateStyle, BackdropStyle } from "@cometchat/uikit-elements";
|
|
4
|
-
import { BaseStyle, MessageInformationStyle } from "@cometchat/uikit-shared";
|
|
5
|
-
type ButtonStyle = CSSProperties & {
|
|
6
|
-
buttonIconTint?: string;
|
|
7
|
-
};
|
|
8
|
-
type WrapperStyle = CSSProperties & {
|
|
9
|
-
position?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare function closeBtnStyle(theme: CometChatTheme): ButtonStyle;
|
|
12
|
-
export declare const dividerStyle: (theme: CometChatTheme) => {
|
|
13
|
-
height: string;
|
|
14
|
-
width: string;
|
|
15
|
-
background: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
export declare function receiptStyle(theme: CometChatTheme): ReceiptStyle;
|
|
18
|
-
export declare const MessageDateStyle: (dateSeparatorStyle: DateStyle | undefined, theme: CometChatTheme) => DateStyle;
|
|
19
|
-
export declare const defaultDateSeparatorStyle: {
|
|
20
|
-
background: string;
|
|
21
|
-
height: string;
|
|
22
|
-
width: string;
|
|
23
|
-
border: string;
|
|
24
|
-
borderRadius: string;
|
|
25
|
-
};
|
|
26
|
-
export declare const dateInfoStyle: {
|
|
27
|
-
marginLeft: string;
|
|
28
|
-
};
|
|
29
|
-
export declare const receiptWrapperStyle: {
|
|
30
|
-
display: string;
|
|
31
|
-
};
|
|
32
|
-
export declare const receiptSubtitleWrapperStyle: {
|
|
33
|
-
width: string;
|
|
34
|
-
};
|
|
35
|
-
export declare const messageInfoStyle: (theme: CometChatTheme) => {
|
|
36
|
-
width: string;
|
|
37
|
-
height: string;
|
|
38
|
-
margin: string;
|
|
39
|
-
background: string | undefined;
|
|
40
|
-
borderRadius: string;
|
|
41
|
-
};
|
|
42
|
-
export declare const messageInfoHeaderStyle: (theme: CometChatTheme) => WrapperStyle;
|
|
43
|
-
export declare const getMessageInfoStyle: (theme: CometChatTheme, messageInfo?: MessageInformationStyle) => CSSProperties;
|
|
44
|
-
export declare const getReceiptTextStyle: (theme: CometChatTheme) => CSSProperties;
|
|
45
|
-
export declare const getMessageTextStyle: (theme: CometChatTheme) => CSSProperties;
|
|
46
|
-
export declare const getParentBubbleStyle: (alignBubble?: boolean) => CSSProperties;
|
|
47
|
-
export declare function getBackdropStyle(backdropStyleObject: BaseStyle): BackdropStyle;
|
|
48
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import "@cometchat/uikit-elements";
|
|
2
|
-
import { AvatarStyle, BackdropStyle, DateStyle, EmojiKeyboardStyle } from "@cometchat/uikit-elements";
|
|
3
|
-
import { CometChatMessageTemplate, DatePatterns, MessageListAlignment, TimestampAlignment } from "@cometchat/uikit-resources";
|
|
4
|
-
import { CometChatTextFormatter, MessageInformationConfiguration, MessageListStyle, ReactionsConfiguration } from "@cometchat/uikit-shared";
|
|
5
|
-
interface IMessageListProps {
|
|
6
|
-
parentMessageId?: number;
|
|
7
|
-
user?: CometChat.User;
|
|
8
|
-
group?: CometChat.Group;
|
|
9
|
-
emptyStateText?: string;
|
|
10
|
-
errorStateText?: string;
|
|
11
|
-
emptyStateView?: any;
|
|
12
|
-
errorStateView?: any;
|
|
13
|
-
loadingStateView?: any;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated
|
|
16
|
-
*
|
|
17
|
-
* This property is deprecated as of version 4.3.19 due to newer property 'hideReceipt'. It will be removed in subsequent versions.
|
|
18
|
-
*/
|
|
19
|
-
disableReceipt?: boolean;
|
|
20
|
-
hideReceipt?: boolean;
|
|
21
|
-
disableSoundForMessages?: boolean;
|
|
22
|
-
customSoundForMessages?: string;
|
|
23
|
-
readIcon?: string;
|
|
24
|
-
deliveredIcon?: string;
|
|
25
|
-
sentIcon?: string;
|
|
26
|
-
waitIcon?: string;
|
|
27
|
-
errorIcon?: string;
|
|
28
|
-
loadingIconURL?: string;
|
|
29
|
-
alignment?: MessageListAlignment;
|
|
30
|
-
showAvatar?: boolean;
|
|
31
|
-
datePattern?: DatePatterns;
|
|
32
|
-
timestampAlignment?: TimestampAlignment;
|
|
33
|
-
DateSeparatorPattern?: DatePatterns;
|
|
34
|
-
hideDateSeparator?: boolean;
|
|
35
|
-
templates?: CometChatMessageTemplate[];
|
|
36
|
-
messagesRequestBuilder?: CometChat.MessagesRequestBuilder;
|
|
37
|
-
newMessageIndicatorText?: string;
|
|
38
|
-
scrollToBottomOnNewMessages?: boolean;
|
|
39
|
-
thresholdValue?: number;
|
|
40
|
-
onThreadRepliesClick?: Function;
|
|
41
|
-
headerView?: any;
|
|
42
|
-
footerView?: any;
|
|
43
|
-
avatarStyle?: AvatarStyle;
|
|
44
|
-
dateSeparatorStyle?: DateStyle;
|
|
45
|
-
messageListStyle?: MessageListStyle;
|
|
46
|
-
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
47
|
-
hideError?: boolean;
|
|
48
|
-
messageInformationConfiguration?: MessageInformationConfiguration;
|
|
49
|
-
reactionsConfiguration?: ReactionsConfiguration;
|
|
50
|
-
disableReactions?: boolean;
|
|
51
|
-
emojiKeyboardStyle?: EmojiKeyboardStyle;
|
|
52
|
-
threadIndicatorIcon?: string;
|
|
53
|
-
disableMentions?: boolean;
|
|
54
|
-
textFormatters?: CometChatTextFormatter[];
|
|
55
|
-
backdropStyle?: BackdropStyle;
|
|
56
|
-
}
|
|
57
|
-
declare const CometChatMessageList: (props: IMessageListProps) => import("react/jsx-runtime").JSX.Element;
|
|
58
|
-
export { CometChatMessageList };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
The MessageListManager is responsible for controlling chat operations like fetching messages and managing listener lifecycles. It attaches listeners for group and call activities for a particular user or group, which are activated when the chat is open and deactivated when it's closed or when switching to a new chat.
|
|
3
|
-
In addition, it supports real-time connection monitoring by attaching an SDK websocket listener to the chat session.
|
|
4
|
-
*/
|
|
5
|
-
export declare class MessageListManager {
|
|
6
|
-
messagesRequest: CometChat.MessagesRequest | null;
|
|
7
|
-
static groupListenerId: string;
|
|
8
|
-
static callListenerId: string;
|
|
9
|
-
static connectionListenerId: string;
|
|
10
|
-
/**
|
|
11
|
-
* Creates an instance of MessageListManager which constructs a request builder for fetching messages from a particular user/group in the chat.
|
|
12
|
-
* @param {CometChat.MessagesRequestBuilder} [messagesRequestBuilder]
|
|
13
|
-
* @param {CometChat.User} [user]
|
|
14
|
-
* @param {CometChat.Group} [group]
|
|
15
|
-
* @param {number} [messageId]
|
|
16
|
-
* @param {number} [parentMessageId]
|
|
17
|
-
* @memberof MessageListManager
|
|
18
|
-
*/
|
|
19
|
-
constructor(messagesRequestBuilder?: CometChat.MessagesRequestBuilder, user?: CometChat.User, group?: CometChat.Group, messageId?: number, parentMessageId?: number);
|
|
20
|
-
/**
|
|
21
|
-
* Function to invoke the fetchNext method of the messagesRequestBuilder to retrieve the subsequent messages following the latest fetched message.
|
|
22
|
-
*
|
|
23
|
-
* @returns {Promise}
|
|
24
|
-
*/
|
|
25
|
-
fetchNextMessages: () => Promise<CometChat.BaseMessage[] | []> | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Function to invoke the fetchPrevious method of the messagesRequestBuilder to retrieve the subsequent messages following the last fetched message.
|
|
28
|
-
*
|
|
29
|
-
* @returns {Promise}
|
|
30
|
-
*/
|
|
31
|
-
fetchPreviousMessages: () => Promise<CometChat.BaseMessage[] | []> | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Function to attach the group and call listeners for a particular user/group. This listener is attached when the chat is opened and is removed once the chat is closed or when switching to a new chat, where it creates a new listener for the particular chat.
|
|
34
|
-
*
|
|
35
|
-
* @param {Function} callback
|
|
36
|
-
*/
|
|
37
|
-
static attachListeners: (callback: (key: string, mesage: CometChat.BaseMessage, group?: CometChat.Group) => void) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Function to remove the attached listeners for a particular user/group.
|
|
40
|
-
* */
|
|
41
|
-
static removeListeners(): void;
|
|
42
|
-
/**
|
|
43
|
-
* Attaches an SDK websocket listener to monitor when the connection disconnects or reconnects.
|
|
44
|
-
*
|
|
45
|
-
* @returns - Function to remove the added SDK websocket listener
|
|
46
|
-
*/
|
|
47
|
-
static attachConnectionListener(callback: () => void): void;
|
|
48
|
-
}
|