@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
package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DataSource } from "../../../utils/DataSource";
|
|
2
|
-
import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
|
|
3
|
-
import { AIConversationSummaryConfiguration } from "./AIConversationSummaryConfiguration";
|
|
4
|
-
import { CometChatActionsView } from "../../../modals/CometChatActionsView";
|
|
5
|
-
import { CometChatMessageComposerAction } from "../../../modals";
|
|
6
|
-
export declare class AIConversationSummaryDecorator extends DataSourceDecorator {
|
|
7
|
-
configuration?: AIConversationSummaryConfiguration;
|
|
8
|
-
newDataSource: DataSource;
|
|
9
|
-
currentMessage: CometChat.BaseMessage | null;
|
|
10
|
-
unreadMessageCount: number;
|
|
11
|
-
loggedInUser: CometChat.User | null;
|
|
12
|
-
user: CometChat.User;
|
|
13
|
-
group: CometChat.Group;
|
|
14
|
-
private LISTENER_ID;
|
|
15
|
-
constructor(dataSource: DataSource, configuration?: AIConversationSummaryConfiguration);
|
|
16
|
-
getId(): string;
|
|
17
|
-
closePanel: () => void;
|
|
18
|
-
getConversationSummary: () => Promise<string>;
|
|
19
|
-
private loadConversationSummary;
|
|
20
|
-
getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, id?: any): (CometChatMessageComposerAction | CometChatActionsView)[];
|
|
21
|
-
private addMessageListener;
|
|
22
|
-
}
|
package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AIExtensionDataSource } from "../AIExtensionDataSource";
|
|
2
|
-
import { AIConversationSummaryConfiguration } from "./AIConversationSummaryConfiguration";
|
|
3
|
-
export declare class AIConversationSummaryExtension extends AIExtensionDataSource {
|
|
4
|
-
private configuration?;
|
|
5
|
-
constructor(configuration?: AIConversationSummaryConfiguration);
|
|
6
|
-
addExtension(): void;
|
|
7
|
-
getExtensionId(): string;
|
|
8
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AIConversationSummaryConfiguration } from './AIConversationSummaryConfiguration';
|
|
2
|
-
interface IAIConversationSummaryProps {
|
|
3
|
-
getConversationSummaryCallback?: () => Promise<string>;
|
|
4
|
-
editReplyCallback?: (reply: string) => void;
|
|
5
|
-
closeCallback?: () => void;
|
|
6
|
-
configuration?: AIConversationSummaryConfiguration;
|
|
7
|
-
}
|
|
8
|
-
declare const AIConversationSummaryView: (props: IAIConversationSummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { AIConversationSummaryView };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { AIBaseConfiguration } from "../AIBaseConfiguration";
|
|
2
|
-
/**
|
|
3
|
-
* Represents the configuration for the AISmartReplies component.
|
|
4
|
-
*
|
|
5
|
-
* This class allows customization of various aspects of the AISmartReplies component,
|
|
6
|
-
* including styles, icons, custom views, and API configurations.
|
|
7
|
-
*/
|
|
8
|
-
export declare class AISmartRepliesConfiguration extends AIBaseConfiguration {
|
|
9
|
-
/**
|
|
10
|
-
* The customView callback allows you to display a custom UI for conversation starters.
|
|
11
|
-
* It receives the list of conversation starters and optional close and back callbacks.
|
|
12
|
-
*
|
|
13
|
-
* @type {(response: Object, closeCallBack?: () => void, backCallBack?: () => void) => Promise<any>}
|
|
14
|
-
*/
|
|
15
|
-
customView?: (response: Object, closeCallBack?: () => void, backCallBack?: () => void) => Promise<any>;
|
|
16
|
-
/**
|
|
17
|
-
* The URL for the custom back button icon. Defaults to an embedded back button icon.
|
|
18
|
-
*
|
|
19
|
-
* @type {string}
|
|
20
|
-
*/
|
|
21
|
-
backIconURL?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Creates an instance of AISmartRepliesConfiguration.
|
|
24
|
-
*
|
|
25
|
-
* @param {Partial<AISmartRepliesConfiguration>} props - The properties to initialize the configuration.
|
|
26
|
-
*/
|
|
27
|
-
constructor(props: Partial<AISmartRepliesConfiguration>);
|
|
28
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DataSource } from "../../../utils/DataSource";
|
|
2
|
-
import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
|
|
3
|
-
import { AISmartRepliesConfiguration } from "./AISmartRepliesConfiguration";
|
|
4
|
-
import { CometChatActionsView, CometChatMessageComposerAction } from "../../../modals";
|
|
5
|
-
export declare class AISmartRepliesDecorator extends DataSourceDecorator {
|
|
6
|
-
configuration?: AISmartRepliesConfiguration;
|
|
7
|
-
newDataSource: DataSource;
|
|
8
|
-
loggedInUser: CometChat.User | null;
|
|
9
|
-
user: CometChat.User;
|
|
10
|
-
group: CometChat.Group;
|
|
11
|
-
buttonRef: any;
|
|
12
|
-
isModalClosed: boolean;
|
|
13
|
-
private closeCallback?;
|
|
14
|
-
constructor(dataSource: DataSource, configuration?: AISmartRepliesConfiguration);
|
|
15
|
-
getId(): string;
|
|
16
|
-
editReply(reply: string): void;
|
|
17
|
-
closeIfMessageReceived(message: CometChat.BaseMessage): void;
|
|
18
|
-
getSmartReplies: () => Promise<string[]>;
|
|
19
|
-
getAIOptions(user: CometChat.User | null, group: CometChat.Group | null, id?: any): (CometChatMessageComposerAction | CometChatActionsView)[];
|
|
20
|
-
private addMessageListener;
|
|
21
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AIExtensionDataSource } from "../AIExtensionDataSource";
|
|
2
|
-
import { AISmartRepliesConfiguration } from "./AISmartRepliesConfiguration";
|
|
3
|
-
export declare class AISmartRepliesExtension extends AIExtensionDataSource {
|
|
4
|
-
private configuration?;
|
|
5
|
-
constructor(configuration?: AISmartRepliesConfiguration);
|
|
6
|
-
addExtension(): void;
|
|
7
|
-
getExtensionId(): string;
|
|
8
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AISmartRepliesConfiguration } from './AISmartRepliesConfiguration';
|
|
2
|
-
interface IAISmartRepliesProps {
|
|
3
|
-
title: string;
|
|
4
|
-
getSmartRepliesCallback?: () => Promise<Object>;
|
|
5
|
-
editReplyCallback?: (reply: string) => void;
|
|
6
|
-
closeCallback?: () => void;
|
|
7
|
-
backCallback?: () => void;
|
|
8
|
-
configuration?: AISmartRepliesConfiguration;
|
|
9
|
-
}
|
|
10
|
-
declare const AISmartRepliesView: (props: IAISmartRepliesProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export { AISmartRepliesView };
|
package/dist/types/src/components/BaseComponents/CometChatActionBubble/CometChatActionBubble.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface ActionBubbleProps {
|
|
2
|
-
messageText: string;
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* CometChatActionBubble is a generic component used to show an action message
|
|
6
|
-
*/
|
|
7
|
-
declare const CometChatActionBubble: (props: ActionBubbleProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export { CometChatActionBubble };
|
package/dist/types/src/components/BaseComponents/CometChatActionSheet/CometChatActionSheet.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CometChatActionsView, CometChatMessageComposerAction } from "../../../modals";
|
|
2
|
-
interface ActionSheetProps {
|
|
3
|
-
actions: (CometChatMessageComposerAction | CometChatActionsView)[];
|
|
4
|
-
onActionItemClick: (action: CometChatMessageComposerAction | CometChatActionsView) => void;
|
|
5
|
-
}
|
|
6
|
-
declare const CometChatActionSheet: (props: ActionSheetProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export { CometChatActionSheet };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import EventEmitter from './event-emitter';
|
|
2
|
-
import type WaveSurfer from './wavesurfer';
|
|
3
|
-
export type BasePluginEvents = {
|
|
4
|
-
destroy: [];
|
|
5
|
-
};
|
|
6
|
-
export type GenericPlugin = BasePlugin<BasePluginEvents, unknown>;
|
|
7
|
-
/** Base class for wavesurfer plugins */
|
|
8
|
-
export declare class BasePlugin<EventTypes extends BasePluginEvents, Options> extends EventEmitter<EventTypes> {
|
|
9
|
-
protected wavesurfer?: WaveSurfer;
|
|
10
|
-
protected subscriptions: (() => void)[];
|
|
11
|
-
protected options: Options;
|
|
12
|
-
/** Create a plugin instance */
|
|
13
|
-
constructor(options: Options);
|
|
14
|
-
/** Called after this.wavesurfer is available */
|
|
15
|
-
protected onInit(): void;
|
|
16
|
-
/** Do not call directly, only called by WavesSurfer internally */
|
|
17
|
-
_init(wavesurfer: WaveSurfer): void;
|
|
18
|
-
/** Destroy the plugin and unsubscribe from all events */
|
|
19
|
-
destroy(): void;
|
|
20
|
-
}
|
|
21
|
-
export default BasePlugin;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Decode an array buffer into an audio buffer */
|
|
2
|
-
declare function decode(audioData: ArrayBuffer, sampleRate: number): Promise<AudioBuffer>;
|
|
3
|
-
/** Create an audio buffer from pre-decoded audio data */
|
|
4
|
-
declare function createBuffer(channelData: Array<Float32Array | number[]>, duration: number): AudioBuffer;
|
|
5
|
-
declare const Decoder: {
|
|
6
|
-
decode: typeof decode;
|
|
7
|
-
createBuffer: typeof createBuffer;
|
|
8
|
-
};
|
|
9
|
-
export default Decoder;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type TreeNode = {
|
|
2
|
-
[key: string]: string | number | boolean | CSSStyleDeclaration | TreeNode | Node;
|
|
3
|
-
} & {
|
|
4
|
-
xmlns?: string;
|
|
5
|
-
style?: Partial<CSSStyleDeclaration>;
|
|
6
|
-
textContent?: string | Node;
|
|
7
|
-
children?: TreeNode;
|
|
8
|
-
};
|
|
9
|
-
export declare function createElement(tagName: string, content: TreeNode & {
|
|
10
|
-
xmlns: string;
|
|
11
|
-
}, container?: Node): SVGElement;
|
|
12
|
-
export declare function createElement(tagName: string, content?: TreeNode, container?: Node): HTMLElement;
|
|
13
|
-
export default createElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function makeDraggable(element: HTMLElement | null, onDrag: (dx: number, dy: number, x: number, y: number) => void, onStart?: (x: number, y: number) => void, onEnd?: (x: number, y: number) => void, threshold?: number, mouseButton?: number, touchDelay?: number): () => void;
|
package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/event-emitter.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type GeneralEventTypes = {
|
|
2
|
-
[EventName: string]: unknown[];
|
|
3
|
-
};
|
|
4
|
-
type EventListener<EventTypes extends GeneralEventTypes, EventName extends keyof EventTypes> = (...args: EventTypes[EventName]) => void;
|
|
5
|
-
/** A simple event emitter that can be used to listen to and emit events. */
|
|
6
|
-
declare class EventEmitter<EventTypes extends GeneralEventTypes> {
|
|
7
|
-
private listeners;
|
|
8
|
-
/** Subscribe to an event. Returns an unsubscribe function. */
|
|
9
|
-
on<EventName extends keyof EventTypes>(event: EventName, listener: EventListener<EventTypes, EventName>, options?: {
|
|
10
|
-
once?: boolean;
|
|
11
|
-
}): () => void;
|
|
12
|
-
/** Unsubscribe from an event */
|
|
13
|
-
un<EventName extends keyof EventTypes>(event: EventName, listener: EventListener<EventTypes, EventName>): void;
|
|
14
|
-
/** Subscribe to an event only once */
|
|
15
|
-
once<EventName extends keyof EventTypes>(event: EventName, listener: EventListener<EventTypes, EventName>): () => void;
|
|
16
|
-
/** Clear all events */
|
|
17
|
-
unAll(): void;
|
|
18
|
-
/** Emit an event */
|
|
19
|
-
protected emit<EventName extends keyof EventTypes>(eventName: EventName, ...args: EventTypes[EventName]): void;
|
|
20
|
-
}
|
|
21
|
-
export default EventEmitter;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import EventEmitter, { type GeneralEventTypes } from './event-emitter';
|
|
2
|
-
type PlayerOptions = {
|
|
3
|
-
media?: HTMLMediaElement;
|
|
4
|
-
mediaControls?: boolean;
|
|
5
|
-
autoplay?: boolean;
|
|
6
|
-
playbackRate?: number;
|
|
7
|
-
};
|
|
8
|
-
declare class Player<T extends GeneralEventTypes> extends EventEmitter<T> {
|
|
9
|
-
protected media: HTMLMediaElement;
|
|
10
|
-
private isExternalMedia;
|
|
11
|
-
constructor(options: PlayerOptions);
|
|
12
|
-
protected onMediaEvent<K extends keyof HTMLElementEventMap>(event: K, callback: (ev: HTMLElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): () => void;
|
|
13
|
-
protected getSrc(): string;
|
|
14
|
-
private revokeSrc;
|
|
15
|
-
private canPlayType;
|
|
16
|
-
protected setSrc(url: string, blob?: Blob): void;
|
|
17
|
-
protected destroy(): void;
|
|
18
|
-
protected setMediaElement(element: HTMLMediaElement): void;
|
|
19
|
-
/** Start playing the audio */
|
|
20
|
-
play(): Promise<void>;
|
|
21
|
-
/** Pause the audio */
|
|
22
|
-
pause(): void;
|
|
23
|
-
/** Check if the audio is playing */
|
|
24
|
-
isPlaying(): boolean;
|
|
25
|
-
/** Jump to a specific time in the audio (in seconds) */
|
|
26
|
-
setTime(time: number): void;
|
|
27
|
-
/** Get the duration of the audio in seconds */
|
|
28
|
-
getDuration(): number;
|
|
29
|
-
/** Get the current audio position in seconds */
|
|
30
|
-
getCurrentTime(): number;
|
|
31
|
-
/** Get the audio volume */
|
|
32
|
-
getVolume(): number;
|
|
33
|
-
/** Set the audio volume */
|
|
34
|
-
setVolume(volume: number): void;
|
|
35
|
-
/** Get the audio muted state */
|
|
36
|
-
getMuted(): boolean;
|
|
37
|
-
/** Mute or unmute the audio */
|
|
38
|
-
setMuted(muted: boolean): void;
|
|
39
|
-
/** Get the playback speed */
|
|
40
|
-
getPlaybackRate(): number;
|
|
41
|
-
/** Check if the audio is seeking */
|
|
42
|
-
isSeeking(): boolean;
|
|
43
|
-
/** Set the playback speed, pass an optional false to NOT preserve the pitch */
|
|
44
|
-
setPlaybackRate(rate: number, preservePitch?: boolean): void;
|
|
45
|
-
/** Get the HTML media element */
|
|
46
|
-
getMediaElement(): HTMLMediaElement;
|
|
47
|
-
/** Set a sink id to change the audio output device */
|
|
48
|
-
setSinkId(sinkId: string): Promise<void>;
|
|
49
|
-
}
|
|
50
|
-
export default Player;
|
package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/envelope.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Envelope is a visual UI for controlling the audio volume and add fade-in and fade-out effects.
|
|
3
|
-
*/
|
|
4
|
-
import BasePlugin, { type BasePluginEvents } from '../base-plugin';
|
|
5
|
-
export type EnvelopePoint = {
|
|
6
|
-
id?: string;
|
|
7
|
-
time: number;
|
|
8
|
-
volume: number;
|
|
9
|
-
};
|
|
10
|
-
export type EnvelopePluginOptions = {
|
|
11
|
-
points?: any;
|
|
12
|
-
volume?: number;
|
|
13
|
-
lineWidth?: string;
|
|
14
|
-
lineColor?: string;
|
|
15
|
-
dragLine?: boolean;
|
|
16
|
-
dragPointSize?: number;
|
|
17
|
-
dragPointFill?: string;
|
|
18
|
-
dragPointStroke?: string;
|
|
19
|
-
};
|
|
20
|
-
declare const defaultOptions: {
|
|
21
|
-
points: any;
|
|
22
|
-
lineWidth: number;
|
|
23
|
-
lineColor: string;
|
|
24
|
-
dragPointSize: number;
|
|
25
|
-
dragPointFill: string;
|
|
26
|
-
dragPointStroke: string;
|
|
27
|
-
};
|
|
28
|
-
type Options = EnvelopePluginOptions & typeof defaultOptions;
|
|
29
|
-
export type EnvelopePluginEvents = BasePluginEvents & {
|
|
30
|
-
'points-change': [newPoints: EnvelopePoint[]];
|
|
31
|
-
'volume-change': [volume: number];
|
|
32
|
-
};
|
|
33
|
-
declare class EnvelopePlugin extends BasePlugin<EnvelopePluginEvents, EnvelopePluginOptions> {
|
|
34
|
-
protected options: Options;
|
|
35
|
-
private polyline;
|
|
36
|
-
private points;
|
|
37
|
-
private throttleTimeout;
|
|
38
|
-
private volume;
|
|
39
|
-
/**
|
|
40
|
-
* Create a new Envelope plugin.
|
|
41
|
-
*/
|
|
42
|
-
constructor(options: EnvelopePluginOptions);
|
|
43
|
-
static create(options: EnvelopePluginOptions): EnvelopePlugin;
|
|
44
|
-
/**
|
|
45
|
-
* Add an envelope point with a given time and volume.
|
|
46
|
-
*/
|
|
47
|
-
addPoint(point: EnvelopePoint): void;
|
|
48
|
-
/**
|
|
49
|
-
* Remove an envelope point.
|
|
50
|
-
*/
|
|
51
|
-
removePoint(point: EnvelopePoint): void;
|
|
52
|
-
/**
|
|
53
|
-
* Get all envelope points. Should not be modified directly.
|
|
54
|
-
*/
|
|
55
|
-
getPoints(): EnvelopePoint[];
|
|
56
|
-
/**
|
|
57
|
-
* Set new envelope points.
|
|
58
|
-
*/
|
|
59
|
-
setPoints(newPoints: EnvelopePoint[]): void;
|
|
60
|
-
/**
|
|
61
|
-
* Destroy the plugin instance.
|
|
62
|
-
*/
|
|
63
|
-
destroy(): void;
|
|
64
|
-
/**
|
|
65
|
-
* Get the envelope volume.
|
|
66
|
-
*/
|
|
67
|
-
getCurrentVolume(): number;
|
|
68
|
-
/**
|
|
69
|
-
* Set the envelope volume. 0..1 (more than 1 will boost the volume).
|
|
70
|
-
*/
|
|
71
|
-
setVolume(floatValue: number): void;
|
|
72
|
-
/** Called by wavesurfer, don't call manually */
|
|
73
|
-
onInit(): void;
|
|
74
|
-
private emitPoints;
|
|
75
|
-
private initPolyline;
|
|
76
|
-
private addPolyPoint;
|
|
77
|
-
private onTimeUpdate;
|
|
78
|
-
}
|
|
79
|
-
export default EnvelopePlugin;
|
package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/hover.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Hover plugin follows the mouse and shows a timestamp
|
|
3
|
-
*/
|
|
4
|
-
import BasePlugin, { type BasePluginEvents } from '../base-plugin';
|
|
5
|
-
export type HoverPluginOptions = {
|
|
6
|
-
lineColor?: string;
|
|
7
|
-
lineWidth?: string | number;
|
|
8
|
-
labelColor?: string;
|
|
9
|
-
labelSize?: string | number;
|
|
10
|
-
labelBackground?: string;
|
|
11
|
-
formatTimeCallback?: (seconds: number) => string;
|
|
12
|
-
};
|
|
13
|
-
declare const defaultOptions: {
|
|
14
|
-
lineWidth: number;
|
|
15
|
-
labelSize: number;
|
|
16
|
-
formatTimeCallback(seconds: number): string;
|
|
17
|
-
};
|
|
18
|
-
export type HoverPluginEvents = BasePluginEvents & {
|
|
19
|
-
hover: [relX: number];
|
|
20
|
-
};
|
|
21
|
-
declare class HoverPlugin extends BasePlugin<HoverPluginEvents, HoverPluginOptions> {
|
|
22
|
-
protected options: HoverPluginOptions & typeof defaultOptions;
|
|
23
|
-
private wrapper;
|
|
24
|
-
private label;
|
|
25
|
-
private unsubscribe;
|
|
26
|
-
constructor(options?: HoverPluginOptions);
|
|
27
|
-
static create(options?: HoverPluginOptions): HoverPlugin;
|
|
28
|
-
private addUnits;
|
|
29
|
-
/** Called by wavesurfer, don't call manually */
|
|
30
|
-
onInit(): void;
|
|
31
|
-
private onPointerMove;
|
|
32
|
-
private onPointerLeave;
|
|
33
|
-
/** Unmount */
|
|
34
|
-
destroy(): void;
|
|
35
|
-
}
|
|
36
|
-
export default HoverPlugin;
|
package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/minimap.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Minimap is a tiny copy of the main waveform serving as a navigation tool.
|
|
3
|
-
*/
|
|
4
|
-
import BasePlugin, { type BasePluginEvents } from '../base-plugin';
|
|
5
|
-
import { type WaveSurferOptions } from '../wavesurfer';
|
|
6
|
-
export type MinimapPluginOptions = {
|
|
7
|
-
overlayColor?: string;
|
|
8
|
-
insertPosition?: InsertPosition;
|
|
9
|
-
} & Partial<WaveSurferOptions>;
|
|
10
|
-
declare const defaultOptions: {
|
|
11
|
-
height: number;
|
|
12
|
-
overlayColor: string;
|
|
13
|
-
insertPosition: string;
|
|
14
|
-
};
|
|
15
|
-
export type MinimapPluginEvents = BasePluginEvents & {
|
|
16
|
-
/** An alias of timeupdate but only when the audio is playing */
|
|
17
|
-
audioprocess: [currentTime: number];
|
|
18
|
-
/** When the user clicks on the waveform */
|
|
19
|
-
click: [relativeX: number, relativeY: number];
|
|
20
|
-
/** When the user double-clicks on the waveform */
|
|
21
|
-
dblclick: [relativeX: number, relativeY: number];
|
|
22
|
-
/** When the audio has been decoded */
|
|
23
|
-
decode: [duration: number];
|
|
24
|
-
/** When the user drags the cursor */
|
|
25
|
-
drag: [relativeX: number];
|
|
26
|
-
/** When the user ends dragging the cursor */
|
|
27
|
-
dragend: [relativeX: number];
|
|
28
|
-
/** When the user starts dragging the cursor */
|
|
29
|
-
dragstart: [relativeX: number];
|
|
30
|
-
/** When the user interacts with the waveform (i.g. clicks or drags on it) */
|
|
31
|
-
interaction: [];
|
|
32
|
-
/** After the minimap is created */
|
|
33
|
-
init: [];
|
|
34
|
-
/** When the audio is both decoded and can play */
|
|
35
|
-
ready: [];
|
|
36
|
-
/** When visible waveform is drawn */
|
|
37
|
-
redraw: [];
|
|
38
|
-
/** When all audio channel chunks of the waveform have drawn */
|
|
39
|
-
redrawcomplete: [];
|
|
40
|
-
/** When the user seeks to a new position */
|
|
41
|
-
seeking: [currentTime: number];
|
|
42
|
-
/** On audio position change, fires continuously during playback */
|
|
43
|
-
timeupdate: [currentTime: number];
|
|
44
|
-
};
|
|
45
|
-
declare class MinimapPlugin extends BasePlugin<MinimapPluginEvents, MinimapPluginOptions> {
|
|
46
|
-
protected options: MinimapPluginOptions & typeof defaultOptions;
|
|
47
|
-
private minimapWrapper;
|
|
48
|
-
private miniWavesurfer;
|
|
49
|
-
private overlay;
|
|
50
|
-
private container;
|
|
51
|
-
constructor(options: MinimapPluginOptions);
|
|
52
|
-
static create(options: MinimapPluginOptions): MinimapPlugin;
|
|
53
|
-
/** Called by wavesurfer, don't call manually */
|
|
54
|
-
onInit(): void;
|
|
55
|
-
private initMinimapWrapper;
|
|
56
|
-
private initOverlay;
|
|
57
|
-
private initMinimap;
|
|
58
|
-
private getOverlayWidth;
|
|
59
|
-
private onRedraw;
|
|
60
|
-
private onScroll;
|
|
61
|
-
private initWaveSurferEvents;
|
|
62
|
-
/** Unmount */
|
|
63
|
-
destroy(): void;
|
|
64
|
-
}
|
|
65
|
-
export default MinimapPlugin;
|
package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/record.d.ts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Record audio from the microphone with a real-time waveform preview
|
|
3
|
-
*/
|
|
4
|
-
import BasePlugin, { type BasePluginEvents } from '../base-plugin';
|
|
5
|
-
export type RecordPluginOptions = {
|
|
6
|
-
/** The MIME type to use when recording audio */
|
|
7
|
-
mimeType?: MediaRecorderOptions['mimeType'];
|
|
8
|
-
/** The audio bitrate to use when recording audio, defaults to 128000 to avoid a VBR encoding. */
|
|
9
|
-
audioBitsPerSecond?: MediaRecorderOptions['audioBitsPerSecond'];
|
|
10
|
-
/** Whether to render the recorded audio at the end, true by default */
|
|
11
|
-
renderRecordedAudio?: boolean;
|
|
12
|
-
/** Whether to render the scrolling waveform, false by default */
|
|
13
|
-
scrollingWaveform?: boolean;
|
|
14
|
-
/** The duration of the scrolling waveform window, defaults to 5 seconds */
|
|
15
|
-
scrollingWaveformWindow?: number;
|
|
16
|
-
/** Accumulate and render the waveform data as the audio is being recorded, false by default */
|
|
17
|
-
continuousWaveform?: boolean;
|
|
18
|
-
/** The duration of the continuous waveform, in seconds */
|
|
19
|
-
continuousWaveformDuration?: number;
|
|
20
|
-
/** The timeslice to use for the media recorder */
|
|
21
|
-
mediaRecorderTimeslice?: number;
|
|
22
|
-
};
|
|
23
|
-
export type RecordPluginDeviceOptions = {
|
|
24
|
-
/** The device ID of the microphone to use */
|
|
25
|
-
deviceId?: string | {
|
|
26
|
-
exact: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export type RecordPluginEvents = BasePluginEvents & {
|
|
30
|
-
/** Fires when the recording starts */
|
|
31
|
-
'record-start': [];
|
|
32
|
-
/** Fires when the recording is paused */
|
|
33
|
-
'record-pause': [blob: Blob];
|
|
34
|
-
/** Fires when the recording is resumed */
|
|
35
|
-
'record-resume': [];
|
|
36
|
-
'record-end': [blob: Blob];
|
|
37
|
-
/** Fires continuously while recording */
|
|
38
|
-
'record-progress': [duration: number];
|
|
39
|
-
/** On every new recorded chunk */
|
|
40
|
-
'record-data-available': [blob: Blob];
|
|
41
|
-
};
|
|
42
|
-
type MicStream = {
|
|
43
|
-
onDestroy: () => void;
|
|
44
|
-
onEnd: () => void;
|
|
45
|
-
};
|
|
46
|
-
declare class RecordPlugin extends BasePlugin<RecordPluginEvents, RecordPluginOptions> {
|
|
47
|
-
private stream;
|
|
48
|
-
private mediaRecorder;
|
|
49
|
-
private dataWindow;
|
|
50
|
-
private isWaveformPaused;
|
|
51
|
-
private originalOptions?;
|
|
52
|
-
private timer;
|
|
53
|
-
private lastStartTime;
|
|
54
|
-
private lastDuration;
|
|
55
|
-
private duration;
|
|
56
|
-
/** Create an instance of the Record plugin */
|
|
57
|
-
constructor(options: RecordPluginOptions);
|
|
58
|
-
/** Create an instance of the Record plugin */
|
|
59
|
-
static create(options?: RecordPluginOptions): RecordPlugin;
|
|
60
|
-
renderMicStream(stream: MediaStream): MicStream;
|
|
61
|
-
/** Request access to the microphone and start monitoring incoming audio */
|
|
62
|
-
startMic(options?: RecordPluginDeviceOptions): Promise<MediaStream>;
|
|
63
|
-
/** Stop monitoring incoming audio */
|
|
64
|
-
stopMic(): void;
|
|
65
|
-
/** Start recording audio from the microphone */
|
|
66
|
-
startRecording(options?: RecordPluginDeviceOptions): Promise<void>;
|
|
67
|
-
/** Get the duration of the recording */
|
|
68
|
-
getDuration(): number;
|
|
69
|
-
/** Check if the audio is being recorded */
|
|
70
|
-
isRecording(): boolean;
|
|
71
|
-
isPaused(): boolean;
|
|
72
|
-
isActive(): boolean;
|
|
73
|
-
/** Stop the recording */
|
|
74
|
-
stopRecording(): void;
|
|
75
|
-
/** Pause the recording */
|
|
76
|
-
pauseRecording(): void;
|
|
77
|
-
/** Resume the recording */
|
|
78
|
-
resumeRecording(): void;
|
|
79
|
-
/** Get a list of available audio devices
|
|
80
|
-
* You can use this to get the device ID of the microphone to use with the startMic and startRecording methods
|
|
81
|
-
* Will return an empty array if the browser doesn't support the MediaDevices API or if the user has not granted access to the microphone
|
|
82
|
-
* You can ask for permission to the microphone by calling startMic
|
|
83
|
-
*/
|
|
84
|
-
static getAvailableAudioDevices(): Promise<MediaDeviceInfo[]>;
|
|
85
|
-
/** Destroy the plugin */
|
|
86
|
-
destroy(): void;
|
|
87
|
-
private applyOriginalOptionsIfNeeded;
|
|
88
|
-
}
|
|
89
|
-
export default RecordPlugin;
|