@cometchat/chat-uikit-react 5.0.7 → 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 +67 -76
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatMessageComposer.css +7 -0
- package/dist/styles/CometChatReactionList.css +1 -1
- package/dist/styles/components/CometChatMessageComposer.css +7 -0
- package/dist/styles/components/CometChatReactionList.css +1 -1
- 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 +10 -0
- package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +10 -0
- package/dist/types/events/CometChatUIEvents.d.ts +1 -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/package.json +2 -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): react_jsx_runtime.JSX.Element
|
|
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): react_jsx_runtime.JSX.Element
|
|
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`
|
|
@@ -9981,6 +9981,15 @@ interface MessageInformationProps {
|
|
|
9981
9981
|
* Template for customizing the appearance of the message.
|
|
9982
9982
|
*/
|
|
9983
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[];
|
|
9984
9993
|
}
|
|
9985
9994
|
declare const CometChatMessageInformation: (props: MessageInformationProps) => react_jsx_runtime.JSX.Element;
|
|
9986
9995
|
|
|
@@ -10173,6 +10182,7 @@ interface IOpenChat {
|
|
|
10173
10182
|
}
|
|
10174
10183
|
interface IShowOngoingCall {
|
|
10175
10184
|
child: any;
|
|
10185
|
+
message?: CometChat.CustomMessage;
|
|
10176
10186
|
}
|
|
10177
10187
|
interface IPanel {
|
|
10178
10188
|
child?: any;
|
|
@@ -10881,37 +10891,9 @@ declare class MessageReceiptUtils {
|
|
|
10881
10891
|
* the corresponding receipt icon.
|
|
10882
10892
|
*
|
|
10883
10893
|
* @param {CometChat.BaseMessage} messageObject - The message object for which to get the receipt status.
|
|
10884
|
-
* @returns {
|
|
10894
|
+
* @returns {Receipts} - The receipt status icon.
|
|
10885
10895
|
*/
|
|
10886
|
-
static getReceiptStatus: (messageObject: CometChat.BaseMessage) =>
|
|
10887
|
-
}
|
|
10888
|
-
/**
|
|
10889
|
-
* Enum representing different receipt statuses for a message.
|
|
10890
|
-
*
|
|
10891
|
-
* @readonly
|
|
10892
|
-
* @enum {number}
|
|
10893
|
-
*/
|
|
10894
|
-
declare enum receipts {
|
|
10895
|
-
/**
|
|
10896
|
-
* Status indicating that the message is waiting to be processed.
|
|
10897
|
-
*/
|
|
10898
|
-
wait = 0,
|
|
10899
|
-
/**
|
|
10900
|
-
* Status indicating that the message has been sent.
|
|
10901
|
-
*/
|
|
10902
|
-
sent = 1,
|
|
10903
|
-
/**
|
|
10904
|
-
* Status indicating that the message has been delivered.
|
|
10905
|
-
*/
|
|
10906
|
-
delivered = 2,
|
|
10907
|
-
/**
|
|
10908
|
-
* Status indicating that the message has been read.
|
|
10909
|
-
*/
|
|
10910
|
-
read = 3,
|
|
10911
|
-
/**
|
|
10912
|
-
* Status indicating that an error occurred with the message.
|
|
10913
|
-
*/
|
|
10914
|
-
error = 4
|
|
10896
|
+
static getReceiptStatus: (messageObject: CometChat.BaseMessage) => Receipts;
|
|
10915
10897
|
}
|
|
10916
10898
|
|
|
10917
10899
|
/**
|
|
@@ -10926,7 +10908,7 @@ declare class MessageUtils {
|
|
|
10926
10908
|
* @param {CometChatMessageTemplate} template - The message template to use for rendering the content view.
|
|
10927
10909
|
* @returns {object | null} - The content view for the message, or null if not found.
|
|
10928
10910
|
*/
|
|
10929
|
-
getContentView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment): any;
|
|
10911
|
+
getContentView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment, textFormatters?: CometChatTextFormatter[]): any;
|
|
10930
10912
|
/**
|
|
10931
10913
|
* Retrieves the content view for a message based on the provided template.
|
|
10932
10914
|
*
|
|
@@ -10934,7 +10916,7 @@ declare class MessageUtils {
|
|
|
10934
10916
|
* @param {CometChatMessageTemplate} template - The message template to use for rendering the content view.
|
|
10935
10917
|
* @returns {object | null} - The content view for the message, or null if not found.
|
|
10936
10918
|
*/
|
|
10937
|
-
getStatusInfoView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment): any;
|
|
10919
|
+
getStatusInfoView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment, hideReceipts?: boolean): any;
|
|
10938
10920
|
/**
|
|
10939
10921
|
* Retrieves the bubble wrapper for a message based on the provided template.
|
|
10940
10922
|
*
|
|
@@ -10952,7 +10934,7 @@ declare class MessageUtils {
|
|
|
10952
10934
|
* @param {MessageBubbleAlignment} alignment - The alignment of the message bubble (left or right).
|
|
10953
10935
|
* @returns {JSX.Element} - The message bubble component.
|
|
10954
10936
|
*/
|
|
10955
|
-
getMessageBubble(baseMessage: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment: MessageBubbleAlignment): any;
|
|
10937
|
+
getMessageBubble(baseMessage: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment: MessageBubbleAlignment, hideReceipts?: boolean, textFormatters?: CometChatTextFormatter[]): any;
|
|
10956
10938
|
/**
|
|
10957
10939
|
*
|
|
10958
10940
|
* @param {(CometChat.User | CometChat.GroupMember | any)} user
|
|
@@ -11423,6 +11405,15 @@ interface ThreadedMessagePreviewProps {
|
|
|
11423
11405
|
* @returns void
|
|
11424
11406
|
*/
|
|
11425
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[];
|
|
11426
11417
|
}
|
|
11427
11418
|
declare const CometChatThreadedMessagePreview: (props: ThreadedMessagePreviewProps) => react_jsx_runtime.JSX.Element;
|
|
11428
11419
|
|