@cometchat/chat-uikit-react 6.0.4 → 6.0.6
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 +171 -174
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatMessageComposer.css +7 -0
- package/dist/styles/CometChatMessageHeader.css +0 -6
- package/dist/styles/CometChatReactionList.css +1 -1
- package/dist/styles/MessageTranslationBubble.css +2 -4
- package/dist/styles/components/CometChatMessageComposer.css +7 -0
- package/dist/styles/components/CometChatMessageHeader.css +0 -6
- package/dist/styles/components/CometChatReactionList.css +1 -1
- package/dist/styles/components/MessageTranslationBubble.css +2 -4
- package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -1
- package/dist/types/Enums/Enums.d.ts +2 -1
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
- package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +0 -1
- package/dist/types/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +1 -1
- package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -1
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +1 -1
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -1
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -1
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +1 -1
- package/dist/types/components/CometChatConversations/controller.d.ts +0 -1
- package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +1 -0
- package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +6 -0
- package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +10 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +1 -1
- package/dist/types/components/CometChatThreadHeader/CometChatThreadHeader.d.ts +11 -1
- package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -1
- package/dist/types/components/CometChatUsers/controller.d.ts +0 -1
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -1
- package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +2 -3
- package/dist/types/events/CometChatUIEvents.d.ts +1 -0
- package/dist/types/modals/CometChatActionsView.d.ts +1 -1
- package/dist/types/modals/CometChatMessageTemplate.d.ts +4 -3
- package/dist/types/utils/DataSource.d.ts +2 -2
- package/dist/types/utils/DataSourceDecorator.d.ts +2 -2
- 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 +9 -10
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { JSX
|
|
2
|
+
import React__default, { JSX, ReactNode, FC } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as _cometchat_chat_sdk_javascript from '@cometchat/chat-sdk-javascript';
|
|
5
|
-
import { CometChat as CometChat$1 } from '@cometchat/chat-sdk-javascript';
|
|
6
5
|
import { Subject } from 'rxjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -100,7 +99,8 @@ declare enum TabAlignment {
|
|
|
100
99
|
declare enum MessageStatus {
|
|
101
100
|
inprogress = 0,
|
|
102
101
|
success = 1,
|
|
103
|
-
error = 2
|
|
102
|
+
error = 2,
|
|
103
|
+
cancelled = 3
|
|
104
104
|
}
|
|
105
105
|
/**
|
|
106
106
|
* This is used to specify the types of the read receipts for the message.
|
|
@@ -1113,6 +1113,18 @@ declare class CometChatMessageOption extends CometChatOption {
|
|
|
1113
1113
|
});
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
1116
|
+
/**
|
|
1117
|
+
* Class that handles the text formatting for URLs in CometChat.
|
|
1118
|
+
* CometChatUrlsFormatter is a child class of CometChatTextFormatter.
|
|
1119
|
+
* It extends the functionality of text formatting to specifically handle URLs.
|
|
1120
|
+
* It is used in extension decorators like link preview, message translation, and dataSource utils.
|
|
1121
|
+
*/
|
|
1122
|
+
declare class CometChatUrlsFormatter extends CometChatTextFormatter {
|
|
1123
|
+
constructor(regexPatterns: Array<RegExp>);
|
|
1124
|
+
protected onRegexMatch(inputText?: string | null): string;
|
|
1125
|
+
registerEventListeners(element: HTMLElement, classList: DOMTokenList): HTMLElement;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1116
1128
|
/**
|
|
1117
1129
|
* CometChatMessageTemplate is a pre-defined structure for creating message views
|
|
1118
1130
|
* that can be used as a starting point or blueprint for creating message views,
|
|
@@ -1131,7 +1143,7 @@ declare class CometChatMessageTemplate {
|
|
|
1131
1143
|
* and Video bubble based on the type of the message.
|
|
1132
1144
|
* @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
|
|
1133
1145
|
*/
|
|
1134
|
-
contentView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX.Element | null) | null;
|
|
1146
|
+
contentView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, textFormatters?: CometChatTextFormatter[]) => Element | JSX.Element | null) | null;
|
|
1135
1147
|
/**
|
|
1136
1148
|
* Custom component to customize the complete message bubble.
|
|
1137
1149
|
* By default, headerView, contentView and footerView collectively form a message bubble.
|
|
@@ -1160,7 +1172,7 @@ declare class CometChatMessageTemplate {
|
|
|
1160
1172
|
* By default, it displays the receipt and the timestamp.
|
|
1161
1173
|
* @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
|
|
1162
1174
|
*/
|
|
1163
|
-
statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment,
|
|
1175
|
+
statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject) => Element | JSX.Element | null) | null;
|
|
1164
1176
|
/**
|
|
1165
1177
|
* List of available actions that any user can perform on a message, like reacting,
|
|
1166
1178
|
* editing or deleting a message.
|
|
@@ -1246,18 +1258,6 @@ declare class ConversationUtils {
|
|
|
1246
1258
|
static getLastMessageCall(conversation: CometChat.Conversation): any;
|
|
1247
1259
|
}
|
|
1248
1260
|
|
|
1249
|
-
/**
|
|
1250
|
-
* Class that handles the text formatting for URLs in CometChat.
|
|
1251
|
-
* CometChatUrlsFormatter is a child class of CometChatTextFormatter.
|
|
1252
|
-
* It extends the functionality of text formatting to specifically handle URLs.
|
|
1253
|
-
* It is used in extension decorators like link preview, message translation, and dataSource utils.
|
|
1254
|
-
*/
|
|
1255
|
-
declare class CometChatUrlsFormatter extends CometChatTextFormatter {
|
|
1256
|
-
constructor(regexPatterns: Array<RegExp>);
|
|
1257
|
-
protected onRegexMatch(inputText?: string | null): string;
|
|
1258
|
-
registerEventListeners(element: HTMLElement, classList: DOMTokenList): HTMLElement;
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
1261
|
type ComposerId = {
|
|
1262
1262
|
parentMessageId: number | null;
|
|
1263
1263
|
user: string | null;
|
|
@@ -1285,20 +1285,20 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1285
1285
|
getSendMessagePrivatelyOption(): CometChatActionsIcon;
|
|
1286
1286
|
getCopyOption(): CometChatActionsIcon;
|
|
1287
1287
|
getMessageInfoOption(): CometChatActionsIcon;
|
|
1288
|
-
isSentByMe(loggedInUser: CometChat
|
|
1289
|
-
getTextMessageOptions(loggedInUser: CometChat
|
|
1290
|
-
getIsSentByMe(message: CometChat
|
|
1291
|
-
getImageMessageOptions(loggedInUser: CometChat
|
|
1292
|
-
getVideoMessageOptions(loggedInUser: CometChat
|
|
1293
|
-
getAudioMessageOptions(loggedInUser: CometChat
|
|
1294
|
-
getFileMessageOptions(loggedInUser: CometChat
|
|
1288
|
+
isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
|
|
1289
|
+
getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1290
|
+
getIsSentByMe(message: CometChat.BaseMessage): boolean;
|
|
1291
|
+
getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1292
|
+
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1293
|
+
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1294
|
+
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1295
1295
|
getReceiptClass(status?: number): "error" | "read" | "delivered" | "sent" | "wait" | undefined;
|
|
1296
1296
|
/**
|
|
1297
1297
|
* Function to get receipt for message bubble
|
|
1298
1298
|
* @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
|
|
1299
1299
|
* @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
|
|
1300
1300
|
*/
|
|
1301
|
-
getBubbleStatusInfoReceipt: (item: CometChat
|
|
1301
|
+
getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipts?: boolean) => JSX.Element | null;
|
|
1302
1302
|
/**
|
|
1303
1303
|
* Function for displaying the timestamp next to messages.
|
|
1304
1304
|
* @returns CalendarObject
|
|
@@ -1306,23 +1306,23 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1306
1306
|
getMessageSentAtDateFormat(messageSentAtDateTimeFormat?: CalendarObject): {
|
|
1307
1307
|
today: string;
|
|
1308
1308
|
yesterday: string;
|
|
1309
|
-
lastWeek?: string
|
|
1309
|
+
lastWeek?: string;
|
|
1310
1310
|
otherDays: string;
|
|
1311
1311
|
relativeTime?: {
|
|
1312
|
-
minute?: string
|
|
1313
|
-
minutes?: string
|
|
1314
|
-
hour?: string
|
|
1315
|
-
hours?: string
|
|
1316
|
-
}
|
|
1312
|
+
minute?: string;
|
|
1313
|
+
minutes?: string;
|
|
1314
|
+
hour?: string;
|
|
1315
|
+
hours?: string;
|
|
1316
|
+
};
|
|
1317
1317
|
};
|
|
1318
1318
|
/**
|
|
1319
1319
|
* Function to get status and date for message bubble
|
|
1320
1320
|
* @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
|
|
1321
1321
|
* @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
|
|
1322
1322
|
*/
|
|
1323
|
-
getBubbleStatusInfoDate: (item: CometChat
|
|
1324
|
-
getStatusInfoView: (_messageObject: CometChat
|
|
1325
|
-
getBottomView(_messageObject: CometChat
|
|
1323
|
+
getBubbleStatusInfoDate: (item: CometChat.BaseMessage, messageSentAtDateTimeFormat?: CalendarObject) => JSX.Element | null;
|
|
1324
|
+
getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject) => react_jsx_runtime.JSX.Element | null;
|
|
1325
|
+
getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
|
|
1326
1326
|
getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
|
|
1327
1327
|
getAudioMessageTemplate(): CometChatMessageTemplate;
|
|
1328
1328
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -1333,25 +1333,25 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1333
1333
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
1334
1334
|
getAllMessageTemplates(additionalConfigurations?: additionalParams): Array<CometChatMessageTemplate>;
|
|
1335
1335
|
getMessageTemplate(messageType: string, messageCategory: string, additionalConfigurations?: additionalParams): CometChatMessageTemplate | null;
|
|
1336
|
-
getMessageOptions(loggedInUser: CometChat
|
|
1337
|
-
getCommonOptions(loggedInUser: CometChat
|
|
1336
|
+
getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1337
|
+
getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1338
1338
|
getAllMessageTypes(): Array<string>;
|
|
1339
1339
|
addList(): string;
|
|
1340
1340
|
getAllMessageCategories(additionalConfigurations?: {
|
|
1341
1341
|
hideGroupActionMessages?: boolean;
|
|
1342
1342
|
}): Array<string>;
|
|
1343
|
-
getStickerButton(id: ComposerId, user?: CometChat
|
|
1343
|
+
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
|
|
1344
1344
|
getId(): string;
|
|
1345
|
-
getTextMessageContentView(message: CometChat
|
|
1346
|
-
getAudioMessageContentView(message: CometChat
|
|
1347
|
-
getFileMessageContentView(message: CometChat
|
|
1348
|
-
getImageMessageContentView(message: CometChat
|
|
1349
|
-
getVideoMessageContentView(message: CometChat
|
|
1345
|
+
getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
|
|
1346
|
+
getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1347
|
+
getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1348
|
+
getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1349
|
+
getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1350
1350
|
getActionMessage(message: any): string;
|
|
1351
|
-
getDeleteMessageBubble(message: CometChat
|
|
1352
|
-
getGroupActionBubble(message: CometChat
|
|
1353
|
-
getTextMessageBubble(messageText: string, message: CometChat
|
|
1354
|
-
getAudioMessageBubble(audioUrl: string, message: CometChat
|
|
1351
|
+
getDeleteMessageBubble(message: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
|
|
1352
|
+
getGroupActionBubble(message: CometChat.BaseMessage): react_jsx_runtime.JSX.Element;
|
|
1353
|
+
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
|
|
1354
|
+
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
1355
1355
|
/**
|
|
1356
1356
|
* Function to check mimeType and return the iconUrl of that type
|
|
1357
1357
|
* @param mimeType
|
|
@@ -1364,16 +1364,16 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1364
1364
|
* @returns
|
|
1365
1365
|
*/
|
|
1366
1366
|
getFileSize: (sizeInBytes: number) => string;
|
|
1367
|
-
getFileMessageBubble(fileUrl: string, message: CometChat
|
|
1368
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat
|
|
1369
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat
|
|
1367
|
+
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
1368
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
|
|
1369
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
|
|
1370
1370
|
imageAttachmentOption(): CometChatMessageComposerAction;
|
|
1371
1371
|
videoAttachmentOption(): CometChatMessageComposerAction;
|
|
1372
1372
|
audioAttachmentOption(): CometChatMessageComposerAction;
|
|
1373
1373
|
fileAttachmentOption(): CometChatMessageComposerAction;
|
|
1374
1374
|
getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
|
|
1375
|
-
getLastConversationMessage(conversation: CometChat
|
|
1376
|
-
getAuxiliaryHeaderMenu(user?: CometChat
|
|
1375
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: additionalParams): string;
|
|
1376
|
+
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
1377
1377
|
/**
|
|
1378
1378
|
* Adds styled @ for every mention in the text by matching uid
|
|
1379
1379
|
*
|
|
@@ -1381,21 +1381,21 @@ declare class MessagesDataSource implements DataSource {
|
|
|
1381
1381
|
* @param {string} subtitle
|
|
1382
1382
|
* @returns {void}
|
|
1383
1383
|
*/
|
|
1384
|
-
getMentionsFormattedText(message: CometChat
|
|
1384
|
+
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, mentionsFormatterParams: {
|
|
1385
1385
|
mentionsTargetElement: MentionsTargetElement;
|
|
1386
1386
|
}): string;
|
|
1387
1387
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
1388
1388
|
getMentionsTextFormatter(params: additionalParams): CometChatMentionsFormatter;
|
|
1389
1389
|
getUrlTextFormatter(params?: additionalParams): CometChatUrlsFormatter;
|
|
1390
|
-
getFormMessageBubble(message: CometChat
|
|
1391
|
-
getSchedulerMessageBubble(message: CometChat
|
|
1392
|
-
getCardMessageBubble(message: CometChat
|
|
1390
|
+
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1391
|
+
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1392
|
+
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1393
1393
|
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
1394
1394
|
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
1395
1395
|
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
1396
|
-
getFormMessageContentView(message: CometChat
|
|
1397
|
-
getSchedulerMessageContentView(message: CometChat
|
|
1398
|
-
getCardMessageContentView(message: CometChat
|
|
1396
|
+
getFormMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1397
|
+
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1398
|
+
getCardMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1399
1399
|
}
|
|
1400
1400
|
|
|
1401
1401
|
/**
|
|
@@ -1885,7 +1885,7 @@ declare abstract class DataSource {
|
|
|
1885
1885
|
abstract getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1886
1886
|
abstract getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
1887
1887
|
abstract getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX.Element | null;
|
|
1888
|
-
abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment,
|
|
1888
|
+
abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject): Element | JSX.Element | null;
|
|
1889
1889
|
abstract getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, otherParams: Object | undefined): Element | JSX.Element;
|
|
1890
1890
|
abstract getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
1891
1891
|
abstract getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
@@ -2088,13 +2088,13 @@ declare abstract class DataSourceDecorator implements DataSource {
|
|
|
2088
2088
|
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
2089
2089
|
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
2090
2090
|
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
2091
|
-
getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment,
|
|
2092
|
-
getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment):
|
|
2093
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2094
|
-
getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
2095
|
-
getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
2096
|
-
getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
2097
|
-
getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment):
|
|
2091
|
+
getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject): Element | JSX.Element | null;
|
|
2092
|
+
getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX.Element | null;
|
|
2093
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
|
|
2094
|
+
getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
2095
|
+
getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
2096
|
+
getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
2097
|
+
getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
2098
2098
|
getTextMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
|
|
2099
2099
|
getImageMessageTemplate(): CometChatMessageTemplate;
|
|
2100
2100
|
getVideoMessageTemplate(): CometChatMessageTemplate;
|
|
@@ -2110,28 +2110,28 @@ declare abstract class DataSourceDecorator implements DataSource {
|
|
|
2110
2110
|
getAllMessageCategories(additionalConfigurations?: Object | undefined): string[];
|
|
2111
2111
|
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
|
|
2112
2112
|
getId(): string;
|
|
2113
|
-
getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment):
|
|
2114
|
-
getGroupActionBubble(message: CometChat.BaseMessage):
|
|
2115
|
-
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined):
|
|
2116
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment):
|
|
2117
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment):
|
|
2118
|
-
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment):
|
|
2119
|
-
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment):
|
|
2113
|
+
getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
2114
|
+
getGroupActionBubble(message: CometChat.BaseMessage): Element | JSX.Element;
|
|
2115
|
+
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
|
|
2116
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
2117
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
2118
|
+
getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
2119
|
+
getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
|
|
2120
2120
|
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: additionalParams): string;
|
|
2121
2121
|
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
|
|
2122
2122
|
getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
|
|
2123
2123
|
getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
|
|
2124
2124
|
getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
|
|
2125
2125
|
getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: Object): string;
|
|
2126
|
-
getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2127
|
-
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2128
|
-
getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2126
|
+
getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
2127
|
+
getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
2128
|
+
getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
2129
2129
|
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
2130
2130
|
getSchedulerMessageTemplate(): CometChatMessageTemplate;
|
|
2131
2131
|
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
2132
|
-
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2133
|
-
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2134
|
-
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment):
|
|
2132
|
+
getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
2133
|
+
getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
2134
|
+
getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
|
|
2135
2135
|
}
|
|
2136
2136
|
|
|
2137
2137
|
interface ListProps<T> {
|
|
@@ -2140,7 +2140,7 @@ interface ListProps<T> {
|
|
|
2140
2140
|
*
|
|
2141
2141
|
* @defaultValue `""`
|
|
2142
2142
|
*/
|
|
2143
|
-
headerView?: JSX
|
|
2143
|
+
headerView?: JSX.Element;
|
|
2144
2144
|
/**
|
|
2145
2145
|
* Hide the search bar
|
|
2146
2146
|
*
|
|
@@ -2173,7 +2173,7 @@ interface ListProps<T> {
|
|
|
2173
2173
|
/**
|
|
2174
2174
|
* Custom list item view to be rendered for each object in the `list` prop
|
|
2175
2175
|
*/
|
|
2176
|
-
itemView: (item: T, itemIndex: number) => JSX
|
|
2176
|
+
itemView: (item: T, itemIndex: number) => JSX.Element;
|
|
2177
2177
|
/**
|
|
2178
2178
|
* Function to call when the scrollbar is at the top-most position of the scrollable list
|
|
2179
2179
|
*/
|
|
@@ -2213,7 +2213,7 @@ interface ListProps<T> {
|
|
|
2213
2213
|
/**
|
|
2214
2214
|
* Custom view for the loading state of the component
|
|
2215
2215
|
*/
|
|
2216
|
-
loadingView?: JSX
|
|
2216
|
+
loadingView?: JSX.Element;
|
|
2217
2217
|
/**
|
|
2218
2218
|
* Hide error view
|
|
2219
2219
|
*
|
|
@@ -2226,11 +2226,11 @@ interface ListProps<T> {
|
|
|
2226
2226
|
/**
|
|
2227
2227
|
* Custom view for the error state of the component
|
|
2228
2228
|
*/
|
|
2229
|
-
errorView?: JSX
|
|
2229
|
+
errorView?: JSX.Element;
|
|
2230
2230
|
/**
|
|
2231
2231
|
* Custom view for the empty state of the component
|
|
2232
2232
|
*/
|
|
2233
|
-
emptyView?: JSX
|
|
2233
|
+
emptyView?: JSX.Element;
|
|
2234
2234
|
/**
|
|
2235
2235
|
* Set the scrollbar to the bottom-most position of the scrollable list
|
|
2236
2236
|
*
|
|
@@ -2255,7 +2255,7 @@ interface ListProps<T> {
|
|
|
2255
2255
|
*
|
|
2256
2256
|
* @param props - The props for configuring the list
|
|
2257
2257
|
*/
|
|
2258
|
-
declare function List<T>(props: ListProps<T>): JSX
|
|
2258
|
+
declare function List<T>(props: ListProps<T>): JSX.Element;
|
|
2259
2259
|
/**
|
|
2260
2260
|
* Renders a scrollable list
|
|
2261
2261
|
*/
|
|
@@ -2654,7 +2654,7 @@ declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
|
|
|
2654
2654
|
* @param {any} [additionalConfigurations] - Additional configurations for formatting.
|
|
2655
2655
|
* @returns {JSX.Element} The JSX element representing the message content view.
|
|
2656
2656
|
*/
|
|
2657
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any):
|
|
2657
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element | React__default.JSX.Element;
|
|
2658
2658
|
/**
|
|
2659
2659
|
* Retrieves the style for the link preview wrapper.
|
|
2660
2660
|
* @returns {object} The style object for the link preview wrapper.
|
|
@@ -2748,7 +2748,7 @@ declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
|
|
|
2748
2748
|
* @param {any} [additionalConfigurations] - Optional additional configurations for the content view.
|
|
2749
2749
|
* @returns {JSX.Element} The content view for the text message.
|
|
2750
2750
|
*/
|
|
2751
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any):
|
|
2751
|
+
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element | React.JSX.Element;
|
|
2752
2752
|
/**
|
|
2753
2753
|
* Checks if an option with the specified ID already exists in the options list.
|
|
2754
2754
|
*
|
|
@@ -2980,7 +2980,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
2980
2980
|
* @param group - Optional group object.
|
|
2981
2981
|
* @returns An array of auxiliary options.
|
|
2982
2982
|
*/
|
|
2983
|
-
getStickerButton(id: ComposerId, user?: CometChat
|
|
2983
|
+
getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): react_jsx_runtime.JSX.Element;
|
|
2984
2984
|
/**
|
|
2985
2985
|
* Creates the sticker auxiliary button component.
|
|
2986
2986
|
* @param id - A map containing relevant IDs.
|
|
@@ -2989,7 +2989,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
2989
2989
|
* @param group - Optional group object.
|
|
2990
2990
|
* @returns The JSX element for the sticker auxiliary button.
|
|
2991
2991
|
*/
|
|
2992
|
-
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat
|
|
2992
|
+
getStickerAuxiliaryButton: (id: ComposerId, user?: CometChat.User, group?: CometChat.Group) => react_jsx_runtime.JSX.Element;
|
|
2993
2993
|
/**
|
|
2994
2994
|
* Sends a sticker message.
|
|
2995
2995
|
* @param event - The event object containing sticker details.
|
|
@@ -2999,14 +2999,14 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
2999
2999
|
* Sends a sticker message.
|
|
3000
3000
|
* @param event - The event object containing sticker details.
|
|
3001
3001
|
*/
|
|
3002
|
-
getSticker(message: CometChat
|
|
3002
|
+
getSticker(message: CometChat.CustomMessage): any;
|
|
3003
3003
|
/**
|
|
3004
3004
|
* Creates a JSX element for displaying the sticker message content.
|
|
3005
3005
|
* @param stickerMessage - The custom message containing sticker data.
|
|
3006
3006
|
* @param _theme - The theme object for styling.
|
|
3007
3007
|
* @returns The JSX element for the sticker message content.
|
|
3008
3008
|
*/
|
|
3009
|
-
getStickerMessageContentView(stickerMessage: CometChat
|
|
3009
|
+
getStickerMessageContentView(stickerMessage: CometChat.CustomMessage): react_jsx_runtime.JSX.Element;
|
|
3010
3010
|
/**
|
|
3011
3011
|
* Creates a sticker message template.
|
|
3012
3012
|
* @param _theme - The theme object for styling.
|
|
@@ -3042,7 +3042,7 @@ declare class StickersExtensionDecorator extends DataSourceDecorator {
|
|
|
3042
3042
|
* @param additionalConfigurations - Additional configurations, if any.
|
|
3043
3043
|
* @returns A string representing the last message.
|
|
3044
3044
|
*/
|
|
3045
|
-
getLastConversationMessage(conversation: CometChat
|
|
3045
|
+
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
3046
3046
|
}
|
|
3047
3047
|
|
|
3048
3048
|
/**
|
|
@@ -3091,7 +3091,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
|
|
|
3091
3091
|
* @param {ImageBubbleStyle} [style] - Optional style for the image bubble.
|
|
3092
3092
|
* @returns {React.ReactNode} The rendered image message bubble.
|
|
3093
3093
|
*/
|
|
3094
|
-
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function):
|
|
3094
|
+
getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): Element | React.JSX.Element;
|
|
3095
3095
|
/**
|
|
3096
3096
|
* Provides the video message bubble with support for thumbnail generation.
|
|
3097
3097
|
* It checks for a thumbnail URL in the message metadata and uses it if available.
|
|
@@ -3102,7 +3102,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
|
|
|
3102
3102
|
* @param {Function} [onClick] - Optional click event handler.
|
|
3103
3103
|
* @returns {React.ReactNode} The rendered video message bubble.
|
|
3104
3104
|
*/
|
|
3105
|
-
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function):
|
|
3105
|
+
getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | React.JSX.Element;
|
|
3106
3106
|
}
|
|
3107
3107
|
|
|
3108
3108
|
declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
@@ -3454,54 +3454,54 @@ interface ConversationsProps {
|
|
|
3454
3454
|
/**
|
|
3455
3455
|
* A custom component to render in the top-right corner of the Conversations UI.
|
|
3456
3456
|
*/
|
|
3457
|
-
headerView?: JSX
|
|
3457
|
+
headerView?: JSX.Element;
|
|
3458
3458
|
/**
|
|
3459
3459
|
* A custom component to display during the loading state.
|
|
3460
3460
|
*/
|
|
3461
|
-
loadingView?: JSX
|
|
3461
|
+
loadingView?: JSX.Element;
|
|
3462
3462
|
/**
|
|
3463
3463
|
* A custom component to display when there are no conversations available.
|
|
3464
3464
|
*/
|
|
3465
|
-
emptyView?: JSX
|
|
3465
|
+
emptyView?: JSX.Element;
|
|
3466
3466
|
/**
|
|
3467
3467
|
* A custom component to display when an error occurs.
|
|
3468
3468
|
*/
|
|
3469
|
-
errorView?: JSX
|
|
3469
|
+
errorView?: JSX.Element;
|
|
3470
3470
|
/**
|
|
3471
3471
|
* A custom view to render each conversation in the list.
|
|
3472
3472
|
*
|
|
3473
3473
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
3474
3474
|
* @returns A JSX element to be rendered as the conversation item.
|
|
3475
3475
|
*/
|
|
3476
|
-
itemView?: (conversation: CometChat.Conversation) => JSX
|
|
3476
|
+
itemView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
3477
3477
|
/**
|
|
3478
3478
|
* A function that renders a JSX element to display the leading view.
|
|
3479
3479
|
*
|
|
3480
3480
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
3481
3481
|
* @returns A JSX element to be rendered as the leading view.
|
|
3482
3482
|
*/
|
|
3483
|
-
leadingView?: (conversation: CometChat.Conversation) => JSX
|
|
3483
|
+
leadingView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
3484
3484
|
/**
|
|
3485
3485
|
* A function that renders a JSX element to display the title view.
|
|
3486
3486
|
*
|
|
3487
3487
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
3488
3488
|
* @returns A JSX element to be rendered as the title view.
|
|
3489
3489
|
*/
|
|
3490
|
-
titleView?: (conversation: CometChat.Conversation) => JSX
|
|
3490
|
+
titleView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
3491
3491
|
/**
|
|
3492
3492
|
* A custom view to render the subtitle for each conversation.
|
|
3493
3493
|
*
|
|
3494
3494
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
3495
3495
|
* @returns A JSX element to be rendered as the subtitle view.
|
|
3496
3496
|
*/
|
|
3497
|
-
subtitleView?: (conversation: CometChat.Conversation) => JSX
|
|
3497
|
+
subtitleView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
3498
3498
|
/**
|
|
3499
3499
|
* A custom view to render at the end of each conversation item.
|
|
3500
3500
|
*
|
|
3501
3501
|
* @param conversation - An instance of `CometChat.Conversation` representing the conversation.
|
|
3502
3502
|
* @returns A JSX element to be rendered as the trailing view.
|
|
3503
3503
|
*/
|
|
3504
|
-
trailingView?: (conversation: CometChat.Conversation) => JSX
|
|
3504
|
+
trailingView?: (conversation: CometChat.Conversation) => JSX.Element;
|
|
3505
3505
|
}
|
|
3506
3506
|
/**
|
|
3507
3507
|
* Renders a scrollable list of conversations that has been created in a CometChat app
|
|
@@ -3614,54 +3614,54 @@ interface GroupMembersProps {
|
|
|
3614
3614
|
/**
|
|
3615
3615
|
* A custom component to render in the top-right corner of the group members list.
|
|
3616
3616
|
*/
|
|
3617
|
-
headerView?: JSX
|
|
3617
|
+
headerView?: JSX.Element;
|
|
3618
3618
|
/**
|
|
3619
3619
|
* A custom view to display during the loading state.
|
|
3620
3620
|
*/
|
|
3621
|
-
loadingView?: JSX
|
|
3621
|
+
loadingView?: JSX.Element;
|
|
3622
3622
|
/**
|
|
3623
3623
|
* Custom view for the error state of the component.
|
|
3624
3624
|
*/
|
|
3625
|
-
errorView?: JSX
|
|
3625
|
+
errorView?: JSX.Element;
|
|
3626
3626
|
/**
|
|
3627
3627
|
* A custom view to display when no group members are available in the list.
|
|
3628
3628
|
*/
|
|
3629
|
-
emptyView?: JSX
|
|
3629
|
+
emptyView?: JSX.Element;
|
|
3630
3630
|
/**
|
|
3631
3631
|
* A custom view to render for each group member in the fetched list.
|
|
3632
3632
|
*
|
|
3633
3633
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
3634
3634
|
* @returns A JSX element to be rendered as the group member item.
|
|
3635
3635
|
*/
|
|
3636
|
-
itemView?: (groupMember: CometChat.GroupMember) => JSX
|
|
3636
|
+
itemView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
3637
3637
|
/**
|
|
3638
3638
|
* A function that renders a JSX element to display the leading view.
|
|
3639
3639
|
*
|
|
3640
3640
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
3641
3641
|
* @returns A JSX element to be rendered as the leading view.
|
|
3642
3642
|
*/
|
|
3643
|
-
leadingView?: (groupMember: CometChat.GroupMember) => JSX
|
|
3643
|
+
leadingView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
3644
3644
|
/**
|
|
3645
3645
|
* A function that renders a JSX element to display the title view.
|
|
3646
3646
|
*
|
|
3647
3647
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
3648
3648
|
* @returns A JSX element to be rendered as the title view.
|
|
3649
3649
|
*/
|
|
3650
|
-
titleView?: (groupMember: CometChat.GroupMember) => JSX
|
|
3650
|
+
titleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
3651
3651
|
/**
|
|
3652
3652
|
* A function that renders a JSX element to display the subtitle view.
|
|
3653
3653
|
*
|
|
3654
3654
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
3655
3655
|
* @returns A JSX element to be rendered as the subtitle view.
|
|
3656
3656
|
*/
|
|
3657
|
-
subtitleView?: (groupMember: CometChat.GroupMember) => JSX
|
|
3657
|
+
subtitleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
3658
3658
|
/**
|
|
3659
3659
|
* A function that renders a JSX element to display the trailing view.
|
|
3660
3660
|
*
|
|
3661
3661
|
* @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
|
|
3662
3662
|
* @returns A JSX element to be rendered as the trailing view.
|
|
3663
3663
|
*/
|
|
3664
|
-
trailingView?: (groupMember: CometChat.GroupMember) => JSX
|
|
3664
|
+
trailingView?: (groupMember: CometChat.GroupMember) => JSX.Element;
|
|
3665
3665
|
}
|
|
3666
3666
|
declare function CometChatGroupMembers(props: GroupMembersProps): react_jsx_runtime.JSX.Element;
|
|
3667
3667
|
|
|
@@ -3737,54 +3737,54 @@ interface GroupsProps {
|
|
|
3737
3737
|
/**
|
|
3738
3738
|
* A custom component to render in the top-right corner of the groups list.
|
|
3739
3739
|
*/
|
|
3740
|
-
headerView?: JSX
|
|
3740
|
+
headerView?: JSX.Element;
|
|
3741
3741
|
/**
|
|
3742
3742
|
* A custom view to display during the loading state.
|
|
3743
3743
|
*/
|
|
3744
|
-
loadingView?: JSX
|
|
3744
|
+
loadingView?: JSX.Element;
|
|
3745
3745
|
/**
|
|
3746
3746
|
* Custom view for the empty state of the component.
|
|
3747
3747
|
*/
|
|
3748
|
-
emptyView?: JSX
|
|
3748
|
+
emptyView?: JSX.Element;
|
|
3749
3749
|
/**
|
|
3750
3750
|
* A custom view to display when an error occurs.
|
|
3751
3751
|
*/
|
|
3752
|
-
errorView?: JSX
|
|
3752
|
+
errorView?: JSX.Element;
|
|
3753
3753
|
/**
|
|
3754
3754
|
* A custom view to render for each group in the fetched list.
|
|
3755
3755
|
*
|
|
3756
3756
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
3757
3757
|
* @returns A JSX element to be rendered as the group item.
|
|
3758
3758
|
*/
|
|
3759
|
-
itemView?: (group: CometChat.Group) => JSX
|
|
3759
|
+
itemView?: (group: CometChat.Group) => JSX.Element;
|
|
3760
3760
|
/**
|
|
3761
3761
|
* A function that renders a JSX element to display the leading view.
|
|
3762
3762
|
*
|
|
3763
3763
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
3764
3764
|
* @returns A JSX element to be rendered as the leading view.
|
|
3765
3765
|
*/
|
|
3766
|
-
leadingView?: (group: CometChat.Group) => JSX
|
|
3766
|
+
leadingView?: (group: CometChat.Group) => JSX.Element;
|
|
3767
3767
|
/**
|
|
3768
3768
|
* A function that renders a JSX element to display the title view.
|
|
3769
3769
|
*
|
|
3770
3770
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
3771
3771
|
* @returns A JSX element to be rendered as the title view.
|
|
3772
3772
|
*/
|
|
3773
|
-
titleView?: (group: CometChat.Group) => JSX
|
|
3773
|
+
titleView?: (group: CometChat.Group) => JSX.Element;
|
|
3774
3774
|
/**
|
|
3775
3775
|
* Custom subtitle view to be rendered for each group in the fetched list.
|
|
3776
3776
|
*
|
|
3777
3777
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
3778
3778
|
* @returns A JSX element to be rendered as the subtitle view.
|
|
3779
3779
|
*/
|
|
3780
|
-
subtitleView?: (group: CometChat.Group) => JSX
|
|
3780
|
+
subtitleView?: (group: CometChat.Group) => JSX.Element;
|
|
3781
3781
|
/**
|
|
3782
3782
|
* A function that renders a JSX element to display the trailing view.
|
|
3783
3783
|
*
|
|
3784
3784
|
* @param group - An instance of `CometChat.Group` representing the group.
|
|
3785
3785
|
* @returns A JSX element to be rendered as the trailing view.
|
|
3786
3786
|
*/
|
|
3787
|
-
trailingView?: (group: CometChat.Group) => JSX
|
|
3787
|
+
trailingView?: (group: CometChat.Group) => JSX.Element;
|
|
3788
3788
|
}
|
|
3789
3789
|
/**
|
|
3790
3790
|
* Renders a scrollable list of groups that has been created in a CometChat app
|
|
@@ -3952,15 +3952,15 @@ interface MessageComposerProps {
|
|
|
3952
3952
|
/**
|
|
3953
3953
|
* A custom view for the send button to customize its appearance or behavior.
|
|
3954
3954
|
*/
|
|
3955
|
-
sendButtonView?: JSX
|
|
3955
|
+
sendButtonView?: JSX.Element;
|
|
3956
3956
|
/**
|
|
3957
3957
|
* A custom view for an auxiliary button, which can be used alongside the send button.
|
|
3958
3958
|
*/
|
|
3959
|
-
auxiliaryButtonView?: JSX
|
|
3959
|
+
auxiliaryButtonView?: JSX.Element;
|
|
3960
3960
|
/**
|
|
3961
3961
|
* A custom header section displayed at the top of the message composer, often used for media previews or additional information.
|
|
3962
3962
|
*/
|
|
3963
|
-
headerView?: JSX
|
|
3963
|
+
headerView?: JSX.Element;
|
|
3964
3964
|
}
|
|
3965
3965
|
/**
|
|
3966
3966
|
* Renders a message composer to send messages to a user or group of a CometChat App
|
|
@@ -3978,9 +3978,15 @@ interface MessageHeaderProps {
|
|
|
3978
3978
|
showConversationSummaryButton?: boolean;
|
|
3979
3979
|
/**
|
|
3980
3980
|
* Hides the back button in the header in mobile view.
|
|
3981
|
+
* @deprecated Use 'showBackButton' prop instead. This prop is deprecated and will be removed in future versions.
|
|
3981
3982
|
* @default false
|
|
3982
3983
|
*/
|
|
3983
3984
|
hideBackButton?: boolean;
|
|
3985
|
+
/**
|
|
3986
|
+
* Hides the back button in the header in mobile view.
|
|
3987
|
+
* @default false
|
|
3988
|
+
*/
|
|
3989
|
+
showBackButton?: boolean;
|
|
3984
3990
|
/**
|
|
3985
3991
|
* Hides the video call button.
|
|
3986
3992
|
* @default false
|
|
@@ -4030,28 +4036,28 @@ interface MessageHeaderProps {
|
|
|
4030
4036
|
/**
|
|
4031
4037
|
* A custom JSX element for rendering a menu. It can be used to add options or actions.
|
|
4032
4038
|
*/
|
|
4033
|
-
auxiliaryButtonView?: JSX
|
|
4039
|
+
auxiliaryButtonView?: JSX.Element;
|
|
4034
4040
|
/**
|
|
4035
4041
|
* A custom JSX element for rendering a list item view, typically used to show user or group details.
|
|
4036
4042
|
*/
|
|
4037
|
-
itemView?: JSX
|
|
4043
|
+
itemView?: JSX.Element;
|
|
4038
4044
|
/**
|
|
4039
4045
|
* A function that renders a JSX element to display the leading view.
|
|
4040
4046
|
*/
|
|
4041
|
-
leadingView?: JSX
|
|
4047
|
+
leadingView?: JSX.Element;
|
|
4042
4048
|
/**
|
|
4043
4049
|
* A function that renders a JSX element to display the title view.
|
|
4044
4050
|
*/
|
|
4045
|
-
titleView?: JSX
|
|
4051
|
+
titleView?: JSX.Element;
|
|
4046
4052
|
/**
|
|
4047
4053
|
* Custom subtitle view, allowing you to render a JSX element as the subtitle.
|
|
4048
4054
|
* It can be used to provide additional information under the title.
|
|
4049
4055
|
*/
|
|
4050
|
-
subtitleView?: JSX
|
|
4056
|
+
subtitleView?: JSX.Element;
|
|
4051
4057
|
/**
|
|
4052
4058
|
* A function that renders a JSX element to display the trailing view.
|
|
4053
4059
|
*/
|
|
4054
|
-
trailingView?: JSX
|
|
4060
|
+
trailingView?: JSX.Element;
|
|
4055
4061
|
/**
|
|
4056
4062
|
* Format for displaying the "last active" timestamp in the message header.
|
|
4057
4063
|
*/
|
|
@@ -4379,54 +4385,54 @@ interface UsersProps {
|
|
|
4379
4385
|
/**
|
|
4380
4386
|
* A custom component to render in the top-right corner of the user list.
|
|
4381
4387
|
*/
|
|
4382
|
-
headerView?: JSX
|
|
4388
|
+
headerView?: JSX.Element;
|
|
4383
4389
|
/**
|
|
4384
4390
|
* A custom view to display during the loading state.
|
|
4385
4391
|
*/
|
|
4386
|
-
loadingView?: JSX
|
|
4392
|
+
loadingView?: JSX.Element;
|
|
4387
4393
|
/**
|
|
4388
4394
|
* A custom view to display when an error occurs.
|
|
4389
4395
|
*/
|
|
4390
|
-
errorView?: JSX
|
|
4396
|
+
errorView?: JSX.Element;
|
|
4391
4397
|
/**
|
|
4392
4398
|
* A custom view to display when no users are available in the list.
|
|
4393
4399
|
*/
|
|
4394
|
-
emptyView?: JSX
|
|
4400
|
+
emptyView?: JSX.Element;
|
|
4395
4401
|
/**
|
|
4396
4402
|
* A custom view to render for each user in the fetched list.
|
|
4397
4403
|
*
|
|
4398
4404
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
4399
4405
|
* @returns A JSX element to be rendered as the user item.
|
|
4400
4406
|
*/
|
|
4401
|
-
itemView?: (user: CometChat.User) => JSX
|
|
4407
|
+
itemView?: (user: CometChat.User) => JSX.Element;
|
|
4402
4408
|
/**
|
|
4403
4409
|
* A function that renders a JSX element to display the leading view.
|
|
4404
4410
|
*
|
|
4405
4411
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
4406
4412
|
* @returns A JSX element to be rendered as the leading view.
|
|
4407
4413
|
*/
|
|
4408
|
-
leadingView?: (user: CometChat.User) => JSX
|
|
4414
|
+
leadingView?: (user: CometChat.User) => JSX.Element;
|
|
4409
4415
|
/**
|
|
4410
4416
|
* A custom function to render the title view of a user.
|
|
4411
4417
|
*
|
|
4412
4418
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
4413
4419
|
* @returns A JSX element to be rendered as the title view.
|
|
4414
4420
|
*/
|
|
4415
|
-
titleView?: (user: CometChat.User) => JSX
|
|
4421
|
+
titleView?: (user: CometChat.User) => JSX.Element;
|
|
4416
4422
|
/**
|
|
4417
4423
|
* A custom view to render the subtitle for each user.
|
|
4418
4424
|
*
|
|
4419
4425
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
4420
4426
|
* @returns A JSX element to be rendered as the subtitle view.
|
|
4421
4427
|
*/
|
|
4422
|
-
subtitleView?: (user: CometChat.User) => JSX
|
|
4428
|
+
subtitleView?: (user: CometChat.User) => JSX.Element;
|
|
4423
4429
|
/**
|
|
4424
4430
|
* A function that renders a JSX element to display the trailing view.
|
|
4425
4431
|
*
|
|
4426
4432
|
* @param user - An instance of `CometChat.User` representing the user.
|
|
4427
4433
|
* @returns A JSX element to be rendered as the trailing view.
|
|
4428
4434
|
*/
|
|
4429
|
-
trailingView?: (user: CometChat.User) => JSX
|
|
4435
|
+
trailingView?: (user: CometChat.User) => JSX.Element;
|
|
4430
4436
|
}
|
|
4431
4437
|
/**
|
|
4432
4438
|
* Renders a scrollable list of users that has been created in a CometChat app
|
|
@@ -4453,6 +4459,15 @@ interface MessageInformationProps {
|
|
|
4453
4459
|
* Template for customizing the appearance of the message.
|
|
4454
4460
|
*/
|
|
4455
4461
|
template?: CometChatMessageTemplate;
|
|
4462
|
+
/**
|
|
4463
|
+
* Hides the visibility of receipt in the Message Information.
|
|
4464
|
+
* @default false
|
|
4465
|
+
*/
|
|
4466
|
+
hideReceipts?: boolean;
|
|
4467
|
+
/**
|
|
4468
|
+
* Array of text formatters for custom styling or formatting of message text bubbles.
|
|
4469
|
+
*/
|
|
4470
|
+
textFormatters?: CometChatTextFormatter[];
|
|
4456
4471
|
}
|
|
4457
4472
|
declare const CometChatMessageInformation: (props: MessageInformationProps) => react_jsx_runtime.JSX.Element;
|
|
4458
4473
|
|
|
@@ -4645,6 +4660,7 @@ interface IOpenChat {
|
|
|
4645
4660
|
}
|
|
4646
4661
|
interface IShowOngoingCall {
|
|
4647
4662
|
child: any;
|
|
4663
|
+
message?: CometChat.CustomMessage;
|
|
4648
4664
|
}
|
|
4649
4665
|
interface IPanel {
|
|
4650
4666
|
child?: any;
|
|
@@ -5348,37 +5364,9 @@ declare class MessageReceiptUtils {
|
|
|
5348
5364
|
* the corresponding receipt icon.
|
|
5349
5365
|
*
|
|
5350
5366
|
* @param {CometChat.BaseMessage} messageObject - The message object for which to get the receipt status.
|
|
5351
|
-
* @returns {
|
|
5367
|
+
* @returns {Receipts} - The receipt status icon.
|
|
5352
5368
|
*/
|
|
5353
|
-
static getReceiptStatus: (messageObject: CometChat.BaseMessage) =>
|
|
5354
|
-
}
|
|
5355
|
-
/**
|
|
5356
|
-
* Enum representing different receipt statuses for a message.
|
|
5357
|
-
*
|
|
5358
|
-
* @readonly
|
|
5359
|
-
* @enum {number}
|
|
5360
|
-
*/
|
|
5361
|
-
declare enum receipts {
|
|
5362
|
-
/**
|
|
5363
|
-
* Status indicating that the message is waiting to be processed.
|
|
5364
|
-
*/
|
|
5365
|
-
wait = 0,
|
|
5366
|
-
/**
|
|
5367
|
-
* Status indicating that the message has been sent.
|
|
5368
|
-
*/
|
|
5369
|
-
sent = 1,
|
|
5370
|
-
/**
|
|
5371
|
-
* Status indicating that the message has been delivered.
|
|
5372
|
-
*/
|
|
5373
|
-
delivered = 2,
|
|
5374
|
-
/**
|
|
5375
|
-
* Status indicating that the message has been read.
|
|
5376
|
-
*/
|
|
5377
|
-
read = 3,
|
|
5378
|
-
/**
|
|
5379
|
-
* Status indicating that an error occurred with the message.
|
|
5380
|
-
*/
|
|
5381
|
-
error = 4
|
|
5369
|
+
static getReceiptStatus: (messageObject: CometChat.BaseMessage) => Receipts;
|
|
5382
5370
|
}
|
|
5383
5371
|
|
|
5384
5372
|
/**
|
|
@@ -5393,7 +5381,7 @@ declare class MessageUtils {
|
|
|
5393
5381
|
* @param {CometChatMessageTemplate} template - The message template to use for rendering the content view.
|
|
5394
5382
|
* @returns {object | null} - The content view for the message, or null if not found.
|
|
5395
5383
|
*/
|
|
5396
|
-
getContentView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment): any;
|
|
5384
|
+
getContentView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment, textFormatters?: CometChatTextFormatter[]): any;
|
|
5397
5385
|
/**
|
|
5398
5386
|
* Retrieves the content view for a message based on the provided template.
|
|
5399
5387
|
*
|
|
@@ -5401,7 +5389,7 @@ declare class MessageUtils {
|
|
|
5401
5389
|
* @param {CometChatMessageTemplate} template - The message template to use for rendering the content view.
|
|
5402
5390
|
* @returns {object | null} - The content view for the message, or null if not found.
|
|
5403
5391
|
*/
|
|
5404
|
-
getStatusInfoView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment, messageSentAtDateTimeFormat?: CalendarObject): any;
|
|
5392
|
+
getStatusInfoView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment, messageSentAtDateTimeFormat?: CalendarObject, hideReceipts?: boolean): any;
|
|
5405
5393
|
/**
|
|
5406
5394
|
* Retrieves the bubble wrapper for a message based on the provided template.
|
|
5407
5395
|
*
|
|
@@ -5419,7 +5407,7 @@ declare class MessageUtils {
|
|
|
5419
5407
|
* @param {MessageBubbleAlignment} alignment - The alignment of the message bubble (left or right).
|
|
5420
5408
|
* @returns {JSX.Element} - The message bubble component.
|
|
5421
5409
|
*/
|
|
5422
|
-
getMessageBubble(baseMessage: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment: MessageBubbleAlignment, messageSentAtDateTimeFormat?: CalendarObject): any;
|
|
5410
|
+
getMessageBubble(baseMessage: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment: MessageBubbleAlignment, messageSentAtDateTimeFormat?: CalendarObject, hideReceipts?: boolean, textFormatters?: CometChatTextFormatter[]): any;
|
|
5423
5411
|
/**
|
|
5424
5412
|
*
|
|
5425
5413
|
* @param {(CometChat.User | CometChat.GroupMember | any)} user
|
|
@@ -5901,6 +5889,15 @@ interface CometChatThreadHeaderProps {
|
|
|
5901
5889
|
* Format for the timestamp displayed next to messages.
|
|
5902
5890
|
*/
|
|
5903
5891
|
messageSentAtDateTimeFormat?: CalendarObject;
|
|
5892
|
+
/**
|
|
5893
|
+
* Hides the visibility of receipt in the Thread Header.
|
|
5894
|
+
* @default false
|
|
5895
|
+
*/
|
|
5896
|
+
hideReceipts?: boolean;
|
|
5897
|
+
/**
|
|
5898
|
+
* Array of text formatters for custom styling or formatting of message text bubbles.
|
|
5899
|
+
*/
|
|
5900
|
+
textFormatters?: CometChatTextFormatter[];
|
|
5904
5901
|
}
|
|
5905
5902
|
declare const CometChatThreadHeader: (props: CometChatThreadHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
5906
5903
|
|
|
@@ -5990,7 +5987,7 @@ declare class CometChatUIKitUtility {
|
|
|
5990
5987
|
* @param messageObject - The message object containing extensions.
|
|
5991
5988
|
* @returns The sanitized message text if available, otherwise the original text.
|
|
5992
5989
|
*/
|
|
5993
|
-
static getExtensionData(messageObject: CometChat
|
|
5990
|
+
static getExtensionData(messageObject: CometChat.BaseMessage): string;
|
|
5994
5991
|
/**
|
|
5995
5992
|
* Checks for extension data in a message.
|
|
5996
5993
|
*
|
|
@@ -5998,7 +5995,7 @@ declare class CometChatUIKitUtility {
|
|
|
5998
5995
|
* @param extensionKey - The extension key to look for.
|
|
5999
5996
|
* @returns The extension data if found.
|
|
6000
5997
|
*/
|
|
6001
|
-
static checkMessageForExtensionsData: (message: CometChat
|
|
5998
|
+
static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
|
|
6002
5999
|
/**
|
|
6003
6000
|
* Sanitizes an HTML string by escaping tags not matching the whitelist.
|
|
6004
6001
|
*
|