@cometchat/chat-uikit-react 6.1.1 → 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 (70) 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/search_message_icon.svg +8 -14
  7. package/dist/assets/send-message.svg +3 -0
  8. package/dist/assets/stop-message.svg +3 -0
  9. package/dist/index.d.ts +275 -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/CometChatOutgoingCall.css +10 -1
  21. package/dist/styles/CometChatSearch.css +18 -11
  22. package/dist/styles/CometChatStreamMessageBubble.css +154 -0
  23. package/dist/styles/CometChatToolCallArgumentBubble.css +100 -0
  24. package/dist/styles/CometChatToolCallResultBubble.css +91 -0
  25. package/dist/styles/components/CometChatAIAssistantChat.css +456 -0
  26. package/dist/styles/components/CometChatAIAssistantChatHistory.css +175 -0
  27. package/dist/styles/components/CometChatAIAssistantMessageBubble.css +86 -0
  28. package/dist/styles/components/CometChatConversations.css +3 -0
  29. package/dist/styles/components/CometChatErrorView.css +22 -0
  30. package/dist/styles/components/CometChatMessageComposer.css +9 -9
  31. package/dist/styles/components/CometChatMessageHeader.css +2 -4
  32. package/dist/styles/components/CometChatMessageList.css +4 -4
  33. package/dist/styles/components/CometChatOutgoingCall.css +10 -1
  34. package/dist/styles/components/CometChatSearch.css +18 -11
  35. package/dist/styles/components/CometChatStreamMessageBubble.css +154 -0
  36. package/dist/styles/components/CometChatToolCallArgumentBubble.css +100 -0
  37. package/dist/styles/components/CometChatToolCallResultBubble.css +91 -0
  38. package/dist/styles/components/index.css +8 -2
  39. package/dist/styles/css-variables.css +5 -0
  40. package/dist/styles/index.css +8 -2
  41. package/dist/types/components/BaseComponents/CometChatAIAssistantMessageBubble/CometChatAIAssistantMessageBubble.d.ts +6 -0
  42. package/dist/types/components/BaseComponents/CometChatAudioBubble/src/renderer.d.ts +3 -1
  43. package/dist/types/components/BaseComponents/CometChatAudioBubble/src/wavesurfer.d.ts +4 -0
  44. package/dist/types/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +1 -0
  45. package/dist/types/components/BaseComponents/CometChatErrorView/CometChatErrorView.d.ts +9 -0
  46. package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +7 -0
  47. package/dist/types/components/BaseComponents/CometChatSendButtonView/CometChatSendButtonView.d.ts +4 -0
  48. package/dist/types/components/BaseComponents/CometChatStreamMessageBubble/CometChatStreamMessageBubble.d.ts +6 -0
  49. package/dist/types/components/BaseComponents/CometChatToolCallArgumentBubble/CometChatToolCallArgumentBubble.d.ts +6 -0
  50. package/dist/types/components/BaseComponents/CometChatToolCallResultBubble/CometChatToolCallResultBubble.d.ts +6 -0
  51. package/dist/types/components/CometChatAIAssistantChat/CometChatAIAssistantChat.d.ts +30 -0
  52. package/dist/types/components/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.d.ts +24 -0
  53. package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +1 -0
  54. package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +5 -0
  55. package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +3 -0
  56. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +5 -0
  57. package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +3 -2
  58. package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
  59. package/dist/types/constants/CometChatUIKitConstants.d.ts +15 -0
  60. package/dist/types/context/CometChatFrameContext.d.ts +14 -0
  61. package/dist/types/events/CometChatMessageEvents.d.ts +3 -0
  62. package/dist/types/index.d.ts +8 -0
  63. package/dist/types/modals/CometChatAIAssistantTools.d.ts +47 -0
  64. package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -1
  65. package/dist/types/services/stream-message.service.d.ts +44 -0
  66. package/dist/types/utils/DataSource.d.ts +9 -1
  67. package/dist/types/utils/DataSourceDecorator.d.ts +9 -1
  68. package/dist/types/utils/MessagesDataSource.d.ts +15 -6
  69. package/dist/types/utils/util.d.ts +2 -0
  70. 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>
@@ -1,14 +1,8 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120" fill="none">
2
- <g clip-path="url(#clip0_13442_134983)">
3
- <path opacity="0.2" d="M105 45.2598H97.5V64.0098C97.5 74.3635 89.1037 82.7598 78.75 82.7598H45V90.2598C45 98.5435 51.7162 105.26 60 105.26H82.5L98.85 118.872C100.44 120.196 102.806 119.982 104.13 118.392C104.692 117.717 105 116.866 105 115.985V105.26C113.284 105.26 120 98.5435 120 90.2598V60.2598C120 51.976 113.284 45.2598 105 45.2598Z" fill="#DCDCDC"/>
4
- <path opacity="0.2" d="M75 0.259766H15C6.71625 0.259766 0 6.97602 0 15.2598V60.2598C0 68.5435 6.71625 75.2598 15 75.2598V89.6223C15 91.6923 16.68 93.3723 18.75 93.3723C19.6425 93.3723 20.5088 93.0535 21.1875 92.4723L41.25 75.2598H75C83.2838 75.2598 90 68.5435 90 60.2598V15.2598C90 6.97602 83.2838 0.259766 75 0.259766ZM27.7875 43.0473C27.4575 43.411 27.0788 43.726 26.6625 43.9848C26.2575 44.2585 25.8337 44.4985 25.3875 44.6973C24.9225 44.8698 24.4462 45.0085 23.9625 45.1098C23.4825 45.2148 22.9912 45.2635 22.5 45.2598C18.3563 45.2598 15 41.9035 15 37.7598C14.9213 33.6198 18.2138 30.196 22.3538 30.1173C22.8937 30.106 23.4338 30.1548 23.9625 30.2598C24.4462 30.361 24.9225 30.4998 25.3875 30.6723C25.8412 30.8598 26.2688 31.096 26.6625 31.3848C27.0713 31.6435 27.4462 31.9435 27.7875 32.2848C29.2425 33.7323 30.0413 35.7085 30 37.7598C29.9925 39.7473 29.1975 41.6485 27.7875 43.0473ZM50.2875 43.0473C48.8887 44.4573 46.9875 45.2523 45 45.2598C44.5125 45.316 44.025 45.316 43.5375 45.2598C43.0537 45.1585 42.5775 45.0198 42.1125 44.8473C41.6662 44.6485 41.2425 44.4085 40.8375 44.1348C40.4175 43.8648 40.0275 43.5535 39.675 43.1973C38.2425 41.7535 37.4588 39.7923 37.5 37.7598C37.4437 37.2723 37.4437 36.7848 37.5 36.2973C37.6012 35.8135 37.74 35.3373 37.9125 34.8723C38.1 34.4185 38.3363 33.991 38.625 33.5973C38.8913 33.1848 39.195 32.7948 39.525 32.4348C39.885 32.1048 40.275 31.801 40.6875 31.5348C41.0813 31.246 41.5087 31.0098 41.9625 30.8223C42.4725 30.5898 42.9975 30.4023 43.5375 30.2598C47.5987 29.4498 51.5475 32.0898 52.3575 36.151C52.4625 36.6798 52.5112 37.2198 52.5 37.7598C52.5 39.7398 51.72 41.641 50.325 43.0473H50.2875ZM72.7875 43.0473C72.4575 43.411 72.0788 43.726 71.6625 43.9848C71.2575 44.2585 70.8338 44.4985 70.3875 44.6973C69.9225 44.8698 69.4463 45.0085 68.9625 45.1098C68.4825 45.2148 67.9912 45.2635 67.5 45.2598C63.3563 45.2598 60 41.9035 60 37.7598C59.9212 33.6198 63.2138 30.196 67.3538 30.1173C67.8938 30.106 68.4337 30.1548 68.9625 30.2598C69.4463 30.361 69.9225 30.4998 70.3875 30.6723C70.8413 30.8598 71.2688 31.096 71.6625 31.3848C72.0713 31.6435 72.4463 31.9435 72.7875 32.2848C74.2425 33.7323 75.0413 35.7085 75 37.7598C74.9925 39.7473 74.1975 41.6485 72.7875 43.0473Z" fill="#DCDCDC"/>
5
- <path d="M47.7349 18.3633C41.9551 18.3602 36.3043 20.0713 31.497 23.2801C26.6898 26.4889 22.9422 31.0513 20.7283 36.3902C18.5143 41.7291 17.9334 47.6047 19.0591 53.2738C20.1847 58.9429 22.9664 64.1508 27.0522 68.2389C31.138 72.3269 36.3445 75.1114 42.013 76.2401C47.6815 77.3688 53.5574 76.7911 58.8975 74.58C64.2376 72.3688 68.802 68.6237 72.0134 63.8182C75.2248 59.0127 76.9389 53.3628 76.9389 47.583C76.9389 39.8362 73.8626 32.4064 68.3862 26.9271C62.9099 21.4478 55.4817 18.3674 47.7349 18.3633Z" fill="white" stroke="#A1A1A1" stroke-width="1.57011" stroke-linecap="round" stroke-linejoin="round"/>
6
- <path d="M68.5233 68.7793L76.311 76.567" stroke="#A1A1A1" stroke-width="1.57011" stroke-linecap="round" stroke-linejoin="round"/>
7
- <path d="M75.4307 72.7835L73.0113 75.3144C71.9267 76.4489 71.9672 78.2479 73.1017 79.3324L94.0982 99.4041C95.2328 100.489 97.0317 100.448 98.1163 99.3137L100.536 96.7827C101.62 95.6482 101.58 93.8493 100.445 92.7647L79.4487 72.693C78.3142 71.6084 76.5153 71.6489 75.4307 72.7835Z" fill="#A1A1A1"/>
8
- </g>
9
- <defs>
10
- <clipPath id="clip0_13442_134983">
11
- <rect width="120" height="120" fill="white"/>
12
- </clipPath>
13
- </defs>
14
- </svg>
1
+ <svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="path-1-inside-1_13439_125917" fill="white">
3
+ <path d="M47.7349 18.3633C41.9551 18.3602 36.3043 20.0713 31.497 23.2801C26.6898 26.4889 22.9422 31.0513 20.7283 36.3902C18.5143 41.7291 17.9334 47.6047 19.0591 53.2738C20.1847 58.9429 22.9664 64.1508 27.0522 68.2389C31.138 72.3269 36.3445 75.1113 42.013 76.2401C47.6815 77.3688 53.5574 76.7911 58.8975 74.58C64.2376 72.3689 68.802 68.6237 72.0134 63.8182C75.2248 59.0127 76.9389 53.3628 76.9389 47.583C76.9389 39.8362 73.8626 32.4064 68.3862 26.9271C62.9099 21.4478 55.4817 18.3674 47.7349 18.3633Z"/>
4
+ <path d="M75.4307 72.784L73.0113 75.3149C71.9267 76.4494 71.9672 78.2483 73.1017 79.3329L94.0982 99.4046C95.2328 100.489 97.0317 100.449 98.1163 99.3142L100.536 96.7832C101.62 95.6487 101.58 93.8498 100.445 92.7652L79.4487 72.6935C78.3142 71.6089 76.5153 71.6494 75.4307 72.784Z"/>
5
+ </mask>
6
+ <path d="M75.4307 72.784L73.0113 75.3149C71.9267 76.4494 71.9672 78.2483 73.1017 79.3329L94.0982 99.4046C95.2328 100.489 97.0317 100.449 98.1163 99.3142L100.536 96.7832C101.62 95.6487 101.58 93.8498 100.445 92.7652L79.4487 72.6935C78.3142 71.6089 76.5153 71.6494 75.4307 72.784Z" fill="#858585"/>
7
+ <path d="M47.7349 18.3633L47.7355 17.3633L47.7349 18.3633ZM76.9389 47.583H75.9389H76.9389ZM75.4307 72.784L74.7079 72.093L75.4307 72.784ZM73.0113 75.3149L73.7341 76.0059L73.0113 75.3149ZM73.1017 79.3329L73.7927 78.6101L73.1017 79.3329ZM94.0982 99.4046L93.4072 100.127L94.0982 99.4046ZM98.1163 99.3142L98.8391 100.005L98.1163 99.3142ZM100.536 96.7832L99.8129 96.0922L100.536 96.7832ZM100.445 92.7652L99.7542 93.488L100.445 92.7652ZM79.4487 72.6935L80.1397 71.9706L79.4487 72.6935ZM47.7349 18.3633L47.7355 17.3633C41.7579 17.3601 35.9136 19.1297 30.9419 22.4483L31.497 23.2801L32.0522 24.1118C36.6949 21.0128 42.1524 19.3603 47.7344 19.3633L47.7349 18.3633ZM31.497 23.2801L30.9419 22.4483C25.9701 25.767 22.0943 30.4855 19.8045 36.0071L20.7283 36.3902L21.652 36.7733C23.7902 31.6171 27.4095 27.2108 32.0522 24.1118L31.497 23.2801ZM20.7283 36.3902L19.8045 36.0071C17.5148 41.5288 16.914 47.6055 18.0782 53.4686L19.0591 53.2738L20.0399 53.0791C18.9528 47.604 19.5138 41.9295 21.652 36.7733L20.7283 36.3902ZM19.0591 53.2738L18.0782 53.4686C19.2424 59.3317 22.1193 64.7179 26.3449 68.9458L27.0522 68.2389L27.7595 67.5319C23.8135 63.5838 21.1271 58.5541 20.0399 53.0791L19.0591 53.2738ZM27.0522 68.2389L26.3449 68.9458C30.5706 73.1737 35.9552 76.0535 41.8177 77.2208L42.013 76.2401L42.2083 75.2593C36.7338 74.1692 31.7055 71.4801 27.7595 67.5319L27.0522 68.2389ZM42.013 76.2401L41.8177 77.2208C47.6802 78.3882 53.7572 77.7907 59.28 75.5039L58.8975 74.58L58.5149 73.656C53.3576 75.7915 47.6827 76.3494 42.2083 75.2593L42.013 76.2401ZM58.8975 74.58L59.28 75.5039C64.8029 73.2171 69.5235 69.3438 72.8448 64.3738L72.0134 63.8182L71.182 63.2626C68.0805 67.9036 63.6723 71.5206 58.5149 73.656L58.8975 74.58ZM72.0134 63.8182L72.8448 64.3738C76.1661 59.4039 77.9389 53.5606 77.9389 47.583H76.9389H75.9389C75.9389 53.165 74.2835 58.6215 71.182 63.2626L72.0134 63.8182ZM76.9389 47.583H77.9389C77.9389 39.571 74.7573 31.887 69.0935 26.2202L68.3862 26.9271L67.6789 27.634C72.9679 32.9258 75.9389 40.1013 75.9389 47.583H76.9389ZM68.3862 26.9271L69.0935 26.2202C63.4297 20.5533 55.7474 17.3676 47.7355 17.3633L47.7349 18.3633L47.7344 19.3633C55.2161 19.3673 62.39 22.3422 67.6789 27.634L68.3862 26.9271ZM75.4307 72.784L74.7079 72.093L72.2884 74.6239L73.0113 75.3149L73.7341 76.0059L76.1536 73.475L75.4307 72.784ZM73.0113 75.3149L72.2884 74.6239C70.8222 76.1576 70.877 78.5896 72.4107 80.0558L73.1017 79.3329L73.7927 78.6101C73.0574 77.9071 73.0312 76.7412 73.7341 76.0059L73.0113 75.3149ZM73.1017 79.3329L72.4107 80.0558L93.4072 100.127L94.0982 99.4046L94.7893 98.6818L73.7927 78.6101L73.1017 79.3329ZM94.0982 99.4046L93.4072 100.127C94.941 101.594 97.3729 101.539 98.8391 100.005L98.1163 99.3142L97.3934 98.6231C96.6905 99.3585 95.5246 99.3847 94.7893 98.6818L94.0982 99.4046ZM98.1163 99.3142L98.8391 100.005L101.259 97.4742L100.536 96.7832L99.8129 96.0922L97.3934 98.6231L98.1163 99.3142ZM100.536 96.7832L101.259 97.4742C102.725 95.9405 102.67 93.5085 101.136 92.0424L100.445 92.7652L99.7542 93.488C100.49 94.191 100.516 95.3569 99.8129 96.0922L100.536 96.7832ZM100.445 92.7652L101.136 92.0424L80.1397 71.9706L79.4487 72.6935L78.7577 73.4163L99.7542 93.488L100.445 92.7652ZM79.4487 72.6935L80.1397 71.9706C78.606 70.5044 76.1741 70.5592 74.7079 72.093L75.4307 72.784L76.1536 73.475C76.8565 72.7397 78.0224 72.7134 78.7577 73.4163L79.4487 72.6935Z" fill="#383838" mask="url(#path-1-inside-1_13439_125917)"/>
8
+ </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>
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
@@ -5219,6 +5280,7 @@ interface ContextMenuProps {
5219
5280
  disableBackgroundInteraction?: boolean;
5220
5281
  useParentContainer?: boolean;
5221
5282
  useParentHeight?: boolean;
5283
+ forceStaticPlacement?: boolean;
5222
5284
  }
5223
5285
  /**
5224
5286
  * CometChatContextMenu is a composite component used to display menu data in required format.
@@ -5315,6 +5377,14 @@ interface ListItemProps {
5315
5377
  }
5316
5378
  declare const CometChatListItem: (props: ListItemProps) => react_jsx_runtime.JSX.Element;
5317
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
+
5318
5388
  interface ImageBubbleProps {
5319
5389
  src: string;
5320
5390
  placeholderImage?: string;
@@ -5820,6 +5890,10 @@ type WaveSurferOptions = {
5820
5890
  backend?: 'WebAudio' | 'MediaElement';
5821
5891
  /** Nonce for CSP if necessary */
5822
5892
  cspNonce?: string;
5893
+ /** iframe document for iframe context support */
5894
+ iframeDocument?: Document;
5895
+ /** iframe window for iframe context support */
5896
+ iframeWindow?: Window;
5823
5897
  };
5824
5898
  declare const defaultOptions: {
5825
5899
  waveColor: string;
@@ -6024,6 +6098,8 @@ declare const useDebouncedCallback: (callback: () => void, delay: number) => {
6024
6098
  debouncedCallback: () => void;
6025
6099
  cleanup: () => void;
6026
6100
  };
6101
+ declare function createMessageCopy(msg: CometChat.AIAssistantBaseEvent, user: CometChat.User, category?: string, type?: string): CometChat.BaseMessage;
6102
+ declare function isDarkMode(): boolean;
6027
6103
 
6028
6104
  /**
6029
6105
  * Utility class for managing local storage with change detection capabilities.
@@ -6529,5 +6605,170 @@ interface SearchProps {
6529
6605
  */
6530
6606
  declare function CometChatSearch(props: SearchProps): react_jsx_runtime.JSX.Element;
6531
6607
 
6532
- 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, 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, useDebouncedCallback, useRefSync, useStateRef, verifyCallUser };
6533
- export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, LocalizationSettings, PollOptions };
6608
+ interface CometChatFrameContextValue {
6609
+ iframeDocument: Document | null;
6610
+ iframeWindow: Window | null;
6611
+ iframe: HTMLIFrameElement | null;
6612
+ }
6613
+ interface CometChatFrameProviderProps {
6614
+ children: ReactNode;
6615
+ iframeId: string;
6616
+ }
6617
+ declare const useCometChatFrameContext: () => CometChatFrameContextValue;
6618
+ declare const CometChatFrameProvider: React__default.FC<CometChatFrameProviderProps>;
6619
+
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 };