@cometchat/chat-uikit-react-native 4.3.11 → 4.3.13
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/lib/AI/AIAssistBot/AIAssistBotView.js +4 -4
- package/lib/AI/AIAssistBot/AIAssistBotView.js.map +1 -1
- package/lib/CometChatAddMembers/CometChatAddMembers.js +22 -13
- package/lib/CometChatAddMembers/CometChatAddMembers.js.map +1 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +3 -0
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +1 -1
- package/lib/CometChatConversations/CometChatConversations.js +151 -25
- package/lib/CometChatConversations/CometChatConversations.js.map +1 -1
- package/lib/CometChatConversations/ConversationsConfiguration.js +15 -5
- package/lib/CometChatConversations/ConversationsConfiguration.js.map +1 -1
- package/lib/CometChatDetails/CometChatDetails.js +13 -9
- package/lib/CometChatDetails/CometChatDetails.js.map +1 -1
- package/lib/CometChatDetails/listners.js +41 -19
- package/lib/CometChatDetails/listners.js.map +1 -1
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js +24 -7
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js +14 -2
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js.map +1 -1
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js +2 -2
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -1
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +14 -6
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +4 -9
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
- package/lib/CometChatMessageList/CometChatMessageList.js +92 -58
- package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
- package/lib/CometChatMessageList/MessageListConfiguration.js +7 -1
- package/lib/CometChatMessageList/MessageListConfiguration.js.map +1 -1
- package/lib/CometChatMessages/CometChatMessages.js +1 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js +1 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js.map +1 -1
- package/lib/CometChatUsers/CometChatUsers.js +2 -2
- package/lib/CometChatUsers/CometChatUsers.js.map +1 -1
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js +2 -2
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -1
- package/lib/calls/CallEvents.d.ts +1 -1
- package/lib/calls/CallEvents.js +1 -1
- package/lib/calls/CallEvents.js.map +1 -1
- package/lib/calls/CallingExtentionDecorator.d.ts +3 -2
- package/lib/calls/CallingExtentionDecorator.js +1 -1
- package/lib/calls/CallingExtentionDecorator.js.map +1 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +5 -2
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +1 -1
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js +1 -1
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js.map +1 -1
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +1 -1
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +1 -1
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +2 -2
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +3 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +3 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js.map +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +1 -1
- package/lib/extensions/Polls/PollsDecorator.d.ts +1 -2
- package/lib/extensions/Polls/PollsDecorator.js +7 -10
- package/lib/extensions/Polls/PollsDecorator.js.map +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +2 -2
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js.map +1 -1
- package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +1 -1
- package/lib/extensions/Stickers/StickersExtensionDecorator.js +7 -1
- package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +1 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +1 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +4 -2
- package/lib/shared/CometChatUiKit/CometChatUIKit.js +27 -10
- package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -1
- package/lib/shared/CometChatUiKit/UIKitSettings.d.ts +4 -3
- package/lib/shared/CometChatUiKit/UIKitSettings.js +3 -2
- package/lib/shared/CometChatUiKit/UIKitSettings.js.map +1 -1
- package/lib/shared/base/Types.d.ts +8 -0
- package/lib/shared/base/index.d.ts +2 -2
- package/lib/shared/base/index.js.map +1 -1
- package/lib/shared/constants/UIKitConstants.d.ts +2 -10
- package/lib/shared/constants/UIKitConstants.js +2 -2
- package/lib/shared/constants/UIKitConstants.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +3 -0
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +3 -3
- package/lib/shared/events/CometChatUIEventHandler/Listener.js +4 -4
- package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +3 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +1 -1
- package/lib/shared/formatters/CometChatTextFormatter.js.map +1 -1
- package/lib/shared/framework/DataSourceDecorator.d.ts +2 -3
- package/lib/shared/framework/DataSourceDecorator.js.map +1 -1
- package/lib/shared/framework/MessageDataSource.js +38 -16
- package/lib/shared/framework/MessageDataSource.js.map +1 -1
- package/lib/shared/index.d.ts +4 -4
- package/lib/shared/index.js +3 -3
- package/lib/shared/index.js.map +1 -1
- package/lib/shared/libs/VideoPlayer/Video.js +4 -5
- package/lib/shared/libs/VideoPlayer/Video.js.map +1 -1
- package/lib/shared/modals/CometChatMessageTemplate.js +8 -1
- package/lib/shared/modals/CometChatMessageTemplate.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.d.ts +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.js +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js +1 -2
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js.map +1 -1
- package/lib/shared/modals/InteractiveData/index.d.ts +1 -1
- package/lib/shared/modals/InteractiveData/index.js +1 -1
- package/lib/shared/modals/InteractiveData/index.js.map +1 -1
- package/lib/shared/modals/index.d.ts +2 -2
- package/lib/shared/modals/index.js +2 -2
- package/lib/shared/modals/index.js.map +1 -1
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +28 -0
- package/lib/shared/resources/CometChatLocalize/resources/ar/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/de/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/en/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/es/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/fr/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/hi/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/hu/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/lt/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/ms/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/pt/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/ru/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/sv/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/zh/translation.json +3 -1
- package/lib/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +3 -1
- package/lib/shared/utils/CometChatMessageHelper/index.d.ts +1 -0
- package/lib/shared/utils/CometChatMessageHelper/index.js +3 -0
- package/lib/shared/utils/CometChatMessageHelper/index.js.map +1 -1
- package/lib/shared/utils/MessageUtils.d.ts +1 -1
- package/lib/shared/utils/MessageUtils.js +6 -1
- package/lib/shared/utils/MessageUtils.js.map +1 -1
- package/lib/shared/utils/PermissionUtil.js +1 -1
- package/lib/shared/utils/PermissionUtil.js.map +1 -1
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.d.ts +1 -1
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js.map +1 -1
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js +2 -3
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js.map +1 -1
- package/lib/shared/views/CometChatList/CometChatList.js +37 -18
- package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +19 -4
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +1 -1
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +1 -1
- package/lib/shared/views/CometChatReactions/CometChatReactions.d.ts +1 -1
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.d.ts +1 -1
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js +3 -5
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +1 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
- package/lib/shared/views/index.d.ts +2 -1
- package/lib/shared/views/index.js +2 -1
- package/lib/shared/views/index.js.map +1 -1
- package/package.json +1 -1
- package/src/AI/AIAssistBot/AIAssistBotView.tsx +4 -4
- package/src/CometChatAddMembers/CometChatAddMembers.tsx +30 -20
- package/src/CometChatConversations/CometChatConversations.tsx +4 -9
- package/src/CometChatDetails/CometChatDetails.tsx +4 -2
- package/src/CometChatDetails/listners.ts +56 -35
- package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +30 -15
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +13 -4
- package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +42 -51
- package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +9 -6
- package/src/CometChatMessageList/CometChatMessageList.tsx +54 -37
- package/src/CometChatMessageList/MessageListConfiguration.ts +2 -0
- package/src/CometChatUsers/CometChatUsers.tsx +2 -2
- package/src/calls/CometChatCallButtons/CometChatCallButtons.tsx +2 -1
- package/src/extensions/SmartReplies/SmartRepliesDecorator.tsx +2 -1
- package/src/extensions/Stickers/StickersExtensionDecorator.tsx +2 -1
- package/src/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.tsx +6 -6
- package/src/extensions/ThumbnailGeneration/resources/index.ts +2 -2
- package/src/shared/CometChatUiKit/CometChatUIKit.ts +8 -8
- package/src/shared/constants/UIKitConstants.ts +12 -1
- package/src/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.tsx +46 -1
- package/src/shared/resources/CometChatLocalize/resources/ar/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/de/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/en/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/es/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/fr/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/hi/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/hu/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/lt/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/ms/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/pt/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/ru/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/sv/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/zh/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +3 -1
- package/src/shared/utils/CometChatMessageHelper/index.ts +4 -0
- package/src/shared/utils/PermissionUtil.ts +1 -1
- package/src/shared/views/CometChatImageBubble/CometChatImageBubble.tsx +10 -3
- package/src/shared/views/CometChatList/CometChatList.tsx +0 -2
- package/src/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.tsx +20 -4
- package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +8 -1
- package/src/shared/views/CometChatVideoBubble/VideoBubbleStyle.ts +1 -1
- package/lib/AI/AIAssistBot/resources/CloseIcon.png +0 -0
- package/lib/AI/AIConversationSummary/resources/close.png +0 -0
- package/lib/AI/resources/ai-empty.png +0 -0
- package/lib/AI/resources/ai-error.png +0 -0
- package/lib/AI/resources/spineer.png +0 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.d.ts +0 -43
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.d.ts +0 -46
- package/lib/CometChatBannedMembers/resources/clear.png +0 -0
- package/lib/CometChatContacts/Header.d.ts +0 -31
- package/lib/CometChatConversations/CometChatConversations.d.ts +0 -199
- package/lib/CometChatConversations/ConversationsConfiguration.d.ts +0 -96
- package/lib/CometChatConversations/resources/back.png +0 -0
- package/lib/CometChatConversations/resources/blue-double-tick-icon.png +0 -0
- package/lib/CometChatConversations/resources/close.png +0 -0
- package/lib/CometChatConversations/resources/delete.png +0 -0
- package/lib/CometChatConversations/resources/error.png +0 -0
- package/lib/CometChatConversations/resources/grey-double-tick-icon.png +0 -0
- package/lib/CometChatConversations/resources/grey-tick-icon.png +0 -0
- package/lib/CometChatConversations/resources/new.png +0 -0
- package/lib/CometChatConversations/resources/password.png +0 -0
- package/lib/CometChatConversations/resources/private.png +0 -0
- package/lib/CometChatConversations/resources/rightTick.png +0 -0
- package/lib/CometChatConversations/resources/sending.png +0 -0
- package/lib/CometChatConversations/resources/spineer.png +0 -0
- package/lib/CometChatConversationsWithMessages/resources/start.png +0 -0
- package/lib/CometChatCreateGroup/resources/close.png +0 -0
- package/lib/CometChatCreateGroup/resources/rightTick.png +0 -0
- package/lib/CometChatCreateGroup/resources/warning.png +0 -0
- package/lib/CometChatDetails/CometChatDetails.d.ts +0 -281
- package/lib/CometChatDetails/DetailsConfiguration.d.ts +0 -36
- package/lib/CometChatDetails/resources/Back.png +0 -0
- package/lib/CometChatDetails/resources/close.png +0 -0
- package/lib/CometChatDetails/resources/password.png +0 -0
- package/lib/CometChatDetails/resources/private.png +0 -0
- package/lib/CometChatDetails/resources/right-arrow.png +0 -0
- package/lib/CometChatGroupMembers/CometChatGroupMembers.d.ts +0 -96
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.d.ts +0 -63
- package/lib/CometChatGroupMembers/resources/banIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/check.png +0 -0
- package/lib/CometChatGroupMembers/resources/downArrowIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/kickIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/rightTick.png +0 -0
- package/lib/CometChatGroups/CometChatGroups.d.ts +0 -141
- package/lib/CometChatGroups/GroupsConfiguration.d.ts +0 -74
- package/lib/CometChatGroups/resources/back.png +0 -0
- package/lib/CometChatGroups/resources/check.png +0 -0
- package/lib/CometChatGroups/resources/close.png +0 -0
- package/lib/CometChatGroups/resources/create.png +0 -0
- package/lib/CometChatGroups/resources/more.png +0 -0
- package/lib/CometChatGroups/resources/password.png +0 -0
- package/lib/CometChatGroups/resources/private.png +0 -0
- package/lib/CometChatGroups/resources/rightTick.png +0 -0
- package/lib/CometChatGroups/resources/search.png +0 -0
- package/lib/CometChatGroups/resources/spineer.png +0 -0
- package/lib/CometChatGroupsWithMessages/resources/write.png +0 -0
- package/lib/CometChatJoinProtectedGroup/resources/close.png +0 -0
- package/lib/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
- package/lib/CometChatMessageComposer/CometChatMessageComposer.d.ts +0 -269
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.d.ts +0 -47
- package/lib/CometChatMessageComposer/resources/Info.png +0 -0
- package/lib/CometChatMessageComposer/resources/ai.png +0 -0
- package/lib/CometChatMessageComposer/resources/circle_add.png +0 -0
- package/lib/CometChatMessageComposer/resources/close.png +0 -0
- package/lib/CometChatMessageComposer/resources/emoji.png +0 -0
- package/lib/CometChatMessageComposer/resources/heart.png +0 -0
- package/lib/CometChatMessageComposer/resources/image.png +0 -0
- package/lib/CometChatMessageComposer/resources/microphone.png +0 -0
- package/lib/CometChatMessageComposer/resources/send_message.png +0 -0
- package/lib/CometChatMessageComposer/resources/stickers.png +0 -0
- package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +0 -150
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.d.ts +0 -37
- package/lib/CometChatMessageHeader/resources/Back.png +0 -0
- package/lib/CometChatMessageHeader/resources/password.png +0 -0
- package/lib/CometChatMessageHeader/resources/private.png +0 -0
- package/lib/CometChatMessageInformation/CometChatMessageInformation.d.ts +0 -36
- package/lib/CometChatMessageInformation/resources/Spineer.png +0 -0
- package/lib/CometChatMessageList/CometChatMessageList.d.ts +0 -75
- package/lib/CometChatMessageList/MessageListConfiguration.d.ts +0 -101
- package/lib/CometChatMessageList/resources/back.png +0 -0
- package/lib/CometChatMessageList/resources/close.png +0 -0
- package/lib/CometChatMessageList/resources/downArrowIcon.png +0 -0
- package/lib/CometChatMessageList/resources/leftarrowcurve.png +0 -0
- package/lib/CometChatMessageList/resources/rightArrowIcon.png +0 -0
- package/lib/CometChatMessageList/resources/rightarrowcurve.png +0 -0
- package/lib/CometChatMessageList/resources/spineer.png +0 -0
- package/lib/CometChatMessages/CometChatMessages.d.ts +0 -42
- package/lib/CometChatMessages/MessagesConfiguration.d.ts +0 -69
- package/lib/CometChatMessages/resources/info.png +0 -0
- package/lib/CometChatTabs/TabItems.d.ts +0 -11
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.d.ts +0 -90
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.d.ts +0 -18
- package/lib/CometChatThreadedMessages/resources/Back.png +0 -0
- package/lib/CometChatThreadedMessages/resources/close.png +0 -0
- package/lib/CometChatThreadedMessages/resources/more.png +0 -0
- package/lib/CometChatThreadedMessages/resources/password.png +0 -0
- package/lib/CometChatThreadedMessages/resources/private.png +0 -0
- package/lib/CometChatThreadedMessages/resources/right-arrow.png +0 -0
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.d.ts +0 -41
- package/lib/CometChatUsers/CometChatUsers.d.ts +0 -69
- package/lib/CometChatUsers/UsersConfiguration.d.ts +0 -43
- package/lib/calls/CometChatCallBubble/resources/avatar.png +0 -0
- package/lib/calls/CometChatCallBubble/resources/incomingaudiocall.png +0 -0
- package/lib/calls/CometChatCallBubble/resources/incomingvideocall.png +0 -0
- package/lib/calls/CometChatCallButtons/resources/Call.png +0 -0
- package/lib/calls/CometChatCallButtons/resources/Video.png +0 -0
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.d.ts +0 -54
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js +0 -31
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.d.ts +0 -20
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.js +0 -27
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.js.map +0 -1
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.d.ts +0 -1
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.js +0 -137
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.js.map +0 -1
- package/lib/calls/CometChatCallDetails/index.d.ts +0 -3
- package/lib/calls/CometChatCallDetails/index.js +0 -4
- package/lib/calls/CometChatCallDetails/index.js.map +0 -1
- package/lib/calls/CometChatCallDetails/resources/index.d.ts +0 -2
- package/lib/calls/CometChatCallDetails/resources/index.js +0 -3
- package/lib/calls/CometChatCallDetails/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallDetails/style.d.ts +0 -12
- package/lib/calls/CometChatCallDetails/style.js +0 -14
- package/lib/calls/CometChatCallDetails/style.js.map +0 -1
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.d.ts +0 -86
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js +0 -39
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.d.ts +0 -13
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.js +0 -20
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.js.map +0 -1
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.d.ts +0 -1
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.js +0 -250
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.js.map +0 -1
- package/lib/calls/CometChatCallHistory/index.d.ts +0 -3
- package/lib/calls/CometChatCallHistory/index.js +0 -4
- package/lib/calls/CometChatCallHistory/index.js.map +0 -1
- package/lib/calls/CometChatCallHistory/resources/index.d.ts +0 -8
- package/lib/calls/CometChatCallHistory/resources/index.js +0 -9
- package/lib/calls/CometChatCallHistory/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallHistory/style.d.ts +0 -21
- package/lib/calls/CometChatCallHistory/style.js +0 -23
- package/lib/calls/CometChatCallHistory/style.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.d.ts +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js +0 -30
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.d.ts +0 -6
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.d.ts +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/index.d.ts +0 -3
- package/lib/calls/CometChatCallHistoryWithDetails/index.js +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/index.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/style.d.ts +0 -8
- package/lib/calls/CometChatCallHistoryWithDetails/style.js +0 -10
- package/lib/calls/CometChatCallHistoryWithDetails/style.js.map +0 -1
- package/lib/calls/CometChatCallLogDetails/resources/CloseIcon.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Call.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Info.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Selection.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Spineer.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Video.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/check.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/incomingcall.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/incomingvideo.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/missedcall.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/missedvideo.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/outgoingcall.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/outgoingvideo.png +0 -0
- package/lib/calls/CometChatCallLogParticipants/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogRecordings/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogRecordings/resources/download.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/Info.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/Selection.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/Spinner.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/check.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/incomingcall.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/incomingvideo.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/missedcall.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/missedvideo.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/outgoingcall.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/outgoingvideo.png +0 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -21
- package/lib/calls/CometChatIncomingCall/resources/Call.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/close.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/incomingaudiocall.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/incomingvideocall.png +0 -0
- package/lib/calls/CometChatOutgoingCall/resources/Close.png +0 -0
- package/lib/calls/resources/Call.png +0 -0
- package/lib/calls/resources/Video.png +0 -0
- package/lib/calls/resources/nextarrow.png +0 -0
- package/lib/extensions/CollaborativeBubble/resources/whiteboard.png +0 -0
- package/lib/extensions/CollaborativeDocument/resources/collaborative_document.png +0 -0
- package/lib/extensions/CollaborativeDocument/resources/collaborative_document_2x.png +0 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/whiteboard.png +0 -0
- package/lib/extensions/ImageModeration/ImageModerationDecorator.d.ts +0 -13
- package/lib/extensions/ImageModeration/resources/unsafe.png +0 -0
- package/lib/extensions/LinkPreview/LinkPreviewBubble.d.ts +0 -12
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.d.ts +0 -13
- package/lib/extensions/LinkPreview/resources/defaultImage.png +0 -0
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +0 -21
- package/lib/extensions/MessageTranslation/resources/translate.png +0 -0
- package/lib/extensions/Polls/resources/close.png +0 -0
- package/lib/extensions/Polls/resources/document.png +0 -0
- package/lib/extensions/Polls/resources/kickIcon.png +0 -0
- package/lib/extensions/Polls/resources/rightTick.png +0 -0
- package/lib/extensions/Polls/resources/warning.png +0 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.d.ts +0 -22
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js +0 -203
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js.map +0 -1
- package/lib/extensions/Reactions/CometChatMessageReactions/index.d.ts +0 -2
- package/lib/extensions/Reactions/CometChatMessageReactions/index.js +0 -3
- package/lib/extensions/Reactions/CometChatMessageReactions/index.js.map +0 -1
- package/lib/extensions/Reactions/CometChatMessageReactions/style.d.ts +0 -40
- package/lib/extensions/Reactions/CometChatMessageReactions/style.js +0 -42
- package/lib/extensions/Reactions/CometChatMessageReactions/style.js.map +0 -1
- package/lib/extensions/Reactions/ReactionsDecorator.d.ts +0 -23
- package/lib/extensions/Reactions/ReactionsDecorator.js +0 -113
- package/lib/extensions/Reactions/ReactionsDecorator.js.map +0 -1
- package/lib/extensions/Reactions/ReactionsExtension.d.ts +0 -14
- package/lib/extensions/Reactions/ReactionsExtension.js +0 -28
- package/lib/extensions/Reactions/ReactionsExtension.js.map +0 -1
- package/lib/extensions/Reactions/index.d.ts +0 -3
- package/lib/extensions/Reactions/index.js +0 -4
- package/lib/extensions/Reactions/index.js.map +0 -1
- package/lib/extensions/Reactions/resources/index.d.ts +0 -3
- package/lib/extensions/Reactions/resources/index.js +0 -3
- package/lib/extensions/Reactions/resources/index.js.map +0 -1
- package/lib/extensions/SmartReplies/resources/close.png +0 -0
- package/lib/extensions/Stickers/resources/Stickers.png +0 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.d.ts +0 -16
- package/lib/extensions/ThumbnailGeneration/resources/empty.png +0 -0
- package/lib/shared/assets/images/Back.png +0 -0
- package/lib/shared/assets/images/BackArrow.png +0 -0
- package/lib/shared/assets/images/blue-double-tick-icon.png +0 -0
- package/lib/shared/assets/images/calendar.png +0 -0
- package/lib/shared/assets/images/checkmark.png +0 -0
- package/lib/shared/assets/images/clock-alert.png +0 -0
- package/lib/shared/assets/images/clock.png +0 -0
- package/lib/shared/assets/images/earth.png +0 -0
- package/lib/shared/assets/images/empty-slot.png +0 -0
- package/lib/shared/assets/images/error.png +0 -0
- package/lib/shared/assets/images/forwardArrow.png +0 -0
- package/lib/shared/assets/images/grey-double-tick-icon.png +0 -0
- package/lib/shared/assets/images/grey-tick-icon.png +0 -0
- package/lib/shared/assets/images/sending.png +0 -0
- package/lib/shared/framework/DataSource.d.ts +0 -49
- package/lib/shared/framework/MessageDataSource.d.ts +0 -72
- package/lib/shared/framework/resources/audio-file.png +0 -0
- package/lib/shared/framework/resources/circle_add.png +0 -0
- package/lib/shared/framework/resources/copy.png +0 -0
- package/lib/shared/framework/resources/delete.png +0 -0
- package/lib/shared/framework/resources/edit.png +0 -0
- package/lib/shared/framework/resources/emoji.png +0 -0
- package/lib/shared/framework/resources/file_upload.png +0 -0
- package/lib/shared/framework/resources/forward.png +0 -0
- package/lib/shared/framework/resources/heart.png +0 -0
- package/lib/shared/framework/resources/image.png +0 -0
- package/lib/shared/framework/resources/info.png +0 -0
- package/lib/shared/framework/resources/location.png +0 -0
- package/lib/shared/framework/resources/messageInPrivate.png +0 -0
- package/lib/shared/framework/resources/microphone.png +0 -0
- package/lib/shared/framework/resources/pause.png +0 -0
- package/lib/shared/framework/resources/play.png +0 -0
- package/lib/shared/framework/resources/reply.png +0 -0
- package/lib/shared/framework/resources/send_message.png +0 -0
- package/lib/shared/framework/resources/share.png +0 -0
- package/lib/shared/framework/resources/stop_player.png +0 -0
- package/lib/shared/framework/resources/thread.png +0 -0
- package/lib/shared/framework/resources/video_upload.png +0 -0
- package/lib/shared/helper/types/index.d.ts +0 -19
- package/lib/shared/libs/CometChatCalendar/Icons/BackArrow.png +0 -0
- package/lib/shared/libs/CometChatCalendar/Icons/chevron-left-16.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/back.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/bottom-vignette.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/bottom-vignette@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/bottom-vignette@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/error-icon.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/error-icon@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/error-icon@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/expand.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/expand@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/expand@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/forward.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/forward@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/forward@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/loader-icon.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/loader-icon@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/loader-icon@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/pause.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/pause@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/pause@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/play.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/play@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/play@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/rewind.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/rewind@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/rewind@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/shrink.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/shrink@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/shrink@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/top-vignette.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/top-vignette@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/top-vignette@3x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/volume.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/volume@2x.png +0 -0
- package/lib/shared/libs/VideoPlayerControls/assets/img/volume@3x.png +0 -0
- package/lib/shared/modals/CometChatDetailsOption.d.ts +0 -18
- package/lib/shared/modals/CometChatMessageOption.d.ts +0 -13
- package/lib/shared/modals/CometChatMessageTemplate.d.ts +0 -24
- package/lib/shared/resources/CometChatSoundManager/resources/incomingcall.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/incomingmessage.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/incomingothermessage.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/outgoingcall.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/outgoingmessage.wav +0 -0
- package/lib/shared/utils/CometChatLiveReactions/resources/heart.png +0 -0
- package/lib/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/Back.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/banIcon.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/close.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/kickIcon.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/password.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/private.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/right-arrow.png +0 -0
- package/lib/shared/views/CometChatAICard/resources/errormessage.png +0 -0
- package/lib/shared/views/CometChatAICard/resources/nomessage.png +0 -0
- package/lib/shared/views/CometChatActionSheet/resources/grid.png +0 -0
- package/lib/shared/views/CometChatActionSheet/resources/list.png +0 -0
- package/lib/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
- package/lib/shared/views/CometChatAudioBubble/resources/play.png +0 -0
- package/lib/shared/views/CometChatAvatar/resources/default.jpg +0 -0
- package/lib/shared/views/CometChatCard/CometChatCard.d.ts +0 -15
- package/lib/shared/views/CometChatDropDown/resources/downArrowIcon.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/activity.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/animals.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/flags.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/food.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/objects.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/smileys.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/symbols.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/travel.png +0 -0
- package/lib/shared/views/CometChatFileBubble/resources/download.png +0 -0
- package/lib/shared/views/CometChatFileBubble/resources/file_upload.png +0 -0
- package/lib/shared/views/CometChatImageBubble/assets/spineer.png +0 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/Back.png +0 -0
- package/lib/shared/views/CometChatList/CometChatList.d.ts +0 -86
- package/lib/shared/views/CometChatList/resources/Back.png +0 -0
- package/lib/shared/views/CometChatList/resources/Search.png +0 -0
- package/lib/shared/views/CometChatList/resources/Spinner.png +0 -0
- package/lib/shared/views/CometChatList/resources/check.png +0 -0
- package/lib/shared/views/CometChatList/resources/checkmark.png +0 -0
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -21
- package/lib/shared/views/CometChatPanel/resources/CloseIcon.png +0 -0
- package/lib/shared/views/CometChatQuickReactions/resources/AddReactions.png +0 -0
- package/lib/shared/views/CometChatReactionList/resources/Spineer.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/blue-double-tick-icon.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/error.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/grey-double-tick-icon.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/grey-tick-icon.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/sending.png +0 -0
- package/lib/shared/views/CometChatVideoBubble/resources/play.png +0 -0
- /package/{lib/shared/views/CometChatVideoBubble → src/extensions/ThumbnailGeneration}/resources/default_image.png +0 -0
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { DataSourceDecorator } from '../../shared/framework';
|
|
2
|
-
// @ts-ignore
|
|
3
|
-
import { CometChat } from '@cometchat/chat-sdk-react-native';
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { MessageOptionConstants, MessageStatusConstants, } from '../../shared/constants/UIKitConstants';
|
|
7
|
-
import { CometChatMessageReactions } from './CometChatMessageReactions';
|
|
8
|
-
import { localize } from '../../shared/resources/CometChatLocalize';
|
|
9
|
-
import { CometChatEmojiKeyboard } from '../../shared/views/CometChatEmojiKeyboard';
|
|
10
|
-
import { ExtensionConstants, ExtensionURLs } from '../ExtensionConstants';
|
|
11
|
-
import { CometChatUIEvents, MessageEvents } from '../../shared/events';
|
|
12
|
-
import { CometChatUIEventHandler } from '../../shared/events/CometChatUIEventHandler/CometChatUIEventHandler';
|
|
13
|
-
import { ICONS } from './resources';
|
|
14
|
-
export class ReactionsExtensionDecorator extends DataSourceDecorator {
|
|
15
|
-
messageObject;
|
|
16
|
-
loggedInUser;
|
|
17
|
-
imageModerationConfiguration;
|
|
18
|
-
// loggedInUser: CometChat.User;
|
|
19
|
-
constructor(dataSource, imageModerationConfiguration) {
|
|
20
|
-
super(dataSource);
|
|
21
|
-
CometChat.getLoggedinUser()
|
|
22
|
-
.then((u) => {
|
|
23
|
-
this.loggedInUser = u;
|
|
24
|
-
})
|
|
25
|
-
.catch((err) => console.log(err));
|
|
26
|
-
if (imageModerationConfiguration != undefined) {
|
|
27
|
-
this.imageModerationConfiguration = imageModerationConfiguration;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
getId() {
|
|
31
|
-
return 'Reactions';
|
|
32
|
-
}
|
|
33
|
-
getBottomView(messageObject, alignment) {
|
|
34
|
-
return (<CometChatMessageReactions loggedInUser={this.loggedInUser} messageObject={messageObject} onReactionClick={this.reactToMessages} {...this.imageModerationConfiguration}/>);
|
|
35
|
-
}
|
|
36
|
-
getReactions() {
|
|
37
|
-
return {
|
|
38
|
-
id: MessageOptionConstants.reactToMessage,
|
|
39
|
-
title: localize('ADD_REACTION'),
|
|
40
|
-
icon: ICONS.ADDREACTION,
|
|
41
|
-
CustomView: (messageObject) => (<CometChatEmojiKeyboard onClick={(item) => {
|
|
42
|
-
CometChatUIEventHandler.emitUIEvent(CometChatUIEvents.ccToggleBottomSheet, {
|
|
43
|
-
isBottomSheetVisible: false,
|
|
44
|
-
});
|
|
45
|
-
this.reactToMessages(item, messageObject);
|
|
46
|
-
}}/>),
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
getCommonOptions(loggedInUser, messageObject, group) {
|
|
50
|
-
let optionsList = super.getCommonOptions(loggedInUser, messageObject, group);
|
|
51
|
-
optionsList.push(this.getReactions());
|
|
52
|
-
return optionsList;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @param {*} message
|
|
57
|
-
* @param {*} emoji
|
|
58
|
-
* Calls extension reaction to Messages
|
|
59
|
-
*/
|
|
60
|
-
reactToMessages = (emoji, messageObj) => {
|
|
61
|
-
const userObject = {};
|
|
62
|
-
if (this.loggedInUser?.avatar?.length) {
|
|
63
|
-
userObject['avatar'] = this.loggedInUser.avatar;
|
|
64
|
-
}
|
|
65
|
-
if (this.loggedInUser?.name?.length) {
|
|
66
|
-
userObject['name'] = this.loggedInUser.name;
|
|
67
|
-
}
|
|
68
|
-
let metaData = messageObj.getMetadata();
|
|
69
|
-
if (!metaData) {
|
|
70
|
-
metaData = {};
|
|
71
|
-
}
|
|
72
|
-
if (metaData && !metaData['@injected']) {
|
|
73
|
-
metaData = {
|
|
74
|
-
...metaData,
|
|
75
|
-
'@injected': { extensions: { reactions: {} } },
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
if (metaData &&
|
|
79
|
-
metaData['@injected'] &&
|
|
80
|
-
metaData['@injected']['extensions']['reactions']) {
|
|
81
|
-
let tempMetaData = {};
|
|
82
|
-
let reactionData = metaData['@injected']['extensions']['reactions'];
|
|
83
|
-
if (reactionData) {
|
|
84
|
-
if (reactionData[emoji]) {
|
|
85
|
-
reactionData[emoji] = {
|
|
86
|
-
...reactionData[emoji],
|
|
87
|
-
[this.loggedInUser?.uid]: userObject,
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
reactionData[emoji] = { [this.loggedInUser?.uid]: userObject };
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
tempMetaData = {
|
|
95
|
-
...metaData['@injected']['extensions']['reactions'],
|
|
96
|
-
...reactionData,
|
|
97
|
-
};
|
|
98
|
-
metaData['@injected']['extensions']['reactions'] = tempMetaData;
|
|
99
|
-
}
|
|
100
|
-
messageObj.setMetadata(metaData);
|
|
101
|
-
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, {
|
|
102
|
-
message: messageObj,
|
|
103
|
-
status: MessageStatusConstants.success,
|
|
104
|
-
});
|
|
105
|
-
CometChat.callExtension(ExtensionConstants.reactions, 'POST', ExtensionURLs.reaction, {
|
|
106
|
-
msgId: messageObj.id,
|
|
107
|
-
emoji: emoji,
|
|
108
|
-
}).catch((error) => {
|
|
109
|
-
console.log('error', error);
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
//# sourceMappingURL=ReactionsDecorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionsDecorator.js","sourceRoot":"","sources":["../../../src/extensions/Reactions/ReactionsDecorator.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ExtensionsDataSource } from '../../shared/framework';
|
|
2
|
-
import { MessageReactionsInterface } from './CometChatMessageReactions/CometChatMessageReactions';
|
|
3
|
-
export interface ReactionsConfigurationInterface extends Omit<MessageReactionsInterface, 'messageObject' | 'loggedInUser' | 'updateReaction' | 'onReactionClick'> {
|
|
4
|
-
}
|
|
5
|
-
export declare class ReactionsExtension extends ExtensionsDataSource {
|
|
6
|
-
ReactionsConfigurationInterface?: ReactionsConfigurationInterface;
|
|
7
|
-
constructor(ReactionsConfigurationConfiguration?: ReactionsConfigurationInterface);
|
|
8
|
-
/**
|
|
9
|
-
* enable
|
|
10
|
-
* @description enables the Text moderation extension which includes Data profanity and data masking
|
|
11
|
-
*/
|
|
12
|
-
addExtension(): void;
|
|
13
|
-
getExtensionId(): string;
|
|
14
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ExtensionsDataSource, ChatConfigurator, } from '../../shared/framework';
|
|
2
|
-
import { ReactionsExtensionDecorator } from './ReactionsDecorator';
|
|
3
|
-
import { ExtensionConstants } from '../ExtensionConstants';
|
|
4
|
-
export class ReactionsExtension extends ExtensionsDataSource {
|
|
5
|
-
ReactionsConfigurationInterface;
|
|
6
|
-
constructor(ReactionsConfigurationConfiguration) {
|
|
7
|
-
super();
|
|
8
|
-
if (ReactionsConfigurationConfiguration != null) {
|
|
9
|
-
this.ReactionsConfigurationInterface =
|
|
10
|
-
ReactionsConfigurationConfiguration;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* enable
|
|
15
|
-
* @description enables the Text moderation extension which includes Data profanity and data masking
|
|
16
|
-
*/
|
|
17
|
-
//override addExtension method from ExtensionsDataSource interface
|
|
18
|
-
addExtension() {
|
|
19
|
-
ChatConfigurator.enable((dataSource) => {
|
|
20
|
-
return new ReactionsExtensionDecorator(dataSource, this.ReactionsConfigurationInterface);
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
//override getExtensionId method from ExtensionsDataSource interface
|
|
24
|
-
getExtensionId() {
|
|
25
|
-
return ExtensionConstants.reactions;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=ReactionsExtension.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionsExtension.js","sourceRoot":"","sources":["../../../src/extensions/Reactions/ReactionsExtension.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,gBAAgB,GAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAQ3D,MAAM,OAAO,kBAAmB,SAAQ,oBAAoB;IAC1D,+BAA+B,CAAmC;IAElE,YACE,mCAAqE;QAErE,KAAK,EAAE,CAAC;QACR,IAAI,mCAAmC,IAAI,IAAI,EAAE;YAC/C,IAAI,CAAC,+BAA+B;gBAClC,mCAAmC,CAAC;SACvC;IACH,CAAC;IAED;;;OAGG;IAEH,kEAAkE;IACzD,YAAY;QACnB,gBAAgB,CAAC,MAAM,CAAC,CAAC,UAAsB,EAAE,EAAE;YACjD,OAAO,IAAI,2BAA2B,CACpC,UAAU,EACV,IAAI,CAAC,+BAA+B,CACrC,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAED,oEAAoE;IAC3D,cAAc;QACrB,OAAO,kBAAkB,CAAC,SAAS,CAAC;IACtC,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/extensions/Reactions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAmC,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAmC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/extensions/Reactions/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,WAAW,EAAE,CAAC"}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DataSource, DataSourceDecorator } from '../../shared/framework';
|
|
2
|
-
import { CometChat } from '@cometchat/chat-sdk-react-native';
|
|
3
|
-
import { ImageBubbleStyleInterface, VideoBubbleStyleInterface } from '../../shared/views';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { CometChatTheme } from '../../shared/resources/CometChatTheme';
|
|
6
|
-
import { ThumbnailGenerationConfigurationInterface } from './ThumbnailGenerationExtension';
|
|
7
|
-
export declare class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator {
|
|
8
|
-
thumbnailGenerationConfiguration?: ThumbnailGenerationConfigurationInterface;
|
|
9
|
-
constructor(dataSource: DataSource, thumbnailGenerationConfiguration?: ThumbnailGenerationConfigurationInterface);
|
|
10
|
-
getId(): string;
|
|
11
|
-
checkThumbnail(message: any): {
|
|
12
|
-
uri: string;
|
|
13
|
-
};
|
|
14
|
-
getVideoMessageBubble(videoUrl: string, thumbnailUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, videoBubbleStyle: VideoBubbleStyleInterface): React.JSX.Element;
|
|
15
|
-
getImageMessageBubble(imageUrl: string, caption: string, style: ImageBubbleStyleInterface, message: CometChat.MediaMessage, theme: any): JSX.Element;
|
|
16
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
3
|
-
import { MessageBubbleAlignmentType } from "../constants/UIKitConstants";
|
|
4
|
-
import { CometChatMessageOption } from "../modals/CometChatMessageOption";
|
|
5
|
-
import { CometChatMessageTemplate } from "../modals/CometChatMessageTemplate";
|
|
6
|
-
import { CometChatTheme } from "../resources/CometChatTheme";
|
|
7
|
-
import { AudioBubbleStyleInterface } from "../views/CometChatAudioBubble";
|
|
8
|
-
import { FileBubbleStyleInterface } from "../views/CometChatFileBubble";
|
|
9
|
-
import { ImageBubbleStyleInterface } from "../views/CometChatImageBubble";
|
|
10
|
-
import { VideoBubbleStyleInterface } from "../views/CometChatVideoBubble";
|
|
11
|
-
export interface DataSource {
|
|
12
|
-
getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): Array<CometChatMessageOption>;
|
|
13
|
-
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): Array<CometChatMessageOption>;
|
|
14
|
-
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): Array<CometChatMessageOption>;
|
|
15
|
-
getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): Array<CometChatMessageOption>;
|
|
16
|
-
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): Array<CometChatMessageOption>;
|
|
17
|
-
getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): Array<CometChatMessageOption>;
|
|
18
|
-
getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): Array<CometChatMessageOption>;
|
|
19
|
-
getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType): JSX.Element;
|
|
20
|
-
getDeleteMessageBubble(message: CometChat.BaseMessage, theme: CometChatTheme): JSX.Element;
|
|
21
|
-
getVideoMessageBubble(videoUrl: string, thumbnailUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, videoBubbleStyle: VideoBubbleStyleInterface): any;
|
|
22
|
-
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element;
|
|
23
|
-
getImageMessageBubble(imageUrl: string, caption: string, style: ImageBubbleStyleInterface, message: CometChat.MediaMessage, theme: CometChatTheme): JSX.Element;
|
|
24
|
-
getAudioMessageBubble(audioUrl: string, title: string, style: AudioBubbleStyleInterface, message: CometChat.MediaMessage, theme: CometChatTheme): JSX.Element;
|
|
25
|
-
getFileMessageBubble(fileUrl: string, title: string, style: FileBubbleStyleInterface, message: CometChat.MediaMessage, theme: CometChatTheme): JSX.Element;
|
|
26
|
-
getGroupActionBubble(message: CometChat.BaseMessage, theme: CometChatTheme): JSX.Element;
|
|
27
|
-
getTextMessageContentView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element;
|
|
28
|
-
getAudioMessageContentView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element;
|
|
29
|
-
getVideoMessageContentView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element;
|
|
30
|
-
getImageMessageContentView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element;
|
|
31
|
-
getFileMessageContentView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element;
|
|
32
|
-
getTextMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
33
|
-
getAudioMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
34
|
-
getVideoMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
35
|
-
getImageMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
36
|
-
getFileMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
37
|
-
getAllMessageTemplates(theme: CometChatTheme): Array<CometChatMessageTemplate>;
|
|
38
|
-
getMessageTemplate(messageType: string, MessageCategory: string, theme: CometChatTheme): CometChatMessageTemplate | null;
|
|
39
|
-
getGroupActionTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
40
|
-
getAllMessageTypes(): Array<string>;
|
|
41
|
-
getAllMessageCategories(): Array<string>;
|
|
42
|
-
getAuxiliaryOptions(user: CometChat.User, group: CometChat.Group, id: Map<string, any>): JSX.Element;
|
|
43
|
-
getId(): string;
|
|
44
|
-
getMessageTypeToSubtitle(messageType: string): string;
|
|
45
|
-
getAttachmentOptions: (user?: any, group?: any, composerId?: any) => any;
|
|
46
|
-
getAuxiliaryButtonOptions: () => any;
|
|
47
|
-
getLastConversationMessage(conversation: CometChat.Conversation): string;
|
|
48
|
-
getAuxiliaryHeaderAppbarOptions(user?: CometChat.User, group?: CometChat.Group, theme?: CometChatTheme): JSX.Element;
|
|
49
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
3
|
-
import { MessageBubbleAlignmentType } from "../constants/UIKitConstants";
|
|
4
|
-
import { CometChatMessageOption } from "../modals/CometChatMessageOption";
|
|
5
|
-
import { CometChatMessageTemplate } from "../modals/CometChatMessageTemplate";
|
|
6
|
-
import { DataSource } from "./DataSource";
|
|
7
|
-
import { VideoBubbleStyleInterface } from "../views/CometChatVideoBubble";
|
|
8
|
-
import { CometChatTheme } from "../resources/CometChatTheme";
|
|
9
|
-
import { ImageBubbleStyleInterface } from "../views/CometChatImageBubble";
|
|
10
|
-
import { AudioBubbleStyleInterface } from "../views/CometChatAudioBubble";
|
|
11
|
-
import { FileBubbleStyleInterface } from "../views/CometChatFileBubble";
|
|
12
|
-
import { CometChatMessageComposerActionInterface } from "../helper/types";
|
|
13
|
-
export declare class MessageDataSource implements DataSource {
|
|
14
|
-
getEditOption(): CometChatMessageOption;
|
|
15
|
-
getDeleteOption(): CometChatMessageOption;
|
|
16
|
-
getReplyOption(): CometChatMessageOption;
|
|
17
|
-
getReplyInThreadOption(): CometChatMessageOption;
|
|
18
|
-
getShareOption(): CometChatMessageOption;
|
|
19
|
-
getCopyOption(): CometChatMessageOption;
|
|
20
|
-
getInformationOption(): CometChatMessageOption;
|
|
21
|
-
getPrivateMessageOption(): CometChatMessageOption;
|
|
22
|
-
isSentByMe(loggedInUser: CometChat.User, message: CometChat.BaseMessage): boolean;
|
|
23
|
-
getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): CometChatMessageOption[];
|
|
24
|
-
getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): CometChatMessageOption[];
|
|
25
|
-
getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): CometChatMessageOption[];
|
|
26
|
-
getImageMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): CometChatMessageOption[];
|
|
27
|
-
getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): CometChatMessageOption[];
|
|
28
|
-
getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): CometChatMessageOption[];
|
|
29
|
-
getCommonOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): CometChatMessageOption[];
|
|
30
|
-
getGroupActionBubble(message: CometChat.BaseMessage, theme: CometChatTheme): JSX.Element;
|
|
31
|
-
getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType): JSX.Element;
|
|
32
|
-
getDeleteMessageBubble(message: CometChat.BaseMessage, theme: CometChatTheme): JSX.Element;
|
|
33
|
-
getVideoMessageBubble(videoUrl: string, thumbnailUrl: string, message: CometChat.MediaMessage, theme: CometChatTheme, videoBubbleStyle: VideoBubbleStyleInterface): React.JSX.Element;
|
|
34
|
-
getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element;
|
|
35
|
-
getImageMessageBubble(imageUrl: string, caption: string, style: ImageBubbleStyleInterface, message: CometChat.MediaMessage, theme: CometChatTheme): JSX.Element;
|
|
36
|
-
getAudioMessageBubble(audioUrl: string, title: string, style: AudioBubbleStyleInterface, message: CometChat.MediaMessage, theme: CometChatTheme): JSX.Element;
|
|
37
|
-
getFileMessageBubble(fileUrl: string, title: string, style: FileBubbleStyleInterface, message: CometChat.MediaMessage, theme: CometChatTheme): JSX.Element;
|
|
38
|
-
getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element;
|
|
39
|
-
getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element;
|
|
40
|
-
getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element;
|
|
41
|
-
getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element;
|
|
42
|
-
getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme): JSX.Element;
|
|
43
|
-
getTextMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
44
|
-
getAudioMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
45
|
-
getVideoMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
46
|
-
getImageMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
47
|
-
getFileMessageTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
48
|
-
getGroupActionTemplate(theme: CometChatTheme): CometChatMessageTemplate;
|
|
49
|
-
getAllMessageTemplates(theme: CometChatTheme): CometChatMessageTemplate[];
|
|
50
|
-
getMessageTemplate(messageType: string, MessageCategory: string, theme: CometChatTheme): CometChatMessageTemplate;
|
|
51
|
-
getAllMessageTypes(): string[];
|
|
52
|
-
getAllMessageCategories(): string[];
|
|
53
|
-
getAuxiliaryOptions(user: CometChat.User, group: CometChat.Group, id: Map<string, any>): JSX.Element;
|
|
54
|
-
getAuxiliaryHeaderAppbarOptions(user?: CometChat.User, group?: CometChat.Group): JSX.Element;
|
|
55
|
-
getId(): string;
|
|
56
|
-
getMessageTypeToSubtitle(messageType: string): string;
|
|
57
|
-
usersActionList: () => {
|
|
58
|
-
id: string;
|
|
59
|
-
title: any;
|
|
60
|
-
iconUrl: any;
|
|
61
|
-
onClick: any;
|
|
62
|
-
}[];
|
|
63
|
-
groupActionList: () => {
|
|
64
|
-
id: string;
|
|
65
|
-
title: any;
|
|
66
|
-
iconUrl: any;
|
|
67
|
-
onClick: any;
|
|
68
|
-
}[];
|
|
69
|
-
getAttachmentOptions(user?: any, group?: any, composerId?: any): CometChatMessageComposerActionInterface[];
|
|
70
|
-
getAuxiliaryButtonOptions(): any;
|
|
71
|
-
getLastConversationMessage(conversation: CometChat.Conversation): string;
|
|
72
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CometChat } from '@cometchat/chat-sdk-react-native';
|
|
3
|
-
import { FontStyleInterface } from '../../base';
|
|
4
|
-
import { ImageURISource } from 'react-native';
|
|
5
|
-
export type ImageType = ImageURISource;
|
|
6
|
-
export interface CometChatMessageComposerActionInterface {
|
|
7
|
-
id?: any;
|
|
8
|
-
title?: string;
|
|
9
|
-
iconUrl?: ImageType;
|
|
10
|
-
iconTint?: string;
|
|
11
|
-
iconBackground?: string;
|
|
12
|
-
titleFont?: FontStyleInterface;
|
|
13
|
-
titleColor?: string;
|
|
14
|
-
titleAppearance?: any;
|
|
15
|
-
background?: string;
|
|
16
|
-
cornerRadius?: number;
|
|
17
|
-
CustomView?: (user: CometChat.User, group: CometChat.Group, id: string | number, props: object) => JSX.Element;
|
|
18
|
-
onPress?: Function;
|
|
19
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TextStyle } from 'react-native';
|
|
3
|
-
import { ImageType } from '../base';
|
|
4
|
-
export interface CometChatDetailsOption {
|
|
5
|
-
id?: string | number;
|
|
6
|
-
title?: string;
|
|
7
|
-
icon?: ImageType;
|
|
8
|
-
titleStyle?: TextStyle;
|
|
9
|
-
backgroundColor?: string;
|
|
10
|
-
iconTint?: string;
|
|
11
|
-
CustomView?: () => JSX.Element;
|
|
12
|
-
Tail?: () => JSX.Element;
|
|
13
|
-
height?: number;
|
|
14
|
-
onClick?: ({ user, group }: {
|
|
15
|
-
user?: any;
|
|
16
|
-
group?: any;
|
|
17
|
-
}) => void;
|
|
18
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CometChat } from '@cometchat/chat-sdk-react-native';
|
|
3
|
-
import { FontStyleInterface, ImageType } from '../base';
|
|
4
|
-
export type CometChatMessageOption = {
|
|
5
|
-
id: string;
|
|
6
|
-
title: string;
|
|
7
|
-
icon?: ImageType;
|
|
8
|
-
packageName?: string;
|
|
9
|
-
iconTint?: string;
|
|
10
|
-
titleStyle?: FontStyleInterface;
|
|
11
|
-
CustomView?: (message: CometChat.BaseMessage) => JSX.Element;
|
|
12
|
-
onPress?: (message: CometChat.BaseMessage) => void;
|
|
13
|
-
};
|