@cometchat/chat-uikit-react 5.0.0-beta1 → 5.0.0-beta2
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 +8 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatEditPreview.css +1 -0
- package/dist/styles/CometChatFileBubble.css +2 -0
- package/dist/styles/CometChatMessageComposer.css +5 -0
- package/dist/styles/CometChatMessageHeader.css +11 -0
- package/dist/styles/components/CometChatEditPreview.css +1 -0
- package/dist/styles/components/CometChatFileBubble.css +2 -0
- package/dist/styles/components/CometChatMessageComposer.css +5 -0
- package/dist/styles/components/CometChatMessageHeader.css +11 -0
- package/dist/styles/components/index.css +1 -0
- package/dist/styles/index.css +1 -0
- package/dist/types/events/CometChatUIEvents.d.ts +2 -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/styles/CometChatBadge.css +0 -15
- package/dist/styles/CometChatCard.css +0 -41
- 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/BaseComponents/CometChatBadge/CometChatBadge.d.ts +0 -10
- package/dist/types/components/BaseComponents/CometChatCard/CometChatCard.d.ts +0 -15
- 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
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CometChatEmoji, CometChatEmojiCategory } from "./CometChatEmoji";
|
|
2
|
-
export declare const useCometChatEmojiKeyboard: ({ emojiData, }: {
|
|
3
|
-
emojiData: CometChatEmojiCategory[];
|
|
4
|
-
}) => {
|
|
5
|
-
emojiDataState: CometChatEmojiCategory[];
|
|
6
|
-
activeCategory: string;
|
|
7
|
-
searchEmojiData: {
|
|
8
|
-
[key: string]: CometChatEmoji;
|
|
9
|
-
};
|
|
10
|
-
searchString: string;
|
|
11
|
-
getEmojiData: (emojiData: CometChatEmoji) => string;
|
|
12
|
-
getEmojiCategory: () => void;
|
|
13
|
-
scrollToElement: (id: string) => void;
|
|
14
|
-
filterEmojis: (e: {
|
|
15
|
-
value?: string;
|
|
16
|
-
}) => void;
|
|
17
|
-
};
|
package/dist/types/src/components/BaseComponents/CometChatFileBubble/CometChatFileBubble.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface FileBubbleProps {
|
|
2
|
-
fileURL: string;
|
|
3
|
-
fileTypeIconURL?: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
subtitle?: string;
|
|
6
|
-
isSentByMe?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const CometChatFileBubble: (props: FileBubbleProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { CometChatFileBubble };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Props for the CometChatFullScreenViewer component.
|
|
4
|
-
*/
|
|
5
|
-
interface FullScreenViewerProps {
|
|
6
|
-
/** URL of the image to be displayed */
|
|
7
|
-
URL?: string;
|
|
8
|
-
/** Placeholder image URL */
|
|
9
|
-
placeholderImage?: string;
|
|
10
|
-
/** Callback function when the close button is clicked */
|
|
11
|
-
ccCloseClicked?: () => void;
|
|
12
|
-
/**
|
|
13
|
-
* The media message containing the image.
|
|
14
|
-
*/
|
|
15
|
-
message: CometChat.MediaMessage;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* CometChatFullScreenViewer is a full-screen image viewer component with a customizable close button.
|
|
19
|
-
*
|
|
20
|
-
* @param {FullScreenViewerProps} props - The properties passed to the component.
|
|
21
|
-
*/
|
|
22
|
-
declare const CometChatFullScreenViewer: React.FC<FullScreenViewerProps>;
|
|
23
|
-
export { CometChatFullScreenViewer };
|
package/dist/types/src/components/BaseComponents/CometChatImageBubble/CometChatImageBubble.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface ImageBubbleProps {
|
|
2
|
-
src: string;
|
|
3
|
-
placeholderImage?: string;
|
|
4
|
-
onImageClicked?: (input: {
|
|
5
|
-
src: string;
|
|
6
|
-
}) => void;
|
|
7
|
-
isSentByMe?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const CometChatImageBubble: (props: ImageBubbleProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export { CometChatImageBubble };
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { JSX } from "react";
|
|
2
|
-
import { States, TitleAlignment } from "../../../Enums/Enums";
|
|
3
|
-
export type DivElementRef = HTMLDivElement | null;
|
|
4
|
-
interface ListProps<T> {
|
|
5
|
-
/**
|
|
6
|
-
* Title of the component
|
|
7
|
-
*
|
|
8
|
-
* @defaultValue `""`
|
|
9
|
-
*/
|
|
10
|
-
title?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Menu view of the component
|
|
13
|
-
*
|
|
14
|
-
* @defaultValue `""`
|
|
15
|
-
*/
|
|
16
|
-
menu?: JSX.Element;
|
|
17
|
-
/**
|
|
18
|
-
* Alignment of the `title` text
|
|
19
|
-
*
|
|
20
|
-
* @defaultValue `TitleAlignment.left`
|
|
21
|
-
*/
|
|
22
|
-
titleAlignment?: TitleAlignment;
|
|
23
|
-
/**
|
|
24
|
-
* Hide the search bar
|
|
25
|
-
*
|
|
26
|
-
* @defaulValue `false`
|
|
27
|
-
*/
|
|
28
|
-
hideSearch?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Text to fill the search input with
|
|
31
|
-
*
|
|
32
|
-
* @defaultValue `""`
|
|
33
|
-
*/
|
|
34
|
-
searchText?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Function to call when the search input text changes
|
|
37
|
-
*
|
|
38
|
-
* @remarks
|
|
39
|
-
* This function will only be called after 500ms of the search input text change
|
|
40
|
-
*/
|
|
41
|
-
onSearch?: (searchStr: string) => void;
|
|
42
|
-
/**
|
|
43
|
-
* Image URL for the search icon to use in the search bar
|
|
44
|
-
*/
|
|
45
|
-
searchIconURL?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Text to be displayed when the search input has no value
|
|
48
|
-
*
|
|
49
|
-
* @defaultValue `"Search"`
|
|
50
|
-
*/
|
|
51
|
-
searchPlaceholderText?: string;
|
|
52
|
-
/**
|
|
53
|
-
* List of objects to display
|
|
54
|
-
*/
|
|
55
|
-
list: T[];
|
|
56
|
-
/**
|
|
57
|
-
* Custom list item view to be rendered for each object in the `list` prop
|
|
58
|
-
*/
|
|
59
|
-
listItem: (item: T, itemIndex: number) => JSX.Element;
|
|
60
|
-
/**
|
|
61
|
-
* Function to call when the scrollbar is at the top-most position of the scrollable list
|
|
62
|
-
*/
|
|
63
|
-
onScrolledToBottom?: () => Promise<any>;
|
|
64
|
-
/**
|
|
65
|
-
* Function to call when the scrollbar is at the bottom-most position of the scrollable list
|
|
66
|
-
*/
|
|
67
|
-
onScrolledToTop?: () => Promise<any>;
|
|
68
|
-
/**
|
|
69
|
-
* Function to call when the scrollbar is not at the bottom-most position of the scrollable list
|
|
70
|
-
*/
|
|
71
|
-
scrolledUpCallback?: (boolean?: boolean) => void;
|
|
72
|
-
/**
|
|
73
|
-
* Show alphabetical header
|
|
74
|
-
*
|
|
75
|
-
* @defaultValue `true`
|
|
76
|
-
*/
|
|
77
|
-
showSectionHeader?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Property on each object in the `list` prop
|
|
80
|
-
*
|
|
81
|
-
* @remarks
|
|
82
|
-
* This property will be used to extract the section header character from each object in the `list` prop
|
|
83
|
-
*/
|
|
84
|
-
sectionHeaderKey?: keyof T;
|
|
85
|
-
/**
|
|
86
|
-
* Property on each object in the `list` prop
|
|
87
|
-
*
|
|
88
|
-
* @remarks
|
|
89
|
-
* This property will be used to extract the key value from each object in the `list` prop. The extracted key value is set as a `key` of a React element
|
|
90
|
-
*/
|
|
91
|
-
listItemKey?: keyof T;
|
|
92
|
-
/**
|
|
93
|
-
* Fetch state of the component
|
|
94
|
-
*/
|
|
95
|
-
state: States;
|
|
96
|
-
/**
|
|
97
|
-
* Custom view for the loading state of the component
|
|
98
|
-
*/
|
|
99
|
-
loadingView?: JSX.Element;
|
|
100
|
-
/**
|
|
101
|
-
* Image URL for the default loading view
|
|
102
|
-
*/
|
|
103
|
-
loadingIconURL?: string;
|
|
104
|
-
/**
|
|
105
|
-
* Hide error view
|
|
106
|
-
*
|
|
107
|
-
* @remarks
|
|
108
|
-
* If set to true, hides the default and the custom error view
|
|
109
|
-
*
|
|
110
|
-
* @defaultValue `false`
|
|
111
|
-
*/
|
|
112
|
-
hideError?: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Custom view for the error state of the component
|
|
115
|
-
*/
|
|
116
|
-
errorStateView?: JSX.Element;
|
|
117
|
-
/**
|
|
118
|
-
* Text to display in the default error view
|
|
119
|
-
*
|
|
120
|
-
* @defaultValue `"ERROR"`
|
|
121
|
-
*/
|
|
122
|
-
errorStateText?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Custom view for the empty state of the component
|
|
125
|
-
*/
|
|
126
|
-
emptyStateView?: JSX.Element;
|
|
127
|
-
/**
|
|
128
|
-
* Text to display in the default empty view
|
|
129
|
-
*
|
|
130
|
-
* @defaultValue `"EMPTY"`
|
|
131
|
-
*/
|
|
132
|
-
emptyStateText?: string;
|
|
133
|
-
/**
|
|
134
|
-
* Set the scrollbar to the bottom-most position of the scrollable list
|
|
135
|
-
*
|
|
136
|
-
* @remarks
|
|
137
|
-
* If the scrollbar of the scrollable list is set to the bottom-most position of the scrollable list because of this `prop`, the component won't call the `onScrolledToBottom` prop
|
|
138
|
-
*/
|
|
139
|
-
scrollToBottom?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* Function to call whenever the component encounters an error
|
|
142
|
-
*/
|
|
143
|
-
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Renders a list component that can display a title, search bar,
|
|
147
|
-
* and items with optional section headers.
|
|
148
|
-
*
|
|
149
|
-
* @param props - The props for configuring the list
|
|
150
|
-
*/
|
|
151
|
-
declare function List<T>(props: ListProps<T>): JSX.Element;
|
|
152
|
-
/**
|
|
153
|
-
* Renders a scrollable list
|
|
154
|
-
*/
|
|
155
|
-
export declare const CometChatList: typeof List;
|
|
156
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DivElementRef } from "./CometChatList";
|
|
3
|
-
type Args = {
|
|
4
|
-
intersectionObserverRootRef: React.MutableRefObject<DivElementRef>;
|
|
5
|
-
intersectionObserverBottomTargetRef: React.MutableRefObject<DivElementRef>;
|
|
6
|
-
intersectionObserverTopTargetRef: React.MutableRefObject<DivElementRef>;
|
|
7
|
-
onScrolledToBottomRef: React.MutableRefObject<(() => void) | undefined>;
|
|
8
|
-
onScrolledToTopRef: React.MutableRefObject<(() => void) | undefined>;
|
|
9
|
-
scrollToBottom: boolean;
|
|
10
|
-
didComponentScrollToBottomRef: React.MutableRefObject<boolean>;
|
|
11
|
-
scrollHeightTupleRef: React.MutableRefObject<[number, number]>;
|
|
12
|
-
didTopObserverCallbackRunRef: React.MutableRefObject<boolean>;
|
|
13
|
-
errorHandler: (error: unknown) => void;
|
|
14
|
-
scrolledUpCallback?: (boolean?: boolean) => void;
|
|
15
|
-
};
|
|
16
|
-
export declare function useCometChatList(args: Args): void;
|
|
17
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
interface ListItemProps {
|
|
3
|
-
id?: string;
|
|
4
|
-
avatarURL?: string;
|
|
5
|
-
avatarName?: string;
|
|
6
|
-
title: string;
|
|
7
|
-
onListItemClicked?: (input: {
|
|
8
|
-
id?: string;
|
|
9
|
-
}) => void;
|
|
10
|
-
menuView?: ReactNode;
|
|
11
|
-
subtitleView?: ReactNode;
|
|
12
|
-
tailView?: ReactNode;
|
|
13
|
-
}
|
|
14
|
-
declare const CometChatListItem: (props: ListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export { CometChatListItem };
|
package/dist/types/src/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MouseEvent } from "react";
|
|
2
|
-
export declare const useCometChatListItem: ({ id, onListItemClicked }: {
|
|
3
|
-
id?: string | undefined;
|
|
4
|
-
onListItemClicked?: (({ id: string }: {
|
|
5
|
-
id?: string | undefined;
|
|
6
|
-
}) => void) | undefined;
|
|
7
|
-
}) => {
|
|
8
|
-
listItemClick: (event: MouseEvent<HTMLDivElement>) => void;
|
|
9
|
-
isHovering: boolean;
|
|
10
|
-
showTail: () => void;
|
|
11
|
-
hideTail: () => void;
|
|
12
|
-
};
|
package/dist/types/src/components/BaseComponents/CometChatLiveReaction/useLiveReactionHook.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface customItem {
|
|
3
|
-
element: HTMLElement;
|
|
4
|
-
elementHeight: number;
|
|
5
|
-
elementWidth: number;
|
|
6
|
-
ySpeed: number;
|
|
7
|
-
omega: number;
|
|
8
|
-
random: number;
|
|
9
|
-
x: Function;
|
|
10
|
-
y: number;
|
|
11
|
-
}
|
|
12
|
-
export declare const useLiveReactionHook: ({}: {}) => {
|
|
13
|
-
setVerticalSpeed: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
14
|
-
setHorizontalSpeed: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
15
|
-
setItems: import("react").Dispatch<import("react").SetStateAction<customItem[]>>;
|
|
16
|
-
updateItems: () => void;
|
|
17
|
-
requestAnimation: () => void;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
package/dist/types/src/components/BaseComponents/CometChatMediaRecorder/CometChatMediaRecorder.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface MediaRecorderProps {
|
|
3
|
-
autoRecording?: boolean;
|
|
4
|
-
onCloseRecording?: () => void;
|
|
5
|
-
onSubmitRecording?: (file: Blob) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const CometChatMediaRecorder: React.FC<MediaRecorderProps>;
|
|
8
|
-
export { CometChatMediaRecorder };
|
package/dist/types/src/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CometChatActionsIcon, CometChatActionsView } from "../../../modals";
|
|
3
|
-
import { MessageBubbleAlignment } from "../../../Enums/Enums";
|
|
4
|
-
/**Interface defining the structure for MessageBubbleProps */
|
|
5
|
-
interface MessageBubbleProps {
|
|
6
|
-
id: string | number;
|
|
7
|
-
setRef?: (ref: any) => void;
|
|
8
|
-
leadingView?: JSX.Element | null;
|
|
9
|
-
headerView?: JSX.Element | null;
|
|
10
|
-
replyView?: JSX.Element | null;
|
|
11
|
-
contentView?: JSX.Element | null;
|
|
12
|
-
bottomView?: JSX.Element | null;
|
|
13
|
-
threadView?: JSX.Element | null;
|
|
14
|
-
footerView?: JSX.Element | null;
|
|
15
|
-
statusInfoView?: JSX.Element | null;
|
|
16
|
-
options: (CometChatActionsIcon | CometChatActionsView)[];
|
|
17
|
-
alignment: MessageBubbleAlignment;
|
|
18
|
-
topMenuSize?: number;
|
|
19
|
-
type?: string;
|
|
20
|
-
category?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* React component for displaying different types of messages in the message list.
|
|
24
|
-
* @param props
|
|
25
|
-
* @returns
|
|
26
|
-
*/
|
|
27
|
-
declare const CometChatMessageBubble: (props: MessageBubbleProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export { CometChatMessageBubble };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
export declare enum Placement {
|
|
3
|
-
top = "top",
|
|
4
|
-
right = "right",
|
|
5
|
-
bottom = "bottom",
|
|
6
|
-
left = "left"
|
|
7
|
-
}
|
|
8
|
-
interface PopoverProps {
|
|
9
|
-
placement?: Placement;
|
|
10
|
-
closeOnOutsideClick?: boolean;
|
|
11
|
-
showOnHover?: boolean;
|
|
12
|
-
debounceOnHover?: number;
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
content: ReactNode;
|
|
15
|
-
hasToolTip?: boolean;
|
|
16
|
-
childClickHandler?: (openContent: Function, event: Event) => void;
|
|
17
|
-
onOutsideClick?: () => void;
|
|
18
|
-
overrideStyleProps?: CSSProperties;
|
|
19
|
-
}
|
|
20
|
-
declare const CometChatPopover: import("react").ForwardRefExoticComponent<PopoverProps & import("react").RefAttributes<{
|
|
21
|
-
openPopover: () => void;
|
|
22
|
-
closePopover: () => void;
|
|
23
|
-
}>>;
|
|
24
|
-
export { CometChatPopover };
|
package/dist/types/src/components/BaseComponents/CometChatRadioButton/CometChatRadioButton.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface RadioButtonProps {
|
|
2
|
-
checked?: boolean;
|
|
3
|
-
name?: string;
|
|
4
|
-
labelText?: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
id?: string;
|
|
7
|
-
onRadioButtonChanged?: (input: {
|
|
8
|
-
checked: boolean;
|
|
9
|
-
labelText: string | undefined;
|
|
10
|
-
id: string;
|
|
11
|
-
}) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const CometChatRadioButton: (props: RadioButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export { CometChatRadioButton };
|
package/dist/types/src/components/BaseComponents/CometChatRadioButton/useCometChatRadioButton.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ChangeEvent } from "react";
|
|
2
|
-
export declare const useCometChatRadioButton: ({ checked, onRadioButtonChanged, id, name, }: {
|
|
3
|
-
checked?: boolean | undefined;
|
|
4
|
-
onRadioButtonChanged?: ((input: {
|
|
5
|
-
checked: boolean;
|
|
6
|
-
labelText: string | undefined;
|
|
7
|
-
id: string;
|
|
8
|
-
}) => void) | undefined;
|
|
9
|
-
id?: string | undefined;
|
|
10
|
-
name?: string | undefined;
|
|
11
|
-
}) => {
|
|
12
|
-
updateRadioState: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface SearchBarProps {
|
|
2
|
-
searchText?: string;
|
|
3
|
-
placeholderText?: string;
|
|
4
|
-
onChange?: (input: {
|
|
5
|
-
value?: string;
|
|
6
|
-
}) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const CometChatSearchBar: (props: SearchBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { CometChatSearchBar };
|
package/dist/types/src/components/BaseComponents/CometChatSearchBar/useCometChatSearchBar.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ChangeEvent } from "react";
|
|
2
|
-
export declare const useCometChatSearchBar: ({ searchText, onChange, }: {
|
|
3
|
-
searchText?: string | undefined;
|
|
4
|
-
onChange?: (({ value: string }: {
|
|
5
|
-
value?: string | undefined;
|
|
6
|
-
}) => void) | undefined;
|
|
7
|
-
}) => {
|
|
8
|
-
searchValue: string;
|
|
9
|
-
onInputChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
-
};
|
package/dist/types/src/components/BaseComponents/CometChatTextBubble/CometChatTextBubble.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CometChatTextFormatter } from "../../../formatters/CometChatFormatters/CometChatTextFormatter";
|
|
2
|
-
interface TextBubbleProps {
|
|
3
|
-
text: string;
|
|
4
|
-
textFormatters?: Array<CometChatTextFormatter>;
|
|
5
|
-
isSentByMe?: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const CometChatTextBubble: (props: TextBubbleProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export { CometChatTextBubble };
|
package/dist/types/src/components/BaseComponents/CometChatTextBubble/useCometChatTextBubble.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CometChatTextFormatter } from "../../../formatters/CometChatFormatters/CometChatTextFormatter";
|
|
2
|
-
export declare const useCometChatTextBubble: (props: {
|
|
3
|
-
textFormatters: Array<CometChatTextFormatter>;
|
|
4
|
-
}) => {
|
|
5
|
-
pasteHtml: (textElement: HTMLElement, text: string) => void;
|
|
6
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Interface for the props of CometChatToast component
|
|
4
|
-
*/
|
|
5
|
-
interface CometChatToastProps {
|
|
6
|
-
/** The text to display in the toast message */
|
|
7
|
-
text: string;
|
|
8
|
-
/** Duration (in milliseconds) for which the toast is visible (default is 3000ms) */
|
|
9
|
-
duration?: number;
|
|
10
|
-
/** Optional callback function that executes when the toast closes */
|
|
11
|
-
onClose?: () => void;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* CometChatToast Component
|
|
15
|
-
*
|
|
16
|
-
* This component displays a temporary toast message with a specified text and duration.
|
|
17
|
-
* The toast will automatically disappear after the specified duration and optionally trigger
|
|
18
|
-
* an `onClose` callback if provided.
|
|
19
|
-
*
|
|
20
|
-
* @param {string} text - The message text to display in the toast
|
|
21
|
-
* @param {number} duration - Duration for which the toast is visible
|
|
22
|
-
* @param {function} onClose - Callback function executed when the toast closes
|
|
23
|
-
*
|
|
24
|
-
* @returns {JSX.Element | null} - The JSX element for the toast message or null if no text is provided
|
|
25
|
-
*/
|
|
26
|
-
declare const CometChatToast: React.FC<CometChatToastProps>;
|
|
27
|
-
export default CometChatToast;
|
package/dist/types/src/components/BaseComponents/CometChatVideoBubble/CometChatVideoBubble.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface VideoBubbleProps {
|
|
2
|
-
src: string;
|
|
3
|
-
autoPlay?: boolean;
|
|
4
|
-
loop?: boolean;
|
|
5
|
-
muted?: boolean;
|
|
6
|
-
isSentByMe?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const CometChatVideoBubble: (props: VideoBubbleProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { CometChatVideoBubble };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CometChatUIKitCalls } from "../../CometChatUIKit/CometChatCalls";
|
|
2
|
-
import { OutgoingCallConfiguration } from "./OutgoingCallConfiguration";
|
|
3
|
-
export declare class CallButtonConfiguration {
|
|
4
|
-
callSettingsBuilder?: (isAudioOnlyCall: boolean, user?: CometChat.User, group?: CometChat.Group) => typeof CometChatUIKitCalls.CallSettingsBuilder;
|
|
5
|
-
onVoiceCallClick?: () => void;
|
|
6
|
-
onVideoCallClick?: () => void;
|
|
7
|
-
onError?: (error: CometChat.CometChatException) => void;
|
|
8
|
-
outgoingCallConfiguration?: OutgoingCallConfiguration;
|
|
9
|
-
constructor(configuration?: CallButtonConfiguration);
|
|
10
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CometChatUIKitCalls } from "../../CometChatUIKit/CometChatCalls";
|
|
2
|
-
import { CallButtonConfiguration } from "./CallButtonConfiguration";
|
|
3
|
-
export declare class CallingConfiguration {
|
|
4
|
-
groupCallSettingsBuilder?: (message: CometChat.CustomMessage) => typeof CometChatUIKitCalls.CallSettingsBuilder;
|
|
5
|
-
callButtonConfiguration?: CallButtonConfiguration;
|
|
6
|
-
constructor(configuration?: CallingConfiguration);
|
|
7
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ExtensionsDataSource } from '../Extensions/ExtensionsDataSource';
|
|
2
|
-
import { CallingConfiguration } from './CallingConfiguration';
|
|
3
|
-
export declare class CallingExtension extends ExtensionsDataSource {
|
|
4
|
-
private configuration?;
|
|
5
|
-
constructor(configuration?: CallingConfiguration);
|
|
6
|
-
enable(): void;
|
|
7
|
-
addExtension(): void;
|
|
8
|
-
getExtensionId(): string;
|
|
9
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DataSource } from "../../utils/DataSource";
|
|
2
|
-
import { DataSourceDecorator } from "../../utils/DataSourceDecorator";
|
|
3
|
-
import { CallingConfiguration } from "./CallingConfiguration";
|
|
4
|
-
import { MessageBubbleAlignment } from "../../Enums/Enums";
|
|
5
|
-
import { CometChatMessageTemplate } from "../../modals";
|
|
6
|
-
export declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
7
|
-
loggedInUser: CometChat.User | null;
|
|
8
|
-
configuration?: CallingConfiguration;
|
|
9
|
-
constructor(dataSource: DataSource, configuration?: CallingConfiguration);
|
|
10
|
-
addLoginListener(): void;
|
|
11
|
-
getLoggedInUser(): Promise<void>;
|
|
12
|
-
getAllMessageTypes(): string[];
|
|
13
|
-
getId(): string;
|
|
14
|
-
getAllMessageCategories(): string[];
|
|
15
|
-
checkIfTemplateTypeExist(template: CometChatMessageTemplate[], type: string): boolean;
|
|
16
|
-
checkIfTemplateCategoryExist(template: CometChatMessageTemplate[], category: string): boolean;
|
|
17
|
-
getAllMessageTemplates(additionalConfigurations?: any): CometChatMessageTemplate[];
|
|
18
|
-
getDirectCallTemplate(): CometChatMessageTemplate;
|
|
19
|
-
getDefaultCallTemplate(): CometChatMessageTemplate[];
|
|
20
|
-
getSessionId(_message: CometChat.CustomMessage): any;
|
|
21
|
-
getDirectCallMessageBubble(_message: CometChat.CustomMessage, _alignment: MessageBubbleAlignment): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
startDirectCall(sessionId: string, message: CometChat.CustomMessage): void;
|
|
23
|
-
getCallActionMessage(_message: CometChat.Call): string;
|
|
24
|
-
getCallStatusClass(message: CometChat.Call): "" | "cometchat-message-bubble__outgoing-call" | "cometchat-message-bubble__incoming-call" | "cometchat-message-bubble__cancelled-call" | "cometchat-message-bubble__rejected-call" | "cometchat-message-bubble__busy-call" | "cometchat-message-bubble__ended-call" | "cometchat-message-bubble__answered-call" | "cometchat-message-bubble__unanswered-call" | "cometchat-message-bubble__missed-call";
|
|
25
|
-
getDefaultAudioCallMessageBubble(_message: CometChat.Call, _alignment: MessageBubbleAlignment): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
getDefaultVideoCallMessageBubble(_message: CometChat.Call, _alignment: MessageBubbleAlignment): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalParams?: any): string;
|
|
28
|
-
getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group): any[];
|
|
29
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { CometChatUIKitCalls } from "../../../CometChatUIKit/CometChatCalls";
|
|
2
|
-
import { OutgoingCallConfiguration } from "../OutgoingCallConfiguration";
|
|
3
|
-
interface CallButtonsProps {
|
|
4
|
-
onVoiceCallClick?: () => void;
|
|
5
|
-
onVideoCallClick?: () => void;
|
|
6
|
-
onError?: (error: CometChat.CometChatException) => void;
|
|
7
|
-
callSettingsBuilder?: (isAudioOnlyCall: boolean, user?: CometChat.User, group?: CometChat.Group) => typeof CometChatUIKitCalls.CallSettingsBuilder;
|
|
8
|
-
outgoingCallConfiguration?: OutgoingCallConfiguration;
|
|
9
|
-
}
|
|
10
|
-
interface CallButtonsUserProps extends CallButtonsProps {
|
|
11
|
-
/**
|
|
12
|
-
* Sets the user object for Call Buttons.
|
|
13
|
-
*/
|
|
14
|
-
user: CometChat.User;
|
|
15
|
-
/**
|
|
16
|
-
* Used to set the group object for Call Buttons.
|
|
17
|
-
*
|
|
18
|
-
* @default null
|
|
19
|
-
*/
|
|
20
|
-
group?: CometChat.Group | null;
|
|
21
|
-
}
|
|
22
|
-
interface CallButtonsGroupProps extends CallButtonsProps {
|
|
23
|
-
/**
|
|
24
|
-
* Sets the user object for Call Buttons, or null if no user is involved.
|
|
25
|
-
*
|
|
26
|
-
* @default null
|
|
27
|
-
*/
|
|
28
|
-
user?: CometChat.User | null;
|
|
29
|
-
/**
|
|
30
|
-
* Used to set the group object for Call Buttons.
|
|
31
|
-
*/
|
|
32
|
-
group: CometChat.Group;
|
|
33
|
-
}
|
|
34
|
-
type CallButtonsPropsType = CallButtonsUserProps | CallButtonsGroupProps;
|
|
35
|
-
declare const CometChatCallButtons: (props: CallButtonsPropsType) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
export { CometChatCallButtons };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare function useCallButtons(loggedInUser: any, setLoggedInUser: Function, user: any, group: any, onErrorCallback: Function, attachListeners: Function, removeListener: Function, setActiveUser: any, setActiveGroup: any, initiateAudioCall: Function, initiateVideoCall: Function, onVoiceCallClickRef: React.MutableRefObject<Function | undefined>, onVideoCallClickRef: React.MutableRefObject<Function | undefined>, subscribeToEvents: Function): {
|
|
3
|
-
audioCallButtonClicked: () => void;
|
|
4
|
-
videoCallButtonClicked: () => void;
|
|
5
|
-
};
|
|
6
|
-
export { useCallButtons };
|