@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,43 +0,0 @@
|
|
|
1
|
-
import { MessageStatus } from '../Enums/Enums';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* Message event subjects for handling actions related to messages (e.g., message sent, edited, deleted, etc.)
|
|
5
|
-
*/
|
|
6
|
-
export declare class CometChatMessageEvents {
|
|
7
|
-
static ccMessageSent: Subject<IMessages>;
|
|
8
|
-
static ccMessageEdited: Subject<IMessages>;
|
|
9
|
-
static ccMessageTranslated: Subject<IMessages>;
|
|
10
|
-
static ccLiveReaction: Subject<string>;
|
|
11
|
-
static ccMessageRead: Subject<CometChat.BaseMessage>;
|
|
12
|
-
static ccMessageDeleted: Subject<CometChat.BaseMessage>;
|
|
13
|
-
/**
|
|
14
|
-
* Publishes a message event.
|
|
15
|
-
* @param {Subject<any>} event - The event to publish.
|
|
16
|
-
* @param {any} item - The item (message, etc.) associated with the event.
|
|
17
|
-
*/
|
|
18
|
-
static publishEvent(event: any, item?: any): void;
|
|
19
|
-
/**
|
|
20
|
-
* message events wrapper of SDK listeners (e.g., media message, typing indicator, read receipts, etc.)
|
|
21
|
-
*/
|
|
22
|
-
static onTextMessageReceived: Subject<CometChat.TextMessage>;
|
|
23
|
-
static onMediaMessageReceived: Subject<CometChat.MediaMessage>;
|
|
24
|
-
static onCustomMessageReceived: Subject<CometChat.CustomMessage>;
|
|
25
|
-
static onTypingStarted: Subject<CometChat.TypingIndicator>;
|
|
26
|
-
static onTypingEnded: Subject<CometChat.TypingIndicator>;
|
|
27
|
-
static onMessagesDelivered: Subject<CometChat.MessageReceipt>;
|
|
28
|
-
static onMessagesRead: Subject<CometChat.MessageReceipt>;
|
|
29
|
-
static onMessagesDeliveredToAll: Subject<CometChat.MessageReceipt>;
|
|
30
|
-
static onMessagesReadByAll: Subject<CometChat.MessageReceipt>;
|
|
31
|
-
static onMessageEdited: Subject<CometChat.BaseMessage>;
|
|
32
|
-
static onMessageDeleted: Subject<CometChat.BaseMessage>;
|
|
33
|
-
static onTransientMessageReceived: Subject<CometChat.TransientMessage>;
|
|
34
|
-
static onMessageReactionAdded: Subject<CometChat.ReactionEvent>;
|
|
35
|
-
static onMessageReactionRemoved: Subject<CometChat.ReactionEvent>;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Interface for message-related events
|
|
39
|
-
*/
|
|
40
|
-
export interface IMessages {
|
|
41
|
-
message: CometChat.BaseMessage;
|
|
42
|
-
status: MessageStatus;
|
|
43
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Subject } from "rxjs";
|
|
2
|
-
import { MouseEventSource, PanelAlignment } from "../Enums/Enums";
|
|
3
|
-
/**
|
|
4
|
-
* UI event subjects for handling various UI-related actions (e.g., showing panels, modals, dialogs, etc.)
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
export declare class CometChatUIEvents {
|
|
8
|
-
static ccHidePanel: Subject<PanelAlignment | void>;
|
|
9
|
-
static ccShowPanel: Subject<IPanel>;
|
|
10
|
-
static ccShowModal: Subject<IModal>;
|
|
11
|
-
static ccHideModal: Subject<void>;
|
|
12
|
-
static ccShowDialog: Subject<IDialog>;
|
|
13
|
-
static ccHideDialog: Subject<void>;
|
|
14
|
-
static ccActiveChatChanged: Subject<IActiveChatChanged>;
|
|
15
|
-
static ccShowOngoingCall: Subject<IShowOngoingCall>;
|
|
16
|
-
static ccOpenChat: Subject<IOpenChat>;
|
|
17
|
-
static ccComposeMessage: Subject<string>;
|
|
18
|
-
static ccMouseEvent: Subject<IMouseEvent>;
|
|
19
|
-
static ccShowMentionsCountWarning: Subject<IMentionsCountWarning>;
|
|
20
|
-
static ccActivePopover: Subject<string>;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Interface for ui-related events
|
|
24
|
-
*/
|
|
25
|
-
export interface IOpenChat {
|
|
26
|
-
user?: CometChat.User;
|
|
27
|
-
group?: CometChat.Group;
|
|
28
|
-
}
|
|
29
|
-
export interface IShowOngoingCall {
|
|
30
|
-
child: any;
|
|
31
|
-
}
|
|
32
|
-
export interface IPanel {
|
|
33
|
-
child?: any;
|
|
34
|
-
configuration?: any;
|
|
35
|
-
message?: CometChat.BaseMessage;
|
|
36
|
-
position?: PanelAlignment;
|
|
37
|
-
}
|
|
38
|
-
export interface IModal {
|
|
39
|
-
child?: any;
|
|
40
|
-
}
|
|
41
|
-
export interface IActiveChatChanged {
|
|
42
|
-
user?: CometChat.User;
|
|
43
|
-
group?: CometChat.Group;
|
|
44
|
-
message?: CometChat.BaseMessage;
|
|
45
|
-
unreadMessageCount?: number;
|
|
46
|
-
}
|
|
47
|
-
export interface IDialog {
|
|
48
|
-
child: any;
|
|
49
|
-
confirmCallback: any;
|
|
50
|
-
}
|
|
51
|
-
export interface IMouseEvent {
|
|
52
|
-
event: Event;
|
|
53
|
-
source: MouseEventSource;
|
|
54
|
-
body?: {};
|
|
55
|
-
}
|
|
56
|
-
export interface IMentionsCountWarning {
|
|
57
|
-
showWarning: boolean;
|
|
58
|
-
id?: string;
|
|
59
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
|
-
/**
|
|
3
|
-
* Class to handle user-related events such as blocking and unblocking users
|
|
4
|
-
*/
|
|
5
|
-
export declare class CometChatUserEvents {
|
|
6
|
-
static ccUserBlocked: Subject<CometChat.User>;
|
|
7
|
-
static ccUserUnblocked: Subject<CometChat.User>;
|
|
8
|
-
/**
|
|
9
|
-
* Publishes a user event (like blocking/unblocking a user).
|
|
10
|
-
* This function will emit the event using the 'next()' method of the Subject.
|
|
11
|
-
*
|
|
12
|
-
* @param {Subject<CometChat.User>} event - The user event to be published (e.g., block or unblock).
|
|
13
|
-
* @param {any} item - The item (user) associated with the event.
|
|
14
|
-
*/
|
|
15
|
-
static publishEvent(event: Subject<CometChat.User>, item: any): void;
|
|
16
|
-
}
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { CometChatTextFormatter } from "../CometChatTextFormatter";
|
|
2
|
-
import { MentionsTargetElement, MentionsVisibility } from "../../../Enums/Enums";
|
|
3
|
-
/**
|
|
4
|
-
* Class that handles the text formatting for mentions in CometChat.
|
|
5
|
-
* CometChatMentionsFormatter is a child class of CometChatTextFormatter.
|
|
6
|
-
* It extends the functionality of text formatting to specifically handle user mentions
|
|
7
|
-
* in the text, it keeps track of the mentions in the text, format them for display and
|
|
8
|
-
* other functionalities.
|
|
9
|
-
* It is used in CometChatMessageComposer component and extension decorators like link preview, message translation, text moderator.
|
|
10
|
-
*
|
|
11
|
-
* @extends {CometChatTextFormatter}
|
|
12
|
-
*/
|
|
13
|
-
export declare class CometChatMentionsFormatter extends CometChatTextFormatter {
|
|
14
|
-
/**
|
|
15
|
-
* List of users for mentions.
|
|
16
|
-
*/
|
|
17
|
-
private cometChatUserGroupMembers;
|
|
18
|
-
/**
|
|
19
|
-
* Mapping of CSS classes for mentions.
|
|
20
|
-
*/
|
|
21
|
-
private mentionsCssClassMapping;
|
|
22
|
-
/**
|
|
23
|
-
* Specifies the visibility of mentions.
|
|
24
|
-
*/
|
|
25
|
-
private visibleIn;
|
|
26
|
-
/**
|
|
27
|
-
* Regular expression for validating search input.
|
|
28
|
-
*
|
|
29
|
-
* The search input is considered valid if it meets all of the following conditions:
|
|
30
|
-
* - It starts with an "@" symbol.
|
|
31
|
-
* - After the "@" symbol, it can optionally contain alphanumeric characters or periods.
|
|
32
|
-
* - If there are spaces, they should not be immediately after the "@" symbol.
|
|
33
|
-
* - After a space, it can optionally contain alphanumeric characters or periods.
|
|
34
|
-
*
|
|
35
|
-
* If the search input does not meet these conditions, the regular expression match will fail, indicating invalid input.
|
|
36
|
-
*
|
|
37
|
-
* @type {RegExp}
|
|
38
|
-
* @private
|
|
39
|
-
*/
|
|
40
|
-
private invalidCharactersRegexForSearch;
|
|
41
|
-
/**
|
|
42
|
-
* Count of mentions in the text.
|
|
43
|
-
*/
|
|
44
|
-
private mentionsCount;
|
|
45
|
-
/**
|
|
46
|
-
* Map of mentions, linking user ids with their names.
|
|
47
|
-
*/
|
|
48
|
-
private mentionsMap?;
|
|
49
|
-
/**
|
|
50
|
-
* Observer for observing changes to the text.
|
|
51
|
-
*/
|
|
52
|
-
observer: MutationObserver;
|
|
53
|
-
/**
|
|
54
|
-
* Callback function for when a match is found by the regex used for search.
|
|
55
|
-
*/
|
|
56
|
-
keyUpCallBack: Function;
|
|
57
|
-
private warningDisplayed;
|
|
58
|
-
private allowMultipleSpaces;
|
|
59
|
-
private mouseOverEventDispatched;
|
|
60
|
-
constructor();
|
|
61
|
-
/**
|
|
62
|
-
* Observes changes in targetNode.
|
|
63
|
-
*
|
|
64
|
-
* @param {HTMLElement} targetNode - The HTML element to observe for changes.
|
|
65
|
-
*/
|
|
66
|
-
observeChange(targetNode: HTMLElement): void;
|
|
67
|
-
/**
|
|
68
|
-
* Retrieves the count of mentions.
|
|
69
|
-
*
|
|
70
|
-
* @returns {number} - The count of mentions.
|
|
71
|
-
*/
|
|
72
|
-
getMentionsCount(): number;
|
|
73
|
-
/**
|
|
74
|
-
* Sets the count of mentions.
|
|
75
|
-
*
|
|
76
|
-
* @param {number} mentionsCount - The count of mentions to be set.
|
|
77
|
-
*/
|
|
78
|
-
setMentionsCount(mentionsCount: number): void;
|
|
79
|
-
/**
|
|
80
|
-
* Set Regex for Checking Invalid Characters in Search Term
|
|
81
|
-
* @param pattern
|
|
82
|
-
*/
|
|
83
|
-
setInvalidCharactersRegexForSearch(pattern: RegExp): void;
|
|
84
|
-
/**
|
|
85
|
-
* Sets the current caret position and selection range.
|
|
86
|
-
*
|
|
87
|
-
* @param {Selection} currentCaretPosition - The current caret position.
|
|
88
|
-
* @param {Range} currentRange - The current selection range.
|
|
89
|
-
*/
|
|
90
|
-
setCaretPositionAndRange(currentCaretPosition: Selection, currentRange: Range): void;
|
|
91
|
-
/**
|
|
92
|
-
* Sets the reference to the input element.
|
|
93
|
-
*
|
|
94
|
-
* @param {HTMLElement} inputElementReference - The reference to the input element.
|
|
95
|
-
*/
|
|
96
|
-
setInputElementReference(inputElementReference: HTMLElement): void;
|
|
97
|
-
/**
|
|
98
|
-
* Sets the regex pattern for matching text.
|
|
99
|
-
*
|
|
100
|
-
* @param {Array<RegExp>} regexPatterns - The array of regex patterns.
|
|
101
|
-
*/
|
|
102
|
-
setRegexPattern(regexPatterns: Array<RegExp>): void;
|
|
103
|
-
/**
|
|
104
|
-
* Retrieves the CometChatUserGroupMembers.
|
|
105
|
-
*
|
|
106
|
-
* @returns {Array<CometChatUserGroupMembers>} - The current CometChatUserGroupMembers.
|
|
107
|
-
*/
|
|
108
|
-
getCometChatUserGroupMembers(): (import("@cometchat/chat-sdk-javascript").User | import("@cometchat/chat-sdk-javascript").GroupMember)[];
|
|
109
|
-
/**
|
|
110
|
-
* Sets the CometChatUserGroupMembers.
|
|
111
|
-
*
|
|
112
|
-
* @param {Array<CometChatUserGroupMembers>} CometChatUserGroupMembers - The CometChatUserGroupMembers to be set.
|
|
113
|
-
*/
|
|
114
|
-
setCometChatUserGroupMembers(CometChatUserGroupMembers: Array<CometChat.User | CometChat.GroupMember>): void;
|
|
115
|
-
resetCometChatUserGroupMembers(): void;
|
|
116
|
-
/**
|
|
117
|
-
* Sets the callback function for handling key down events.
|
|
118
|
-
*
|
|
119
|
-
* @param {Function} keyUpCallBack - The callback function for handling key up events.
|
|
120
|
-
*/
|
|
121
|
-
setKeyUpCallBack(keyUpCallBack: Function): void;
|
|
122
|
-
/**
|
|
123
|
-
* Sets the keydown callback function.
|
|
124
|
-
* @param {Function} keyDownCallBack - The keydown callback function.
|
|
125
|
-
*/
|
|
126
|
-
setKeyDownCallBack(keyDownCallBack: Function): void;
|
|
127
|
-
getAllowMultipleSpaces(): boolean;
|
|
128
|
-
setAllowMultipleSpaces(allowMultipleSpaces: boolean): void;
|
|
129
|
-
cleanup(): void;
|
|
130
|
-
/**
|
|
131
|
-
* This will be called by composer before sending the message. This can be used to set metadata, tags on message
|
|
132
|
-
* @param {CometChat.BaseMessage} message
|
|
133
|
-
* @return {CometChat.BaseMessage} - message with metadata added
|
|
134
|
-
*/
|
|
135
|
-
formatMessageForSending(message: CometChat.BaseMessage): CometChat.BaseMessage;
|
|
136
|
-
reset(): void;
|
|
137
|
-
stopTracking(): void;
|
|
138
|
-
/**
|
|
139
|
-
* Formats the input text if provided, otherwise edits the text at the cursor position.
|
|
140
|
-
* @param {string|null} inputText - The input text to be formatted.
|
|
141
|
-
* @returns {string|void} - The formatted input text, or void if inputText is not provided.
|
|
142
|
-
*/
|
|
143
|
-
getFormattedText(inputText: string | null, params?: {
|
|
144
|
-
mentionsTargetElement: MentionsTargetElement;
|
|
145
|
-
}): string | void;
|
|
146
|
-
/**
|
|
147
|
-
* This function adds the mention span to the input text.
|
|
148
|
-
* @param {string} inputText - The input text where the span needs to be added.
|
|
149
|
-
* @returns {string} - The modified input text.
|
|
150
|
-
*/
|
|
151
|
-
protected addMentionsSpan(inputText: string): string;
|
|
152
|
-
/**
|
|
153
|
-
* Registers event listeners for click, mouseover, mouseout on the element
|
|
154
|
-
* @param {HTMLElement} element - The element on which the events need to be registered
|
|
155
|
-
* @param {DOMTokenList} domTokenList - The classes to be added
|
|
156
|
-
* @return {HTMLElement} - The element with the registered event listeners
|
|
157
|
-
*/
|
|
158
|
-
registerEventListeners(element: HTMLElement, domTokenList: DOMTokenList): HTMLElement;
|
|
159
|
-
/**
|
|
160
|
-
* Replaces mentions which are span tags with corresponding user UIDs
|
|
161
|
-
*
|
|
162
|
-
* @param {string | null | undefined} inputText - The text in which the mentions need to be replaced
|
|
163
|
-
* @return {string} - The text after replacing the mentions with uids
|
|
164
|
-
*/
|
|
165
|
-
protected replaceMentionsSpanWithUid(inputText: string | null | undefined): string;
|
|
166
|
-
/**
|
|
167
|
-
* Handles the keydown events, updating the mention state as necessary
|
|
168
|
-
*
|
|
169
|
-
* @param {KeyboardEvent} event - The keydown event
|
|
170
|
-
*/
|
|
171
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
172
|
-
/**
|
|
173
|
-
* Validates the text input based on the invalidCharactersRegexForSearch regular expression.
|
|
174
|
-
*
|
|
175
|
-
* @param {string | null} text - The text to validate. If null, the function will return null.
|
|
176
|
-
* @returns {string | null} - Returns the original text if valid, otherwise returns null.
|
|
177
|
-
*/
|
|
178
|
-
validateText(text: string | null): string | null;
|
|
179
|
-
/**
|
|
180
|
-
* Handles the keyup events, updating the mention state as necessary
|
|
181
|
-
*
|
|
182
|
-
* @param {KeyboardEvent} event - The keydown event
|
|
183
|
-
*/
|
|
184
|
-
onKeyUp(event: KeyboardEvent): null | undefined;
|
|
185
|
-
/**
|
|
186
|
-
* Adds the given HTML at the caret position.
|
|
187
|
-
*
|
|
188
|
-
* @param {string} newHtml - The HTML to be added.
|
|
189
|
-
* @param {Selection} currentCaretPosition - The current caret position
|
|
190
|
-
* @param {Range} currentRange - The current range
|
|
191
|
-
* @returns {void}
|
|
192
|
-
*/
|
|
193
|
-
protected addAtCaretPosition(newHtml: string, currentCaretPosition: Selection, currentRange: Range): void;
|
|
194
|
-
/**
|
|
195
|
-
* Matches the regex with the given inputText and replaces the matched text with respective spans
|
|
196
|
-
*
|
|
197
|
-
* @param {string | null} inputText - The text in which the regex patterns needs to be matched
|
|
198
|
-
* @return {string} - The text after replacing the matched text with spans
|
|
199
|
-
*/
|
|
200
|
-
onRegexMatch(inputText?: string | null): string;
|
|
201
|
-
/**
|
|
202
|
-
* Retrieves the original text after replacing mentions span with UIDs
|
|
203
|
-
*
|
|
204
|
-
* @param {string | null | undefined} inputText - The input text to be formatted.
|
|
205
|
-
* @returns {string} The original text after replacing mentions span with UIDs
|
|
206
|
-
*/
|
|
207
|
-
getOriginalText(inputText: string | null | undefined): string;
|
|
208
|
-
setVisibleIn(visibleIn: MentionsVisibility): void;
|
|
209
|
-
getVisibleIn(): MentionsVisibility;
|
|
210
|
-
}
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
import { MentionsTargetElement, MessageBubbleAlignment } from "../../Enums/Enums";
|
|
2
|
-
import { ComposerId } from "../../utils/MessagesDataSource";
|
|
3
|
-
/**
|
|
4
|
-
* Abstract class that provides methods for formatting text in CometChat.
|
|
5
|
-
* It is used in CometChatMessageComposer, CometChatConversations, CometChatMessageList components and extension decorators.
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class CometChatTextFormatter {
|
|
8
|
-
/**
|
|
9
|
-
* An ID for tracking the timeout.
|
|
10
|
-
*/
|
|
11
|
-
protected timeoutID?: number;
|
|
12
|
-
/**
|
|
13
|
-
* A flag to start tracking once a specific keyboard event occurs.
|
|
14
|
-
*/
|
|
15
|
-
protected startTracking: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Current position/type of the text selection or cursor in the text input field.
|
|
18
|
-
*/
|
|
19
|
-
protected currentCaretPosition?: Selection;
|
|
20
|
-
/**
|
|
21
|
-
* Represents the text range that the user has selected or the cursor position in the text input field.
|
|
22
|
-
*/
|
|
23
|
-
protected currentRange?: Range;
|
|
24
|
-
/**
|
|
25
|
-
* Reference to the text input field DOM element.
|
|
26
|
-
*/
|
|
27
|
-
protected inputElementReference?: HTMLElement;
|
|
28
|
-
/**
|
|
29
|
-
* The regex patterns to find specific text pattern in the user input text.
|
|
30
|
-
*/
|
|
31
|
-
protected regexPatterns: RegExp[];
|
|
32
|
-
/**
|
|
33
|
-
* The regex patterns to replace text formatting in the user input text.
|
|
34
|
-
*/
|
|
35
|
-
protected regexToReplaceFormatting: RegExp[];
|
|
36
|
-
/**
|
|
37
|
-
* Mapping of CSS classes for styling the text.
|
|
38
|
-
*/
|
|
39
|
-
protected cssClassMapping: Array<string>;
|
|
40
|
-
/**
|
|
41
|
-
* The character to track once typed in the text input field.
|
|
42
|
-
*/
|
|
43
|
-
protected trackCharacter: string;
|
|
44
|
-
/**
|
|
45
|
-
* Callback function to be triggered on the 'keyup' event.
|
|
46
|
-
*/
|
|
47
|
-
protected keyUpCallBack: Function;
|
|
48
|
-
/**
|
|
49
|
-
* Callback function to be triggered on the 'keydown' event.
|
|
50
|
-
*/
|
|
51
|
-
protected keyDownCallBack: Function;
|
|
52
|
-
protected classes: string[];
|
|
53
|
-
/**
|
|
54
|
-
* Function reference to trigger a re-render of the component.
|
|
55
|
-
*/
|
|
56
|
-
reRender: Function;
|
|
57
|
-
messageBubbleAlignment: MessageBubbleAlignment;
|
|
58
|
-
/**
|
|
59
|
-
* The message object in context.
|
|
60
|
-
*/
|
|
61
|
-
protected messageObject: CometChat.BaseMessage;
|
|
62
|
-
user?: CometChat.User;
|
|
63
|
-
group?: CometChat.Group;
|
|
64
|
-
composerId?: ComposerId;
|
|
65
|
-
/**
|
|
66
|
-
* The user who is currently logged in.
|
|
67
|
-
*/
|
|
68
|
-
protected loggedInUser?: CometChat.User | null;
|
|
69
|
-
protected id?: string;
|
|
70
|
-
protected textStyle: {
|
|
71
|
-
[key: string]: string;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Sets the current caret position and selection range.
|
|
75
|
-
*
|
|
76
|
-
* @param {Selection} currentCaretPosition - The current caret position.
|
|
77
|
-
* @param {Range} currentRange - The current selection range.
|
|
78
|
-
*/
|
|
79
|
-
setCaretPositionAndRange(currentCaretPosition: Selection, currentRange: Range): void;
|
|
80
|
-
/**
|
|
81
|
-
* Set css class to be applied on format spans
|
|
82
|
-
*/
|
|
83
|
-
setClasses(classes: string[]): void;
|
|
84
|
-
/**
|
|
85
|
-
* Sets the regex patterns to match.
|
|
86
|
-
* @param regexPatterns - Array of regex patterns.
|
|
87
|
-
*/
|
|
88
|
-
setRegexPatterns(regexPatterns: Array<RegExp>): void;
|
|
89
|
-
/**
|
|
90
|
-
* Gets the regex patterns.
|
|
91
|
-
*/
|
|
92
|
-
getRegexPatterns(): RegExp[];
|
|
93
|
-
/**
|
|
94
|
-
* Sets the regex patterns to replace formatting.
|
|
95
|
-
* @param regexToReplaceFormatting - Array of regex patterns.
|
|
96
|
-
*/
|
|
97
|
-
setRegexToReplaceFormatting(regexToReplaceFormatting: Array<RegExp>): void;
|
|
98
|
-
/**
|
|
99
|
-
* Sets the tracking character.
|
|
100
|
-
* @param trackCharacter - The character to track.
|
|
101
|
-
*/
|
|
102
|
-
setTrackingCharacter(trackCharacter: string): void;
|
|
103
|
-
/**
|
|
104
|
-
* Sets the input element reference.
|
|
105
|
-
* @param inputElementReference - The reference to the input element.
|
|
106
|
-
*/
|
|
107
|
-
setInputElementReference(inputElementReference: HTMLElement): void;
|
|
108
|
-
/**
|
|
109
|
-
* Sets the re-render function.
|
|
110
|
-
* @param reRender - The function to call for re-rendering.
|
|
111
|
-
*/
|
|
112
|
-
setReRender(reRender: Function): void;
|
|
113
|
-
/**
|
|
114
|
-
* Retrieves the keydown callback function.
|
|
115
|
-
* @returns {Function} The keydown callback function.
|
|
116
|
-
*/
|
|
117
|
-
getKeyUpCallBack(): Function;
|
|
118
|
-
/**
|
|
119
|
-
* Sets the keydown callback function.
|
|
120
|
-
* @param {Function} keyUpCallBack - The callback function for handling key down events.
|
|
121
|
-
*/
|
|
122
|
-
setKeyUpCallBack(keyUpCallBack: Function): void;
|
|
123
|
-
/**
|
|
124
|
-
* Retrieves the keydown callback function.
|
|
125
|
-
* @returns {Function} The keydown callback function.
|
|
126
|
-
*/
|
|
127
|
-
getKeyDownCallBack(): Function;
|
|
128
|
-
/**
|
|
129
|
-
* Sets the keydown callback function.
|
|
130
|
-
* @param {Function} keyDownCallBack - The keydown callback function.
|
|
131
|
-
*/
|
|
132
|
-
setKeyDownCallBack(keyDownCallBack: Function): void;
|
|
133
|
-
/**
|
|
134
|
-
* Retrieves the currently logged in user.
|
|
135
|
-
* @returns The currently logged user.
|
|
136
|
-
*/
|
|
137
|
-
getLoggedInUser(): import("@cometchat/chat-sdk-javascript").User | null | undefined;
|
|
138
|
-
/**
|
|
139
|
-
* Sets the currently logged in user.
|
|
140
|
-
* @param {CometChat.User} loggedInUser - The user to set as currently logged in.
|
|
141
|
-
*/
|
|
142
|
-
setLoggedInUser(loggedInUser: CometChat.User): void;
|
|
143
|
-
/**
|
|
144
|
-
* Sets the mapping of CSS classes.
|
|
145
|
-
* @param cssClassesNames - Array of CSS class names.
|
|
146
|
-
*/
|
|
147
|
-
setCssClassMapping(cssClassesNames: string[]): void;
|
|
148
|
-
/**
|
|
149
|
-
* Sets the CSS style.
|
|
150
|
-
* @param {Object} styleObject - The CSS style object.
|
|
151
|
-
* @param {string} styleObject.formattedTextColor - The color to use for formatted text.
|
|
152
|
-
*/
|
|
153
|
-
setStyle(styleObject: {
|
|
154
|
-
formattedTextColor: string;
|
|
155
|
-
formattedTextFont: string;
|
|
156
|
-
}): void;
|
|
157
|
-
getStyle(): {
|
|
158
|
-
[key: string]: string;
|
|
159
|
-
};
|
|
160
|
-
setId(id: string): void;
|
|
161
|
-
getId(): string | undefined;
|
|
162
|
-
cleanup(): void;
|
|
163
|
-
/**
|
|
164
|
-
* If the input text is provided, it returns the formatted text. Otherwise, it edits the text using the current cursor position.
|
|
165
|
-
* @param {string|null} inputText - The text to format.
|
|
166
|
-
* @return {string|void} - The original or formatted input text, or void if editing was done based on cursor position.
|
|
167
|
-
*/
|
|
168
|
-
getFormattedText(inputText: string | null, params: {
|
|
169
|
-
mentionsTargetElement: MentionsTargetElement;
|
|
170
|
-
}): string | void;
|
|
171
|
-
/**
|
|
172
|
-
* Sets the message object.
|
|
173
|
-
*
|
|
174
|
-
* @param {CometChat.BaseMessage} messageObject - The message object to be set.
|
|
175
|
-
*/
|
|
176
|
-
setMessage(messageObject: CometChat.BaseMessage): void;
|
|
177
|
-
/**
|
|
178
|
-
* Retrieves the message object.
|
|
179
|
-
*
|
|
180
|
-
* @returns {CometChat.BaseMessage} - The current message object.
|
|
181
|
-
*/
|
|
182
|
-
getMessage(): import("@cometchat/chat-sdk-javascript").BaseMessage;
|
|
183
|
-
setMessageBubbleAlignment(messageBubbleAlignment: MessageBubbleAlignment): void;
|
|
184
|
-
getMessageBubbleAlignment(): MessageBubbleAlignment;
|
|
185
|
-
setComposerConfig(user?: CometChat.User, group?: CometChat.Group, composerId?: ComposerId): void;
|
|
186
|
-
getComposerConfig(): {
|
|
187
|
-
user: import("@cometchat/chat-sdk-javascript").User | undefined;
|
|
188
|
-
group: import("@cometchat/chat-sdk-javascript").Group | undefined;
|
|
189
|
-
composerId: ComposerId | undefined;
|
|
190
|
-
};
|
|
191
|
-
/**
|
|
192
|
-
* Formats the text on keyboard key down.
|
|
193
|
-
* @param {string|void} inputText - The text to format.
|
|
194
|
-
*/
|
|
195
|
-
protected formatTextOnKeyUp: (inputText: string | void) => void;
|
|
196
|
-
debouncedFormatTextOnKeyUp: (...args: Object[]) => void;
|
|
197
|
-
/**
|
|
198
|
-
* Retrieves the preceding text from the given caret position.
|
|
199
|
-
* @param {Selection} currentCaretPosition - The current caret position.
|
|
200
|
-
* @param {Range} currentRange - The current selection range.
|
|
201
|
-
* @return {string|null} - The preceding text or null.
|
|
202
|
-
*/
|
|
203
|
-
protected getPrecedingText(currentCaretPosition: Selection | undefined, currentRange: Range | undefined): string | null;
|
|
204
|
-
/**
|
|
205
|
-
* Returns true if previous character is previousCharacterToCheck or if there is just one character
|
|
206
|
-
* @param {string} previousCharacterToCheck
|
|
207
|
-
* @param {Range} currentRange
|
|
208
|
-
* @returns {boolean}
|
|
209
|
-
*/
|
|
210
|
-
protected checkPreviousCharacterUsingRange(previousCharacterToCheck?: string, currentRange?: Range): boolean;
|
|
211
|
-
/**
|
|
212
|
-
* Applies regex match on the input text and replaces matched instances.
|
|
213
|
-
* @param {string|null} inputText - The text to apply regex match.
|
|
214
|
-
* @return {string} - The replaced text.
|
|
215
|
-
*/
|
|
216
|
-
protected onRegexMatch(inputText?: string | null): string;
|
|
217
|
-
/**
|
|
218
|
-
* Debounce function.
|
|
219
|
-
* @param {Function} func - The function to debounce.
|
|
220
|
-
* @param {number} wait - The amount of delay before function invocation.
|
|
221
|
-
* @return {Function} - The debounced function.
|
|
222
|
-
*/
|
|
223
|
-
debounce(func: Function, wait: number): (...args: Object[]) => void;
|
|
224
|
-
/**
|
|
225
|
-
* Handles 'keydown' events.
|
|
226
|
-
* @param {KeyboardEvent} event - The keyboard event.
|
|
227
|
-
*/
|
|
228
|
-
onKeyUp(event: KeyboardEvent): void;
|
|
229
|
-
/**
|
|
230
|
-
* Handles 'keydown' events.
|
|
231
|
-
* @param {KeyboardEvent} event - The keyboard event.
|
|
232
|
-
*/
|
|
233
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
234
|
-
/**
|
|
235
|
-
* Adds HTML at the current caret position.
|
|
236
|
-
* @param {string} newHtml - The HTML to insert.
|
|
237
|
-
* @param {Selection} currentCaretPosition - The current caret position.
|
|
238
|
-
* @param {Range} currentRange - The current selection range.
|
|
239
|
-
*/
|
|
240
|
-
protected addAtCaretPosition(newHtml: string, currentCaretPosition: Selection, currentRange: Range): void;
|
|
241
|
-
/**
|
|
242
|
-
* Returns the original unformatted text from the input text.
|
|
243
|
-
* @param {string|null|undefined} inputText - The input text to get original text from.
|
|
244
|
-
* @return {string} - The original text.
|
|
245
|
-
*/
|
|
246
|
-
getOriginalText(inputText: string | null | undefined): string;
|
|
247
|
-
/**
|
|
248
|
-
* To inform formatter to stop keeping a track of characters
|
|
249
|
-
*/
|
|
250
|
-
stopTracking(): void;
|
|
251
|
-
/**
|
|
252
|
-
* To reset the formatter properties
|
|
253
|
-
*/
|
|
254
|
-
reset(): void;
|
|
255
|
-
/**
|
|
256
|
-
* This will be called by composer before sending the message. This can be used to set metadata, tags on message
|
|
257
|
-
* @param {CometChat.BaseMessage} message
|
|
258
|
-
* @return {CometChat.BaseMessage} - message with metadata added
|
|
259
|
-
*/
|
|
260
|
-
formatMessageForSending(message: CometChat.BaseMessage): CometChat.BaseMessage;
|
|
261
|
-
/**
|
|
262
|
-
* Registers event listeners on the given element.
|
|
263
|
-
* @param {Element} span - The HTML element to register event listeners.
|
|
264
|
-
* @param {DOMTokenList} classList - The classList of the element.
|
|
265
|
-
* @return {Element} - The element with event listeners registered.
|
|
266
|
-
*/
|
|
267
|
-
registerEventListeners(span: Element, classList: DOMTokenList): Element;
|
|
268
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CometChatTextFormatter } from "../CometChatTextFormatter";
|
|
2
|
-
/**
|
|
3
|
-
* Class that handles the text formatting for URLs in CometChat.
|
|
4
|
-
* CometChatUrlsFormatter is a child class of CometChatTextFormatter.
|
|
5
|
-
* It extends the functionality of text formatting to specifically handle URLs.
|
|
6
|
-
* It is used in extension decorators like link preview, message translation, and dataSource utils.
|
|
7
|
-
*/
|
|
8
|
-
export declare class CometChatUrlsFormatter extends CometChatTextFormatter {
|
|
9
|
-
constructor(regexPatterns: Array<RegExp>);
|
|
10
|
-
protected onRegexMatch(inputText?: string | null): string;
|
|
11
|
-
registerEventListeners(element: HTMLElement, classList: DOMTokenList): HTMLElement;
|
|
12
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { CometChatTextFormatter } from './CometChatFormatters/CometChatTextFormatter';
|
|
2
|
-
export { CometChatUrlsFormatter } from './CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter';
|
|
3
|
-
export { CometChatMentionsFormatter } from './CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter';
|