@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,230 +0,0 @@
1
- import { ButtonElement } from '../InteractiveElements/index';
2
- import { CometChat } from '@cometchat/chat-sdk-javascript';
3
- export interface Availability {
4
- [key: string]: TimeRange[];
5
- }
6
- export interface TimeRange {
7
- from: string;
8
- to: string;
9
- }
10
- export interface InteractiveData {
11
- /**
12
- * The title of the scheduler message.
13
- */
14
- title: string;
15
- /**
16
- * The URL of the avatar image.
17
- */
18
- avatarUrl?: string;
19
- /**
20
- * The text displayed upon goal completion.
21
- */
22
- goalCompletionText?: string;
23
- /**
24
- * The timezone code for the schedule.
25
- */
26
- timezoneCode?: string;
27
- /**
28
- * The buffer time in minutes before or after scheduled events.
29
- */
30
- bufferTime?: number;
31
- /**
32
- * The duration of scheduled events in minutes.
33
- */
34
- duration?: number;
35
- /**
36
- * The availability information for scheduling.
37
- */
38
- availability: Availability;
39
- /**
40
- * The start date of the scheduling date range in ISO 8601 format.
41
- */
42
- dateRangeStart?: string;
43
- /**
44
- * The end date of the scheduling date range in ISO 8601 format.
45
- */
46
- dateRangeEnd?: string;
47
- /**
48
- * The URL to an ICS file for calendar integration.
49
- */
50
- icsFileUrl?: string;
51
- /**
52
- * The button element used to schedule events.
53
- */
54
- scheduleElement?: ButtonElement;
55
- }
56
- /**
57
- * Represents a scheduler message that extends CometChat's InteractiveMessage.
58
- */
59
- export declare class SchedulerMessage extends CometChat.InteractiveMessage {
60
- private title;
61
- private avatarUrl;
62
- private goalCompletionText;
63
- private timezoneCode;
64
- private bufferTime;
65
- private duration;
66
- private availability;
67
- private dateRangeStart;
68
- private dateRangeEnd;
69
- private icsFileUrl;
70
- private scheduleElement;
71
- /**
72
- * Constructs a SchedulerMessage instance.
73
- *
74
- * @param {string} receiverId - The ID of the receiver.
75
- * @param {string} receiverType - The type of the receiver.
76
- * @param {InteractiveData} interactiveData - The interactive data for the message.
77
- */
78
- constructor(receiverId: string, receiverType: string, interactiveData: InteractiveData);
79
- /**
80
- * Sets the interactive data for the scheduler message.
81
- *
82
- * @param {InteractiveData} interactiveData - The interactive data to set.
83
- */
84
- setInteractiveData(interactiveData: InteractiveData): void;
85
- /**
86
- * Sets the title of the scheduler message.
87
- *
88
- * @param {string} title - The title to set.
89
- */
90
- setTitle(title: string): void;
91
- /**
92
- * Sets the avatar URL of the scheduler message.
93
- *
94
- * @param {string} avatarUrl - The avatar URL to set.
95
- */
96
- setAvatarUrl(avatarUrl: string): void;
97
- /**
98
- * Sets the goal completion text for the scheduler message.
99
- *
100
- * @param {string} goalCompletionText - The goal completion text to set.
101
- */
102
- setGoalCompletionText(goalCompletionText: string): void;
103
- /**
104
- * Sets the timezone code for the scheduler message.
105
- *
106
- * @param {string} timezoneCode - The timezone code to set.
107
- */
108
- setTimezoneCode(timezoneCode: string): void;
109
- /**
110
- * Sets the duration for the scheduler message.
111
- *
112
- * @param {number} duration - The duration to set.
113
- */
114
- setDuration(duration: number): void;
115
- /**
116
- * Sets the buffer time for the scheduler message.
117
- *
118
- * @param {number} bufferTime - The buffer time to set.
119
- */
120
- setBufferTime(bufferTime: number): void;
121
- /**
122
- * Sets the availability for the scheduler message.
123
- *
124
- * @param {Availability} availability - The availability to set.
125
- */
126
- setAvailability(availability: Availability): void;
127
- /**
128
- * Sets the start date range for the scheduler message.
129
- *
130
- * @param {string} dateRangeStart - The start date range to set.
131
- */
132
- setDateRangeStart(dateRangeStart: string): void;
133
- /**
134
- * Sets the end date range for the scheduler message.
135
- *
136
- * @param {string} dateRangeEnd - The end date range to set.
137
- */
138
- setDateRangeEnd(dateRangeEnd: string): void;
139
- /**
140
- * Sets the ICS file URL for the scheduler message.
141
- *
142
- * @param {string} icsFileUrl - The ICS file URL to set.
143
- */
144
- setIcsFileUrl(icsFileUrl: string): void;
145
- /**
146
- * Sets the schedule button element for the scheduler message.
147
- *
148
- * @param {ButtonElement} scheduleElement - The button element to set.
149
- */
150
- setScheduleElement(scheduleElement: ButtonElement): void;
151
- /**
152
- * Retrieves the interactive data of the scheduler message.
153
- *
154
- * @returns {InteractiveData} The interactive data of the message.
155
- */
156
- getInteractiveData(): Object;
157
- /**
158
- * Retrieves the title of the scheduler message.
159
- *
160
- * @returns {string} The title of the message.
161
- */
162
- getTitle(): string;
163
- /**
164
- * Retrieves the avatar URL of the scheduler message.
165
- *
166
- * @returns {string} The avatar URL of the message.
167
- */
168
- getAvatarUrl(): string;
169
- /**
170
- * Retrieves the goal completion text of the scheduler message.
171
- *
172
- * @returns {string} The goal completion text of the message.
173
- */
174
- getGoalCompletionText(): string;
175
- /**
176
- * Retrieves the timezone code of the scheduler message.
177
- *
178
- * @returns {string} The timezone code of the message.
179
- */
180
- getTimezoneCode(): string;
181
- /**
182
- * Retrieves the duration of the scheduler message.
183
- *
184
- * @returns {number} The duration of the message.
185
- */
186
- getDuration(): number;
187
- /**
188
- * Retrieves the buffer time of the scheduler message.
189
- *
190
- * @returns {number} The buffer time of the message.
191
- */
192
- getBufferTime(): number;
193
- /**
194
- * Retrieves the availability of the scheduler message.
195
- *
196
- * @returns {Availability} The availability of the message.
197
- */
198
- getAvailability(): Availability;
199
- /**
200
- * Retrieves the start date range of the scheduler message.
201
- *
202
- * @returns {string} The start date range of the message.
203
- */
204
- getDateRangeStart(): string;
205
- /**
206
- * Retrieves the end date range of the scheduler message.
207
- *
208
- * @returns {string} The end date range of the message.
209
- */
210
- getDateRangeEnd(): string;
211
- /**
212
- * Retrieves the ICS file URL of the scheduler message.
213
- *
214
- * @returns {string} The ICS file URL of the message.
215
- */
216
- getIcsFileUrl(): string;
217
- /**
218
- * Retrieves the schedule button element of the scheduler message.
219
- *
220
- * @returns {ButtonElement} The schedule button element of the message.
221
- */
222
- getScheduleElement(): ButtonElement;
223
- /**
224
- * Creates a `SchedulerMessage` instance from a JSON object.
225
- *
226
- * @param {fromJsonType} json - The JSON object containing scheduler message properties.
227
- * @returns {SchedulerMessage} The constructed `SchedulerMessage` instance.
228
- */
229
- static fromJSON(json: CometChat.InteractiveMessage): SchedulerMessage;
230
- }
@@ -1,5 +0,0 @@
1
- export { FormMessage } from "./FormMessage";
2
- export { CardMessage } from "./CardMessage";
3
- export { CustomInteractiveMessage } from "./CustomInteractiveMessage";
4
- export { SchedulerMessage } from './SchedulerMessage';
5
- export type { TimeRange, Availability } from './SchedulerMessage';
@@ -1,27 +0,0 @@
1
- import React from "react";
2
- /**
3
- * Sets the created ref to the `value` passed
4
- *
5
- * @remarks
6
- * After the initial call of this hook, the internal ref is set to the `value` passed to this hook after the component has rendered completely.
7
- * So the returned ref will not have the updated value while the component renders
8
- */
9
- export declare function useRefSync<T>(value: T): React.MutableRefObject<T>;
10
- /**
11
- * Custom hook to make refs stateful
12
- *
13
- * @remarks
14
- * Making refs stateful opens up the possibility of using the element the ref is pointing to as a dependency for a `useEffect` call
15
- *
16
- * @example
17
- * Here's a simple example
18
- * ```ts
19
- * // At the top most level of the functional component
20
- * const [inputElement, setInputRef] = useStateRef<HTMLInputElement | null>(null);
21
- *
22
- * // Inside the JSX
23
- * <input type = "text" ref = {setInputRef} />
24
- * ```
25
- */
26
- export declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
27
- export declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown) => void;
@@ -1 +0,0 @@
1
- export declare var CometChatUIKitCalls: any;
@@ -1,147 +0,0 @@
1
- import { AIExtensionDataSource } from "../components/AI/AIExtensionDataSource";
2
- import { CallingExtension } from "../components/Calling/CallingExtension";
3
- import { ExtensionsDataSource } from "../components/Extensions/ExtensionsDataSource";
4
- import { CometChatLocalize } from "../resources/CometChatLocalize/cometchat-localize";
5
- import { UIKitSettings } from "./UIKitSettings";
6
- import { CometChatSoundManager } from "../resources/CometChatSoundManager/CometChatSoundManager";
7
- import { DataSource } from "../utils/DataSource";
8
- interface CometChatUiKit {
9
- name: string;
10
- version: string;
11
- }
12
- declare global {
13
- interface Window {
14
- CometChatUiKit: CometChatUiKit;
15
- }
16
- }
17
- /**
18
- * `CometChatUIKit` is a class that provides an interface for initializing and interacting with the CometChat UI Kit.
19
- * It handles various aspects of the UI Kit, including configuration, messaging, and extension management.
20
- * It is used in Calling, Conversations, Groups and Users components.
21
- * @class
22
- */
23
- declare class CometChatUIKit {
24
- /**
25
- * `CometChatUIKit` is a class that provides an interface for initializing and interacting with the CometChat UI Kit.
26
- * It handles various aspects of the UI Kit, including configuration, messaging, and extension management.
27
- *
28
- * @class
29
- */
30
- static uiKitSettings: UIKitSettings | null;
31
- /**
32
- * The sound manager for handling sound-related functionalities in the UI Kit.
33
- * @type {typeof CometChatSoundManager}
34
- */
35
- static SoundManager: typeof CometChatSoundManager;
36
- /**
37
- * The localizer for internationalization.
38
- * @type {typeof CometChatLocalize}
39
- */
40
- static Localize: typeof CometChatLocalize;
41
- /**
42
- * Settings related to conversation updates.
43
- * @type {CometChat.ConversationUpdateSettings}
44
- */
45
- static conversationUpdateSettings: CometChat.ConversationUpdateSettings;
46
- /**
47
- * Variable for storing theme mode of the UIKit.
48
- */
49
- static themeMode: "light" | "dark";
50
- /**
51
- * Initializes the CometChat UI Kit with the provided settings.
52
- * @param {UIKitSettings | null} uiKitSettings - The settings for initializing the UI Kit.
53
- * @returns {Promise<Object> | undefined} - A promise that resolves with an object if initialization is successful, otherwise `undefined`.
54
- */
55
- static init(uiKitSettings: UIKitSettings | null): Promise<Object> | undefined;
56
- /**
57
- * Default extensions included in the UI Kit.
58
- * @type {ExtensionsDataSource[]}
59
- */
60
- static defaultExtensions: ExtensionsDataSource[];
61
- /**
62
- * Default callingExtension included in the UI Kit.
63
- * @type {CallingExtension}
64
- */
65
- static defaultCallingExtension: CallingExtension;
66
- /**
67
- * Default AI features included in the UI Kit.
68
- * @type {AIExtensionDataSource[]}
69
- */
70
- static defaultAIFeatures: AIExtensionDataSource[];
71
- /**
72
- * Checking if the SDK is initialized.
73
- */
74
- static isInitialized(): boolean | undefined;
75
- /**
76
- * Enables calling functionality in the UI Kit.
77
- */
78
- static enableCalling(): void;
79
- /**
80
- * Performs post-login initialization tasks.
81
- * @private
82
- */
83
- private static initiateAfterLogin;
84
- /**
85
- * Logs in a user with the specified UID.
86
- * @param {string} uid - The UID of the user to log in.
87
- * @returns {Promise<CometChat.User>} - A promise that resolves with the logged-in user.
88
- */
89
- static login(uid: string): Promise<CometChat.User>;
90
- /**
91
- * Logs in a user with the specified authentication token.
92
- * @param {string} authToken - The authentication token for the user.
93
- * @returns {Promise<CometChat.User>} - A promise that resolves with the logged-in user.
94
- */
95
- static loginWithAuthToken(authToken: string): Promise<CometChat.User>;
96
- /**
97
- * Retrieves the currently logged-in user.
98
- * @returns {Promise<CometChat.User | null>} - A promise that resolves with the logged-in user or `null` if no user is logged in.
99
- */
100
- static getLoggedinUser(): Promise<CometChat.User | null>;
101
- /**
102
- * Creates a new user with the specified details.
103
- * @param {CometChat.User} user - The user details to create.
104
- * @returns {Promise<CometChat.User>} - A promise that resolves with the created user.
105
- */
106
- static createUser(user: CometChat.User): Promise<CometChat.User>;
107
- /**
108
- * Updates the details of an existing user.
109
- * @param {CometChat.User} user - The user details to update.
110
- * @returns {Promise<CometChat.User>} - A promise that resolves with the updated user.
111
- */
112
- static updateUser(user: CometChat.User): Promise<CometChat.User>;
113
- /**
114
- * Logs out the current user.
115
- * @returns {Promise<Object>} - A promise that resolves with a message object upon successful logout.
116
- */
117
- static logout(): Promise<Object>;
118
- /**
119
- * Checks if the UI Kit settings are properly configured.
120
- * @returns {boolean} - `true` if UI Kit settings are available and valid, otherwise `false`.
121
- */
122
- static checkAuthSettings(): boolean;
123
- /**
124
- * Sends a custom message and returns a promise with the result.
125
- * @param {CometChat.CustomMessage} message - The custom message to be sent.
126
- * @returns {Promise<CometChat.BaseMessage>} - A promise that resolves with the sent message.
127
- */
128
- static sendCustomMessage(message: CometChat.CustomMessage): Promise<unknown>;
129
- /**
130
- * Sends a text message and returns a promise with the result.
131
- * @param {CometChat.TextMessage} message - The text message to be sent.
132
- * @returns {Promise<CometChat.BaseMessage>} - A promise that resolves with the sent message.
133
- */
134
- static sendTextMessage(message: CometChat.TextMessage): Promise<CometChat.BaseMessage>;
135
- /**
136
- * Sends a media message and returns a promise with the result.
137
- * @param {CometChat.MediaMessage} message - The media message to be sent.
138
- * @returns {Promise<CometChat.BaseMessage>} - A promise that resolves with the sent message.
139
- */
140
- static sendMediaMessage(message: CometChat.MediaMessage): Promise<CometChat.BaseMessage>;
141
- /**
142
- * Retrieves the data source for chat configuration.
143
- * @returns {DataSource} - The chat data source.
144
- */
145
- static getDataSource(): DataSource;
146
- }
147
- export { CometChatUIKit };
@@ -1,32 +0,0 @@
1
- /**
2
- * Manages the login state and listener attachment for CometChat users.
3
- * It is used in CometChatMessageComposer, CometChatMessageList, CometChatMessageInformation components.
4
- */
5
- export declare class CometChatUIKitLoginListener {
6
- private static loggedInUser;
7
- private static listenerID;
8
- private static isAttached;
9
- /**
10
- * Sets the currently logged-in user.
11
- * @param user - The logged-in CometChat user.
12
- */
13
- static setLoggedInUser(user: CometChat.User): void;
14
- /**
15
- * Retrieves the currently logged-in user.
16
- * @returns The logged-in CometChat user or null.
17
- */
18
- static getLoggedInUser(): import("@cometchat/chat-sdk-javascript").User | null;
19
- /**
20
- * Removes the logged-in user.
21
- */
22
- static removeLoggedInUser(): void;
23
- /**
24
- * Attaches the login listener for CometChat.
25
- * If a listener is already attached, it is removed before attaching a new one.
26
- */
27
- static attachListener(): void;
28
- /**
29
- * Removes the attached login listener.
30
- */
31
- static removeListener(): void;
32
- }
@@ -1,81 +0,0 @@
1
- import { BaseMessage, CometChat } from "@cometchat/chat-sdk-javascript";
2
- interface MessageExtensionType {
3
- hasXSS?: string;
4
- sanitized_text?: string;
5
- data?: {
6
- sensitive_data: string;
7
- message_masked: string;
8
- };
9
- profanity?: string;
10
- message_clean?: string;
11
- }
12
- /**
13
- * Utility class for CometChat UIKit, providing various helper methods
14
- * such as deep cloning, ID generation, Unix timestamp retrieval,
15
- * and message extension data handling.
16
- */
17
- export declare class CometChatUIKitUtility {
18
- /**
19
- * Creates a deep copy of the value provided
20
- *
21
- * @remarks
22
- * This function cannot copy truly private properties (those that start with a "#" symbol inside a class block).
23
- * Functions are copied by reference and additional properties on the array objects are ignored
24
- *
25
- * @param arg - Any value
26
- * @returns A deep copy of `arg`
27
- */
28
- static clone<T>(arg: T): T;
29
- /**
30
- * Checks if an object has a specific property.
31
- *
32
- * @param obj - The object to check.
33
- * @param key - The property key.
34
- * @returns `true` if the property exists, `false` otherwise.
35
- */
36
- static checkHasOwnProperty: (obj: object | undefined, key: string) => boolean;
37
- /**
38
- * Generates a unique ID.
39
- *
40
- * @returns A unique string identifier.
41
- */
42
- static ID: () => string;
43
- /**
44
- * Retrieves the current Unix timestamp.
45
- *
46
- * @returns The Unix timestamp.
47
- */
48
- static getUnixTimestamp: () => number;
49
- /**
50
- * Retrieves the extension data from a message.
51
- *
52
- * @param messageObject - The message object containing extensions.
53
- * @returns The sanitized message text if available, otherwise the original text.
54
- */
55
- static getExtensionData(messageObject: CometChat.BaseMessage): string;
56
- /**
57
- * Checks for extension data in a message.
58
- *
59
- * @param message - The message object to check.
60
- * @param extensionKey - The extension key to look for.
61
- * @returns The extension data if found.
62
- */
63
- static checkMessageForExtensionsData: (message: CometChat.BaseMessage | null, extensionKey: string) => (object & MessageExtensionType) | undefined;
64
- /**
65
- * Sanitizes an HTML string by escaping tags not matching the whitelist.
66
- *
67
- * @param htmlString - The HTML string to sanitize.
68
- * @param whitelistRegExes - A list of regular expressions to match allowed tags.
69
- * @returns The sanitized HTML string.
70
- */
71
- static sanitizeHtml(htmlString: string, whitelistRegExes: RegExp[]): string;
72
- static convertBlobToWav: (audioBlob: {
73
- arrayBuffer: () => any;
74
- }) => Promise<{
75
- wavBlob: Blob;
76
- }>;
77
- static audioBufferToWav: (audioBuffer: AudioBuffer) => ArrayBuffer;
78
- static writeString: (view: DataView, offset: number, string: string) => void;
79
- static convertToWav: (audioBlob: Blob) => Promise<string>;
80
- }
81
- export {};