@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
|
@@ -7,126 +7,204 @@ import { CometChatTextFormatter } from "../../formatters/CometChatFormatters/Com
|
|
|
7
7
|
*/
|
|
8
8
|
interface MessageListProps {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Enables conversation starters for new chats.
|
|
11
|
+
* @default false
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
+
showConversationStarters?: boolean;
|
|
13
14
|
/**
|
|
14
|
-
*
|
|
15
|
+
* Enables the generation of Smart Replies for incoming messages.
|
|
16
|
+
* @default false
|
|
15
17
|
*/
|
|
16
|
-
|
|
18
|
+
showSmartReplies?: boolean;
|
|
17
19
|
/**
|
|
18
|
-
*
|
|
20
|
+
* Hides the visibility of the date separator in the message list.
|
|
21
|
+
* @default false
|
|
19
22
|
*/
|
|
20
|
-
|
|
23
|
+
hideDateSeparator?: boolean;
|
|
21
24
|
/**
|
|
22
|
-
*
|
|
25
|
+
* Hides the sticky date header in the message list.
|
|
26
|
+
* @default false
|
|
23
27
|
*/
|
|
24
|
-
|
|
28
|
+
hideStickyDate?: boolean;
|
|
25
29
|
/**
|
|
26
|
-
*
|
|
30
|
+
* Hides the visibility of receipts in the message list.
|
|
31
|
+
* @default false
|
|
27
32
|
*/
|
|
28
|
-
|
|
33
|
+
hideReceipts?: boolean;
|
|
29
34
|
/**
|
|
30
|
-
*
|
|
35
|
+
* Hides the default & custom error view passed in `errorView` prop.
|
|
36
|
+
* @default false
|
|
31
37
|
*/
|
|
32
|
-
|
|
38
|
+
hideError?: boolean;
|
|
33
39
|
/**
|
|
34
|
-
*
|
|
40
|
+
* Hides the option to reply to messages in a thread.
|
|
35
41
|
* @default false
|
|
36
42
|
*/
|
|
37
|
-
|
|
43
|
+
hideReplyInThreadOption?: boolean;
|
|
38
44
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @default
|
|
45
|
+
* Hides the option to translate messages.
|
|
46
|
+
* @default false
|
|
41
47
|
*/
|
|
42
|
-
|
|
48
|
+
hideTranslateMessageOption?: boolean;
|
|
43
49
|
/**
|
|
44
|
-
*
|
|
50
|
+
* Hides the option to edit messages.
|
|
51
|
+
* @default false
|
|
45
52
|
*/
|
|
46
|
-
|
|
53
|
+
hideEditMessageOption?: boolean;
|
|
47
54
|
/**
|
|
48
|
-
*
|
|
55
|
+
* Hides the option to delete messages.
|
|
56
|
+
* @default false
|
|
49
57
|
*/
|
|
50
|
-
|
|
58
|
+
hideDeleteMessageOption?: boolean;
|
|
51
59
|
/**
|
|
52
|
-
*
|
|
60
|
+
* Hides the option to react to messages.
|
|
53
61
|
* @default false
|
|
54
62
|
*/
|
|
55
|
-
|
|
63
|
+
hideReactionOption?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Hides the option to message a user privately.
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
hideMessagePrivatelyOption?: boolean;
|
|
56
69
|
/**
|
|
57
|
-
*
|
|
70
|
+
* Hides the option to copy messages.
|
|
71
|
+
* @default false
|
|
58
72
|
*/
|
|
59
|
-
|
|
73
|
+
hideCopyMessageOption?: boolean;
|
|
60
74
|
/**
|
|
61
|
-
*
|
|
75
|
+
* Hides the option to view message information.
|
|
76
|
+
* @default false
|
|
62
77
|
*/
|
|
63
|
-
|
|
78
|
+
hideMessageInfoOption?: boolean;
|
|
64
79
|
/**
|
|
65
|
-
*
|
|
80
|
+
* Hides avatars for messages.
|
|
81
|
+
* @default false
|
|
66
82
|
*/
|
|
67
|
-
|
|
83
|
+
hideAvatar?: boolean;
|
|
68
84
|
/**
|
|
69
|
-
*
|
|
85
|
+
* Hides group action messages.
|
|
70
86
|
* @default false
|
|
71
87
|
*/
|
|
72
|
-
|
|
88
|
+
hideGroupActionMessages?: boolean;
|
|
73
89
|
/**
|
|
74
|
-
*
|
|
90
|
+
* Unique identifier of the parent message for displaying threaded conversations.
|
|
75
91
|
*/
|
|
76
|
-
|
|
92
|
+
parentMessageId?: number;
|
|
77
93
|
/**
|
|
78
|
-
*
|
|
79
|
-
* @param parentMessageId - The ID of the parent message to which replies belong.
|
|
94
|
+
* A `CometChat.User` object representing the participant of the chat whose details are displayed.
|
|
80
95
|
*/
|
|
81
|
-
|
|
96
|
+
user?: CometChat.User;
|
|
82
97
|
/**
|
|
83
|
-
*
|
|
98
|
+
* A `CometChat.Group` object representing the group whose chat messages are displayed.
|
|
84
99
|
*/
|
|
85
|
-
|
|
100
|
+
group?: CometChat.Group;
|
|
86
101
|
/**
|
|
87
|
-
*
|
|
102
|
+
* Instance of the `CometChat.ReactionsRequestBuilder` for managing message reactions.
|
|
88
103
|
*/
|
|
89
|
-
|
|
104
|
+
reactionsRequestBuilder?: CometChat.ReactionsRequestBuilder;
|
|
90
105
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @param error - CometChatException object representing the error.
|
|
106
|
+
* Instance of the `CometChat.MessagesRequestBuilder` for building the request to fetch messages.
|
|
93
107
|
*/
|
|
94
|
-
|
|
108
|
+
messagesRequestBuilder?: CometChat.MessagesRequestBuilder;
|
|
109
|
+
/**
|
|
110
|
+
* Array of message templates to define how various types of messages should be displayed.
|
|
111
|
+
*/
|
|
112
|
+
templates?: CometChatMessageTemplate[];
|
|
113
|
+
/**
|
|
114
|
+
* Array of text formatters for custom styling or formatting of message text bubbles.
|
|
115
|
+
*/
|
|
116
|
+
textFormatters?: CometChatTextFormatter[];
|
|
95
117
|
/**
|
|
96
|
-
*
|
|
118
|
+
* Specifies the alignment of messages in the list (e.g., left, right).
|
|
119
|
+
* @default MessageListAlignment.standard
|
|
120
|
+
*/
|
|
121
|
+
messageAlignment?: MessageListAlignment;
|
|
122
|
+
/**
|
|
123
|
+
* User-defined time format for displaying message timestamps.
|
|
124
|
+
*/
|
|
125
|
+
timePattern?: DatePatterns;
|
|
126
|
+
/**
|
|
127
|
+
* User-defined date format for displaying message timestamps.
|
|
128
|
+
*/
|
|
129
|
+
datePattern?: DatePatterns;
|
|
130
|
+
/**
|
|
131
|
+
* Automatically scrolls the message list to the bottom when a new message arrives.
|
|
97
132
|
* @default false
|
|
98
133
|
*/
|
|
99
|
-
|
|
134
|
+
scrollToBottomOnNewMessages?: boolean;
|
|
100
135
|
/**
|
|
101
|
-
*
|
|
136
|
+
* Specifies how many message options are visible in the main menu by default.
|
|
137
|
+
* @default 2
|
|
102
138
|
*/
|
|
103
|
-
|
|
139
|
+
quickOptionsCount?: number;
|
|
140
|
+
/**
|
|
141
|
+
* Disables the sound effect when new messages arrive.
|
|
142
|
+
* @default true
|
|
143
|
+
*/
|
|
144
|
+
disableSoundForMessages?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Specifies a custom sound file to play when new messages arrive.
|
|
147
|
+
*/
|
|
148
|
+
customSoundForMessages?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Specifies the keywords in incoming messages that will trigger Smart Replies.
|
|
151
|
+
* If set to an empty array [], Smart Replies will be generated for all messages.
|
|
152
|
+
* @default ['what', 'when', 'why', 'who', 'where', 'how', '?']
|
|
153
|
+
*/
|
|
154
|
+
smartRepliesKeywords?: string[];
|
|
155
|
+
/**
|
|
156
|
+
* Specifies the delay in milliseconds before Smart Replies are displayed.
|
|
157
|
+
* Setting it to 0 fetches Smart Replies instantly without delay.
|
|
158
|
+
* @default 10000
|
|
159
|
+
*/
|
|
160
|
+
smartRepliesDelayDuration?: number;
|
|
161
|
+
/**
|
|
162
|
+
* Callback function triggered when an error occurs during message fetching.
|
|
163
|
+
*
|
|
164
|
+
* @param error - An instance of `CometChat.CometChatException` representing the error.
|
|
165
|
+
* @returns void
|
|
166
|
+
*/
|
|
167
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
168
|
+
/**
|
|
169
|
+
* Callback function triggered when a thread reply is clicked.
|
|
170
|
+
*
|
|
171
|
+
* @param parentMessageId - The ID of the parent message to which replies belong.
|
|
172
|
+
*/
|
|
173
|
+
onThreadRepliesClick?: (message: CometChat.BaseMessage) => void;
|
|
104
174
|
/**
|
|
105
175
|
* Callback function that triggers when a reaction is clicked.
|
|
176
|
+
*
|
|
106
177
|
* @param reaction - The reaction object.
|
|
107
178
|
* @param message - The message associated with the reaction.
|
|
108
179
|
*/
|
|
109
180
|
onReactionClick?: (reaction: CometChat.ReactionCount, message: CometChat.BaseMessage) => void;
|
|
110
181
|
/**
|
|
111
182
|
* Callback function that triggers when an item in the reaction list is clicked.
|
|
183
|
+
*
|
|
112
184
|
* @param reaction - The reaction object.
|
|
113
185
|
* @param message - The message associated with the reaction.
|
|
114
186
|
*/
|
|
115
187
|
onReactionListItemClick?: (reaction: CometChat.Reaction, message: CometChat.BaseMessage) => void;
|
|
116
188
|
/**
|
|
117
|
-
*
|
|
118
|
-
* @default false
|
|
189
|
+
* Custom empty state view to display when there are no messages.
|
|
119
190
|
*/
|
|
120
|
-
|
|
191
|
+
emptyView?: JSX.Element;
|
|
121
192
|
/**
|
|
122
|
-
*
|
|
123
|
-
* @default false
|
|
193
|
+
* A custom view displayed when there are no messages.
|
|
124
194
|
*/
|
|
125
|
-
|
|
195
|
+
errorView?: JSX.Element;
|
|
126
196
|
/**
|
|
127
|
-
*
|
|
197
|
+
* A custom view displayed while messages are being fetched.
|
|
128
198
|
*/
|
|
129
|
-
|
|
199
|
+
loadingView?: JSX.Element;
|
|
200
|
+
/**
|
|
201
|
+
* A custom header view component for the message list.
|
|
202
|
+
*/
|
|
203
|
+
headerView?: JSX.Element;
|
|
204
|
+
/**
|
|
205
|
+
* A custom footer view component for the message list.
|
|
206
|
+
*/
|
|
207
|
+
footerView?: JSX.Element;
|
|
130
208
|
}
|
|
131
209
|
declare const CometChatMessageList: (props: MessageListProps) => import("react/jsx-runtime").JSX.Element;
|
|
132
210
|
export { CometChatMessageList };
|
|
@@ -7,6 +7,7 @@ export declare class MessageListManager {
|
|
|
7
7
|
static groupListenerId: string;
|
|
8
8
|
static callListenerId: string;
|
|
9
9
|
static connectionListenerId: string;
|
|
10
|
+
private static errorHandler;
|
|
10
11
|
/**
|
|
11
12
|
* Creates an instance of MessageListManager which constructs a request builder for fetching messages from a particular user/group in the chat.
|
|
12
13
|
* @param {CometChat.MessagesRequestBuilder} [messagesRequestBuilder]
|
|
@@ -14,9 +15,10 @@ export declare class MessageListManager {
|
|
|
14
15
|
* @param {CometChat.Group} [group]
|
|
15
16
|
* @param {number} [messageId]
|
|
16
17
|
* @param {number} [parentMessageId]
|
|
18
|
+
* @param {boolean} [hideGroupActionMessages]
|
|
17
19
|
* @memberof MessageListManager
|
|
18
20
|
*/
|
|
19
|
-
constructor(messagesRequestBuilder?: CometChat.MessagesRequestBuilder, user?: CometChat.User, group?: CometChat.Group, messageId?: number, parentMessageId?: number);
|
|
21
|
+
constructor(errorHandler: (error: unknown, source?: string) => void, messagesRequestBuilder?: CometChat.MessagesRequestBuilder, user?: CometChat.User, group?: CometChat.Group, messageId?: number, parentMessageId?: number, hideGroupActionMessages?: boolean);
|
|
20
22
|
/**
|
|
21
23
|
* Function to invoke the fetchNext method of the messagesRequestBuilder to retrieve the subsequent messages following the latest fetched message.
|
|
22
24
|
*
|
|
@@ -2,5 +2,5 @@ import { MutableRefObject } from "react";
|
|
|
2
2
|
/**
|
|
3
3
|
* This Hooks function is a custom React hook designed to manage functionalities of CometChatMessageList component. It fetches the logged-in user, handles event subscriptions and tracks message IDs for new message retrieval. It plays a key role in maintaining real-time functionality and user interactions in the chat interface.
|
|
4
4
|
**/
|
|
5
|
-
declare function useCometChatMessageList(loggedInUserRef: MutableRefObject<CometChat.User | null>, messageListManagerRef: MutableRefObject<any>, fetchPreviousMessages: () => void, updateMessage: (key: string, mesage: CometChat.BaseMessage, group?: CometChat.Group) => void, messagesRequestBuilder: CometChat.MessagesRequestBuilder | undefined, user: CometChat.User | undefined, group: CometChat.Group | undefined, messageIdRef: MutableRefObject<any>, totalMessagesCountRef: MutableRefObject<any>, messageList: CometChat.BaseMessage[],
|
|
5
|
+
declare function useCometChatMessageList(loggedInUserRef: MutableRefObject<CometChat.User | null>, messageListManagerRef: MutableRefObject<any>, fetchPreviousMessages: () => void, updateMessage: (key: string, mesage: CometChat.BaseMessage, group?: CometChat.Group) => void, messagesRequestBuilder: CometChat.MessagesRequestBuilder | undefined, user: CometChat.User | undefined, group: CometChat.Group | undefined, messageIdRef: MutableRefObject<any>, totalMessagesCountRef: MutableRefObject<any>, messageList: CometChat.BaseMessage[], errorHandler: (error: unknown, source?: string) => void, setMessageList: (messages: CometChat.BaseMessage[]) => void, setScrollListToBottom: (scrollToBottom: boolean) => void, smartReplyViewRef: MutableRefObject<any>, isOnBottomRef: MutableRefObject<boolean>, isFirstReloadRef: MutableRefObject<boolean>, subscribeToUIEvents: Function, showSmartRepliesRef: MutableRefObject<any>, setDateHeader?: Function, parentMessageId?: number, hideGroupActionMessages?: boolean, showSmartReplies?: boolean): void;
|
|
6
6
|
export { useCometChatMessageList };
|
package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts
CHANGED
|
@@ -1,11 +1,43 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CometChatMessageTemplate } from "../../modals";
|
|
3
3
|
interface ThreadedMessagePreviewProps {
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Hides the visibility of the date header.
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
hideDate?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Hides the visibility of the reply count.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
hideReplyCount?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Represents the parent message for displaying threaded conversations.
|
|
16
|
+
*/
|
|
5
17
|
parentMessage: CometChat.BaseMessage;
|
|
18
|
+
/**
|
|
19
|
+
* Template for customizing the appearance of the message.
|
|
20
|
+
*/
|
|
6
21
|
template?: CometChatMessageTemplate;
|
|
7
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Callback function triggered when the threaded message header is closed.
|
|
24
|
+
* @returns void
|
|
25
|
+
*/
|
|
8
26
|
onClose?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* A custom view for rendering the message bubble.
|
|
29
|
+
*
|
|
30
|
+
* @param messageObject - The message to be rendered.
|
|
31
|
+
* @returns A JSX Element to be rendered as message bubble view.
|
|
32
|
+
*/
|
|
33
|
+
messageBubbleView?: (messageObject: CometChat.BaseMessage) => JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* Callback function triggered when an error occurs.
|
|
36
|
+
*
|
|
37
|
+
* @param error - An instance of CometChat.CometChatException representing the error.
|
|
38
|
+
* @returns void
|
|
39
|
+
*/
|
|
40
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
9
41
|
}
|
|
10
42
|
declare const CometChatThreadedMessagePreview: (props: ThreadedMessagePreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
43
|
export { CometChatThreadedMessagePreview };
|
|
@@ -4,164 +4,163 @@ import { SelectionMode, States } from "../../Enums/Enums";
|
|
|
4
4
|
import { CometChatOption } from "../../modals/CometChatOption";
|
|
5
5
|
export interface UsersProps {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @defaultValue `localize("USERS")`
|
|
10
|
-
*/
|
|
11
|
-
title?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Hide the search bar
|
|
7
|
+
* Hides the default search bar.
|
|
14
8
|
*
|
|
15
9
|
* @defaultValue `false`
|
|
16
10
|
*/
|
|
17
11
|
hideSearch?: boolean;
|
|
18
12
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @defaultValue `localize("SEARCH")`
|
|
22
|
-
*/
|
|
23
|
-
searchPlaceholderText?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Custom list item view to be rendered for each user in the fetched list
|
|
26
|
-
*/
|
|
27
|
-
listItemView?: (user: CometChat.User) => JSX.Element;
|
|
28
|
-
/**
|
|
29
|
-
* Show alphabetical header
|
|
13
|
+
* Displays an alphabetical section header for the user list.
|
|
30
14
|
*
|
|
31
15
|
* @defaultValue `true`
|
|
32
16
|
*/
|
|
33
17
|
showSectionHeader?: boolean;
|
|
34
18
|
/**
|
|
35
|
-
*
|
|
19
|
+
* Hides both the default and custom error view passed in `errorView` prop.
|
|
36
20
|
*
|
|
37
|
-
* @
|
|
38
|
-
* This property will be used to extract the section header character from the user object
|
|
39
|
-
*
|
|
40
|
-
* @defaultValue `getName`
|
|
21
|
+
* @defaultValue `false`
|
|
41
22
|
*/
|
|
42
|
-
|
|
23
|
+
hideError?: boolean;
|
|
43
24
|
/**
|
|
44
|
-
*
|
|
25
|
+
* Disables the loading state while fetching users.
|
|
26
|
+
*
|
|
27
|
+
* @defaultValue `false`
|
|
45
28
|
*/
|
|
46
|
-
|
|
29
|
+
disableLoadingState?: boolean;
|
|
47
30
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* If set to true, hides the default and the custom error view
|
|
31
|
+
* Hides the user's online/offline status indicator.
|
|
52
32
|
*
|
|
33
|
+
* @remarks If set to `true`, the status indicator of the default list item view is not displayed.
|
|
53
34
|
* @defaultValue `false`
|
|
54
35
|
*/
|
|
55
|
-
|
|
36
|
+
hideUserStatus?: boolean;
|
|
56
37
|
/**
|
|
57
|
-
*
|
|
38
|
+
* User to highlight.
|
|
39
|
+
*
|
|
40
|
+
* @remarks This prop is used if `activeUser` prop is not provided.
|
|
58
41
|
*/
|
|
59
|
-
|
|
42
|
+
activeUser?: CometChat.User;
|
|
60
43
|
/**
|
|
61
|
-
*
|
|
44
|
+
* Request builder to fetch users.
|
|
45
|
+
*
|
|
46
|
+
* @defaultValue Default request builder having the limit set to `30`.
|
|
62
47
|
*/
|
|
63
|
-
|
|
48
|
+
usersRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
64
49
|
/**
|
|
65
|
-
*
|
|
50
|
+
* Request builder with search parameters to fetch users.
|
|
66
51
|
*
|
|
67
|
-
* @remarks
|
|
68
|
-
* This prop is used if `listItemView` prop is not provided
|
|
52
|
+
* @remarks If the search input is not empty, the search keyword of this request builder is set to the text in the search input.
|
|
69
53
|
*/
|
|
70
|
-
|
|
54
|
+
searchRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
71
55
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* @remarks
|
|
75
|
-
* If set to true, the status indicator of the default list item view is not displayed
|
|
56
|
+
* The search keyword used to filter the user list.
|
|
76
57
|
*
|
|
77
|
-
* @defaultValue `
|
|
58
|
+
* @defaultValue `""`
|
|
78
59
|
*/
|
|
79
|
-
|
|
60
|
+
searchKeyword?: string;
|
|
80
61
|
/**
|
|
81
|
-
*
|
|
62
|
+
* The property on the user object used to extract the section header character.
|
|
63
|
+
*
|
|
64
|
+
* @remarks This property will be used to extract the section header character from the user object.
|
|
65
|
+
* @defaultValue `getName`
|
|
82
66
|
*/
|
|
83
|
-
|
|
67
|
+
sectionHeaderKey?: keyof CometChat.User;
|
|
84
68
|
/**
|
|
85
|
-
*
|
|
69
|
+
* A function that returns a list of actions available when hovering over a user item.
|
|
70
|
+
* @param user - An instance of `CometChat.User` representing the selected user.
|
|
71
|
+
* @returns An array of `CometChatOption` objects.
|
|
86
72
|
*/
|
|
87
73
|
options?: (user: CometChat.User) => CometChatOption[];
|
|
88
74
|
/**
|
|
89
|
-
* Selection mode to use for the default
|
|
90
|
-
*
|
|
91
|
-
* @remarks
|
|
92
|
-
* This prop is used if `listItemView` prop is not provided.
|
|
75
|
+
* Selection mode to use for the default trailing view.
|
|
93
76
|
*
|
|
94
77
|
* @defaultValue `SelectionMode.none`
|
|
95
78
|
*/
|
|
96
79
|
selectionMode?: SelectionMode;
|
|
97
80
|
/**
|
|
98
|
-
*
|
|
81
|
+
* Callback function invoked when a user is selected.
|
|
99
82
|
*
|
|
100
|
-
* @remarks
|
|
101
|
-
*
|
|
83
|
+
* @remarks This prop works only if `selectionMode` is not set to `SelectionMode.none`.
|
|
84
|
+
* @param user - An instance of `CometChat.User` representing the selected user.
|
|
85
|
+
* @param selected - A boolean indicating whether the user is selected.
|
|
86
|
+
* @returns void
|
|
102
87
|
*/
|
|
103
|
-
onSelect?: (
|
|
88
|
+
onSelect?: (user: CometChat.User, selected: boolean) => void;
|
|
104
89
|
/**
|
|
105
|
-
*
|
|
90
|
+
* Callback function invoked when a user item is clicked.
|
|
106
91
|
*
|
|
107
|
-
* @
|
|
108
|
-
*
|
|
109
|
-
* the search keyword of this request builder is set to the text in the search input
|
|
110
|
-
*
|
|
111
|
-
* @defaultValue Default request builder having the limit set to 30
|
|
92
|
+
* @param user - An instance of `CometChat.User` representing the clicked user.
|
|
93
|
+
* @returns void
|
|
112
94
|
*/
|
|
113
|
-
|
|
95
|
+
onItemClick?: (user: CometChat.User) => void;
|
|
114
96
|
/**
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* @
|
|
118
|
-
* If the search input is not empty,
|
|
119
|
-
* the search keyword of this request builder is set to the text in the search input
|
|
97
|
+
* Callback function invoked when an error occurs in the component.
|
|
98
|
+
* @param error - An instance of `CometChat.CometChatException` representing the error.
|
|
99
|
+
* @returns void
|
|
120
100
|
*/
|
|
121
|
-
|
|
101
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
122
102
|
/**
|
|
123
|
-
*
|
|
103
|
+
* Callback function to be executed when the user list is empty.
|
|
104
|
+
* @returns void
|
|
124
105
|
*/
|
|
125
|
-
|
|
106
|
+
onEmpty?: () => void;
|
|
126
107
|
/**
|
|
127
|
-
*
|
|
108
|
+
* A custom component to render in the top-right corner of the user list.
|
|
128
109
|
*/
|
|
129
|
-
|
|
110
|
+
headerView?: JSX.Element;
|
|
130
111
|
/**
|
|
131
|
-
*
|
|
112
|
+
* A custom view to display during the loading state.
|
|
113
|
+
*/
|
|
114
|
+
loadingView?: JSX.Element;
|
|
115
|
+
/**
|
|
116
|
+
* A custom view to display when an error occurs.
|
|
117
|
+
*/
|
|
118
|
+
errorView?: JSX.Element;
|
|
119
|
+
/**
|
|
120
|
+
* A custom view to display when no users are available in the list.
|
|
121
|
+
*/
|
|
122
|
+
emptyView?: JSX.Element;
|
|
123
|
+
/**
|
|
124
|
+
* A custom view to render for each user in the fetched list.
|
|
132
125
|
*
|
|
133
|
-
* @
|
|
134
|
-
*
|
|
126
|
+
* @param user - An instance of `CometChat.User` representing the user.
|
|
127
|
+
* @returns A JSX element to be rendered as the user item.
|
|
135
128
|
*/
|
|
136
|
-
|
|
129
|
+
itemView?: (user: CometChat.User) => JSX.Element;
|
|
137
130
|
/**
|
|
138
|
-
*
|
|
131
|
+
* A function that renders a JSX element to display the leading view.
|
|
139
132
|
*
|
|
140
|
-
* @
|
|
133
|
+
* @param user - An instance of `CometChat.User` representing the user.
|
|
134
|
+
* @returns A JSX element to be rendered as the leading view.
|
|
141
135
|
*/
|
|
142
|
-
|
|
136
|
+
leadingView?: (user: CometChat.User) => JSX.Element;
|
|
143
137
|
/**
|
|
144
|
-
*
|
|
138
|
+
* A custom function to render the title view of a user.
|
|
139
|
+
*
|
|
140
|
+
* @param user - An instance of `CometChat.User` representing the user.
|
|
141
|
+
* @returns A JSX element to be rendered as the title view.
|
|
145
142
|
*/
|
|
146
|
-
|
|
143
|
+
titleView?: (user: CometChat.User) => JSX.Element;
|
|
147
144
|
/**
|
|
148
|
-
*
|
|
145
|
+
* A custom view to render the subtitle for each user.
|
|
149
146
|
*
|
|
150
|
-
* @
|
|
147
|
+
* @param user - An instance of `CometChat.User` representing the user.
|
|
148
|
+
* @returns A JSX element to be rendered as the subtitle view.
|
|
151
149
|
*/
|
|
152
|
-
|
|
150
|
+
subtitleView?: (user: CometChat.User) => JSX.Element;
|
|
153
151
|
/**
|
|
154
|
-
*
|
|
155
|
-
*
|
|
152
|
+
* A function that renders a JSX element to display the trailing view.
|
|
153
|
+
*
|
|
154
|
+
* @param user - An instance of `CometChat.User` representing the user.
|
|
155
|
+
* @returns A JSX element to be rendered as the trailing view.
|
|
156
156
|
*/
|
|
157
|
-
|
|
157
|
+
trailingView?: (user: CometChat.User) => JSX.Element;
|
|
158
158
|
}
|
|
159
159
|
type State = {
|
|
160
160
|
searchText: string;
|
|
161
161
|
userList: CometChat.User[];
|
|
162
162
|
fetchState: States;
|
|
163
163
|
isFirstReload: boolean;
|
|
164
|
-
fetchingUsers: boolean;
|
|
165
164
|
disableLoadingState: boolean;
|
|
166
165
|
};
|
|
167
166
|
export type Action = {
|
|
@@ -13,7 +13,8 @@ type Args = {
|
|
|
13
13
|
searchKeyword: string;
|
|
14
14
|
disableLoadingState: boolean;
|
|
15
15
|
usersSearchText: React.MutableRefObject<string>;
|
|
16
|
-
|
|
16
|
+
hideUserStatus: boolean;
|
|
17
|
+
errorHandler: (error: unknown, source?: string | undefined) => void;
|
|
17
18
|
};
|
|
18
19
|
export declare function useCometChatUsers(args: Args): void;
|
|
19
20
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataSource } from "../../../utils/DataSource";
|
|
2
2
|
import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
|
|
3
3
|
import { CollaborativeDocumentConfiguration } from "./CollaborativeDocumentConfiguration";
|
|
4
|
+
import { MessageBubbleAlignment } from "../../../Enums/Enums";
|
|
4
5
|
import { CometChatMessageComposerAction, CometChatMessageTemplate } from "../../../modals";
|
|
5
6
|
/**
|
|
6
7
|
* The `CollaborativeDocumentExtensionDecorator` class extends `DataSourceDecorator`
|
|
@@ -54,7 +55,7 @@ export declare class CollaborativeDocumentExtensionDecorator extends DataSourceD
|
|
|
54
55
|
* @returns {string[]} An array of message categories.
|
|
55
56
|
* @override
|
|
56
57
|
*/
|
|
57
|
-
getAllMessageCategories(): string[];
|
|
58
|
+
getAllMessageCategories(additionalConfigurations?: Object | undefined): string[];
|
|
58
59
|
/**
|
|
59
60
|
* Checks if a message template with the specified type already exists.
|
|
60
61
|
*
|
|
@@ -83,7 +84,7 @@ export declare class CollaborativeDocumentExtensionDecorator extends DataSourceD
|
|
|
83
84
|
* @param {CometChat.CustomMessage} documentMessage - The document message to display.
|
|
84
85
|
* @returns {JSX.Element} The document content view component.
|
|
85
86
|
*/
|
|
86
|
-
getDocumentContentView(documentMessage: CometChat.CustomMessage): import("react/jsx-runtime").JSX.Element;
|
|
87
|
+
getDocumentContentView(documentMessage: CometChat.CustomMessage, alignment?: MessageBubbleAlignment): import("react/jsx-runtime").JSX.Element;
|
|
87
88
|
/**
|
|
88
89
|
* Launches the collaborative document in a new fullscreen window.
|
|
89
90
|
*
|
|
@@ -103,7 +104,7 @@ export declare class CollaborativeDocumentExtensionDecorator extends DataSourceD
|
|
|
103
104
|
* @param {any} id - The identifier object containing user or group information.
|
|
104
105
|
* @returns {CometChatMessageComposerAction[]} The list of attachment options including the new document action.
|
|
105
106
|
*/
|
|
106
|
-
getAttachmentOptions(id: any): CometChatMessageComposerAction[];
|
|
107
|
+
getAttachmentOptions(id: any, additionalConfigurations?: any): CometChatMessageComposerAction[];
|
|
107
108
|
/**
|
|
108
109
|
* Retrieves the last message from a conversation, checking if it's a collaborative document.
|
|
109
110
|
*
|