@cometchat/chat-uikit-react 5.0.0-beta1 → 5.0.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 (357) hide show
  1. package/README.md +6 -5
  2. package/dist/assets/Send.svg +3 -0
  3. package/dist/assets/loading.svg +5 -16
  4. package/dist/index.d.ts +1159 -953
  5. package/dist/index.js +1 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/styles/CometChatCallButtons.css +1 -1
  8. package/dist/styles/CometChatCallLogs.css +3 -3
  9. package/dist/styles/{AIConversationStarter.css → CometChatConversationStarter.css} +2 -2
  10. package/dist/styles/{components/AIConversationSummary.css → CometChatConversationSummary.css} +12 -12
  11. package/dist/styles/CometChatConversations.css +10 -10
  12. package/dist/styles/CometChatEditPreview.css +1 -0
  13. package/dist/styles/CometChatFileBubble.css +2 -0
  14. package/dist/styles/CometChatGroupMembers.css +5 -5
  15. package/dist/styles/CometChatIncomingCall.css +1 -1
  16. package/dist/styles/CometChatList.css +15 -22
  17. package/dist/styles/CometChatListItem.css +2 -2
  18. package/dist/styles/CometChatMessageComposer.css +48 -40
  19. package/dist/styles/CometChatMessageHeader.css +32 -4
  20. package/dist/styles/CometChatMessageInformation.css +3 -2
  21. package/dist/styles/CometChatMessageList.css +6 -5
  22. package/dist/styles/CometChatOutgoingCall.css +5 -0
  23. package/dist/styles/{AISmartReplies.css → CometChatSmartReplies.css} +72 -79
  24. package/dist/styles/PollsBubble.css +7 -1
  25. package/dist/styles/components/CometChatCallButtons.css +1 -1
  26. package/dist/styles/components/CometChatCallLogs.css +3 -3
  27. package/dist/styles/components/{AIConversationStarter.css → CometChatConversationStarter.css} +2 -2
  28. package/dist/styles/{AIConversationSummary.css → components/CometChatConversationSummary.css} +12 -12
  29. package/dist/styles/components/CometChatConversations.css +10 -10
  30. package/dist/styles/components/CometChatEditPreview.css +1 -0
  31. package/dist/styles/components/CometChatFileBubble.css +2 -0
  32. package/dist/styles/components/CometChatGroupMembers.css +5 -5
  33. package/dist/styles/components/CometChatIncomingCall.css +1 -1
  34. package/dist/styles/components/CometChatList.css +15 -22
  35. package/dist/styles/components/CometChatListItem.css +2 -2
  36. package/dist/styles/components/CometChatMessageComposer.css +48 -40
  37. package/dist/styles/components/CometChatMessageHeader.css +32 -4
  38. package/dist/styles/components/CometChatMessageInformation.css +3 -2
  39. package/dist/styles/components/CometChatMessageList.css +6 -5
  40. package/dist/styles/components/CometChatOutgoingCall.css +5 -0
  41. package/dist/styles/components/{AISmartReplies.css → CometChatSmartReplies.css} +72 -79
  42. package/dist/styles/components/PollsBubble.css +7 -1
  43. package/dist/styles/components/index.css +4 -3
  44. package/dist/styles/index.css +4 -3
  45. package/dist/types/CometChatCustomHooks.d.ts +1 -1
  46. package/dist/types/CometChatUIKit/CometChatUIKit.d.ts +0 -6
  47. package/dist/types/CometChatUIKit/UIKitSettings.d.ts +0 -22
  48. package/dist/types/Enums/Enums.d.ts +9 -0
  49. package/dist/types/components/BaseComponents/CometChatConversationStarter/CometChatConversationStarter.d.ts +6 -0
  50. package/dist/types/components/BaseComponents/CometChatConversationSummary/CometChatConversationSummary.d.ts +6 -0
  51. package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +12 -12
  52. package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +3 -1
  53. package/dist/types/components/BaseComponents/CometChatSmartReplies/CometChatSmartReplies.d.ts +7 -0
  54. package/dist/types/components/Calling/CallButtonConfiguration.d.ts +1 -1
  55. package/dist/types/components/Calling/CallingExtensionDecorator.d.ts +2 -2
  56. package/dist/types/components/Calling/CometChatCallButtons/CometChatCallButtons.d.ts +30 -12
  57. package/dist/types/components/Calling/CometChatCallButtons/useCallButtons.d.ts +1 -1
  58. package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +50 -38
  59. package/dist/types/components/Calling/CometChatCallLogs/useCometChatCallLogs.d.ts +1 -1
  60. package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +48 -26
  61. package/dist/types/components/Calling/CometChatIncomingCall/useCometChatIncomingCall.d.ts +1 -1
  62. package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +31 -15
  63. package/dist/types/components/Calling/CometChatOutgoingCall/useCometChatOutgoingCall.d.ts +1 -1
  64. package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +7 -3
  65. package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +88 -87
  66. package/dist/types/components/CometChatConversations/controller.d.ts +10 -8
  67. package/dist/types/components/CometChatConversations/useCometChatConversations.d.ts +2 -5
  68. package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +94 -76
  69. package/dist/types/components/CometChatGroupMembers/useCometChatGroupMembers.d.ts +2 -2
  70. package/dist/types/components/CometChatGroups/CometChatGroups.d.ts +74 -62
  71. package/dist/types/components/CometChatGroups/useCometChatGroups.d.ts +1 -0
  72. package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +107 -49
  73. package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +1 -1
  74. package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +77 -16
  75. package/dist/types/components/CometChatMessageHeader/useCometChatMessageHeader.d.ts +1 -1
  76. package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
  77. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +133 -55
  78. package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +3 -1
  79. package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
  80. package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +34 -2
  81. package/dist/types/components/CometChatUsers/CometChatUsers.d.ts +88 -89
  82. package/dist/types/components/CometChatUsers/useCometChatUsers.d.ts +2 -1
  83. package/dist/types/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +4 -3
  84. package/dist/types/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +4 -3
  85. package/dist/types/components/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +3 -1
  86. package/dist/types/components/Extensions/Polls/PollsBubble.d.ts +5 -0
  87. package/dist/types/components/Extensions/Polls/PollsExtensionDecorator.d.ts +4 -3
  88. package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -3
  89. package/dist/types/components/Reactions/CometChatReactionInfo/CometChatReactionInfo.d.ts +3 -2
  90. package/dist/types/components/Reactions/CometChatReactionList/CometChatReactionList.d.ts +3 -2
  91. package/dist/types/components/Reactions/CometChatReactions/CometChatReactions.d.ts +3 -2
  92. package/dist/types/events/CometChatUIEvents.d.ts +2 -0
  93. package/dist/types/index.d.ts +8 -7
  94. package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +129 -115
  95. package/dist/types/utils/DataSource.d.ts +17 -18
  96. package/dist/types/utils/DataSourceDecorator.d.ts +17 -18
  97. package/dist/types/utils/GroupMemberUtils.d.ts +1 -1
  98. package/dist/types/utils/MessageUtils.d.ts +1 -1
  99. package/dist/types/utils/MessagesDataSource.d.ts +29 -16
  100. package/dist/types/utils/util.d.ts +5 -0
  101. package/package.json +1 -1
  102. package/screenshots/sample_app_overview.png +0 -0
  103. package/dist/Collaborative_Whiteboard_Dark.png +0 -0
  104. package/dist/Collaborative_Whiteboard_Light.png +0 -0
  105. package/dist/assets/ai-empty.svg +0 -22
  106. package/dist/assets/ai-error.svg +0 -3
  107. package/dist/assets/heart-reaction.png +0 -0
  108. package/dist/assets/send.svg +0 -12
  109. package/dist/styles/AICard.css +0 -30
  110. package/dist/styles/CometChatBadge.css +0 -15
  111. package/dist/styles/CometChatCard.css +0 -41
  112. package/dist/styles/components/AICard.css +0 -30
  113. package/dist/styles/components/CometChatBadge.css +0 -15
  114. package/dist/styles/components/CometChatCard.css +0 -41
  115. package/dist/types/CometChatUIKit/CometChatUIKitSharedSettings.d.ts +0 -8
  116. package/dist/types/components/AI/AIBaseConfiguration.d.ts +0 -51
  117. package/dist/types/components/AI/AIConversationStarter/AIConversationStarterConfiguration.d.ts +0 -20
  118. package/dist/types/components/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +0 -18
  119. package/dist/types/components/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +0 -8
  120. package/dist/types/components/AI/AIConversationStarter/AIConversationStarterView.d.ts +0 -8
  121. package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryConfiguration.d.ts +0 -31
  122. package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +0 -22
  123. package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +0 -8
  124. package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryView.d.ts +0 -9
  125. package/dist/types/components/AI/AIExtensionDataSource.d.ts +0 -6
  126. package/dist/types/components/AI/AISmartReplies/AISmartRepliesConfiguration.d.ts +0 -28
  127. package/dist/types/components/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +0 -21
  128. package/dist/types/components/AI/AISmartReplies/AISmartRepliesExtension.d.ts +0 -8
  129. package/dist/types/components/AI/AISmartReplies/AISmartRepliesView.d.ts +0 -11
  130. package/dist/types/components/BaseComponents/CometChatBadge/CometChatBadge.d.ts +0 -10
  131. package/dist/types/components/BaseComponents/CometChatCard/CometChatCard.d.ts +0 -15
  132. package/dist/types/components/BaseComponents/CometChatLiveReaction/CometChatLiveReaction.d.ts +0 -5
  133. package/dist/types/components/BaseComponents/CometChatLiveReaction/useLiveReactionHook.d.ts +0 -19
  134. package/dist/types/components/BaseComponents/CometChatQuickView/CometChatQuickView.d.ts +0 -9
  135. package/dist/types/components/BaseComponents/CometChatSingleSelect/CometChatSingleSelect.d.ts +0 -8
  136. package/dist/types/components/CometChatUserMemberWrapper/index.d.ts +0 -23
  137. package/dist/types/modals/InteractiveActions/APIAction.d.ts +0 -108
  138. package/dist/types/modals/InteractiveActions/CustomAction.d.ts +0 -12
  139. package/dist/types/modals/InteractiveActions/URLNavigationAction.d.ts +0 -30
  140. package/dist/types/modals/InteractiveActions/index.d.ts +0 -3
  141. package/dist/types/modals/InteractiveElements/BaseInputElement.d.ts +0 -50
  142. package/dist/types/modals/InteractiveElements/BaseInteractiveElement.d.ts +0 -25
  143. package/dist/types/modals/InteractiveElements/ButtonElement.d.ts +0 -48
  144. package/dist/types/modals/InteractiveElements/CheckboxElement.d.ts +0 -46
  145. package/dist/types/modals/InteractiveElements/DateTimePickerElement.d.ts +0 -124
  146. package/dist/types/modals/InteractiveElements/DropdownElement.d.ts +0 -55
  147. package/dist/types/modals/InteractiveElements/LabelElement.d.ts +0 -29
  148. package/dist/types/modals/InteractiveElements/OptionElement.d.ts +0 -35
  149. package/dist/types/modals/InteractiveElements/RadioButtonElement.d.ts +0 -54
  150. package/dist/types/modals/InteractiveElements/SingleSelectElement.d.ts +0 -50
  151. package/dist/types/modals/InteractiveElements/TextInputElement.d.ts +0 -69
  152. package/dist/types/modals/InteractiveElements/index.d.ts +0 -11
  153. package/dist/types/modals/InteractiveEntities/ActionEntity.d.ts +0 -32
  154. package/dist/types/modals/InteractiveEntities/ElementEntity.d.ts +0 -35
  155. package/dist/types/modals/InteractiveEntities/index.d.ts +0 -2
  156. package/dist/types/modals/InteractiveMessage/CardMessage.d.ts +0 -69
  157. package/dist/types/modals/InteractiveMessage/CustomInteractiveMessage.d.ts +0 -20
  158. package/dist/types/modals/InteractiveMessage/FormMessage.d.ts +0 -75
  159. package/dist/types/modals/InteractiveMessage/SchedulerMessage.d.ts +0 -230
  160. package/dist/types/modals/InteractiveMessage/index.d.ts +0 -5
  161. package/dist/types/src/CometChatCustomHooks.d.ts +0 -27
  162. package/dist/types/src/CometChatUIKit/CometChatCalls.d.ts +0 -1
  163. package/dist/types/src/CometChatUIKit/CometChatUIKit.d.ts +0 -147
  164. package/dist/types/src/CometChatUIKit/CometChatUIKitLoginListener.d.ts +0 -32
  165. package/dist/types/src/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -81
  166. package/dist/types/src/CometChatUIKit/UIKitSettings.d.ts +0 -304
  167. package/dist/types/src/Enums/Enums.d.ts +0 -258
  168. package/dist/types/src/components/AI/AIBaseConfiguration.d.ts +0 -51
  169. package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterConfiguration.d.ts +0 -20
  170. package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +0 -18
  171. package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +0 -8
  172. package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterView.d.ts +0 -8
  173. package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryConfiguration.d.ts +0 -31
  174. package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +0 -22
  175. package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +0 -8
  176. package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryView.d.ts +0 -9
  177. package/dist/types/src/components/AI/AIExtensionDataSource.d.ts +0 -6
  178. package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesConfiguration.d.ts +0 -28
  179. package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +0 -21
  180. package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesExtension.d.ts +0 -8
  181. package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesView.d.ts +0 -11
  182. package/dist/types/src/components/BaseComponents/CometChatActionBubble/CometChatActionBubble.d.ts +0 -8
  183. package/dist/types/src/components/BaseComponents/CometChatActionSheet/CometChatActionSheet.d.ts +0 -7
  184. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/CometChatAudioBubble.d.ts +0 -6
  185. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/base-plugin.d.ts +0 -21
  186. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/decoder.d.ts +0 -9
  187. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/dom.d.ts +0 -13
  188. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/draggable.d.ts +0 -1
  189. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/event-emitter.d.ts +0 -21
  190. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/fetcher.d.ts +0 -5
  191. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/player.d.ts +0 -50
  192. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/envelope.d.ts +0 -79
  193. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/hover.d.ts +0 -36
  194. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/minimap.d.ts +0 -65
  195. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/record.d.ts +0 -89
  196. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/regions.d.ts +0 -139
  197. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/spectrogram.d.ts +0 -98
  198. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/timeline.d.ts +0 -54
  199. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/zoom.d.ts +0 -55
  200. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/renderer.d.ts +0 -63
  201. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/timer.d.ts +0 -11
  202. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/wavesurfer.d.ts +0 -223
  203. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +0 -63
  204. package/dist/types/src/components/BaseComponents/CometChatAvatar/CometChatAvatar.d.ts +0 -13
  205. package/dist/types/src/components/BaseComponents/CometChatButton/CometChatButton.d.ts +0 -12
  206. package/dist/types/src/components/BaseComponents/CometChatCallBubble/CometChatCallBubble.d.ts +0 -12
  207. package/dist/types/src/components/BaseComponents/CometChatChangeScope/CometChatChangeScope.d.ts +0 -10
  208. package/dist/types/src/components/BaseComponents/CometChatChangeScope/useCometChatChangeScope.d.ts +0 -10
  209. package/dist/types/src/components/BaseComponents/CometChatCheckbox/CometChatCheckbox.d.ts +0 -11
  210. package/dist/types/src/components/BaseComponents/CometChatCheckbox/useCometChatCheckbox.d.ts +0 -11
  211. package/dist/types/src/components/BaseComponents/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +0 -16
  212. package/dist/types/src/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +0 -17
  213. package/dist/types/src/components/BaseComponents/CometChatDate/CometChatDate.d.ts +0 -13
  214. package/dist/types/src/components/BaseComponents/CometChatDate/useCometChatDate.d.ts +0 -8
  215. package/dist/types/src/components/BaseComponents/CometChatDeleteBubble/CometChatDeleteBubble.d.ts +0 -14
  216. package/dist/types/src/components/BaseComponents/CometChatDocumentBubble/CometChatDocumentBubble.d.ts +0 -11
  217. package/dist/types/src/components/BaseComponents/CometChatDropDown/CometChatDropDown.d.ts +0 -14
  218. package/dist/types/src/components/BaseComponents/CometChatDropDown/useCometChatDropDown.d.ts +0 -12
  219. package/dist/types/src/components/BaseComponents/CometChatEditPreview/CometChatEditPreview.d.ts +0 -21
  220. package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/CometChatEmoji.d.ts +0 -22
  221. package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +0 -7
  222. package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/emojis.d.ts +0 -6579
  223. package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +0 -17
  224. package/dist/types/src/components/BaseComponents/CometChatFileBubble/CometChatFileBubble.d.ts +0 -9
  225. package/dist/types/src/components/BaseComponents/CometChatFullScreenViewer/CometChatFullScreenViewer.d.ts +0 -23
  226. package/dist/types/src/components/BaseComponents/CometChatImageBubble/CometChatImageBubble.d.ts +0 -10
  227. package/dist/types/src/components/BaseComponents/CometChatImageBubble/useCometChatImageBubble.d.ts +0 -7
  228. package/dist/types/src/components/BaseComponents/CometChatList/CometChatList.d.ts +0 -156
  229. package/dist/types/src/components/BaseComponents/CometChatList/useCometChatList.d.ts +0 -17
  230. package/dist/types/src/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +0 -15
  231. package/dist/types/src/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +0 -12
  232. package/dist/types/src/components/BaseComponents/CometChatLiveReaction/CometChatLiveReaction.d.ts +0 -5
  233. package/dist/types/src/components/BaseComponents/CometChatLiveReaction/useLiveReactionHook.d.ts +0 -19
  234. package/dist/types/src/components/BaseComponents/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +0 -8
  235. package/dist/types/src/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -28
  236. package/dist/types/src/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +0 -24
  237. package/dist/types/src/components/BaseComponents/CometChatRadioButton/CometChatRadioButton.d.ts +0 -14
  238. package/dist/types/src/components/BaseComponents/CometChatRadioButton/useCometChatRadioButton.d.ts +0 -13
  239. package/dist/types/src/components/BaseComponents/CometChatSearchBar/CometChatSearchBar.d.ts +0 -9
  240. package/dist/types/src/components/BaseComponents/CometChatSearchBar/useCometChatSearchBar.d.ts +0 -10
  241. package/dist/types/src/components/BaseComponents/CometChatTextBubble/CometChatTextBubble.d.ts +0 -8
  242. package/dist/types/src/components/BaseComponents/CometChatTextBubble/useCometChatTextBubble.d.ts +0 -6
  243. package/dist/types/src/components/BaseComponents/CometChatToast/CometChatToast.d.ts +0 -27
  244. package/dist/types/src/components/BaseComponents/CometChatVideoBubble/CometChatVideoBubble.d.ts +0 -9
  245. package/dist/types/src/components/BaseComponents/CometChatVideoBubble/useCometChatVideoBubble.d.ts +0 -6
  246. package/dist/types/src/components/Calling/CallButtonConfiguration.d.ts +0 -10
  247. package/dist/types/src/components/Calling/CallingConfiguration.d.ts +0 -7
  248. package/dist/types/src/components/Calling/CallingExtension.d.ts +0 -9
  249. package/dist/types/src/components/Calling/CallingExtensionDecorator.d.ts +0 -29
  250. package/dist/types/src/components/Calling/CometChatCallButtons/CometChatCallButtons.d.ts +0 -36
  251. package/dist/types/src/components/Calling/CometChatCallButtons/useCallButtons.d.ts +0 -6
  252. package/dist/types/src/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +0 -71
  253. package/dist/types/src/components/Calling/CometChatCallLogs/useCometChatCallLogs.d.ts +0 -2
  254. package/dist/types/src/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -59
  255. package/dist/types/src/components/Calling/CometChatIncomingCall/useCometChatIncomingCall.d.ts +0 -2
  256. package/dist/types/src/components/Calling/CometChatOngoingCall/CometChatOngoingCall.d.ts +0 -10
  257. package/dist/types/src/components/Calling/CometChatOngoingCall/useCometChatOngoingCall.d.ts +0 -2
  258. package/dist/types/src/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -36
  259. package/dist/types/src/components/Calling/CometChatOutgoingCall/useCometChatOutgoingCall.d.ts +0 -7
  260. package/dist/types/src/components/Calling/OutgoingCallConfiguration.d.ts +0 -8
  261. package/dist/types/src/components/Calling/Utils/utils.d.ts +0 -7
  262. package/dist/types/src/components/CometChatConversations/CometChatConversations.d.ts +0 -219
  263. package/dist/types/src/components/CometChatConversations/controller.d.ts +0 -74
  264. package/dist/types/src/components/CometChatConversations/useCometChatConversations.d.ts +0 -25
  265. package/dist/types/src/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +0 -178
  266. package/dist/types/src/components/CometChatGroupMembers/controller.d.ts +0 -38
  267. package/dist/types/src/components/CometChatGroupMembers/useCometChatGroupMembers.d.ts +0 -22
  268. package/dist/types/src/components/CometChatGroups/CometChatGroups.d.ts +0 -150
  269. package/dist/types/src/components/CometChatGroups/controller.d.ts +0 -44
  270. package/dist/types/src/components/CometChatGroups/useCometChatGroups.d.ts +0 -15
  271. package/dist/types/src/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +0 -166
  272. package/dist/types/src/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +0 -42
  273. package/dist/types/src/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +0 -29
  274. package/dist/types/src/components/CometChatMessageHeader/useCometChatMessageHeader.d.ts +0 -3
  275. package/dist/types/src/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +0 -6
  276. package/dist/types/src/components/CometChatMessageList/CometChatMessageList.d.ts +0 -132
  277. package/dist/types/src/components/CometChatMessageList/CometChatMessageListController.d.ts +0 -48
  278. package/dist/types/src/components/CometChatMessageList/useCometChatMessageList.d.ts +0 -6
  279. package/dist/types/src/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +0 -11
  280. package/dist/types/src/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +0 -21
  281. package/dist/types/src/components/CometChatUsers/CometChatUsers.d.ts +0 -193
  282. package/dist/types/src/components/CometChatUsers/controller.d.ts +0 -28
  283. package/dist/types/src/components/CometChatUsers/useCometChatUsers.d.ts +0 -19
  284. package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +0 -35
  285. package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentConstants.d.ts +0 -15
  286. package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +0 -37
  287. package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +0 -116
  288. package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +0 -35
  289. package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConstants.d.ts +0 -13
  290. package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +0 -29
  291. package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +0 -94
  292. package/dist/types/src/components/Extensions/ExtensionsDataSource.d.ts +0 -29
  293. package/dist/types/src/components/Extensions/ExtensionsId.d.ts +0 -22
  294. package/dist/types/src/components/Extensions/LinkPreview/LinkPreview.d.ts +0 -37
  295. package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewConstants.d.ts +0 -11
  296. package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewExtension.d.ts +0 -24
  297. package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewExtensionDecorator.d.ts +0 -60
  298. package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationBubble.d.ts +0 -35
  299. package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationConstants.d.ts +0 -12
  300. package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationExtension.d.ts +0 -30
  301. package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +0 -53
  302. package/dist/types/src/components/Extensions/Polls/CreatePolls.d.ts +0 -66
  303. package/dist/types/src/components/Extensions/Polls/PollsBubble.d.ts +0 -35
  304. package/dist/types/src/components/Extensions/Polls/PollsConfiguration.d.ts +0 -19
  305. package/dist/types/src/components/Extensions/Polls/PollsConstants.d.ts +0 -8
  306. package/dist/types/src/components/Extensions/Polls/PollsExtension.d.ts +0 -8
  307. package/dist/types/src/components/Extensions/Polls/PollsExtensionDecorator.d.ts +0 -112
  308. package/dist/types/src/components/Extensions/Stickers/StickersConstants.d.ts +0 -16
  309. package/dist/types/src/components/Extensions/Stickers/StickersExtension.d.ts +0 -31
  310. package/dist/types/src/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -112
  311. package/dist/types/src/components/Extensions/Stickers/StickersKeyboard.d.ts +0 -29
  312. package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationConstants.d.ts +0 -13
  313. package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +0 -21
  314. package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +0 -40
  315. package/dist/types/src/components/Reactions/CometChatReactionInfo/CometChatReactionInfo.d.ts +0 -9
  316. package/dist/types/src/components/Reactions/CometChatReactionList/CometChatReactionList.d.ts +0 -8
  317. package/dist/types/src/components/Reactions/CometChatReactions/CometChatReactions.d.ts +0 -12
  318. package/dist/types/src/constants/CometChatUIKitConstants.d.ts +0 -139
  319. package/dist/types/src/constants/CometChatUtilityConstants.d.ts +0 -9
  320. package/dist/types/src/constants/index.d.ts +0 -1
  321. package/dist/types/src/events/CometChatCallEvents.d.ts +0 -10
  322. package/dist/types/src/events/CometChatConversationEvents.d.ts +0 -13
  323. package/dist/types/src/events/CometChatGroupEvents.d.ts +0 -63
  324. package/dist/types/src/events/CometChatMessageEvents.d.ts +0 -43
  325. package/dist/types/src/events/CometChatUIEvents.d.ts +0 -59
  326. package/dist/types/src/events/CometChatUserEvents.d.ts +0 -16
  327. package/dist/types/src/formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter.d.ts +0 -210
  328. package/dist/types/src/formatters/CometChatFormatters/CometChatTextFormatter.d.ts +0 -268
  329. package/dist/types/src/formatters/CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter.d.ts +0 -12
  330. package/dist/types/src/formatters/index.d.ts +0 -3
  331. package/dist/types/src/index.d.ts +0 -108
  332. package/dist/types/src/modals/CometChatActions.d.ts +0 -36
  333. package/dist/types/src/modals/CometChatActionsIcon.d.ts +0 -38
  334. package/dist/types/src/modals/CometChatActionsView.d.ts +0 -39
  335. package/dist/types/src/modals/CometChatMessageComposerAction.d.ts +0 -33
  336. package/dist/types/src/modals/CometChatMessageOption.d.ts +0 -37
  337. package/dist/types/src/modals/CometChatMessageTemplate.d.ts +0 -70
  338. package/dist/types/src/modals/CometChatOption.d.ts +0 -20
  339. package/dist/types/src/modals/index.d.ts +0 -7
  340. package/dist/types/src/resources/CometChatLocalize/cometchat-localize.d.ts +0 -5603
  341. package/dist/types/src/resources/CometChatSoundManager/CometChatSoundManager.d.ts +0 -128
  342. package/dist/types/src/resources/index.d.ts +0 -1
  343. package/dist/types/src/utils/CallingDetailsUtils.d.ts +0 -42
  344. package/dist/types/src/utils/ChatConfigurator.d.ts +0 -12
  345. package/dist/types/src/utils/ChatSdkEventInitializer.d.ts +0 -6
  346. package/dist/types/src/utils/ConversationUtils.d.ts +0 -69
  347. package/dist/types/src/utils/DataSource.d.ts +0 -55
  348. package/dist/types/src/utils/DataSourceDecorator.d.ts +0 -57
  349. package/dist/types/src/utils/GroupMemberUtils.d.ts +0 -32
  350. package/dist/types/src/utils/MessageReceiptUtils.d.ts +0 -44
  351. package/dist/types/src/utils/MessageUtils.d.ts +0 -55
  352. package/dist/types/src/utils/MessagesDataSource.d.ts +0 -110
  353. package/dist/types/src/utils/Storage.d.ts +0 -33
  354. package/dist/types/src/utils/util.d.ts +0 -26
  355. package/dist/types/utils/IcsToJson.d.ts +0 -19
  356. package/dist/types/utils/InteractiveMessageUtils.d.ts +0 -71
  357. /package/dist/assets/{ai.svg → conversation_summary.svg} +0 -0
@@ -7,126 +7,204 @@ import { CometChatTextFormatter } from "../../formatters/CometChatFormatters/Com
7
7
  */
8
8
  interface MessageListProps {
9
9
  /**
10
- * Unique identifier of the parent message for displaying threaded conversations.
10
+ * Enables conversation starters for new chats.
11
+ * @default false
11
12
  */
12
- parentMessageId?: number;
13
+ showConversationStarters?: boolean;
13
14
  /**
14
- * CometChat User object, representing the participant of the chat whose details are displayed.
15
+ * Enables the generation of Smart Replies for incoming messages.
16
+ * @default false
15
17
  */
16
- user?: CometChat.User;
18
+ showSmartReplies?: boolean;
17
19
  /**
18
- * CometChat Group object, representing the group whose chat messages are displayed.
20
+ * Hides the visibility of the date separator in the message list.
21
+ * @default false
19
22
  */
20
- group?: CometChat.Group;
23
+ hideDateSeparator?: boolean;
21
24
  /**
22
- * Custom empty state view to display when there are no messages.
25
+ * Hides the sticky date header in the message list.
26
+ * @default false
23
27
  */
24
- emptyStateView?: JSX.Element;
28
+ hideStickyDate?: boolean;
25
29
  /**
26
- * Custom error state view to display when an error occurs while retrieving messages.
30
+ * Hides the visibility of receipts in the message list.
31
+ * @default false
27
32
  */
28
- errorStateView?: JSX.Element;
33
+ hideReceipts?: boolean;
29
34
  /**
30
- * Custom loading state view to display while messages are being fetched.
35
+ * Hides the default & custom error view passed in `errorView` prop.
36
+ * @default false
31
37
  */
32
- loadingStateView?: JSX.Element;
38
+ hideError?: boolean;
33
39
  /**
34
- * Boolean to toggle visibility of read receipts in the message list.
40
+ * Hides the option to reply to messages in a thread.
35
41
  * @default false
36
42
  */
37
- hideReceipt?: boolean;
43
+ hideReplyInThreadOption?: boolean;
38
44
  /**
39
- * Specifies the alignment of the messages in the list (left, right, etc.).
40
- * @default 'standard'
45
+ * Hides the option to translate messages.
46
+ * @default false
41
47
  */
42
- alignment?: MessageListAlignment;
48
+ hideTranslateMessageOption?: boolean;
43
49
  /**
44
- * User-defined date format for the message timestamp.
50
+ * Hides the option to edit messages.
51
+ * @default false
45
52
  */
46
- datePattern?: DatePatterns;
53
+ hideEditMessageOption?: boolean;
47
54
  /**
48
- * User-defined date format for the separators between dates in the message list.
55
+ * Hides the option to delete messages.
56
+ * @default false
49
57
  */
50
- DateSeparatorPattern?: DatePatterns;
58
+ hideDeleteMessageOption?: boolean;
51
59
  /**
52
- * Boolean to toggle visibility of the date separator in the message list.
60
+ * Hides the option to react to messages.
53
61
  * @default false
54
62
  */
55
- hideDateSeparator?: boolean;
63
+ hideReactionOption?: boolean;
64
+ /**
65
+ * Hides the option to message a user privately.
66
+ * @default false
67
+ */
68
+ hideMessagePrivatelyOption?: boolean;
56
69
  /**
57
- * Array of message templates to define how various types of messages (e.g., text, image, video) should be displayed.
70
+ * Hides the option to copy messages.
71
+ * @default false
58
72
  */
59
- templates?: CometChatMessageTemplate[];
73
+ hideCopyMessageOption?: boolean;
60
74
  /**
61
- * Instance of the CometChat MessagesRequestBuilder for building the request to fetch messages.
75
+ * Hides the option to view message information.
76
+ * @default false
62
77
  */
63
- messagesRequestBuilder?: CometChat.MessagesRequestBuilder;
78
+ hideMessageInfoOption?: boolean;
64
79
  /**
65
- * Text to display as a new message indicator.
80
+ * Hides avatars for messages.
81
+ * @default false
66
82
  */
67
- newMessageIndicatorText?: string;
83
+ hideAvatar?: boolean;
68
84
  /**
69
- * Boolean to indicate whether the message list should scroll to the bottom when a new message arrives.
85
+ * Hides group action messages.
70
86
  * @default false
71
87
  */
72
- scrollToBottomOnNewMessages?: boolean;
88
+ hideGroupActionMessages?: boolean;
73
89
  /**
74
- * Threshold value for triggering certain actions (e.g., loading more messages) as the user scrolls.
90
+ * Unique identifier of the parent message for displaying threaded conversations.
75
91
  */
76
- thresholdValue?: number;
92
+ parentMessageId?: number;
77
93
  /**
78
- * Callback function that is triggered when the user clicks on a thread reply.
79
- * @param parentMessageId - The ID of the parent message to which replies belong.
94
+ * A `CometChat.User` object representing the participant of the chat whose details are displayed.
80
95
  */
81
- onThreadRepliesClick?: Function;
96
+ user?: CometChat.User;
82
97
  /**
83
- * Custom header view component for the message list.
98
+ * A `CometChat.Group` object representing the group whose chat messages are displayed.
84
99
  */
85
- headerView?: JSX.Element;
100
+ group?: CometChat.Group;
86
101
  /**
87
- * Custom footer view component for the message list.
102
+ * Instance of the `CometChat.ReactionsRequestBuilder` for managing message reactions.
88
103
  */
89
- footerView?: JSX.Element;
104
+ reactionsRequestBuilder?: CometChat.ReactionsRequestBuilder;
90
105
  /**
91
- * Callback triggered when an error occurs during the message fetching process.
92
- * @param error - CometChatException object representing the error.
106
+ * Instance of the `CometChat.MessagesRequestBuilder` for building the request to fetch messages.
93
107
  */
94
- onError?: ((error: CometChat.CometChatException) => void) | null;
108
+ messagesRequestBuilder?: CometChat.MessagesRequestBuilder;
109
+ /**
110
+ * Array of message templates to define how various types of messages should be displayed.
111
+ */
112
+ templates?: CometChatMessageTemplate[];
113
+ /**
114
+ * Array of text formatters for custom styling or formatting of message text bubbles.
115
+ */
116
+ textFormatters?: CometChatTextFormatter[];
95
117
  /**
96
- * Boolean to hide or show errors in the message list.
118
+ * Specifies the alignment of messages in the list (e.g., left, right).
119
+ * @default MessageListAlignment.standard
120
+ */
121
+ messageAlignment?: MessageListAlignment;
122
+ /**
123
+ * User-defined time format for displaying message timestamps.
124
+ */
125
+ timePattern?: DatePatterns;
126
+ /**
127
+ * User-defined date format for displaying message timestamps.
128
+ */
129
+ datePattern?: DatePatterns;
130
+ /**
131
+ * Automatically scrolls the message list to the bottom when a new message arrives.
97
132
  * @default false
98
133
  */
99
- hideError?: boolean;
134
+ scrollToBottomOnNewMessages?: boolean;
100
135
  /**
101
- * Instance of the CometChat ReactionsRequestBuilder for managing message reactions.
136
+ * Specifies how many message options are visible in the main menu by default.
137
+ * @default 2
102
138
  */
103
- reactionsRequestBuilder?: CometChat.ReactionsRequestBuilder;
139
+ quickOptionsCount?: number;
140
+ /**
141
+ * Disables the sound effect when new messages arrive.
142
+ * @default true
143
+ */
144
+ disableSoundForMessages?: boolean;
145
+ /**
146
+ * Specifies a custom sound file to play when new messages arrive.
147
+ */
148
+ customSoundForMessages?: string;
149
+ /**
150
+ * Specifies the keywords in incoming messages that will trigger Smart Replies.
151
+ * If set to an empty array [], Smart Replies will be generated for all messages.
152
+ * @default ['what', 'when', 'why', 'who', 'where', 'how', '?']
153
+ */
154
+ smartRepliesKeywords?: string[];
155
+ /**
156
+ * Specifies the delay in milliseconds before Smart Replies are displayed.
157
+ * Setting it to 0 fetches Smart Replies instantly without delay.
158
+ * @default 10000
159
+ */
160
+ smartRepliesDelayDuration?: number;
161
+ /**
162
+ * Callback function triggered when an error occurs during message fetching.
163
+ *
164
+ * @param error - An instance of `CometChat.CometChatException` representing the error.
165
+ * @returns void
166
+ */
167
+ onError?: ((error: CometChat.CometChatException) => void) | null;
168
+ /**
169
+ * Callback function triggered when a thread reply is clicked.
170
+ *
171
+ * @param parentMessageId - The ID of the parent message to which replies belong.
172
+ */
173
+ onThreadRepliesClick?: (message: CometChat.BaseMessage) => void;
104
174
  /**
105
175
  * Callback function that triggers when a reaction is clicked.
176
+ *
106
177
  * @param reaction - The reaction object.
107
178
  * @param message - The message associated with the reaction.
108
179
  */
109
180
  onReactionClick?: (reaction: CometChat.ReactionCount, message: CometChat.BaseMessage) => void;
110
181
  /**
111
182
  * Callback function that triggers when an item in the reaction list is clicked.
183
+ *
112
184
  * @param reaction - The reaction object.
113
185
  * @param message - The message associated with the reaction.
114
186
  */
115
187
  onReactionListItemClick?: (reaction: CometChat.Reaction, message: CometChat.BaseMessage) => void;
116
188
  /**
117
- * Boolean to disable message reactions.
118
- * @default false
189
+ * Custom empty state view to display when there are no messages.
119
190
  */
120
- disableReactions?: boolean;
191
+ emptyView?: JSX.Element;
121
192
  /**
122
- * Boolean to disable mentions in text messages.
123
- * @default false
193
+ * A custom view displayed when there are no messages.
124
194
  */
125
- disableMentions?: boolean;
195
+ errorView?: JSX.Element;
126
196
  /**
127
- * Array of text formatters for custom styling or formatting of text bubbles.
197
+ * A custom view displayed while messages are being fetched.
128
198
  */
129
- textFormatters?: CometChatTextFormatter[];
199
+ loadingView?: JSX.Element;
200
+ /**
201
+ * A custom header view component for the message list.
202
+ */
203
+ headerView?: JSX.Element;
204
+ /**
205
+ * A custom footer view component for the message list.
206
+ */
207
+ footerView?: JSX.Element;
130
208
  }
131
209
  declare const CometChatMessageList: (props: MessageListProps) => import("react/jsx-runtime").JSX.Element;
132
210
  export { CometChatMessageList };
@@ -7,6 +7,7 @@ export declare class MessageListManager {
7
7
  static groupListenerId: string;
8
8
  static callListenerId: string;
9
9
  static connectionListenerId: string;
10
+ private static errorHandler;
10
11
  /**
11
12
  * Creates an instance of MessageListManager which constructs a request builder for fetching messages from a particular user/group in the chat.
12
13
  * @param {CometChat.MessagesRequestBuilder} [messagesRequestBuilder]
@@ -14,9 +15,10 @@ export declare class MessageListManager {
14
15
  * @param {CometChat.Group} [group]
15
16
  * @param {number} [messageId]
16
17
  * @param {number} [parentMessageId]
18
+ * @param {boolean} [hideGroupActionMessages]
17
19
  * @memberof MessageListManager
18
20
  */
19
- constructor(messagesRequestBuilder?: CometChat.MessagesRequestBuilder, user?: CometChat.User, group?: CometChat.Group, messageId?: number, parentMessageId?: number);
21
+ constructor(errorHandler: (error: unknown, source?: string) => void, messagesRequestBuilder?: CometChat.MessagesRequestBuilder, user?: CometChat.User, group?: CometChat.Group, messageId?: number, parentMessageId?: number, hideGroupActionMessages?: boolean);
20
22
  /**
21
23
  * Function to invoke the fetchNext method of the messagesRequestBuilder to retrieve the subsequent messages following the latest fetched message.
22
24
  *
@@ -2,5 +2,5 @@ import { MutableRefObject } from "react";
2
2
  /**
3
3
  * This Hooks function is a custom React hook designed to manage functionalities of CometChatMessageList component. It fetches the logged-in user, handles event subscriptions and tracks message IDs for new message retrieval. It plays a key role in maintaining real-time functionality and user interactions in the chat interface.
4
4
  **/
5
- declare function useCometChatMessageList(loggedInUserRef: MutableRefObject<CometChat.User | null>, messageListManagerRef: MutableRefObject<any>, fetchPreviousMessages: () => void, updateMessage: (key: string, mesage: CometChat.BaseMessage, group?: CometChat.Group) => void, messagesRequestBuilder: CometChat.MessagesRequestBuilder | undefined, user: CometChat.User | undefined, group: CometChat.Group | undefined, messageIdRef: MutableRefObject<any>, totalMessagesCountRef: MutableRefObject<any>, messageList: CometChat.BaseMessage[], onErrorCallback: (error: CometChat.CometChatException) => void, setMessageList: (messages: CometChat.BaseMessage[]) => void, setScrollListToBottom: (scrollToBottom: boolean) => void, smartReplyViewRef: MutableRefObject<any>, isOnBottomRef: MutableRefObject<boolean>, isFirstReloadRef: MutableRefObject<boolean>, subscribeToUIEvents: Function, setDateHeader?: Function, parentMessageId?: number): void;
5
+ declare function useCometChatMessageList(loggedInUserRef: MutableRefObject<CometChat.User | null>, messageListManagerRef: MutableRefObject<any>, fetchPreviousMessages: () => void, updateMessage: (key: string, mesage: CometChat.BaseMessage, group?: CometChat.Group) => void, messagesRequestBuilder: CometChat.MessagesRequestBuilder | undefined, user: CometChat.User | undefined, group: CometChat.Group | undefined, messageIdRef: MutableRefObject<any>, totalMessagesCountRef: MutableRefObject<any>, messageList: CometChat.BaseMessage[], errorHandler: (error: unknown, source?: string) => void, setMessageList: (messages: CometChat.BaseMessage[]) => void, setScrollListToBottom: (scrollToBottom: boolean) => void, smartReplyViewRef: MutableRefObject<any>, isOnBottomRef: MutableRefObject<boolean>, isFirstReloadRef: MutableRefObject<boolean>, subscribeToUIEvents: Function, showSmartRepliesRef: MutableRefObject<any>, setDateHeader?: Function, parentMessageId?: number, hideGroupActionMessages?: boolean, showSmartReplies?: boolean): void;
6
6
  export { useCometChatMessageList };
@@ -1,11 +1,43 @@
1
1
  /// <reference types="react" />
2
2
  import { CometChatMessageTemplate } from "../../modals";
3
3
  interface ThreadedMessagePreviewProps {
4
- title?: string;
4
+ /**
5
+ * Hides the visibility of the date header.
6
+ * @default false
7
+ */
8
+ hideDate?: boolean;
9
+ /**
10
+ * Hides the visibility of the reply count.
11
+ * @default false
12
+ */
13
+ hideReplyCount?: boolean;
14
+ /**
15
+ * Represents the parent message for displaying threaded conversations.
16
+ */
5
17
  parentMessage: CometChat.BaseMessage;
18
+ /**
19
+ * Template for customizing the appearance of the message.
20
+ */
6
21
  template?: CometChatMessageTemplate;
7
- bubbleView?: (messageObject: CometChat.BaseMessage) => void | JSX.Element;
22
+ /**
23
+ * Callback function triggered when the threaded message header is closed.
24
+ * @returns void
25
+ */
8
26
  onClose?: () => void;
27
+ /**
28
+ * A custom view for rendering the message bubble.
29
+ *
30
+ * @param messageObject - The message to be rendered.
31
+ * @returns A JSX Element to be rendered as message bubble view.
32
+ */
33
+ messageBubbleView?: (messageObject: CometChat.BaseMessage) => JSX.Element;
34
+ /**
35
+ * Callback function triggered when an error occurs.
36
+ *
37
+ * @param error - An instance of CometChat.CometChatException representing the error.
38
+ * @returns void
39
+ */
40
+ onError?: ((error: CometChat.CometChatException) => void) | null;
9
41
  }
10
42
  declare const CometChatThreadedMessagePreview: (props: ThreadedMessagePreviewProps) => import("react/jsx-runtime").JSX.Element;
11
43
  export { CometChatThreadedMessagePreview };
@@ -4,164 +4,163 @@ import { SelectionMode, States } from "../../Enums/Enums";
4
4
  import { CometChatOption } from "../../modals/CometChatOption";
5
5
  export interface UsersProps {
6
6
  /**
7
- * Title of the component
8
- *
9
- * @defaultValue `localize("USERS")`
10
- */
11
- title?: string;
12
- /**
13
- * Hide the search bar
7
+ * Hides the default search bar.
14
8
  *
15
9
  * @defaultValue `false`
16
10
  */
17
11
  hideSearch?: boolean;
18
12
  /**
19
- * Text to be displayed when the search input has no value
20
- *
21
- * @defaultValue `localize("SEARCH")`
22
- */
23
- searchPlaceholderText?: string;
24
- /**
25
- * Custom list item view to be rendered for each user in the fetched list
26
- */
27
- listItemView?: (user: CometChat.User) => JSX.Element;
28
- /**
29
- * Show alphabetical header
13
+ * Displays an alphabetical section header for the user list.
30
14
  *
31
15
  * @defaultValue `true`
32
16
  */
33
17
  showSectionHeader?: boolean;
34
18
  /**
35
- * Property on the user object
19
+ * Hides both the default and custom error view passed in `errorView` prop.
36
20
  *
37
- * @remarks
38
- * This property will be used to extract the section header character from the user object
39
- *
40
- * @defaultValue `getName`
21
+ * @defaultValue `false`
41
22
  */
42
- sectionHeaderKey?: keyof CometChat.User;
23
+ hideError?: boolean;
43
24
  /**
44
- * Custom view for the loading state of the component
25
+ * Disables the loading state while fetching users.
26
+ *
27
+ * @defaultValue `false`
45
28
  */
46
- loadingStateView?: JSX.Element;
29
+ disableLoadingState?: boolean;
47
30
  /**
48
- * Hide error view
49
- *
50
- * @remarks
51
- * If set to true, hides the default and the custom error view
31
+ * Hides the user's online/offline status indicator.
52
32
  *
33
+ * @remarks If set to `true`, the status indicator of the default list item view is not displayed.
53
34
  * @defaultValue `false`
54
35
  */
55
- hideError?: boolean;
36
+ hideUserStatus?: boolean;
56
37
  /**
57
- * Custom view for the error state of the component
38
+ * User to highlight.
39
+ *
40
+ * @remarks This prop is used if `activeUser` prop is not provided.
58
41
  */
59
- errorStateView?: JSX.Element;
42
+ activeUser?: CometChat.User;
60
43
  /**
61
- * Custom view for the empty state of the component
44
+ * Request builder to fetch users.
45
+ *
46
+ * @defaultValue Default request builder having the limit set to `30`.
62
47
  */
63
- emptyStateView?: JSX.Element;
48
+ usersRequestBuilder?: CometChat.UsersRequestBuilder;
64
49
  /**
65
- * Custom subtitle view to be rendered for each user in the fetched list
50
+ * Request builder with search parameters to fetch users.
66
51
  *
67
- * @remarks
68
- * This prop is used if `listItemView` prop is not provided
52
+ * @remarks If the search input is not empty, the search keyword of this request builder is set to the text in the search input.
69
53
  */
70
- subtitleView?: (user: CometChat.User) => JSX.Element;
54
+ searchRequestBuilder?: CometChat.UsersRequestBuilder;
71
55
  /**
72
- * Hide user presence
73
- *
74
- * @remarks
75
- * If set to true, the status indicator of the default list item view is not displayed
56
+ * The search keyword used to filter the user list.
76
57
  *
77
- * @defaultValue `false`
58
+ * @defaultValue `""`
78
59
  */
79
- disableUsersPresence?: boolean;
60
+ searchKeyword?: string;
80
61
  /**
81
- * Custom view to render on the top-right of the component
62
+ * The property on the user object used to extract the section header character.
63
+ *
64
+ * @remarks This property will be used to extract the section header character from the user object.
65
+ * @defaultValue `getName`
82
66
  */
83
- menu?: JSX.Element;
67
+ sectionHeaderKey?: keyof CometChat.User;
84
68
  /**
85
- * List of actions available on mouse over on the default list item component
69
+ * A function that returns a list of actions available when hovering over a user item.
70
+ * @param user - An instance of `CometChat.User` representing the selected user.
71
+ * @returns An array of `CometChatOption` objects.
86
72
  */
87
73
  options?: (user: CometChat.User) => CometChatOption[];
88
74
  /**
89
- * Selection mode to use for the default tail view
90
- *
91
- * @remarks
92
- * This prop is used if `listItemView` prop is not provided.
75
+ * Selection mode to use for the default trailing view.
93
76
  *
94
77
  * @defaultValue `SelectionMode.none`
95
78
  */
96
79
  selectionMode?: SelectionMode;
97
80
  /**
98
- * Function to call when a user from the fetched list is selected
81
+ * Callback function invoked when a user is selected.
99
82
  *
100
- * @remarks
101
- * This prop is used if `selectionMode` prop is not `SelectionMode.none`
83
+ * @remarks This prop works only if `selectionMode` is not set to `SelectionMode.none`.
84
+ * @param user - An instance of `CometChat.User` representing the selected user.
85
+ * @param selected - A boolean indicating whether the user is selected.
86
+ * @returns void
102
87
  */
103
- onSelect?: (users: CometChat.User, selected: boolean) => void;
88
+ onSelect?: (user: CometChat.User, selected: boolean) => void;
104
89
  /**
105
- * Request builder to fetch users
90
+ * Callback function invoked when a user item is clicked.
106
91
  *
107
- * @remarks
108
- * If the search input is not empty and the `searchRequestBuilder` prop is not provided,
109
- * the search keyword of this request builder is set to the text in the search input
110
- *
111
- * @defaultValue Default request builder having the limit set to 30
92
+ * @param user - An instance of `CometChat.User` representing the clicked user.
93
+ * @returns void
112
94
  */
113
- usersRequestBuilder?: CometChat.UsersRequestBuilder;
95
+ onItemClick?: (user: CometChat.User) => void;
114
96
  /**
115
- * Request builder with search parameters to fetch users
116
- *
117
- * @remarks
118
- * If the search input is not empty,
119
- * the search keyword of this request builder is set to the text in the search input
97
+ * Callback function invoked when an error occurs in the component.
98
+ * @param error - An instance of `CometChat.CometChatException` representing the error.
99
+ * @returns void
120
100
  */
121
- searchRequestBuilder?: CometChat.UsersRequestBuilder;
101
+ onError?: ((error: CometChat.CometChatException) => void) | null;
122
102
  /**
123
- * Function to call on click of the default list item view of a user
103
+ * Callback function to be executed when the user list is empty.
104
+ * @returns void
124
105
  */
125
- onItemClick?: (user: CometChat.User) => void;
106
+ onEmpty?: () => void;
126
107
  /**
127
- * Function to call whenever the component encounters an error
108
+ * A custom component to render in the top-right corner of the user list.
128
109
  */
129
- onError?: ((error: CometChat.CometChatException) => void) | null;
110
+ headerView?: JSX.Element;
130
111
  /**
131
- * User to highlight
112
+ * A custom view to display during the loading state.
113
+ */
114
+ loadingView?: JSX.Element;
115
+ /**
116
+ * A custom view to display when an error occurs.
117
+ */
118
+ errorView?: JSX.Element;
119
+ /**
120
+ * A custom view to display when no users are available in the list.
121
+ */
122
+ emptyView?: JSX.Element;
123
+ /**
124
+ * A custom view to render for each user in the fetched list.
132
125
  *
133
- * @remarks
134
- * This prop is used if `listItemView` prop is not provided
126
+ * @param user - An instance of `CometChat.User` representing the user.
127
+ * @returns A JSX element to be rendered as the user item.
135
128
  */
136
- activeUser?: CometChat.User;
129
+ itemView?: (user: CometChat.User) => JSX.Element;
137
130
  /**
138
- * Search keyword to filter the list of users.
131
+ * A function that renders a JSX element to display the leading view.
139
132
  *
140
- * @defaultValue `""`
133
+ * @param user - An instance of `CometChat.User` representing the user.
134
+ * @returns A JSX element to be rendered as the leading view.
141
135
  */
142
- searchKeyword?: string;
136
+ leadingView?: (user: CometChat.User) => JSX.Element;
143
137
  /**
144
- * Callback function to be executed when the user list is empty.
138
+ * A custom function to render the title view of a user.
139
+ *
140
+ * @param user - An instance of `CometChat.User` representing the user.
141
+ * @returns A JSX element to be rendered as the title view.
145
142
  */
146
- onEmpty?: () => void;
143
+ titleView?: (user: CometChat.User) => JSX.Element;
147
144
  /**
148
- * Flag to indicate whether users are currently being fetched.
145
+ * A custom view to render the subtitle for each user.
149
146
  *
150
- * @defaultValue `false`
147
+ * @param user - An instance of `CometChat.User` representing the user.
148
+ * @returns A JSX element to be rendered as the subtitle view.
151
149
  */
152
- fetchingUsers?: boolean;
150
+ subtitleView?: (user: CometChat.User) => JSX.Element;
153
151
  /**
154
- * Flag to indicate whether to disable loading state while fetching users.
155
- * @defaultValue `false`
152
+ * A function that renders a JSX element to display the trailing view.
153
+ *
154
+ * @param user - An instance of `CometChat.User` representing the user.
155
+ * @returns A JSX element to be rendered as the trailing view.
156
156
  */
157
- disableLoadingState?: boolean;
157
+ trailingView?: (user: CometChat.User) => JSX.Element;
158
158
  }
159
159
  type State = {
160
160
  searchText: string;
161
161
  userList: CometChat.User[];
162
162
  fetchState: States;
163
163
  isFirstReload: boolean;
164
- fetchingUsers: boolean;
165
164
  disableLoadingState: boolean;
166
165
  };
167
166
  export type Action = {
@@ -13,7 +13,8 @@ type Args = {
13
13
  searchKeyword: string;
14
14
  disableLoadingState: boolean;
15
15
  usersSearchText: React.MutableRefObject<string>;
16
- disableUsersPresence: boolean;
16
+ hideUserStatus: boolean;
17
+ errorHandler: (error: unknown, source?: string | undefined) => void;
17
18
  };
18
19
  export declare function useCometChatUsers(args: Args): void;
19
20
  export {};
@@ -1,6 +1,7 @@
1
1
  import { DataSource } from "../../../utils/DataSource";
2
2
  import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
3
3
  import { CollaborativeDocumentConfiguration } from "./CollaborativeDocumentConfiguration";
4
+ import { MessageBubbleAlignment } from "../../../Enums/Enums";
4
5
  import { CometChatMessageComposerAction, CometChatMessageTemplate } from "../../../modals";
5
6
  /**
6
7
  * The `CollaborativeDocumentExtensionDecorator` class extends `DataSourceDecorator`
@@ -54,7 +55,7 @@ export declare class CollaborativeDocumentExtensionDecorator extends DataSourceD
54
55
  * @returns {string[]} An array of message categories.
55
56
  * @override
56
57
  */
57
- getAllMessageCategories(): string[];
58
+ getAllMessageCategories(additionalConfigurations?: Object | undefined): string[];
58
59
  /**
59
60
  * Checks if a message template with the specified type already exists.
60
61
  *
@@ -83,7 +84,7 @@ export declare class CollaborativeDocumentExtensionDecorator extends DataSourceD
83
84
  * @param {CometChat.CustomMessage} documentMessage - The document message to display.
84
85
  * @returns {JSX.Element} The document content view component.
85
86
  */
86
- getDocumentContentView(documentMessage: CometChat.CustomMessage): import("react/jsx-runtime").JSX.Element;
87
+ getDocumentContentView(documentMessage: CometChat.CustomMessage, alignment?: MessageBubbleAlignment): import("react/jsx-runtime").JSX.Element;
87
88
  /**
88
89
  * Launches the collaborative document in a new fullscreen window.
89
90
  *
@@ -103,7 +104,7 @@ export declare class CollaborativeDocumentExtensionDecorator extends DataSourceD
103
104
  * @param {any} id - The identifier object containing user or group information.
104
105
  * @returns {CometChatMessageComposerAction[]} The list of attachment options including the new document action.
105
106
  */
106
- getAttachmentOptions(id: any): CometChatMessageComposerAction[];
107
+ getAttachmentOptions(id: any, additionalConfigurations?: any): CometChatMessageComposerAction[];
107
108
  /**
108
109
  * Retrieves the last message from a conversation, checking if it's a collaborative document.
109
110
  *