@cometchat/chat-uikit-react-native 4.3.14 → 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 +18 -7
- 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 +92 -13
- 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 +18 -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 +73 -97
- 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 +62 -117
- 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 +197 -239
- 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 +52 -76
- 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 -86
- 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 +247 -378
- package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
- package/lib/CometChatMessageList/MessageListConfiguration.d.ts +177 -0
- package/lib/CometChatMessageList/MessageListConfiguration.js +0 -64
- 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.d.ts +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 +2 -1
- 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.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 +2 -1
- 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 +1 -1
- 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 +9 -20
- 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/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.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 +88 -100
- 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 +63 -60
- 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.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 +5 -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 +3 -3
- 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.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.ios.d.ts +125 -32
- 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 +16 -11
- 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 +34 -34
- 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 +5 -5
- 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/formatter.js +3 -3
- package/lib/shared/libs/luxon/src/impl/formatter.js.map +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 +3 -3
- 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 +1 -1
- package/lib/shared/libs/luxon/src/interval.d.ts +8 -8
- package/lib/shared/libs/luxon/src/interval.js +1 -1
- package/lib/shared/libs/luxon/src/interval.js.map +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.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.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.js +0 -2
- package/lib/shared/resources/CometChatTheme/CometChatTheme.js.map +1 -1
- 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 +4 -4
- 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 +8 -7
- 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.js +1 -1
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js.map +1 -1
- 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 +1 -0
- 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.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 +2 -1
- 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 +2 -1
- 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.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 +2 -1
- 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 +21 -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 -88
- 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/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 +2 -1
- 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 +2 -1
- 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 +9 -17
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +0 -22
- 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/CometChatDetails/CometChatDetails.tsx +13 -19
- package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +5 -4
- package/src/CometChatMessageList/CometChatMessageList.tsx +1 -1
- package/src/calls/CometChatCallLogHistory/CometChatCallLogHistory.tsx +6 -4
- package/src/calls/CometChatCallLogs/CometChatCallLogs.tsx +7 -5
- package/src/extensions/ImageModeration/ImageModerationFilter.tsx +0 -1
- package/src/extensions/LinkPreview/LinkPreviewBubble.tsx +20 -4
- package/src/shared/utils/DetailsUtils/DetailsUtils.tsx +116 -71
- package/src/shared/views/CometChatAudioBubble/CometChatAudioBubble.tsx +23 -3
- package/src/shared/views/CometChatFileBubble/CometChatFileBubble.tsx +26 -3
- package/src/shared/views/CometChatImageBubble/CometChatImageBubble.tsx +21 -3
- package/src/shared/views/CometChatList/CometChatList.tsx +2 -7
- package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +1 -1
- package/src/shared/views/CometChatReactionList/CometChatReactionList.tsx +6 -6
- package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +23 -3
|
@@ -1,3 +1,23 @@
|
|
|
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
|
+
};
|
|
10
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
11
|
+
var t = {};
|
|
12
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
13
|
+
t[p] = s[p];
|
|
14
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
15
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
17
|
+
t[p[i]] = s[p[i]];
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
};
|
|
1
21
|
import React, { useContext, useEffect, useLayoutEffect } from 'react';
|
|
2
22
|
import { View, Image, TouchableOpacity, NativeModules, Platform, KeyboardAvoidingView, Modal, Dimensions, Text, } from 'react-native';
|
|
3
23
|
import { Style } from './styles';
|
|
@@ -22,57 +42,51 @@ const uiEventListenerShow = 'uiEvent_show_' + new Date().getTime();
|
|
|
22
42
|
const uiEventListenerHide = 'uiEvent_hide_' + new Date().getTime();
|
|
23
43
|
const MessagePreviewTray = (props) => {
|
|
24
44
|
const { shouldShow = false, text = '', onClose = () => { } } = props;
|
|
25
|
-
return shouldShow ? (
|
|
45
|
+
return shouldShow ? (React.createElement(CometChatMessagePreview, { style: new MessagePreviewStyle({ width: '95%', backgroundColor: "white" }), messagePreviewTitle: localize('EDIT_MESSAGE'), messagePreviewSubtitle: text, closeIconURL: ICONS.CLOSE, onCloseClick: onClose })) : null;
|
|
26
46
|
};
|
|
27
47
|
const ImageButton = (props) => {
|
|
28
48
|
const { image, onClick, buttonStyle, imageStyle, disable } = props;
|
|
29
|
-
return (
|
|
30
|
-
|
|
31
|
-
</TouchableOpacity>);
|
|
49
|
+
return (React.createElement(TouchableOpacity, { activeOpacity: disable ? 1 : undefined, onPress: disable ? () => { } : onClick, style: buttonStyle },
|
|
50
|
+
React.createElement(Image, { source: image, style: [{ height: 24, width: 24 }, imageStyle] })));
|
|
32
51
|
};
|
|
33
52
|
const AttachIconButton = (props) => {
|
|
34
53
|
const { icon, show = false, onClick = () => { }, style, theme } = props;
|
|
35
54
|
if (show) {
|
|
36
|
-
return (
|
|
55
|
+
return (React.createElement(ImageButton, { image: icon, imageStyle: [Style.imageStyle, style], onClick: onClick }));
|
|
37
56
|
}
|
|
38
57
|
else {
|
|
39
|
-
return
|
|
58
|
+
return React.createElement(View, { style: [Style.imageStyle, style] });
|
|
40
59
|
}
|
|
41
60
|
};
|
|
42
61
|
const EmojiBoard = (props) => {
|
|
43
|
-
const { shouldShow = false, onClose = () => { }, emojiSelection = (emoji) => { },
|
|
44
|
-
return shouldShow ? (
|
|
45
|
-
{/* <CometChatEmojiKeyboard onClick={emojiSelection} {...otherProps} /> */}
|
|
46
|
-
</CometChatBottomSheet>) : null;
|
|
62
|
+
const { shouldShow = false, onClose = () => { }, emojiSelection = (emoji) => { } } = props, otherProps = __rest(props, ["shouldShow", "onClose", "emojiSelection"]);
|
|
63
|
+
return shouldShow ? (React.createElement(CometChatBottomSheet, { onClose: onClose })) : null;
|
|
47
64
|
};
|
|
48
65
|
const ActionSheetBoard = (props) => {
|
|
49
|
-
const { shouldShow = false, onClose = () => { }, options = [], cometChatBottomSheetStyle = {}, sheetRef,
|
|
50
|
-
return shouldShow ? (
|
|
51
|
-
|
|
52
|
-
</CometChatBottomSheet>) : null;
|
|
66
|
+
const { shouldShow = false, onClose = () => { }, options = [], cometChatBottomSheetStyle = {}, sheetRef } = props, otherProps = __rest(props, ["shouldShow", "onClose", "options", "cometChatBottomSheetStyle", "sheetRef"]);
|
|
67
|
+
return shouldShow ? (React.createElement(CometChatBottomSheet, { ref: sheetRef, onClose: onClose, style: cometChatBottomSheetStyle },
|
|
68
|
+
React.createElement(CometChatActionSheet, Object.assign({ actions: options }, otherProps, { onPress: props.onClick })))) : null;
|
|
53
69
|
};
|
|
54
70
|
const RecordAudio = (props) => {
|
|
55
|
-
const { shouldShow = false, onClose = () => { }, options = [], cometChatBottomSheetStyle = {}, sheetRef, onPause = () => { }, onPlay = () => { }, onSend = (recordedFile) => { }, onStop = (recordedFile) => { }, onStart = () => { }, mediaRecorderStyle, pauseIconUrl, playIconUrl, recordIconUrl, deleteIconUrl, stopIconUrl, submitIconUrl,
|
|
56
|
-
return shouldShow ? (
|
|
57
|
-
|
|
58
|
-
</CometChatBottomSheet>) : null;
|
|
71
|
+
const { shouldShow = false, onClose = () => { }, options = [], cometChatBottomSheetStyle = {}, sheetRef, onPause = () => { }, onPlay = () => { }, onSend = (recordedFile) => { }, onStop = (recordedFile) => { }, onStart = () => { }, mediaRecorderStyle, pauseIconUrl, playIconUrl, recordIconUrl, deleteIconUrl, stopIconUrl, submitIconUrl } = props, otherProps = __rest(props, ["shouldShow", "onClose", "options", "cometChatBottomSheetStyle", "sheetRef", "onPause", "onPlay", "onSend", "onStop", "onStart", "mediaRecorderStyle", "pauseIconUrl", "playIconUrl", "recordIconUrl", "deleteIconUrl", "stopIconUrl", "submitIconUrl"]);
|
|
72
|
+
return shouldShow ? (React.createElement(CometChatBottomSheet, { ref: sheetRef, onClose: onClose, style: cometChatBottomSheetStyle },
|
|
73
|
+
React.createElement(CometChatMediaRecorder, { onClose: onClose, onPause: onPause, onPlay: onPlay, onSend: onSend, onStop: onStop, onStart: onStart, mediaRecorderStyle: mediaRecorderStyle, pauseIconUrl: pauseIconUrl, playIconUrl: playIconUrl, recordIconUrl: recordIconUrl, deleteIconUrl: deleteIconUrl, stopIconUrl: stopIconUrl, submitIconUrl: submitIconUrl }))) : null;
|
|
59
74
|
};
|
|
60
75
|
const AIOptions = (props) => {
|
|
61
|
-
const { aiStyle, shouldShow = false, onClose = () => { }, cometChatBottomSheetStyle = { backgroundColor: aiStyle.backgroundColor, paddingHorizontal: 0 }, sheetRef, aiOptions,
|
|
62
|
-
return shouldShow ? (
|
|
63
|
-
|
|
64
|
-
<CometChatActionSheet actions={aiOptions} style={{ ...aiStyle, paddingHorizontal: 0 }} {...otherProps} onPress={props.onClick} hideHeader={true}/>
|
|
65
|
-
</CometChatBottomSheet>) : null;
|
|
76
|
+
const { aiStyle, shouldShow = false, onClose = () => { }, cometChatBottomSheetStyle = { backgroundColor: aiStyle.backgroundColor, paddingHorizontal: 0 }, sheetRef, aiOptions } = props, otherProps = __rest(props, ["aiStyle", "shouldShow", "onClose", "cometChatBottomSheetStyle", "sheetRef", "aiOptions"]);
|
|
77
|
+
return shouldShow ? (React.createElement(CometChatBottomSheet, { ref: sheetRef, onClose: onClose, style: cometChatBottomSheetStyle },
|
|
78
|
+
React.createElement(CometChatActionSheet, Object.assign({ actions: aiOptions, style: Object.assign(Object.assign({}, aiStyle), { paddingHorizontal: 0 }) }, otherProps, { onPress: props.onClick, hideHeader: true })))) : null;
|
|
66
79
|
};
|
|
67
80
|
const LiveReaction = (props) => {
|
|
68
81
|
const { show = false, reaction } = props;
|
|
69
82
|
if (show) {
|
|
70
|
-
return
|
|
83
|
+
return React.createElement(CometChatLiveReactions, { reaction: reaction });
|
|
71
84
|
}
|
|
72
85
|
return null;
|
|
73
86
|
};
|
|
74
87
|
let recordedTime = 0, timerIntervalId = null;
|
|
75
88
|
export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
89
|
+
var _a;
|
|
76
90
|
const editMessageListenerID = 'editMessageListener_' + new Date().getTime();
|
|
77
91
|
const UiEventListenerID = 'UiEventListener_' + new Date().getTime();
|
|
78
92
|
const { theme } = useContext(CometChatContext);
|
|
@@ -127,17 +141,9 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
127
141
|
});
|
|
128
142
|
}
|
|
129
143
|
}, []);
|
|
130
|
-
const AIStyles = new AIOptionsStyle({
|
|
144
|
+
const AIStyles = new AIOptionsStyle(Object.assign({
|
|
131
145
|
//NEED TO ADD DEFAULT STYLE HERE
|
|
132
|
-
backgroundColor: theme.palette.getBackgroundColor(),
|
|
133
|
-
listItemBackground: theme.palette.getBackgroundColor(),
|
|
134
|
-
listItemTitleFont: theme.typography.subtitle1,
|
|
135
|
-
listItemTitleColor: theme.palette.getAccent(),
|
|
136
|
-
listItemBorderRadius: 0,
|
|
137
|
-
optionsSeparatorTint: theme.palette.getAccent200(),
|
|
138
|
-
borderRadius: 0,
|
|
139
|
-
...aiOptionsStyle,
|
|
140
|
-
});
|
|
146
|
+
backgroundColor: theme.palette.getBackgroundColor(), listItemBackground: theme.palette.getBackgroundColor(), listItemTitleFont: theme.typography.subtitle1, listItemTitleColor: theme.palette.getAccent(), listItemBorderRadius: 0, optionsSeparatorTint: theme.palette.getAccent200(), borderRadius: 0 }, aiOptionsStyle));
|
|
141
147
|
let isTyping = null;
|
|
142
148
|
/**
|
|
143
149
|
* Event callback
|
|
@@ -147,8 +153,8 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
147
153
|
}));
|
|
148
154
|
const previewMessage = ({ message, status }) => {
|
|
149
155
|
if (status === messageStatus.inprogress) {
|
|
150
|
-
let textComponents = message
|
|
151
|
-
let rawText = message
|
|
156
|
+
let textComponents = message === null || message === void 0 ? void 0 : message.text;
|
|
157
|
+
let rawText = message === null || message === void 0 ? void 0 : message.text;
|
|
152
158
|
let users = {};
|
|
153
159
|
let regexes = [];
|
|
154
160
|
allFormatters.current.forEach((formatter, key) => {
|
|
@@ -178,7 +184,7 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
178
184
|
});
|
|
179
185
|
// Sort edits by startIndex to apply them in order
|
|
180
186
|
edits.sort((a, b) => a.startIndex - b.startIndex);
|
|
181
|
-
plainTextInput.current = getPlainString(message
|
|
187
|
+
plainTextInput.current = getPlainString(message === null || message === void 0 ? void 0 : message.text, edits);
|
|
182
188
|
const hashMap = new Map();
|
|
183
189
|
let offset = 0; // Tracks shift in position due to replacements
|
|
184
190
|
edits.forEach(edit => {
|
|
@@ -190,15 +196,15 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
190
196
|
});
|
|
191
197
|
mentionMap.current = hashMap;
|
|
192
198
|
setMessagePreview({
|
|
193
|
-
message: {
|
|
199
|
+
message: Object.assign(Object.assign({}, message), { text: textComponents }),
|
|
194
200
|
mode: ConversationOptionConstants.edit,
|
|
195
201
|
});
|
|
196
|
-
inputValueRef.current = textComponents
|
|
197
|
-
setInputMessage(textComponents
|
|
202
|
+
inputValueRef.current = textComponents !== null && textComponents !== void 0 ? textComponents : '';
|
|
203
|
+
setInputMessage(textComponents !== null && textComponents !== void 0 ? textComponents : '');
|
|
198
204
|
messageInputRef.current.focus();
|
|
199
205
|
}
|
|
200
206
|
};
|
|
201
|
-
const cameraCallback =
|
|
207
|
+
const cameraCallback = (cameraImage) => __awaiter(void 0, void 0, void 0, function* () {
|
|
202
208
|
if (CheckPropertyExists(cameraImage, 'error')) {
|
|
203
209
|
return;
|
|
204
210
|
}
|
|
@@ -209,10 +215,10 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
209
215
|
uri,
|
|
210
216
|
};
|
|
211
217
|
sendMediaMessage(chatWithId.current, file, MessageTypeConstants.image, chatWith.current);
|
|
212
|
-
};
|
|
213
|
-
const fileInputHandler =
|
|
218
|
+
});
|
|
219
|
+
const fileInputHandler = (fileType) => __awaiter(void 0, void 0, void 0, function* () {
|
|
214
220
|
if (fileType === MessageTypeConstants.takePhoto) {
|
|
215
|
-
if (!(
|
|
221
|
+
if (!(yield permissionUtil.startResourceBasedTask(["camera"]))) {
|
|
216
222
|
return;
|
|
217
223
|
}
|
|
218
224
|
let quality = imageQuality;
|
|
@@ -233,7 +239,7 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
233
239
|
}));
|
|
234
240
|
}
|
|
235
241
|
else
|
|
236
|
-
FileManager.openFileChooser(fileType,
|
|
242
|
+
FileManager.openFileChooser(fileType, (fileInfo) => __awaiter(void 0, void 0, void 0, function* () {
|
|
237
243
|
if (CheckPropertyExists(fileInfo, 'error')) {
|
|
238
244
|
return;
|
|
239
245
|
}
|
|
@@ -244,8 +250,8 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
244
250
|
uri,
|
|
245
251
|
};
|
|
246
252
|
sendMediaMessage(chatWithId.current, file, fileType, chatWith.current);
|
|
247
|
-
});
|
|
248
|
-
};
|
|
253
|
+
}));
|
|
254
|
+
});
|
|
249
255
|
const playAudio = () => {
|
|
250
256
|
if (customSoundForMessage) {
|
|
251
257
|
CometChatSoundManager.play(CometChatSoundManager.SoundOutput.outgoingMessage, customSoundForMessage);
|
|
@@ -474,62 +480,59 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
474
480
|
// });
|
|
475
481
|
// };
|
|
476
482
|
const GetEmojiIconView = () => {
|
|
477
|
-
return (
|
|
483
|
+
return (React.createElement(ImageButton, { image: ICONS.EMOJI, imageStyle: Style.imageStyle, onClick: () => setShowEmojiboard(true) }));
|
|
478
484
|
};
|
|
479
485
|
const shouldShowAIOptions = () => {
|
|
480
486
|
return AIOptionItems.length > 0;
|
|
481
487
|
};
|
|
482
488
|
const AuxiliaryButtonViewElem = () => {
|
|
483
|
-
if (AuxiliaryButtonView)
|
|
484
|
-
return (
|
|
489
|
+
if (AuxiliaryButtonView && id)
|
|
490
|
+
return (React.createElement(AuxiliaryButtonView, { user: user, group: group, composerId: id }));
|
|
485
491
|
else if (defaultAuxiliaryButtonOptions)
|
|
486
|
-
return
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
return hideVoiceRecording ? null : <RecordAudioButtonView />;
|
|
492
|
+
return React.createElement(View, { style: { flexDirection: "row", alignItems: "center" } },
|
|
493
|
+
defaultAuxiliaryButtonOptions,
|
|
494
|
+
shouldShowAIOptions() && React.createElement(AIOptionsButtonView, null),
|
|
495
|
+
!hideVoiceRecording && React.createElement(RecordAudioButtonView, null));
|
|
496
|
+
return hideVoiceRecording ? null : React.createElement(RecordAudioButtonView, null);
|
|
492
497
|
};
|
|
493
498
|
const SendButtonViewElem = () => {
|
|
494
|
-
if (SendButtonView)
|
|
495
|
-
return
|
|
496
|
-
return (
|
|
499
|
+
if (SendButtonView && id)
|
|
500
|
+
return React.createElement(SendButtonView, { user: user, group: group, composerId: id });
|
|
501
|
+
return (React.createElement(ImageButton, { image: ICONS.SEND, imageStyle: [
|
|
497
502
|
Style.imageStyle,
|
|
498
503
|
{
|
|
499
504
|
tintColor: (inputMessage.length === 0) ? theme.palette.getAccent400() :
|
|
500
|
-
messageComposerStyle.sendIconTint ||
|
|
505
|
+
(messageComposerStyle === null || messageComposerStyle === void 0 ? void 0 : messageComposerStyle.sendIconTint) ||
|
|
501
506
|
theme.palette.getPrimary(),
|
|
502
507
|
},
|
|
503
|
-
]
|
|
508
|
+
], disable: (inputMessage.length === 0), onClick: sendTextMessage }));
|
|
504
509
|
};
|
|
505
510
|
const SecondaryButtonViewElem = () => {
|
|
506
|
-
if (SecondaryButtonView)
|
|
507
|
-
return (
|
|
508
|
-
return (
|
|
511
|
+
if (SecondaryButtonView && id)
|
|
512
|
+
return (React.createElement(SecondaryButtonView, { user: user, group: group, composerId: id }));
|
|
513
|
+
return (React.createElement(AttachIconButton, { icon: attachmentIcon, show: true, onClick: () => setShowActionSheet(true), style: {
|
|
509
514
|
height: 23,
|
|
510
515
|
width: 23,
|
|
511
516
|
resizeMode: 'contain',
|
|
512
|
-
tintColor: messageComposerStyle.attachIconTint
|
|
517
|
+
tintColor: (messageComposerStyle === null || messageComposerStyle === void 0 ? void 0 : messageComposerStyle.attachIconTint)
|
|
513
518
|
? messageComposerStyle.attachIconTint
|
|
514
519
|
: theme.palette.getAccent(),
|
|
515
|
-
}}
|
|
520
|
+
} }));
|
|
516
521
|
};
|
|
517
522
|
const PrimaryButtonView = () => {
|
|
518
|
-
return (inputMessage.length !== 0) || hideLiveReaction ? (
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
<ImageButton image={liveReactionIcon} imageStyle={[Style.imageStyle, Style.liveReactionBtnStyle]} onClick={liveReactionHandler}/>
|
|
523
|
-
</View>);
|
|
523
|
+
return (inputMessage.length !== 0) || hideLiveReaction ? (React.createElement(SendButtonViewElem, null)) : (React.createElement(View, null,
|
|
524
|
+
React.createElement(View, { style: Style.liveReactionStyle },
|
|
525
|
+
React.createElement(LiveReaction, { show: showReaction, reaction: liveReactionIcon })),
|
|
526
|
+
React.createElement(ImageButton, { image: liveReactionIcon, imageStyle: [Style.imageStyle, Style.liveReactionBtnStyle], onClick: liveReactionHandler })));
|
|
524
527
|
};
|
|
525
528
|
const RecordAudioButtonView = () => {
|
|
526
|
-
return
|
|
529
|
+
return React.createElement(ImageButton, { image: voiceRecordingIconURL || ICONS.MICROPHONE, imageStyle: Style.imageStyle, onClick: () => setShowRecordAudio(true) });
|
|
527
530
|
};
|
|
528
531
|
const AIOptionsButtonView = () => {
|
|
529
|
-
return
|
|
532
|
+
return React.createElement(ImageButton, { image: AIIconURL || ICONS.AI, imageStyle: Style.imageStyle, onClick: () => {
|
|
530
533
|
setShowAIOptions(true);
|
|
531
534
|
setAIOptionItems(rootAIOptionItems);
|
|
532
|
-
}}
|
|
535
|
+
} });
|
|
533
536
|
};
|
|
534
537
|
//fetch logged in user
|
|
535
538
|
useEffect(() => {
|
|
@@ -539,23 +542,15 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
539
542
|
let mentionsFormatter = ChatConfigurator.getDataSource().getMentionsFormatter();
|
|
540
543
|
mentionsFormatter.setLoggedInUser(CometChatUIKit.loggedInUser);
|
|
541
544
|
mentionsFormatter.setMentionsStyle(new MentionTextStyle({
|
|
542
|
-
loggedInUserTextStyle: {
|
|
543
|
-
|
|
544
|
-
...theme.typography.title2,
|
|
545
|
-
fontSize: 17
|
|
546
|
-
},
|
|
547
|
-
textStyle: {
|
|
548
|
-
color: theme.palette.getPrimary(),
|
|
549
|
-
...theme.typography.subtitle1,
|
|
550
|
-
fontSize: 17
|
|
551
|
-
}
|
|
545
|
+
loggedInUserTextStyle: Object.assign(Object.assign({ color: theme.palette.getPrimary() }, theme.typography.title2), { fontSize: 17 }),
|
|
546
|
+
textStyle: Object.assign(Object.assign({ color: theme.palette.getPrimary() }, theme.typography.subtitle1), { fontSize: 17 })
|
|
552
547
|
}));
|
|
553
548
|
mentionsFormatter.setUser(user);
|
|
554
549
|
mentionsFormatter.setGroup(group);
|
|
555
550
|
_formatter.unshift(mentionsFormatter);
|
|
556
551
|
}
|
|
557
552
|
_formatter.forEach((formatter) => {
|
|
558
|
-
formatter.setComposerId(id);
|
|
553
|
+
id && formatter.setComposerId(id);
|
|
559
554
|
formatter.setUser(user);
|
|
560
555
|
formatter.setGroup(group);
|
|
561
556
|
let trackingCharacter = formatter.getTrackingCharacter();
|
|
@@ -584,14 +579,15 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
584
579
|
}
|
|
585
580
|
}, [user, group, chatRef]);
|
|
586
581
|
const handleOnClick = (CustomView) => {
|
|
582
|
+
var _a;
|
|
587
583
|
let view = CustomView(user, group, {
|
|
588
|
-
uid: user
|
|
589
|
-
guid: group
|
|
584
|
+
uid: user === null || user === void 0 ? void 0 : user.getUid(),
|
|
585
|
+
guid: group === null || group === void 0 ? void 0 : group.getGuid(),
|
|
590
586
|
parentMessageId: parentMessageId,
|
|
591
587
|
}, {
|
|
592
588
|
onClose: () => setIsVisible(false),
|
|
593
589
|
});
|
|
594
|
-
bottomSheetRef.current
|
|
590
|
+
(_a = bottomSheetRef.current) === null || _a === void 0 ? void 0 : _a.togglePanel();
|
|
595
591
|
setTimeout(() => {
|
|
596
592
|
setCustomView(() => view);
|
|
597
593
|
setIsVisible(true);
|
|
@@ -599,39 +595,24 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
599
595
|
};
|
|
600
596
|
useEffect(() => {
|
|
601
597
|
const defaultAttachmentOptions = ChatConfigurator.dataSource.getAttachmentOptions(user, group, composerIdMap);
|
|
602
|
-
setActionSheetItems(() =>
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
onPress: () => handleOnClick(item.CustomView)
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
return {
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
if (typeof item.CustomView === 'function')
|
|
621
|
-
return {
|
|
622
|
-
...item,
|
|
623
|
-
onPress: () => handleOnClick(item.CustomView),
|
|
624
|
-
};
|
|
625
|
-
if (typeof item.onPress === 'function')
|
|
626
|
-
return {
|
|
627
|
-
...item,
|
|
628
|
-
onPress: () => item.onPress(user, group),
|
|
629
|
-
};
|
|
630
|
-
return {
|
|
631
|
-
...item,
|
|
632
|
-
onPress: () => fileInputHandler(item.id),
|
|
633
|
-
};
|
|
634
|
-
}));
|
|
598
|
+
setActionSheetItems(() => {
|
|
599
|
+
var _a;
|
|
600
|
+
return attachmentOptions && typeof attachmentOptions === 'function'
|
|
601
|
+
? (_a = attachmentOptions({ user, group, composerId: composerIdMap })) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
602
|
+
if (typeof item.CustomView === 'function')
|
|
603
|
+
return Object.assign(Object.assign({}, item), { onPress: () => handleOnClick(item.CustomView) });
|
|
604
|
+
if (typeof item.onPress == 'function')
|
|
605
|
+
return Object.assign(Object.assign({}, item), { onPress: () => { var _a; return (_a = item.onPress) === null || _a === void 0 ? void 0 : _a.call(item, user, group); } });
|
|
606
|
+
return Object.assign(Object.assign({}, item), { onPress: () => fileInputHandler(item.id) });
|
|
607
|
+
})
|
|
608
|
+
: defaultAttachmentOptions.map((item) => {
|
|
609
|
+
if (typeof item.CustomView === 'function')
|
|
610
|
+
return Object.assign(Object.assign({}, item), { onPress: () => handleOnClick(item.CustomView) });
|
|
611
|
+
if (typeof item.onPress === 'function')
|
|
612
|
+
return Object.assign(Object.assign({}, item), { onPress: () => item.onPress(user, group) });
|
|
613
|
+
return Object.assign(Object.assign({}, item), { onPress: () => fileInputHandler(item.id) });
|
|
614
|
+
});
|
|
615
|
+
});
|
|
635
616
|
const aiOptions = ChatConfigurator.dataSource.getAIOptions(user, group, theme, composerIdMap, AIStyles);
|
|
636
617
|
let newAiOptions = _getAIOptions(aiOptions);
|
|
637
618
|
setAIOptionItems(newAiOptions);
|
|
@@ -641,17 +622,11 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
641
622
|
let newOptions = [...options];
|
|
642
623
|
let newAiOptions = newOptions.map((item) => {
|
|
643
624
|
if (typeof item.onPress === 'function')
|
|
644
|
-
return {
|
|
645
|
-
...item,
|
|
646
|
-
onPress: () => {
|
|
625
|
+
return Object.assign(Object.assign({}, item), { onPress: () => {
|
|
647
626
|
setShowAIOptions(false);
|
|
648
627
|
item.onPress(user);
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
return {
|
|
652
|
-
...item,
|
|
653
|
-
onPress: () => { },
|
|
654
|
-
};
|
|
628
|
+
} });
|
|
629
|
+
return Object.assign(Object.assign({}, item), { onPress: () => { } });
|
|
655
630
|
});
|
|
656
631
|
return newAiOptions;
|
|
657
632
|
};
|
|
@@ -661,28 +636,30 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
661
636
|
});
|
|
662
637
|
CometChatUIEventHandler.addUIListener(UiEventListenerID, {
|
|
663
638
|
ccToggleBottomSheet: (item) => {
|
|
664
|
-
|
|
639
|
+
var _a;
|
|
640
|
+
if (item === null || item === void 0 ? void 0 : item.bots) {
|
|
665
641
|
let newAiOptions = _getAIOptions(item.bots);
|
|
666
642
|
setAIOptionItems(newAiOptions);
|
|
667
643
|
setShowAIOptions(true);
|
|
668
644
|
return;
|
|
669
645
|
}
|
|
670
|
-
else if (item
|
|
646
|
+
else if (item === null || item === void 0 ? void 0 : item.botView) {
|
|
671
647
|
setCustomView(() => item.child);
|
|
672
648
|
return;
|
|
673
649
|
}
|
|
674
650
|
setIsVisible(false);
|
|
675
|
-
bottomSheetRef.current
|
|
651
|
+
(_a = bottomSheetRef.current) === null || _a === void 0 ? void 0 : _a.togglePanel();
|
|
676
652
|
},
|
|
677
653
|
ccComposeMessage: (text) => {
|
|
654
|
+
var _a;
|
|
678
655
|
setIsVisible(false);
|
|
679
|
-
bottomSheetRef.current
|
|
680
|
-
inputValueRef.current = text
|
|
681
|
-
setInputMessage(text
|
|
656
|
+
(_a = bottomSheetRef.current) === null || _a === void 0 ? void 0 : _a.togglePanel();
|
|
657
|
+
inputValueRef.current = text === null || text === void 0 ? void 0 : text.text;
|
|
658
|
+
setInputMessage(text === null || text === void 0 ? void 0 : text.text);
|
|
682
659
|
},
|
|
683
660
|
ccSuggestionData(item) {
|
|
684
|
-
if (activeCharacter.current && id === item
|
|
685
|
-
setMentionsSearchData(item
|
|
661
|
+
if (activeCharacter.current && id === (item === null || item === void 0 ? void 0 : item.id)) {
|
|
662
|
+
setMentionsSearchData(item === null || item === void 0 ? void 0 : item.data);
|
|
686
663
|
setSuggestionListLoader(false);
|
|
687
664
|
}
|
|
688
665
|
},
|
|
@@ -738,11 +715,12 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
738
715
|
return false; // No mention found at the cursor position
|
|
739
716
|
}
|
|
740
717
|
function shouldOpenList(selection, searchString, tracker) {
|
|
718
|
+
var _a, _b, _c, _d, _e, _f;
|
|
741
719
|
return (selection.start === selection.end
|
|
742
720
|
&& !isCursorWithinMentionRange(mentionMap.current, selection.start - searchString.length)
|
|
743
721
|
&& trackingCharacters.current.includes(tracker)
|
|
744
|
-
&& (searchString === "" ? ((plainTextInput.current[selection.start - 2]
|
|
745
|
-
&& ((plainTextInput.current[selection.start - 1]
|
|
722
|
+
&& (searchString === "" ? ((((_a = plainTextInput.current[selection.start - 2]) === null || _a === void 0 ? void 0 : _a.length) === 1 && ((_c = (_b = plainTextInput.current[selection.start - 2]) === null || _b === void 0 ? void 0 : _b.trim()) === null || _c === void 0 ? void 0 : _c.length) === 0) || plainTextInput.current[selection.start - 2] === undefined) : true)
|
|
723
|
+
&& ((((_d = plainTextInput.current[selection.start - 1]) === null || _d === void 0 ? void 0 : _d.length) === 1 && ((_f = (_e = plainTextInput.current[selection.start - 1]) === null || _e === void 0 ? void 0 : _e.trim()) === null || _f === void 0 ? void 0 : _f.length) === 0) ? searchString.length > 0 : true));
|
|
746
724
|
}
|
|
747
725
|
let timeoutId;
|
|
748
726
|
const openList = (selection) => {
|
|
@@ -762,7 +740,7 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
762
740
|
}
|
|
763
741
|
}
|
|
764
742
|
else {
|
|
765
|
-
formatter.search(searchString);
|
|
743
|
+
formatter === null || formatter === void 0 ? void 0 : formatter.search(searchString);
|
|
766
744
|
}
|
|
767
745
|
}
|
|
768
746
|
else {
|
|
@@ -885,7 +863,7 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
885
863
|
const updatedPlainTextInput = `${plainTextInput.current.substring(0, (selectionPosition.start - (1 + searchStringRef.current.length)))}${item.promptText + " "}${plainTextInput.current.substring((selectionPosition.end), plainTextInput.current.length)}`;
|
|
886
864
|
plainTextInput.current = updatedPlainTextInput;
|
|
887
865
|
let key = (selectionPosition.start - (1 + searchStringRef.current.length)) + "_" + ((selectionPosition.start - (searchStringRef.current.length + 1)) + item.promptText.length);
|
|
888
|
-
let updatedMap = insertMentionAt(mentionMap.current, mentionPos, key, {
|
|
866
|
+
let updatedMap = insertMentionAt(mentionMap.current, mentionPos, key, Object.assign(Object.assign({}, item), { trackingCharacter: activeCharacter.current }));
|
|
889
867
|
mentionMap.current = updatedMap;
|
|
890
868
|
setFormattedInputMessage();
|
|
891
869
|
};
|
|
@@ -944,117 +922,97 @@ export const CometChatMessageComposer = React.forwardRef((props, ref) => {
|
|
|
944
922
|
fetchingNext !== null && setSuggestionListLoader(true);
|
|
945
923
|
};
|
|
946
924
|
const getMentionLimitView = () => {
|
|
925
|
+
var _a;
|
|
947
926
|
let targetedFormatter = allFormatters.current.get(activeCharacter.current);
|
|
948
927
|
let shouldWarn;
|
|
949
928
|
let limit;
|
|
950
|
-
if (targetedFormatter
|
|
951
|
-
limit = targetedFormatter
|
|
952
|
-
if (targetedFormatter.getUniqueUsersList && targetedFormatter.getUniqueUsersList()
|
|
929
|
+
if ((targetedFormatter === null || targetedFormatter === void 0 ? void 0 : targetedFormatter.getLimit) && (targetedFormatter === null || targetedFormatter === void 0 ? void 0 : targetedFormatter.getLimit())) {
|
|
930
|
+
limit = targetedFormatter === null || targetedFormatter === void 0 ? void 0 : targetedFormatter.getLimit();
|
|
931
|
+
if (targetedFormatter.getUniqueUsersList && ((_a = targetedFormatter.getUniqueUsersList()) === null || _a === void 0 ? void 0 : _a.size) >= limit) {
|
|
953
932
|
shouldWarn = true;
|
|
954
933
|
}
|
|
955
934
|
}
|
|
956
935
|
if (!shouldWarn)
|
|
957
936
|
return null;
|
|
958
|
-
let errorString = targetedFormatter
|
|
959
|
-
return (
|
|
937
|
+
let errorString = (targetedFormatter === null || targetedFormatter === void 0 ? void 0 : targetedFormatter.getErrorString) ? targetedFormatter === null || targetedFormatter === void 0 ? void 0 : targetedFormatter.getErrorString() : `${localize("MENTION_UPTO")} ${limit} ${limit === 1 ? localize("TIME") : localize("TIMES")} ${localize("AT_A_TIME")}.`;
|
|
938
|
+
return (React.createElement(View, { style: {
|
|
960
939
|
flexDirection: "row",
|
|
961
940
|
alignItems: "center",
|
|
962
941
|
paddingTop: 5,
|
|
963
942
|
paddingLeft: 5,
|
|
964
943
|
borderTopWidth: 1,
|
|
965
944
|
borderTopColor: theme.palette.getAccent300()
|
|
966
|
-
}}
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
marginLeft: 5,
|
|
974
|
-
color: theme.palette.getAccent500(),
|
|
975
|
-
...theme.typography.text1
|
|
976
|
-
}}>{errorString}</Text>
|
|
977
|
-
</View>);
|
|
945
|
+
} },
|
|
946
|
+
React.createElement(Image, { style: {
|
|
947
|
+
tintColor: theme.palette.getAccent500(),
|
|
948
|
+
height: 20,
|
|
949
|
+
width: 20
|
|
950
|
+
}, source: ICONS.INFO }),
|
|
951
|
+
React.createElement(Text, { style: Object.assign({ marginLeft: 5, color: theme.palette.getAccent500() }, theme.typography.text1) }, errorString)));
|
|
978
952
|
};
|
|
979
|
-
return (
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
}}
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
}} separatorColor={theme.palette.getAccent100()} onPress={onMentionPress} onEndReached={onSuggestionListEndReached} loading={suggestionListLoader}/>
|
|
1043
|
-
{getMentionLimitView()}
|
|
1044
|
-
</View>}
|
|
1045
|
-
|
|
1046
|
-
{HeaderView ? (<HeaderView />) : (CustomViewHeader && <CustomViewHeader />)}
|
|
1047
|
-
<View>
|
|
1048
|
-
<MessagePreviewTray onClose={() => setMessagePreview(null)} text={messagePreview?.message?.text} shouldShow={messagePreview != null}/>
|
|
1049
|
-
</View>
|
|
1050
|
-
<CometChatMessageInput messageInputRef={messageInputRef} text={inputMessage} placeHolderText={placeHolderText} style={messageComposerStyle} onSelectionChange={({ nativeEvent: { selection } }) => {
|
|
1051
|
-
setSelectionPosition(selection);
|
|
1052
|
-
openList(selection);
|
|
1053
|
-
}} maxHeight={maxHeight ?? null} onChangeText={textChangeHandler} SecondaryButtonView={SecondaryButtonViewElem} AuxiliaryButtonView={AuxiliaryButtonViewElem} PrimaryButtonView={PrimaryButtonView} auxiliaryButtonAlignment={auxiliaryButtonsAlignment ? auxiliaryButtonsAlignment : 'right'}/>
|
|
1054
|
-
{FooterView ? (<FooterView />) : (CustomViewFooter && <CustomViewFooter />)}
|
|
1055
|
-
</View>
|
|
1056
|
-
</KeyboardAvoidingView>
|
|
1057
|
-
</>);
|
|
953
|
+
return (React.createElement(React.Fragment, null,
|
|
954
|
+
!isVisible && CustomView && React.createElement(CustomView, null),
|
|
955
|
+
React.createElement(Modal, { animationType: "slide", visible: isVisible, onRequestClose: () => {
|
|
956
|
+
setIsVisible(false);
|
|
957
|
+
}, presentationStyle: 'pageSheet' }, CustomView && CustomView),
|
|
958
|
+
React.createElement(KeyboardAvoidingView, Object.assign({ key: id, behavior: Platform.OS === 'ios' ? 'padding' : 'height', keyboardVerticalOffset: Platform.select({ ios: kbOffset }) }, keyboardAvoidingViewProps),
|
|
959
|
+
React.createElement(View, { style: [
|
|
960
|
+
Style.container,
|
|
961
|
+
{
|
|
962
|
+
paddingTop: CustomViewHeader ? 0 : 8
|
|
963
|
+
},
|
|
964
|
+
messageComposerStyle,
|
|
965
|
+
] },
|
|
966
|
+
React.createElement(EmojiBoard, { hideSearch: true, shouldShow: showEmojiboard, onClose: () => setShowEmojiboard(false), emojiSelection: (emoji) => {
|
|
967
|
+
let pre = plainTextInput.current.substring(0, selectionPosition.start);
|
|
968
|
+
let post = plainTextInput.current.substring(selectionPosition.end, plainTextInput.current.length);
|
|
969
|
+
inputValueRef.current = selectionPosition.start && selectionPosition.end ? `${pre}${emoji}${post}` : `${inputValueRef.current}${emoji}`;
|
|
970
|
+
setInputMessage((prev) => selectionPosition.start && selectionPosition.end
|
|
971
|
+
? `${pre}${emoji}${post}`
|
|
972
|
+
: `${prev}${emoji}`);
|
|
973
|
+
setShowEmojiboard(false);
|
|
974
|
+
} }),
|
|
975
|
+
React.createElement(ActionSheetBoard, { sheetRef: bottomSheetRef, options: actionSheetItems, shouldShow: showActionSheet, onClose: () => setShowActionSheet(false), style: Object.assign(Object.assign({}, ((messageComposerStyle === null || messageComposerStyle === void 0 ? void 0 : messageComposerStyle.actionSheetSeparatorTint)
|
|
976
|
+
? {
|
|
977
|
+
actionSheetSeparatorTint: messageComposerStyle.actionSheetSeparatorTint,
|
|
978
|
+
}
|
|
979
|
+
: {})), { layoutModeIconTint: messageComposerStyle === null || messageComposerStyle === void 0 ? void 0 : messageComposerStyle.actionSheetLayoutModeIconTint, titleColor: messageComposerStyle === null || messageComposerStyle === void 0 ? void 0 : messageComposerStyle.actionSheetTitleColor, listItemIconTint: messageComposerStyle === null || messageComposerStyle === void 0 ? void 0 : messageComposerStyle.attachIconTint, listItemTitleFont: messageComposerStyle === null || messageComposerStyle === void 0 ? void 0 : messageComposerStyle.actionSheetTitleFont }), cometChatBottomSheetStyle: (messageComposerStyle === null || messageComposerStyle === void 0 ? void 0 : messageComposerStyle.actionSheetCancelButtonIconTint)
|
|
980
|
+
? {
|
|
981
|
+
lineColor: messageComposerStyle.actionSheetCancelButtonIconTint,
|
|
982
|
+
}
|
|
983
|
+
: {} }),
|
|
984
|
+
React.createElement(RecordAudio, { sheetRef: bottomSheetRef, options: actionSheetItems, shouldShow: showRecordAudio, onClose: () => {
|
|
985
|
+
setShowRecordAudio(false);
|
|
986
|
+
}, onSend: _sendRecordedAudio, cometChatBottomSheetStyle: (messageComposerStyle === null || messageComposerStyle === void 0 ? void 0 : messageComposerStyle.actionSheetCancelButtonIconTint)
|
|
987
|
+
? {
|
|
988
|
+
lineColor: messageComposerStyle.actionSheetCancelButtonIconTint,
|
|
989
|
+
}
|
|
990
|
+
: {}, mediaRecorderStyle: mediaRecorderStyle, pauseIconUrl: pauseIconUrl, playIconUrl: playIconUrl, recordIconUrl: recordIconUrl, deleteIconUrl: deleteIconUrl, stopIconUrl: stopIconUrl, submitIconUrl: submitIconUrl }),
|
|
991
|
+
React.createElement(AIOptions, { sheetRef: bottomSheetRef, shouldShow: showAIOptions, onClose: () => {
|
|
992
|
+
setShowAIOptions(false);
|
|
993
|
+
}, aiOptions: AIOptionItems, aiStyle: AIStyles }),
|
|
994
|
+
(mentionsSearchData.length > 0 && plainTextInput.current.length > 0)
|
|
995
|
+
&& React.createElement(View, { style: {
|
|
996
|
+
borderTopWidth: 1, borderColor: theme.palette.getAccent300(),
|
|
997
|
+
paddingVertical: 5, paddingHorizontal: 0,
|
|
998
|
+
maxHeight: Dimensions.get("window").height * .22, justifyContent: "flex-end",
|
|
999
|
+
paddingBottom: messagePreview !== null ? 60 : undefined,
|
|
1000
|
+
zIndex: 1
|
|
1001
|
+
} },
|
|
1002
|
+
React.createElement(CometChatSuggestionList, { data: mentionsSearchData, avatarStyle: {
|
|
1003
|
+
height: 33, width: 33,
|
|
1004
|
+
}, listItemStyle: {
|
|
1005
|
+
height: 50,
|
|
1006
|
+
}, separatorColor: theme.palette.getAccent100(), onPress: onMentionPress, onEndReached: onSuggestionListEndReached, loading: suggestionListLoader }),
|
|
1007
|
+
getMentionLimitView()),
|
|
1008
|
+
HeaderView ? (React.createElement(HeaderView, null)) : (CustomViewHeader && React.createElement(CustomViewHeader, null)),
|
|
1009
|
+
React.createElement(View, null,
|
|
1010
|
+
React.createElement(MessagePreviewTray, { onClose: () => setMessagePreview(null), text: (_a = messagePreview === null || messagePreview === void 0 ? void 0 : messagePreview.message) === null || _a === void 0 ? void 0 : _a.text, shouldShow: messagePreview != null })),
|
|
1011
|
+
React.createElement(CometChatMessageInput, { messageInputRef: messageInputRef, text: inputMessage, placeHolderText: placeHolderText, style: messageComposerStyle, onSelectionChange: ({ nativeEvent: { selection } }) => {
|
|
1012
|
+
setSelectionPosition(selection);
|
|
1013
|
+
openList(selection);
|
|
1014
|
+
}, maxHeight: maxHeight !== null && maxHeight !== void 0 ? maxHeight : undefined, onChangeText: textChangeHandler, SecondaryButtonView: SecondaryButtonViewElem, AuxiliaryButtonView: AuxiliaryButtonViewElem, PrimaryButtonView: PrimaryButtonView, auxiliaryButtonAlignment: auxiliaryButtonsAlignment ? auxiliaryButtonsAlignment : 'right' }),
|
|
1015
|
+
FooterView ? (React.createElement(FooterView, null)) : (CustomViewFooter && React.createElement(CustomViewFooter, null))))));
|
|
1058
1016
|
});
|
|
1059
1017
|
CometChatMessageComposer.defaultProps = {
|
|
1060
1018
|
user: undefined,
|