@cometchat/chat-uikit-react-native 4.3.11 → 4.3.12
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/listners.ts +56 -35
- package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +5 -5
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +4 -3
- package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +41 -50
- package/src/CometChatMessageList/CometChatMessageList.tsx +51 -37
- 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/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/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
|
@@ -18,9 +18,10 @@ import { CometChatMediaRecorder, CometChatMediaRecorderInterface, MediaRecorderS
|
|
|
18
18
|
import { CometChatFormBubble, CometChatFormBubbleInterface } from './CometChatFormBubble';
|
|
19
19
|
import { CometChatCardBubble, CometChatCardBubbleInterface } from './CometChatCardBubble';
|
|
20
20
|
import { CometChatSchedulerBubble, CometChatSchedulerBubbleInterface } from './CometChatSchedulerBubble';
|
|
21
|
+
import { CometChatDateTimePicker, CometChatDateTimePickerInterface, DatePickerStyleInterface } from './CometChatDateTimePicker';
|
|
21
22
|
import { CometChatReactions, CometChatReactionsInterface, ReactionsConfiguration, ReactionsConfigurationInterface, ReactionsStyle, ReactionsStyleInterface } from './CometChatReactions';
|
|
22
23
|
import { CometChatReactionList, CometChatReactionListInterface, ReactionListStyle, ReactionListStyleInterface, ReactionListConfiguration, ReactionListConfigurationInterface } from './CometChatReactionList';
|
|
23
24
|
import { CometChatQuickReactions, CometChatQuickReactionsInterface, QuickReactionsConfiguration, QuickReactionsConfigurationInterface, QuickReactionsStyle, QuickReactionsStyleInterface } from './CometChatQuickReactions';
|
|
24
25
|
import { CometChatEmojiKeyboard, EmojiKeyboardConfiguration, EmojiKeyboardStyle } from './CometChatEmojiKeyboard';
|
|
25
26
|
import { CometChatSuggestionList, CometChatSuggestionListInterface, SuggestionItem, SuggestionListConfiguration, SuggestionListConfigurationInterface } from './CometChatSuggestionList';
|
|
26
|
-
export { CometChatMessageInputStyleInterface, CometChatMessageInputInterface, CometChatBottomSheetInterface, CometChatDateInterface, DateConfigurationInterface, DateStyleInterface, CometChatReceiptInterface, ReceiptConfigurationInterface, CometChatStatusIndicatorInterface, StatusIndicatorConfigurationInterface, StatusIndicatorStyleInterface, BadgeConfigurationInterface, BadgeStyleInterface, AvatarConfigurationInterface, ActionItemInterface, ActionSheetStylesInterface, CometChatConfirmDialogInterface, CometChatConfirmDialogStyleInterface, ListItemConfiguration, AvatarStyleInterface, ListItemStyleInterface, CometChatListItem, CometChatListItemInterface, ListItemStyle, CometChatAvatar, CometChatBadge, CometChatStatusIndicator, CometChatReceipt, CometChatDate, AvatarConfiguration, BadgeConfiguration, BadgeStyle, DateConfiguration, ReceiptConfiguration, StatusIndicatorConfiguration, StatusIndicatorStyle, DateStyle, AvatarStyle, CometChatMessageInput, AudioBubbleStyle, AudioBubbleStyleInterface, CometChatAudioBubble, CometChatAudioBubbleInterface, CometChatFileBubble, CometChatFileBubbleInterface, FileBubbleStyle, FileBubbleStyleInterface, CometChatVideoBubble, CometChatVideoBubbleInterface, VideoBubbleStyle, VideoBubbleStyleInterface, CometChatTextBubble, CometChatTextBubbleInterface, TextBubbleStyle, TextBubbleStyleInterface, CometChatImageBubble, CometChatImageBubbleInterface, ImageBubbleStyle, ImageBubbleStyleInterface, CometChatActionSheet, ActionSheetStyles, ActionItem, CometChatBottomSheet, CometChatConfirmDialog, CometChatList, CometChatListProps, CometChatListActionsInterface, CometChatListStylesInterface, CometChatMediaRecorder, CometChatMediaRecorderInterface, MediaRecorderStyleInterface, MediaRecorderStyle, CometChatFormBubble, CometChatFormBubbleInterface, CometChatCardBubble, CometChatCardBubbleInterface, CometChatReactions, CometChatReactionsInterface, ReactionsConfiguration, ReactionsConfigurationInterface, ReactionsStyle, ReactionsStyleInterface, CometChatReactionList, CometChatReactionListInterface, ReactionListStyle, ReactionListStyleInterface, ReactionListConfiguration, ReactionListConfigurationInterface, CometChatQuickReactions, CometChatQuickReactionsInterface, QuickReactionsConfiguration, QuickReactionsConfigurationInterface, QuickReactionsStyle, QuickReactionsStyleInterface, CometChatEmojiKeyboard, EmojiKeyboardConfiguration, EmojiKeyboardStyle, CometChatSchedulerBubble, CometChatSchedulerBubbleInterface, CometChatSuggestionList, CometChatSuggestionListInterface, SuggestionItem, SuggestionListConfiguration, SuggestionListConfigurationInterface, };
|
|
27
|
+
export { CometChatMessageInputStyleInterface, CometChatMessageInputInterface, CometChatBottomSheetInterface, CometChatDateInterface, DateConfigurationInterface, DateStyleInterface, CometChatReceiptInterface, ReceiptConfigurationInterface, CometChatStatusIndicatorInterface, StatusIndicatorConfigurationInterface, StatusIndicatorStyleInterface, BadgeConfigurationInterface, BadgeStyleInterface, AvatarConfigurationInterface, ActionItemInterface, ActionSheetStylesInterface, CometChatConfirmDialogInterface, CometChatConfirmDialogStyleInterface, ListItemConfiguration, AvatarStyleInterface, ListItemStyleInterface, CometChatListItem, CometChatListItemInterface, ListItemStyle, CometChatAvatar, CometChatBadge, CometChatStatusIndicator, CometChatReceipt, CometChatDate, AvatarConfiguration, BadgeConfiguration, BadgeStyle, DateConfiguration, ReceiptConfiguration, StatusIndicatorConfiguration, StatusIndicatorStyle, DateStyle, AvatarStyle, CometChatMessageInput, AudioBubbleStyle, AudioBubbleStyleInterface, CometChatAudioBubble, CometChatAudioBubbleInterface, CometChatFileBubble, CometChatFileBubbleInterface, FileBubbleStyle, FileBubbleStyleInterface, CometChatVideoBubble, CometChatVideoBubbleInterface, VideoBubbleStyle, VideoBubbleStyleInterface, CometChatTextBubble, CometChatTextBubbleInterface, TextBubbleStyle, TextBubbleStyleInterface, CometChatImageBubble, CometChatImageBubbleInterface, ImageBubbleStyle, ImageBubbleStyleInterface, CometChatActionSheet, ActionSheetStyles, ActionItem, CometChatBottomSheet, CometChatConfirmDialog, CometChatList, CometChatListProps, CometChatListActionsInterface, CometChatListStylesInterface, CometChatMediaRecorder, CometChatMediaRecorderInterface, MediaRecorderStyleInterface, MediaRecorderStyle, CometChatFormBubble, CometChatFormBubbleInterface, CometChatCardBubble, CometChatCardBubbleInterface, CometChatReactions, CometChatReactionsInterface, ReactionsConfiguration, ReactionsConfigurationInterface, ReactionsStyle, ReactionsStyleInterface, CometChatReactionList, CometChatReactionListInterface, ReactionListStyle, ReactionListStyleInterface, ReactionListConfiguration, ReactionListConfigurationInterface, CometChatQuickReactions, CometChatQuickReactionsInterface, QuickReactionsConfiguration, QuickReactionsConfigurationInterface, QuickReactionsStyle, QuickReactionsStyleInterface, CometChatEmojiKeyboard, EmojiKeyboardConfiguration, EmojiKeyboardStyle, CometChatSchedulerBubble, CometChatSchedulerBubbleInterface, CometChatSuggestionList, CometChatSuggestionListInterface, SuggestionItem, SuggestionListConfiguration, SuggestionListConfigurationInterface, CometChatDateTimePicker, CometChatDateTimePickerInterface, DatePickerStyleInterface };
|
|
@@ -18,6 +18,7 @@ import { CometChatMediaRecorder, MediaRecorderStyle } from './CometChatMediaReco
|
|
|
18
18
|
import { CometChatFormBubble } from './CometChatFormBubble';
|
|
19
19
|
import { CometChatCardBubble } from './CometChatCardBubble';
|
|
20
20
|
import { CometChatSchedulerBubble } from './CometChatSchedulerBubble';
|
|
21
|
+
import { CometChatDateTimePicker } from './CometChatDateTimePicker';
|
|
21
22
|
import { CometChatReactions, ReactionsConfiguration, ReactionsStyle } from './CometChatReactions';
|
|
22
23
|
import { CometChatReactionList, ReactionListStyle, ReactionListConfiguration } from './CometChatReactionList';
|
|
23
24
|
import { CometChatQuickReactions, QuickReactionsConfiguration, QuickReactionsStyle } from './CometChatQuickReactions';
|
|
@@ -25,5 +26,5 @@ import { CometChatEmojiKeyboard, EmojiKeyboardConfiguration, EmojiKeyboardStyle
|
|
|
25
26
|
import { CometChatSuggestionList, SuggestionItem, SuggestionListConfiguration } from './CometChatSuggestionList';
|
|
26
27
|
export { ListItemConfiguration, CometChatListItem, ListItemStyle, CometChatAvatar, CometChatBadge, CometChatStatusIndicator, CometChatReceipt, CometChatDate, AvatarConfiguration, BadgeConfiguration, BadgeStyle, DateConfiguration, ReceiptConfiguration, StatusIndicatorConfiguration, StatusIndicatorStyle, DateStyle, AvatarStyle, CometChatMessageInput, AudioBubbleStyle, CometChatAudioBubble, CometChatFileBubble, FileBubbleStyle, CometChatVideoBubble, VideoBubbleStyle, CometChatTextBubble, TextBubbleStyle, CometChatImageBubble, ImageBubbleStyle,
|
|
27
28
|
//
|
|
28
|
-
CometChatActionSheet, ActionSheetStyles, ActionItem, CometChatBottomSheet, CometChatConfirmDialog, CometChatList, CometChatMediaRecorder, MediaRecorderStyle, CometChatFormBubble, CometChatCardBubble, CometChatReactions, ReactionsConfiguration, ReactionsStyle, CometChatReactionList, ReactionListStyle, ReactionListConfiguration, CometChatQuickReactions, QuickReactionsConfiguration, QuickReactionsStyle, CometChatEmojiKeyboard, EmojiKeyboardConfiguration, EmojiKeyboardStyle, CometChatSchedulerBubble, CometChatSuggestionList, SuggestionItem, SuggestionListConfiguration, };
|
|
29
|
+
CometChatActionSheet, ActionSheetStyles, ActionItem, CometChatBottomSheet, CometChatConfirmDialog, CometChatList, CometChatMediaRecorder, MediaRecorderStyle, CometChatFormBubble, CometChatCardBubble, CometChatReactions, ReactionsConfiguration, ReactionsStyle, CometChatReactionList, ReactionListStyle, ReactionListConfiguration, CometChatQuickReactions, QuickReactionsConfiguration, QuickReactionsStyle, CometChatEmojiKeyboard, EmojiKeyboardConfiguration, EmojiKeyboardStyle, CometChatSchedulerBubble, CometChatSuggestionList, SuggestionItem, SuggestionListConfiguration, CometChatDateTimePicker };
|
|
29
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/views/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAEpB,gBAAgB,GAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EAGX,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EAEnB,eAAe,GAEhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oBAAoB,EAEpB,gBAAgB,GAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EAEnB,eAAe,GAEhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,GAErB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,eAAe,EACf,mBAAmB,EAEnB,WAAW,EAEZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,cAAc,EACd,kBAAkB,EAGlB,UAAU,GACX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,oBAAoB,GAIrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAA4D,MAAM,oBAAoB,CAAC;AACtI,OAAO,EAA0E,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACtJ,OAAO,EACL,aAAa,GAId,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,iBAAiB,EACjB,aAAa,EAGb,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAuE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrI,OAAO,EAAiC,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAyE,MAAM,0BAA0B,CAAC;AACzI,OAAO,EACL,sBAAsB,EAGtB,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAgC,MAAM,uBAAuB,CAAA;AACzF,OAAO,EAAE,mBAAmB,EAAgC,MAAM,uBAAuB,CAAA;AACzF,OAAO,EAAE,wBAAwB,EAAqC,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/views/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAEpB,gBAAgB,GAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EAGX,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EAEnB,eAAe,GAEhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oBAAoB,EAEpB,gBAAgB,GAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EAEnB,eAAe,GAEhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,GAErB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,eAAe,EACf,mBAAmB,EAEnB,WAAW,EAEZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,cAAc,EACd,kBAAkB,EAGlB,UAAU,GACX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,oBAAoB,GAIrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAA4D,MAAM,oBAAoB,CAAC;AACtI,OAAO,EAA0E,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACtJ,OAAO,EACL,aAAa,GAId,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,iBAAiB,EACjB,aAAa,EAGb,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAuE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrI,OAAO,EAAiC,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAyE,MAAM,0BAA0B,CAAC;AACzI,OAAO,EACL,sBAAsB,EAGtB,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAgC,MAAM,uBAAuB,CAAA;AACzF,OAAO,EAAE,mBAAmB,EAAgC,MAAM,uBAAuB,CAAA;AACzF,OAAO,EAAE,wBAAwB,EAAqC,MAAM,4BAA4B,CAAA;AACxG,OAAO,EAAE,uBAAuB,EAA8D,MAAM,2BAA2B,CAAA;AAE/H,OAAO,EAAE,kBAAkB,EAA+B,sBAAsB,EAAmC,cAAc,EAA2B,MAAM,sBAAsB,CAAC;AACzL,OAAO,EAAE,qBAAqB,EAAkC,iBAAiB,EAA8B,yBAAyB,EAAsC,MAAM,yBAAyB,CAAC;AAC9M,OAAO,EAAE,uBAAuB,EAAoC,2BAA2B,EAAwC,mBAAmB,EAAgC,MAAM,2BAA2B,CAAC;AAE5N,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAElH,OAAO,EAAE,uBAAuB,EAAoC,cAAc,EAAE,2BAA2B,EAAwC,MAAM,2BAA2B,CAAC;AAEzL,OAAO,EAmBL,qBAAqB,EAGrB,iBAAiB,EAEjB,aAAa,EACb,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,4BAA4B,EAC5B,oBAAoB,EACpB,SAAS,EACT,WAAW,EACX,qBAAqB,EACrB,gBAAgB,EAEhB,oBAAoB,EAEpB,mBAAmB,EAEnB,eAAe,EAEf,oBAAoB,EAEpB,gBAAgB,EAEhB,mBAAmB,EAEnB,eAAe,EAEf,oBAAoB,EAEpB,gBAAgB;AAEhB,EAAE;AACF,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,oBAAoB,EACpB,sBAAsB,EACtB,aAAa,EAIb,sBAAsB,EAGtB,kBAAkB,EAClB,mBAAmB,EAEnB,mBAAmB,EAGnB,kBAAkB,EAElB,sBAAsB,EAEtB,cAAc,EAEd,qBAAqB,EAErB,iBAAiB,EAEjB,yBAAyB,EAEzB,uBAAuB,EAEvB,2BAA2B,EAE3B,mBAAmB,EAGnB,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAElB,wBAAwB,EAGxB,uBAAuB,EAEvB,cAAc,EACd,2BAA2B,EAE3B,uBAAuB,EAGxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import { CometChatBottomSheet, CometChatContext, CometChatContextType, CometChat
|
|
|
6
6
|
import { CloseIcon } from './resources';
|
|
7
7
|
import { ICONS } from '../../shared/framework/resources';
|
|
8
8
|
import { ICONS as MessageIcons } from '../../shared/assets/images';
|
|
9
|
-
import { getUnixTimestamp } from '../../shared/utils/CometChatMessageHelper';
|
|
9
|
+
import { getUnixTimestamp, getUnixTimestampInMilliseconds } from '../../shared/utils/CometChatMessageHelper';
|
|
10
10
|
import { CometChatMessageBubble } from '../../shared/views/CometChatMessageBubble';
|
|
11
11
|
import { ReceiverTypeConstants } from '../../shared/constants/UIKitConstants';
|
|
12
12
|
import { AIBotMessageBubbleStyle, AISenderMessageBubbleStyle } from './AIAssistBotStyle';
|
|
@@ -63,7 +63,7 @@ const AIAssistBotView = (props: AIAssistBotViewProps) => {
|
|
|
63
63
|
ReceiverTypeConstants.user
|
|
64
64
|
);
|
|
65
65
|
message.setSentAt(getUnixTimestamp());
|
|
66
|
-
message.setMuid(String(
|
|
66
|
+
message.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
67
67
|
message.setSender(bot);
|
|
68
68
|
|
|
69
69
|
let newMessages = [...messages];
|
|
@@ -87,7 +87,7 @@ const AIAssistBotView = (props: AIAssistBotViewProps) => {
|
|
|
87
87
|
|
|
88
88
|
let newMessages = [...messages];
|
|
89
89
|
|
|
90
|
-
const MUID = String(
|
|
90
|
+
const MUID = String(getUnixTimestampInMilliseconds());
|
|
91
91
|
const message = new CometChat.TextMessage(
|
|
92
92
|
bot.getUid(),
|
|
93
93
|
question,
|
|
@@ -109,7 +109,7 @@ const AIAssistBotView = (props: AIAssistBotViewProps) => {
|
|
|
109
109
|
ReceiverTypeConstants.user
|
|
110
110
|
);
|
|
111
111
|
message.setSentAt(getUnixTimestamp());
|
|
112
|
-
message.setMuid(String(
|
|
112
|
+
message.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
113
113
|
message.setSender(bot);
|
|
114
114
|
message.setStatus(undefined);
|
|
115
115
|
|
|
@@ -38,26 +38,36 @@ export const CometChatAddMembers = (props: CometChatAddMembersInterface) => {
|
|
|
38
38
|
|
|
39
39
|
CometChat.addMembersToGroup(props.group['guid'], membersList, []).then(
|
|
40
40
|
(response) => {
|
|
41
|
-
let
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
CometChat.CATEGORY_ACTION as CometChat.MessageCategory
|
|
46
|
-
);
|
|
47
|
-
action.setConversationId(group['conversationId'])
|
|
48
|
-
action.setActionBy(loggedInUser.current);
|
|
49
|
-
action.setActionFor(group);
|
|
50
|
-
action.setSender(loggedInUser.current);
|
|
51
|
-
group['membersCount'] = group['membersCount'] + membersList.length; // increase members count
|
|
52
|
-
CometChatUIEventHandler.emitGroupEvent(
|
|
53
|
-
CometChatGroupsEvents.ccGroupMemberAdded,
|
|
54
|
-
{
|
|
55
|
-
addedBy: loggedInUser.current,
|
|
56
|
-
message: action,
|
|
57
|
-
usersAdded: membersList,
|
|
58
|
-
userAddedIn: group,
|
|
41
|
+
let addedUIDs = [];
|
|
42
|
+
Object.keys(response).forEach(key => {
|
|
43
|
+
if (response[key] === "success") {
|
|
44
|
+
addedUIDs.push(key)
|
|
59
45
|
}
|
|
60
|
-
)
|
|
46
|
+
})
|
|
47
|
+
let addedMembers = membersList.filter(item => addedUIDs.includes(item.uid));
|
|
48
|
+
if (addedMembers.length) {
|
|
49
|
+
let action: CometChat.Action = new CometChat.Action(
|
|
50
|
+
group['guid'],
|
|
51
|
+
MessageTypeConstants.groupMember,
|
|
52
|
+
CometChat.RECEIVER_TYPE.GROUP,
|
|
53
|
+
CometChat.CATEGORY_ACTION as CometChat.MessageCategory
|
|
54
|
+
);
|
|
55
|
+
action.setConversationId(group['conversationId'])
|
|
56
|
+
action.setActionBy(loggedInUser.current);
|
|
57
|
+
action.setActionFor(group);
|
|
58
|
+
action.setSender(loggedInUser.current);
|
|
59
|
+
group['membersCount'] = group['membersCount'] + addedMembers.length; // increase members count
|
|
60
|
+
CometChatUIEventHandler.emitGroupEvent(
|
|
61
|
+
CometChatGroupsEvents.ccGroupMemberAdded,
|
|
62
|
+
{
|
|
63
|
+
addedBy: loggedInUser.current,
|
|
64
|
+
message: action,
|
|
65
|
+
usersAdded: addedMembers,
|
|
66
|
+
userAddedIn: group,
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
props.onBack && props.onBack();
|
|
61
71
|
},
|
|
62
72
|
(error) => {
|
|
63
73
|
console.log('Something went wrong', error);
|
|
@@ -81,7 +91,7 @@ export const CometChatAddMembers = (props: CometChatAddMembersInterface) => {
|
|
|
81
91
|
);
|
|
82
92
|
CometChat.getLoggedinUser()
|
|
83
93
|
.then((u) => (loggedInUser.current = u))
|
|
84
|
-
.catch((e) => {});
|
|
94
|
+
.catch((e) => { });
|
|
85
95
|
return CometChat.removeUserListener(userListenerId);
|
|
86
96
|
}, []);
|
|
87
97
|
|
|
@@ -368,15 +368,10 @@ export const CometChatConversations = (props: ConversationInterface) => {
|
|
|
368
368
|
const userEventHandler = (...args) => {
|
|
369
369
|
const { uid, blockedByMe, status } = args[0];
|
|
370
370
|
if (!blockedByMe) {
|
|
371
|
-
let item = conversationListRef.current.getListItem(`${uid}_user_${loggedInUser.current.uid}`);
|
|
371
|
+
let item: CometChat.Conversation = conversationListRef.current.getListItem(`${uid}_user_${loggedInUser.current.uid}`) || conversationListRef.current.getListItem(`${loggedInUser.current.uid}_user_${uid}`);
|
|
372
372
|
if (item) {
|
|
373
|
-
let updatedConversation =
|
|
374
|
-
|
|
375
|
-
conversationWith: {
|
|
376
|
-
...item.conversationWith,
|
|
377
|
-
status
|
|
378
|
-
}
|
|
379
|
-
}
|
|
373
|
+
let updatedConversation = CommonUtils.clone(item);
|
|
374
|
+
updatedConversation.setConversationWith(args[0]);
|
|
380
375
|
console.log(JSON.stringify(updatedConversation));
|
|
381
376
|
conversationListRef.current.updateList(updatedConversation);
|
|
382
377
|
}
|
|
@@ -645,7 +640,7 @@ export const CometChatConversations = (props: ConversationInterface) => {
|
|
|
645
640
|
|
|
646
641
|
const getMessagePreview = (conversations: CometChat.Conversation, uid) => {
|
|
647
642
|
|
|
648
|
-
let lastMessage: CometChat.BaseMessage = conversations.getLastMessage();
|
|
643
|
+
let lastMessage: CometChat.BaseMessage = conversations?.getLastMessage && conversations.getLastMessage();
|
|
649
644
|
if (!lastMessage) return null;
|
|
650
645
|
let messageText: string;
|
|
651
646
|
if (lastMessage.getDeletedAt() !== undefined) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
//@ts-ignore
|
|
2
2
|
import { CometChat } from '@cometchat/chat-sdk-react-native';
|
|
3
|
-
import { CometChatUIEvents } from '../shared
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { CometChatUIKit, CometChatUIEvents, CometChatUIEventHandler } from '../shared';
|
|
4
|
+
const actionPerformedByMe = (message) => {
|
|
5
|
+
return message?.getActionBy && message?.getActionBy().getUid() === CometChatUIKit.loggedInUser.uid;
|
|
6
|
+
}
|
|
6
7
|
export const listners = {
|
|
7
8
|
addListener: {
|
|
8
9
|
userListener: ({ userStatusListenerId, handleUserStatus }) =>
|
|
@@ -25,23 +26,31 @@ export const listners = {
|
|
|
25
26
|
new CometChat.GroupListener({
|
|
26
27
|
onGroupMemberKicked: (message, kickedUser, kickedBy, kickedFrom) => {
|
|
27
28
|
handleGroupListener(kickedFrom);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
if (actionPerformedByMe(message)) {
|
|
30
|
+
CometChatUIEventHandler.emitGroupEvent(
|
|
31
|
+
CometChatUIEvents.ccGroupMemberKicked,
|
|
32
|
+
{
|
|
33
|
+
message,
|
|
34
|
+
kickedUser,
|
|
35
|
+
kickedBy,
|
|
36
|
+
kickedFrom
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
35
40
|
},
|
|
36
41
|
onGroupMemberBanned: (message, bannedUser, bannedBy, bannedFrom) => {
|
|
37
42
|
handleGroupListener(bannedFrom);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
if (actionPerformedByMe(message)) {
|
|
44
|
+
CometChatUIEventHandler.emitGroupEvent(
|
|
45
|
+
CometChatUIEvents.ccGroupMemberBanned,
|
|
46
|
+
{
|
|
47
|
+
message,
|
|
48
|
+
bannedUser,
|
|
49
|
+
bannedBy,
|
|
50
|
+
bannedFrom
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
45
54
|
},
|
|
46
55
|
onMemberAddedToGroup: (
|
|
47
56
|
message,
|
|
@@ -50,30 +59,42 @@ export const listners = {
|
|
|
50
59
|
userAddedIn
|
|
51
60
|
) => {
|
|
52
61
|
handleGroupListener(userAddedIn);
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
if (actionPerformedByMe(message)) {
|
|
63
|
+
CometChatUIEventHandler.emitGroupEvent(
|
|
64
|
+
CometChatUIEvents.ccGroupMemberAdded,
|
|
65
|
+
{
|
|
66
|
+
message,
|
|
67
|
+
userAdded,
|
|
68
|
+
userAddedBy,
|
|
69
|
+
userAddedIn
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
}
|
|
60
73
|
},
|
|
61
74
|
onGroupMemberLeft: (message, leavingUser, group) => {
|
|
62
75
|
handleGroupListener(group);
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
76
|
+
if (actionPerformedByMe(message)) {
|
|
77
|
+
CometChatUIEventHandler.emitGroupEvent(
|
|
78
|
+
CometChatUIEvents.ccGroupMemberLeft,
|
|
79
|
+
{
|
|
80
|
+
message,
|
|
81
|
+
leavingUser,
|
|
82
|
+
group
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
}
|
|
69
86
|
},
|
|
70
87
|
onGroupMemberJoined: (message, joinedUser, joinedGroup) => {
|
|
71
88
|
handleGroupListener(joinedGroup);
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
89
|
+
if (actionPerformedByMe(message)) {
|
|
90
|
+
CometChatUIEventHandler.emitGroupEvent(
|
|
91
|
+
CometChatUIEvents.ccGroupMemberJoined,
|
|
92
|
+
{
|
|
93
|
+
joinedUser,
|
|
94
|
+
joinedGroup
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
77
98
|
},
|
|
78
99
|
})
|
|
79
100
|
),
|
|
@@ -15,7 +15,7 @@ import { localize } from "../shared";
|
|
|
15
15
|
import { Style } from "./style";
|
|
16
16
|
import { GroupScopeStyle, GroupScopeStyleInterface } from "./GroupScopeStyle";
|
|
17
17
|
import { CometChatGroupsEvents } from "../shared/events";
|
|
18
|
-
import { getUnixTimestamp } from "../shared/utils/CometChatMessageHelper";
|
|
18
|
+
import { getUnixTimestamp, getUnixTimestampInMilliseconds } from "../shared/utils/CometChatMessageHelper";
|
|
19
19
|
import { CometChatContextType } from "../shared/base/Types";
|
|
20
20
|
import { CometChatUIEventHandler } from "../shared/events/CometChatUIEventHandler/CometChatUIEventHandler";
|
|
21
21
|
import { StatusIndicatorStyleInterface } from "../shared/views/CometChatStatusIndicator/StatusIndicatorStyle";
|
|
@@ -249,7 +249,7 @@ export const CometChatGroupsMembers = (props: CometChatGroupsMembersInterface) =
|
|
|
249
249
|
action.setActionFor(group);
|
|
250
250
|
action.setMessage(`${loggedInUser.current.name} banned ${user.name}`);
|
|
251
251
|
action.setSentAt(getUnixTimestamp());
|
|
252
|
-
action.setMuid(String(
|
|
252
|
+
action.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
253
253
|
action.setSender(loggedInUser.current);
|
|
254
254
|
action.setReceiver(group);
|
|
255
255
|
|
|
@@ -279,7 +279,7 @@ export const CometChatGroupsMembers = (props: CometChatGroupsMembersInterface) =
|
|
|
279
279
|
action.setActionFor(group);
|
|
280
280
|
action.setMessage(`${loggedInUser.current.name} kicked ${user.name}`);
|
|
281
281
|
action.setSentAt(getUnixTimestamp());
|
|
282
|
-
action.setMuid(String(
|
|
282
|
+
action.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
283
283
|
action.setSender(loggedInUser.current);
|
|
284
284
|
action.setReceiver(group);
|
|
285
285
|
action.setConversationId(group['conversationId'])
|
|
@@ -336,7 +336,7 @@ export const CometChatGroupsMembers = (props: CometChatGroupsMembersInterface) =
|
|
|
336
336
|
): string | null {
|
|
337
337
|
if (
|
|
338
338
|
props.disableUsersPresence ||
|
|
339
|
-
groupMember.getStatus() === CometChatUiKitConstants.UserStatusConstants.offline
|
|
339
|
+
(groupMember?.getStatus && groupMember.getStatus()) === CometChatUiKitConstants.UserStatusConstants.offline
|
|
340
340
|
) {
|
|
341
341
|
return null;
|
|
342
342
|
}
|
|
@@ -417,7 +417,7 @@ export const CometChatGroupsMembers = (props: CometChatGroupsMembersInterface) =
|
|
|
417
417
|
action.setActionFor(group);
|
|
418
418
|
action.setMessage(`${loggedInUser.current.name} made ${member.name} ${newScope}`);
|
|
419
419
|
action.setSentAt(getUnixTimestamp());
|
|
420
|
-
action.setMuid(String(
|
|
420
|
+
action.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
421
421
|
action.setSender(loggedInUser.current);
|
|
422
422
|
action.setReceiver(group);
|
|
423
423
|
CometChatUIEventHandler.emitGroupEvent(CometChatGroupsEvents.ccGroupMemberScopeChanged, { action, updatedUser: updatedMember, scopeChangedTo: newScope, scopeChangedFrom: member.scope, group });
|
|
@@ -36,6 +36,7 @@ import { CometChat } from '@cometchat/chat-sdk-react-native';
|
|
|
36
36
|
|
|
37
37
|
import {
|
|
38
38
|
getUnixTimestamp,
|
|
39
|
+
getUnixTimestampInMilliseconds,
|
|
39
40
|
messageStatus,
|
|
40
41
|
} from '../shared/utils/CometChatMessageHelper';
|
|
41
42
|
import { CometChatSoundManager, ChatConfigurator } from '../shared';
|
|
@@ -874,7 +875,7 @@ export const CometChatMessageComposer = React.forwardRef(
|
|
|
874
875
|
textMessage.setSender(loggedInUser.current);
|
|
875
876
|
textMessage.setReceiver(chatWith.current);
|
|
876
877
|
textMessage.setText(finalTextInput);
|
|
877
|
-
textMessage.setMuid(String(
|
|
878
|
+
textMessage.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
878
879
|
textMessage.setSentAt(getUnixTimestamp());
|
|
879
880
|
parentMessageId && textMessage.setParentMessageId(parentMessageId as number);
|
|
880
881
|
|
|
@@ -985,7 +986,7 @@ export const CometChatMessageComposer = React.forwardRef(
|
|
|
985
986
|
mediaMessage['_composedAt'] = Date.now();
|
|
986
987
|
mediaMessage['_id'] = '_' + Math.random().toString(36).substr(2, 9);
|
|
987
988
|
mediaMessage.setId(mediaMessage['_id']);
|
|
988
|
-
mediaMessage.setMuid(String(
|
|
989
|
+
mediaMessage.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
989
990
|
mediaMessage.setSentAt(getUnixTimestamp());
|
|
990
991
|
mediaMessage.setData({
|
|
991
992
|
type: messageType,
|
|
@@ -1010,7 +1011,7 @@ export const CometChatMessageComposer = React.forwardRef(
|
|
|
1010
1011
|
localMessage['_composedAt'] = Date.now();
|
|
1011
1012
|
localMessage['_id'] = '_' + Math.random().toString(36).substr(2, 9);
|
|
1012
1013
|
localMessage.setId(localMessage['_id']);
|
|
1013
|
-
localMessage.setMuid(String(
|
|
1014
|
+
localMessage.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
1014
1015
|
localMessage.setSentAt(getUnixTimestamp());
|
|
1015
1016
|
localMessage.setData({
|
|
1016
1017
|
type: messageType,
|
|
@@ -5,8 +5,6 @@ import {
|
|
|
5
5
|
Image,
|
|
6
6
|
ViewStyle,
|
|
7
7
|
StyleProp,
|
|
8
|
-
ImageStyle,
|
|
9
|
-
TextStyle,
|
|
10
8
|
//@ts-ignore
|
|
11
9
|
} from 'react-native';
|
|
12
10
|
import React, { useEffect, useState, useRef, useContext } from 'react';
|
|
@@ -184,10 +182,6 @@ export const CometChatMessageHeader = (
|
|
|
184
182
|
const userStatusListenerId = 'user_status_' + new Date().getTime();
|
|
185
183
|
const msgTypingListenerId = 'message_typing_' + new Date().getTime();
|
|
186
184
|
const groupListenerId = 'head_group_' + new Date().getTime();
|
|
187
|
-
const ccGroupMemberKickedId = 'ccGroupMemberKicked_' + new Date().getTime();
|
|
188
|
-
const ccGroupMemberBannedId = 'ccGroupMemberBanned_' + new Date().getTime();
|
|
189
|
-
const ccGroupMemberAddedId = 'ccGroupMemberAdded_' + new Date().getTime();
|
|
190
|
-
const ccOwnershipChangedId = 'ccOwnershipChanged_' + new Date().getTime();
|
|
191
185
|
|
|
192
186
|
const {
|
|
193
187
|
SubtitleView,
|
|
@@ -216,21 +210,18 @@ export const CometChatMessageHeader = (
|
|
|
216
210
|
nameTextColor: theme?.palette?.getAccent(),
|
|
217
211
|
nameTextFont: theme?.typography.body,
|
|
218
212
|
...props?.avatarStyle
|
|
219
|
-
});
|
|
213
|
+
});
|
|
220
214
|
|
|
221
215
|
const [groupObj, setGroupObj] = useState(group);
|
|
222
|
-
const [userStatus, setUserStatus] = useState(user ? user.getStatus() : '');
|
|
223
|
-
const [groupMemberCount, setGroupMemberCount] = useState(
|
|
224
|
-
group ? group.getMembersCount() : 0
|
|
225
|
-
);
|
|
216
|
+
const [userStatus, setUserStatus] = useState((user && user.getStatus) ? user.getStatus() : '');
|
|
226
217
|
const [typingText, setTypingText] = useState('');
|
|
227
218
|
|
|
228
219
|
const receiverTypeRef = useRef(
|
|
229
220
|
user
|
|
230
221
|
? CometChat.RECEIVER_TYPE.USER
|
|
231
222
|
: group
|
|
232
|
-
|
|
233
|
-
|
|
223
|
+
? CometChat.RECEIVER_TYPE.GROUP
|
|
224
|
+
: null
|
|
234
225
|
);
|
|
235
226
|
|
|
236
227
|
useEffect(() => {
|
|
@@ -239,7 +230,7 @@ export const CometChatMessageHeader = (
|
|
|
239
230
|
|
|
240
231
|
useEffect(() => {
|
|
241
232
|
setUserStatus(user ? user.getStatus() : '');
|
|
242
|
-
},[user]);
|
|
233
|
+
}, [user]);
|
|
243
234
|
|
|
244
235
|
const BackButton = () => {
|
|
245
236
|
return (
|
|
@@ -250,8 +241,8 @@ export const CometChatMessageHeader = (
|
|
|
250
241
|
? { uri: backButtonIcon }
|
|
251
242
|
: typeof backButtonIcon == 'object' ||
|
|
252
243
|
typeof backButtonIcon == 'number'
|
|
253
|
-
|
|
254
|
-
|
|
244
|
+
? backButtonIcon
|
|
245
|
+
: ICONS.BACK
|
|
255
246
|
}
|
|
256
247
|
style={[
|
|
257
248
|
styles.backButtonIconStyle,
|
|
@@ -286,13 +277,13 @@ export const CometChatMessageHeader = (
|
|
|
286
277
|
]}
|
|
287
278
|
>
|
|
288
279
|
{receiverTypeRef.current === CometChat.RECEIVER_TYPE.GROUP &&
|
|
289
|
-
|
|
280
|
+
(groupObj?.['membersCount'] || groupObj?.['membersCount'] === 0)
|
|
290
281
|
? `${groupObj['membersCount']} ${localize('MEMBERS')}`
|
|
291
282
|
: receiverTypeRef.current === CometChat.RECEIVER_TYPE.USER
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
283
|
+
? userStatus === UserStatusConstants.online
|
|
284
|
+
? localize('ONLINE')
|
|
285
|
+
: localize('OFFLINE')
|
|
286
|
+
: ''}
|
|
296
287
|
</Text>
|
|
297
288
|
);
|
|
298
289
|
};
|
|
@@ -323,7 +314,7 @@ export const CometChatMessageHeader = (
|
|
|
323
314
|
|
|
324
315
|
const handleGroupListener = (groupDetails) => {
|
|
325
316
|
if (groupDetails?.guid === groupObj.getGuid() && groupDetails.membersCount) {
|
|
326
|
-
|
|
317
|
+
setGroupObj(groupDetails);
|
|
327
318
|
}
|
|
328
319
|
};
|
|
329
320
|
|
|
@@ -414,24 +405,24 @@ export const CometChatMessageHeader = (
|
|
|
414
405
|
{!hideBackIcon && <BackButton />}
|
|
415
406
|
<View style={{ flex: 1 }}>
|
|
416
407
|
{ListItemView ? (
|
|
417
|
-
<ListItemView user={user} group={group}/>
|
|
408
|
+
<ListItemView user={user} group={group} />
|
|
418
409
|
) : (
|
|
419
410
|
<CometChatListItem
|
|
420
411
|
id={user ? user.getUid() : groupObj ? groupObj.getGuid() : undefined}
|
|
421
412
|
title={user ? user.getName() : groupObj ? groupObj.getName() : ''}
|
|
422
413
|
avatarName={user ? user.getName() : groupObj ? groupObj.getName() : ''}
|
|
423
|
-
avatarURL={user ? user.getAvatar() ? {uri: user.getAvatar()}: undefined : groupObj ? groupObj.getIcon() ? {uri: groupObj.getIcon()} : undefined : undefined
|
|
414
|
+
avatarURL={user ? user.getAvatar() ? { uri: user.getAvatar() } : undefined : groupObj ? groupObj.getIcon() ? { uri: groupObj.getIcon() } : undefined : undefined}
|
|
424
415
|
SubtitleView={
|
|
425
416
|
SubtitleView
|
|
426
417
|
? () => (
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
418
|
+
<SubtitleView
|
|
419
|
+
{...(user
|
|
420
|
+
? { user }
|
|
421
|
+
: groupObj
|
|
431
422
|
? { group: groupObj }
|
|
432
423
|
: {})}
|
|
433
|
-
|
|
434
|
-
|
|
424
|
+
/>
|
|
425
|
+
)
|
|
435
426
|
: SubtitleViewFnc
|
|
436
427
|
}
|
|
437
428
|
bodyViewContainerStyle={{
|
|
@@ -447,23 +438,23 @@ export const CometChatMessageHeader = (
|
|
|
447
438
|
disableUsersPresence
|
|
448
439
|
? 'transparent'
|
|
449
440
|
: user && user.getStatus() === "online"
|
|
450
|
-
|
|
451
|
-
|
|
441
|
+
? style.onlineStatusColor || theme.palette.getSuccess()
|
|
442
|
+
: 'transparent'
|
|
452
443
|
}
|
|
453
444
|
statusIndicatorStyle={
|
|
454
445
|
groupObj
|
|
455
446
|
? {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
447
|
+
height: 15,
|
|
448
|
+
width: 15,
|
|
449
|
+
backgroundColor:
|
|
450
|
+
groupObj.getType() === CometChat.GROUP_TYPE.PASSWORD
|
|
451
|
+
? PASSWORD_GROUP_COLOR // Note: Need to add this in palette
|
|
452
|
+
: groupObj.getType() === CometChat.GROUP_TYPE.PRIVATE
|
|
462
453
|
? PRIVATE_GROUP_COLOR // Note: Need to add this in palette
|
|
463
454
|
: '',
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
455
|
+
borderRadius: 15,
|
|
456
|
+
...statusIndicatorStyle,
|
|
457
|
+
}
|
|
467
458
|
: { ...statusIndicatorStyle }
|
|
468
459
|
}
|
|
469
460
|
statusIndicatorIcon={
|
|
@@ -473,25 +464,25 @@ export const CometChatMessageHeader = (
|
|
|
473
464
|
? protectedGroupIcon
|
|
474
465
|
: ICONS.PROTECTED
|
|
475
466
|
: groupObj.getType() === CometChat.GROUP_TYPE.PRIVATE
|
|
476
|
-
? privateGroupIcon
|
|
477
467
|
? privateGroupIcon
|
|
478
468
|
? privateGroupIcon
|
|
479
|
-
|
|
469
|
+
? privateGroupIcon
|
|
470
|
+
: ICONS.PRIVATE
|
|
471
|
+
: null
|
|
480
472
|
: null
|
|
481
|
-
: null
|
|
482
473
|
: null
|
|
483
474
|
}
|
|
484
475
|
TailView={
|
|
485
476
|
AppBarOptions
|
|
486
477
|
? () => (
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
478
|
+
<AppBarOptions
|
|
479
|
+
{...(user
|
|
480
|
+
? { user }
|
|
481
|
+
: groupObj
|
|
491
482
|
? { group: groupObj }
|
|
492
483
|
: {})}
|
|
493
|
-
|
|
494
|
-
|
|
484
|
+
/>
|
|
485
|
+
)
|
|
495
486
|
: null
|
|
496
487
|
}
|
|
497
488
|
headViewContainerStyle={headViewContainerStyle}
|