@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
@@ -11,11 +11,11 @@ import { ComposerId } from "./MessagesDataSource";
11
11
  * It is used in AI and calling module and utils related to messages.
12
12
  */
13
13
  export declare abstract class DataSource {
14
- abstract getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
15
- abstract getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
16
- abstract getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
17
- abstract getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
18
- abstract getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
14
+ abstract getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
15
+ abstract getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
16
+ abstract getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
17
+ abstract getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
18
+ abstract getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
19
19
  abstract getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX.Element | null;
20
20
  abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipt?: boolean, datePattern?: DatePatterns): Element | JSX.Element | null;
21
21
  abstract getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, otherParams: Object | undefined): Element | JSX.Element;
@@ -28,26 +28,25 @@ export declare abstract class DataSource {
28
28
  abstract getVideoMessageTemplate(): CometChatMessageTemplate;
29
29
  abstract getAudioMessageTemplate(): CometChatMessageTemplate;
30
30
  abstract getFileMessageTemplate(): CometChatMessageTemplate;
31
- abstract getGroupActionTemplate(): CometChatMessageTemplate;
31
+ abstract getGroupActionTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
32
32
  abstract getAllMessageTemplates(additionalConfigurations?: Object | undefined): Array<CometChatMessageTemplate>;
33
33
  abstract getMessageTemplate(messageType: string, messageCategory: string): CometChatMessageTemplate | null;
34
- abstract getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
35
- abstract getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
36
- abstract getAttachmentOptions(id: ComposerId): CometChatMessageComposerAction[];
34
+ abstract getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
35
+ abstract getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
36
+ abstract getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): CometChatMessageComposerAction[];
37
37
  abstract getAllMessageTypes(): Array<string>;
38
- abstract getAllMessageCategories(): Array<string>;
39
- abstract getAuxiliaryOptions(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element[];
38
+ abstract getAllMessageCategories(additionalConfigurations?: Object | undefined): Array<string>;
39
+ abstract getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
40
40
  abstract getId(): string;
41
- abstract getDeleteMessageBubble(messageObject: CometChat.BaseMessage): Element | JSX.Element;
41
+ abstract getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
42
42
  abstract getGroupActionBubble(message: CometChat.BaseMessage): Element | JSX.Element;
43
43
  abstract getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
44
- abstract getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
45
- abstract getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): Element | JSX.Element;
46
- abstract getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string): Element | JSX.Element;
47
- abstract getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string): Element | JSX.Element;
44
+ abstract getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
45
+ abstract getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
46
+ abstract getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
47
+ abstract getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
48
48
  abstract getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: additionalParams): string;
49
- abstract getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group): Element[] | JSX.Element[];
50
- abstract getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, id?: ComposerId): (CometChatMessageComposerAction | CometChatActionsView)[];
49
+ abstract getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
51
50
  abstract getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
52
51
  abstract getMentionsTextFormatter(params: Object): CometChatMentionsFormatter;
53
52
  abstract getUrlTextFormatter(params: Object): CometChatUrlsFormatter;
@@ -13,11 +13,11 @@ import { DatePatterns, MessageBubbleAlignment } from "../Enums/Enums";
13
13
  export declare abstract class DataSourceDecorator implements DataSource {
14
14
  dataSource: DataSource;
15
15
  constructor(dataSource: DataSource);
16
- getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
17
- getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
18
- getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
19
- getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
20
- getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
16
+ getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
17
+ getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
18
+ getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
19
+ getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
20
+ getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
21
21
  getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipt?: boolean, datePattern?: DatePatterns): JSX.Element | Element | null;
22
22
  getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): JSX.Element | Element | null;
23
23
  getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX.Element | Element;
@@ -30,26 +30,25 @@ export declare abstract class DataSourceDecorator implements DataSource {
30
30
  getVideoMessageTemplate(): CometChatMessageTemplate;
31
31
  getAudioMessageTemplate(): CometChatMessageTemplate;
32
32
  getFileMessageTemplate(): CometChatMessageTemplate;
33
- getGroupActionTemplate(): CometChatMessageTemplate;
33
+ getGroupActionTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
34
34
  getAllMessageTemplates(additionalConfigurations?: Object | undefined): CometChatMessageTemplate[];
35
35
  getMessageTemplate(messageType: string, messageCategory: string): CometChatMessageTemplate | null;
36
- getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
37
- getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
38
- getAttachmentOptions(id: ComposerId): CometChatMessageComposerAction[];
36
+ getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
37
+ getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
38
+ getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): CometChatMessageComposerAction[];
39
39
  getAllMessageTypes(): string[];
40
- getAllMessageCategories(): string[];
41
- getAuxiliaryOptions(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element[];
40
+ getAllMessageCategories(additionalConfigurations?: Object | undefined): string[];
41
+ getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
42
42
  getId(): string;
43
- getDeleteMessageBubble(messageObject: CometChat.BaseMessage): JSX.Element | Element;
43
+ getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): JSX.Element | Element;
44
44
  getGroupActionBubble(message: CometChat.BaseMessage): JSX.Element | Element;
45
45
  getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX.Element | Element;
46
- getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): JSX.Element | Element;
47
- getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): JSX.Element | Element;
48
- getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string): JSX.Element | Element;
49
- getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string): JSX.Element | Element;
46
+ getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): JSX.Element | Element;
47
+ getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): JSX.Element | Element;
48
+ getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX.Element | Element;
49
+ getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX.Element | Element;
50
50
  getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: additionalParams): string;
51
- getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group): Element[] | JSX.Element[];
52
- getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, id?: ComposerId): (CometChatMessageComposerAction | CometChatActionsView)[];
51
+ getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
53
52
  getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
54
53
  getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
55
54
  getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
@@ -12,7 +12,7 @@ export declare class GroupMemberUtils {
12
12
  * @param {string} [loggedInUser=""] - The UID of the logged-in user.
13
13
  * @returns {CometChatOption[] | string} - An array of options or the member's scope as a string.
14
14
  */
15
- static getViewMemberOptions(groupMember: CometChat.GroupMember, group: CometChat.Group, loggedInUser?: string): string | CometChatOption[];
15
+ static getViewMemberOptions(groupMember: CometChat.GroupMember, group: CometChat.Group, loggedInUser?: string, additionalConfigurations?: any): string | CometChatOption[];
16
16
  /**
17
17
  * Retrieves the available options for a banned group member.
18
18
  *
@@ -12,7 +12,7 @@ export declare class MessageUtils {
12
12
  * @param {CometChatMessageTemplate} template - The message template to use for rendering the content view.
13
13
  * @returns {object | null} - The content view for the message, or null if not found.
14
14
  */
15
- getContentView(message: CometChat.BaseMessage, template: CometChatMessageTemplate): any;
15
+ getContentView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment): any;
16
16
  /**
17
17
  * Retrieves the content view for a message based on the provided template.
18
18
  *
@@ -16,6 +16,16 @@ export type ComposerId = {
16
16
  * Utility class that extends DataSource and provides getters for message options.
17
17
  * It is used in message and dataSource utils.
18
18
  */
19
+ export interface additionalParamsOptions {
20
+ hideReplyInThreadOption?: boolean;
21
+ hideTranslateMessageOption?: boolean;
22
+ hideReactionOption?: boolean;
23
+ hideEditMessageOption?: boolean;
24
+ hideDeleteMessageOption?: boolean;
25
+ hideMessagePrivatelyOption?: boolean;
26
+ hideCopyMessageOption?: boolean;
27
+ hideMessageInfoOption?: boolean;
28
+ }
19
29
  export declare class MessagesDataSource implements DataSource {
20
30
  getEditOption(): CometChatActionsIcon;
21
31
  getDeleteOption(): CometChatActionsIcon;
@@ -25,12 +35,12 @@ export declare class MessagesDataSource implements DataSource {
25
35
  getCopyOption(): CometChatActionsIcon;
26
36
  getMessageInfoOption(): CometChatActionsIcon;
27
37
  isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
28
- getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
38
+ getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
29
39
  getIsSentByMe(message: CometChat.BaseMessage): boolean;
30
- getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
31
- getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
32
- getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
33
- getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
40
+ getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
41
+ getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
42
+ getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
43
+ getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
34
44
  getReceiptClass(status?: number): "wait" | "read" | "error" | "delivered" | "sent" | undefined;
35
45
  /**
36
46
  * Function to get receipt for message bubble
@@ -50,16 +60,20 @@ export declare class MessagesDataSource implements DataSource {
50
60
  getAudioMessageTemplate(): CometChatMessageTemplate;
51
61
  getVideoMessageTemplate(): CometChatMessageTemplate;
52
62
  getImageMessageTemplate(): CometChatMessageTemplate;
53
- getGroupActionTemplate(): CometChatMessageTemplate;
63
+ getGroupActionTemplate(additionalConfigurations?: {
64
+ hideGroupActionMessages?: boolean;
65
+ }): CometChatMessageTemplate;
54
66
  getFileMessageTemplate(): CometChatMessageTemplate;
55
67
  getAllMessageTemplates(additionalConfigurations?: additionalParams): Array<CometChatMessageTemplate>;
56
68
  getMessageTemplate(messageType: string, messageCategory: string, additionalConfigurations?: additionalParams): CometChatMessageTemplate | null;
57
- getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
58
- getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): Array<CometChatActionsIcon | CometChatActionsView>;
69
+ getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
70
+ getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: additionalParamsOptions): Array<CometChatActionsIcon | CometChatActionsView>;
59
71
  getAllMessageTypes(): Array<string>;
60
72
  addList(): string;
61
- getAllMessageCategories(): Array<string>;
62
- getAuxiliaryOptions(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element[];
73
+ getAllMessageCategories(additionalConfigurations?: {
74
+ hideGroupActionMessages?: boolean;
75
+ }): Array<string>;
76
+ getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
63
77
  getId(): string;
64
78
  getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
65
79
  getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
@@ -67,10 +81,10 @@ export declare class MessagesDataSource implements DataSource {
67
81
  getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
68
82
  getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
69
83
  getActionMessage(message: any): string;
70
- getDeleteMessageBubble(message: CometChat.BaseMessage, text?: string): import("react/jsx-runtime").JSX.Element;
84
+ getDeleteMessageBubble(message: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): import("react/jsx-runtime").JSX.Element;
71
85
  getGroupActionBubble(message: CometChat.BaseMessage): import("react/jsx-runtime").JSX.Element;
72
86
  getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
73
- getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string): Element | JSX.Element;
87
+ getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
74
88
  /**
75
89
  * Function to check mimeType and return the iconUrl of that type
76
90
  * @param mimeType
@@ -83,17 +97,16 @@ export declare class MessagesDataSource implements DataSource {
83
97
  * @returns
84
98
  */
85
99
  getFileSize: (sizeInBytes: number) => string;
86
- getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string): Element | JSX.Element;
100
+ getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
87
101
  getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): import("react/jsx-runtime").JSX.Element;
88
102
  getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
89
103
  imageAttachmentOption(): CometChatMessageComposerAction;
90
104
  videoAttachmentOption(): CometChatMessageComposerAction;
91
105
  audioAttachmentOption(): CometChatMessageComposerAction;
92
106
  fileAttachmentOption(): CometChatMessageComposerAction;
93
- getAttachmentOptions(id: ComposerId): Array<CometChatMessageComposerAction>;
107
+ getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
94
108
  getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: additionalParams): string;
95
- getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group): Element[] | JSX.Element[];
96
- getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, id?: ComposerId): Array<CometChatMessageComposerAction | CometChatActionsView>;
109
+ getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
97
110
  /**
98
111
  * Adds styled @ for every mention in the text by matching uid
99
112
  *
@@ -1,5 +1,10 @@
1
1
  export declare function sanitizeHtml(htmlString: string, whitelistRegExes: RegExp[]): string;
2
2
  export declare function isMessageSentByMe(message: CometChat.BaseMessage, loggedInUser: CometChat.User): boolean;
3
+ /**
4
+ * Function to check if the current browser is safari.
5
+ * @returns boolean
6
+ */
7
+ export declare function isSafari(): boolean;
3
8
  /**
4
9
  * Checks if a given text is a URL.
5
10
  * A valid URL should start with either "http", "https", or "www" and must not contain spaces.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/chat-uikit-react",
3
- "version": "5.0.0-beta1",
3
+ "version": "5.0.0",
4
4
  "description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
5
5
  "author": "CometChat",
6
6
  "dependencies": {
@@ -1,22 +0,0 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3
- "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
- <svg version="1.0" xmlns="http://www.w3.org/2000/svg"
5
- width="100.000000pt" height="100.000000pt" viewBox="0 0 100.000000 100.000000"
6
- preserveAspectRatio="xMidYMid meet">
7
-
8
- <g transform="translate(0.000000,100.000000) scale(0.100000,-0.100000)"
9
- fill="#000000" stroke="none">
10
- <path d="M375 847 c-221 -73 -326 -269 -254 -472 l22 -62 -25 -74 c-14 -41
11
- -23 -80 -21 -86 6 -17 42 -15 138 6 77 17 82 17 138 -1 72 -22 199 -25 216 -4
12
- 6 7 9 21 5 30 -5 13 -21 16 -79 16 -44 0 -98 8 -136 19 -58 18 -67 19 -123 6
13
- -89 -21 -88 -23 -65 42 l20 58 -26 56 c-52 116 -25 240 69 327 77 71 123 87
14
- 246 87 123 0 169 -16 245 -86 64 -59 88 -108 94 -199 5 -68 8 -75 28 -78 36
15
- -5 48 38 33 118 -22 125 -94 215 -218 273 -59 28 -79 32 -167 34 -63 2 -115
16
- -2 -140 -10z"/>
17
- <path d="M687 313 c-16 -15 -4 -42 38 -83 l45 -44 -45 -46 c-47 -48 -56 -74
18
- -28 -84 11 -5 31 8 64 40 l48 47 50 -46 c54 -50 61 -53 79 -35 18 18 15 25
19
- -35 79 l-46 50 48 49 c41 42 46 51 35 65 -19 23 -30 19 -80 -30 l-46 -45 -44
20
- 45 c-41 42 -68 54 -83 38z"/>
21
- </g>
22
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100" xml:space="preserve" version="1.1" viewBox="0 0 100 100">
2
- <image width="100" height="100" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAABqxJREFUeF7tnY2x5DQMgHUdcBUAFXBUAFQAVABXAVABUAFQAVDBQQVABRwVABUAFcB8MzEsef6RbHmjl9gzO+/mNnFkfZIs/6zzRFYJpYEnoaRZwsgCEswIFpAFJJgGgomzPGQBCaaBYOIsD1lAgmkgmDjLQxaQYBoIJs7ykAUkmAaCifMYPeQVEXlt+/DvXPlt+8+XIvJnMJ1XxYkOBMW/JyJviMizBoRSQwECID4/iciPIgKokCUaECz+bRF5dwNR8oBRZQIJMN9vf5NHjdY7fH8UIED4YDKEmrK+E5FvRYS/h5YjgWD9hCNAACRCwVM+38Ac0vccBeRDEflCRGaFpFG4gPlKRL4crch6/72B4Alfb52zVdZ0PZb7101HnauHZADYrw5CTx7zTa+w1vvuBQTlYG2EJ2shMyIrStmRtQPm2WRoGAOft6wCiAhACGXWZ5sfdQ8gVq/AA8h+6GCBMCOWIxNhk2xOGzaR45MNjlnR2htmA/lURD5TCoMnAAFrnAGhJAZg+Gg9B08HzJQyCwhW90KZPQECaHjDkQWvQQ4NGELo+zNC2AwgdKjAIG7XCvEYSzs8998JSSpOBkg7WvK/4w3FGwiN+EHRGFJKrPGeocnqfchHyL0rFE8gGhh4xfMA4UkLR9smN0/xAkKfgWfUwhR9BeEgslfkQNE2vOWjCkUMzQWKFxBi7scVgQlRte+1Fnvkda0QRkf/5qiAHkBaqS0DKm3qO9qe2fe3oAynxKNAiLG/VrRwJhipmS0ohK7uFH4UCDBK6eEZwlTJ1mpQ6CNf7+0rR4DUQpVLPJ0dfwbrZ6xFkpIr3aGrF0gtVLllHIMKm3072dfPlQjRFbp6gTDfVJq5ZZxxt+nq2Vpv1M90C+l+rtCPAMVUeoDUvAMQALlSITyVxihmL+kBUvMOOrPpawbBaBO6SG5y0/hmL7ECqT38it6hSYWfWjIuKxDWDViCzZUrekfSQ81QTWMxKxA6sNwOkSt7R8tLCOEYq6pYgGAFfxRqNXdeKuke10W1ZIc5LtVuSQsQBkEMhvbFZAGPS8dmaUsRhIU41ZYiC5BSdrXC1X/cSlMqbNoojer/R90ChFFpbr2DteVoy7Bm03a6oTRQZH6LbKtZLED+XtlVU59cQD+bG5OoslAtEDwDD9kXNXlVU85x0VAk0QIpuSLLslE2SkfBWeprVXN8WiClAaG6s4qirTvIUZrbUg0QR4GsDOsh4VKm5Qqk9JAzrwr2OtNdgLBjhJ0l+7KAHOQhpT5khaxgQFan/hBIKZq4ZlmltPcKmxmsfUlurV29z0CbZZVmMtfAMI8LfdG58xejJRVWraRqgQxPCVjN7KrXW4CUpgRUsfGqCra22wKkNAJdmZZV65XrLUBqU8vdWycd23KKqixAagv5awnXyRwsQHhkaYnSvP/ISf7TVWMFUlpXRzHLSxzMwwrEdZeeg/ynq8IKBAXUfhtxJS8hycFAGfipBn0a6+kBcnUv2f8OHxhs9FDtu2pB6QHS8hL1HqSWcEG/zy3Ruk0h9QKpecnZN86VZixUu0paRtYLhHpLI/ezzwBjcJzDtS+HA7nqxuuQQGobi8+eaYUEUlrSPXv/QZgKCeSq4SokkCuHq5BArhyuQgK5crgKB+Tq4SocEI9wBVQm5viJA289oPCDH/Z4uU3StUbEA9+HyrKs4Sq97SC9biLNkOb0wXwQYNie6jJRN6D02q1hgLTCFUrE6pPlo/zWyZ6lhtPo28OUPXWLfBygjGwcWa7eM7UJEQZI7dCABMNTcamu9K6PX27WHrQehNLTi2A4jzfnoSiYny1rz4IMM7lYClczIGjqTG/O2SsyeaXFOy1LBrkFOrcZCu1sb+soP40CI19j/VnF7Uy3et+uRgFaIGxuSGecaA+vLz0fi/795m0H6e06GnlnXdOz+xI98HHNDLVAkpuiTCuQW+WzXYgG5MIMYNjKn1LhWcrf18urjugfQxQtkNrJabcNQdG3b0LreW1dejMbXqk5GL9HkUlGDKT7BNGeB7fu0QKhnn1nhvJT5pNeuOLqvpvwaRCZMiY8SOulKTwi3+1Hm1G19Of+vQUID09KQfHa1NNd6K3C9FqjPZxkFDOMY1Zb/q3XCmS6QFd/wALSbwFhNsr1N+Ecd4bcKHcO1fa1IuRGub6mnOOuMHNZ51DneCtKc3qm42BLYqxO3Q4oN0hWHSyjedQCotHSw2vS79AZA6V3L/bVtLtrAXFRo18lC4ifLl1qWkBc1OhXyQLip0uXmhYQFzX6VfIP+qZ1dOfAgekAAAAASUVORK5CYII="/>
3
- </svg>
Binary file
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>Icons/24/Send</title>
4
- <g id="Icons" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
5
- <g id="Icons/24/Send" stroke="#000000" stroke-width="1.5">
6
- <g id="Group" transform="translate(3.000000, 3.000000)">
7
- <path d="M0.158865921,1.85985859 C-0.108182698,1.38202197 -0.0332622567,0.786017075 0.343741637,0.389140701 C0.72074553,-0.00773567366 1.31211969,-0.113146836 1.80303259,0.129025252 L17.6480326,8.17819192 C17.857662,8.28481329 17.9896898,8.50008892 17.9896898,8.73527525 C17.9896898,8.97046158 17.857662,9.18573721 17.6480326,9.29235859 L1.80303259,17.3523586 C1.31211969,17.5945307 0.72074553,17.4891195 0.343741637,17.0922431 C-0.0332622567,16.6953668 -0.108182698,16.0993619 0.158865921,15.6215253 L4.37386592,8.73485859 L0.158865921,1.85985859 Z" id="Path"></path>
8
- <line x1="17.9896993" y1="8.73485859" x2="4.36969925" y2="8.73485859" id="Path"></line>
9
- </g>
10
- </g>
11
- </g>
12
- </svg>
@@ -1,30 +0,0 @@
1
- .cometchat-ai-card__container {
2
- height:fit-content;
3
- max-height: 30px;
4
- width: 100%;
5
- border:none;
6
- border-radius: 0;
7
- background: none;
8
- }
9
-
10
- .cometchat-ai-card__loading-state,
11
- .cometchat-ai-card__empty-state,
12
- .cometchat-ai-card__error-state
13
- {
14
- height:fit-content;
15
- display: flex;
16
- width: 100%;
17
- gap: 8px;
18
- align-items: center;
19
- justify-content: center;
20
- flex-wrap: wrap;
21
- text-align: center;
22
- }
23
-
24
- .cometchat-ai-card__loading-icon-url,
25
- .cometchat-ai-card__error-icon-url,
26
- .cometchat-ai-card__empty-icon-url
27
- {
28
- width: 24px;
29
- height: 24px;
30
- }
@@ -1,15 +0,0 @@
1
- .cometchat-badge {
2
- height: min-content;
3
- width: min-content;
4
- border-radius: 20px;
5
- background: #6852D6;
6
- font-weight: 400;
7
- font-size: 12px;
8
- color: white;
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- padding: 4px;
13
- min-width: 26px;
14
- min-height: 16px;
15
- }
@@ -1,41 +0,0 @@
1
- * {
2
- box-sizing: border-box;
3
- }
4
-
5
- .cometchat-card {
6
- display: flex;
7
- flex-direction: column;
8
- align-items: center;
9
- padding: 8px;
10
- justify-content: space-between;
11
- height: 100%;
12
- width: 100%;
13
- }
14
-
15
- .cometchat-card__details {
16
- display: flex;
17
- flex-direction: column;
18
- align-items: center;
19
- justify-content: center;
20
- }
21
-
22
- .cometchat-card__subtitle-view {
23
- margin-bottom: 20px;
24
- }
25
-
26
- .cometchat-card__image {
27
- height: fit-content;
28
- width: fit-content;
29
- margin-bottom: 20px;
30
- display: flex;
31
- align-items: center;
32
- justify-content: center;
33
- }
34
-
35
- .cometchat-card__bottom-view {
36
- cursor: pointer;
37
- display: flex;
38
- flex-direction: column;
39
- justify-content: center;
40
- align-items: center;
41
- }
@@ -1,30 +0,0 @@
1
- .cometchat-ai-card__container {
2
- height:fit-content;
3
- max-height: 30px;
4
- width: 100%;
5
- border:none;
6
- border-radius: 0;
7
- background: none;
8
- }
9
-
10
- .cometchat-ai-card__loading-state,
11
- .cometchat-ai-card__empty-state,
12
- .cometchat-ai-card__error-state
13
- {
14
- height:fit-content;
15
- display: flex;
16
- width: 100%;
17
- gap: 8px;
18
- align-items: center;
19
- justify-content: center;
20
- flex-wrap: wrap;
21
- text-align: center;
22
- }
23
-
24
- .cometchat-ai-card__loading-icon-url,
25
- .cometchat-ai-card__error-icon-url,
26
- .cometchat-ai-card__empty-icon-url
27
- {
28
- width: 24px;
29
- height: 24px;
30
- }
@@ -1,15 +0,0 @@
1
- .cometchat-badge {
2
- height: min-content;
3
- width: min-content;
4
- border-radius: 20px;
5
- background: #6852D6;
6
- font-weight: 400;
7
- font-size: 12px;
8
- color: white;
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- padding: 4px;
13
- min-width: 26px;
14
- min-height: 16px;
15
- }
@@ -1,41 +0,0 @@
1
- * {
2
- box-sizing: border-box;
3
- }
4
-
5
- .cometchat-card {
6
- display: flex;
7
- flex-direction: column;
8
- align-items: center;
9
- padding: 8px;
10
- justify-content: space-between;
11
- height: 100%;
12
- width: 100%;
13
- }
14
-
15
- .cometchat-card__details {
16
- display: flex;
17
- flex-direction: column;
18
- align-items: center;
19
- justify-content: center;
20
- }
21
-
22
- .cometchat-card__subtitle-view {
23
- margin-bottom: 20px;
24
- }
25
-
26
- .cometchat-card__image {
27
- height: fit-content;
28
- width: fit-content;
29
- margin-bottom: 20px;
30
- display: flex;
31
- align-items: center;
32
- justify-content: center;
33
- }
34
-
35
- .cometchat-card__bottom-view {
36
- cursor: pointer;
37
- display: flex;
38
- flex-direction: column;
39
- justify-content: center;
40
- align-items: center;
41
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * Global settings object for CometChat UIKit.
3
- *
4
- * This variable holds shared configurations and settings that can be accessed
5
- * throughout the CometChat UIKit. It can be used to store and retrieve
6
- * various settings that affect the behavior of the UIKit components.
7
- */
8
- export declare var CometChatUIKitSharedSettings: any;
@@ -1,51 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * AIBaseConfiguration is a base configuration class that provides options for customizing the appearance and behavior of AI-related components.
4
- */
5
- export declare class AIBaseConfiguration {
6
- /**
7
- * Overrides the default API configuration for fetching data.
8
- * @param {CometChat.User} [user] - The user object.
9
- * @param {CometChat.Group} [group] - The group object.
10
- * @returns {Promise<Object>} A promise resolving to a custom configuration object.
11
- */
12
- apiConfiguration?: (user?: CometChat.User, group?: CometChat.Group) => Promise<Object>;
13
- /**
14
- * Custom view component for displaying the error state.
15
- * @type {any}
16
- */
17
- errorStateView?: JSX.Element;
18
- /**
19
- * Custom view component for displaying the empty state.
20
- * @type {any}
21
- */
22
- emptyStateView?: JSX.Element;
23
- /**
24
- * Custom view component for displaying the loading state.
25
- * @type {any}
26
- */
27
- loadingStateView?: JSX.Element;
28
- /**
29
- * URL for the loading icon.
30
- * @type {string}
31
- * @default loadingIcon
32
- */
33
- loadingIconURL?: string;
34
- /**
35
- * URL for the error icon.
36
- * @type {string}
37
- * @default errorIcon
38
- */
39
- errorIconURL?: string;
40
- /**
41
- * URL for the empty state icon.
42
- * @type {string}
43
- * @default emptyIcon
44
- */
45
- emptyIconURL?: string;
46
- /**
47
- * Constructs a new AIBaseConfiguration instance.
48
- * @param {Partial<AIBaseConfiguration>} props - Partial properties to customize the base configuration.
49
- */
50
- constructor(props: Partial<AIBaseConfiguration>);
51
- }
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- import { AIBaseConfiguration } from "../AIBaseConfiguration";
3
- /**
4
- * AIConversationStarterConfiguration provides customization options for the AI conversation starter view.
5
- * Extends the base configuration with additional properties specific to conversation starters.
6
- */
7
- export declare class AIConversationStarterConfiguration extends AIBaseConfiguration {
8
- /**
9
- * Custom callback to display a custom UI for conversation starters.
10
- * @param {string[]} response - The list of conversation starters.
11
- * @param {() => void} [closeCallBack] - Optional callback to close the custom view.
12
- * @returns {Promise<JSX.Element>} A promise resolving to a custom view component.
13
- */
14
- customView?: (response: string[], closeCallBack?: () => void) => Promise<JSX.Element>;
15
- /**
16
- * Constructs a new AIConversationStarterConfiguration instance.
17
- * @param {Partial<AIConversationStarterConfiguration>} props - Partial properties to customize the conversation starter configuration.
18
- */
19
- constructor(props: Partial<AIConversationStarterConfiguration>);
20
- }
@@ -1,18 +0,0 @@
1
- import { DataSource } from "../../../utils/DataSource";
2
- import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
3
- import { AIConversationStarterConfiguration } from "./AIConversationStarterConfiguration";
4
- export declare class AIConversationStarterDecorator extends DataSourceDecorator {
5
- configuration?: AIConversationStarterConfiguration;
6
- newDataSource: DataSource;
7
- currentMessage: CometChat.BaseMessage | null;
8
- loggedInUser: CometChat.User | null;
9
- user: CometChat.User;
10
- group: CometChat.Group;
11
- constructor(dataSource: DataSource, configuration?: AIConversationStarterConfiguration);
12
- getId(): string;
13
- editReply(reply: string): void;
14
- closeIfMessageReceived(message: CometChat.BaseMessage): void;
15
- getConversationStarter: () => Promise<string[]>;
16
- private loadConversationStarter;
17
- private addMessageListener;
18
- }
@@ -1,8 +0,0 @@
1
- import { AIExtensionDataSource } from "../AIExtensionDataSource";
2
- import { AIConversationStarterConfiguration } from "./AIConversationStarterConfiguration";
3
- export declare class AIConversationStarterExtension extends AIExtensionDataSource {
4
- private configuration?;
5
- constructor(configuration?: AIConversationStarterConfiguration);
6
- addExtension(): void;
7
- getExtensionId(): string;
8
- }
@@ -1,8 +0,0 @@
1
- import { AIConversationStarterConfiguration } from './AIConversationStarterConfiguration';
2
- interface IAIConversationStarterProps {
3
- getConversationStarterCallback?: () => Promise<string[]>;
4
- editReplyCallback?: (reply: string) => void;
5
- configuration?: AIConversationStarterConfiguration;
6
- }
7
- declare const AIConversationStarterView: (props: IAIConversationStarterProps) => import("react/jsx-runtime").JSX.Element;
8
- export { AIConversationStarterView };