Skip to content

Commit

Permalink
Update UiKit to v4.3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
birendraprasad-gupta committed Jun 7, 2024
1 parent a4c8f04 commit 1bb9005
Show file tree
Hide file tree
Showing 19 changed files with 468 additions and 179 deletions.
99 changes: 89 additions & 10 deletions dist/index.d.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

39 changes: 32 additions & 7 deletions dist/types/Calling/CometChatCallButtons/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,45 @@
import { CallButtonsStyle } from "@cometchat/uikit-shared";
interface ICallButtonsProps {
user?: CometChat.User;
group?: CometChat.Group;
import { CometChat } from "@cometchat/chat-sdk-javascript";
interface ICallButtonsBaseProps {
voiceCallIconURL?: string;
voiceCallIconText?: string;
voiceCallIconHoverText?: string;
videoCallIconURL?: string;
videoCallIconText?: string;
videoCallIconHoverText?: string;
callButtonsStyle?: CallButtonsStyle;
onVoiceCallClick?: Function | undefined;
onVideoCallClick?: Function | undefined;
onError?: Function;
onVoiceCallClick?: () => void;
onVideoCallClick?: () => void;
onError?: (error: CometChat.CometChatException) => void;
}
interface ICallButtonsUserProps extends ICallButtonsBaseProps {
user: CometChat.User;
group?: CometChat.Group | null;
}
interface ICallButtonsGroupProps extends ICallButtonsBaseProps {
user?: CometChat.User | null;
group: CometChat.Group;
}
type ICallButtonsProps = ICallButtonsUserProps | ICallButtonsGroupProps;
declare const CometChatCallButtons: {
(props: ICallButtonsProps): import("react/jsx-runtime").JSX.Element;
defaultProps: ICallButtonsProps;
defaultProps: {
voiceCallIconURL: string;
voiceCallIconText: any;
voiceCallIconHoverText: any;
videoCallIconURL: string;
videoCallIconText: any;
videoCallIconHoverText: any;
callButtonsStyle: {
width: string;
height: string;
border: string;
borderRadius: string;
background: string;
};
onVoiceCallClick: undefined;
onVideoCallClick: undefined;
onError: (error: CometChat.CometChatException) => void;
};
};
export { CometChatCallButtons };
2 changes: 1 addition & 1 deletion dist/types/Calling/Utils/CallDetailsUtils.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CometChatTheme, CometChatCallDetailsTemplate } from "@cometchat/uikit-resources";
import { CometChatCallDetailsTemplate, CometChatTheme } from "@cometchat/uikit-resources";
export declare class CallingDetailsUtils {
static getDefaultCallTemplate(callLog: any, loggedInUser: CometChat.User, theme: CometChatTheme): Array<CometChatCallDetailsTemplate>;
private static getCallButtons;
Expand Down
7 changes: 6 additions & 1 deletion dist/types/CometChatContacts/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
import { ContactsStyle, GroupsConfiguration, UsersConfiguration } from "@cometchat/uikit-shared";
import { TabsVisibility } from "@cometchat/uikit-resources";
import { SelectionMode, TabsVisibility } from "@cometchat/uikit-resources";
interface ContactsProps {
title?: string;
usersTabTitle?: string;
groupsTabTitle?: string;
usersConfiguration?: UsersConfiguration;
groupsConfiguration?: GroupsConfiguration;
onSubmitButtonClick?: (users?: CometChat.User[], groups?: CometChat.Group[]) => void;
closeIconURL?: string;
onClose?: () => void;
onItemClick?: (user?: CometChat.User, group?: CometChat.Group) => void;
onError: ((error: CometChat.CometChatException) => void) | null;
submitButtonText?: string;
hideSubmitButton?: boolean;
selectionLimit?: number;
tabVisibility?: TabsVisibility;
contactsStyle: ContactsStyle;
selectionMode?: SelectionMode;
}
declare const CometChatContacts: {
(props: ContactsProps): import("react/jsx-runtime").JSX.Element;
Expand Down
6 changes: 4 additions & 2 deletions dist/types/CometChatContacts/style.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ type HeaderStyle = CSSProperties;
type WrapperStyle = CSSProperties;
type ContentStyle = CSSProperties;
export declare function closeBtnStyle(contactsStyle: ContactsStyle, theme: CometChatTheme): ButtonStyle;
export declare function submitBtnWrapperStyle(): CSSProperties;
export declare function submitBtnStyle(contactsStyle: ContactsStyle | null, theme: CometChatTheme): any;
export declare function contactsHeaderStyle(contactsStyle: ContactsStyle, theme: CometChatTheme): HeaderStyle;
export declare function contactsWrapperStyle(contactsStyle: ContactsStyle, theme: CometChatTheme): WrapperStyle;
export declare function getContactsStyle(contactsStyle: ContactsStyle, theme: CometChatTheme): CSSProperties;
export declare function contactsContentStyle(): ContentStyle;
export declare function getTabsStyle(): TabsStyle;
export declare const getTabItemStyling: (theme: CometChatTheme, tabVisibility: TabsVisibility | undefined, isActive: boolean) => TabItemStyle;
export declare function getTabsStyle(contactsStyle: ContactsStyle, theme: CometChatTheme): TabsStyle;
export declare const getTabItemStyling: (contactsStyle: ContactsStyle, theme: CometChatTheme, tabVisibility: TabsVisibility | undefined, isActive: boolean) => TabItemStyle;
export {};
9 changes: 9 additions & 0 deletions dist/types/CometChatConversations/controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CometChat } from "@cometchat/chat-sdk-javascript";
type Args = {
conversationsRequestBuilder: CometChat.ConversationsRequestBuilder | null;
};
Expand Down Expand Up @@ -60,5 +61,13 @@ export declare class ConversationsManager {
* @returns - Function to remove the added SDK websocket listener
*/
static attachConnestionListener(callback: () => void): () => void;
/**
* Determines if the last message should trigger an update based on its category and type.
*
* @param message - The last message sent or received in the conversation.
* @returns {boolean} - Returns true if the message should trigger an update, false otherwise.
*/
static shouldLastMessageAndUnreadCountBeUpdated: (message: CometChat.BaseMessage) => any;
static shouldIncrementForCustomMessage(message: CometChat.CustomMessage): any;
}
export {};
File renamed without changes.
39 changes: 35 additions & 4 deletions dist/types/CometChatMessageList/controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,46 @@
/**
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.
In addition, it supports real-time connection monitoring by attaching an SDK websocket listener to the chat session.
*/
export declare class MessageListManager {
messagesRequest: CometChat.MessagesRequest | null;
static groupListenerId: string;
static callListenerId: string;
static connectionListenerId: string;
/**
* Creates an instance of MessageListManager which constructs a request builder for fetching messages from a particular user/group in the chat.
* @param {CometChat.MessagesRequestBuilder} [messagesRequestBuilder]
* @param {CometChat.User} [user]
* @param {CometChat.Group} [group]
* @param {number} [messageId]
* @param {number} [parentMessageId]
* @memberof MessageListManager
*/
constructor(messagesRequestBuilder?: CometChat.MessagesRequestBuilder, user?: CometChat.User, group?: CometChat.Group, messageId?: number, parentMessageId?: number);
fetchNextMessages: () => Promise<[] | import("@cometchat/chat-sdk-javascript").BaseMessage[]> | undefined;
fetchPreviousMessages: () => Promise<[] | import("@cometchat/chat-sdk-javascript").BaseMessage[]> | undefined;
static attachListeners: (callback: any) => void;
/**
* Function to invoke the fetchNext method of the messagesRequestBuilder to retrieve the subsequent messages following the latest fetched message.
*
* @returns {Promise}
*/
fetchNextMessages: () => Promise<CometChat.BaseMessage[] | []> | undefined;
/**
* Function to invoke the fetchPrevious method of the messagesRequestBuilder to retrieve the subsequent messages following the last fetched message.
*
* @returns {Promise}
*/
fetchPreviousMessages: () => Promise<CometChat.BaseMessage[] | []> | undefined;
/**
* 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.
*
* @param {Function} callback
*/
static attachListeners: (callback: (key: string, mesage: CometChat.BaseMessage, group?: CometChat.Group) => void) => void;
/**
* Function to remove the attached listeners for a particular user/group.
* */
static removeListeners(): void;
/**
* Attaches an SDK websocket listener
* Attaches an SDK websocket listener to monitor when the connection disconnects or reconnects.
*
* @returns - Function to remove the added SDK websocket listener
*/
Expand Down
3 changes: 0 additions & 3 deletions dist/types/CometChatMessageList/hooks.d.ts

This file was deleted.

Loading

0 comments on commit 1bb9005

Please sign in to comment.