@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,132 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CometChatMessageTemplate } from "../../modals";
|
|
3
|
-
import { DatePatterns, MessageListAlignment } from "../../Enums/Enums";
|
|
4
|
-
import { CometChatTextFormatter } from "../../formatters/CometChatFormatters/CometChatTextFormatter";
|
|
5
|
-
/**
|
|
6
|
-
* Props for the MessageList component.
|
|
7
|
-
*/
|
|
8
|
-
interface MessageListProps {
|
|
9
|
-
/**
|
|
10
|
-
* Unique identifier of the parent message for displaying threaded conversations.
|
|
11
|
-
*/
|
|
12
|
-
parentMessageId?: number;
|
|
13
|
-
/**
|
|
14
|
-
* CometChat User object, representing the participant of the chat whose details are displayed.
|
|
15
|
-
*/
|
|
16
|
-
user?: CometChat.User;
|
|
17
|
-
/**
|
|
18
|
-
* CometChat Group object, representing the group whose chat messages are displayed.
|
|
19
|
-
*/
|
|
20
|
-
group?: CometChat.Group;
|
|
21
|
-
/**
|
|
22
|
-
* Custom empty state view to display when there are no messages.
|
|
23
|
-
*/
|
|
24
|
-
emptyStateView?: JSX.Element;
|
|
25
|
-
/**
|
|
26
|
-
* Custom error state view to display when an error occurs while retrieving messages.
|
|
27
|
-
*/
|
|
28
|
-
errorStateView?: JSX.Element;
|
|
29
|
-
/**
|
|
30
|
-
* Custom loading state view to display while messages are being fetched.
|
|
31
|
-
*/
|
|
32
|
-
loadingStateView?: JSX.Element;
|
|
33
|
-
/**
|
|
34
|
-
* Boolean to toggle visibility of read receipts in the message list.
|
|
35
|
-
* @default false
|
|
36
|
-
*/
|
|
37
|
-
hideReceipt?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Specifies the alignment of the messages in the list (left, right, etc.).
|
|
40
|
-
* @default 'standard'
|
|
41
|
-
*/
|
|
42
|
-
alignment?: MessageListAlignment;
|
|
43
|
-
/**
|
|
44
|
-
* User-defined date format for the message timestamp.
|
|
45
|
-
*/
|
|
46
|
-
datePattern?: DatePatterns;
|
|
47
|
-
/**
|
|
48
|
-
* User-defined date format for the separators between dates in the message list.
|
|
49
|
-
*/
|
|
50
|
-
DateSeparatorPattern?: DatePatterns;
|
|
51
|
-
/**
|
|
52
|
-
* Boolean to toggle visibility of the date separator in the message list.
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
hideDateSeparator?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Array of message templates to define how various types of messages (e.g., text, image, video) should be displayed.
|
|
58
|
-
*/
|
|
59
|
-
templates?: CometChatMessageTemplate[];
|
|
60
|
-
/**
|
|
61
|
-
* Instance of the CometChat MessagesRequestBuilder for building the request to fetch messages.
|
|
62
|
-
*/
|
|
63
|
-
messagesRequestBuilder?: CometChat.MessagesRequestBuilder;
|
|
64
|
-
/**
|
|
65
|
-
* Text to display as a new message indicator.
|
|
66
|
-
*/
|
|
67
|
-
newMessageIndicatorText?: string;
|
|
68
|
-
/**
|
|
69
|
-
* Boolean to indicate whether the message list should scroll to the bottom when a new message arrives.
|
|
70
|
-
* @default false
|
|
71
|
-
*/
|
|
72
|
-
scrollToBottomOnNewMessages?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Threshold value for triggering certain actions (e.g., loading more messages) as the user scrolls.
|
|
75
|
-
*/
|
|
76
|
-
thresholdValue?: number;
|
|
77
|
-
/**
|
|
78
|
-
* Callback function that is triggered when the user clicks on a thread reply.
|
|
79
|
-
* @param parentMessageId - The ID of the parent message to which replies belong.
|
|
80
|
-
*/
|
|
81
|
-
onThreadRepliesClick?: Function;
|
|
82
|
-
/**
|
|
83
|
-
* Custom header view component for the message list.
|
|
84
|
-
*/
|
|
85
|
-
headerView?: JSX.Element;
|
|
86
|
-
/**
|
|
87
|
-
* Custom footer view component for the message list.
|
|
88
|
-
*/
|
|
89
|
-
footerView?: JSX.Element;
|
|
90
|
-
/**
|
|
91
|
-
* Callback triggered when an error occurs during the message fetching process.
|
|
92
|
-
* @param error - CometChatException object representing the error.
|
|
93
|
-
*/
|
|
94
|
-
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
95
|
-
/**
|
|
96
|
-
* Boolean to hide or show errors in the message list.
|
|
97
|
-
* @default false
|
|
98
|
-
*/
|
|
99
|
-
hideError?: boolean;
|
|
100
|
-
/**
|
|
101
|
-
* Instance of the CometChat ReactionsRequestBuilder for managing message reactions.
|
|
102
|
-
*/
|
|
103
|
-
reactionsRequestBuilder?: CometChat.ReactionsRequestBuilder;
|
|
104
|
-
/**
|
|
105
|
-
* Callback function that triggers when a reaction is clicked.
|
|
106
|
-
* @param reaction - The reaction object.
|
|
107
|
-
* @param message - The message associated with the reaction.
|
|
108
|
-
*/
|
|
109
|
-
onReactionClick?: (reaction: CometChat.ReactionCount, message: CometChat.BaseMessage) => void;
|
|
110
|
-
/**
|
|
111
|
-
* Callback function that triggers when an item in the reaction list is clicked.
|
|
112
|
-
* @param reaction - The reaction object.
|
|
113
|
-
* @param message - The message associated with the reaction.
|
|
114
|
-
*/
|
|
115
|
-
onReactionListItemClick?: (reaction: CometChat.Reaction, message: CometChat.BaseMessage) => void;
|
|
116
|
-
/**
|
|
117
|
-
* Boolean to disable message reactions.
|
|
118
|
-
* @default false
|
|
119
|
-
*/
|
|
120
|
-
disableReactions?: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* Boolean to disable mentions in text messages.
|
|
123
|
-
* @default false
|
|
124
|
-
*/
|
|
125
|
-
disableMentions?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Array of text formatters for custom styling or formatting of text bubbles.
|
|
128
|
-
*/
|
|
129
|
-
textFormatters?: CometChatTextFormatter[];
|
|
130
|
-
}
|
|
131
|
-
declare const CometChatMessageList: (props: MessageListProps) => import("react/jsx-runtime").JSX.Element;
|
|
132
|
-
export { CometChatMessageList };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
The MessageListManager is responsible for controlling chat operations like fetching messages and managing listener lifecycles. It attaches listeners for group and call activities for a particular user or group, which are activated when the chat is open and deactivated when it's closed or when switching to a new chat.
|
|
3
|
-
In addition, it supports real-time connection monitoring by attaching an SDK websocket listener to the chat session.
|
|
4
|
-
*/
|
|
5
|
-
export declare class MessageListManager {
|
|
6
|
-
messagesRequest: CometChat.MessagesRequest | null;
|
|
7
|
-
static groupListenerId: string;
|
|
8
|
-
static callListenerId: string;
|
|
9
|
-
static connectionListenerId: string;
|
|
10
|
-
/**
|
|
11
|
-
* Creates an instance of MessageListManager which constructs a request builder for fetching messages from a particular user/group in the chat.
|
|
12
|
-
* @param {CometChat.MessagesRequestBuilder} [messagesRequestBuilder]
|
|
13
|
-
* @param {CometChat.User} [user]
|
|
14
|
-
* @param {CometChat.Group} [group]
|
|
15
|
-
* @param {number} [messageId]
|
|
16
|
-
* @param {number} [parentMessageId]
|
|
17
|
-
* @memberof MessageListManager
|
|
18
|
-
*/
|
|
19
|
-
constructor(messagesRequestBuilder?: CometChat.MessagesRequestBuilder, user?: CometChat.User, group?: CometChat.Group, messageId?: number, parentMessageId?: number);
|
|
20
|
-
/**
|
|
21
|
-
* Function to invoke the fetchNext method of the messagesRequestBuilder to retrieve the subsequent messages following the latest fetched message.
|
|
22
|
-
*
|
|
23
|
-
* @returns {Promise}
|
|
24
|
-
*/
|
|
25
|
-
fetchNextMessages: () => Promise<CometChat.BaseMessage[] | []> | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Function to invoke the fetchPrevious method of the messagesRequestBuilder to retrieve the subsequent messages following the last fetched message.
|
|
28
|
-
*
|
|
29
|
-
* @returns {Promise}
|
|
30
|
-
*/
|
|
31
|
-
fetchPreviousMessages: () => Promise<CometChat.BaseMessage[] | []> | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Function to attach the group and call listeners for a particular user/group. This listener is attached when the chat is opened and is removed once the chat is closed or when switching to a new chat, where it creates a new listener for the particular chat.
|
|
34
|
-
*
|
|
35
|
-
* @param {Function} callback
|
|
36
|
-
*/
|
|
37
|
-
static attachListeners: (callback: (key: string, mesage: CometChat.BaseMessage, group?: CometChat.Group) => void) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Function to remove the attached listeners for a particular user/group.
|
|
40
|
-
* */
|
|
41
|
-
static removeListeners(): void;
|
|
42
|
-
/**
|
|
43
|
-
* Attaches an SDK websocket listener to monitor when the connection disconnects or reconnects.
|
|
44
|
-
*
|
|
45
|
-
* @returns - Function to remove the added SDK websocket listener
|
|
46
|
-
*/
|
|
47
|
-
static attachConnectionListener(callback: () => void): void;
|
|
48
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { MutableRefObject } from "react";
|
|
2
|
-
/**
|
|
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
|
-
**/
|
|
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[], onErrorCallback: (error: CometChat.CometChatException) => void, setMessageList: (messages: CometChat.BaseMessage[]) => void, setScrollListToBottom: (scrollToBottom: boolean) => void, smartReplyViewRef: MutableRefObject<any>, isOnBottomRef: MutableRefObject<boolean>, isFirstReloadRef: MutableRefObject<boolean>, subscribeToUIEvents: Function, setDateHeader?: Function, parentMessageId?: number): void;
|
|
6
|
-
export { useCometChatMessageList };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CometChatMessageTemplate } from "../../modals";
|
|
3
|
-
interface ThreadedMessagePreviewProps {
|
|
4
|
-
title?: string;
|
|
5
|
-
parentMessage: CometChat.BaseMessage;
|
|
6
|
-
template?: CometChatMessageTemplate;
|
|
7
|
-
bubbleView?: (messageObject: CometChat.BaseMessage) => void | JSX.Element;
|
|
8
|
-
onClose?: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare const CometChatThreadedMessagePreview: (props: ThreadedMessagePreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export { CometChatThreadedMessagePreview };
|
package/dist/types/src/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { UserMemberListType } from '../../Enums/Enums';
|
|
3
|
-
export interface MentionsProps {
|
|
4
|
-
userMemberListType?: UserMemberListType;
|
|
5
|
-
onItemClick?: (user: CometChat.User | CometChat.GroupMember) => void;
|
|
6
|
-
listItemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
|
|
7
|
-
statusIndicatorStyle?: CSSProperties;
|
|
8
|
-
searchKeyword?: string;
|
|
9
|
-
group?: CometChat.Group;
|
|
10
|
-
subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
|
|
11
|
-
usersRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
12
|
-
disableUsersPresence?: boolean;
|
|
13
|
-
hideSeparator?: boolean;
|
|
14
|
-
loadingStateView?: JSX.Element;
|
|
15
|
-
onEmpty?: () => void;
|
|
16
|
-
groupMemberRequestBuilder?: CometChat.GroupMembersRequestBuilder;
|
|
17
|
-
loadingIconUrl?: string;
|
|
18
|
-
disableLoadingState?: boolean;
|
|
19
|
-
onError?: () => void;
|
|
20
|
-
}
|
|
21
|
-
export declare function CometChatUserMemberWrapper(props: MentionsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { JSX } from "react";
|
|
2
|
-
import { UsersManager } from "./controller";
|
|
3
|
-
import { SelectionMode, States } from "../../Enums/Enums";
|
|
4
|
-
import { CometChatOption } from "../../modals/CometChatOption";
|
|
5
|
-
export interface UsersProps {
|
|
6
|
-
/**
|
|
7
|
-
* Title of the component
|
|
8
|
-
*
|
|
9
|
-
* @defaultValue `localize("USERS")`
|
|
10
|
-
*/
|
|
11
|
-
title?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Hide the search bar
|
|
14
|
-
*
|
|
15
|
-
* @defaultValue `false`
|
|
16
|
-
*/
|
|
17
|
-
hideSearch?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Text to be displayed when the search input has no value
|
|
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
|
|
30
|
-
*
|
|
31
|
-
* @defaultValue `true`
|
|
32
|
-
*/
|
|
33
|
-
showSectionHeader?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Property on the user object
|
|
36
|
-
*
|
|
37
|
-
* @remarks
|
|
38
|
-
* This property will be used to extract the section header character from the user object
|
|
39
|
-
*
|
|
40
|
-
* @defaultValue `getName`
|
|
41
|
-
*/
|
|
42
|
-
sectionHeaderKey?: keyof CometChat.User;
|
|
43
|
-
/**
|
|
44
|
-
* Custom view for the loading state of the component
|
|
45
|
-
*/
|
|
46
|
-
loadingStateView?: JSX.Element;
|
|
47
|
-
/**
|
|
48
|
-
* Hide error view
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* If set to true, hides the default and the custom error view
|
|
52
|
-
*
|
|
53
|
-
* @defaultValue `false`
|
|
54
|
-
*/
|
|
55
|
-
hideError?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Custom view for the error state of the component
|
|
58
|
-
*/
|
|
59
|
-
errorStateView?: JSX.Element;
|
|
60
|
-
/**
|
|
61
|
-
* Custom view for the empty state of the component
|
|
62
|
-
*/
|
|
63
|
-
emptyStateView?: JSX.Element;
|
|
64
|
-
/**
|
|
65
|
-
* Custom subtitle view to be rendered for each user in the fetched list
|
|
66
|
-
*
|
|
67
|
-
* @remarks
|
|
68
|
-
* This prop is used if `listItemView` prop is not provided
|
|
69
|
-
*/
|
|
70
|
-
subtitleView?: (user: CometChat.User) => JSX.Element;
|
|
71
|
-
/**
|
|
72
|
-
* Hide user presence
|
|
73
|
-
*
|
|
74
|
-
* @remarks
|
|
75
|
-
* If set to true, the status indicator of the default list item view is not displayed
|
|
76
|
-
*
|
|
77
|
-
* @defaultValue `false`
|
|
78
|
-
*/
|
|
79
|
-
disableUsersPresence?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Custom view to render on the top-right of the component
|
|
82
|
-
*/
|
|
83
|
-
menu?: JSX.Element;
|
|
84
|
-
/**
|
|
85
|
-
* List of actions available on mouse over on the default list item component
|
|
86
|
-
*/
|
|
87
|
-
options?: (user: CometChat.User) => CometChatOption[];
|
|
88
|
-
/**
|
|
89
|
-
* Selection mode to use for the default tail view
|
|
90
|
-
*
|
|
91
|
-
* @remarks
|
|
92
|
-
* This prop is used if `listItemView` prop is not provided.
|
|
93
|
-
*
|
|
94
|
-
* @defaultValue `SelectionMode.none`
|
|
95
|
-
*/
|
|
96
|
-
selectionMode?: SelectionMode;
|
|
97
|
-
/**
|
|
98
|
-
* Function to call when a user from the fetched list is selected
|
|
99
|
-
*
|
|
100
|
-
* @remarks
|
|
101
|
-
* This prop is used if `selectionMode` prop is not `SelectionMode.none`
|
|
102
|
-
*/
|
|
103
|
-
onSelect?: (users: CometChat.User, selected: boolean) => void;
|
|
104
|
-
/**
|
|
105
|
-
* Request builder to fetch users
|
|
106
|
-
*
|
|
107
|
-
* @remarks
|
|
108
|
-
* If the search input is not empty and the `searchRequestBuilder` prop is not provided,
|
|
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
|
|
112
|
-
*/
|
|
113
|
-
usersRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
114
|
-
/**
|
|
115
|
-
* Request builder with search parameters to fetch users
|
|
116
|
-
*
|
|
117
|
-
* @remarks
|
|
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
|
|
120
|
-
*/
|
|
121
|
-
searchRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
122
|
-
/**
|
|
123
|
-
* Function to call on click of the default list item view of a user
|
|
124
|
-
*/
|
|
125
|
-
onItemClick?: (user: CometChat.User) => void;
|
|
126
|
-
/**
|
|
127
|
-
* Function to call whenever the component encounters an error
|
|
128
|
-
*/
|
|
129
|
-
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
130
|
-
/**
|
|
131
|
-
* User to highlight
|
|
132
|
-
*
|
|
133
|
-
* @remarks
|
|
134
|
-
* This prop is used if `listItemView` prop is not provided
|
|
135
|
-
*/
|
|
136
|
-
activeUser?: CometChat.User;
|
|
137
|
-
/**
|
|
138
|
-
* Search keyword to filter the list of users.
|
|
139
|
-
*
|
|
140
|
-
* @defaultValue `""`
|
|
141
|
-
*/
|
|
142
|
-
searchKeyword?: string;
|
|
143
|
-
/**
|
|
144
|
-
* Callback function to be executed when the user list is empty.
|
|
145
|
-
*/
|
|
146
|
-
onEmpty?: () => void;
|
|
147
|
-
/**
|
|
148
|
-
* Flag to indicate whether users are currently being fetched.
|
|
149
|
-
*
|
|
150
|
-
* @defaultValue `false`
|
|
151
|
-
*/
|
|
152
|
-
fetchingUsers?: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Flag to indicate whether to disable loading state while fetching users.
|
|
155
|
-
* @defaultValue `false`
|
|
156
|
-
*/
|
|
157
|
-
disableLoadingState?: boolean;
|
|
158
|
-
}
|
|
159
|
-
type State = {
|
|
160
|
-
searchText: string;
|
|
161
|
-
userList: CometChat.User[];
|
|
162
|
-
fetchState: States;
|
|
163
|
-
isFirstReload: boolean;
|
|
164
|
-
fetchingUsers: boolean;
|
|
165
|
-
disableLoadingState: boolean;
|
|
166
|
-
};
|
|
167
|
-
export type Action = {
|
|
168
|
-
type: "setSearchText";
|
|
169
|
-
searchText: State["searchText"];
|
|
170
|
-
} | {
|
|
171
|
-
type: "appendUsers";
|
|
172
|
-
users: CometChat.User[];
|
|
173
|
-
removeOldUsers?: boolean;
|
|
174
|
-
usersManager?: UsersManager | null;
|
|
175
|
-
onEmpty?: () => void;
|
|
176
|
-
} | {
|
|
177
|
-
type: "setFetchState";
|
|
178
|
-
fetchState: States;
|
|
179
|
-
} | {
|
|
180
|
-
type: "setUserList";
|
|
181
|
-
userList: CometChat.User[];
|
|
182
|
-
} | {
|
|
183
|
-
type: "updateUser";
|
|
184
|
-
user: CometChat.User;
|
|
185
|
-
} | {
|
|
186
|
-
type: "setIsFirstReload";
|
|
187
|
-
isFirstReload: boolean;
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* Renders a scrollable list of users that has been created in a CometChat app
|
|
191
|
-
*/
|
|
192
|
-
export declare function CometChatUsers(props: UsersProps): import("react/jsx-runtime").JSX.Element;
|
|
193
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
type Args = {
|
|
3
|
-
searchText: string;
|
|
4
|
-
usersRequestBuilder: CometChat.UsersRequestBuilder | null;
|
|
5
|
-
searchRequestBuilder: CometChat.UsersRequestBuilder | null;
|
|
6
|
-
usersSearchText: React.MutableRefObject<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare class UsersManager {
|
|
9
|
-
private usersRequest;
|
|
10
|
-
private static defaultLimit;
|
|
11
|
-
/**
|
|
12
|
-
* Set `usersRequest` of the instance
|
|
13
|
-
*/
|
|
14
|
-
constructor(args: Args);
|
|
15
|
-
private getDefaultRequestBuilder;
|
|
16
|
-
/**
|
|
17
|
-
* Calls `fetchNext` method of the set `usersRequest`
|
|
18
|
-
*/
|
|
19
|
-
fetchNext(): Promise<[] | import("@cometchat/chat-sdk-javascript").User[]>;
|
|
20
|
-
getCurrentPage(): number;
|
|
21
|
-
/**
|
|
22
|
-
* Attaches an SDK websocket listener
|
|
23
|
-
*
|
|
24
|
-
* @returns - Function to remove the added SDK websocket listener
|
|
25
|
-
*/
|
|
26
|
-
static attachConnestionListener(callback: () => void): () => void;
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Action } from "./CometChatUsers";
|
|
3
|
-
import { UsersManager } from "./controller";
|
|
4
|
-
type Args = {
|
|
5
|
-
usersManagerRef: React.MutableRefObject<UsersManager | null>;
|
|
6
|
-
fetchNextAndAppendUsers: (fetchId: string) => Promise<void>;
|
|
7
|
-
searchText: string;
|
|
8
|
-
usersRequestBuilder: CometChat.UsersRequestBuilder | null;
|
|
9
|
-
searchRequestBuilder: CometChat.UsersRequestBuilder | null;
|
|
10
|
-
dispatch: React.Dispatch<Action>;
|
|
11
|
-
updateUser: (user: CometChat.User) => void;
|
|
12
|
-
fetchNextIdRef: React.MutableRefObject<string>;
|
|
13
|
-
searchKeyword: string;
|
|
14
|
-
disableLoadingState: boolean;
|
|
15
|
-
usersSearchText: React.MutableRefObject<string>;
|
|
16
|
-
disableUsersPresence: boolean;
|
|
17
|
-
};
|
|
18
|
-
export declare function useCometChatUsers(args: Args): void;
|
|
19
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration class for collaborative document settings.
|
|
3
|
-
*
|
|
4
|
-
* This class encapsulates the configuration required for rendering document bubbles
|
|
5
|
-
* and options in the collaborative document feature.
|
|
6
|
-
*/
|
|
7
|
-
export declare class CollaborativeDocumentConfiguration {
|
|
8
|
-
private iconURL;
|
|
9
|
-
private optionIconURL;
|
|
10
|
-
/**
|
|
11
|
-
* Constructs a CollaborativeDocumentConfiguration instance.
|
|
12
|
-
*
|
|
13
|
-
* @param configuration - An object containing optional configuration properties.
|
|
14
|
-
* @param configuration.style - Custom styling for the document bubble.
|
|
15
|
-
* @param configuration.iconURL - URL for the document icon.
|
|
16
|
-
* @param configuration.optionIconURL - URL for the options icon.
|
|
17
|
-
* @param configuration.optionStyle - Custom styling for the options.
|
|
18
|
-
*/
|
|
19
|
-
constructor(configuration: {
|
|
20
|
-
iconURL?: string;
|
|
21
|
-
optionIconURL?: string;
|
|
22
|
-
});
|
|
23
|
-
/**
|
|
24
|
-
* Retrieves the URL for the document icon.
|
|
25
|
-
*
|
|
26
|
-
* @returns The icon URL as a string.
|
|
27
|
-
*/
|
|
28
|
-
getIconURL(): string;
|
|
29
|
-
/**
|
|
30
|
-
* Retrieves the URL for the options icon.
|
|
31
|
-
*
|
|
32
|
-
* @returns The options icon URL as a string.
|
|
33
|
-
*/
|
|
34
|
-
getOptionIconURL(): string;
|
|
35
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Constants used for collaborative document operations.
|
|
3
|
-
*
|
|
4
|
-
* This frozen object contains various string constants used throughout
|
|
5
|
-
* the collaborative document feature, ensuring consistent usage across the codebase.
|
|
6
|
-
*/
|
|
7
|
-
export declare const CollaborativeDocumentConstants: Readonly<{
|
|
8
|
-
v1_create: "v1/create";
|
|
9
|
-
extension_document: "extension_document";
|
|
10
|
-
document: "document";
|
|
11
|
-
extensions: "extensions";
|
|
12
|
-
metadata: "metadata";
|
|
13
|
-
injected: "@injected";
|
|
14
|
-
post: "POST";
|
|
15
|
-
}>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ExtensionsDataSource } from "../ExtensionsDataSource";
|
|
2
|
-
import { CollaborativeDocumentConfiguration } from "./CollaborativeDocumentConfiguration";
|
|
3
|
-
/**
|
|
4
|
-
* Class representing the Collaborative Document Extension.
|
|
5
|
-
*
|
|
6
|
-
* This extension is responsible for enabling collaborative document features within the chat application.
|
|
7
|
-
* It extends the `ExtensionsDataSource` class and utilizes a configuration to customize its behavior.
|
|
8
|
-
*/
|
|
9
|
-
export declare class CollaborativeDocumentExtension extends ExtensionsDataSource {
|
|
10
|
-
/** @private Configuration for the collaborative document extension. */
|
|
11
|
-
private configuration?;
|
|
12
|
-
/**
|
|
13
|
-
* Constructs a new CollaborativeDocumentExtension.
|
|
14
|
-
*
|
|
15
|
-
* @param {CollaborativeDocumentConfiguration} [configuration] - The configuration for customizing the collaborative document extension.
|
|
16
|
-
*/
|
|
17
|
-
constructor(configuration?: CollaborativeDocumentConfiguration);
|
|
18
|
-
/**
|
|
19
|
-
* Adds the collaborative document extension to the chat configurator.
|
|
20
|
-
*
|
|
21
|
-
* This method overrides the `addExtension` method from `ExtensionsDataSource` and enables the collaborative document feature
|
|
22
|
-
* by creating a new `CollaborativeDocumentExtensionDecorator`.
|
|
23
|
-
*
|
|
24
|
-
* @override
|
|
25
|
-
*/
|
|
26
|
-
addExtension(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves the extension ID for the collaborative document extension.
|
|
29
|
-
*
|
|
30
|
-
* This method overrides the `getExtensionId` method from `ExtensionsDataSource`
|
|
31
|
-
* and returns the unique ID associated with the collaborative document extension.
|
|
32
|
-
*
|
|
33
|
-
* @returns {string} The unique ID of the collaborative document extension.
|
|
34
|
-
* @override
|
|
35
|
-
*/
|
|
36
|
-
getExtensionId(): string;
|
|
37
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { DataSource } from "../../../utils/DataSource";
|
|
2
|
-
import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
|
|
3
|
-
import { CollaborativeDocumentConfiguration } from "./CollaborativeDocumentConfiguration";
|
|
4
|
-
import { CometChatMessageComposerAction, CometChatMessageTemplate } from "../../../modals";
|
|
5
|
-
/**
|
|
6
|
-
* The `CollaborativeDocumentExtensionDecorator` class extends `DataSourceDecorator`
|
|
7
|
-
* to provide additional features and customizations for the collaborative document extension.
|
|
8
|
-
* It integrates with the CometChat UIKit to enable document collaboration in chat.
|
|
9
|
-
*/
|
|
10
|
-
export declare class CollaborativeDocumentExtensionDecorator extends DataSourceDecorator {
|
|
11
|
-
/**
|
|
12
|
-
* The configuration for the collaborative document extension.
|
|
13
|
-
* This configuration object allows customizing the appearance and behavior
|
|
14
|
-
* of the document collaboration features.
|
|
15
|
-
*
|
|
16
|
-
* @type {CollaborativeDocumentConfiguration | undefined}
|
|
17
|
-
*/
|
|
18
|
-
configuration?: CollaborativeDocumentConfiguration;
|
|
19
|
-
/**
|
|
20
|
-
* The new data source object.
|
|
21
|
-
* This is used to manage and manipulate the data for the collaborative document extension.
|
|
22
|
-
*
|
|
23
|
-
* @type {DataSource}
|
|
24
|
-
*/
|
|
25
|
-
newDataSource: DataSource;
|
|
26
|
-
/**
|
|
27
|
-
* The user who is currently logged in.
|
|
28
|
-
*/
|
|
29
|
-
protected loggedInUser?: CometChat.User | null | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Creates an instance of `CollaborativeDocumentExtensionDecorator`.
|
|
32
|
-
*
|
|
33
|
-
* @param {DataSource} dataSource - The data source object to be decorated.
|
|
34
|
-
* @param {CollaborativeDocumentConfiguration} [configuration] - An optional configuration object for the extension.
|
|
35
|
-
*/
|
|
36
|
-
constructor(dataSource: DataSource, configuration?: CollaborativeDocumentConfiguration);
|
|
37
|
-
/**
|
|
38
|
-
* Retrieves all message types supported by the extension, including custom document messages.
|
|
39
|
-
*
|
|
40
|
-
* @returns {string[]} An array of message types.
|
|
41
|
-
* @override
|
|
42
|
-
*/
|
|
43
|
-
getAllMessageTypes(): string[];
|
|
44
|
-
/**
|
|
45
|
-
* Retrieves the unique ID of the collaborative document extension.
|
|
46
|
-
*
|
|
47
|
-
* @returns {string} The unique ID for the extension.
|
|
48
|
-
* @override
|
|
49
|
-
*/
|
|
50
|
-
getId(): string;
|
|
51
|
-
/**
|
|
52
|
-
* Retrieves all message categories supported by the extension, including custom categories.
|
|
53
|
-
*
|
|
54
|
-
* @returns {string[]} An array of message categories.
|
|
55
|
-
* @override
|
|
56
|
-
*/
|
|
57
|
-
getAllMessageCategories(): string[];
|
|
58
|
-
/**
|
|
59
|
-
* Checks if a message template with the specified type already exists.
|
|
60
|
-
*
|
|
61
|
-
* @param {CometChatMessageTemplate[]} template - An array of message templates.
|
|
62
|
-
* @param {string} type - The message type to check for.
|
|
63
|
-
* @returns {boolean} `true` if the template exists, otherwise `false`.
|
|
64
|
-
*/
|
|
65
|
-
checkIfTemplateExist(template: CometChatMessageTemplate[], type: string): boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Retrieves all message templates, including the custom document template.
|
|
68
|
-
*
|
|
69
|
-
* @param {any} [additionalConfigurations] - Additional configurations for the templates.
|
|
70
|
-
* @returns {CometChatMessageTemplate[]} An array of message templates.
|
|
71
|
-
* @override
|
|
72
|
-
*/
|
|
73
|
-
getAllMessageTemplates(additionalConfigurations?: any): CometChatMessageTemplate[];
|
|
74
|
-
/**
|
|
75
|
-
* Creates a custom message template for the collaborative document extension.
|
|
76
|
-
*
|
|
77
|
-
* @returns {CometChatMessageTemplate} A message template for the document extension.
|
|
78
|
-
*/
|
|
79
|
-
getDocumentTemplate(): CometChatMessageTemplate;
|
|
80
|
-
/**
|
|
81
|
-
* Retrieves the content view for the document message bubble.
|
|
82
|
-
*
|
|
83
|
-
* @param {CometChat.CustomMessage} documentMessage - The document message to display.
|
|
84
|
-
* @returns {JSX.Element} The document content view component.
|
|
85
|
-
*/
|
|
86
|
-
getDocumentContentView(documentMessage: CometChat.CustomMessage): import("react/jsx-runtime").JSX.Element;
|
|
87
|
-
/**
|
|
88
|
-
* Launches the collaborative document in a new fullscreen window.
|
|
89
|
-
*
|
|
90
|
-
* @param {string} documentURL - The URL of the document to open.
|
|
91
|
-
*/
|
|
92
|
-
launchCollaborativeDocument(documentURL: string): void;
|
|
93
|
-
/**
|
|
94
|
-
* Retrieves the URL for a collaborative document or board from a custom message.
|
|
95
|
-
*
|
|
96
|
-
* @param {CometChat.CustomMessage} message - The custom message containing the document or board data.
|
|
97
|
-
* @returns {string | undefined} The URL of the document or board, or undefined if not found.
|
|
98
|
-
*/
|
|
99
|
-
getDocumentURL(message: CometChat.CustomMessage): any;
|
|
100
|
-
/**
|
|
101
|
-
* Overrides the attachment options to include a new action for creating a collaborative document.
|
|
102
|
-
*
|
|
103
|
-
* @param {any} id - The identifier object containing user or group information.
|
|
104
|
-
* @returns {CometChatMessageComposerAction[]} The list of attachment options including the new document action.
|
|
105
|
-
*/
|
|
106
|
-
getAttachmentOptions(id: any): CometChatMessageComposerAction[];
|
|
107
|
-
/**
|
|
108
|
-
* Retrieves the last message from a conversation, checking if it's a collaborative document.
|
|
109
|
-
*
|
|
110
|
-
* @param {CometChat.Conversation} conversation - The conversation object containing the last message.
|
|
111
|
-
* @param {CometChat.User} loggedInUser - The currently logged-in user.
|
|
112
|
-
* @param {any} [additionalConfigurations] - Optional additional configurations for the message retrieval.
|
|
113
|
-
* @returns {string} A string representing the last message, or a custom message if it's a collaborative document.
|
|
114
|
-
*/
|
|
115
|
-
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
|
|
116
|
-
}
|