@cometchat/chat-uikit-react-native 4.3.7 → 4.3.9
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/CometChatAddMembers/CometChatAddMembers.tsx +2 -1
- package/src/CometChatDetails/CometChatDetails.tsx +12 -12
- package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +12 -4
- package/src/CometChatGroupsWithMessages/CometChatGroupsWithMessages.tsx +4 -2
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +6 -2
- package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +1 -1
- package/src/CometChatMessageList/CometChatMessageList.tsx +47 -27
- package/src/CometChatMessageList/MessageListConfiguration.ts +3 -7
- package/src/CometChatMessages/CometChatMessages.tsx +1 -1
- package/src/CometChatThreadedMessages/CometChatThreadedMessages.tsx +1 -1
- package/src/CometChatTransferOwnership/CometChatTransferOwnership.tsx +1 -0
- package/src/CometChatUsersWithMessages/CometChatUsersWithMessages.tsx +5 -3
- package/src/calls/CallingExtentionDecorator.tsx +4 -2
- package/src/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.tsx +5 -1
- package/src/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.tsx +5 -1
- package/src/extensions/LinkPreview/LinkPreviewExtentionDecorator.tsx +1 -1
- package/src/extensions/MessageTranslation/MessageTranslationDecorator.tsx +1 -2
- package/src/extensions/Polls/PollsDecorator.tsx +24 -28
- package/src/extensions/Stickers/StickersExtensionDecorator.tsx +5 -1
- package/src/extensions/TextModeration/TextModerationExtensionDecorator.tsx +1 -1
- package/src/index.ts +20 -1
- package/src/shared/CometChatUiKit/CometChatUIKit.ts +1 -2
- package/src/shared/base/Types.ts +13 -1
- package/src/shared/base/index.ts +11 -1
- package/src/shared/constants/UIKitConstants.ts +2 -12
- package/src/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.tsx +4 -1
- package/src/shared/formatters/CometChatTextFormatter.ts +1 -1
- package/src/shared/framework/DataSource.ts +12 -13
- package/src/shared/framework/DataSourceDecorator.tsx +2 -3
- package/src/shared/framework/MessageDataSource.tsx +57 -34
- package/src/shared/index.ts +21 -3
- package/src/shared/libs/VideoPlayer/Video.js +4 -5
- package/src/shared/modals/CometChatMessageTemplate.ts +22 -7
- package/src/shared/modals/InteractiveData/InteractiveElements/index.ts +1 -0
- package/src/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.ts +1 -2
- package/src/shared/modals/InteractiveData/index.ts +1 -0
- package/src/shared/modals/index.ts +3 -2
- package/src/shared/resources/CometChatTheme/Palette.ts +0 -15
- package/src/shared/utils/MessageUtils.tsx +3 -1
- package/src/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.tsx +1 -1
- package/src/shared/views/CometChatFormBubble/CometChatFormBubble.tsx +3 -5
- package/src/shared/views/CometChatList/CometChatList.tsx +43 -16
- package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +1 -1
- package/src/shared/views/CometChatReactions/CometChatReactions.tsx +1 -1
- package/src/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.tsx +3 -5
- package/src/shared/views/index.ts +4 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { useContext, useEffect } from 'react';
|
|
2
|
-
import { View, Image, TouchableOpacity, NativeModules, Platform, KeyboardAvoidingView, Modal, } from 'react-native';
|
|
1
|
+
import React, { useContext, useEffect, useLayoutEffect } from 'react';
|
|
2
|
+
import { View, Image, TouchableOpacity, NativeModules, Platform, KeyboardAvoidingView, Modal, Dimensions, Text, } from 'react-native';
|
|
3
3
|
import { Style } from './styles';
|
|
4
|
-
import { localize, CometChatLiveReactions, CometChatBottomSheet, CometChatMessagePreview, MessagePreviewStyle, CometChatActionSheet, CometChatContext, } from '../shared';
|
|
4
|
+
import { localize, CometChatLiveReactions, CometChatBottomSheet, CometChatMessagePreview, MessagePreviewStyle, CometChatActionSheet, CometChatContext, MentionTextStyle, CometChatSuggestionList, CometChatUIKit, } from '../shared';
|
|
5
5
|
import { CheckPropertyExists } from '../shared/helper/functions';
|
|
6
6
|
//@ts-ignore
|
|
7
7
|
import { CometChat } from '@cometchat/chat-sdk-react-native';
|
|
@@ -13,7 +13,11 @@ import { CometChatMessageInput } from '../shared';
|
|
|
13
13
|
import { MessageEvents } from '../shared/events';
|
|
14
14
|
import { CometChatUIEventHandler } from '../shared/events/CometChatUIEventHandler/CometChatUIEventHandler';
|
|
15
15
|
import { CometChatMediaRecorder } from '../shared/views/CometChatMediaRecorder';
|
|
16
|
-
|
|
16
|
+
import { AIOptionsStyle } from '../AI/AIOptionsStyle';
|
|
17
|
+
import { CommonUtils } from '../shared/utils/CommonUtils';
|
|
18
|
+
import { permissionUtil } from '../shared/utils/PermissionUtil';
|
|
19
|
+
import { commonVars } from '../shared/base/vars';
|
|
20
|
+
const { FileManager, CommonUtil } = NativeModules;
|
|
17
21
|
const uiEventListenerShow = 'uiEvent_show_' + new Date().getTime();
|
|
18
22
|
const uiEventListenerHide = 'uiEvent_hide_' + new Date().getTime();
|
|
19
23
|
const MessagePreviewTray = (props) => {
|
|
@@ -21,8 +25,8 @@ const MessagePreviewTray = (props) => {
|
|
|
21
25
|
return shouldShow ? (<CometChatMessagePreview style={new MessagePreviewStyle({ width: '95%', backgroundColor: "white" })} messagePreviewTitle={localize('EDIT_MESSAGE')} messagePreviewSubtitle={text} closeIconURL={ICONS.CLOSE} onCloseClick={onClose}/>) : null;
|
|
22
26
|
};
|
|
23
27
|
const ImageButton = (props) => {
|
|
24
|
-
const { image, onClick, buttonStyle, imageStyle } = props;
|
|
25
|
-
return (<TouchableOpacity onPress={onClick} style={buttonStyle}>
|
|
28
|
+
const { image, onClick, buttonStyle, imageStyle, disable } = props;
|
|
29
|
+
return (<TouchableOpacity activeOpacity={disable ? 1 : undefined} onPress={disable ? () => { } : onClick} style={buttonStyle}>
|
|
26
30
|
<Image source={image} style={[{ height: 24, width: 24 }, imageStyle]}/>
|
|
27
31
|
</TouchableOpacity>);
|
|
28
32
|
};
|
|
@@ -53,6 +57,13 @@ const RecordAudio = (props) => {
|
|
|
53
57
|
<CometChatMediaRecorder onClose={onClose} onPause={onPause} onPlay={onPlay} onSend={onSend} onStop={onStop} onStart={onStart} mediaRecorderStyle={mediaRecorderStyle} pauseIconUrl={pauseIconUrl} playIconUrl={playIconUrl} recordIconUrl={recordIconUrl} deleteIconUrl={deleteIconUrl} stopIconUrl={stopIconUrl} submitIconUrl={submitIconUrl}/>
|
|
54
58
|
</CometChatBottomSheet>) : null;
|
|
55
59
|
};
|
|
60
|
+
const AIOptions = (props) => {
|
|
61
|
+
const { aiStyle, shouldShow = false, onClose = () => { }, cometChatBottomSheetStyle = { backgroundColor: aiStyle.backgroundColor, paddingHorizontal: 0 }, sheetRef, aiOptions, ...otherProps } = props;
|
|
62
|
+
return shouldShow ? (<CometChatBottomSheet ref={sheetRef} onClose={onClose} style={cometChatBottomSheetStyle}>
|
|
63
|
+
|
|
64
|
+
<CometChatActionSheet actions={aiOptions} style={{ ...aiStyle, paddingHorizontal: 0 }} {...otherProps} onPress={props.onClick} hideHeader={true}/>
|
|
65
|
+
</CometChatBottomSheet>) : null;
|
|
66
|
+
};
|
|
56
67
|
const LiveReaction = (props) => {
|
|
57
68
|
const { show = false, reaction } = props;
|
|
58
69
|
if (show) {
|
|
@@ -65,28 +76,68 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
65
76
|
const editMessageListenerID = 'editMessageListener_' + new Date().getTime();
|
|
66
77
|
const UiEventListenerID = 'UiEventListener_' + new Date().getTime();
|
|
67
78
|
const { theme } = useContext(CometChatContext);
|
|
68
|
-
const { id, user, group, disableSoundForMessages, customSoundForMessage, disableTypingEvents, text, placeHolderText, HeaderView, FooterView, onChangeText, maxHeight, attachmentIcon, attachmentOptions, SecondaryButtonView, AuxiliaryButtonView, auxiliaryButtonsAlignment, SendButtonView, parentMessageId, hideLiveReaction, liveReactionIcon, messageComposerStyle, onSendButtonPress, onError, hideVoiceRecording, voiceRecordingIconURL, mediaRecorderStyle, pauseIconUrl, playIconUrl, recordIconUrl, deleteIconUrl, stopIconUrl, submitIconUrl, } = props;
|
|
79
|
+
const { id, user, group, disableSoundForMessages, customSoundForMessage, disableTypingEvents, text, placeHolderText, HeaderView, FooterView, onChangeText, maxHeight, attachmentIcon, attachmentOptions, SecondaryButtonView, AuxiliaryButtonView, auxiliaryButtonsAlignment, SendButtonView, parentMessageId, hideLiveReaction, liveReactionIcon, messageComposerStyle, onSendButtonPress, onError, hideVoiceRecording, voiceRecordingIconURL, mediaRecorderStyle, pauseIconUrl, playIconUrl, recordIconUrl, deleteIconUrl, stopIconUrl, submitIconUrl, AIIconURL, aiOptionsStyle, keyboardAvoidingViewProps, textFormatters, disableMentions, imageQuality = 20 } = props;
|
|
69
80
|
const defaultAttachmentOptions = ChatConfigurator.dataSource.getAttachmentOptions(user, group, id);
|
|
70
81
|
const composerIdMap = new Map().set('parentMessageId', parentMessageId);
|
|
71
|
-
const defaultAuxiliaryButtonOptions = ChatConfigurator.
|
|
82
|
+
const defaultAuxiliaryButtonOptions = ChatConfigurator.getDataSource().getAuxiliaryOptions(user, group, composerIdMap, theme);
|
|
72
83
|
const loggedInUser = React.useRef({});
|
|
73
84
|
const chatWith = React.useRef(null);
|
|
74
85
|
const chatWithId = React.useRef(null);
|
|
75
86
|
const messageInputRef = React.useRef(null);
|
|
76
87
|
const chatRef = React.useRef(chatWith);
|
|
88
|
+
const inputValueRef = React.useRef(null);
|
|
89
|
+
const plainTextInput = React.useRef("");
|
|
90
|
+
let mentionMap = React.useRef(new Map());
|
|
91
|
+
let trackingCharacters = React.useRef([]);
|
|
92
|
+
let allFormatters = React.useRef(new Map());
|
|
93
|
+
let activeCharacter = React.useRef("");
|
|
94
|
+
let searchStringRef = React.useRef("");
|
|
77
95
|
const [selectionPosition, setSelectionPosition] = React.useState({});
|
|
78
96
|
const [inputMessage, setInputMessage] = React.useState(text || '');
|
|
79
97
|
const [showReaction, setShowReaction] = React.useState(false);
|
|
80
98
|
const [showEmojiboard, setShowEmojiboard] = React.useState(false);
|
|
81
99
|
const [showActionSheet, setShowActionSheet] = React.useState(false);
|
|
82
100
|
const [showRecordAudio, setShowRecordAudio] = React.useState(false);
|
|
101
|
+
const [showAIOptions, setShowAIOptions] = React.useState(false);
|
|
102
|
+
const [AIOptionItems, setAIOptionItems] = React.useState([]);
|
|
103
|
+
const [rootAIOptionItems, setRootAIOptionItems] = React.useState([]);
|
|
83
104
|
const [actionSheetItems, setActionSheetItems] = React.useState([]);
|
|
84
105
|
const [messagePreview, setMessagePreview] = React.useState(null);
|
|
85
106
|
const [CustomView, setCustomView] = React.useState(null);
|
|
86
107
|
const [CustomViewHeader, setCustomViewHeader] = React.useState(null);
|
|
87
108
|
const [CustomViewFooter, setCustomViewFooter] = React.useState(null);
|
|
88
109
|
const [isVisible, setIsVisible] = React.useState(false);
|
|
110
|
+
const [kbOffset, setKbOffset] = React.useState(59);
|
|
111
|
+
const [showMentionList, setShowMentionList] = React.useState(false);
|
|
112
|
+
const [mentionsSearchData, setMentionsSearchData] = React.useState([]);
|
|
113
|
+
const [suggestionListLoader, setSuggestionListLoader] = React.useState(false);
|
|
89
114
|
const bottomSheetRef = React.useRef(null);
|
|
115
|
+
useLayoutEffect(() => {
|
|
116
|
+
if (Platform.OS === "ios") {
|
|
117
|
+
if (Number.isInteger(commonVars.safeAreaInsets.top)) {
|
|
118
|
+
setKbOffset(commonVars.safeAreaInsets.top);
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
CommonUtil.getSafeAreaInsets().then(res => {
|
|
122
|
+
if (Number.isInteger(res.top)) {
|
|
123
|
+
commonVars.safeAreaInsets.top = res.top;
|
|
124
|
+
commonVars.safeAreaInsets.bottom = res.bottom;
|
|
125
|
+
setKbOffset(res.top);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}, []);
|
|
130
|
+
const AIStyles = new AIOptionsStyle({
|
|
131
|
+
//NEED TO ADD DEFAULT STYLE HERE
|
|
132
|
+
backgroundColor: theme.palette.getBackgroundColor(),
|
|
133
|
+
listItemBackground: theme.palette.getBackgroundColor(),
|
|
134
|
+
listItemTitleFont: theme.typography.subtitle1,
|
|
135
|
+
listItemTitleColor: theme.palette.getAccent(),
|
|
136
|
+
listItemBorderRadius: 0,
|
|
137
|
+
optionsSeparatorTint: theme.palette.getAccent200(),
|
|
138
|
+
borderRadius: 0,
|
|
139
|
+
...aiOptionsStyle,
|
|
140
|
+
});
|
|
90
141
|
let isTyping = null;
|
|
91
142
|
/**
|
|
92
143
|
* Event callback
|
|
@@ -96,28 +147,91 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
96
147
|
}));
|
|
97
148
|
const previewMessage = ({ message, status }) => {
|
|
98
149
|
if (status === messageStatus.inprogress) {
|
|
150
|
+
let textComponents = message?.text;
|
|
151
|
+
let rawText = message?.text;
|
|
152
|
+
let users = {};
|
|
153
|
+
let regexes = [];
|
|
154
|
+
allFormatters.current.forEach((formatter, key) => {
|
|
155
|
+
formatter.handleComposerPreview(message);
|
|
156
|
+
if (!regexes.includes(formatter.getRegexPattern())) {
|
|
157
|
+
regexes.push(formatter.getRegexPattern());
|
|
158
|
+
}
|
|
159
|
+
let suggestionUsers = formatter.getSuggestionItems();
|
|
160
|
+
suggestionUsers.forEach(item => users[item.underlyingText] = item);
|
|
161
|
+
let resp = formatter.getFormattedText(textComponents);
|
|
162
|
+
textComponents = resp;
|
|
163
|
+
});
|
|
164
|
+
let edits = [];
|
|
165
|
+
regexes.forEach(regex => {
|
|
166
|
+
let match;
|
|
167
|
+
while ((match = regex.exec(rawText)) !== null) {
|
|
168
|
+
const user = users[match[0]];
|
|
169
|
+
if (user) {
|
|
170
|
+
edits.push({
|
|
171
|
+
startIndex: match.index,
|
|
172
|
+
endIndex: regex.lastIndex,
|
|
173
|
+
replacement: user.promptText,
|
|
174
|
+
user
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
// Sort edits by startIndex to apply them in order
|
|
180
|
+
edits.sort((a, b) => a.startIndex - b.startIndex);
|
|
181
|
+
plainTextInput.current = getPlainString(message?.text, edits);
|
|
182
|
+
const hashMap = new Map();
|
|
183
|
+
let offset = 0; // Tracks shift in position due to replacements
|
|
184
|
+
edits.forEach(edit => {
|
|
185
|
+
const adjustedStartIndex = edit.startIndex + offset;
|
|
186
|
+
rawText = rawText.substring(0, adjustedStartIndex) + edit.replacement + rawText.substring(edit.endIndex);
|
|
187
|
+
offset += edit.replacement.length - (edit.endIndex - edit.startIndex);
|
|
188
|
+
const rangeKey = `${adjustedStartIndex}_${adjustedStartIndex + edit.replacement.length}`;
|
|
189
|
+
hashMap.set(rangeKey, edit.user);
|
|
190
|
+
});
|
|
191
|
+
mentionMap.current = hashMap;
|
|
99
192
|
setMessagePreview({
|
|
100
|
-
message: message,
|
|
193
|
+
message: { ...message, text: textComponents },
|
|
101
194
|
mode: ConversationOptionConstants.edit,
|
|
102
195
|
});
|
|
103
|
-
|
|
196
|
+
inputValueRef.current = textComponents ?? '';
|
|
197
|
+
setInputMessage(textComponents ?? '');
|
|
104
198
|
messageInputRef.current.focus();
|
|
105
199
|
}
|
|
106
200
|
};
|
|
201
|
+
const cameraCallback = async (cameraImage) => {
|
|
202
|
+
if (CheckPropertyExists(cameraImage, 'error')) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const { name, uri, type } = cameraImage;
|
|
206
|
+
let file = {
|
|
207
|
+
name,
|
|
208
|
+
type,
|
|
209
|
+
uri,
|
|
210
|
+
};
|
|
211
|
+
sendMediaMessage(chatWithId.current, file, MessageTypeConstants.image, chatWith.current);
|
|
212
|
+
};
|
|
107
213
|
const fileInputHandler = async (fileType) => {
|
|
108
|
-
if (fileType === MessageTypeConstants.takePhoto)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
214
|
+
if (fileType === MessageTypeConstants.takePhoto) {
|
|
215
|
+
if (!(await permissionUtil.startResourceBasedTask(["camera"]))) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
let quality = imageQuality;
|
|
219
|
+
if (isNaN(imageQuality) || imageQuality < 1 || imageQuality > 100) {
|
|
220
|
+
quality = 20;
|
|
221
|
+
}
|
|
222
|
+
if (Platform.OS === "android") {
|
|
223
|
+
FileManager.openCamera(fileType, Math.round(quality), cameraCallback);
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
FileManager.openCamera(fileType, cameraCallback);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
else if (Platform.OS === 'ios' && fileType === MessageTypeConstants.video) {
|
|
230
|
+
NativeModules.VideoPickerModule.pickVideo(((file) => {
|
|
231
|
+
if (file.uri)
|
|
232
|
+
sendMediaMessage(chatWithId.current, file, MessageTypeConstants.video, chatWith.current);
|
|
233
|
+
}));
|
|
234
|
+
}
|
|
121
235
|
else
|
|
122
236
|
FileManager.openFileChooser(fileType, async (fileInfo) => {
|
|
123
237
|
if (CheckPropertyExists(fileInfo, 'error')) {
|
|
@@ -140,11 +254,6 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
140
254
|
CometChatSoundManager.play(CometChatSoundManager.SoundOutput.outgoingMessage);
|
|
141
255
|
}
|
|
142
256
|
};
|
|
143
|
-
const textChangeHandler = (txt) => {
|
|
144
|
-
onChangeText && onChangeText(txt);
|
|
145
|
-
startTyping();
|
|
146
|
-
setInputMessage(txt);
|
|
147
|
-
};
|
|
148
257
|
const liveReactionHandler = () => {
|
|
149
258
|
if (hideLiveReaction)
|
|
150
259
|
return;
|
|
@@ -165,6 +274,7 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
165
274
|
}
|
|
166
275
|
};
|
|
167
276
|
const clearInputBox = () => {
|
|
277
|
+
inputValueRef.current = '';
|
|
168
278
|
setInputMessage('');
|
|
169
279
|
};
|
|
170
280
|
const sendTextMessage = () => {
|
|
@@ -173,14 +283,20 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
173
283
|
editMessage(messagePreview.message);
|
|
174
284
|
return;
|
|
175
285
|
}
|
|
176
|
-
let
|
|
286
|
+
let finalTextInput = getRegexString(plainTextInput.current);
|
|
287
|
+
let textMessage = new CometChat.TextMessage(chatWithId.current, finalTextInput, chatWith.current);
|
|
177
288
|
textMessage.setSender(loggedInUser.current);
|
|
178
289
|
textMessage.setReceiver(chatWith.current);
|
|
179
|
-
textMessage.setText(
|
|
290
|
+
textMessage.setText(finalTextInput);
|
|
180
291
|
textMessage.setMuid(String(getUnixTimestamp()));
|
|
181
292
|
parentMessageId && textMessage.setParentMessageId(parentMessageId);
|
|
293
|
+
allFormatters.current.forEach(item => {
|
|
294
|
+
textMessage = item.handlePreMessageSend(textMessage);
|
|
295
|
+
});
|
|
296
|
+
setMentionsSearchData([]);
|
|
297
|
+
plainTextInput.current = "";
|
|
182
298
|
onSendButtonPress && onSendButtonPress(textMessage);
|
|
183
|
-
if (
|
|
299
|
+
if (finalTextInput.trim().length == 0) {
|
|
184
300
|
return;
|
|
185
301
|
}
|
|
186
302
|
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageSent, {
|
|
@@ -199,16 +315,23 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
199
315
|
})
|
|
200
316
|
.catch((error) => {
|
|
201
317
|
onError && onError(error);
|
|
318
|
+
textMessage.data.metaData = { error: true };
|
|
319
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageSent, {
|
|
320
|
+
message: textMessage,
|
|
321
|
+
status: messageStatus.error,
|
|
322
|
+
});
|
|
202
323
|
clearInputBox();
|
|
203
324
|
});
|
|
204
325
|
};
|
|
205
326
|
/** edit message */
|
|
206
327
|
const editMessage = (message) => {
|
|
207
328
|
endTyping(null, null);
|
|
208
|
-
let
|
|
329
|
+
let finalTextInput = getRegexString(plainTextInput.current);
|
|
330
|
+
let messageText = finalTextInput.trim();
|
|
209
331
|
let textMessage = new CometChat.TextMessage(chatWithId.current, messageText, chatWith.current);
|
|
210
332
|
textMessage.setId(message.id);
|
|
211
333
|
parentMessageId && textMessage.setParentMessageId(parentMessageId);
|
|
334
|
+
inputValueRef.current = '';
|
|
212
335
|
setInputMessage('');
|
|
213
336
|
messageInputRef.current.textContent = '';
|
|
214
337
|
if (!disableSoundForMessages)
|
|
@@ -216,6 +339,7 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
216
339
|
setMessagePreview(null);
|
|
217
340
|
CometChat.editMessage(textMessage)
|
|
218
341
|
.then((editedMessage) => {
|
|
342
|
+
inputValueRef.current = '';
|
|
219
343
|
setInputMessage('');
|
|
220
344
|
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, {
|
|
221
345
|
message: editedMessage,
|
|
@@ -280,15 +404,22 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
280
404
|
playAudio();
|
|
281
405
|
CometChat.sendMediaMessage(mediaMessage)
|
|
282
406
|
.then((message) => {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
407
|
+
setTimeout(() => {
|
|
408
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageSent, {
|
|
409
|
+
message: message,
|
|
410
|
+
status: messageStatus.success,
|
|
411
|
+
});
|
|
412
|
+
setShowRecordAudio(false);
|
|
413
|
+
}, 1000);
|
|
288
414
|
})
|
|
289
415
|
.catch((error) => {
|
|
290
416
|
setShowRecordAudio(false);
|
|
291
417
|
onError && onError(error);
|
|
418
|
+
localMessage.data.metaData = { error: true };
|
|
419
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageSent, {
|
|
420
|
+
message: localMessage,
|
|
421
|
+
status: messageStatus.error,
|
|
422
|
+
});
|
|
292
423
|
console.log('media message sent error', error);
|
|
293
424
|
});
|
|
294
425
|
};
|
|
@@ -339,12 +470,16 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
339
470
|
const GetEmojiIconView = () => {
|
|
340
471
|
return (<ImageButton image={ICONS.EMOJI} imageStyle={Style.imageStyle} onClick={() => setShowEmojiboard(true)}/>);
|
|
341
472
|
};
|
|
473
|
+
const shouldShowAIOptions = () => {
|
|
474
|
+
return AIOptionItems.length > 0;
|
|
475
|
+
};
|
|
342
476
|
const AuxiliaryButtonViewElem = () => {
|
|
343
477
|
if (AuxiliaryButtonView)
|
|
344
478
|
return (<AuxiliaryButtonView user={user} group={group} composerId={id}/>);
|
|
345
479
|
else if (defaultAuxiliaryButtonOptions)
|
|
346
480
|
return <View style={{ flexDirection: "row", alignItems: "center" }}>
|
|
347
481
|
{defaultAuxiliaryButtonOptions}
|
|
482
|
+
{shouldShowAIOptions() && <AIOptionsButtonView />}
|
|
348
483
|
{!hideVoiceRecording && <RecordAudioButtonView />}
|
|
349
484
|
</View>;
|
|
350
485
|
return hideVoiceRecording ? null : <RecordAudioButtonView />;
|
|
@@ -355,10 +490,11 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
355
490
|
return (<ImageButton image={ICONS.SEND} imageStyle={[
|
|
356
491
|
Style.imageStyle,
|
|
357
492
|
{
|
|
358
|
-
tintColor:
|
|
359
|
-
|
|
493
|
+
tintColor: (inputMessage.length === 0) ? theme.palette.getAccent400() :
|
|
494
|
+
messageComposerStyle.sendIconTint ||
|
|
495
|
+
theme.palette.getPrimary(),
|
|
360
496
|
},
|
|
361
|
-
]} onClick={sendTextMessage}/>);
|
|
497
|
+
]} disable={(inputMessage.length === 0)} onClick={sendTextMessage}/>);
|
|
362
498
|
};
|
|
363
499
|
const SecondaryButtonViewElem = () => {
|
|
364
500
|
if (SecondaryButtonView)
|
|
@@ -367,13 +503,13 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
367
503
|
height: 23,
|
|
368
504
|
width: 23,
|
|
369
505
|
resizeMode: 'contain',
|
|
370
|
-
tintColor: messageComposerStyle.
|
|
371
|
-
? messageComposerStyle.
|
|
372
|
-
: theme.palette.
|
|
506
|
+
tintColor: messageComposerStyle.attachIconTint
|
|
507
|
+
? messageComposerStyle.attachIconTint
|
|
508
|
+
: theme.palette.getAccent(),
|
|
373
509
|
}}/>);
|
|
374
510
|
};
|
|
375
511
|
const PrimaryButtonView = () => {
|
|
376
|
-
return inputMessage.length || hideLiveReaction ? (<SendButtonViewElem />) : (<View>
|
|
512
|
+
return (inputMessage.length !== 0) || hideLiveReaction ? (<SendButtonViewElem />) : (<View>
|
|
377
513
|
<View style={Style.liveReactionStyle}>
|
|
378
514
|
<LiveReaction show={showReaction} reaction={liveReactionIcon}/>
|
|
379
515
|
</View>
|
|
@@ -383,9 +519,42 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
383
519
|
const RecordAudioButtonView = () => {
|
|
384
520
|
return <ImageButton image={voiceRecordingIconURL || ICONS.MICROPHONE} imageStyle={Style.imageStyle} onClick={() => setShowRecordAudio(true)}/>;
|
|
385
521
|
};
|
|
522
|
+
const AIOptionsButtonView = () => {
|
|
523
|
+
return <ImageButton image={AIIconURL || ICONS.AI} imageStyle={Style.imageStyle} onClick={() => {
|
|
524
|
+
setShowAIOptions(true);
|
|
525
|
+
setAIOptionItems(rootAIOptionItems);
|
|
526
|
+
}}/>;
|
|
527
|
+
};
|
|
386
528
|
//fetch logged in user
|
|
387
529
|
useEffect(() => {
|
|
388
530
|
CometChat.getLoggedinUser().then((user) => (loggedInUser.current = user));
|
|
531
|
+
let _formatter = [...(textFormatters || [])] || [];
|
|
532
|
+
if (!disableMentions) {
|
|
533
|
+
let mentionsFormatter = ChatConfigurator.getDataSource().getMentionsFormatter();
|
|
534
|
+
mentionsFormatter.setLoggedInUser(CometChatUIKit.loggedInUser);
|
|
535
|
+
mentionsFormatter.setMentionsStyle(new MentionTextStyle({
|
|
536
|
+
loggedInUserTextStyle: {
|
|
537
|
+
color: theme.palette.getPrimary(),
|
|
538
|
+
...theme.typography.title2,
|
|
539
|
+
fontSize: 17
|
|
540
|
+
},
|
|
541
|
+
textStyle: {
|
|
542
|
+
color: theme.palette.getPrimary(),
|
|
543
|
+
...theme.typography.subtitle1,
|
|
544
|
+
fontSize: 17
|
|
545
|
+
}
|
|
546
|
+
}));
|
|
547
|
+
mentionsFormatter.setUser(user);
|
|
548
|
+
mentionsFormatter.setGroup(group);
|
|
549
|
+
_formatter.push(mentionsFormatter);
|
|
550
|
+
}
|
|
551
|
+
_formatter.forEach((formatter) => {
|
|
552
|
+
formatter.setComposerId(id);
|
|
553
|
+
let trackingCharacter = formatter.getTrackingCharacter();
|
|
554
|
+
trackingCharacters.current.push(trackingCharacter);
|
|
555
|
+
let newFormatter = CommonUtils.clone(formatter);
|
|
556
|
+
allFormatters.current.set(trackingCharacter, newFormatter);
|
|
557
|
+
});
|
|
389
558
|
}, []);
|
|
390
559
|
useEffect(() => {
|
|
391
560
|
//update receiver user
|
|
@@ -455,16 +624,60 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
455
624
|
onPress: () => fileInputHandler(item.id),
|
|
456
625
|
};
|
|
457
626
|
}));
|
|
627
|
+
const aiOptions = ChatConfigurator.dataSource.getAIOptions(user, group, theme, composerIdMap, AIStyles);
|
|
628
|
+
let newAiOptions = _getAIOptions(aiOptions);
|
|
629
|
+
setAIOptionItems(newAiOptions);
|
|
630
|
+
setRootAIOptionItems(newAiOptions);
|
|
458
631
|
}, [user, group, id, parentMessageId]);
|
|
632
|
+
const _getAIOptions = (options) => {
|
|
633
|
+
let newOptions = [...options];
|
|
634
|
+
let newAiOptions = newOptions.map((item) => {
|
|
635
|
+
if (typeof item.onPress === 'function')
|
|
636
|
+
return {
|
|
637
|
+
...item,
|
|
638
|
+
onPress: () => {
|
|
639
|
+
setShowAIOptions(false);
|
|
640
|
+
item.onPress(user);
|
|
641
|
+
},
|
|
642
|
+
};
|
|
643
|
+
return {
|
|
644
|
+
...item,
|
|
645
|
+
onPress: () => { },
|
|
646
|
+
};
|
|
647
|
+
});
|
|
648
|
+
return newAiOptions;
|
|
649
|
+
};
|
|
459
650
|
useEffect(() => {
|
|
460
651
|
CometChatUIEventHandler.addMessageListener(editMessageListenerID, {
|
|
461
652
|
ccMessageEdited: (item) => previewMessage(item),
|
|
462
653
|
});
|
|
463
654
|
CometChatUIEventHandler.addUIListener(UiEventListenerID, {
|
|
464
655
|
ccToggleBottomSheet: (item) => {
|
|
656
|
+
if (item?.bots) {
|
|
657
|
+
let newAiOptions = _getAIOptions(item.bots);
|
|
658
|
+
setAIOptionItems(newAiOptions);
|
|
659
|
+
setShowAIOptions(true);
|
|
660
|
+
return;
|
|
661
|
+
}
|
|
662
|
+
else if (item?.botView) {
|
|
663
|
+
setCustomView(() => item.child);
|
|
664
|
+
return;
|
|
665
|
+
}
|
|
465
666
|
setIsVisible(false);
|
|
466
667
|
bottomSheetRef.current?.togglePanel();
|
|
467
|
-
}
|
|
668
|
+
},
|
|
669
|
+
ccComposeMessage: (text) => {
|
|
670
|
+
setIsVisible(false);
|
|
671
|
+
bottomSheetRef.current?.togglePanel();
|
|
672
|
+
inputValueRef.current = text?.text;
|
|
673
|
+
setInputMessage(text?.text);
|
|
674
|
+
},
|
|
675
|
+
ccSuggestionData(item) {
|
|
676
|
+
if (activeCharacter.current && id === item?.id) {
|
|
677
|
+
setMentionsSearchData(item?.data);
|
|
678
|
+
setSuggestionListLoader(false);
|
|
679
|
+
}
|
|
680
|
+
},
|
|
468
681
|
});
|
|
469
682
|
return () => {
|
|
470
683
|
CometChatUIEventHandler.removeMessageListener(editMessageListenerID);
|
|
@@ -507,23 +720,265 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
507
720
|
sendMediaMessage(chatWithId.current, fileObj, MessageTypeConstants.audio, chatWith.current);
|
|
508
721
|
console.log("Send Audio");
|
|
509
722
|
};
|
|
723
|
+
function isCursorWithinMentionRange(mentionRanges, cursorPosition) {
|
|
724
|
+
for (let [range, mention] of mentionRanges) {
|
|
725
|
+
const [start, end] = range.split('_').map(Number);
|
|
726
|
+
if (cursorPosition >= start && cursorPosition <= end) {
|
|
727
|
+
return true; // Cursor is within the range of a mention
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
return false; // No mention found at the cursor position
|
|
731
|
+
}
|
|
732
|
+
function shouldOpenList(selection, searchString, tracker) {
|
|
733
|
+
return (selection.start === selection.end
|
|
734
|
+
&& !isCursorWithinMentionRange(mentionMap.current, selection.start - searchString.length)
|
|
735
|
+
&& trackingCharacters.current.includes(tracker)
|
|
736
|
+
&& (searchString === "" ? ((plainTextInput.current[selection.start - 2]?.length === 1 && plainTextInput.current[selection.start - 2]?.trim()?.length === 0) || plainTextInput.current[selection.start - 2] === undefined) : true)
|
|
737
|
+
&& ((plainTextInput.current[selection.start - 1]?.length === 1 && plainTextInput.current[selection.start - 1]?.trim()?.length === 0) ? searchString.length > 0 : true));
|
|
738
|
+
}
|
|
739
|
+
let timeoutId;
|
|
740
|
+
const openList = (selection) => {
|
|
741
|
+
clearTimeout(timeoutId);
|
|
742
|
+
timeoutId = setTimeout(() => {
|
|
743
|
+
let searchString = extractTextFromCursor(plainTextInput.current, selection.start);
|
|
744
|
+
let tracker = searchString ? plainTextInput.current[selection.start - (searchString.length + 1)] : plainTextInput.current[selection.start - 1];
|
|
745
|
+
if (shouldOpenList(selection, searchString, tracker)) {
|
|
746
|
+
activeCharacter.current = tracker;
|
|
747
|
+
searchStringRef.current = searchString;
|
|
748
|
+
setShowMentionList(true);
|
|
749
|
+
let formatter = allFormatters.current.get(tracker);
|
|
750
|
+
formatter.search(searchString);
|
|
751
|
+
}
|
|
752
|
+
else {
|
|
753
|
+
activeCharacter.current = "";
|
|
754
|
+
searchStringRef.current = "";
|
|
755
|
+
setShowMentionList(false);
|
|
756
|
+
setMentionsSearchData([]);
|
|
757
|
+
}
|
|
758
|
+
}, 100);
|
|
759
|
+
};
|
|
760
|
+
const getRegexString = (str) => {
|
|
761
|
+
// Get an array of the entries in the map using the spread operator
|
|
762
|
+
const entries = [...mentionMap.current.entries()].reverse();
|
|
763
|
+
let uidInput = str;
|
|
764
|
+
// Iterate over the array in reverse order
|
|
765
|
+
entries.forEach(([key, value]) => {
|
|
766
|
+
let [start, end] = key.split("_").map(Number);
|
|
767
|
+
let pre = uidInput.substring(0, start);
|
|
768
|
+
let post = uidInput.substring(end);
|
|
769
|
+
uidInput = pre + value.underlyingText + post;
|
|
770
|
+
});
|
|
771
|
+
return uidInput;
|
|
772
|
+
};
|
|
773
|
+
const getPlainString = (str, edits) => {
|
|
774
|
+
// Get an array of the entries in the map using the spread operator
|
|
775
|
+
const entries = [...edits].reverse();
|
|
776
|
+
let _plainString = str;
|
|
777
|
+
// Iterate over the array in reverse order
|
|
778
|
+
entries.forEach(({ endIndex, replacement, startIndex, user }) => {
|
|
779
|
+
let pre = _plainString.substring(0, startIndex);
|
|
780
|
+
let post = _plainString.substring(endIndex);
|
|
781
|
+
_plainString = pre + replacement + post;
|
|
782
|
+
});
|
|
783
|
+
return _plainString;
|
|
784
|
+
};
|
|
785
|
+
const textChangeHandler = (txt) => {
|
|
786
|
+
let removing = plainTextInput.current.length > txt.length;
|
|
787
|
+
let adding = plainTextInput.current.length < txt.length;
|
|
788
|
+
let textDiff = txt.length - plainTextInput.current.length;
|
|
789
|
+
let notAtLast = (selectionPosition.start + textDiff) < txt.length;
|
|
790
|
+
plainTextInput.current = txt;
|
|
791
|
+
onChangeText && onChangeText(txt);
|
|
792
|
+
startTyping();
|
|
793
|
+
let decr = 0;
|
|
794
|
+
let newMentionMap = new Map(mentionMap.current);
|
|
795
|
+
mentionMap.current.forEach((value, key) => {
|
|
796
|
+
let position = { start: parseInt(key.split("_")[0]), end: parseInt(key.split("_")[1]) };
|
|
797
|
+
//Runs when cursor before the mention and before the last position
|
|
798
|
+
if (notAtLast && (((selectionPosition.start - 1) <= position.start)
|
|
799
|
+
|| ((selectionPosition.start - textDiff) <= position.start))) {
|
|
800
|
+
if (removing) {
|
|
801
|
+
decr = ((selectionPosition.end) - selectionPosition.start) - (textDiff);
|
|
802
|
+
position = { start: position.start - decr, end: position.end - decr };
|
|
803
|
+
}
|
|
804
|
+
else if (adding) {
|
|
805
|
+
decr = ((selectionPosition.end) - selectionPosition.start) + (textDiff);
|
|
806
|
+
position = { start: position.start + decr, end: position.end + decr };
|
|
807
|
+
}
|
|
808
|
+
if (removing || adding) {
|
|
809
|
+
let newKey = `${position.start}_${position.end}`;
|
|
810
|
+
position.start >= 0 && newMentionMap.set(newKey, value);
|
|
811
|
+
newMentionMap.delete(key);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
// Code to delete mention from hashmap 👇
|
|
815
|
+
let expctedMentionPos = plainTextInput.current.substring(position.start, position.end);
|
|
816
|
+
if (expctedMentionPos !== `${value.promptText}`) {
|
|
817
|
+
let newKey = `${position.start}_${position.end}`;
|
|
818
|
+
newMentionMap.delete(newKey);
|
|
819
|
+
if (!ifIdExists(value.id, newMentionMap)) {
|
|
820
|
+
let targetedFormatter = allFormatters.current.get(value.trackingCharacter);
|
|
821
|
+
let existingCCUsers = [...targetedFormatter.getSuggestionItems()];
|
|
822
|
+
let userPosition = existingCCUsers.findIndex((item) => item.id === value.id);
|
|
823
|
+
if (userPosition !== -1) {
|
|
824
|
+
existingCCUsers.splice(userPosition, 1);
|
|
825
|
+
targetedFormatter.setSuggestionItems(existingCCUsers);
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
});
|
|
830
|
+
mentionMap.current = newMentionMap;
|
|
831
|
+
setFormattedInputMessage();
|
|
832
|
+
};
|
|
833
|
+
const onMentionPress = (item) => {
|
|
834
|
+
setShowMentionList(false);
|
|
835
|
+
setMentionsSearchData([]);
|
|
836
|
+
let notAtLast = selectionPosition.start < plainTextInput.current.length;
|
|
837
|
+
let textDiff = (plainTextInput.current.length + item.promptText.length - searchStringRef.current.length) - plainTextInput.current.length;
|
|
838
|
+
let incr = 0;
|
|
839
|
+
let mentionPos = 0;
|
|
840
|
+
let newMentionMap = new Map(mentionMap.current);
|
|
841
|
+
let targetedFormatter = allFormatters.current.get(activeCharacter.current);
|
|
842
|
+
let existingCCUsers = [...targetedFormatter.getSuggestionItems()];
|
|
843
|
+
let userAlreadyExists = existingCCUsers.find((existingUser) => existingUser.id === item.id);
|
|
844
|
+
if (!userAlreadyExists) {
|
|
845
|
+
let cometchatUIUserArray = [...existingCCUsers];
|
|
846
|
+
cometchatUIUserArray.push(item);
|
|
847
|
+
targetedFormatter.setSuggestionItems(cometchatUIUserArray);
|
|
848
|
+
}
|
|
849
|
+
mentionMap.current.forEach((value, key) => {
|
|
850
|
+
let position = { start: parseInt(key.split("_")[0]), end: parseInt(key.split("_")[1]) };
|
|
851
|
+
if (!(selectionPosition.start <= position.start)) {
|
|
852
|
+
mentionPos += 1;
|
|
853
|
+
}
|
|
854
|
+
// Code to delete mention from hashmap 👇
|
|
855
|
+
if (position.end === selectionPosition.end || (selectionPosition.start > position.start && selectionPosition.end <= position.end)) {
|
|
856
|
+
let newKey = `${position.start}_${position.end}`;
|
|
857
|
+
newMentionMap.delete(newKey);
|
|
858
|
+
mentionPos -= 1;
|
|
859
|
+
}
|
|
860
|
+
if (notAtLast && ((selectionPosition.start - 1) <= position.start)) {
|
|
861
|
+
incr = (selectionPosition.end - selectionPosition.start) + (textDiff);
|
|
862
|
+
let newKey = `${(position.start + incr)}_${(position.end + incr)}`;
|
|
863
|
+
newMentionMap.set(newKey, value);
|
|
864
|
+
newMentionMap.delete(key);
|
|
865
|
+
}
|
|
866
|
+
});
|
|
867
|
+
mentionMap.current = newMentionMap;
|
|
868
|
+
// When updating the input text, just get the latest plain text input and replace the selected text with the new mention
|
|
869
|
+
const updatedPlainTextInput = `${plainTextInput.current.substring(0, (selectionPosition.start - (1 + searchStringRef.current.length)))}${item.promptText + " "}${plainTextInput.current.substring((selectionPosition.end), plainTextInput.current.length)}`;
|
|
870
|
+
plainTextInput.current = updatedPlainTextInput;
|
|
871
|
+
let key = (selectionPosition.start - (1 + searchStringRef.current.length)) + "_" + ((selectionPosition.start - (searchStringRef.current.length + 1)) + item.promptText.length);
|
|
872
|
+
let updatedMap = insertMentionAt(mentionMap.current, mentionPos, key, { ...item, trackingCharacter: activeCharacter.current });
|
|
873
|
+
mentionMap.current = updatedMap;
|
|
874
|
+
setFormattedInputMessage();
|
|
875
|
+
};
|
|
876
|
+
const setFormattedInputMessage = () => {
|
|
877
|
+
let textComponents = getRegexString(plainTextInput.current);
|
|
878
|
+
allFormatters.current.forEach((formatter, key) => {
|
|
879
|
+
let resp = formatter.getFormattedText(textComponents);
|
|
880
|
+
textComponents = resp;
|
|
881
|
+
});
|
|
882
|
+
inputValueRef.current = textComponents;
|
|
883
|
+
setInputMessage(textComponents);
|
|
884
|
+
};
|
|
885
|
+
function escapeRegExp(string) {
|
|
886
|
+
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
887
|
+
}
|
|
888
|
+
function extractTextFromCursor(inputText, cursorPosition) {
|
|
889
|
+
const leftText = inputText.substring(0, cursorPosition);
|
|
890
|
+
// Escape the mentionPrefixes to safely use them in a regex pattern
|
|
891
|
+
const escapedPrefixes = trackingCharacters.current.map(escapeRegExp).join('|');
|
|
892
|
+
// Build a dynamic regex pattern that matches any of the mention prefixes.
|
|
893
|
+
// This pattern will match a prefix followed by any combination of word characters
|
|
894
|
+
// and spaces, including a trailing space.
|
|
895
|
+
const mentionRegex = new RegExp(`(?:^|\\s)(${escapedPrefixes})([^${escapedPrefixes}\\s][^${escapedPrefixes}]*)$`);
|
|
896
|
+
const match = leftText.match(mentionRegex);
|
|
897
|
+
// If a match is found, return the first capturing group, which is the username
|
|
898
|
+
return match && substringUpToNthSpace(match[2], 4) || "";
|
|
899
|
+
}
|
|
900
|
+
function substringUpToNthSpace(str, n) {
|
|
901
|
+
// Split the string by spaces, slice to the (n-1) elements, and then rejoin with spaces
|
|
902
|
+
return str.split(' ', n).join(' ');
|
|
903
|
+
}
|
|
904
|
+
const insertMentionAt = (mentionMap, insertAt, key, value) => {
|
|
905
|
+
// Convert the hashmap to an array of [key, value] pairs
|
|
906
|
+
let mentionsArray = Array.from(mentionMap);
|
|
907
|
+
// Insert the new mention into the array at the calculated index
|
|
908
|
+
mentionsArray.splice(insertAt, 0, [key, value]);
|
|
909
|
+
return new Map(mentionsArray);
|
|
910
|
+
};
|
|
911
|
+
/**
|
|
912
|
+
* Function to check if the id exists in the mentionMap
|
|
913
|
+
*/
|
|
914
|
+
const ifIdExists = (id, hashmap) => {
|
|
915
|
+
let exists = false;
|
|
916
|
+
hashmap.forEach((value, key) => {
|
|
917
|
+
if (value.id === id) {
|
|
918
|
+
exists = true;
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
return exists;
|
|
922
|
+
};
|
|
923
|
+
const onSuggestionListEndReached = () => {
|
|
924
|
+
let targetedFormatter = allFormatters.current.get(activeCharacter.current);
|
|
925
|
+
if (!targetedFormatter)
|
|
926
|
+
return;
|
|
927
|
+
let fetchingNext = targetedFormatter.fetchNext();
|
|
928
|
+
fetchingNext !== null && setSuggestionListLoader(true);
|
|
929
|
+
};
|
|
930
|
+
const getMentionLimitView = () => {
|
|
931
|
+
let targetedFormatter = allFormatters.current.get(activeCharacter.current);
|
|
932
|
+
let shouldWarn;
|
|
933
|
+
let limit;
|
|
934
|
+
if (targetedFormatter?.getLimit && targetedFormatter?.getLimit()) {
|
|
935
|
+
limit = targetedFormatter?.getLimit();
|
|
936
|
+
if (targetedFormatter.getUniqueUsersList && targetedFormatter.getUniqueUsersList()?.size >= limit) {
|
|
937
|
+
shouldWarn = true;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
if (!shouldWarn)
|
|
941
|
+
return null;
|
|
942
|
+
let errorString = targetedFormatter?.getErrorString ? targetedFormatter?.getErrorString() : `${localize("MENTION_UPTO")} ${limit} ${limit === 1 ? localize("TIME") : localize("TIMES")} ${localize("AT_A_TIME")}.`;
|
|
943
|
+
return (<View style={{
|
|
944
|
+
flexDirection: "row",
|
|
945
|
+
alignItems: "center",
|
|
946
|
+
paddingTop: 5,
|
|
947
|
+
paddingLeft: 5,
|
|
948
|
+
borderTopWidth: 1,
|
|
949
|
+
borderTopColor: theme.palette.getAccent300()
|
|
950
|
+
}}>
|
|
951
|
+
<Image style={{
|
|
952
|
+
tintColor: theme.palette.getAccent500(),
|
|
953
|
+
height: 20,
|
|
954
|
+
width: 20
|
|
955
|
+
}} source={ICONS.INFO}/>
|
|
956
|
+
<Text style={{
|
|
957
|
+
marginLeft: 5,
|
|
958
|
+
color: theme.palette.getAccent500(),
|
|
959
|
+
...theme.typography.text1
|
|
960
|
+
}}>{errorString}</Text>
|
|
961
|
+
</View>);
|
|
962
|
+
};
|
|
510
963
|
return (<>
|
|
511
|
-
|
|
964
|
+
{!isVisible && typeof CustomView === "function" && <CustomView />}
|
|
965
|
+
<Modal animationType="slide" visible={isVisible} onRequestClose={() => {
|
|
512
966
|
setIsVisible(false);
|
|
513
967
|
}} presentationStyle={'pageSheet'}>
|
|
514
968
|
{CustomView && CustomView}
|
|
515
969
|
</Modal>
|
|
516
|
-
<KeyboardAvoidingView key={id} behavior={Platform.OS === 'ios' ? 'padding' : 'height'} keyboardVerticalOffset={Platform.select({ ios:
|
|
970
|
+
<KeyboardAvoidingView key={id} behavior={Platform.OS === 'ios' ? 'padding' : 'height'} keyboardVerticalOffset={Platform.select({ ios: kbOffset })} {...keyboardAvoidingViewProps}>
|
|
517
971
|
<View style={[
|
|
518
972
|
Style.container,
|
|
519
973
|
{
|
|
520
|
-
|
|
974
|
+
paddingTop: CustomViewHeader ? 0 : 8
|
|
521
975
|
},
|
|
522
976
|
messageComposerStyle,
|
|
523
977
|
]}>
|
|
524
978
|
<EmojiBoard hideSearch={true} shouldShow={showEmojiboard} onClose={() => setShowEmojiboard(false)} emojiSelection={(emoji) => {
|
|
525
|
-
let pre =
|
|
526
|
-
let post =
|
|
979
|
+
let pre = plainTextInput.current.substring(0, selectionPosition.start);
|
|
980
|
+
let post = plainTextInput.current.substring(selectionPosition.end, plainTextInput.current.length);
|
|
981
|
+
inputValueRef.current = selectionPosition.start && selectionPosition.end ? `${pre}${emoji}${post}` : `${inputValueRef.current}${emoji}`;
|
|
527
982
|
setInputMessage((prev) => selectionPosition.start && selectionPosition.end
|
|
528
983
|
? `${pre}${emoji}${post}`
|
|
529
984
|
: `${prev}${emoji}`);
|
|
@@ -536,6 +991,10 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
536
991
|
actionSheetSeparatorTint: messageComposerStyle.actionSheetSeparatorTint,
|
|
537
992
|
}
|
|
538
993
|
: {}),
|
|
994
|
+
layoutModeIconTint: messageComposerStyle.actionSheetLayoutModeIconTint,
|
|
995
|
+
titleColor: messageComposerStyle.actionSheetTitleColor,
|
|
996
|
+
listItemIconTint: messageComposerStyle.attachIconTint,
|
|
997
|
+
listItemTitleFont: messageComposerStyle.actionSheetTitleFont
|
|
539
998
|
}} cometChatBottomSheetStyle={messageComposerStyle.actionSheetCancelButtonIconTint
|
|
540
999
|
? {
|
|
541
1000
|
lineColor: messageComposerStyle.actionSheetCancelButtonIconTint,
|
|
@@ -548,11 +1007,34 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
548
1007
|
lineColor: messageComposerStyle.actionSheetCancelButtonIconTint,
|
|
549
1008
|
}
|
|
550
1009
|
: {}} mediaRecorderStyle={mediaRecorderStyle} pauseIconUrl={pauseIconUrl} playIconUrl={playIconUrl} recordIconUrl={recordIconUrl} deleteIconUrl={deleteIconUrl} stopIconUrl={stopIconUrl} submitIconUrl={submitIconUrl}/>
|
|
1010
|
+
<AIOptions sheetRef={bottomSheetRef} shouldShow={showAIOptions} onClose={() => {
|
|
1011
|
+
setShowAIOptions(false);
|
|
1012
|
+
}} aiOptions={AIOptionItems} aiStyle={AIStyles}/>
|
|
1013
|
+
|
|
1014
|
+
{(mentionsSearchData.length > 0 && plainTextInput.current.length > 0)
|
|
1015
|
+
&& <View style={{
|
|
1016
|
+
borderTopWidth: 1, borderColor: theme.palette.getAccent300(),
|
|
1017
|
+
paddingVertical: 5, paddingHorizontal: 0,
|
|
1018
|
+
maxHeight: Dimensions.get("window").height * .22, justifyContent: "flex-end",
|
|
1019
|
+
paddingBottom: messagePreview !== null ? 60 : undefined,
|
|
1020
|
+
zIndex: 1
|
|
1021
|
+
}}>
|
|
1022
|
+
<CometChatSuggestionList data={mentionsSearchData} avatarStyle={{
|
|
1023
|
+
height: 33, width: 33,
|
|
1024
|
+
}} listItemStyle={{
|
|
1025
|
+
height: 50,
|
|
1026
|
+
}} separatorColor={theme.palette.getAccent100()} onPress={onMentionPress} onEndReached={onSuggestionListEndReached} loading={suggestionListLoader}/>
|
|
1027
|
+
{getMentionLimitView()}
|
|
1028
|
+
</View>}
|
|
1029
|
+
|
|
551
1030
|
{HeaderView ? (<HeaderView />) : (CustomViewHeader && <CustomViewHeader />)}
|
|
552
1031
|
<View>
|
|
553
1032
|
<MessagePreviewTray onClose={() => setMessagePreview(null)} text={messagePreview?.message?.text} shouldShow={messagePreview != null}/>
|
|
554
1033
|
</View>
|
|
555
|
-
<CometChatMessageInput messageInputRef={messageInputRef} text={inputMessage} placeHolderText={placeHolderText} style={messageComposerStyle} onSelectionChange={({ nativeEvent: { selection } }) =>
|
|
1034
|
+
<CometChatMessageInput messageInputRef={messageInputRef} text={inputMessage} placeHolderText={placeHolderText} style={messageComposerStyle} onSelectionChange={({ nativeEvent: { selection } }) => {
|
|
1035
|
+
setSelectionPosition(selection);
|
|
1036
|
+
openList(selection);
|
|
1037
|
+
}} maxHeight={maxHeight ?? null} onChangeText={textChangeHandler} SecondaryButtonView={SecondaryButtonViewElem} AuxiliaryButtonView={AuxiliaryButtonViewElem} PrimaryButtonView={PrimaryButtonView} auxiliaryButtonAlignment={auxiliaryButtonsAlignment ? auxiliaryButtonsAlignment : 'right'}/>
|
|
556
1038
|
{FooterView ? (<FooterView />) : (CustomViewFooter && <CustomViewFooter />)}
|
|
557
1039
|
</View>
|
|
558
1040
|
</KeyboardAvoidingView>
|
|
@@ -564,7 +1046,7 @@ CometChatMessageComposer.defaultProps = {
|
|
|
564
1046
|
// style: new MessageComposerStyle({}),
|
|
565
1047
|
attachmentIcon: ICONS.ADD,
|
|
566
1048
|
liveReactionIcon: ICONS.HEART,
|
|
567
|
-
hideLiveReaction:
|
|
1049
|
+
hideLiveReaction: true,
|
|
568
1050
|
disableSoundForMessages: true,
|
|
569
1051
|
messageComposerStyle: {},
|
|
570
1052
|
};
|