Skip to content

Commit 1bb9005

Browse files
Update UiKit to v4.3.10
1 parent a4c8f04 commit 1bb9005

File tree

19 files changed

+468
-179
lines changed

19 files changed

+468
-179
lines changed

dist/index.d.ts

Lines changed: 89 additions & 10 deletions
Large diffs are not rendered by default.

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,45 @@
11
import { CallButtonsStyle } from "@cometchat/uikit-shared";
2-
interface ICallButtonsProps {
3-
user?: CometChat.User;
4-
group?: CometChat.Group;
2+
import { CometChat } from "@cometchat/chat-sdk-javascript";
3+
interface ICallButtonsBaseProps {
54
voiceCallIconURL?: string;
65
voiceCallIconText?: string;
76
voiceCallIconHoverText?: string;
87
videoCallIconURL?: string;
98
videoCallIconText?: string;
109
videoCallIconHoverText?: string;
1110
callButtonsStyle?: CallButtonsStyle;
12-
onVoiceCallClick?: Function | undefined;
13-
onVideoCallClick?: Function | undefined;
14-
onError?: Function;
11+
onVoiceCallClick?: () => void;
12+
onVideoCallClick?: () => void;
13+
onError?: (error: CometChat.CometChatException) => void;
1514
}
15+
interface ICallButtonsUserProps extends ICallButtonsBaseProps {
16+
user: CometChat.User;
17+
group?: CometChat.Group | null;
18+
}
19+
interface ICallButtonsGroupProps extends ICallButtonsBaseProps {
20+
user?: CometChat.User | null;
21+
group: CometChat.Group;
22+
}
23+
type ICallButtonsProps = ICallButtonsUserProps | ICallButtonsGroupProps;
1624
declare const CometChatCallButtons: {
1725
(props: ICallButtonsProps): import("react/jsx-runtime").JSX.Element;
18-
defaultProps: ICallButtonsProps;
26+
defaultProps: {
27+
voiceCallIconURL: string;
28+
voiceCallIconText: any;
29+
voiceCallIconHoverText: any;
30+
videoCallIconURL: string;
31+
videoCallIconText: any;
32+
videoCallIconHoverText: any;
33+
callButtonsStyle: {
34+
width: string;
35+
height: string;
36+
border: string;
37+
borderRadius: string;
38+
background: string;
39+
};
40+
onVoiceCallClick: undefined;
41+
onVideoCallClick: undefined;
42+
onError: (error: CometChat.CometChatException) => void;
43+
};
1944
};
2045
export { CometChatCallButtons };

dist/types/Calling/Utils/CallDetailsUtils.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CometChatTheme, CometChatCallDetailsTemplate } from "@cometchat/uikit-resources";
1+
import { CometChatCallDetailsTemplate, CometChatTheme } from "@cometchat/uikit-resources";
22
export declare class CallingDetailsUtils {
33
static getDefaultCallTemplate(callLog: any, loggedInUser: CometChat.User, theme: CometChatTheme): Array<CometChatCallDetailsTemplate>;
44
private static getCallButtons;

dist/types/CometChatContacts/index.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
import { ContactsStyle, GroupsConfiguration, UsersConfiguration } from "@cometchat/uikit-shared";
2-
import { TabsVisibility } from "@cometchat/uikit-resources";
2+
import { SelectionMode, TabsVisibility } from "@cometchat/uikit-resources";
33
interface ContactsProps {
44
title?: string;
55
usersTabTitle?: string;
66
groupsTabTitle?: string;
77
usersConfiguration?: UsersConfiguration;
88
groupsConfiguration?: GroupsConfiguration;
9+
onSubmitButtonClick?: (users?: CometChat.User[], groups?: CometChat.Group[]) => void;
910
closeIconURL?: string;
1011
onClose?: () => void;
1112
onItemClick?: (user?: CometChat.User, group?: CometChat.Group) => void;
1213
onError: ((error: CometChat.CometChatException) => void) | null;
14+
submitButtonText?: string;
15+
hideSubmitButton?: boolean;
16+
selectionLimit?: number;
1317
tabVisibility?: TabsVisibility;
1418
contactsStyle: ContactsStyle;
19+
selectionMode?: SelectionMode;
1520
}
1621
declare const CometChatContacts: {
1722
(props: ContactsProps): import("react/jsx-runtime").JSX.Element;

dist/types/CometChatContacts/style.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ type HeaderStyle = CSSProperties;
99
type WrapperStyle = CSSProperties;
1010
type ContentStyle = CSSProperties;
1111
export declare function closeBtnStyle(contactsStyle: ContactsStyle, theme: CometChatTheme): ButtonStyle;
12+
export declare function submitBtnWrapperStyle(): CSSProperties;
13+
export declare function submitBtnStyle(contactsStyle: ContactsStyle | null, theme: CometChatTheme): any;
1214
export declare function contactsHeaderStyle(contactsStyle: ContactsStyle, theme: CometChatTheme): HeaderStyle;
1315
export declare function contactsWrapperStyle(contactsStyle: ContactsStyle, theme: CometChatTheme): WrapperStyle;
1416
export declare function getContactsStyle(contactsStyle: ContactsStyle, theme: CometChatTheme): CSSProperties;
1517
export declare function contactsContentStyle(): ContentStyle;
16-
export declare function getTabsStyle(): TabsStyle;
17-
export declare const getTabItemStyling: (theme: CometChatTheme, tabVisibility: TabsVisibility | undefined, isActive: boolean) => TabItemStyle;
18+
export declare function getTabsStyle(contactsStyle: ContactsStyle, theme: CometChatTheme): TabsStyle;
19+
export declare const getTabItemStyling: (contactsStyle: ContactsStyle, theme: CometChatTheme, tabVisibility: TabsVisibility | undefined, isActive: boolean) => TabItemStyle;
1820
export {};

dist/types/CometChatConversations/controller.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { CometChat } from "@cometchat/chat-sdk-javascript";
12
type Args = {
23
conversationsRequestBuilder: CometChat.ConversationsRequestBuilder | null;
34
};
@@ -60,5 +61,13 @@ export declare class ConversationsManager {
6061
* @returns - Function to remove the added SDK websocket listener
6162
*/
6263
static attachConnestionListener(callback: () => void): () => void;
64+
/**
65+
* Determines if the last message should trigger an update based on its category and type.
66+
*
67+
* @param message - The last message sent or received in the conversation.
68+
* @returns {boolean} - Returns true if the message should trigger an update, false otherwise.
69+
*/
70+
static shouldLastMessageAndUnreadCountBeUpdated: (message: CometChat.BaseMessage) => any;
71+
static shouldIncrementForCustomMessage(message: CometChat.CustomMessage): any;
6372
}
6473
export {};

dist/types/CometChatMessageList/controller.d.ts

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,46 @@
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+
*/
15
export declare class MessageListManager {
26
messagesRequest: CometChat.MessagesRequest | null;
37
static groupListenerId: string;
48
static callListenerId: string;
59
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+
*/
619
constructor(messagesRequestBuilder?: CometChat.MessagesRequestBuilder, user?: CometChat.User, group?: CometChat.Group, messageId?: number, parentMessageId?: number);
7-
fetchNextMessages: () => Promise<[] | import("@cometchat/chat-sdk-javascript").BaseMessage[]> | undefined;
8-
fetchPreviousMessages: () => Promise<[] | import("@cometchat/chat-sdk-javascript").BaseMessage[]> | undefined;
9-
static attachListeners: (callback: any) => void;
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+
* */
1041
static removeListeners(): void;
1142
/**
12-
* Attaches an SDK websocket listener
43+
* Attaches an SDK websocket listener to monitor when the connection disconnects or reconnects.
1344
*
1445
* @returns - Function to remove the added SDK websocket listener
1546
*/

0 commit comments

Comments
 (0)