@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.
- package/README.md +6 -5
- package/dist/assets/Send.svg +3 -0
- package/dist/assets/loading.svg +5 -16
- package/dist/index.d.ts +1159 -953
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatCallButtons.css +1 -1
- package/dist/styles/CometChatCallLogs.css +3 -3
- package/dist/styles/{AIConversationStarter.css → CometChatConversationStarter.css} +2 -2
- package/dist/styles/{components/AIConversationSummary.css → CometChatConversationSummary.css} +12 -12
- package/dist/styles/CometChatConversations.css +10 -10
- package/dist/styles/CometChatEditPreview.css +1 -0
- package/dist/styles/CometChatFileBubble.css +2 -0
- package/dist/styles/CometChatGroupMembers.css +5 -5
- package/dist/styles/CometChatIncomingCall.css +1 -1
- package/dist/styles/CometChatList.css +15 -22
- package/dist/styles/CometChatListItem.css +2 -2
- package/dist/styles/CometChatMessageComposer.css +48 -40
- package/dist/styles/CometChatMessageHeader.css +32 -4
- package/dist/styles/CometChatMessageInformation.css +3 -2
- package/dist/styles/CometChatMessageList.css +6 -5
- package/dist/styles/CometChatOutgoingCall.css +5 -0
- package/dist/styles/{AISmartReplies.css → CometChatSmartReplies.css} +72 -79
- package/dist/styles/PollsBubble.css +7 -1
- package/dist/styles/components/CometChatCallButtons.css +1 -1
- package/dist/styles/components/CometChatCallLogs.css +3 -3
- package/dist/styles/components/{AIConversationStarter.css → CometChatConversationStarter.css} +2 -2
- package/dist/styles/{AIConversationSummary.css → components/CometChatConversationSummary.css} +12 -12
- package/dist/styles/components/CometChatConversations.css +10 -10
- package/dist/styles/components/CometChatEditPreview.css +1 -0
- package/dist/styles/components/CometChatFileBubble.css +2 -0
- package/dist/styles/components/CometChatGroupMembers.css +5 -5
- package/dist/styles/components/CometChatIncomingCall.css +1 -1
- package/dist/styles/components/CometChatList.css +15 -22
- package/dist/styles/components/CometChatListItem.css +2 -2
- package/dist/styles/components/CometChatMessageComposer.css +48 -40
- package/dist/styles/components/CometChatMessageHeader.css +32 -4
- package/dist/styles/components/CometChatMessageInformation.css +3 -2
- package/dist/styles/components/CometChatMessageList.css +6 -5
- package/dist/styles/components/CometChatOutgoingCall.css +5 -0
- package/dist/styles/components/{AISmartReplies.css → CometChatSmartReplies.css} +72 -79
- package/dist/styles/components/PollsBubble.css +7 -1
- package/dist/styles/components/index.css +4 -3
- package/dist/styles/index.css +4 -3
- package/dist/types/CometChatCustomHooks.d.ts +1 -1
- package/dist/types/CometChatUIKit/CometChatUIKit.d.ts +0 -6
- package/dist/types/CometChatUIKit/UIKitSettings.d.ts +0 -22
- package/dist/types/Enums/Enums.d.ts +9 -0
- package/dist/types/components/BaseComponents/CometChatConversationStarter/CometChatConversationStarter.d.ts +6 -0
- package/dist/types/components/BaseComponents/CometChatConversationSummary/CometChatConversationSummary.d.ts +6 -0
- package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +12 -12
- package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +3 -1
- package/dist/types/components/BaseComponents/CometChatSmartReplies/CometChatSmartReplies.d.ts +7 -0
- package/dist/types/components/Calling/CallButtonConfiguration.d.ts +1 -1
- package/dist/types/components/Calling/CallingExtensionDecorator.d.ts +2 -2
- package/dist/types/components/Calling/CometChatCallButtons/CometChatCallButtons.d.ts +30 -12
- package/dist/types/components/Calling/CometChatCallButtons/useCallButtons.d.ts +1 -1
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +50 -38
- package/dist/types/components/Calling/CometChatCallLogs/useCometChatCallLogs.d.ts +1 -1
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +48 -26
- package/dist/types/components/Calling/CometChatIncomingCall/useCometChatIncomingCall.d.ts +1 -1
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +31 -15
- package/dist/types/components/Calling/CometChatOutgoingCall/useCometChatOutgoingCall.d.ts +1 -1
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +7 -3
- package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +88 -87
- package/dist/types/components/CometChatConversations/controller.d.ts +10 -8
- package/dist/types/components/CometChatConversations/useCometChatConversations.d.ts +2 -5
- package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +94 -76
- package/dist/types/components/CometChatGroupMembers/useCometChatGroupMembers.d.ts +2 -2
- package/dist/types/components/CometChatGroups/CometChatGroups.d.ts +74 -62
- package/dist/types/components/CometChatGroups/useCometChatGroups.d.ts +1 -0
- package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +107 -49
- package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +1 -1
- package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +77 -16
- package/dist/types/components/CometChatMessageHeader/useCometChatMessageHeader.d.ts +1 -1
- package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +133 -55
- package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +3 -1
- package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
- package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +34 -2
- package/dist/types/components/CometChatUsers/CometChatUsers.d.ts +88 -89
- package/dist/types/components/CometChatUsers/useCometChatUsers.d.ts +2 -1
- package/dist/types/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +4 -3
- package/dist/types/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +4 -3
- package/dist/types/components/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +3 -1
- package/dist/types/components/Extensions/Polls/PollsBubble.d.ts +5 -0
- package/dist/types/components/Extensions/Polls/PollsExtensionDecorator.d.ts +4 -3
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -3
- package/dist/types/components/Reactions/CometChatReactionInfo/CometChatReactionInfo.d.ts +3 -2
- package/dist/types/components/Reactions/CometChatReactionList/CometChatReactionList.d.ts +3 -2
- package/dist/types/components/Reactions/CometChatReactions/CometChatReactions.d.ts +3 -2
- package/dist/types/events/CometChatUIEvents.d.ts +2 -0
- package/dist/types/index.d.ts +8 -7
- package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +129 -115
- package/dist/types/utils/DataSource.d.ts +17 -18
- package/dist/types/utils/DataSourceDecorator.d.ts +17 -18
- package/dist/types/utils/GroupMemberUtils.d.ts +1 -1
- package/dist/types/utils/MessageUtils.d.ts +1 -1
- package/dist/types/utils/MessagesDataSource.d.ts +29 -16
- package/dist/types/utils/util.d.ts +5 -0
- package/package.json +1 -1
- package/screenshots/sample_app_overview.png +0 -0
- package/dist/Collaborative_Whiteboard_Dark.png +0 -0
- package/dist/Collaborative_Whiteboard_Light.png +0 -0
- package/dist/assets/ai-empty.svg +0 -22
- package/dist/assets/ai-error.svg +0 -3
- package/dist/assets/heart-reaction.png +0 -0
- package/dist/assets/send.svg +0 -12
- package/dist/styles/AICard.css +0 -30
- package/dist/styles/CometChatBadge.css +0 -15
- package/dist/styles/CometChatCard.css +0 -41
- package/dist/styles/components/AICard.css +0 -30
- package/dist/styles/components/CometChatBadge.css +0 -15
- package/dist/styles/components/CometChatCard.css +0 -41
- package/dist/types/CometChatUIKit/CometChatUIKitSharedSettings.d.ts +0 -8
- package/dist/types/components/AI/AIBaseConfiguration.d.ts +0 -51
- package/dist/types/components/AI/AIConversationStarter/AIConversationStarterConfiguration.d.ts +0 -20
- package/dist/types/components/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +0 -18
- package/dist/types/components/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +0 -8
- package/dist/types/components/AI/AIConversationStarter/AIConversationStarterView.d.ts +0 -8
- package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryConfiguration.d.ts +0 -31
- package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +0 -22
- package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +0 -8
- package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryView.d.ts +0 -9
- package/dist/types/components/AI/AIExtensionDataSource.d.ts +0 -6
- package/dist/types/components/AI/AISmartReplies/AISmartRepliesConfiguration.d.ts +0 -28
- package/dist/types/components/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +0 -21
- package/dist/types/components/AI/AISmartReplies/AISmartRepliesExtension.d.ts +0 -8
- package/dist/types/components/AI/AISmartReplies/AISmartRepliesView.d.ts +0 -11
- package/dist/types/components/BaseComponents/CometChatBadge/CometChatBadge.d.ts +0 -10
- package/dist/types/components/BaseComponents/CometChatCard/CometChatCard.d.ts +0 -15
- package/dist/types/components/BaseComponents/CometChatLiveReaction/CometChatLiveReaction.d.ts +0 -5
- package/dist/types/components/BaseComponents/CometChatLiveReaction/useLiveReactionHook.d.ts +0 -19
- package/dist/types/components/BaseComponents/CometChatQuickView/CometChatQuickView.d.ts +0 -9
- package/dist/types/components/BaseComponents/CometChatSingleSelect/CometChatSingleSelect.d.ts +0 -8
- package/dist/types/components/CometChatUserMemberWrapper/index.d.ts +0 -23
- package/dist/types/modals/InteractiveActions/APIAction.d.ts +0 -108
- package/dist/types/modals/InteractiveActions/CustomAction.d.ts +0 -12
- package/dist/types/modals/InteractiveActions/URLNavigationAction.d.ts +0 -30
- package/dist/types/modals/InteractiveActions/index.d.ts +0 -3
- package/dist/types/modals/InteractiveElements/BaseInputElement.d.ts +0 -50
- package/dist/types/modals/InteractiveElements/BaseInteractiveElement.d.ts +0 -25
- package/dist/types/modals/InteractiveElements/ButtonElement.d.ts +0 -48
- package/dist/types/modals/InteractiveElements/CheckboxElement.d.ts +0 -46
- package/dist/types/modals/InteractiveElements/DateTimePickerElement.d.ts +0 -124
- package/dist/types/modals/InteractiveElements/DropdownElement.d.ts +0 -55
- package/dist/types/modals/InteractiveElements/LabelElement.d.ts +0 -29
- package/dist/types/modals/InteractiveElements/OptionElement.d.ts +0 -35
- package/dist/types/modals/InteractiveElements/RadioButtonElement.d.ts +0 -54
- package/dist/types/modals/InteractiveElements/SingleSelectElement.d.ts +0 -50
- package/dist/types/modals/InteractiveElements/TextInputElement.d.ts +0 -69
- package/dist/types/modals/InteractiveElements/index.d.ts +0 -11
- package/dist/types/modals/InteractiveEntities/ActionEntity.d.ts +0 -32
- package/dist/types/modals/InteractiveEntities/ElementEntity.d.ts +0 -35
- package/dist/types/modals/InteractiveEntities/index.d.ts +0 -2
- package/dist/types/modals/InteractiveMessage/CardMessage.d.ts +0 -69
- package/dist/types/modals/InteractiveMessage/CustomInteractiveMessage.d.ts +0 -20
- package/dist/types/modals/InteractiveMessage/FormMessage.d.ts +0 -75
- package/dist/types/modals/InteractiveMessage/SchedulerMessage.d.ts +0 -230
- package/dist/types/modals/InteractiveMessage/index.d.ts +0 -5
- package/dist/types/src/CometChatCustomHooks.d.ts +0 -27
- package/dist/types/src/CometChatUIKit/CometChatCalls.d.ts +0 -1
- package/dist/types/src/CometChatUIKit/CometChatUIKit.d.ts +0 -147
- package/dist/types/src/CometChatUIKit/CometChatUIKitLoginListener.d.ts +0 -32
- package/dist/types/src/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -81
- package/dist/types/src/CometChatUIKit/UIKitSettings.d.ts +0 -304
- package/dist/types/src/Enums/Enums.d.ts +0 -258
- package/dist/types/src/components/AI/AIBaseConfiguration.d.ts +0 -51
- package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterConfiguration.d.ts +0 -20
- package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +0 -18
- package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +0 -8
- package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterView.d.ts +0 -8
- package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryConfiguration.d.ts +0 -31
- package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +0 -22
- package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +0 -8
- package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryView.d.ts +0 -9
- package/dist/types/src/components/AI/AIExtensionDataSource.d.ts +0 -6
- package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesConfiguration.d.ts +0 -28
- package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +0 -21
- package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesExtension.d.ts +0 -8
- package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesView.d.ts +0 -11
- package/dist/types/src/components/BaseComponents/CometChatActionBubble/CometChatActionBubble.d.ts +0 -8
- package/dist/types/src/components/BaseComponents/CometChatActionSheet/CometChatActionSheet.d.ts +0 -7
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/CometChatAudioBubble.d.ts +0 -6
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/base-plugin.d.ts +0 -21
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/decoder.d.ts +0 -9
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/dom.d.ts +0 -13
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/draggable.d.ts +0 -1
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/event-emitter.d.ts +0 -21
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/fetcher.d.ts +0 -5
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/player.d.ts +0 -50
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/envelope.d.ts +0 -79
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/hover.d.ts +0 -36
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/minimap.d.ts +0 -65
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/record.d.ts +0 -89
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/regions.d.ts +0 -139
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/spectrogram.d.ts +0 -98
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/timeline.d.ts +0 -54
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/zoom.d.ts +0 -55
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/renderer.d.ts +0 -63
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/timer.d.ts +0 -11
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/wavesurfer.d.ts +0 -223
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +0 -63
- package/dist/types/src/components/BaseComponents/CometChatAvatar/CometChatAvatar.d.ts +0 -13
- package/dist/types/src/components/BaseComponents/CometChatButton/CometChatButton.d.ts +0 -12
- package/dist/types/src/components/BaseComponents/CometChatCallBubble/CometChatCallBubble.d.ts +0 -12
- package/dist/types/src/components/BaseComponents/CometChatChangeScope/CometChatChangeScope.d.ts +0 -10
- package/dist/types/src/components/BaseComponents/CometChatChangeScope/useCometChatChangeScope.d.ts +0 -10
- package/dist/types/src/components/BaseComponents/CometChatCheckbox/CometChatCheckbox.d.ts +0 -11
- package/dist/types/src/components/BaseComponents/CometChatCheckbox/useCometChatCheckbox.d.ts +0 -11
- package/dist/types/src/components/BaseComponents/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +0 -16
- package/dist/types/src/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +0 -17
- package/dist/types/src/components/BaseComponents/CometChatDate/CometChatDate.d.ts +0 -13
- package/dist/types/src/components/BaseComponents/CometChatDate/useCometChatDate.d.ts +0 -8
- package/dist/types/src/components/BaseComponents/CometChatDeleteBubble/CometChatDeleteBubble.d.ts +0 -14
- package/dist/types/src/components/BaseComponents/CometChatDocumentBubble/CometChatDocumentBubble.d.ts +0 -11
- package/dist/types/src/components/BaseComponents/CometChatDropDown/CometChatDropDown.d.ts +0 -14
- package/dist/types/src/components/BaseComponents/CometChatDropDown/useCometChatDropDown.d.ts +0 -12
- package/dist/types/src/components/BaseComponents/CometChatEditPreview/CometChatEditPreview.d.ts +0 -21
- package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/CometChatEmoji.d.ts +0 -22
- package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +0 -7
- package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/emojis.d.ts +0 -6579
- package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +0 -17
- package/dist/types/src/components/BaseComponents/CometChatFileBubble/CometChatFileBubble.d.ts +0 -9
- package/dist/types/src/components/BaseComponents/CometChatFullScreenViewer/CometChatFullScreenViewer.d.ts +0 -23
- package/dist/types/src/components/BaseComponents/CometChatImageBubble/CometChatImageBubble.d.ts +0 -10
- package/dist/types/src/components/BaseComponents/CometChatImageBubble/useCometChatImageBubble.d.ts +0 -7
- package/dist/types/src/components/BaseComponents/CometChatList/CometChatList.d.ts +0 -156
- package/dist/types/src/components/BaseComponents/CometChatList/useCometChatList.d.ts +0 -17
- package/dist/types/src/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +0 -15
- package/dist/types/src/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +0 -12
- package/dist/types/src/components/BaseComponents/CometChatLiveReaction/CometChatLiveReaction.d.ts +0 -5
- package/dist/types/src/components/BaseComponents/CometChatLiveReaction/useLiveReactionHook.d.ts +0 -19
- package/dist/types/src/components/BaseComponents/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +0 -8
- package/dist/types/src/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -28
- package/dist/types/src/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +0 -24
- package/dist/types/src/components/BaseComponents/CometChatRadioButton/CometChatRadioButton.d.ts +0 -14
- package/dist/types/src/components/BaseComponents/CometChatRadioButton/useCometChatRadioButton.d.ts +0 -13
- package/dist/types/src/components/BaseComponents/CometChatSearchBar/CometChatSearchBar.d.ts +0 -9
- package/dist/types/src/components/BaseComponents/CometChatSearchBar/useCometChatSearchBar.d.ts +0 -10
- package/dist/types/src/components/BaseComponents/CometChatTextBubble/CometChatTextBubble.d.ts +0 -8
- package/dist/types/src/components/BaseComponents/CometChatTextBubble/useCometChatTextBubble.d.ts +0 -6
- package/dist/types/src/components/BaseComponents/CometChatToast/CometChatToast.d.ts +0 -27
- package/dist/types/src/components/BaseComponents/CometChatVideoBubble/CometChatVideoBubble.d.ts +0 -9
- package/dist/types/src/components/BaseComponents/CometChatVideoBubble/useCometChatVideoBubble.d.ts +0 -6
- package/dist/types/src/components/Calling/CallButtonConfiguration.d.ts +0 -10
- package/dist/types/src/components/Calling/CallingConfiguration.d.ts +0 -7
- package/dist/types/src/components/Calling/CallingExtension.d.ts +0 -9
- package/dist/types/src/components/Calling/CallingExtensionDecorator.d.ts +0 -29
- package/dist/types/src/components/Calling/CometChatCallButtons/CometChatCallButtons.d.ts +0 -36
- package/dist/types/src/components/Calling/CometChatCallButtons/useCallButtons.d.ts +0 -6
- package/dist/types/src/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +0 -71
- package/dist/types/src/components/Calling/CometChatCallLogs/useCometChatCallLogs.d.ts +0 -2
- package/dist/types/src/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -59
- package/dist/types/src/components/Calling/CometChatIncomingCall/useCometChatIncomingCall.d.ts +0 -2
- package/dist/types/src/components/Calling/CometChatOngoingCall/CometChatOngoingCall.d.ts +0 -10
- package/dist/types/src/components/Calling/CometChatOngoingCall/useCometChatOngoingCall.d.ts +0 -2
- package/dist/types/src/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -36
- package/dist/types/src/components/Calling/CometChatOutgoingCall/useCometChatOutgoingCall.d.ts +0 -7
- package/dist/types/src/components/Calling/OutgoingCallConfiguration.d.ts +0 -8
- package/dist/types/src/components/Calling/Utils/utils.d.ts +0 -7
- package/dist/types/src/components/CometChatConversations/CometChatConversations.d.ts +0 -219
- package/dist/types/src/components/CometChatConversations/controller.d.ts +0 -74
- package/dist/types/src/components/CometChatConversations/useCometChatConversations.d.ts +0 -25
- package/dist/types/src/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +0 -178
- package/dist/types/src/components/CometChatGroupMembers/controller.d.ts +0 -38
- package/dist/types/src/components/CometChatGroupMembers/useCometChatGroupMembers.d.ts +0 -22
- package/dist/types/src/components/CometChatGroups/CometChatGroups.d.ts +0 -150
- package/dist/types/src/components/CometChatGroups/controller.d.ts +0 -44
- package/dist/types/src/components/CometChatGroups/useCometChatGroups.d.ts +0 -15
- package/dist/types/src/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +0 -166
- package/dist/types/src/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +0 -42
- package/dist/types/src/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +0 -29
- package/dist/types/src/components/CometChatMessageHeader/useCometChatMessageHeader.d.ts +0 -3
- package/dist/types/src/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +0 -6
- package/dist/types/src/components/CometChatMessageList/CometChatMessageList.d.ts +0 -132
- package/dist/types/src/components/CometChatMessageList/CometChatMessageListController.d.ts +0 -48
- package/dist/types/src/components/CometChatMessageList/useCometChatMessageList.d.ts +0 -6
- package/dist/types/src/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +0 -11
- package/dist/types/src/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +0 -21
- package/dist/types/src/components/CometChatUsers/CometChatUsers.d.ts +0 -193
- package/dist/types/src/components/CometChatUsers/controller.d.ts +0 -28
- package/dist/types/src/components/CometChatUsers/useCometChatUsers.d.ts +0 -19
- package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +0 -35
- package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentConstants.d.ts +0 -15
- package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +0 -37
- package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +0 -116
- package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +0 -35
- package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConstants.d.ts +0 -13
- package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +0 -29
- package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +0 -94
- package/dist/types/src/components/Extensions/ExtensionsDataSource.d.ts +0 -29
- package/dist/types/src/components/Extensions/ExtensionsId.d.ts +0 -22
- package/dist/types/src/components/Extensions/LinkPreview/LinkPreview.d.ts +0 -37
- package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewConstants.d.ts +0 -11
- package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewExtension.d.ts +0 -24
- package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewExtensionDecorator.d.ts +0 -60
- package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationBubble.d.ts +0 -35
- package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationConstants.d.ts +0 -12
- package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationExtension.d.ts +0 -30
- package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +0 -53
- package/dist/types/src/components/Extensions/Polls/CreatePolls.d.ts +0 -66
- package/dist/types/src/components/Extensions/Polls/PollsBubble.d.ts +0 -35
- package/dist/types/src/components/Extensions/Polls/PollsConfiguration.d.ts +0 -19
- package/dist/types/src/components/Extensions/Polls/PollsConstants.d.ts +0 -8
- package/dist/types/src/components/Extensions/Polls/PollsExtension.d.ts +0 -8
- package/dist/types/src/components/Extensions/Polls/PollsExtensionDecorator.d.ts +0 -112
- package/dist/types/src/components/Extensions/Stickers/StickersConstants.d.ts +0 -16
- package/dist/types/src/components/Extensions/Stickers/StickersExtension.d.ts +0 -31
- package/dist/types/src/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -112
- package/dist/types/src/components/Extensions/Stickers/StickersKeyboard.d.ts +0 -29
- package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationConstants.d.ts +0 -13
- package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +0 -21
- package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +0 -40
- package/dist/types/src/components/Reactions/CometChatReactionInfo/CometChatReactionInfo.d.ts +0 -9
- package/dist/types/src/components/Reactions/CometChatReactionList/CometChatReactionList.d.ts +0 -8
- package/dist/types/src/components/Reactions/CometChatReactions/CometChatReactions.d.ts +0 -12
- package/dist/types/src/constants/CometChatUIKitConstants.d.ts +0 -139
- package/dist/types/src/constants/CometChatUtilityConstants.d.ts +0 -9
- package/dist/types/src/constants/index.d.ts +0 -1
- package/dist/types/src/events/CometChatCallEvents.d.ts +0 -10
- package/dist/types/src/events/CometChatConversationEvents.d.ts +0 -13
- package/dist/types/src/events/CometChatGroupEvents.d.ts +0 -63
- package/dist/types/src/events/CometChatMessageEvents.d.ts +0 -43
- package/dist/types/src/events/CometChatUIEvents.d.ts +0 -59
- package/dist/types/src/events/CometChatUserEvents.d.ts +0 -16
- package/dist/types/src/formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter.d.ts +0 -210
- package/dist/types/src/formatters/CometChatFormatters/CometChatTextFormatter.d.ts +0 -268
- package/dist/types/src/formatters/CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter.d.ts +0 -12
- package/dist/types/src/formatters/index.d.ts +0 -3
- package/dist/types/src/index.d.ts +0 -108
- package/dist/types/src/modals/CometChatActions.d.ts +0 -36
- package/dist/types/src/modals/CometChatActionsIcon.d.ts +0 -38
- package/dist/types/src/modals/CometChatActionsView.d.ts +0 -39
- package/dist/types/src/modals/CometChatMessageComposerAction.d.ts +0 -33
- package/dist/types/src/modals/CometChatMessageOption.d.ts +0 -37
- package/dist/types/src/modals/CometChatMessageTemplate.d.ts +0 -70
- package/dist/types/src/modals/CometChatOption.d.ts +0 -20
- package/dist/types/src/modals/index.d.ts +0 -7
- package/dist/types/src/resources/CometChatLocalize/cometchat-localize.d.ts +0 -5603
- package/dist/types/src/resources/CometChatSoundManager/CometChatSoundManager.d.ts +0 -128
- package/dist/types/src/resources/index.d.ts +0 -1
- package/dist/types/src/utils/CallingDetailsUtils.d.ts +0 -42
- package/dist/types/src/utils/ChatConfigurator.d.ts +0 -12
- package/dist/types/src/utils/ChatSdkEventInitializer.d.ts +0 -6
- package/dist/types/src/utils/ConversationUtils.d.ts +0 -69
- package/dist/types/src/utils/DataSource.d.ts +0 -55
- package/dist/types/src/utils/DataSourceDecorator.d.ts +0 -57
- package/dist/types/src/utils/GroupMemberUtils.d.ts +0 -32
- package/dist/types/src/utils/MessageReceiptUtils.d.ts +0 -44
- package/dist/types/src/utils/MessageUtils.d.ts +0 -55
- package/dist/types/src/utils/MessagesDataSource.d.ts +0 -110
- package/dist/types/src/utils/Storage.d.ts +0 -33
- package/dist/types/src/utils/util.d.ts +0 -26
- package/dist/types/utils/IcsToJson.d.ts +0 -19
- package/dist/types/utils/InteractiveMessageUtils.d.ts +0 -71
- /package/dist/assets/{ai.svg → conversation_summary.svg} +0 -0
|
@@ -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 };
|
package/dist/types/src/components/Calling/CometChatIncomingCall/useCometChatIncomingCall.d.ts
DELETED
|
@@ -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,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 };
|
package/dist/types/src/components/Calling/CometChatOutgoingCall/useCometChatOutgoingCall.d.ts
DELETED
|
@@ -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,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 {};
|