@cometchat/chat-uikit-react 5.0.0-beta1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/dist/assets/Send.svg +3 -0
- package/dist/assets/loading.svg +5 -16
- package/dist/index.d.ts +1159 -953
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatCallButtons.css +1 -1
- package/dist/styles/CometChatCallLogs.css +3 -3
- package/dist/styles/{AIConversationStarter.css → CometChatConversationStarter.css} +2 -2
- package/dist/styles/{components/AIConversationSummary.css → CometChatConversationSummary.css} +12 -12
- package/dist/styles/CometChatConversations.css +10 -10
- package/dist/styles/CometChatEditPreview.css +1 -0
- package/dist/styles/CometChatFileBubble.css +2 -0
- package/dist/styles/CometChatGroupMembers.css +5 -5
- package/dist/styles/CometChatIncomingCall.css +1 -1
- package/dist/styles/CometChatList.css +15 -22
- package/dist/styles/CometChatListItem.css +2 -2
- package/dist/styles/CometChatMessageComposer.css +48 -40
- package/dist/styles/CometChatMessageHeader.css +32 -4
- package/dist/styles/CometChatMessageInformation.css +3 -2
- package/dist/styles/CometChatMessageList.css +6 -5
- package/dist/styles/CometChatOutgoingCall.css +5 -0
- package/dist/styles/{AISmartReplies.css → CometChatSmartReplies.css} +72 -79
- package/dist/styles/PollsBubble.css +7 -1
- package/dist/styles/components/CometChatCallButtons.css +1 -1
- package/dist/styles/components/CometChatCallLogs.css +3 -3
- package/dist/styles/components/{AIConversationStarter.css → CometChatConversationStarter.css} +2 -2
- package/dist/styles/{AIConversationSummary.css → components/CometChatConversationSummary.css} +12 -12
- package/dist/styles/components/CometChatConversations.css +10 -10
- package/dist/styles/components/CometChatEditPreview.css +1 -0
- package/dist/styles/components/CometChatFileBubble.css +2 -0
- package/dist/styles/components/CometChatGroupMembers.css +5 -5
- package/dist/styles/components/CometChatIncomingCall.css +1 -1
- package/dist/styles/components/CometChatList.css +15 -22
- package/dist/styles/components/CometChatListItem.css +2 -2
- package/dist/styles/components/CometChatMessageComposer.css +48 -40
- package/dist/styles/components/CometChatMessageHeader.css +32 -4
- package/dist/styles/components/CometChatMessageInformation.css +3 -2
- package/dist/styles/components/CometChatMessageList.css +6 -5
- package/dist/styles/components/CometChatOutgoingCall.css +5 -0
- package/dist/styles/components/{AISmartReplies.css → CometChatSmartReplies.css} +72 -79
- package/dist/styles/components/PollsBubble.css +7 -1
- package/dist/styles/components/index.css +4 -3
- package/dist/styles/index.css +4 -3
- package/dist/types/CometChatCustomHooks.d.ts +1 -1
- package/dist/types/CometChatUIKit/CometChatUIKit.d.ts +0 -6
- package/dist/types/CometChatUIKit/UIKitSettings.d.ts +0 -22
- package/dist/types/Enums/Enums.d.ts +9 -0
- package/dist/types/components/BaseComponents/CometChatConversationStarter/CometChatConversationStarter.d.ts +6 -0
- package/dist/types/components/BaseComponents/CometChatConversationSummary/CometChatConversationSummary.d.ts +6 -0
- package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +12 -12
- package/dist/types/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +3 -1
- package/dist/types/components/BaseComponents/CometChatSmartReplies/CometChatSmartReplies.d.ts +7 -0
- package/dist/types/components/Calling/CallButtonConfiguration.d.ts +1 -1
- package/dist/types/components/Calling/CallingExtensionDecorator.d.ts +2 -2
- package/dist/types/components/Calling/CometChatCallButtons/CometChatCallButtons.d.ts +30 -12
- package/dist/types/components/Calling/CometChatCallButtons/useCallButtons.d.ts +1 -1
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +50 -38
- package/dist/types/components/Calling/CometChatCallLogs/useCometChatCallLogs.d.ts +1 -1
- package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +48 -26
- package/dist/types/components/Calling/CometChatIncomingCall/useCometChatIncomingCall.d.ts +1 -1
- package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +31 -15
- package/dist/types/components/Calling/CometChatOutgoingCall/useCometChatOutgoingCall.d.ts +1 -1
- package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +7 -3
- package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +88 -87
- package/dist/types/components/CometChatConversations/controller.d.ts +10 -8
- package/dist/types/components/CometChatConversations/useCometChatConversations.d.ts +2 -5
- package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +94 -76
- package/dist/types/components/CometChatGroupMembers/useCometChatGroupMembers.d.ts +2 -2
- package/dist/types/components/CometChatGroups/CometChatGroups.d.ts +74 -62
- package/dist/types/components/CometChatGroups/useCometChatGroups.d.ts +1 -0
- package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +107 -49
- package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +1 -1
- package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +77 -16
- package/dist/types/components/CometChatMessageHeader/useCometChatMessageHeader.d.ts +1 -1
- package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +133 -55
- package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +3 -1
- package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
- package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +34 -2
- package/dist/types/components/CometChatUsers/CometChatUsers.d.ts +88 -89
- package/dist/types/components/CometChatUsers/useCometChatUsers.d.ts +2 -1
- package/dist/types/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +4 -3
- package/dist/types/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +4 -3
- package/dist/types/components/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +3 -1
- package/dist/types/components/Extensions/Polls/PollsBubble.d.ts +5 -0
- package/dist/types/components/Extensions/Polls/PollsExtensionDecorator.d.ts +4 -3
- package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -3
- package/dist/types/components/Reactions/CometChatReactionInfo/CometChatReactionInfo.d.ts +3 -2
- package/dist/types/components/Reactions/CometChatReactionList/CometChatReactionList.d.ts +3 -2
- package/dist/types/components/Reactions/CometChatReactions/CometChatReactions.d.ts +3 -2
- package/dist/types/events/CometChatUIEvents.d.ts +2 -0
- package/dist/types/index.d.ts +8 -7
- package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +129 -115
- package/dist/types/utils/DataSource.d.ts +17 -18
- package/dist/types/utils/DataSourceDecorator.d.ts +17 -18
- package/dist/types/utils/GroupMemberUtils.d.ts +1 -1
- package/dist/types/utils/MessageUtils.d.ts +1 -1
- package/dist/types/utils/MessagesDataSource.d.ts +29 -16
- package/dist/types/utils/util.d.ts +5 -0
- package/package.json +1 -1
- package/screenshots/sample_app_overview.png +0 -0
- package/dist/Collaborative_Whiteboard_Dark.png +0 -0
- package/dist/Collaborative_Whiteboard_Light.png +0 -0
- package/dist/assets/ai-empty.svg +0 -22
- package/dist/assets/ai-error.svg +0 -3
- package/dist/assets/heart-reaction.png +0 -0
- package/dist/assets/send.svg +0 -12
- package/dist/styles/AICard.css +0 -30
- package/dist/styles/CometChatBadge.css +0 -15
- package/dist/styles/CometChatCard.css +0 -41
- package/dist/styles/components/AICard.css +0 -30
- package/dist/styles/components/CometChatBadge.css +0 -15
- package/dist/styles/components/CometChatCard.css +0 -41
- package/dist/types/CometChatUIKit/CometChatUIKitSharedSettings.d.ts +0 -8
- package/dist/types/components/AI/AIBaseConfiguration.d.ts +0 -51
- package/dist/types/components/AI/AIConversationStarter/AIConversationStarterConfiguration.d.ts +0 -20
- package/dist/types/components/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +0 -18
- package/dist/types/components/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +0 -8
- package/dist/types/components/AI/AIConversationStarter/AIConversationStarterView.d.ts +0 -8
- package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryConfiguration.d.ts +0 -31
- package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +0 -22
- package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +0 -8
- package/dist/types/components/AI/AIConversationSummary/AIConversationSummaryView.d.ts +0 -9
- package/dist/types/components/AI/AIExtensionDataSource.d.ts +0 -6
- package/dist/types/components/AI/AISmartReplies/AISmartRepliesConfiguration.d.ts +0 -28
- package/dist/types/components/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +0 -21
- package/dist/types/components/AI/AISmartReplies/AISmartRepliesExtension.d.ts +0 -8
- package/dist/types/components/AI/AISmartReplies/AISmartRepliesView.d.ts +0 -11
- package/dist/types/components/BaseComponents/CometChatBadge/CometChatBadge.d.ts +0 -10
- package/dist/types/components/BaseComponents/CometChatCard/CometChatCard.d.ts +0 -15
- package/dist/types/components/BaseComponents/CometChatLiveReaction/CometChatLiveReaction.d.ts +0 -5
- package/dist/types/components/BaseComponents/CometChatLiveReaction/useLiveReactionHook.d.ts +0 -19
- package/dist/types/components/BaseComponents/CometChatQuickView/CometChatQuickView.d.ts +0 -9
- package/dist/types/components/BaseComponents/CometChatSingleSelect/CometChatSingleSelect.d.ts +0 -8
- package/dist/types/components/CometChatUserMemberWrapper/index.d.ts +0 -23
- package/dist/types/modals/InteractiveActions/APIAction.d.ts +0 -108
- package/dist/types/modals/InteractiveActions/CustomAction.d.ts +0 -12
- package/dist/types/modals/InteractiveActions/URLNavigationAction.d.ts +0 -30
- package/dist/types/modals/InteractiveActions/index.d.ts +0 -3
- package/dist/types/modals/InteractiveElements/BaseInputElement.d.ts +0 -50
- package/dist/types/modals/InteractiveElements/BaseInteractiveElement.d.ts +0 -25
- package/dist/types/modals/InteractiveElements/ButtonElement.d.ts +0 -48
- package/dist/types/modals/InteractiveElements/CheckboxElement.d.ts +0 -46
- package/dist/types/modals/InteractiveElements/DateTimePickerElement.d.ts +0 -124
- package/dist/types/modals/InteractiveElements/DropdownElement.d.ts +0 -55
- package/dist/types/modals/InteractiveElements/LabelElement.d.ts +0 -29
- package/dist/types/modals/InteractiveElements/OptionElement.d.ts +0 -35
- package/dist/types/modals/InteractiveElements/RadioButtonElement.d.ts +0 -54
- package/dist/types/modals/InteractiveElements/SingleSelectElement.d.ts +0 -50
- package/dist/types/modals/InteractiveElements/TextInputElement.d.ts +0 -69
- package/dist/types/modals/InteractiveElements/index.d.ts +0 -11
- package/dist/types/modals/InteractiveEntities/ActionEntity.d.ts +0 -32
- package/dist/types/modals/InteractiveEntities/ElementEntity.d.ts +0 -35
- package/dist/types/modals/InteractiveEntities/index.d.ts +0 -2
- package/dist/types/modals/InteractiveMessage/CardMessage.d.ts +0 -69
- package/dist/types/modals/InteractiveMessage/CustomInteractiveMessage.d.ts +0 -20
- package/dist/types/modals/InteractiveMessage/FormMessage.d.ts +0 -75
- package/dist/types/modals/InteractiveMessage/SchedulerMessage.d.ts +0 -230
- package/dist/types/modals/InteractiveMessage/index.d.ts +0 -5
- package/dist/types/src/CometChatCustomHooks.d.ts +0 -27
- package/dist/types/src/CometChatUIKit/CometChatCalls.d.ts +0 -1
- package/dist/types/src/CometChatUIKit/CometChatUIKit.d.ts +0 -147
- package/dist/types/src/CometChatUIKit/CometChatUIKitLoginListener.d.ts +0 -32
- package/dist/types/src/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -81
- package/dist/types/src/CometChatUIKit/UIKitSettings.d.ts +0 -304
- package/dist/types/src/Enums/Enums.d.ts +0 -258
- package/dist/types/src/components/AI/AIBaseConfiguration.d.ts +0 -51
- package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterConfiguration.d.ts +0 -20
- package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +0 -18
- package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterExtension.d.ts +0 -8
- package/dist/types/src/components/AI/AIConversationStarter/AIConversationStarterView.d.ts +0 -8
- package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryConfiguration.d.ts +0 -31
- package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +0 -22
- package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +0 -8
- package/dist/types/src/components/AI/AIConversationSummary/AIConversationSummaryView.d.ts +0 -9
- package/dist/types/src/components/AI/AIExtensionDataSource.d.ts +0 -6
- package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesConfiguration.d.ts +0 -28
- package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +0 -21
- package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesExtension.d.ts +0 -8
- package/dist/types/src/components/AI/AISmartReplies/AISmartRepliesView.d.ts +0 -11
- package/dist/types/src/components/BaseComponents/CometChatActionBubble/CometChatActionBubble.d.ts +0 -8
- package/dist/types/src/components/BaseComponents/CometChatActionSheet/CometChatActionSheet.d.ts +0 -7
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/CometChatAudioBubble.d.ts +0 -6
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/base-plugin.d.ts +0 -21
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/decoder.d.ts +0 -9
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/dom.d.ts +0 -13
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/draggable.d.ts +0 -1
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/event-emitter.d.ts +0 -21
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/fetcher.d.ts +0 -5
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/player.d.ts +0 -50
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/envelope.d.ts +0 -79
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/hover.d.ts +0 -36
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/minimap.d.ts +0 -65
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/record.d.ts +0 -89
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/regions.d.ts +0 -139
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/spectrogram.d.ts +0 -98
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/timeline.d.ts +0 -54
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/plugins/zoom.d.ts +0 -55
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/renderer.d.ts +0 -63
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/timer.d.ts +0 -11
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/wavesurfer.d.ts +0 -223
- package/dist/types/src/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +0 -63
- package/dist/types/src/components/BaseComponents/CometChatAvatar/CometChatAvatar.d.ts +0 -13
- package/dist/types/src/components/BaseComponents/CometChatButton/CometChatButton.d.ts +0 -12
- package/dist/types/src/components/BaseComponents/CometChatCallBubble/CometChatCallBubble.d.ts +0 -12
- package/dist/types/src/components/BaseComponents/CometChatChangeScope/CometChatChangeScope.d.ts +0 -10
- package/dist/types/src/components/BaseComponents/CometChatChangeScope/useCometChatChangeScope.d.ts +0 -10
- package/dist/types/src/components/BaseComponents/CometChatCheckbox/CometChatCheckbox.d.ts +0 -11
- package/dist/types/src/components/BaseComponents/CometChatCheckbox/useCometChatCheckbox.d.ts +0 -11
- package/dist/types/src/components/BaseComponents/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +0 -16
- package/dist/types/src/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +0 -17
- package/dist/types/src/components/BaseComponents/CometChatDate/CometChatDate.d.ts +0 -13
- package/dist/types/src/components/BaseComponents/CometChatDate/useCometChatDate.d.ts +0 -8
- package/dist/types/src/components/BaseComponents/CometChatDeleteBubble/CometChatDeleteBubble.d.ts +0 -14
- package/dist/types/src/components/BaseComponents/CometChatDocumentBubble/CometChatDocumentBubble.d.ts +0 -11
- package/dist/types/src/components/BaseComponents/CometChatDropDown/CometChatDropDown.d.ts +0 -14
- package/dist/types/src/components/BaseComponents/CometChatDropDown/useCometChatDropDown.d.ts +0 -12
- package/dist/types/src/components/BaseComponents/CometChatEditPreview/CometChatEditPreview.d.ts +0 -21
- package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/CometChatEmoji.d.ts +0 -22
- package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +0 -7
- package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/emojis.d.ts +0 -6579
- package/dist/types/src/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +0 -17
- package/dist/types/src/components/BaseComponents/CometChatFileBubble/CometChatFileBubble.d.ts +0 -9
- package/dist/types/src/components/BaseComponents/CometChatFullScreenViewer/CometChatFullScreenViewer.d.ts +0 -23
- package/dist/types/src/components/BaseComponents/CometChatImageBubble/CometChatImageBubble.d.ts +0 -10
- package/dist/types/src/components/BaseComponents/CometChatImageBubble/useCometChatImageBubble.d.ts +0 -7
- package/dist/types/src/components/BaseComponents/CometChatList/CometChatList.d.ts +0 -156
- package/dist/types/src/components/BaseComponents/CometChatList/useCometChatList.d.ts +0 -17
- package/dist/types/src/components/BaseComponents/CometChatListItem/CometChatListItem.d.ts +0 -15
- package/dist/types/src/components/BaseComponents/CometChatListItem/useCometChatListItem.d.ts +0 -12
- package/dist/types/src/components/BaseComponents/CometChatLiveReaction/CometChatLiveReaction.d.ts +0 -5
- package/dist/types/src/components/BaseComponents/CometChatLiveReaction/useLiveReactionHook.d.ts +0 -19
- package/dist/types/src/components/BaseComponents/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +0 -8
- package/dist/types/src/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -28
- package/dist/types/src/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +0 -24
- package/dist/types/src/components/BaseComponents/CometChatRadioButton/CometChatRadioButton.d.ts +0 -14
- package/dist/types/src/components/BaseComponents/CometChatRadioButton/useCometChatRadioButton.d.ts +0 -13
- package/dist/types/src/components/BaseComponents/CometChatSearchBar/CometChatSearchBar.d.ts +0 -9
- package/dist/types/src/components/BaseComponents/CometChatSearchBar/useCometChatSearchBar.d.ts +0 -10
- package/dist/types/src/components/BaseComponents/CometChatTextBubble/CometChatTextBubble.d.ts +0 -8
- package/dist/types/src/components/BaseComponents/CometChatTextBubble/useCometChatTextBubble.d.ts +0 -6
- package/dist/types/src/components/BaseComponents/CometChatToast/CometChatToast.d.ts +0 -27
- package/dist/types/src/components/BaseComponents/CometChatVideoBubble/CometChatVideoBubble.d.ts +0 -9
- package/dist/types/src/components/BaseComponents/CometChatVideoBubble/useCometChatVideoBubble.d.ts +0 -6
- package/dist/types/src/components/Calling/CallButtonConfiguration.d.ts +0 -10
- package/dist/types/src/components/Calling/CallingConfiguration.d.ts +0 -7
- package/dist/types/src/components/Calling/CallingExtension.d.ts +0 -9
- package/dist/types/src/components/Calling/CallingExtensionDecorator.d.ts +0 -29
- package/dist/types/src/components/Calling/CometChatCallButtons/CometChatCallButtons.d.ts +0 -36
- package/dist/types/src/components/Calling/CometChatCallButtons/useCallButtons.d.ts +0 -6
- package/dist/types/src/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +0 -71
- package/dist/types/src/components/Calling/CometChatCallLogs/useCometChatCallLogs.d.ts +0 -2
- package/dist/types/src/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -59
- package/dist/types/src/components/Calling/CometChatIncomingCall/useCometChatIncomingCall.d.ts +0 -2
- package/dist/types/src/components/Calling/CometChatOngoingCall/CometChatOngoingCall.d.ts +0 -10
- package/dist/types/src/components/Calling/CometChatOngoingCall/useCometChatOngoingCall.d.ts +0 -2
- package/dist/types/src/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -36
- package/dist/types/src/components/Calling/CometChatOutgoingCall/useCometChatOutgoingCall.d.ts +0 -7
- package/dist/types/src/components/Calling/OutgoingCallConfiguration.d.ts +0 -8
- package/dist/types/src/components/Calling/Utils/utils.d.ts +0 -7
- package/dist/types/src/components/CometChatConversations/CometChatConversations.d.ts +0 -219
- package/dist/types/src/components/CometChatConversations/controller.d.ts +0 -74
- package/dist/types/src/components/CometChatConversations/useCometChatConversations.d.ts +0 -25
- package/dist/types/src/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +0 -178
- package/dist/types/src/components/CometChatGroupMembers/controller.d.ts +0 -38
- package/dist/types/src/components/CometChatGroupMembers/useCometChatGroupMembers.d.ts +0 -22
- package/dist/types/src/components/CometChatGroups/CometChatGroups.d.ts +0 -150
- package/dist/types/src/components/CometChatGroups/controller.d.ts +0 -44
- package/dist/types/src/components/CometChatGroups/useCometChatGroups.d.ts +0 -15
- package/dist/types/src/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +0 -166
- package/dist/types/src/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +0 -42
- package/dist/types/src/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +0 -29
- package/dist/types/src/components/CometChatMessageHeader/useCometChatMessageHeader.d.ts +0 -3
- package/dist/types/src/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +0 -6
- package/dist/types/src/components/CometChatMessageList/CometChatMessageList.d.ts +0 -132
- package/dist/types/src/components/CometChatMessageList/CometChatMessageListController.d.ts +0 -48
- package/dist/types/src/components/CometChatMessageList/useCometChatMessageList.d.ts +0 -6
- package/dist/types/src/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +0 -11
- package/dist/types/src/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +0 -21
- package/dist/types/src/components/CometChatUsers/CometChatUsers.d.ts +0 -193
- package/dist/types/src/components/CometChatUsers/controller.d.ts +0 -28
- package/dist/types/src/components/CometChatUsers/useCometChatUsers.d.ts +0 -19
- package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +0 -35
- package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentConstants.d.ts +0 -15
- package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +0 -37
- package/dist/types/src/components/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +0 -116
- package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +0 -35
- package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConstants.d.ts +0 -13
- package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +0 -29
- package/dist/types/src/components/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +0 -94
- package/dist/types/src/components/Extensions/ExtensionsDataSource.d.ts +0 -29
- package/dist/types/src/components/Extensions/ExtensionsId.d.ts +0 -22
- package/dist/types/src/components/Extensions/LinkPreview/LinkPreview.d.ts +0 -37
- package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewConstants.d.ts +0 -11
- package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewExtension.d.ts +0 -24
- package/dist/types/src/components/Extensions/LinkPreview/LinkPreviewExtensionDecorator.d.ts +0 -60
- package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationBubble.d.ts +0 -35
- package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationConstants.d.ts +0 -12
- package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationExtension.d.ts +0 -30
- package/dist/types/src/components/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +0 -53
- package/dist/types/src/components/Extensions/Polls/CreatePolls.d.ts +0 -66
- package/dist/types/src/components/Extensions/Polls/PollsBubble.d.ts +0 -35
- package/dist/types/src/components/Extensions/Polls/PollsConfiguration.d.ts +0 -19
- package/dist/types/src/components/Extensions/Polls/PollsConstants.d.ts +0 -8
- package/dist/types/src/components/Extensions/Polls/PollsExtension.d.ts +0 -8
- package/dist/types/src/components/Extensions/Polls/PollsExtensionDecorator.d.ts +0 -112
- package/dist/types/src/components/Extensions/Stickers/StickersConstants.d.ts +0 -16
- package/dist/types/src/components/Extensions/Stickers/StickersExtension.d.ts +0 -31
- package/dist/types/src/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -112
- package/dist/types/src/components/Extensions/Stickers/StickersKeyboard.d.ts +0 -29
- package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationConstants.d.ts +0 -13
- package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +0 -21
- package/dist/types/src/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +0 -40
- package/dist/types/src/components/Reactions/CometChatReactionInfo/CometChatReactionInfo.d.ts +0 -9
- package/dist/types/src/components/Reactions/CometChatReactionList/CometChatReactionList.d.ts +0 -8
- package/dist/types/src/components/Reactions/CometChatReactions/CometChatReactions.d.ts +0 -12
- package/dist/types/src/constants/CometChatUIKitConstants.d.ts +0 -139
- package/dist/types/src/constants/CometChatUtilityConstants.d.ts +0 -9
- package/dist/types/src/constants/index.d.ts +0 -1
- package/dist/types/src/events/CometChatCallEvents.d.ts +0 -10
- package/dist/types/src/events/CometChatConversationEvents.d.ts +0 -13
- package/dist/types/src/events/CometChatGroupEvents.d.ts +0 -63
- package/dist/types/src/events/CometChatMessageEvents.d.ts +0 -43
- package/dist/types/src/events/CometChatUIEvents.d.ts +0 -59
- package/dist/types/src/events/CometChatUserEvents.d.ts +0 -16
- package/dist/types/src/formatters/CometChatFormatters/CometChatMentionsFormatter/CometChatMentionsFormatter.d.ts +0 -210
- package/dist/types/src/formatters/CometChatFormatters/CometChatTextFormatter.d.ts +0 -268
- package/dist/types/src/formatters/CometChatFormatters/CometChatUrlsFormatter/CometChatUrlsFormatter.d.ts +0 -12
- package/dist/types/src/formatters/index.d.ts +0 -3
- package/dist/types/src/index.d.ts +0 -108
- package/dist/types/src/modals/CometChatActions.d.ts +0 -36
- package/dist/types/src/modals/CometChatActionsIcon.d.ts +0 -38
- package/dist/types/src/modals/CometChatActionsView.d.ts +0 -39
- package/dist/types/src/modals/CometChatMessageComposerAction.d.ts +0 -33
- package/dist/types/src/modals/CometChatMessageOption.d.ts +0 -37
- package/dist/types/src/modals/CometChatMessageTemplate.d.ts +0 -70
- package/dist/types/src/modals/CometChatOption.d.ts +0 -20
- package/dist/types/src/modals/index.d.ts +0 -7
- package/dist/types/src/resources/CometChatLocalize/cometchat-localize.d.ts +0 -5603
- package/dist/types/src/resources/CometChatSoundManager/CometChatSoundManager.d.ts +0 -128
- package/dist/types/src/resources/index.d.ts +0 -1
- package/dist/types/src/utils/CallingDetailsUtils.d.ts +0 -42
- package/dist/types/src/utils/ChatConfigurator.d.ts +0 -12
- package/dist/types/src/utils/ChatSdkEventInitializer.d.ts +0 -6
- package/dist/types/src/utils/ConversationUtils.d.ts +0 -69
- package/dist/types/src/utils/DataSource.d.ts +0 -55
- package/dist/types/src/utils/DataSourceDecorator.d.ts +0 -57
- package/dist/types/src/utils/GroupMemberUtils.d.ts +0 -32
- package/dist/types/src/utils/MessageReceiptUtils.d.ts +0 -44
- package/dist/types/src/utils/MessageUtils.d.ts +0 -55
- package/dist/types/src/utils/MessagesDataSource.d.ts +0 -110
- package/dist/types/src/utils/Storage.d.ts +0 -33
- package/dist/types/src/utils/util.d.ts +0 -26
- package/dist/types/utils/IcsToJson.d.ts +0 -19
- package/dist/types/utils/InteractiveMessageUtils.d.ts +0 -71
- /package/dist/assets/{ai.svg → conversation_summary.svg} +0 -0
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { DateTimePickerMode } from "../../Enums/Enums";
|
|
2
|
-
import { fromJsonType } from "../InteractiveActions/APIAction";
|
|
3
|
-
import { BaseInputElement } from "./BaseInputElement";
|
|
4
|
-
/**
|
|
5
|
-
* Represents a date and time picker element in a user interface.
|
|
6
|
-
*/
|
|
7
|
-
export declare class DateTimePickerElement extends BaseInputElement<string> {
|
|
8
|
-
/**
|
|
9
|
-
* The label for the date-time picker.
|
|
10
|
-
* @type {string}
|
|
11
|
-
*/
|
|
12
|
-
private label;
|
|
13
|
-
/**
|
|
14
|
-
* The mode of the date-time picker (e.g., date, time, or both).
|
|
15
|
-
* @type {DateTimePickerMode}
|
|
16
|
-
*/
|
|
17
|
-
private mode;
|
|
18
|
-
/**
|
|
19
|
-
* The default value for the date-time picker.
|
|
20
|
-
* @type {string}
|
|
21
|
-
*/
|
|
22
|
-
private defaultValue?;
|
|
23
|
-
/**
|
|
24
|
-
* The start date for the date-time picker.
|
|
25
|
-
* @type {string}
|
|
26
|
-
*/
|
|
27
|
-
private from?;
|
|
28
|
-
/**
|
|
29
|
-
* The end date for the date-time picker.
|
|
30
|
-
* @type {string}
|
|
31
|
-
*/
|
|
32
|
-
private to?;
|
|
33
|
-
/**
|
|
34
|
-
* The time zone for the date-time picker.
|
|
35
|
-
* @type {string}
|
|
36
|
-
*/
|
|
37
|
-
private timezoneCode;
|
|
38
|
-
/**
|
|
39
|
-
* The format for the date-time picker.
|
|
40
|
-
* @type {string | undefined}
|
|
41
|
-
*/
|
|
42
|
-
private dateTimeFormat?;
|
|
43
|
-
/**
|
|
44
|
-
* Creates an instance of `DateTimePickerElement`.
|
|
45
|
-
*/
|
|
46
|
-
constructor(elementId: string, label: string, mode: DateTimePickerMode, timezoneCode: string, optional?: boolean);
|
|
47
|
-
/**
|
|
48
|
-
* Returns the label of the date-time picker.
|
|
49
|
-
* @returns {string} The label.
|
|
50
|
-
*/
|
|
51
|
-
getLabel(): string;
|
|
52
|
-
/**
|
|
53
|
-
* Returns the default value of the date-time picker.
|
|
54
|
-
* @returns {string | undefined} The default value.
|
|
55
|
-
*/
|
|
56
|
-
getDefaultValue(): string | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Sets the default value for the date-time picker.
|
|
59
|
-
* @param {string} defaultValue - The default value to set.
|
|
60
|
-
*/
|
|
61
|
-
setDefaultValue(defaultValue: string): void;
|
|
62
|
-
/**
|
|
63
|
-
* Returns the mode of the date-time picker.
|
|
64
|
-
* @returns {DateTimePickerMode} The mode.
|
|
65
|
-
*/
|
|
66
|
-
getMode(): DateTimePickerMode;
|
|
67
|
-
/**
|
|
68
|
-
* Returns the start date of the date-time picker.
|
|
69
|
-
* @returns {string | undefined} The start date.
|
|
70
|
-
*/
|
|
71
|
-
getFrom(): string | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Sets the start date for the date-time picker.
|
|
74
|
-
* @param {string} fromDateTime - The start date to set.
|
|
75
|
-
*/
|
|
76
|
-
setFrom(fromDateTime: string): void;
|
|
77
|
-
/**
|
|
78
|
-
* Returns the end date of the date-time picker.
|
|
79
|
-
* @returns {string | undefined} The end date.
|
|
80
|
-
*/
|
|
81
|
-
getTo(): string | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* Sets the end date for the date-time picker.
|
|
84
|
-
* @param {string} toDateTime - The end date to set.
|
|
85
|
-
*/
|
|
86
|
-
setTo(toDateTime: string): void;
|
|
87
|
-
/**
|
|
88
|
-
* Returns the format of the date-time picker.
|
|
89
|
-
* @returns {string | undefined} The date-time format.
|
|
90
|
-
*/
|
|
91
|
-
getDateTimeFormat(): string | undefined;
|
|
92
|
-
/**
|
|
93
|
-
* Sets the format for the date-time picker.
|
|
94
|
-
* @param {string} dateTimeFormat - The format to set.
|
|
95
|
-
*/
|
|
96
|
-
setDateTimeFormat(dateTimeFormat: string): void;
|
|
97
|
-
/**
|
|
98
|
-
* Formats a given date-time using the date-time format.
|
|
99
|
-
*
|
|
100
|
-
* @param {Date} dateTime - The date-time to format.
|
|
101
|
-
* @returns {string | undefined} The formatted date-time or undefined if formatting fails.
|
|
102
|
-
*/
|
|
103
|
-
formatDateTime(dateTime: Date): string | undefined;
|
|
104
|
-
/**
|
|
105
|
-
* Sets the time zone code for the date-time picker.
|
|
106
|
-
* @param {string} timezoneCode - The time zone code to set.
|
|
107
|
-
*/
|
|
108
|
-
setTimezoneCode(timezoneCode: string): void;
|
|
109
|
-
/**
|
|
110
|
-
* Returns the time zone code for the date-time picker.
|
|
111
|
-
* @returns {string} The time zone code.
|
|
112
|
-
*/
|
|
113
|
-
getTimezoneCode(): string;
|
|
114
|
-
/**
|
|
115
|
-
* Creates a `DateTimePickerElement` from a JSON object.
|
|
116
|
-
*
|
|
117
|
-
* This method initializes a `DateTimePickerElement` using the provided JSON data, including properties such as
|
|
118
|
-
* default value, start and end dates, date-time format, and time zone code.
|
|
119
|
-
*
|
|
120
|
-
* @param {fromJsonType} json - The JSON object containing properties for the `DateTimePickerElement`.
|
|
121
|
-
* @returns {DateTimePickerElement} The constructed `DateTimePickerElement` instance.
|
|
122
|
-
*/
|
|
123
|
-
static fromJSON(json: fromJsonType): DateTimePickerElement;
|
|
124
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { BaseInputElement, OptionElement } from "./index";
|
|
2
|
-
import { fromJsonType } from "../InteractiveActions/APIAction";
|
|
3
|
-
/**
|
|
4
|
-
* Represents a dropdown input element.
|
|
5
|
-
*/
|
|
6
|
-
export declare class DropdownElement extends BaseInputElement<string> {
|
|
7
|
-
/**
|
|
8
|
-
* The label of the input element.
|
|
9
|
-
*/
|
|
10
|
-
private label;
|
|
11
|
-
/**
|
|
12
|
-
* The default value to be selected in the dropdown.
|
|
13
|
-
*/
|
|
14
|
-
private defaultValue?;
|
|
15
|
-
/**
|
|
16
|
-
* The options available for the dropdown input element.
|
|
17
|
-
*/
|
|
18
|
-
private options;
|
|
19
|
-
/**
|
|
20
|
-
* Creates a new instance of DropdownInput.
|
|
21
|
-
* @param elementId - The ID of the input element.
|
|
22
|
-
* @param label - The label of the input element.
|
|
23
|
-
* @param options - The options available for the dropdown input element.
|
|
24
|
-
*/
|
|
25
|
-
constructor(elementId: string, label: string, options?: OptionElement[]);
|
|
26
|
-
/**
|
|
27
|
-
* Gets the label of the input element.
|
|
28
|
-
* @returns The label of the input element.
|
|
29
|
-
*/
|
|
30
|
-
getLabel(): string;
|
|
31
|
-
/**
|
|
32
|
-
* Gets the default value to be selected in the dropdown.
|
|
33
|
-
* @returns The default value to be selected in the dropdown.
|
|
34
|
-
*/
|
|
35
|
-
getDefaultValue(): string | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Sets the default value to be selected in the dropdown.
|
|
38
|
-
* @param defaultValue - The default value to be selected in the dropdown.
|
|
39
|
-
*/
|
|
40
|
-
setDefaultValue(defaultValue: string): void;
|
|
41
|
-
/**
|
|
42
|
-
* Gets the options available for the dropdown input element.
|
|
43
|
-
* @returns The options available for the dropdown input element.
|
|
44
|
-
*/
|
|
45
|
-
getOptions(): OptionElement[];
|
|
46
|
-
/**
|
|
47
|
-
* Creates a `DropdownElement` from a JSON object.
|
|
48
|
-
*
|
|
49
|
-
* Initializes a `DropdownElement` using JSON data for the element ID, label, options, and optional default value.
|
|
50
|
-
*
|
|
51
|
-
* @param {fromJsonType} json - JSON object containing the properties for the dropdown element.
|
|
52
|
-
* @returns {DropdownElement} The `DropdownElement` instance.
|
|
53
|
-
*/
|
|
54
|
-
static fromJSON(json: fromJsonType): DropdownElement;
|
|
55
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ElementEntity } from "../InteractiveEntities/ElementEntity";
|
|
2
|
-
import { fromJsonType } from "../InteractiveActions/APIAction";
|
|
3
|
-
/**
|
|
4
|
-
* Represents a label element.
|
|
5
|
-
*/
|
|
6
|
-
export declare class LabelElement extends ElementEntity {
|
|
7
|
-
/** The text to display in the label. */
|
|
8
|
-
private text;
|
|
9
|
-
/**
|
|
10
|
-
* Creates a new instance of the LabelElement class.
|
|
11
|
-
* @param {string} elementId - The unique identifier of the form element.
|
|
12
|
-
* @param {string} text - The text to display in the label.
|
|
13
|
-
*/
|
|
14
|
-
constructor(elementId: string, text: string);
|
|
15
|
-
/**
|
|
16
|
-
* Returns the text to display in the label.
|
|
17
|
-
* @returns {string} The text to display in the label.
|
|
18
|
-
*/
|
|
19
|
-
getText(): string;
|
|
20
|
-
/**
|
|
21
|
-
* Creates a `LabelElement` from a JSON object.
|
|
22
|
-
*
|
|
23
|
-
* Initializes a `LabelElement` using the provided JSON data for the element ID and text.
|
|
24
|
-
*
|
|
25
|
-
* @param {fromJsonType} json - JSON object containing the properties for the label element.
|
|
26
|
-
* @returns {LabelElement} The `LabelElement` instance.
|
|
27
|
-
*/
|
|
28
|
-
static fromJSON(json: fromJsonType): LabelElement;
|
|
29
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { fromJsonType } from "../InteractiveActions/APIAction";
|
|
2
|
-
/**
|
|
3
|
-
* Represents a option.
|
|
4
|
-
*/
|
|
5
|
-
export declare class OptionElement {
|
|
6
|
-
/** The unique identifier for the option. */
|
|
7
|
-
private label;
|
|
8
|
-
/** The display value for the option. */
|
|
9
|
-
private value;
|
|
10
|
-
/**
|
|
11
|
-
* Creates a new instance of the OptionElement class.
|
|
12
|
-
* @param {string} label - The unique identifier for the option.
|
|
13
|
-
* @param {string} value - The display value for the option.
|
|
14
|
-
*/
|
|
15
|
-
constructor(label: string, value: string);
|
|
16
|
-
/**
|
|
17
|
-
* Returns the unique identifier for the option.
|
|
18
|
-
* @returns {string} The unique identifier for the option.
|
|
19
|
-
*/
|
|
20
|
-
getLabel(): string;
|
|
21
|
-
/**
|
|
22
|
-
* Returns the display value for the option.
|
|
23
|
-
* @returns {string} The display value for the option.
|
|
24
|
-
*/
|
|
25
|
-
getValue(): string;
|
|
26
|
-
/**
|
|
27
|
-
* Creates an `OptionElement` from a JSON object.
|
|
28
|
-
*
|
|
29
|
-
* Initializes an `OptionElement` using the provided JSON data for the label and value.
|
|
30
|
-
*
|
|
31
|
-
* @param {fromJsonType} json - JSON object containing the properties for the option element.
|
|
32
|
-
* @returns {OptionElement} The `OptionElement` instance.
|
|
33
|
-
*/
|
|
34
|
-
static fromJSON(json: fromJsonType): OptionElement;
|
|
35
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { BaseInputElement, OptionElement } from "./index";
|
|
2
|
-
import { fromJsonType } from "../InteractiveActions/APIAction";
|
|
3
|
-
type fromJSONRadioType = fromJsonType & {
|
|
4
|
-
options: OptionElement[] & fromJsonType;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Represents a radio button input element.
|
|
8
|
-
*/
|
|
9
|
-
export declare class RadioButtonElement extends BaseInputElement<string> {
|
|
10
|
-
/** The label of the input element. */
|
|
11
|
-
private label;
|
|
12
|
-
/** The default value of the input element. */
|
|
13
|
-
private defaultValue?;
|
|
14
|
-
/** The options available for the radio input element. */
|
|
15
|
-
private options;
|
|
16
|
-
/**
|
|
17
|
-
* Creates a new instance of the RadioButtonElement class.
|
|
18
|
-
* @param elementId The ID of the radio button element.
|
|
19
|
-
* @param label The label of the radio button element.
|
|
20
|
-
* @param options The options available for the radio button element.
|
|
21
|
-
*/
|
|
22
|
-
constructor(elementId: string, label: string, options?: OptionElement[]);
|
|
23
|
-
/**
|
|
24
|
-
* Gets the label of the input element.
|
|
25
|
-
* @returns The label of the input element.
|
|
26
|
-
*/
|
|
27
|
-
getLabel(): string;
|
|
28
|
-
/**
|
|
29
|
-
* Gets the default value of the input element.
|
|
30
|
-
* @returns The default value of the input element.
|
|
31
|
-
*/
|
|
32
|
-
getDefaultValue(): string | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* Sets the default value of the input element.
|
|
35
|
-
* @param defaultValue The default value of the input element.
|
|
36
|
-
*/
|
|
37
|
-
setDefaultValue(defaultValue: string): void;
|
|
38
|
-
/**
|
|
39
|
-
* Gets the options available for the radio input element.
|
|
40
|
-
* @returns The options available for the radio input element.
|
|
41
|
-
*/
|
|
42
|
-
getOptions(): OptionElement[];
|
|
43
|
-
/**
|
|
44
|
-
* Creates a `RadioButtonElement` from a JSON object.
|
|
45
|
-
*
|
|
46
|
-
* Initializes a `RadioButtonElement` using the provided JSON data. It sets the element's options,
|
|
47
|
-
* label, and default value if specified.
|
|
48
|
-
*
|
|
49
|
-
* @param {fromJSONRadioType} json - JSON object containing properties for the radio button element.
|
|
50
|
-
* @returns {RadioButtonElement} The `RadioButtonElement` instance.
|
|
51
|
-
*/
|
|
52
|
-
static fromJSON(json: fromJSONRadioType | fromJsonType): RadioButtonElement;
|
|
53
|
-
}
|
|
54
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { BaseInputElement, OptionElement } from "./index";
|
|
2
|
-
import { fromJsonType } from "../InteractiveActions/APIAction";
|
|
3
|
-
/**
|
|
4
|
-
* Represents a singleSelect button input element.
|
|
5
|
-
*/
|
|
6
|
-
export declare class SingleSelectElement extends BaseInputElement<string> {
|
|
7
|
-
/** The label of the input element. */
|
|
8
|
-
private label;
|
|
9
|
-
/** The default value of the input element. */
|
|
10
|
-
private defaultValue?;
|
|
11
|
-
/** The options available for the singleSelect input element. */
|
|
12
|
-
private options;
|
|
13
|
-
/**
|
|
14
|
-
* Creates a new instance of the SingleSelectElement class.
|
|
15
|
-
* @param elementId The ID of the singleSelect button element.
|
|
16
|
-
* @param label The label of the singleSelect button element.
|
|
17
|
-
* @param options The options available for the singleSelect button element.
|
|
18
|
-
*/
|
|
19
|
-
constructor(elementId: string, label: string, options?: OptionElement[]);
|
|
20
|
-
/**
|
|
21
|
-
* Gets the label of the input element.
|
|
22
|
-
* @returns The label of the input element.
|
|
23
|
-
*/
|
|
24
|
-
getLabel(): string;
|
|
25
|
-
/**
|
|
26
|
-
* Gets the default value of the input element.
|
|
27
|
-
* @returns The default value of the input element.
|
|
28
|
-
*/
|
|
29
|
-
getDefaultValue(): string | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Sets the default value of the input element.
|
|
32
|
-
* @param defaultValue The default value of the input element.
|
|
33
|
-
*/
|
|
34
|
-
setDefaultValue(defaultValue: string): void;
|
|
35
|
-
/**
|
|
36
|
-
* Gets the options available for the singleSelect input element.
|
|
37
|
-
* @returns The options available for the singleSelect input element.
|
|
38
|
-
*/
|
|
39
|
-
getOptions(): OptionElement[];
|
|
40
|
-
/**
|
|
41
|
-
* Creates a `SingleSelectElement` from a JSON object.
|
|
42
|
-
*
|
|
43
|
-
* Initializes a `SingleSelectElement` using the provided JSON data. It sets the element's options,
|
|
44
|
-
* label, and default value if specified.
|
|
45
|
-
*
|
|
46
|
-
* @param {fromJsonType} json - JSON object containing properties for the single select element.
|
|
47
|
-
* @returns {SingleSelectElement} The `SingleSelectElement` instance.
|
|
48
|
-
*/
|
|
49
|
-
static fromJSON(json: fromJsonType): SingleSelectElement;
|
|
50
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { BaseInputElement } from "./index";
|
|
2
|
-
import { fromJsonType } from "../InteractiveActions/APIAction";
|
|
3
|
-
/**
|
|
4
|
-
* Represents a text input element.
|
|
5
|
-
*/
|
|
6
|
-
export declare class TextInputElement extends BaseInputElement<string> {
|
|
7
|
-
/** The label of the input element. */
|
|
8
|
-
private label;
|
|
9
|
-
/** The maximum number of lines for a multi-line text input element. */
|
|
10
|
-
private maxLines?;
|
|
11
|
-
/** The placeholder text to display in the input element. */
|
|
12
|
-
private placeholder?;
|
|
13
|
-
/**
|
|
14
|
-
* The default value in text input.
|
|
15
|
-
*/
|
|
16
|
-
private defaultValue?;
|
|
17
|
-
/**
|
|
18
|
-
* Creates a new instance of the TextInputElement class.
|
|
19
|
-
* @param {string} elementId - The unique identifier of the form element.
|
|
20
|
-
* @param {string} label - The label of the input element.
|
|
21
|
-
*/
|
|
22
|
-
constructor(elementId: string, label: string);
|
|
23
|
-
/**
|
|
24
|
-
* Returns the label of the input element.
|
|
25
|
-
* @returns {string} The label of the input element.
|
|
26
|
-
*/
|
|
27
|
-
getLabel(): string;
|
|
28
|
-
/**
|
|
29
|
-
* Returns the maximum number of lines for a multi-line text input element.
|
|
30
|
-
* @returns {number} The maximum number of lines for a multi-line text input element.
|
|
31
|
-
*/
|
|
32
|
-
getMaxLines(): number | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* Sets the maximum number of lines for a multi-line text input element.
|
|
35
|
-
* @param {number} maxLines - The maximum number of lines for a multi-line text input element.
|
|
36
|
-
*/
|
|
37
|
-
setMaxLines(maxLines: number): void;
|
|
38
|
-
/**
|
|
39
|
-
* Returns the placeholder text to display in the input element.
|
|
40
|
-
* @returns {string} The placeholder text to display in the input element.
|
|
41
|
-
*/
|
|
42
|
-
getPlaceholder(): string | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Sets the placeholder text to display in the input element.
|
|
45
|
-
* @param {string} placeholder - The placeholder text to display in the input element.
|
|
46
|
-
*/
|
|
47
|
-
setPlaceholder(placeholder: string): void;
|
|
48
|
-
/**
|
|
49
|
-
* Returns the default value in text input.
|
|
50
|
-
* @returns {string} The default value in text input.
|
|
51
|
-
*/
|
|
52
|
-
getDefaultValue(): string | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* Sets the default value in text input.
|
|
55
|
-
* @param {string} defaultValue - The default value in text input.
|
|
56
|
-
* @returns {string} The default value in text input.
|
|
57
|
-
*/
|
|
58
|
-
setDefaultValue(defaultValue: string): void;
|
|
59
|
-
/**
|
|
60
|
-
* Creates a `TextInputElement` from a JSON object.
|
|
61
|
-
*
|
|
62
|
-
* Initializes a `TextInputElement` using the provided JSON data. It sets properties such as maximum lines,
|
|
63
|
-
* placeholder text, and default value if specified.
|
|
64
|
-
*
|
|
65
|
-
* @param {fromJsonType} json - JSON object containing properties for the text input element.
|
|
66
|
-
* @returns {TextInputElement} The `TextInputElement` instance.
|
|
67
|
-
*/
|
|
68
|
-
static fromJSON(json: fromJsonType): TextInputElement;
|
|
69
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { BaseInputElement } from "./BaseInputElement";
|
|
2
|
-
export { BaseInteractiveElement } from "./BaseInteractiveElement";
|
|
3
|
-
export { ButtonElement } from "./ButtonElement";
|
|
4
|
-
export { CheckboxElement } from "./CheckboxElement";
|
|
5
|
-
export { DropdownElement } from "./DropdownElement";
|
|
6
|
-
export { LabelElement } from "./LabelElement";
|
|
7
|
-
export { OptionElement } from "./OptionElement";
|
|
8
|
-
export { RadioButtonElement } from "./RadioButtonElement";
|
|
9
|
-
export { SingleSelectElement } from "./SingleSelectElement";
|
|
10
|
-
export { TextInputElement } from "./TextInputElement";
|
|
11
|
-
export { DateTimePickerElement } from "./DateTimePickerElement";
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { APIAction, CustomAction, URLNavigationAction } from "../InteractiveActions";
|
|
2
|
-
import { ButtonAction } from "../../Enums/Enums";
|
|
3
|
-
import { fromJsonType } from "../InteractiveActions/APIAction";
|
|
4
|
-
/**
|
|
5
|
-
* Represents an action that can be performed on a UI element, such as a button.
|
|
6
|
-
*/
|
|
7
|
-
export declare class ActionEntity {
|
|
8
|
-
/**
|
|
9
|
-
* The type of action to perform when the UI element is interacted with.
|
|
10
|
-
*/
|
|
11
|
-
private actionType;
|
|
12
|
-
/**
|
|
13
|
-
* Creates an instance of the ActionEntity class.
|
|
14
|
-
* @param {ButtonAction} actionType - The type of action that the button performs.
|
|
15
|
-
*/
|
|
16
|
-
constructor(actionType: ButtonAction);
|
|
17
|
-
/**
|
|
18
|
-
* Returns the type of action to perform when the UI element is interacted with.
|
|
19
|
-
* @returns {ButtonAction} The type of action to perform when the UI element is interacted with.
|
|
20
|
-
*/
|
|
21
|
-
getActionType(): ButtonAction;
|
|
22
|
-
/**
|
|
23
|
-
* Creates an action instance from a JSON object based on the action type.
|
|
24
|
-
*
|
|
25
|
-
* Initializes the appropriate action type (`APIAction`, `URLNavigationAction`, or `CustomAction`)
|
|
26
|
-
* using the provided JSON data. The action type is determined by the `actionType` property in the JSON.
|
|
27
|
-
*
|
|
28
|
-
* @param {fromJsonType} json - JSON object containing the action type and properties.
|
|
29
|
-
* @returns {APIAction | URLNavigationAction | CustomAction} The corresponding action instance.
|
|
30
|
-
*/
|
|
31
|
-
static fromJSON(json: fromJsonType): APIAction | URLNavigationAction | CustomAction;
|
|
32
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { fromJsonType } from "../InteractiveActions/APIAction";
|
|
2
|
-
/**
|
|
3
|
-
* Represents the base input for a dynamic form element.
|
|
4
|
-
*/
|
|
5
|
-
export declare class ElementEntity {
|
|
6
|
-
/**
|
|
7
|
-
* The type of the form element.
|
|
8
|
-
*/
|
|
9
|
-
private elementType;
|
|
10
|
-
/**
|
|
11
|
-
* The unique identifier of the form element.
|
|
12
|
-
*/
|
|
13
|
-
private elementId;
|
|
14
|
-
constructor(elementId: string, elementType: string);
|
|
15
|
-
/**
|
|
16
|
-
* Returns the type of the form element.
|
|
17
|
-
* @returns {string} The type of the form element.
|
|
18
|
-
*/
|
|
19
|
-
getElementType(): string;
|
|
20
|
-
/**
|
|
21
|
-
* Returns the unique identifier of the form element.
|
|
22
|
-
* @returns {string} The unique identifier of the form element.
|
|
23
|
-
*/
|
|
24
|
-
getElementId(): string;
|
|
25
|
-
/**
|
|
26
|
-
* Creates an `ElementEntity` instance from a JSON object based on its `elementType`.
|
|
27
|
-
*
|
|
28
|
-
* Initializes the appropriate element (`BaseInputElement`, `BaseInteractiveElement`, etc.)
|
|
29
|
-
* or a default `LabelElement` if the `elementType` is unrecognized.
|
|
30
|
-
*
|
|
31
|
-
* @param {fromJsonType} json - The JSON object containing element properties and `elementType`.
|
|
32
|
-
* @returns {ElementEntity} The constructed `ElementEntity`.
|
|
33
|
-
*/
|
|
34
|
-
static fromJSON(json: fromJsonType): ElementEntity;
|
|
35
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { ButtonElement } from "../InteractiveElements/index";
|
|
2
|
-
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
|
-
export interface CardData {
|
|
4
|
-
text: string;
|
|
5
|
-
cardActions: Array<ButtonElement>;
|
|
6
|
-
imageUrl?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Represents a card message for CometChat.
|
|
10
|
-
* @extends CometChat.InteractiveMessage
|
|
11
|
-
*/
|
|
12
|
-
export declare class CardMessage extends CometChat.InteractiveMessage {
|
|
13
|
-
/**
|
|
14
|
-
* The URL of the image for the card.
|
|
15
|
-
*/
|
|
16
|
-
private imageUrl?;
|
|
17
|
-
/**
|
|
18
|
-
* The text to display on the card.
|
|
19
|
-
*/
|
|
20
|
-
private text;
|
|
21
|
-
/**
|
|
22
|
-
* The actions to perform when the card is interacted with.
|
|
23
|
-
*/
|
|
24
|
-
private cardActions;
|
|
25
|
-
/**
|
|
26
|
-
* Creates a new instance of CardMessage.
|
|
27
|
-
* @param receiverId - The ID of the receiver.
|
|
28
|
-
* @param receiverType - The type of the receiver.
|
|
29
|
-
* @param text - The text to display on the card.
|
|
30
|
-
* @param cardActions - The actions to perform when the card is interacted with.
|
|
31
|
-
*/
|
|
32
|
-
constructor(receiverId: string, receiverType: string, text: string, cardActions: Array<ButtonElement>);
|
|
33
|
-
/**
|
|
34
|
-
* Gets the URL of the image for the card.
|
|
35
|
-
* @returns The URL of the image.
|
|
36
|
-
*/
|
|
37
|
-
getImageUrl(): string | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Sets the image URL for the interactive card data.
|
|
40
|
-
* @param imageUrl - The URL of the image to be set.
|
|
41
|
-
*/
|
|
42
|
-
setImageUrl(imageUrl: string): void;
|
|
43
|
-
/**
|
|
44
|
-
* Gets the text to display on the card.
|
|
45
|
-
* @returns The text to display.
|
|
46
|
-
*/
|
|
47
|
-
getText(): string;
|
|
48
|
-
/**
|
|
49
|
-
* Gets the actions to perform when the card is interacted with.
|
|
50
|
-
* @returns The actions to perform.
|
|
51
|
-
*/
|
|
52
|
-
getCardActions(): Array<ButtonElement>;
|
|
53
|
-
/**
|
|
54
|
-
* Sets the interactive data for the card message.
|
|
55
|
-
* @param json - The partial data to set.
|
|
56
|
-
*/
|
|
57
|
-
setInteractiveData(json: Partial<CardData>): void;
|
|
58
|
-
/**
|
|
59
|
-
* Gets the interactive data for the card message.
|
|
60
|
-
* @returns The interactive data.
|
|
61
|
-
*/
|
|
62
|
-
getInteractiveData(): CardData;
|
|
63
|
-
/**
|
|
64
|
-
* Creates a new instance of CardMessage from the provided JSON.
|
|
65
|
-
* @param json - The JSON to create the instance from.
|
|
66
|
-
* @returns The new instance of CardMessage.
|
|
67
|
-
*/
|
|
68
|
-
static fromJSON(json: CometChat.InteractiveMessage): CardMessage;
|
|
69
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
2
|
-
/**
|
|
3
|
-
* Represents a custom interactive message that extends CometChat's InteractiveMessage class.
|
|
4
|
-
* @extends CometChat.InteractiveMessage
|
|
5
|
-
*/
|
|
6
|
-
export declare class CustomInteractiveMessage extends CometChat.InteractiveMessage {
|
|
7
|
-
/**
|
|
8
|
-
* Creates a new instance of CustomInteractiveMessage.
|
|
9
|
-
* @param receiverId - The ID of the receiver of the message.
|
|
10
|
-
* @param receiverType - The type of the receiver of the message.
|
|
11
|
-
* @param json - The JSON object to create the CustomInteractiveMessage object from.
|
|
12
|
-
*/
|
|
13
|
-
constructor(receiverId: string, receiverType: string, json: Object);
|
|
14
|
-
/**
|
|
15
|
-
* Static method to create a CustomInteractiveMessage object from a JSON object.
|
|
16
|
-
* @param json - JSON object to create the CustomInteractiveMessage object from.
|
|
17
|
-
* @returns CustomInteractiveMessage object.
|
|
18
|
-
*/
|
|
19
|
-
static fromJSON(json: CometChat.InteractiveMessage): CustomInteractiveMessage;
|
|
20
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { ButtonElement } from "../InteractiveElements/index";
|
|
2
|
-
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
|
-
import { ElementEntity } from "../InteractiveEntities/ElementEntity";
|
|
4
|
-
export interface FormData {
|
|
5
|
-
title: string;
|
|
6
|
-
formFields: ElementEntity[];
|
|
7
|
-
submitElement: ButtonElement;
|
|
8
|
-
goalCompletionText?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Represents a form message that extends CometChat's InteractiveMessage class.
|
|
12
|
-
* @extends CometChat.InteractiveMessage
|
|
13
|
-
*/
|
|
14
|
-
export declare class FormMessage extends CometChat.InteractiveMessage {
|
|
15
|
-
/**
|
|
16
|
-
* The title of the form.
|
|
17
|
-
*/
|
|
18
|
-
private title;
|
|
19
|
-
/**
|
|
20
|
-
* The goal completion text of the form.
|
|
21
|
-
*/
|
|
22
|
-
private goalCompletionText?;
|
|
23
|
-
/**
|
|
24
|
-
* The form fields of the form.
|
|
25
|
-
*/
|
|
26
|
-
private formFields;
|
|
27
|
-
/**
|
|
28
|
-
* The submit button of the form.
|
|
29
|
-
*/
|
|
30
|
-
private submitElement;
|
|
31
|
-
/**
|
|
32
|
-
* Represents a form message that can be sent via CometChat.
|
|
33
|
-
*/
|
|
34
|
-
constructor(receiverId: string, receiverType: string, title: string, formFields: ElementEntity[], submitElement: ButtonElement);
|
|
35
|
-
/**
|
|
36
|
-
* Sets the interactive form data for the message.
|
|
37
|
-
* @param {InteractiveFormData} interactiveFormData - The interactive form data to be set.
|
|
38
|
-
*/
|
|
39
|
-
setInteractiveData(formData: Partial<FormData>): void;
|
|
40
|
-
getInteractiveData(): FormData;
|
|
41
|
-
/**
|
|
42
|
-
* Returns the form fields of the form.
|
|
43
|
-
* @returns An array of form fields.
|
|
44
|
-
*/
|
|
45
|
-
getFormFields(): ElementEntity[];
|
|
46
|
-
/**
|
|
47
|
-
* Returns the title of the form.
|
|
48
|
-
* @returns The title of the form.
|
|
49
|
-
*/
|
|
50
|
-
getTitle(): string;
|
|
51
|
-
/**
|
|
52
|
-
* Returns the submit button of the form.
|
|
53
|
-
* @returns The submit button of the form.
|
|
54
|
-
*/
|
|
55
|
-
getSubmitElement(): ButtonElement;
|
|
56
|
-
/**
|
|
57
|
-
* Returns the goal completion text of the form.
|
|
58
|
-
* @returns The goal completion text of the form.
|
|
59
|
-
*/
|
|
60
|
-
getGoalCompletionText(): string | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Sets the goal completion text of the form.
|
|
63
|
-
* @param goalCompletionText - The goal completion text of the form.
|
|
64
|
-
*/
|
|
65
|
-
setGoalCompletionText(goalCompletionText: string): void;
|
|
66
|
-
/**
|
|
67
|
-
* Creates a `FormMessage` instance from a JSON object.
|
|
68
|
-
*
|
|
69
|
-
* Initializes a `FormMessage` with form fields, a submit button, and optional goal completion text from the JSON data.
|
|
70
|
-
*
|
|
71
|
-
* @param {fromJsonType} json - The JSON object containing form properties.
|
|
72
|
-
* @returns {FormMessage} The `FormMessage` instance.
|
|
73
|
-
*/
|
|
74
|
-
static fromJSON(json: CometChat.InteractiveMessage): FormMessage;
|
|
75
|
-
}
|