@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,186 +0,0 @@
|
|
|
1
|
-
import { AddMembersConfiguration, BannedMembersConfiguration, DetailsStyle, GroupMembersConfiguration, TransferOwnershipConfiguration } from "@cometchat/uikit-shared";
|
|
2
|
-
import { AvatarStyle, BaseStyle, ConfirmDialogStyle, ListItemStyle } from "@cometchat/uikit-elements";
|
|
3
|
-
import { CSSProperties, JSX } from "react";
|
|
4
|
-
import { CometChatDetailsTemplate } from "@cometchat/uikit-resources";
|
|
5
|
-
interface IDetailsProps {
|
|
6
|
-
/**
|
|
7
|
-
* User to display details of
|
|
8
|
-
*/
|
|
9
|
-
user?: CometChat.User;
|
|
10
|
-
/**
|
|
11
|
-
* Group to display details of
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* This prop is used if `user` prop is not provided
|
|
15
|
-
*/
|
|
16
|
-
group?: CometChat.Group;
|
|
17
|
-
/**
|
|
18
|
-
* Custom profile view
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
* This prop is used only if `hideProfile` is set to `false`
|
|
22
|
-
*/
|
|
23
|
-
customProfileView?: (user?: CometChat.User, group?: CometChat.Group) => JSX.Element;
|
|
24
|
-
/**
|
|
25
|
-
* Custom subtitle view for the `user` or `group` prop
|
|
26
|
-
*
|
|
27
|
-
* @remarks
|
|
28
|
-
* This prop is used only if `hideProfile` is set `false` & `customProfileView` prop is not provided
|
|
29
|
-
*/
|
|
30
|
-
subtitleView?: (user?: CometChat.User, group?: CometChat.Group) => JSX.Element;
|
|
31
|
-
/**
|
|
32
|
-
* Title of the component
|
|
33
|
-
*
|
|
34
|
-
* @defaultValue `localize("DETAILS")`
|
|
35
|
-
*/
|
|
36
|
-
title?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Image URL for the close button
|
|
39
|
-
*
|
|
40
|
-
* @defaultValue `./assets/close2x.svg`
|
|
41
|
-
*/
|
|
42
|
-
closeButtonIconURL?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Text to display for the cancel button
|
|
45
|
-
*/
|
|
46
|
-
cancelButtonText?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Function to call when the close button is clicked
|
|
49
|
-
*/
|
|
50
|
-
onClose?: () => void;
|
|
51
|
-
/**
|
|
52
|
-
* Hide user presence
|
|
53
|
-
*
|
|
54
|
-
* @remarks
|
|
55
|
-
* If set to true, the status indicator of the default profile view is not displayed
|
|
56
|
-
*
|
|
57
|
-
* @defaultValue `false`
|
|
58
|
-
*/
|
|
59
|
-
disableUsersPresence?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Hide profile
|
|
62
|
-
*
|
|
63
|
-
* @defaultValue `false`
|
|
64
|
-
*/
|
|
65
|
-
hideProfile?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Image URL for the status indicator icon of a private group
|
|
68
|
-
*
|
|
69
|
-
* @defaultValue `./assets/private.svg`
|
|
70
|
-
*/
|
|
71
|
-
privateGroupIcon?: string;
|
|
72
|
-
/**
|
|
73
|
-
* @deprecated
|
|
74
|
-
*
|
|
75
|
-
* This property is deprecated as of version 4.3.8 due to newer property 'passwordGroupIcon'. It will be removed in subsequent versions.
|
|
76
|
-
*/
|
|
77
|
-
/**
|
|
78
|
-
* Image URL for the status indicator icon of a password-protected group
|
|
79
|
-
*
|
|
80
|
-
* @defaultValue `./assets/locked.svg`
|
|
81
|
-
*/
|
|
82
|
-
protectedGroupIcon?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Image URL for the status indicator icon of a password-protected group
|
|
85
|
-
*
|
|
86
|
-
* @defaultValue {undefined}
|
|
87
|
-
*/
|
|
88
|
-
passwordGroupIcon?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Function to create a list of `CometChatTemplate` instances from the `user` or `group` prop
|
|
91
|
-
*/
|
|
92
|
-
data?: CometChatDetailsTemplate[];
|
|
93
|
-
/**
|
|
94
|
-
* Function to call whenever the component encounters an error
|
|
95
|
-
*/
|
|
96
|
-
onError?: (error: CometChat.CometChatException) => void;
|
|
97
|
-
/**
|
|
98
|
-
* Text to display for the confirm button of the leave confirm modal
|
|
99
|
-
*
|
|
100
|
-
* @defaultValue `localize("LEAVE_GROUP")`
|
|
101
|
-
*/
|
|
102
|
-
leaveButtonText?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Message to display for the leave confirm modal
|
|
105
|
-
*
|
|
106
|
-
* @defaultValue `localize("LEAVE_CONFIRM")`
|
|
107
|
-
*/
|
|
108
|
-
leaveConfirmDialogMessage?: string;
|
|
109
|
-
/**
|
|
110
|
-
* Text to display for the confirm button of the transfer ownership confirm modal
|
|
111
|
-
*
|
|
112
|
-
* @defaultValue `localize("TRANSFER_OWNERSHIP")`
|
|
113
|
-
*/
|
|
114
|
-
transferButtonText?: string;
|
|
115
|
-
/**
|
|
116
|
-
* Message to display for the transfer onwership confirm modal
|
|
117
|
-
*
|
|
118
|
-
* @defaultValue `localize("LEAVE_CONFIRM")`
|
|
119
|
-
*/
|
|
120
|
-
transferConfirmDialogMessage?: string;
|
|
121
|
-
/**
|
|
122
|
-
* Text to display for the confirm button of the delete confirm modal
|
|
123
|
-
*
|
|
124
|
-
* @defaultValue `localize("DELETE")`
|
|
125
|
-
*/
|
|
126
|
-
deleteButtonText?: string;
|
|
127
|
-
/**
|
|
128
|
-
* Message to display for the delete confirm modal
|
|
129
|
-
*
|
|
130
|
-
* @defaultValue `localize("DELETE_CONFIRM")`
|
|
131
|
-
*/
|
|
132
|
-
deleteConfirmDialogMessage?: string;
|
|
133
|
-
/**
|
|
134
|
-
* `CometChatAddMembers` configuration
|
|
135
|
-
*/
|
|
136
|
-
addMembersConfiguration?: AddMembersConfiguration;
|
|
137
|
-
/**
|
|
138
|
-
* `CometChatBannedMembers` configuration
|
|
139
|
-
*/
|
|
140
|
-
bannedMembersConfiguration?: BannedMembersConfiguration;
|
|
141
|
-
/**
|
|
142
|
-
* `CometChatGroupMembers` configuration
|
|
143
|
-
*/
|
|
144
|
-
groupMembersConfiguration?: GroupMembersConfiguration;
|
|
145
|
-
/**
|
|
146
|
-
* `CometChatTransferOwnership` configuration
|
|
147
|
-
*/
|
|
148
|
-
transferOwnershipConfiguration?: TransferOwnershipConfiguration;
|
|
149
|
-
/**
|
|
150
|
-
* Styles to apply to the default profile view
|
|
151
|
-
*/
|
|
152
|
-
listItemStyle?: ListItemStyle;
|
|
153
|
-
/**
|
|
154
|
-
* Styles to apply to the status indicator component of the default profile view
|
|
155
|
-
*/
|
|
156
|
-
statusIndicatorStyle?: CSSProperties;
|
|
157
|
-
/**
|
|
158
|
-
* Styles to apply to the avatar component of the default profile view
|
|
159
|
-
*/
|
|
160
|
-
avatarStyle?: AvatarStyle;
|
|
161
|
-
/**
|
|
162
|
-
* Styles to apply to the leave group confirm dialog component
|
|
163
|
-
*/
|
|
164
|
-
leaveDialogStyle?: ConfirmDialogStyle;
|
|
165
|
-
deleteDialogStyle?: ConfirmDialogStyle;
|
|
166
|
-
/**
|
|
167
|
-
* Styles to apply to the backdrop component
|
|
168
|
-
*/
|
|
169
|
-
backdropStyle?: BaseStyle;
|
|
170
|
-
/**
|
|
171
|
-
* Styles to apply to this component
|
|
172
|
-
*/
|
|
173
|
-
detailsStyle?: DetailsStyle;
|
|
174
|
-
}
|
|
175
|
-
export type ModalInfo = {
|
|
176
|
-
type: "leaveOrTransferConfirm" | "deleteConfirm";
|
|
177
|
-
buttonText: string;
|
|
178
|
-
confirmDialogMessage: string;
|
|
179
|
-
} | {
|
|
180
|
-
type: "transferOwnership";
|
|
181
|
-
} | null;
|
|
182
|
-
/**
|
|
183
|
-
* Renders details view of a user or group of a CometChat App
|
|
184
|
-
*/
|
|
185
|
-
export declare function CometChatDetails(props: IDetailsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
186
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { AvatarStyle, BackdropStyle, BaseStyle, ConfirmDialogStyle, LabelStyle, ListItemStyle } from "@cometchat/uikit-elements";
|
|
2
|
-
import { CSSProperties } from "react";
|
|
3
|
-
import { CometChatDetailsOption, CometChatDetailsTemplate, CometChatTheme } from "@cometchat/uikit-resources";
|
|
4
|
-
import { AddMembersConfiguration, AddMembersStyle, BannedMembersConfiguration, BannedMembersStyle, DetailsStyle, GroupMembersConfiguration, GroupMembersStyle, TransferOwnershipConfiguration, TransferOwnershipStyle } from "@cometchat/uikit-shared";
|
|
5
|
-
type ButtonStyle = CSSProperties & {
|
|
6
|
-
buttonIconTint?: string;
|
|
7
|
-
buttonTextFont?: string;
|
|
8
|
-
buttonTextColor?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare function detailsStyle(detailsStyleObject: DetailsStyle | null, theme: CometChatTheme): CSSProperties;
|
|
11
|
-
export declare function detailsContentWrapperStyle(detailsStyleObject: DetailsStyle | null): CSSProperties;
|
|
12
|
-
export declare function headerStyle(): CSSProperties;
|
|
13
|
-
export declare function profileStyle(): CSSProperties;
|
|
14
|
-
export declare function titleStyle(detailsStyleObject: DetailsStyle | null, theme: CometChatTheme): LabelStyle;
|
|
15
|
-
export declare function closeBtnStyle(detailsStyleObject: DetailsStyle | null, theme: CometChatTheme): ButtonStyle;
|
|
16
|
-
export declare function listItemStyle(listItemStyleObject: ListItemStyle | null, theme: CometChatTheme): ListItemStyle;
|
|
17
|
-
export declare function statusIndicatorStyle(statusIndicatorStyleObject: CSSProperties | null, theme: CometChatTheme): CSSProperties;
|
|
18
|
-
export declare function avatarStyle(avatarStyleObject: AvatarStyle | null, theme: CometChatTheme): AvatarStyle;
|
|
19
|
-
export declare function subtitleStyle(isUserOnline: boolean, detailsStyleObject: DetailsStyle | null, theme: CometChatTheme): LabelStyle;
|
|
20
|
-
export declare function sectionListStyle(): CSSProperties;
|
|
21
|
-
export declare function sectionHeaderWrapperStyle(): CSSProperties;
|
|
22
|
-
export declare function sectionHeaderStyle(template: CometChatDetailsTemplate): LabelStyle;
|
|
23
|
-
export declare function optionsStyle(): CSSProperties;
|
|
24
|
-
export declare function optionBtnStyle(option: CometChatDetailsOption): ButtonStyle;
|
|
25
|
-
export declare function defaultOptionContentStyle(): CSSProperties;
|
|
26
|
-
export declare function tailWrapperStyle(): CSSProperties;
|
|
27
|
-
export declare function defaultOptionStyle(): CSSProperties;
|
|
28
|
-
export declare function pageWrapperStyle(): CSSProperties;
|
|
29
|
-
export declare function backdropStyle(backdropStyleObject: BaseStyle | null, detailsStyle: DetailsStyle | null): BackdropStyle;
|
|
30
|
-
export declare function leaveDialogStyle(confirmDialogStyleObject: ConfirmDialogStyle | null, detailsStyle: DetailsStyle | null, theme: CometChatTheme): ConfirmDialogStyle;
|
|
31
|
-
export declare function deleteDialogStyle(confirmDialogStyleObject: ConfirmDialogStyle | null, theme: CometChatTheme): ConfirmDialogStyle;
|
|
32
|
-
export declare function dividerStyle(separatorColor: string | undefined, isSectionSeparatorStyle: boolean, theme: CometChatTheme): BaseStyle;
|
|
33
|
-
export declare const getSectionStyle: () => {
|
|
34
|
-
padding: string;
|
|
35
|
-
};
|
|
36
|
-
export declare const getGroupMembersStyle: (groupMembersConfiguration: GroupMembersConfiguration | null, detailsStyle: DetailsStyle | null) => GroupMembersStyle;
|
|
37
|
-
export declare const getAddMembersStyle: (addMembersConfiguration: AddMembersConfiguration | null, detailsStyle: DetailsStyle | null) => AddMembersStyle;
|
|
38
|
-
export declare const getBannedMembersStyle: (bannedMembersConfiguration: BannedMembersConfiguration | null, detailsStyle: DetailsStyle | null) => BannedMembersStyle;
|
|
39
|
-
export declare const getTransferOwnershipStyle: (transferOwnershipConfiguration: TransferOwnershipConfiguration | null, detailsStyle: DetailsStyle | null) => TransferOwnershipStyle;
|
|
40
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Action } from ".";
|
|
2
|
-
import React from "react";
|
|
3
|
-
type Args = {
|
|
4
|
-
searchText: string;
|
|
5
|
-
groupMemberRequestBuilder: CometChat.GroupMembersRequestBuilder | null;
|
|
6
|
-
searchRequestBuilder: CometChat.GroupMembersRequestBuilder | null;
|
|
7
|
-
groupGuid: string;
|
|
8
|
-
groupMembersSearchText: React.MutableRefObject<string>;
|
|
9
|
-
};
|
|
10
|
-
export declare class GroupMembersManager {
|
|
11
|
-
private groupMembersRequest;
|
|
12
|
-
/**
|
|
13
|
-
* Sets `groupMembersRequest` of the instance
|
|
14
|
-
*/
|
|
15
|
-
constructor(args: Args);
|
|
16
|
-
/**
|
|
17
|
-
* Calls `fetchNext` method of the set `groupMembersRequest`
|
|
18
|
-
*/
|
|
19
|
-
fetchNext(): Promise<CometChat.GroupMember[]>;
|
|
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 attachUserListener(callback: (user: CometChat.User) => void): () => void;
|
|
27
|
-
/**
|
|
28
|
-
* Creates a `CometChat.GroupMember` instance from the provided `user` and `group`
|
|
29
|
-
*/
|
|
30
|
-
static createParticipantGroupMember(user: CometChat.User, group: CometChat.Group): CometChat.GroupMember;
|
|
31
|
-
/**
|
|
32
|
-
* Attaches an SDK user listener
|
|
33
|
-
*
|
|
34
|
-
* @returns Function to call to remove the attached SDK user listener
|
|
35
|
-
*/
|
|
36
|
-
static attachGroupListener(groupGuid: string, dispatch: React.Dispatch<Action>): () => void;
|
|
37
|
-
}
|
|
38
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { JSX } from "react";
|
|
2
|
-
import { Action } from ".";
|
|
3
|
-
import { GroupMembersManager } from "./controller";
|
|
4
|
-
type Args = {
|
|
5
|
-
groupMemberRequestBuilder: CometChat.GroupMembersRequestBuilder | null;
|
|
6
|
-
searchRequestBuilder: CometChat.GroupMembersRequestBuilder | null;
|
|
7
|
-
searchText: string;
|
|
8
|
-
groupMembersManagerRef: React.MutableRefObject<GroupMembersManager | null>;
|
|
9
|
-
groupGuid: string;
|
|
10
|
-
fetchNextAndAppendGroupMembers: (id: string) => void;
|
|
11
|
-
fetchNextIdRef: React.MutableRefObject<string>;
|
|
12
|
-
dispatch: React.Dispatch<Action>;
|
|
13
|
-
loggedInUserRef: React.MutableRefObject<CometChat.User | null>;
|
|
14
|
-
errorHandler: (error: unknown) => void;
|
|
15
|
-
changeScopeElement: JSX.IntrinsicElements["cometchat-change-scope"] | null;
|
|
16
|
-
updateGroupMemberScope: (newScope: string) => Promise<void>;
|
|
17
|
-
searchKeyword: string;
|
|
18
|
-
disableLoadingState: boolean;
|
|
19
|
-
groupMembersSearchText: React.MutableRefObject<string>;
|
|
20
|
-
};
|
|
21
|
-
export declare function Hooks(args: Args): void;
|
|
22
|
-
export {};
|
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
import { AvatarStyle, ChangeScopeStyle, ListItemStyle } from "@cometchat/uikit-elements";
|
|
2
|
-
import { CSSProperties, JSX } from "react";
|
|
3
|
-
import { CometChatOption, SelectionMode, States, TitleAlignment, UserPresencePlacement } from "@cometchat/uikit-resources";
|
|
4
|
-
import { GroupMembersStyle } from "@cometchat/uikit-shared";
|
|
5
|
-
import { GroupMembersManager } from "./controller";
|
|
6
|
-
interface IGroupMembersProps {
|
|
7
|
-
/**
|
|
8
|
-
* Image URL for the back button
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue `./assets/backbutton.svg`
|
|
11
|
-
*/
|
|
12
|
-
backButtonIconURL?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Show back button
|
|
15
|
-
*
|
|
16
|
-
* @defaultValue `true`
|
|
17
|
-
*/
|
|
18
|
-
showBackButton?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Function to call when the default back button is clicked
|
|
21
|
-
*/
|
|
22
|
-
onBack?: () => void;
|
|
23
|
-
/**
|
|
24
|
-
* Custom view to render on the top-right of the component
|
|
25
|
-
*/
|
|
26
|
-
menus?: JSX.Element;
|
|
27
|
-
/**
|
|
28
|
-
* Title of the component
|
|
29
|
-
*
|
|
30
|
-
* @defaultValue `localize("MEMBERS")`
|
|
31
|
-
*/
|
|
32
|
-
title?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Alignment of the `title` text
|
|
35
|
-
*
|
|
36
|
-
* @defaultValue `TitleAlignment.center`
|
|
37
|
-
*/
|
|
38
|
-
titleAlignment?: TitleAlignment;
|
|
39
|
-
/**
|
|
40
|
-
* Text to be displayed when the search input has no value
|
|
41
|
-
*
|
|
42
|
-
* @defaultValue `localize("SEARCH")`
|
|
43
|
-
*/
|
|
44
|
-
searchPlaceholder?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Image URL for the search icon to use in the search bar
|
|
47
|
-
*
|
|
48
|
-
* @defaultValue `./assets/search.svg`
|
|
49
|
-
*/
|
|
50
|
-
searchIconURL?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Hide the search bar
|
|
53
|
-
*
|
|
54
|
-
* @defaulValue `false`
|
|
55
|
-
*/
|
|
56
|
-
hideSearch?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Request builder to fetch group members
|
|
59
|
-
*
|
|
60
|
-
* @remarks
|
|
61
|
-
* If the search input is not empty and the `searchRequestBuilder` prop is not provided,
|
|
62
|
-
* the search keyword of this request builder is set to the text in the search input
|
|
63
|
-
*
|
|
64
|
-
* @defaultValue Default request builder having the limit set to 30
|
|
65
|
-
*/
|
|
66
|
-
groupMemberRequestBuilder?: CometChat.GroupMembersRequestBuilder;
|
|
67
|
-
/**
|
|
68
|
-
* Request builder with search parameters to fetch group members
|
|
69
|
-
*
|
|
70
|
-
* @remarks
|
|
71
|
-
* If the search input is not empty,
|
|
72
|
-
* the search keyword of this request builder is set to the text in the search input
|
|
73
|
-
*/
|
|
74
|
-
searchRequestBuilder?: CometChat.GroupMembersRequestBuilder;
|
|
75
|
-
/**
|
|
76
|
-
* Group the fetched groupMembers belong to
|
|
77
|
-
*/
|
|
78
|
-
group: CometChat.Group;
|
|
79
|
-
/**
|
|
80
|
-
* Function to call whenever the component encounters an error
|
|
81
|
-
*/
|
|
82
|
-
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
83
|
-
/**
|
|
84
|
-
* Text to display in the default empty view
|
|
85
|
-
*
|
|
86
|
-
* @defaultValue `localize("NO_USERS_FOUND")`
|
|
87
|
-
*/
|
|
88
|
-
emptyStateText?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Text to display in the default error view
|
|
91
|
-
*
|
|
92
|
-
* @defaultValue `localize("SOMETHING_WRONG")`
|
|
93
|
-
*/
|
|
94
|
-
errorStateText?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Image URL for the default loading view
|
|
97
|
-
*
|
|
98
|
-
* @defaultValue `./assets/spinner.svg`
|
|
99
|
-
*/
|
|
100
|
-
loadingIconURL?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Custom view for the loading state of the component
|
|
103
|
-
*/
|
|
104
|
-
loadingStateView?: JSX.Element;
|
|
105
|
-
/**
|
|
106
|
-
* Custom view for the empty state of the component
|
|
107
|
-
*/
|
|
108
|
-
emptyStateView?: JSX.Element;
|
|
109
|
-
/**
|
|
110
|
-
* Custom view for the error state of the component
|
|
111
|
-
*/
|
|
112
|
-
errorStateView?: JSX.Element;
|
|
113
|
-
/**
|
|
114
|
-
* @deprecated
|
|
115
|
-
*
|
|
116
|
-
* This property is deprecated as of version 4.3.8 due to newer property 'errorStateView'. It will be removed in subsequent versions.
|
|
117
|
-
*/
|
|
118
|
-
errorSateView?: JSX.Element;
|
|
119
|
-
/**
|
|
120
|
-
* Hide error view
|
|
121
|
-
*
|
|
122
|
-
* @remarks
|
|
123
|
-
* If set to true, hides the default and the custom error view
|
|
124
|
-
*
|
|
125
|
-
* @defaultValue `false`
|
|
126
|
-
*/
|
|
127
|
-
hideError?: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* Hide the separator at the bottom of the default list item view
|
|
130
|
-
*
|
|
131
|
-
* @defaultValue `true`
|
|
132
|
-
*/
|
|
133
|
-
hideSeparator?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Hide user presence
|
|
136
|
-
*
|
|
137
|
-
* @remarks
|
|
138
|
-
* If set to true, the status indicator of the default list item view is not displayed
|
|
139
|
-
*
|
|
140
|
-
* @defaultValue `false`
|
|
141
|
-
*/
|
|
142
|
-
disableUsersPresence?: boolean;
|
|
143
|
-
/**
|
|
144
|
-
* Custom subtitle view to be rendered for each group member in the fetched list
|
|
145
|
-
*
|
|
146
|
-
* @remarks
|
|
147
|
-
* This prop is used if `listItemView` prop is not provided
|
|
148
|
-
*/
|
|
149
|
-
subtitleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
150
|
-
/**
|
|
151
|
-
* Custom list item view to be rendered for each group member in the fetched list
|
|
152
|
-
*/
|
|
153
|
-
listItemView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
154
|
-
/**
|
|
155
|
-
* List of actions available on mouse over on the default list item component
|
|
156
|
-
*/
|
|
157
|
-
options?: (group: CometChat.Group, groupMember: CometChat.GroupMember) => CometChatOption[];
|
|
158
|
-
/**
|
|
159
|
-
* Image URL for the change scope component's `arrowIconURL` prop
|
|
160
|
-
*
|
|
161
|
-
* @defaultValue `./assets/down-arrow.svg`
|
|
162
|
-
*/
|
|
163
|
-
dropDownIconURL?: string;
|
|
164
|
-
/**
|
|
165
|
-
* View to be placed in the tail view
|
|
166
|
-
*
|
|
167
|
-
* @remarks
|
|
168
|
-
* This prop will be used if `listItemView` is not provided
|
|
169
|
-
*/
|
|
170
|
-
tailView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
171
|
-
/**
|
|
172
|
-
* Selection mode to use for the default list item view
|
|
173
|
-
*
|
|
174
|
-
* @remarks
|
|
175
|
-
* This prop is used if `listItemView` prop is not provided
|
|
176
|
-
*
|
|
177
|
-
* @defaultValue `SelectionMode.none`
|
|
178
|
-
*/
|
|
179
|
-
selectionMode?: SelectionMode;
|
|
180
|
-
/**
|
|
181
|
-
* Function to call on click of the default list item view of a group member
|
|
182
|
-
*/
|
|
183
|
-
onItemClick?: (groupMember: CometChat.GroupMember) => void;
|
|
184
|
-
/**
|
|
185
|
-
* Function to call when a group member from the fetched list is selected
|
|
186
|
-
*
|
|
187
|
-
* @remarks
|
|
188
|
-
* This prop is used if `selectionMode` prop is not `SelectionMode.none`
|
|
189
|
-
*/
|
|
190
|
-
onSelect?: (groupMember: CometChat.GroupMember, selected: boolean) => void;
|
|
191
|
-
/**
|
|
192
|
-
* Image URL for the close button
|
|
193
|
-
*
|
|
194
|
-
* @defaultValue `./assets/close2x.svg`
|
|
195
|
-
*/
|
|
196
|
-
closeButtonIconURL?: string;
|
|
197
|
-
/**
|
|
198
|
-
* Function to call when the close button is clicked
|
|
199
|
-
*/
|
|
200
|
-
onClose?: () => void;
|
|
201
|
-
/**
|
|
202
|
-
* Styles to apply to the avatar component of the default list item view
|
|
203
|
-
*/
|
|
204
|
-
avatarStyle?: AvatarStyle;
|
|
205
|
-
/**
|
|
206
|
-
* Styles to apply to the status indicator component of the default list item view
|
|
207
|
-
*/
|
|
208
|
-
statusIndicatorStyle?: CSSProperties;
|
|
209
|
-
/**
|
|
210
|
-
* Styles to apply to the default list item view
|
|
211
|
-
*/
|
|
212
|
-
listItemStyle?: ListItemStyle;
|
|
213
|
-
/**
|
|
214
|
-
* Styles to apply to the change scope component
|
|
215
|
-
*/
|
|
216
|
-
groupScopeStyle?: ChangeScopeStyle;
|
|
217
|
-
/**
|
|
218
|
-
* Styles to apply to this component
|
|
219
|
-
*/
|
|
220
|
-
groupMembersStyle?: GroupMembersStyle;
|
|
221
|
-
/**
|
|
222
|
-
* Search keyword to filter the list of users.
|
|
223
|
-
*
|
|
224
|
-
* @defaultValue `""`
|
|
225
|
-
*/
|
|
226
|
-
searchKeyword?: string;
|
|
227
|
-
/**
|
|
228
|
-
* Callback function to be executed when the user list is empty.
|
|
229
|
-
*/
|
|
230
|
-
onEmpty?: () => void;
|
|
231
|
-
/**
|
|
232
|
-
* Timeout reference for fetching users.
|
|
233
|
-
*/
|
|
234
|
-
fetchTimeOut?: any;
|
|
235
|
-
/**
|
|
236
|
-
* Placement of user presence information within the user interface.
|
|
237
|
-
* @defaultValue `bottom`
|
|
238
|
-
*/
|
|
239
|
-
userPresencePlacement?: UserPresencePlacement;
|
|
240
|
-
/**
|
|
241
|
-
* Flag to indicate whether to disable loading state while fetching users.
|
|
242
|
-
* @defaultValue `false`
|
|
243
|
-
*/
|
|
244
|
-
disableLoadingState?: boolean;
|
|
245
|
-
}
|
|
246
|
-
export type Action = {
|
|
247
|
-
type: "appendGroupMembers";
|
|
248
|
-
groupMembers: CometChat.GroupMember[];
|
|
249
|
-
groupMembersManager?: GroupMembersManager | null;
|
|
250
|
-
onEmpty?: () => void;
|
|
251
|
-
} | {
|
|
252
|
-
type: "setGroupMemberList";
|
|
253
|
-
groupMemberList: CometChat.GroupMember[];
|
|
254
|
-
} | {
|
|
255
|
-
type: "setSearchText";
|
|
256
|
-
searchText: string;
|
|
257
|
-
} | {
|
|
258
|
-
type: "setFetchState";
|
|
259
|
-
fetchState: States;
|
|
260
|
-
} | {
|
|
261
|
-
type: "removeGroupMemberIfPresent";
|
|
262
|
-
groupMemberUid: string;
|
|
263
|
-
} | {
|
|
264
|
-
type: "setGroupMemberToChangeScopeOf";
|
|
265
|
-
groupMember: CometChat.GroupMember | null;
|
|
266
|
-
} | {
|
|
267
|
-
type: "replaceGroupMemberIfPresent";
|
|
268
|
-
updatedGroupMember: CometChat.GroupMember;
|
|
269
|
-
} | {
|
|
270
|
-
type: "updateGroupMemberStatusIfPresent";
|
|
271
|
-
user: CometChat.User;
|
|
272
|
-
} | {
|
|
273
|
-
type: "updateGroupMemberScopeIfPresent";
|
|
274
|
-
groupMemberUid: string;
|
|
275
|
-
newScope: CometChat.GroupMemberScope;
|
|
276
|
-
} | {
|
|
277
|
-
type: "appendGroupMember";
|
|
278
|
-
groupMember: CometChat.GroupMember;
|
|
279
|
-
};
|
|
280
|
-
export declare function CometChatGroupMembers(props: IGroupMembersProps): import("react/jsx-runtime").JSX.Element;
|
|
281
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { AvatarStyle, BackdropStyle, ChangeScopeStyle, LabelStyle, ListItemStyle, MenuListStyle } from "@cometchat/uikit-elements";
|
|
2
|
-
import { CSSProperties } from "react";
|
|
3
|
-
import { CometChatTheme } from "@cometchat/uikit-resources";
|
|
4
|
-
import { GroupMembersStyle, ListStyle } from "@cometchat/uikit-shared";
|
|
5
|
-
type ButtonStyle = CSSProperties & {
|
|
6
|
-
buttonIconTint?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function groupMembersWrapperStyle(groupMemberSyleObject: GroupMembersStyle | null, theme: CometChatTheme): CSSProperties;
|
|
9
|
-
export declare function listStyle(groupMemberStyleObject: GroupMembersStyle | null, theme: CometChatTheme): ListStyle;
|
|
10
|
-
export declare function backBtnContainerStyle(): CSSProperties;
|
|
11
|
-
export declare function defaultBackBtnStyle(groupMemberStyleObject: GroupMembersStyle | null, theme: CometChatTheme): ButtonStyle;
|
|
12
|
-
export declare function closeBtnStyle(groupMemberStyleObject: GroupMembersStyle | null, theme: CometChatTheme): ButtonStyle;
|
|
13
|
-
export declare function menusContainerStyle(): CSSProperties;
|
|
14
|
-
export declare function avatarStyle(avatarStyleObject: AvatarStyle | null, theme: CometChatTheme): AvatarStyle;
|
|
15
|
-
export declare function statusIndicatorStyle(statusIndicatorStyleObject: CSSProperties | null): CSSProperties;
|
|
16
|
-
export declare function listItemStyle(listItemStyleObject: ListItemStyle | null, groupMemberStyleObject: GroupMembersStyle | null, theme: CometChatTheme): ListItemStyle;
|
|
17
|
-
export declare function scopeLabelStyle(groupScopeStyleObject: ChangeScopeStyle | null, theme: CometChatTheme): LabelStyle;
|
|
18
|
-
export declare function menuListStyle(groupMembersStyle: GroupMembersStyle | null, theme: CometChatTheme): MenuListStyle;
|
|
19
|
-
export declare function groupScopeStyle(groupScopeStyleObject: ChangeScopeStyle | null, theme: CometChatTheme): ChangeScopeStyle;
|
|
20
|
-
export declare function listWrapperStyle(): CSSProperties;
|
|
21
|
-
export declare function tailViewStyle(): CSSProperties;
|
|
22
|
-
export declare function closeBtnContainerStyle(): CSSProperties;
|
|
23
|
-
export declare const getBackdropStyle: (groupsMembersStyle: GroupMembersStyle | null) => BackdropStyle;
|
|
24
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Action } from ".";
|
|
3
|
-
type Args = {
|
|
4
|
-
searchText: string;
|
|
5
|
-
groupsRequestBuilder: CometChat.GroupsRequestBuilder | null;
|
|
6
|
-
searchRequestBuilder: CometChat.GroupsRequestBuilder | null;
|
|
7
|
-
groupsSearchText: React.MutableRefObject<string>;
|
|
8
|
-
};
|
|
9
|
-
export declare class GroupsManager {
|
|
10
|
-
private groupsRequest;
|
|
11
|
-
private static loggedInUser;
|
|
12
|
-
private static defaultLimit;
|
|
13
|
-
/**
|
|
14
|
-
* Set `groupsRequest` of the instance
|
|
15
|
-
*/
|
|
16
|
-
constructor(args: Args);
|
|
17
|
-
/**
|
|
18
|
-
* Calls `fetchNext` method of the set `groupsRequest`
|
|
19
|
-
*/
|
|
20
|
-
fetchNext(): Promise<[] | import("@cometchat/chat-sdk-javascript").Group[]>;
|
|
21
|
-
private getDefaultRequestBuilder;
|
|
22
|
-
/**
|
|
23
|
-
* Sets `loggedInUser` of the instance
|
|
24
|
-
* @returns The logged-in user
|
|
25
|
-
*/
|
|
26
|
-
private static getLoggedInUser;
|
|
27
|
-
/**
|
|
28
|
-
* Creates an SDK group listener
|
|
29
|
-
*/
|
|
30
|
-
private static createGroupListener;
|
|
31
|
-
/**
|
|
32
|
-
* Attaches an SDK group listener
|
|
33
|
-
*
|
|
34
|
-
* @returns Function to call to remove the attached SDK group listener
|
|
35
|
-
*/
|
|
36
|
-
static attachListeners(dispatch: React.Dispatch<Action>): () => void;
|
|
37
|
-
/**
|
|
38
|
-
* Attaches an SDK websocket listener
|
|
39
|
-
*
|
|
40
|
-
* @returns - Function to remove the added SDK websocket listener
|
|
41
|
-
*/
|
|
42
|
-
static attachConnestionListener(callback: () => void): () => void;
|
|
43
|
-
}
|
|
44
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Action } from ".";
|
|
3
|
-
import { GroupsManager } from "./controller";
|
|
4
|
-
type Args = {
|
|
5
|
-
groupsRequestBuilder: CometChat.GroupsRequestBuilder | null;
|
|
6
|
-
searchRequestBuilder: CometChat.GroupsRequestBuilder | null;
|
|
7
|
-
searchText: string;
|
|
8
|
-
fetchNextIdRef: React.MutableRefObject<string>;
|
|
9
|
-
groupsManagerRef: React.MutableRefObject<GroupsManager | null>;
|
|
10
|
-
dispatch: React.Dispatch<Action>;
|
|
11
|
-
fetchNextAndAppendGroups: (fetchId: string) => Promise<void>;
|
|
12
|
-
groupsSearchText: React.MutableRefObject<string>;
|
|
13
|
-
};
|
|
14
|
-
export declare function Hooks(args: Args): void;
|
|
15
|
-
export {};
|