@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
@@ -1,178 +0,0 @@
1
- import { JSX } from "react";
2
- import { GroupMembersManager } from "./controller";
3
- import { SelectionMode, States } from "../../Enums/Enums";
4
- import { CometChatOption } from "../../modals";
5
- interface GroupMembersProps {
6
- /**
7
- * Custom view to render on the top-right of the component
8
- */
9
- menu?: JSX.Element;
10
- /**
11
- * Title of the component
12
- *
13
- * @defaultValue `localize("MEMBERS")`
14
- */
15
- title?: string;
16
- /**
17
- * Text to be displayed when the search input has no value
18
- *
19
- * @defaultValue `localize("SEARCH")`
20
- */
21
- searchPlaceholderText?: string;
22
- /**
23
- * Hide the search bar
24
- *
25
- * @defaultValue `false`
26
- */
27
- hideSearch?: boolean;
28
- /**
29
- * Request builder to fetch group members
30
- *
31
- * @remarks
32
- * If the search input is not empty and the `searchRequestBuilder` prop is not provided,
33
- * the search keyword of this request builder is set to the text in the search input
34
- *
35
- * @defaultValue Default request builder having the limit set to 30
36
- */
37
- groupMemberRequestBuilder?: CometChat.GroupMembersRequestBuilder;
38
- /**
39
- * Request builder with search parameters to fetch group members
40
- *
41
- * @remarks
42
- * If the search input is not empty,
43
- * the search keyword of this request builder is set to the text in the search input
44
- */
45
- searchRequestBuilder?: CometChat.GroupMembersRequestBuilder;
46
- /**
47
- * Group the fetched groupMembers belong to
48
- */
49
- group: CometChat.Group;
50
- /**
51
- * Function to call whenever the component encounters an error
52
- */
53
- onError?: ((error: CometChat.CometChatException) => void) | null;
54
- /**
55
- * Custom view for the loading state of the component
56
- */
57
- loadingStateView?: JSX.Element;
58
- /**
59
- * Custom view for the empty state of the component
60
- */
61
- emptyStateView?: JSX.Element;
62
- /**
63
- * Custom view for the error state of the component
64
- */
65
- errorStateView?: JSX.Element;
66
- /**
67
- * Hide error view
68
- *
69
- * @remarks
70
- * If set to true, hides the default and the custom error view
71
- *
72
- * @defaultValue `false`
73
- */
74
- hideError?: boolean;
75
- /**
76
- * Hide user presence
77
- *
78
- * @remarks
79
- * If set to true, the status indicator of the default list item view is not displayed
80
- *
81
- * @defaultValue `false`
82
- */
83
- disableUsersPresence?: boolean;
84
- /**
85
- * Custom subtitle view to be rendered for each group member in the fetched list
86
- *
87
- * @remarks
88
- * This prop is used if `listItemView` prop is not provided
89
- */
90
- subtitleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
91
- /**
92
- * Custom list item view to be rendered for each group member in the fetched list
93
- */
94
- listItemView?: (groupMember: CometChat.GroupMember) => JSX.Element;
95
- /**
96
- * List of actions available on mouse over on the default list item component
97
- */
98
- options?: (group: CometChat.Group, groupMember: CometChat.GroupMember) => CometChatOption[];
99
- /**
100
- * View to be placed in the tail view
101
- *
102
- * @remarks
103
- * This prop will be used if `listItemView` is not provided
104
- */
105
- tailView?: (groupMember: CometChat.GroupMember) => JSX.Element;
106
- /**
107
- * Selection mode to use for the default list item view
108
- *
109
- * @remarks
110
- * This prop is used if `listItemView` prop is not provided
111
- *
112
- * @defaultValue `SelectionMode.none`
113
- */
114
- selectionMode?: SelectionMode;
115
- /**
116
- * Function to call on click of the default list item view of a group member
117
- */
118
- onItemClick?: (groupMember: CometChat.GroupMember) => void;
119
- /**
120
- * Function to call when a group member from the fetched list is selected
121
- *
122
- * @remarks
123
- * This prop is used if `selectionMode` prop is not `SelectionMode.none`
124
- */
125
- onSelect?: (groupMember: CometChat.GroupMember, selected: boolean) => void;
126
- /**
127
- * Search keyword to filter the list of users.
128
- *
129
- * @defaultValue `""`
130
- */
131
- searchKeyword?: string;
132
- /**
133
- * Callback function to be executed when the user list is empty.
134
- */
135
- onEmpty?: () => void;
136
- /**
137
- * Flag to indicate whether to disable loading state while fetching users.
138
- * @defaultValue `false`
139
- */
140
- disableLoadingState?: boolean;
141
- }
142
- export type Action = {
143
- type: "appendGroupMembers";
144
- groupMembers: CometChat.GroupMember[];
145
- groupMembersManager?: GroupMembersManager | null;
146
- onEmpty?: () => void;
147
- disableLoadingState?: boolean;
148
- } | {
149
- type: "setGroupMemberList";
150
- groupMemberList: CometChat.GroupMember[];
151
- } | {
152
- type: "setSearchText";
153
- searchText: string;
154
- } | {
155
- type: "setFetchState";
156
- fetchState: States;
157
- } | {
158
- type: "removeGroupMemberIfPresent";
159
- groupMemberUid: string;
160
- } | {
161
- type: "setGroupMemberToChangeScopeOf";
162
- groupMember: CometChat.GroupMember | null;
163
- } | {
164
- type: "replaceGroupMemberIfPresent";
165
- updatedGroupMember: CometChat.GroupMember;
166
- } | {
167
- type: "updateGroupMemberStatusIfPresent";
168
- user: CometChat.User;
169
- } | {
170
- type: "updateGroupMemberScopeIfPresent";
171
- groupMemberUid: string;
172
- newScope: CometChat.GroupMemberScope;
173
- } | {
174
- type: "appendGroupMember";
175
- groupMember: CometChat.GroupMember;
176
- };
177
- export declare function CometChatGroupMembers(props: GroupMembersProps): import("react/jsx-runtime").JSX.Element;
178
- export {};
@@ -1,38 +0,0 @@
1
- import { Action } from "./CometChatGroupMembers";
2
- import React from "react";
3
- type Args = {
4
- searchText: string;
5
- groupMemberRequestBuilder: CometChat.GroupMembersRequestBuilder | null;
6
- searchRequestBuilder: CometChat.GroupMembersRequestBuilder | null;
7
- groupGuid: string;
8
- groupMembersSearchText: React.MutableRefObject<string>;
9
- };
10
- export declare class GroupMembersManager {
11
- private groupMembersRequest;
12
- /**
13
- * Sets `groupMembersRequest` of the instance
14
- */
15
- constructor(args: Args);
16
- /**
17
- * Calls `fetchNext` method of the set `groupMembersRequest`
18
- */
19
- fetchNext(): Promise<CometChat.GroupMember[]>;
20
- getCurrentPage(): number;
21
- /**
22
- * Attaches an SDK user listener
23
- *
24
- * @returns Function to call to remove the attached SDK user listener
25
- */
26
- static attachUserListener(callback: (user: CometChat.User) => void): () => void;
27
- /**
28
- * Creates a `CometChat.GroupMember` instance from the provided `user` and `group`
29
- */
30
- static createParticipantGroupMember(user: CometChat.User, group: CometChat.Group): CometChat.GroupMember;
31
- /**
32
- * Attaches an SDK user listener
33
- *
34
- * @returns Function to call to remove the attached SDK user listener
35
- */
36
- static attachGroupListener(groupGuid: string, dispatch: React.Dispatch<Action>): () => void;
37
- }
38
- export {};
@@ -1,22 +0,0 @@
1
- import React from "react";
2
- import { Action } from "./CometChatGroupMembers";
3
- import { GroupMembersManager } from "./controller";
4
- type Args = {
5
- groupMemberRequestBuilder: CometChat.GroupMembersRequestBuilder | null;
6
- searchRequestBuilder: CometChat.GroupMembersRequestBuilder | null;
7
- searchText: string;
8
- groupMembersManagerRef: React.MutableRefObject<GroupMembersManager | null>;
9
- groupGuid: string;
10
- fetchNextAndAppendGroupMembers: (id: string) => void;
11
- fetchNextIdRef: React.MutableRefObject<string>;
12
- dispatch: React.Dispatch<Action>;
13
- loggedInUserRef: React.MutableRefObject<CometChat.User | null>;
14
- errorHandler: (error: unknown) => void;
15
- updateGroupMemberScope: (newScope: string) => Promise<void>;
16
- searchKeyword: string;
17
- disableLoadingState: boolean;
18
- groupMembersSearchText: React.MutableRefObject<string>;
19
- disableUsersPresence?: boolean;
20
- };
21
- export declare function Hooks(args: Args): void;
22
- export {};
@@ -1,150 +0,0 @@
1
- import { JSX } from "react";
2
- import { SelectionMode, States } from "../../Enums/Enums";
3
- import { CometChatOption } from "../../modals";
4
- interface GroupsProps {
5
- /**
6
- * Custom view to render on the top-right of the component
7
- */
8
- menu?: JSX.Element;
9
- /**
10
- * Title of the component
11
- *
12
- * @defaultValue `localize("GROUPS")`
13
- */
14
- title?: string;
15
- /**
16
- * Text to be displayed when the search input has no value
17
- *
18
- * @defaultValue `localize("SEARCH")`
19
- */
20
- searchPlaceholderText?: string;
21
- /**
22
- * Hide the search bar
23
- *
24
- * @defaultValue `false`
25
- */
26
- hideSearch?: boolean;
27
- /**
28
- * Request builder to fetch groups
29
- *
30
- * @remarks
31
- * If the search input is not empty and the `searchRequestBuilder` prop is not provided,
32
- * the search keyword of this request builder is set to the text in the search input
33
- *
34
- * @defaultValue Default request builder having the limit set to 30
35
- */
36
- groupsRequestBuilder?: CometChat.GroupsRequestBuilder;
37
- /**
38
- * Request builder with search parameters to fetch groups
39
- *
40
- * @remarks
41
- * If the search input is not empty,
42
- * the search keyword of this request builder is set to the text in the search input
43
- */
44
- searchRequestBuilder?: CometChat.GroupsRequestBuilder;
45
- /**
46
- * Function to call whenever the component encounters an error
47
- */
48
- onError?: ((error: CometChat.CometChatException) => void) | null;
49
- /**
50
- * Custom list item view to be rendered for each group in the fetched list
51
- */
52
- listItemView?: (group: CometChat.Group) => JSX.Element;
53
- /**
54
- * Custom subtitle view to be rendered for each group in the fetched list
55
- *
56
- * @remarks
57
- * This prop is used if `listItemView` prop is not provided
58
- */
59
- subtitleView?: (group: CometChat.Group) => JSX.Element;
60
- /**
61
- * List of actions available on mouse over on the default list item component
62
- */
63
- options?: (group: CometChat.Group) => CometChatOption[];
64
- /**
65
- * Selection mode to use for the default tail view
66
- *
67
- * @remarks
68
- * This prop is used if `listItemView` prop is not provided.
69
- *
70
- * @defaultValue `SelectionMode.none`
71
- */
72
- selectionMode?: SelectionMode;
73
- /**
74
- * Function to call when a group from the fetched list is selected
75
- *
76
- * @remarks
77
- * This prop is used if `selectionMode` prop is not `SelectionMode.none`
78
- */
79
- onSelect?: (group: CometChat.Group, selected: boolean) => void;
80
- /**
81
- * Function to call on click of the default list item view of a group
82
- */
83
- onItemClick?: (group: CometChat.Group) => void;
84
- /**
85
- * Group to highlight
86
- *
87
- * @remarks
88
- * This prop is used if `listItemView` prop is not provided
89
- */
90
- activeGroup?: CometChat.Group;
91
- /**
92
- * Custom view for the loading state of the component
93
- */
94
- loadingStateView?: JSX.Element;
95
- /**
96
- * Custom view for the empty state of the component
97
- */
98
- emptyStateView?: JSX.Element;
99
- /**
100
- * Custom view for the error state of the component
101
- */
102
- errorStateView?: JSX.Element;
103
- /**
104
- * Hide error view
105
- *
106
- * @remarks
107
- * If set to true, hides the default and the custom error view
108
- *
109
- * @defaultValue `false`
110
- */
111
- hideError?: boolean;
112
- }
113
- export type Action = {
114
- type: "appendGroups";
115
- groups: CometChat.Group[];
116
- removeOldGroups?: boolean;
117
- } | {
118
- type: "setGroupList";
119
- groupList: CometChat.Group[];
120
- } | {
121
- type: "setFetchState";
122
- fetchState: States;
123
- } | {
124
- type: "updateGroup";
125
- group: CometChat.Group;
126
- } | {
127
- type: "updateGroupForSDKEvents";
128
- group: CometChat.Group;
129
- newScope?: CometChat.GroupMemberScope;
130
- newCount?: number;
131
- hasJoined?: boolean;
132
- addGroup?: boolean;
133
- } | {
134
- type: "removeGroup";
135
- guid: string;
136
- } | {
137
- type: "prependGroup";
138
- group: CometChat.Group;
139
- } | {
140
- type: "setSearchText";
141
- searchText: string;
142
- } | {
143
- type: "setIsFirstReload";
144
- isFirstReload: boolean;
145
- };
146
- /**
147
- * Renders a scrollable list of groups that has been created in a CometChat app
148
- */
149
- export declare function CometChatGroups(props: GroupsProps): import("react/jsx-runtime").JSX.Element;
150
- export {};
@@ -1,44 +0,0 @@
1
- import React from "react";
2
- import { Action } from "./CometChatGroups";
3
- type Args = {
4
- searchText: string;
5
- groupsRequestBuilder: CometChat.GroupsRequestBuilder | null;
6
- searchRequestBuilder: CometChat.GroupsRequestBuilder | null;
7
- groupsSearchText: React.MutableRefObject<string>;
8
- };
9
- export declare class GroupsManager {
10
- private groupsRequest;
11
- private static loggedInUser;
12
- private static defaultLimit;
13
- /**
14
- * Set `groupsRequest` of the instance
15
- */
16
- constructor(args: Args);
17
- /**
18
- * Calls `fetchNext` method of the set `groupsRequest`
19
- */
20
- fetchNext(): Promise<[] | import("@cometchat/chat-sdk-javascript").Group[]>;
21
- private getDefaultRequestBuilder;
22
- /**
23
- * Sets `loggedInUser` of the instance
24
- * @returns The logged-in user
25
- */
26
- private static getLoggedInUser;
27
- /**
28
- * Creates an SDK group listener
29
- */
30
- private static createGroupListener;
31
- /**
32
- * Attaches an SDK group listener
33
- *
34
- * @returns Function to call to remove the attached SDK group listener
35
- */
36
- static attachListeners(dispatch: React.Dispatch<Action>): () => void;
37
- /**
38
- * Attaches an SDK websocket listener
39
- *
40
- * @returns - Function to remove the added SDK websocket listener
41
- */
42
- static attachConnestionListener(callback: () => void): () => void;
43
- }
44
- export {};
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { Action } from "./CometChatGroups";
3
- import { GroupsManager } from "./controller";
4
- type Args = {
5
- groupsRequestBuilder: CometChat.GroupsRequestBuilder | null;
6
- searchRequestBuilder: CometChat.GroupsRequestBuilder | null;
7
- searchText: string;
8
- fetchNextIdRef: React.MutableRefObject<string>;
9
- groupsManagerRef: React.MutableRefObject<GroupsManager | null>;
10
- dispatch: React.Dispatch<Action>;
11
- fetchNextAndAppendGroups: (fetchId: string) => Promise<void>;
12
- groupsSearchText: React.MutableRefObject<string>;
13
- };
14
- export declare function useCometChatGroups(args: Args): void;
15
- export {};
@@ -1,166 +0,0 @@
1
- import { JSX } from "react";
2
- import { CometChatTextFormatter } from "../../formatters/CometChatFormatters/CometChatTextFormatter";
3
- import { CometChatMessageComposerAction } from "../../modals";
4
- import { PreviewMessageMode } from "../../Enums/Enums";
5
- export type ContentToDisplay = "attachments" | "emojiKeyboard" | "voiceRecording" | "ai" | "none";
6
- export type ActionOnClickType = (() => void) | null;
7
- interface MessageComposerProps {
8
- /**
9
- * User to send messages to
10
- */
11
- user?: CometChat.User;
12
- /**
13
- * Group to send messages to
14
- *
15
- * @remarks
16
- * This prop is used if `user` prop is not provided
17
- */
18
- group?: CometChat.Group;
19
- /**
20
- * Text to fill the message input with
21
- *
22
- * @remarks
23
- * This prop is used only when this component mounts
24
- *
25
- * @defaultValue `""`
26
- */
27
- text?: string;
28
- /**
29
- * Function to call when the message input's text value changes
30
- */
31
- onTextChange?: (text: string) => void;
32
- /**
33
- * Text shown in the message input when it is empty
34
- */
35
- placeHolderText?: string;
36
- /**
37
- * Custom send button view
38
- */
39
- sendButtonView?: JSX.Element;
40
- /**
41
- * Function to call whenever a new text message is sent
42
- */
43
- onSendButtonClick?: (message: CometChat.BaseMessage, previewMessageMode?: PreviewMessageMode) => void;
44
- /**
45
- * Custom secondary button view
46
- */
47
- secondaryButtonView?: JSX.Element;
48
- /**
49
- * Custom auxiliary button view
50
- */
51
- auxiliaryButtonView?: JSX.Element;
52
- /**
53
- * Options for the default secondary view
54
- */
55
- attachmentOptions?: CometChatMessageComposerAction[];
56
- /**
57
- * Id of the parent message
58
- */
59
- parentMessageId?: number;
60
- /**
61
- * Preview section at the top of the message input
62
- */
63
- headerView?: JSX.Element;
64
- /**
65
- * Function to call whenever the component encounters an error
66
- */
67
- onError?: ((error: CometChat.CometChatException) => void) | null;
68
- /**
69
- * Disable sending typing events
70
- *
71
- * @defaultValue `false`
72
- */
73
- disableTypingEvents?: boolean;
74
- /**
75
- * Hide voice recording button
76
- */
77
- hideVoiceRecording?: boolean;
78
- /**
79
- * Hide emoji keyboard button
80
- */
81
- hideEmojiKeyboard?: boolean;
82
- /**
83
- * fotmatters for composer text
84
- */
85
- textFormatters?: Array<CometChatTextFormatter>;
86
- /**
87
- * boolean to hide mentions UI
88
- */
89
- disableMentions?: boolean;
90
- /**
91
- * text to show when mentions limit exceeds
92
- */
93
- mentionsWarningText?: string;
94
- }
95
- /**
96
- * Represents the state of the message composer.
97
- * @type {State}
98
- */
99
- type State = {
100
- /** The current text entered in the message input field. */
101
- text: string;
102
- /** Additional text to be added to the message input field, often from mentions or formatting. */
103
- addToMsgInputText: string;
104
- /** A reference to the text message that is currently being edited, or null if none. */
105
- textMessageToEdit: CometChat.TextMessage | null;
106
- /** The content that is currently being displayed in the composer (e.g., text, polls, media). */
107
- contentToDisplay: ContentToDisplay;
108
- /** The currently logged-in user, or null if no user is logged in. */
109
- loggedInUser: CometChat.User | null;
110
- /** A flag indicating whether the poll UI is visible. */
111
- showPoll: boolean;
112
- /** A flag indicating whether a warning about the mention count should be shown. */
113
- showMentionsCountWarning: boolean;
114
- /** A flag indicating whether a warning about the file validation should be shown. */
115
- showValidationError: boolean;
116
- };
117
- /**
118
- * Represents the possible actions that can be dispatched to update the state.
119
- * @type {Action}
120
- */
121
- export type Action =
122
- /** Action to update the text in the message input field. */
123
- {
124
- type: "setText";
125
- text: State["text"];
126
- }
127
- /** Action to update the additional text to be added to the message input field (e.g., mentions). */
128
- | {
129
- type: "setAddToMsgInputText";
130
- addToMsgInputText: State["addToMsgInputText"];
131
- }
132
- /** Action to set the message that is being edited. */
133
- | {
134
- type: "setTextMessageToEdit";
135
- textMessageToEdit: State["textMessageToEdit"];
136
- }
137
- /** Action to change the content being displayed in the composer (e.g., text, polls). */
138
- | {
139
- type: "setContentToDisplay";
140
- contentToDisplay: ContentToDisplay;
141
- }
142
- /** Action to update the logged-in user in the state. */
143
- | {
144
- type: "setLoggedInUser";
145
- loggedInUser: CometChat.User;
146
- }
147
- /** Action to show or hide the poll UI. */
148
- | {
149
- type: "setShowPoll";
150
- showPoll: boolean;
151
- }
152
- /** Action to show or hide the mentions count warning. */
153
- | {
154
- type: "setShowMentionsCountWarning";
155
- showMentionsCountWarning: boolean;
156
- }
157
- /** Action to show or hide the validation error */
158
- | {
159
- type: "setShowValidationError";
160
- showValidationError: boolean;
161
- };
162
- /**
163
- * Renders a message composer to send messages to a user or group of a CometChat App
164
- */
165
- export declare function CometChatMessageComposer(props: MessageComposerProps): import("react/jsx-runtime").JSX.Element;
166
- export {};
@@ -1,42 +0,0 @@
1
- import { Action } from "./CometChatMessageComposer";
2
- import { Group, GroupMembersRequestBuilder, User, UsersRequestBuilder } from "@cometchat/chat-sdk-javascript";
3
- import React from "react";
4
- import { CometChatMentionsFormatter } from "../../formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter";
5
- import { CometChatTextFormatter } from "../../formatters/CometChatFormatters/CometChatTextFormatter";
6
- import { UserMemberListType } from "../../Enums/Enums";
7
- type Args = {
8
- dispatch: React.Dispatch<Action>;
9
- mySetAddToMsgInputText: (text: string) => void;
10
- errorHandler: (error: unknown) => void;
11
- pasteHtmlAtCaret: (text: string) => void;
12
- textFormatters: Array<CometChatTextFormatter>;
13
- disableMentions: boolean;
14
- textFormatterArray: Array<CometChatTextFormatter>;
15
- mentionsTextFormatterInstanceRef: React.MutableRefObject<CometChatMentionsFormatter>;
16
- setTextFormatters: React.Dispatch<React.SetStateAction<CometChatTextFormatter[]>>;
17
- CometChatUIKitLoginListener: any;
18
- group: CometChat.Group | undefined;
19
- user: CometChat.User | undefined;
20
- userPropRef: React.MutableRefObject<User | undefined>;
21
- groupPropRef: React.MutableRefObject<Group | undefined>;
22
- setShowListForMentions: Function;
23
- searchMentions: Function;
24
- mentionsFormatterInstanceId: string;
25
- setUsersRequestBuilder: React.Dispatch<React.SetStateAction<UsersRequestBuilder | undefined>>;
26
- setGroupMembersRequestBuilder: React.Dispatch<React.SetStateAction<GroupMembersRequestBuilder | undefined>>;
27
- setUserMemberListType: React.Dispatch<React.SetStateAction<UserMemberListType | undefined>>;
28
- textInputRef: React.MutableRefObject<any>;
29
- createPollViewRef: React.MutableRefObject<any>;
30
- setSelection: Function;
31
- getComposerId: Function;
32
- parentMessageIdPropRef: any;
33
- emptyInputField: Function;
34
- propsText: string | undefined;
35
- currentSelectionForRegex: React.MutableRefObject<any>;
36
- currentSelectionForRegexRange: React.MutableRefObject<any>;
37
- text: string;
38
- getCurrentInput: Function;
39
- isPartOfCurrentChatForUIEvent: (message: CometChat.BaseMessage) => boolean | undefined;
40
- };
41
- export declare function useCometChatMessageComposer(args: Args): void;
42
- export {};
@@ -1,29 +0,0 @@
1
- import { JSX } from "react";
2
- /**
3
- * Interface for the props accepted by the CometChatMessageHeader component.
4
- */
5
- interface MessageHeaderProps {
6
- /** Custom subtitle view, allowing you to render a JSX element as the subtitle */
7
- subtitleView?: JSX.Element;
8
- /** Disables showing the user's online/offline presence if set to true */
9
- disableUsersPresence?: boolean;
10
- /** Disables showing the typing indicator if set to true */
11
- disableTyping?: boolean;
12
- /** Custom JSX element for the menu, which can be used for additional options or actions */
13
- menu?: JSX.Element;
14
- /** The user object from CometChat, used to show user-specific information (e.g., status) */
15
- user?: CometChat.User;
16
- /** The group object from CometChat, used to show group-specific information (e.g., member count) */
17
- group?: CometChat.Group;
18
- /** Custom JSX element for rendering a list item view, often used to display user/group details */
19
- listItemView?: JSX.Element;
20
- /** Callback function to handle any errors related to CometChat operations */
21
- onError?: ((error: CometChat.CometChatException) => void) | null;
22
- /** Callback function triggered when the back action is performed (e.g., navigating to the previous view) */
23
- onBack?: () => void;
24
- /** Controls the visibility of the back button. */
25
- hideBackButton?: boolean;
26
- }
27
- /** Functional component for rendering the CometChatMessageHeader */
28
- export declare const CometChatMessageHeader: (props: MessageHeaderProps) => import("react/jsx-runtime").JSX.Element;
29
- export {};
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare function useCometChatMessageHeader(loggedInUser: CometChat.User | null, setLoggedInUser: Function, attachListeners: Function, userRef: React.MutableRefObject<CometChat.User | undefined>, groupRef: React.MutableRefObject<CometChat.Group | undefined>, updateSubtitle: Function, subscribeToEvents: Function, user?: CometChat.User, group?: CometChat.Group): void;
3
- export { useCometChatMessageHeader };