@cometchat/chat-uikit-react 6.2.0 → 6.2.2

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.
Files changed (33) hide show
  1. package/dist/assets/message_blocked.svg +8 -0
  2. package/dist/index.d.ts +235 -206
  3. package/dist/index.js +2 -2
  4. package/dist/index.js.map +1 -1
  5. package/dist/styles/CometChatAIAssistantChat.css +13 -4
  6. package/dist/styles/CometChatAIAssistantChatHistory.css +100 -1
  7. package/dist/styles/CometChatAIAssistantMessageBubble.css +49 -17
  8. package/dist/styles/CometChatConversations.css +20 -1
  9. package/dist/styles/CometChatMessageList.css +30 -15
  10. package/dist/styles/CometChatModerationView.css +25 -0
  11. package/dist/styles/CometChatSearch.css +13 -0
  12. package/dist/styles/CometChatStreamMessageBubble.css +48 -19
  13. package/dist/styles/components/CometChatAIAssistantChat.css +13 -4
  14. package/dist/styles/components/CometChatAIAssistantChatHistory.css +100 -1
  15. package/dist/styles/components/CometChatAIAssistantMessageBubble.css +49 -17
  16. package/dist/styles/components/CometChatConversations.css +20 -1
  17. package/dist/styles/components/CometChatMessageList.css +30 -15
  18. package/dist/styles/components/CometChatModerationView.css +25 -0
  19. package/dist/styles/components/CometChatSearch.css +13 -0
  20. package/dist/styles/components/CometChatStreamMessageBubble.css +48 -19
  21. package/dist/styles/components/index.css +1 -0
  22. package/dist/styles/index.css +1 -0
  23. package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
  24. package/dist/types/components/BaseComponents/CometChatModerationView/CometChatModerationView.d.ts +2 -0
  25. package/dist/types/components/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.d.ts +4 -0
  26. package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +1 -0
  27. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +20 -15
  28. package/dist/types/constants/CometChatUIKitConstants.d.ts +6 -0
  29. package/dist/types/events/CometChatMessageEvents.d.ts +1 -0
  30. package/dist/types/utils/MessageReceiptUtils.d.ts +1 -1
  31. package/dist/types/utils/MessageUtils.d.ts +6 -0
  32. package/dist/types/utils/util.d.ts +7 -0
  33. package/package.json +4 -3
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { JSX, ReactNode, FC } from 'react';
2
+ import React__default, { JSX as JSX$1, 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
5
  import * as rxjs from 'rxjs';
@@ -345,7 +345,7 @@ interface MentionsProps {
345
345
  * @param item - An instance of CometChat.User or CometChat.GroupMember to be rendered
346
346
  * @returns A JSX element representing the custom item view
347
347
  */
348
- itemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
348
+ itemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX$1.Element;
349
349
  /**
350
350
  * The search keyword used to filter users or group members.
351
351
  */
@@ -359,7 +359,7 @@ interface MentionsProps {
359
359
  * @param item - An instance of CometChat.User or CometChat.GroupMember
360
360
  * @returns A JSX element representing the custom subtitle view
361
361
  */
362
- subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
362
+ subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX$1.Element;
363
363
  /**
364
364
  * A request builder to fetch users with custom parameters.
365
365
  */
@@ -451,10 +451,10 @@ declare class CalendarObject {
451
451
  declare class OutgoingCallConfiguration {
452
452
  disableSoundForCalls?: boolean;
453
453
  customSoundForCalls?: string;
454
- titleView?: (call: CometChat.Call) => JSX.Element;
455
- subtitleView?: (call: CometChat.Call) => JSX.Element;
456
- avatarView?: (call: CometChat.Call) => JSX.Element;
457
- cancelButtonView?: (call: CometChat.Call) => JSX.Element;
454
+ titleView?: (call: CometChat.Call) => JSX$1.Element;
455
+ subtitleView?: (call: CometChat.Call) => JSX$1.Element;
456
+ avatarView?: (call: CometChat.Call) => JSX$1.Element;
457
+ cancelButtonView?: (call: CometChat.Call) => JSX$1.Element;
458
458
  onError?: (error: CometChat.CometChatException) => void;
459
459
  onCallCanceled?: Function;
460
460
  constructor(configuration: OutgoingCallConfiguration);
@@ -1079,7 +1079,7 @@ declare class CometChatActionsView extends CometChatActions {
1079
1079
  * User-defined component to customize the action view for each option in the template.
1080
1080
  * @type {callbacks: any) => Element | JSX.Element | undefined}
1081
1081
  */
1082
- customView?: (callbacks: any) => Element | JSX.Element;
1082
+ customView?: (callbacks: any) => Element | JSX$1.Element;
1083
1083
  /**
1084
1084
  * Creates an instance of CometChatActionsView.
1085
1085
  */
@@ -1103,7 +1103,7 @@ declare class CometChatActionsView extends CometChatActions {
1103
1103
  * User-defined component to customize the action view. This is optional and can be omitted.
1104
1104
  * @type {Element | JSX.Element}
1105
1105
  */
1106
- customView?: (callbacks: any) => Element | JSX.Element;
1106
+ customView?: (callbacks: any) => Element | JSX$1.Element;
1107
1107
  });
1108
1108
  }
1109
1109
 
@@ -1255,36 +1255,36 @@ declare class CometChatMessageTemplate {
1255
1255
  * and Video bubble based on the type of the message.
1256
1256
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
1257
1257
  */
1258
- contentView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, textFormatters?: CometChatTextFormatter[]) => Element | JSX.Element | null) | null;
1258
+ contentView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, textFormatters?: CometChatTextFormatter[]) => Element | JSX$1.Element | null) | null;
1259
1259
  /**
1260
1260
  * Custom component to customize the complete message bubble.
1261
1261
  * By default, headerView, contentView and footerView collectively form a message bubble.
1262
1262
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
1263
1263
  */
1264
- bubbleView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX.Element | null) | null;
1264
+ bubbleView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX$1.Element | null) | null;
1265
1265
  /**
1266
1266
  * Custom component to customize the header section for each message bubble.
1267
1267
  * By default, it displays the message sender's name.
1268
1268
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
1269
1269
  */
1270
- headerView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX.Element | null) | null;
1270
+ headerView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX$1.Element | null) | null;
1271
1271
  /**
1272
1272
  * Custom component to customize the footer section for each message bubble.
1273
1273
  * By default, it displays the reactions.
1274
1274
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
1275
1275
  */
1276
- footerView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX.Element | null) | null;
1276
+ footerView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX$1.Element | null) | null;
1277
1277
  /**
1278
1278
  * Custom component to customize the bottom view section for each message bubble.
1279
1279
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
1280
1280
  */
1281
- bottomView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX.Element | null) | null;
1281
+ bottomView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX$1.Element | null) | null;
1282
1282
  /**
1283
1283
  * Custom component to customize the status info section for each message bubble.
1284
1284
  * By default, it displays the receipt and the timestamp.
1285
1285
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
1286
1286
  */
1287
- statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean) => Element | JSX.Element | null) | null;
1287
+ statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean) => Element | JSX$1.Element | null) | null;
1288
1288
  /**
1289
1289
  * List of available actions that any user can perform on a message, like reacting,
1290
1290
  * editing or deleting a message.
@@ -1410,7 +1410,7 @@ declare class MessagesDataSource implements DataSource {
1410
1410
  * @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
1411
1411
  * @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
1412
1412
  */
1413
- getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipts?: boolean, showError?: boolean) => JSX.Element | null;
1413
+ getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipts?: boolean, showError?: boolean) => JSX$1.Element | null;
1414
1414
  /**
1415
1415
  * Function for displaying the timestamp next to messages.
1416
1416
  * @returns CalendarObject
@@ -1432,7 +1432,7 @@ declare class MessagesDataSource implements DataSource {
1432
1432
  * @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
1433
1433
  * @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
1434
1434
  */
1435
- getBubbleStatusInfoDate: (item: CometChat.BaseMessage, messageSentAtDateTimeFormat?: CalendarObject) => JSX.Element | null;
1435
+ getBubbleStatusInfoDate: (item: CometChat.BaseMessage, messageSentAtDateTimeFormat?: CalendarObject) => JSX$1.Element | null;
1436
1436
  getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean) => react_jsx_runtime.JSX.Element | null;
1437
1437
  getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
1438
1438
  getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
@@ -1461,18 +1461,18 @@ declare class MessagesDataSource implements DataSource {
1461
1461
  getAllMessageCategories(additionalConfigurations?: {
1462
1462
  hideGroupActionMessages?: boolean;
1463
1463
  }): Array<string>;
1464
- getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
1464
+ getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX$1.Element | undefined;
1465
1465
  getId(): string;
1466
- getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
1467
- getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1468
- getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1469
- getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1470
- getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1466
+ getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX$1.Element | Element;
1467
+ getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1468
+ getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1469
+ getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1470
+ getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1471
1471
  getActionMessage(message: any): string;
1472
1472
  getDeleteMessageBubble(message: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
1473
1473
  getGroupActionBubble(message: CometChat.BaseMessage): react_jsx_runtime.JSX.Element;
1474
- getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
1475
- getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
1474
+ getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX$1.Element;
1475
+ getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
1476
1476
  /**
1477
1477
  * Function to check mimeType and return the iconUrl of that type
1478
1478
  * @param mimeType
@@ -1485,16 +1485,16 @@ declare class MessagesDataSource implements DataSource {
1485
1485
  * @returns
1486
1486
  */
1487
1487
  getFileSize: (sizeInBytes: number) => string;
1488
- getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
1488
+ getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
1489
1489
  getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
1490
- getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
1490
+ getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX$1.Element;
1491
1491
  imageAttachmentOption(): CometChatMessageComposerAction;
1492
1492
  videoAttachmentOption(): CometChatMessageComposerAction;
1493
1493
  audioAttachmentOption(): CometChatMessageComposerAction;
1494
1494
  fileAttachmentOption(): CometChatMessageComposerAction;
1495
1495
  getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
1496
1496
  getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: additionalParams): string;
1497
- getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
1497
+ getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX$1.Element[];
1498
1498
  /**
1499
1499
  * Adds styled @ for every mention in the text by matching uid
1500
1500
  *
@@ -1508,15 +1508,15 @@ declare class MessagesDataSource implements DataSource {
1508
1508
  getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
1509
1509
  getMentionsTextFormatter(params: additionalParams): CometChatMentionsFormatter;
1510
1510
  getUrlTextFormatter(params?: additionalParams): CometChatUrlsFormatter;
1511
- getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
1512
- getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
1513
- getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
1511
+ getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1512
+ getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1513
+ getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1514
1514
  getFormMessageTemplate(): CometChatMessageTemplate;
1515
1515
  getSchedulerMessageTemplate(): CometChatMessageTemplate;
1516
1516
  getCardMessageTemplate(): CometChatMessageTemplate;
1517
- getFormMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1518
- getSchedulerMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1519
- getCardMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1517
+ getFormMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1518
+ getSchedulerMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1519
+ getCardMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1520
1520
  }
1521
1521
 
1522
1522
  /**
@@ -2005,13 +2005,13 @@ declare abstract class DataSource {
2005
2005
  abstract getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2006
2006
  abstract getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2007
2007
  abstract getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2008
- abstract getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX.Element | null;
2009
- abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean): Element | JSX.Element | null;
2010
- abstract getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, otherParams: Object | undefined): Element | JSX.Element;
2011
- abstract getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2012
- abstract getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2013
- abstract getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2014
- abstract getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2008
+ abstract getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element | null;
2009
+ abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean): Element | JSX$1.Element | null;
2010
+ abstract getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, otherParams: Object | undefined): Element | JSX$1.Element;
2011
+ abstract getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2012
+ abstract getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2013
+ abstract getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2014
+ abstract getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2015
2015
  abstract getAgentAssistantMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2016
2016
  abstract getToolArgumentsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2017
2017
  abstract getToolResultsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
@@ -2029,34 +2029,34 @@ declare abstract class DataSource {
2029
2029
  abstract getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): CometChatMessageComposerAction[];
2030
2030
  abstract getAllMessageTypes(): Array<string>;
2031
2031
  abstract getAllMessageCategories(additionalConfigurations?: Object | undefined): Array<string>;
2032
- abstract getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
2032
+ abstract getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX$1.Element | undefined;
2033
2033
  abstract getId(): string;
2034
- abstract getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2035
- abstract getGroupActionBubble(message: CometChat.BaseMessage): Element | JSX.Element;
2036
- abstract getStreamMessageBubble(message: CometChat.CustomMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
2037
- abstract getAgentAssistantMessageBubble(message: CometChat.AIAssistantMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
2038
- abstract getToolArgumentsMessageBubble(message: CometChat.AIToolArgumentMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
2039
- abstract getToolResultsMessageBubble(message: CometChat.AIToolResultMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
2040
- abstract getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
2041
- abstract getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2042
- abstract getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2043
- abstract getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2044
- abstract getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2034
+ abstract getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2035
+ abstract getGroupActionBubble(message: CometChat.BaseMessage): Element | JSX$1.Element;
2036
+ abstract getStreamMessageBubble(message: CometChat.CustomMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2037
+ abstract getAgentAssistantMessageBubble(message: CometChat.AIAssistantMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2038
+ abstract getToolArgumentsMessageBubble(message: CometChat.AIToolArgumentMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2039
+ abstract getToolResultsMessageBubble(message: CometChat.AIToolResultMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2040
+ abstract getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2041
+ abstract getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2042
+ abstract getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2043
+ abstract getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2044
+ abstract getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2045
2045
  abstract getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: additionalParams): string;
2046
- abstract getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
2046
+ abstract getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX$1.Element[];
2047
2047
  abstract getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
2048
2048
  abstract getMentionsTextFormatter(params: Object): CometChatMentionsFormatter;
2049
2049
  abstract getUrlTextFormatter(params: Object): CometChatUrlsFormatter;
2050
2050
  abstract getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations?: Object | undefined): string;
2051
- abstract getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2052
- abstract getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2053
- abstract getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2051
+ abstract getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2052
+ abstract getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2053
+ abstract getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2054
2054
  abstract getFormMessageTemplate(): CometChatMessageTemplate;
2055
2055
  abstract getSchedulerMessageTemplate(): CometChatMessageTemplate;
2056
2056
  abstract getCardMessageTemplate(): CometChatMessageTemplate;
2057
- abstract getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2058
- abstract getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2059
- abstract getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2057
+ abstract getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2058
+ abstract getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2059
+ abstract getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2060
2060
  }
2061
2061
 
2062
2062
  interface CometChatUiKit {
@@ -2217,13 +2217,13 @@ declare abstract class DataSourceDecorator implements DataSource {
2217
2217
  getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2218
2218
  getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2219
2219
  getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2220
- getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean): Element | JSX.Element | null;
2221
- getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX.Element | null;
2222
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
2223
- getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2224
- getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2225
- getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2226
- getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2220
+ getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean): JSX$1.Element | Element | null;
2221
+ getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element | null;
2222
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2223
+ getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2224
+ getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2225
+ getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2226
+ getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2227
2227
  getTextMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2228
2228
  getAgentAssistantMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2229
2229
  getToolArgumentsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
@@ -2241,34 +2241,34 @@ declare abstract class DataSourceDecorator implements DataSource {
2241
2241
  getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): CometChatMessageComposerAction[];
2242
2242
  getAllMessageTypes(): string[];
2243
2243
  getAllMessageCategories(additionalConfigurations?: Object | undefined): string[];
2244
- getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
2244
+ getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX$1.Element | undefined;
2245
2245
  getId(): string;
2246
- getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2247
- getGroupActionBubble(message: CometChat.BaseMessage): Element | JSX.Element;
2248
- getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
2249
- getAgentAssistantMessageBubble(message: CometChat.AIAssistantMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
2250
- getToolArgumentsMessageBubble(message: CometChat.AIToolArgumentMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
2251
- getToolResultsMessageBubble(message: CometChat.AIToolResultMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
2252
- getStreamMessageBubble(message: CometChat.CustomMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
2253
- getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2254
- getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2255
- getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2256
- getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2246
+ getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2247
+ getGroupActionBubble(message: CometChat.BaseMessage): JSX$1.Element | Element;
2248
+ getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2249
+ getAgentAssistantMessageBubble(message: CometChat.AIAssistantMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2250
+ getToolArgumentsMessageBubble(message: CometChat.AIToolArgumentMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2251
+ getToolResultsMessageBubble(message: CometChat.AIToolResultMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2252
+ getStreamMessageBubble(message: CometChat.CustomMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2253
+ getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2254
+ getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2255
+ getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2256
+ getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2257
2257
  getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: additionalParams): string;
2258
- getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
2258
+ getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX$1.Element[];
2259
2259
  getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
2260
2260
  getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
2261
2261
  getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
2262
2262
  getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: Object): string;
2263
- getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2264
- getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2265
- getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2263
+ getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2264
+ getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2265
+ getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2266
2266
  getFormMessageTemplate(): CometChatMessageTemplate;
2267
2267
  getSchedulerMessageTemplate(): CometChatMessageTemplate;
2268
2268
  getCardMessageTemplate(): CometChatMessageTemplate;
2269
- getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2270
- getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2271
- getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2269
+ getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2270
+ getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2271
+ getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2272
2272
  }
2273
2273
 
2274
2274
  interface ListProps<T> {
@@ -2277,7 +2277,7 @@ interface ListProps<T> {
2277
2277
  *
2278
2278
  * @defaultValue `""`
2279
2279
  */
2280
- headerView?: JSX.Element;
2280
+ headerView?: JSX$1.Element;
2281
2281
  /**
2282
2282
  * Hide the search bar
2283
2283
  *
@@ -2312,7 +2312,7 @@ interface ListProps<T> {
2312
2312
  /**
2313
2313
  * Custom list item view to be rendered for each object in the `list` prop
2314
2314
  */
2315
- itemView: (item: T, itemIndex: number) => JSX.Element;
2315
+ itemView: (item: T, itemIndex: number) => JSX$1.Element;
2316
2316
  /**
2317
2317
  * Function to call when the scrollbar is at the top-most position of the scrollable list
2318
2318
  */
@@ -2352,7 +2352,7 @@ interface ListProps<T> {
2352
2352
  /**
2353
2353
  * Custom view for the loading state of the component
2354
2354
  */
2355
- loadingView?: JSX.Element;
2355
+ loadingView?: JSX$1.Element;
2356
2356
  /**
2357
2357
  * Hide error view
2358
2358
  *
@@ -2365,11 +2365,11 @@ interface ListProps<T> {
2365
2365
  /**
2366
2366
  * Custom view for the error state of the component
2367
2367
  */
2368
- errorView?: JSX.Element;
2368
+ errorView?: JSX$1.Element;
2369
2369
  /**
2370
2370
  * Custom view for the empty state of the component
2371
2371
  */
2372
- emptyView?: JSX.Element;
2372
+ emptyView?: JSX$1.Element;
2373
2373
  /**
2374
2374
  * Set the scrollbar to the bottom-most position of the scrollable list
2375
2375
  *
@@ -2394,7 +2394,7 @@ interface ListProps<T> {
2394
2394
  * When provided, this component overrides the default search bar and the `hideSearch` property.
2395
2395
  * The custom search view will be displayed even if `hideSearch` is set to true.
2396
2396
  */
2397
- searchView?: JSX.Element;
2397
+ searchView?: JSX$1.Element;
2398
2398
  /**
2399
2399
  * Callback triggered when the search bar is clicked.
2400
2400
  */
@@ -2424,7 +2424,7 @@ interface ListProps<T> {
2424
2424
  *
2425
2425
  * @param props - The props for configuring the list
2426
2426
  */
2427
- declare function List<T>(props: ListProps<T>): JSX.Element;
2427
+ declare function List<T>(props: ListProps<T>): JSX$1.Element;
2428
2428
  /**
2429
2429
  * Renders a scrollable list
2430
2430
  */
@@ -2823,7 +2823,7 @@ declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
2823
2823
  * @param {any} [additionalConfigurations] - Additional configurations for formatting.
2824
2824
  * @returns {JSX.Element} The JSX element representing the message content view.
2825
2825
  */
2826
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element | React__default.JSX.Element;
2826
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
2827
2827
  /**
2828
2828
  * Retrieves the style for the link preview wrapper.
2829
2829
  * @returns {object} The style object for the link preview wrapper.
@@ -2917,7 +2917,7 @@ declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
2917
2917
  * @param {any} [additionalConfigurations] - Optional additional configurations for the content view.
2918
2918
  * @returns {JSX.Element} The content view for the text message.
2919
2919
  */
2920
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element | React.JSX.Element;
2920
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
2921
2921
  /**
2922
2922
  * Checks if an option with the specified ID already exists in the options list.
2923
2923
  *
@@ -3260,7 +3260,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
3260
3260
  * @param {ImageBubbleStyle} [style] - Optional style for the image bubble.
3261
3261
  * @returns {React.ReactNode} The rendered image message bubble.
3262
3262
  */
3263
- getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): Element | React.JSX.Element;
3263
+ getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): React.JSX.Element | Element;
3264
3264
  /**
3265
3265
  * Provides the video message bubble with support for thumbnail generation.
3266
3266
  * It checks for a thumbnail URL in the message metadata and uses it if available.
@@ -3271,7 +3271,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
3271
3271
  * @param {Function} [onClick] - Optional click event handler.
3272
3272
  * @returns {React.ReactNode} The rendered video message bubble.
3273
3273
  */
3274
- getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | React.JSX.Element;
3274
+ getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): React.JSX.Element | Element;
3275
3275
  }
3276
3276
 
3277
3277
  declare class CallingExtensionDecorator extends DataSourceDecorator {
@@ -3351,35 +3351,35 @@ interface IncomingCallProps {
3351
3351
  * @param call - An instance of `CometChat.Call` representing the call.
3352
3352
  * @returns A JSX element to be rendered as the item view.
3353
3353
  */
3354
- itemView?: (call: CometChat.Call) => JSX.Element;
3354
+ itemView?: (call: CometChat.Call) => JSX$1.Element;
3355
3355
  /**
3356
3356
  * A function that renders a JSX element to display the leading view.
3357
3357
  *
3358
3358
  * @param call - An instance of `CometChat.Call` representing the call.
3359
3359
  * @returns A JSX element to be rendered as the leading view.
3360
3360
  */
3361
- leadingView?: (call: CometChat.Call) => JSX.Element;
3361
+ leadingView?: (call: CometChat.Call) => JSX$1.Element;
3362
3362
  /**
3363
3363
  * A function that renders a JSX element to display the title view.
3364
3364
  *
3365
3365
  * @param call - An instance of `CometChat.Call` representing the call.
3366
3366
  * @returns A JSX element to be rendered as the title view.
3367
3367
  */
3368
- titleView?: (call: CometChat.Call) => JSX.Element;
3368
+ titleView?: (call: CometChat.Call) => JSX$1.Element;
3369
3369
  /**
3370
3370
  * A function that renders a JSX element to display the subtitle view.
3371
3371
  *
3372
3372
  * @param call - An instance of `CometChat.Call` representing the call.
3373
3373
  * @returns A JSX element to be rendered as the subtitle view.
3374
3374
  */
3375
- subtitleView?: (call: CometChat.Call) => JSX.Element;
3375
+ subtitleView?: (call: CometChat.Call) => JSX$1.Element;
3376
3376
  /**
3377
3377
  * A function that renders a JSX element to display the trailing view.
3378
3378
  *
3379
3379
  * @param call - An instance of `CometChat.Call` representing the call.
3380
3380
  * @returns A JSX element to be rendered as the trailing view.
3381
3381
  */
3382
- trailingView?: (call: CometChat.Call) => JSX.Element;
3382
+ trailingView?: (call: CometChat.Call) => JSX$1.Element;
3383
3383
  }
3384
3384
  declare const CometChatIncomingCall: (props: IncomingCallProps) => react_jsx_runtime.JSX.Element;
3385
3385
 
@@ -3423,22 +3423,22 @@ interface OutgoingCallProps {
3423
3423
  * This prop renders the custom title view for the outgoing call.
3424
3424
  * Use this to override the existing title of user name from the outgoing call.
3425
3425
  */
3426
- titleView?: JSX.Element;
3426
+ titleView?: JSX$1.Element;
3427
3427
  /**
3428
3428
  * This prop renders the custom sub title view for the outgoing call.
3429
3429
  * Use this to override the existing sub title text from the outgoing call.
3430
3430
  */
3431
- subtitleView?: JSX.Element;
3431
+ subtitleView?: JSX$1.Element;
3432
3432
  /**
3433
3433
  * This prop renders the custom avatar view for the outgoing call.
3434
3434
  * Use this to override the existing avatar image from the outgoing call.
3435
3435
  */
3436
- avatarView?: JSX.Element;
3436
+ avatarView?: JSX$1.Element;
3437
3437
  /**
3438
3438
  * This prop renders the custom cancel-call button view for the outgoing call.
3439
3439
  * Use this to override the existing cancel call button view from the outgoing call.
3440
3440
  */
3441
- cancelButtonView?: JSX.Element;
3441
+ cancelButtonView?: JSX$1.Element;
3442
3442
  }
3443
3443
  declare const CometChatOutgoingCall: (props: OutgoingCallProps) => react_jsx_runtime.JSX.Element;
3444
3444
 
@@ -3476,50 +3476,50 @@ interface CallLogsProps {
3476
3476
  /**
3477
3477
  * A custom view to display when call logs are being loaded.
3478
3478
  */
3479
- loadingView?: JSX.Element;
3479
+ loadingView?: JSX$1.Element;
3480
3480
  /**
3481
3481
  * A custom view to display when no call logs are available.
3482
3482
  */
3483
- emptyView?: JSX.Element;
3483
+ emptyView?: JSX$1.Element;
3484
3484
  /**
3485
3485
  * A custom view to display when an error occurs while fetching the call logs.
3486
3486
  */
3487
- errorView?: JSX.Element;
3487
+ errorView?: JSX$1.Element;
3488
3488
  /**
3489
3489
  * A function that renders a JSX element to display the item view.
3490
3490
  *
3491
3491
  * @param call - An instance of `any` representing the CallLog.
3492
3492
  * @returns A JSX element to be rendered as the item view.
3493
3493
  */
3494
- itemView?: (call: any) => JSX.Element;
3494
+ itemView?: (call: any) => JSX$1.Element;
3495
3495
  /**
3496
3496
  * A function that renders a JSX element to display the leading view.
3497
3497
  *
3498
3498
  * @param call - An instance of `any` representing the callLog.
3499
3499
  * @returns A JSX element to be rendered as the leading view.
3500
3500
  */
3501
- leadingView?: (call: any) => JSX.Element;
3501
+ leadingView?: (call: any) => JSX$1.Element;
3502
3502
  /**
3503
3503
  * A function that renders a JSX element to display the title view.
3504
3504
  *
3505
3505
  * @param call - An instance of `any` representing the callLog.
3506
3506
  * @returns A JSX element to be rendered as the title view.
3507
3507
  */
3508
- titleView?: (call: any) => JSX.Element;
3508
+ titleView?: (call: any) => JSX$1.Element;
3509
3509
  /**
3510
3510
  * A function that renders a JSX element to display the subtitle view.
3511
3511
  *
3512
3512
  * @param call - An instance of `any` representing the callLog.
3513
3513
  * @returns A JSX element to be rendered as the subtitle view.
3514
3514
  */
3515
- subtitleView?: (call: any) => JSX.Element;
3515
+ subtitleView?: (call: any) => JSX$1.Element;
3516
3516
  /**
3517
3517
  * A function that renders a JSX element to display the trailing view.
3518
3518
  *
3519
3519
  * @param call - An instance of `any` representing the callLog.
3520
3520
  * @returns A JSX element to be rendered as the trailing view.
3521
3521
  */
3522
- trailingView?: (call: any) => JSX.Element;
3522
+ trailingView?: (call: any) => JSX$1.Element;
3523
3523
  /**
3524
3524
  * Controls the visibility of the scrollbar in the list.
3525
3525
  * @defaultValue `false`
@@ -3628,58 +3628,58 @@ interface ConversationsProps {
3628
3628
  /**
3629
3629
  * A custom component to render in the top-right corner of the Conversations UI.
3630
3630
  */
3631
- headerView?: JSX.Element;
3631
+ headerView?: JSX$1.Element;
3632
3632
  /**
3633
3633
  * A custom component to display during the loading state.
3634
3634
  */
3635
- loadingView?: JSX.Element;
3635
+ loadingView?: JSX$1.Element;
3636
3636
  /**
3637
3637
  * A custom component to display when there are no conversations available.
3638
3638
  */
3639
- emptyView?: JSX.Element;
3639
+ emptyView?: JSX$1.Element;
3640
3640
  /**
3641
3641
  * A custom component to display when an error occurs.
3642
3642
  */
3643
- errorView?: JSX.Element;
3643
+ errorView?: JSX$1.Element;
3644
3644
  /**
3645
3645
  * A custom view to render each conversation in the list.
3646
3646
  *
3647
3647
  * @param conversation - An instance of `CometChat.Conversation` representing the conversation.
3648
3648
  * @returns A JSX element to be rendered as the conversation item.
3649
3649
  */
3650
- itemView?: (conversation: CometChat.Conversation) => JSX.Element;
3650
+ itemView?: (conversation: CometChat.Conversation) => JSX$1.Element;
3651
3651
  /**
3652
3652
  * A function that renders a JSX element to display the leading view.
3653
3653
  *
3654
3654
  * @param conversation - An instance of `CometChat.Conversation` representing the conversation.
3655
3655
  * @returns A JSX element to be rendered as the leading view.
3656
3656
  */
3657
- leadingView?: (conversation: CometChat.Conversation) => JSX.Element;
3657
+ leadingView?: (conversation: CometChat.Conversation) => JSX$1.Element;
3658
3658
  /**
3659
3659
  * A function that renders a JSX element to display the title view.
3660
3660
  *
3661
3661
  * @param conversation - An instance of `CometChat.Conversation` representing the conversation.
3662
3662
  * @returns A JSX element to be rendered as the title view.
3663
3663
  */
3664
- titleView?: (conversation: CometChat.Conversation) => JSX.Element;
3664
+ titleView?: (conversation: CometChat.Conversation) => JSX$1.Element;
3665
3665
  /**
3666
3666
  * A custom view to render the subtitle for each conversation.
3667
3667
  *
3668
3668
  * @param conversation - An instance of `CometChat.Conversation` representing the conversation.
3669
3669
  * @returns A JSX element to be rendered as the subtitle view.
3670
3670
  */
3671
- subtitleView?: (conversation: CometChat.Conversation) => JSX.Element;
3671
+ subtitleView?: (conversation: CometChat.Conversation) => JSX$1.Element;
3672
3672
  /**
3673
3673
  * A custom view to render at the end of each conversation item.
3674
3674
  *
3675
3675
  * @param conversation - An instance of `CometChat.Conversation` representing the conversation.
3676
3676
  * @returns A JSX element to be rendered as the trailing view.
3677
3677
  */
3678
- trailingView?: (conversation: CometChat.Conversation) => JSX.Element;
3678
+ trailingView?: (conversation: CometChat.Conversation) => JSX$1.Element;
3679
3679
  /**
3680
3680
  * A custom search bar component to display in the Conversations header.
3681
3681
  */
3682
- searchView?: JSX.Element;
3682
+ searchView?: JSX$1.Element;
3683
3683
  /**
3684
3684
  * Callback triggered when the search bar is clicked.
3685
3685
  */
@@ -3806,54 +3806,54 @@ interface GroupMembersProps {
3806
3806
  /**
3807
3807
  * A custom component to render in the top-right corner of the group members list.
3808
3808
  */
3809
- headerView?: JSX.Element;
3809
+ headerView?: JSX$1.Element;
3810
3810
  /**
3811
3811
  * A custom view to display during the loading state.
3812
3812
  */
3813
- loadingView?: JSX.Element;
3813
+ loadingView?: JSX$1.Element;
3814
3814
  /**
3815
3815
  * Custom view for the error state of the component.
3816
3816
  */
3817
- errorView?: JSX.Element;
3817
+ errorView?: JSX$1.Element;
3818
3818
  /**
3819
3819
  * A custom view to display when no group members are available in the list.
3820
3820
  */
3821
- emptyView?: JSX.Element;
3821
+ emptyView?: JSX$1.Element;
3822
3822
  /**
3823
3823
  * A custom view to render for each group member in the fetched list.
3824
3824
  *
3825
3825
  * @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
3826
3826
  * @returns A JSX element to be rendered as the group member item.
3827
3827
  */
3828
- itemView?: (groupMember: CometChat.GroupMember) => JSX.Element;
3828
+ itemView?: (groupMember: CometChat.GroupMember) => JSX$1.Element;
3829
3829
  /**
3830
3830
  * A function that renders a JSX element to display the leading view.
3831
3831
  *
3832
3832
  * @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
3833
3833
  * @returns A JSX element to be rendered as the leading view.
3834
3834
  */
3835
- leadingView?: (groupMember: CometChat.GroupMember) => JSX.Element;
3835
+ leadingView?: (groupMember: CometChat.GroupMember) => JSX$1.Element;
3836
3836
  /**
3837
3837
  * A function that renders a JSX element to display the title view.
3838
3838
  *
3839
3839
  * @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
3840
3840
  * @returns A JSX element to be rendered as the title view.
3841
3841
  */
3842
- titleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
3842
+ titleView?: (groupMember: CometChat.GroupMember) => JSX$1.Element;
3843
3843
  /**
3844
3844
  * A function that renders a JSX element to display the subtitle view.
3845
3845
  *
3846
3846
  * @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
3847
3847
  * @returns A JSX element to be rendered as the subtitle view.
3848
3848
  */
3849
- subtitleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
3849
+ subtitleView?: (groupMember: CometChat.GroupMember) => JSX$1.Element;
3850
3850
  /**
3851
3851
  * A function that renders a JSX element to display the trailing view.
3852
3852
  *
3853
3853
  * @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
3854
3854
  * @returns A JSX element to be rendered as the trailing view.
3855
3855
  */
3856
- trailingView?: (groupMember: CometChat.GroupMember) => JSX.Element;
3856
+ trailingView?: (groupMember: CometChat.GroupMember) => JSX$1.Element;
3857
3857
  /**
3858
3858
  * Controls the visibility of the scrollbar in the list.
3859
3859
  * @defaultValue `false`
@@ -3934,54 +3934,54 @@ interface GroupsProps {
3934
3934
  /**
3935
3935
  * A custom component to render in the top-right corner of the groups list.
3936
3936
  */
3937
- headerView?: JSX.Element;
3937
+ headerView?: JSX$1.Element;
3938
3938
  /**
3939
3939
  * A custom view to display during the loading state.
3940
3940
  */
3941
- loadingView?: JSX.Element;
3941
+ loadingView?: JSX$1.Element;
3942
3942
  /**
3943
3943
  * Custom view for the empty state of the component.
3944
3944
  */
3945
- emptyView?: JSX.Element;
3945
+ emptyView?: JSX$1.Element;
3946
3946
  /**
3947
3947
  * A custom view to display when an error occurs.
3948
3948
  */
3949
- errorView?: JSX.Element;
3949
+ errorView?: JSX$1.Element;
3950
3950
  /**
3951
3951
  * A custom view to render for each group in the fetched list.
3952
3952
  *
3953
3953
  * @param group - An instance of `CometChat.Group` representing the group.
3954
3954
  * @returns A JSX element to be rendered as the group item.
3955
3955
  */
3956
- itemView?: (group: CometChat.Group) => JSX.Element;
3956
+ itemView?: (group: CometChat.Group) => JSX$1.Element;
3957
3957
  /**
3958
3958
  * A function that renders a JSX element to display the leading view.
3959
3959
  *
3960
3960
  * @param group - An instance of `CometChat.Group` representing the group.
3961
3961
  * @returns A JSX element to be rendered as the leading view.
3962
3962
  */
3963
- leadingView?: (group: CometChat.Group) => JSX.Element;
3963
+ leadingView?: (group: CometChat.Group) => JSX$1.Element;
3964
3964
  /**
3965
3965
  * A function that renders a JSX element to display the title view.
3966
3966
  *
3967
3967
  * @param group - An instance of `CometChat.Group` representing the group.
3968
3968
  * @returns A JSX element to be rendered as the title view.
3969
3969
  */
3970
- titleView?: (group: CometChat.Group) => JSX.Element;
3970
+ titleView?: (group: CometChat.Group) => JSX$1.Element;
3971
3971
  /**
3972
3972
  * Custom subtitle view to be rendered for each group in the fetched list.
3973
3973
  *
3974
3974
  * @param group - An instance of `CometChat.Group` representing the group.
3975
3975
  * @returns A JSX element to be rendered as the subtitle view.
3976
3976
  */
3977
- subtitleView?: (group: CometChat.Group) => JSX.Element;
3977
+ subtitleView?: (group: CometChat.Group) => JSX$1.Element;
3978
3978
  /**
3979
3979
  * A function that renders a JSX element to display the trailing view.
3980
3980
  *
3981
3981
  * @param group - An instance of `CometChat.Group` representing the group.
3982
3982
  * @returns A JSX element to be rendered as the trailing view.
3983
3983
  */
3984
- trailingView?: (group: CometChat.Group) => JSX.Element;
3984
+ trailingView?: (group: CometChat.Group) => JSX$1.Element;
3985
3985
  /**
3986
3986
  * Controls the visibility of the scrollbar in the list.
3987
3987
  * @defaultValue `false`
@@ -3997,14 +3997,15 @@ declare function CometChatGroups(props: GroupsProps): react_jsx_runtime.JSX.Elem
3997
3997
  interface MessageBubbleProps {
3998
3998
  id: string | number;
3999
3999
  setRef?: (ref: any) => void;
4000
- leadingView?: JSX.Element | null;
4001
- headerView?: JSX.Element | null;
4002
- replyView?: JSX.Element | null;
4003
- contentView?: JSX.Element | null;
4004
- bottomView?: JSX.Element | null;
4005
- threadView?: JSX.Element | null;
4006
- footerView?: JSX.Element | null;
4007
- statusInfoView?: JSX.Element | null;
4000
+ leadingView?: JSX$1.Element | null;
4001
+ headerView?: JSX$1.Element | null;
4002
+ replyView?: JSX$1.Element | null;
4003
+ contentView?: JSX$1.Element | null;
4004
+ bottomView?: JSX$1.Element | null;
4005
+ threadView?: JSX$1.Element | null;
4006
+ footerView?: JSX$1.Element | null;
4007
+ statusInfoView?: JSX$1.Element | null;
4008
+ includeBottomViewHeight?: boolean;
4008
4009
  options: (CometChatActionsIcon | CometChatActionsView)[];
4009
4010
  alignment: MessageBubbleAlignment;
4010
4011
  topMenuSize?: number;
@@ -4154,15 +4155,15 @@ interface MessageComposerProps {
4154
4155
  /**
4155
4156
  * A custom view for the send button to customize its appearance or behavior.
4156
4157
  */
4157
- sendButtonView?: JSX.Element;
4158
+ sendButtonView?: JSX$1.Element;
4158
4159
  /**
4159
4160
  * A custom view for an auxiliary button, which can be used alongside the send button.
4160
4161
  */
4161
- auxiliaryButtonView?: JSX.Element;
4162
+ auxiliaryButtonView?: JSX$1.Element;
4162
4163
  /**
4163
4164
  * A custom header section displayed at the top of the message composer, often used for media previews or additional information.
4164
4165
  */
4165
- headerView?: JSX.Element;
4166
+ headerView?: JSX$1.Element;
4166
4167
  /**
4167
4168
  * Controls the visibility of the scrollbar in the list.
4168
4169
  * @defaultValue `false`
@@ -4258,28 +4259,28 @@ interface MessageHeaderProps {
4258
4259
  /**
4259
4260
  * A custom JSX element for rendering a menu. It can be used to add options or actions.
4260
4261
  */
4261
- auxiliaryButtonView?: JSX.Element;
4262
+ auxiliaryButtonView?: JSX$1.Element;
4262
4263
  /**
4263
4264
  * A custom JSX element for rendering a list item view, typically used to show user or group details.
4264
4265
  */
4265
- itemView?: JSX.Element;
4266
+ itemView?: JSX$1.Element;
4266
4267
  /**
4267
4268
  * A function that renders a JSX element to display the leading view.
4268
4269
  */
4269
- leadingView?: JSX.Element;
4270
+ leadingView?: JSX$1.Element;
4270
4271
  /**
4271
4272
  * A function that renders a JSX element to display the title view.
4272
4273
  */
4273
- titleView?: JSX.Element;
4274
+ titleView?: JSX$1.Element;
4274
4275
  /**
4275
4276
  * Custom subtitle view, allowing you to render a JSX element as the subtitle.
4276
4277
  * It can be used to provide additional information under the title.
4277
4278
  */
4278
- subtitleView?: JSX.Element;
4279
+ subtitleView?: JSX$1.Element;
4279
4280
  /**
4280
4281
  * A function that renders a JSX element to display the trailing view.
4281
4282
  */
4282
- trailingView?: JSX.Element;
4283
+ trailingView?: JSX$1.Element;
4283
4284
  /**
4284
4285
  * Format for displaying the "last active" timestamp in the message header.
4285
4286
  */
@@ -4317,6 +4318,11 @@ interface MessageListProps {
4317
4318
  * @default false
4318
4319
  */
4319
4320
  hideStickyDate?: boolean;
4321
+ /**
4322
+ * Hides the visibility of moderation status in the message list.
4323
+ * @default false
4324
+ */
4325
+ hideModerationView?: boolean;
4320
4326
  /**
4321
4327
  * Hides the visibility of receipts in the message list.
4322
4328
  * @default false
@@ -4430,10 +4436,10 @@ interface MessageListProps {
4430
4436
  */
4431
4437
  customSoundForMessages?: string;
4432
4438
  /**
4433
- * Specifies the keywords in incoming messages that will trigger Smart Replies.
4434
- * If set to an empty array [], Smart Replies will be generated for all messages.
4435
- * @default ['what', 'when', 'why', 'who', 'where', 'how', '?']
4436
- */
4439
+ * Specifies the keywords in incoming messages that will trigger Smart Replies.
4440
+ * If set to an empty array [], Smart Replies will be generated for all messages.
4441
+ * @default ['what', 'when', 'why', 'who', 'where', 'how', '?']
4442
+ */
4437
4443
  smartRepliesKeywords?: string[];
4438
4444
  /**
4439
4445
  * Specifies the delay in milliseconds before Smart Replies are displayed.
@@ -4471,38 +4477,38 @@ interface MessageListProps {
4471
4477
  /**
4472
4478
  * Custom empty state view to display when there are no messages.
4473
4479
  */
4474
- emptyView?: JSX.Element;
4480
+ emptyView?: JSX$1.Element;
4475
4481
  /**
4476
4482
  * A custom view displayed when there are no messages.
4477
4483
  */
4478
- errorView?: JSX.Element;
4484
+ errorView?: JSX$1.Element;
4479
4485
  /**
4480
4486
  * A custom view displayed while messages are being fetched.
4481
4487
  */
4482
- loadingView?: JSX.Element;
4488
+ loadingView?: JSX$1.Element;
4483
4489
  /**
4484
4490
  * A custom header view component for the message list.
4485
4491
  */
4486
- headerView?: JSX.Element;
4492
+ headerView?: JSX$1.Element;
4487
4493
  /**
4488
4494
  * A custom footer view component for the message list.
4489
4495
  */
4490
- footerView?: JSX.Element;
4496
+ footerView?: JSX$1.Element;
4491
4497
  /**
4492
- * Format for the date separators in the message list.
4493
- */
4498
+ * Format for the date separators in the message list.
4499
+ */
4494
4500
  separatorDateTimeFormat?: CalendarObject;
4495
4501
  /**
4496
- * Format for sticky date headers displayed in the message list.
4497
- */
4502
+ * Format for sticky date headers displayed in the message list.
4503
+ */
4498
4504
  stickyDateTimeFormat?: CalendarObject;
4499
4505
  /**
4500
- * Format for the timestamp displayed next to messages.
4501
- */
4506
+ * Format for the timestamp displayed next to messages.
4507
+ */
4502
4508
  messageSentAtDateTimeFormat?: CalendarObject;
4503
4509
  /**
4504
- * Format for timestamps displayed in message details (e.g., delivery or read time).
4505
- */
4510
+ * Format for timestamps displayed in message details (e.g., delivery or read time).
4511
+ */
4506
4512
  messageInfoDateTimeFormat?: CalendarObject;
4507
4513
  /**
4508
4514
  * ID of the message to automatically scroll to when the message list loads.
@@ -4511,9 +4517,9 @@ interface MessageListProps {
4511
4517
  */
4512
4518
  goToMessageId?: string;
4513
4519
  /**
4514
- * Controls the visibility of the scrollbar in the list.
4515
- * @defaultValue `false`
4516
- */
4520
+ * Controls the visibility of the scrollbar in the list.
4521
+ * @defaultValue `false`
4522
+ */
4517
4523
  showScrollbar?: boolean;
4518
4524
  /**
4519
4525
  * Toggles AI Agent functionality.
@@ -4628,54 +4634,54 @@ interface UsersProps {
4628
4634
  /**
4629
4635
  * A custom component to render in the top-right corner of the user list.
4630
4636
  */
4631
- headerView?: JSX.Element;
4637
+ headerView?: JSX$1.Element;
4632
4638
  /**
4633
4639
  * A custom view to display during the loading state.
4634
4640
  */
4635
- loadingView?: JSX.Element;
4641
+ loadingView?: JSX$1.Element;
4636
4642
  /**
4637
4643
  * A custom view to display when an error occurs.
4638
4644
  */
4639
- errorView?: JSX.Element;
4645
+ errorView?: JSX$1.Element;
4640
4646
  /**
4641
4647
  * A custom view to display when no users are available in the list.
4642
4648
  */
4643
- emptyView?: JSX.Element;
4649
+ emptyView?: JSX$1.Element;
4644
4650
  /**
4645
4651
  * A custom view to render for each user in the fetched list.
4646
4652
  *
4647
4653
  * @param user - An instance of `CometChat.User` representing the user.
4648
4654
  * @returns A JSX element to be rendered as the user item.
4649
4655
  */
4650
- itemView?: (user: CometChat.User) => JSX.Element;
4656
+ itemView?: (user: CometChat.User) => JSX$1.Element;
4651
4657
  /**
4652
4658
  * A function that renders a JSX element to display the leading view.
4653
4659
  *
4654
4660
  * @param user - An instance of `CometChat.User` representing the user.
4655
4661
  * @returns A JSX element to be rendered as the leading view.
4656
4662
  */
4657
- leadingView?: (user: CometChat.User) => JSX.Element;
4663
+ leadingView?: (user: CometChat.User) => JSX$1.Element;
4658
4664
  /**
4659
4665
  * A custom function to render the title view of a user.
4660
4666
  *
4661
4667
  * @param user - An instance of `CometChat.User` representing the user.
4662
4668
  * @returns A JSX element to be rendered as the title view.
4663
4669
  */
4664
- titleView?: (user: CometChat.User) => JSX.Element;
4670
+ titleView?: (user: CometChat.User) => JSX$1.Element;
4665
4671
  /**
4666
4672
  * A custom view to render the subtitle for each user.
4667
4673
  *
4668
4674
  * @param user - An instance of `CometChat.User` representing the user.
4669
4675
  * @returns A JSX element to be rendered as the subtitle view.
4670
4676
  */
4671
- subtitleView?: (user: CometChat.User) => JSX.Element;
4677
+ subtitleView?: (user: CometChat.User) => JSX$1.Element;
4672
4678
  /**
4673
4679
  * A function that renders a JSX element to display the trailing view.
4674
4680
  *
4675
4681
  * @param user - An instance of `CometChat.User` representing the user.
4676
4682
  * @returns A JSX element to be rendered as the trailing view.
4677
4683
  */
4678
- trailingView?: (user: CometChat.User) => JSX.Element;
4684
+ trailingView?: (user: CometChat.User) => JSX$1.Element;
4679
4685
  /**
4680
4686
  * Controls the visibility of the scrollbar in the list list.
4681
4687
  *
@@ -4734,6 +4740,12 @@ declare class CometChatUIKitConstants {
4734
4740
  interactive: string;
4735
4741
  agentic: _cometchat_chat_sdk_javascript.MessageCategory.AGENTIC;
4736
4742
  }>;
4743
+ static moderationStatus: Readonly<{
4744
+ pending: _cometchat_chat_sdk_javascript.ModerationStatus.PENDING;
4745
+ approved: _cometchat_chat_sdk_javascript.ModerationStatus.APPROVED;
4746
+ disapproved: _cometchat_chat_sdk_javascript.ModerationStatus.DISAPPROVED;
4747
+ unmoderated: _cometchat_chat_sdk_javascript.ModerationStatus.UNMODERATED;
4748
+ }>;
4737
4749
  static MessageTypes: Readonly<{
4738
4750
  text: string;
4739
4751
  file: string;
@@ -5067,6 +5079,7 @@ declare class CometChatMessageEvents {
5067
5079
  * message events wrapper of SDK listeners (e.g., media message, typing indicator, read receipts, etc.)
5068
5080
  */
5069
5081
  static onTextMessageReceived: Subject<CometChat.TextMessage>;
5082
+ static onMessageModerated: Subject<CometChat.BaseMessage>;
5070
5083
  static onMediaMessageReceived: Subject<CometChat.MediaMessage>;
5071
5084
  static onCustomMessageReceived: Subject<CometChat.CustomMessage>;
5072
5085
  static onTypingStarted: Subject<CometChat.TypingIndicator>;
@@ -5648,7 +5661,7 @@ declare class MessageReceiptUtils {
5648
5661
  * @param {CometChat.BaseMessage} messageObject - The message object for which to get the receipt status.
5649
5662
  * @returns {Receipts} - The receipt status icon.
5650
5663
  */
5651
- static getReceiptStatus: (messageObject: CometChat.BaseMessage) => Receipts;
5664
+ static getReceiptStatus: (message: CometChat.BaseMessage) => Receipts;
5652
5665
  }
5653
5666
 
5654
5667
  /**
@@ -5672,6 +5685,12 @@ declare class MessageUtils {
5672
5685
  * @returns {object | null} - The content view for the message, or null if not found.
5673
5686
  */
5674
5687
  getStatusInfoView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment, messageSentAtDateTimeFormat?: CalendarObject, hideReceipts?: boolean): any;
5688
+ /**
5689
+ * Retrieves the bottom view for moderated messages
5690
+ *
5691
+ * @returns {JSX.Element} The default view for moderated messages.
5692
+ */
5693
+ getModeratedMessageBottomView(): JSX.Element;
5675
5694
  /**
5676
5695
  * Retrieves the bubble wrapper for a message based on the provided template.
5677
5696
  *
@@ -6091,6 +6110,7 @@ declare function sanitizeCalendarObject(calendarObject?: CalendarObject): {
6091
6110
  };
6092
6111
  declare function fireClickEvent(): void;
6093
6112
  declare const decodeHTML: (input: string) => string;
6113
+ declare const sanitizeHtmlStringToFragment: (html: string, textFormatterArray?: CometChatTextFormatter[]) => DocumentFragment;
6094
6114
  /**
6095
6115
  * Custom React hook for creating debounced callbacks with automatic cleanup.
6096
6116
  */
@@ -6100,6 +6120,11 @@ declare const useDebouncedCallback: (callback: () => void, delay: number) => {
6100
6120
  };
6101
6121
  declare function createMessageCopy(msg: CometChat.AIAssistantBaseEvent, user: CometChat.User, category?: string, type?: string): CometChat.BaseMessage;
6102
6122
  declare function isDarkMode(): boolean;
6123
+ /**
6124
+ * Sanitizes HTML content to only allow span tags while keeping everything else as plain text
6125
+ * Also removes any script or executable content
6126
+ */
6127
+ declare const sanitizeToSpanOnly: (htmlString: string, regexPatterns: RegExp[][]) => string;
6103
6128
 
6104
6129
  /**
6105
6130
  * Utility class for managing local storage with change detection capabilities.
@@ -6168,7 +6193,7 @@ interface CometChatThreadHeaderProps {
6168
6193
  * @param messageObject - The message to be rendered.
6169
6194
  * @returns A JSX Element to be rendered as message bubble view.
6170
6195
  */
6171
- messageBubbleView?: JSX.Element;
6196
+ messageBubbleView?: JSX$1.Element;
6172
6197
  /**
6173
6198
  * Callback function triggered when an error occurs.
6174
6199
  *
@@ -6200,7 +6225,7 @@ interface CometChatThreadHeaderProps {
6200
6225
  /**
6201
6226
  * Custom subtitle view to display below the thread title.
6202
6227
  */
6203
- subtitleView?: JSX.Element;
6228
+ subtitleView?: JSX$1.Element;
6204
6229
  /**
6205
6230
  * Controls the visibility of the scrollbar in the list.
6206
6231
  * @defaultValue `false`
@@ -6437,7 +6462,7 @@ interface SearchProps {
6437
6462
  * @param conversation - The conversation object to render
6438
6463
  * @returns JSX element representing the conversation item
6439
6464
  */
6440
- conversationItemView?: (conversation: CometChat.Conversation) => JSX.Element;
6465
+ conversationItemView?: (conversation: CometChat.Conversation) => JSX$1.Element;
6441
6466
  /**
6442
6467
  * Custom leading view for conversation items (typically avatar/icon)
6443
6468
  * Use this to customize just the leading section of conversation items
@@ -6445,7 +6470,7 @@ interface SearchProps {
6445
6470
  * @param conversation - The conversation object to render the leading view for
6446
6471
  * @returns JSX element for the leading part of the conversation item
6447
6472
  */
6448
- conversationLeadingView?: (conversation: CometChat.Conversation) => JSX.Element;
6473
+ conversationLeadingView?: (conversation: CometChat.Conversation) => JSX$1.Element;
6449
6474
  /**
6450
6475
  * Custom title view for conversation items
6451
6476
  * Use this to customize how the title of conversation items is displayed
@@ -6453,7 +6478,7 @@ interface SearchProps {
6453
6478
  * @param conversation - The conversation object to render the title for
6454
6479
  * @returns JSX element for the title of the conversation item
6455
6480
  */
6456
- conversationTitleView?: (conversation: CometChat.Conversation) => JSX.Element;
6481
+ conversationTitleView?: (conversation: CometChat.Conversation) => JSX$1.Element;
6457
6482
  /**
6458
6483
  * Custom subtitle view for conversation items
6459
6484
  * Use this to customize how the subtitle (typically last message) is displayed
@@ -6461,7 +6486,7 @@ interface SearchProps {
6461
6486
  * @param conversation - The conversation object to render the subtitle for
6462
6487
  * @returns JSX element for the subtitle of the conversation item
6463
6488
  */
6464
- conversationSubtitleView?: (conversation: CometChat.Conversation) => JSX.Element;
6489
+ conversationSubtitleView?: (conversation: CometChat.Conversation) => JSX$1.Element;
6465
6490
  /**
6466
6491
  * Custom trailing view for conversation items (typically timestamp)
6467
6492
  * Use this to customize what appears at the end of conversation items
@@ -6469,7 +6494,7 @@ interface SearchProps {
6469
6494
  * @param conversation - The conversation object to render the trailing view for
6470
6495
  * @returns JSX element for the trailing part of the conversation item
6471
6496
  */
6472
- conversationTrailingView?: (conversation: CometChat.Conversation) => JSX.Element;
6497
+ conversationTrailingView?: (conversation: CometChat.Conversation) => JSX$1.Element;
6473
6498
  /**
6474
6499
  * Request builder for conversations search
6475
6500
  * Use this to customize the conversation search request parameters
@@ -6484,7 +6509,7 @@ interface SearchProps {
6484
6509
  * @param message - The message object to render
6485
6510
  * @returns JSX element representing the message item
6486
6511
  */
6487
- messageItemView?: (message: CometChat.BaseMessage) => JSX.Element;
6512
+ messageItemView?: (message: CometChat.BaseMessage) => JSX$1.Element;
6488
6513
  /**
6489
6514
  * Custom leading view for message items (typically sender avatar/icon)
6490
6515
  * Use this to customize just the leading section of message items
@@ -6492,7 +6517,7 @@ interface SearchProps {
6492
6517
  * @param message - The message object to render the leading view for
6493
6518
  * @returns JSX element for the leading part of the message item
6494
6519
  */
6495
- messageLeadingView?: (message: CometChat.BaseMessage) => JSX.Element;
6520
+ messageLeadingView?: (message: CometChat.BaseMessage) => JSX$1.Element;
6496
6521
  /**
6497
6522
  * Custom title view for message items (typically sender name)
6498
6523
  * Use this to customize how the title of message items is displayed
@@ -6500,7 +6525,7 @@ interface SearchProps {
6500
6525
  * @param message - The message object to render the title for
6501
6526
  * @returns JSX element for the title of the message item
6502
6527
  */
6503
- messageTitleView?: (message: CometChat.BaseMessage) => JSX.Element;
6528
+ messageTitleView?: (message: CometChat.BaseMessage) => JSX$1.Element;
6504
6529
  /**
6505
6530
  * Custom subtitle view for message items (typically message content)
6506
6531
  * Use this to customize how the subtitle/content is displayed
@@ -6508,7 +6533,7 @@ interface SearchProps {
6508
6533
  * @param message - The message object to render the subtitle for
6509
6534
  * @returns JSX element for the subtitle of the message item
6510
6535
  */
6511
- messageSubtitleView?: (message: CometChat.BaseMessage) => JSX.Element;
6536
+ messageSubtitleView?: (message: CometChat.BaseMessage) => JSX$1.Element;
6512
6537
  /**
6513
6538
  * Custom trailing view for message items (typically timestamp)
6514
6539
  * Use this to customize what appears at the end of message items
@@ -6516,7 +6541,7 @@ interface SearchProps {
6516
6541
  * @param message - The message object to render the trailing view for
6517
6542
  * @returns JSX element for the trailing part of the message item
6518
6543
  */
6519
- messageTrailingView?: (message: CometChat.BaseMessage) => JSX.Element;
6544
+ messageTrailingView?: (message: CometChat.BaseMessage) => JSX$1.Element;
6520
6545
  /**
6521
6546
  * Request builder for messages search
6522
6547
  * Use this to customize the message search request parameters
@@ -6528,24 +6553,24 @@ interface SearchProps {
6528
6553
  * Custom view for empty state when no search results are found
6529
6554
  * This will be displayed when search returns no results
6530
6555
  */
6531
- emptyView?: JSX.Element;
6556
+ emptyView?: JSX$1.Element;
6532
6557
  /**
6533
6558
  * Custom view for error state when search fails
6534
6559
  * This will be displayed when an error occurs during search
6535
6560
  */
6536
- errorView?: JSX.Element;
6561
+ errorView?: JSX$1.Element;
6537
6562
  /**
6538
6563
  * Custom view for loading state during search
6539
6564
  * This will be displayed while search is in progress
6540
6565
  */
6541
- loadingView?: JSX.Element;
6566
+ loadingView?: JSX$1.Element;
6542
6567
  /**
6543
6568
  * Custom view for initial state before user enters a search query
6544
6569
  * This will be displayed when the search component first loads
6545
6570
  *
6546
6571
  * @defaultValue Basic prompt encouraging user to search
6547
6572
  */
6548
- initialView?: JSX.Element;
6573
+ initialView?: JSX$1.Element;
6549
6574
  /**
6550
6575
  * Format for message sent date/time in the UI
6551
6576
  * Customize how timestamps are displayed in message items
@@ -6767,8 +6792,12 @@ interface CometChatAIAssistantChatHistoryProps {
6767
6792
  * Callback function triggered when clicked on a message
6768
6793
  */
6769
6794
  onMessageClicked?: ((message: CometChat.BaseMessage) => void) | undefined;
6795
+ /**
6796
+ * Callback function triggered when clicked on new chat button
6797
+ */
6798
+ onNewChatClicked?: ((id?: number) => void) | undefined;
6770
6799
  }
6771
6800
  declare const CometChatAIAssistantChatHistory: (props: CometChatAIAssistantChatHistoryProps) => react_jsx_runtime.JSX.Element;
6772
6801
 
6773
- export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatAIAssistantChat, CometChatAIAssistantChatHistory, CometChatAIAssistantMessageBubble, CometChatAIAssistantTools, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatErrorView, CometChatFileBubble, CometChatFrameProvider, 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, CometChatSearch, CometChatSearchBar, CometChatSearchFilter, CometChatSearchScope, CometChatStreamMessageBubble, CometChatTextBubble, CometChatTextFormatter, CometChatTextHighlightFormatter, CometChatThreadHeader, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, 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, createMessageCopy, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getAIAssistantTools, getCommonDateFormat, getLocalizedString, getStreamSpeed, getThemeMode, getThemeVariable, handleWebsocketMessage, hasLink, hasValidConversationSearchCriteria, hasValidMessageSearchCriteria, isDarkMode, isMessageSentByMe, isMissedCall, isMobileDevice, isMonthDifferent, isSafari, isSentByMe, isURL, messageStream, processFileForAudio, sanitizeCalendarObject, sanitizeHtml, setAIAssistantTools, setStreamSpeed, startStreamingMessage, stopStreamingMessage, streamingState$, useCometChatErrorHandler, useCometChatFrameContext, useDebouncedCallback, useRefSync, useStateRef, verifyCallUser };
6802
+ export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatAIAssistantChat, CometChatAIAssistantChatHistory, CometChatAIAssistantMessageBubble, CometChatAIAssistantTools, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatErrorView, CometChatFileBubble, CometChatFrameProvider, 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, CometChatSearch, CometChatSearchBar, CometChatSearchFilter, CometChatSearchScope, CometChatStreamMessageBubble, CometChatTextBubble, CometChatTextFormatter, CometChatTextHighlightFormatter, CometChatThreadHeader, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, 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, createMessageCopy, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getAIAssistantTools, getCommonDateFormat, getLocalizedString, getStreamSpeed, getThemeMode, getThemeVariable, handleWebsocketMessage, hasLink, hasValidConversationSearchCriteria, hasValidMessageSearchCriteria, isDarkMode, isMessageSentByMe, isMissedCall, isMobileDevice, isMonthDifferent, isSafari, isSentByMe, isURL, messageStream, processFileForAudio, sanitizeCalendarObject, sanitizeHtml, sanitizeHtmlStringToFragment, sanitizeToSpanOnly, setAIAssistantTools, setStreamSpeed, startStreamingMessage, stopStreamingMessage, streamingState$, useCometChatErrorHandler, useCometChatFrameContext, useDebouncedCallback, useRefSync, useStateRef, verifyCallUser };
6774
6803
  export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, IStreamData, LocalizationSettings, PollOptions };