@cometchat/chat-uikit-react-native 4.3.13 → 4.3.15
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/android/.gradle/7.4/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.4/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/config.properties +2 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/.idea/gradle.xml +2 -2
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +2 -1
- package/lib/AI/AIAssistBot/AIAssistBotDecorator.js +49 -35
- package/lib/AI/AIAssistBot/AIAssistBotDecorator.js.map +1 -1
- package/lib/AI/AIAssistBot/AIAssistBotExtension.js +0 -1
- package/lib/AI/AIAssistBot/AIAssistBotExtension.js.map +1 -1
- package/lib/AI/AIAssistBot/AIAssistBotStyle.js +7 -12
- package/lib/AI/AIAssistBot/AIAssistBotStyle.js.map +1 -1
- package/lib/AI/AIAssistBot/AIAssistBotView.d.ts +3 -2
- package/lib/AI/AIAssistBot/AIAssistBotView.js +54 -65
- package/lib/AI/AIAssistBot/AIAssistBotView.js.map +1 -1
- package/lib/AI/AIAssistBot/configuration.js +2 -12
- package/lib/AI/AIAssistBot/configuration.js.map +1 -1
- package/lib/AI/AIBaseConfiguration.d.ts +11 -0
- package/lib/AI/AIBaseConfiguration.js +3 -7
- package/lib/AI/AIBaseConfiguration.js.map +1 -1
- package/lib/AI/AIBaseStyle.js +0 -9
- package/lib/AI/AIBaseStyle.js.map +1 -1
- package/lib/AI/AIConversationStarter/AIConversationStarter.js +0 -1
- package/lib/AI/AIConversationStarter/AIConversationStarter.js.map +1 -1
- package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +30 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js +48 -53
- package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js.map +1 -1
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.d.ts +1 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js +0 -5
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js.map +1 -1
- package/lib/AI/AIConversationStarter/configuration.js +0 -2
- package/lib/AI/AIConversationStarter/configuration.js.map +1 -1
- package/lib/AI/AIConversationStarter/style.d.ts +20 -9
- package/lib/AI/AIConversationStarter/style.js +23 -42
- package/lib/AI/AIConversationStarter/style.js.map +1 -1
- package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js +63 -53
- package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js.map +1 -1
- package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js +0 -1
- package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js.map +1 -1
- package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js +5 -10
- package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js.map +1 -1
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.d.ts +2 -1
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.js +39 -33
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.js.map +1 -1
- package/lib/AI/AIConversationSummary/configuration.js +2 -4
- package/lib/AI/AIConversationSummary/configuration.js.map +1 -1
- package/lib/AI/AIExtensionDataSource.js +1 -0
- package/lib/AI/AIExtensionDataSource.js.map +1 -1
- package/lib/AI/AIOptionsStyle.js +0 -6
- package/lib/AI/AIOptionsStyle.js.map +1 -1
- package/lib/AI/AISmartReplies/AISmartReplies.js +0 -1
- package/lib/AI/AISmartReplies/AISmartReplies.js.map +1 -1
- package/lib/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +37 -0
- package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js +89 -101
- package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js.map +1 -1
- package/lib/AI/AISmartReplies/AISmartRepliesStyle.js +1 -8
- package/lib/AI/AISmartReplies/AISmartRepliesStyle.js.map +1 -1
- package/lib/AI/AISmartReplies/configuration.d.ts +2 -0
- package/lib/AI/AISmartReplies/configuration.js +0 -2
- package/lib/AI/AISmartReplies/configuration.js.map +1 -1
- package/lib/AI/CardView.d.ts +2 -1
- package/lib/AI/CardView.js +7 -18
- package/lib/AI/CardView.js.map +1 -1
- package/lib/AI/CardViewStyle.js +6 -22
- package/lib/AI/CardViewStyle.js.map +1 -1
- package/lib/AI/style.d.ts +94 -15
- package/lib/AI/style.js +35 -83
- package/lib/AI/style.js.map +1 -1
- package/lib/AI/utils.js +1 -15
- package/lib/AI/utils.js.map +1 -1
- package/lib/CometChatAddMembers/AddMembersConfiguration.d.ts +42 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.js +0 -32
- package/lib/CometChatAddMembers/AddMembersConfiguration.js.map +1 -1
- package/lib/CometChatAddMembers/CometChatAddMembers.d.ts +2 -1
- package/lib/CometChatAddMembers/CometChatAddMembers.js +19 -6
- package/lib/CometChatAddMembers/CometChatAddMembers.js.map +1 -1
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.d.ts +45 -0
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js +0 -34
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js.map +1 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +2 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js +28 -15
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +1 -1
- package/lib/CometChatContacts/CometChatContacts.d.ts +2 -1
- package/lib/CometChatContacts/CometChatContacts.js +29 -29
- package/lib/CometChatContacts/CometChatContacts.js.map +1 -1
- package/lib/CometChatContacts/Header.d.ts +31 -0
- package/lib/CometChatContacts/Header.js +50 -60
- package/lib/CometChatContacts/Header.js.map +1 -1
- package/lib/CometChatContacts/styles.d.ts +100 -1
- package/lib/CometChatConversations/CometChatConversations.d.ts +208 -0
- package/lib/CometChatConversations/CometChatConversations.js +126 -151
- package/lib/CometChatConversations/CometChatConversations.js.map +1 -1
- package/lib/CometChatConversations/ConversationsConfiguration.d.ts +113 -0
- package/lib/CometChatConversations/ConversationsConfiguration.js +0 -48
- package/lib/CometChatConversations/ConversationsConfiguration.js.map +1 -1
- package/lib/CometChatConversations/ConversationsStyle.js +0 -16
- package/lib/CometChatConversations/ConversationsStyle.js.map +1 -1
- package/lib/CometChatConversations/style.d.ts +65 -1
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.d.ts +2 -1
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js +31 -49
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js.map +1 -1
- package/lib/CometChatConversationsWithMessages/styles.d.ts +12 -1
- package/lib/CometChatCreateGroup/CometChatCreateGroup.d.ts +2 -1
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js +74 -92
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js.map +1 -1
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js +0 -6
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js.map +1 -1
- package/lib/CometChatCreateGroup/Header.d.ts +2 -1
- package/lib/CometChatCreateGroup/Header.js +15 -19
- package/lib/CometChatCreateGroup/Header.js.map +1 -1
- package/lib/CometChatCreateGroup/style.d.ts +46 -1
- package/lib/CometChatDetails/CometChatDetails.d.ts +281 -0
- package/lib/CometChatDetails/CometChatDetails.js +77 -99
- package/lib/CometChatDetails/CometChatDetails.js.map +1 -1
- package/lib/CometChatDetails/DetailsConfiguration.d.ts +35 -0
- package/lib/CometChatDetails/DetailsConfiguration.js +0 -17
- package/lib/CometChatDetails/DetailsConfiguration.js.map +1 -1
- package/lib/CometChatDetails/Header.d.ts +2 -1
- package/lib/CometChatDetails/Header.js +8 -10
- package/lib/CometChatDetails/Header.js.map +1 -1
- package/lib/CometChatDetails/listners.js +1 -1
- package/lib/CometChatDetails/listners.js.map +1 -1
- package/lib/CometChatDetails/styles.d.ts +28 -1
- package/lib/CometChatGroupMembers/CometChatGroupMembers.d.ts +96 -0
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js +76 -120
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.d.ts +86 -0
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js +3 -41
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js.map +1 -1
- package/lib/CometChatGroupMembers/GroupMemberStyle.js +0 -19
- package/lib/CometChatGroupMembers/GroupMemberStyle.js.map +1 -1
- package/lib/CometChatGroupMembers/GroupScopeStyle.js +0 -11
- package/lib/CometChatGroupMembers/GroupScopeStyle.js.map +1 -1
- package/lib/CometChatGroupMembers/style.d.ts +31 -1
- package/lib/CometChatGroups/CometChatGroups.d.ts +141 -0
- package/lib/CometChatGroups/CometChatGroups.js +53 -73
- package/lib/CometChatGroups/CometChatGroups.js.map +1 -1
- package/lib/CometChatGroups/GroupsConfiguration.d.ts +73 -0
- package/lib/CometChatGroups/GroupsConfiguration.js +32 -55
- package/lib/CometChatGroups/GroupsConfiguration.js.map +1 -1
- package/lib/CometChatGroups/GroupsStyle.js +0 -21
- package/lib/CometChatGroups/GroupsStyle.js.map +1 -1
- package/lib/CometChatGroups/style.d.ts +16 -1
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.d.ts +2 -1
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js +18 -33
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -1
- package/lib/CometChatGroupsWithMessages/styles.d.ts +12 -1
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.d.ts +2 -1
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js +33 -40
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js.map +1 -1
- package/lib/CometChatJoinProtectedGroup/Header.d.ts +2 -1
- package/lib/CometChatJoinProtectedGroup/Header.js +7 -11
- package/lib/CometChatJoinProtectedGroup/Header.js.map +1 -1
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js +0 -7
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js.map +1 -1
- package/lib/CometChatJoinProtectedGroup/style.d.ts +11 -1
- package/lib/CometChatMessageComposer/CometChatMessageComposer.d.ts +294 -0
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +207 -241
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.d.ts +61 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js +0 -37
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js.map +1 -1
- package/lib/CometChatMessageComposer/styles.d.ts +26 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +150 -0
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +53 -77
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.d.ts +36 -0
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js +0 -17
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js.map +1 -1
- package/lib/CometChatMessageHeader/styles.d.ts +16 -1
- package/lib/CometChatMessageInformation/CometChatMessageInformation.d.ts +36 -0
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js +66 -84
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +1 -1
- package/lib/CometChatMessageInformation/styles.d.ts +23 -1
- package/lib/CometChatMessageList/CometChatMessageList.d.ts +116 -0
- package/lib/CometChatMessageList/CometChatMessageList.js +250 -379
- package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
- package/lib/CometChatMessageList/MessageListConfiguration.d.ts +177 -0
- package/lib/CometChatMessageList/MessageListConfiguration.js +0 -63
- package/lib/CometChatMessageList/MessageListConfiguration.js.map +1 -1
- package/lib/CometChatMessageList/MessageListStyle.js +0 -13
- package/lib/CometChatMessageList/MessageListStyle.js.map +1 -1
- package/lib/CometChatMessageList/style.d.ts +52 -1
- package/lib/CometChatMessages/CometChatMessages.d.ts +42 -0
- package/lib/CometChatMessages/CometChatMessages.js +51 -65
- package/lib/CometChatMessages/CometChatMessages.js.map +1 -1
- package/lib/CometChatMessages/MessageStyle.js +0 -7
- package/lib/CometChatMessages/MessageStyle.js.map +1 -1
- package/lib/CometChatMessages/MessagesConfiguration.d.ts +68 -0
- package/lib/CometChatMessages/MessagesConfiguration.js +0 -16
- package/lib/CometChatMessages/MessagesConfiguration.js.map +1 -1
- package/lib/CometChatMessages/style.d.ts +21 -1
- package/lib/CometChatTabs/CometChatTabs.d.ts +2 -1
- package/lib/CometChatTabs/CometChatTabs.js +13 -48
- package/lib/CometChatTabs/CometChatTabs.js.map +1 -1
- package/lib/CometChatTabs/CometChatTabsStyle.d.ts +2 -0
- package/lib/CometChatTabs/CometChatTabsStyle.js +0 -5
- package/lib/CometChatTabs/CometChatTabsStyle.js.map +1 -1
- package/lib/CometChatTabs/TabItemStyle.js +0 -8
- package/lib/CometChatTabs/TabItemStyle.js.map +1 -1
- package/lib/CometChatTabs/TabItems.d.ts +10 -0
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.d.ts +113 -0
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js +36 -49
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js.map +1 -1
- package/lib/CometChatThreadedMessages/Header.d.ts +4 -3
- package/lib/CometChatThreadedMessages/Header.js +4 -6
- package/lib/CometChatThreadedMessages/Header.js.map +1 -1
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.d.ts +40 -0
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js +0 -22
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js.map +1 -1
- package/lib/CometChatThreadedMessages/style.d.ts +25 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +2 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js +19 -12
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js.map +1 -1
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.d.ts +40 -0
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js +0 -28
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js.map +1 -1
- package/lib/CometChatUsers/CometChatUsers.d.ts +69 -0
- package/lib/CometChatUsers/CometChatUsers.js +22 -16
- package/lib/CometChatUsers/CometChatUsers.js.map +1 -1
- package/lib/CometChatUsers/UsersConfiguration.d.ts +42 -0
- package/lib/CometChatUsers/UsersConfiguration.js +0 -32
- package/lib/CometChatUsers/UsersConfiguration.js.map +1 -1
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.d.ts +2 -1
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js +9 -20
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -1
- package/lib/CometChatUsersWithMessages/styles.d.ts +12 -1
- package/lib/calls/CallUtils.js +2 -2
- package/lib/calls/CallUtils.js.map +1 -1
- package/lib/calls/CallingDetailsUtils.js +40 -47
- package/lib/calls/CallingDetailsUtils.js.map +1 -1
- package/lib/calls/CallingExtension.js +0 -1
- package/lib/calls/CallingExtension.js.map +1 -1
- package/lib/calls/CallingExtentionDecorator.d.ts +5 -4
- package/lib/calls/CallingExtentionDecorator.js +100 -97
- package/lib/calls/CallingExtentionDecorator.js.map +1 -1
- package/lib/calls/CallingPackage.js +2 -1
- package/lib/calls/CallingPackage.js.map +1 -1
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js +0 -3
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.js +0 -6
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.js.map +1 -1
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.d.ts +2 -1
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js +13 -12
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js.map +1 -1
- package/lib/calls/CometChatCallBubble/styles.d.ts +21 -1
- package/lib/calls/CometChatCallButtons/CallButtonStyle.js +0 -3
- package/lib/calls/CometChatCallButtons/CallButtonStyle.js.map +1 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js +0 -7
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.d.ts +2 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +41 -43
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +1 -1
- package/lib/calls/CometChatCallButtons/style.d.ts +12 -1
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.d.ts +119 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js +0 -48
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js +0 -3
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js.map +1 -1
- package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.d.ts +72 -0
- package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js +45 -71
- package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js.map +1 -1
- package/lib/calls/CometChatCallLogDetails/style.d.ts +13 -1
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.d.ts +72 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js +0 -23
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js +0 -17
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js.map +1 -1
- package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.d.ts +45 -0
- package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js +56 -90
- package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js.map +1 -1
- package/lib/calls/CometChatCallLogHistory/style.d.ts +22 -1
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.d.ts +65 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js +0 -22
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js +0 -9
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js.map +1 -1
- package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.d.ts +39 -0
- package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js +27 -49
- package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js.map +1 -1
- package/lib/calls/CometChatCallLogParticipants/style.d.ts +22 -1
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.d.ts +71 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js +0 -23
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js +0 -10
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js.map +1 -1
- package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.d.ts +41 -0
- package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js +46 -64
- package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js.map +1 -1
- package/lib/calls/CometChatCallLogRecordings/style.d.ts +22 -1
- package/lib/calls/CometChatCallLogs/CallLogsConfiguration.d.ts +99 -0
- package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js +0 -34
- package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js.map +1 -1
- package/lib/calls/CometChatCallLogs/CallLogsStyle.js +0 -18
- package/lib/calls/CometChatCallLogs/CallLogsStyle.js.map +1 -1
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.d.ts +56 -0
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js +73 -104
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js.map +1 -1
- package/lib/calls/CometChatCallLogs/style.d.ts +22 -1
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.d.ts +2 -1
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js +8 -10
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js.map +1 -1
- package/lib/calls/CometChatCallLogsWithDetails/style.d.ts +8 -1
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +21 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +20 -47
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +1 -1
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js +0 -13
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js.map +1 -1
- package/lib/calls/CometChatIncomingCall/styles.d.ts +9 -1
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.d.ts +2 -1
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js +6 -8
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js.map +1 -1
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js +0 -4
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js.map +1 -1
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +2 -1
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +17 -33
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -1
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js +0 -5
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js.map +1 -1
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js +0 -4
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js.map +1 -1
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js +0 -9
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js.map +1 -1
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +4 -3
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js +10 -15
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +1 -1
- package/lib/extensions/CollaborativeBubble/styles.d.ts +35 -1
- package/lib/extensions/CollaborativeBubble/styles.js +15 -39
- package/lib/extensions/CollaborativeBubble/styles.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js +0 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js +0 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +2 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +9 -9
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js +0 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js.map +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js +0 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js.map +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +3 -2
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +10 -11
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +1 -1
- package/lib/extensions/ExtensionModerator.d.ts +1 -1
- package/lib/extensions/ExtensionModerator.js +1 -1
- package/lib/extensions/ExtensionModerator.js.map +1 -1
- package/lib/extensions/ImageModeration/ImageModerationDecorator.d.ts +12 -0
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js +1 -2
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js.map +1 -1
- package/lib/extensions/ImageModeration/ImageModerationExtension.js +0 -1
- package/lib/extensions/ImageModeration/ImageModerationExtension.js.map +1 -1
- package/lib/extensions/ImageModeration/ImageModerationFilter.d.ts +2 -1
- package/lib/extensions/ImageModeration/ImageModerationFilter.js +16 -19
- package/lib/extensions/ImageModeration/ImageModerationFilter.js.map +1 -1
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js +0 -6
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js.map +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewBubble.d.ts +12 -0
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js +25 -36
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js.map +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js +0 -4
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js.map +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtention.d.ts +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js +0 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js.map +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.d.ts +12 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js +2 -3
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js.map +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.d.ts +2 -1
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js +24 -43
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js.map +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +20 -0
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +82 -112
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js +0 -1
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js.map +1 -1
- package/lib/extensions/Polls/Header.d.ts +10 -9
- package/lib/extensions/Polls/Header.js +15 -19
- package/lib/extensions/Polls/Header.js.map +1 -1
- package/lib/extensions/Polls/Polls.d.ts +2 -1
- package/lib/extensions/Polls/Polls.js +90 -109
- package/lib/extensions/Polls/Polls.js.map +1 -1
- package/lib/extensions/Polls/PollsBubble.d.ts +2 -1
- package/lib/extensions/Polls/PollsBubble.js +70 -90
- package/lib/extensions/Polls/PollsBubble.js.map +1 -1
- package/lib/extensions/Polls/PollsDecorator.d.ts +2 -1
- package/lib/extensions/Polls/PollsDecorator.js +8 -8
- package/lib/extensions/Polls/PollsDecorator.js.map +1 -1
- package/lib/extensions/Polls/PollsExtension.js +0 -1
- package/lib/extensions/Polls/PollsExtension.js.map +1 -1
- package/lib/extensions/Polls/style.d.ts +45 -1
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.d.ts +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +43 -42
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js.map +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js +0 -1
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js.map +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesView.d.ts +4 -3
- package/lib/extensions/SmartReplies/SmartRepliesView.js +38 -45
- package/lib/extensions/SmartReplies/SmartRepliesView.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +2 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js +16 -30
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.d.ts +2 -2
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js +2 -4
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js +3 -10
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js +7 -6
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.d.ts +55 -1
- package/lib/extensions/Stickers/StickerConfiguration.js +1 -6
- package/lib/extensions/Stickers/StickerConfiguration.js.map +1 -1
- package/lib/extensions/Stickers/StickersBubble.d.ts +2 -1
- package/lib/extensions/Stickers/StickersBubble.js +5 -10
- package/lib/extensions/Stickers/StickersBubble.js.map +1 -1
- package/lib/extensions/Stickers/StickersExtension.js +1 -5
- package/lib/extensions/Stickers/StickersExtension.js.map +1 -1
- package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +4 -3
- package/lib/extensions/Stickers/StickersExtensionDecorator.js +15 -19
- package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +1 -1
- package/lib/extensions/TextModeration/TextModerationConfiguration.d.ts +1 -1
- package/lib/extensions/TextModeration/TextModerationConfiguration.js +0 -1
- package/lib/extensions/TextModeration/TextModerationConfiguration.js.map +1 -1
- package/lib/extensions/TextModeration/TextModerationExtension.js +1 -1
- package/lib/extensions/TextModeration/TextModerationExtension.js.map +1 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +1 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js +0 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.d.ts +16 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +12 -23
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js +0 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/resources/index.d.ts +2 -2
- package/lib/extensions/ThumbnailGeneration/resources/index.js +2 -2
- package/lib/extensions/ThumbnailGeneration/resources/index.js.map +1 -1
- package/lib/shared/CometChatContext.d.ts +4 -2
- package/lib/shared/CometChatContext.js +1 -3
- package/lib/shared/CometChatContext.js.map +1 -1
- package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +1 -1
- package/lib/shared/CometChatUiKit/CometChatUIKit.js +87 -74
- package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -1
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.js.map +1 -1
- package/lib/shared/assets/images/index.d.ts +1 -0
- package/lib/shared/assets/images/index.js +2 -0
- package/lib/shared/assets/images/index.js.map +1 -1
- package/lib/shared/base/BaseStyle.js +0 -5
- package/lib/shared/base/BaseStyle.js.map +1 -1
- package/lib/shared/base/BorderStyle.js +0 -3
- package/lib/shared/base/BorderStyle.js.map +1 -1
- package/lib/shared/base/FontStyle.d.ts +2 -2
- package/lib/shared/base/FontStyle.js +0 -3
- package/lib/shared/base/FontStyle.js.map +1 -1
- package/lib/shared/base/ShadowStyle.js +0 -5
- package/lib/shared/base/ShadowStyle.js.map +1 -1
- package/lib/shared/constants/UIKitConstants.d.ts +9 -0
- package/lib/shared/constants/UIKitConstants.js +12 -1
- package/lib/shared/constants/UIKitConstants.js.map +1 -1
- package/lib/shared/events/CometChatMessageEvents/index.js +90 -90
- package/lib/shared/events/CometChatMessageEvents/index.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +176 -150
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +8 -8
- package/lib/shared/events/CometChatUIEventHandler/Listener.js +46 -94
- package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -1
- package/lib/shared/events/ListenerInitializer.js +2 -1
- package/lib/shared/events/ListenerInitializer.js.map +1 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.d.ts +162 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +116 -89
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +1 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js +0 -2
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js.map +1 -1
- package/lib/shared/formatters/CometChatTextFormatter.d.ts +170 -0
- package/lib/shared/formatters/CometChatTextFormatter.js +39 -61
- package/lib/shared/formatters/CometChatTextFormatter.js.map +1 -1
- package/lib/shared/formatters/CometChatUrlsFormatter/index.d.ts +39 -0
- package/lib/shared/formatters/CometChatUrlsFormatter/index.js +81 -88
- package/lib/shared/formatters/CometChatUrlsFormatter/index.js.map +1 -1
- package/lib/shared/framework/ChatConfigurator.js +3 -3
- package/lib/shared/framework/ChatConfigurator.js.map +1 -1
- package/lib/shared/framework/DataSource.d.ts +71 -0
- package/lib/shared/framework/DataSourceDecorator.d.ts +14 -14
- package/lib/shared/framework/DataSourceDecorator.js +0 -1
- package/lib/shared/framework/DataSourceDecorator.js.map +1 -1
- package/lib/shared/framework/ExtensionsDataSource.js +1 -0
- package/lib/shared/framework/ExtensionsDataSource.js.map +1 -1
- package/lib/shared/framework/MessageDataSource.d.ts +95 -0
- package/lib/shared/framework/MessageDataSource.js +162 -166
- package/lib/shared/framework/MessageDataSource.js.map +1 -1
- package/lib/shared/helper/SwipeRow.d.ts +68 -65
- package/lib/shared/helper/SwipeRow.js +33 -74
- package/lib/shared/helper/SwipeRow.js.map +1 -1
- package/lib/shared/helper/Toast.d.ts +2 -1
- package/lib/shared/helper/Toast.js +2 -3
- package/lib/shared/helper/Toast.js.map +1 -1
- package/lib/shared/helper/functions.d.ts +1 -1
- package/lib/shared/helper/functions.js +1 -1
- package/lib/shared/helper/functions.js.map +1 -1
- package/lib/shared/helper/types/index.d.ts +18 -0
- package/lib/shared/helper/useKeyboard.d.ts +1 -1
- package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js +14 -13
- package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js +18 -7
- package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js +18 -7
- package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.d.ts +9 -1
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js +16 -6
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.js +6 -7
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Day.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Components/Day.js +18 -20
- package/lib/shared/libs/CometChatCalendar/Components/Day.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Days.js +7 -8
- package/lib/shared/libs/CometChatCalendar/Components/Days.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Month.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Components/Month.js +8 -10
- package/lib/shared/libs/CometChatCalendar/Components/Month.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Month.test.d.ts +33 -1
- package/lib/shared/libs/CometChatCalendar/Components/Months.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Components/Months.js +5 -6
- package/lib/shared/libs/CometChatCalendar/Components/Months.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Months.test.d.ts +33 -33
- package/lib/shared/libs/CometChatCalendar/Components/Title.js +4 -5
- package/lib/shared/libs/CometChatCalendar/Components/Title.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js +1 -5
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.d.ts +3 -1
- package/lib/shared/libs/CometChatCalendar/Entities/Components.d.ts +11 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.d.ts +36 -1
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js +3 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Locales/index.js +1 -0
- package/lib/shared/libs/CometChatCalendar/Locales/index.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js +13 -27
- package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js +1 -4
- package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.d.ts +2 -1
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.js.map +1 -1
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js.map +1 -1
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.d.ts +8 -8
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js +340 -335
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js.map +1 -1
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.d.ts +4 -4
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js +11 -12
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js.map +1 -1
- package/lib/shared/libs/ImageZoom/helper.d.ts +3 -3
- package/lib/shared/libs/ImageZoom/helper.js +2 -1
- package/lib/shared/libs/ImageZoom/helper.js.map +1 -1
- package/lib/shared/libs/ImageZoom/types/index.d.ts +8 -8
- package/lib/shared/libs/VideoPlayer/Video.d.ts +3 -2
- package/lib/shared/libs/VideoPlayer/Video.js +172 -256
- package/lib/shared/libs/VideoPlayer/Video.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.d.ts +2 -2
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js +4 -7
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.d.ts +1 -1
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js +31 -20
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Back/Back.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js +2 -3
- package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.d.ts +2 -2
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js +30 -25
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Control.d.ts +2 -2
- package/lib/shared/libs/VideoPlayerControls/components/Control.js +15 -5
- package/lib/shared/libs/VideoPlayerControls/components/Control.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js +3 -4
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Error/styles.d.ts +19 -1
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js +2 -3
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js +2 -3
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.d.ts +14 -1
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.js +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.js +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.d.ts +4 -3
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js +27 -19
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.d.ts +19 -1
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.d.ts +2 -2
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js +11 -14
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.d.ts +35 -1
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.d.ts +2 -2
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js +2 -3
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.d.ts +10 -1
- package/lib/shared/libs/VideoPlayerControls/components/Title.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Title.js +2 -5
- package/lib/shared/libs/VideoPlayerControls/components/Title.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.d.ts +21 -1
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.js +7 -10
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.d.ts +2 -1
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js +5 -7
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js.map +1 -1
- package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.d.ts +29 -1
- package/lib/shared/libs/VideoPlayerControls/components/styles.d.ts +28 -1
- package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.d.ts +1 -1
- package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.d.ts +2 -2
- package/lib/shared/libs/VideoPlayerControls/styles.d.ts +15 -1
- package/lib/shared/libs/VideoPlayerControls/utils.js +3 -7
- package/lib/shared/libs/VideoPlayerControls/utils.js.map +1 -1
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.d.ts +2 -1
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js +14 -2
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js.map +1 -1
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.d.ts +1 -1
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.d.ts +127 -34
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js +121 -116
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js.map +1 -1
- package/lib/shared/libs/datePickerModal/Modal.d.ts +19 -14
- package/lib/shared/libs/datePickerModal/Modal.js +74 -64
- package/lib/shared/libs/datePickerModal/Modal.js.map +1 -1
- package/lib/shared/libs/luxon/src/datetime.d.ts +48 -48
- package/lib/shared/libs/luxon/src/datetime.js +13 -30
- package/lib/shared/libs/luxon/src/datetime.js.map +1 -1
- package/lib/shared/libs/luxon/src/duration.d.ts +19 -19
- package/lib/shared/libs/luxon/src/duration.js +16 -35
- package/lib/shared/libs/luxon/src/duration.js.map +1 -1
- package/lib/shared/libs/luxon/src/impl/conversions.js +4 -4
- package/lib/shared/libs/luxon/src/impl/conversions.js.map +1 -1
- package/lib/shared/libs/luxon/src/impl/english.d.ts +3 -3
- package/lib/shared/libs/luxon/src/impl/formatter.js +3 -3
- package/lib/shared/libs/luxon/src/impl/formatter.js.map +1 -1
- package/lib/shared/libs/luxon/src/impl/locale.d.ts +1 -1
- package/lib/shared/libs/luxon/src/impl/locale.js +19 -11
- package/lib/shared/libs/luxon/src/impl/locale.js.map +1 -1
- package/lib/shared/libs/luxon/src/impl/regexParser.js +1 -1
- package/lib/shared/libs/luxon/src/impl/regexParser.js.map +1 -1
- package/lib/shared/libs/luxon/src/impl/util.d.ts +10 -10
- package/lib/shared/libs/luxon/src/impl/util.js +1 -1
- package/lib/shared/libs/luxon/src/impl/util.js.map +1 -1
- package/lib/shared/libs/luxon/src/info.d.ts +27 -27
- package/lib/shared/libs/luxon/src/interval.d.ts +6 -6
- package/lib/shared/libs/luxon/src/interval.js +1 -1
- package/lib/shared/libs/luxon/src/interval.js.map +1 -1
- package/lib/shared/libs/luxon/src/settings.d.ts +2 -2
- package/lib/shared/libs/luxon/src/zones/IANAZone.d.ts +1 -1
- package/lib/shared/libs/luxon/src/zones/invalidZone.d.ts +1 -1
- package/lib/shared/libs/luxon/src/zones/systemZone.d.ts +1 -1
- package/lib/shared/modals/CometChatCallLogDetailsOptions.d.ts +14 -0
- package/lib/shared/modals/CometChatDetailsOption.d.ts +17 -0
- package/lib/shared/modals/CometChatMessageOption.d.ts +12 -0
- package/lib/shared/modals/CometChatMessageTemplate.d.ts +131 -0
- package/lib/shared/modals/CometChatMessageTemplate.js +1 -56
- package/lib/shared/modals/CometChatMessageTemplate.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js +4 -20
- package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js +0 -4
- package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js +2 -4
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js +1 -17
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js +4 -8
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js +0 -4
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js +4 -8
- package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js +1 -7
- package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js +0 -13
- package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js +1 -13
- package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js +0 -2
- package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js +0 -4
- package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js +1 -7
- package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js +1 -7
- package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js +10 -14
- package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js +0 -4
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js +0 -8
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js +6 -16
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js +3 -1
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js +6 -20
- package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js.map +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.d.ts +8 -8
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js +2 -13
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js.map +1 -1
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +32 -124
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js +124 -123
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js.map +1 -1
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.d.ts +2 -2
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js +79 -66
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js.map +1 -1
- package/lib/shared/resources/CometChatSoundManager/sound.d.ts +1 -1
- package/lib/shared/resources/CometChatSoundManager/sound.js +18 -7
- package/lib/shared/resources/CometChatSoundManager/sound.js.map +1 -1
- package/lib/shared/resources/CometChatTheme/CometChatTheme.d.ts +2 -2
- package/lib/shared/resources/CometChatTheme/CometChatTheme.js +0 -2
- package/lib/shared/resources/CometChatTheme/CometChatTheme.js.map +1 -1
- package/lib/shared/resources/CometChatTheme/Palette.d.ts +24 -24
- package/lib/shared/resources/CometChatTheme/Palette.js +66 -90
- package/lib/shared/resources/CometChatTheme/Palette.js.map +1 -1
- package/lib/shared/resources/CometChatTheme/Typography.d.ts +27 -27
- package/lib/shared/resources/CometChatTheme/Typography.js +0 -23
- package/lib/shared/resources/CometChatTheme/Typography.js.map +1 -1
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.d.ts +2 -1
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js +12 -20
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js.map +1 -1
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js +0 -1
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js.map +1 -1
- package/lib/shared/utils/CometChatLiveReactions/style.d.ts +5 -1
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +9 -8
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +11 -16
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +1 -1
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.d.ts +3 -3
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js +1 -1
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js.map +1 -1
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.d.ts +10 -10
- package/lib/shared/utils/CometChatMessagePreview/style.d.ts +10 -1
- package/lib/shared/utils/CometChatMessagePreview/style.js +13 -20
- package/lib/shared/utils/CometChatMessagePreview/style.js.map +1 -1
- package/lib/shared/utils/CommonUtils.js +3 -6
- package/lib/shared/utils/CommonUtils.js.map +1 -1
- package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +2 -1
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js +11 -7
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js.map +1 -1
- package/lib/shared/utils/InteractiveMessageUtils.js +28 -28
- package/lib/shared/utils/InteractiveMessageUtils.js.map +1 -1
- package/lib/shared/utils/MessageUtils.d.ts +2 -1
- package/lib/shared/utils/MessageUtils.js +4 -2
- package/lib/shared/utils/MessageUtils.js.map +1 -1
- package/lib/shared/utils/NetworkUtils.js +24 -16
- package/lib/shared/utils/NetworkUtils.js.map +1 -1
- package/lib/shared/utils/PermissionUtil.js +91 -74
- package/lib/shared/utils/PermissionUtil.js.map +1 -1
- package/lib/shared/utils/SchedulerUtils.d.ts +1 -7
- package/lib/shared/utils/SchedulerUtils.js.map +1 -1
- package/lib/shared/utils/TypeUtils.d.ts +3 -0
- package/lib/shared/utils/TypeUtils.js +2 -0
- package/lib/shared/utils/TypeUtils.js.map +1 -0
- package/lib/shared/utils/conversationUtils.js +51 -49
- package/lib/shared/utils/conversationUtils.js.map +1 -1
- package/lib/shared/utils/icsToJson.js +3 -2
- package/lib/shared/utils/icsToJson.js.map +1 -1
- package/lib/shared/utils/index.d.ts +1 -0
- package/lib/shared/views/CometChatAICard/CometChatAICard.d.ts +3 -1
- package/lib/shared/views/CometChatAICard/CometChatAICard.js +13 -29
- package/lib/shared/views/CometChatAICard/CometChatAICard.js.map +1 -1
- package/lib/shared/views/CometChatActionSheet/ActionItem.d.ts +9 -9
- package/lib/shared/views/CometChatActionSheet/ActionItem.js +0 -21
- package/lib/shared/views/CometChatActionSheet/ActionItem.js.map +1 -1
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.d.ts +3 -1
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js +2 -11
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js.map +1 -1
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +5 -4
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js +80 -102
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js.map +1 -1
- package/lib/shared/views/CometChatActionSheet/style.d.ts +44 -1
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js +0 -5
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.d.ts +2 -1
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +12 -27
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +1 -1
- package/lib/shared/views/CometChatAudioBubble/style.d.ts +28 -1
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js +0 -2
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js +0 -4
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js.map +1 -1
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.d.ts +2 -1
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js +24 -34
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js.map +1 -1
- package/lib/shared/views/CometChatAvatar/styles.d.ts +21 -1
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.js +0 -7
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatBadge/BadgeStyle.js +0 -2
- package/lib/shared/views/CometChatBadge/BadgeStyle.js.map +1 -1
- package/lib/shared/views/CometChatBadge/CometChatBadge.d.ts +2 -1
- package/lib/shared/views/CometChatBadge/CometChatBadge.js +12 -19
- package/lib/shared/views/CometChatBadge/CometChatBadge.js.map +1 -1
- package/lib/shared/views/CometChatBadge/styles.d.ts +13 -1
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.d.ts +2 -1
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +25 -43
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js.map +1 -1
- package/lib/shared/views/CometChatBottomSheet/style.d.ts +48 -1
- package/lib/shared/views/CometChatButton/CometChatButton.d.ts +2 -1
- package/lib/shared/views/CometChatButton/CometChatButton.js +10 -27
- package/lib/shared/views/CometChatButton/CometChatButton.js.map +1 -1
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.js +0 -6
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.js.map +1 -1
- package/lib/shared/views/CometChatButton/style.d.ts +6 -1
- package/lib/shared/views/CometChatCard/CometChatCard.d.ts +15 -0
- package/lib/shared/views/CometChatCard/CometChatCard.js +8 -21
- package/lib/shared/views/CometChatCard/CometChatCard.js.map +1 -1
- package/lib/shared/views/CometChatCard/CometChatCardStyle.js +0 -2
- package/lib/shared/views/CometChatCard/CometChatCardStyle.js.map +1 -1
- package/lib/shared/views/CometChatCard/style.d.ts +11 -1
- package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js +0 -6
- package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.d.ts +2 -1
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js +20 -29
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js.map +1 -1
- package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js +0 -8
- package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js.map +1 -1
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.d.ts +2 -1
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js +14 -29
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js.map +1 -1
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +2 -1
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js +50 -65
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js.map +1 -1
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js +0 -10
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js.map +1 -1
- package/lib/shared/views/CometChatConfirmDialog/style.d.ts +61 -1
- package/lib/shared/views/CometChatDate/CometChatDate.d.ts +3 -2
- package/lib/shared/views/CometChatDate/CometChatDate.js +4 -10
- package/lib/shared/views/CometChatDate/CometChatDate.js.map +1 -1
- package/lib/shared/views/CometChatDate/DateConfiguration.js +0 -3
- package/lib/shared/views/CometChatDate/DateConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatDate/DateStyle.js +0 -2
- package/lib/shared/views/CometChatDate/DateStyle.js.map +1 -1
- package/lib/shared/views/CometChatDate/style.d.ts +5 -1
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.d.ts +4 -2
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js +32 -36
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js.map +1 -1
- package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.d.ts +11 -1
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.d.ts +2 -1
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.js +12 -28
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.js.map +1 -1
- package/lib/shared/views/CometChatDropDown/DropDownStyle.js +0 -7
- package/lib/shared/views/CometChatDropDown/DropDownStyle.js.map +1 -1
- package/lib/shared/views/CometChatDropDown/resources/index.d.ts +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +5 -3
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +65 -72
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.d.ts +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js +2 -2
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js +4 -4
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.d.ts +5 -4
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js +0 -3
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.d.ts +1 -11
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js +1 -6
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/style.d.ts +44 -1
- package/lib/shared/views/CometChatEmojiKeyboard/style.js +2 -2
- package/lib/shared/views/CometChatEmojiKeyboard/style.js.map +1 -1
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.d.ts +2 -1
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js +20 -26
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +1 -1
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js +1 -6
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatFileBubble/style.d.ts +44 -1
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.d.ts +2 -1
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js +134 -140
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js.map +1 -1
- package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js +0 -16
- package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.d.ts +2 -1
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +27 -28
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +1 -1
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.d.ts +1 -1
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js +0 -1
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.d.ts +2 -1
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js +9 -16
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js.map +1 -1
- package/lib/shared/views/CometChatLabel/CometChatLabel.d.ts +2 -1
- package/lib/shared/views/CometChatLabel/CometChatLabel.js +3 -6
- package/lib/shared/views/CometChatLabel/CometChatLabel.js.map +1 -1
- package/lib/shared/views/CometChatLabel/LabelStyle.js +0 -2
- package/lib/shared/views/CometChatLabel/LabelStyle.js.map +1 -1
- package/lib/shared/views/CometChatList/CometChatList.d.ts +90 -0
- package/lib/shared/views/CometChatList/CometChatList.js +76 -89
- package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
- package/lib/shared/views/CometChatList/Header.d.ts +2 -1
- package/lib/shared/views/CometChatList/Header.js +50 -60
- package/lib/shared/views/CometChatList/Header.js.map +1 -1
- package/lib/shared/views/CometChatList/styles.d.ts +98 -1
- package/lib/shared/views/CometChatListItem/CometChatListItem.d.ts +3 -3
- package/lib/shared/views/CometChatListItem/CometChatListItem.js +59 -86
- package/lib/shared/views/CometChatListItem/CometChatListItem.js.map +1 -1
- package/lib/shared/views/CometChatListItem/ListItemStyle.js +0 -2
- package/lib/shared/views/CometChatListItem/ListItemStyle.js.map +1 -1
- package/lib/shared/views/CometChatListItem/style.d.ts +61 -1
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +2 -1
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +54 -52
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +1 -1
- package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js +0 -10
- package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js.map +1 -1
- package/lib/shared/views/CometChatMediaRecorder/style.d.ts +27 -1
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.d.ts +61 -0
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js +17 -24
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +1 -1
- package/lib/shared/views/CometChatMessageBubble/style.js +1 -0
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.d.ts +1 -1
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +29 -34
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +1 -1
- package/lib/shared/views/CometChatMessageInput/index.d.ts +2 -1
- package/lib/shared/views/CometChatMessageInput/index.js.map +1 -1
- package/lib/shared/views/CometChatMessageInput/styles.d.ts +7 -1
- package/lib/shared/views/CometChatPanel/CometChatPanel.d.ts +2 -1
- package/lib/shared/views/CometChatPanel/CometChatPanel.js +7 -21
- package/lib/shared/views/CometChatPanel/CometChatPanel.js.map +1 -1
- package/lib/shared/views/CometChatPanel/PanelStyle.js +0 -5
- package/lib/shared/views/CometChatPanel/PanelStyle.js.map +1 -1
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.d.ts +2 -1
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js +21 -26
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js.map +1 -1
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js +0 -3
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js.map +1 -1
- package/lib/shared/views/CometChatQuickReactions/index.d.ts +2 -1
- package/lib/shared/views/CometChatQuickReactions/index.js.map +1 -1
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.d.ts +2 -1
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.js +12 -24
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.js.map +1 -1
- package/lib/shared/views/CometChatQuickView/QuickViewStyle.js +0 -8
- package/lib/shared/views/CometChatQuickView/QuickViewStyle.js.map +1 -1
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.d.ts +2 -1
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js +12 -23
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js.map +1 -1
- package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js +0 -6
- package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js.map +1 -1
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.d.ts +20 -0
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.js +84 -91
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.js.map +1 -1
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.js +0 -11
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.js.map +1 -1
- package/lib/shared/views/CometChatReactionList/index.d.ts +2 -1
- package/lib/shared/views/CometChatReactionList/index.js.map +1 -1
- package/lib/shared/views/CometChatReactions/CometChatReactions.d.ts +3 -2
- package/lib/shared/views/CometChatReactions/CometChatReactions.js +44 -59
- package/lib/shared/views/CometChatReactions/CometChatReactions.js.map +1 -1
- package/lib/shared/views/CometChatReactions/ReactionsStyle.js +0 -5
- package/lib/shared/views/CometChatReactions/ReactionsStyle.js.map +1 -1
- package/lib/shared/views/CometChatReactions/style.d.ts +38 -1
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.d.ts +3 -2
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js +2 -7
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js.map +1 -1
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js +0 -6
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatReceipt/style.d.ts +7 -1
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.d.ts +2 -1
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js +473 -551
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js.map +1 -1
- package/lib/shared/views/CometChatSchedulerBubble/styles.d.ts +91 -1
- package/lib/shared/views/CometChatSchedulerBubble/styles.js +1 -1
- package/lib/shared/views/CometChatSchedulerBubble/styles.js.map +1 -1
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.d.ts +2 -1
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js +11 -21
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js.map +1 -1
- package/lib/shared/views/CometChatSingleSelect/SingleStyle.js +0 -6
- package/lib/shared/views/CometChatSingleSelect/SingleStyle.js.map +1 -1
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.d.ts +2 -1
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js +10 -15
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js.map +1 -1
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js +0 -2
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatStatusIndicator/styles.d.ts +12 -1
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.d.ts +2 -1
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js +14 -17
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js.map +1 -1
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js +5 -40
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js.map +1 -1
- package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js +0 -10
- package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js.map +1 -1
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.d.ts +2 -1
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js +6 -13
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js.map +1 -1
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js +1 -3
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.d.ts +2 -1
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.js +13 -16
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.js.map +1 -1
- package/lib/shared/views/CometChatTextInput/TextInputStyle.js +0 -3
- package/lib/shared/views/CometChatTextInput/TextInputStyle.js.map +1 -1
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.d.ts +2 -1
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js +39 -48
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js.map +1 -1
- package/lib/shared/views/CometChatTimeSlotSelector/styles.d.ts +25 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.d.ts +2 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +15 -17
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +1 -23
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/style.d.ts +7 -1
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.d.ts +2 -18
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js +7 -10
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js.map +1 -1
- package/lib/shared/views/SwipeRow/SwipeRow.js +24 -32
- package/lib/shared/views/SwipeRow/SwipeRow.js.map +1 -1
- package/lib/shared/views/SwipeRow/style.d.ts +28 -1
- package/package.json +1 -1
- package/src/AI/AIConversationSummary/resources/close.png +0 -0
- package/src/CometChatConversations/CometChatConversations.tsx +85 -72
- package/src/CometChatConversations/resources/close.png +0 -0
- package/src/CometChatConversations/resources/rightTick.png +0 -0
- package/src/CometChatCreateGroup/resources/close.png +0 -0
- package/src/CometChatCreateGroup/resources/rightTick.png +0 -0
- package/src/CometChatDetails/CometChatDetails.tsx +13 -19
- package/src/CometChatDetails/resources/close.png +0 -0
- package/src/CometChatGroupMembers/resources/rightTick.png +0 -0
- package/src/CometChatGroups/resources/close.png +0 -0
- package/src/CometChatGroups/resources/rightTick.png +0 -0
- package/src/CometChatJoinProtectedGroup/resources/close.png +0 -0
- package/src/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +34 -47
- package/src/CometChatMessageComposer/resources/Info.png +0 -0
- package/src/CometChatMessageComposer/resources/circle_add.png +0 -0
- package/src/CometChatMessageComposer/resources/close.png +0 -0
- package/src/CometChatMessageComposer/resources/image.png +0 -0
- package/src/CometChatMessageComposer/resources/send_message.png +0 -0
- package/src/CometChatMessageComposer/resources/stickers.png +0 -0
- package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +5 -4
- package/src/CometChatMessageList/CometChatMessageList.tsx +51 -65
- package/src/CometChatMessageList/resources/close.png +0 -0
- package/src/CometChatMessageList/resources/leftarrowcurve.png +0 -0
- package/src/CometChatMessages/CometChatMessages.tsx +1 -2
- package/src/CometChatMessages/resources/info.png +0 -0
- package/src/CometChatMessages/style.ts +0 -1
- package/src/CometChatThreadedMessages/resources/close.png +0 -0
- package/src/calls/CometChatCallButtons/resources/Call.png +0 -0
- package/src/calls/CometChatCallButtons/resources/Video.png +0 -0
- package/src/calls/CometChatCallLogHistory/CometChatCallLogHistory.tsx +6 -4
- package/src/calls/CometChatCallLogHistory/resources/Info.png +0 -0
- package/src/calls/CometChatCallLogRecordings/resources/download.png +0 -0
- package/src/calls/CometChatCallLogs/CallLogsConfiguration.ts +4 -4
- package/src/calls/CometChatCallLogs/CometChatCallLogs.tsx +9 -7
- package/src/calls/CometChatCallLogs/resources/Info.png +0 -0
- package/src/calls/CometChatOutgoingCall/resources/Close.png +0 -0
- package/src/calls/resources/Call.png +0 -0
- package/src/calls/resources/Video.png +0 -0
- package/src/extensions/CollaborativeDocument/resources/collaborative_document.png +0 -0
- package/src/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
- package/src/extensions/ImageModeration/ImageModerationFilter.tsx +0 -1
- package/src/extensions/LinkPreview/LinkPreviewBubble.tsx +20 -4
- package/src/extensions/MessageTranslation/resources/translate.png +0 -0
- package/src/extensions/Polls/resources/close.png +0 -0
- package/src/extensions/Polls/resources/document.png +0 -0
- package/src/extensions/Polls/resources/kickIcon.png +0 -0
- package/src/extensions/Polls/resources/rightTick.png +0 -0
- package/src/extensions/SmartReplies/resources/close.png +0 -0
- package/src/extensions/Stickers/resources/Stickers.png +0 -0
- package/src/shared/assets/images/checkmark.png +0 -0
- package/src/shared/assets/images/grey-double-tick-icon.png +0 -0
- package/src/shared/assets/images/grey-tick-icon.png +0 -0
- package/src/shared/framework/resources/audio-file.png +0 -0
- package/src/shared/framework/resources/circle_add.png +0 -0
- package/src/shared/framework/resources/copy.png +0 -0
- package/src/shared/framework/resources/delete.png +0 -0
- package/src/shared/framework/resources/edit.png +0 -0
- package/src/shared/framework/resources/file_upload.png +0 -0
- package/src/shared/framework/resources/image.png +0 -0
- package/src/shared/framework/resources/info.png +0 -0
- package/src/shared/framework/resources/messageInPrivate.png +0 -0
- package/src/shared/framework/resources/pause.png +0 -0
- package/src/shared/framework/resources/play.png +0 -0
- package/src/shared/framework/resources/send_message.png +0 -0
- package/src/shared/framework/resources/share.png +0 -0
- package/src/shared/framework/resources/thread.png +0 -0
- package/src/shared/framework/resources/video_upload.png +0 -0
- package/src/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
- package/src/shared/utils/CommonUtils.ts +43 -9
- package/src/shared/utils/DetailsUtils/DetailsUtils.tsx +116 -71
- package/src/shared/utils/DetailsUtils/resources/close.png +0 -0
- package/src/shared/views/CometChatActionSheet/resources/grid.png +0 -0
- package/src/shared/views/CometChatActionSheet/resources/list.png +0 -0
- package/src/shared/views/CometChatAudioBubble/CometChatAudioBubble.tsx +23 -3
- package/src/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
- package/src/shared/views/CometChatAudioBubble/resources/play.png +0 -0
- package/src/shared/views/CometChatFileBubble/CometChatFileBubble.tsx +26 -3
- package/src/shared/views/CometChatFileBubble/resources/download.png +0 -0
- package/src/shared/views/CometChatFileBubble/resources/file_upload.png +0 -0
- package/src/shared/views/CometChatFileBubble/style.ts +2 -0
- package/src/shared/views/CometChatImageBubble/CometChatImageBubble.tsx +21 -3
- package/src/shared/views/CometChatList/CometChatList.tsx +15 -10
- package/src/shared/views/CometChatList/resources/checkmark.png +0 -0
- package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +1 -1
- package/src/shared/views/CometChatReactionList/CometChatReactionList.tsx +6 -6
- package/src/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.tsx +7 -4
- package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +23 -3
- package/src/shared/views/CometChatVideoBubble/resources/play.png +0 -0
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
1
10
|
import React from "react";
|
|
2
11
|
import { Modal, Text, View, Image } from "react-native";
|
|
12
|
+
//@ts-ignore
|
|
3
13
|
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
4
14
|
import { CometChatMessageTemplate } from "../shared/modals";
|
|
5
15
|
import { localize } from "../shared/resources/CometChatLocalize";
|
|
@@ -17,10 +27,65 @@ import { CallUIEvents } from "./CallEvents";
|
|
|
17
27
|
import { permissionUtil } from "../shared/utils/PermissionUtil";
|
|
18
28
|
const CometChatCalls = CallingPackage.CometChatCalls;
|
|
19
29
|
export class CallingExtensionDecorator extends DataSourceDecorator {
|
|
20
|
-
configuration;
|
|
21
|
-
loggedInUser;
|
|
22
30
|
constructor(props) {
|
|
23
31
|
super(props.dataSource);
|
|
32
|
+
this.UserCallBubbleView = ({ message, theme }) => {
|
|
33
|
+
if (this.isDeletedMessage(message))
|
|
34
|
+
return null;
|
|
35
|
+
const callStatus = CallUtils.getCallStatus(message, this.loggedInUser);
|
|
36
|
+
return React.createElement(View, { style: { justifyContent: "space-around", alignItems: "center" } },
|
|
37
|
+
React.createElement(View, { style: { flexDirection: "row", alignSelf: "center", borderWidth: 1, borderStyle: "dotted", borderRadius: 8, padding: 4, borderColor: callStatus === localize('MISSED_CALL') ? theme.palette.getError() : undefined } },
|
|
38
|
+
React.createElement(Image, { source: message['type'] == "audio" ? AudioIcon : VideoIcon, style: { height: 16, width: 16, alignSelf: "center", tintColor: callStatus === localize('MISSED_CALL') ? theme.palette.getError() : undefined } }),
|
|
39
|
+
React.createElement(Text, { style: { color: callStatus === localize('MISSED_CALL') ? theme.palette.getError() : theme.palette.getAccent(), marginStart: 8 } }, callStatus)));
|
|
40
|
+
};
|
|
41
|
+
this.getUserAudioCallTemplate = (theme) => {
|
|
42
|
+
return new CometChatMessageTemplate({
|
|
43
|
+
category: MessageCategoryConstants.call,
|
|
44
|
+
type: MessageTypeConstants.audio,
|
|
45
|
+
BubbleView: (message) => {
|
|
46
|
+
return this.UserCallBubbleView({
|
|
47
|
+
message,
|
|
48
|
+
theme
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
this.getUserVideoCallTemplates = (theme) => {
|
|
54
|
+
return new CometChatMessageTemplate({
|
|
55
|
+
category: MessageCategoryConstants.call,
|
|
56
|
+
type: MessageTypeConstants.video,
|
|
57
|
+
BubbleView: (message) => {
|
|
58
|
+
return this.UserCallBubbleView({
|
|
59
|
+
message,
|
|
60
|
+
theme
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
this.GroupCallBubbleView = (props) => {
|
|
66
|
+
const { message, theme, alignment } = props;
|
|
67
|
+
if (this.isDeletedMessage(message))
|
|
68
|
+
return null;
|
|
69
|
+
return (React.createElement(View, null,
|
|
70
|
+
React.createElement(CometChatCallBubble, { buttonText: localize("JOIN"), title: alignment == "right" ? localize("YOU_INITIATED_GROUP_CALL") : `${message['sender']['name']} ${localize("INITIATED_GROUP_CALL")}`, icon: VideoIcon, onClick: () => this.startDirectCall(message['customData']['sessionId'], theme), style: {
|
|
71
|
+
backgroundColor: alignment == "left" ? "transparent" : theme.palette.getPrimary(),
|
|
72
|
+
titleColor: alignment == "left" ? theme.palette.getAccent() : theme.palette.getSecondary(),
|
|
73
|
+
iconTint: alignment == "left" ? theme.palette.getSecondary() : theme.palette.getSecondary(),
|
|
74
|
+
buttonBackgroundColor: alignment == "left" ? theme.palette.getBackgroundColor() : theme.palette.getSecondary(),
|
|
75
|
+
buttonTextColor: alignment == "left" ? theme.palette.getPrimary() : theme.palette.getPrimary(),
|
|
76
|
+
} })));
|
|
77
|
+
};
|
|
78
|
+
this.getGroupCallTemplate = (theme) => {
|
|
79
|
+
return new CometChatMessageTemplate({
|
|
80
|
+
category: MessageCategoryConstants.custom,
|
|
81
|
+
type: MessageTypeConstants.meeting,
|
|
82
|
+
ContentView: (message, alignment) => this.GroupCallBubbleView({ message, alignment, theme }),
|
|
83
|
+
options: (loggedInUser, messageObject, group) => {
|
|
84
|
+
let commonOptions = super.getCommonOptions(loggedInUser, messageObject, group);
|
|
85
|
+
return commonOptions.filter(option => option.id == MessageOptionConstants.deleteMessage);
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
};
|
|
24
89
|
CometChat.getLoggedinUser()
|
|
25
90
|
.then(user => {
|
|
26
91
|
this.loggedInUser = user;
|
|
@@ -51,106 +116,44 @@ export class CallingExtensionDecorator extends DataSourceDecorator {
|
|
|
51
116
|
categories.push(MessageCategoryConstants.custom);
|
|
52
117
|
return categories;
|
|
53
118
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return <View style={{ justifyContent: "space-around", alignItems: "center" }}>
|
|
59
|
-
<View style={{ flexDirection: "row", alignSelf: "center", borderWidth: 1, borderStyle: "dotted", borderRadius: 8, padding: 4, borderColor: callStatus === localize('MISSED_CALL') ? theme.palette.getError() : undefined }}>
|
|
60
|
-
<Image source={message['type'] == "audio" ? AudioIcon : VideoIcon} style={{ height: 16, width: 16, alignSelf: "center", tintColor: callStatus === localize('MISSED_CALL') ? theme.palette.getError() : undefined }}/>
|
|
61
|
-
<Text style={{ color: callStatus === localize('MISSED_CALL') ? theme.palette.getError() : theme.palette.getAccent(), marginStart: 8 }}>
|
|
62
|
-
{callStatus}
|
|
63
|
-
</Text>
|
|
64
|
-
</View>
|
|
65
|
-
</View>;
|
|
66
|
-
};
|
|
67
|
-
getUserAudioCallTemplate = (theme) => {
|
|
68
|
-
return new CometChatMessageTemplate({
|
|
69
|
-
category: MessageCategoryConstants.call,
|
|
70
|
-
type: MessageTypeConstants.audio,
|
|
71
|
-
BubbleView: (message) => {
|
|
72
|
-
return this.UserCallBubbleView({
|
|
73
|
-
message,
|
|
74
|
-
theme
|
|
75
|
-
});
|
|
119
|
+
startDirectCall(sessionId, theme) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
if (!(yield permissionUtil.startResourceBasedTask(["mic", "camera"]))) {
|
|
122
|
+
return;
|
|
76
123
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
iconTint: alignment == "left" ? theme.palette.getSecondary() : theme.palette.getSecondary(),
|
|
100
|
-
buttonBackgroundColor: alignment == "left" ? theme.palette.getBackgroundColor() : theme.palette.getSecondary(),
|
|
101
|
-
buttonTextColor: alignment == "left" ? theme.palette.getPrimary() : theme.palette.getPrimary(),
|
|
102
|
-
}}/>
|
|
103
|
-
</View>);
|
|
104
|
-
};
|
|
105
|
-
async startDirectCall(sessionId, theme) {
|
|
106
|
-
if (!(await permissionUtil.startResourceBasedTask(["mic", "camera"]))) {
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
const callSettingsBuilder = new CometChatCalls.CallSettingsBuilder()
|
|
110
|
-
.setCallEventListener(new CometChatCalls.OngoingCallListener({
|
|
111
|
-
onCallEndButtonPressed: () => {
|
|
112
|
-
CometChatUIEventHandler.emitCallEvent(CallUIEvents.ccShowOngoingCall, {
|
|
113
|
-
child: null,
|
|
114
|
-
});
|
|
115
|
-
},
|
|
116
|
-
onError: (error) => {
|
|
117
|
-
CometChatUIEventHandler.emitCallEvent(CallUIEvents.ccShowOngoingCall, {
|
|
118
|
-
child: null,
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}));
|
|
122
|
-
const ongoingCallScreen = (<Modal>
|
|
123
|
-
<CometChatOngoingCall sessionID={sessionId} callSettingsBuilder={callSettingsBuilder} onError={(e) => {
|
|
124
|
-
CometChatUIEventHandler.emitCallEvent(CallUIEvents.ccShowOngoingCall, {
|
|
125
|
-
child: null,
|
|
126
|
-
});
|
|
127
|
-
}}/>
|
|
128
|
-
</Modal>);
|
|
129
|
-
CometChatUIEventHandler.emitCallEvent(CallUIEvents.ccShowOngoingCall, {
|
|
130
|
-
child: ongoingCallScreen,
|
|
124
|
+
const callSettingsBuilder = new CometChatCalls.CallSettingsBuilder()
|
|
125
|
+
.setCallEventListener(new CometChatCalls.OngoingCallListener({
|
|
126
|
+
onCallEndButtonPressed: () => {
|
|
127
|
+
CometChatUIEventHandler.emitCallEvent(CallUIEvents.ccShowOngoingCall, {
|
|
128
|
+
child: null,
|
|
129
|
+
});
|
|
130
|
+
},
|
|
131
|
+
onError: (error) => {
|
|
132
|
+
CometChatUIEventHandler.emitCallEvent(CallUIEvents.ccShowOngoingCall, {
|
|
133
|
+
child: null,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}));
|
|
137
|
+
const ongoingCallScreen = (React.createElement(Modal, null,
|
|
138
|
+
React.createElement(CometChatOngoingCall, { sessionID: sessionId, callSettingsBuilder: callSettingsBuilder, onError: (e) => {
|
|
139
|
+
CometChatUIEventHandler.emitCallEvent(CallUIEvents.ccShowOngoingCall, {
|
|
140
|
+
child: null,
|
|
141
|
+
});
|
|
142
|
+
} })));
|
|
143
|
+
CometChatUIEventHandler.emitCallEvent(CallUIEvents.ccShowOngoingCall, {
|
|
144
|
+
child: ongoingCallScreen,
|
|
145
|
+
});
|
|
131
146
|
});
|
|
132
147
|
}
|
|
133
148
|
getAuxiliaryHeaderAppbarOptions(user, group, theme) {
|
|
134
|
-
return
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
</View>;
|
|
149
|
+
return React.createElement(View, null,
|
|
150
|
+
React.createElement(CometChatCallButtons, { user: user, group: group, videoCallIconText: "", voiceCallIconText: "", callButtonStyle: {
|
|
151
|
+
buttonPadding: 10,
|
|
152
|
+
backgroundColor: "transparent",
|
|
153
|
+
voiceCallIconTint: theme === null || theme === void 0 ? void 0 : theme.palette.getPrimary(),
|
|
154
|
+
videoCallIconTint: theme === null || theme === void 0 ? void 0 : theme.palette.getPrimary(),
|
|
155
|
+
} }));
|
|
142
156
|
}
|
|
143
|
-
getGroupCallTemplate = (theme) => {
|
|
144
|
-
return new CometChatMessageTemplate({
|
|
145
|
-
category: MessageCategoryConstants.custom,
|
|
146
|
-
type: MessageTypeConstants.meeting,
|
|
147
|
-
ContentView: (message, alignment) => this.GroupCallBubbleView({ message, alignment, theme }),
|
|
148
|
-
options: (loggedInUser, messageObject, group) => {
|
|
149
|
-
let commonOptions = super.getCommonOptions(loggedInUser, messageObject, group);
|
|
150
|
-
return commonOptions.filter(option => option.id == MessageOptionConstants.deleteMessage);
|
|
151
|
-
},
|
|
152
|
-
});
|
|
153
|
-
};
|
|
154
157
|
getAllMessageTemplates(theme, additionalParams) {
|
|
155
158
|
let templates = super.getAllMessageTemplates(theme, additionalParams);
|
|
156
159
|
templates.push(this.getUserAudioCallTemplate(theme), this.getUserVideoCallTemplates(theme), this.getGroupCallTemplate(theme));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallingExtentionDecorator.js","sourceRoot":"","sources":["../../src/calls/CallingExtentionDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAY,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAI9E,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC7I,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB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;QAC5B,IAAI,YAAY,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,IAAI,OAAO;YAChD,kBAAkB,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;QAChD,IAAI,YAAY,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,IAAI,OAAO;YAChD,kBAAkB,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;QAChD,OAAO,kBAAkB,CAAC;IAC9B,CAAC;CACJ"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
var _a;
|
|
1
2
|
let isCallingPackageInstalled, CometChatCalls;
|
|
2
3
|
try {
|
|
3
4
|
// Attempt to require the package
|
|
4
|
-
CometChatCalls = require('@cometchat/calls-sdk-react-native')
|
|
5
|
+
CometChatCalls = (_a = require('@cometchat/calls-sdk-react-native')) === null || _a === void 0 ? void 0 : _a.CometChatCalls;
|
|
5
6
|
isCallingPackageInstalled = true;
|
|
6
7
|
// If no error is thrown, the package is installed
|
|
7
8
|
// console.log('calls sdk is installed.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallingPackage.js","sourceRoot":"","sources":["../../src/calls/CallingPackage.ts"],"names":[],"mappings":"AAEA,IAAI,yBAAyB,EAAE,cAAc,CAAC;AAE9C,IAAI,CAAC;IACF,iCAAiC;IACjC,cAAc,GAAG,OAAO,CAAC,mCAAmC,CAAC,
|
|
1
|
+
{"version":3,"file":"CallingPackage.js","sourceRoot":"","sources":["../../src/calls/CallingPackage.ts"],"names":[],"mappings":";AAEA,IAAI,yBAAyB,EAAE,cAAc,CAAC;AAE9C,IAAI,CAAC;IACF,iCAAiC;IACjC,cAAc,GAAG,MAAA,OAAO,CAAC,mCAAmC,CAAC,0CAAE,cAAc,CAAC;IAC9E,yBAAyB,GAAG,IAAI,CAAC;IAEjC,kDAAkD;IAClD,0CAA0C;AAE7C,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACd,yBAAyB,GAAG,KAAK,CAAC;IAClC,sDAAsD;IACtD,8CAA8C;AACjD,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAG;IAC3B,yBAAyB;IACzB,cAAc;CAChB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallBubbleConfiguration.js","sourceRoot":"","sources":["../../../src/calls/CometChatCallBubble/CallBubbleConfiguration.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,uBAAuB;
|
|
1
|
+
{"version":3,"file":"CallBubbleConfiguration.js","sourceRoot":"","sources":["../../../src/calls/CometChatCallBubble/CallBubbleConfiguration.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,uBAAuB;IAKhC,YAAY,EACR,IAAI,EACJ,OAAO,EACP,KAAK,EAC0B;QAC/B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;CACJ"}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { BaseStyle } from "../../shared/base";
|
|
2
2
|
export class CallBubbleStyle extends BaseStyle {
|
|
3
|
-
titleColor;
|
|
4
|
-
titleFont;
|
|
5
|
-
iconTint;
|
|
6
|
-
buttonBackgroundColor;
|
|
7
|
-
buttonTextColor;
|
|
8
|
-
buttonTextFont;
|
|
9
3
|
constructor({ backgroundColor, border, borderRadius, buttonBackgroundColor, buttonTextColor, buttonTextFont, iconTint, titleColor, titleFont = { fontSize: 18 }, height, width }) {
|
|
10
4
|
super({
|
|
11
5
|
height,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallBubbleStyle.js","sourceRoot":"","sources":["../../../src/calls/CometChatCallBubble/CallBubbleStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqD,MAAM,mBAAmB,CAAA;AAWhG,MAAM,OAAO,eAAgB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"CallBubbleStyle.js","sourceRoot":"","sources":["../../../src/calls/CometChatCallBubble/CallBubbleStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqD,MAAM,mBAAmB,CAAA;AAWhG,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAQ1C,YAAa,EACT,eAAe,EACf,MAAM,EACN,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,QAAQ,EACR,UAAU,EACV,SAAS,GAAG,EAAC,QAAQ,EAAE,EAAE,EAAC,EAC1B,MAAM,EACN,KAAK,EACkB;QACvB,KAAK,CAAC;YACF,MAAM;YACN,KAAK;YACL,eAAe;YACf,MAAM;YACN,YAAY;SACf,CAAC,CAAC;QACH,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;CACJ"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ImageType } from '../../shared';
|
|
2
3
|
import { CallBubbleStyleInterface } from './CallBubbleStyle';
|
|
3
4
|
export interface CometChatCallBubbleInterface {
|
|
@@ -7,4 +8,4 @@ export interface CometChatCallBubbleInterface {
|
|
|
7
8
|
onClick: () => void;
|
|
8
9
|
style?: CallBubbleStyleInterface;
|
|
9
10
|
}
|
|
10
|
-
export declare const CometChatCallBubble: (props: CometChatCallBubbleInterface) =>
|
|
11
|
+
export declare const CometChatCallBubble: (props: CometChatCallBubbleInterface) => React.JSX.Element;
|
|
@@ -4,18 +4,19 @@ import { Style } from './styles';
|
|
|
4
4
|
import { CallBubbleStyle } from './CallBubbleStyle';
|
|
5
5
|
export const CometChatCallBubble = (props) => {
|
|
6
6
|
const { icon, title, buttonText, onClick, style } = props;
|
|
7
|
-
const _style = new CallBubbleStyle({
|
|
8
|
-
...style
|
|
9
|
-
});
|
|
7
|
+
const _style = new CallBubbleStyle(Object.assign({}, style));
|
|
10
8
|
const { backgroundColor, border, borderRadius, buttonBackgroundColor, buttonTextColor, buttonTextFont, iconTint, titleColor, titleFont, } = _style;
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
return React.createElement(View, { style: [{ backgroundColor, borderRadius }, border] },
|
|
10
|
+
React.createElement(View, { style: [Style.row, { margin: 8 }] },
|
|
11
|
+
React.createElement(Image, { source: icon, style: [Style.iconStyle, { tintColor: iconTint }] }),
|
|
12
|
+
React.createElement(Text, { style: Object.assign({ flexShrink: 1, color: titleColor }, titleFont) },
|
|
13
|
+
" ",
|
|
14
|
+
title,
|
|
15
|
+
" ")),
|
|
16
|
+
React.createElement(TouchableOpacity, { onPress: onClick, style: [Style.buttonStyle, { backgroundColor: buttonBackgroundColor }] },
|
|
17
|
+
React.createElement(Text, { style: Object.assign({ color: buttonTextColor }, buttonTextFont) },
|
|
18
|
+
" ",
|
|
19
|
+
buttonText,
|
|
20
|
+
" ")));
|
|
20
21
|
};
|
|
21
22
|
//# sourceMappingURL=CometChatCallBubble.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CometChatCallBubble.js","sourceRoot":"","sources":["../../../src/calls/CometChatCallBubble/CometChatCallBubble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,IAAI,EACJ,gBAAgB,EAChB,KAAK,EACL,IAAI,
|
|
1
|
+
{"version":3,"file":"CometChatCallBubble.js","sourceRoot":"","sources":["../../../src/calls/CometChatCallBubble/CometChatCallBubble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;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I,UAAU;oBAAS,CAC7E,CACd,CAAA;AACT,CAAC,CAAA"}
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
export declare const Style:
|
|
1
|
+
export declare const Style: {
|
|
2
|
+
row: {
|
|
3
|
+
flexDirection: "row";
|
|
4
|
+
alignItems: "center";
|
|
5
|
+
};
|
|
6
|
+
center: {
|
|
7
|
+
alignItems: "center";
|
|
8
|
+
justifyContent: "center";
|
|
9
|
+
};
|
|
10
|
+
iconStyle: {
|
|
11
|
+
height: number;
|
|
12
|
+
width: number;
|
|
13
|
+
margin: number;
|
|
14
|
+
};
|
|
15
|
+
buttonStyle: {
|
|
16
|
+
padding: number;
|
|
17
|
+
margin: number;
|
|
18
|
+
borderRadius: number;
|
|
19
|
+
alignItems: "center";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { BaseStyle } from "../../shared/base";
|
|
2
2
|
export class CallButtonStyle extends BaseStyle {
|
|
3
|
-
voiceCallIconTint;
|
|
4
|
-
videoCallIconTint;
|
|
5
|
-
buttonPadding;
|
|
6
3
|
constructor({ backgroundColor, border, borderRadius, buttonPadding = 16, height = "auto", videoCallIconTint, voiceCallIconTint, width = "auto" }) {
|
|
7
4
|
super({
|
|
8
5
|
height,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallButtonStyle.js","sourceRoot":"","sources":["../../../src/calls/CometChatCallButtons/CallButtonStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,MAAM,mBAAmB,CAAC;AAQlE,MAAM,OAAO,eAAgB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"CallButtonStyle.js","sourceRoot":"","sources":["../../../src/calls/CometChatCallButtons/CallButtonStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,MAAM,mBAAmB,CAAC;AAQlE,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAK1C,YAAY,EACR,eAAe,EACf,MAAM,EACN,YAAY,EACZ,aAAa,GAAG,EAAE,EAClB,MAAM,GAAG,MAAM,EACf,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,GAAG,MAAM,EACS;QACvB,KAAK,CAAC;YACF,MAAM;YACN,KAAK;YACL,eAAe;YACf,MAAM;YACN,YAAY;SACf,CAAC,CAAC;QACH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;CACJ"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
export default class CometChatCallButtonConfiguration {
|
|
2
|
-
voiceIconImage;
|
|
3
|
-
videoIconImage;
|
|
4
|
-
hideVideoCall;
|
|
5
|
-
hideVoiceCall;
|
|
6
|
-
onVoiceCallPress;
|
|
7
|
-
onVideoCallPress;
|
|
8
|
-
callButtonStyle;
|
|
9
2
|
constructor({ callButtonStyle, onVideoCallPress, onVoiceCallPress, videoIconImage, voiceIconImage, hideVideoCall, hideVoiceCall }) {
|
|
10
3
|
this.callButtonStyle = callButtonStyle;
|
|
11
4
|
this.onVideoCallPress = onVideoCallPress;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CometChatCallButtonConfiguration.js","sourceRoot":"","sources":["../../../src/calls/CometChatCallButtons/CometChatCallButtonConfiguration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CometChatCallButtonConfiguration.js","sourceRoot":"","sources":["../../../src/calls/CometChatCallButtons/CometChatCallButtonConfiguration.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,OAAO,OAAO,gCAAgC;IASjD,YAAY,EACR,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,aAAa,EACb,aAAa,EAC2B;QACxC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;CACJ"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { CometChat } from '@cometchat/chat-sdk-react-native';
|
|
2
3
|
import { CallButtonStyleInterface } from './CallButtonStyle';
|
|
3
4
|
import { ImageType } from '../../shared/base';
|
|
@@ -57,4 +58,4 @@ export interface CometChatCallButtonsInterface {
|
|
|
57
58
|
*/
|
|
58
59
|
onError?: (e: CometChat.CometChatException) => void;
|
|
59
60
|
}
|
|
60
|
-
export declare const CometChatCallButtons: (props: CometChatCallButtonsInterface) =>
|
|
61
|
+
export declare const CometChatCallButtons: (props: CometChatCallButtonsInterface) => React.JSX.Element;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
1
10
|
import React, { useContext, useEffect, useState, useRef } from 'react';
|
|
2
11
|
import { View, Text, TouchableOpacity, Image } from 'react-native';
|
|
12
|
+
//@ts-ignore
|
|
3
13
|
import { CometChat } from '@cometchat/chat-sdk-react-native';
|
|
4
14
|
import { CometChatUIEventHandler } from '../../shared/events/CometChatUIEventHandler/CometChatUIEventHandler';
|
|
5
15
|
import { CallButtonStyle } from './CallButtonStyle';
|
|
@@ -17,12 +27,7 @@ const listenerId = "callEventListener_" + new Date().getTime();
|
|
|
17
27
|
export const CometChatCallButtons = (props) => {
|
|
18
28
|
const { user, group, voiceCallIconImage = AudioIcon, voiceCallIconText = localize("AUDIO_CALL"), videoCallIconImage = VideoIcon, videoCallIconText = localize("VIDEO_CALL"), onVoiceCallPress, onVideoCallPress, hideVoiceCall = false, hideVideoCall = false, callButtonStyle, onError, } = props;
|
|
19
29
|
const { theme } = useContext(CometChatContext);
|
|
20
|
-
const _callButtonStyle = new CallButtonStyle({
|
|
21
|
-
backgroundColor: theme.palette.getAccent100(),
|
|
22
|
-
videoCallIconTint: theme.palette.getPrimary(),
|
|
23
|
-
voiceCallIconTint: theme.palette.getPrimary(),
|
|
24
|
-
...callButtonStyle
|
|
25
|
-
});
|
|
30
|
+
const _callButtonStyle = new CallButtonStyle(Object.assign({ backgroundColor: theme.palette.getAccent100(), videoCallIconTint: theme.palette.getPrimary(), voiceCallIconTint: theme.palette.getPrimary() }, callButtonStyle));
|
|
26
31
|
const { backgroundColor, border, borderRadius, buttonPadding, height, videoCallIconTint, voiceCallIconTint, width } = _callButtonStyle;
|
|
27
32
|
const [disableButton, setDisableButton] = useState(false);
|
|
28
33
|
const [showOutgoingCallScreen, setShowOutgoingCallScreen] = useState(false);
|
|
@@ -65,11 +70,7 @@ export const CometChatCallButtons = (props) => {
|
|
|
65
70
|
customMessage.setMuid(String(getUnixTimestampInMilliseconds()));
|
|
66
71
|
customMessage.setSender(loggedInUser.current);
|
|
67
72
|
customMessage.setReceiver(group);
|
|
68
|
-
customMessage.setMetadata({
|
|
69
|
-
...customMessage.getMetadata(),
|
|
70
|
-
"incrementUnreadCount": true,
|
|
71
|
-
"pushNotification": MessageTypeConstants.meeting,
|
|
72
|
-
});
|
|
73
|
+
customMessage.setMetadata(Object.assign(Object.assign({}, customMessage.getMetadata()), { "incrementUnreadCount": true, "pushNotification": MessageTypeConstants.meeting }));
|
|
73
74
|
customMessage.shouldUpdateConversation(true);
|
|
74
75
|
customMessage.setMetadata({ incrementUnreadCount: true });
|
|
75
76
|
customMessage.setCustomData(customData);
|
|
@@ -106,28 +107,28 @@ export const CometChatCallButtons = (props) => {
|
|
|
106
107
|
return;
|
|
107
108
|
}
|
|
108
109
|
};
|
|
109
|
-
const makeVoiceCall =
|
|
110
|
+
const makeVoiceCall = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
110
111
|
if (disableButton)
|
|
111
112
|
return;
|
|
112
|
-
if (!(
|
|
113
|
+
if (!(yield permissionUtil.startResourceBasedTask(["mic"]))) {
|
|
113
114
|
return;
|
|
114
115
|
}
|
|
115
116
|
if (onVoiceCallPress)
|
|
116
117
|
return onVoiceCallPress({ user, group });
|
|
117
118
|
//code to make audio call
|
|
118
119
|
makeCall(CallTypeConstants.audio);
|
|
119
|
-
};
|
|
120
|
-
const makeVideoCall =
|
|
120
|
+
});
|
|
121
|
+
const makeVideoCall = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
121
122
|
if (disableButton)
|
|
122
123
|
return;
|
|
123
|
-
if (!(
|
|
124
|
+
if (!(yield permissionUtil.startResourceBasedTask(["mic", "camera"]))) {
|
|
124
125
|
return;
|
|
125
126
|
}
|
|
126
127
|
if (onVideoCallPress)
|
|
127
128
|
return onVideoCallPress({ user, group });
|
|
128
129
|
//code to make video call
|
|
129
130
|
makeCall(CallTypeConstants.video);
|
|
130
|
-
};
|
|
131
|
+
});
|
|
131
132
|
useEffect(() => {
|
|
132
133
|
CometChat.getLoggedinUser()
|
|
133
134
|
.then(user => loggedInUser.current = user)
|
|
@@ -173,38 +174,35 @@ export const CometChatCallButtons = (props) => {
|
|
|
173
174
|
CometChatUIEventHandler.removeCallListener(listenerId);
|
|
174
175
|
};
|
|
175
176
|
}, []);
|
|
176
|
-
return (
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
{ backgroundColor, borderRadius,
|
|
177
|
+
return (React.createElement(View, { style: [Style.row, { height, width }] },
|
|
178
|
+
!hideVoiceCall && !group &&
|
|
179
|
+
React.createElement(TouchableOpacity, { style: [
|
|
180
|
+
Object.assign(Object.assign({ backgroundColor, borderRadius }, border), { padding: buttonPadding }),
|
|
180
181
|
Style.buttonStyle,
|
|
181
|
-
]
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
{
|
|
190
|
-
|
|
191
|
-
{ backgroundColor, borderRadius, ...border, padding: buttonPadding },
|
|
182
|
+
], onPress: () => makeVoiceCall() },
|
|
183
|
+
React.createElement(Image, { source: voiceCallIconImage, style: [
|
|
184
|
+
{ height: 24, width: 24 },
|
|
185
|
+
{ tintColor: disableButton ? theme.palette.getAccent700() : voiceCallIconTint }
|
|
186
|
+
] }),
|
|
187
|
+
voiceCallIconText != "" &&
|
|
188
|
+
React.createElement(Text, { style: { color: theme.palette.getPrimary() } }, voiceCallIconText)),
|
|
189
|
+
!hideVideoCall &&
|
|
190
|
+
React.createElement(TouchableOpacity, { style: [
|
|
191
|
+
Object.assign(Object.assign({ backgroundColor, borderRadius }, border), { padding: buttonPadding }),
|
|
192
192
|
Style.buttonStyle,
|
|
193
|
-
]
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
{showOutgoingCallScreen && <CometChatOutgoingCall call={outGoingCall.current} onDeclineButtonPressed={(call) => {
|
|
193
|
+
], onPress: () => makeVideoCall() },
|
|
194
|
+
React.createElement(Image, { source: videoCallIconImage, style: [
|
|
195
|
+
{ height: 24, width: 24 },
|
|
196
|
+
{ tintColor: disableButton ? theme.palette.getAccent700() : videoCallIconTint }
|
|
197
|
+
] }),
|
|
198
|
+
videoCallIconText != "" &&
|
|
199
|
+
React.createElement(Text, { style: { color: theme.palette.getPrimary() } }, videoCallIconText)),
|
|
200
|
+
showOutgoingCallScreen && React.createElement(CometChatOutgoingCall, { call: outGoingCall.current, onDeclineButtonPressed: (call) => {
|
|
202
201
|
CometChat.rejectCall(call['sessionId'], CometChat.CALL_STATUS.CANCELLED).then(rejectedCall => {
|
|
203
202
|
CometChatUIEventHandler.emitCallEvent(CallUIEvents.ccCallRejected, { call: rejectedCall });
|
|
204
203
|
}, err => {
|
|
205
204
|
onError && onError(err);
|
|
206
205
|
});
|
|
207
|
-
}}
|
|
208
|
-
</View>);
|
|
206
|
+
} })));
|
|
209
207
|
};
|
|
210
208
|
//# sourceMappingURL=CometChatCallButtons.js.map
|