@cometchat/chat-uikit-react 5.0.6 → 5.0.8
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/dist/index.d.ts +78 -77
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatAudioBubble.css +4 -4
- package/dist/styles/CometChatConversationSummary.css +2 -2
- package/dist/styles/CometChatEditPreview.css +3 -0
- package/dist/styles/CometChatFileBubble.css +4 -4
- package/dist/styles/CometChatFullScreenViewer.css +2 -2
- package/dist/styles/CometChatMessageComposer.css +8 -1
- package/dist/styles/CometChatMessageInformation.css +2 -2
- package/dist/styles/CometChatMessageList.css +25 -18
- package/dist/styles/CometChatPopover.css +19 -0
- package/dist/styles/CometChatReactionInfo.css +0 -16
- package/dist/styles/CometChatReactionList.css +1 -1
- package/dist/styles/CometChatSmartReplies.css +2 -2
- package/dist/styles/CreatePolls.css +8 -1
- package/dist/styles/StickersKeyboard.css +2 -2
- package/dist/styles/components/CometChatAudioBubble.css +4 -4
- package/dist/styles/components/CometChatConversationSummary.css +2 -2
- package/dist/styles/components/CometChatEditPreview.css +3 -0
- package/dist/styles/components/CometChatFileBubble.css +4 -4
- package/dist/styles/components/CometChatFullScreenViewer.css +2 -2
- package/dist/styles/components/CometChatMessageComposer.css +8 -1
- package/dist/styles/components/CometChatMessageInformation.css +2 -2
- package/dist/styles/components/CometChatMessageList.css +25 -18
- package/dist/styles/components/CometChatPopover.css +19 -0
- package/dist/styles/components/CometChatReactionInfo.css +0 -16
- package/dist/styles/components/CometChatReactionList.css +1 -1
- package/dist/styles/components/CometChatSmartReplies.css +2 -2
- package/dist/styles/components/CreatePolls.css +8 -1
- package/dist/styles/components/StickersKeyboard.css +2 -2
- package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +1 -0
- package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +1 -1
- package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +1 -0
- package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +15 -0
- package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +10 -0
- package/dist/types/events/CometChatUIEvents.d.ts +2 -0
- package/dist/types/modals/CometChatMessageTemplate.d.ts +3 -2
- package/dist/types/utils/DataSource.d.ts +1 -1
- package/dist/types/utils/DataSourceDecorator.d.ts +1 -1
- package/dist/types/utils/MessageReceiptUtils.d.ts +3 -30
- package/dist/types/utils/MessageUtils.d.ts +4 -3
- package/dist/types/utils/MessagesDataSource.d.ts +2 -2
- package/dist/types/utils/Storage.d.ts +3 -0
- package/dist/types/utils/util.d.ts +1 -0
- package/package.json +6 -2
package/dist/index.d.ts
CHANGED
|
@@ -6682,6 +6682,18 @@ declare class CometChatMessageOption extends CometChatOption {
|
|
|
6682
6682
|
});
|
|
6683
6683
|
}
|
|
6684
6684
|
|
|
6685
|
+
/**
|
|
6686
|
+
* Class that handles the text formatting for URLs in CometChat.
|
|
6687
|
+
* CometChatUrlsFormatter is a child class of CometChatTextFormatter.
|
|
6688
|
+
* It extends the functionality of text formatting to specifically handle URLs.
|
|
6689
|
+
* It is used in extension decorators like link preview, message translation, and dataSource utils.
|
|
6690
|
+
*/
|
|
6691
|
+
declare class CometChatUrlsFormatter extends CometChatTextFormatter {
|
|
6692
|
+
constructor(regexPatterns: Array<RegExp>);
|
|
6693
|
+
protected onRegexMatch(inputText?: string | null): string;
|
|
6694
|
+
registerEventListeners(element: HTMLElement, classList: DOMTokenList): HTMLElement;
|
|
6695
|
+
}
|
|
6696
|
+
|
|
6685
6697
|
/**
|
|
6686
6698
|
* CometChatMessageTemplate is a pre-defined structure for creating message views
|
|
6687
6699
|
* that can be used as a starting point or blueprint for creating message views,
|
|
@@ -6700,7 +6712,7 @@ declare class CometChatMessageTemplate {
|
|
|
6700
6712
|
* and Video bubble based on the type of the message.
|
|
6701
6713
|
* @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
|
|
6702
6714
|
*/
|
|
6703
|
-
contentView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX.Element | null) | null;
|
|
6715
|
+
contentView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, textFormatters?: CometChatTextFormatter[]) => Element | JSX.Element | null) | null;
|
|
6704
6716
|
/**
|
|
6705
6717
|
* Custom component to customize the complete message bubble.
|
|
6706
6718
|
* By default, headerView, contentView and footerView collectively form a message bubble.
|
|
@@ -6729,7 +6741,7 @@ declare class CometChatMessageTemplate {
|
|
|
6729
6741
|
* By default, it displays the receipt and the timestamp.
|
|
6730
6742
|
* @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
|
|
6731
6743
|
*/
|
|
6732
|
-
statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment,
|
|
6744
|
+
statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns) => Element | JSX.Element | null) | null;
|
|
6733
6745
|
/**
|
|
6734
6746
|
* List of available actions that any user can perform on a message, like reacting,
|
|
6735
6747
|
* editing or deleting a message.
|
|
@@ -6815,18 +6827,6 @@ declare class ConversationUtils {
|
|
|
6815
6827
|
static getLastMessageCall(conversation: CometChat.Conversation): any;
|
|
6816
6828
|
}
|
|
6817
6829
|
|
|
6818
|
-
/**
|
|
6819
|
-
* Class that handles the text formatting for URLs in CometChat.
|
|
6820
|
-
* CometChatUrlsFormatter is a child class of CometChatTextFormatter.
|
|
6821
|
-
* It extends the functionality of text formatting to specifically handle URLs.
|
|
6822
|
-
* It is used in extension decorators like link preview, message translation, and dataSource utils.
|
|
6823
|
-
*/
|
|
6824
|
-
declare class CometChatUrlsFormatter extends CometChatTextFormatter {
|
|
6825
|
-
constructor(regexPatterns: Array<RegExp>);
|
|
6826
|
-
protected onRegexMatch(inputText?: string | null): string;
|
|
6827
|
-
registerEventListeners(element: HTMLElement, classList: DOMTokenList): HTMLElement;
|
|
6828
|
-
}
|
|
6829
|
-
|
|
6830
6830
|
type ComposerId = {
|
|
6831
6831
|
parentMessageId: number | null;
|
|
6832
6832
|
user: string | null;
|
|
@@ -6867,14 +6867,14 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6867
6867
|
* @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
|
|
6868
6868
|
* @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
|
|
6869
6869
|
*/
|
|
6870
|
-
getBubbleStatusInfoReceipt: (item: CometChat$1.BaseMessage,
|
|
6870
|
+
getBubbleStatusInfoReceipt: (item: CometChat$1.BaseMessage, hideReceipts?: boolean) => JSX.Element | null;
|
|
6871
6871
|
/**
|
|
6872
6872
|
* Function to get status and date for message bubble
|
|
6873
6873
|
* @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
|
|
6874
6874
|
* @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
|
|
6875
6875
|
*/
|
|
6876
6876
|
getBubbleStatusInfoDate: (item: CometChat$1.BaseMessage, datePattern?: DatePatterns) => JSX.Element | null;
|
|
6877
|
-
getStatusInfoView: (_messageObject: CometChat$1.BaseMessage, _alignment: MessageBubbleAlignment,
|
|
6877
|
+
getStatusInfoView: (_messageObject: CometChat$1.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns) => react_jsx_runtime.JSX.Element | null;
|
|
6878
6878
|
getBottomView(_messageObject: CometChat$1.BaseMessage, _alignment: MessageBubbleAlignment): null;
|
|
6879
6879
|
getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
|
|
6880
6880
|
getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -6895,7 +6895,7 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6895
6895
|
}): Array<string>;
|
|
6896
6896
|
getStickerButton(id: ComposerId, user?: CometChat$1.User, group?: CometChat$1.Group): JSX.Element | undefined;
|
|
6897
6897
|
getId(): string;
|
|
6898
|
-
getTextMessageContentView(message: CometChat$1.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams):
|
|
6898
|
+
getTextMessageContentView(message: CometChat$1.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
|
|
6899
6899
|
getAudioMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6900
6900
|
getFileMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
6901
6901
|
getImageMessageContentView(message: CometChat$1.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
@@ -7438,7 +7438,7 @@ declare abstract class DataSource {
|
|
|
7438
7438
|
abstract getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
7439
7439
|
abstract getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
7440
7440
|
abstract getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX.Element | null;
|
|
7441
|
-
abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment,
|
|
7441
|
+
abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns): Element | JSX.Element | null;
|
|
7442
7442
|
abstract getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, otherParams: Object | undefined): Element | JSX.Element;
|
|
7443
7443
|
abstract getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7444
7444
|
abstract getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
@@ -7641,13 +7641,13 @@ declare abstract class DataSourceDecorator implements DataSource {
|
|
|
7641
7641
|
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
7642
7642
|
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
7643
7643
|
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
7644
|
-
getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment,
|
|
7645
|
-
getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment):
|
|
7646
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
7647
|
-
getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
7648
|
-
getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
7649
|
-
getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
7650
|
-
getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
7644
|
+
getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, datePattern?: DatePatterns): Element | JSX.Element | null;
|
|
7645
|
+
getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX.Element | null;
|
|
7646
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
|
|
7647
|
+
getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7648
|
+
getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7649
|
+
getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7650
|
+
getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7651
7651
|
getTextMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
|
|
7652
7652
|
getImageMessageTemplate(): CometChatMessageTemplate;
|
|
7653
7653
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -7663,28 +7663,28 @@ declare abstract class DataSourceDecorator implements DataSource {
|
|
|
7663
7663
|
getAllMessageCategories(additionalConfigurations?: Object | undefined): string[];
|
|
7664
7664
|
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
|
|
7665
7665
|
getId(): string;
|
|
7666
|
-
getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment):
|
|
7667
|
-
getGroupActionBubble(message: CometChat.BaseMessage):
|
|
7668
|
-
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
7669
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment):
|
|
7670
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment):
|
|
7671
|
-
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment):
|
|
7672
|
-
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment):
|
|
7666
|
+
getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
7667
|
+
getGroupActionBubble(message: CometChat.BaseMessage): Element | JSX.Element;
|
|
7668
|
+
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
|
|
7669
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
7670
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
7671
|
+
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
7672
|
+
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
7673
7673
|
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: additionalParams): string;
|
|
7674
7674
|
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
7675
7675
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
7676
7676
|
getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
|
|
7677
7677
|
getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
|
|
7678
7678
|
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: Object): string;
|
|
7679
|
-
getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
7680
|
-
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
7681
|
-
getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
7679
|
+
getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7680
|
+
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7681
|
+
getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7682
7682
|
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
7683
7683
|
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
7684
7684
|
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
7685
|
-
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
7686
|
-
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
7687
|
-
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
7685
|
+
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7686
|
+
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7687
|
+
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
7688
7688
|
}
|
|
7689
7689
|
|
|
7690
7690
|
interface ListProps<T> {
|
|
@@ -8207,7 +8207,7 @@ declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
|
|
|
8207
8207
|
* @param {any} [additionalConfigurations] - Additional configurations for formatting.
|
|
8208
8208
|
* @returns {JSX.Element} The JSX element representing the message content view.
|
|
8209
8209
|
*/
|
|
8210
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any):
|
|
8210
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element | react_jsx_runtime.JSX.Element;
|
|
8211
8211
|
/**
|
|
8212
8212
|
* Retrieves the style for the link preview wrapper.
|
|
8213
8213
|
* @returns {object} The style object for the link preview wrapper.
|
|
@@ -8301,7 +8301,7 @@ declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
|
|
|
8301
8301
|
* @param {any} [additionalConfigurations] - Optional additional configurations for the content view.
|
|
8302
8302
|
* @returns {JSX.Element} The content view for the text message.
|
|
8303
8303
|
*/
|
|
8304
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any):
|
|
8304
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element | react_jsx_runtime.JSX.Element;
|
|
8305
8305
|
/**
|
|
8306
8306
|
* Checks if an option with the specified ID already exists in the options list.
|
|
8307
8307
|
*
|
|
@@ -8644,7 +8644,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
|
|
|
8644
8644
|
* @param {ImageBubbleStyle} [style] - Optional style for the image bubble.
|
|
8645
8645
|
* @returns {React.ReactNode} The rendered image message bubble.
|
|
8646
8646
|
*/
|
|
8647
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function):
|
|
8647
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): Element | JSX.Element;
|
|
8648
8648
|
/**
|
|
8649
8649
|
* Provides the video message bubble with support for thumbnail generation.
|
|
8650
8650
|
* It checks for a thumbnail URL in the message metadata and uses it if available.
|
|
@@ -8655,7 +8655,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
|
|
|
8655
8655
|
* @param {Function} [onClick] - Optional click event handler.
|
|
8656
8656
|
* @returns {React.ReactNode} The rendered video message bubble.
|
|
8657
8657
|
*/
|
|
8658
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function):
|
|
8658
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
|
|
8659
8659
|
}
|
|
8660
8660
|
|
|
8661
8661
|
declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
@@ -8904,7 +8904,7 @@ declare const CometChatCallLogs: (props: CallLogsProps) => react_jsx_runtime.JSX
|
|
|
8904
8904
|
|
|
8905
8905
|
interface ConversationsProps {
|
|
8906
8906
|
/**
|
|
8907
|
-
* Disables the display of message read
|
|
8907
|
+
* Disables the display of message read Receipts.
|
|
8908
8908
|
*
|
|
8909
8909
|
* @remarks If set to `true`, the receipt status of the sent message won't be displayed.
|
|
8910
8910
|
* @defaultValue `false`
|
|
@@ -9977,6 +9977,19 @@ interface MessageInformationProps {
|
|
|
9977
9977
|
* @param error - CometChatException object representing the error.
|
|
9978
9978
|
*/
|
|
9979
9979
|
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
9980
|
+
/**
|
|
9981
|
+
* Template for customizing the appearance of the message.
|
|
9982
|
+
*/
|
|
9983
|
+
template?: CometChatMessageTemplate;
|
|
9984
|
+
/**
|
|
9985
|
+
* Hides the visibility of receipt in the Message Information.
|
|
9986
|
+
* @default false
|
|
9987
|
+
*/
|
|
9988
|
+
hideReceipts?: boolean;
|
|
9989
|
+
/**
|
|
9990
|
+
* Array of text formatters for custom styling or formatting of message text bubbles.
|
|
9991
|
+
*/
|
|
9992
|
+
textFormatters?: CometChatTextFormatter[];
|
|
9980
9993
|
}
|
|
9981
9994
|
declare const CometChatMessageInformation: (props: MessageInformationProps) => react_jsx_runtime.JSX.Element;
|
|
9982
9995
|
|
|
@@ -10169,12 +10182,14 @@ interface IOpenChat {
|
|
|
10169
10182
|
}
|
|
10170
10183
|
interface IShowOngoingCall {
|
|
10171
10184
|
child: any;
|
|
10185
|
+
message?: CometChat.CustomMessage;
|
|
10172
10186
|
}
|
|
10173
10187
|
interface IPanel {
|
|
10174
10188
|
child?: any;
|
|
10175
10189
|
configuration?: any;
|
|
10176
10190
|
message?: CometChat.BaseMessage;
|
|
10177
10191
|
position?: PanelAlignment;
|
|
10192
|
+
composerId?: ComposerId;
|
|
10178
10193
|
}
|
|
10179
10194
|
interface IModal {
|
|
10180
10195
|
child?: any;
|
|
@@ -10582,6 +10597,7 @@ interface PopoverProps {
|
|
|
10582
10597
|
disableBackgroundInteraction?: boolean;
|
|
10583
10598
|
useParentContainer?: boolean;
|
|
10584
10599
|
useParentHeight?: boolean;
|
|
10600
|
+
showTooltip?: boolean;
|
|
10585
10601
|
}
|
|
10586
10602
|
declare const CometChatPopover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<{
|
|
10587
10603
|
openPopover: () => void;
|
|
@@ -10875,37 +10891,9 @@ declare class MessageReceiptUtils {
|
|
|
10875
10891
|
* the corresponding receipt icon.
|
|
10876
10892
|
*
|
|
10877
10893
|
* @param {CometChat.BaseMessage} messageObject - The message object for which to get the receipt status.
|
|
10878
|
-
* @returns {
|
|
10879
|
-
*/
|
|
10880
|
-
static getReceiptStatus: (messageObject: CometChat.BaseMessage) => receipts;
|
|
10881
|
-
}
|
|
10882
|
-
/**
|
|
10883
|
-
* Enum representing different receipt statuses for a message.
|
|
10884
|
-
*
|
|
10885
|
-
* @readonly
|
|
10886
|
-
* @enum {number}
|
|
10887
|
-
*/
|
|
10888
|
-
declare enum receipts {
|
|
10889
|
-
/**
|
|
10890
|
-
* Status indicating that the message is waiting to be processed.
|
|
10891
|
-
*/
|
|
10892
|
-
wait = 0,
|
|
10893
|
-
/**
|
|
10894
|
-
* Status indicating that the message has been sent.
|
|
10895
|
-
*/
|
|
10896
|
-
sent = 1,
|
|
10897
|
-
/**
|
|
10898
|
-
* Status indicating that the message has been delivered.
|
|
10899
|
-
*/
|
|
10900
|
-
delivered = 2,
|
|
10901
|
-
/**
|
|
10902
|
-
* Status indicating that the message has been read.
|
|
10903
|
-
*/
|
|
10904
|
-
read = 3,
|
|
10905
|
-
/**
|
|
10906
|
-
* Status indicating that an error occurred with the message.
|
|
10894
|
+
* @returns {Receipts} - The receipt status icon.
|
|
10907
10895
|
*/
|
|
10908
|
-
|
|
10896
|
+
static getReceiptStatus: (messageObject: CometChat.BaseMessage) => Receipts;
|
|
10909
10897
|
}
|
|
10910
10898
|
|
|
10911
10899
|
/**
|
|
@@ -10920,7 +10908,7 @@ declare class MessageUtils {
|
|
|
10920
10908
|
* @param {CometChatMessageTemplate} template - The message template to use for rendering the content view.
|
|
10921
10909
|
* @returns {object | null} - The content view for the message, or null if not found.
|
|
10922
10910
|
*/
|
|
10923
|
-
getContentView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment): any;
|
|
10911
|
+
getContentView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment, textFormatters?: CometChatTextFormatter[]): any;
|
|
10924
10912
|
/**
|
|
10925
10913
|
* Retrieves the content view for a message based on the provided template.
|
|
10926
10914
|
*
|
|
@@ -10928,7 +10916,7 @@ declare class MessageUtils {
|
|
|
10928
10916
|
* @param {CometChatMessageTemplate} template - The message template to use for rendering the content view.
|
|
10929
10917
|
* @returns {object | null} - The content view for the message, or null if not found.
|
|
10930
10918
|
*/
|
|
10931
|
-
getStatusInfoView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment): any;
|
|
10919
|
+
getStatusInfoView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment, hideReceipts?: boolean): any;
|
|
10932
10920
|
/**
|
|
10933
10921
|
* Retrieves the bubble wrapper for a message based on the provided template.
|
|
10934
10922
|
*
|
|
@@ -10946,7 +10934,7 @@ declare class MessageUtils {
|
|
|
10946
10934
|
* @param {MessageBubbleAlignment} alignment - The alignment of the message bubble (left or right).
|
|
10947
10935
|
* @returns {JSX.Element} - The message bubble component.
|
|
10948
10936
|
*/
|
|
10949
|
-
getMessageBubble(baseMessage: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment: MessageBubbleAlignment): any;
|
|
10937
|
+
getMessageBubble(baseMessage: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment: MessageBubbleAlignment, hideReceipts?: boolean, textFormatters?: CometChatTextFormatter[]): any;
|
|
10950
10938
|
/**
|
|
10951
10939
|
*
|
|
10952
10940
|
* @param {(CometChat.User | CometChat.GroupMember | any)} user
|
|
@@ -11340,12 +11328,16 @@ declare function processFileForAudio(file: File): Promise<File>;
|
|
|
11340
11328
|
declare function formatDateFromTimestamp(timestamp: number): string;
|
|
11341
11329
|
declare function isMobileDevice(): boolean;
|
|
11342
11330
|
declare function fireClickEvent(): void;
|
|
11331
|
+
declare const decodeHTML: (input: string) => string;
|
|
11343
11332
|
|
|
11344
11333
|
/**
|
|
11345
11334
|
* Utility class for managing local storage with change detection capabilities.
|
|
11346
11335
|
* It is used in CometChatIncomingCall component.
|
|
11347
11336
|
*/
|
|
11348
11337
|
declare class StorageUtils {
|
|
11338
|
+
private static isWindowListenerAttached;
|
|
11339
|
+
private static storageKeyToRemove;
|
|
11340
|
+
private static handleBeforeUnload;
|
|
11349
11341
|
/**
|
|
11350
11342
|
* Attaches a callback function to the `storage` event, which is triggered when storage changes occur.
|
|
11351
11343
|
* @param {EventListenerOrEventListenerObject} callback - The function to be called when the storage event is fired. This function will receive the storage event as an argument.
|
|
@@ -11413,6 +11405,15 @@ interface ThreadedMessagePreviewProps {
|
|
|
11413
11405
|
* @returns void
|
|
11414
11406
|
*/
|
|
11415
11407
|
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
11408
|
+
/**
|
|
11409
|
+
* Hides the visibility of receipt in the Thread Header.
|
|
11410
|
+
* @default false
|
|
11411
|
+
*/
|
|
11412
|
+
hideReceipts?: boolean;
|
|
11413
|
+
/**
|
|
11414
|
+
* Array of text formatters for custom styling or formatting of message text bubbles.
|
|
11415
|
+
*/
|
|
11416
|
+
textFormatters?: CometChatTextFormatter[];
|
|
11416
11417
|
}
|
|
11417
11418
|
declare const CometChatThreadedMessagePreview: (props: ThreadedMessagePreviewProps) => react_jsx_runtime.JSX.Element;
|
|
11418
11419
|
|
|
@@ -11556,5 +11557,5 @@ declare function useRefSync<T>(value: T): React__default.MutableRefObject<T>;
|
|
|
11556
11557
|
declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
|
|
11557
11558
|
declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
|
|
11558
11559
|
|
|
11559
|
-
export { AuxiliaryButtonAlignment, ButtonAction, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearchBar, CometChatTextBubble, CometChatTextFormatter, CometChatThreadedMessagePreview, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DatePatterns, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getCallStatusWithType, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, localize, processFileForAudio, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
|
|
11560
|
+
export { AuxiliaryButtonAlignment, ButtonAction, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearchBar, CometChatTextBubble, CometChatTextFormatter, CometChatThreadedMessagePreview, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DatePatterns, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getCallStatusWithType, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, localize, processFileForAudio, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
|
|
11560
11561
|
export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, PollOptions };
|