@cometchat/chat-uikit-react-native 4.3.6 → 4.3.8
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/AIAssistBotDecorator.d.ts +23 -0
- package/lib/AI/AIAssistBot/AIAssistBotDecorator.js +127 -0
- package/lib/AI/AIAssistBot/AIAssistBotDecorator.js.map +1 -0
- package/lib/AI/AIAssistBot/AIAssistBotExtension.d.ts +8 -0
- package/lib/AI/AIAssistBot/AIAssistBotExtension.js +17 -0
- package/lib/AI/AIAssistBot/AIAssistBotExtension.js.map +1 -0
- package/lib/AI/AIAssistBot/AIAssistBotStyle.d.ts +27 -0
- package/lib/AI/AIAssistBot/AIAssistBotStyle.js +38 -0
- package/lib/AI/AIAssistBot/AIAssistBotStyle.js.map +1 -0
- package/lib/AI/AIAssistBot/AIAssistBotView.d.ts +12 -0
- package/lib/AI/AIAssistBot/AIAssistBotView.js +188 -0
- package/lib/AI/AIAssistBot/AIAssistBotView.js.map +1 -0
- package/lib/AI/AIAssistBot/configuration.d.ts +18 -0
- package/lib/AI/AIAssistBot/configuration.js +19 -0
- package/lib/AI/AIAssistBot/configuration.js.map +1 -0
- package/lib/AI/AIAssistBot/resources/CloseIcon.png +0 -0
- package/lib/AI/AIAssistBot/resources/index.d.ts +2 -0
- package/lib/AI/AIAssistBot/resources/index.js +3 -0
- package/lib/AI/AIAssistBot/resources/index.js.map +1 -0
- package/lib/AI/AIBaseConfiguration.js +14 -0
- package/lib/AI/AIBaseConfiguration.js.map +1 -0
- package/lib/AI/AIBaseStyle.d.ts +24 -0
- package/lib/AI/AIBaseStyle.js +31 -0
- package/lib/AI/AIBaseStyle.js.map +1 -0
- package/lib/AI/AIConversationStarter/AIConversationStarter.d.ts +8 -0
- package/lib/AI/AIConversationStarter/AIConversationStarter.js +17 -0
- package/lib/AI/AIConversationStarter/AIConversationStarter.js.map +1 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js +187 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js.map +1 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.d.ts +9 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js +13 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js.map +1 -0
- package/lib/AI/AIConversationStarter/configuration.d.ts +7 -0
- package/lib/AI/AIConversationStarter/configuration.js +10 -0
- package/lib/AI/AIConversationStarter/configuration.js.map +1 -0
- package/lib/AI/AIConversationStarter/style.d.ts +19 -0
- package/lib/AI/AIConversationStarter/style.js +62 -0
- package/lib/AI/AIConversationStarter/style.js.map +1 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +25 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js +149 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js.map +1 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +8 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js +17 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js.map +1 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.d.ts +15 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js +18 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js.map +1 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.d.ts +14 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.js +134 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.js.map +1 -0
- package/lib/AI/AIConversationSummary/configuration.d.ts +9 -0
- package/lib/AI/AIConversationSummary/configuration.js +13 -0
- package/lib/AI/AIConversationSummary/configuration.js.map +1 -0
- package/lib/AI/AIConversationSummary/resources/close.png +0 -0
- package/lib/AI/AIConversationSummary/resources/index.d.ts +2 -0
- package/lib/AI/AIConversationSummary/resources/index.js +3 -0
- package/lib/AI/AIConversationSummary/resources/index.js.map +1 -0
- package/lib/AI/AIExtensionDataSource.d.ts +6 -0
- package/lib/AI/AIExtensionDataSource.js +11 -0
- package/lib/AI/AIExtensionDataSource.js.map +1 -0
- package/lib/AI/AIOptionsStyle.d.ts +10 -0
- package/lib/AI/AIOptionsStyle.js +14 -0
- package/lib/AI/AIOptionsStyle.js.map +1 -0
- package/lib/AI/AISmartReplies/AISmartReplies.d.ts +8 -0
- package/lib/AI/AISmartReplies/AISmartReplies.js +17 -0
- package/lib/AI/AISmartReplies/AISmartReplies.js.map +1 -0
- package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js +239 -0
- package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js.map +1 -0
- package/lib/AI/AISmartReplies/AISmartRepliesStyle.d.ts +12 -0
- package/lib/AI/AISmartReplies/AISmartRepliesStyle.js +15 -0
- package/lib/AI/AISmartReplies/AISmartRepliesStyle.js.map +1 -0
- package/lib/AI/AISmartReplies/configuration.d.ts +7 -0
- package/lib/AI/AISmartReplies/configuration.js +10 -0
- package/lib/AI/AISmartReplies/configuration.js.map +1 -0
- package/lib/AI/CardView.d.ts +18 -0
- package/lib/AI/CardView.js +45 -0
- package/lib/AI/CardView.js.map +1 -0
- package/lib/AI/CardViewStyle.d.ts +29 -0
- package/lib/AI/CardViewStyle.js +36 -0
- package/lib/AI/CardViewStyle.js.map +1 -0
- package/lib/AI/resources/ai-empty.png +0 -0
- package/lib/AI/resources/ai-error.png +0 -0
- package/lib/AI/resources/index.d.ts +4 -0
- package/lib/AI/resources/index.js +5 -0
- package/lib/AI/resources/index.js.map +1 -0
- package/lib/AI/resources/spineer.png +0 -0
- package/lib/AI/style.d.ts +51 -0
- package/lib/AI/style.js +139 -0
- package/lib/AI/style.js.map +1 -0
- package/lib/AI/utils.d.ts +38 -0
- package/lib/AI/utils.js +28 -0
- package/lib/AI/utils.js.map +1 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.js.map +1 -1
- package/lib/CometChatAddMembers/CometChatAddMembers.d.ts +1 -2
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js.map +1 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +1 -2
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js +1 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +1 -1
- package/lib/CometChatBannedMembers/resources/clear.png +0 -0
- package/lib/CometChatContacts/CometChatContacts.d.ts +1 -2
- package/lib/CometChatContacts/CometChatContacts.js +10 -7
- package/lib/CometChatContacts/CometChatContacts.js.map +1 -1
- package/lib/CometChatContacts/Header.js.map +1 -1
- package/lib/CometChatContacts/styles.d.ts +1 -100
- package/lib/CometChatConversations/CometChatConversations.js +208 -114
- package/lib/CometChatConversations/CometChatConversations.js.map +1 -1
- package/lib/CometChatConversations/ConversationsConfiguration.js +12 -1
- package/lib/CometChatConversations/ConversationsConfiguration.js.map +1 -1
- 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/CometChatConversations/style.d.ts +1 -61
- package/lib/CometChatConversations/style.js +5 -1
- package/lib/CometChatConversations/style.js.map +1 -1
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.d.ts +1 -2
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js +2 -2
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js.map +1 -1
- package/lib/CometChatConversationsWithMessages/resources/start.png +0 -0
- package/lib/CometChatConversationsWithMessages/styles.d.ts +1 -12
- package/lib/CometChatCreateGroup/CometChatCreateGroup.d.ts +1 -2
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js.map +1 -1
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js.map +1 -1
- package/lib/CometChatCreateGroup/Header.d.ts +1 -2
- 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/CometChatCreateGroup/style.d.ts +1 -46
- package/lib/CometChatDetails/CometChatDetails.js +11 -8
- package/lib/CometChatDetails/CometChatDetails.js.map +1 -1
- package/lib/CometChatDetails/DetailsConfiguration.js.map +1 -1
- package/lib/CometChatDetails/Header.d.ts +1 -2
- package/lib/CometChatDetails/listners.d.ts +4 -4
- 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/CometChatDetails/styles.d.ts +1 -28
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js +18 -5
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
- 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/index.d.ts +2 -1
- package/lib/CometChatGroupMembers/resources/index.js +2 -1
- package/lib/CometChatGroupMembers/resources/index.js.map +1 -1
- package/lib/CometChatGroupMembers/resources/kickIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/rightTick.png +0 -0
- package/lib/CometChatGroupMembers/style.d.ts +1 -31
- package/lib/CometChatGroups/CometChatGroups.js +20 -8
- package/lib/CometChatGroups/CometChatGroups.js.map +1 -1
- 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/index.d.ts +2 -1
- package/lib/CometChatGroups/resources/index.js +2 -1
- package/lib/CometChatGroups/resources/index.js.map +1 -1
- 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/CometChatGroups/style.d.ts +1 -16
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.d.ts +1 -2
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -1
- package/lib/CometChatGroupsWithMessages/resources/write.png +0 -0
- package/lib/CometChatGroupsWithMessages/styles.d.ts +1 -12
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.d.ts +1 -2
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js.map +1 -1
- package/lib/CometChatJoinProtectedGroup/Header.d.ts +1 -2
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js.map +1 -1
- package/lib/CometChatJoinProtectedGroup/resources/close.png +0 -0
- package/lib/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
- package/lib/CometChatJoinProtectedGroup/style.d.ts +1 -11
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +534 -52
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js +12 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js.map +1 -1
- 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/index.d.ts +2 -0
- package/lib/CometChatMessageComposer/resources/index.js +4 -0
- package/lib/CometChatMessageComposer/resources/index.js.map +1 -1
- 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/CometChatMessageComposer/styles.d.ts +1 -28
- package/lib/CometChatMessageComposer/styles.js +1 -3
- package/lib/CometChatMessageComposer/styles.js.map +1 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +8 -2
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js.map +1 -1
- package/lib/CometChatMessageHeader/listners.d.ts +4 -4
- package/lib/CometChatMessageHeader/listners.js +4 -5
- package/lib/CometChatMessageHeader/listners.js.map +1 -1
- 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/CometChatMessageHeader/styles.d.ts +1 -16
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js +32 -18
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +1 -1
- package/lib/CometChatMessageInformation/resources/Spineer.png +0 -0
- package/lib/CometChatMessageInformation/styles.d.ts +1 -23
- package/lib/CometChatMessageList/CometChatMessageList.js +782 -266
- package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
- package/lib/CometChatMessageList/MessageListConfiguration.js +30 -0
- package/lib/CometChatMessageList/MessageListConfiguration.js.map +1 -1
- 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/index.d.ts +3 -1
- package/lib/CometChatMessageList/resources/index.js +3 -1
- package/lib/CometChatMessageList/resources/index.js.map +1 -1
- 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/CometChatMessageList/style.d.ts +1 -52
- package/lib/CometChatMessages/CometChatMessages.js +31 -19
- package/lib/CometChatMessages/CometChatMessages.js.map +1 -1
- package/lib/CometChatMessages/MessagesConfiguration.js +1 -1
- package/lib/CometChatMessages/MessagesConfiguration.js.map +1 -1
- package/lib/CometChatMessages/resources/info.png +0 -0
- package/lib/CometChatMessages/style.d.ts +1 -21
- package/lib/CometChatTabs/CometChatTabs.d.ts +1 -2
- package/lib/CometChatTabs/CometChatTabs.js +1 -1
- package/lib/CometChatTabs/CometChatTabs.js.map +1 -1
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js +54 -20
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js.map +1 -1
- package/lib/CometChatThreadedMessages/Header.d.ts +1 -2
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js +15 -0
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js.map +1 -1
- 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/CometChatThreadedMessages/style.d.ts +1 -28
- package/lib/CometChatThreadedMessages/style.js +3 -1
- package/lib/CometChatThreadedMessages/style.js.map +1 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +1 -2
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js.map +1 -1
- package/lib/CometChatUsers/CometChatUsers.js +1 -1
- package/lib/CometChatUsers/CometChatUsers.js.map +1 -1
- package/lib/CometChatUsers/UsersConfiguration.js.map +1 -1
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.d.ts +1 -2
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -1
- package/lib/CometChatUsersWithMessages/styles.d.ts +1 -12
- package/lib/calls/CallEvents.d.ts +1 -0
- package/lib/calls/CallEvents.js +1 -0
- package/lib/calls/CallEvents.js.map +1 -1
- package/lib/calls/CallUtils.d.ts +3 -0
- package/lib/calls/CallUtils.js +106 -50
- package/lib/calls/CallUtils.js.map +1 -1
- package/lib/calls/CallingDetailsUtils.d.ts +4 -4
- package/lib/calls/CallingDetailsUtils.js +79 -11
- package/lib/calls/CallingDetailsUtils.js.map +1 -1
- package/lib/calls/CallingExtentionDecorator.d.ts +6 -5
- package/lib/calls/CallingExtentionDecorator.js +41 -28
- package/lib/calls/CallingExtentionDecorator.js.map +1 -1
- package/lib/calls/CallingPackage.js +13 -2
- package/lib/calls/CallingPackage.js.map +1 -1
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.d.ts +1 -2
- 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/CometChatCallBubble/styles.d.ts +1 -20
- package/lib/calls/CometChatCallBubble/styles.js +2 -1
- package/lib/calls/CometChatCallBubble/styles.js.map +1 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.d.ts +1 -2
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +13 -4
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +1 -1
- package/lib/calls/CometChatCallButtons/resources/Call.png +0 -0
- package/lib/calls/CometChatCallButtons/resources/Video.png +0 -0
- package/lib/calls/CometChatCallButtons/style.d.ts +1 -12
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js +58 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.d.ts +12 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js +19 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js +180 -0
- package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/index.d.ts +4 -0
- package/lib/calls/CometChatCallLogDetails/index.js +5 -0
- package/lib/calls/CometChatCallLogDetails/index.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/resources/CloseIcon.png +0 -0
- package/lib/calls/CometChatCallLogDetails/resources/index.d.ts +2 -0
- package/lib/calls/CometChatCallLogDetails/resources/index.js +3 -0
- package/lib/calls/CometChatCallLogDetails/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/style.d.ts +1 -0
- package/lib/calls/CometChatCallLogDetails/style.js +15 -0
- package/lib/calls/CometChatCallLogDetails/style.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js +33 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.d.ts +40 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js +25 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js +183 -0
- package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/index.d.ts +4 -0
- package/lib/calls/CometChatCallLogHistory/index.js +5 -0
- package/lib/calls/CometChatCallLogHistory/index.js.map +1 -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/index.d.ts +14 -0
- package/lib/calls/CometChatCallLogHistory/resources/index.js +15 -0
- package/lib/calls/CometChatCallLogHistory/resources/index.js.map +1 -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/CometChatCallLogHistory/style.d.ts +1 -0
- package/lib/calls/CometChatCallLogHistory/style.js +24 -0
- package/lib/calls/CometChatCallLogHistory/style.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js +32 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.d.ts +24 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js +31 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js +96 -0
- package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/index.d.ts +4 -0
- package/lib/calls/CometChatCallLogParticipants/index.js +5 -0
- package/lib/calls/CometChatCallLogParticipants/index.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogParticipants/resources/index.d.ts +2 -0
- package/lib/calls/CometChatCallLogParticipants/resources/index.js +3 -0
- package/lib/calls/CometChatCallLogParticipants/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/style.d.ts +1 -0
- package/lib/calls/CometChatCallLogParticipants/style.js +24 -0
- package/lib/calls/CometChatCallLogParticipants/style.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js +33 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.d.ts +26 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js +33 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js +133 -0
- package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/index.d.ts +4 -0
- package/lib/calls/CometChatCallLogRecordings/index.js +5 -0
- package/lib/calls/CometChatCallLogRecordings/index.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogRecordings/resources/download.png +0 -0
- package/lib/calls/CometChatCallLogRecordings/resources/index.d.ts +3 -0
- package/lib/calls/CometChatCallLogRecordings/resources/index.js +4 -0
- package/lib/calls/CometChatCallLogRecordings/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/style.d.ts +1 -0
- package/lib/calls/CometChatCallLogRecordings/style.js +24 -0
- package/lib/calls/CometChatCallLogRecordings/style.js.map +1 -0
- package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js +44 -0
- package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogs/CallLogsStyle.d.ts +42 -0
- package/lib/calls/CometChatCallLogs/CallLogsStyle.js +49 -0
- package/lib/calls/CometChatCallLogs/CallLogsStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js +288 -0
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js.map +1 -0
- package/lib/calls/CometChatCallLogs/index.d.ts +4 -0
- package/lib/calls/CometChatCallLogs/index.js +5 -0
- package/lib/calls/CometChatCallLogs/index.js.map +1 -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/index.d.ts +12 -0
- package/lib/calls/CometChatCallLogs/resources/index.js +13 -0
- package/lib/calls/CometChatCallLogs/resources/index.js.map +1 -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/CometChatCallLogs/style.d.ts +1 -0
- package/lib/calls/CometChatCallLogs/style.js +24 -0
- package/lib/calls/CometChatCallLogs/style.js.map +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/CallLogsWithDetailsConfiguration.d.ts +8 -0
- package/lib/calls/CometChatCallLogsWithDetails/CallLogsWithDetailsConfiguration.js +2 -0
- package/lib/calls/CometChatCallLogsWithDetails/CallLogsWithDetailsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.d.ts +11 -0
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js +23 -0
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js.map +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/index.d.ts +3 -0
- package/lib/calls/CometChatCallLogsWithDetails/index.js +3 -0
- package/lib/calls/CometChatCallLogsWithDetails/index.js.map +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/style.d.ts +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/style.js +10 -0
- package/lib/calls/CometChatCallLogsWithDetails/style.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +14 -11
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +1 -1
- 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/CometChatIncomingCall/styles.d.ts +1 -9
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.d.ts +1 -2
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js.map +1 -1
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -2
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +21 -12
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -1
- package/lib/calls/CometChatOutgoingCall/resources/Close.png +0 -0
- package/lib/calls/index.d.ts +7 -1
- package/lib/calls/index.js +7 -1
- package/lib/calls/index.js.map +1 -1
- package/lib/calls/resources/Call.png +0 -0
- package/lib/calls/resources/Video.png +0 -0
- package/lib/calls/resources/index.d.ts +2 -1
- package/lib/calls/resources/index.js +2 -1
- package/lib/calls/resources/index.js.map +1 -1
- package/lib/calls/resources/nextarrow.png +0 -0
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +1 -2
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +1 -1
- package/lib/extensions/CollaborativeBubble/resources/whiteboard.png +0 -0
- package/lib/extensions/CollaborativeBubble/styles.d.ts +1 -33
- package/lib/extensions/CollaborativeBubble/styles.js +2 -0
- package/lib/extensions/CollaborativeBubble/styles.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +3 -4
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +2 -2
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +1 -1
- 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/CollaborativeWhiteboardExtension.js.map +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +3 -4
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +2 -2
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +1 -1
- package/lib/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/whiteboard.png +0 -0
- package/lib/extensions/ExtensionConstants.js +1 -1
- package/lib/extensions/ExtensionConstants.js.map +1 -1
- package/lib/extensions/ExtensionModerator.js.map +1 -1
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js.map +1 -1
- package/lib/extensions/ImageModeration/ImageModerationExtension.js.map +1 -1
- package/lib/extensions/ImageModeration/ImageModerationFilter.d.ts +1 -2
- package/lib/extensions/ImageModeration/ImageModerationFilter.js +4 -4
- package/lib/extensions/ImageModeration/ImageModerationFilter.js.map +1 -1
- package/lib/extensions/ImageModeration/resources/unsafe.png +0 -0
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js +33 -6
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js.map +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js +3 -3
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js.map +1 -1
- package/lib/extensions/LinkPreview/resources/defaultImage.png +0 -0
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.d.ts +3 -2
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js +27 -6
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js.map +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +66 -5
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js.map +1 -1
- package/lib/extensions/MessageTranslation/resources/translate.png +0 -0
- package/lib/extensions/Polls/Header.d.ts +1 -2
- package/lib/extensions/Polls/Polls.d.ts +1 -2
- package/lib/extensions/Polls/Polls.js +109 -78
- package/lib/extensions/Polls/Polls.js.map +1 -1
- package/lib/extensions/Polls/PollsBubble.d.ts +1 -2
- package/lib/extensions/Polls/PollsBubble.js +43 -16
- package/lib/extensions/Polls/PollsBubble.js.map +1 -1
- package/lib/extensions/Polls/PollsDecorator.d.ts +3 -4
- package/lib/extensions/Polls/PollsDecorator.js +2 -2
- package/lib/extensions/Polls/PollsDecorator.js.map +1 -1
- package/lib/extensions/Polls/PollsExtension.js.map +1 -1
- 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/Polls/style.d.ts +1 -45
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.d.ts +0 -1
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +16 -8
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js.map +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js.map +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesView.d.ts +1 -2
- package/lib/extensions/SmartReplies/SmartRepliesView.js.map +1 -1
- package/lib/extensions/SmartReplies/resources/close.png +0 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +1 -2
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js +6 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.d.ts +1 -55
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js +3 -3
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js.map +1 -1
- package/lib/extensions/Stickers/StickersBubble.d.ts +1 -2
- package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +4 -5
- package/lib/extensions/Stickers/StickersExtensionDecorator.js +19 -8
- package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +1 -1
- package/lib/extensions/Stickers/resources/Stickers.png +0 -0
- package/lib/extensions/TextModeration/TextModerationExtension.js.map +1 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +2 -3
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js +2 -2
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +5 -3
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/resources/empty.png +0 -0
- package/lib/extensions/ThumbnailGeneration/resources/index.d.ts +2 -0
- package/lib/extensions/ThumbnailGeneration/resources/index.js +3 -0
- package/lib/extensions/ThumbnailGeneration/resources/index.js.map +1 -0
- package/lib/extensions/index.d.ts +1 -2
- package/lib/extensions/index.js +1 -2
- package/lib/extensions/index.js.map +1 -1
- package/lib/index.d.ts +24 -4
- package/lib/index.js +37 -7
- package/lib/index.js.map +1 -1
- package/lib/shared/CometChatContext.d.ts +2 -4
- package/lib/shared/CometChatContext.js +4 -1
- package/lib/shared/CometChatContext.js.map +1 -1
- package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +39 -3
- package/lib/shared/CometChatUiKit/CometChatUIKit.js +295 -57
- package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -1
- package/lib/shared/CometChatUiKit/UIKitSettings.d.ts +5 -1
- package/lib/shared/CometChatUiKit/UIKitSettings.js +3 -1
- package/lib/shared/CometChatUiKit/UIKitSettings.js.map +1 -1
- package/lib/shared/CometChatUiKit/index.d.ts +1 -1
- package/lib/shared/CometChatUiKit/index.js +1 -1
- package/lib/shared/CometChatUiKit/index.js.map +1 -1
- 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/index.d.ts +6 -0
- package/lib/shared/assets/images/index.js +12 -0
- package/lib/shared/assets/images/index.js.map +1 -1
- package/lib/shared/assets/images/sending.png +0 -0
- package/lib/shared/base/vars.d.ts +8 -0
- package/lib/shared/base/vars.js +7 -0
- package/lib/shared/base/vars.js.map +1 -0
- package/lib/shared/constants/UIKitConstants.d.ts +82 -44
- package/lib/shared/constants/UIKitConstants.js +38 -1
- package/lib/shared/constants/UIKitConstants.js.map +1 -1
- package/lib/shared/events/CometChatMessageEvents/index.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +63 -0
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +50 -3
- package/lib/shared/events/CometChatUIEventHandler/Listener.js +69 -3
- package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -1
- package/lib/shared/events/CometChatUIEvents.d.ts +3 -1
- package/lib/shared/events/CometChatUIEvents.js +3 -0
- package/lib/shared/events/CometChatUIEvents.js.map +1 -1
- package/lib/shared/events/ListenerInitializer.d.ts +6 -0
- package/lib/shared/events/ListenerInitializer.js +73 -0
- package/lib/shared/events/ListenerInitializer.js.map +1 -0
- package/lib/shared/events/messages.d.ts +18 -1
- package/lib/shared/events/messages.js +17 -0
- package/lib/shared/events/messages.js.map +1 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +323 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +1 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.d.ts +12 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js +14 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js.map +1 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/index.d.ts +3 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/index.js +4 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/index.js.map +1 -0
- package/lib/shared/formatters/CometChatTextFormatter.js +218 -0
- package/lib/shared/formatters/CometChatTextFormatter.js.map +1 -0
- package/lib/shared/formatters/CometChatUrlsFormatter/index.js +129 -0
- package/lib/shared/formatters/CometChatUrlsFormatter/index.js.map +1 -0
- package/lib/shared/formatters/index.d.ts +5 -0
- package/lib/shared/formatters/index.js +6 -0
- package/lib/shared/formatters/index.js.map +1 -0
- package/lib/shared/framework/ChatConfigurator.js.map +1 -1
- package/lib/shared/framework/DataSourceDecorator.d.ts +29 -7
- package/lib/shared/framework/DataSourceDecorator.js +61 -10
- package/lib/shared/framework/DataSourceDecorator.js.map +1 -1
- package/lib/shared/framework/MessageDataSource.js +295 -65
- package/lib/shared/framework/MessageDataSource.js.map +1 -1
- 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/SwipeRow.d.ts +61 -64
- package/lib/shared/helper/SwipeRow.js.map +1 -1
- package/lib/shared/helper/Toast.d.ts +1 -2
- package/lib/shared/helper/functions.js.map +1 -1
- package/lib/shared/helper/helperFunctions.js.map +1 -1
- package/lib/shared/helper/useKeyboard.d.ts +2 -1
- package/lib/shared/helper/useKeyboard.js +19 -4
- package/lib/shared/helper/useKeyboard.js.map +1 -1
- package/lib/shared/index.d.ts +4 -3
- package/lib/shared/index.js +5 -4
- package/lib/shared/index.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.d.ts +23 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js +107 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.d.ts +9 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js +43 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.d.ts +9 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js +57 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js +14 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/index.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/index.js +4 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.d.ts +7 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.js +21 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.test.js +90 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.d.ts +14 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.js +45 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.test.js +339 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.d.ts +16 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.js +41 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.test.js +167 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.d.ts +10 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.js +23 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.test.js +131 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.d.ts +14 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.js +29 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.test.d.ts +52 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.test.js +204 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.d.ts +12 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.js +20 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.test.js +84 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.d.ts +5 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js +13 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.test.js +56 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/index.d.ts +7 -0
- package/lib/shared/libs/CometChatCalendar/Components/index.js +8 -0
- package/lib/shared/libs/CometChatCalendar/Components/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Constants/View.d.ts +4 -0
- package/lib/shared/libs/CometChatCalendar/Constants/View.js +6 -0
- package/lib/shared/libs/CometChatCalendar/Constants/View.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Constants/index.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Constants/index.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Constants/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.js +5 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.js +5 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/index.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/index.js +3 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/ArrowDirections.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/ArrowDirections.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/ArrowDirections.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Calendar.d.ts +19 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Calendar.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Calendar.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Components.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Components.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/DateProperties.d.ts +4 -0
- package/lib/shared/libs/CometChatCalendar/Entities/DateProperties.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/DateProperties.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Locale.d.ts +8 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Locale.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Locale.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Theme.d.ts +37 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Theme.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Theme.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/index.d.ts +6 -0
- package/lib/shared/libs/CometChatCalendar/Entities/index.js +7 -0
- package/lib/shared/libs/CometChatCalendar/Entities/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/index.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/index.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js +54 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.test.js +35 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.test.js.map +1 -0
- 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/CometChatCalendar/Icons/index.d.ts +8 -0
- package/lib/shared/libs/CometChatCalendar/Icons/index.js +8 -0
- package/lib/shared/libs/CometChatCalendar/Icons/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Locales/index.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Locales/index.js +4 -0
- package/lib/shared/libs/CometChatCalendar/Locales/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Themes/Colors.d.ts +13 -0
- package/lib/shared/libs/CometChatCalendar/Themes/Colors.js +21 -0
- package/lib/shared/libs/CometChatCalendar/Themes/Colors.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js +75 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js +157 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Themes/index.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Themes/index.js +4 -0
- package/lib/shared/libs/CometChatCalendar/Themes/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.js +11 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.test.js +48 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/checkChangedProps.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Utils/checkChangedProps.js +11 -0
- package/lib/shared/libs/CometChatCalendar/Utils/checkChangedProps.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.js +5 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.test.js +34 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.js +16 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.test.js +18 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.d.ts +6 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.js +19 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.test.js +41 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.d.ts +11 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js +17 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.test.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.test.js +58 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.test.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/index.d.ts +6 -0
- package/lib/shared/libs/CometChatCalendar/Utils/index.js +7 -0
- package/lib/shared/libs/CometChatCalendar/Utils/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/index.d.ts +5 -0
- package/lib/shared/libs/CometChatCalendar/index.js +6 -0
- package/lib/shared/libs/CometChatCalendar/index.js.map +1 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.d.ts +227 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js +747 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js.map +1 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.d.ts +79 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js +161 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js.map +1 -0
- package/lib/shared/libs/ImageZoom/helper.d.ts +8 -0
- package/lib/shared/libs/ImageZoom/helper.js +90 -0
- package/lib/shared/libs/ImageZoom/helper.js.map +1 -0
- package/lib/shared/libs/ImageZoom/index.d.ts +4 -0
- package/lib/shared/libs/ImageZoom/index.js +4 -0
- package/lib/shared/libs/ImageZoom/index.js.map +1 -0
- package/lib/shared/libs/ImageZoom/types/index.d.ts +91 -0
- package/lib/shared/libs/ImageZoom/types/index.js +8 -0
- package/lib/shared/libs/ImageZoom/types/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/DRMType.d.ts +7 -0
- package/lib/shared/libs/VideoPlayer/DRMType.js +7 -0
- package/lib/shared/libs/VideoPlayer/DRMType.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/FilterType.d.ts +19 -0
- package/lib/shared/libs/VideoPlayer/FilterType.js +19 -0
- package/lib/shared/libs/VideoPlayer/FilterType.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/TextTrackType.d.ts +6 -0
- package/lib/shared/libs/VideoPlayer/TextTrackType.js +6 -0
- package/lib/shared/libs/VideoPlayer/TextTrackType.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/Video.d.ts +48 -0
- package/lib/shared/libs/VideoPlayer/Video.js +437 -0
- package/lib/shared/libs/VideoPlayer/Video.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/VideoResizeMode.d.ts +6 -0
- package/lib/shared/libs/VideoPlayer/VideoResizeMode.js +6 -0
- package/lib/shared/libs/VideoPlayer/VideoResizeMode.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.d.ts +10 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js +16 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.d.ts +6 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js +10 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.d.ts +2 -0
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js +313 -0
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js.map +1 -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/libs/VideoPlayerControls/components/Back/Back.d.ts +10 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js +9 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.d.ts +28 -0
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js +54 -0
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Control.d.ts +12 -0
- package/lib/shared/libs/VideoPlayerControls/components/Control.js +15 -0
- package/lib/shared/libs/VideoPlayerControls/components/Control.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.d.ts +5 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js +13 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/styles.js +21 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.d.ts +8 -0
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js +17 -0
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.d.ts +5 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js +9 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.js +16 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.js +7 -0
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.d.ts +4 -0
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.js +17 -0
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.d.ts +20 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js +43 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.js +21 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.d.ts +11 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js +20 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.js +37 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.d.ts +9 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js +10 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.js +12 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Title.d.ts +5 -0
- package/lib/shared/libs/VideoPlayerControls/components/Title.js +26 -0
- package/lib/shared/libs/VideoPlayerControls/components/Title.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.js +39 -0
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.d.ts +11 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js +13 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.js +31 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/index.d.ts +14 -0
- package/lib/shared/libs/VideoPlayerControls/components/index.js +15 -0
- package/lib/shared/libs/VideoPlayerControls/components/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/styles.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/styles.js +30 -0
- package/lib/shared/libs/VideoPlayerControls/components/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/index.d.ts +3 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/index.js +4 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useAnimations.d.ts +2 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useAnimations.js +61 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useAnimations.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.d.ts +17 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.js +43 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.d.ts +24 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.js +55 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/index.d.ts +3 -0
- package/lib/shared/libs/VideoPlayerControls/index.js +4 -0
- package/lib/shared/libs/VideoPlayerControls/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/styles.d.ts +3 -0
- package/lib/shared/libs/VideoPlayerControls/styles.js +19 -0
- package/lib/shared/libs/VideoPlayerControls/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/types.d.ts +248 -0
- package/lib/shared/libs/VideoPlayerControls/types.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/types.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/utils.d.ts +10 -0
- package/lib/shared/libs/VideoPlayerControls/utils.js +46 -0
- package/lib/shared/libs/VideoPlayerControls/utils.js.map +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.d.ts +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js +64 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js.map +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.d.ts +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.d.ts +82 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js +239 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js.map +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.js +9 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.js.map +1 -0
- package/lib/shared/libs/datePickerModal/Modal.d.ts +30 -0
- package/lib/shared/libs/datePickerModal/Modal.js +134 -0
- package/lib/shared/libs/datePickerModal/Modal.js.map +1 -0
- package/lib/shared/libs/datePickerModal/index.d.ts +3 -0
- package/lib/shared/libs/datePickerModal/index.js +4 -0
- package/lib/shared/libs/datePickerModal/index.js.map +1 -0
- package/lib/shared/libs/datePickerModal/utils.d.ts +1 -0
- package/lib/shared/libs/datePickerModal/utils.js +22 -0
- package/lib/shared/libs/datePickerModal/utils.js.map +1 -0
- package/lib/shared/libs/luxon/src/datetime.d.ts +1181 -0
- package/lib/shared/libs/luxon/src/datetime.js +2095 -0
- package/lib/shared/libs/luxon/src/datetime.js.map +1 -0
- package/lib/shared/libs/luxon/src/duration.d.ts +637 -0
- package/lib/shared/libs/luxon/src/duration.js +905 -0
- package/lib/shared/libs/luxon/src/duration.js.map +1 -0
- package/lib/shared/libs/luxon/src/errors.d.ts +46 -0
- package/lib/shared/libs/luxon/src/errors.js +57 -0
- package/lib/shared/libs/luxon/src/errors.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/conversions.d.ts +24 -0
- package/lib/shared/libs/luxon/src/impl/conversions.js +163 -0
- package/lib/shared/libs/luxon/src/impl/conversions.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/diff.d.ts +2 -0
- package/lib/shared/libs/luxon/src/impl/diff.js +80 -0
- package/lib/shared/libs/luxon/src/impl/diff.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/digits.d.ts +4 -0
- package/lib/shared/libs/luxon/src/impl/digits.js +73 -0
- package/lib/shared/libs/luxon/src/impl/digits.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/english.d.ts +22 -0
- package/lib/shared/libs/luxon/src/impl/english.js +204 -0
- package/lib/shared/libs/luxon/src/impl/english.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/formats.d.ts +154 -0
- package/lib/shared/libs/luxon/src/impl/formats.js +152 -0
- package/lib/shared/libs/luxon/src/impl/formats.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/formatter.d.ts +24 -0
- package/lib/shared/libs/luxon/src/impl/formatter.js +367 -0
- package/lib/shared/libs/luxon/src/impl/formatter.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/invalid.d.ts +6 -0
- package/lib/shared/libs/luxon/src/impl/invalid.js +15 -0
- package/lib/shared/libs/luxon/src/impl/invalid.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/locale.d.ts +86 -0
- package/lib/shared/libs/luxon/src/impl/locale.js +460 -0
- package/lib/shared/libs/luxon/src/impl/locale.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/regexParser.d.ts +6 -0
- package/lib/shared/libs/luxon/src/impl/regexParser.js +212 -0
- package/lib/shared/libs/luxon/src/impl/regexParser.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/tokenParser.d.ts +27 -0
- package/lib/shared/libs/luxon/src/impl/tokenParser.js +413 -0
- package/lib/shared/libs/luxon/src/impl/tokenParser.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/util.d.ts +38 -0
- package/lib/shared/libs/luxon/src/impl/util.js +257 -0
- package/lib/shared/libs/luxon/src/impl/util.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/zoneUtil.d.ts +1 -0
- package/lib/shared/libs/luxon/src/impl/zoneUtil.js +41 -0
- package/lib/shared/libs/luxon/src/impl/zoneUtil.js.map +1 -0
- package/lib/shared/libs/luxon/src/info.d.ts +178 -0
- package/lib/shared/libs/luxon/src/info.js +182 -0
- package/lib/shared/libs/luxon/src/info.js.map +1 -0
- package/lib/shared/libs/luxon/src/interval.d.ts +328 -0
- package/lib/shared/libs/luxon/src/interval.js +606 -0
- package/lib/shared/libs/luxon/src/interval.js.map +1 -0
- package/lib/shared/libs/luxon/src/luxon.d.ts +12 -0
- package/lib/shared/libs/luxon/src/luxon.js +13 -0
- package/lib/shared/libs/luxon/src/luxon.js.map +1 -0
- package/lib/shared/libs/luxon/src/settings.d.ts +115 -0
- package/lib/shared/libs/luxon/src/settings.js +149 -0
- package/lib/shared/libs/luxon/src/settings.js.map +1 -0
- package/lib/shared/libs/luxon/src/zone.d.ts +66 -0
- package/lib/shared/libs/luxon/src/zone.js +83 -0
- package/lib/shared/libs/luxon/src/zone.js.map +1 -0
- package/lib/shared/libs/luxon/src/zones/IANAZone.d.ts +53 -0
- package/lib/shared/libs/luxon/src/zones/IANAZone.js +167 -0
- package/lib/shared/libs/luxon/src/zones/IANAZone.js.map +1 -0
- package/lib/shared/libs/luxon/src/zones/fixedOffsetZone.d.ts +38 -0
- package/lib/shared/libs/luxon/src/zones/fixedOffsetZone.js +90 -0
- package/lib/shared/libs/luxon/src/zones/fixedOffsetZone.js.map +1 -0
- package/lib/shared/libs/luxon/src/zones/invalidZone.d.ts +20 -0
- package/lib/shared/libs/luxon/src/zones/invalidZone.js +45 -0
- package/lib/shared/libs/luxon/src/zones/invalidZone.js.map +1 -0
- package/lib/shared/libs/luxon/src/zones/systemZone.d.ts +23 -0
- package/lib/shared/libs/luxon/src/zones/systemZone.js +52 -0
- package/lib/shared/libs/luxon/src/zones/systemZone.js.map +1 -0
- package/lib/shared/modals/CometChatCallLogDetailsOptions.js +2 -0
- package/lib/shared/modals/CometChatCallLogDetailsOptions.js.map +1 -0
- package/lib/shared/modals/CometChatCallLogDetailsTemplate.d.ts +15 -0
- package/lib/shared/modals/CometChatCallLogDetailsTemplate.js +2 -0
- package/lib/shared/modals/CometChatCallLogDetailsTemplate.js.map +1 -0
- package/lib/shared/modals/CometChatMessageTemplate.js +52 -1
- package/lib/shared/modals/CometChatMessageTemplate.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.d.ts +73 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js +104 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/CustomAction.d.ts +12 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/CustomAction.js +18 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/CustomAction.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.d.ts +21 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js +30 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/index.d.ts +3 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/index.js +4 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.d.ts +41 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js +61 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.d.ts +55 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js +80 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/index.d.ts +2 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/index.js +3 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.d.ts +40 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js +89 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.d.ts +18 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js +43 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.d.ts +38 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js +55 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.d.ts +40 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js +69 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.d.ts +52 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js +88 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.d.ts +46 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js +75 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.d.ts +20 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js +29 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.d.ts +26 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js +36 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.d.ts +40 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js +69 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.d.ts +40 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js +69 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.d.ts +59 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js +91 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.d.ts +10 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.js +11 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.d.ts +22 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js +36 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.d.ts +25 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js +61 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/index.d.ts +2 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/index.js +3 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.d.ts +70 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js +118 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.d.ts +20 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js +29 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.d.ts +68 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js +125 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.d.ts +63 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js +106 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/index.d.ts +4 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/index.js +5 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/index.d.ts +4 -0
- package/lib/shared/modals/InteractiveData/index.js +6 -0
- package/lib/shared/modals/InteractiveData/index.js.map +1 -0
- package/lib/shared/modals/index.d.ts +4 -1
- package/lib/shared/modals/index.js +2 -1
- package/lib/shared/modals/index.js.map +1 -1
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +1229 -335
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js +2 -0
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js.map +1 -1
- package/lib/shared/resources/CometChatLocalize/resources/ar/translation.json +163 -119
- package/lib/shared/resources/CometChatLocalize/resources/de/translation.json +159 -114
- package/lib/shared/resources/CometChatLocalize/resources/en/translation.json +52 -8
- package/lib/shared/resources/CometChatLocalize/resources/es/translation.json +154 -109
- package/lib/shared/resources/CometChatLocalize/resources/fr/translation.json +152 -107
- package/lib/shared/resources/CometChatLocalize/resources/hi/translation.json +172 -128
- package/lib/shared/resources/CometChatLocalize/resources/hu/translation.json +315 -0
- package/lib/shared/resources/CometChatLocalize/resources/lt/translation.json +226 -181
- package/lib/shared/resources/CometChatLocalize/resources/ms/translation.json +138 -93
- package/lib/shared/resources/CometChatLocalize/resources/pt/translation.json +138 -93
- package/lib/shared/resources/CometChatLocalize/resources/ru/translation.json +180 -135
- package/lib/shared/resources/CometChatLocalize/resources/sv/translation.json +194 -149
- package/lib/shared/resources/CometChatLocalize/resources/zh/translation.json +173 -128
- package/lib/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +187 -142
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js +2 -2
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js.map +1 -1
- 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/resources/CometChatSoundManager/sound.d.ts +1 -1
- package/lib/shared/resources/CometChatSoundManager/sound.js +35 -35
- package/lib/shared/resources/CometChatSoundManager/sound.js.map +1 -1
- package/lib/shared/resources/CometChatTheme/Palette.d.ts +43 -17
- package/lib/shared/resources/CometChatTheme/Palette.js +108 -38
- package/lib/shared/resources/CometChatTheme/Palette.js.map +1 -1
- package/lib/shared/resources/CometChatTheme/Typography.d.ts +23 -1
- package/lib/shared/resources/CometChatTheme/Typography.js +100 -0
- package/lib/shared/resources/CometChatTheme/Typography.js.map +1 -1
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.d.ts +1 -2
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js.map +1 -1
- package/lib/shared/utils/CometChatLiveReactions/resources/heart.png +0 -0
- package/lib/shared/utils/CometChatLiveReactions/style.d.ts +1 -5
- package/lib/shared/utils/CometChatMessageHelper/index.d.ts +1 -1
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +6 -8
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +1 -1
- package/lib/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
- package/lib/shared/utils/CometChatMessagePreview/style.d.ts +1 -9
- package/lib/shared/utils/CommonUtils.d.ts +6 -0
- package/lib/shared/utils/CommonUtils.js +70 -0
- package/lib/shared/utils/CommonUtils.js.map +1 -0
- package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +0 -1
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js +1 -1
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js.map +1 -1
- 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/utils/InteractiveMessageUtils.d.ts +8 -0
- package/lib/shared/utils/InteractiveMessageUtils.js +48 -0
- package/lib/shared/utils/InteractiveMessageUtils.js.map +1 -0
- package/lib/shared/utils/MessageUtils.d.ts +1 -2
- package/lib/shared/utils/MessageUtils.js.map +1 -1
- package/lib/shared/utils/NetworkUtils.d.ts +9 -0
- package/lib/shared/utils/NetworkUtils.js +28 -0
- package/lib/shared/utils/NetworkUtils.js.map +1 -0
- package/lib/shared/utils/PermissionUtil.d.ts +27 -0
- package/lib/shared/utils/PermissionUtil.js +122 -0
- package/lib/shared/utils/PermissionUtil.js.map +1 -0
- package/lib/shared/utils/SchedulerUtils.d.ts +17 -0
- package/lib/shared/utils/SchedulerUtils.js +142 -0
- package/lib/shared/utils/SchedulerUtils.js.map +1 -0
- package/lib/shared/utils/conversationUtils.js +14 -1
- package/lib/shared/utils/conversationUtils.js.map +1 -1
- package/lib/shared/utils/icsToJson.d.ts +2 -0
- package/lib/shared/utils/icsToJson.js +108 -0
- package/lib/shared/utils/icsToJson.js.map +1 -0
- package/lib/shared/views/CometChatAICard/CometChatAICard.d.ts +16 -0
- package/lib/shared/views/CometChatAICard/CometChatAICard.js +40 -0
- package/lib/shared/views/CometChatAICard/CometChatAICard.js.map +1 -0
- package/lib/shared/views/CometChatAICard/resources/errormessage.png +0 -0
- package/lib/shared/views/CometChatAICard/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatAICard/resources/index.js +4 -0
- package/lib/shared/views/CometChatAICard/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatAICard/resources/nomessage.png +0 -0
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.d.ts +3 -1
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js +4 -1
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js.map +1 -1
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +2 -2
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js +33 -29
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js.map +1 -1
- package/lib/shared/views/CometChatActionSheet/resources/grid.png +0 -0
- package/lib/shared/views/CometChatActionSheet/resources/list.png +0 -0
- package/lib/shared/views/CometChatActionSheet/style.d.ts +1 -44
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.d.ts +1 -2
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +21 -3
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +1 -1
- package/lib/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
- package/lib/shared/views/CometChatAudioBubble/resources/play.png +0 -0
- package/lib/shared/views/CometChatAudioBubble/style.d.ts +1 -26
- package/lib/shared/views/CometChatAudioBubble/style.js +4 -2
- package/lib/shared/views/CometChatAudioBubble/style.js.map +1 -1
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js +1 -1
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js.map +1 -1
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.d.ts +1 -2
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js +5 -1
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js.map +1 -1
- package/lib/shared/views/CometChatAvatar/resources/default.jpg +0 -0
- package/lib/shared/views/CometChatAvatar/styles.d.ts +1 -21
- package/lib/shared/views/CometChatBadge/CometChatBadge.d.ts +1 -2
- package/lib/shared/views/CometChatBadge/styles.d.ts +1 -13
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.d.ts +4 -2
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +21 -15
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js.map +1 -1
- package/lib/shared/views/CometChatBottomSheet/style.d.ts +1 -50
- package/lib/shared/views/CometChatBottomSheet/style.js +0 -2
- package/lib/shared/views/CometChatBottomSheet/style.js.map +1 -1
- package/lib/shared/views/CometChatButton/CometChatButton.d.ts +2 -2
- package/lib/shared/views/CometChatButton/CometChatButton.js +25 -17
- package/lib/shared/views/CometChatButton/CometChatButton.js.map +1 -1
- package/lib/shared/views/CometChatButton/style.d.ts +1 -6
- package/lib/shared/views/CometChatCard/CometChatCard.js.map +1 -1
- package/lib/shared/views/CometChatCard/style.d.ts +1 -11
- package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.d.ts +20 -0
- package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js +24 -0
- package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.d.ts +8 -0
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js +120 -0
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js.map +1 -0
- package/lib/shared/views/CometChatCardBubble/index.d.ts +1 -0
- package/lib/shared/views/CometChatCardBubble/index.js +2 -0
- package/lib/shared/views/CometChatCardBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.d.ts +22 -0
- package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js +22 -0
- package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js.map +1 -0
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.d.ts +11 -0
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js +47 -0
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js.map +1 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +1 -2
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js.map +1 -1
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js.map +1 -1
- package/lib/shared/views/CometChatConfirmDialog/style.d.ts +1 -61
- package/lib/shared/views/CometChatDate/CometChatDate.d.ts +5 -2
- package/lib/shared/views/CometChatDate/CometChatDate.js +5 -6
- package/lib/shared/views/CometChatDate/CometChatDate.js.map +1 -1
- package/lib/shared/views/CometChatDate/DateConfiguration.d.ts +3 -1
- package/lib/shared/views/CometChatDate/DateConfiguration.js +3 -1
- package/lib/shared/views/CometChatDate/DateConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatDate/style.d.ts +1 -5
- package/lib/shared/views/CometChatDate/style.js +1 -1
- package/lib/shared/views/CometChatDate/style.js.map +1 -1
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.d.ts +13 -0
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js +125 -0
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js.map +1 -0
- package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.d.ts +7 -0
- package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.js +13 -0
- package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.js.map +1 -0
- package/lib/shared/views/CometChatDateTimePicker/index.d.ts +2 -0
- package/lib/shared/views/CometChatDateTimePicker/index.js +2 -0
- package/lib/shared/views/CometChatDateTimePicker/index.js.map +1 -0
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.d.ts +13 -0
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.js +85 -0
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.js.map +1 -0
- package/lib/shared/views/CometChatDropDown/DropDownStyle.d.ts +20 -0
- package/lib/shared/views/CometChatDropDown/DropDownStyle.js +20 -0
- package/lib/shared/views/CometChatDropDown/DropDownStyle.js.map +1 -0
- package/lib/shared/views/CometChatDropDown/resources/downArrowIcon.png +0 -0
- package/lib/shared/views/CometChatDropDown/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatDropDown/resources/index.js +3 -0
- package/lib/shared/views/CometChatDropDown/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +4 -13
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +21 -22
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.d.ts +3 -4
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js +3 -3
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.d.ts +11 -11
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js.map +1 -1
- 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/CometChatEmojiKeyboard/style.d.ts +1 -44
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.d.ts +1 -2
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js +51 -4
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +1 -1
- 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/CometChatFileBubble/style.d.ts +1 -42
- package/lib/shared/views/CometChatFileBubble/style.js +4 -2
- package/lib/shared/views/CometChatFileBubble/style.js.map +1 -1
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.d.ts +8 -0
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js +372 -0
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js.map +1 -0
- package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.d.ts +47 -0
- package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js +45 -0
- package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatFormBubble/index.d.ts +1 -0
- package/lib/shared/views/CometChatFormBubble/index.js +2 -0
- package/lib/shared/views/CometChatFormBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.d.ts +6 -2
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +66 -11
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +1 -1
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.d.ts +10 -1
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js +4 -2
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatImageBubble/assets/index.d.ts +3 -0
- package/lib/shared/views/CometChatImageBubble/assets/index.js +5 -0
- package/lib/shared/views/CometChatImageBubble/assets/index.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/assets/spineer.png +0 -0
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.d.ts +5 -0
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js +72 -0
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js.map +1 -0
- package/lib/shared/views/CometChatImageViewerModal/index.d.ts +1 -0
- package/lib/shared/views/CometChatImageViewerModal/index.js +2 -0
- package/lib/shared/views/CometChatImageViewerModal/index.js.map +1 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/Back.png +0 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/index.js +5 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatLabel/CometChatLabel.d.ts +7 -0
- package/lib/shared/views/CometChatLabel/CometChatLabel.js +15 -0
- package/lib/shared/views/CometChatLabel/CometChatLabel.js.map +1 -0
- package/lib/shared/views/CometChatLabel/LabelStyle.d.ts +10 -0
- package/lib/shared/views/CometChatLabel/LabelStyle.js +10 -0
- package/lib/shared/views/CometChatLabel/LabelStyle.js.map +1 -0
- package/lib/shared/views/CometChatList/CometChatList.js +18 -3
- package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
- package/lib/shared/views/CometChatList/Header.d.ts +1 -2
- package/lib/shared/views/CometChatList/Header.js.map +1 -1
- 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/CometChatList/styles.d.ts +1 -98
- package/lib/shared/views/CometChatListItem/CometChatListItem.d.ts +5 -1
- package/lib/shared/views/CometChatListItem/CometChatListItem.js +32 -12
- package/lib/shared/views/CometChatListItem/CometChatListItem.js.map +1 -1
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatListItem/style.d.ts +1 -61
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +1 -2
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +36 -5
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +1 -1
- package/lib/shared/views/CometChatMediaRecorder/style.d.ts +1 -27
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js +7 -5
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +1 -1
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.d.ts +1 -1
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +5 -4
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +1 -1
- package/lib/shared/views/CometChatMessageInput/styles.d.ts +1 -7
- package/lib/shared/views/CometChatPanel/CometChatPanel.d.ts +9 -0
- package/lib/shared/views/CometChatPanel/CometChatPanel.js +34 -0
- package/lib/shared/views/CometChatPanel/CometChatPanel.js.map +1 -0
- package/lib/shared/views/CometChatPanel/PanelStyle.d.ts +16 -0
- package/lib/shared/views/CometChatPanel/PanelStyle.js +23 -0
- package/lib/shared/views/CometChatPanel/PanelStyle.js.map +1 -0
- package/lib/shared/views/CometChatPanel/resources/CloseIcon.png +0 -0
- package/lib/shared/views/CometChatPanel/resources/index.d.ts +2 -0
- package/lib/shared/views/CometChatPanel/resources/index.js +3 -0
- package/lib/shared/views/CometChatPanel/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.d.ts +10 -0
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js +48 -0
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsConfiguration.d.ts +6 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsConfiguration.js +9 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.d.ts +12 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js +19 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/index.d.ts +4 -0
- package/lib/shared/views/CometChatQuickReactions/index.js +5 -0
- package/lib/shared/views/CometChatQuickReactions/index.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/resources/AddReactions.png +0 -0
- package/lib/shared/views/CometChatQuickReactions/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatQuickReactions/resources/index.js +3 -0
- package/lib/shared/views/CometChatQuickReactions/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.d.ts +10 -0
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.js +40 -0
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.js.map +1 -0
- package/lib/shared/views/CometChatQuickView/QuickViewStyle.d.ts +22 -0
- package/lib/shared/views/CometChatQuickView/QuickViewStyle.js +28 -0
- package/lib/shared/views/CometChatQuickView/QuickViewStyle.js.map +1 -0
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.d.ts +11 -0
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js +36 -0
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js.map +1 -0
- package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.d.ts +19 -0
- package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js +19 -0
- package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.js +242 -0
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/ReactionListConfiguration.d.ts +6 -0
- package/lib/shared/views/CometChatReactionList/ReactionListConfiguration.js +9 -0
- package/lib/shared/views/CometChatReactionList/ReactionListConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.d.ts +28 -0
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.js +35 -0
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/index.d.ts +4 -0
- package/lib/shared/views/CometChatReactionList/index.js +5 -0
- package/lib/shared/views/CometChatReactionList/index.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/resources/Spineer.png +0 -0
- package/lib/shared/views/CometChatReactionList/resources/index.d.ts +2 -0
- package/lib/shared/views/CometChatReactionList/resources/index.js +3 -0
- package/lib/shared/views/CometChatReactionList/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatReactions/CometChatReactions.d.ts +18 -0
- package/lib/shared/views/CometChatReactions/CometChatReactions.js +119 -0
- package/lib/shared/views/CometChatReactions/CometChatReactions.js.map +1 -0
- package/lib/shared/views/CometChatReactions/ReactionsConfiguration.d.ts +6 -0
- package/lib/shared/views/CometChatReactions/ReactionsConfiguration.js +9 -0
- package/lib/shared/views/CometChatReactions/ReactionsConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatReactions/ReactionsStyle.d.ts +16 -0
- package/lib/shared/views/CometChatReactions/ReactionsStyle.js +23 -0
- package/lib/shared/views/CometChatReactions/ReactionsStyle.js.map +1 -0
- package/lib/shared/views/CometChatReactions/index.d.ts +4 -0
- package/lib/shared/views/CometChatReactions/index.js +5 -0
- package/lib/shared/views/CometChatReactions/index.js.map +1 -0
- package/lib/shared/views/CometChatReactions/style.d.ts +1 -0
- package/lib/shared/views/CometChatReactions/style.js +42 -0
- package/lib/shared/views/CometChatReactions/style.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.d.ts +6 -2
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js +12 -3
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js.map +1 -1
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.d.ts +11 -1
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js +3 -1
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js.map +1 -1
- 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/CometChatReceipt/style.d.ts +1 -7
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.d.ts +8 -0
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js +1130 -0
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js.map +1 -0
- package/lib/shared/views/CometChatSchedulerBubble/index.d.ts +2 -0
- package/lib/shared/views/CometChatSchedulerBubble/index.js +2 -0
- package/lib/shared/views/CometChatSchedulerBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatSchedulerBubble/styles.d.ts +24 -0
- package/lib/shared/views/CometChatSchedulerBubble/styles.js +67 -0
- package/lib/shared/views/CometChatSchedulerBubble/styles.js.map +1 -0
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.d.ts +11 -0
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js +35 -0
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js.map +1 -0
- package/lib/shared/views/CometChatSingleSelect/SingleStyle.d.ts +18 -0
- package/lib/shared/views/CometChatSingleSelect/SingleStyle.js +18 -0
- package/lib/shared/views/CometChatSingleSelect/SingleStyle.js.map +1 -0
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.d.ts +1 -2
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js.map +1 -1
- package/lib/shared/views/CometChatStatusIndicator/styles.d.ts +1 -12
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.d.ts +16 -0
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js +27 -0
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js.map +1 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.d.ts +43 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js +46 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js.map +1 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.d.ts +19 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js +16 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatSuggestionList/index.d.ts +4 -0
- package/lib/shared/views/CometChatSuggestionList/index.js +5 -0
- package/lib/shared/views/CometChatSuggestionList/index.js.map +1 -0
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.d.ts +3 -6
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js +18 -29
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js.map +1 -1
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.d.ts +1 -11
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js +1 -5
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatTextBubble/index.d.ts +2 -2
- package/lib/shared/views/CometChatTextBubble/index.js +2 -2
- package/lib/shared/views/CometChatTextBubble/index.js.map +1 -1
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.d.ts +11 -0
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.js +37 -0
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.js.map +1 -0
- package/lib/shared/views/CometChatTextInput/TextInputStyle.d.ts +13 -0
- package/lib/shared/views/CometChatTextInput/TextInputStyle.js +13 -0
- package/lib/shared/views/CometChatTextInput/TextInputStyle.js.map +1 -0
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.d.ts +11 -0
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js +69 -0
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js.map +1 -0
- package/lib/shared/views/CometChatTimeSlotSelector/index.d.ts +2 -0
- package/lib/shared/views/CometChatTimeSlotSelector/index.js +2 -0
- package/lib/shared/views/CometChatTimeSlotSelector/index.js.map +1 -0
- package/lib/shared/views/CometChatTimeSlotSelector/styles.d.ts +11 -0
- package/lib/shared/views/CometChatTimeSlotSelector/styles.js +20 -0
- package/lib/shared/views/CometChatTimeSlotSelector/styles.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.d.ts +18 -2
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +42 -13
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.d.ts +41 -1
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +26 -1
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/resources/default_image.png +0 -0
- package/lib/shared/views/CometChatVideoBubble/resources/index.d.ts +2 -1
- package/lib/shared/views/CometChatVideoBubble/resources/index.js +2 -1
- package/lib/shared/views/CometChatVideoBubble/resources/index.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/resources/play.png +0 -0
- package/lib/shared/views/CometChatVideoBubble/style.d.ts +1 -7
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.d.ts +18 -0
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js +64 -0
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js.map +1 -0
- package/lib/shared/views/CometChatVideoPlayer/index.d.ts +1 -0
- package/lib/shared/views/CometChatVideoPlayer/index.js +2 -0
- package/lib/shared/views/CometChatVideoPlayer/index.js.map +1 -0
- package/lib/shared/views/SwipeRow/SwipeRow.js.map +1 -1
- package/lib/shared/views/SwipeRow/style.d.ts +1 -28
- package/lib/shared/views/index.d.ts +10 -2
- package/lib/shared/views/index.js +11 -3
- package/lib/shared/views/index.js.map +1 -1
- package/package.json +1 -1
- package/src/AI/AIAssistBot/AIAssistBotView.tsx +2 -1
- package/src/CometChatDetails/CometChatDetails.tsx +12 -12
- package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +11 -3
- package/src/CometChatGroups/CometChatGroups.tsx +23 -19
- package/src/CometChatGroups/resources/check.png +0 -0
- package/src/CometChatGroups/resources/index.ts +3 -1
- package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +24 -9
- package/src/CometChatMessageList/CometChatMessageList.tsx +25 -24
- package/src/CometChatMessageList/MessageListConfiguration.ts +3 -7
- package/src/CometChatMessages/CometChatMessages.tsx +1 -1
- package/src/CometChatThreadedMessages/CometChatThreadedMessages.tsx +53 -28
- package/src/CometChatThreadedMessages/ThreadedMessagesConfiguration.ts +15 -0
- package/src/calls/CallUtils.ts +4 -2
- package/src/calls/CallingExtentionDecorator.tsx +2 -1
- package/src/calls/CometChatOutgoingCall/CometChatOutgoingCall.tsx +7 -3
- package/src/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.tsx +2 -1
- package/src/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.tsx +2 -1
- package/src/extensions/LinkPreview/LinkPreviewExtentionDecorator.tsx +1 -1
- package/src/extensions/MessageTranslation/MessageTranslationDecorator.tsx +1 -2
- package/src/extensions/Polls/Polls.tsx +93 -115
- package/src/extensions/Polls/PollsDecorator.tsx +1 -2
- package/src/extensions/Stickers/StickersExtensionDecorator.tsx +2 -1
- package/src/extensions/TextModeration/TextModerationExtensionDecorator.tsx +1 -1
- package/src/index.ts +10 -0
- package/src/shared/base/Types.ts +13 -1
- package/src/shared/base/index.ts +11 -1
- package/src/shared/constants/UIKitConstants.ts +0 -10
- package/src/shared/framework/DataSource.ts +11 -11
- package/src/shared/framework/DataSourceDecorator.tsx +1 -1
- package/src/shared/framework/MessageDataSource.tsx +29 -28
- package/src/shared/index.ts +10 -0
- package/src/shared/modals/CometChatMessageTemplate.ts +7 -7
- package/src/shared/resources/CometChatTheme/Palette.ts +0 -15
- package/src/shared/utils/MessageUtils.tsx +2 -1
- package/src/shared/views/CometChatList/CometChatList.tsx +1 -1
- package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +1 -1
- package/src/shared/views/CometChatReactions/CometChatReactions.tsx +1 -1
- package/ios/VideoCaching/RCTVideoCache.h +0 -38
- package/ios/VideoCaching/RCTVideoCache.m +0 -174
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React, { forwardRef, useEffect, useRef, useState, useImperativeHandle, useContext, useCallback } from "react";
|
|
2
|
-
import { View,
|
|
1
|
+
import React, { forwardRef, useEffect, useRef, useState, useImperativeHandle, useContext, useCallback, memo, useLayoutEffect } from "react";
|
|
2
|
+
import { View, Text, Image, TouchableOpacity, ActivityIndicator, NativeModules, ScrollView, Dimensions } from "react-native";
|
|
3
3
|
//@ts-ignore
|
|
4
4
|
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
5
|
-
import {
|
|
6
|
-
import { BaseStyle, CometChatContext,
|
|
5
|
+
import { LeftArrowCurve } from "./resources";
|
|
6
|
+
import { BaseStyle, CometChatContext, CometChatMentionsFormatter, SuggestionItem } from "../shared";
|
|
7
7
|
import { MessageBubbleStyle } from "../shared/views/CometChatMessageBubble/MessageBubbleStyle";
|
|
8
8
|
import { AvatarStyle } from "../shared";
|
|
9
9
|
import { CometChatAvatar, CometChatDate, CometChatReceipt, DateStyle } from "../shared";
|
|
10
10
|
import { MessageListStyle } from "./MessageListStyle";
|
|
11
11
|
import { CometChatMessageBubble } from "../shared/views/CometChatMessageBubble";
|
|
12
|
-
import { CallTypeConstants, MessageCategoryConstants, MessageOptionConstants, MessageStatusConstants, ReceiverTypeConstants, ViewAlignment } from "../shared/constants/UIKitConstants";
|
|
12
|
+
import { CallTypeConstants, MessageCategoryConstants, MessageOptionConstants, MessageStatusConstants, MessageTypeConstants, ReceiverTypeConstants, ViewAlignment } from "../shared/constants/UIKitConstants";
|
|
13
13
|
import { localize } from "../shared";
|
|
14
14
|
import { downArrowIcon } from "./resources";
|
|
15
15
|
import { Style } from "./style";
|
|
@@ -19,38 +19,70 @@ import { ChatConfigurator } from "../shared/framework/ChatConfigurator";
|
|
|
19
19
|
import { CometChatActionSheet, ActionSheetStyles, CometChatBottomSheet } from "../shared";
|
|
20
20
|
import { getUnixTimestamp, messageStatus } from "../shared/utils/CometChatMessageHelper";
|
|
21
21
|
import { CometChatUIEventHandler } from "../shared/events/CometChatUIEventHandler/CometChatUIEventHandler";
|
|
22
|
-
import Clipboard from "@react-native-community/clipboard";
|
|
23
22
|
import { CometChatMessageInformation } from "../CometChatMessageInformation/CometChatMessageInformation";
|
|
23
|
+
import { InteractiveMessageUtils } from "../shared/utils/InteractiveMessageUtils";
|
|
24
|
+
import { CometChatEmojiKeyboard } from "../shared/views/CometChatEmojiKeyboard";
|
|
25
|
+
import { CometChatReactionList } from "../shared/views/CometChatReactionList";
|
|
26
|
+
import { CometChatQuickReactions } from "../shared/views/CometChatQuickReactions";
|
|
27
|
+
import { CometChatReactions } from "../shared/views/CometChatReactions";
|
|
28
|
+
import { CommonUtils } from "../shared/utils/CommonUtils";
|
|
29
|
+
import Clipboard from "@react-native-clipboard/clipboard";
|
|
24
30
|
let templatesMap = new Map();
|
|
25
31
|
let _defaultRequestBuilder;
|
|
26
|
-
export const CometChatMessageList = forwardRef((props, ref) => {
|
|
27
|
-
const { parentMessageId, user, group, EmptyStateView, emptyStateText, ErrorStateView, errorStateText, LoadingStateView, disableReceipt, disableSoundForMessages, customSoundForMessages, readIcon, deliveredIcon, sentIcon, waitIcon, errorIcon, alignment, showAvatar, datePattern, timeStampAlignment, dateSeperatorPattern, templates, messageRequestBuilder, newMessageIndicatorText, scrollToBottomOnNewMessages, onThreadRepliesPress, HeaderView, FooterView, wrapperMessageBubbleStyle, avatarStyle, dateSeperatorStyle, actionSheetStyle, messageListStyle, onError, onBack,
|
|
32
|
+
export const CometChatMessageList = memo(forwardRef((props, ref) => {
|
|
33
|
+
const { parentMessageId, user, group, EmptyStateView, emptyStateText = localize("NO_MESSAGES_FOUND"), ErrorStateView, errorStateText = localize("SOMETHING_WRONG"), LoadingStateView, disableReceipt = false, disableSoundForMessages, customSoundForMessages, readIcon, deliveredIcon, sentIcon, waitIcon, errorIcon, alignment = "standard", showAvatar = true, datePattern, timeStampAlignment = "bottom", dateSeperatorPattern, templates = [], messageRequestBuilder, newMessageIndicatorText, scrollToBottomOnNewMessages, onThreadRepliesPress, HeaderView, FooterView, wrapperMessageBubbleStyle, avatarStyle, dateSeperatorStyle, actionSheetStyle, messageListStyle, onError, onBack,
|
|
28
34
|
// forwardMessageConfiguration
|
|
29
|
-
messageInformationConfiguration } = props;
|
|
30
|
-
const messageListenerId = "message_" + new Date().getTime();
|
|
35
|
+
messageInformationConfiguration, hideActionSheetHeader, reactionsConfiguration, disableReactions, reactionListConfiguration, quickReactionConfiguration, emojiKeyboardStyle, disableMentions, textFormatters } = props;
|
|
31
36
|
const callListenerId = "call_" + new Date().getTime();
|
|
32
37
|
const groupListenerId = "group_" + new Date().getTime();
|
|
33
38
|
const uiEventListener = "uiEvent_" + new Date().getTime();
|
|
39
|
+
const callEventListener = 'callEvent_' + new Date().getTime();
|
|
34
40
|
const uiEventListenerShow = "uiEvent_show_" + new Date().getTime();
|
|
35
41
|
const uiEventListenerHide = "uiEvent_hide_" + new Date().getTime();
|
|
36
42
|
const connectionListenerId = 'connectionListener_' + new Date().getTime();
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
useLayoutEffect(() => {
|
|
44
|
+
if (user) {
|
|
45
|
+
_defaultRequestBuilder = new CometChat.MessagesRequestBuilder()
|
|
46
|
+
.setLimit(30)
|
|
47
|
+
.setTags([])
|
|
48
|
+
.setUID(user["uid"]);
|
|
49
|
+
}
|
|
50
|
+
else if (group) {
|
|
51
|
+
_defaultRequestBuilder = new CometChat.MessagesRequestBuilder()
|
|
52
|
+
.setLimit(30)
|
|
53
|
+
.setTags([])
|
|
54
|
+
.setGUID(group["guid"]);
|
|
55
|
+
}
|
|
56
|
+
_defaultRequestBuilder.setTypes(ChatConfigurator.dataSource.getAllMessageTypes());
|
|
57
|
+
_defaultRequestBuilder.setCategories(ChatConfigurator.dataSource.getAllMessageCategories());
|
|
58
|
+
//updating users request builder
|
|
59
|
+
let _updatedCustomRequestBuilder = _defaultRequestBuilder;
|
|
60
|
+
if (messageRequestBuilder) {
|
|
61
|
+
_updatedCustomRequestBuilder = messageRequestBuilder;
|
|
62
|
+
}
|
|
63
|
+
_updatedCustomRequestBuilder.hideReplies(true);
|
|
64
|
+
if (user)
|
|
65
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setUID(user["uid"]);
|
|
66
|
+
if (group)
|
|
67
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setGUID(group["guid"]);
|
|
68
|
+
if (parentMessageId)
|
|
69
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setParentMessageId(parseInt(parentMessageId));
|
|
70
|
+
let types = [], categories = [];
|
|
71
|
+
if (templates.length) {
|
|
72
|
+
types = templates.map(template => template.type);
|
|
73
|
+
categories = templates.map(template => template.category);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
types = ChatConfigurator.dataSource.getAllMessageTypes();
|
|
77
|
+
categories = ChatConfigurator.dataSource.getAllMessageCategories();
|
|
78
|
+
}
|
|
79
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setTypes(types);
|
|
80
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setCategories(categories);
|
|
81
|
+
msgRequestBuilder.current = _updatedCustomRequestBuilder;
|
|
82
|
+
}, []);
|
|
51
83
|
const { theme } = useContext(CometChatContext);
|
|
52
84
|
// creating style based on styles from users
|
|
53
|
-
const _messageListStyle = new MessageListStyle({
|
|
85
|
+
const _messageListStyle = useRef(new MessageListStyle({
|
|
54
86
|
backgroundColor: theme?.palette.getBackgroundColor(),
|
|
55
87
|
emptyStateTextColor: theme?.palette.getError(),
|
|
56
88
|
emptyStateTextFont: theme?.typography.subtitle1,
|
|
@@ -66,57 +98,38 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
66
98
|
timestampTextColor: theme?.palette.getAccent500(),
|
|
67
99
|
timestampTextFont: theme?.typography.caption1,
|
|
68
100
|
...messageListStyle
|
|
69
|
-
});
|
|
70
|
-
const _avatarStyle = new AvatarStyle({
|
|
71
|
-
backgroundColor: _messageListStyle.backgroundColor,
|
|
101
|
+
})).current;
|
|
102
|
+
const _avatarStyle = useRef(new AvatarStyle({
|
|
72
103
|
nameTextColor: _messageListStyle.nameTextColor,
|
|
73
104
|
nameTextFont: _messageListStyle.nameTextFont,
|
|
74
105
|
...avatarStyle
|
|
75
|
-
});
|
|
76
|
-
const _dateSeperatorStyle = new DateStyle({
|
|
106
|
+
})).current;
|
|
107
|
+
const _dateSeperatorStyle = useRef(new DateStyle({
|
|
77
108
|
textColor: _messageListStyle.timestampTextColor,
|
|
78
109
|
textFont: theme?.typography.title2,
|
|
79
110
|
...dateSeperatorStyle
|
|
80
|
-
});
|
|
81
|
-
const messageBubbleDateStyle = new DateStyle({
|
|
111
|
+
})).current;
|
|
112
|
+
const messageBubbleDateStyle = useRef(new DateStyle({
|
|
82
113
|
textColor: _messageListStyle.timestampTextColor,
|
|
83
114
|
textFont: _messageListStyle.timestampTextFont
|
|
84
|
-
});
|
|
85
|
-
const _actionStyle = new ActionSheetStyles({
|
|
115
|
+
})).current;
|
|
116
|
+
const _actionStyle = useRef(new ActionSheetStyles({
|
|
117
|
+
actionSheetSeparatorTint: 'transparent',
|
|
86
118
|
...actionSheetStyle
|
|
87
|
-
});
|
|
88
|
-
const _messageBubbleStyle = new MessageBubbleStyle({
|
|
119
|
+
})).current;
|
|
120
|
+
const _messageBubbleStyle = useRef(new MessageBubbleStyle({
|
|
89
121
|
...wrapperMessageBubbleStyle
|
|
90
|
-
});
|
|
122
|
+
})).current;
|
|
91
123
|
// refs
|
|
92
|
-
const currentScrollPosition = useRef(null);
|
|
124
|
+
const currentScrollPosition = useRef({ y: null, scrollViewHeight: 0, layoutHeight: 0 });
|
|
125
|
+
const previousScrollPosition = useRef({ y: 0, scrollViewHeight: 0 });
|
|
126
|
+
const messagesLength = useRef(0);
|
|
127
|
+
const prevMessagesLength = useRef(0);
|
|
93
128
|
const messageListRef = useRef(null);
|
|
94
129
|
const loggedInUser = useRef(null);
|
|
95
130
|
const messageRequest = useRef(null);
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
if (messageRequestBuilder) {
|
|
99
|
-
_updatedCustomRequestBuilder = messageRequestBuilder;
|
|
100
|
-
}
|
|
101
|
-
_updatedCustomRequestBuilder.hideReplies(true);
|
|
102
|
-
if (user)
|
|
103
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setUID(user["uid"]);
|
|
104
|
-
if (group)
|
|
105
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setGUID(group["guid"]);
|
|
106
|
-
if (parentMessageId)
|
|
107
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setParentMessageId(parseInt(parentMessageId));
|
|
108
|
-
let types = [], categories = [];
|
|
109
|
-
if (templates.length) {
|
|
110
|
-
types = templates.map(template => template.type);
|
|
111
|
-
categories = templates.map(template => template.category);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
types = ChatConfigurator.dataSource.getAllMessageTypes();
|
|
115
|
-
categories = ChatConfigurator.dataSource.getAllMessageCategories();
|
|
116
|
-
}
|
|
117
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setTypes(types);
|
|
118
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setCategories(categories);
|
|
119
|
-
const msgRequestBuilder = useRef(_updatedCustomRequestBuilder);
|
|
131
|
+
const messagesContentListRef = useRef([]);
|
|
132
|
+
const msgRequestBuilder = useRef();
|
|
120
133
|
const lastMessageDate = useRef(new Date().getTime());
|
|
121
134
|
// states
|
|
122
135
|
const [messagesList, setMessagesList] = useState([]);
|
|
@@ -124,32 +137,47 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
124
137
|
const [loadingMessages, setLoadingMessages] = useState(false);
|
|
125
138
|
const [unreadCount, setUnreadCount] = useState(0);
|
|
126
139
|
const [showMessageOptions, setShowMessageOptions] = useState([]);
|
|
127
|
-
const [liveReaction, setliveReaction] = useState(false);
|
|
128
140
|
const [ExtensionsComponent, setExtensionsComponent] = useState(null);
|
|
129
141
|
const [CustomListHeader, setCustomListHeader] = useState(null);
|
|
130
142
|
const [messageInfo, setMessageInfo] = useState(false);
|
|
143
|
+
const [ongoingCallView, setOngoingCallView] = useState(null);
|
|
144
|
+
const [selectedMessage, setSelectedMessage] = useState(null);
|
|
145
|
+
const [showEmojiKeyboard, setShowEmojiKeyboard] = useState(false);
|
|
146
|
+
const [showReactionList, setShowReactionList] = useState(false);
|
|
147
|
+
const [selectedEmoji, setSelectedEmoji] = useState(null);
|
|
131
148
|
// const [forwarding, setForwarding] = useState(false);
|
|
132
149
|
const infoObject = useRef();
|
|
150
|
+
const inProgressMessages = useRef([]);
|
|
133
151
|
// const messageToForward = useRef<CometChat.BaseMessage>();
|
|
134
152
|
const bottomSheetRef = useRef(null);
|
|
135
153
|
const conversationId = useRef(null);
|
|
136
|
-
|
|
154
|
+
let lastID = useRef(0);
|
|
137
155
|
const scrollHandler = (event) => {
|
|
138
|
-
|
|
139
|
-
|
|
156
|
+
const { layoutMeasurement, contentOffset, contentSize } = event.nativeEvent;
|
|
157
|
+
const screenHeight = Dimensions.get('window').height;
|
|
158
|
+
// Calculate the scroll position
|
|
159
|
+
const scrollPosition = layoutMeasurement.height + contentOffset.y;
|
|
160
|
+
const scrollEndPosition = contentSize.height - screenHeight;
|
|
161
|
+
currentScrollPosition.current.y = contentOffset.y;
|
|
162
|
+
if (currentScrollPosition.current.layoutHeight != layoutMeasurement.height) {
|
|
163
|
+
currentScrollPosition.current.layoutHeight = layoutMeasurement.height;
|
|
164
|
+
}
|
|
165
|
+
if (currentScrollPosition.current.scrollViewHeight !== contentSize.height) {
|
|
166
|
+
currentScrollPosition.current.scrollViewHeight = contentSize.height;
|
|
167
|
+
}
|
|
168
|
+
// Check if the scroll position is at the end
|
|
169
|
+
if (scrollPosition >= scrollEndPosition && unreadCount > 0) {
|
|
140
170
|
markUnreadMessageAsRead();
|
|
141
171
|
}
|
|
142
172
|
};
|
|
143
173
|
const markUnreadMessageAsRead = () => {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
174
|
+
for (let index = 0; index < unreadCount; index++) {
|
|
175
|
+
const message = messagesContentListRef.current[messagesContentListRef.current.length - (index + 1)];
|
|
176
|
+
if (index == 0)
|
|
177
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageRead, { message });
|
|
178
|
+
CometChat.markAsRead(message);
|
|
179
|
+
setUnreadCount(0);
|
|
151
180
|
}
|
|
152
|
-
setUnreadCount(0);
|
|
153
181
|
};
|
|
154
182
|
const newMsgIndicatorPressed = () => {
|
|
155
183
|
scrollToBottom();
|
|
@@ -171,14 +199,17 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
171
199
|
messageRequest.current.fetchPrevious()
|
|
172
200
|
.then(msgs => {
|
|
173
201
|
let reversed = msgs.reverse();
|
|
174
|
-
if (messagesList.length === 0 &&
|
|
202
|
+
if (messagesList.length === 0 && msgs?.length > 0) {
|
|
203
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccActiveChatChanged, { message: reversed[0], user: user, group: group, theme: theme, parentMessageId: parentMessageId });
|
|
175
204
|
if (conversationId.current == null)
|
|
176
205
|
conversationId.current = reversed[0].getConversationId();
|
|
177
|
-
|
|
206
|
+
}
|
|
207
|
+
else if (messagesList.length === 0 && !props?.parentMessageId) {
|
|
208
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccActiveChatChanged, { message: reversed[0], user: user, group: group, theme: theme, parentMessageId: parentMessageId });
|
|
178
209
|
}
|
|
179
210
|
for (let index = 0; index < reversed.length; index++) {
|
|
180
211
|
const message = reversed[index];
|
|
181
|
-
if (!disableReceipt && !message.hasOwnProperty("readAt") && loggedInUser.current.getUid() != message['sender']['uid']) {
|
|
212
|
+
if (message && !disableReceipt && !message.hasOwnProperty("readAt") && loggedInUser.current.getUid() != message['sender']['uid']) {
|
|
182
213
|
CometChat.markAsRead(message);
|
|
183
214
|
if (index == 0)
|
|
184
215
|
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageRead, { message });
|
|
@@ -186,7 +217,19 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
186
217
|
else
|
|
187
218
|
break;
|
|
188
219
|
}
|
|
189
|
-
|
|
220
|
+
reversed = reversed.map((item, index) => {
|
|
221
|
+
if (item.getCategory() === MessageCategoryConstants.interactive) {
|
|
222
|
+
return InteractiveMessageUtils.convertInteractiveMessage(item);
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
return item;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
if (reversed.length > 0) {
|
|
229
|
+
let reversedData = [...reversed.reverse()];
|
|
230
|
+
messagesContentListRef.current = [...reversedData, ...messagesContentListRef.current];
|
|
231
|
+
setMessagesList([...reversedData, ...messagesList]);
|
|
232
|
+
}
|
|
190
233
|
if (messagesList.length == 0)
|
|
191
234
|
setListState("");
|
|
192
235
|
else
|
|
@@ -197,7 +240,6 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
197
240
|
setListState("error");
|
|
198
241
|
else
|
|
199
242
|
setLoadingMessages(false);
|
|
200
|
-
console.log(e);
|
|
201
243
|
onError && onError(e);
|
|
202
244
|
});
|
|
203
245
|
};
|
|
@@ -209,11 +251,12 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
209
251
|
messagesRequest = messagesRequest.setGUID(group["guid"]);
|
|
210
252
|
messagesRequest.setTypes([MessageCategoryConstants.message]);
|
|
211
253
|
messagesRequest.setCategories([MessageCategoryConstants.action]);
|
|
212
|
-
messagesRequest.
|
|
213
|
-
// messagesRequest.setMessageId(messagesList[0].id)
|
|
254
|
+
messagesRequest.setMessageId(lastID.current);
|
|
214
255
|
messagesRequest.build()
|
|
215
256
|
.fetchNext()
|
|
216
257
|
.then(updatedMessages => {
|
|
258
|
+
if (!updatedMessages.length)
|
|
259
|
+
return;
|
|
217
260
|
let tmpList = [...messagesList];
|
|
218
261
|
for (let i = 0; i < updatedMessages.length; i++) {
|
|
219
262
|
let condition = (msg) => msg.getId() == updatedMessages[i]?.actionOn.getId();
|
|
@@ -230,30 +273,110 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
230
273
|
};
|
|
231
274
|
const getNewMessages = (updatedList) => {
|
|
232
275
|
let newRequestBuilder = msgRequestBuilder.current;
|
|
233
|
-
newRequestBuilder.
|
|
276
|
+
newRequestBuilder.setMessageId(lastID.current);
|
|
234
277
|
newRequestBuilder.build()
|
|
235
278
|
.fetchNext()
|
|
236
279
|
.then(newMessages => {
|
|
280
|
+
let cleanUpdatedList = [...updatedList];
|
|
281
|
+
for (let i = (cleanUpdatedList.length - 1); i >= 0; i--) {
|
|
282
|
+
if (cleanUpdatedList[i].id == lastID.current)
|
|
283
|
+
break;
|
|
284
|
+
if (cleanUpdatedList[i].id == undefined || Number.isNaN(parseInt(cleanUpdatedList[i].id)))
|
|
285
|
+
cleanUpdatedList.splice(i, 1);
|
|
286
|
+
}
|
|
237
287
|
// console.log("newMessages", newMessages.length, JSON.stringify(newMessages))
|
|
238
|
-
|
|
288
|
+
if (cleanUpdatedList?.length > 0 && cleanUpdatedList?.[cleanUpdatedList.length - 1]?.["muid"]) {
|
|
289
|
+
let localFileExists = newMessages.findIndex(msg => msg?.["muid"] == cleanUpdatedList?.[cleanUpdatedList.length - 1]?.["muid"]);
|
|
290
|
+
if (localFileExists > -1) {
|
|
291
|
+
cleanUpdatedList.shift();
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
let tmpList = [...cleanUpdatedList, ...newMessages.reverse()];
|
|
295
|
+
tmpList = tmpList.map((item, index) => {
|
|
296
|
+
if (item.getCategory() === MessageCategoryConstants.interactive) {
|
|
297
|
+
return InteractiveMessageUtils.convertInteractiveMessage(item);
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
return item;
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
if (inProgressMessages.current.length) {
|
|
304
|
+
const filteredInProgressMessages = inProgressMessages.current.filter(secondItem => !tmpList.some(firstItem => firstItem.muid === secondItem.muid));
|
|
305
|
+
const combinedArray = tmpList.concat(filteredInProgressMessages);
|
|
306
|
+
tmpList = combinedArray;
|
|
307
|
+
}
|
|
308
|
+
messagesContentListRef.current = tmpList;
|
|
239
309
|
setMessagesList(tmpList);
|
|
240
310
|
markMessageAsRead(tmpList[0]);
|
|
241
311
|
if (newMessages.length === 30) {
|
|
242
|
-
console.log("Looping..........");
|
|
243
312
|
getNewMessages(tmpList);
|
|
244
313
|
}
|
|
245
314
|
})
|
|
246
315
|
.catch(e => console.log("error while fetching updated msgs", e));
|
|
247
316
|
};
|
|
248
|
-
const loadTemplates = () => {
|
|
249
|
-
let
|
|
317
|
+
const loadTemplates = useCallback(() => {
|
|
318
|
+
let _formatters = textFormatters || [];
|
|
319
|
+
let templates = ChatConfigurator.dataSource.getAllMessageTemplates(theme, {
|
|
320
|
+
textFormatters: _formatters,
|
|
321
|
+
disableMentions: disableMentions
|
|
322
|
+
});
|
|
250
323
|
templates.forEach(template => {
|
|
251
324
|
if (templatesMap.get(`${template.category}_${template.type}`))
|
|
252
325
|
return;
|
|
253
326
|
templatesMap.set(`${template.category}_${template.type}`, template);
|
|
254
327
|
});
|
|
328
|
+
}, []);
|
|
329
|
+
const getPlainString = (underlyingText, messageObject) => {
|
|
330
|
+
let _plainString = underlyingText;
|
|
331
|
+
let regexes = [];
|
|
332
|
+
let users = {};
|
|
333
|
+
let edits = [];
|
|
334
|
+
let allFormatters = [...(textFormatters || [])];
|
|
335
|
+
let mentionsTextFormatter = ChatConfigurator.getDataSource().getMentionsFormatter(loggedInUser.current);
|
|
336
|
+
allFormatters.push(mentionsTextFormatter);
|
|
337
|
+
allFormatters.forEach((formatter, key) => {
|
|
338
|
+
regexes.push(formatter.getRegexPattern());
|
|
339
|
+
let suggestionUsers = formatter.getSuggestionItems();
|
|
340
|
+
if (formatter instanceof CometChatMentionsFormatter) {
|
|
341
|
+
let mentionUsers = (messageObject?.getMentionedUsers && messageObject?.getMentionedUsers()).map(item => new SuggestionItem({
|
|
342
|
+
id: item.getUid(),
|
|
343
|
+
name: item.getName(),
|
|
344
|
+
promptText: "@" + item.getName(),
|
|
345
|
+
trackingCharacter: "@",
|
|
346
|
+
underlyingText: `<@uid:${item.getUid()}>`,
|
|
347
|
+
hideLeadingIcon: false
|
|
348
|
+
})) || [];
|
|
349
|
+
suggestionUsers = [...suggestionUsers, ...mentionUsers];
|
|
350
|
+
}
|
|
351
|
+
suggestionUsers?.length > 0 && suggestionUsers.forEach(item => users[item.underlyingText] = item);
|
|
352
|
+
});
|
|
353
|
+
regexes.forEach(regex => {
|
|
354
|
+
let match;
|
|
355
|
+
while ((match = regex.exec(_plainString)) !== null) {
|
|
356
|
+
const user = users[match[0]];
|
|
357
|
+
if (user) {
|
|
358
|
+
edits.push({
|
|
359
|
+
startIndex: match.index,
|
|
360
|
+
endIndex: regex.lastIndex,
|
|
361
|
+
replacement: user.promptText,
|
|
362
|
+
user
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
// Sort edits by startIndex to apply them in order
|
|
368
|
+
edits.sort((a, b) => a.startIndex - b.startIndex);
|
|
369
|
+
// Get an array of the entries in the map using the spread operator
|
|
370
|
+
const entries = [...edits].reverse();
|
|
371
|
+
// Iterate over the array in reverse order
|
|
372
|
+
entries.forEach(({ endIndex, replacement, startIndex, user }) => {
|
|
373
|
+
let pre = _plainString.substring(0, startIndex);
|
|
374
|
+
let post = _plainString.substring(endIndex);
|
|
375
|
+
_plainString = pre + replacement + post;
|
|
376
|
+
});
|
|
377
|
+
return _plainString;
|
|
255
378
|
};
|
|
256
|
-
const playNotificationSound = (message) => {
|
|
379
|
+
const playNotificationSound = useCallback((message) => {
|
|
257
380
|
if (disableSoundForMessages)
|
|
258
381
|
return;
|
|
259
382
|
if (message?.category === MessageCategoryConstants.message) {
|
|
@@ -266,12 +389,22 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
266
389
|
loggedInUser.current.getUid() == message['sender']['uid'] ? "outgoingMessage" : "incomingMessage");
|
|
267
390
|
}
|
|
268
391
|
}
|
|
269
|
-
};
|
|
270
|
-
const scrollToBottom = (scrollToFirstUnread = false) => {
|
|
271
|
-
if (messageListRef &&
|
|
272
|
-
|
|
392
|
+
}, []);
|
|
393
|
+
const scrollToBottom = useCallback((scrollToFirstUnread = false) => {
|
|
394
|
+
if (messageListRef.current && messagesContentListRef.current.length > 0) {
|
|
395
|
+
let firstUnreadPosition = previousScrollPosition.current.scrollViewHeight;
|
|
396
|
+
if (scrollToFirstUnread) {
|
|
397
|
+
setTimeout(() => {
|
|
398
|
+
messageListRef.current.scrollTo({ x: 0, y: firstUnreadPosition, animated: false });
|
|
399
|
+
}, 0);
|
|
400
|
+
}
|
|
401
|
+
else {
|
|
402
|
+
setTimeout(() => {
|
|
403
|
+
messageListRef.current.scrollToEnd({ animated: true });
|
|
404
|
+
}, 0);
|
|
405
|
+
}
|
|
273
406
|
}
|
|
274
|
-
};
|
|
407
|
+
}, []);
|
|
275
408
|
const markMessageAsRead = (message) => {
|
|
276
409
|
if (!disableReceipt && !message?.readAt) {
|
|
277
410
|
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageRead, { message });
|
|
@@ -284,19 +417,19 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
284
417
|
}
|
|
285
418
|
};
|
|
286
419
|
function checkMessageInSameConversation(message) {
|
|
287
|
-
return (message
|
|
420
|
+
return (message?.getReceiverType() == ReceiverTypeConstants.user &&
|
|
288
421
|
user &&
|
|
289
422
|
user?.getUid() == message.getReceiver()?.['uid']) ||
|
|
290
|
-
(message
|
|
423
|
+
(message?.getReceiverType() == ReceiverTypeConstants.group &&
|
|
291
424
|
message.getReceiverId() &&
|
|
292
425
|
group &&
|
|
293
426
|
group?.getGuid() == message.getReceiverId());
|
|
294
427
|
}
|
|
295
428
|
function messageToSameConversation(message) {
|
|
296
|
-
return (message
|
|
429
|
+
return (message?.getReceiverType() == ReceiverTypeConstants.user &&
|
|
297
430
|
user &&
|
|
298
431
|
user?.getUid() == message.getReceiverId()) ||
|
|
299
|
-
(message
|
|
432
|
+
(message?.getReceiverType() == ReceiverTypeConstants.group &&
|
|
300
433
|
message.getReceiverId() &&
|
|
301
434
|
group &&
|
|
302
435
|
group?.getGuid() == message.getReceiverId());
|
|
@@ -304,39 +437,65 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
304
437
|
function checkSameConversation(message) {
|
|
305
438
|
return conversationId.current != null && (message.getConversationId() == conversationId.current);
|
|
306
439
|
}
|
|
440
|
+
function isNearBottom() {
|
|
441
|
+
const { layoutHeight, scrollViewHeight, y } = currentScrollPosition.current;
|
|
442
|
+
let scrollPos = scrollViewHeight - (layoutHeight + y);
|
|
443
|
+
let scrollPosFromBottomInPercentage = (scrollPos / layoutHeight) * 100;
|
|
444
|
+
if (scrollPosFromBottomInPercentage <= 30) { // 30% from bottom
|
|
445
|
+
return true;
|
|
446
|
+
}
|
|
447
|
+
return false;
|
|
448
|
+
}
|
|
307
449
|
const newMessage = (newMessage, isReceived = true) => {
|
|
308
450
|
let baseMessage = newMessage;
|
|
451
|
+
if (baseMessage.getCategory() === MessageCategoryConstants.interactive) {
|
|
452
|
+
newMessage = InteractiveMessageUtils.convertInteractiveMessage(baseMessage);
|
|
453
|
+
}
|
|
309
454
|
if (checkSameConversation(baseMessage) || checkMessageInSameConversation(baseMessage) || messageToSameConversation(baseMessage)) {
|
|
310
|
-
//need to add
|
|
455
|
+
//need to add
|
|
311
456
|
if (baseMessage.getParentMessageId()) {
|
|
312
457
|
if (baseMessage.getParentMessageId() == parseInt(parentMessageId)) {
|
|
313
458
|
// add to list
|
|
314
|
-
|
|
459
|
+
messagesContentListRef.current = [...messagesContentListRef.current, newMessage];
|
|
460
|
+
inProgressMessages.current = [...inProgressMessages.current, newMessage];
|
|
461
|
+
setMessagesList(prev => [...prev, newMessage]);
|
|
315
462
|
}
|
|
316
463
|
else {
|
|
317
464
|
//increase count
|
|
318
465
|
let index = messagesList.findIndex(msg => msg.id === newMessage.parentMessageId);
|
|
319
|
-
let oldMsg = messagesList[index];
|
|
466
|
+
let oldMsg = CommonUtils.clone(messagesList[index]);
|
|
320
467
|
oldMsg.setReplyCount(oldMsg.getReplyCount() ? oldMsg.getReplyCount() + 1 : 1);
|
|
468
|
+
// if ((newMessage?.sender?.uid !== loggedInUser.current?.['uid'])) {
|
|
469
|
+
// oldMsg.setUnreadReplyCount(oldMsg.getUnreadReplyCount() ? oldMsg.getUnreadReplyCount() + 1 : 1);
|
|
470
|
+
// }
|
|
321
471
|
let tmpList = [...messagesList];
|
|
322
472
|
tmpList[index] = oldMsg;
|
|
473
|
+
messagesContentListRef.current = tmpList;
|
|
323
474
|
setMessagesList(tmpList);
|
|
475
|
+
inProgressMessages.current = [...inProgressMessages.current, newMessage];
|
|
324
476
|
}
|
|
325
477
|
}
|
|
326
478
|
else if (parentMessageId == undefined) {
|
|
327
|
-
|
|
479
|
+
messagesContentListRef.current = [...messagesContentListRef.current, newMessage];
|
|
480
|
+
inProgressMessages.current = [...inProgressMessages.current, newMessage];
|
|
481
|
+
setMessagesList(prev => [...prev, newMessage]);
|
|
328
482
|
}
|
|
329
483
|
// if scroll is not at bottom
|
|
330
|
-
if (!scrollToBottomOnNewMessages && (Math.round(currentScrollPosition.current)
|
|
331
|
-
if (baseMessage['sender']['uid'] == loggedInUser.current?.['uid']) {
|
|
484
|
+
if (!scrollToBottomOnNewMessages && currentScrollPosition.current.y && (Math.round(currentScrollPosition.current.y) <= currentScrollPosition.current.scrollViewHeight)) {
|
|
485
|
+
if ((parentMessageId && newMessage.parentMessageId == parseInt(parentMessageId)) || (!parentMessageId && !newMessage.parentMessageId && (baseMessage.getSender()?.getUid() || baseMessage?.['sender']?.['uid']) == loggedInUser.current?.['uid'])) {
|
|
332
486
|
scrollToBottom();
|
|
333
487
|
return;
|
|
334
488
|
}
|
|
335
489
|
CometChat.markAsDelivered(newMessage);
|
|
336
|
-
if (baseMessage
|
|
490
|
+
if (baseMessage?.getReceiverType() == ReceiverTypeConstants.user) {
|
|
337
491
|
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageDelivered, { message: newMessage });
|
|
338
492
|
}
|
|
339
|
-
|
|
493
|
+
if (isNearBottom()) {
|
|
494
|
+
scrollToBottom();
|
|
495
|
+
}
|
|
496
|
+
else if ((!parentMessageId && !(newMessage.parentMessageId)) || (parentMessageId && newMessage.parentMessageId == parseInt(parentMessageId))) {
|
|
497
|
+
setUnreadCount(unreadCount + 1);
|
|
498
|
+
}
|
|
340
499
|
}
|
|
341
500
|
else {
|
|
342
501
|
scrollToBottom();
|
|
@@ -348,16 +507,36 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
348
507
|
}
|
|
349
508
|
playNotificationSound(newMessage);
|
|
350
509
|
};
|
|
510
|
+
const markParentMessageAsRead = (message) => {
|
|
511
|
+
let condition;
|
|
512
|
+
condition = (msg) => msg.getId() == message?.['parentMessageId'];
|
|
513
|
+
let msgIndex = messagesList.findIndex(condition);
|
|
514
|
+
if (msgIndex > -1) {
|
|
515
|
+
let tmpList = [...messagesList];
|
|
516
|
+
if (message.getCategory() === MessageCategoryConstants.interactive) {
|
|
517
|
+
message = InteractiveMessageUtils.convertInteractiveMessage(message);
|
|
518
|
+
}
|
|
519
|
+
tmpList[msgIndex]?.setUnreadReplyCount(0);
|
|
520
|
+
messagesContentListRef.current = tmpList;
|
|
521
|
+
setMessagesList(tmpList);
|
|
522
|
+
}
|
|
523
|
+
};
|
|
351
524
|
const messageEdited = (editedMessage, withMuid = false) => {
|
|
352
525
|
let condition;
|
|
353
|
-
if (withMuid)
|
|
526
|
+
if (withMuid) {
|
|
354
527
|
condition = (msg) => msg['muid'] == editedMessage['muid'];
|
|
528
|
+
inProgressMessages.current = inProgressMessages.current.filter(item => item.muid !== editedMessage['muid']);
|
|
529
|
+
}
|
|
355
530
|
else
|
|
356
531
|
condition = (msg) => msg.getId() == editedMessage.getId();
|
|
357
532
|
let msgIndex = messagesList.findIndex(condition);
|
|
358
533
|
if (msgIndex > -1) {
|
|
359
534
|
let tmpList = [...messagesList];
|
|
360
|
-
|
|
535
|
+
if (editedMessage.getCategory() === MessageCategoryConstants.interactive) {
|
|
536
|
+
editedMessage = InteractiveMessageUtils.convertInteractiveMessage(editedMessage);
|
|
537
|
+
}
|
|
538
|
+
tmpList[msgIndex] = CommonUtils.clone(editedMessage);
|
|
539
|
+
messagesContentListRef.current = tmpList;
|
|
361
540
|
setMessagesList(tmpList);
|
|
362
541
|
}
|
|
363
542
|
};
|
|
@@ -367,12 +546,13 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
367
546
|
return;
|
|
368
547
|
let tmpList = [...messagesList];
|
|
369
548
|
tmpList.splice(msgIndex, 1);
|
|
549
|
+
messagesContentListRef.current = tmpList;
|
|
370
550
|
setMessagesList(tmpList);
|
|
371
551
|
};
|
|
372
552
|
const deleteMessage = (message) => {
|
|
373
553
|
CometChat.deleteMessage(message.getId().toString())
|
|
374
554
|
.then(res => {
|
|
375
|
-
|
|
555
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageDeleted, { message: res });
|
|
376
556
|
setShowMessageOptions([]);
|
|
377
557
|
})
|
|
378
558
|
.catch(rej => {
|
|
@@ -380,12 +560,6 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
380
560
|
onError && onError(rej);
|
|
381
561
|
});
|
|
382
562
|
};
|
|
383
|
-
const showTransientMessage = (transientMessage) => {
|
|
384
|
-
setliveReaction(true);
|
|
385
|
-
setTimeout(() => {
|
|
386
|
-
setliveReaction(false);
|
|
387
|
-
}, 1500);
|
|
388
|
-
};
|
|
389
563
|
const createActionMessage = () => { };
|
|
390
564
|
const updateMessageReceipt = (receipt) => {
|
|
391
565
|
let index = messagesList.findIndex((msg, index) => msg['id'] == receipt['messageId'] || msg['messageId'] == receipt['messageId']);
|
|
@@ -393,8 +567,11 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
393
567
|
return;
|
|
394
568
|
let tmpList = [...messagesList];
|
|
395
569
|
let tmpMsg = tmpList[index];
|
|
396
|
-
if (tmpMsg
|
|
570
|
+
if (tmpMsg?.getReceiverType() == ReceiverTypeConstants.group)
|
|
397
571
|
return;
|
|
572
|
+
if (tmpMsg.getCategory() === MessageCategoryConstants.interactive) {
|
|
573
|
+
tmpMsg = InteractiveMessageUtils.convertInteractiveMessage(tmpMsg);
|
|
574
|
+
}
|
|
398
575
|
if (receipt.hasOwnProperty('deliveredAt')) {
|
|
399
576
|
tmpMsg['deliveredAt'] = receipt['deliveredAt'];
|
|
400
577
|
}
|
|
@@ -402,54 +579,68 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
402
579
|
tmpMsg['readAt'] = receipt['readAt'];
|
|
403
580
|
}
|
|
404
581
|
tmpMsg['updatedAt'] = receipt['timestamp'];
|
|
582
|
+
messagesContentListRef.current = tmpList;
|
|
405
583
|
setMessagesList(tmpList);
|
|
406
584
|
};
|
|
407
585
|
const handlePannel = (item) => {
|
|
408
|
-
if (item.alignment === ViewAlignment.messageListBottom && item.
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
586
|
+
if (item.alignment === ViewAlignment.messageListBottom && CommonUtils.checkIdBelongsToThisComponent(item.id, user, group, parentMessageId)) {
|
|
587
|
+
if (item.child)
|
|
588
|
+
setCustomListHeader(() => item.child);
|
|
589
|
+
else
|
|
590
|
+
setCustomListHeader(null);
|
|
591
|
+
}
|
|
412
592
|
};
|
|
413
593
|
useEffect(() => {
|
|
414
594
|
CometChatUIEventHandler.addUIListener(uiEventListenerShow, {
|
|
415
|
-
showPanel: (item) => handlePannel(item)
|
|
595
|
+
showPanel: (item) => handlePannel(item),
|
|
596
|
+
// ccMentionClick: (item) => {
|
|
597
|
+
// // console.log("item", item)
|
|
598
|
+
// }
|
|
416
599
|
});
|
|
417
600
|
CometChatUIEventHandler.addUIListener(uiEventListenerHide, {
|
|
418
601
|
hidePanel: (item) => handlePannel(item)
|
|
419
602
|
});
|
|
603
|
+
CometChatUIEventHandler.addUIListener(uiEventListener, {
|
|
604
|
+
ccToggleBottomSheet: (item) => {
|
|
605
|
+
bottomSheetRef.current?.togglePanel();
|
|
606
|
+
},
|
|
607
|
+
});
|
|
608
|
+
CometChatUIEventHandler.addCallListener(callEventListener, {
|
|
609
|
+
ccShowOngoingCall: (CometChatOngoingComponent) => {
|
|
610
|
+
//show ongoing call
|
|
611
|
+
setOngoingCallView(CometChatOngoingComponent?.child);
|
|
612
|
+
},
|
|
613
|
+
});
|
|
614
|
+
CometChat.getLoggedinUser()
|
|
615
|
+
.then(u => {
|
|
616
|
+
loggedInUser.current = u;
|
|
617
|
+
messageRequest.current = msgRequestBuilder.current.build();
|
|
618
|
+
getPreviousMessages();
|
|
619
|
+
loadTemplates();
|
|
620
|
+
})
|
|
621
|
+
.catch(e => {
|
|
622
|
+
console.log("Error while getting loggedInUser");
|
|
623
|
+
onError && onError(e);
|
|
624
|
+
loggedInUser.current = null;
|
|
625
|
+
});
|
|
420
626
|
return () => {
|
|
421
627
|
CometChatUIEventHandler.removeUIListener(uiEventListenerShow);
|
|
422
628
|
CometChatUIEventHandler.removeUIListener(uiEventListenerHide);
|
|
629
|
+
CometChatUIEventHandler.removeUIListener(uiEventListener);
|
|
630
|
+
CometChatUIEventHandler.removeCallListener(callEventListener);
|
|
631
|
+
onBack && onBack();
|
|
423
632
|
};
|
|
424
633
|
}, []);
|
|
425
634
|
useEffect(() => {
|
|
426
635
|
//add listeners
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
},
|
|
431
|
-
onMediaMessageReceived: (mediaMessage) => {
|
|
432
|
-
newMessage(mediaMessage);
|
|
636
|
+
let reactionListeners = disableReactions ? {} : {
|
|
637
|
+
onMessageReactionAdded: (reaction) => {
|
|
638
|
+
updateMessageReaction(reaction, true);
|
|
433
639
|
},
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
},
|
|
437
|
-
onMessagesDelivered: (messageReceipt) => {
|
|
438
|
-
updateMessageReceipt(messageReceipt);
|
|
439
|
-
},
|
|
440
|
-
onMessagesRead: (messageReceipt) => {
|
|
441
|
-
updateMessageReceipt(messageReceipt);
|
|
442
|
-
},
|
|
443
|
-
onMessageDeleted: (deletedMessage) => {
|
|
444
|
-
messageEdited(deletedMessage);
|
|
445
|
-
},
|
|
446
|
-
onMessageEdited: (editedMessage) => {
|
|
447
|
-
messageEdited(editedMessage);
|
|
448
|
-
},
|
|
449
|
-
onTransientMessageReceived: (transientMessage) => {
|
|
450
|
-
showTransientMessage(transientMessage);
|
|
640
|
+
onMessageReactionRemoved: (reaction) => {
|
|
641
|
+
updateMessageReaction(reaction, false);
|
|
451
642
|
}
|
|
452
|
-
}
|
|
643
|
+
};
|
|
453
644
|
CometChat.addGroupListener(groupListenerId, new CometChat.GroupListener({
|
|
454
645
|
onGroupMemberScopeChanged: (message) => {
|
|
455
646
|
newMessage(message);
|
|
@@ -480,6 +671,9 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
480
671
|
if (status == MessageStatusConstants.success) {
|
|
481
672
|
messageEdited(message, true);
|
|
482
673
|
}
|
|
674
|
+
if (status == MessageStatusConstants.error) {
|
|
675
|
+
messageEdited(message, true);
|
|
676
|
+
}
|
|
483
677
|
},
|
|
484
678
|
ccMessageEdited: ({ message, status }) => {
|
|
485
679
|
if (status == messageStatus.success)
|
|
@@ -488,6 +682,62 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
488
682
|
ccMessageDeleted: ({ message }) => {
|
|
489
683
|
messageEdited(message, false);
|
|
490
684
|
},
|
|
685
|
+
ccMessageRead: ({ message }) => {
|
|
686
|
+
if (!parentMessageId && message.parentMessageId) {
|
|
687
|
+
// markParentMessageAsRead(message); //NOTE: uncomment this when want unread count in thread view
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
onTextMessageReceived: (textMessage) => {
|
|
691
|
+
newMessage(textMessage);
|
|
692
|
+
},
|
|
693
|
+
onMediaMessageReceived: (mediaMessage) => {
|
|
694
|
+
newMessage(mediaMessage);
|
|
695
|
+
},
|
|
696
|
+
onCustomMessageReceived: (customMessage) => {
|
|
697
|
+
newMessage(customMessage);
|
|
698
|
+
},
|
|
699
|
+
onMessagesDelivered: (messageReceipt) => {
|
|
700
|
+
updateMessageReceipt(messageReceipt);
|
|
701
|
+
},
|
|
702
|
+
onMessagesRead: (messageReceipt) => {
|
|
703
|
+
updateMessageReceipt(messageReceipt);
|
|
704
|
+
},
|
|
705
|
+
onMessageDeleted: (deletedMessage) => {
|
|
706
|
+
messageEdited(deletedMessage);
|
|
707
|
+
},
|
|
708
|
+
onMessageEdited: (editedMessage) => {
|
|
709
|
+
messageEdited(editedMessage);
|
|
710
|
+
},
|
|
711
|
+
onFormMessageReceived: (formMessage) => {
|
|
712
|
+
newMessage(formMessage);
|
|
713
|
+
},
|
|
714
|
+
onCardMessageReceived: (cardMessage) => {
|
|
715
|
+
newMessage(cardMessage);
|
|
716
|
+
},
|
|
717
|
+
onSchedulerMessageReceived: (schedulerMessage) => {
|
|
718
|
+
newMessage(schedulerMessage);
|
|
719
|
+
},
|
|
720
|
+
onCustomInteractiveMessageReceived: (customInteractiveMessage) => {
|
|
721
|
+
newMessage(customInteractiveMessage);
|
|
722
|
+
},
|
|
723
|
+
onInteractionGoalCompleted: (interactionReceipt) => {
|
|
724
|
+
if (loggedInUser?.current?.['uid'] === interactionReceipt?.getSender()?.getUid()) {
|
|
725
|
+
// && String(message?.getId()) == String(interactionReceipt.getMessageId())
|
|
726
|
+
let msgIndex = messagesList.findIndex(item => {
|
|
727
|
+
console.log("getId", item.getId(), interactionReceipt.getMessageId());
|
|
728
|
+
return item.getId() == interactionReceipt.getMessageId();
|
|
729
|
+
});
|
|
730
|
+
console.log("msgIndex", msgIndex);
|
|
731
|
+
if (msgIndex === -1)
|
|
732
|
+
return;
|
|
733
|
+
const interaction = interactionReceipt.getInteractions() || [];
|
|
734
|
+
let editedMessage = messagesList[msgIndex];
|
|
735
|
+
editedMessage = InteractiveMessageUtils.convertInteractiveMessage(editedMessage);
|
|
736
|
+
editedMessage.setInteractions(interaction);
|
|
737
|
+
messageEdited(editedMessage);
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
...reactionListeners
|
|
491
741
|
});
|
|
492
742
|
CometChatUIEventHandler.addGroupListener(uiEventListener, {
|
|
493
743
|
ccGroupMemberUnBanned: ({ message }) => {
|
|
@@ -565,6 +815,17 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
565
815
|
},
|
|
566
816
|
onDisconnected: () => {
|
|
567
817
|
console.log("ConnectionListener => On Disconnected");
|
|
818
|
+
if (!messagesList[messagesList.length - 1].id) {
|
|
819
|
+
for (let i = (messagesList.length - 1); i >= 0; i--) {
|
|
820
|
+
if (messagesList[i].id) {
|
|
821
|
+
lastID.current = messagesList[i].id;
|
|
822
|
+
break;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
else {
|
|
827
|
+
lastID.current = messagesList[messagesList.length - 1].id;
|
|
828
|
+
}
|
|
568
829
|
}
|
|
569
830
|
}));
|
|
570
831
|
return () => {
|
|
@@ -573,37 +834,19 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
573
834
|
CometChatUIEventHandler.removeGroupListener(uiEventListener);
|
|
574
835
|
CometChatUIEventHandler.removeCallListener(uiEventListener);
|
|
575
836
|
CometChat.removeGroupListener(groupListenerId);
|
|
576
|
-
CometChat.removeMessageListener(messageListenerId);
|
|
577
837
|
CometChat.removeCallListener(callListenerId);
|
|
578
838
|
CometChat.removeConnectionListener(connectionListenerId);
|
|
579
839
|
};
|
|
580
840
|
}, [messagesList, unreadCount, user, group]);
|
|
581
841
|
useEffect(() => {
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
},
|
|
586
|
-
});
|
|
587
|
-
return () => CometChatUIEventHandler.removeUIListener(uiEventListener);
|
|
588
|
-
}, []);
|
|
589
|
-
// effects
|
|
842
|
+
prevMessagesLength.current = messagesLength.current || messagesContentListRef.current.length;
|
|
843
|
+
messagesLength.current = messagesContentListRef.current.length;
|
|
844
|
+
}, [messagesContentListRef.current]);
|
|
590
845
|
useEffect(() => {
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
getPreviousMessages();
|
|
596
|
-
loadTemplates();
|
|
597
|
-
})
|
|
598
|
-
.catch(e => {
|
|
599
|
-
console.log("Error while getting loggedInUser");
|
|
600
|
-
onError && onError(e);
|
|
601
|
-
loggedInUser.current = null;
|
|
602
|
-
});
|
|
603
|
-
return () => {
|
|
604
|
-
onBack && onBack();
|
|
605
|
-
};
|
|
606
|
-
}, []);
|
|
846
|
+
if (selectedEmoji) {
|
|
847
|
+
setShowReactionList(true);
|
|
848
|
+
}
|
|
849
|
+
}, [selectedEmoji]);
|
|
607
850
|
useImperativeHandle(ref, () => {
|
|
608
851
|
return {
|
|
609
852
|
addMessage: newMessage,
|
|
@@ -616,34 +859,91 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
616
859
|
updateMessageReceipt,
|
|
617
860
|
};
|
|
618
861
|
});
|
|
862
|
+
const getMessageById = (messageId) => {
|
|
863
|
+
const message = messagesList.find((message) => message.getId() === messageId);
|
|
864
|
+
return message;
|
|
865
|
+
};
|
|
866
|
+
function isReactionOfThisList(receipt) {
|
|
867
|
+
const receiverId = receipt?.getReceiverId();
|
|
868
|
+
const receiverType = receipt?.getReceiverType();
|
|
869
|
+
const reactedById = receipt?.getReaction()?.getReactedBy()?.getUid();
|
|
870
|
+
const parentMessageId = receipt?.getParentMessageId();
|
|
871
|
+
const listParentMessageId = parentMessageId && String(parentMessageId);
|
|
872
|
+
if (listParentMessageId) {
|
|
873
|
+
if (parentMessageId === listParentMessageId) {
|
|
874
|
+
return true;
|
|
875
|
+
}
|
|
876
|
+
else {
|
|
877
|
+
return false;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
else {
|
|
881
|
+
if (receipt.getParentMessageId()) {
|
|
882
|
+
return false;
|
|
883
|
+
}
|
|
884
|
+
if (user) {
|
|
885
|
+
if (receiverType === ReceiverTypeConstants.user && (receiverId === user.getUid() || reactedById === user.getUid())) {
|
|
886
|
+
return true;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
else if (group) {
|
|
890
|
+
if (receiverType === ReceiverTypeConstants.group && (receiverId === group.getGuid())) {
|
|
891
|
+
return true;
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
return false;
|
|
896
|
+
}
|
|
897
|
+
const updateMessageReaction = (message, isAdded) => {
|
|
898
|
+
let _isReactionOfThisList = isReactionOfThisList(message);
|
|
899
|
+
if (!_isReactionOfThisList)
|
|
900
|
+
return;
|
|
901
|
+
const messageId = message?.getReaction()?.getMessageId();
|
|
902
|
+
const messageObject = getMessageById(messageId);
|
|
903
|
+
if (!messageObject)
|
|
904
|
+
return;
|
|
905
|
+
let action;
|
|
906
|
+
if (isAdded) {
|
|
907
|
+
action = CometChat.REACTION_ACTION.REACTION_ADDED;
|
|
908
|
+
}
|
|
909
|
+
else {
|
|
910
|
+
action = CometChat.REACTION_ACTION.REACTION_REMOVED;
|
|
911
|
+
}
|
|
912
|
+
const modifiedMessage = CometChat.CometChatHelper.updateMessageWithReactionInfo(messageObject, message.getReaction(), action);
|
|
913
|
+
if (modifiedMessage instanceof CometChat.CometChatException) {
|
|
914
|
+
onError && onError(modifiedMessage);
|
|
915
|
+
return;
|
|
916
|
+
}
|
|
917
|
+
messageEdited(modifiedMessage, false);
|
|
918
|
+
};
|
|
619
919
|
// functions returning view
|
|
620
|
-
const getLeadingView = (item) => {
|
|
621
|
-
if (showAvatar && (item.getSender()?.getUid() || item['sender']['uid']) !== loggedInUser.current['uid'] && item['category'] != MessageCategoryConstants.action) {
|
|
622
|
-
return <CometChatAvatar image={item
|
|
920
|
+
const getLeadingView = useCallback((item) => {
|
|
921
|
+
if (showAvatar && (alignment === "leftAligned" || (item.getSender()?.getUid() || item?.['sender']?.['uid']) !== loggedInUser.current['uid'] && item['category'] != MessageCategoryConstants.action)) {
|
|
922
|
+
return <CometChatAvatar image={(item?.getSender()?.getAvatar && item?.getSender()?.getAvatar()) ? { uri: item.getSender().getAvatar() } : undefined} name={(item?.getSender()?.getName && item?.getSender()?.getName()) ? item?.getSender()?.getName() : ""} style={_avatarStyle}/>;
|
|
623
923
|
}
|
|
624
924
|
return null;
|
|
625
|
-
};
|
|
626
|
-
const getHeaderView = (item) => {
|
|
925
|
+
}, []);
|
|
926
|
+
const getHeaderView = useCallback((item) => {
|
|
627
927
|
let senderName = "";
|
|
628
|
-
if ((item.getSender()?.getUid() || item['sender']['uid']) != loggedInUser.current['uid'])
|
|
629
|
-
senderName = item.getSender().getName();
|
|
928
|
+
if (alignment === "leftAligned" || ((item.getSender()?.getUid() || item?.['sender']?.['uid']) != loggedInUser.current['uid']))
|
|
929
|
+
senderName = item.getSender()?.getName ? item.getSender()?.getName() : "";
|
|
630
930
|
if (item.getCategory() == MessageCategoryConstants.action || item.getCategory() == MessageCategoryConstants.call)
|
|
631
931
|
return null;
|
|
632
932
|
return (<View style={{ flexDirection: "row" }}>
|
|
633
|
-
<Text style={[Style.nameStyle, {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
933
|
+
{Boolean(senderName) && <Text style={[Style.nameStyle, {
|
|
934
|
+
color: _messageListStyle.nameTextColor,
|
|
935
|
+
..._messageListStyle.nameTextFont,
|
|
936
|
+
}]}>{senderName}</Text>}
|
|
637
937
|
{timeStampAlignment == "bottom" || item['category'] == "action" ?
|
|
638
938
|
null :
|
|
639
|
-
<CometChatDate timeStamp={((item.getDeletedAt() || item.getReadAt() || item.getDeliveredAt() || item.getSentAt()) * 1000) || getSentAtTimestamp(item)} style={messageBubbleDateStyle} pattern={"timeFormat"} customDateString={datePattern && datePattern(item)}/>}
|
|
939
|
+
<CometChatDate timeStamp={((item.getDeletedAt() || item.getReadAt() || item.getDeliveredAt() || item.getSentAt()) * 1000) || getSentAtTimestamp(item)} style={messageBubbleDateStyle} pattern={"timeFormat"} customDateString={datePattern && datePattern(item)} dateAlignment="center"/>}
|
|
640
940
|
</View>);
|
|
641
|
-
};
|
|
642
|
-
const
|
|
941
|
+
}, []);
|
|
942
|
+
const getStatusInfoView = useCallback((item, bubbleAlignment) => {
|
|
643
943
|
// return null if time alignment is top
|
|
644
|
-
if (timeStampAlignment == "top" || item['category'] == "action")
|
|
944
|
+
if (timeStampAlignment == "top" || item['category'] == "action" || item['deletedAt'])
|
|
645
945
|
return null;
|
|
646
|
-
let isSender = (item.getSender()?.getUid() || item['sender']['uid']) == loggedInUser.current['uid'];
|
|
946
|
+
let isSender = (item.getSender()?.getUid() || item?.['sender']?.['uid']) == loggedInUser.current['uid'];
|
|
647
947
|
let messageState;
|
|
648
948
|
if (item.getReadAt())
|
|
649
949
|
messageState = "READ";
|
|
@@ -651,24 +951,53 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
651
951
|
messageState = "DELIVERED";
|
|
652
952
|
else if (item.getSentAt())
|
|
653
953
|
messageState = "SENT";
|
|
954
|
+
else if (item?.data?.metaData?.error)
|
|
955
|
+
messageState = "ERROR";
|
|
654
956
|
else if (isSender)
|
|
655
957
|
messageState = "WAIT";
|
|
656
958
|
else
|
|
657
959
|
messageState = "ERROR";
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
960
|
+
let isAudioVideo = (item?.getType() === "image" || item?.getType() === "video");
|
|
961
|
+
return <View style={[
|
|
962
|
+
isAudioVideo ? {
|
|
963
|
+
flexDirection: "row", justifyContent: bubbleAlignment === "right" ? "flex-end" : "flex-start", alignSelf: "flex-end", paddingVertical: 2, paddingHorizontal: 5,
|
|
964
|
+
position: "absolute", borderRadius: 10, backgroundColor: theme.palette.getAccent500("dark"), zIndex: 1, bottom: 5, right: 5,
|
|
965
|
+
}
|
|
966
|
+
:
|
|
967
|
+
{ flexDirection: "row", justifyContent: bubbleAlignment === "right" ? "flex-end" : "flex-start", alignSelf: "flex-end", padding: 5 }
|
|
968
|
+
]}>
|
|
969
|
+
<CometChatDate timeStamp={((item.getDeletedAt() || item.getReadAt() || item.getDeliveredAt() || item.getSentAt()) * 1000) || getSentAtTimestamp(item)} style={{ ...messageBubbleDateStyle, textFont: isAudioVideo ? theme.typography.caption3 : messageBubbleDateStyle.textFont }} pattern={"timeFormat"} customDateString={datePattern && datePattern(item)} dateAlignment="center"/>
|
|
970
|
+
{(!disableReceipt && alignment !== "leftAligned") && isSender ?
|
|
971
|
+
<View style={{ marginLeft: 2, alignItems: "center", justifyContent: "center" }}>
|
|
972
|
+
<CometChatReceipt receipt={messageState} deliveredIcon={deliveredIcon} readIcon={readIcon} sentIcon={sentIcon} waitIcon={waitIcon} errorIcon={errorIcon} style={{
|
|
973
|
+
height: isAudioVideo && 8, width: isAudioVideo && 10,
|
|
974
|
+
tintColor: (messageState === "READ" && item?.getType() === "text") ? theme.palette.getBackgroundColor() :
|
|
975
|
+
messageState === "WAIT" ? theme?.palette?.getAccent400() : undefined
|
|
976
|
+
}}/>
|
|
977
|
+
</View>
|
|
978
|
+
:
|
|
979
|
+
null}
|
|
663
980
|
</View>;
|
|
981
|
+
}, []);
|
|
982
|
+
const getFooterView = useCallback((messageObject, alignment) => {
|
|
983
|
+
let hasReaction = messageObject?.getReactions && messageObject?.getReactions() && messageObject?.getReactions().length > 0;
|
|
984
|
+
return (<View style={{
|
|
985
|
+
minHeight: hasReaction ? 27 : 0,
|
|
986
|
+
}}>
|
|
987
|
+
<CometChatReactions messageObject={messageObject} onReactionPress={(reaction, messageObject) => reactToMessage(reaction.getReaction(), messageObject)} onReactionLongPress={(reaction, messageObject) => onReactionLongPress(reaction.getReaction(), messageObject)} alignment={alignment} {...reactionsConfiguration}/>
|
|
988
|
+
</View>);
|
|
989
|
+
}, []);
|
|
990
|
+
const onReactionLongPress = (emoji, messageObj) => {
|
|
991
|
+
setSelectedMessage(messageObj);
|
|
992
|
+
setSelectedEmoji(emoji);
|
|
664
993
|
};
|
|
665
|
-
const getAlignment = (item) => {
|
|
994
|
+
const getAlignment = useCallback((item) => {
|
|
666
995
|
if (item && item.getCategory() == MessageCategoryConstants.action)
|
|
667
996
|
return "center";
|
|
668
|
-
if (alignment == "standard" && (item.getSender()?.getUid() || item['sender']['uid']) == loggedInUser.current['uid'])
|
|
997
|
+
if (alignment == "standard" && (item.getSender()?.getUid() || item?.['sender']?.['uid']) == loggedInUser.current['uid'])
|
|
669
998
|
return "right";
|
|
670
999
|
return "left";
|
|
671
|
-
};
|
|
1000
|
+
}, []);
|
|
672
1001
|
const openMessageInfo = (message) => {
|
|
673
1002
|
infoObject.current = message;
|
|
674
1003
|
setMessageInfo(true);
|
|
@@ -686,23 +1015,64 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
686
1015
|
setShowMessageOptions([]);
|
|
687
1016
|
};
|
|
688
1017
|
const copyMessage = (item) => {
|
|
689
|
-
|
|
1018
|
+
let copyMessage = getPlainString(item['text'], item);
|
|
1019
|
+
Clipboard.setString(copyMessage);
|
|
690
1020
|
setShowMessageOptions([]);
|
|
691
1021
|
};
|
|
692
|
-
const getThreadView = (item) => {
|
|
1022
|
+
const getThreadView = useCallback((item, alignment) => {
|
|
693
1023
|
let isThreaded = item.getReplyCount() > 0;
|
|
694
|
-
let style = {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
1024
|
+
let style = [{
|
|
1025
|
+
color: theme?.palette.getAccent900(),
|
|
1026
|
+
marginRight: alignment === "right" ? 3 : 0,
|
|
1027
|
+
marginLeft: alignment === "left" ? 3 : 0
|
|
1028
|
+
}, theme?.typography?.subtitle1];
|
|
1029
|
+
// let unreadReplyCount = item?.getUnreadReplyCount && item?.getUnreadReplyCount();
|
|
700
1030
|
return !isThreaded ? null :
|
|
701
|
-
<TouchableOpacity onPress={() => openThreadView(item, null)} style={{
|
|
702
|
-
|
|
703
|
-
|
|
1031
|
+
<TouchableOpacity onPress={() => openThreadView(item, null)} style={{
|
|
1032
|
+
flexDirection: "row",
|
|
1033
|
+
marginRight: 4,
|
|
1034
|
+
paddingHorizontal: 4,
|
|
1035
|
+
marginTop: 2,
|
|
1036
|
+
alignSelf: alignment === "right" ? "flex-end" : "flex-start",
|
|
1037
|
+
}}>
|
|
1038
|
+
{alignment === "left" && <Image style={{ resizeMode: "contain", tintColor: theme?.palette.getAccent600() }} source={LeftArrowCurve}/>}
|
|
1039
|
+
<Text style={style}>{`${item.getReplyCount()} ${item.getReplyCount() > 1 ? localize("REPLIES") : localize("REPLY")}`}</Text>
|
|
1040
|
+
|
|
1041
|
+
{/** NOTE: uncomment below code when want unread count in thread view **/}
|
|
1042
|
+
{/* {alignment === "left" && !!unreadReplyCount &&
|
|
1043
|
+
<View style={{
|
|
1044
|
+
borderRadius: 10, marginLeft: 3,
|
|
1045
|
+
paddingHorizontal: 7,
|
|
1046
|
+
alignment: "center", justifyContent: "center",
|
|
1047
|
+
backgroundColor: theme?.palette?.getPrimary()
|
|
1048
|
+
}}>
|
|
1049
|
+
<Text style={[theme?.typography?.subtitle4,
|
|
1050
|
+
{
|
|
1051
|
+
color: theme?.palette?.getBackgroundColor(),
|
|
1052
|
+
textAlign: "center"
|
|
1053
|
+
}]}
|
|
1054
|
+
>{unreadReplyCount}</Text>
|
|
1055
|
+
</View>
|
|
1056
|
+
} */}
|
|
1057
|
+
{/* {alignment === "right" && !!unreadReplyCount &&
|
|
1058
|
+
<View style={{
|
|
1059
|
+
borderRadius: 10, marginRight: 3, paddingVertical: 2, paddingHorizontal: 6,
|
|
1060
|
+
backgroundColor: theme?.palette?.getPrimary()
|
|
1061
|
+
}}>
|
|
1062
|
+
<Text style={[theme?.typography?.subtitle4,
|
|
1063
|
+
{ color: theme?.palette?.getBackgroundColor() }]}
|
|
1064
|
+
>{unreadReplyCount}</Text>
|
|
1065
|
+
</View>
|
|
1066
|
+
} */}
|
|
1067
|
+
{/** NOTE: uncomment above code when want unread count in thread view **/}
|
|
1068
|
+
|
|
1069
|
+
{alignment === "right" && <Image style={[{ resizeMode: "contain", tintColor: theme?.palette.getAccent600() },
|
|
1070
|
+
{
|
|
1071
|
+
transform: [{ scaleX: -1 }]
|
|
1072
|
+
}
|
|
1073
|
+
]} source={LeftArrowCurve}/>}
|
|
704
1074
|
</TouchableOpacity>;
|
|
705
|
-
};
|
|
1075
|
+
}, []);
|
|
706
1076
|
const privateMessage = (item) => {
|
|
707
1077
|
setShowMessageOptions([]);
|
|
708
1078
|
CometChat.getUser(item.getSender().getUid())
|
|
@@ -715,7 +1085,8 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
715
1085
|
});
|
|
716
1086
|
};
|
|
717
1087
|
const shareMedia = async (messageObject) => {
|
|
718
|
-
let
|
|
1088
|
+
let _plainString = getPlainString(messageObject?.data?.text || "", messageObject);
|
|
1089
|
+
let textMessage = _plainString;
|
|
719
1090
|
let fileUrl = messageObject.data.url;
|
|
720
1091
|
const getFileName = () => {
|
|
721
1092
|
if (!fileUrl)
|
|
@@ -725,23 +1096,31 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
725
1096
|
let shareObj = {
|
|
726
1097
|
"message": textMessage,
|
|
727
1098
|
"type": messageObject["type"],
|
|
728
|
-
"mediaName": getFileName(),
|
|
729
|
-
"fileUrl": fileUrl || "",
|
|
1099
|
+
"mediaName": getFileName(), // get File name
|
|
1100
|
+
"fileUrl": fileUrl || "", // get File url
|
|
730
1101
|
"mimeType": messageObject["type"] === "text" ? "" : messageObject?.getAttachment()?.getMimeType(), // get Mime Type
|
|
731
1102
|
};
|
|
732
1103
|
NativeModules.FileManager.shareMessage(shareObj, (callback) => {
|
|
733
1104
|
console.log("shareMessage Callback", callback);
|
|
734
1105
|
});
|
|
735
1106
|
};
|
|
736
|
-
const getStyle = (item) => {
|
|
1107
|
+
const getStyle = useCallback((item) => {
|
|
737
1108
|
let _style = new BaseStyle({
|
|
738
1109
|
..._messageBubbleStyle,
|
|
739
1110
|
backgroundColor: theme?.palette.getAccent50()
|
|
740
1111
|
});
|
|
741
|
-
if (
|
|
742
|
-
|
|
1112
|
+
if (item.getCategory() == MessageCategoryConstants.interactive) {
|
|
1113
|
+
if (item.getType() === MessageTypeConstants.form || item.getType() === MessageTypeConstants.card) {
|
|
1114
|
+
_style.width = "100%";
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
if ((item.getSender()?.getUid() || item?.['sender']?.['uid']) == loggedInUser.current?.['uid'])
|
|
1118
|
+
_style.backgroundColor = (alignment !== "leftAligned" && (item.getType() === MessageTypeConstants.text || item.getType() === MessageTypeConstants.meeting)) ? theme?.palette.getPrimary() : theme?.palette.getAccent50();
|
|
1119
|
+
if (item?.getDeletedBy()) {
|
|
1120
|
+
_style.backgroundColor = 'transparent';
|
|
1121
|
+
}
|
|
743
1122
|
return _style;
|
|
744
|
-
};
|
|
1123
|
+
}, []);
|
|
745
1124
|
// const clearForwarding = () => {
|
|
746
1125
|
// messageToForward.current = null;
|
|
747
1126
|
// setForwarding(false);
|
|
@@ -767,7 +1146,7 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
767
1146
|
// textMessage.setMuid(`${getUnixTimestamp()}`);
|
|
768
1147
|
// textMessage['_composedAt'] = getUnixTimestamp();
|
|
769
1148
|
// textMessage.setReceiverType(receiverType);
|
|
770
|
-
// CometChatUIKit.sendTextMessage(textMessage
|
|
1149
|
+
// CometChatUIKit.sendTextMessage(textMessage).then(resolve).catch(reject)
|
|
771
1150
|
// break;
|
|
772
1151
|
// case MessageTypeConstants.image:
|
|
773
1152
|
// case MessageTypeConstants.video:
|
|
@@ -787,7 +1166,7 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
787
1166
|
// mediaMessage.setType(messageToForward.current.getType());
|
|
788
1167
|
// mediaMessage['_id'] = '_' + Math.random().toString(36).substr(2, 9);
|
|
789
1168
|
// mediaMessage.setData(messageToForward.current['data']);
|
|
790
|
-
// CometChatUIKit.sendMediaMessage(mediaMessage
|
|
1169
|
+
// CometChatUIKit.sendMediaMessage(mediaMessage).then(resolve).catch(reject);
|
|
791
1170
|
// break;
|
|
792
1171
|
// default:
|
|
793
1172
|
// break;
|
|
@@ -814,7 +1193,7 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
814
1193
|
// CometChatUIEventHandler.emitMessageEvent('ccMessageForwarded',{users, groups, status: messageStatus.success});
|
|
815
1194
|
// });
|
|
816
1195
|
// }
|
|
817
|
-
const openOptionsForMessage = (item, template) => {
|
|
1196
|
+
const openOptionsForMessage = useCallback((item, template) => {
|
|
818
1197
|
let options = template?.options ? template.options(loggedInUser.current, item, group) : [];
|
|
819
1198
|
let optionsWithPressHandling = options.map(option => {
|
|
820
1199
|
if (!option.onPress)
|
|
@@ -855,8 +1234,8 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
855
1234
|
return option;
|
|
856
1235
|
});
|
|
857
1236
|
setShowMessageOptions(optionsWithPressHandling);
|
|
858
|
-
};
|
|
859
|
-
const MessageView = (params) => {
|
|
1237
|
+
}, []);
|
|
1238
|
+
const MessageView = useCallback((params) => {
|
|
860
1239
|
const { message, showOptions = true, isThreaded = false } = params;
|
|
861
1240
|
let hasTemplate = templatesMap.get(`${message.getCategory()}_${message.getType()}`);
|
|
862
1241
|
if (templates?.length > 0) {
|
|
@@ -868,57 +1247,129 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
868
1247
|
if (hasTemplate.BubbleView)
|
|
869
1248
|
return hasTemplate.BubbleView(message);
|
|
870
1249
|
let bubbleAlignment = getAlignment(message);
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
1250
|
+
const onLongPress = () => {
|
|
1251
|
+
if (message.getDeletedBy() != null)
|
|
1252
|
+
return;
|
|
1253
|
+
setSelectedMessage(message);
|
|
1254
|
+
openOptionsForMessage(message, hasTemplate);
|
|
1255
|
+
};
|
|
1256
|
+
return <TouchableOpacity activeOpacity={1} onLongPress={() => showOptions ? onLongPress() : undefined}>
|
|
1257
|
+
<CometChatMessageBubble id={`${message.getId()}`} LeadingView={() => !isThreaded && getLeadingView(message)} HeaderView={hasTemplate.HeaderView ? hasTemplate.HeaderView?.bind(this, message, bubbleAlignment) : () => !isThreaded && getHeaderView(message)} FooterView={hasTemplate.FooterView ? hasTemplate.FooterView?.bind(this, message, bubbleAlignment) : () => (disableReactions || isThreaded) ? null : getFooterView(message, bubbleAlignment)} alignment={isThreaded ? "left" : bubbleAlignment} ContentView={hasTemplate.ContentView?.bind(this, message, bubbleAlignment)} ThreadView={() => !isThreaded && !message.getDeletedBy() && getThreadView(message, bubbleAlignment)} BottomView={() => ChatConfigurator.dataSource.getBottomView(message, bubbleAlignment)} // Note please rewrite this
|
|
1258
|
+
StatusInfoView={() => getStatusInfoView(message, bubbleAlignment)} style={getStyle(message)}/>
|
|
1259
|
+
</TouchableOpacity>;
|
|
877
1260
|
}
|
|
878
1261
|
else {
|
|
879
1262
|
return null;
|
|
880
1263
|
}
|
|
881
|
-
};
|
|
882
|
-
const getSentAtTimestamp = (item) => {
|
|
1264
|
+
}, []);
|
|
1265
|
+
const getSentAtTimestamp = useCallback((item) => {
|
|
883
1266
|
if (!item['sentAt']) {
|
|
884
1267
|
return item['_composedAt'];
|
|
885
1268
|
}
|
|
886
1269
|
return item['sentAt'] * 1000;
|
|
1270
|
+
}, []);
|
|
1271
|
+
const reactToMessage = (emoji, messageObj) => {
|
|
1272
|
+
const msgObj = CommonUtils.clone(messageObj) || CommonUtils.clone(selectedMessage);
|
|
1273
|
+
const messageId = msgObj?.getId();
|
|
1274
|
+
const reactions = msgObj?.getReactions() || [];
|
|
1275
|
+
const emojiObject = reactions?.find((reaction) => {
|
|
1276
|
+
return reaction?.reaction == emoji;
|
|
1277
|
+
});
|
|
1278
|
+
if (emojiObject && emojiObject?.getReactedByMe()) {
|
|
1279
|
+
const updatedReactions = [];
|
|
1280
|
+
reactions.forEach((reaction) => {
|
|
1281
|
+
if (reaction?.getReaction() == emoji) {
|
|
1282
|
+
if (reaction?.getCount() === 1) {
|
|
1283
|
+
return;
|
|
1284
|
+
}
|
|
1285
|
+
else {
|
|
1286
|
+
reaction.setCount(reaction?.getCount() - 1);
|
|
1287
|
+
reaction.setReactedByMe(false);
|
|
1288
|
+
updatedReactions.push(reaction);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
else {
|
|
1292
|
+
updatedReactions.push(reaction);
|
|
1293
|
+
}
|
|
1294
|
+
});
|
|
1295
|
+
const newMessageObj = CommonUtils.clone(msgObj);
|
|
1296
|
+
newMessageObj.setReactions(updatedReactions);
|
|
1297
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, { message: newMessageObj, status: messageStatus.success });
|
|
1298
|
+
CometChat.removeReaction(messageId, emoji).then((message) => {
|
|
1299
|
+
}).catch((error) => {
|
|
1300
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, { message: msgObj, status: messageStatus.success });
|
|
1301
|
+
console.log(error);
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
else {
|
|
1305
|
+
const updatedReactions = [];
|
|
1306
|
+
const reactionAvailable = reactions.find((reaction) => {
|
|
1307
|
+
return reaction?.getReaction() == emoji;
|
|
1308
|
+
});
|
|
1309
|
+
reactions.forEach((reaction) => {
|
|
1310
|
+
if (reaction?.getReaction() == emoji) {
|
|
1311
|
+
reaction.setCount(reaction?.getCount() + 1);
|
|
1312
|
+
reaction.setReactedByMe(true);
|
|
1313
|
+
updatedReactions.push(reaction);
|
|
1314
|
+
}
|
|
1315
|
+
else {
|
|
1316
|
+
updatedReactions.push(reaction);
|
|
1317
|
+
}
|
|
1318
|
+
});
|
|
1319
|
+
if (!reactionAvailable) {
|
|
1320
|
+
const react = new CometChat.ReactionCount(emoji, 1, true);
|
|
1321
|
+
updatedReactions.push(react);
|
|
1322
|
+
}
|
|
1323
|
+
const newMessageObj = CommonUtils.clone(msgObj);
|
|
1324
|
+
newMessageObj.setReactions(updatedReactions);
|
|
1325
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, { message: newMessageObj, status: messageStatus.success });
|
|
1326
|
+
CometChat.addReaction(messageId, emoji)
|
|
1327
|
+
.then((response) => {
|
|
1328
|
+
})
|
|
1329
|
+
.catch((error) => {
|
|
1330
|
+
console.log(error);
|
|
1331
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, { message: msgObj, status: messageStatus.success });
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
setShowMessageOptions([]);
|
|
887
1335
|
};
|
|
888
|
-
const RenderMessageItem = ({ item, index })
|
|
1336
|
+
const RenderMessageItem = useCallback(memo(function RenderMessageItem({ item, index }) {
|
|
889
1337
|
let seperatorView = null;
|
|
890
|
-
const previousMessageDate =
|
|
1338
|
+
const previousMessageDate = messagesContentListRef.current[index - 1] ? new Date(getSentAtTimestamp(messagesContentListRef.current[index - 1])) : null;
|
|
891
1339
|
const currentMessageDate = new Date(getSentAtTimestamp(item));
|
|
892
1340
|
const currentDate = isNaN(currentMessageDate.getDate()) ? undefined : `${currentMessageDate.getDate()}-${currentMessageDate.getMonth()}-${currentMessageDate.getFullYear()}`;
|
|
893
1341
|
const previousDate = `${previousMessageDate?.getDate()}-${previousMessageDate?.getMonth()}-${previousMessageDate?.getFullYear()}`;
|
|
894
1342
|
if (currentDate != undefined && previousDate !== currentDate) {
|
|
895
1343
|
seperatorView = (<View style={{ marginBottom: 10 }}>
|
|
896
|
-
<CometChatDate timeStamp={getSentAtTimestamp(item)} pattern={"dayDateFormat"} style={_dateSeperatorStyle} customDateString={dateSeperatorPattern ? dateSeperatorPattern(item['sentAt']) : undefined}/>
|
|
1344
|
+
<CometChatDate timeStamp={getSentAtTimestamp(item)} pattern={"dayDateFormat"} style={_dateSeperatorStyle} customDateString={dateSeperatorPattern ? dateSeperatorPattern(item['sentAt']) : undefined} dateAlignment="center"/>
|
|
897
1345
|
</View>);
|
|
898
1346
|
}
|
|
899
1347
|
lastMessageDate.current = getSentAtTimestamp(item);
|
|
900
|
-
return
|
|
901
|
-
<MessageView message={item}/>
|
|
1348
|
+
return <React.Fragment key={index}>
|
|
902
1349
|
{seperatorView}
|
|
903
|
-
|
|
904
|
-
|
|
1350
|
+
<MessageView message={item}/>
|
|
1351
|
+
</React.Fragment>;
|
|
1352
|
+
}), []);
|
|
905
1353
|
const keyExtractor = useCallback((item) => `${item.id}_${item.muid}`, []);
|
|
906
1354
|
const itemSeperator = useCallback(() => <View style={{ height: 8 }}/>, []);
|
|
907
|
-
const getEmptyTextView = () => {
|
|
1355
|
+
const getEmptyTextView = useCallback(() => {
|
|
908
1356
|
if (EmptyStateView)
|
|
909
1357
|
return <EmptyStateView />;
|
|
910
|
-
return (
|
|
911
|
-
<
|
|
1358
|
+
return (<>
|
|
1359
|
+
<View style={Style.msgContainerStyle}>
|
|
1360
|
+
<Text style={[
|
|
912
1361
|
Style.msgTxtStyle, {
|
|
913
1362
|
...(messageListStyle?.emptyStateTextFont),
|
|
914
1363
|
color: messageListStyle?.emptyStateTextColor
|
|
915
1364
|
}
|
|
916
1365
|
]}>
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
1366
|
+
{emptyStateText}
|
|
1367
|
+
</Text>
|
|
1368
|
+
</View>
|
|
1369
|
+
{CustomListHeader && <CustomListHeader />}
|
|
1370
|
+
</>);
|
|
1371
|
+
}, []);
|
|
1372
|
+
const getErrorStateView = useCallback(() => {
|
|
922
1373
|
if (ErrorStateView)
|
|
923
1374
|
return ErrorStateView(new CometChat.CometChatException({ message: "Something went wrong" }));
|
|
924
1375
|
return (<View style={Style.msgContainerStyle}>
|
|
@@ -929,16 +1380,42 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
929
1380
|
{errorStateText}
|
|
930
1381
|
</Text>
|
|
931
1382
|
</View>);
|
|
932
|
-
};
|
|
933
|
-
const getLoadingStateView = () => {
|
|
1383
|
+
}, []);
|
|
1384
|
+
const getLoadingStateView = useCallback(() => {
|
|
934
1385
|
if (LoadingStateView)
|
|
935
1386
|
return LoadingStateView;
|
|
936
1387
|
return (<View style={Style.msgContainerStyle}>
|
|
937
1388
|
<ActivityIndicator size="large" color={messageListStyle?.loadingIconTint}/>
|
|
938
1389
|
</View>);
|
|
1390
|
+
}, []);
|
|
1391
|
+
const handleScroll = (event) => {
|
|
1392
|
+
if (event.nativeEvent.contentOffset.y == 0) {
|
|
1393
|
+
getPreviousMessages();
|
|
1394
|
+
}
|
|
1395
|
+
scrollHandler(event);
|
|
939
1396
|
};
|
|
1397
|
+
const onContentSizeChange = useCallback((contentWidth, contentHeight) => {
|
|
1398
|
+
if (currentScrollPosition.current.y == 0 && currentScrollPosition.current.scrollViewHeight) {
|
|
1399
|
+
let diff = contentHeight - currentScrollPosition.current.scrollViewHeight;
|
|
1400
|
+
if (messagesLength.current > prevMessagesLength.current && diff > 0 && !(unreadCount > 0)) {
|
|
1401
|
+
messageListRef.current.scrollTo({ y: diff, animated: false });
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
if (currentScrollPosition.current.scrollViewHeight) {
|
|
1405
|
+
if (!previousScrollPosition.current.scrollViewHeight) {
|
|
1406
|
+
previousScrollPosition.current.scrollViewHeight = contentHeight;
|
|
1407
|
+
}
|
|
1408
|
+
if (currentScrollPosition.current.scrollViewHeight !== contentHeight) {
|
|
1409
|
+
previousScrollPosition.current.scrollViewHeight = currentScrollPosition.current.scrollViewHeight;
|
|
1410
|
+
currentScrollPosition.current.scrollViewHeight = contentHeight;
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
}, []);
|
|
940
1414
|
const { height, width, backgroundColor, border, borderRadius, } = _messageListStyle;
|
|
941
|
-
return (<View style={{
|
|
1415
|
+
return (<View style={{
|
|
1416
|
+
height, width, backgroundColor, borderRadius, ...border,
|
|
1417
|
+
paddingStart: 8, paddingEnd: 8,
|
|
1418
|
+
}}>
|
|
942
1419
|
{listState == "loading" && messagesList.length == 0 ?
|
|
943
1420
|
getLoadingStateView() :
|
|
944
1421
|
listState == "error" ?
|
|
@@ -954,13 +1431,26 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
954
1431
|
parentMessageId: parentMessageId
|
|
955
1432
|
}}/>
|
|
956
1433
|
</View>}
|
|
957
|
-
{loadingMessages &&
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
1434
|
+
{loadingMessages &&
|
|
1435
|
+
<View style={{ position: "absolute", alignSelf: "center" }}>
|
|
1436
|
+
<ActivityIndicator size="small" color={_messageListStyle.loadingIconTint}/>
|
|
1437
|
+
</View>}
|
|
1438
|
+
|
|
1439
|
+
<ScrollView ref={messageListRef} onScroll={handleScroll} scrollEventThrottle={16} // control how often the scroll event will be fired
|
|
1440
|
+
onLayout={() => {
|
|
1441
|
+
!currentScrollPosition.current.scrollViewHeight && messageListRef.current.scrollToEnd({ animated: false });
|
|
1442
|
+
}} onContentSizeChange={onContentSizeChange}>
|
|
1443
|
+
|
|
1444
|
+
{messagesList?.length ? (messagesList
|
|
1445
|
+
// .slice(0)
|
|
1446
|
+
// .reverse()
|
|
1447
|
+
.map((item, index) => (<View key={keyExtractor(item)}>
|
|
1448
|
+
<RenderMessageItem item={item} index={index}/>
|
|
1449
|
+
{itemSeperator()}
|
|
1450
|
+
</View>))) : (getEmptyTextView())}
|
|
1451
|
+
</ScrollView>
|
|
1452
|
+
{CustomListHeader && <CustomListHeader />}
|
|
1453
|
+
{ongoingCallView}
|
|
964
1454
|
{FooterView && <View style={[Style.stickyHeaderFooterStyle, { bottom: 0 }]}>
|
|
965
1455
|
<FooterView group={group && group['guid']} user={user && user['uid']} id={{
|
|
966
1456
|
guid: group && group['guid'],
|
|
@@ -969,11 +1459,6 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
969
1459
|
}}/>
|
|
970
1460
|
</View>}
|
|
971
1461
|
</View> : null}
|
|
972
|
-
{liveReaction ?
|
|
973
|
-
<View style={{ alignItems: "flex-end" }}>
|
|
974
|
-
<CometChatLiveReactions />
|
|
975
|
-
</View> :
|
|
976
|
-
null}
|
|
977
1462
|
{unreadCount > 0 ?
|
|
978
1463
|
<TouchableOpacity onPress={newMsgIndicatorPressed.bind(this)} style={Style.newMessageIndicatorStyle}>
|
|
979
1464
|
<Text style={[Style.newMessageIndicatorText]}>
|
|
@@ -1023,7 +1508,7 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
1023
1508
|
setShowMessageOptions([]);
|
|
1024
1509
|
infoObject.current = null;
|
|
1025
1510
|
setMessageInfo(false);
|
|
1026
|
-
}} isOpen={showMessageOptions.length > 0 || ExtensionsComponent || messageInfo}>
|
|
1511
|
+
}} isOpen={showMessageOptions.length > 0 || ExtensionsComponent || messageInfo} sliderMaxHeight={Dimensions.get('window').height * 0.5} sliderMinHeight={Dimensions.get('window').height * 0.5}>
|
|
1027
1512
|
{ExtensionsComponent ? ExtensionsComponent :
|
|
1028
1513
|
messageInfo ?
|
|
1029
1514
|
<CometChatMessageInformation message={infoObject.current} template={templatesMap.get(`${infoObject.current.getCategory()}_${infoObject.current.getType()}`)} sentIcon={sentIcon} deliveredIcon={deliveredIcon} readIcon={readIcon} {...messageInformationConfiguration} onBack={() => {
|
|
@@ -1031,17 +1516,48 @@ export const CometChatMessageList = forwardRef((props, ref) => {
|
|
|
1031
1516
|
setMessageInfo(false);
|
|
1032
1517
|
messageInformationConfiguration?.onBack && messageInformationConfiguration.onBack();
|
|
1033
1518
|
}}/> :
|
|
1034
|
-
<
|
|
1519
|
+
<View>
|
|
1520
|
+
{!disableReactions && <CometChatQuickReactions
|
|
1521
|
+
// quickReactions={quickReactions}
|
|
1522
|
+
onReactionPress={reactToMessage} onAddReactionPress={() => {
|
|
1523
|
+
setShowMessageOptions([]);
|
|
1524
|
+
setShowEmojiKeyboard(true);
|
|
1525
|
+
}} {...quickReactionConfiguration}/>}
|
|
1526
|
+
<View style={{
|
|
1527
|
+
maxHeight: (Dimensions.get('window').height * 0.5) - (disableReactions ? 0 : 100),
|
|
1528
|
+
minHeight: (Dimensions.get('window').height * 0.5) - (disableReactions ? 0 : 100),
|
|
1529
|
+
overflow: "scroll"
|
|
1530
|
+
}}>
|
|
1531
|
+
<CometChatActionSheet hideHeader={hideActionSheetHeader} actions={showMessageOptions} style={_actionStyle}/>
|
|
1532
|
+
</View>
|
|
1533
|
+
</View>}
|
|
1534
|
+
</CometChatBottomSheet>
|
|
1535
|
+
<CometChatBottomSheet isOpen={showEmojiKeyboard} onClose={() => setShowEmojiKeyboard(false)}>
|
|
1536
|
+
<CometChatEmojiKeyboard onClick={(item) => {
|
|
1537
|
+
setShowEmojiKeyboard(false);
|
|
1538
|
+
reactToMessage(item, selectedMessage);
|
|
1539
|
+
}} style={{
|
|
1540
|
+
height: (Dimensions.get('window').height * 0.5) - 54,
|
|
1541
|
+
...emojiKeyboardStyle
|
|
1542
|
+
}}/>
|
|
1543
|
+
</CometChatBottomSheet>
|
|
1544
|
+
|
|
1545
|
+
<CometChatBottomSheet isOpen={showReactionList} onClose={() => {
|
|
1546
|
+
setShowReactionList(false);
|
|
1547
|
+
setSelectedEmoji(null);
|
|
1548
|
+
}} sliderMaxHeight={Dimensions.get('window').height * 0.5} sliderMinHeight={Dimensions.get('window').height * 0.5}>
|
|
1549
|
+
<CometChatReactionList messageObject={selectedMessage} selectedReaction={selectedEmoji} {...reactionListConfiguration} onPress={(messageReaction, messageObject) => {
|
|
1550
|
+
if (reactionListConfiguration?.onPress) {
|
|
1551
|
+
reactionListConfiguration.onPress(messageReaction, messageObject);
|
|
1552
|
+
return;
|
|
1553
|
+
}
|
|
1554
|
+
reactToMessage(messageReaction?.getReaction(), messageObject);
|
|
1555
|
+
if (messageObject?.getReactions()?.length === 1 && messageObject?.getReactions()?.[0]?.['count'] == 1) {
|
|
1556
|
+
setShowReactionList(false);
|
|
1557
|
+
setSelectedEmoji(null);
|
|
1558
|
+
}
|
|
1559
|
+
}}/>
|
|
1035
1560
|
</CometChatBottomSheet>
|
|
1036
1561
|
</View>);
|
|
1037
|
-
});
|
|
1038
|
-
CometChatMessageList.defaultProps = {
|
|
1039
|
-
timeStampAlignment: "bottom",
|
|
1040
|
-
templates: [],
|
|
1041
|
-
showAvatar: true,
|
|
1042
|
-
alignment: "standard",
|
|
1043
|
-
errorStateText: localize("SOMETHING_WRONG"),
|
|
1044
|
-
emptyStateText: localize("NO_MESSAGES_FOUND"),
|
|
1045
|
-
disableReceipt: false
|
|
1046
|
-
};
|
|
1562
|
+
}));
|
|
1047
1563
|
//# sourceMappingURL=CometChatMessageList.js.map
|