@cometchat/chat-uikit-react 6.1.2 → 6.2.0

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 (61) hide show
  1. package/dist/assets/Profile.png +0 -0
  2. package/dist/assets/chat-history.svg +3 -0
  3. package/dist/assets/copy-text.svg +3 -0
  4. package/dist/assets/new-chat.svg +3 -0
  5. package/dist/assets/right-arrow.svg +3 -0
  6. package/dist/assets/send-message.svg +3 -0
  7. package/dist/assets/stop-message.svg +3 -0
  8. package/dist/assets/warning-small.svg +0 -0
  9. package/dist/index.d.ts +258 -34
  10. package/dist/index.js +9 -1
  11. package/dist/index.js.map +1 -1
  12. package/dist/styles/CometChatAIAssistantChat.css +456 -0
  13. package/dist/styles/CometChatAIAssistantChatHistory.css +175 -0
  14. package/dist/styles/CometChatAIAssistantMessageBubble.css +86 -0
  15. package/dist/styles/CometChatConversations.css +3 -0
  16. package/dist/styles/CometChatErrorView.css +22 -0
  17. package/dist/styles/CometChatMessageComposer.css +9 -9
  18. package/dist/styles/CometChatMessageHeader.css +2 -4
  19. package/dist/styles/CometChatMessageList.css +4 -4
  20. package/dist/styles/CometChatStreamMessageBubble.css +154 -0
  21. package/dist/styles/CometChatToolCallArgumentBubble.css +100 -0
  22. package/dist/styles/CometChatToolCallResultBubble.css +91 -0
  23. package/dist/styles/components/CometChatAIAssistantChat.css +456 -0
  24. package/dist/styles/components/CometChatAIAssistantChatHistory.css +175 -0
  25. package/dist/styles/components/CometChatAIAssistantMessageBubble.css +86 -0
  26. package/dist/styles/components/CometChatConversations.css +3 -0
  27. package/dist/styles/components/CometChatErrorView.css +22 -0
  28. package/dist/styles/components/CometChatMessageComposer.css +9 -9
  29. package/dist/styles/components/CometChatMessageHeader.css +2 -4
  30. package/dist/styles/components/CometChatMessageList.css +4 -4
  31. package/dist/styles/components/CometChatStreamMessageBubble.css +154 -0
  32. package/dist/styles/components/CometChatToolCallArgumentBubble.css +100 -0
  33. package/dist/styles/components/CometChatToolCallResultBubble.css +91 -0
  34. package/dist/styles/components/index.css +8 -2
  35. package/dist/styles/css-variables.css +5 -0
  36. package/dist/styles/index.css +8 -2
  37. package/dist/types/components/BaseComponents/CometChatAIAssistantMessageBubble/CometChatAIAssistantMessageBubble.d.ts +6 -0
  38. package/dist/types/components/BaseComponents/CometChatErrorView/CometChatErrorView.d.ts +9 -0
  39. package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +7 -0
  40. package/dist/types/components/BaseComponents/CometChatSendButtonView/CometChatSendButtonView.d.ts +4 -0
  41. package/dist/types/components/BaseComponents/CometChatStreamMessageBubble/CometChatStreamMessageBubble.d.ts +6 -0
  42. package/dist/types/components/BaseComponents/CometChatToolCallArgumentBubble/CometChatToolCallArgumentBubble.d.ts +6 -0
  43. package/dist/types/components/BaseComponents/CometChatToolCallResultBubble/CometChatToolCallResultBubble.d.ts +6 -0
  44. package/dist/types/components/CometChatAIAssistantChat/CometChatAIAssistantChat.d.ts +30 -0
  45. package/dist/types/components/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.d.ts +24 -0
  46. package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +5 -0
  47. package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +1 -0
  48. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +5 -0
  49. package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +3 -2
  50. package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
  51. package/dist/types/constants/CometChatUIKitConstants.d.ts +15 -0
  52. package/dist/types/events/CometChatMessageEvents.d.ts +3 -0
  53. package/dist/types/index.d.ts +7 -0
  54. package/dist/types/modals/CometChatAIAssistantTools.d.ts +47 -0
  55. package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -1
  56. package/dist/types/services/stream-message.service.d.ts +44 -0
  57. package/dist/types/utils/DataSource.d.ts +9 -1
  58. package/dist/types/utils/DataSourceDecorator.d.ts +9 -1
  59. package/dist/types/utils/MessagesDataSource.d.ts +15 -6
  60. package/dist/types/utils/util.d.ts +2 -0
  61. package/package.json +6 -3
Binary file
@@ -0,0 +1,3 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18.9166 9.58333L17.2505 11.25L15.5833 9.58333M17.4542 10.8333C17.4845 10.5597 17.5 10.2817 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5C12.3561 17.5 14.4584 16.4136 15.8333 14.7144M10 5.83333V10L12.5 11.6667" stroke="#A4A7AE" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9 6H13.7333C15.2268 6 15.9735 6 16.544 6.29065C17.0457 6.54631 17.4537 6.95426 17.7094 7.45603C18 8.02646 18 8.77319 18 10.2667V15M8.13333 18H13.5333C14.2801 18 14.6534 18 14.9387 17.8547C15.1895 17.7268 15.3935 17.5229 15.5213 17.272C15.6667 16.9868 15.6667 16.6134 15.6667 15.8667V10.4667C15.6667 9.71993 15.6667 9.34656 15.5213 9.06135C15.3935 8.81046 15.1895 8.60649 14.9387 8.47866C14.6534 8.33333 14.2801 8.33333 13.5333 8.33333H8.13333C7.3866 8.33333 7.01323 8.33333 6.72801 8.47866C6.47713 8.60649 6.27316 8.81046 6.14532 9.06135C6 9.34656 6 9.71993 6 10.4667V15.8667C6 16.6134 6 16.9868 6.14532 17.272C6.27316 17.5229 6.47713 17.7268 6.72801 17.8547C7.01323 18 7.3866 18 8.13333 18Z" stroke="#535862" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11.1668 12.8332H5.83325C5.59725 12.8332 5.39933 12.7532 5.2395 12.593C5.07983 12.4327 5 12.234 5 11.997C5 11.7602 5.07983 11.5626 5.2395 11.4043C5.39933 11.2459 5.59725 11.1667 5.83325 11.1667H11.1668V5.83325C11.1668 5.59725 11.2468 5.39933 11.407 5.2395C11.5673 5.07983 11.766 5 12.003 5C12.2398 5 12.4374 5.07983 12.5957 5.2395C12.7541 5.39933 12.8333 5.59725 12.8333 5.83325V11.1667H18.1667C18.4028 11.1667 18.6007 11.2468 18.7605 11.407C18.9202 11.5673 19 11.766 19 12.003C19 12.2398 18.9202 12.4374 18.7605 12.5957C18.6007 12.7541 18.4028 12.8332 18.1667 12.8332H12.8333V18.1667C12.8333 18.4028 12.7532 18.6007 12.593 18.7605C12.4327 18.9202 12.234 19 11.997 19C11.7602 19 11.5626 18.9202 11.4043 18.7605C11.2459 18.6007 11.1668 18.4028 11.1668 18.1667V12.8332Z" fill="#A1A1A1"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M2.5 6H9.5M9.5 6L6 2.5M9.5 6L6 9.5" stroke="#717680" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10 16.6667V3.33334M10 3.33334L5 8.33334M10 3.33334L15 8.33334" stroke="white" stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M2 5.2C2 4.0799 2 3.51984 2.21799 3.09202C2.40973 2.71569 2.71569 2.40973 3.09202 2.21799C3.51984 2 4.0799 2 5.2 2H10.8C11.9201 2 12.4802 2 12.908 2.21799C13.2843 2.40973 13.5903 2.71569 13.782 3.09202C14 3.51984 14 4.0799 14 5.2V10.8C14 11.9201 14 12.4802 13.782 12.908C13.5903 13.2843 13.2843 13.5903 12.908 13.782C12.4802 14 11.9201 14 10.8 14H5.2C4.0799 14 3.51984 14 3.09202 13.782C2.71569 13.5903 2.40973 13.2843 2.21799 12.908C2 12.4802 2 11.9201 2 10.8V5.2Z" fill="white"/>
3
+ </svg>
File without changes
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as React from 'react';
2
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 * as rxjs from 'rxjs';
5
6
  import { Subject } from 'rxjs';
6
7
 
7
8
  /**
@@ -1283,7 +1284,7 @@ declare class CometChatMessageTemplate {
1283
1284
  * By default, it displays the receipt and the timestamp.
1284
1285
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
1285
1286
  */
1286
- statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject) => Element | JSX.Element | null) | null;
1287
+ statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean) => Element | JSX.Element | null) | null;
1287
1288
  /**
1288
1289
  * List of available actions that any user can perform on a message, like reacting,
1289
1290
  * editing or deleting a message.
@@ -1409,11 +1410,11 @@ declare class MessagesDataSource implements DataSource {
1409
1410
  * @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
1410
1411
  * @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
1411
1412
  */
1412
- getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipts?: boolean) => JSX.Element | null;
1413
+ getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipts?: boolean, showError?: boolean) => JSX.Element | null;
1413
1414
  /**
1414
- * Function for displaying the timestamp next to messages.
1415
- * @returns CalendarObject
1416
- */
1415
+ * Function for displaying the timestamp next to messages.
1416
+ * @returns CalendarObject
1417
+ */
1417
1418
  getMessageSentAtDateFormat(messageSentAtDateTimeFormat?: CalendarObject): {
1418
1419
  today: string;
1419
1420
  yesterday: string;
@@ -1432,9 +1433,18 @@ declare class MessagesDataSource implements DataSource {
1432
1433
  * @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
1433
1434
  */
1434
1435
  getBubbleStatusInfoDate: (item: CometChat.BaseMessage, messageSentAtDateTimeFormat?: CalendarObject) => JSX.Element | null;
1435
- getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject) => react_jsx_runtime.JSX.Element | null;
1436
+ getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean) => react_jsx_runtime.JSX.Element | null;
1436
1437
  getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
1437
1438
  getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
1439
+ getAgentAssistantMessageBubble(message: CometChat.AIAssistantMessage): react_jsx_runtime.JSX.Element;
1440
+ getToolArgumentsMessageBubble(message: CometChat.AIToolArgumentMessage): react_jsx_runtime.JSX.Element;
1441
+ getToolResultsMessageBubble(message: CometChat.AIToolResultMessage): react_jsx_runtime.JSX.Element;
1442
+ handleCopy: (message: CometChat.AIAssistantMessage) => void;
1443
+ getAgentAssistantMessageTemplate(): CometChatMessageTemplate;
1444
+ getToolResultsMessageTemplate(): CometChatMessageTemplate;
1445
+ getToolArgumentsMessageTemplate(): CometChatMessageTemplate;
1446
+ getStreamMessageBubble(message: CometChat.CustomMessage): react_jsx_runtime.JSX.Element;
1447
+ getStreamMessageTemplate(): CometChatMessageTemplate;
1438
1448
  getAudioMessageTemplate(): CometChatMessageTemplate;
1439
1449
  getVideoMessageTemplate(): CometChatMessageTemplate;
1440
1450
  getImageMessageTemplate(): CometChatMessageTemplate;
@@ -1453,7 +1463,7 @@ declare class MessagesDataSource implements DataSource {
1453
1463
  }): Array<string>;
1454
1464
  getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
1455
1465
  getId(): string;
1456
- getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
1466
+ getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
1457
1467
  getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1458
1468
  getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1459
1469
  getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
@@ -1996,12 +2006,16 @@ declare abstract class DataSource {
1996
2006
  abstract getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
1997
2007
  abstract getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
1998
2008
  abstract getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX.Element | null;
1999
- abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject): Element | JSX.Element | null;
2009
+ abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean): Element | JSX.Element | null;
2000
2010
  abstract getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, otherParams: Object | undefined): Element | JSX.Element;
2001
2011
  abstract getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2002
2012
  abstract getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2003
2013
  abstract getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2004
2014
  abstract getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2015
+ abstract getAgentAssistantMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2016
+ abstract getToolArgumentsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2017
+ abstract getToolResultsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2018
+ abstract getStreamMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2005
2019
  abstract getTextMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2006
2020
  abstract getImageMessageTemplate(): CometChatMessageTemplate;
2007
2021
  abstract getVideoMessageTemplate(): CometChatMessageTemplate;
@@ -2019,6 +2033,10 @@ declare abstract class DataSource {
2019
2033
  abstract getId(): string;
2020
2034
  abstract getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2021
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;
2022
2040
  abstract getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
2023
2041
  abstract getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2024
2042
  abstract getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
@@ -2199,14 +2217,18 @@ declare abstract class DataSourceDecorator implements DataSource {
2199
2217
  getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2200
2218
  getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2201
2219
  getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2202
- getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject): JSX.Element | Element | null;
2203
- getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): JSX.Element | Element | null;
2204
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX.Element | Element;
2205
- getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2206
- getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2207
- getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2208
- getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
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;
2209
2227
  getTextMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2228
+ getAgentAssistantMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2229
+ getToolArgumentsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2230
+ getToolResultsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2231
+ getStreamMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2210
2232
  getImageMessageTemplate(): CometChatMessageTemplate;
2211
2233
  getVideoMessageTemplate(): CometChatMessageTemplate;
2212
2234
  getAudioMessageTemplate(): CometChatMessageTemplate;
@@ -2221,28 +2243,32 @@ declare abstract class DataSourceDecorator implements DataSource {
2221
2243
  getAllMessageCategories(additionalConfigurations?: Object | undefined): string[];
2222
2244
  getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
2223
2245
  getId(): string;
2224
- getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): JSX.Element | Element;
2225
- getGroupActionBubble(message: CometChat.BaseMessage): JSX.Element | Element;
2226
- getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX.Element | Element;
2227
- getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): JSX.Element | Element;
2228
- getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): JSX.Element | Element;
2229
- getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX.Element | Element;
2230
- getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX.Element | Element;
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;
2231
2257
  getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: additionalParams): string;
2232
2258
  getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
2233
2259
  getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
2234
2260
  getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
2235
2261
  getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
2236
2262
  getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: Object): string;
2237
- getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2238
- getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2239
- getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
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;
2240
2266
  getFormMessageTemplate(): CometChatMessageTemplate;
2241
2267
  getSchedulerMessageTemplate(): CometChatMessageTemplate;
2242
2268
  getCardMessageTemplate(): CometChatMessageTemplate;
2243
- getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2244
- getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2245
- getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
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;
2246
2272
  }
2247
2273
 
2248
2274
  interface ListProps<T> {
@@ -2384,6 +2410,13 @@ interface ListProps<T> {
2384
2410
  * @defaultValue `false`
2385
2411
  */
2386
2412
  showScrollbar?: boolean;
2413
+ /**
2414
+ * Set the scrollbar to the bottom-most position of the scrollable list in Agent Chat
2415
+ *
2416
+ * @remarks
2417
+ *
2418
+ */
2419
+ scrollToEnd?: boolean;
2387
2420
  }
2388
2421
  /**
2389
2422
  * Renders a list component that can display a title, search bar,
@@ -2790,7 +2823,7 @@ declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
2790
2823
  * @param {any} [additionalConfigurations] - Additional configurations for formatting.
2791
2824
  * @returns {JSX.Element} The JSX element representing the message content view.
2792
2825
  */
2793
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
2826
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element | React__default.JSX.Element;
2794
2827
  /**
2795
2828
  * Retrieves the style for the link preview wrapper.
2796
2829
  * @returns {object} The style object for the link preview wrapper.
@@ -2884,7 +2917,7 @@ declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
2884
2917
  * @param {any} [additionalConfigurations] - Optional additional configurations for the content view.
2885
2918
  * @returns {JSX.Element} The content view for the text message.
2886
2919
  */
2887
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): react_jsx_runtime.JSX.Element | Element;
2920
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): Element | React.JSX.Element;
2888
2921
  /**
2889
2922
  * Checks if an option with the specified ID already exists in the options list.
2890
2923
  *
@@ -3227,7 +3260,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
3227
3260
  * @param {ImageBubbleStyle} [style] - Optional style for the image bubble.
3228
3261
  * @returns {React.ReactNode} The rendered image message bubble.
3229
3262
  */
3230
- getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): React.JSX.Element | Element;
3263
+ getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): Element | React.JSX.Element;
3231
3264
  /**
3232
3265
  * Provides the video message bubble with support for thumbnail generation.
3233
3266
  * It checks for a thumbnail URL in the message metadata and uses it if available.
@@ -3238,7 +3271,7 @@ declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator
3238
3271
  * @param {Function} [onClick] - Optional click event handler.
3239
3272
  * @returns {React.ReactNode} The rendered video message bubble.
3240
3273
  */
3241
- getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): React.JSX.Element | Element;
3274
+ getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | React.JSX.Element;
3242
3275
  }
3243
3276
 
3244
3277
  declare class CallingExtensionDecorator extends DataSourceDecorator {
@@ -4135,6 +4168,11 @@ interface MessageComposerProps {
4135
4168
  * @defaultValue `false`
4136
4169
  */
4137
4170
  showScrollbar?: boolean;
4171
+ /**
4172
+ * The placeholder text to display in the message input field when it is empty.
4173
+ * @defaultValue ""
4174
+ */
4175
+ placeholderText?: string;
4138
4176
  }
4139
4177
  /**
4140
4178
  * Renders a message composer to send messages to a user or group of a CometChat App
@@ -4477,6 +4515,11 @@ interface MessageListProps {
4477
4515
  * @defaultValue `false`
4478
4516
  */
4479
4517
  showScrollbar?: boolean;
4518
+ /**
4519
+ * Toggles AI Agent functionality.
4520
+ * @defaultValue `false`
4521
+ */
4522
+ isAgentChat?: boolean;
4480
4523
  }
4481
4524
  declare const CometChatMessageList: (props: MessageListProps) => react_jsx_runtime.JSX.Element;
4482
4525
 
@@ -4689,6 +4732,7 @@ declare class CometChatUIKitConstants {
4689
4732
  action: string;
4690
4733
  call: string;
4691
4734
  interactive: string;
4735
+ agentic: _cometchat_chat_sdk_javascript.MessageCategory.AGENTIC;
4692
4736
  }>;
4693
4737
  static MessageTypes: Readonly<{
4694
4738
  text: string;
@@ -4703,6 +4747,9 @@ declare class CometChatUIKitConstants {
4703
4747
  card: "card";
4704
4748
  customInteractive: "customInteractive";
4705
4749
  scheduler: "scheduler";
4750
+ assistant: string;
4751
+ toolArguments: string;
4752
+ toolResults: string;
4706
4753
  }>;
4707
4754
  static groupMemberAction: Readonly<{
4708
4755
  ROLE: "role";
@@ -4831,6 +4878,17 @@ declare class CometChatUIKitConstants {
4831
4878
  changeScope: "changeScope";
4832
4879
  groupMembers: "groupMembers";
4833
4880
  }>;
4881
+ static streamMessageTypes: Readonly<{
4882
+ run_started: string;
4883
+ text_message_start: string;
4884
+ text_message_content: string;
4885
+ text_message_end: string;
4886
+ run_finished: string;
4887
+ tool_call_start: string;
4888
+ tool_call_end: string;
4889
+ tool_call_args: string;
4890
+ tool_call_result: string;
4891
+ }>;
4834
4892
  }
4835
4893
 
4836
4894
  declare class CometChatUtilityConstants {
@@ -5025,6 +5083,9 @@ declare class CometChatMessageEvents {
5025
5083
  static onFormMessageReceived: Subject<CometChat.InteractiveMessage>;
5026
5084
  static onCardMessageReceived: Subject<CometChat.InteractiveMessage>;
5027
5085
  static onSchedulerMessageReceived: Subject<CometChat.InteractiveMessage>;
5086
+ static onAIAssistantMessageReceived: Subject<CometChat.AIAssistantMessage>;
5087
+ static onAIToolResultReceived: Subject<CometChat.AIToolResultMessage>;
5088
+ static onAIToolArgumentsReceived: Subject<CometChat.AIToolArgumentMessage>;
5028
5089
  }
5029
5090
  /**
5030
5091
  * Interface for message-related events
@@ -5316,6 +5377,14 @@ interface ListItemProps {
5316
5377
  }
5317
5378
  declare const CometChatListItem: (props: ListItemProps) => react_jsx_runtime.JSX.Element;
5318
5379
 
5380
+ interface CometChatErrorViewProps {
5381
+ /**
5382
+ * Custom error message to display
5383
+ */
5384
+ message: string;
5385
+ }
5386
+ declare const CometChatErrorView: React__default.FC<CometChatErrorViewProps>;
5387
+
5319
5388
  interface ImageBubbleProps {
5320
5389
  src: string;
5321
5390
  placeholderImage?: string;
@@ -6029,6 +6098,8 @@ declare const useDebouncedCallback: (callback: () => void, delay: number) => {
6029
6098
  debouncedCallback: () => void;
6030
6099
  cleanup: () => void;
6031
6100
  };
6101
+ declare function createMessageCopy(msg: CometChat.AIAssistantBaseEvent, user: CometChat.User, category?: string, type?: string): CometChat.BaseMessage;
6102
+ declare function isDarkMode(): boolean;
6032
6103
 
6033
6104
  /**
6034
6105
  * Utility class for managing local storage with change detection capabilities.
@@ -6546,5 +6617,158 @@ interface CometChatFrameProviderProps {
6546
6617
  declare const useCometChatFrameContext: () => CometChatFrameContextValue;
6547
6618
  declare const CometChatFrameProvider: React__default.FC<CometChatFrameProviderProps>;
6548
6619
 
6549
- export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, 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, 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, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getCommonDateFormat, getLocalizedString, getThemeMode, getThemeVariable, hasLink, hasValidConversationSearchCriteria, hasValidMessageSearchCriteria, isMessageSentByMe, isMissedCall, isMobileDevice, isMonthDifferent, isSafari, isSentByMe, isURL, processFileForAudio, sanitizeCalendarObject, sanitizeHtml, useCometChatErrorHandler, useCometChatFrameContext, useDebouncedCallback, useRefSync, useStateRef, verifyCallUser };
6550
- export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, LocalizationSettings, PollOptions };
6620
+ /**
6621
+ * Type definition for toolkit action functions
6622
+ * Each function can return any value or a Promise for async operations
6623
+ */
6624
+ type CometChatAIAssistantToolsFunction = (args: any) => void;
6625
+ /**
6626
+ * Interface for the toolkit actions map
6627
+ * Key: string (function name)
6628
+ * Value: CometChatAIAssistantToolsFunction
6629
+ */
6630
+ interface ICometChatAIAssistantToolsMap {
6631
+ [functionName: string]: CometChatAIAssistantToolsFunction;
6632
+ }
6633
+ /**
6634
+ * CometChatAIAssistantTools class for managing action functions
6635
+ *
6636
+ * Usage:
6637
+ * ```typescript
6638
+ * const toolkit = new CometChatAIAssistantTools({
6639
+ * // Weather related functions
6640
+ * getCurrentWeather: (params: {location: string}) => {
6641
+ * // Implementation for getting current weather
6642
+ * fetch(`/api/weather?location=${params.location}`);
6643
+ * },
6644
+ * });
6645
+ *
6646
+ * ```
6647
+ */
6648
+ declare class CometChatAIAssistantTools {
6649
+ private actionsMap;
6650
+ [functionName: string]: any;
6651
+ constructor(actions: ICometChatAIAssistantToolsMap);
6652
+ /**
6653
+ * Get the implementation of a specific action
6654
+ *
6655
+ * @param functionName - Name of the function
6656
+ * @returns The function implementation or undefined if not found
6657
+ */
6658
+ getAction(functionName: string): CometChatAIAssistantToolsFunction | undefined;
6659
+ /**
6660
+ * Get a copy of all actions
6661
+ *
6662
+ * @returns A copy of the actions map
6663
+ */
6664
+ getActions(): ICometChatAIAssistantToolsMap;
6665
+ }
6666
+
6667
+ interface AIAssistantChatProps {
6668
+ hideChatHistory?: boolean;
6669
+ hideNewChat?: boolean;
6670
+ user: CometChat.User;
6671
+ onBackButtonClicked?: () => void;
6672
+ onCloseButtonClicked?: () => void;
6673
+ showBackButton?: boolean;
6674
+ showCloseButton?: boolean;
6675
+ headerItemView?: React__default.JSX.Element;
6676
+ headerTitleView?: React__default.JSX.Element;
6677
+ headerSubtitleView?: React__default.JSX.Element;
6678
+ headerLeadingView?: React__default.JSX.Element;
6679
+ headerTrailingView?: React__default.JSX.Element;
6680
+ headerAuxiliaryButtonView?: React__default.JSX.Element;
6681
+ streamingSpeed?: number;
6682
+ suggestedMessages?: Array<string>;
6683
+ hideSuggestedMessages?: boolean;
6684
+ emptyView?: React__default.JSX.Element;
6685
+ loadingView?: React__default.JSX.Element;
6686
+ errorView?: React__default.JSX.Element;
6687
+ onError?: (e: CometChat.CometChatException) => void;
6688
+ emptyChatGreetingView?: React__default.JSX.Element;
6689
+ emptyChatIntroMessageView?: React__default.JSX.Element;
6690
+ emptyChatImageView?: React__default.JSX.Element;
6691
+ aiAssistantTools?: CometChatAIAssistantTools;
6692
+ }
6693
+ declare const CometChatAIAssistantChat: React__default.MemoExoticComponent<(props: AIAssistantChatProps) => react_jsx_runtime.JSX.Element>;
6694
+
6695
+ /**
6696
+ * Interface representing streaming message data that contains both the original message event
6697
+ * and the accumulated streamed text content that has been processed so far.
6698
+ */
6699
+ interface IStreamData {
6700
+ message: CometChat.AIAssistantBaseEvent;
6701
+ streamedMessages?: string;
6702
+ }
6703
+ /**
6704
+ * Observable stream for streaming state changes
6705
+ */
6706
+ declare const streamingState$: rxjs.Observable<boolean>;
6707
+ /**
6708
+ * Observable stream for message updates
6709
+ */
6710
+ declare const messageStream: rxjs.Observable<IStreamData>;
6711
+ /**
6712
+ * Starts a new streaming message session
6713
+ * Resets accumulated content and initializes the message processor
6714
+ */
6715
+ declare const startStreamingMessage: () => void;
6716
+ /**
6717
+ * Handles incoming websocket messages by adding them to the processing queue
6718
+ * @param msg - The message update to process
6719
+ */
6720
+ declare const handleWebsocketMessage: (msg: CometChat.AIAssistantBaseEvent) => void;
6721
+ /**
6722
+ * Sets the typing speed delay for text message content chunks
6723
+ * @param delay - The delay in milliseconds between text content chunks (default: 80ms)
6724
+ */
6725
+ declare const setStreamSpeed: (delay: number) => void;
6726
+ /**
6727
+ * Gets the current typing speed delay for text message content chunks
6728
+ * @returns The current delay in milliseconds
6729
+ */
6730
+ declare const getStreamSpeed: () => number;
6731
+ declare const getAIAssistantTools: () => CometChatAIAssistantTools;
6732
+ declare const setAIAssistantTools: (actions: CometChatAIAssistantTools) => void;
6733
+ /**
6734
+ * Stops the streaming message session and cleans up resources
6735
+ * Unsubscribes from the message processor and resets accumulated content
6736
+ */
6737
+ declare const stopStreamingMessage: () => void;
6738
+
6739
+ interface CometChatStreamMessageBubbleProps {
6740
+ message?: CometChat.AIAssistantBaseEvent;
6741
+ }
6742
+ declare const CometChatStreamMessageBubble: React__default.FC<CometChatStreamMessageBubbleProps>;
6743
+
6744
+ interface CometChatAIAssistantMessageBubbleProps {
6745
+ message?: CometChat.AIAssistantMessage;
6746
+ }
6747
+ declare const CometChatAIAssistantMessageBubble: React__default.FC<CometChatAIAssistantMessageBubbleProps>;
6748
+
6749
+ interface CometChatAIAssistantChatHistoryProps {
6750
+ /**
6751
+ * A `CometChat.User` object representing the participant of the chat whose message history is displayed.
6752
+ */
6753
+ user?: CometChat.User;
6754
+ /**
6755
+ * A `CometChat.Group` object representing the group whose message history is displayed.
6756
+ */
6757
+ group?: CometChat.Group;
6758
+ /**
6759
+ * Callback function triggered when an error occurs during message fetching.
6760
+ */
6761
+ onError?: ((error: CometChat.CometChatException) => void) | null;
6762
+ /**
6763
+ * Callback function triggered when clicked on closeIcon button
6764
+ */
6765
+ onClose?: (() => void) | undefined;
6766
+ /**
6767
+ * Callback function triggered when clicked on a message
6768
+ */
6769
+ onMessageClicked?: ((message: CometChat.BaseMessage) => void) | undefined;
6770
+ }
6771
+ declare const CometChatAIAssistantChatHistory: (props: CometChatAIAssistantChatHistoryProps) => react_jsx_runtime.JSX.Element;
6772
+
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 };
6774
+ export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, IStreamData, LocalizationSettings, PollOptions };