@cometchat/chat-uikit-react 5.0.0-beta1 → 5.0.0-beta2

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 (249) hide show
  1. package/README.md +8 -7
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/styles/CometChatEditPreview.css +1 -0
  6. package/dist/styles/CometChatFileBubble.css +2 -0
  7. package/dist/styles/CometChatMessageComposer.css +5 -0
  8. package/dist/styles/CometChatMessageHeader.css +11 -0
  9. package/dist/styles/components/CometChatEditPreview.css +1 -0
  10. package/dist/styles/components/CometChatFileBubble.css +2 -0
  11. package/dist/styles/components/CometChatMessageComposer.css +5 -0
  12. package/dist/styles/components/CometChatMessageHeader.css +11 -0
  13. package/dist/styles/components/index.css +1 -0
  14. package/dist/styles/index.css +1 -0
  15. package/dist/types/events/CometChatUIEvents.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/screenshots/sample_app_overview.png +0 -0
  18. package/dist/Collaborative_Whiteboard_Dark.png +0 -0
  19. package/dist/Collaborative_Whiteboard_Light.png +0 -0
  20. package/dist/styles/CometChatBadge.css +0 -15
  21. package/dist/styles/CometChatCard.css +0 -41
  22. package/dist/styles/components/CometChatBadge.css +0 -15
  23. package/dist/styles/components/CometChatCard.css +0 -41
  24. package/dist/types/CometChatUIKit/CometChatUIKitSharedSettings.d.ts +0 -8
  25. package/dist/types/components/BaseComponents/CometChatBadge/CometChatBadge.d.ts +0 -10
  26. package/dist/types/components/BaseComponents/CometChatCard/CometChatCard.d.ts +0 -15
  27. package/dist/types/components/BaseComponents/CometChatQuickView/CometChatQuickView.d.ts +0 -9
  28. package/dist/types/components/BaseComponents/CometChatSingleSelect/CometChatSingleSelect.d.ts +0 -8
  29. package/dist/types/components/CometChatUserMemberWrapper/index.d.ts +0 -23
  30. package/dist/types/modals/InteractiveActions/APIAction.d.ts +0 -108
  31. package/dist/types/modals/InteractiveActions/CustomAction.d.ts +0 -12
  32. package/dist/types/modals/InteractiveActions/URLNavigationAction.d.ts +0 -30
  33. package/dist/types/modals/InteractiveActions/index.d.ts +0 -3
  34. package/dist/types/modals/InteractiveElements/BaseInputElement.d.ts +0 -50
  35. package/dist/types/modals/InteractiveElements/BaseInteractiveElement.d.ts +0 -25
  36. package/dist/types/modals/InteractiveElements/ButtonElement.d.ts +0 -48
  37. package/dist/types/modals/InteractiveElements/CheckboxElement.d.ts +0 -46
  38. package/dist/types/modals/InteractiveElements/DateTimePickerElement.d.ts +0 -124
  39. package/dist/types/modals/InteractiveElements/DropdownElement.d.ts +0 -55
  40. package/dist/types/modals/InteractiveElements/LabelElement.d.ts +0 -29
  41. package/dist/types/modals/InteractiveElements/OptionElement.d.ts +0 -35
  42. package/dist/types/modals/InteractiveElements/RadioButtonElement.d.ts +0 -54
  43. package/dist/types/modals/InteractiveElements/SingleSelectElement.d.ts +0 -50
  44. package/dist/types/modals/InteractiveElements/TextInputElement.d.ts +0 -69
  45. package/dist/types/modals/InteractiveElements/index.d.ts +0 -11
  46. package/dist/types/modals/InteractiveEntities/ActionEntity.d.ts +0 -32
  47. package/dist/types/modals/InteractiveEntities/ElementEntity.d.ts +0 -35
  48. package/dist/types/modals/InteractiveEntities/index.d.ts +0 -2
  49. package/dist/types/modals/InteractiveMessage/CardMessage.d.ts +0 -69
  50. package/dist/types/modals/InteractiveMessage/CustomInteractiveMessage.d.ts +0 -20
  51. package/dist/types/modals/InteractiveMessage/FormMessage.d.ts +0 -75
  52. package/dist/types/modals/InteractiveMessage/SchedulerMessage.d.ts +0 -230
  53. package/dist/types/modals/InteractiveMessage/index.d.ts +0 -5
  54. package/dist/types/src/CometChatCustomHooks.d.ts +0 -27
  55. package/dist/types/src/CometChatUIKit/CometChatCalls.d.ts +0 -1
  56. package/dist/types/src/CometChatUIKit/CometChatUIKit.d.ts +0 -147
  57. package/dist/types/src/CometChatUIKit/CometChatUIKitLoginListener.d.ts +0 -32
  58. package/dist/types/src/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -81
  59. package/dist/types/src/CometChatUIKit/UIKitSettings.d.ts +0 -304
  60. package/dist/types/src/Enums/Enums.d.ts +0 -258
  61. package/dist/types/src/components/AI/AIBaseConfiguration.d.ts +0 -51
  62. package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterConfiguration.d.ts +0 -20
  63. package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +0 -18
  64. package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +0 -8
  65. package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterView.d.ts +0 -8
  66. package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryConfiguration.d.ts +0 -31
  67. package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +0 -22
  68. package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +0 -8
  69. package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryView.d.ts +0 -9
  70. package/dist/types/src/components/AI/AIExtensionDataSource.d.ts +0 -6
  71. package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesConfiguration.d.ts +0 -28
  72. package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +0 -21
  73. package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesExtension.d.ts +0 -8
  74. package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesView.d.ts +0 -11
  75. package/dist/types/src/components/BaseComponents/CometChatActionBubble/CometChatActionBubble.d.ts +0 -8
  76. package/dist/types/src/components/BaseComponents/CometChatActionSheet/CometChatActionSheet.d.ts +0 -7
  77. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/CometChatAudioBubble.d.ts +0 -6
  78. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/base-plugin.d.ts +0 -21
  79. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/decoder.d.ts +0 -9
  80. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/dom.d.ts +0 -13
  81. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/draggable.d.ts +0 -1
  82. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/event-emitter.d.ts +0 -21
  83. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/fetcher.d.ts +0 -5
  84. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/player.d.ts +0 -50
  85. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/envelope.d.ts +0 -79
  86. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/hover.d.ts +0 -36
  87. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/minimap.d.ts +0 -65
  88. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/record.d.ts +0 -89
  89. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/regions.d.ts +0 -139
  90. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/spectrogram.d.ts +0 -98
  91. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/timeline.d.ts +0 -54
  92. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/zoom.d.ts +0 -55
  93. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/renderer.d.ts +0 -63
  94. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/timer.d.ts +0 -11
  95. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/wavesurfer.d.ts +0 -223
  96. package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +0 -63
  97. package/dist/types/src/components/BaseComponents/CometChatAvatar/CometChatAvatar.d.ts +0 -13
  98. package/dist/types/src/components/BaseComponents/CometChatButton/CometChatButton.d.ts +0 -12
  99. package/dist/types/src/components/BaseComponents/CometChatCallBubble/CometChatCallBubble.d.ts +0 -12
  100. package/dist/types/src/components/BaseComponents/CometChatChangeScope/CometChatChangeScope.d.ts +0 -10
  101. package/dist/types/src/components/BaseComponents/CometChatChangeScope/useCometChatChangeScope.d.ts +0 -10
  102. package/dist/types/src/components/BaseComponents/CometChatCheckbox/CometChatCheckbox.d.ts +0 -11
  103. package/dist/types/src/components/BaseComponents/CometChatCheckbox/useCometChatCheckbox.d.ts +0 -11
  104. package/dist/types/src/components/BaseComponents/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +0 -16
  105. package/dist/types/src/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +0 -17
  106. package/dist/types/src/components/BaseComponents/CometChatDate/CometChatDate.d.ts +0 -13
  107. package/dist/types/src/components/BaseComponents/CometChatDate/useCometChatDate.d.ts +0 -8
  108. package/dist/types/src/components/BaseComponents/CometChatDeleteBubble/CometChatDeleteBubble.d.ts +0 -14
  109. package/dist/types/src/components/BaseComponents/CometChatDocumentBubble/CometChatDocumentBubble.d.ts +0 -11
  110. package/dist/types/src/components/BaseComponents/CometChatDropDown/CometChatDropDown.d.ts +0 -14
  111. package/dist/types/src/components/BaseComponents/CometChatDropDown/useCometChatDropDown.d.ts +0 -12
  112. package/dist/types/src/components/BaseComponents/CometChatEditPreview/CometChatEditPreview.d.ts +0 -21
  113. package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/CometChatEmoji.d.ts +0 -22
  114. package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +0 -7
  115. package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/emojis.d.ts +0 -6579
  116. package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +0 -17
  117. package/dist/types/src/components/BaseComponents/CometChatFileBubble/CometChatFileBubble.d.ts +0 -9
  118. package/dist/types/src/components/BaseComponents/CometChatFullScreenViewer/CometChatFullScreenViewer.d.ts +0 -23
  119. package/dist/types/src/components/BaseComponents/CometChatImageBubble/CometChatImageBubble.d.ts +0 -10
  120. package/dist/types/src/components/BaseComponents/CometChatImageBubble/useCometChatImageBubble.d.ts +0 -7
  121. package/dist/types/src/components/BaseComponents/CometChatList/CometChatList.d.ts +0 -156
  122. package/dist/types/src/components/BaseComponents/CometChatList/useCometChatList.d.ts +0 -17
  123. package/dist/types/src/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +0 -15
  124. package/dist/types/src/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +0 -12
  125. package/dist/types/src/components/BaseComponents/CometChatLiveReaction/CometChatLiveReaction.d.ts +0 -5
  126. package/dist/types/src/components/BaseComponents/CometChatLiveReaction/useLiveReactionHook.d.ts +0 -19
  127. package/dist/types/src/components/BaseComponents/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +0 -8
  128. package/dist/types/src/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -28
  129. package/dist/types/src/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +0 -24
  130. package/dist/types/src/components/BaseComponents/CometChatRadioButton/CometChatRadioButton.d.ts +0 -14
  131. package/dist/types/src/components/BaseComponents/CometChatRadioButton/useCometChatRadioButton.d.ts +0 -13
  132. package/dist/types/src/components/BaseComponents/CometChatSearchBar/CometChatSearchBar.d.ts +0 -9
  133. package/dist/types/src/components/BaseComponents/CometChatSearchBar/useCometChatSearchBar.d.ts +0 -10
  134. package/dist/types/src/components/BaseComponents/CometChatTextBubble/CometChatTextBubble.d.ts +0 -8
  135. package/dist/types/src/components/BaseComponents/CometChatTextBubble/useCometChatTextBubble.d.ts +0 -6
  136. package/dist/types/src/components/BaseComponents/CometChatToast/CometChatToast.d.ts +0 -27
  137. package/dist/types/src/components/BaseComponents/CometChatVideoBubble/CometChatVideoBubble.d.ts +0 -9
  138. package/dist/types/src/components/BaseComponents/CometChatVideoBubble/useCometChatVideoBubble.d.ts +0 -6
  139. package/dist/types/src/components/Calling/CallButtonConfiguration.d.ts +0 -10
  140. package/dist/types/src/components/Calling/CallingConfiguration.d.ts +0 -7
  141. package/dist/types/src/components/Calling/CallingExtension.d.ts +0 -9
  142. package/dist/types/src/components/Calling/CallingExtensionDecorator.d.ts +0 -29
  143. package/dist/types/src/components/Calling/CometChatCallButtons/CometChatCallButtons.d.ts +0 -36
  144. package/dist/types/src/components/Calling/CometChatCallButtons/useCallButtons.d.ts +0 -6
  145. package/dist/types/src/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +0 -71
  146. package/dist/types/src/components/Calling/CometChatCallLogs/useCometChatCallLogs.d.ts +0 -2
  147. package/dist/types/src/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -59
  148. package/dist/types/src/components/Calling/CometChatIncomingCall/useCometChatIncomingCall.d.ts +0 -2
  149. package/dist/types/src/components/Calling/CometChatOngoingCall/CometChatOngoingCall.d.ts +0 -10
  150. package/dist/types/src/components/Calling/CometChatOngoingCall/useCometChatOngoingCall.d.ts +0 -2
  151. package/dist/types/src/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -36
  152. package/dist/types/src/components/Calling/CometChatOutgoingCall/useCometChatOutgoingCall.d.ts +0 -7
  153. package/dist/types/src/components/Calling/OutgoingCallConfiguration.d.ts +0 -8
  154. package/dist/types/src/components/Calling/Utils/utils.d.ts +0 -7
  155. package/dist/types/src/components/CometChatConversations/CometChatConversations.d.ts +0 -219
  156. package/dist/types/src/components/CometChatConversations/controller.d.ts +0 -74
  157. package/dist/types/src/components/CometChatConversations/useCometChatConversations.d.ts +0 -25
  158. package/dist/types/src/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +0 -178
  159. package/dist/types/src/components/CometChatGroupMembers/controller.d.ts +0 -38
  160. package/dist/types/src/components/CometChatGroupMembers/useCometChatGroupMembers.d.ts +0 -22
  161. package/dist/types/src/components/CometChatGroups/CometChatGroups.d.ts +0 -150
  162. package/dist/types/src/components/CometChatGroups/controller.d.ts +0 -44
  163. package/dist/types/src/components/CometChatGroups/useCometChatGroups.d.ts +0 -15
  164. package/dist/types/src/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +0 -166
  165. package/dist/types/src/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +0 -42
  166. package/dist/types/src/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +0 -29
  167. package/dist/types/src/components/CometChatMessageHeader/useCometChatMessageHeader.d.ts +0 -3
  168. package/dist/types/src/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +0 -6
  169. package/dist/types/src/components/CometChatMessageList/CometChatMessageList.d.ts +0 -132
  170. package/dist/types/src/components/CometChatMessageList/CometChatMessageListController.d.ts +0 -48
  171. package/dist/types/src/components/CometChatMessageList/useCometChatMessageList.d.ts +0 -6
  172. package/dist/types/src/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +0 -11
  173. package/dist/types/src/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +0 -21
  174. package/dist/types/src/components/CometChatUsers/CometChatUsers.d.ts +0 -193
  175. package/dist/types/src/components/CometChatUsers/controller.d.ts +0 -28
  176. package/dist/types/src/components/CometChatUsers/useCometChatUsers.d.ts +0 -19
  177. package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +0 -35
  178. package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentConstants.d.ts +0 -15
  179. package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +0 -37
  180. package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +0 -116
  181. package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +0 -35
  182. package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConstants.d.ts +0 -13
  183. package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +0 -29
  184. package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +0 -94
  185. package/dist/types/src/components/Extensions/ExtensionsDataSource.d.ts +0 -29
  186. package/dist/types/src/components/Extensions/ExtensionsId.d.ts +0 -22
  187. package/dist/types/src/components/Extensions/LinkPreview/LinkPreview.d.ts +0 -37
  188. package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewConstants.d.ts +0 -11
  189. package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewExtension.d.ts +0 -24
  190. package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewExtensionDecorator.d.ts +0 -60
  191. package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationBubble.d.ts +0 -35
  192. package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationConstants.d.ts +0 -12
  193. package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationExtension.d.ts +0 -30
  194. package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +0 -53
  195. package/dist/types/src/components/Extensions/Polls/CreatePolls.d.ts +0 -66
  196. package/dist/types/src/components/Extensions/Polls/PollsBubble.d.ts +0 -35
  197. package/dist/types/src/components/Extensions/Polls/PollsConfiguration.d.ts +0 -19
  198. package/dist/types/src/components/Extensions/Polls/PollsConstants.d.ts +0 -8
  199. package/dist/types/src/components/Extensions/Polls/PollsExtension.d.ts +0 -8
  200. package/dist/types/src/components/Extensions/Polls/PollsExtensionDecorator.d.ts +0 -112
  201. package/dist/types/src/components/Extensions/Stickers/StickersConstants.d.ts +0 -16
  202. package/dist/types/src/components/Extensions/Stickers/StickersExtension.d.ts +0 -31
  203. package/dist/types/src/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -112
  204. package/dist/types/src/components/Extensions/Stickers/StickersKeyboard.d.ts +0 -29
  205. package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationConstants.d.ts +0 -13
  206. package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +0 -21
  207. package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +0 -40
  208. package/dist/types/src/components/Reactions/CometChatReactionInfo/CometChatReactionInfo.d.ts +0 -9
  209. package/dist/types/src/components/Reactions/CometChatReactionList/CometChatReactionList.d.ts +0 -8
  210. package/dist/types/src/components/Reactions/CometChatReactions/CometChatReactions.d.ts +0 -12
  211. package/dist/types/src/constants/CometChatUIKitConstants.d.ts +0 -139
  212. package/dist/types/src/constants/CometChatUtilityConstants.d.ts +0 -9
  213. package/dist/types/src/constants/index.d.ts +0 -1
  214. package/dist/types/src/events/CometChatCallEvents.d.ts +0 -10
  215. package/dist/types/src/events/CometChatConversationEvents.d.ts +0 -13
  216. package/dist/types/src/events/CometChatGroupEvents.d.ts +0 -63
  217. package/dist/types/src/events/CometChatMessageEvents.d.ts +0 -43
  218. package/dist/types/src/events/CometChatUIEvents.d.ts +0 -59
  219. package/dist/types/src/events/CometChatUserEvents.d.ts +0 -16
  220. package/dist/types/src/formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter.d.ts +0 -210
  221. package/dist/types/src/formatters/CometChatFormatters/CometChatTextFormatter.d.ts +0 -268
  222. package/dist/types/src/formatters/CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter.d.ts +0 -12
  223. package/dist/types/src/formatters/index.d.ts +0 -3
  224. package/dist/types/src/index.d.ts +0 -108
  225. package/dist/types/src/modals/CometChatActions.d.ts +0 -36
  226. package/dist/types/src/modals/CometChatActionsIcon.d.ts +0 -38
  227. package/dist/types/src/modals/CometChatActionsView.d.ts +0 -39
  228. package/dist/types/src/modals/CometChatMessageComposerAction.d.ts +0 -33
  229. package/dist/types/src/modals/CometChatMessageOption.d.ts +0 -37
  230. package/dist/types/src/modals/CometChatMessageTemplate.d.ts +0 -70
  231. package/dist/types/src/modals/CometChatOption.d.ts +0 -20
  232. package/dist/types/src/modals/index.d.ts +0 -7
  233. package/dist/types/src/resources/CometChatLocalize/cometchat-localize.d.ts +0 -5603
  234. package/dist/types/src/resources/CometChatSoundManager/CometChatSoundManager.d.ts +0 -128
  235. package/dist/types/src/resources/index.d.ts +0 -1
  236. package/dist/types/src/utils/CallingDetailsUtils.d.ts +0 -42
  237. package/dist/types/src/utils/ChatConfigurator.d.ts +0 -12
  238. package/dist/types/src/utils/ChatSdkEventInitializer.d.ts +0 -6
  239. package/dist/types/src/utils/ConversationUtils.d.ts +0 -69
  240. package/dist/types/src/utils/DataSource.d.ts +0 -55
  241. package/dist/types/src/utils/DataSourceDecorator.d.ts +0 -57
  242. package/dist/types/src/utils/GroupMemberUtils.d.ts +0 -32
  243. package/dist/types/src/utils/MessageReceiptUtils.d.ts +0 -44
  244. package/dist/types/src/utils/MessageUtils.d.ts +0 -55
  245. package/dist/types/src/utils/MessagesDataSource.d.ts +0 -110
  246. package/dist/types/src/utils/Storage.d.ts +0 -33
  247. package/dist/types/src/utils/util.d.ts +0 -26
  248. package/dist/types/utils/IcsToJson.d.ts +0 -19
  249. package/dist/types/utils/InteractiveMessageUtils.d.ts +0 -71
@@ -1,71 +0,0 @@
1
- /// <reference types="react" />
2
- import { DatePatterns } from "../../../Enums/Enums";
3
- interface CallLogsProps {
4
- /**
5
- * Title of the component
6
- *
7
- * @defaultValue `localize("CALLS")`
8
- */
9
- title?: string;
10
- /**
11
- * Custom list item view to be rendered for each user in the fetched list
12
- */
13
- listItemView?: (call: any) => JSX.Element;
14
- /**
15
- * Custom subtitle view to be rendered for each user in the fetched list
16
- *
17
- * @remarks
18
- * This prop is used if `listItemView` prop is not provided
19
- */
20
- subtitleView?: (call: any) => JSX.Element;
21
- /**
22
- * View to be placed in the tail view
23
- *
24
- * @remarks
25
- * This prop will be used if `listItemView` is not provided
26
- */
27
- tailView?: (call: any) => JSX.Element;
28
- /**
29
- * Custom view for the empty state of the component
30
- */
31
- emptyStateView?: JSX.Element;
32
- /**
33
- * Custom view for the error state of the component
34
- */
35
- errorStateView?: JSX.Element;
36
- /**
37
- * Custom view for the loading state of the component
38
- */
39
- loadingStateView?: JSX.Element;
40
- /**
41
- * Object representing the active call that is currently selected.
42
- *
43
- */
44
- activeCall?: any;
45
- /**
46
- * Allows filtering and customizing call logs using available parameters
47
- * @defaultValue Default request builder having the limit set to 30
48
- */
49
- callLogRequestBuilder?: any;
50
- /**
51
- * Function to call on click of the default list item view of a user
52
- */
53
- onItemClick?: Function;
54
- /**
55
- * Function to call on click of the tail view of a user
56
- */
57
- onCallButtonClicked?: Function;
58
- /**
59
- * Function to call whenever the component encounters an error
60
- */
61
- onError?: Function;
62
- /**
63
- * Date format for the date component
64
- *
65
- * @remarks
66
- * The date component is inside the tail view of the default list item view when `selectionMode` prop is set to `SelectionMode.none`
67
- */
68
- datePattern?: DatePatterns;
69
- }
70
- declare const CometChatCallLogs: (props: CallLogsProps) => import("react/jsx-runtime").JSX.Element;
71
- export { CometChatCallLogs };
@@ -1,2 +0,0 @@
1
- declare function useCometChatCallLogs(loggedInUser: CometChat.User | null, setLoggedInUser: Function, requestBuilder: any, setCallBuilder: Function, getCallList: Function, attachListeners: Function, subscribeToEvents: Function, detachListeners: Function, onErrorCallback: Function): void;
2
- export { useCometChatCallLogs };
@@ -1,59 +0,0 @@
1
- /// <reference types="react" />
2
- import { CometChatUIKitCalls } from "../../../CometChatUIKit/CometChatCalls";
3
- interface IncomingCallProps {
4
- /**
5
- * CometChat call object consumed by the component to launch itself.
6
- */
7
- call?: any;
8
- /**
9
- * Used to disable/enable the sound of incoming calls.
10
- *
11
- * @default false
12
- */
13
- disableSoundForCalls?: boolean;
14
- /**
15
- * Used to set a custom sound for incoming calls.
16
- *
17
- * @example customSoundForCalls='Your Custom Sound For Calls'
18
- */
19
- customSoundForCalls?: string;
20
- /**
21
- * Triggered when you click the accept button of the Incoming Call component.
22
- * You can override this action.
23
- */
24
- onAccept?: Function;
25
- /**
26
- * Triggered when you click the decline button of the Incoming Call component.
27
- * You can override this action.
28
- */
29
- onDecline?: Function;
30
- /**
31
- * Used to set custom accept button text.
32
- *
33
- * @example acceptButtonText='Your Custom Accept Button Text'
34
- */
35
- acceptButtonText?: string;
36
- /**
37
- * Used to set custom decline button text.
38
- *
39
- * @example declineButtonText='Your Decline Button Text'
40
- */
41
- declineButtonText?: string;
42
- /**
43
- * Custom subtitle view for the incoming call component.
44
- */
45
- subtitleView?: (call: CometChat.Call) => JSX.Element;
46
- /**
47
- * Triggered when an error occurs in the Incoming Call component.
48
- */
49
- onError?: Function;
50
- /**
51
- * Builder function for configuring and updating call settings.
52
- *
53
- * @param call - The current CometChat call object.
54
- * @returns An instance of CallSettingsBuilder.
55
- */
56
- callSettingsBuilder?: (call: CometChat.Call) => typeof CometChatUIKitCalls.CallSettingsBuilder;
57
- }
58
- declare const CometChatIncomingCall: (props: IncomingCallProps) => import("react/jsx-runtime").JSX.Element;
59
- export { CometChatIncomingCall };
@@ -1,2 +0,0 @@
1
- declare function useCometChatIncomingCall(loggedInUser: any, setLoggedInUser: any, call: CometChat.Call, attachListeners: Function, removeListener: Function, acceptCallButtonRef: any, rejectCallButtonRef: any, showCall: any, callRef: any, acceptIncomingCall: Function, rejectIncomingCall: Function, showIncomingCallScreen: boolean, subscribeToEvents: Function): void;
2
- export { useCometChatIncomingCall };
@@ -1,10 +0,0 @@
1
- import { CometChatUIKitCalls } from "../../../CometChatUIKit/CometChatCalls";
2
- import { CallWorkflow } from "../../../Enums/Enums";
3
- interface OngoingCallProps {
4
- callSettingsBuilder?: typeof CometChatUIKitCalls.CallSettings;
5
- sessionID: string;
6
- onError?: Function;
7
- callWorkflow?: CallWorkflow;
8
- }
9
- declare const CometChatOngoingCall: (props: OngoingCallProps) => import("react/jsx-runtime").JSX.Element;
10
- export { CometChatOngoingCall };
@@ -1,2 +0,0 @@
1
- declare function useCometChatOngoingCall(setLoggedInUser: any, sessionID: string, startCall: any): void;
2
- export { useCometChatOngoingCall };
@@ -1,36 +0,0 @@
1
- /**
2
- * Props interface for the outgoing call component
3
- */
4
- interface OutgoingCallProps {
5
- /**
6
- * Sets the call object for CometChatOutgoingCall.
7
- */
8
- call: CometChat.Call;
9
- /**
10
- * Used to disable/enable the sound of outgoing calls.
11
- *
12
- * @default false
13
- * @example disableSoundForCalls={false}
14
- */
15
- disableSoundForCalls?: boolean;
16
- /**
17
- * Used to set a custom sound for outgoing calls.
18
- *
19
- * @example customSoundForCalls='Your Custom Sound For Calls'
20
- */
21
- customSoundForCalls?: string;
22
- /**
23
- * Custom view for the outgoing call component.
24
- */
25
- customView?: any;
26
- /**
27
- * Triggered when an error occurs in the outgoing call component.
28
- */
29
- onError?: Function;
30
- /**
31
- * Triggered when the close button is clicked in the outgoing call component.
32
- */
33
- onCloseClicked?: Function;
34
- }
35
- declare const CometChatOutgoingCall: (props: OutgoingCallProps) => import("react/jsx-runtime").JSX.Element;
36
- export { CometChatOutgoingCall };
@@ -1,7 +0,0 @@
1
- /**
2
- * Custom hook to handle outgoing call actions like playing audio and pausing it when necessary.
3
- * @param playAudio - Function to play audio during the outgoing call.
4
- * @param call - Optional CometChat.Call object representing the outgoing call.
5
- */
6
- declare function useCometChatOutgoingCall(playAudio: Function, call?: CometChat.Call): void;
7
- export { useCometChatOutgoingCall };
@@ -1,8 +0,0 @@
1
- export declare class OutgoingCallConfiguration {
2
- disableSoundForCalls?: boolean;
3
- customSoundForCalls?: string;
4
- customView?: any;
5
- onError?: Function;
6
- onCloseClicked?: Function;
7
- constructor(configuration: OutgoingCallConfiguration);
8
- }
@@ -1,7 +0,0 @@
1
- export declare function isSentByMe(call: CometChat.Call | any, loggedInUser: CometChat.User): boolean;
2
- export declare function isMissedCall(call: CometChat.Call, loggedInUser: CometChat.User): boolean;
3
- export declare function verifyCallUser(call: any, loggedInUser: CometChat.User): any;
4
- export declare function getCallStatusWithType(call: any, loggedInUser: CometChat.User, includeType?: boolean): string;
5
- export declare function convertMinutesToHoursMinutesSeconds(minutes: number): string;
6
- export declare function convertSecondsToHoursMinutesSeconds(seconds: number): string;
7
- export declare function downloadRecordingFromURL(url: string): void;
@@ -1,219 +0,0 @@
1
- import { JSX } from "react";
2
- import { CometChatTextFormatter } from "../../formatters/CometChatFormatters/CometChatTextFormatter";
3
- import { DatePatterns, SelectionMode, States } from "../../Enums/Enums";
4
- import { CometChatOption } from "../../modals";
5
- interface ConversationsProps {
6
- /**
7
- * Custom view to render on the top-right of the component
8
- */
9
- menu?: JSX.Element;
10
- /**
11
- * Title of the component
12
- *
13
- * @defaultValue `localize("CHATS")`
14
- */
15
- title?: string;
16
- /**
17
- * Request builder to fetch conversations
18
- * @defaultValue Default request builder having the limit set to 30
19
- */
20
- conversationsRequestBuilder?: CometChat.ConversationsRequestBuilder;
21
- /**
22
- * Function to call whenever the component encounters an error
23
- */
24
- onError?: (error: CometChat.CometChatException) => void;
25
- /**
26
- * Custom list item view to be rendered for each conversation in the fetched list
27
- */
28
- listItemView?: (conversation: CometChat.Conversation) => JSX.Element;
29
- /**
30
- * Custom subtitle view to be rendered for each conversation in the fetched list
31
- *
32
- * @remarks
33
- * This prop is used if `listItemView` prop is not provided
34
- */
35
- subtitleView?: (conversation: CometChat.Conversation) => JSX.Element;
36
- /**
37
- * Custom tail view to be rendered for each conversation in the fetched list
38
- *
39
- * @remarks
40
- * This prop is used if `listItemView` prop is not provided
41
- */
42
- tailView?: (conversation: CometChat.Conversation) => JSX.Element;
43
- /**
44
- * Hide user presence
45
- *
46
- * @remarks
47
- * If set to true, the status indicator of the default list item view is not displayed for conversation objects related to users
48
- *
49
- * @defaultValue `false`
50
- */
51
- disableUsersPresence?: boolean;
52
- /**
53
- * Conversation to highlight
54
- *
55
- * @remarks
56
- * This prop is used if `listItemView` prop is not provided
57
- */
58
- activeConversation?: CometChat.Conversation;
59
- /**
60
- * Selection mode to use for the default tail view
61
- *
62
- * @remarks
63
- * This prop is used if `listItemView` prop is not provided.
64
- *
65
- * @defaultValue `SelectionMode.none`
66
- */
67
- selectionMode?: SelectionMode;
68
- /**
69
- * Disable receipt status
70
- *
71
- * @remarks
72
- * If set to true, the receipt status of the sent message won't be displayed, and received messages won't be marked as delivered
73
- *
74
- * @defaultValue `false`
75
- */
76
- hideReceipt?: boolean;
77
- /**
78
- * List of actions available on mouse over on the default list item component
79
- */
80
- options?: ((conversation: CometChat.Conversation) => CometChatOption[]) | null;
81
- /**
82
- * Date format for the date component
83
- *
84
- * @remarks
85
- * The date component is inside the tail view of the default list item view when `selectionMode` prop is set to `SelectionMode.none`
86
- */
87
- datePattern?: DatePatterns;
88
- /**
89
- * Custom view for the loading state of the component
90
- */
91
- loadingStateView?: JSX.Element;
92
- /**
93
- * Custom view for the empty state of the component
94
- */
95
- emptyStateView?: JSX.Element;
96
- /**
97
- * Custom view for the error state of the component
98
- */
99
- errorStateView?: JSX.Element;
100
- /**
101
- * Hide error view
102
- *
103
- * @remarks
104
- * If set to true, hides the default and the custom error view
105
- *
106
- * @defaultValue `false`
107
- */
108
- hideError?: boolean;
109
- /**
110
- * Function to call on click of the default list item view of a conversation
111
- */
112
- onItemClick?: (conversation: CometChat.Conversation) => void;
113
- /**
114
- * Function to call when a conversation from the fetched list is selected
115
- *
116
- * @remarks
117
- * This prop is used if `selectionMode` prop is not `SelectionMode.none`
118
- */
119
- onSelect?: (conversation: CometChat.Conversation, selected: boolean) => void;
120
- /**
121
- * Disable typing indicator display
122
- *
123
- * @defaultValue `false`
124
- */
125
- disableTyping?: boolean;
126
- /**
127
- * Title of the confirmation dialog.
128
- *
129
- */
130
- confirmDialogTitle?: string;
131
- /**
132
- * Message displayed in the confirmation dialog.
133
- *
134
- */
135
- confirmDialogMessage?: string;
136
- /**
137
- * Text for the cancel button in the confirmation dialog.
138
- */
139
- cancelButtonText?: string;
140
- /**
141
- * Text for the confirm button in the confirmation dialog.
142
- */
143
- confirmButtonText?: string;
144
- /**
145
- * Disable mentions in conversation. Default value is set to false
146
- */
147
- disableMentions?: boolean;
148
- /**
149
- * Allows user to pass custom formatters
150
- */
151
- textFormatters?: CometChatTextFormatter[];
152
- }
153
- export type Action = {
154
- type: "appendConversations";
155
- conversations: CometChat.Conversation[];
156
- removeOldConversation?: boolean;
157
- } | {
158
- type: "setConversationList";
159
- conversationList: CometChat.Conversation[];
160
- } | {
161
- type: "setFetchState";
162
- fetchState: States;
163
- } | {
164
- type: "setConversationToBeDeleted";
165
- conversation: CometChat.Conversation | null;
166
- } | {
167
- type: "removeConversation";
168
- conversation: CometChat.Conversation;
169
- } | {
170
- type: "updateConversationWithUser";
171
- user: CometChat.User;
172
- } | {
173
- type: "fromUpdateConversationListFn";
174
- conversation: CometChat.Conversation;
175
- } | {
176
- type: "addTypingIndicator";
177
- typingIndicator: CometChat.TypingIndicator;
178
- } | {
179
- type: "removeTypingIndicator";
180
- typingIndicator: CometChat.TypingIndicator;
181
- } | {
182
- type: "updateConversationLastMessage";
183
- message: CometChat.BaseMessage;
184
- } | {
185
- type: "updateConversationLastMessageAndPlaceAtTheTop";
186
- message: CometChat.BaseMessage;
187
- } | {
188
- type: "updateConversationLastMessageAndGroupAndPlaceAtTheTop";
189
- group: CometChat.Group;
190
- message: CometChat.Action;
191
- } | {
192
- type: "removeConversationOfTheGroup";
193
- group: CometChat.Group;
194
- } | {
195
- type: "removeConversationOfTheUser";
196
- user: CometChat.User;
197
- } | {
198
- type: "updateConversationLastMessageResetUnreadCountAndPlaceAtTheTop";
199
- message: CometChat.BaseMessage;
200
- conversation: CometChat.Conversation;
201
- } | {
202
- type: "resetUnreadCountAndSetReadAtIfLastMessage";
203
- message: CometChat.BaseMessage;
204
- } | {
205
- type: "setLastMessageReadOrDeliveredAt";
206
- updateReadAt: boolean;
207
- messageReceipt: CometChat.MessageReceipt;
208
- } | {
209
- type: "setLoggedInUser";
210
- loggedInUser: CometChat.User | null;
211
- } | {
212
- type: "setIsFirstReload";
213
- isFirstReload: boolean;
214
- };
215
- /**
216
- * Renders a scrollable list of conversations that has been created in a CometChat app
217
- */
218
- export declare function CometChatConversations(props: ConversationsProps): import("react/jsx-runtime").JSX.Element;
219
- export {};
@@ -1,74 +0,0 @@
1
- import { CometChat } from '@cometchat/chat-sdk-javascript';
2
- type Args = {
3
- conversationsRequestBuilder: CometChat.ConversationsRequestBuilder | null;
4
- };
5
- export declare class ConversationsManager {
6
- private static limit;
7
- private conversationsRequest;
8
- private static conversationType;
9
- /**
10
- * Set `conversationsRequest` of the instance
11
- */
12
- constructor(args: Args);
13
- /**
14
- * Calls `fetchNext` method of the set `conversationsRequest`
15
- */
16
- fetchNext(): Promise<[] | import("@cometchat/chat-sdk-javascript").Conversation[]>;
17
- /**
18
- * Attaches an SDK user listener
19
- *
20
- * @returns Function to call to remove the attached SDK user listener
21
- */
22
- static attachUserListener(callback: (user: CometChat.User) => void): () => void;
23
- /**
24
- * Attaches an SDK group listener
25
- *
26
- * @returns Function to call to remove the attached SDK group listener
27
- */
28
- static attachGroupListener(callback: (message: CometChat.BaseMessage, remove?: boolean) => Promise<void>, loggedInUser: CometChat.User | null): () => void;
29
- /**
30
- * Attaches an SDK message received listener
31
- *
32
- * @returns - Function to remove the added SDK message received listener
33
- */
34
- static attachMessageReceivedListener(callback: (message: CometChat.BaseMessage) => Promise<void>): () => void;
35
- /**
36
- * Attaches an SDK message receipt listener
37
- *
38
- * @returns - Function to remove the added SDK message receipt listener
39
- */
40
- static attachMessageReceiptListener(callback: (receipt: CometChat.MessageReceipt, updateReadAt: boolean) => void): () => void;
41
- /**
42
- * Attaches an SDK message typing listener
43
- *
44
- * @returns - Function to remove the added SDK message typing listener
45
- */
46
- static attachMessageTypingListener(callback: (typingIndicator: CometChat.TypingIndicator, typingStarted: boolean) => void): () => void;
47
- /**
48
- * Attaches an SDK message modified listener
49
- *
50
- * @returns - Function to remove the added SDK message modified listener
51
- */
52
- static attachMessageModifiedListener(callback: (message: CometChat.BaseMessage) => void): () => void;
53
- /**
54
- * Attaches an SDK call listener
55
- *
56
- * @returns - Function to remove the added SDK call listener
57
- */
58
- static attachCallListener(callback: (message: CometChat.BaseMessage) => void): () => void;
59
- /**
60
- * Attaches an SDK websocket listener
61
- *
62
- * @returns - Function to remove the added SDK websocket listener
63
- */
64
- static attachConnestionListener(callback: () => void): () => void;
65
- /**
66
- * Determines if the last message should trigger an update based on its category and type.
67
- *
68
- * @param message - The last message sent or received in the conversation.
69
- * @returns {boolean} - Returns true if the message should trigger an update, false otherwise.
70
- */
71
- static shouldLastMessageAndUnreadCountBeUpdated: (message: CometChat.BaseMessage) => any;
72
- static shouldIncrementForCustomMessage(message: CometChat.CustomMessage): any;
73
- }
74
- export {};
@@ -1,25 +0,0 @@
1
- import React from "react";
2
- import { Action } from "./CometChatConversations";
3
- import { Conversation } from "@cometchat/chat-sdk-javascript";
4
- import { ConversationsManager } from "./controller";
5
- type Args = {
6
- conversationsRequestBuilder: CometChat.ConversationsRequestBuilder | null;
7
- conversationsManagerRef: React.MutableRefObject<ConversationsManager | null>;
8
- fetchNextAndAppendConversations: (fetchId: string) => Promise<void>;
9
- fetchNextIdRef: React.MutableRefObject<string>;
10
- dispatch: React.Dispatch<Action>;
11
- conversationToBeDeleted: CometChat.Conversation | null;
12
- errorHandler: (error: unknown) => void;
13
- refreshSingleConversation: (message: CometChat.BaseMessage, remove?: boolean) => Promise<void>;
14
- onMessageReceived: (message: CometChat.BaseMessage) => Promise<void>;
15
- setReceipts: (messageReceipt: CometChat.MessageReceipt, updateReadAt: boolean) => void;
16
- setTypingIndicator: (typingIndicator: CometChat.TypingIndicator, typingStarted: boolean) => void;
17
- disableTyping: boolean;
18
- loggedInUser: CometChat.User | null;
19
- isFirstReload: boolean;
20
- disableUsersPresence?: boolean;
21
- activeConversation: Conversation | null;
22
- setActiveConversationState: React.Dispatch<React.SetStateAction<Conversation | null>>;
23
- };
24
- export declare function useCometChatConversations(args: Args): void;
25
- export {};