@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
|
@@ -6,35 +6,19 @@ import { ErrorMessageIcon, NoMessageIcon } from './resources';
|
|
|
6
6
|
const CometChatAICard = (props) => {
|
|
7
7
|
const { state, style, loadingStateText, loadingIconURL, emptyIconURL, emptyStateText, errorIconURL, errorStateText } = props;
|
|
8
8
|
const { theme } = useContext(CometChatContext);
|
|
9
|
-
const { emptyStateTextColor, emptyStateTextFont, emptyIconTint, errorStateTextColor, errorStateTextFont, errorIconTint, loadingStateTextColor, loadingStateTextFont, loadingIconTint } = new AIBaseStyle({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{props.children ? props.children :
|
|
23
|
-
state === "loading" /* States.loading */ ? <View style={{ flexDirection: "row", alignItems: "center", padding: 10 }}>
|
|
24
|
-
{!loadingIconURL ? <ActivityIndicator color={loadingIconTint}/> :
|
|
25
|
-
<Image style={{ width: 25, height: 25, tintColor: loadingIconTint }} source={loadingIconURL}/>}
|
|
26
|
-
<Text style={[loadingStateTextFont, { color: loadingStateTextColor, marginLeft: 10 }]}>{loadingStateText}</Text>
|
|
27
|
-
</View>
|
|
28
|
-
: state === "error" /* States.error */ ? <View style={{ flexDirection: "row", alignItems: "center", padding: 10 }}>
|
|
29
|
-
<Image style={{ width: 25, height: 25, tintColor: errorIconTint }} source={errorIconURL || ErrorMessageIcon}/>
|
|
30
|
-
<Text style={[errorStateTextFont, { color: errorStateTextColor, marginLeft: 10 }]}>{errorStateText}</Text>
|
|
31
|
-
</View>
|
|
32
|
-
: state === "empty" /* States.empty */ ? <View style={{ flexDirection: "row", alignItems: "center", padding: 10 }}>
|
|
33
|
-
<Image style={{ width: 25, height: 25, tintColor: emptyIconTint }} source={emptyIconURL || NoMessageIcon}/>
|
|
34
|
-
<Text style={[emptyStateTextFont, { color: emptyStateTextColor, marginLeft: 10 }]}>{emptyStateText}</Text>
|
|
35
|
-
</View>
|
|
36
|
-
: null}
|
|
37
|
-
</View>);
|
|
9
|
+
const { emptyStateTextColor, emptyStateTextFont, emptyIconTint, errorStateTextColor, errorStateTextFont, errorIconTint, loadingStateTextColor, loadingStateTextFont, loadingIconTint } = new AIBaseStyle(Object.assign({ emptyIconTint: theme.palette.getAccent(), emptyStateTextColor: theme.palette.getAccent(), emptyStateTextFont: theme.typography.subtitle1, errorIconTint: theme.palette.getAccent(), errorStateTextColor: theme.palette.getAccent(), errorStateTextFont: theme.typography.subtitle1, loadingIconTint: theme.palette.getAccent(), loadingStateTextColor: theme.palette.getAccent(), loadingStateTextFont: theme.typography.subtitle1 }, style));
|
|
10
|
+
return (React.createElement(View, null, props.children ? props.children :
|
|
11
|
+
state === "loading" /* States.loading */ ? React.createElement(View, { style: { flexDirection: "row", alignItems: "center", padding: 10 } },
|
|
12
|
+
!loadingIconURL ? React.createElement(ActivityIndicator, { color: loadingIconTint }) :
|
|
13
|
+
React.createElement(Image, { style: { width: 25, height: 25, tintColor: loadingIconTint }, source: { uri: loadingIconURL } }),
|
|
14
|
+
React.createElement(Text, { style: [loadingStateTextFont, { color: loadingStateTextColor, marginLeft: 10 }] }, loadingStateText))
|
|
15
|
+
: state === "error" /* States.error */ ? React.createElement(View, { style: { flexDirection: "row", alignItems: "center", padding: 10 } },
|
|
16
|
+
React.createElement(Image, { style: { width: 25, height: 25, tintColor: errorIconTint }, source: errorIconURL || ErrorMessageIcon }),
|
|
17
|
+
React.createElement(Text, { style: [errorStateTextFont, { color: errorStateTextColor, marginLeft: 10 }] }, errorStateText))
|
|
18
|
+
: state === "empty" /* States.empty */ ? React.createElement(View, { style: { flexDirection: "row", alignItems: "center", padding: 10 } },
|
|
19
|
+
React.createElement(Image, { style: { width: 25, height: 25, tintColor: emptyIconTint }, source: emptyIconURL || NoMessageIcon }),
|
|
20
|
+
React.createElement(Text, { style: [emptyStateTextFont, { color: emptyStateTextColor, marginLeft: 10 }] }, emptyStateText))
|
|
21
|
+
: null));
|
|
38
22
|
};
|
|
39
23
|
export default CometChatAICard;
|
|
40
24
|
//# sourceMappingURL=CometChatAICard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CometChatAICard.js","sourceRoot":"","sources":["../../../../src/shared/views/CometChatAICard/CometChatAICard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"CometChatAICard.js","sourceRoot":"","sources":["../../../../src/shared/views/CometChatAICard/CometChatAICard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAa,MAAM,cAAc,CAAA;AAC9E,OAAO,KAAK,EAAE,EAAa,UAAU,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,WAAW,EAAwB,MAAM,yB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EAAE,aAAa,EAAE,EAAE,MAAM,EAAE,YAAY,IAAI,aAAa,GAAI;oBAC5G,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,EAAE,EAAE,CAAc,IAAG,cAAc,CAAQ,CACpH;oBACH,CAAC,CAAC,IAAI,CACnB,CACV,CAAA;AACL,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -2,27 +2,6 @@
|
|
|
2
2
|
* Model cass for ActionSheet item.
|
|
3
3
|
*/
|
|
4
4
|
export class ActionItem {
|
|
5
|
-
/**
|
|
6
|
-
* @param {object} param0
|
|
7
|
-
* @param {string} param0.id
|
|
8
|
-
* @param {string} param0.title
|
|
9
|
-
* @param {any} param0.iconUrl
|
|
10
|
-
* @param {string} param0.iconTint
|
|
11
|
-
* @param {object} param0.titleStyle
|
|
12
|
-
* @param {string} param0.iconBackgroundColor
|
|
13
|
-
* @param {string} param0.backgroundColor
|
|
14
|
-
* @param {number} param0.cornerRadius
|
|
15
|
-
* @param {func} param0.onClick
|
|
16
|
-
*/
|
|
17
|
-
id;
|
|
18
|
-
title;
|
|
19
|
-
iconUrl;
|
|
20
|
-
iconTint;
|
|
21
|
-
titleStyle;
|
|
22
|
-
iconBackgroundColor;
|
|
23
|
-
backgroundColor;
|
|
24
|
-
cornerRadius;
|
|
25
|
-
onClick;
|
|
26
5
|
constructor({ id = "", title = "", iconUrl = undefined, iconTint = "", titleStyle = {}, iconBackgroundColor = "", backgroundColor = "", cornerRadius = 0, onClick = () => { }, }) {
|
|
27
6
|
this.id = id;
|
|
28
7
|
this.title = title;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionItem.js","sourceRoot":"","sources":["../../../../src/shared/views/CometChatActionSheet/ActionItem.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,MAAM,OAAO,UAAU;
|
|
1
|
+
{"version":3,"file":"ActionItem.js","sourceRoot":"","sources":["../../../../src/shared/views/CometChatActionSheet/ActionItem.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,MAAM,OAAO,UAAU;IAsBnB,YAAY,EACR,EAAE,GAAG,EAAE,EACP,KAAK,GAAG,EAAE,EACV,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,EAAE,EACb,UAAU,GAAG,EAAE,EACf,mBAAmB,GAAG,EAAE,EACxB,eAAe,GAAG,EAAE,EACpB,YAAY,GAAG,CAAC,EAChB,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,GACrB;QACG,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;CACJ"}
|
|
@@ -10,6 +10,7 @@ export interface ActionSheetStylesInterface extends BaseStyleInterface {
|
|
|
10
10
|
listItemIconBorderRadius?: number;
|
|
11
11
|
actionSheetSeparatorTint?: string;
|
|
12
12
|
paddingHorizontal?: number;
|
|
13
|
+
optionsSeparatorTint?: string;
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* @class ActionSheetStyles
|
|
@@ -25,6 +26,7 @@ export declare class ActionSheetStyles extends BaseStyle {
|
|
|
25
26
|
listItemIconBorderRadius: number;
|
|
26
27
|
actionSheetSeparatorTint: string;
|
|
27
28
|
paddingHorizontal?: number;
|
|
29
|
+
optionsSeparatorTint?: string;
|
|
28
30
|
/**
|
|
29
31
|
* @param {object} param0
|
|
30
32
|
* @param {any} width
|
|
@@ -41,5 +43,5 @@ export declare class ActionSheetStyles extends BaseStyle {
|
|
|
41
43
|
* @param {object} listItemTitleFont
|
|
42
44
|
* @param {string} listItemTitleColor
|
|
43
45
|
*/
|
|
44
|
-
constructor({ width, height, backgroundColor, border, borderRadius, layoutModeIconTint, titleFont, titleColor, listItemIconTint, listItemIconBackground, listItemIconBorderRadius, listItemTitleFont, listItemTitleColor, paddingHorizontal, actionSheetSeparatorTint, }: ActionSheetStylesInterface);
|
|
46
|
+
constructor({ width, height, backgroundColor, border, borderRadius, layoutModeIconTint, titleFont, titleColor, listItemIconTint, listItemIconBackground, listItemIconBorderRadius, listItemTitleFont, listItemTitleColor, paddingHorizontal, actionSheetSeparatorTint, optionsSeparatorTint }: ActionSheetStylesInterface);
|
|
45
47
|
}
|
|
@@ -3,16 +3,6 @@ import { BorderStyle, FontStyle, BaseStyle } from "../../base";
|
|
|
3
3
|
* @class ActionSheetStyles
|
|
4
4
|
*/
|
|
5
5
|
export class ActionSheetStyles extends BaseStyle {
|
|
6
|
-
layoutModeIconTint;
|
|
7
|
-
titleFont;
|
|
8
|
-
titleColor;
|
|
9
|
-
listItemIconTint;
|
|
10
|
-
listItemTitleFont;
|
|
11
|
-
listItemTitleColor;
|
|
12
|
-
listItemIconBackground;
|
|
13
|
-
listItemIconBorderRadius;
|
|
14
|
-
actionSheetSeparatorTint;
|
|
15
|
-
paddingHorizontal;
|
|
16
6
|
/**
|
|
17
7
|
* @param {object} param0
|
|
18
8
|
* @param {any} width
|
|
@@ -29,7 +19,7 @@ export class ActionSheetStyles extends BaseStyle {
|
|
|
29
19
|
* @param {object} listItemTitleFont
|
|
30
20
|
* @param {string} listItemTitleColor
|
|
31
21
|
*/
|
|
32
|
-
constructor({ width = "100%", height, backgroundColor = "transparent", border = new BorderStyle({}), borderRadius = 8, layoutModeIconTint = "", titleFont = new FontStyle({ fontSize: 17, fontWeight: "500" }), titleColor = "", listItemIconTint = "", listItemIconBackground = "", listItemIconBorderRadius = 0, listItemTitleFont = new FontStyle({ fontSize: 17, fontWeight: "400" }), listItemTitleColor = "", paddingHorizontal, actionSheetSeparatorTint, }) {
|
|
22
|
+
constructor({ width = "100%", height, backgroundColor = "transparent", border = new BorderStyle({}), borderRadius = 8, layoutModeIconTint = "", titleFont = new FontStyle({ fontSize: 17, fontWeight: "500" }), titleColor = "", listItemIconTint = "", listItemIconBackground = "", listItemIconBorderRadius = 0, listItemTitleFont = new FontStyle({ fontSize: 17, fontWeight: "400" }), listItemTitleColor = "", paddingHorizontal, actionSheetSeparatorTint, optionsSeparatorTint }) {
|
|
33
23
|
super({
|
|
34
24
|
width,
|
|
35
25
|
height,
|
|
@@ -47,6 +37,7 @@ export class ActionSheetStyles extends BaseStyle {
|
|
|
47
37
|
this.listItemIconBorderRadius = listItemIconBorderRadius;
|
|
48
38
|
this.paddingHorizontal = paddingHorizontal;
|
|
49
39
|
this.actionSheetSeparatorTint = actionSheetSeparatorTint;
|
|
40
|
+
this.optionsSeparatorTint = optionsSeparatorTint;
|
|
50
41
|
}
|
|
51
42
|
}
|
|
52
43
|
//# sourceMappingURL=ActionSheetStyle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheetStyle.js","sourceRoot":"","sources":["../../../../src/shared/views/CometChatActionSheet/ActionSheetStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAA0C,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ActionSheetStyle.js","sourceRoot":"","sources":["../../../../src/shared/views/CometChatActionSheet/ActionSheetStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAA0C,MAAM,YAAY,CAAC;AAiBvG;;GAEG;AAEH,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAY5C;;;;;;;;;;;;;;;OAeG;IACH,YAAY,EACR,KAAK,GAAG,MAAM,EACd,MAAM,EACN,eAAe,GA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Item';
|
|
3
4
|
interface CometChatActionSheetInterface {
|
|
@@ -10,7 +11,7 @@ interface CometChatActionSheetInterface {
|
|
|
10
11
|
hideHeader?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare const CometChatActionSheet: {
|
|
13
|
-
(props: CometChatActionSheetInterface):
|
|
14
|
+
(props: CometChatActionSheetInterface): React.JSX.Element;
|
|
14
15
|
defaultProps: {
|
|
15
16
|
title: any;
|
|
16
17
|
layoutModeIconURL: undefined;
|
|
@@ -13,7 +13,7 @@ const layoutType = Object.freeze({
|
|
|
13
13
|
grid: 'grid',
|
|
14
14
|
});
|
|
15
15
|
const OptionListView = ({ id, title, iconUrl, iconTint, titleStyle, iconBackgroundColor, listItemIconBorderRadius, backgroundColor, cornerRadius, onPress, style, theme, }) => {
|
|
16
|
-
return (
|
|
16
|
+
return (React.createElement(TouchableOpacity, { key: id, style: [
|
|
17
17
|
Style.listItemContainer,
|
|
18
18
|
{
|
|
19
19
|
paddingHorizontal: 10,
|
|
@@ -21,102 +21,88 @@ const OptionListView = ({ id, title, iconUrl, iconTint, titleStyle, iconBackgrou
|
|
|
21
21
|
backgroundColor: backgroundColor || theme.palette.getBackgroundColor(),
|
|
22
22
|
justifyContent: !iconUrl ? 'center' : undefined,
|
|
23
23
|
},
|
|
24
|
-
]
|
|
25
|
-
|
|
24
|
+
], onPress: onPress },
|
|
25
|
+
Boolean(iconUrl) && React.createElement(Image, { source: iconUrl, style: [
|
|
26
26
|
Style.listItemImageStyle,
|
|
27
27
|
{
|
|
28
|
-
tintColor: iconTint || style
|
|
28
|
+
tintColor: iconTint || (style === null || style === void 0 ? void 0 : style.listItemIconTint) || 'rgba(20,20,20,0.69)',
|
|
29
29
|
backgroundColor: iconBackgroundColor ||
|
|
30
|
-
style
|
|
30
|
+
(style === null || style === void 0 ? void 0 : style.listItemIconBackground) ||
|
|
31
31
|
'transparent',
|
|
32
|
-
borderRadius: listItemIconBorderRadius || style
|
|
32
|
+
borderRadius: listItemIconBorderRadius || (style === null || style === void 0 ? void 0 : style.listItemIconBorderRadius) || 0,
|
|
33
33
|
},
|
|
34
|
-
]}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
...(style?.listItemTitleFont || {
|
|
34
|
+
] }),
|
|
35
|
+
React.createElement(Text, { style: [
|
|
36
|
+
Object.assign(Object.assign({}, ((style === null || style === void 0 ? void 0 : style.listItemTitleFont) || {
|
|
38
37
|
fontSize: 17,
|
|
39
38
|
fontWeight: '400',
|
|
40
|
-
}),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
Style.listTitleStyle,
|
|
45
|
-
]}>
|
|
46
|
-
{title}
|
|
47
|
-
</Text>
|
|
48
|
-
</TouchableOpacity>);
|
|
39
|
+
})), { color: (style === null || style === void 0 ? void 0 : style.listItemTitleColor) || 'rgb(20,20,20)' }),
|
|
40
|
+
titleStyle,
|
|
41
|
+
Style.listTitleStyle,
|
|
42
|
+
] }, title)));
|
|
49
43
|
};
|
|
50
44
|
const OptionGridView = ({ title, iconUrl, iconTint, titleStyle, iconBackgroundColor, listItemIconBorderRadius, backgroundColor, cornerRadius, onPress, style, theme, }) => {
|
|
51
|
-
return (
|
|
45
|
+
return (React.createElement(View, { style: [
|
|
52
46
|
Style.gridItemContainer,
|
|
53
47
|
{
|
|
54
48
|
backgroundColor: backgroundColor || theme.palette.getBackgroundColor(),
|
|
55
49
|
borderRadius: cornerRadius || 8,
|
|
56
50
|
},
|
|
57
|
-
]}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
titleStyle,
|
|
80
|
-
]}>
|
|
81
|
-
{title}
|
|
82
|
-
</Text>
|
|
83
|
-
</TouchableOpacity>
|
|
84
|
-
</View>);
|
|
51
|
+
] },
|
|
52
|
+
React.createElement(TouchableOpacity, { style: Style.gridBtnStyle, onPress: onPress },
|
|
53
|
+
React.createElement(Image, { source: iconUrl, style: [
|
|
54
|
+
Style.listItemImageStyle,
|
|
55
|
+
{
|
|
56
|
+
tintColor: iconTint || (style === null || style === void 0 ? void 0 : style.listItemIconTint) || 'rgba(20,20,20,0.69)',
|
|
57
|
+
backgroundColor: iconBackgroundColor ||
|
|
58
|
+
(style === null || style === void 0 ? void 0 : style.listItemIconBackground) ||
|
|
59
|
+
'transparent',
|
|
60
|
+
borderRadius: listItemIconBorderRadius ||
|
|
61
|
+
(style === null || style === void 0 ? void 0 : style.listItemIconBorderRadius) ||
|
|
62
|
+
0,
|
|
63
|
+
},
|
|
64
|
+
] }),
|
|
65
|
+
React.createElement(Text, { style: [
|
|
66
|
+
Object.assign(Object.assign({}, ((style === null || style === void 0 ? void 0 : style.listItemTitleFont) || {
|
|
67
|
+
fontSize: 17,
|
|
68
|
+
fontWeight: '400',
|
|
69
|
+
})), { color: (style === null || style === void 0 ? void 0 : style.listItemTitleColor) || 'rgb(20,20,20)' }),
|
|
70
|
+
titleStyle,
|
|
71
|
+
] }, title))));
|
|
85
72
|
};
|
|
86
73
|
export const CometChatActionSheet = (props) => {
|
|
74
|
+
var _a, _b, _c, _d;
|
|
87
75
|
const { theme } = useContext(CometChatContext);
|
|
88
|
-
const style = {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}),
|
|
98
|
-
...props.style,
|
|
99
|
-
listItemTitleFont: { ...theme.typography.subtitle1, ...(props.style.listItemTitleFont ?? {}) },
|
|
100
|
-
};
|
|
76
|
+
const style = Object.assign(Object.assign(Object.assign({}, new ActionSheetStyles({
|
|
77
|
+
listItemIconTint: theme.palette.getAccent700(),
|
|
78
|
+
listItemTitleFont: theme.typography.subtitle1,
|
|
79
|
+
listItemTitleColor: theme.palette.getAccent(),
|
|
80
|
+
titleColor: theme.palette.getAccent(),
|
|
81
|
+
titleFont: theme.typography.name,
|
|
82
|
+
backgroundColor: (_a = props.style) === null || _a === void 0 ? void 0 : _a.backgroundColor,
|
|
83
|
+
paddingHorizontal: (_b = props.style) === null || _b === void 0 ? void 0 : _b.paddingHorizontal
|
|
84
|
+
})), props.style), { listItemTitleFont: Object.assign(Object.assign({}, theme.typography.subtitle1), ((_c = props.style.listItemTitleFont) !== null && _c !== void 0 ? _c : {})) });
|
|
101
85
|
const [listMode, setListMode] = React.useState(true);
|
|
102
86
|
const [actionList, setActionList] = React.useState(props.actions);
|
|
103
87
|
Hooks(props, setActionList);
|
|
104
88
|
const _render = ({ item }) => {
|
|
105
|
-
return (
|
|
89
|
+
return (React.createElement(OptionListView, Object.assign({ id: item.id }, item, { iconUrl: item.icon || item.iconUrl, theme: theme, backgroundColor: style.listItemBackground, style: style })));
|
|
106
90
|
};
|
|
107
|
-
const _renderGrid = ({ item }) => (
|
|
91
|
+
const _renderGrid = ({ item }) => (React.createElement(OptionGridView, Object.assign({ id: item.id }, item, { iconUrl: item.icon || item.iconUrl, theme: theme, style: style })));
|
|
108
92
|
const getList = () => {
|
|
109
93
|
if (listMode) {
|
|
110
|
-
return (
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
94
|
+
return (React.createElement(View, { style: Style.listContainer },
|
|
95
|
+
React.createElement(FlatList, { key: 'list', keyExtractor: (item) => item.id, data: actionList, numColumns: 1, renderItem: _render, ItemSeparatorComponent: () => {
|
|
96
|
+
var _a, _b;
|
|
97
|
+
return (React.createElement(View, { style: {
|
|
98
|
+
height: 1,
|
|
99
|
+
backgroundColor: ((_a = props.style) === null || _a === void 0 ? void 0 : _a.actionSheetSeparatorTint) || ((_b = props.style) === null || _b === void 0 ? void 0 : _b.optionsSeparatorTint) ||
|
|
100
|
+
theme.palette.getAccent200(),
|
|
101
|
+
} }));
|
|
102
|
+
} })));
|
|
117
103
|
}
|
|
118
104
|
else {
|
|
119
|
-
return (
|
|
105
|
+
return (React.createElement(FlatList, { key: 'grid', keyExtractor: (item) => item.id, data: actionList, numColumns: 2, renderItem: _renderGrid }));
|
|
120
106
|
}
|
|
121
107
|
};
|
|
122
108
|
const getLayoutModeIcon = () => {
|
|
@@ -126,42 +112,34 @@ export const CometChatActionSheet = (props) => {
|
|
|
126
112
|
if (img == undefined) {
|
|
127
113
|
img = listMode ? ICONS.GRID : ICONS.LIST;
|
|
128
114
|
}
|
|
129
|
-
return (
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
</TouchableOpacity>);
|
|
115
|
+
return (React.createElement(TouchableOpacity, { onPress: () => setListMode(!listMode) },
|
|
116
|
+
React.createElement(Image, { style: [
|
|
117
|
+
Style.layoutBtnStyle,
|
|
118
|
+
{
|
|
119
|
+
tintColor: (style === null || style === void 0 ? void 0 : style.layoutModeIconTint) || 'rgb(51, 153, 255)',
|
|
120
|
+
},
|
|
121
|
+
], source: img })));
|
|
137
122
|
};
|
|
138
|
-
return (
|
|
123
|
+
return (React.createElement(View, { style: [
|
|
139
124
|
{
|
|
140
|
-
height: style
|
|
141
|
-
width: style
|
|
142
|
-
backgroundColor: style
|
|
143
|
-
borderRadius: style
|
|
144
|
-
paddingHorizontal: style
|
|
125
|
+
height: style === null || style === void 0 ? void 0 : style.height,
|
|
126
|
+
width: style === null || style === void 0 ? void 0 : style.width,
|
|
127
|
+
backgroundColor: (style === null || style === void 0 ? void 0 : style.backgroundColor) || 'transparent',
|
|
128
|
+
borderRadius: style === null || style === void 0 ? void 0 : style.borderRadius,
|
|
129
|
+
paddingHorizontal: (_d = style === null || style === void 0 ? void 0 : style.paddingHorizontal) !== null && _d !== void 0 ? _d : 10,
|
|
145
130
|
},
|
|
146
|
-
style
|
|
147
|
-
]}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
...(style?.titleFont || {
|
|
131
|
+
style === null || style === void 0 ? void 0 : style.border,
|
|
132
|
+
] },
|
|
133
|
+
!props.hideHeader && React.createElement(View, { style: Style.headerStyle },
|
|
134
|
+
React.createElement(Text, { style: [
|
|
135
|
+
Style.titleStyle,
|
|
136
|
+
Object.assign(Object.assign({}, ((style === null || style === void 0 ? void 0 : style.titleFont) || {
|
|
153
137
|
fontSize: 17,
|
|
154
138
|
fontWeight: '500',
|
|
155
|
-
}),
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
{props.title}
|
|
160
|
-
</Text>
|
|
161
|
-
{getLayoutModeIcon()}
|
|
162
|
-
</View>}
|
|
163
|
-
{getList()}
|
|
164
|
-
</View>);
|
|
139
|
+
})), { color: (style === null || style === void 0 ? void 0 : style.titleColor) || 'rgba(20, 20, 20,0.9)' }),
|
|
140
|
+
] }, props.title),
|
|
141
|
+
getLayoutModeIcon()),
|
|
142
|
+
getList()));
|
|
165
143
|
};
|
|
166
144
|
CometChatActionSheet.defaultProps = {
|
|
167
145
|
title: localize('ADD_TO_CHAT'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CometChatActionSheet.js","sourceRoot":"","sources":["../../../../src/shared/views/CometChatActionSheet/CometChatActionSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7D,2CAA2C;AAC3C,2CAA2C;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGpC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACb,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,EACtB,EAAE,EACF,KAAK,EACL,OAAO,EACP,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,wBAAwB,EACxB,eAAe,EACf,YAAY,EACZ,OAAO,EACP,KAAK,EACL,KAAK,GACN,EAAE,EAAE;IACH,OAAO,CACL,
|
|
1
|
+
{"version":3,"file":"CometChatActionSheet.js","sourceRoot":"","sources":["../../../../src/shared/views/CometChatActionSheet/CometChatActionSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7D,2CAA2C;AAC3C,2CAA2C;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGpC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACb,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,E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KAAK,CAAC,UAAU;oDAEX,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,KAAI;wBACtB,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE,KAAK;qBAClB,CAAC,KACF,KAAK,EAAE,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,KAAI,sBAAsB;iBAErD,IAEA,KAAK,CAAC,KAAK,CACP;YACN,iBAAiB,EAAE,CACf;QACN,OAAO,EAAE,CACL,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IAClC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC;IAC9B,iBAAiB,EAAE,SAAS;IAC5B,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC9B,cAAc,EAAE,KAAK;IACrB,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,IAAI;CACZ,CAAC"}
|
|
@@ -1 +1,44 @@
|
|
|
1
|
-
export declare const Style:
|
|
1
|
+
export declare const Style: {
|
|
2
|
+
headerStyle: {
|
|
3
|
+
justifyContent: "space-between";
|
|
4
|
+
flexDirection: "row";
|
|
5
|
+
paddingBottom: number;
|
|
6
|
+
};
|
|
7
|
+
titleStyle: {
|
|
8
|
+
lineHeight: number;
|
|
9
|
+
};
|
|
10
|
+
layoutBtnStyle: {
|
|
11
|
+
height: number;
|
|
12
|
+
width: number;
|
|
13
|
+
resizeMode: "contain";
|
|
14
|
+
};
|
|
15
|
+
gridItemContainer: {
|
|
16
|
+
flex: number;
|
|
17
|
+
height: number;
|
|
18
|
+
justifyContent: "center";
|
|
19
|
+
margin: number;
|
|
20
|
+
};
|
|
21
|
+
gridBtnStyle: {
|
|
22
|
+
justifyContent: "center";
|
|
23
|
+
alignItems: "center";
|
|
24
|
+
};
|
|
25
|
+
listItemContainer: {
|
|
26
|
+
flexDirection: "row";
|
|
27
|
+
overflow: "hidden";
|
|
28
|
+
height: number;
|
|
29
|
+
alignItems: "center";
|
|
30
|
+
};
|
|
31
|
+
listItemImageStyle: {
|
|
32
|
+
margin: number;
|
|
33
|
+
width: number;
|
|
34
|
+
resizeMode: "contain";
|
|
35
|
+
};
|
|
36
|
+
listContainer: {
|
|
37
|
+
borderRadius: number;
|
|
38
|
+
overflow: "hidden";
|
|
39
|
+
};
|
|
40
|
+
listTitleStyle: {
|
|
41
|
+
textAlignVertical: "center";
|
|
42
|
+
marginStart: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { BaseStyle, BorderStyle, FontStyle } from "../../base";
|
|
2
2
|
export class AudioBubbleStyle extends BaseStyle {
|
|
3
|
-
iconTint;
|
|
4
|
-
titleFont;
|
|
5
|
-
titleColor;
|
|
6
|
-
subtitleFont;
|
|
7
|
-
subtitleColor;
|
|
8
3
|
constructor({ height = "auto", width = "auto", backgroundColor = "transparent", border = new BorderStyle({}), borderRadius = 8, iconTint = "rgb(51, 153, 255)", titleFont = new FontStyle({ fontSize: 15, fontWeight: "700" }), titleColor = "rgba(20,20,20,0.78)", subtitleFont = new FontStyle({ fontSize: 13, fontWeight: "400" }), subtitleColor = "rgba(20,20,20,0.58)", }) {
|
|
9
4
|
super({
|
|
10
5
|
height,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AudioBubbleStyle.js","sourceRoot":"","sources":["../../../../src/shared/views/CometChatAudioBubble/AudioBubbleStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,WAAW,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAUnF,MAAM,OAAO,gBAAiB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"AudioBubbleStyle.js","sourceRoot":"","sources":["../../../../src/shared/views/CometChatAudioBubble/AudioBubbleStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,WAAW,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAUnF,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAO3C,YAAY,EACR,MAAM,GAAG,MAAM,EACf,KAAK,GAAG,MAAM,EACd,eAAe,GAAG,aAAa,EAC/B,MAAM,GAAG,IAAI,WAAW,CAAC,EAAE,CAAC,EAC5B,YAAY,GAAG,CAAC,EAChB,QAAQ,GAAG,mBAAmB,EAC9B,SAAS,GAAG,IAAI,SAAS,CAAC,EAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAC,CAAC,EAC5D,UAAU,GAAG,qBAAqB,EAClC,YAAY,GAAG,IAAI,SAAS,CAAC,EAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAC,CAAC,EAC/D,aAAa,GAAG,qBAAqB,GACb;QACxB,KAAK,CAAC;YACF,MAAM;YACN,KAAK;YACL,eAAe;YACf,MAAM;YACN,YAAY;SACf,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;CACJ"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ImageType } from "../../base/Types";
|
|
2
3
|
import { AudioBubbleStyleInterface } from "./AudioBubbleStyle";
|
|
3
4
|
export interface CometChatAudioBubbleInterface {
|
|
@@ -31,4 +32,4 @@ export interface CometChatAudioBubbleInterface {
|
|
|
31
32
|
*/
|
|
32
33
|
style?: AudioBubbleStyleInterface;
|
|
33
34
|
}
|
|
34
|
-
export declare const CometChatAudioBubble: ({ audioUrl, onPress, playIcon, pauseIcon, style, subtitle, title }: CometChatAudioBubbleInterface) =>
|
|
35
|
+
export declare const CometChatAudioBubble: ({ audioUrl, onPress, playIcon, pauseIcon, style, subtitle, title }: CometChatAudioBubbleInterface) => React.JSX.Element;
|
|
@@ -9,15 +9,7 @@ const eventEmitter = new NativeEventEmitter(SoundPlayer);
|
|
|
9
9
|
let listener;
|
|
10
10
|
export const CometChatAudioBubble = ({ audioUrl, onPress, playIcon, pauseIcon, style, subtitle, title }) => {
|
|
11
11
|
const { theme } = useContext(CometChatContext);
|
|
12
|
-
const _style = new AudioBubbleStyle({
|
|
13
|
-
backgroundColor: theme?.palette.getBackgroundColor(),
|
|
14
|
-
iconTint: theme?.palette.getPrimary(),
|
|
15
|
-
subtitleColor: theme?.palette.getAccent400(),
|
|
16
|
-
subtitleFont: theme?.typography.subtitle2,
|
|
17
|
-
titleColor: theme?.palette.getAccent(),
|
|
18
|
-
titleFont: theme?.typography.title2,
|
|
19
|
-
...style
|
|
20
|
-
});
|
|
12
|
+
const _style = new AudioBubbleStyle(Object.assign({ backgroundColor: theme === null || theme === void 0 ? void 0 : theme.palette.getBackgroundColor(), iconTint: theme === null || theme === void 0 ? void 0 : theme.palette.getPrimary(), subtitleColor: theme === null || theme === void 0 ? void 0 : theme.palette.getAccent400(), subtitleFont: theme === null || theme === void 0 ? void 0 : theme.typography.subtitle2, titleColor: theme === null || theme === void 0 ? void 0 : theme.palette.getAccent(), titleFont: theme === null || theme === void 0 ? void 0 : theme.typography.title2 }, style));
|
|
21
13
|
const { iconTint, subtitleColor, subtitleFont, titleColor, titleFont, backgroundColor, border, borderRadius, height, width } = _style;
|
|
22
14
|
const [status, setStatus] = React.useState("paused");
|
|
23
15
|
useEffect(() => {
|
|
@@ -88,23 +80,16 @@ export const CometChatAudioBubble = ({ audioUrl, onPress, playIcon, pauseIcon, s
|
|
|
88
80
|
pressTime.current = null;
|
|
89
81
|
}
|
|
90
82
|
};
|
|
91
|
-
return (
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
</Text>
|
|
103
|
-
{subtitle &&
|
|
104
|
-
<Text style={[Style.subtitleStyle, { ...subtitleFont, color: subtitleColor }]}>
|
|
105
|
-
{subtitle}
|
|
106
|
-
</Text>}
|
|
107
|
-
</View>
|
|
108
|
-
</View>);
|
|
83
|
+
return (React.createElement(View, { style: [Style.container, Object.assign(Object.assign({ backgroundColor }, border), { borderRadius, height, width })] },
|
|
84
|
+
status == "loading" ?
|
|
85
|
+
React.createElement(ActivityIndicator, { style: Style.imageStyle, color: iconTint, size: "small" }) :
|
|
86
|
+
React.createElement(View, { onTouchStart: handleTouchStart, onTouchEnd: handleTouchEnd, onTouchMove: onTouchMove },
|
|
87
|
+
React.createElement(Image, { source: status == "playing" ?
|
|
88
|
+
pauseIcon || defaultPauseIcon :
|
|
89
|
+
playIcon || defaultPlayIcon, style: [Style.imageStyle, { tintColor: iconTint }] })),
|
|
90
|
+
React.createElement(View, { style: { flex: 1 } },
|
|
91
|
+
React.createElement(Text, { style: [Style.titleStyle, Object.assign(Object.assign({}, titleFont), { color: titleColor })], numberOfLines: 1, ellipsizeMode: "middle" }, title),
|
|
92
|
+
subtitle &&
|
|
93
|
+
React.createElement(Text, { style: [Style.subtitleStyle, Object.assign(Object.assign({}, subtitleFont), { color: subtitleColor })] }, subtitle))));
|
|
109
94
|
};
|
|
110
95
|
//# sourceMappingURL=CometChatAudioBubble.js.map
|