@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,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration class for Collaborative Whiteboard.
|
|
3
|
-
* This class provides methods to retrieve styles and URLs associated with the whiteboard component.
|
|
4
|
-
*/
|
|
5
|
-
export declare class CollaborativeWhiteboardConfiguration {
|
|
6
|
-
/**
|
|
7
|
-
* The URL of the icon to be used for the whiteboard.
|
|
8
|
-
* @type {string}
|
|
9
|
-
*/
|
|
10
|
-
private iconURL;
|
|
11
|
-
/**
|
|
12
|
-
* The URL of the icon to be used for the whiteboard option.
|
|
13
|
-
* @type {string}
|
|
14
|
-
*/
|
|
15
|
-
private optionIconURL;
|
|
16
|
-
/**
|
|
17
|
-
* Creates an instance of CollaborativeWhiteboardConfiguration.
|
|
18
|
-
*/
|
|
19
|
-
constructor(configuration: {
|
|
20
|
-
iconURL?: string;
|
|
21
|
-
optionIconURL?: string;
|
|
22
|
-
});
|
|
23
|
-
/**
|
|
24
|
-
* Retrieves the URL of the icon used for the whiteboard.
|
|
25
|
-
*
|
|
26
|
-
* @returns {string} The URL of the icon.
|
|
27
|
-
*/
|
|
28
|
-
getIconURL(): string;
|
|
29
|
-
/**
|
|
30
|
-
* Retrieves the URL of the icon used for the whiteboard option.
|
|
31
|
-
*
|
|
32
|
-
* @returns {string} The URL of the option icon.
|
|
33
|
-
*/
|
|
34
|
-
getOptionIconURL(): string;
|
|
35
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Constants used in the Collaborative Whiteboard integration.
|
|
3
|
-
* This object contains string constants for API endpoints, metadata keys, and other relevant identifiers.
|
|
4
|
-
*/
|
|
5
|
-
export declare const CollaborativeWhiteboardConstants: Readonly<{
|
|
6
|
-
v1_create: "v1/create";
|
|
7
|
-
extension_whiteboard: "extension_whiteboard";
|
|
8
|
-
whiteboard: "whiteboard";
|
|
9
|
-
extensions: "extensions";
|
|
10
|
-
metadata: "metadata";
|
|
11
|
-
injected: "@injected";
|
|
12
|
-
post: "POST";
|
|
13
|
-
}>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ExtensionsDataSource } from "../ExtensionsDataSource";
|
|
2
|
-
import { CollaborativeWhiteboardConfiguration } from "./CollaborativeWhiteboardConfiguration";
|
|
3
|
-
/**
|
|
4
|
-
* Class representing a Collaborative Whiteboard Extension.
|
|
5
|
-
* This class extends the `ExtensionsDataSource` to add support for collaborative whiteboard functionality.
|
|
6
|
-
*/
|
|
7
|
-
export declare class CollaborativeWhiteboardExtension extends ExtensionsDataSource {
|
|
8
|
-
/**
|
|
9
|
-
* Configuration for the collaborative whiteboard extension.
|
|
10
|
-
* @type {CollaborativeWhiteboardConfiguration | undefined}
|
|
11
|
-
*/
|
|
12
|
-
private configuration?;
|
|
13
|
-
/**
|
|
14
|
-
* Creates an instance of the CollaborativeWhiteboardExtension.
|
|
15
|
-
* @param {CollaborativeWhiteboardConfiguration} [configuration] - The configuration for the whiteboard extension.
|
|
16
|
-
*/
|
|
17
|
-
constructor(configuration?: CollaborativeWhiteboardConfiguration);
|
|
18
|
-
/**
|
|
19
|
-
* Adds the collaborative whiteboard extension to the chat configurator.
|
|
20
|
-
* This method enables the extension by passing a new `CollaborativeWhiteBoardExtensionDecorator`
|
|
21
|
-
* instance to the `ChatConfigurator`.
|
|
22
|
-
*/
|
|
23
|
-
addExtension(): void;
|
|
24
|
-
/**
|
|
25
|
-
* Gets the unique identifier for the whiteboard extension.
|
|
26
|
-
* @returns {string} The extension ID for the whiteboard.
|
|
27
|
-
*/
|
|
28
|
-
getExtensionId(): string;
|
|
29
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { DataSource } from "../../../utils/DataSource";
|
|
2
|
-
import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
|
|
3
|
-
import { CollaborativeWhiteboardConfiguration } from "./CollaborativeWhiteboardConfiguration";
|
|
4
|
-
import { CometChatMessageComposerAction, CometChatMessageTemplate } from "../../../modals";
|
|
5
|
-
/**
|
|
6
|
-
* Decorator class for extending functionality related to collaborative whiteboard.
|
|
7
|
-
* @extends DataSourceDecorator
|
|
8
|
-
*/
|
|
9
|
-
export declare class CollaborativeWhiteBoardExtensionDecorator extends DataSourceDecorator {
|
|
10
|
-
/**
|
|
11
|
-
* Configuration for the collaborative whiteboard extension.
|
|
12
|
-
* @type {CollaborativeWhiteboardConfiguration | undefined}
|
|
13
|
-
*/
|
|
14
|
-
configuration?: CollaborativeWhiteboardConfiguration;
|
|
15
|
-
/**
|
|
16
|
-
* Data source used for fetching and managing data.
|
|
17
|
-
* @type {DataSource}
|
|
18
|
-
*/
|
|
19
|
-
newDataSource: DataSource;
|
|
20
|
-
/**
|
|
21
|
-
* The user who is currently logged in.
|
|
22
|
-
*/
|
|
23
|
-
protected loggedInUser?: CometChat.User | null | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Creates an instance of the CollaborativeWhiteBoardExtensionDecorator.
|
|
26
|
-
* @param {DataSource} dataSource - The data source to be decorated.
|
|
27
|
-
* @param {CollaborativeWhiteboardConfiguration} [configuration] - The configuration for the whiteboard extension.
|
|
28
|
-
*/
|
|
29
|
-
constructor(dataSource: DataSource, configuration?: CollaborativeWhiteboardConfiguration);
|
|
30
|
-
/**
|
|
31
|
-
* Gets all message types including the whiteboard extension type.
|
|
32
|
-
* @returns {string[]} Array of message types.
|
|
33
|
-
*/
|
|
34
|
-
getAllMessageTypes(): string[];
|
|
35
|
-
getId(): string;
|
|
36
|
-
/**
|
|
37
|
-
* Gets the unique identifier for the collaborative whiteboard extension.
|
|
38
|
-
* @returns {string} The extension ID.
|
|
39
|
-
*/
|
|
40
|
-
getAllMessageCategories(): string[];
|
|
41
|
-
/**
|
|
42
|
-
* Checks if a message template of a given type exists.
|
|
43
|
-
* @param {CometChatMessageTemplate[]} template - Array of message templates.
|
|
44
|
-
* @param {string} type - Type of the template to check.
|
|
45
|
-
* @returns {boolean} True if the template exists, otherwise false.
|
|
46
|
-
*/
|
|
47
|
-
checkIfTemplateExist(template: CometChatMessageTemplate[], type: string): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Gets all message templates, including the whiteboard template if not already present.
|
|
50
|
-
* @param {any} [additionalConfigurations] - Additional configurations.
|
|
51
|
-
* @returns {CometChatMessageTemplate[]} Array of message templates.
|
|
52
|
-
*/
|
|
53
|
-
getAllMessageTemplates(additionalConfigurations?: any): CometChatMessageTemplate[];
|
|
54
|
-
/**
|
|
55
|
-
* Creates the whiteboard message template.
|
|
56
|
-
* @returns {CometChatMessageTemplate} The whiteboard message template.
|
|
57
|
-
*/
|
|
58
|
-
getWhiteBoardTemplate(): CometChatMessageTemplate;
|
|
59
|
-
/**
|
|
60
|
-
* Generates the content view for the whiteboard message.
|
|
61
|
-
* @param {CometChat.CustomMessage} whiteboardMessage - The whiteboard message.
|
|
62
|
-
* @returns {JSX.Element} The content view for the whiteboard message.
|
|
63
|
-
*/
|
|
64
|
-
getWhiteboardContentView(whiteboardMessage: CometChat.CustomMessage): import("react/jsx-runtime").JSX.Element;
|
|
65
|
-
/**
|
|
66
|
-
* Opens the collaborative whiteboard document in a new fullscreen window.
|
|
67
|
-
* @param {string} whiteboardURL - The URL of the whiteboard document.
|
|
68
|
-
*/
|
|
69
|
-
launchCollaborativeWhiteboardDocument(whiteboardURL: string): void;
|
|
70
|
-
/**
|
|
71
|
-
* Retrieves the URL of the whiteboard document from the message data.
|
|
72
|
-
* @param {CometChat.CustomMessage} message - The message containing whiteboard data.
|
|
73
|
-
* @returns {string | undefined} The URL of the whiteboard document.
|
|
74
|
-
*/
|
|
75
|
-
getWhiteboardDocument(message: CometChat.CustomMessage): any;
|
|
76
|
-
/**
|
|
77
|
-
* Overrides the method to get attachment options for the message composer.
|
|
78
|
-
* Adds an option for a collaborative whiteboard if the parent message ID is not present.
|
|
79
|
-
*
|
|
80
|
-
* @param {any} id - The ID object containing user or group information.
|
|
81
|
-
* @returns {CometChatMessageComposerAction[]} An array of message composer actions.
|
|
82
|
-
*/
|
|
83
|
-
getAttachmentOptions(id: any): CometChatMessageComposerAction[];
|
|
84
|
-
/**
|
|
85
|
-
* Overrides the method to get the last message from a conversation.
|
|
86
|
-
* Checks if the last message is related to the collaborative whiteboard extension
|
|
87
|
-
* and returns a custom message if it matches.
|
|
88
|
-
* @param {CometChat.Conversation} conversation - The conversation object from which to get the last message.
|
|
89
|
-
* @param {CometChat.User} loggedInUser - The currently logged-in user.
|
|
90
|
-
* @param {any} additionalConfigurations - Additional configurations if any.
|
|
91
|
-
* @returns {string} A string representing the last conversation message.
|
|
92
|
-
*/
|
|
93
|
-
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: any): string;
|
|
94
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Abstract class representing a data source for extensions.
|
|
3
|
-
* Provides methods to enable and add extensions, and to get the extension ID.
|
|
4
|
-
*/
|
|
5
|
-
declare abstract class ExtensionsDataSource {
|
|
6
|
-
/**
|
|
7
|
-
* Abstract method to add an extension. Implementations must provide their own logic.
|
|
8
|
-
*
|
|
9
|
-
* @abstract
|
|
10
|
-
*/
|
|
11
|
-
abstract addExtension(): void;
|
|
12
|
-
/**
|
|
13
|
-
* Abstract method to get the unique identifier for the extension.
|
|
14
|
-
* Implementations must provide their own logic to return the extension ID.
|
|
15
|
-
*
|
|
16
|
-
* @abstract
|
|
17
|
-
* @returns {string} The unique identifier for the extension.
|
|
18
|
-
*/
|
|
19
|
-
abstract getExtensionId(): string;
|
|
20
|
-
/**
|
|
21
|
-
* Enables the extension if it is not already enabled.
|
|
22
|
-
* Checks if the extension is enabled using `CometChat.isExtensionEnabled()` and
|
|
23
|
-
* adds the extension if it is enabled.
|
|
24
|
-
*
|
|
25
|
-
* @returns {void}
|
|
26
|
-
*/
|
|
27
|
-
enable(): void;
|
|
28
|
-
}
|
|
29
|
-
export { ExtensionsDataSource };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Constants for extension IDs used in the application.
|
|
3
|
-
* This object holds unique identifiers for various extensions.
|
|
4
|
-
*
|
|
5
|
-
* @readonly
|
|
6
|
-
* @enum {string}
|
|
7
|
-
*/
|
|
8
|
-
export declare const ExtensionsId: Readonly<{
|
|
9
|
-
stickers: "stickers";
|
|
10
|
-
reactions: "reactions";
|
|
11
|
-
thumbnailGeneration: "thumbnail-generation";
|
|
12
|
-
linkPreview: "link-preview";
|
|
13
|
-
imageModeration: "image-moderation";
|
|
14
|
-
messageTranslation: "message-translation";
|
|
15
|
-
smartReply: "smart-reply";
|
|
16
|
-
xssFilter: "xss-filter";
|
|
17
|
-
dataMasking: "data-masking";
|
|
18
|
-
polls: "polls";
|
|
19
|
-
whiteboard: "whiteboard";
|
|
20
|
-
document: "document";
|
|
21
|
-
profanityFilter: "profanity-filter";
|
|
22
|
-
}>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface LinkPreviewProps {
|
|
3
|
-
/**
|
|
4
|
-
* URL of the link.
|
|
5
|
-
*/
|
|
6
|
-
URL?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Description of the link.
|
|
9
|
-
*/
|
|
10
|
-
description?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Title of the link.
|
|
13
|
-
*/
|
|
14
|
-
title?: string;
|
|
15
|
-
/**
|
|
16
|
-
* URL of the image to display.
|
|
17
|
-
*/
|
|
18
|
-
image?: string;
|
|
19
|
-
/**
|
|
20
|
-
* URL of the favicon to display.
|
|
21
|
-
*/
|
|
22
|
-
favIconURL?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Optional children to be displayed inside the link preview.
|
|
25
|
-
*/
|
|
26
|
-
children?: React.ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* Function to handle click events on the link.
|
|
29
|
-
*/
|
|
30
|
-
ccLinkClicked?: (url: string) => void;
|
|
31
|
-
/**
|
|
32
|
-
* boolean value to toggle styling for sender and receiver message
|
|
33
|
-
*/
|
|
34
|
-
isSentByMe?: boolean;
|
|
35
|
-
}
|
|
36
|
-
declare const LinkPreview: (props: LinkPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
export { LinkPreview };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A collection of constants used for managing and configuring link previews within the chat application.
|
|
3
|
-
* These constants are immutable and are primarily used for accessing metadata and injected data related to link previews.
|
|
4
|
-
*/
|
|
5
|
-
export declare const LinkPreviewConstants: Readonly<{
|
|
6
|
-
metadata: "metadata";
|
|
7
|
-
injected: "@injected";
|
|
8
|
-
extensions: "extensions";
|
|
9
|
-
link_preview: "link-preview";
|
|
10
|
-
links: "links";
|
|
11
|
-
}>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ExtensionsDataSource } from "../ExtensionsDataSource";
|
|
2
|
-
/**
|
|
3
|
-
* The `LinkPreviewExtension` class is responsible for enabling the link preview feature within the chat application.
|
|
4
|
-
* It extends the `ExtensionsDataSource` class and utilizes a configuration object to customize the behavior of the link preview extension.
|
|
5
|
-
*/
|
|
6
|
-
export declare class LinkPreviewExtension extends ExtensionsDataSource {
|
|
7
|
-
/**
|
|
8
|
-
* Creates an instance of the `LinkPreviewExtension` class.
|
|
9
|
-
*
|
|
10
|
-
* @param {LinkPreviewConfiguration} [configuration] - Optional configuration settings for the link preview extension.
|
|
11
|
-
*/
|
|
12
|
-
constructor();
|
|
13
|
-
/**
|
|
14
|
-
* Adds the link preview extension to the chat application by enabling it within the `ChatConfigurator`.
|
|
15
|
-
* This method overrides the base class method to provide specific implementation for the link preview extension.
|
|
16
|
-
*/
|
|
17
|
-
addExtension(): void;
|
|
18
|
-
/**
|
|
19
|
-
* Retrieves the unique identifier for the link preview extension.
|
|
20
|
-
*
|
|
21
|
-
* @returns {string} The unique identifier for the link preview extension.
|
|
22
|
-
*/
|
|
23
|
-
getExtensionId(): string;
|
|
24
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { DataSource } from "../../../utils/DataSource";
|
|
2
|
-
import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
|
|
3
|
-
import { MessageBubbleAlignment } from "../../../Enums/Enums";
|
|
4
|
-
/**
|
|
5
|
-
* The `LinkPreviewExtensionDecorator` class is responsible for adding link preview functionality
|
|
6
|
-
* to text messages within the chat. It decorates the data source with the ability to handle link previews.
|
|
7
|
-
*/
|
|
8
|
-
export declare class LinkPreviewExtensionDecorator extends DataSourceDecorator {
|
|
9
|
-
/**
|
|
10
|
-
* The data source that the decorator wraps, adding link preview capabilities.
|
|
11
|
-
* @type {DataSource}
|
|
12
|
-
*/
|
|
13
|
-
newDataSource: DataSource;
|
|
14
|
-
/**
|
|
15
|
-
* Creates an instance of the `LinkPreviewExtensionDecorator` class.
|
|
16
|
-
*
|
|
17
|
-
* @param {DataSource} dataSource - The data source that the decorator will wrap.
|
|
18
|
-
* @param {LinkPreviewConfiguration} [configuration] - Optional configuration settings for the link preview extension.
|
|
19
|
-
*/
|
|
20
|
-
constructor(dataSource: DataSource);
|
|
21
|
-
/**
|
|
22
|
-
* Returns the unique identifier for this decorator.
|
|
23
|
-
* @returns {string} The ID of the decorator.
|
|
24
|
-
*/
|
|
25
|
-
getId(): string;
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves the content view for a text message with potential link preview enhancements.
|
|
28
|
-
* @param {CometChat.TextMessage} message - The text message to be displayed.
|
|
29
|
-
* @param {MessageBubbleAlignment} alignment - The alignment of the message bubble.
|
|
30
|
-
* @param {any} [additionalConfigurations] - Additional configurations for formatting.
|
|
31
|
-
* @returns {JSX.Element} The JSX element representing the message content view.
|
|
32
|
-
*/
|
|
33
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): import("react/jsx-runtime").JSX.Element | Element;
|
|
34
|
-
/**
|
|
35
|
-
* Retrieves the style for the link preview wrapper.
|
|
36
|
-
* @returns {object} The style object for the link preview wrapper.
|
|
37
|
-
*/
|
|
38
|
-
getLinkPreviewWrapperStyle(): {
|
|
39
|
-
height: string;
|
|
40
|
-
width: string;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Opens the provided URL in a new browser tab.
|
|
44
|
-
* @param {string} url - The URL to open.
|
|
45
|
-
*/
|
|
46
|
-
openLink(url: string): void;
|
|
47
|
-
/**
|
|
48
|
-
* Extracts the link preview object from the message metadata, if available.
|
|
49
|
-
* @param {CometChat.TextMessage} message - The message object containing metadata.
|
|
50
|
-
* @returns {object|null} The link preview object if available, otherwise null.
|
|
51
|
-
*/
|
|
52
|
-
getLinkPreview(message: CometChat.TextMessage): any;
|
|
53
|
-
/**
|
|
54
|
-
* Retrieves a specific detail from the link preview object.
|
|
55
|
-
* @param {object} linkPreviewObject - The link preview object containing various details.
|
|
56
|
-
* @param {string} key - The key corresponding to the detail to retrieve.
|
|
57
|
-
* @returns {string} The detail value corresponding to the provided key.
|
|
58
|
-
*/
|
|
59
|
-
getLinkPreviewDetails(linkPreviewObject: any, key: string): string;
|
|
60
|
-
}
|
package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationBubble.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { MessageBubbleAlignment } from '../../../Enums/Enums';
|
|
3
|
-
import { CometChatTextFormatter } from '../../../formatters/CometChatFormatters/CometChatTextFormatter';
|
|
4
|
-
interface IMessageTranslationBubbleProps {
|
|
5
|
-
/**
|
|
6
|
-
* The text that has been translated.
|
|
7
|
-
*/
|
|
8
|
-
translatedText: string;
|
|
9
|
-
/**
|
|
10
|
-
* The alignment of the message bubble (left or right).
|
|
11
|
-
*/
|
|
12
|
-
alignment: MessageBubbleAlignment;
|
|
13
|
-
/**
|
|
14
|
-
* Optional help text to display below the translated text.
|
|
15
|
-
* Defaults to a localized message.
|
|
16
|
-
*/
|
|
17
|
-
helpText?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Optional array of text formatters to apply to the translated text.
|
|
20
|
-
*/
|
|
21
|
-
textFormatters?: Array<CometChatTextFormatter>;
|
|
22
|
-
/**
|
|
23
|
-
* Optional React children to render inside the bubble.
|
|
24
|
-
*/
|
|
25
|
-
children?: ReactNode;
|
|
26
|
-
isSentByMe?: boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Renders a message translation bubble that displays translated text with optional formatting and help text.
|
|
30
|
-
*
|
|
31
|
-
* @param {IMessageTranslationBubbleProps} props - The props for the component.
|
|
32
|
-
* @returns {JSX.Element | null} The rendered component or null if no translated text is provided.
|
|
33
|
-
*/
|
|
34
|
-
declare const MessageTranslationBubble: (props: IMessageTranslationBubbleProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
35
|
-
export { MessageTranslationBubble };
|
package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationConstants.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Contains constants used for message translation operations.
|
|
3
|
-
*/
|
|
4
|
-
export declare const MessageTranslationConstants: Readonly<{
|
|
5
|
-
message_translation: "message-translation";
|
|
6
|
-
v2_translate: "v2/translate";
|
|
7
|
-
translated_message: "translated_message";
|
|
8
|
-
extensions: "extensions";
|
|
9
|
-
metadata: "metadata";
|
|
10
|
-
injected: "@injected";
|
|
11
|
-
post: "POST";
|
|
12
|
-
}>;
|
package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationExtension.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ExtensionsDataSource } from "../ExtensionsDataSource";
|
|
2
|
-
/**
|
|
3
|
-
* Class for handling message translation extensions.
|
|
4
|
-
*
|
|
5
|
-
* @class MessageTranslationExtension
|
|
6
|
-
* @extends {ExtensionsDataSource}
|
|
7
|
-
*/
|
|
8
|
-
export declare class MessageTranslationExtension extends ExtensionsDataSource {
|
|
9
|
-
/**
|
|
10
|
-
* Creates an instance of MessageTranslationExtension.
|
|
11
|
-
*
|
|
12
|
-
* @param {MessageTranslationConfiguration} [configuration] - Optional configuration for message translation.
|
|
13
|
-
*/
|
|
14
|
-
constructor();
|
|
15
|
-
/**
|
|
16
|
-
* Adds the message translation extension by enabling the ChatConfigurator with
|
|
17
|
-
* a new MessageTranslationExtensionDecorator instance.
|
|
18
|
-
*
|
|
19
|
-
* @override
|
|
20
|
-
* @returns {void}
|
|
21
|
-
*/
|
|
22
|
-
addExtension(): void;
|
|
23
|
-
/**
|
|
24
|
-
* Retrieves the unique identifier for the message translation extension.
|
|
25
|
-
*
|
|
26
|
-
* @override
|
|
27
|
-
* @returns {string} The unique identifier for the message translation extension.
|
|
28
|
-
*/
|
|
29
|
-
getExtensionId(): string;
|
|
30
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { DataSource } from "../../../utils/DataSource";
|
|
2
|
-
import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
|
|
3
|
-
import { CometChatActionsIcon, CometChatActionsView } from "../../../modals";
|
|
4
|
-
import { MessageBubbleAlignment } from "../../../Enums/Enums";
|
|
5
|
-
/**
|
|
6
|
-
* Decorator class for extending the functionality of message translation in a chat application.
|
|
7
|
-
*
|
|
8
|
-
* @extends {DataSourceDecorator}
|
|
9
|
-
*/
|
|
10
|
-
export declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
|
|
11
|
-
newDataSource: DataSource;
|
|
12
|
-
/**
|
|
13
|
-
* Creates an instance of MessageTranslationExtensionDecorator.
|
|
14
|
-
*
|
|
15
|
-
* @param {DataSource} dataSource - The data source to decorate.
|
|
16
|
-
* @param {MessageTranslationConfiguration} [configuration] - Optional configuration for message translation.
|
|
17
|
-
*/
|
|
18
|
-
constructor(dataSource: DataSource);
|
|
19
|
-
/**
|
|
20
|
-
* Retrieves options for text message actions, including a translation option if not already present.
|
|
21
|
-
*
|
|
22
|
-
* @override
|
|
23
|
-
* @param {CometChat.User} loggedInUser - The currently logged-in user.
|
|
24
|
-
* @param {CometChat.BaseMessage} messageObject - The message object for which options are retrieved.
|
|
25
|
-
* @param {CometChat.Group} [group] - Optional group associated with the message.
|
|
26
|
-
* @returns {(CometChatActionsIcon | CometChatActionsView)[]} The array of action options for the message.
|
|
27
|
-
*/
|
|
28
|
-
getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group): (CometChatActionsIcon | CometChatActionsView)[];
|
|
29
|
-
/**
|
|
30
|
-
* Retrieves the content view for a text message, including translated content if available.
|
|
31
|
-
*
|
|
32
|
-
* @override
|
|
33
|
-
* @param {CometChat.TextMessage} message - The text message for which content view is retrieved.
|
|
34
|
-
* @param {MessageBubbleAlignment} alignment - The alignment of the message bubble.
|
|
35
|
-
* @param {any} [additionalConfigurations] - Optional additional configurations for the content view.
|
|
36
|
-
* @returns {JSX.Element} The content view for the text message.
|
|
37
|
-
*/
|
|
38
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: any): import("react/jsx-runtime").JSX.Element | Element;
|
|
39
|
-
/**
|
|
40
|
-
* Checks if an option with the specified ID already exists in the options list.
|
|
41
|
-
*
|
|
42
|
-
* @param {(CometChatActionsIcon | CometChatActionsView)[]} template - The list of options to check.
|
|
43
|
-
* @param {string} id - The ID of the option to check for.
|
|
44
|
-
* @returns {boolean} `true` if the option exists, otherwise `false`.
|
|
45
|
-
*/
|
|
46
|
-
checkIfOptionExist(template: (CometChatActionsIcon | CometChatActionsView)[], id: string): boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Retrieves the unique ID for this decorator.
|
|
49
|
-
*
|
|
50
|
-
* @returns {string} The ID of this decorator.
|
|
51
|
-
*/
|
|
52
|
-
getId(): string;
|
|
53
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface CreatePollProps {
|
|
3
|
-
/**
|
|
4
|
-
* Title for the poll creation form.
|
|
5
|
-
* Optional, defaults to localized "CREATE_POLL".
|
|
6
|
-
*/
|
|
7
|
-
title?: string;
|
|
8
|
-
/**
|
|
9
|
-
* User object if the poll is directed to a specific user.
|
|
10
|
-
* Optional.
|
|
11
|
-
*/
|
|
12
|
-
user?: CometChat.User;
|
|
13
|
-
/**
|
|
14
|
-
* Group object if the poll is directed to a specific group.
|
|
15
|
-
* Optional.
|
|
16
|
-
*/
|
|
17
|
-
group?: CometChat.Group;
|
|
18
|
-
/**
|
|
19
|
-
* Callback function to be called when the close button is clicked.
|
|
20
|
-
* Optional.
|
|
21
|
-
*/
|
|
22
|
-
ccCloseClicked?: () => void;
|
|
23
|
-
/**
|
|
24
|
-
* Default number of answer options to display initially.
|
|
25
|
-
* Optional, defaults to 3.
|
|
26
|
-
*/
|
|
27
|
-
defaultAnswers?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Placeholder text for the poll question input field.
|
|
30
|
-
* Optional, defaults to localized "QUESTION".
|
|
31
|
-
*/
|
|
32
|
-
questionPlaceholderText?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Placeholder text for the answer input fields.
|
|
35
|
-
* Optional, defaults to localized "ANSWER".
|
|
36
|
-
*/
|
|
37
|
-
answerPlaceholderText?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Help text for the answer input fields.
|
|
40
|
-
* Optional, defaults to localized "SET_THE_ANSWERS".
|
|
41
|
-
*/
|
|
42
|
-
answerHelpText?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Text to display for adding additional answer options.
|
|
45
|
-
* Optional, defaults to localized "ADD_ANOTHER_ANSWER".
|
|
46
|
-
*/
|
|
47
|
-
addAnswerText?: string;
|
|
48
|
-
/**
|
|
49
|
-
* URL of the add answer icon image.
|
|
50
|
-
* Optional, defaults to a predefined plus icon.
|
|
51
|
-
*/
|
|
52
|
-
addAnswerIconURL?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Text to display on the create poll button.
|
|
55
|
-
* Optional, defaults to localized "CREATE".
|
|
56
|
-
*/
|
|
57
|
-
createPollButtonText?: string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* CreatePoll component that provides a form to create a new poll.
|
|
61
|
-
*
|
|
62
|
-
* @param {CreatePollProps} props - The props for the component.
|
|
63
|
-
* @returns {JSX.Element} The rendered CreatePoll component.
|
|
64
|
-
*/
|
|
65
|
-
declare const CreatePoll: React.FC<CreatePollProps>;
|
|
66
|
-
export { CreatePoll };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
interface PollsBubbleProps {
|
|
2
|
-
/**
|
|
3
|
-
* Array of options for the poll.
|
|
4
|
-
*/
|
|
5
|
-
options?: any[];
|
|
6
|
-
/**
|
|
7
|
-
* The question being asked in the poll.
|
|
8
|
-
*/
|
|
9
|
-
pollQuestion: string;
|
|
10
|
-
/**
|
|
11
|
-
* The unique identifier for the poll.
|
|
12
|
-
*/
|
|
13
|
-
pollId: string | number;
|
|
14
|
-
/**
|
|
15
|
-
* The currently logged-in user.
|
|
16
|
-
* Optional.
|
|
17
|
-
*/
|
|
18
|
-
loggedInUser: CometChat.User | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* The unique identifier of the sender of the poll.
|
|
21
|
-
*/
|
|
22
|
-
senderUid: string;
|
|
23
|
-
/**
|
|
24
|
-
* Optional metadata associated with the poll.
|
|
25
|
-
*/
|
|
26
|
-
metadata?: any;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* PollsBubble component that displays a poll question and options.
|
|
30
|
-
*
|
|
31
|
-
* @param {PollsBubbleProps} props - The props for the component.
|
|
32
|
-
* @returns {JSX.Element} The rendered PollsBubble component.
|
|
33
|
-
*/
|
|
34
|
-
declare const PollsBubble: (props: PollsBubbleProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export { PollsBubble };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare class PollsConfiguration {
|
|
2
|
-
private createPollIconURL;
|
|
3
|
-
private deleteIconURL;
|
|
4
|
-
private closeIconURL;
|
|
5
|
-
private optionIconURL;
|
|
6
|
-
private addAnswerIconURL;
|
|
7
|
-
constructor(configuration: {
|
|
8
|
-
createPollIconURL?: string;
|
|
9
|
-
deleteIconURL?: string;
|
|
10
|
-
closeIconURL?: string;
|
|
11
|
-
optionIconURL?: string;
|
|
12
|
-
addAnswerIconURL?: string;
|
|
13
|
-
});
|
|
14
|
-
getCreatePollIconURL(): string;
|
|
15
|
-
getDeleteIconURL(): string;
|
|
16
|
-
getCloseIconURL(): string;
|
|
17
|
-
getOptionIconURL(): string;
|
|
18
|
-
getAddAnswerIconURL(): string;
|
|
19
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ExtensionsDataSource } from "../ExtensionsDataSource";
|
|
2
|
-
import { PollsConfiguration } from "./PollsConfiguration";
|
|
3
|
-
export declare class PollsExtension extends ExtensionsDataSource {
|
|
4
|
-
private configuration?;
|
|
5
|
-
constructor(configuration?: PollsConfiguration);
|
|
6
|
-
addExtension(): void;
|
|
7
|
-
getExtensionId(): string;
|
|
8
|
-
}
|