@cometchat/chat-uikit-react 4.3.28 → 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,37 +0,0 @@
|
|
|
1
|
-
import { Action } from ".";
|
|
2
|
-
import React from "react";
|
|
3
|
-
type Args = {
|
|
4
|
-
bannedMembersRequestBuilder: CometChat.BannedMembersRequestBuilder | null;
|
|
5
|
-
searchRequestBuilder: CometChat.BannedMembersRequestBuilder | null;
|
|
6
|
-
searchText: string;
|
|
7
|
-
groupGuid: string;
|
|
8
|
-
bannedMembersSearchText: React.MutableRefObject<string>;
|
|
9
|
-
};
|
|
10
|
-
export declare class BannedMembersManager {
|
|
11
|
-
private bannedMembersRequest;
|
|
12
|
-
/**
|
|
13
|
-
* Set `bannedMembersRequest` of the instance
|
|
14
|
-
*/
|
|
15
|
-
constructor(args: Args);
|
|
16
|
-
/**
|
|
17
|
-
* Calls `fetchNext` method of the set `bannedMembersRequest`
|
|
18
|
-
*/
|
|
19
|
-
fetchNext(): Promise<CometChat.GroupMember[]>;
|
|
20
|
-
/**
|
|
21
|
-
* Creates `CometChat.GroupMember` instance
|
|
22
|
-
*/
|
|
23
|
-
static createGroupMemberFromUser(user: CometChat.User, group: CometChat.Group): CometChat.GroupMember;
|
|
24
|
-
/**
|
|
25
|
-
* Attaches an SDK group listener
|
|
26
|
-
*
|
|
27
|
-
* @returns - Function to remove the added SDK group listener
|
|
28
|
-
*/
|
|
29
|
-
static attachSDKGroupListener(groupRef: React.MutableRefObject<CometChat.Group>, dispatch: React.Dispatch<Action>): () => void;
|
|
30
|
-
/**
|
|
31
|
-
* Attaches an SDK user listener
|
|
32
|
-
*
|
|
33
|
-
* @returns - Function to remove the added SDK user listener
|
|
34
|
-
*/
|
|
35
|
-
static attachSDKUserListener(dispatch: React.Dispatch<Action>): () => void;
|
|
36
|
-
}
|
|
37
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Action } from ".";
|
|
3
|
-
import { BannedMembersManager } from "./controller";
|
|
4
|
-
type Args = {
|
|
5
|
-
bannedMembersManagerRef: React.MutableRefObject<BannedMembersManager | null>;
|
|
6
|
-
groupGuid: string;
|
|
7
|
-
searchText: string;
|
|
8
|
-
bannedMembersRequestBuilder: CometChat.BannedMembersRequestBuilder | null;
|
|
9
|
-
searchRequestBuilder: CometChat.BannedMembersRequestBuilder | null;
|
|
10
|
-
dispatch: React.Dispatch<Action>;
|
|
11
|
-
fetchNextAndAppendBannedMembers: (fetchId: string) => Promise<void>;
|
|
12
|
-
fetchNextIdRef: React.MutableRefObject<string>;
|
|
13
|
-
groupPropRef: React.MutableRefObject<CometChat.Group>;
|
|
14
|
-
bannedMembersSearchText: React.MutableRefObject<string>;
|
|
15
|
-
};
|
|
16
|
-
export declare function Hooks(args: Args): void;
|
|
17
|
-
export {};
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { AvatarStyle, ListItemStyle } from "@cometchat/uikit-elements";
|
|
2
|
-
import { CSSProperties, JSX } from "react";
|
|
3
|
-
import { CometChatOption, SelectionMode, States, TitleAlignment } from "@cometchat/uikit-resources";
|
|
4
|
-
import { BannedMembersStyle } from "@cometchat/uikit-shared";
|
|
5
|
-
interface IBannedMembersProps {
|
|
6
|
-
/**
|
|
7
|
-
* Image URL for the back button
|
|
8
|
-
*
|
|
9
|
-
* @defaultValue `./assets/backbutton.svg`
|
|
10
|
-
*/
|
|
11
|
-
backButtonIconURL?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Show back button
|
|
14
|
-
*
|
|
15
|
-
* @defaultValue `true`
|
|
16
|
-
*/
|
|
17
|
-
showBackButton?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Function to call when the back button is clicked
|
|
20
|
-
*/
|
|
21
|
-
onBack?: () => void;
|
|
22
|
-
/**
|
|
23
|
-
* Custom view to render on the top-right of the component
|
|
24
|
-
*/
|
|
25
|
-
menus?: JSX.Element;
|
|
26
|
-
/**
|
|
27
|
-
* Title of the component
|
|
28
|
-
*
|
|
29
|
-
* @defaultValue `localize("BANNED_MEMBERS")`
|
|
30
|
-
*/
|
|
31
|
-
title?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Alignment of the `title` text
|
|
34
|
-
*
|
|
35
|
-
* @defaultValue `TitleAlignment.center`
|
|
36
|
-
*/
|
|
37
|
-
titleAlignment?: TitleAlignment;
|
|
38
|
-
/**
|
|
39
|
-
* Text to be displayed when the search input has no value
|
|
40
|
-
*
|
|
41
|
-
* @defaultValue `localize("SEARCH")`
|
|
42
|
-
*/
|
|
43
|
-
searchPlaceholder?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Image URL for the search icon to use in the search bar
|
|
46
|
-
*
|
|
47
|
-
* @defaultValue `./assets/search.svg`
|
|
48
|
-
*/
|
|
49
|
-
searchIconURL?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Hide the search bar
|
|
52
|
-
*
|
|
53
|
-
* @defaulValue `true`
|
|
54
|
-
*/
|
|
55
|
-
hideSearch?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Image URL for the default loading view
|
|
58
|
-
*
|
|
59
|
-
* @defaultValue `./assets/spinner.svg`
|
|
60
|
-
*/
|
|
61
|
-
loadingIconURL?: string;
|
|
62
|
-
/**
|
|
63
|
-
* Custom view for the loading state of the component
|
|
64
|
-
*/
|
|
65
|
-
loadingStateView?: JSX.Element;
|
|
66
|
-
/**
|
|
67
|
-
* Text to display in the default empty view
|
|
68
|
-
*
|
|
69
|
-
* @defaultValue `localize("")`
|
|
70
|
-
*/
|
|
71
|
-
emptyStateText?: string;
|
|
72
|
-
/**
|
|
73
|
-
* Custom view for the empty state of the component
|
|
74
|
-
*/
|
|
75
|
-
emptyStateView?: JSX.Element;
|
|
76
|
-
/**
|
|
77
|
-
* Text to display in the default error view
|
|
78
|
-
*
|
|
79
|
-
* @defaultValue `localize("SOMETHING_WRONG")`
|
|
80
|
-
*/
|
|
81
|
-
errorStateText?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Custom view for the error state of the component
|
|
84
|
-
*/
|
|
85
|
-
errorStateView?: JSX.Element;
|
|
86
|
-
/**
|
|
87
|
-
* Function to call whenever the component encounters an error
|
|
88
|
-
*/
|
|
89
|
-
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
90
|
-
/**
|
|
91
|
-
* Group to ban members from
|
|
92
|
-
*/
|
|
93
|
-
group: CometChat.Group;
|
|
94
|
-
/**
|
|
95
|
-
* Request builder to fetch banned members
|
|
96
|
-
*
|
|
97
|
-
* @remarks
|
|
98
|
-
* If the search input is not empty and the `searchRequestBuilder` prop is not provided,
|
|
99
|
-
* the search keyword of this request builder is set to the text in the search input
|
|
100
|
-
*
|
|
101
|
-
* @defaultValue Default request builder having the limit set to 30
|
|
102
|
-
*/
|
|
103
|
-
bannedMembersRequestBuilder?: CometChat.BannedMembersRequestBuilder;
|
|
104
|
-
/**
|
|
105
|
-
* Request builder with search parameters to fetch banned members
|
|
106
|
-
*
|
|
107
|
-
* @remarks
|
|
108
|
-
* If the search input is not empty,
|
|
109
|
-
* the search keyword of this request builder is set to the text in the search input
|
|
110
|
-
*/
|
|
111
|
-
searchRequestBuilder?: CometChat.BannedMembersRequestBuilder;
|
|
112
|
-
/**
|
|
113
|
-
* Custom list item view to be rendered for each banned member in the fetched list
|
|
114
|
-
*/
|
|
115
|
-
listItemView?: (bannedMember: CometChat.GroupMember) => JSX.Element;
|
|
116
|
-
/**
|
|
117
|
-
* Hide the separator at the bottom of the default list item view
|
|
118
|
-
*
|
|
119
|
-
* @defaultValue `false`
|
|
120
|
-
*/
|
|
121
|
-
hideSeparator?: boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Hide user presence
|
|
124
|
-
*
|
|
125
|
-
* @remarks
|
|
126
|
-
* If set to true, the status indicator of the default list item view is not displayed
|
|
127
|
-
*
|
|
128
|
-
* @defaultValue `true`
|
|
129
|
-
*/
|
|
130
|
-
disableUsersPresence?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* Image URL for the close button
|
|
133
|
-
*
|
|
134
|
-
* @defaultValue `./assets/close2x.svg`
|
|
135
|
-
*/
|
|
136
|
-
closeButtonIconURL?: string;
|
|
137
|
-
/**
|
|
138
|
-
* Function to call when the close button is clicked
|
|
139
|
-
*/
|
|
140
|
-
onClose?: () => void;
|
|
141
|
-
/**
|
|
142
|
-
* Custom subtitle view to be rendered for each banned member in the fetched list
|
|
143
|
-
*
|
|
144
|
-
* @remarks
|
|
145
|
-
* This prop is used if `listItemView` prop is not provided
|
|
146
|
-
*/
|
|
147
|
-
subtitleView?: (bannedMember: CometChat.GroupMember) => JSX.Element;
|
|
148
|
-
/**
|
|
149
|
-
* List of actions available on mouse over on the default list item component
|
|
150
|
-
*/
|
|
151
|
-
options?: (bannedMember: CometChat.GroupMember) => CometChatOption[];
|
|
152
|
-
/**
|
|
153
|
-
* Selection mode to use for the default tail view
|
|
154
|
-
*
|
|
155
|
-
* @remarks
|
|
156
|
-
* This prop is used if `listItemView` prop is not provided.
|
|
157
|
-
*
|
|
158
|
-
* @defaultValue `SelectionMode.none`
|
|
159
|
-
*/
|
|
160
|
-
selectionMode?: SelectionMode;
|
|
161
|
-
/**
|
|
162
|
-
*
|
|
163
|
-
*/
|
|
164
|
-
unbanIconURL?: string;
|
|
165
|
-
/**
|
|
166
|
-
* Function to call on click of the default list item view of a banned member
|
|
167
|
-
*/
|
|
168
|
-
onItemClick?: (bannedMember: CometChat.GroupMember) => void;
|
|
169
|
-
/**
|
|
170
|
-
* Function to call when a banned member from the fetched list is selected
|
|
171
|
-
*
|
|
172
|
-
* @remarks
|
|
173
|
-
* This prop is used if `selectionMode` prop is not `SelectionMode.none`
|
|
174
|
-
*/
|
|
175
|
-
onSelect?: (bannedMember: CometChat.GroupMember, selected: boolean) => void;
|
|
176
|
-
/**
|
|
177
|
-
* Hide error view
|
|
178
|
-
*
|
|
179
|
-
* @remarks
|
|
180
|
-
* If set to true, hides the default and the custom error view
|
|
181
|
-
*
|
|
182
|
-
* @defaultValue `false`
|
|
183
|
-
*/
|
|
184
|
-
hideError?: boolean;
|
|
185
|
-
/**
|
|
186
|
-
* Styles to apply to the status indicator component of the default list item view
|
|
187
|
-
*/
|
|
188
|
-
statusIndicatorStyle?: CSSProperties;
|
|
189
|
-
/**
|
|
190
|
-
* Styles to apply to the avatar component of the default list item view
|
|
191
|
-
*/
|
|
192
|
-
avatarStyle?: AvatarStyle;
|
|
193
|
-
/**
|
|
194
|
-
* Styles to apply to the default list item view
|
|
195
|
-
*/
|
|
196
|
-
listItemStyle?: ListItemStyle;
|
|
197
|
-
/**
|
|
198
|
-
* Styles to apply to this component
|
|
199
|
-
*/
|
|
200
|
-
bannedMemberStyle?: BannedMembersStyle;
|
|
201
|
-
}
|
|
202
|
-
export type Action = {
|
|
203
|
-
type: "setSearchText";
|
|
204
|
-
searchText: string;
|
|
205
|
-
} | {
|
|
206
|
-
type: "setFetchState";
|
|
207
|
-
fetchState: States;
|
|
208
|
-
} | {
|
|
209
|
-
type: "appendBannedMembers";
|
|
210
|
-
bannedMembers: CometChat.GroupMember[];
|
|
211
|
-
} | {
|
|
212
|
-
type: "setBannedMembers";
|
|
213
|
-
bannedMembers: [];
|
|
214
|
-
} | {
|
|
215
|
-
type: "removeBannedMemberIfPresent";
|
|
216
|
-
bannedMemberUid: string;
|
|
217
|
-
} | {
|
|
218
|
-
type: "addMember";
|
|
219
|
-
member: CometChat.GroupMember;
|
|
220
|
-
} | {
|
|
221
|
-
type: "updateMemberStatusIfPresent";
|
|
222
|
-
member: CometChat.User;
|
|
223
|
-
};
|
|
224
|
-
/**
|
|
225
|
-
* Renders a scrollable list of banned members related to a group of a CometChat App
|
|
226
|
-
*/
|
|
227
|
-
export declare function CometChatBannedMembers(props: IBannedMembersProps): import("react/jsx-runtime").JSX.Element;
|
|
228
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AvatarStyle, ListItemStyle, MenuListStyle } from "@cometchat/uikit-elements";
|
|
2
|
-
import { BannedMembersStyle, ListStyle } from "@cometchat/uikit-shared";
|
|
3
|
-
import { CometChatTheme } from "@cometchat/uikit-resources";
|
|
4
|
-
import { CSSProperties } from "react";
|
|
5
|
-
type ButtonStyle = CSSProperties & {
|
|
6
|
-
buttonIconTint: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function bannedMembersWrapperStyle(bannedMemberStyleObject: BannedMembersStyle | null, theme: CometChatTheme): CSSProperties;
|
|
9
|
-
export declare function listStyle(bannedMemberStyleObject: BannedMembersStyle | null, theme: CometChatTheme): ListStyle;
|
|
10
|
-
export declare function menusContainerStyle(): CSSProperties;
|
|
11
|
-
export declare function statusIndicatorStyle(statusIndicatorStyleObject: CSSProperties | null): CSSProperties;
|
|
12
|
-
export declare function avatarStyle(avatarStyleObject: AvatarStyle | null, theme: CometChatTheme): AvatarStyle;
|
|
13
|
-
export declare function listItemStyle(listItemStyleObject: ListItemStyle | null, bannedMemberStyleObject: BannedMembersStyle | null, theme: CometChatTheme): ListItemStyle;
|
|
14
|
-
export declare function defaultBackBtnStyle(bannedMemberStyleObject: BannedMembersStyle | null, theme: CometChatTheme): ButtonStyle;
|
|
15
|
-
export declare function closeBtnStyle(bannedMemberStyleObject: BannedMembersStyle | null, theme: CometChatTheme): ButtonStyle;
|
|
16
|
-
export declare function unbanBtnStyle(bannedMemberStyleObject: BannedMembersStyle | null, theme: CometChatTheme): ButtonStyle;
|
|
17
|
-
export declare function menuListStyle(theme: CometChatTheme): MenuListStyle;
|
|
18
|
-
export declare function listWrapperStyle(): CSSProperties;
|
|
19
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ContactsStyle, GroupsConfiguration, UsersConfiguration } from "@cometchat/uikit-shared";
|
|
2
|
-
import { SelectionMode, TabsVisibility } from "@cometchat/uikit-resources";
|
|
3
|
-
interface ContactsProps {
|
|
4
|
-
title?: string;
|
|
5
|
-
usersTabTitle?: string;
|
|
6
|
-
groupsTabTitle?: string;
|
|
7
|
-
usersConfiguration?: UsersConfiguration;
|
|
8
|
-
groupsConfiguration?: GroupsConfiguration;
|
|
9
|
-
onSubmitButtonClick?: (users?: CometChat.User[], groups?: CometChat.Group[]) => void;
|
|
10
|
-
closeIconURL?: string;
|
|
11
|
-
onClose?: () => void;
|
|
12
|
-
onItemClick?: (user?: CometChat.User, group?: CometChat.Group) => void;
|
|
13
|
-
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
14
|
-
submitButtonText?: string;
|
|
15
|
-
hideSubmitButton?: boolean;
|
|
16
|
-
selectionLimit?: number;
|
|
17
|
-
tabVisibility?: TabsVisibility;
|
|
18
|
-
contactsStyle?: ContactsStyle;
|
|
19
|
-
selectionMode?: SelectionMode;
|
|
20
|
-
}
|
|
21
|
-
declare const CometChatContacts: (props: ContactsProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export { CometChatContacts };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CometChatTheme, TabsVisibility } from "@cometchat/uikit-resources";
|
|
2
|
-
import { ContactsStyle, TabItemStyle } from "@cometchat/uikit-shared";
|
|
3
|
-
import { CSSProperties } from "react";
|
|
4
|
-
import { TabsStyle } from "../Shared/Views/CometChatTabs/TabsStyle";
|
|
5
|
-
type ButtonStyle = CSSProperties & {
|
|
6
|
-
buttonIconTint?: string;
|
|
7
|
-
};
|
|
8
|
-
type HeaderStyle = CSSProperties;
|
|
9
|
-
type WrapperStyle = CSSProperties;
|
|
10
|
-
type ContentStyle = CSSProperties;
|
|
11
|
-
export declare function closeBtnStyle(theme: CometChatTheme, contactsStyle?: ContactsStyle): ButtonStyle;
|
|
12
|
-
export declare function submitBtnWrapperStyle(): CSSProperties;
|
|
13
|
-
export declare function submitBtnStyle(theme: CometChatTheme, contactsStyle?: ContactsStyle | null): any;
|
|
14
|
-
export declare function contactsHeaderStyle(theme: CometChatTheme, contactsStyle?: ContactsStyle): HeaderStyle;
|
|
15
|
-
export declare function contactsWrapperStyle(theme: CometChatTheme, contactsStyle?: ContactsStyle): WrapperStyle;
|
|
16
|
-
export declare function getContactsStyle(theme: CometChatTheme, contactsStyle?: ContactsStyle): CSSProperties;
|
|
17
|
-
export declare function contactsContentStyle(): ContentStyle;
|
|
18
|
-
export declare function getTabsStyle(theme: CometChatTheme, contactsStyle?: ContactsStyle): TabsStyle;
|
|
19
|
-
export declare const getTabItemStyling: (theme: CometChatTheme, tabVisibility: TabsVisibility | undefined, isActive: boolean, contactsStyle?: ContactsStyle) => TabItemStyle;
|
|
20
|
-
export {};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
2
|
-
type Args = {
|
|
3
|
-
conversationsRequestBuilder: CometChat.ConversationsRequestBuilder | null;
|
|
4
|
-
};
|
|
5
|
-
export declare class ConversationsManager {
|
|
6
|
-
private static limit;
|
|
7
|
-
private conversationsRequest;
|
|
8
|
-
private static conversationType;
|
|
9
|
-
/**
|
|
10
|
-
* Set `conversationsRequest` of the instance
|
|
11
|
-
*/
|
|
12
|
-
constructor(args: Args);
|
|
13
|
-
/**
|
|
14
|
-
* Calls `fetchNext` method of the set `conversationsRequest`
|
|
15
|
-
*/
|
|
16
|
-
fetchNext(): Promise<[] | import("@cometchat/chat-sdk-javascript").Conversation[]>;
|
|
17
|
-
/**
|
|
18
|
-
* Attaches an SDK user listener
|
|
19
|
-
*
|
|
20
|
-
* @returns Function to call to remove the attached SDK user listener
|
|
21
|
-
*/
|
|
22
|
-
static attachUserListener(callback: (user: CometChat.User) => void): () => void;
|
|
23
|
-
/**
|
|
24
|
-
* Attaches an SDK group listener
|
|
25
|
-
*
|
|
26
|
-
* @returns Function to call to remove the attached SDK group listener
|
|
27
|
-
*/
|
|
28
|
-
static attachGroupListener(callback: (message: CometChat.BaseMessage, remove?: boolean) => Promise<void>, loggedInUser: CometChat.User | null): () => void;
|
|
29
|
-
/**
|
|
30
|
-
* Attaches an SDK message received listener
|
|
31
|
-
*
|
|
32
|
-
* @returns - Function to remove the added SDK message received listener
|
|
33
|
-
*/
|
|
34
|
-
static attachMessageReceivedListener(callback: (message: CometChat.BaseMessage) => Promise<void>): () => void;
|
|
35
|
-
/**
|
|
36
|
-
* Attaches an SDK message receipt listener
|
|
37
|
-
*
|
|
38
|
-
* @returns - Function to remove the added SDK message receipt listener
|
|
39
|
-
*/
|
|
40
|
-
static attachMessageReceiptListener(callback: (receipt: CometChat.MessageReceipt, updateReadAt: boolean) => void): () => void;
|
|
41
|
-
/**
|
|
42
|
-
* Attaches an SDK message typing listener
|
|
43
|
-
*
|
|
44
|
-
* @returns - Function to remove the added SDK message typing listener
|
|
45
|
-
*/
|
|
46
|
-
static attachMessageTypingListener(callback: (typingIndicator: CometChat.TypingIndicator, typingStarted: boolean) => void): () => void;
|
|
47
|
-
/**
|
|
48
|
-
* Attaches an SDK message modified listener
|
|
49
|
-
*
|
|
50
|
-
* @returns - Function to remove the added SDK message modified listener
|
|
51
|
-
*/
|
|
52
|
-
static attachMessageModifiedListener(callback: (message: CometChat.BaseMessage) => void): () => void;
|
|
53
|
-
/**
|
|
54
|
-
* Attaches an SDK call listener
|
|
55
|
-
*
|
|
56
|
-
* @returns - Function to remove the added SDK call listener
|
|
57
|
-
*/
|
|
58
|
-
static attachCallListener(callback: (message: CometChat.BaseMessage) => void): () => void;
|
|
59
|
-
/**
|
|
60
|
-
* Attaches an SDK websocket listener
|
|
61
|
-
*
|
|
62
|
-
* @returns - Function to remove the added SDK websocket listener
|
|
63
|
-
*/
|
|
64
|
-
static attachConnestionListener(callback: () => void): () => void;
|
|
65
|
-
/**
|
|
66
|
-
* Determines if the last message should trigger an update based on its category and type.
|
|
67
|
-
*
|
|
68
|
-
* @param message - The last message sent or received in the conversation.
|
|
69
|
-
* @returns {boolean} - Returns true if the message should trigger an update, false otherwise.
|
|
70
|
-
*/
|
|
71
|
-
static shouldLastMessageAndUnreadCountBeUpdated: (message: CometChat.BaseMessage) => any;
|
|
72
|
-
static shouldIncrementForCustomMessage(message: CometChat.CustomMessage): any;
|
|
73
|
-
}
|
|
74
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { JSX } from "react";
|
|
2
|
-
import { Action } from ".";
|
|
3
|
-
import { ConversationsManager } from "./controller";
|
|
4
|
-
type Args = {
|
|
5
|
-
conversationsRequestBuilder: CometChat.ConversationsRequestBuilder | null;
|
|
6
|
-
conversationsManagerRef: React.MutableRefObject<ConversationsManager | null>;
|
|
7
|
-
fetchNextAndAppendConversations: (fetchId: string) => Promise<void>;
|
|
8
|
-
fetchNextIdRef: React.MutableRefObject<string>;
|
|
9
|
-
dispatch: React.Dispatch<Action>;
|
|
10
|
-
confirmDialogElement: JSX.IntrinsicElements["cometchat-confirm-dialog"] | null;
|
|
11
|
-
conversationToBeDeleted: CometChat.Conversation | null;
|
|
12
|
-
errorHandler: (error: unknown) => void;
|
|
13
|
-
refreshSingleConversation: (message: CometChat.BaseMessage, remove?: boolean) => Promise<void>;
|
|
14
|
-
onMessageReceived: (message: CometChat.BaseMessage) => Promise<void>;
|
|
15
|
-
setReceipts: (messageReceipt: CometChat.MessageReceipt, updateReadAt: boolean) => void;
|
|
16
|
-
setTypingIndicator: (typingIndicator: CometChat.TypingIndicator, typingStarted: boolean) => void;
|
|
17
|
-
disableTyping: boolean;
|
|
18
|
-
loggedInUser: CometChat.User | null;
|
|
19
|
-
isFirstReload: boolean;
|
|
20
|
-
};
|
|
21
|
-
export declare function Hooks(args: Args): void;
|
|
22
|
-
export {};
|