@cometchat/chat-uikit-react-native 4.3.25 → 4.3.26
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/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/lib/AI/AIAssistBot/AIAssistBotDecorator.d.ts +23 -0
- package/lib/AI/AIAssistBot/AIAssistBotDecorator.js +132 -0
- package/lib/AI/AIAssistBot/AIAssistBotDecorator.js.map +1 -0
- package/lib/AI/AIAssistBot/AIAssistBotExtension.d.ts +8 -0
- package/lib/AI/AIAssistBot/AIAssistBotExtension.js +17 -0
- package/lib/AI/AIAssistBot/AIAssistBotExtension.js.map +1 -0
- package/lib/AI/AIAssistBot/AIAssistBotStyle.d.ts +27 -0
- package/lib/AI/AIAssistBot/AIAssistBotStyle.js +38 -0
- package/lib/AI/AIAssistBot/AIAssistBotStyle.js.map +1 -0
- package/lib/AI/AIAssistBot/AIAssistBotView.d.ts +13 -0
- package/lib/AI/AIAssistBot/AIAssistBotView.js +189 -0
- package/lib/AI/AIAssistBot/AIAssistBotView.js.map +1 -0
- package/lib/AI/AIAssistBot/configuration.d.ts +18 -0
- package/lib/AI/AIAssistBot/configuration.js +19 -0
- package/lib/AI/AIAssistBot/configuration.js.map +1 -0
- package/lib/AI/AIAssistBot/resources/CloseIcon.png +0 -0
- package/lib/AI/AIAssistBot/resources/index.d.ts +2 -0
- package/lib/AI/AIAssistBot/resources/index.js +4 -0
- package/lib/AI/AIAssistBot/resources/index.js.map +1 -0
- package/lib/AI/AIBaseConfiguration.d.ts +12 -0
- package/lib/AI/AIBaseConfiguration.js +14 -0
- package/lib/AI/AIBaseConfiguration.js.map +1 -0
- package/lib/AI/AIBaseStyle.d.ts +24 -0
- package/lib/AI/AIBaseStyle.js +31 -0
- package/lib/AI/AIBaseStyle.js.map +1 -0
- package/lib/AI/AIConversationStarter/AIConversationStarter.d.ts +8 -0
- package/lib/AI/AIConversationStarter/AIConversationStarter.js +17 -0
- package/lib/AI/AIConversationStarter/AIConversationStarter.js.map +1 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +31 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js +188 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js.map +1 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.d.ts +10 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js +14 -0
- package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js.map +1 -0
- package/lib/AI/AIConversationStarter/configuration.d.ts +7 -0
- package/lib/AI/AIConversationStarter/configuration.js +10 -0
- package/lib/AI/AIConversationStarter/configuration.js.map +1 -0
- package/lib/AI/AIConversationStarter/style.d.ts +30 -0
- package/lib/AI/AIConversationStarter/style.js +62 -0
- package/lib/AI/AIConversationStarter/style.js.map +1 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.d.ts +25 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js +150 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js.map +1 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.d.ts +8 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js +17 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js.map +1 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.d.ts +15 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js +18 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js.map +1 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.d.ts +12 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.js +126 -0
- package/lib/AI/AIConversationSummary/AIConversationSummaryView.js.map +1 -0
- package/lib/AI/AIConversationSummary/configuration.d.ts +9 -0
- package/lib/AI/AIConversationSummary/configuration.js +13 -0
- package/lib/AI/AIConversationSummary/configuration.js.map +1 -0
- package/lib/AI/AIConversationSummary/resources/close.png +0 -0
- package/lib/AI/AIConversationSummary/resources/index.d.ts +2 -0
- package/lib/AI/AIConversationSummary/resources/index.js +4 -0
- package/lib/AI/AIConversationSummary/resources/index.js.map +1 -0
- package/lib/AI/AIExtensionDataSource.d.ts +6 -0
- package/lib/AI/AIExtensionDataSource.js +12 -0
- package/lib/AI/AIExtensionDataSource.js.map +1 -0
- package/lib/AI/AIOptionsStyle.d.ts +10 -0
- package/lib/AI/AIOptionsStyle.js +14 -0
- package/lib/AI/AIOptionsStyle.js.map +1 -0
- package/lib/AI/AISmartReplies/AISmartReplies.d.ts +8 -0
- package/lib/AI/AISmartReplies/AISmartReplies.js +17 -0
- package/lib/AI/AISmartReplies/AISmartReplies.js.map +1 -0
- package/lib/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +38 -0
- package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js +240 -0
- package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js.map +1 -0
- package/lib/AI/AISmartReplies/AISmartRepliesStyle.d.ts +12 -0
- package/lib/AI/AISmartReplies/AISmartRepliesStyle.js +15 -0
- package/lib/AI/AISmartReplies/AISmartRepliesStyle.js.map +1 -0
- package/lib/AI/AISmartReplies/configuration.d.ts +9 -0
- package/lib/AI/AISmartReplies/configuration.js +11 -0
- package/lib/AI/AISmartReplies/configuration.js.map +1 -0
- package/lib/AI/CardView.d.ts +16 -0
- package/lib/AI/CardView.js +37 -0
- package/lib/AI/CardView.js.map +1 -0
- package/lib/AI/CardViewStyle.d.ts +29 -0
- package/lib/AI/CardViewStyle.js +36 -0
- package/lib/AI/CardViewStyle.js.map +1 -0
- package/lib/AI/resources/ai-empty.png +0 -0
- package/lib/AI/resources/ai-error.png +0 -0
- package/lib/AI/resources/index.d.ts +4 -0
- package/lib/AI/resources/index.js +8 -0
- package/lib/AI/resources/index.js.map +1 -0
- package/lib/AI/resources/spineer.png +0 -0
- package/lib/AI/style.d.ts +130 -0
- package/lib/AI/style.js +139 -0
- package/lib/AI/style.js.map +1 -0
- package/lib/AI/utils.d.ts +38 -0
- package/lib/AI/utils.js +28 -0
- package/lib/AI/utils.js.map +1 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.d.ts +43 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.js +42 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.js.map +1 -0
- package/lib/CometChatAddMembers/CometChatAddMembers.d.ts +10 -0
- package/lib/CometChatAddMembers/CometChatAddMembers.js +74 -0
- package/lib/CometChatAddMembers/CometChatAddMembers.js.map +1 -0
- package/lib/CometChatAddMembers/index.d.ts +4 -0
- package/lib/CometChatAddMembers/index.js +4 -0
- package/lib/CometChatAddMembers/index.js.map +1 -0
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.d.ts +46 -0
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js +44 -0
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js.map +1 -0
- package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +21 -0
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js +85 -0
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +1 -0
- package/lib/CometChatBannedMembers/index.d.ts +4 -0
- package/lib/CometChatBannedMembers/index.js +4 -0
- package/lib/CometChatBannedMembers/index.js.map +1 -0
- package/lib/CometChatBannedMembers/resources/clear.png +0 -0
- package/lib/CometChatBannedMembers/resources/index.d.ts +3 -0
- package/lib/CometChatBannedMembers/resources/index.js +4 -0
- package/lib/CometChatBannedMembers/resources/index.js.map +1 -0
- package/lib/CometChatContacts/CometChatContacts.d.ts +75 -0
- package/lib/CometChatContacts/CometChatContacts.js +87 -0
- package/lib/CometChatContacts/CometChatContacts.js.map +1 -0
- package/lib/CometChatContacts/ContactsConfiguration.d.ts +73 -0
- package/lib/CometChatContacts/ContactsConfiguration.js +2 -0
- package/lib/CometChatContacts/ContactsConfiguration.js.map +1 -0
- package/lib/CometChatContacts/ContactsStyle.d.ts +59 -0
- package/lib/CometChatContacts/ContactsStyle.js +2 -0
- package/lib/CometChatContacts/ContactsStyle.js.map +1 -0
- package/lib/CometChatContacts/Header.d.ts +31 -0
- package/lib/CometChatContacts/Header.js +72 -0
- package/lib/CometChatContacts/Header.js.map +1 -0
- package/lib/CometChatContacts/index.d.ts +5 -0
- package/lib/CometChatContacts/index.js +3 -0
- package/lib/CometChatContacts/index.js.map +1 -0
- package/lib/CometChatContacts/styles.d.ts +101 -0
- package/lib/CometChatContacts/styles.js +104 -0
- package/lib/CometChatContacts/styles.js.map +1 -0
- package/lib/CometChatConversations/CometChatConversations.d.ts +208 -0
- package/lib/CometChatConversations/CometChatConversations.js +947 -0
- package/lib/CometChatConversations/CometChatConversations.js.map +1 -0
- package/lib/CometChatConversations/ConversationsConfiguration.d.ts +126 -0
- package/lib/CometChatConversations/ConversationsConfiguration.js +115 -0
- package/lib/CometChatConversations/ConversationsConfiguration.js.map +1 -0
- package/lib/CometChatConversations/ConversationsStyle.d.ts +38 -0
- package/lib/CometChatConversations/ConversationsStyle.js +46 -0
- package/lib/CometChatConversations/ConversationsStyle.js.map +1 -0
- package/lib/CometChatConversations/index.d.ts +5 -0
- package/lib/CometChatConversations/index.js +5 -0
- package/lib/CometChatConversations/index.js.map +1 -0
- package/lib/CometChatConversations/resources/back.png +0 -0
- package/lib/CometChatConversations/resources/blue-double-tick-icon.png +0 -0
- package/lib/CometChatConversations/resources/close.png +0 -0
- package/lib/CometChatConversations/resources/delete.png +0 -0
- package/lib/CometChatConversations/resources/error.png +0 -0
- package/lib/CometChatConversations/resources/grey-double-tick-icon.png +0 -0
- package/lib/CometChatConversations/resources/grey-tick-icon.png +0 -0
- package/lib/CometChatConversations/resources/index.d.ts +14 -0
- package/lib/CometChatConversations/resources/index.js +30 -0
- package/lib/CometChatConversations/resources/index.js.map +1 -0
- package/lib/CometChatConversations/resources/new.png +0 -0
- package/lib/CometChatConversations/resources/password.png +0 -0
- package/lib/CometChatConversations/resources/private.png +0 -0
- package/lib/CometChatConversations/resources/rightTick.png +0 -0
- package/lib/CometChatConversations/resources/sending.png +0 -0
- package/lib/CometChatConversations/resources/spineer.png +0 -0
- package/lib/CometChatConversations/style.d.ts +65 -0
- package/lib/CometChatConversations/style.js +67 -0
- package/lib/CometChatConversations/style.js.map +1 -0
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.d.ts +14 -0
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js +168 -0
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js.map +1 -0
- package/lib/CometChatConversationsWithMessages/index.d.ts +3 -0
- package/lib/CometChatConversationsWithMessages/index.js +3 -0
- package/lib/CometChatConversationsWithMessages/index.js.map +1 -0
- package/lib/CometChatConversationsWithMessages/resources/index.d.ts +2 -0
- package/lib/CometChatConversationsWithMessages/resources/index.js +4 -0
- package/lib/CometChatConversationsWithMessages/resources/index.js.map +1 -0
- package/lib/CometChatConversationsWithMessages/resources/start.png +0 -0
- package/lib/CometChatConversationsWithMessages/styles.d.ts +12 -0
- package/lib/CometChatConversationsWithMessages/styles.js +14 -0
- package/lib/CometChatConversationsWithMessages/styles.js.map +1 -0
- package/lib/CometChatCreateGroup/CometChatCreateGroup.d.ts +91 -0
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js +191 -0
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js.map +1 -0
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.d.ts +14 -0
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js +16 -0
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js.map +1 -0
- package/lib/CometChatCreateGroup/Header.d.ts +3 -0
- package/lib/CometChatCreateGroup/Header.js +41 -0
- package/lib/CometChatCreateGroup/Header.js.map +1 -0
- package/lib/CometChatCreateGroup/index.d.ts +4 -0
- package/lib/CometChatCreateGroup/index.js +4 -0
- package/lib/CometChatCreateGroup/index.js.map +1 -0
- package/lib/CometChatCreateGroup/resources/close.png +0 -0
- package/lib/CometChatCreateGroup/resources/index.d.ts +5 -0
- package/lib/CometChatCreateGroup/resources/index.js +12 -0
- package/lib/CometChatCreateGroup/resources/index.js.map +1 -0
- package/lib/CometChatCreateGroup/resources/rightTick.png +0 -0
- package/lib/CometChatCreateGroup/resources/warning.png +0 -0
- package/lib/CometChatCreateGroup/style.d.ts +46 -0
- package/lib/CometChatCreateGroup/style.js +43 -0
- package/lib/CometChatCreateGroup/style.js.map +1 -0
- package/lib/CometChatDetails/CometChatDetails.d.ts +281 -0
- package/lib/CometChatDetails/CometChatDetails.js +436 -0
- package/lib/CometChatDetails/CometChatDetails.js.map +1 -0
- package/lib/CometChatDetails/DetailsConfiguration.d.ts +36 -0
- package/lib/CometChatDetails/DetailsConfiguration.js +27 -0
- package/lib/CometChatDetails/DetailsConfiguration.js.map +1 -0
- package/lib/CometChatDetails/Header.d.ts +3 -0
- package/lib/CometChatDetails/Header.js +26 -0
- package/lib/CometChatDetails/Header.js.map +1 -0
- package/lib/CometChatDetails/index.d.ts +4 -0
- package/lib/CometChatDetails/index.js +4 -0
- package/lib/CometChatDetails/index.js.map +1 -0
- package/lib/CometChatDetails/listners.d.ts +10 -0
- package/lib/CometChatDetails/listners.js +79 -0
- package/lib/CometChatDetails/listners.js.map +1 -0
- package/lib/CometChatDetails/resources/Back.png +0 -0
- package/lib/CometChatDetails/resources/close.png +0 -0
- package/lib/CometChatDetails/resources/index.d.ts +7 -0
- package/lib/CometChatDetails/resources/index.js +18 -0
- package/lib/CometChatDetails/resources/index.js.map +1 -0
- package/lib/CometChatDetails/resources/password.png +0 -0
- package/lib/CometChatDetails/resources/private.png +0 -0
- package/lib/CometChatDetails/resources/right-arrow.png +0 -0
- package/lib/CometChatDetails/styles.d.ts +28 -0
- package/lib/CometChatDetails/styles.js +23 -0
- package/lib/CometChatDetails/styles.js.map +1 -0
- package/lib/CometChatGroupMembers/CometChatGroupMembers.d.ts +96 -0
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js +414 -0
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -0
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.d.ts +87 -0
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js +71 -0
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js.map +1 -0
- package/lib/CometChatGroupMembers/GroupMemberStyle.d.ts +42 -0
- package/lib/CometChatGroupMembers/GroupMemberStyle.js +48 -0
- package/lib/CometChatGroupMembers/GroupMemberStyle.js.map +1 -0
- package/lib/CometChatGroupMembers/GroupScopeStyle.d.ts +28 -0
- package/lib/CometChatGroupMembers/GroupScopeStyle.js +35 -0
- package/lib/CometChatGroupMembers/GroupScopeStyle.js.map +1 -0
- package/lib/CometChatGroupMembers/index.d.ts +8 -0
- package/lib/CometChatGroupMembers/index.js +5 -0
- package/lib/CometChatGroupMembers/index.js.map +1 -0
- package/lib/CometChatGroupMembers/resources/banIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/check.png +0 -0
- package/lib/CometChatGroupMembers/resources/downArrowIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/index.d.ts +6 -0
- package/lib/CometChatGroupMembers/resources/index.js +12 -0
- package/lib/CometChatGroupMembers/resources/index.js.map +1 -0
- package/lib/CometChatGroupMembers/resources/kickIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/rightTick.png +0 -0
- package/lib/CometChatGroupMembers/style.d.ts +31 -0
- package/lib/CometChatGroupMembers/style.js +30 -0
- package/lib/CometChatGroupMembers/style.js.map +1 -0
- package/lib/CometChatGroups/CometChatGroups.d.ts +141 -0
- package/lib/CometChatGroups/CometChatGroups.js +318 -0
- package/lib/CometChatGroups/CometChatGroups.js.map +1 -0
- package/lib/CometChatGroups/GroupsConfiguration.d.ts +74 -0
- package/lib/CometChatGroups/GroupsConfiguration.js +41 -0
- package/lib/CometChatGroups/GroupsConfiguration.js.map +1 -0
- package/lib/CometChatGroups/GroupsStyle.d.ts +51 -0
- package/lib/CometChatGroups/GroupsStyle.js +61 -0
- package/lib/CometChatGroups/GroupsStyle.js.map +1 -0
- package/lib/CometChatGroups/index.d.ts +5 -0
- package/lib/CometChatGroups/index.js +5 -0
- package/lib/CometChatGroups/index.js.map +1 -0
- package/lib/CometChatGroups/resources/back.png +0 -0
- package/lib/CometChatGroups/resources/check.png +0 -0
- package/lib/CometChatGroups/resources/close.png +0 -0
- package/lib/CometChatGroups/resources/create.png +0 -0
- package/lib/CometChatGroups/resources/index.d.ts +10 -0
- package/lib/CometChatGroups/resources/index.js +20 -0
- package/lib/CometChatGroups/resources/index.js.map +1 -0
- package/lib/CometChatGroups/resources/more.png +0 -0
- package/lib/CometChatGroups/resources/password.png +0 -0
- package/lib/CometChatGroups/resources/private.png +0 -0
- package/lib/CometChatGroups/resources/rightTick.png +0 -0
- package/lib/CometChatGroups/resources/spineer.png +0 -0
- package/lib/CometChatGroups/style.d.ts +16 -0
- package/lib/CometChatGroups/style.js +19 -0
- package/lib/CometChatGroups/style.js.map +1 -0
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.d.ts +13 -0
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js +173 -0
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -0
- package/lib/CometChatGroupsWithMessages/index.d.ts +3 -0
- package/lib/CometChatGroupsWithMessages/index.js +3 -0
- package/lib/CometChatGroupsWithMessages/index.js.map +1 -0
- package/lib/CometChatGroupsWithMessages/resources/index.d.ts +2 -0
- package/lib/CometChatGroupsWithMessages/resources/index.js +4 -0
- package/lib/CometChatGroupsWithMessages/resources/index.js.map +1 -0
- package/lib/CometChatGroupsWithMessages/resources/write.png +0 -0
- package/lib/CometChatGroupsWithMessages/styles.d.ts +12 -0
- package/lib/CometChatGroupsWithMessages/styles.js +14 -0
- package/lib/CometChatGroupsWithMessages/styles.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.d.ts +105 -0
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js +94 -0
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/Header.d.ts +3 -0
- package/lib/CometChatJoinProtectedGroup/Header.js +33 -0
- package/lib/CometChatJoinProtectedGroup/Header.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.d.ts +15 -0
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js +17 -0
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/index.d.ts +4 -0
- package/lib/CometChatJoinProtectedGroup/index.js +4 -0
- package/lib/CometChatJoinProtectedGroup/index.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/resources/close.png +0 -0
- package/lib/CometChatJoinProtectedGroup/resources/index.d.ts +4 -0
- package/lib/CometChatJoinProtectedGroup/resources/index.js +9 -0
- package/lib/CometChatJoinProtectedGroup/resources/index.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
- package/lib/CometChatJoinProtectedGroup/style.d.ts +11 -0
- package/lib/CometChatJoinProtectedGroup/style.js +10 -0
- package/lib/CometChatJoinProtectedGroup/style.js.map +1 -0
- package/lib/CometChatMessageComposer/CometChatMessageComposer.d.ts +295 -0
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +1126 -0
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.d.ts +61 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js +47 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js.map +1 -0
- package/lib/CometChatMessageComposer/index.d.ts +4 -0
- package/lib/CometChatMessageComposer/index.js +4 -0
- package/lib/CometChatMessageComposer/index.js.map +1 -0
- package/lib/CometChatMessageComposer/resources/Info.png +0 -0
- package/lib/CometChatMessageComposer/resources/ai.png +0 -0
- package/lib/CometChatMessageComposer/resources/circle_add.png +0 -0
- package/lib/CometChatMessageComposer/resources/close.png +0 -0
- package/lib/CometChatMessageComposer/resources/emoji.png +0 -0
- package/lib/CometChatMessageComposer/resources/heart.png +0 -0
- package/lib/CometChatMessageComposer/resources/image.png +0 -0
- package/lib/CometChatMessageComposer/resources/index.d.ts +12 -0
- package/lib/CometChatMessageComposer/resources/index.js +33 -0
- package/lib/CometChatMessageComposer/resources/index.js.map +1 -0
- package/lib/CometChatMessageComposer/resources/microphone.png +0 -0
- package/lib/CometChatMessageComposer/resources/send_message.png +0 -0
- package/lib/CometChatMessageComposer/resources/stickers.png +0 -0
- package/lib/CometChatMessageComposer/styles.d.ts +26 -0
- package/lib/CometChatMessageComposer/styles.js +28 -0
- package/lib/CometChatMessageComposer/styles.js.map +1 -0
- package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +143 -0
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +279 -0
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -0
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.d.ts +37 -0
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js +28 -0
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js.map +1 -0
- package/lib/CometChatMessageHeader/index.d.ts +4 -0
- package/lib/CometChatMessageHeader/index.js +4 -0
- package/lib/CometChatMessageHeader/index.js.map +1 -0
- package/lib/CometChatMessageHeader/listners.d.ts +12 -0
- package/lib/CometChatMessageHeader/listners.js +49 -0
- package/lib/CometChatMessageHeader/listners.js.map +1 -0
- package/lib/CometChatMessageHeader/resources/Back.png +0 -0
- package/lib/CometChatMessageHeader/resources/index.d.ts +5 -0
- package/lib/CometChatMessageHeader/resources/index.js +12 -0
- package/lib/CometChatMessageHeader/resources/index.js.map +1 -0
- package/lib/CometChatMessageHeader/resources/password.png +0 -0
- package/lib/CometChatMessageHeader/resources/private.png +0 -0
- package/lib/CometChatMessageHeader/styles.d.ts +16 -0
- package/lib/CometChatMessageHeader/styles.js +16 -0
- package/lib/CometChatMessageHeader/styles.js.map +1 -0
- package/lib/CometChatMessageInformation/CometChatMessageInformation.d.ts +39 -0
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js +230 -0
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +1 -0
- package/lib/CometChatMessageInformation/MessageInformationConfiguration.d.ts +8 -0
- package/lib/CometChatMessageInformation/MessageInformationConfiguration.js +12 -0
- package/lib/CometChatMessageInformation/MessageInformationConfiguration.js.map +1 -0
- package/lib/CometChatMessageInformation/MessageInformationStyle.d.ts +11 -0
- package/lib/CometChatMessageInformation/MessageInformationStyle.js +2 -0
- package/lib/CometChatMessageInformation/MessageInformationStyle.js.map +1 -0
- package/lib/CometChatMessageInformation/index.d.ts +5 -0
- package/lib/CometChatMessageInformation/index.js +4 -0
- package/lib/CometChatMessageInformation/index.js.map +1 -0
- package/lib/CometChatMessageInformation/resources/Spineer.png +0 -0
- package/lib/CometChatMessageInformation/resources/index.d.ts +2 -0
- package/lib/CometChatMessageInformation/resources/index.js +4 -0
- package/lib/CometChatMessageInformation/resources/index.js.map +1 -0
- package/lib/CometChatMessageInformation/styles.d.ts +23 -0
- package/lib/CometChatMessageInformation/styles.js +26 -0
- package/lib/CometChatMessageInformation/styles.js.map +1 -0
- package/lib/CometChatMessageList/CometChatMessageList.d.ts +128 -0
- package/lib/CometChatMessageList/CometChatMessageList.js +1620 -0
- package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -0
- package/lib/CometChatMessageList/MessageListConfiguration.d.ts +221 -0
- package/lib/CometChatMessageList/MessageListConfiguration.js +96 -0
- package/lib/CometChatMessageList/MessageListConfiguration.js.map +1 -0
- package/lib/CometChatMessageList/MessageListStyle.d.ts +32 -0
- package/lib/CometChatMessageList/MessageListStyle.js +39 -0
- package/lib/CometChatMessageList/MessageListStyle.js.map +1 -0
- package/lib/CometChatMessageList/index.d.ts +5 -0
- package/lib/CometChatMessageList/index.js +5 -0
- package/lib/CometChatMessageList/index.js.map +1 -0
- package/lib/CometChatMessageList/resources/back.png +0 -0
- package/lib/CometChatMessageList/resources/close.png +0 -0
- package/lib/CometChatMessageList/resources/downArrowIcon.png +0 -0
- package/lib/CometChatMessageList/resources/index.d.ts +8 -0
- package/lib/CometChatMessageList/resources/index.js +16 -0
- package/lib/CometChatMessageList/resources/index.js.map +1 -0
- package/lib/CometChatMessageList/resources/leftarrowcurve.png +0 -0
- package/lib/CometChatMessageList/resources/rightArrowIcon.png +0 -0
- package/lib/CometChatMessageList/resources/rightarrowcurve.png +0 -0
- package/lib/CometChatMessageList/resources/spineer.png +0 -0
- package/lib/CometChatMessageList/style.d.ts +52 -0
- package/lib/CometChatMessageList/style.js +54 -0
- package/lib/CometChatMessageList/style.js.map +1 -0
- package/lib/CometChatMessages/CometChatMessages.d.ts +42 -0
- package/lib/CometChatMessages/CometChatMessages.js +232 -0
- package/lib/CometChatMessages/CometChatMessages.js.map +1 -0
- package/lib/CometChatMessages/MessageStyle.d.ts +15 -0
- package/lib/CometChatMessages/MessageStyle.js +19 -0
- package/lib/CometChatMessages/MessageStyle.js.map +1 -0
- package/lib/CometChatMessages/MessagesConfiguration.d.ts +69 -0
- package/lib/CometChatMessages/MessagesConfiguration.js +26 -0
- package/lib/CometChatMessages/MessagesConfiguration.js.map +1 -0
- package/lib/CometChatMessages/index.d.ts +5 -0
- package/lib/CometChatMessages/index.js +5 -0
- package/lib/CometChatMessages/index.js.map +1 -0
- package/lib/CometChatMessages/resources/index.d.ts +2 -0
- package/lib/CometChatMessages/resources/index.js +4 -0
- package/lib/CometChatMessages/resources/index.js.map +1 -0
- package/lib/CometChatMessages/resources/info.png +0 -0
- package/lib/CometChatMessages/style.d.ts +20 -0
- package/lib/CometChatMessages/style.js +22 -0
- package/lib/CometChatMessages/style.js.map +1 -0
- package/lib/CometChatTabs/CometChatTabs.d.ts +11 -0
- package/lib/CometChatTabs/CometChatTabs.js +114 -0
- package/lib/CometChatTabs/CometChatTabs.js.map +1 -0
- package/lib/CometChatTabs/CometChatTabsStyle.d.ts +18 -0
- package/lib/CometChatTabs/CometChatTabsStyle.js +23 -0
- package/lib/CometChatTabs/CometChatTabsStyle.js.map +1 -0
- package/lib/CometChatTabs/TabItemStyle.d.ts +22 -0
- package/lib/CometChatTabs/TabItemStyle.js +29 -0
- package/lib/CometChatTabs/TabItemStyle.js.map +1 -0
- package/lib/CometChatTabs/TabItems.d.ts +11 -0
- package/lib/CometChatTabs/TabItems.js +2 -0
- package/lib/CometChatTabs/TabItems.js.map +1 -0
- package/lib/CometChatTabs/index.d.ts +5 -0
- package/lib/CometChatTabs/index.js +4 -0
- package/lib/CometChatTabs/index.js.map +1 -0
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.d.ts +106 -0
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js +171 -0
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js.map +1 -0
- package/lib/CometChatThreadedMessages/Header.d.ts +12 -0
- package/lib/CometChatThreadedMessages/Header.js +23 -0
- package/lib/CometChatThreadedMessages/Header.js.map +1 -0
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.d.ts +41 -0
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js +32 -0
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js.map +1 -0
- package/lib/CometChatThreadedMessages/index.d.ts +4 -0
- package/lib/CometChatThreadedMessages/index.js +4 -0
- package/lib/CometChatThreadedMessages/index.js.map +1 -0
- package/lib/CometChatThreadedMessages/resources/Back.png +0 -0
- package/lib/CometChatThreadedMessages/resources/close.png +0 -0
- package/lib/CometChatThreadedMessages/resources/index.d.ts +8 -0
- package/lib/CometChatThreadedMessages/resources/index.js +21 -0
- package/lib/CometChatThreadedMessages/resources/index.js.map +1 -0
- package/lib/CometChatThreadedMessages/resources/more.png +0 -0
- package/lib/CometChatThreadedMessages/resources/password.png +0 -0
- package/lib/CometChatThreadedMessages/resources/private.png +0 -0
- package/lib/CometChatThreadedMessages/resources/right-arrow.png +0 -0
- package/lib/CometChatThreadedMessages/style.d.ts +25 -0
- package/lib/CometChatThreadedMessages/style.js +28 -0
- package/lib/CometChatThreadedMessages/style.js.map +1 -0
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +35 -0
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js +55 -0
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js.map +1 -0
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.d.ts +41 -0
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js +38 -0
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js.map +1 -0
- package/lib/CometChatTransferOwnership/index.d.ts +4 -0
- package/lib/CometChatTransferOwnership/index.js +4 -0
- package/lib/CometChatTransferOwnership/index.js.map +1 -0
- package/lib/CometChatUsers/CometChatUsers.d.ts +69 -0
- package/lib/CometChatUsers/CometChatUsers.js +110 -0
- package/lib/CometChatUsers/CometChatUsers.js.map +1 -0
- package/lib/CometChatUsers/UsersConfiguration.d.ts +44 -0
- package/lib/CometChatUsers/UsersConfiguration.js +42 -0
- package/lib/CometChatUsers/UsersConfiguration.js.map +1 -0
- package/lib/CometChatUsers/UsersStyle.d.ts +46 -0
- package/lib/CometChatUsers/UsersStyle.js +54 -0
- package/lib/CometChatUsers/UsersStyle.js.map +1 -0
- package/lib/CometChatUsers/index.d.ts +5 -0
- package/lib/CometChatUsers/index.js +5 -0
- package/lib/CometChatUsers/index.js.map +1 -0
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.d.ts +11 -0
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js +90 -0
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -0
- package/lib/CometChatUsersWithMessages/index.d.ts +3 -0
- package/lib/CometChatUsersWithMessages/index.js +3 -0
- package/lib/CometChatUsersWithMessages/index.js.map +1 -0
- package/lib/CometChatUsersWithMessages/styles.d.ts +12 -0
- package/lib/CometChatUsersWithMessages/styles.js +14 -0
- package/lib/CometChatUsersWithMessages/styles.js.map +1 -0
- package/lib/calls/CallEvents.d.ts +10 -0
- package/lib/calls/CallEvents.js +11 -0
- package/lib/calls/CallEvents.js.map +1 -0
- package/lib/calls/CallUtils.d.ts +8 -0
- package/lib/calls/CallUtils.js +116 -0
- package/lib/calls/CallUtils.js.map +1 -0
- package/lib/calls/CallingConfiguration.d.ts +3 -0
- package/lib/calls/CallingConfiguration.js +5 -0
- package/lib/calls/CallingConfiguration.js.map +1 -0
- package/lib/calls/CallingDetailsUtils.d.ts +7 -0
- package/lib/calls/CallingDetailsUtils.js +99 -0
- package/lib/calls/CallingDetailsUtils.js.map +1 -0
- package/lib/calls/CallingExtension.d.ts +11 -0
- package/lib/calls/CallingExtension.js +36 -0
- package/lib/calls/CallingExtension.js.map +1 -0
- package/lib/calls/CallingExtentionDecorator.d.ts +33 -0
- package/lib/calls/CallingExtentionDecorator.js +170 -0
- package/lib/calls/CallingExtentionDecorator.js.map +1 -0
- package/lib/calls/CallingPackage.d.ts +4 -0
- package/lib/calls/CallingPackage.js +18 -0
- package/lib/calls/CallingPackage.js.map +1 -0
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.d.ts +13 -0
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js +11 -0
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.d.ts +18 -0
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.js +25 -0
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.js.map +1 -0
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.d.ts +11 -0
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js +21 -0
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js.map +1 -0
- package/lib/calls/CometChatCallBubble/index.d.ts +5 -0
- package/lib/calls/CometChatCallBubble/index.js +5 -0
- package/lib/calls/CometChatCallBubble/index.js.map +1 -0
- package/lib/calls/CometChatCallBubble/resources/avatar.png +0 -0
- package/lib/calls/CometChatCallBubble/resources/incomingaudiocall.png +0 -0
- package/lib/calls/CometChatCallBubble/resources/incomingvideocall.png +0 -0
- package/lib/calls/CometChatCallBubble/resources/index.d.ts +4 -0
- package/lib/calls/CometChatCallBubble/resources/index.js +8 -0
- package/lib/calls/CometChatCallBubble/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallBubble/styles.d.ts +21 -0
- package/lib/calls/CometChatCallBubble/styles.js +23 -0
- package/lib/calls/CometChatCallBubble/styles.js.map +1 -0
- package/lib/calls/CometChatCallButtons/CallButtonStyle.d.ts +12 -0
- package/lib/calls/CometChatCallButtons/CallButtonStyle.js +19 -0
- package/lib/calls/CometChatCallButtons/CallButtonStyle.js.map +1 -0
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.d.ts +34 -0
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js +19 -0
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.d.ts +61 -0
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +211 -0
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +1 -0
- package/lib/calls/CometChatCallButtons/index.d.ts +5 -0
- package/lib/calls/CometChatCallButtons/index.js +4 -0
- package/lib/calls/CometChatCallButtons/index.js.map +1 -0
- package/lib/calls/CometChatCallButtons/resources/Call.png +0 -0
- package/lib/calls/CometChatCallButtons/resources/Video.png +0 -0
- package/lib/calls/CometChatCallButtons/resources/index.d.ts +3 -0
- package/lib/calls/CometChatCallButtons/resources/index.js +6 -0
- package/lib/calls/CometChatCallButtons/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallButtons/style.d.ts +12 -0
- package/lib/calls/CometChatCallButtons/style.js +14 -0
- package/lib/calls/CometChatCallButtons/style.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.d.ts +120 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js +59 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.d.ts +12 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js +19 -0
- package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.d.ts +72 -0
- package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js +181 -0
- package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/index.d.ts +5 -0
- package/lib/calls/CometChatCallLogDetails/index.js +5 -0
- package/lib/calls/CometChatCallLogDetails/index.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/resources/CloseIcon.png +0 -0
- package/lib/calls/CometChatCallLogDetails/resources/index.d.ts +2 -0
- package/lib/calls/CometChatCallLogDetails/resources/index.js +4 -0
- package/lib/calls/CometChatCallLogDetails/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallLogDetails/style.d.ts +13 -0
- package/lib/calls/CometChatCallLogDetails/style.js +15 -0
- package/lib/calls/CometChatCallLogDetails/style.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.d.ts +73 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js +34 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.d.ts +40 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js +25 -0
- package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.d.ts +48 -0
- package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js +184 -0
- package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/index.d.ts +5 -0
- package/lib/calls/CometChatCallLogHistory/index.js +5 -0
- package/lib/calls/CometChatCallLogHistory/index.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Call.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Info.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Selection.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Spineer.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/Video.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/check.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/incomingcall.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/incomingvideo.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/index.d.ts +14 -0
- package/lib/calls/CometChatCallLogHistory/resources/index.js +28 -0
- package/lib/calls/CometChatCallLogHistory/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallLogHistory/resources/missedcall.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/missedvideo.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/outgoingcall.png +0 -0
- package/lib/calls/CometChatCallLogHistory/resources/outgoingvideo.png +0 -0
- package/lib/calls/CometChatCallLogHistory/style.d.ts +22 -0
- package/lib/calls/CometChatCallLogHistory/style.js +24 -0
- package/lib/calls/CometChatCallLogHistory/style.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.d.ts +66 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js +33 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.d.ts +24 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js +31 -0
- package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.d.ts +39 -0
- package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js +97 -0
- package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/index.d.ts +5 -0
- package/lib/calls/CometChatCallLogParticipants/index.js +5 -0
- package/lib/calls/CometChatCallLogParticipants/index.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogParticipants/resources/index.d.ts +2 -0
- package/lib/calls/CometChatCallLogParticipants/resources/index.js +4 -0
- package/lib/calls/CometChatCallLogParticipants/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallLogParticipants/style.d.ts +22 -0
- package/lib/calls/CometChatCallLogParticipants/style.js +24 -0
- package/lib/calls/CometChatCallLogParticipants/style.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.d.ts +72 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js +34 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.d.ts +26 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js +33 -0
- package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.d.ts +41 -0
- package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js +134 -0
- package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/index.d.ts +5 -0
- package/lib/calls/CometChatCallLogRecordings/index.js +5 -0
- package/lib/calls/CometChatCallLogRecordings/index.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogRecordings/resources/download.png +0 -0
- package/lib/calls/CometChatCallLogRecordings/resources/index.d.ts +3 -0
- package/lib/calls/CometChatCallLogRecordings/resources/index.js +6 -0
- package/lib/calls/CometChatCallLogRecordings/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallLogRecordings/style.d.ts +22 -0
- package/lib/calls/CometChatCallLogRecordings/style.js +24 -0
- package/lib/calls/CometChatCallLogRecordings/style.js.map +1 -0
- package/lib/calls/CometChatCallLogs/CallLogsConfiguration.d.ts +100 -0
- package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js +45 -0
- package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogs/CallLogsStyle.d.ts +42 -0
- package/lib/calls/CometChatCallLogs/CallLogsStyle.js +49 -0
- package/lib/calls/CometChatCallLogs/CallLogsStyle.js.map +1 -0
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.d.ts +59 -0
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js +289 -0
- package/lib/calls/CometChatCallLogs/CometChatCallLogs.js.map +1 -0
- package/lib/calls/CometChatCallLogs/index.d.ts +5 -0
- package/lib/calls/CometChatCallLogs/index.js +5 -0
- package/lib/calls/CometChatCallLogs/index.js.map +1 -0
- package/lib/calls/CometChatCallLogs/resources/Back.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/Info.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/Selection.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/Spinner.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/check.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/incomingcall.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/incomingvideo.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/index.d.ts +12 -0
- package/lib/calls/CometChatCallLogs/resources/index.js +24 -0
- package/lib/calls/CometChatCallLogs/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallLogs/resources/missedcall.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/missedvideo.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/outgoingcall.png +0 -0
- package/lib/calls/CometChatCallLogs/resources/outgoingvideo.png +0 -0
- package/lib/calls/CometChatCallLogs/style.d.ts +22 -0
- package/lib/calls/CometChatCallLogs/style.js +24 -0
- package/lib/calls/CometChatCallLogs/style.js.map +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/CallLogsWithDetailsConfiguration.d.ts +8 -0
- package/lib/calls/CometChatCallLogsWithDetails/CallLogsWithDetailsConfiguration.js +2 -0
- package/lib/calls/CometChatCallLogsWithDetails/CallLogsWithDetailsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.d.ts +12 -0
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js +23 -0
- package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js.map +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/index.d.ts +4 -0
- package/lib/calls/CometChatCallLogsWithDetails/index.js +3 -0
- package/lib/calls/CometChatCallLogsWithDetails/index.js.map +1 -0
- package/lib/calls/CometChatCallLogsWithDetails/style.d.ts +8 -0
- package/lib/calls/CometChatCallLogsWithDetails/style.js +10 -0
- package/lib/calls/CometChatCallLogsWithDetails/style.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +21 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +174 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.d.ts +32 -0
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js +39 -0
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/index.d.ts +4 -0
- package/lib/calls/CometChatIncomingCall/index.js +4 -0
- package/lib/calls/CometChatIncomingCall/index.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/resources/Call.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/close.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/incomingaudiocall.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/incomingvideocall.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/index.d.ts +5 -0
- package/lib/calls/CometChatIncomingCall/resources/index.js +10 -0
- package/lib/calls/CometChatIncomingCall/resources/index.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/styles.d.ts +8 -0
- package/lib/calls/CometChatIncomingCall/styles.js +10 -0
- package/lib/calls/CometChatIncomingCall/styles.js.map +1 -0
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.d.ts +12 -0
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js +42 -0
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js.map +1 -0
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.d.ts +13 -0
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js +13 -0
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js.map +1 -0
- package/lib/calls/CometChatOngoingCall/index.d.ts +4 -0
- package/lib/calls/CometChatOngoingCall/index.js +3 -0
- package/lib/calls/CometChatOngoingCall/index.js.map +1 -0
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +46 -0
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +164 -0
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -0
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.d.ts +18 -0
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js +15 -0
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js.map +1 -0
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.d.ts +14 -0
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js +21 -0
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js.map +1 -0
- package/lib/calls/CometChatOutgoingCall/index.d.ts +4 -0
- package/lib/calls/CometChatOutgoingCall/index.js +4 -0
- package/lib/calls/CometChatOutgoingCall/index.js.map +1 -0
- package/lib/calls/CometChatOutgoingCall/resources/Close.png +0 -0
- package/lib/calls/CometChatOutgoingCall/resources/index.d.ts +2 -0
- package/lib/calls/CometChatOutgoingCall/resources/index.js +4 -0
- package/lib/calls/CometChatOutgoingCall/resources/index.js.map +1 -0
- package/lib/calls/index.d.ts +19 -0
- package/lib/calls/index.js +19 -0
- package/lib/calls/index.js.map +1 -0
- package/lib/calls/resources/Call.png +0 -0
- package/lib/calls/resources/Video.png +0 -0
- package/lib/calls/resources/index.d.ts +4 -0
- package/lib/calls/resources/index.js +8 -0
- package/lib/calls/resources/index.js.map +1 -0
- package/lib/calls/resources/nextarrow.png +0 -0
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.d.ts +55 -0
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js +30 -0
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js.map +1 -0
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +32 -0
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js +53 -0
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +1 -0
- package/lib/extensions/CollaborativeBubble/resources/index.d.ts +3 -0
- package/lib/extensions/CollaborativeBubble/resources/index.js +4 -0
- package/lib/extensions/CollaborativeBubble/resources/index.js.map +1 -0
- package/lib/extensions/CollaborativeBubble/resources/whiteboard.png +0 -0
- package/lib/extensions/CollaborativeBubble/styles.d.ts +35 -0
- package/lib/extensions/CollaborativeBubble/styles.js +74 -0
- package/lib/extensions/CollaborativeBubble/styles.js.map +1 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +14 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js +7 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js.map +1 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +12 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js +25 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js.map +1 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +22 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +133 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +1 -0
- package/lib/extensions/CollaborativeDocument/index.d.ts +6 -0
- package/lib/extensions/CollaborativeDocument/index.js +6 -0
- package/lib/extensions/CollaborativeDocument/index.js.map +1 -0
- package/lib/extensions/CollaborativeDocument/resources/collaborative_document.png +0 -0
- package/lib/extensions/CollaborativeDocument/resources/collaborative_document_2x.png +0 -0
- package/lib/extensions/CollaborativeDocument/resources/index.d.ts +2 -0
- package/lib/extensions/CollaborativeDocument/resources/index.js +7 -0
- package/lib/extensions/CollaborativeDocument/resources/index.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +14 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js +7 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +12 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js +27 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +23 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +139 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/index.d.ts +6 -0
- package/lib/extensions/CollaborativeWhiteboard/index.js +6 -0
- package/lib/extensions/CollaborativeWhiteboard/index.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/index.d.ts +2 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/index.js +7 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/index.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/whiteboard.png +0 -0
- package/lib/extensions/ExtensionConstants.d.ts +50 -0
- package/lib/extensions/ExtensionConstants.js +51 -0
- package/lib/extensions/ExtensionConstants.js.map +1 -0
- package/lib/extensions/ExtensionModerator.d.ts +16 -0
- package/lib/extensions/ExtensionModerator.js +51 -0
- package/lib/extensions/ExtensionModerator.js.map +1 -0
- package/lib/extensions/ImageModeration/ImageModerationDecorator.d.ts +13 -0
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js +45 -0
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js.map +1 -0
- package/lib/extensions/ImageModeration/ImageModerationExtension.d.ts +14 -0
- package/lib/extensions/ImageModeration/ImageModerationExtension.js +28 -0
- package/lib/extensions/ImageModeration/ImageModerationExtension.js.map +1 -0
- package/lib/extensions/ImageModeration/ImageModerationFilter.d.ts +17 -0
- package/lib/extensions/ImageModeration/ImageModerationFilter.js +92 -0
- package/lib/extensions/ImageModeration/ImageModerationFilter.js.map +1 -0
- package/lib/extensions/ImageModeration/index.d.ts +5 -0
- package/lib/extensions/ImageModeration/index.js +5 -0
- package/lib/extensions/ImageModeration/index.js.map +1 -0
- package/lib/extensions/ImageModeration/resources/index.d.ts +3 -0
- package/lib/extensions/ImageModeration/resources/index.js +4 -0
- package/lib/extensions/ImageModeration/resources/index.js.map +1 -0
- package/lib/extensions/ImageModeration/resources/unsafe.png +0 -0
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.d.ts +18 -0
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js +17 -0
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js.map +1 -0
- package/lib/extensions/LinkPreview/LinkPreviewBubble.d.ts +12 -0
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js +75 -0
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js.map +1 -0
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.d.ts +14 -0
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js +13 -0
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js.map +1 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtention.d.ts +8 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js +21 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js.map +1 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.d.ts +13 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js +37 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js.map +1 -0
- package/lib/extensions/LinkPreview/index.d.ts +7 -0
- package/lib/extensions/LinkPreview/index.js +6 -0
- package/lib/extensions/LinkPreview/index.js.map +1 -0
- package/lib/extensions/LinkPreview/resources/defaultImage.png +0 -0
- package/lib/extensions/LinkPreview/resources/index.d.ts +2 -0
- package/lib/extensions/LinkPreview/resources/index.js +4 -0
- package/lib/extensions/LinkPreview/resources/index.js.map +1 -0
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.d.ts +24 -0
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js +90 -0
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js.map +1 -0
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +22 -0
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +213 -0
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +1 -0
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.d.ts +14 -0
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js +28 -0
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js.map +1 -0
- package/lib/extensions/MessageTranslation/index.d.ts +5 -0
- package/lib/extensions/MessageTranslation/index.js +5 -0
- package/lib/extensions/MessageTranslation/index.js.map +1 -0
- package/lib/extensions/MessageTranslation/resources/index.d.ts +3 -0
- package/lib/extensions/MessageTranslation/resources/index.js +6 -0
- package/lib/extensions/MessageTranslation/resources/index.js.map +1 -0
- package/lib/extensions/MessageTranslation/resources/translate.png +0 -0
- package/lib/extensions/Polls/Header.d.ts +14 -0
- package/lib/extensions/Polls/Header.js +41 -0
- package/lib/extensions/Polls/Header.js.map +1 -0
- package/lib/extensions/Polls/Polls.d.ts +123 -0
- package/lib/extensions/Polls/Polls.js +243 -0
- package/lib/extensions/Polls/Polls.js.map +1 -0
- package/lib/extensions/Polls/PollsBubble.d.ts +76 -0
- package/lib/extensions/Polls/PollsBubble.js +226 -0
- package/lib/extensions/Polls/PollsBubble.js.map +1 -0
- package/lib/extensions/Polls/PollsConfigurations.d.ts +15 -0
- package/lib/extensions/Polls/PollsConfigurations.js +2 -0
- package/lib/extensions/Polls/PollsConfigurations.js.map +1 -0
- package/lib/extensions/Polls/PollsDecorator.d.ts +20 -0
- package/lib/extensions/Polls/PollsDecorator.js +100 -0
- package/lib/extensions/Polls/PollsDecorator.js.map +1 -0
- package/lib/extensions/Polls/PollsExtension.d.ts +12 -0
- package/lib/extensions/Polls/PollsExtension.js +27 -0
- package/lib/extensions/Polls/PollsExtension.js.map +1 -0
- package/lib/extensions/Polls/index.d.ts +5 -0
- package/lib/extensions/Polls/index.js +4 -0
- package/lib/extensions/Polls/index.js.map +1 -0
- package/lib/extensions/Polls/resources/close.png +0 -0
- package/lib/extensions/Polls/resources/document.png +0 -0
- package/lib/extensions/Polls/resources/index.d.ts +7 -0
- package/lib/extensions/Polls/resources/index.js +18 -0
- package/lib/extensions/Polls/resources/index.js.map +1 -0
- package/lib/extensions/Polls/resources/kickIcon.png +0 -0
- package/lib/extensions/Polls/resources/rightTick.png +0 -0
- package/lib/extensions/Polls/resources/warning.png +0 -0
- package/lib/extensions/Polls/style.d.ts +45 -0
- package/lib/extensions/Polls/style.js +39 -0
- package/lib/extensions/Polls/style.js.map +1 -0
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.d.ts +13 -0
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +105 -0
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js.map +1 -0
- package/lib/extensions/SmartReplies/SmartRepliesExtension.d.ts +14 -0
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js +28 -0
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js.map +1 -0
- package/lib/extensions/SmartReplies/SmartRepliesView.d.ts +19 -0
- package/lib/extensions/SmartReplies/SmartRepliesView.js +146 -0
- package/lib/extensions/SmartReplies/SmartRepliesView.js.map +1 -0
- package/lib/extensions/SmartReplies/index.d.ts +4 -0
- package/lib/extensions/SmartReplies/index.js +4 -0
- package/lib/extensions/SmartReplies/index.js.map +1 -0
- package/lib/extensions/SmartReplies/resources/close.png +0 -0
- package/lib/extensions/SmartReplies/resources/index.d.ts +3 -0
- package/lib/extensions/SmartReplies/resources/index.js +6 -0
- package/lib/extensions/SmartReplies/resources/index.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +22 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js +81 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.d.ts +14 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js +17 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.d.ts +20 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js +27 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.d.ts +2 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js +62 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.d.ts +4 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.js +5 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.d.ts +55 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js +55 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js.map +1 -0
- package/lib/extensions/Stickers/StickerConfiguration.d.ts +8 -0
- package/lib/extensions/Stickers/StickerConfiguration.js +12 -0
- package/lib/extensions/Stickers/StickerConfiguration.js.map +1 -0
- package/lib/extensions/Stickers/StickerStyle.d.ts +6 -0
- package/lib/extensions/Stickers/StickerStyle.js +10 -0
- package/lib/extensions/Stickers/StickerStyle.js.map +1 -0
- package/lib/extensions/Stickers/StickersBubble.d.ts +17 -0
- package/lib/extensions/Stickers/StickersBubble.js +21 -0
- package/lib/extensions/Stickers/StickersBubble.js.map +1 -0
- package/lib/extensions/Stickers/StickersExtension.d.ts +8 -0
- package/lib/extensions/Stickers/StickersExtension.js +28 -0
- package/lib/extensions/Stickers/StickersExtension.js.map +1 -0
- package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +22 -0
- package/lib/extensions/Stickers/StickersExtensionDecorator.js +126 -0
- package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +1 -0
- package/lib/extensions/Stickers/index.d.ts +6 -0
- package/lib/extensions/Stickers/index.js +5 -0
- package/lib/extensions/Stickers/index.js.map +1 -0
- package/lib/extensions/Stickers/resources/Stickers.png +0 -0
- package/lib/extensions/Stickers/resources/index.d.ts +2 -0
- package/lib/extensions/Stickers/resources/index.js +4 -0
- package/lib/extensions/Stickers/resources/index.js.map +1 -0
- package/lib/extensions/TextModeration/TextModerationConfiguration.d.ts +14 -0
- package/lib/extensions/TextModeration/TextModerationConfiguration.js +7 -0
- package/lib/extensions/TextModeration/TextModerationConfiguration.js.map +1 -0
- package/lib/extensions/TextModeration/TextModerationExtension.d.ts +13 -0
- package/lib/extensions/TextModeration/TextModerationExtension.js +38 -0
- package/lib/extensions/TextModeration/TextModerationExtension.js.map +1 -0
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +13 -0
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js +55 -0
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js.map +1 -0
- package/lib/extensions/TextModeration/index.d.ts +5 -0
- package/lib/extensions/TextModeration/index.js +4 -0
- package/lib/extensions/TextModeration/index.js.map +1 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.d.ts +16 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +66 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +15 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js +28 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js.map +1 -0
- package/lib/extensions/ThumbnailGeneration/index.d.ts +3 -0
- package/lib/extensions/ThumbnailGeneration/index.js +3 -0
- package/lib/extensions/ThumbnailGeneration/index.js.map +1 -0
- package/lib/extensions/ThumbnailGeneration/resources/default_image.png +0 -0
- package/lib/extensions/ThumbnailGeneration/resources/empty.png +0 -0
- package/lib/extensions/ThumbnailGeneration/resources/index.d.ts +2 -0
- package/lib/extensions/ThumbnailGeneration/resources/index.js +4 -0
- package/lib/extensions/ThumbnailGeneration/resources/index.js.map +1 -0
- package/lib/extensions/index.d.ts +13 -0
- package/lib/extensions/index.js +13 -0
- package/lib/extensions/index.js.map +1 -0
- package/lib/index.d.ts +47 -0
- package/lib/index.js +86 -0
- package/lib/index.js.map +1 -0
- package/lib/shared/CometChatContext.d.ts +4 -0
- package/lib/shared/CometChatContext.js +33 -0
- package/lib/shared/CometChatContext.js.map +1 -0
- package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +65 -0
- package/lib/shared/CometChatUiKit/CometChatUIKit.js +451 -0
- package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -0
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.d.ts +20 -0
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.js +66 -0
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.js.map +1 -0
- package/lib/shared/CometChatUiKit/UIKitSettings.d.ts +18 -0
- package/lib/shared/CometChatUiKit/UIKitSettings.js +18 -0
- package/lib/shared/CometChatUiKit/UIKitSettings.js.map +1 -0
- package/lib/shared/CometChatUiKit/index.d.ts +4 -0
- package/lib/shared/CometChatUiKit/index.js +5 -0
- package/lib/shared/CometChatUiKit/index.js.map +1 -0
- package/lib/shared/assets/images/Back.png +0 -0
- package/lib/shared/assets/images/BackArrow.png +0 -0
- package/lib/shared/assets/images/blue-double-tick-icon.png +0 -0
- package/lib/shared/assets/images/calendar.png +0 -0
- package/lib/shared/assets/images/checkmark.png +0 -0
- package/lib/shared/assets/images/clock-alert.png +0 -0
- package/lib/shared/assets/images/clock.png +0 -0
- package/lib/shared/assets/images/earth.png +0 -0
- package/lib/shared/assets/images/empty-slot.png +0 -0
- package/lib/shared/assets/images/error.png +0 -0
- package/lib/shared/assets/images/forwardArrow.png +0 -0
- package/lib/shared/assets/images/grey-double-tick-icon.png +0 -0
- package/lib/shared/assets/images/grey-tick-icon.png +0 -0
- package/lib/shared/assets/images/index.d.ts +16 -0
- package/lib/shared/assets/images/index.js +45 -0
- package/lib/shared/assets/images/index.js.map +1 -0
- package/lib/shared/assets/images/search.png +0 -0
- package/lib/shared/assets/images/sending.png +0 -0
- package/lib/shared/base/BaseStyle.d.ts +26 -0
- package/lib/shared/base/BaseStyle.js +26 -0
- package/lib/shared/base/BaseStyle.js.map +1 -0
- package/lib/shared/base/BorderStyle.d.ts +19 -0
- package/lib/shared/base/BorderStyle.js +19 -0
- package/lib/shared/base/BorderStyle.js.map +1 -0
- package/lib/shared/base/FontStyle.d.ts +18 -0
- package/lib/shared/base/FontStyle.js +18 -0
- package/lib/shared/base/FontStyle.js.map +1 -0
- package/lib/shared/base/ShadowStyle.d.ts +33 -0
- package/lib/shared/base/ShadowStyle.js +27 -0
- package/lib/shared/base/ShadowStyle.js.map +1 -0
- package/lib/shared/base/Types.d.ts +23 -0
- package/lib/shared/base/Types.js +2 -0
- package/lib/shared/base/Types.js.map +1 -0
- package/lib/shared/base/index.d.ts +7 -0
- package/lib/shared/base/index.js +6 -0
- package/lib/shared/base/index.js.map +1 -0
- package/lib/shared/base/vars.d.ts +8 -0
- package/lib/shared/base/vars.js +7 -0
- package/lib/shared/base/vars.js.map +1 -0
- package/lib/shared/constants/UIKitConstants.d.ts +338 -0
- package/lib/shared/constants/UIKitConstants.js +366 -0
- package/lib/shared/constants/UIKitConstants.js.map +1 -0
- package/lib/shared/events/CometChatMessageEvents/index.d.ts +44 -0
- package/lib/shared/events/CometChatMessageEvents/index.js +93 -0
- package/lib/shared/events/CometChatMessageEvents/index.js.map +1 -0
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.d.ts +30 -0
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +379 -0
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -0
- package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +214 -0
- package/lib/shared/events/CometChatUIEventHandler/Listener.js +338 -0
- package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -0
- package/lib/shared/events/CometChatUIEvents.d.ts +19 -0
- package/lib/shared/events/CometChatUIEvents.js +22 -0
- package/lib/shared/events/CometChatUIEvents.js.map +1 -0
- package/lib/shared/events/ListenerInitializer.d.ts +6 -0
- package/lib/shared/events/ListenerInitializer.js +80 -0
- package/lib/shared/events/ListenerInitializer.js.map +1 -0
- package/lib/shared/events/conversations.d.ts +3 -0
- package/lib/shared/events/conversations.js +5 -0
- package/lib/shared/events/conversations.js.map +1 -0
- package/lib/shared/events/groups.d.ts +10 -0
- package/lib/shared/events/groups.js +12 -0
- package/lib/shared/events/groups.js.map +1 -0
- package/lib/shared/events/index.d.ts +6 -0
- package/lib/shared/events/index.js +7 -0
- package/lib/shared/events/index.js.map +1 -0
- package/lib/shared/events/messages.d.ts +30 -0
- package/lib/shared/events/messages.js +32 -0
- package/lib/shared/events/messages.js.map +1 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.d.ts +159 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +361 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +1 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.d.ts +12 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js +14 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js.map +1 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/index.d.ts +3 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/index.js +4 -0
- package/lib/shared/formatters/CometChatMentionsFormatter/index.js.map +1 -0
- package/lib/shared/formatters/CometChatTextFormatter.d.ts +171 -0
- package/lib/shared/formatters/CometChatTextFormatter.js +218 -0
- package/lib/shared/formatters/CometChatTextFormatter.js.map +1 -0
- package/lib/shared/formatters/CometChatUrlsFormatter/index.d.ts +37 -0
- package/lib/shared/formatters/CometChatUrlsFormatter/index.js +125 -0
- package/lib/shared/formatters/CometChatUrlsFormatter/index.js.map +1 -0
- package/lib/shared/formatters/index.d.ts +5 -0
- package/lib/shared/formatters/index.js +6 -0
- package/lib/shared/formatters/index.js.map +1 -0
- package/lib/shared/framework/ChatConfigurator.d.ts +8 -0
- package/lib/shared/framework/ChatConfigurator.js +23 -0
- package/lib/shared/framework/ChatConfigurator.js.map +1 -0
- package/lib/shared/framework/DataSource.d.ts +72 -0
- package/lib/shared/framework/DataSource.js +2 -0
- package/lib/shared/framework/DataSource.js.map +1 -0
- package/lib/shared/framework/DataSourceDecorator.d.ts +70 -0
- package/lib/shared/framework/DataSourceDecorator.js +172 -0
- package/lib/shared/framework/DataSourceDecorator.js.map +1 -0
- package/lib/shared/framework/ExtensionsDataSource.d.ts +6 -0
- package/lib/shared/framework/ExtensionsDataSource.js +15 -0
- package/lib/shared/framework/ExtensionsDataSource.js.map +1 -0
- package/lib/shared/framework/MessageDataSource.d.ts +95 -0
- package/lib/shared/framework/MessageDataSource.js +808 -0
- package/lib/shared/framework/MessageDataSource.js.map +1 -0
- package/lib/shared/framework/index.d.ts +7 -0
- package/lib/shared/framework/index.js +6 -0
- package/lib/shared/framework/index.js.map +1 -0
- package/lib/shared/framework/resources/audio-file.png +0 -0
- package/lib/shared/framework/resources/circle_add.png +0 -0
- package/lib/shared/framework/resources/copy.png +0 -0
- package/lib/shared/framework/resources/delete.png +0 -0
- package/lib/shared/framework/resources/edit.png +0 -0
- package/lib/shared/framework/resources/emoji.png +0 -0
- package/lib/shared/framework/resources/file_upload.png +0 -0
- package/lib/shared/framework/resources/forward.png +0 -0
- package/lib/shared/framework/resources/heart.png +0 -0
- package/lib/shared/framework/resources/image.png +0 -0
- package/lib/shared/framework/resources/index.d.ts +22 -0
- package/lib/shared/framework/resources/index.js +65 -0
- package/lib/shared/framework/resources/index.js.map +1 -0
- package/lib/shared/framework/resources/info.png +0 -0
- package/lib/shared/framework/resources/location.png +0 -0
- package/lib/shared/framework/resources/messageInPrivate.png +0 -0
- package/lib/shared/framework/resources/microphone.png +0 -0
- package/lib/shared/framework/resources/pause.png +0 -0
- package/lib/shared/framework/resources/play.png +0 -0
- package/lib/shared/framework/resources/reply.png +0 -0
- package/lib/shared/framework/resources/send_message.png +0 -0
- package/lib/shared/framework/resources/share.png +0 -0
- package/lib/shared/framework/resources/stop_player.png +0 -0
- package/lib/shared/framework/resources/thread.png +0 -0
- package/lib/shared/framework/resources/video_upload.png +0 -0
- package/lib/shared/helper/SwipeRow.d.ts +162 -0
- package/lib/shared/helper/SwipeRow.js +808 -0
- package/lib/shared/helper/SwipeRow.js.map +1 -0
- package/lib/shared/helper/Toast.d.ts +4 -0
- package/lib/shared/helper/Toast.js +23 -0
- package/lib/shared/helper/Toast.js.map +1 -0
- package/lib/shared/helper/functions.d.ts +3 -0
- package/lib/shared/helper/functions.js +32 -0
- package/lib/shared/helper/functions.js.map +1 -0
- package/lib/shared/helper/helperFunctions.d.ts +3 -0
- package/lib/shared/helper/helperFunctions.js +17 -0
- package/lib/shared/helper/helperFunctions.js.map +1 -0
- package/lib/shared/helper/types/index.d.ts +19 -0
- package/lib/shared/helper/types/index.js +2 -0
- package/lib/shared/helper/types/index.js.map +1 -0
- package/lib/shared/helper/useKeyboard.d.ts +2 -0
- package/lib/shared/helper/useKeyboard.js +40 -0
- package/lib/shared/helper/useKeyboard.js.map +1 -0
- package/lib/shared/index.d.ts +16 -0
- package/lib/shared/index.js +29 -0
- package/lib/shared/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.d.ts +23 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js +111 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.d.ts +9 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js +45 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.d.ts +9 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js +59 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.d.ts +10 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js +14 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/index.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/index.js +4 -0
- package/lib/shared/libs/CometChatCalendar/Calendars/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.d.ts +8 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.js +21 -0
- package/lib/shared/libs/CometChatCalendar/Components/Arrow.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.d.ts +15 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.js +47 -0
- package/lib/shared/libs/CometChatCalendar/Components/Day.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.d.ts +16 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.js +41 -0
- package/lib/shared/libs/CometChatCalendar/Components/Days.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.d.ts +11 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.js +24 -0
- package/lib/shared/libs/CometChatCalendar/Components/Month.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.d.ts +15 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.js +30 -0
- package/lib/shared/libs/CometChatCalendar/Components/Months.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.d.ts +12 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.js +22 -0
- package/lib/shared/libs/CometChatCalendar/Components/Title.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.d.ts +6 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js +13 -0
- package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Components/index.d.ts +7 -0
- package/lib/shared/libs/CometChatCalendar/Components/index.js +8 -0
- package/lib/shared/libs/CometChatCalendar/Components/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Constants/View.d.ts +4 -0
- package/lib/shared/libs/CometChatCalendar/Constants/View.js +6 -0
- package/lib/shared/libs/CometChatCalendar/Constants/View.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Constants/index.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Constants/index.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Constants/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.js +5 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.d.ts +4 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.js +5 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/index.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/index.js +3 -0
- package/lib/shared/libs/CometChatCalendar/Contexts/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/ArrowDirections.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/ArrowDirections.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/ArrowDirections.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Calendar.d.ts +19 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Calendar.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Calendar.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Components.d.ts +12 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Components.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Components.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/DateProperties.d.ts +4 -0
- package/lib/shared/libs/CometChatCalendar/Entities/DateProperties.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/DateProperties.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Locale.d.ts +8 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Locale.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Locale.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Theme.d.ts +37 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Theme.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Entities/Theme.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Entities/index.d.ts +6 -0
- package/lib/shared/libs/CometChatCalendar/Entities/index.js +7 -0
- package/lib/shared/libs/CometChatCalendar/Entities/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/index.d.ts +1 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/index.js +2 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.d.ts +37 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js +57 -0
- package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Icons/BackArrow.png +0 -0
- package/lib/shared/libs/CometChatCalendar/Icons/chevron-left-16.png +0 -0
- package/lib/shared/libs/CometChatCalendar/Icons/index.d.ts +8 -0
- package/lib/shared/libs/CometChatCalendar/Icons/index.js +8 -0
- package/lib/shared/libs/CometChatCalendar/Icons/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Locales/index.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Locales/index.js +5 -0
- package/lib/shared/libs/CometChatCalendar/Locales/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Themes/Colors.d.ts +13 -0
- package/lib/shared/libs/CometChatCalendar/Themes/Colors.js +21 -0
- package/lib/shared/libs/CometChatCalendar/Themes/Colors.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js +75 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js +157 -0
- package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Themes/index.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Themes/index.js +4 -0
- package/lib/shared/libs/CometChatCalendar/Themes/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.js +11 -0
- package/lib/shared/libs/CometChatCalendar/Utils/addOpacity.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/checkChangedProps.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Utils/checkChangedProps.js +11 -0
- package/lib/shared/libs/CometChatCalendar/Utils/checkChangedProps.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.d.ts +2 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.js +5 -0
- package/lib/shared/libs/CometChatCalendar/Utils/clamp.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.d.ts +3 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.js +16 -0
- package/lib/shared/libs/CometChatCalendar/Utils/dateRange.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.d.ts +6 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.js +19 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.d.ts +11 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js +18 -0
- package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/Utils/index.d.ts +6 -0
- package/lib/shared/libs/CometChatCalendar/Utils/index.js +7 -0
- package/lib/shared/libs/CometChatCalendar/Utils/index.js.map +1 -0
- package/lib/shared/libs/CometChatCalendar/index.d.ts +5 -0
- package/lib/shared/libs/CometChatCalendar/index.js +6 -0
- package/lib/shared/libs/CometChatCalendar/index.js.map +1 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.d.ts +227 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js +750 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js.map +1 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.d.ts +88 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js +161 -0
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js.map +1 -0
- package/lib/shared/libs/ImageZoom/helper.d.ts +8 -0
- package/lib/shared/libs/ImageZoom/helper.js +90 -0
- package/lib/shared/libs/ImageZoom/helper.js.map +1 -0
- package/lib/shared/libs/ImageZoom/index.d.ts +4 -0
- package/lib/shared/libs/ImageZoom/index.js +4 -0
- package/lib/shared/libs/ImageZoom/index.js.map +1 -0
- package/lib/shared/libs/ImageZoom/types/index.d.ts +91 -0
- package/lib/shared/libs/ImageZoom/types/index.js +8 -0
- package/lib/shared/libs/ImageZoom/types/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/DRMType.d.ts +7 -0
- package/lib/shared/libs/VideoPlayer/DRMType.js +7 -0
- package/lib/shared/libs/VideoPlayer/DRMType.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/FilterType.d.ts +19 -0
- package/lib/shared/libs/VideoPlayer/FilterType.js +19 -0
- package/lib/shared/libs/VideoPlayer/FilterType.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/TextTrackType.d.ts +6 -0
- package/lib/shared/libs/VideoPlayer/TextTrackType.js +6 -0
- package/lib/shared/libs/VideoPlayer/TextTrackType.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/Video.d.ts +49 -0
- package/lib/shared/libs/VideoPlayer/Video.js +436 -0
- package/lib/shared/libs/VideoPlayer/Video.js.map +1 -0
- package/lib/shared/libs/VideoPlayer/VideoResizeMode.d.ts +6 -0
- package/lib/shared/libs/VideoPlayer/VideoResizeMode.js +6 -0
- package/lib/shared/libs/VideoPlayer/VideoResizeMode.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.d.ts +10 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js +16 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.d.ts +6 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js +11 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/OSSupport/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.d.ts +3 -0
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js +314 -0
- package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/Back.d.ts +11 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js +9 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Back/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.d.ts +28 -0
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js +54 -0
- package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Control.d.ts +12 -0
- package/lib/shared/libs/VideoPlayerControls/components/Control.js +15 -0
- package/lib/shared/libs/VideoPlayerControls/components/Control.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.d.ts +6 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js +13 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/styles.d.ts +19 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/styles.js +21 -0
- package/lib/shared/libs/VideoPlayerControls/components/Error/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.d.ts +9 -0
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js +17 -0
- package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.d.ts +6 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js +9 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.d.ts +14 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.js +16 -0
- package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.d.ts +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.js +7 -0
- package/lib/shared/libs/VideoPlayerControls/components/NullControl.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.d.ts +5 -0
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.js +17 -0
- package/lib/shared/libs/VideoPlayerControls/components/Overlay.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.d.ts +21 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js +43 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.d.ts +19 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.js +21 -0
- package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.d.ts +11 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js +20 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.d.ts +35 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.js +37 -0
- package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.d.ts +9 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js +10 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.d.ts +10 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.js +12 -0
- package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Title.d.ts +6 -0
- package/lib/shared/libs/VideoPlayerControls/components/Title.js +26 -0
- package/lib/shared/libs/VideoPlayerControls/components/Title.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.d.ts +21 -0
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.js +39 -0
- package/lib/shared/libs/VideoPlayerControls/components/TopControls.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.d.ts +12 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js +13 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/index.d.ts +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/index.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.d.ts +29 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.js +31 -0
- package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/index.d.ts +14 -0
- package/lib/shared/libs/VideoPlayerControls/components/index.js +15 -0
- package/lib/shared/libs/VideoPlayerControls/components/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/components/styles.d.ts +28 -0
- package/lib/shared/libs/VideoPlayerControls/components/styles.js +30 -0
- package/lib/shared/libs/VideoPlayerControls/components/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/index.d.ts +3 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/index.js +4 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useAnimations.d.ts +2 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useAnimations.js +61 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useAnimations.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.d.ts +17 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.js +43 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.d.ts +24 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.js +55 -0
- package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/index.d.ts +3 -0
- package/lib/shared/libs/VideoPlayerControls/index.js +4 -0
- package/lib/shared/libs/VideoPlayerControls/index.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/styles.d.ts +17 -0
- package/lib/shared/libs/VideoPlayerControls/styles.js +19 -0
- package/lib/shared/libs/VideoPlayerControls/styles.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/types.d.ts +248 -0
- package/lib/shared/libs/VideoPlayerControls/types.js +2 -0
- package/lib/shared/libs/VideoPlayerControls/types.js.map +1 -0
- package/lib/shared/libs/VideoPlayerControls/utils.d.ts +10 -0
- package/lib/shared/libs/VideoPlayerControls/utils.js +46 -0
- package/lib/shared/libs/VideoPlayerControls/utils.js.map +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.d.ts +2 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js +59 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js.map +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.d.ts +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.d.ts +174 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js +239 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js.map +1 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.js +9 -0
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.js.map +1 -0
- package/lib/shared/libs/datePickerModal/Modal.d.ts +34 -0
- package/lib/shared/libs/datePickerModal/Modal.js +134 -0
- package/lib/shared/libs/datePickerModal/Modal.js.map +1 -0
- package/lib/shared/libs/datePickerModal/index.d.ts +3 -0
- package/lib/shared/libs/datePickerModal/index.js +4 -0
- package/lib/shared/libs/datePickerModal/index.js.map +1 -0
- package/lib/shared/libs/datePickerModal/utils.d.ts +1 -0
- package/lib/shared/libs/datePickerModal/utils.js +22 -0
- package/lib/shared/libs/datePickerModal/utils.js.map +1 -0
- package/lib/shared/libs/luxon/src/datetime.d.ts +1181 -0
- package/lib/shared/libs/luxon/src/datetime.js +2095 -0
- package/lib/shared/libs/luxon/src/datetime.js.map +1 -0
- package/lib/shared/libs/luxon/src/duration.d.ts +632 -0
- package/lib/shared/libs/luxon/src/duration.js +905 -0
- package/lib/shared/libs/luxon/src/duration.js.map +1 -0
- package/lib/shared/libs/luxon/src/errors.d.ts +46 -0
- package/lib/shared/libs/luxon/src/errors.js +57 -0
- package/lib/shared/libs/luxon/src/errors.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/conversions.d.ts +24 -0
- package/lib/shared/libs/luxon/src/impl/conversions.js +163 -0
- package/lib/shared/libs/luxon/src/impl/conversions.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/diff.d.ts +2 -0
- package/lib/shared/libs/luxon/src/impl/diff.js +80 -0
- package/lib/shared/libs/luxon/src/impl/diff.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/digits.d.ts +4 -0
- package/lib/shared/libs/luxon/src/impl/digits.js +73 -0
- package/lib/shared/libs/luxon/src/impl/digits.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/english.d.ts +22 -0
- package/lib/shared/libs/luxon/src/impl/english.js +204 -0
- package/lib/shared/libs/luxon/src/impl/english.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/formats.d.ts +154 -0
- package/lib/shared/libs/luxon/src/impl/formats.js +152 -0
- package/lib/shared/libs/luxon/src/impl/formats.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/formatter.d.ts +24 -0
- package/lib/shared/libs/luxon/src/impl/formatter.js +367 -0
- package/lib/shared/libs/luxon/src/impl/formatter.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/invalid.d.ts +6 -0
- package/lib/shared/libs/luxon/src/impl/invalid.js +15 -0
- package/lib/shared/libs/luxon/src/impl/invalid.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/locale.d.ts +81 -0
- package/lib/shared/libs/luxon/src/impl/locale.js +460 -0
- package/lib/shared/libs/luxon/src/impl/locale.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/regexParser.d.ts +6 -0
- package/lib/shared/libs/luxon/src/impl/regexParser.js +212 -0
- package/lib/shared/libs/luxon/src/impl/regexParser.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/tokenParser.d.ts +27 -0
- package/lib/shared/libs/luxon/src/impl/tokenParser.js +413 -0
- package/lib/shared/libs/luxon/src/impl/tokenParser.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/util.d.ts +38 -0
- package/lib/shared/libs/luxon/src/impl/util.js +257 -0
- package/lib/shared/libs/luxon/src/impl/util.js.map +1 -0
- package/lib/shared/libs/luxon/src/impl/zoneUtil.d.ts +1 -0
- package/lib/shared/libs/luxon/src/impl/zoneUtil.js +38 -0
- package/lib/shared/libs/luxon/src/impl/zoneUtil.js.map +1 -0
- package/lib/shared/libs/luxon/src/info.d.ts +178 -0
- package/lib/shared/libs/luxon/src/info.js +182 -0
- package/lib/shared/libs/luxon/src/info.js.map +1 -0
- package/lib/shared/libs/luxon/src/interval.d.ts +328 -0
- package/lib/shared/libs/luxon/src/interval.js +606 -0
- package/lib/shared/libs/luxon/src/interval.js.map +1 -0
- package/lib/shared/libs/luxon/src/luxon.d.ts +12 -0
- package/lib/shared/libs/luxon/src/luxon.js +13 -0
- package/lib/shared/libs/luxon/src/luxon.js.map +1 -0
- package/lib/shared/libs/luxon/src/settings.d.ts +115 -0
- package/lib/shared/libs/luxon/src/settings.js +149 -0
- package/lib/shared/libs/luxon/src/settings.js.map +1 -0
- package/lib/shared/libs/luxon/src/zone.d.ts +66 -0
- package/lib/shared/libs/luxon/src/zone.js +83 -0
- package/lib/shared/libs/luxon/src/zone.js.map +1 -0
- package/lib/shared/libs/luxon/src/zones/IANAZone.d.ts +53 -0
- package/lib/shared/libs/luxon/src/zones/IANAZone.js +167 -0
- package/lib/shared/libs/luxon/src/zones/IANAZone.js.map +1 -0
- package/lib/shared/libs/luxon/src/zones/fixedOffsetZone.d.ts +38 -0
- package/lib/shared/libs/luxon/src/zones/fixedOffsetZone.js +90 -0
- package/lib/shared/libs/luxon/src/zones/fixedOffsetZone.js.map +1 -0
- package/lib/shared/libs/luxon/src/zones/invalidZone.d.ts +20 -0
- package/lib/shared/libs/luxon/src/zones/invalidZone.js +45 -0
- package/lib/shared/libs/luxon/src/zones/invalidZone.js.map +1 -0
- package/lib/shared/libs/luxon/src/zones/systemZone.d.ts +23 -0
- package/lib/shared/libs/luxon/src/zones/systemZone.js +52 -0
- package/lib/shared/libs/luxon/src/zones/systemZone.js.map +1 -0
- package/lib/shared/modals/CometChatCallLogDetailsOptions.d.ts +15 -0
- package/lib/shared/modals/CometChatCallLogDetailsOptions.js +2 -0
- package/lib/shared/modals/CometChatCallLogDetailsOptions.js.map +1 -0
- package/lib/shared/modals/CometChatCallLogDetailsTemplate.d.ts +15 -0
- package/lib/shared/modals/CometChatCallLogDetailsTemplate.js +2 -0
- package/lib/shared/modals/CometChatCallLogDetailsTemplate.js.map +1 -0
- package/lib/shared/modals/CometChatDetailsOption.d.ts +18 -0
- package/lib/shared/modals/CometChatDetailsOption.js +2 -0
- package/lib/shared/modals/CometChatDetailsOption.js.map +1 -0
- package/lib/shared/modals/CometChatDetailsTemplate.d.ts +15 -0
- package/lib/shared/modals/CometChatDetailsTemplate.js +2 -0
- package/lib/shared/modals/CometChatDetailsTemplate.js.map +1 -0
- package/lib/shared/modals/CometChatMessageOption.d.ts +13 -0
- package/lib/shared/modals/CometChatMessageOption.js +2 -0
- package/lib/shared/modals/CometChatMessageOption.js.map +1 -0
- package/lib/shared/modals/CometChatMessageTemplate.d.ts +132 -0
- package/lib/shared/modals/CometChatMessageTemplate.js +79 -0
- package/lib/shared/modals/CometChatMessageTemplate.js.map +1 -0
- package/lib/shared/modals/CometChatOptions.d.ts +14 -0
- package/lib/shared/modals/CometChatOptions.js +2 -0
- package/lib/shared/modals/CometChatOptions.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.d.ts +73 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js +104 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/CustomAction.d.ts +12 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/CustomAction.js +18 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/CustomAction.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.d.ts +21 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js +30 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/index.d.ts +3 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/index.js +4 -0
- package/lib/shared/modals/InteractiveData/InteractiveActions/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.d.ts +41 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js +61 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.d.ts +55 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js +80 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/index.d.ts +2 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/index.js +3 -0
- package/lib/shared/modals/InteractiveData/InteractiveData/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.d.ts +40 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js +89 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.d.ts +18 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js +43 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.d.ts +38 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js +55 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.d.ts +40 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js +69 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.d.ts +52 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js +88 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.d.ts +46 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js +75 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.d.ts +20 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js +29 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.d.ts +26 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js +36 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.d.ts +40 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js +69 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.d.ts +40 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js +69 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.d.ts +59 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js +91 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.d.ts +11 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.js +12 -0
- package/lib/shared/modals/InteractiveData/InteractiveElements/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.d.ts +22 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js +36 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.d.ts +25 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js +60 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/index.d.ts +2 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/index.js +3 -0
- package/lib/shared/modals/InteractiveData/InteractiveEntities/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.d.ts +70 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js +119 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.d.ts +20 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js +30 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.d.ts +68 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js +126 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.d.ts +62 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js +105 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js.map +1 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/index.d.ts +4 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/index.js +5 -0
- package/lib/shared/modals/InteractiveData/InteractiveMessage/index.js.map +1 -0
- package/lib/shared/modals/InteractiveData/index.d.ts +4 -0
- package/lib/shared/modals/InteractiveData/index.js +6 -0
- package/lib/shared/modals/InteractiveData/index.js.map +1 -0
- package/lib/shared/modals/index.d.ts +10 -0
- package/lib/shared/modals/index.js +4 -0
- package/lib/shared/modals/index.js.map +1 -0
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +75 -0
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js +165 -0
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js.map +1 -0
- package/lib/shared/resources/CometChatLocalize/index.d.ts +2 -0
- package/lib/shared/resources/CometChatLocalize/index.js +3 -0
- package/lib/shared/resources/CometChatLocalize/index.js.map +1 -0
- package/lib/shared/resources/CometChatLocalize/resources/ar/translation.json +317 -0
- package/lib/shared/resources/CometChatLocalize/resources/de/translation.json +318 -0
- package/lib/shared/resources/CometChatLocalize/resources/en/translation.json +317 -0
- package/lib/shared/resources/CometChatLocalize/resources/es/translation.json +318 -0
- package/lib/shared/resources/CometChatLocalize/resources/fr/translation.json +318 -0
- package/lib/shared/resources/CometChatLocalize/resources/hi/translation.json +317 -0
- package/lib/shared/resources/CometChatLocalize/resources/hu/translation.json +318 -0
- package/lib/shared/resources/CometChatLocalize/resources/lt/translation.json +318 -0
- package/lib/shared/resources/CometChatLocalize/resources/ms/translation.json +318 -0
- package/lib/shared/resources/CometChatLocalize/resources/pt/translation.json +318 -0
- package/lib/shared/resources/CometChatLocalize/resources/ru/translation.json +318 -0
- package/lib/shared/resources/CometChatLocalize/resources/sv/translation.json +318 -0
- package/lib/shared/resources/CometChatLocalize/resources/zh/translation.json +318 -0
- package/lib/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +318 -0
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.d.ts +13 -0
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js +82 -0
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js.map +1 -0
- package/lib/shared/resources/CometChatSoundManager/index.d.ts +2 -0
- package/lib/shared/resources/CometChatSoundManager/index.js +4 -0
- package/lib/shared/resources/CometChatSoundManager/index.js.map +1 -0
- package/lib/shared/resources/CometChatSoundManager/resources/incomingcall.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/incomingmessage.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/incomingothermessage.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/index.d.ts +1 -0
- package/lib/shared/resources/CometChatSoundManager/resources/index.js +6 -0
- package/lib/shared/resources/CometChatSoundManager/resources/index.js.map +1 -0
- package/lib/shared/resources/CometChatSoundManager/resources/outgoingcall.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/outgoingmessage.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/sound.d.ts +56 -0
- package/lib/shared/resources/CometChatSoundManager/sound.js +303 -0
- package/lib/shared/resources/CometChatSoundManager/sound.js.map +1 -0
- package/lib/shared/resources/CometChatTheme/CometChatTheme.d.ts +22 -0
- package/lib/shared/resources/CometChatTheme/CometChatTheme.js +23 -0
- package/lib/shared/resources/CometChatTheme/CometChatTheme.js.map +1 -0
- package/lib/shared/resources/CometChatTheme/Palette.d.ts +146 -0
- package/lib/shared/resources/CometChatTheme/Palette.js +459 -0
- package/lib/shared/resources/CometChatTheme/Palette.js.map +1 -0
- package/lib/shared/resources/CometChatTheme/Typography.d.ts +78 -0
- package/lib/shared/resources/CometChatTheme/Typography.js +312 -0
- package/lib/shared/resources/CometChatTheme/Typography.js.map +1 -0
- package/lib/shared/resources/CometChatTheme/index.d.ts +2 -0
- package/lib/shared/resources/CometChatTheme/index.js +3 -0
- package/lib/shared/resources/CometChatTheme/index.js.map +1 -0
- package/lib/shared/resources/index.d.ts +4 -0
- package/lib/shared/resources/index.js +5 -0
- package/lib/shared/resources/index.js.map +1 -0
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.d.ts +15 -0
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js +90 -0
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js.map +1 -0
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.d.ts +20 -0
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js +27 -0
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js.map +1 -0
- package/lib/shared/utils/CometChatLiveReactions/index.d.ts +1 -0
- package/lib/shared/utils/CometChatLiveReactions/index.js +2 -0
- package/lib/shared/utils/CometChatLiveReactions/index.js.map +1 -0
- package/lib/shared/utils/CometChatLiveReactions/resources/heart.png +0 -0
- package/lib/shared/utils/CometChatLiveReactions/resources/index.d.ts +2 -0
- package/lib/shared/utils/CometChatLiveReactions/resources/index.js +4 -0
- package/lib/shared/utils/CometChatLiveReactions/resources/index.js.map +1 -0
- package/lib/shared/utils/CometChatLiveReactions/style.d.ts +5 -0
- package/lib/shared/utils/CometChatLiveReactions/style.js +7 -0
- package/lib/shared/utils/CometChatLiveReactions/style.js.map +1 -0
- package/lib/shared/utils/CometChatMessageHelper/index.d.ts +13 -0
- package/lib/shared/utils/CometChatMessageHelper/index.js +45 -0
- package/lib/shared/utils/CometChatMessageHelper/index.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +18 -0
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +94 -0
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.d.ts +24 -0
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js +23 -0
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.d.ts +31 -0
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.js +29 -0
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/index.d.ts +4 -0
- package/lib/shared/utils/CometChatMessagePreview/index.js +8 -0
- package/lib/shared/utils/CometChatMessagePreview/index.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
- package/lib/shared/utils/CometChatMessagePreview/resources/index.d.ts +2 -0
- package/lib/shared/utils/CometChatMessagePreview/resources/index.js +4 -0
- package/lib/shared/utils/CometChatMessagePreview/resources/index.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/style.d.ts +2 -0
- package/lib/shared/utils/CometChatMessagePreview/style.js +71 -0
- package/lib/shared/utils/CometChatMessagePreview/style.js.map +1 -0
- package/lib/shared/utils/CommonUtils.d.ts +25 -0
- package/lib/shared/utils/CommonUtils.js +177 -0
- package/lib/shared/utils/CommonUtils.js.map +1 -0
- package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +8 -0
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js +347 -0
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js.map +1 -0
- package/lib/shared/utils/DetailsUtils/resources/Back.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/banIcon.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/close.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/index.d.ts +9 -0
- package/lib/shared/utils/DetailsUtils/resources/index.js +24 -0
- package/lib/shared/utils/DetailsUtils/resources/index.js.map +1 -0
- package/lib/shared/utils/DetailsUtils/resources/kickIcon.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/password.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/private.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/right-arrow.png +0 -0
- package/lib/shared/utils/InteractiveMessageUtils.d.ts +8 -0
- package/lib/shared/utils/InteractiveMessageUtils.js +48 -0
- package/lib/shared/utils/InteractiveMessageUtils.js.map +1 -0
- package/lib/shared/utils/MessageUtils.d.ts +16 -0
- package/lib/shared/utils/MessageUtils.js +115 -0
- package/lib/shared/utils/MessageUtils.js.map +1 -0
- package/lib/shared/utils/NetworkUtils.d.ts +9 -0
- package/lib/shared/utils/NetworkUtils.js +28 -0
- package/lib/shared/utils/NetworkUtils.js.map +1 -0
- package/lib/shared/utils/PermissionUtil.d.ts +18 -0
- package/lib/shared/utils/PermissionUtil.js +122 -0
- package/lib/shared/utils/PermissionUtil.js.map +1 -0
- package/lib/shared/utils/SchedulerUtils.d.ts +11 -0
- package/lib/shared/utils/SchedulerUtils.js +143 -0
- package/lib/shared/utils/SchedulerUtils.js.map +1 -0
- 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.d.ts +7 -0
- package/lib/shared/utils/conversationUtils.js +88 -0
- package/lib/shared/utils/conversationUtils.js.map +1 -0
- package/lib/shared/utils/icsToJson.d.ts +2 -0
- package/lib/shared/utils/icsToJson.js +108 -0
- package/lib/shared/utils/icsToJson.js.map +1 -0
- package/lib/shared/utils/index.d.ts +7 -0
- package/lib/shared/utils/index.js +7 -0
- package/lib/shared/utils/index.js.map +1 -0
- package/lib/shared/views/CometChatAICard/CometChatAICard.d.ts +18 -0
- package/lib/shared/views/CometChatAICard/CometChatAICard.js +40 -0
- package/lib/shared/views/CometChatAICard/CometChatAICard.js.map +1 -0
- package/lib/shared/views/CometChatAICard/resources/errormessage.png +0 -0
- package/lib/shared/views/CometChatAICard/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatAICard/resources/index.js +6 -0
- package/lib/shared/views/CometChatAICard/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatAICard/resources/nomessage.png +0 -0
- package/lib/shared/views/CometChatActionSheet/ActionItem.d.ts +49 -0
- package/lib/shared/views/CometChatActionSheet/ActionItem.js +38 -0
- package/lib/shared/views/CometChatActionSheet/ActionItem.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.d.ts +47 -0
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js +45 -0
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +14 -0
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js +167 -0
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/hooks.d.ts +1 -0
- package/lib/shared/views/CometChatActionSheet/hooks.js +7 -0
- package/lib/shared/views/CometChatActionSheet/hooks.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/index.d.ts +5 -0
- package/lib/shared/views/CometChatActionSheet/index.js +4 -0
- package/lib/shared/views/CometChatActionSheet/index.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/resources/grid.png +0 -0
- package/lib/shared/views/CometChatActionSheet/resources/index.d.ts +4 -0
- package/lib/shared/views/CometChatActionSheet/resources/index.js +9 -0
- package/lib/shared/views/CometChatActionSheet/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/resources/list.png +0 -0
- package/lib/shared/views/CometChatActionSheet/style.d.ts +44 -0
- package/lib/shared/views/CometChatActionSheet/style.js +46 -0
- package/lib/shared/views/CometChatActionSheet/style.js.map +1 -0
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.d.ts +16 -0
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js +23 -0
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.d.ts +35 -0
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +124 -0
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +1 -0
- package/lib/shared/views/CometChatAudioBubble/index.d.ts +4 -0
- package/lib/shared/views/CometChatAudioBubble/index.js +4 -0
- package/lib/shared/views/CometChatAudioBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatAudioBubble/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatAudioBubble/resources/index.js +6 -0
- package/lib/shared/views/CometChatAudioBubble/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
- package/lib/shared/views/CometChatAudioBubble/resources/play.png +0 -0
- package/lib/shared/views/CometChatAudioBubble/style.d.ts +28 -0
- package/lib/shared/views/CometChatAudioBubble/style.js +30 -0
- package/lib/shared/views/CometChatAudioBubble/style.js.map +1 -0
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.d.ts +19 -0
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js +19 -0
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatAvatar/AvatarStyle.d.ts +28 -0
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js +38 -0
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js.map +1 -0
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.d.ts +18 -0
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js +79 -0
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js.map +1 -0
- package/lib/shared/views/CometChatAvatar/index.d.ts +5 -0
- package/lib/shared/views/CometChatAvatar/index.js +5 -0
- package/lib/shared/views/CometChatAvatar/index.js.map +1 -0
- package/lib/shared/views/CometChatAvatar/resources/default.jpg +0 -0
- package/lib/shared/views/CometChatAvatar/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatAvatar/resources/index.js +5 -0
- package/lib/shared/views/CometChatAvatar/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatAvatar/styles.d.ts +21 -0
- package/lib/shared/views/CometChatAvatar/styles.js +24 -0
- package/lib/shared/views/CometChatAvatar/styles.js.map +1 -0
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.d.ts +34 -0
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.js +37 -0
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatBadge/BadgeStyle.d.ts +11 -0
- package/lib/shared/views/CometChatBadge/BadgeStyle.js +25 -0
- package/lib/shared/views/CometChatBadge/BadgeStyle.js.map +1 -0
- package/lib/shared/views/CometChatBadge/CometChatBadge.d.ts +17 -0
- package/lib/shared/views/CometChatBadge/CometChatBadge.js +39 -0
- package/lib/shared/views/CometChatBadge/CometChatBadge.js.map +1 -0
- package/lib/shared/views/CometChatBadge/index.d.ts +5 -0
- package/lib/shared/views/CometChatBadge/index.js +5 -0
- package/lib/shared/views/CometChatBadge/index.js.map +1 -0
- package/lib/shared/views/CometChatBadge/styles.d.ts +14 -0
- package/lib/shared/views/CometChatBadge/styles.js +17 -0
- package/lib/shared/views/CometChatBadge/styles.js.map +1 -0
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.d.ts +22 -0
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +97 -0
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js.map +1 -0
- package/lib/shared/views/CometChatBottomSheet/index.d.ts +3 -0
- package/lib/shared/views/CometChatBottomSheet/index.js +3 -0
- package/lib/shared/views/CometChatBottomSheet/index.js.map +1 -0
- package/lib/shared/views/CometChatBottomSheet/style.d.ts +48 -0
- package/lib/shared/views/CometChatBottomSheet/style.js +50 -0
- package/lib/shared/views/CometChatBottomSheet/style.js.map +1 -0
- package/lib/shared/views/CometChatButton/CometChatButton.d.ts +11 -0
- package/lib/shared/views/CometChatButton/CometChatButton.js +38 -0
- package/lib/shared/views/CometChatButton/CometChatButton.js.map +1 -0
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.d.ts +18 -0
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.js +25 -0
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.js.map +1 -0
- package/lib/shared/views/CometChatButton/index.d.ts +4 -0
- package/lib/shared/views/CometChatButton/index.js +4 -0
- package/lib/shared/views/CometChatButton/index.js.map +1 -0
- package/lib/shared/views/CometChatButton/style.d.ts +6 -0
- package/lib/shared/views/CometChatButton/style.js +8 -0
- package/lib/shared/views/CometChatButton/style.js.map +1 -0
- package/lib/shared/views/CometChatCard/CometChatCard.d.ts +15 -0
- package/lib/shared/views/CometChatCard/CometChatCard.js +35 -0
- package/lib/shared/views/CometChatCard/CometChatCard.js.map +1 -0
- package/lib/shared/views/CometChatCard/CometChatCardStyle.d.ts +10 -0
- package/lib/shared/views/CometChatCard/CometChatCardStyle.js +17 -0
- package/lib/shared/views/CometChatCard/CometChatCardStyle.js.map +1 -0
- package/lib/shared/views/CometChatCard/index.d.ts +4 -0
- package/lib/shared/views/CometChatCard/index.js +4 -0
- package/lib/shared/views/CometChatCard/index.js.map +1 -0
- package/lib/shared/views/CometChatCard/style.d.ts +11 -0
- package/lib/shared/views/CometChatCard/style.js +13 -0
- package/lib/shared/views/CometChatCard/style.js.map +1 -0
- package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.d.ts +20 -0
- package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js +24 -0
- package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.d.ts +9 -0
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js +121 -0
- package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js.map +1 -0
- package/lib/shared/views/CometChatCardBubble/index.d.ts +2 -0
- package/lib/shared/views/CometChatCardBubble/index.js +2 -0
- package/lib/shared/views/CometChatCardBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.d.ts +22 -0
- package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js +22 -0
- package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js.map +1 -0
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.d.ts +12 -0
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js +47 -0
- package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js.map +1 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +13 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js +80 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js.map +1 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.d.ts +24 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js +20 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js.map +1 -0
- package/lib/shared/views/CometChatConfirmDialog/index.d.ts +4 -0
- package/lib/shared/views/CometChatConfirmDialog/index.js +3 -0
- package/lib/shared/views/CometChatConfirmDialog/index.js.map +1 -0
- package/lib/shared/views/CometChatConfirmDialog/style.d.ts +61 -0
- package/lib/shared/views/CometChatConfirmDialog/style.js +63 -0
- package/lib/shared/views/CometChatConfirmDialog/style.js.map +1 -0
- package/lib/shared/views/CometChatDate/CometChatDate.d.ts +37 -0
- package/lib/shared/views/CometChatDate/CometChatDate.js +134 -0
- package/lib/shared/views/CometChatDate/CometChatDate.js.map +1 -0
- package/lib/shared/views/CometChatDate/DateConfiguration.d.ts +23 -0
- package/lib/shared/views/CometChatDate/DateConfiguration.js +21 -0
- package/lib/shared/views/CometChatDate/DateConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatDate/DateStyle.d.ts +11 -0
- package/lib/shared/views/CometChatDate/DateStyle.js +16 -0
- package/lib/shared/views/CometChatDate/DateStyle.js.map +1 -0
- package/lib/shared/views/CometChatDate/index.d.ts +5 -0
- package/lib/shared/views/CometChatDate/index.js +5 -0
- package/lib/shared/views/CometChatDate/index.js.map +1 -0
- package/lib/shared/views/CometChatDate/style.d.ts +5 -0
- package/lib/shared/views/CometChatDate/style.js +8 -0
- package/lib/shared/views/CometChatDate/style.js.map +1 -0
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.d.ts +10 -0
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js +129 -0
- package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js.map +1 -0
- package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.d.ts +17 -0
- package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.js +13 -0
- package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.js.map +1 -0
- package/lib/shared/views/CometChatDateTimePicker/index.d.ts +3 -0
- package/lib/shared/views/CometChatDateTimePicker/index.js +2 -0
- package/lib/shared/views/CometChatDateTimePicker/index.js.map +1 -0
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.d.ts +14 -0
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.js +86 -0
- package/lib/shared/views/CometChatDropDown/CometChatDropDown.js.map +1 -0
- package/lib/shared/views/CometChatDropDown/DropDownStyle.d.ts +20 -0
- package/lib/shared/views/CometChatDropDown/DropDownStyle.js +20 -0
- package/lib/shared/views/CometChatDropDown/DropDownStyle.js.map +1 -0
- package/lib/shared/views/CometChatDropDown/resources/downArrowIcon.png +0 -0
- package/lib/shared/views/CometChatDropDown/resources/index.d.ts +2 -0
- package/lib/shared/views/CometChatDropDown/resources/index.js +3 -0
- package/lib/shared/views/CometChatDropDown/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +22 -0
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +144 -0
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.d.ts +13 -0
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js +17 -0
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.d.ts +16 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js +22 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.d.ts +19 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js +21 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.d.ts +17 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js +33 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.d.ts +6579 -0
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.js +8226 -0
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/index.d.ts +4 -0
- package/lib/shared/views/CometChatEmojiKeyboard/index.js +5 -0
- package/lib/shared/views/CometChatEmojiKeyboard/index.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/activity.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/animals.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/flags.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/food.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.d.ts +9 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.js +18 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/objects.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/smileys.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/symbols.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/travel.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/style.d.ts +44 -0
- package/lib/shared/views/CometChatEmojiKeyboard/style.js +57 -0
- package/lib/shared/views/CometChatEmojiKeyboard/style.js.map +1 -0
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.d.ts +35 -0
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js +130 -0
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +1 -0
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.d.ts +31 -0
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js +23 -0
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatFileBubble/index.d.ts +4 -0
- package/lib/shared/views/CometChatFileBubble/index.js +4 -0
- package/lib/shared/views/CometChatFileBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatFileBubble/resources/download.png +0 -0
- package/lib/shared/views/CometChatFileBubble/resources/file_upload.png +0 -0
- package/lib/shared/views/CometChatFileBubble/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatFileBubble/resources/index.js +6 -0
- package/lib/shared/views/CometChatFileBubble/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatFileBubble/style.d.ts +46 -0
- package/lib/shared/views/CometChatFileBubble/style.js +49 -0
- package/lib/shared/views/CometChatFileBubble/style.js.map +1 -0
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.d.ts +9 -0
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js +369 -0
- package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js.map +1 -0
- package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.d.ts +47 -0
- package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js +45 -0
- package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatFormBubble/index.d.ts +2 -0
- package/lib/shared/views/CometChatFormBubble/index.js +2 -0
- package/lib/shared/views/CometChatFormBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.d.ts +34 -0
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +167 -0
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.d.ts +19 -0
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js +15 -0
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/assets/default_image.png +0 -0
- package/lib/shared/views/CometChatImageBubble/assets/index.d.ts +4 -0
- package/lib/shared/views/CometChatImageBubble/assets/index.js +9 -0
- package/lib/shared/views/CometChatImageBubble/assets/index.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/assets/spineer.png +0 -0
- package/lib/shared/views/CometChatImageBubble/index.d.ts +4 -0
- package/lib/shared/views/CometChatImageBubble/index.js +4 -0
- package/lib/shared/views/CometChatImageBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.d.ts +2 -0
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js +74 -0
- package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js.map +1 -0
- package/lib/shared/views/CometChatImageViewerModal/index.d.ts +1 -0
- package/lib/shared/views/CometChatImageViewerModal/index.js +2 -0
- package/lib/shared/views/CometChatImageViewerModal/index.js.map +1 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/Back.png +0 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/index.js +6 -0
- package/lib/shared/views/CometChatImageViewerModal/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatLabel/CometChatLabel.d.ts +8 -0
- package/lib/shared/views/CometChatLabel/CometChatLabel.js +15 -0
- package/lib/shared/views/CometChatLabel/CometChatLabel.js.map +1 -0
- package/lib/shared/views/CometChatLabel/LabelStyle.d.ts +10 -0
- package/lib/shared/views/CometChatLabel/LabelStyle.js +10 -0
- package/lib/shared/views/CometChatLabel/LabelStyle.js.map +1 -0
- package/lib/shared/views/CometChatList/CometChatList.d.ts +91 -0
- package/lib/shared/views/CometChatList/CometChatList.js +505 -0
- package/lib/shared/views/CometChatList/CometChatList.js.map +1 -0
- package/lib/shared/views/CometChatList/Header.d.ts +2 -0
- package/lib/shared/views/CometChatList/Header.js +71 -0
- package/lib/shared/views/CometChatList/Header.js.map +1 -0
- package/lib/shared/views/CometChatList/index.d.ts +3 -0
- package/lib/shared/views/CometChatList/index.js +3 -0
- package/lib/shared/views/CometChatList/index.js.map +1 -0
- package/lib/shared/views/CometChatList/resources/Back.png +0 -0
- package/lib/shared/views/CometChatList/resources/Search.png +0 -0
- package/lib/shared/views/CometChatList/resources/Spinner.png +0 -0
- package/lib/shared/views/CometChatList/resources/check.png +0 -0
- package/lib/shared/views/CometChatList/resources/checkmark.png +0 -0
- package/lib/shared/views/CometChatList/resources/index.d.ts +7 -0
- package/lib/shared/views/CometChatList/resources/index.js +18 -0
- package/lib/shared/views/CometChatList/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatList/styles.d.ts +99 -0
- package/lib/shared/views/CometChatList/styles.js +102 -0
- package/lib/shared/views/CometChatList/styles.js.map +1 -0
- package/lib/shared/views/CometChatListItem/CometChatListItem.d.ts +35 -0
- package/lib/shared/views/CometChatListItem/CometChatListItem.js +189 -0
- package/lib/shared/views/CometChatListItem/CometChatListItem.js.map +1 -0
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.d.ts +6 -0
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.js +10 -0
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatListItem/ListItemStyle.d.ts +27 -0
- package/lib/shared/views/CometChatListItem/ListItemStyle.js +34 -0
- package/lib/shared/views/CometChatListItem/ListItemStyle.js.map +1 -0
- package/lib/shared/views/CometChatListItem/index.d.ts +5 -0
- package/lib/shared/views/CometChatListItem/index.js +5 -0
- package/lib/shared/views/CometChatListItem/index.js.map +1 -0
- package/lib/shared/views/CometChatListItem/style.d.ts +61 -0
- package/lib/shared/views/CometChatListItem/style.js +61 -0
- package/lib/shared/views/CometChatListItem/style.js.map +1 -0
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +20 -0
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +209 -0
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +1 -0
- package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.d.ts +26 -0
- package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js +33 -0
- package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js.map +1 -0
- package/lib/shared/views/CometChatMediaRecorder/index.d.ts +4 -0
- package/lib/shared/views/CometChatMediaRecorder/index.js +4 -0
- package/lib/shared/views/CometChatMediaRecorder/index.js.map +1 -0
- package/lib/shared/views/CometChatMediaRecorder/style.d.ts +27 -0
- package/lib/shared/views/CometChatMediaRecorder/style.js +28 -0
- package/lib/shared/views/CometChatMediaRecorder/style.js.map +1 -0
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.d.ts +61 -0
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js +45 -0
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +1 -0
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.d.ts +8 -0
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.js +15 -0
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatMessageBubble/index.d.ts +3 -0
- package/lib/shared/views/CometChatMessageBubble/index.js +3 -0
- package/lib/shared/views/CometChatMessageBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatMessageBubble/style.d.ts +0 -0
- package/lib/shared/views/CometChatMessageBubble/style.js +1 -0
- package/lib/shared/views/CometChatMessageBubble/style.js.map +1 -0
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.d.ts +90 -0
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +49 -0
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +1 -0
- package/lib/shared/views/CometChatMessageInput/index.d.ts +3 -0
- package/lib/shared/views/CometChatMessageInput/index.js +3 -0
- package/lib/shared/views/CometChatMessageInput/index.js.map +1 -0
- package/lib/shared/views/CometChatMessageInput/styles.d.ts +7 -0
- package/lib/shared/views/CometChatMessageInput/styles.js +9 -0
- package/lib/shared/views/CometChatMessageInput/styles.js.map +1 -0
- package/lib/shared/views/CometChatPanel/CometChatPanel.d.ts +10 -0
- package/lib/shared/views/CometChatPanel/CometChatPanel.js +34 -0
- package/lib/shared/views/CometChatPanel/CometChatPanel.js.map +1 -0
- package/lib/shared/views/CometChatPanel/PanelStyle.d.ts +16 -0
- package/lib/shared/views/CometChatPanel/PanelStyle.js +23 -0
- package/lib/shared/views/CometChatPanel/PanelStyle.js.map +1 -0
- package/lib/shared/views/CometChatPanel/resources/CloseIcon.png +0 -0
- package/lib/shared/views/CometChatPanel/resources/index.d.ts +2 -0
- package/lib/shared/views/CometChatPanel/resources/index.js +4 -0
- package/lib/shared/views/CometChatPanel/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.d.ts +11 -0
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js +48 -0
- package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsConfiguration.d.ts +6 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsConfiguration.js +10 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.d.ts +12 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js +19 -0
- package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/index.d.ts +5 -0
- package/lib/shared/views/CometChatQuickReactions/index.js +5 -0
- package/lib/shared/views/CometChatQuickReactions/index.js.map +1 -0
- package/lib/shared/views/CometChatQuickReactions/resources/AddReactions.png +0 -0
- package/lib/shared/views/CometChatQuickReactions/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatQuickReactions/resources/index.js +4 -0
- package/lib/shared/views/CometChatQuickReactions/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.d.ts +11 -0
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.js +40 -0
- package/lib/shared/views/CometChatQuickView/CometChatQuickView.js.map +1 -0
- package/lib/shared/views/CometChatQuickView/QuickViewStyle.d.ts +22 -0
- package/lib/shared/views/CometChatQuickView/QuickViewStyle.js +28 -0
- package/lib/shared/views/CometChatQuickView/QuickViewStyle.js.map +1 -0
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.d.ts +12 -0
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js +36 -0
- package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js.map +1 -0
- package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.d.ts +19 -0
- package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js +19 -0
- package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.d.ts +23 -0
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.js +241 -0
- package/lib/shared/views/CometChatReactionList/CometChatReactionList.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/ReactionListConfiguration.d.ts +6 -0
- package/lib/shared/views/CometChatReactionList/ReactionListConfiguration.js +10 -0
- package/lib/shared/views/CometChatReactionList/ReactionListConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.d.ts +28 -0
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.js +35 -0
- package/lib/shared/views/CometChatReactionList/ReactionListStyle.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/index.d.ts +5 -0
- package/lib/shared/views/CometChatReactionList/index.js +5 -0
- package/lib/shared/views/CometChatReactionList/index.js.map +1 -0
- package/lib/shared/views/CometChatReactionList/resources/Spineer.png +0 -0
- package/lib/shared/views/CometChatReactionList/resources/index.d.ts +2 -0
- package/lib/shared/views/CometChatReactionList/resources/index.js +4 -0
- package/lib/shared/views/CometChatReactionList/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatReactions/CometChatReactions.d.ts +13 -0
- package/lib/shared/views/CometChatReactions/CometChatReactions.js +141 -0
- package/lib/shared/views/CometChatReactions/CometChatReactions.js.map +1 -0
- package/lib/shared/views/CometChatReactions/ReactionsConfiguration.d.ts +6 -0
- package/lib/shared/views/CometChatReactions/ReactionsConfiguration.js +10 -0
- package/lib/shared/views/CometChatReactions/ReactionsConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatReactions/ReactionsStyle.d.ts +16 -0
- package/lib/shared/views/CometChatReactions/ReactionsStyle.js +23 -0
- package/lib/shared/views/CometChatReactions/ReactionsStyle.js.map +1 -0
- package/lib/shared/views/CometChatReactions/index.d.ts +5 -0
- package/lib/shared/views/CometChatReactions/index.js +5 -0
- package/lib/shared/views/CometChatReactions/index.js.map +1 -0
- package/lib/shared/views/CometChatReactions/style.d.ts +38 -0
- package/lib/shared/views/CometChatReactions/style.js +42 -0
- package/lib/shared/views/CometChatReactions/style.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.d.ts +30 -0
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js +54 -0
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.d.ts +40 -0
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js +41 -0
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.d.ts +21 -0
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.js +22 -0
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/index.d.ts +5 -0
- package/lib/shared/views/CometChatReceipt/index.js +5 -0
- package/lib/shared/views/CometChatReceipt/index.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/resources/blue-double-tick-icon.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/error.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/grey-double-tick-icon.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/grey-tick-icon.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/index.d.ts +7 -0
- package/lib/shared/views/CometChatReceipt/resources/index.js +18 -0
- package/lib/shared/views/CometChatReceipt/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/resources/sending.png +0 -0
- package/lib/shared/views/CometChatReceipt/style.d.ts +8 -0
- package/lib/shared/views/CometChatReceipt/style.js +10 -0
- package/lib/shared/views/CometChatReceipt/style.js.map +1 -0
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.d.ts +9 -0
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js +1138 -0
- package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js.map +1 -0
- package/lib/shared/views/CometChatSchedulerBubble/index.d.ts +3 -0
- package/lib/shared/views/CometChatSchedulerBubble/index.js +2 -0
- package/lib/shared/views/CometChatSchedulerBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatSchedulerBubble/styles.d.ts +114 -0
- package/lib/shared/views/CometChatSchedulerBubble/styles.js +67 -0
- package/lib/shared/views/CometChatSchedulerBubble/styles.js.map +1 -0
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.d.ts +12 -0
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js +35 -0
- package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js.map +1 -0
- package/lib/shared/views/CometChatSingleSelect/SingleStyle.d.ts +18 -0
- package/lib/shared/views/CometChatSingleSelect/SingleStyle.js +18 -0
- package/lib/shared/views/CometChatSingleSelect/SingleStyle.js.map +1 -0
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.d.ts +18 -0
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js +36 -0
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js.map +1 -0
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.d.ts +17 -0
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js +16 -0
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.d.ts +20 -0
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.js +22 -0
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.js.map +1 -0
- package/lib/shared/views/CometChatStatusIndicator/index.d.ts +5 -0
- package/lib/shared/views/CometChatStatusIndicator/index.js +5 -0
- package/lib/shared/views/CometChatStatusIndicator/index.js.map +1 -0
- package/lib/shared/views/CometChatStatusIndicator/styles.d.ts +12 -0
- package/lib/shared/views/CometChatStatusIndicator/styles.js +15 -0
- package/lib/shared/views/CometChatStatusIndicator/styles.js.map +1 -0
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.d.ts +19 -0
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js +27 -0
- package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js.map +1 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.d.ts +43 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js +46 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js.map +1 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.d.ts +19 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js +16 -0
- package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatSuggestionList/index.d.ts +5 -0
- package/lib/shared/views/CometChatSuggestionList/index.js +5 -0
- package/lib/shared/views/CometChatSuggestionList/index.js.map +1 -0
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.d.ts +20 -0
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js +70 -0
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js.map +1 -0
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.d.ts +16 -0
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js +17 -0
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatTextBubble/index.d.ts +4 -0
- package/lib/shared/views/CometChatTextBubble/index.js +4 -0
- package/lib/shared/views/CometChatTextBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.d.ts +12 -0
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.js +37 -0
- package/lib/shared/views/CometChatTextInput/CometChatTextInput.js.map +1 -0
- package/lib/shared/views/CometChatTextInput/TextInputStyle.d.ts +13 -0
- package/lib/shared/views/CometChatTextInput/TextInputStyle.js +13 -0
- package/lib/shared/views/CometChatTextInput/TextInputStyle.js.map +1 -0
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.d.ts +12 -0
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js +69 -0
- package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js.map +1 -0
- package/lib/shared/views/CometChatTimeSlotSelector/index.d.ts +3 -0
- package/lib/shared/views/CometChatTimeSlotSelector/index.js +2 -0
- package/lib/shared/views/CometChatTimeSlotSelector/index.js.map +1 -0
- package/lib/shared/views/CometChatTimeSlotSelector/styles.d.ts +35 -0
- package/lib/shared/views/CometChatTimeSlotSelector/styles.js +20 -0
- package/lib/shared/views/CometChatTimeSlotSelector/styles.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.d.ts +48 -0
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +103 -0
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.d.ts +56 -0
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +42 -0
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/index.d.ts +4 -0
- package/lib/shared/views/CometChatVideoBubble/index.js +4 -0
- package/lib/shared/views/CometChatVideoBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/resources/default_image.png +0 -0
- package/lib/shared/views/CometChatVideoBubble/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatVideoBubble/resources/index.js +6 -0
- package/lib/shared/views/CometChatVideoBubble/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/resources/play.png +0 -0
- package/lib/shared/views/CometChatVideoBubble/style.d.ts +7 -0
- package/lib/shared/views/CometChatVideoBubble/style.js +9 -0
- package/lib/shared/views/CometChatVideoBubble/style.js.map +1 -0
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.d.ts +19 -0
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js +64 -0
- package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js.map +1 -0
- package/lib/shared/views/CometChatVideoPlayer/index.d.ts +1 -0
- package/lib/shared/views/CometChatVideoPlayer/index.js +2 -0
- package/lib/shared/views/CometChatVideoPlayer/index.js.map +1 -0
- package/lib/shared/views/SwipeRow/SwipeRow.d.ts +8 -0
- package/lib/shared/views/SwipeRow/SwipeRow.js +70 -0
- package/lib/shared/views/SwipeRow/SwipeRow.js.map +1 -0
- package/lib/shared/views/SwipeRow/index.d.ts +2 -0
- package/lib/shared/views/SwipeRow/index.js +3 -0
- package/lib/shared/views/SwipeRow/index.js.map +1 -0
- package/lib/shared/views/SwipeRow/style.d.ts +28 -0
- package/lib/shared/views/SwipeRow/style.js +28 -0
- package/lib/shared/views/SwipeRow/style.js.map +1 -0
- package/lib/shared/views/index.d.ts +28 -0
- package/lib/shared/views/index.js +30 -0
- package/lib/shared/views/index.js.map +1 -0
- package/package.json +8 -10
- package/src/AI/AIAssistBot/AIAssistBotView.tsx +2 -2
- package/src/AI/AIBaseConfiguration.ts +1 -0
- package/src/AI/AIConversationStarter/AIConversationStarterDecorator.tsx +1 -1
- package/src/AI/AIConversationSummary/AIConversationSummaryView.tsx +1 -1
- package/src/AI/AISmartReplies/AISmartRepliesDecorator.tsx +1 -1
- package/src/AI/CardView.tsx +1 -1
- package/src/CometChatAddMembers/AddMembersConfiguration.tsx +1 -0
- package/src/CometChatBannedMembers/BannedMembersConfiguration.tsx +1 -0
- package/src/CometChatBannedMembers/CometChatBannedMembers.tsx +13 -2
- package/src/CometChatContacts/Header.tsx +3 -3
- package/src/CometChatConversations/CometChatConversations.tsx +14 -8
- package/src/CometChatConversations/ConversationsConfiguration.ts +1 -0
- package/src/CometChatDetails/CometChatDetails.tsx +21 -19
- package/src/CometChatDetails/DetailsConfiguration.tsx +1 -0
- package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +2 -2
- package/src/CometChatGroupMembers/GroupMemberConfiguration.ts +1 -0
- package/src/CometChatGroups/CometChatGroups.tsx +1 -1
- package/src/CometChatGroups/GroupsConfiguration.ts +1 -1
- package/src/CometChatGroupsWithMessages/CometChatGroupsWithMessages.tsx +1 -1
- package/src/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.tsx +4 -2
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +11 -11
- package/src/CometChatMessageComposer/MessageComposerConfiguration.tsx +2 -2
- package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +6 -5
- package/src/CometChatMessageHeader/MessageHeaderConfiguration.tsx +1 -0
- package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +1 -1
- package/src/CometChatMessageList/CometChatMessageList.tsx +52 -134
- package/src/CometChatMessageList/MessageListConfiguration.ts +1 -0
- package/src/CometChatMessages/CometChatMessages.tsx +122 -91
- package/src/CometChatMessages/MessagesConfiguration.ts +1 -0
- package/src/CometChatTabs/CometChatTabs.tsx +1 -1
- package/src/CometChatTabs/TabItems.ts +1 -0
- package/src/CometChatThreadedMessages/CometChatThreadedMessages.tsx +1 -1
- package/src/CometChatThreadedMessages/ThreadedMessagesConfiguration.ts +1 -0
- package/src/CometChatTransferOwnership/TransferOwnershipConfiguration.ts +1 -0
- package/src/CometChatUsers/CometChatUsers.tsx +14 -3
- package/src/CometChatUsers/UsersConfiguration.tsx +1 -0
- package/src/calls/CallingDetailsUtils.tsx +8 -8
- package/src/calls/CometChatCallButtons/CometChatCallButtons.tsx +1 -1
- package/src/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.ts +1 -0
- package/src/calls/CometChatCallLogDetails/CometChatCallLogDetails.tsx +7 -7
- package/src/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.ts +1 -0
- package/src/calls/CometChatCallLogHistory/CometChatCallLogHistory.tsx +6 -6
- package/src/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.ts +1 -0
- package/src/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.tsx +4 -4
- package/src/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.ts +1 -0
- package/src/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.tsx +3 -3
- package/src/calls/CometChatCallLogs/CallLogsConfiguration.ts +1 -0
- package/src/calls/CometChatCallLogs/CometChatCallLogs.tsx +5 -5
- package/src/calls/CometChatIncomingCall/CometChatIncomingCall.tsx +1 -1
- package/src/extensions/ImageModeration/ImageModerationDecorator.tsx +1 -1
- package/src/extensions/ImageModeration/ImageModerationFilter.tsx +1 -1
- package/src/extensions/LinkPreview/LinkPreviewBubble.tsx +1 -1
- package/src/extensions/LinkPreview/LinkPreviewExtentionDecorator.tsx +1 -1
- package/src/extensions/MessageTranslation/MessageTranslationBubble.tsx +4 -4
- package/src/extensions/MessageTranslation/MessageTranslationDecorator.tsx +1 -1
- package/src/extensions/Stickers/StickersExtensionDecorator.tsx +1 -1
- package/src/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.tsx +1 -1
- package/src/imageresolver.d.ts +4 -0
- package/src/index.ts +1 -0
- package/src/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.tsx +1 -1
- package/src/shared/formatters/CometChatTextFormatter.ts +1 -0
- package/src/shared/formatters/CometChatUrlsFormatter/index.tsx +1 -1
- package/src/shared/framework/DataSource.ts +1 -0
- package/src/shared/framework/MessageDataSource.tsx +1 -1
- package/src/shared/helper/types/index.ts +1 -0
- package/src/shared/libs/CometChatCalendar/Entities/Components.ts +1 -0
- package/src/shared/libs/ImageZoom/ReactNativeZoomableView.tsx +1 -1
- package/src/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.tsx +1 -1
- package/src/shared/modals/CometChatCallLogDetailsOptions.ts +1 -0
- package/src/shared/modals/CometChatDetailsOption.ts +1 -1
- package/src/shared/modals/CometChatMessageOption.ts +1 -0
- package/src/shared/modals/CometChatMessageTemplate.ts +1 -0
- package/src/shared/utils/MessageUtils.tsx +1 -1
- package/src/shared/views/CometChatAICard/CometChatAICard.tsx +3 -3
- package/src/shared/views/CometChatActionSheet/CometChatActionSheet.tsx +4 -4
- package/src/shared/views/CometChatAudioBubble/CometChatAudioBubble.tsx +1 -1
- package/src/shared/views/CometChatBottomSheet/CometChatBottomSheet.tsx +3 -0
- package/src/shared/views/CometChatCard/CometChatCard.tsx +3 -3
- package/src/shared/views/CometChatCardBubble/CometChatCardBubble.tsx +1 -1
- package/src/shared/views/CometChatCheckBox/CometChatCheckBox.tsx +2 -2
- package/src/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.tsx +14 -14
- package/src/shared/views/CometChatDropDown/CometChatDropDown.tsx +3 -3
- package/src/shared/views/CometChatFormBubble/CometChatFormBubble.tsx +1 -1
- package/src/shared/views/CometChatLabel/CometChatLabel.tsx +1 -1
- package/src/shared/views/CometChatList/CometChatList.tsx +10 -9
- package/src/shared/views/CometChatListItem/CometChatListItem.tsx +1 -1
- package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +1 -1
- package/src/shared/views/CometChatPanel/CometChatPanel.tsx +2 -2
- package/src/shared/views/CometChatQuickReactions/CometChatQuickReactions.tsx +1 -1
- package/src/shared/views/CometChatRadioButton/CometChatRadioButton.tsx +2 -2
- package/src/shared/views/CometChatReactionList/CometChatReactionList.tsx +24 -24
- package/src/shared/views/CometChatReactions/CometChatReactions.tsx +1 -1
- package/src/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.tsx +17 -17
- package/src/shared/views/CometChatSingleSelect/CometChatSingleSelect.tsx +2 -2
- package/src/shared/views/CometChatTextInput/CometChatTextInput.tsx +1 -1
- package/src/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.tsx +3 -3
|
@@ -0,0 +1,1620 @@
|
|
|
1
|
+
import React, { forwardRef, useEffect, useRef, useState, useImperativeHandle, useContext, useCallback, memo, useLayoutEffect } from "react";
|
|
2
|
+
import { View, Text, Image, TouchableOpacity, ActivityIndicator, NativeModules, ScrollView, Dimensions, Platform, Keyboard } from "react-native";
|
|
3
|
+
//@ts-ignore
|
|
4
|
+
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
5
|
+
import { LeftArrowCurve } from "./resources";
|
|
6
|
+
import { CometChatContext, CometChatMentionsFormatter, CometChatUiKitConstants, SuggestionItem } from "../shared";
|
|
7
|
+
import { MessageBubbleStyle } from "../shared/views/CometChatMessageBubble/MessageBubbleStyle";
|
|
8
|
+
import { AvatarStyle } from "../shared";
|
|
9
|
+
import { CometChatAvatar, CometChatDate, CometChatReceipt, DateStyle } from "../shared";
|
|
10
|
+
import { MessageListStyle } from "./MessageListStyle";
|
|
11
|
+
import { CometChatMessageBubble } from "../shared/views/CometChatMessageBubble";
|
|
12
|
+
import { CallTypeConstants, MessageCategoryConstants, MessageOptionConstants, MessageStatusConstants, MessageTypeConstants, ReceiverTypeConstants, ViewAlignment } from "../shared/constants/UIKitConstants";
|
|
13
|
+
import { localize } from "../shared";
|
|
14
|
+
import { downArrowIcon } from "./resources";
|
|
15
|
+
import { Style } from "./style";
|
|
16
|
+
import { CometChatSoundManager } from "../shared";
|
|
17
|
+
import { MessageEvents } from "../shared/events/messages";
|
|
18
|
+
import { ChatConfigurator } from "../shared/framework/ChatConfigurator";
|
|
19
|
+
import { CometChatActionSheet, ActionSheetStyles, CometChatBottomSheet } from "../shared";
|
|
20
|
+
import { getUnixTimestamp, messageStatus } from "../shared/utils/CometChatMessageHelper";
|
|
21
|
+
import { CometChatUIEventHandler } from "../shared/events/CometChatUIEventHandler/CometChatUIEventHandler";
|
|
22
|
+
import { CometChatMessageInformation } from "../CometChatMessageInformation/CometChatMessageInformation";
|
|
23
|
+
import { InteractiveMessageUtils } from "../shared/utils/InteractiveMessageUtils";
|
|
24
|
+
import { CometChatEmojiKeyboard } from "../shared/views/CometChatEmojiKeyboard";
|
|
25
|
+
import { CometChatReactionList } from "../shared/views/CometChatReactionList";
|
|
26
|
+
import { CometChatQuickReactions } from "../shared/views/CometChatQuickReactions";
|
|
27
|
+
import { CometChatReactions } from "../shared/views/CometChatReactions";
|
|
28
|
+
import { CommonUtils } from "../shared/utils/CommonUtils";
|
|
29
|
+
//@ts-ignore
|
|
30
|
+
import Clipboard from "@react-native-clipboard/clipboard";
|
|
31
|
+
import { commonVars } from "../shared/base/vars";
|
|
32
|
+
let templatesMap = new Map();
|
|
33
|
+
let _defaultRequestBuilder;
|
|
34
|
+
export const CometChatMessageList = memo(forwardRef((props, ref) => {
|
|
35
|
+
const { parentMessageId, user, group, EmptyStateView, emptyStateText = localize("NO_MESSAGES_FOUND"), ErrorStateView, errorStateText = localize("SOMETHING_WRONG"), hideError, LoadingStateView, disableReceipt = false, hideReceipt = false, disableSoundForMessages, customSoundForMessages, readIcon, deliveredIcon, sentIcon, waitIcon, errorIcon, alignment = "standard", showAvatar = true, datePattern, timeStampAlignment = "bottom", dateSeparatorPattern, templates = [], messageRequestBuilder, newMessageIndicatorText, scrollToBottomOnNewMessages, onThreadRepliesPress, HeaderView, FooterView, wrapperMessageBubbleStyle, avatarStyle, dateSeperatorStyle, actionSheetStyle, messageListStyle, onError, onBack,
|
|
36
|
+
// forwardMessageConfiguration
|
|
37
|
+
messageInformationConfiguration, hideActionSheetHeader = true, reactionsConfiguration, disableReactions, reactionListConfiguration, quickReactionConfiguration, emojiKeyboardStyle, disableMentions, textFormatters } = props;
|
|
38
|
+
const callListenerId = "call_" + new Date().getTime();
|
|
39
|
+
const groupListenerId = "group_" + new Date().getTime();
|
|
40
|
+
const uiEventListener = "uiEvent_" + new Date().getTime();
|
|
41
|
+
const callEventListener = 'callEvent_' + new Date().getTime();
|
|
42
|
+
const uiEventListenerShow = "uiEvent_show_" + new Date().getTime();
|
|
43
|
+
const uiEventListenerHide = "uiEvent_hide_" + new Date().getTime();
|
|
44
|
+
const connectionListenerId = 'connectionListener_' + new Date().getTime();
|
|
45
|
+
const messageEventListener = "messageEvent_" + new Date().getTime();
|
|
46
|
+
const groupEventListener = "groupEvent_" + new Date().getTime();
|
|
47
|
+
useLayoutEffect(() => {
|
|
48
|
+
if (user) {
|
|
49
|
+
_defaultRequestBuilder = new CometChat.MessagesRequestBuilder()
|
|
50
|
+
.setLimit(30)
|
|
51
|
+
.setTags([])
|
|
52
|
+
.setUID(user.getUid());
|
|
53
|
+
}
|
|
54
|
+
else if (group) {
|
|
55
|
+
_defaultRequestBuilder = new CometChat.MessagesRequestBuilder()
|
|
56
|
+
.setLimit(30)
|
|
57
|
+
.setTags([])
|
|
58
|
+
.setGUID(group.getGuid());
|
|
59
|
+
}
|
|
60
|
+
_defaultRequestBuilder.setTypes(ChatConfigurator.dataSource.getAllMessageTypes());
|
|
61
|
+
_defaultRequestBuilder.setCategories(ChatConfigurator.dataSource.getAllMessageCategories());
|
|
62
|
+
//updating users request builder
|
|
63
|
+
let _updatedCustomRequestBuilder = _defaultRequestBuilder;
|
|
64
|
+
if (messageRequestBuilder) {
|
|
65
|
+
_updatedCustomRequestBuilder = messageRequestBuilder;
|
|
66
|
+
if (user)
|
|
67
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setUID(user.getUid());
|
|
68
|
+
if (group)
|
|
69
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setGUID(group.getGuid());
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
_updatedCustomRequestBuilder.hideReplies(true);
|
|
73
|
+
if (user)
|
|
74
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setUID(user.getUid());
|
|
75
|
+
if (group)
|
|
76
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setGUID(group.getGuid());
|
|
77
|
+
if (parentMessageId)
|
|
78
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setParentMessageId(parseInt(parentMessageId));
|
|
79
|
+
let types = [], categories = [];
|
|
80
|
+
if (templates.length) {
|
|
81
|
+
types = templates.map(template => template.type);
|
|
82
|
+
categories = templates.map(template => template.category);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
types = ChatConfigurator.dataSource.getAllMessageTypes();
|
|
86
|
+
categories = ChatConfigurator.dataSource.getAllMessageCategories();
|
|
87
|
+
}
|
|
88
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setTypes(types);
|
|
89
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setCategories(categories);
|
|
90
|
+
}
|
|
91
|
+
msgRequestBuilder.current = _updatedCustomRequestBuilder;
|
|
92
|
+
}, []);
|
|
93
|
+
const { theme } = useContext(CometChatContext);
|
|
94
|
+
let Keyboard_Height = 0;
|
|
95
|
+
let scrollPos = 0;
|
|
96
|
+
// creating style based on styles from users
|
|
97
|
+
const _messageListStyle = useRef(new MessageListStyle({
|
|
98
|
+
backgroundColor: theme?.palette.getBackgroundColor(),
|
|
99
|
+
emptyStateTextColor: theme?.palette.getError(),
|
|
100
|
+
emptyStateTextFont: theme?.typography.subtitle1,
|
|
101
|
+
errorStateTextColor: theme?.palette.getAccent(),
|
|
102
|
+
errorStateTextFont: theme?.typography.title1,
|
|
103
|
+
loadingIconTint: theme?.palette.getPrimary(),
|
|
104
|
+
nameTextColor: theme?.palette.getAccent(),
|
|
105
|
+
nameTextFont: theme?.typography.name,
|
|
106
|
+
threadReplyIconTint: theme?.palette.getAccent700(),
|
|
107
|
+
threadReplySeparatorColor: theme?.palette.getAccent100(),
|
|
108
|
+
threadReplyTextColor: theme?.palette.getPrimary(),
|
|
109
|
+
threadReplyTextFont: theme?.typography.body,
|
|
110
|
+
timestampTextColor: theme?.palette.getAccent500(),
|
|
111
|
+
timestampTextFont: theme?.typography.caption1,
|
|
112
|
+
...messageListStyle
|
|
113
|
+
})).current;
|
|
114
|
+
const _avatarStyle = useRef(new AvatarStyle({
|
|
115
|
+
nameTextColor: _messageListStyle.nameTextColor,
|
|
116
|
+
nameTextFont: _messageListStyle.nameTextFont,
|
|
117
|
+
...avatarStyle
|
|
118
|
+
})).current;
|
|
119
|
+
const _dateSeperatorStyle = useRef(new DateStyle({
|
|
120
|
+
textColor: _messageListStyle.timestampTextColor,
|
|
121
|
+
textFont: theme?.typography.title2,
|
|
122
|
+
...dateSeperatorStyle
|
|
123
|
+
})).current;
|
|
124
|
+
const messageBubbleDateStyle = useRef(new DateStyle({
|
|
125
|
+
textColor: _messageListStyle.timestampTextColor,
|
|
126
|
+
textFont: _messageListStyle.timestampTextFont
|
|
127
|
+
})).current;
|
|
128
|
+
const _actionStyle = useRef(new ActionSheetStyles({
|
|
129
|
+
backgroundColor: theme?.palette?.getBackgroundColor(),
|
|
130
|
+
...actionSheetStyle
|
|
131
|
+
})).current;
|
|
132
|
+
const _messageBubbleStyle = useRef(new MessageBubbleStyle({
|
|
133
|
+
...wrapperMessageBubbleStyle
|
|
134
|
+
})).current;
|
|
135
|
+
// refs
|
|
136
|
+
const currentScrollPosition = useRef({ y: null, scrollViewHeight: 0, layoutHeight: 0, contentHeight: 0 });
|
|
137
|
+
const previousScrollPosition = useRef({ y: 0, scrollViewHeight: 0 });
|
|
138
|
+
const messagesLength = useRef(0);
|
|
139
|
+
const prevMessagesLength = useRef(0);
|
|
140
|
+
const messageListRef = useRef(null);
|
|
141
|
+
const loggedInUser = useRef(null);
|
|
142
|
+
const messageRequest = useRef(null);
|
|
143
|
+
const messagesContentListRef = useRef([]);
|
|
144
|
+
const msgRequestBuilder = useRef(undefined);
|
|
145
|
+
const lastMessageDate = useRef(new Date().getTime());
|
|
146
|
+
// states
|
|
147
|
+
const [messagesList, setMessagesList] = useState([]);
|
|
148
|
+
const [listState, setListState] = useState("loading");
|
|
149
|
+
const [loadingMessages, setLoadingMessages] = useState(false);
|
|
150
|
+
const [unreadCount, setUnreadCount] = useState(0);
|
|
151
|
+
const [showMessageOptions, setShowMessageOptions] = useState([]);
|
|
152
|
+
const [ExtensionsComponent, setExtensionsComponent] = useState(null);
|
|
153
|
+
const [CustomListHeader, setCustomListHeader] = useState(null);
|
|
154
|
+
const [messageInfo, setMessageInfo] = useState(false);
|
|
155
|
+
const [ongoingCallView, setOngoingCallView] = useState(null);
|
|
156
|
+
const [selectedMessage, setSelectedMessage] = useState(null);
|
|
157
|
+
const [showEmojiKeyboard, setShowEmojiKeyboard] = useState(false);
|
|
158
|
+
const [showReactionList, setShowReactionList] = useState(false);
|
|
159
|
+
const [selectedEmoji, setSelectedEmoji] = useState(undefined);
|
|
160
|
+
const [hasDismissed, setHasDismissed] = useState(false);
|
|
161
|
+
// const [forwarding, setForwarding] = useState(false);
|
|
162
|
+
const infoObject = useRef(undefined);
|
|
163
|
+
const inProgressMessages = useRef([]);
|
|
164
|
+
// const messageToForward = useRef<CometChat.BaseMessage>();
|
|
165
|
+
const bottomSheetRef = useRef(null);
|
|
166
|
+
const conversationId = useRef(null);
|
|
167
|
+
let lastID = useRef(0);
|
|
168
|
+
let isKeyBoardVisible = useRef(false);
|
|
169
|
+
const scrollHandler = (event) => {
|
|
170
|
+
/********************************************************************************
|
|
171
|
+
* layoutMeasurement.height: The height of the visible area within the ScrollView.
|
|
172
|
+
* contentOffset.y: The current vertical scroll position (distance from the top of the content).
|
|
173
|
+
The y value in contentOffset indicates how far the top edge of the visible area is from the top of the scrollable content.
|
|
174
|
+
The x value (if applicable) indicates how far the left edge of the visible area is from the left of the scrollable content.
|
|
175
|
+
For example:
|
|
176
|
+
If contentOffset.y is 0, the top of the visible area is aligned with the top of the content.
|
|
177
|
+
If contentOffset.y is 50, the top of the visible area is 50 units (pixels) below the top of the content.
|
|
178
|
+
* contentSize.height: The total height of the scrollable content.
|
|
179
|
+
*********************************************************************************/
|
|
180
|
+
const { layoutMeasurement, contentOffset, contentSize } = event.nativeEvent;
|
|
181
|
+
const screenHeight = Dimensions.get('window').height;
|
|
182
|
+
// Calculate the scroll position
|
|
183
|
+
const scrollPosition = layoutMeasurement.height + contentOffset.y;
|
|
184
|
+
const scrollEndPosition = contentSize.height - screenHeight;
|
|
185
|
+
currentScrollPosition.current.y = contentOffset.y;
|
|
186
|
+
currentScrollPosition.current.contentHeight = contentSize.height;
|
|
187
|
+
if (currentScrollPosition.current.layoutHeight != layoutMeasurement.height) {
|
|
188
|
+
currentScrollPosition.current.layoutHeight = layoutMeasurement.height;
|
|
189
|
+
}
|
|
190
|
+
if (currentScrollPosition.current.scrollViewHeight !== contentSize.height) {
|
|
191
|
+
currentScrollPosition.current.scrollViewHeight = contentSize.height;
|
|
192
|
+
}
|
|
193
|
+
// Check if the scroll position is at the end
|
|
194
|
+
if (scrollPosition >= scrollEndPosition && unreadCount > 0) {
|
|
195
|
+
markUnreadMessageAsRead();
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
const markUnreadMessageAsRead = () => {
|
|
199
|
+
for (let index = 0; index < unreadCount; index++) {
|
|
200
|
+
const message = messagesContentListRef.current[messagesContentListRef.current.length - (index + 1)];
|
|
201
|
+
if (index == 0)
|
|
202
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageRead, { message });
|
|
203
|
+
CometChat.markAsRead(message);
|
|
204
|
+
setUnreadCount(0);
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
const newMsgIndicatorPressed = () => {
|
|
208
|
+
messageListRef.current?.scrollToEnd({ animated: true });
|
|
209
|
+
markUnreadMessageAsRead();
|
|
210
|
+
};
|
|
211
|
+
const getPreviousMessages = async () => {
|
|
212
|
+
if (messagesList.length == 0)
|
|
213
|
+
setListState("loading");
|
|
214
|
+
else
|
|
215
|
+
setLoadingMessages(true);
|
|
216
|
+
// TODO: this condition is applied because somewhere from whiteboard extention group scope is set to undefined.
|
|
217
|
+
if (group != undefined && group.getGuid() == undefined) {
|
|
218
|
+
let fetchedGroup = await CometChat.getGroup(group.getGuid()).catch((e) => {
|
|
219
|
+
console.log("Error: fetching group", e);
|
|
220
|
+
onError && onError(e);
|
|
221
|
+
});
|
|
222
|
+
group.setScope(fetchedGroup['scope']);
|
|
223
|
+
}
|
|
224
|
+
messageRequest.current?.fetchPrevious()
|
|
225
|
+
.then((msgs) => {
|
|
226
|
+
let reversed = msgs.reverse();
|
|
227
|
+
if (messagesList.length === 0 && msgs?.length > 0) {
|
|
228
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccActiveChatChanged, { message: reversed[0], user: user, group: group, theme: theme, parentMessageId: parentMessageId });
|
|
229
|
+
if (conversationId.current == null)
|
|
230
|
+
conversationId.current = reversed[0].getConversationId();
|
|
231
|
+
}
|
|
232
|
+
else if (messagesList.length === 0 && !props?.parentMessageId) {
|
|
233
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccActiveChatChanged, { message: reversed[0], user: user, group: group, theme: theme, parentMessageId: parentMessageId });
|
|
234
|
+
}
|
|
235
|
+
for (let index = 0; index < reversed.length; index++) {
|
|
236
|
+
const message = reversed[index];
|
|
237
|
+
if (message && !disableReceipt && !message.hasOwnProperty("readAt") && loggedInUser.current?.getUid() != message?.getSender()?.getUid()) {
|
|
238
|
+
CometChat.markAsRead(message);
|
|
239
|
+
if (index == 0)
|
|
240
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageRead, { message });
|
|
241
|
+
}
|
|
242
|
+
else
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
reversed = reversed.map((item, index) => {
|
|
246
|
+
if (item.getCategory() === MessageCategoryConstants.interactive) {
|
|
247
|
+
return InteractiveMessageUtils.convertInteractiveMessage(item);
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
return item;
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
if (reversed.length > 0) {
|
|
254
|
+
let reversedData = [...reversed.reverse()];
|
|
255
|
+
messagesContentListRef.current = [...reversedData, ...messagesContentListRef.current];
|
|
256
|
+
setMessagesList([...reversedData, ...messagesList]);
|
|
257
|
+
}
|
|
258
|
+
if (messagesList.length == 0)
|
|
259
|
+
setListState("");
|
|
260
|
+
else
|
|
261
|
+
setLoadingMessages(false);
|
|
262
|
+
})
|
|
263
|
+
.catch((e) => {
|
|
264
|
+
if (messagesList.length == 0)
|
|
265
|
+
setListState("error");
|
|
266
|
+
else
|
|
267
|
+
setLoadingMessages(false);
|
|
268
|
+
onError && onError(e);
|
|
269
|
+
});
|
|
270
|
+
};
|
|
271
|
+
const getUpdatedPreviousMessages = () => {
|
|
272
|
+
let messagesRequest = new CometChat.MessagesRequestBuilder().setLimit(50);
|
|
273
|
+
if (user)
|
|
274
|
+
messagesRequest = messagesRequest.setUID(user.getUid());
|
|
275
|
+
if (group)
|
|
276
|
+
messagesRequest = messagesRequest.setGUID(group.getGuid());
|
|
277
|
+
messagesRequest.setTypes([MessageCategoryConstants.message]);
|
|
278
|
+
messagesRequest.setCategories([MessageCategoryConstants.action]);
|
|
279
|
+
messagesRequest.setMessageId(lastID.current);
|
|
280
|
+
messagesRequest.build()
|
|
281
|
+
.fetchNext()
|
|
282
|
+
.then((updatedMessages) => {
|
|
283
|
+
let tmpList = [...messagesContentListRef.current];
|
|
284
|
+
for (let i = 0; i < updatedMessages.length; i++) {
|
|
285
|
+
let condition = (msg) => msg.getId() == updatedMessages[i]?.actionOn.getId();
|
|
286
|
+
let msgIndex = messagesContentListRef.current.findIndex(condition);
|
|
287
|
+
if (msgIndex > -1) {
|
|
288
|
+
tmpList[msgIndex] = updatedMessages[i]?.actionOn;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
// console.log("UPDATES LIST LENGTH", tmpList.length)
|
|
292
|
+
// setMessagesList(tmpList);
|
|
293
|
+
getNewMessages(tmpList);
|
|
294
|
+
})
|
|
295
|
+
.catch((e) => console.log("error while fetching updated msgs", e));
|
|
296
|
+
};
|
|
297
|
+
const getNewMessages = (updatedList) => {
|
|
298
|
+
let newRequestBuilder = msgRequestBuilder.current;
|
|
299
|
+
newRequestBuilder?.setMessageId(lastID.current);
|
|
300
|
+
newRequestBuilder?.build()
|
|
301
|
+
.fetchNext()
|
|
302
|
+
.then((newMessages) => {
|
|
303
|
+
let cleanUpdatedList = [...updatedList];
|
|
304
|
+
let finalOutput = CommonUtils.mergeArrays(cleanUpdatedList, newMessages, "id");
|
|
305
|
+
let tmpList = [...finalOutput];
|
|
306
|
+
tmpList = tmpList.map((item, index) => {
|
|
307
|
+
if (item.getCategory() === MessageCategoryConstants.interactive) {
|
|
308
|
+
return InteractiveMessageUtils.convertInteractiveMessage(item);
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
return item;
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
if (inProgressMessages.current.length) {
|
|
315
|
+
const filteredInProgressMessages = inProgressMessages.current.filter(secondItem => tmpList.some(firstItem => firstItem.muid === secondItem.muid));
|
|
316
|
+
const combinedArray = CommonUtils.mergeArrays(tmpList, filteredInProgressMessages, "muid");
|
|
317
|
+
tmpList = combinedArray;
|
|
318
|
+
}
|
|
319
|
+
messagesContentListRef.current = tmpList;
|
|
320
|
+
setMessagesList(tmpList);
|
|
321
|
+
for (let i = newMessages.length - 1; i >= 0; i--) {
|
|
322
|
+
if (newMessages[i].getSender().getUid() !== loggedInUser.current.getUid()) {
|
|
323
|
+
bottomHandler(newMessages[i], true);
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
if (newMessages.length === 30) {
|
|
328
|
+
getNewMessages(tmpList);
|
|
329
|
+
}
|
|
330
|
+
newRequestBuilder?.setMessageId(undefined);
|
|
331
|
+
})
|
|
332
|
+
.catch((e) => console.log("error while fetching updated msgs", e));
|
|
333
|
+
};
|
|
334
|
+
const loadTemplates = useCallback(() => {
|
|
335
|
+
let _formatters = textFormatters || [];
|
|
336
|
+
let templates = ChatConfigurator.dataSource.getAllMessageTemplates(theme, {
|
|
337
|
+
textFormatters: _formatters,
|
|
338
|
+
disableMentions: disableMentions
|
|
339
|
+
});
|
|
340
|
+
templates.forEach(template => {
|
|
341
|
+
if (templatesMap.get(`${template.category}_${template.type}`))
|
|
342
|
+
return;
|
|
343
|
+
templatesMap.set(`${template.category}_${template.type}`, template);
|
|
344
|
+
});
|
|
345
|
+
}, []);
|
|
346
|
+
const getPlainString = (underlyingText, messageObject) => {
|
|
347
|
+
let _plainString = underlyingText;
|
|
348
|
+
let regexes = [];
|
|
349
|
+
let users = {};
|
|
350
|
+
let edits = [];
|
|
351
|
+
let allFormatters = [...(textFormatters || [])];
|
|
352
|
+
let mentionsTextFormatter = ChatConfigurator.getDataSource().getMentionsFormatter(loggedInUser.current);
|
|
353
|
+
allFormatters.push(mentionsTextFormatter);
|
|
354
|
+
allFormatters.forEach((formatter, key) => {
|
|
355
|
+
regexes.push(formatter.getRegexPattern());
|
|
356
|
+
let suggestionUsers = formatter.getSuggestionItems();
|
|
357
|
+
if (formatter instanceof CometChatMentionsFormatter) {
|
|
358
|
+
let mentionUsers = (messageObject?.getMentionedUsers && messageObject?.getMentionedUsers()).map((item) => new SuggestionItem({
|
|
359
|
+
id: item.getUid(),
|
|
360
|
+
name: item.getName(),
|
|
361
|
+
promptText: "@" + item.getName(),
|
|
362
|
+
trackingCharacter: "@",
|
|
363
|
+
underlyingText: `<@uid:${item.getUid()}>`,
|
|
364
|
+
hideLeadingIcon: false
|
|
365
|
+
})) || [];
|
|
366
|
+
suggestionUsers = [...suggestionUsers, ...mentionUsers];
|
|
367
|
+
}
|
|
368
|
+
suggestionUsers?.length > 0 && suggestionUsers.forEach((item) => users[item.underlyingText] = item);
|
|
369
|
+
});
|
|
370
|
+
regexes.forEach(regex => {
|
|
371
|
+
let match;
|
|
372
|
+
while ((match = regex.exec(_plainString)) !== null) {
|
|
373
|
+
const user = users[match[0]];
|
|
374
|
+
if (user) {
|
|
375
|
+
edits.push({
|
|
376
|
+
startIndex: match.index,
|
|
377
|
+
endIndex: regex.lastIndex,
|
|
378
|
+
replacement: user.promptText,
|
|
379
|
+
user
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
// Sort edits by startIndex to apply them in order
|
|
385
|
+
edits.sort((a, b) => a.startIndex - b.startIndex);
|
|
386
|
+
// Get an array of the entries in the map using the spread operator
|
|
387
|
+
const entries = [...edits].reverse();
|
|
388
|
+
// Iterate over the array in reverse order
|
|
389
|
+
entries.forEach(({ endIndex, replacement, startIndex, user }) => {
|
|
390
|
+
let pre = _plainString.substring(0, startIndex);
|
|
391
|
+
let post = _plainString.substring(endIndex);
|
|
392
|
+
_plainString = pre + replacement + post;
|
|
393
|
+
});
|
|
394
|
+
return _plainString;
|
|
395
|
+
};
|
|
396
|
+
const playNotificationSound = useCallback((message) => {
|
|
397
|
+
if (disableSoundForMessages)
|
|
398
|
+
return;
|
|
399
|
+
if (message?.category === MessageCategoryConstants.message) {
|
|
400
|
+
if (customSoundForMessages) {
|
|
401
|
+
CometChatSoundManager.play(loggedInUser.current?.getUid() == message['sender']['uid'] ? "outgoingMessage" : "incomingMessage", customSoundForMessages);
|
|
402
|
+
}
|
|
403
|
+
else {
|
|
404
|
+
CometChatSoundManager.play(
|
|
405
|
+
// "incomingMessage"
|
|
406
|
+
loggedInUser.current?.getUid() == message['sender']['uid'] ? "outgoingMessage" : "incomingMessage");
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}, []);
|
|
410
|
+
const scrollToBottom = useCallback((scrollToFirstUnread = false) => {
|
|
411
|
+
if (messageListRef.current && messagesContentListRef.current.length > 0) {
|
|
412
|
+
let firstUnreadPosition = previousScrollPosition.current.scrollViewHeight;
|
|
413
|
+
if (scrollToFirstUnread) {
|
|
414
|
+
setTimeout(() => {
|
|
415
|
+
messageListRef.current?.scrollTo({ x: 0, y: firstUnreadPosition, animated: false });
|
|
416
|
+
}, 0);
|
|
417
|
+
}
|
|
418
|
+
else {
|
|
419
|
+
setTimeout(() => {
|
|
420
|
+
messageListRef.current?.scrollToEnd({ animated: true });
|
|
421
|
+
}, 0);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}, []);
|
|
425
|
+
const markMessageAsRead = (message) => {
|
|
426
|
+
if (!disableReceipt && !message?.readAt) {
|
|
427
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageRead, { message });
|
|
428
|
+
CometChat.markAsRead(message)
|
|
429
|
+
.catch((error) => {
|
|
430
|
+
console.log("Error", error);
|
|
431
|
+
onError && onError(error);
|
|
432
|
+
// errorHandler(error);
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
function checkMessageInSameConversation(message) {
|
|
437
|
+
return (message?.getReceiverType() == ReceiverTypeConstants.user &&
|
|
438
|
+
user &&
|
|
439
|
+
user?.getUid() == message.getReceiver()?.['uid']) ||
|
|
440
|
+
(message?.getReceiverType() == ReceiverTypeConstants.group &&
|
|
441
|
+
message.getReceiverId() &&
|
|
442
|
+
group &&
|
|
443
|
+
group?.getGuid() == message.getReceiverId() || false);
|
|
444
|
+
}
|
|
445
|
+
function messageToSameConversation(message) {
|
|
446
|
+
return (message?.getReceiverType() == ReceiverTypeConstants.user &&
|
|
447
|
+
user &&
|
|
448
|
+
user?.getUid() == message.getReceiverId()) ||
|
|
449
|
+
(message?.getReceiverType() == ReceiverTypeConstants.group &&
|
|
450
|
+
message.getReceiverId() &&
|
|
451
|
+
group &&
|
|
452
|
+
group?.getGuid() == message.getReceiverId() || false);
|
|
453
|
+
}
|
|
454
|
+
function checkSameConversation(message) {
|
|
455
|
+
return message.getConversationId() == conversationId.current ||
|
|
456
|
+
(message.getSender()?.getUid() === user?.getUid() && message.getReceiverType() == CometChatUiKitConstants.ReceiverTypeConstants.user);
|
|
457
|
+
}
|
|
458
|
+
function isNearBottom() {
|
|
459
|
+
const { layoutHeight, scrollViewHeight, y } = currentScrollPosition.current;
|
|
460
|
+
let scrollPos = scrollViewHeight - (layoutHeight + y);
|
|
461
|
+
let scrollPosFromBottomInPercentage = (scrollPos / layoutHeight) * 100;
|
|
462
|
+
if (scrollPosFromBottomInPercentage <= 30) { // 30% from bottom
|
|
463
|
+
return true;
|
|
464
|
+
}
|
|
465
|
+
return false;
|
|
466
|
+
}
|
|
467
|
+
const newMessage = (newMessage, isReceived = true) => {
|
|
468
|
+
let baseMessage = newMessage;
|
|
469
|
+
if (baseMessage.getCategory() === MessageCategoryConstants.interactive) {
|
|
470
|
+
newMessage = InteractiveMessageUtils.convertInteractiveMessage(baseMessage);
|
|
471
|
+
}
|
|
472
|
+
if (checkSameConversation(baseMessage) || checkMessageInSameConversation(baseMessage) || messageToSameConversation(baseMessage)) {
|
|
473
|
+
if (!disableReceipt) {
|
|
474
|
+
CometChat.markAsDelivered(newMessage);
|
|
475
|
+
}
|
|
476
|
+
//need to add
|
|
477
|
+
if (newMessage.getParentMessageId()) {
|
|
478
|
+
if (parentMessageId && newMessage.getParentMessageId() == parseInt(parentMessageId)) {
|
|
479
|
+
// add to list
|
|
480
|
+
messagesContentListRef.current = [...messagesContentListRef.current, newMessage];
|
|
481
|
+
setMessagesList(prev => [...prev, newMessage]);
|
|
482
|
+
}
|
|
483
|
+
else {
|
|
484
|
+
//increase count
|
|
485
|
+
let index = messagesList.findIndex(msg => msg.id === newMessage.parentMessageId);
|
|
486
|
+
let oldMsg = CommonUtils.clone(messagesList[index]);
|
|
487
|
+
oldMsg.setReplyCount(oldMsg.getReplyCount() ? oldMsg.getReplyCount() + 1 : 1);
|
|
488
|
+
// if ((newMessage?.sender?.uid !== loggedInUser.current?.['uid'])) {
|
|
489
|
+
// oldMsg.setUnreadReplyCount(oldMsg.getUnreadReplyCount() ? oldMsg.getUnreadReplyCount() + 1 : 1);
|
|
490
|
+
// }
|
|
491
|
+
let tmpList = [...messagesList];
|
|
492
|
+
tmpList[index] = oldMsg;
|
|
493
|
+
messagesContentListRef.current = tmpList;
|
|
494
|
+
setMessagesList(tmpList);
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
else if (parentMessageId == undefined) {
|
|
499
|
+
messagesContentListRef.current = [...messagesContentListRef.current, newMessage];
|
|
500
|
+
setMessagesList(prev => [...prev, newMessage]);
|
|
501
|
+
}
|
|
502
|
+
bottomHandler(newMessage, isReceived);
|
|
503
|
+
}
|
|
504
|
+
playNotificationSound(newMessage);
|
|
505
|
+
};
|
|
506
|
+
const isAtBottom = () => {
|
|
507
|
+
if ([null, undefined].includes(currentScrollPosition.current.y)
|
|
508
|
+
|| !currentScrollPosition.current.layoutHeight
|
|
509
|
+
|| !currentScrollPosition.current.contentHeight) {
|
|
510
|
+
return true;
|
|
511
|
+
}
|
|
512
|
+
else if (currentScrollPosition.current.layoutHeight + currentScrollPosition.current.y >= currentScrollPosition.current.contentHeight) {
|
|
513
|
+
return true;
|
|
514
|
+
}
|
|
515
|
+
return false;
|
|
516
|
+
};
|
|
517
|
+
const bottomHandler = (newMessage, isReceived) => {
|
|
518
|
+
if ((newMessage.getSender()?.getUid() || newMessage?.['sender']?.['uid']) == loggedInUser.current?.['uid']) {
|
|
519
|
+
scrollToBottom();
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
522
|
+
if (!isReceived) {
|
|
523
|
+
return;
|
|
524
|
+
}
|
|
525
|
+
if ((!parentMessageId && newMessage.getParentMessageId())
|
|
526
|
+
|| (parentMessageId && !newMessage.getParentMessageId())
|
|
527
|
+
|| (parentMessageId && newMessage.getParentMessageId() && parentMessageId != newMessage.getParentMessageId())) {
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
if (isAtBottom() || isNearBottom()) {
|
|
531
|
+
scrollToBottom();
|
|
532
|
+
markMessageAsRead(newMessage);
|
|
533
|
+
}
|
|
534
|
+
else {
|
|
535
|
+
if (scrollToBottomOnNewMessages) {
|
|
536
|
+
scrollToBottom();
|
|
537
|
+
markMessageAsRead(newMessage);
|
|
538
|
+
}
|
|
539
|
+
else {
|
|
540
|
+
setUnreadCount(unreadCount + 1);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
const markParentMessageAsRead = (message) => {
|
|
545
|
+
let condition;
|
|
546
|
+
condition = (msg) => msg.getId() == message?.['parentMessageId'];
|
|
547
|
+
let msgIndex = messagesList.findIndex(condition);
|
|
548
|
+
if (msgIndex > -1) {
|
|
549
|
+
let tmpList = [...messagesList];
|
|
550
|
+
if (message.getCategory() === MessageCategoryConstants.interactive) {
|
|
551
|
+
message = InteractiveMessageUtils.convertInteractiveMessage(message);
|
|
552
|
+
}
|
|
553
|
+
tmpList[msgIndex]?.setUnreadReplyCount(0);
|
|
554
|
+
messagesContentListRef.current = tmpList;
|
|
555
|
+
setMessagesList(tmpList);
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
const messageEdited = (editedMessage, withMuid = false) => {
|
|
559
|
+
let condition;
|
|
560
|
+
if (withMuid) {
|
|
561
|
+
condition = (msg) => msg['muid'] == editedMessage['muid'];
|
|
562
|
+
//inProgressMessages.current = inProgressMessages.current.filter((item: anyObject) => item.muid !== editedMessage['muid'])
|
|
563
|
+
}
|
|
564
|
+
else
|
|
565
|
+
condition = (msg) => msg.getId() == editedMessage.getId();
|
|
566
|
+
let msgIndex = messagesContentListRef.current.findIndex(condition);
|
|
567
|
+
if (msgIndex > -1) {
|
|
568
|
+
let tmpList = [...messagesContentListRef.current];
|
|
569
|
+
if (editedMessage.getCategory() === MessageCategoryConstants.interactive) {
|
|
570
|
+
editedMessage = InteractiveMessageUtils.convertInteractiveMessage(editedMessage);
|
|
571
|
+
}
|
|
572
|
+
tmpList[msgIndex] = CommonUtils.clone(editedMessage);
|
|
573
|
+
messagesContentListRef.current = tmpList;
|
|
574
|
+
setMessagesList(tmpList);
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
const removeMessage = (message) => {
|
|
578
|
+
let msgIndex = messagesList.findIndex(msg => msg.getId() == message.getId());
|
|
579
|
+
if (msgIndex == -1)
|
|
580
|
+
return;
|
|
581
|
+
let tmpList = [...messagesList];
|
|
582
|
+
tmpList.splice(msgIndex, 1);
|
|
583
|
+
messagesContentListRef.current = tmpList;
|
|
584
|
+
setMessagesList(tmpList);
|
|
585
|
+
};
|
|
586
|
+
const deleteMessage = (message) => {
|
|
587
|
+
CometChat.deleteMessage(message.getId().toString())
|
|
588
|
+
.then((res) => {
|
|
589
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageDeleted, { message: res });
|
|
590
|
+
setShowMessageOptions([]);
|
|
591
|
+
})
|
|
592
|
+
.catch((rej) => {
|
|
593
|
+
console.log(rej);
|
|
594
|
+
onError && onError(rej);
|
|
595
|
+
});
|
|
596
|
+
};
|
|
597
|
+
const createActionMessage = () => { };
|
|
598
|
+
const updateMessageReceipt = (receipt) => {
|
|
599
|
+
if (receipt?.getReceiverType() === ReceiverTypeConstants.group && ![receipt.RECEIPT_TYPE.DELIVERED_TO_ALL_RECEIPT, receipt.RECEIPT_TYPE.READ_BY_ALL_RECEIPT].includes(receipt?.getReceiptType())) {
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
602
|
+
let index = messagesContentListRef.current.findIndex((msg, index) => msg['id'] == receipt['messageId'] || msg['messageId'] == receipt['messageId']);
|
|
603
|
+
if (index == -1)
|
|
604
|
+
return;
|
|
605
|
+
let tmpList = [...messagesContentListRef.current];
|
|
606
|
+
for (let i = index; i >= 0; i--) {
|
|
607
|
+
if (tmpList[i]?.getReadAt && tmpList[i]?.getReadAt())
|
|
608
|
+
break;
|
|
609
|
+
let tmpMsg = tmpList[i];
|
|
610
|
+
if (!Number.isNaN(Number(tmpMsg.getId()))) {
|
|
611
|
+
if (tmpMsg.getCategory() === MessageCategoryConstants.interactive) {
|
|
612
|
+
tmpMsg = InteractiveMessageUtils.convertInteractiveMessage(tmpMsg);
|
|
613
|
+
}
|
|
614
|
+
if (receipt.getDeliveredAt) {
|
|
615
|
+
tmpMsg.setDeliveredAt(receipt.getDeliveredAt());
|
|
616
|
+
}
|
|
617
|
+
if (receipt.getReadAt) {
|
|
618
|
+
tmpMsg.setReadAt(receipt.getReadAt());
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
tmpList[i] = CommonUtils.clone(tmpMsg);
|
|
622
|
+
}
|
|
623
|
+
messagesContentListRef.current = tmpList;
|
|
624
|
+
setMessagesList(tmpList);
|
|
625
|
+
};
|
|
626
|
+
const handlePanel = (item) => {
|
|
627
|
+
if (item.alignment === ViewAlignment.messageListBottom && (user || group) && CommonUtils.checkIdBelongsToThisComponent(item.id, user, group, parentMessageId || '')) {
|
|
628
|
+
if (item.child)
|
|
629
|
+
setCustomListHeader(() => item.child);
|
|
630
|
+
else
|
|
631
|
+
setCustomListHeader(null);
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
useEffect(() => {
|
|
635
|
+
const showSubscription = Keyboard.addListener('keyboardDidShow', (e) => onKeyboardVisibiltyChange(true, e?.endCoordinates?.height));
|
|
636
|
+
const hideSubscription = Keyboard.addListener('keyboardDidHide', () => onKeyboardVisibiltyChange(false));
|
|
637
|
+
CometChatUIEventHandler.addUIListener(uiEventListenerShow, {
|
|
638
|
+
showPanel: (item) => handlePanel(item),
|
|
639
|
+
});
|
|
640
|
+
CometChatUIEventHandler.addUIListener(uiEventListenerHide, {
|
|
641
|
+
hidePanel: (item) => handlePanel(item)
|
|
642
|
+
});
|
|
643
|
+
CometChatUIEventHandler.addUIListener(uiEventListener, {
|
|
644
|
+
ccToggleBottomSheet: (item) => {
|
|
645
|
+
bottomSheetRef.current?.togglePanel();
|
|
646
|
+
},
|
|
647
|
+
});
|
|
648
|
+
CometChat.getLoggedinUser()
|
|
649
|
+
.then((u) => {
|
|
650
|
+
loggedInUser.current = u;
|
|
651
|
+
messageRequest.current = msgRequestBuilder.current?.build() || null;
|
|
652
|
+
getPreviousMessages();
|
|
653
|
+
loadTemplates();
|
|
654
|
+
})
|
|
655
|
+
.catch((e) => {
|
|
656
|
+
console.log("Error while getting loggedInUser");
|
|
657
|
+
onError && onError(e);
|
|
658
|
+
loggedInUser.current = null;
|
|
659
|
+
});
|
|
660
|
+
return () => {
|
|
661
|
+
showSubscription.remove();
|
|
662
|
+
hideSubscription.remove();
|
|
663
|
+
CometChatUIEventHandler.removeUIListener(uiEventListenerShow);
|
|
664
|
+
CometChatUIEventHandler.removeUIListener(uiEventListenerHide);
|
|
665
|
+
CometChatUIEventHandler.removeUIListener(uiEventListener);
|
|
666
|
+
onBack && onBack();
|
|
667
|
+
};
|
|
668
|
+
}, []);
|
|
669
|
+
useEffect(() => {
|
|
670
|
+
//add listeners
|
|
671
|
+
let reactionListeners = disableReactions ? {} : {
|
|
672
|
+
onMessageReactionAdded: (reaction) => {
|
|
673
|
+
updateMessageReaction(reaction, true);
|
|
674
|
+
},
|
|
675
|
+
onMessageReactionRemoved: (reaction) => {
|
|
676
|
+
updateMessageReaction(reaction, false);
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
CometChat.addGroupListener(groupListenerId, new CometChat.GroupListener({
|
|
680
|
+
onGroupMemberScopeChanged: (message) => {
|
|
681
|
+
newMessage(message);
|
|
682
|
+
},
|
|
683
|
+
onGroupMemberLeft: (message) => {
|
|
684
|
+
newMessage(message);
|
|
685
|
+
},
|
|
686
|
+
onGroupMemberKicked: (message) => {
|
|
687
|
+
newMessage(message);
|
|
688
|
+
},
|
|
689
|
+
onGroupMemberBanned: (message) => {
|
|
690
|
+
newMessage(message);
|
|
691
|
+
},
|
|
692
|
+
onGroupMemberUnbanned: (message) => {
|
|
693
|
+
newMessage(message);
|
|
694
|
+
},
|
|
695
|
+
onMemberAddedToGroup: (message) => {
|
|
696
|
+
newMessage(message);
|
|
697
|
+
},
|
|
698
|
+
onGroupMemberJoined: (message) => {
|
|
699
|
+
newMessage(message);
|
|
700
|
+
},
|
|
701
|
+
}));
|
|
702
|
+
CometChatUIEventHandler.addMessageListener(messageEventListener, {
|
|
703
|
+
ccMessageSent: ({ message, status }) => {
|
|
704
|
+
if (status == MessageStatusConstants.inprogress) {
|
|
705
|
+
inProgressMessages.current = [...inProgressMessages.current, message];
|
|
706
|
+
newMessage(message, false);
|
|
707
|
+
}
|
|
708
|
+
if (status == MessageStatusConstants.success) {
|
|
709
|
+
messageEdited(message, true);
|
|
710
|
+
}
|
|
711
|
+
if (status == MessageStatusConstants.error) {
|
|
712
|
+
messageEdited(message, true);
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
ccMessageEdited: ({ message, status }) => {
|
|
716
|
+
if (status == messageStatus.success)
|
|
717
|
+
messageEdited(message, false);
|
|
718
|
+
},
|
|
719
|
+
ccMessageDeleted: ({ message }) => {
|
|
720
|
+
messageEdited(message, false);
|
|
721
|
+
},
|
|
722
|
+
ccMessageRead: ({ message }) => {
|
|
723
|
+
if (!parentMessageId && message.parentMessageId) {
|
|
724
|
+
// markParentMessageAsRead(message); //NOTE: uncomment this when want unread count in thread view
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
onTextMessageReceived: (textMessage) => {
|
|
728
|
+
newMessage(textMessage);
|
|
729
|
+
},
|
|
730
|
+
onMediaMessageReceived: (mediaMessage) => {
|
|
731
|
+
newMessage(mediaMessage);
|
|
732
|
+
},
|
|
733
|
+
onCustomMessageReceived: (customMessage) => {
|
|
734
|
+
newMessage(customMessage);
|
|
735
|
+
},
|
|
736
|
+
onMessagesDelivered: (messageReceipt) => {
|
|
737
|
+
updateMessageReceipt(messageReceipt);
|
|
738
|
+
},
|
|
739
|
+
onMessagesRead: (messageReceipt) => {
|
|
740
|
+
updateMessageReceipt(messageReceipt);
|
|
741
|
+
},
|
|
742
|
+
onMessageDeleted: (deletedMessage) => {
|
|
743
|
+
messageEdited(deletedMessage);
|
|
744
|
+
},
|
|
745
|
+
onMessageEdited: (editedMessage) => {
|
|
746
|
+
messageEdited(editedMessage);
|
|
747
|
+
},
|
|
748
|
+
onFormMessageReceived: (formMessage) => {
|
|
749
|
+
newMessage(formMessage);
|
|
750
|
+
},
|
|
751
|
+
onCardMessageReceived: (cardMessage) => {
|
|
752
|
+
newMessage(cardMessage);
|
|
753
|
+
},
|
|
754
|
+
onSchedulerMessageReceived: (schedulerMessage) => {
|
|
755
|
+
newMessage(schedulerMessage);
|
|
756
|
+
},
|
|
757
|
+
onCustomInteractiveMessageReceived: (customInteractiveMessage) => {
|
|
758
|
+
newMessage(customInteractiveMessage);
|
|
759
|
+
},
|
|
760
|
+
onInteractionGoalCompleted: (interactionReceipt) => {
|
|
761
|
+
if (loggedInUser?.current?.['uid'] === interactionReceipt?.getSender()?.getUid()) {
|
|
762
|
+
// && String(message?.getId()) == String(interactionReceipt.getMessageId())
|
|
763
|
+
let msgIndex = messagesList.findIndex(item => {
|
|
764
|
+
console.log("getId", item.getId(), interactionReceipt.getMessageId());
|
|
765
|
+
return item.getId() == interactionReceipt.getMessageId();
|
|
766
|
+
});
|
|
767
|
+
console.log("msgIndex", msgIndex);
|
|
768
|
+
if (msgIndex === -1)
|
|
769
|
+
return;
|
|
770
|
+
const interaction = interactionReceipt.getInteractions() || [];
|
|
771
|
+
let editedMessage = messagesList[msgIndex];
|
|
772
|
+
editedMessage = InteractiveMessageUtils.convertInteractiveMessage(editedMessage);
|
|
773
|
+
editedMessage.setInteractions(interaction);
|
|
774
|
+
messageEdited(editedMessage);
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
...reactionListeners,
|
|
778
|
+
onMessagesDeliveredToAll: (messageReceipt) => {
|
|
779
|
+
updateMessageReceipt(messageReceipt);
|
|
780
|
+
},
|
|
781
|
+
onMessagesReadByAll: (messageReceipt) => {
|
|
782
|
+
updateMessageReceipt(messageReceipt);
|
|
783
|
+
},
|
|
784
|
+
});
|
|
785
|
+
CometChatUIEventHandler.addGroupListener(groupEventListener, {
|
|
786
|
+
ccGroupMemberUnBanned: ({ message }) => {
|
|
787
|
+
newMessage(message, false);
|
|
788
|
+
},
|
|
789
|
+
ccGroupMemberBanned: ({ message }) => {
|
|
790
|
+
newMessage(message, false);
|
|
791
|
+
},
|
|
792
|
+
ccGroupMemberAdded: ({ message, usersAdded, userAddedIn }) => {
|
|
793
|
+
usersAdded.forEach((user) => {
|
|
794
|
+
message['message'] = `${loggedInUser.current?.getName()} added ${user.name}`;
|
|
795
|
+
message['muid'] = String(getUnixTimestamp());
|
|
796
|
+
message['sentAt'] = getUnixTimestamp();
|
|
797
|
+
message['actionOn'] = user;
|
|
798
|
+
newMessage(message, false);
|
|
799
|
+
});
|
|
800
|
+
},
|
|
801
|
+
ccGroupMemberKicked: ({ message }) => {
|
|
802
|
+
newMessage(message, false);
|
|
803
|
+
},
|
|
804
|
+
ccGroupMemberScopeChanged: ({ action, updatedUser, scopeChangedTo, scopeChangedFrom, group }) => {
|
|
805
|
+
newMessage(action, false);
|
|
806
|
+
},
|
|
807
|
+
ccOwnershipChanged: ({ group, message }) => {
|
|
808
|
+
// newMessage(message, false); removed after discussion.
|
|
809
|
+
}
|
|
810
|
+
});
|
|
811
|
+
CometChat.addCallListener(callListenerId, new CometChat.CallListener({
|
|
812
|
+
onIncomingCallReceived: (call) => {
|
|
813
|
+
newMessage(call);
|
|
814
|
+
},
|
|
815
|
+
onOutgoingCallAccepted: (call) => {
|
|
816
|
+
newMessage(call);
|
|
817
|
+
},
|
|
818
|
+
onOutgoingCallRejected: (call) => {
|
|
819
|
+
newMessage(call);
|
|
820
|
+
},
|
|
821
|
+
onIncomingCallCancelled: (call) => {
|
|
822
|
+
newMessage(call);
|
|
823
|
+
}
|
|
824
|
+
}));
|
|
825
|
+
CometChatUIEventHandler.addCallListener(callEventListener, {
|
|
826
|
+
ccCallInitiated: ({ call }) => {
|
|
827
|
+
if (call['type'] == CallTypeConstants.audio || call['type'] == CallTypeConstants.video) {
|
|
828
|
+
newMessage(call);
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
ccOutgoingCall: ({ call }) => {
|
|
832
|
+
if (call['type'] == CallTypeConstants.audio || call['type'] == CallTypeConstants.video) {
|
|
833
|
+
newMessage(call);
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
ccCallAccepted: ({ call }) => {
|
|
837
|
+
if (call['type'] == CallTypeConstants.audio || call['type'] == CallTypeConstants.video) {
|
|
838
|
+
newMessage(call);
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
ccCallRejected: ({ call }) => {
|
|
842
|
+
if (call['type'] == CallTypeConstants.audio || call['type'] == CallTypeConstants.video) {
|
|
843
|
+
newMessage(call);
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
ccCallEnded: ({ call }) => {
|
|
847
|
+
if (call['type'] == CallTypeConstants.audio || call['type'] == CallTypeConstants.video) {
|
|
848
|
+
newMessage(call);
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
ccShowOngoingCall: (CometChatOngoingComponent) => {
|
|
852
|
+
//show ongoing call
|
|
853
|
+
setOngoingCallView(CometChatOngoingComponent?.child);
|
|
854
|
+
},
|
|
855
|
+
});
|
|
856
|
+
CometChat.addConnectionListener(connectionListenerId, new CometChat.ConnectionListener({
|
|
857
|
+
onConnected: () => {
|
|
858
|
+
if (lastID.current) {
|
|
859
|
+
getUpdatedPreviousMessages();
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
inConnecting: () => {
|
|
863
|
+
},
|
|
864
|
+
onDisconnected: () => {
|
|
865
|
+
if (!messagesList[messagesList.length - 1].id) {
|
|
866
|
+
for (let i = (messagesList.length - 1); i >= 0; i--) {
|
|
867
|
+
if (messagesList[i].id) {
|
|
868
|
+
lastID.current = messagesList[i].id;
|
|
869
|
+
break;
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
else {
|
|
874
|
+
lastID.current = messagesList[messagesList.length - 1].id;
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}));
|
|
878
|
+
return () => {
|
|
879
|
+
// clean up code like removing listeners
|
|
880
|
+
CometChatUIEventHandler.removeMessageListener(messageEventListener);
|
|
881
|
+
CometChatUIEventHandler.removeGroupListener(groupEventListener);
|
|
882
|
+
CometChatUIEventHandler.removeCallListener(callEventListener);
|
|
883
|
+
CometChat.removeGroupListener(groupListenerId);
|
|
884
|
+
CometChat.removeCallListener(callListenerId);
|
|
885
|
+
CometChat.removeConnectionListener(connectionListenerId);
|
|
886
|
+
};
|
|
887
|
+
}, [messagesList, unreadCount, user, group]);
|
|
888
|
+
useEffect(() => {
|
|
889
|
+
prevMessagesLength.current = messagesLength.current || messagesContentListRef.current.length;
|
|
890
|
+
messagesLength.current = messagesContentListRef.current.length;
|
|
891
|
+
}, [messagesContentListRef.current]);
|
|
892
|
+
useEffect(() => {
|
|
893
|
+
if (selectedEmoji) {
|
|
894
|
+
setShowReactionList(true);
|
|
895
|
+
}
|
|
896
|
+
}, [selectedEmoji]);
|
|
897
|
+
//@ts-ignore
|
|
898
|
+
useImperativeHandle(ref, () => {
|
|
899
|
+
return {
|
|
900
|
+
addMessage: newMessage,
|
|
901
|
+
updateMessage: messageEdited,
|
|
902
|
+
removeMessage,
|
|
903
|
+
deleteMessage,
|
|
904
|
+
scrollToBottom,
|
|
905
|
+
/// todo: not handeled yet
|
|
906
|
+
createActionMessage,
|
|
907
|
+
updateMessageReceipt,
|
|
908
|
+
isNearBottom,
|
|
909
|
+
};
|
|
910
|
+
});
|
|
911
|
+
const onKeyboardVisibiltyChange = (isVisible, keyboardHeight) => {
|
|
912
|
+
if (messageListRef.current) {
|
|
913
|
+
if (isVisible && currentScrollPosition.current.y && keyboardHeight) {
|
|
914
|
+
Keyboard_Height = keyboardHeight;
|
|
915
|
+
scrollPos = (currentScrollPosition.current.y + Keyboard_Height) - (commonVars.safeAreaInsets.top / 2);
|
|
916
|
+
// We use a double requestAnimationFrame here to handle keyboard layout changes:
|
|
917
|
+
// 1. ScrollView’s height and offsets are final.
|
|
918
|
+
// 2. scrollTo is called with the correct y-offset, preventing jerky jumps or overshoot.
|
|
919
|
+
// double requestAnimationFrame is a lightweight way to wait for the keyboard-induced
|
|
920
|
+
// layout pass to finish before performing a scroll, avoiding flicker.
|
|
921
|
+
requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
922
|
+
messageListRef.current?.scrollTo({ y: scrollPos, animated: false });
|
|
923
|
+
}));
|
|
924
|
+
isKeyBoardVisible.current = true;
|
|
925
|
+
}
|
|
926
|
+
else {
|
|
927
|
+
isKeyBoardVisible.current = false;
|
|
928
|
+
/**
|
|
929
|
+
* Do not have to scroll back if the list is at the bottom because we are already adjusting
|
|
930
|
+
for the change in contentSize when we are at bottom which means if the list is at the bottom
|
|
931
|
+
and we open the keyboard, the following line
|
|
932
|
+
(`messageListRef.current.scrollTo({ y: scrollPos, animated: false })`) in the above "if"
|
|
933
|
+
condition already puts the list at the bottom again.
|
|
934
|
+
Hence, running the below for isAtBottom() will scroll to a wrong position.
|
|
935
|
+
*/
|
|
936
|
+
if (!isAtBottom()) {
|
|
937
|
+
messageListRef.current.scrollTo({ y: scrollPos - Keyboard_Height + (commonVars.safeAreaInsets.top / 2), animated: false });
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
const getMessageById = (messageId) => {
|
|
943
|
+
const message = messagesList.find((message) => message.getId() === messageId);
|
|
944
|
+
return message;
|
|
945
|
+
};
|
|
946
|
+
function isReactionOfThisList(receipt) {
|
|
947
|
+
const receiverId = receipt?.getReceiverId();
|
|
948
|
+
const receiverType = receipt?.getReceiverType();
|
|
949
|
+
const reactedById = receipt?.getReaction()?.getReactedBy()?.getUid();
|
|
950
|
+
const parentMessageId = receipt?.getParentMessageId();
|
|
951
|
+
const listParentMessageId = parentMessageId && String(parentMessageId);
|
|
952
|
+
if (listParentMessageId) {
|
|
953
|
+
if (parentMessageId === listParentMessageId) {
|
|
954
|
+
return true;
|
|
955
|
+
}
|
|
956
|
+
else {
|
|
957
|
+
return false;
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
else {
|
|
961
|
+
if (receipt.getParentMessageId()) {
|
|
962
|
+
return false;
|
|
963
|
+
}
|
|
964
|
+
if (user) {
|
|
965
|
+
if (receiverType === ReceiverTypeConstants.user && (receiverId === user.getUid() || reactedById === user.getUid())) {
|
|
966
|
+
return true;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
else if (group) {
|
|
970
|
+
if (receiverType === ReceiverTypeConstants.group && (receiverId === group.getGuid())) {
|
|
971
|
+
return true;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
return false;
|
|
976
|
+
}
|
|
977
|
+
const updateMessageReaction = (message, isAdded) => {
|
|
978
|
+
let _isReactionOfThisList = isReactionOfThisList(message);
|
|
979
|
+
if (!_isReactionOfThisList)
|
|
980
|
+
return;
|
|
981
|
+
const messageId = message?.getReaction()?.getMessageId();
|
|
982
|
+
const messageObject = getMessageById(messageId);
|
|
983
|
+
if (!messageObject)
|
|
984
|
+
return;
|
|
985
|
+
let action;
|
|
986
|
+
if (isAdded) {
|
|
987
|
+
action = CometChat.REACTION_ACTION.REACTION_ADDED;
|
|
988
|
+
}
|
|
989
|
+
else {
|
|
990
|
+
action = CometChat.REACTION_ACTION.REACTION_REMOVED;
|
|
991
|
+
}
|
|
992
|
+
const modifiedMessage = CometChat.CometChatHelper.updateMessageWithReactionInfo(messageObject, message.getReaction(), action);
|
|
993
|
+
if (modifiedMessage instanceof CometChat.CometChatException) {
|
|
994
|
+
onError && onError(modifiedMessage);
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
997
|
+
messageEdited(modifiedMessage, false);
|
|
998
|
+
};
|
|
999
|
+
// functions returning view
|
|
1000
|
+
const getLeadingView = useCallback((item) => {
|
|
1001
|
+
if (showAvatar && (alignment === "leftAligned" || (item.getSender()?.getUid() || item?.['sender']?.['uid']) !== loggedInUser.current?.getUid() && item['category'] != MessageCategoryConstants.action)) {
|
|
1002
|
+
return <CometChatAvatar image={(item?.getSender()?.getAvatar && item?.getSender()?.getAvatar()) ? { uri: item.getSender().getAvatar() } : undefined} name={(item?.getSender()?.getName && item?.getSender()?.getName()) ? item?.getSender()?.getName() : ""} style={_avatarStyle}/>;
|
|
1003
|
+
}
|
|
1004
|
+
return null;
|
|
1005
|
+
}, []);
|
|
1006
|
+
const getHeaderView = useCallback((item) => {
|
|
1007
|
+
let senderName = "";
|
|
1008
|
+
if (alignment === "leftAligned" || ((item.getSender()?.getUid() || item?.['sender']?.['uid']) != loggedInUser.current?.getUid()))
|
|
1009
|
+
senderName = (item.getSender()?.getName() || "").trim();
|
|
1010
|
+
if (item.getCategory() == MessageCategoryConstants.action || item.getCategory() == MessageCategoryConstants.call)
|
|
1011
|
+
return null;
|
|
1012
|
+
return (<View style={{ flexDirection: "row" }}>
|
|
1013
|
+
{Boolean(senderName) && <Text style={[Style.nameStyle, {
|
|
1014
|
+
color: _messageListStyle.nameTextColor,
|
|
1015
|
+
..._messageListStyle.nameTextFont,
|
|
1016
|
+
}]} numberOfLines={1} ellipsizeMode={"tail"}>{senderName}</Text>}
|
|
1017
|
+
{timeStampAlignment == "bottom" || item['category'] == "action" ?
|
|
1018
|
+
null :
|
|
1019
|
+
<CometChatDate timeStamp={((item.getDeletedAt() || item.getReadAt() || item.getDeliveredAt() || item.getSentAt()) * 1000) || getSentAtTimestamp(item)} style={messageBubbleDateStyle} pattern={"timeFormat"} customDateString={datePattern && datePattern(item)} dateAlignment="center"/>}
|
|
1020
|
+
</View>);
|
|
1021
|
+
}, []);
|
|
1022
|
+
const getStatusInfoView = useCallback((item, bubbleAlignment, currentIndex) => {
|
|
1023
|
+
// return null if time alignment is top
|
|
1024
|
+
if (timeStampAlignment == "top" || item['category'] == "action" || item['deletedAt'])
|
|
1025
|
+
return null;
|
|
1026
|
+
let isSender = (item.getSender()?.getUid() || item?.['sender']?.['uid']) == loggedInUser.current?.getUid();
|
|
1027
|
+
let messageState, nextItemIsRead, nextItemIsDelivered;
|
|
1028
|
+
if (currentIndex !== undefined) {
|
|
1029
|
+
nextItemIsRead = messagesContentListRef.current[currentIndex + 1] && messagesContentListRef.current[currentIndex + 1].getReadAt();
|
|
1030
|
+
nextItemIsDelivered = messagesContentListRef.current[currentIndex + 1] && messagesContentListRef.current[currentIndex + 1].getDeliveredAt();
|
|
1031
|
+
}
|
|
1032
|
+
if (item.getReadAt() || nextItemIsRead)
|
|
1033
|
+
messageState = "READ";
|
|
1034
|
+
else if (item.getDeliveredAt() || nextItemIsDelivered)
|
|
1035
|
+
messageState = "DELIVERED";
|
|
1036
|
+
else if (item.getSentAt())
|
|
1037
|
+
messageState = "SENT";
|
|
1038
|
+
else if (item?.getData()?.metaData?.error)
|
|
1039
|
+
messageState = "ERROR";
|
|
1040
|
+
else if (isSender)
|
|
1041
|
+
messageState = "WAIT";
|
|
1042
|
+
else
|
|
1043
|
+
messageState = "ERROR";
|
|
1044
|
+
let isAudioVideo = (item?.getType() === "image" || item?.getType() === "video");
|
|
1045
|
+
return <View style={[
|
|
1046
|
+
isAudioVideo ? {
|
|
1047
|
+
flexDirection: "row", justifyContent: bubbleAlignment === "right" ? "flex-end" : "flex-start", alignSelf: "flex-end", paddingVertical: 2, paddingHorizontal: 5,
|
|
1048
|
+
position: "absolute", borderRadius: 10, backgroundColor: theme.palette.getAccent500("dark"), zIndex: 1, bottom: 5, right: 5,
|
|
1049
|
+
}
|
|
1050
|
+
:
|
|
1051
|
+
{ flexDirection: "row", justifyContent: bubbleAlignment === "right" ? "flex-end" : "flex-start", alignSelf: "flex-end", padding: 5 }
|
|
1052
|
+
]}>
|
|
1053
|
+
<CometChatDate timeStamp={((item.getDeletedAt() || item.getReadAt() || item.getDeliveredAt() || item.getSentAt()) * 1000) || getSentAtTimestamp(item)} style={{ ...messageBubbleDateStyle, textFont: isAudioVideo ? theme.typography.caption3 : messageBubbleDateStyle.textFont }} pattern={"timeFormat"} customDateString={datePattern && datePattern(item)} dateAlignment="center"/>
|
|
1054
|
+
{(!(disableReceipt || hideReceipt) && alignment !== "leftAligned") && isSender ?
|
|
1055
|
+
<View style={{ marginLeft: 2, alignItems: "center", justifyContent: "center" }}>
|
|
1056
|
+
<CometChatReceipt receipt={messageState} deliveredIcon={deliveredIcon} readIcon={readIcon} sentIcon={sentIcon} waitIcon={waitIcon} errorIcon={errorIcon} style={{
|
|
1057
|
+
tintColor: (messageState === "READ" && item?.getType() === "text") ? theme.palette.getBackgroundColor() :
|
|
1058
|
+
messageState === "WAIT" ? theme?.palette?.getAccent400() : undefined,
|
|
1059
|
+
...(isAudioVideo ? { height: 8, width: 10 } : {})
|
|
1060
|
+
}}/>
|
|
1061
|
+
</View>
|
|
1062
|
+
:
|
|
1063
|
+
null}
|
|
1064
|
+
</View>;
|
|
1065
|
+
}, []);
|
|
1066
|
+
const getFooterView = useCallback((messageObject, alignment) => {
|
|
1067
|
+
let hasReaction = messageObject?.getReactions && messageObject?.getReactions() && messageObject?.getReactions().length > 0;
|
|
1068
|
+
return (<View style={{
|
|
1069
|
+
minHeight: hasReaction ? 27 : 0,
|
|
1070
|
+
}}>
|
|
1071
|
+
<CometChatReactions messageObject={messageObject} onReactionPress={(reaction, messageObject) => reactToMessage(reaction.getReaction(), messageObject)} onReactionLongPress={(reaction, messageObject) => onReactionLongPress(reaction.getReaction(), messageObject)} alignment={alignment} {...reactionsConfiguration}/>
|
|
1072
|
+
</View>);
|
|
1073
|
+
}, []);
|
|
1074
|
+
const onReactionLongPress = (emoji, messageObj) => {
|
|
1075
|
+
setSelectedMessage(messageObj);
|
|
1076
|
+
setSelectedEmoji(emoji);
|
|
1077
|
+
};
|
|
1078
|
+
const getAlignment = useCallback((item) => {
|
|
1079
|
+
if (item && item.getCategory() == MessageCategoryConstants.action)
|
|
1080
|
+
return "center";
|
|
1081
|
+
if (alignment == "standard" && (item.getSender()?.getUid() || item?.['sender']?.['uid']) == loggedInUser.current?.getUid())
|
|
1082
|
+
return "right";
|
|
1083
|
+
return "left";
|
|
1084
|
+
}, []);
|
|
1085
|
+
const openMessageInfo = (message) => {
|
|
1086
|
+
infoObject.current = message;
|
|
1087
|
+
setMessageInfo(true);
|
|
1088
|
+
setShowMessageOptions([]);
|
|
1089
|
+
};
|
|
1090
|
+
const openThreadView = (...params) => {
|
|
1091
|
+
if (onThreadRepliesPress) {
|
|
1092
|
+
onThreadRepliesPress(params[0], MessageView.bind(this, { message: params[0], isThreaded: true, showOptions: false }));
|
|
1093
|
+
}
|
|
1094
|
+
setShowMessageOptions([]);
|
|
1095
|
+
return onThreadRepliesPress;
|
|
1096
|
+
};
|
|
1097
|
+
const editMessage = (item) => {
|
|
1098
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, { message: item, status: messageStatus.inprogress });
|
|
1099
|
+
setShowMessageOptions([]);
|
|
1100
|
+
};
|
|
1101
|
+
const copyMessage = (item) => {
|
|
1102
|
+
let copyMessage = getPlainString(item['text'], item);
|
|
1103
|
+
Clipboard.setString(copyMessage);
|
|
1104
|
+
setShowMessageOptions([]);
|
|
1105
|
+
};
|
|
1106
|
+
const getThreadView = useCallback((item, alignment) => {
|
|
1107
|
+
let isThreaded = item.getReplyCount() > 0;
|
|
1108
|
+
let style = [{
|
|
1109
|
+
color: theme?.palette.getAccent900(),
|
|
1110
|
+
}, theme?.typography?.subtitle1];
|
|
1111
|
+
// let unreadReplyCount = item?.getUnreadReplyCount && item?.getUnreadReplyCount();
|
|
1112
|
+
return !isThreaded ? null :
|
|
1113
|
+
<TouchableOpacity onPress={() => openThreadView(item, null)} style={{
|
|
1114
|
+
flexDirection: "row",
|
|
1115
|
+
marginRight: 4,
|
|
1116
|
+
paddingHorizontal: 4,
|
|
1117
|
+
marginTop: 2,
|
|
1118
|
+
alignSelf: alignment === "right" ? "flex-end" : "flex-start",
|
|
1119
|
+
}}>
|
|
1120
|
+
{alignment === "left" && <Image style={{ resizeMode: "contain", tintColor: theme?.palette.getAccent600(), width: 30, height: 18 }} source={LeftArrowCurve}/>}
|
|
1121
|
+
<Text style={style}>{`${item.getReplyCount()} ${item.getReplyCount() > 1 ? localize("REPLIES") : localize("REPLY")}`}</Text>
|
|
1122
|
+
|
|
1123
|
+
{/** NOTE: uncomment below code when want unread count in thread view **/}
|
|
1124
|
+
{/* {alignment === "left" && !!unreadReplyCount &&
|
|
1125
|
+
<View style={{
|
|
1126
|
+
borderRadius: 10, marginLeft: 3,
|
|
1127
|
+
paddingHorizontal: 7,
|
|
1128
|
+
alignment: "center", justifyContent: "center",
|
|
1129
|
+
backgroundColor: theme?.palette?.getPrimary()
|
|
1130
|
+
}}>
|
|
1131
|
+
<Text style={[theme?.typography?.subtitle4,
|
|
1132
|
+
{
|
|
1133
|
+
color: theme?.palette?.getBackgroundColor(),
|
|
1134
|
+
textAlign: "center"
|
|
1135
|
+
}]}
|
|
1136
|
+
>{unreadReplyCount}</Text>
|
|
1137
|
+
</View>
|
|
1138
|
+
} */}
|
|
1139
|
+
{/* {alignment === "right" && !!unreadReplyCount &&
|
|
1140
|
+
<View style={{
|
|
1141
|
+
borderRadius: 10, marginRight: 3, paddingVertical: 2, paddingHorizontal: 6,
|
|
1142
|
+
backgroundColor: theme?.palette?.getPrimary()
|
|
1143
|
+
}}>
|
|
1144
|
+
<Text style={[theme?.typography?.subtitle4,
|
|
1145
|
+
{ color: theme?.palette?.getBackgroundColor() }]}
|
|
1146
|
+
>{unreadReplyCount}</Text>
|
|
1147
|
+
</View>
|
|
1148
|
+
} */}
|
|
1149
|
+
{/** NOTE: uncomment above code when want unread count in thread view **/}
|
|
1150
|
+
|
|
1151
|
+
{alignment === "right" && <Image style={[{ resizeMode: "contain", tintColor: theme?.palette.getAccent600(), width: 30, height: 18 },
|
|
1152
|
+
{
|
|
1153
|
+
transform: [{ scaleX: -1 }]
|
|
1154
|
+
}
|
|
1155
|
+
]} source={LeftArrowCurve}/>}
|
|
1156
|
+
</TouchableOpacity>;
|
|
1157
|
+
}, []);
|
|
1158
|
+
const privateMessage = (item) => {
|
|
1159
|
+
setShowMessageOptions([]);
|
|
1160
|
+
CometChat.getUser(item.getSender().getUid())
|
|
1161
|
+
.then((user) => {
|
|
1162
|
+
console.log({ user });
|
|
1163
|
+
CometChatUIEventHandler.emitUIEvent('openChat', { user, group });
|
|
1164
|
+
})
|
|
1165
|
+
.catch((e) => {
|
|
1166
|
+
onError && onError(e);
|
|
1167
|
+
});
|
|
1168
|
+
};
|
|
1169
|
+
const shareMedia = async (messageObject) => {
|
|
1170
|
+
let _plainString = getPlainString(messageObject?.getData()['text'] || "", messageObject);
|
|
1171
|
+
let textMessage = _plainString;
|
|
1172
|
+
let fileUrl = messageObject.getData()['url'];
|
|
1173
|
+
const getFileName = () => {
|
|
1174
|
+
if (!fileUrl)
|
|
1175
|
+
return "";
|
|
1176
|
+
return (fileUrl.substring(fileUrl.lastIndexOf("/") + 1, fileUrl.length)).replace(" ", "_");
|
|
1177
|
+
};
|
|
1178
|
+
let shareObj = {
|
|
1179
|
+
"message": textMessage,
|
|
1180
|
+
"type": messageObject["type"],
|
|
1181
|
+
"mediaName": getFileName(), // get File name
|
|
1182
|
+
"fileUrl": fileUrl || "", // get File url
|
|
1183
|
+
"mimeType": messageObject["type"] === "text" ? "" : messageObject?.getAttachment()?.getMimeType(), // get Mime Type
|
|
1184
|
+
};
|
|
1185
|
+
NativeModules.FileManager.shareMessage(shareObj, (callback) => {
|
|
1186
|
+
console.log("shareMessage Callback", callback);
|
|
1187
|
+
});
|
|
1188
|
+
};
|
|
1189
|
+
const getStyle = useCallback((item) => {
|
|
1190
|
+
let _style = new MessageBubbleStyle({
|
|
1191
|
+
..._messageBubbleStyle,
|
|
1192
|
+
backgroundColor: theme?.palette.getAccent50()
|
|
1193
|
+
});
|
|
1194
|
+
if (item.getCategory() == MessageCategoryConstants.interactive) {
|
|
1195
|
+
if (item.getType() === MessageTypeConstants.form || item.getType() === MessageTypeConstants.card) {
|
|
1196
|
+
_style.width = "100%";
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
else {
|
|
1200
|
+
_style.alignSelf = getAlignment(item) === "left" ? "flex-start" : "flex-end";
|
|
1201
|
+
}
|
|
1202
|
+
if ((item.getSender()?.getUid() || item?.['sender']?.['uid']) == loggedInUser.current?.['uid'])
|
|
1203
|
+
_style.backgroundColor = (alignment !== "leftAligned" && (item.getType() === MessageTypeConstants.text || item.getType() === MessageTypeConstants.meeting)) ? theme?.palette.getPrimary() : theme?.palette.getAccent50();
|
|
1204
|
+
if (item?.getDeletedBy()) {
|
|
1205
|
+
_style.backgroundColor = 'transparent';
|
|
1206
|
+
}
|
|
1207
|
+
return _style;
|
|
1208
|
+
}, []);
|
|
1209
|
+
const openOptionsForMessage = useCallback((item, template) => {
|
|
1210
|
+
let options = template?.options ? loggedInUser.current ? template.options(loggedInUser.current, item, group) : [] : [];
|
|
1211
|
+
let optionsWithPressHandling = options.map(option => {
|
|
1212
|
+
if (!option.onPress) {
|
|
1213
|
+
switch (option.id) {
|
|
1214
|
+
case MessageOptionConstants.messageInformation:
|
|
1215
|
+
option.onPress = openMessageInfo.bind(this, item);
|
|
1216
|
+
break;
|
|
1217
|
+
case MessageOptionConstants.replyInThread:
|
|
1218
|
+
option.onPress = openThreadView.bind(this, item);
|
|
1219
|
+
break;
|
|
1220
|
+
case MessageOptionConstants.deleteMessage:
|
|
1221
|
+
option.onPress = deleteMessage.bind(this, item);
|
|
1222
|
+
break;
|
|
1223
|
+
case MessageOptionConstants.editMessage:
|
|
1224
|
+
option.onPress = editMessage.bind(this, item);
|
|
1225
|
+
break;
|
|
1226
|
+
case MessageOptionConstants.copyMessage:
|
|
1227
|
+
option.onPress = copyMessage.bind(this, item);
|
|
1228
|
+
break;
|
|
1229
|
+
case MessageOptionConstants.sendMessagePrivately:
|
|
1230
|
+
option.onPress = privateMessage.bind(this, item);
|
|
1231
|
+
break;
|
|
1232
|
+
// case MessageOptionConstants.forwardMessage:
|
|
1233
|
+
// option.onPress = showForwardMessage.bind(this, item);
|
|
1234
|
+
// break
|
|
1235
|
+
case MessageOptionConstants.shareMessage:
|
|
1236
|
+
option.onPress = shareMedia.bind(this, item);
|
|
1237
|
+
break;
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
else {
|
|
1241
|
+
// If overriding `onPress`, make sure to pass `item` explicitly
|
|
1242
|
+
const customOnPress = option.onPress;
|
|
1243
|
+
option.onPress = () => {
|
|
1244
|
+
customOnPress(item);
|
|
1245
|
+
setShowMessageOptions([]);
|
|
1246
|
+
};
|
|
1247
|
+
}
|
|
1248
|
+
if (option.id === MessageOptionConstants.reactToMessage) {
|
|
1249
|
+
option.onPress = () => {
|
|
1250
|
+
if (option.CustomView) {
|
|
1251
|
+
let view = option.CustomView(item);
|
|
1252
|
+
setExtensionsComponent(() => view);
|
|
1253
|
+
}
|
|
1254
|
+
};
|
|
1255
|
+
}
|
|
1256
|
+
return option;
|
|
1257
|
+
});
|
|
1258
|
+
setShowMessageOptions(optionsWithPressHandling);
|
|
1259
|
+
}, []);
|
|
1260
|
+
const MessageView = useCallback((params) => {
|
|
1261
|
+
const { message, showOptions = true, isThreaded = false, currentIndex } = params;
|
|
1262
|
+
let hasTemplate = templatesMap.get(`${message.getCategory()}_${message.getType()}`);
|
|
1263
|
+
if (templates?.length > 0) {
|
|
1264
|
+
let customTemplate = templates.find(template => template.type == message.getType() && template.category == message.getCategory());
|
|
1265
|
+
if (customTemplate)
|
|
1266
|
+
hasTemplate = customTemplate;
|
|
1267
|
+
}
|
|
1268
|
+
if (hasTemplate) {
|
|
1269
|
+
if (hasTemplate.BubbleView)
|
|
1270
|
+
return hasTemplate.BubbleView(message);
|
|
1271
|
+
let bubbleAlignment = getAlignment(message);
|
|
1272
|
+
const onLongPress = () => {
|
|
1273
|
+
if (message.getDeletedBy() != null)
|
|
1274
|
+
return;
|
|
1275
|
+
setSelectedMessage(message);
|
|
1276
|
+
hasTemplate && openOptionsForMessage(message, hasTemplate);
|
|
1277
|
+
};
|
|
1278
|
+
return <TouchableOpacity activeOpacity={1} onLongPress={() => showOptions ? onLongPress() : undefined}>
|
|
1279
|
+
<CometChatMessageBubble id={`${message.getId()}`} LeadingView={() => !isThreaded ? getLeadingView(message) : null} HeaderView={hasTemplate.HeaderView ? hasTemplate.HeaderView?.bind(this, message, bubbleAlignment) : () => !isThreaded ? getHeaderView(message) : null} FooterView={hasTemplate.FooterView ? hasTemplate.FooterView?.bind(this, message, bubbleAlignment) : () => (disableReactions || isThreaded) ? null : getFooterView(message, bubbleAlignment)} alignment={isThreaded ? "left" : bubbleAlignment} ContentView={hasTemplate.ContentView?.bind(this, message, bubbleAlignment)} ThreadView={() => !isThreaded ? !message.getDeletedBy() ? getThreadView(message, bubbleAlignment) : null : null} BottomView={hasTemplate.BottomView && hasTemplate.BottomView?.bind(this, message, bubbleAlignment)} StatusInfoView={hasTemplate.StatusInfoView ? hasTemplate.StatusInfoView?.bind(this, message, bubbleAlignment) : () => getStatusInfoView(message, bubbleAlignment, currentIndex)} style={getStyle(message)}/>
|
|
1280
|
+
</TouchableOpacity>;
|
|
1281
|
+
}
|
|
1282
|
+
else {
|
|
1283
|
+
return null;
|
|
1284
|
+
}
|
|
1285
|
+
}, []);
|
|
1286
|
+
const getSentAtTimestamp = useCallback((item) => {
|
|
1287
|
+
return item.getSentAt() ? (item.getSentAt() * 1000) : Date.now();
|
|
1288
|
+
}, []);
|
|
1289
|
+
const reactToMessage = (emoji, messageObj) => {
|
|
1290
|
+
const msgObj = CommonUtils.clone(messageObj) || CommonUtils.clone(selectedMessage);
|
|
1291
|
+
const messageId = msgObj?.getId();
|
|
1292
|
+
const reactions = msgObj?.getReactions() || [];
|
|
1293
|
+
const emojiObject = reactions?.find((reaction) => {
|
|
1294
|
+
return reaction?.reaction == emoji;
|
|
1295
|
+
});
|
|
1296
|
+
if (emojiObject && emojiObject?.getReactedByMe()) {
|
|
1297
|
+
const updatedReactions = [];
|
|
1298
|
+
reactions.forEach((reaction) => {
|
|
1299
|
+
if (reaction?.getReaction() == emoji) {
|
|
1300
|
+
if (reaction?.getCount() === 1) {
|
|
1301
|
+
return;
|
|
1302
|
+
}
|
|
1303
|
+
else {
|
|
1304
|
+
reaction.setCount(reaction?.getCount() - 1);
|
|
1305
|
+
reaction.setReactedByMe(false);
|
|
1306
|
+
updatedReactions.push(reaction);
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
else {
|
|
1310
|
+
updatedReactions.push(reaction);
|
|
1311
|
+
}
|
|
1312
|
+
});
|
|
1313
|
+
const newMessageObj = CommonUtils.clone(msgObj);
|
|
1314
|
+
newMessageObj.setReactions(updatedReactions);
|
|
1315
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, { message: newMessageObj, status: messageStatus.success });
|
|
1316
|
+
CometChat.removeReaction(messageId, emoji).then((message) => {
|
|
1317
|
+
}).catch((error) => {
|
|
1318
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, { message: msgObj, status: messageStatus.success });
|
|
1319
|
+
console.log(error);
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
else {
|
|
1323
|
+
const updatedReactions = [];
|
|
1324
|
+
const reactionAvailable = reactions.find((reaction) => {
|
|
1325
|
+
return reaction?.getReaction() == emoji;
|
|
1326
|
+
});
|
|
1327
|
+
reactions.forEach((reaction) => {
|
|
1328
|
+
if (reaction?.getReaction() == emoji) {
|
|
1329
|
+
reaction.setCount(reaction?.getCount() + 1);
|
|
1330
|
+
reaction.setReactedByMe(true);
|
|
1331
|
+
updatedReactions.push(reaction);
|
|
1332
|
+
}
|
|
1333
|
+
else {
|
|
1334
|
+
updatedReactions.push(reaction);
|
|
1335
|
+
}
|
|
1336
|
+
});
|
|
1337
|
+
if (!reactionAvailable) {
|
|
1338
|
+
const react = new CometChat.ReactionCount(emoji, 1, true);
|
|
1339
|
+
updatedReactions.push(react);
|
|
1340
|
+
}
|
|
1341
|
+
const newMessageObj = CommonUtils.clone(msgObj);
|
|
1342
|
+
newMessageObj.setReactions(updatedReactions);
|
|
1343
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, { message: newMessageObj, status: messageStatus.success });
|
|
1344
|
+
CometChat.addReaction(messageId, emoji)
|
|
1345
|
+
.then((response) => {
|
|
1346
|
+
})
|
|
1347
|
+
.catch((error) => {
|
|
1348
|
+
console.log(error);
|
|
1349
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, { message: msgObj, status: messageStatus.success });
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
setShowMessageOptions([]);
|
|
1353
|
+
};
|
|
1354
|
+
const RenderMessageItem = useCallback(memo(function RenderMessageItem({ item, index }) {
|
|
1355
|
+
let seperatorView = null;
|
|
1356
|
+
const previousMessageDate = messagesContentListRef.current[index - 1] ? new Date(getSentAtTimestamp(messagesContentListRef.current[index - 1])) : null;
|
|
1357
|
+
const currentMessageDate = new Date(getSentAtTimestamp(item));
|
|
1358
|
+
const currentDate = isNaN(currentMessageDate.getDate()) ? undefined : `${currentMessageDate.getDate()}-${currentMessageDate.getMonth()}-${currentMessageDate.getFullYear()}`;
|
|
1359
|
+
const previousDate = `${previousMessageDate?.getDate()}-${previousMessageDate?.getMonth()}-${previousMessageDate?.getFullYear()}`;
|
|
1360
|
+
if (currentDate != undefined && previousDate !== currentDate) {
|
|
1361
|
+
seperatorView = (<View style={{ marginBottom: 10 }}>
|
|
1362
|
+
<CometChatDate timeStamp={getSentAtTimestamp(item)} pattern={"dayDateFormat"} style={_dateSeperatorStyle} customDateString={dateSeparatorPattern ? dateSeparatorPattern(item['sentAt']) : undefined} dateAlignment="center"/>
|
|
1363
|
+
</View>);
|
|
1364
|
+
}
|
|
1365
|
+
lastMessageDate.current = getSentAtTimestamp(item);
|
|
1366
|
+
return <React.Fragment key={index}>
|
|
1367
|
+
{seperatorView}
|
|
1368
|
+
<MessageView message={item} currentIndex={index}/>
|
|
1369
|
+
</React.Fragment>;
|
|
1370
|
+
}), []);
|
|
1371
|
+
const keyExtractor = useCallback((item) => `${item.id}_${item.muid}`, []);
|
|
1372
|
+
const itemSeperator = useCallback(() => <View style={{ height: 8 }}/>, []);
|
|
1373
|
+
const getEmptyTextView = useCallback(() => {
|
|
1374
|
+
if (EmptyStateView)
|
|
1375
|
+
return (<>
|
|
1376
|
+
<ScrollView contentContainerStyle={Style.msgContainerStyle}>
|
|
1377
|
+
<EmptyStateView />
|
|
1378
|
+
</ScrollView>
|
|
1379
|
+
</>);
|
|
1380
|
+
return (<>
|
|
1381
|
+
<ScrollView contentContainerStyle={Style.msgContainerStyle}>
|
|
1382
|
+
<View>
|
|
1383
|
+
<Text style={[
|
|
1384
|
+
Style.msgTxtStyle, {
|
|
1385
|
+
...(messageListStyle?.emptyStateTextFont),
|
|
1386
|
+
color: messageListStyle?.emptyStateTextColor
|
|
1387
|
+
}
|
|
1388
|
+
]}>
|
|
1389
|
+
{emptyStateText}
|
|
1390
|
+
</Text>
|
|
1391
|
+
</View>
|
|
1392
|
+
</ScrollView>
|
|
1393
|
+
{CustomListHeader && <CustomListHeader />}
|
|
1394
|
+
</>);
|
|
1395
|
+
}, []);
|
|
1396
|
+
const getErrorStateView = useCallback(() => {
|
|
1397
|
+
if (hideError)
|
|
1398
|
+
return null;
|
|
1399
|
+
if (ErrorStateView)
|
|
1400
|
+
return ErrorStateView(new CometChat.CometChatException({ message: "Something went wrong" }));
|
|
1401
|
+
return (<View style={Style.msgContainerStyle}>
|
|
1402
|
+
<Text style={[Style.msgTxtStyle, {
|
|
1403
|
+
...messageListStyle?.errorStateTextFont,
|
|
1404
|
+
color: messageListStyle?.errorStateTextColor
|
|
1405
|
+
}]}>
|
|
1406
|
+
{errorStateText}
|
|
1407
|
+
</Text>
|
|
1408
|
+
</View>);
|
|
1409
|
+
}, []);
|
|
1410
|
+
const getLoadingStateView = useCallback(() => {
|
|
1411
|
+
if (LoadingStateView)
|
|
1412
|
+
return <LoadingStateView />;
|
|
1413
|
+
return (<View style={Style.msgContainerStyle}>
|
|
1414
|
+
<ActivityIndicator size="large" color={_messageListStyle?.loadingIconTint}/>
|
|
1415
|
+
</View>);
|
|
1416
|
+
}, []);
|
|
1417
|
+
const handleScroll = (event) => {
|
|
1418
|
+
if (event.nativeEvent.contentOffset.y == 0) {
|
|
1419
|
+
getPreviousMessages();
|
|
1420
|
+
}
|
|
1421
|
+
scrollHandler(event);
|
|
1422
|
+
};
|
|
1423
|
+
const onContentSizeChange = useCallback((contentWidth, contentHeight) => {
|
|
1424
|
+
if (currentScrollPosition.current.y == 0 && currentScrollPosition.current.scrollViewHeight) {
|
|
1425
|
+
let diff = contentHeight - currentScrollPosition.current.scrollViewHeight;
|
|
1426
|
+
if (messagesLength.current > prevMessagesLength.current && diff > 0 && !(unreadCount > 0)) {
|
|
1427
|
+
messageListRef.current?.scrollTo({ y: diff, animated: false });
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
if (currentScrollPosition.current.scrollViewHeight) {
|
|
1431
|
+
if (!previousScrollPosition.current.scrollViewHeight) {
|
|
1432
|
+
previousScrollPosition.current.scrollViewHeight = contentHeight;
|
|
1433
|
+
}
|
|
1434
|
+
if (currentScrollPosition.current.scrollViewHeight !== contentHeight) {
|
|
1435
|
+
previousScrollPosition.current.scrollViewHeight = currentScrollPosition.current.scrollViewHeight;
|
|
1436
|
+
currentScrollPosition.current.scrollViewHeight = contentHeight;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
/**
|
|
1440
|
+
* If Keyboard is open, recalculate the scroll position when content size changes
|
|
1441
|
+
*/
|
|
1442
|
+
if (isKeyBoardVisible.current == true) {
|
|
1443
|
+
/**
|
|
1444
|
+
* WITHOUT the isAtBottom() check, the following will happen:
|
|
1445
|
+
* 1. nearToBottom() is true (which is up to 2 messages from bottom)
|
|
1446
|
+
* 2. A new message is received (or any event that changes the content size)
|
|
1447
|
+
but the UI issue is mainly with a new message
|
|
1448
|
+
* 3. Since the content size has increased, we are not nearToBotom() anymore
|
|
1449
|
+
and so the unread banner will be displayed to click and scroll to bottom
|
|
1450
|
+
* 4. If there's not isAtBottomCheck() below, `onKeyboardVisibilityChange()` runs
|
|
1451
|
+
to adjust for the change in content size and this triggers a scroll
|
|
1452
|
+
messageListRef.current.scrollTo({ y: scrollPos, animated: false })
|
|
1453
|
+
* 5. And the nearToBottom() is true again since we have accounted for the change
|
|
1454
|
+
in contentSize and the banner disappears and the list scrolls to the bottom
|
|
1455
|
+
*
|
|
1456
|
+
* The above breaks the UI!
|
|
1457
|
+
*/
|
|
1458
|
+
/**
|
|
1459
|
+
* Why not do this for isAtBottom() || !isNearBottom()?
|
|
1460
|
+
* - (isAtBottom() || !isNearBottom()) means notAtBottom() and notNearBottom()
|
|
1461
|
+
This means there's content under the keyboard but that's not the end.
|
|
1462
|
+
Everytime a new message is received contentSize will change and that will
|
|
1463
|
+
trigger a position recalculation and a scroll and the list will keep scrolling
|
|
1464
|
+
till we reach bottom (that is if we keep receiving messages).
|
|
1465
|
+
*
|
|
1466
|
+
*/
|
|
1467
|
+
if (isAtBottom()) {
|
|
1468
|
+
/**
|
|
1469
|
+
* Why is this required?
|
|
1470
|
+
* 1. Let's say the scroll is nearToBottom() and the keyboard is open
|
|
1471
|
+
* 2. User receives a new message and the content size changes.
|
|
1472
|
+
* 3. The Message List scrolls to the bottom since the scroll was nearToBottom()
|
|
1473
|
+
* 4. User closes the keyboard and the list scrolls back to the previous message
|
|
1474
|
+
* that was nearToBottom()
|
|
1475
|
+
* 5. The position to scroll back to needs to be recalculated since the contentSize
|
|
1476
|
+
has changed. Calling `onKeyboardVisibiltyChange()` does this.
|
|
1477
|
+
*
|
|
1478
|
+
*/
|
|
1479
|
+
onKeyboardVisibiltyChange(true, Keyboard_Height);
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
}, []);
|
|
1483
|
+
const modalCheck = () => {
|
|
1484
|
+
if (Platform.OS === 'ios') {
|
|
1485
|
+
return !!(showEmojiKeyboard && hasDismissed);
|
|
1486
|
+
}
|
|
1487
|
+
if (Platform.OS === 'android') {
|
|
1488
|
+
return showEmojiKeyboard;
|
|
1489
|
+
}
|
|
1490
|
+
return false;
|
|
1491
|
+
};
|
|
1492
|
+
const { height, width, backgroundColor, border, borderRadius, } = _messageListStyle;
|
|
1493
|
+
return (<View style={{
|
|
1494
|
+
height, width, backgroundColor, borderRadius, ...border,
|
|
1495
|
+
paddingStart: 8, paddingEnd: 8,
|
|
1496
|
+
}}>
|
|
1497
|
+
{listState == "loading" && messagesList.length == 0 ?
|
|
1498
|
+
getLoadingStateView() :
|
|
1499
|
+
listState == "error" ?
|
|
1500
|
+
getErrorStateView() :
|
|
1501
|
+
listState == "" ?
|
|
1502
|
+
messagesList.length == 0 ?
|
|
1503
|
+
getEmptyTextView() :
|
|
1504
|
+
<View style={{ height: "100%", width: "100%" }}>
|
|
1505
|
+
{HeaderView && <View style={[Style.stickyHeaderFooterStyle, { top: 0 }]}>
|
|
1506
|
+
<HeaderView group={group && group['guid']} user={user && user['uid']} id={{
|
|
1507
|
+
guid: group && group['guid'],
|
|
1508
|
+
uid: user && user['uid'],
|
|
1509
|
+
parentMessageId: parentMessageId
|
|
1510
|
+
}}/>
|
|
1511
|
+
</View>}
|
|
1512
|
+
{loadingMessages &&
|
|
1513
|
+
<View style={{ position: "absolute", alignSelf: "center" }}>
|
|
1514
|
+
<ActivityIndicator size="small" color={_messageListStyle.loadingIconTint}/>
|
|
1515
|
+
</View>}
|
|
1516
|
+
|
|
1517
|
+
<ScrollView ref={messageListRef} onScroll={handleScroll} scrollEventThrottle={16} // control how often the scroll event will be fired
|
|
1518
|
+
onLayout={() => {
|
|
1519
|
+
!currentScrollPosition.current.scrollViewHeight && messageListRef.current?.scrollToEnd({ animated: false });
|
|
1520
|
+
}} onContentSizeChange={onContentSizeChange}>
|
|
1521
|
+
|
|
1522
|
+
{messagesList?.length ? (messagesList
|
|
1523
|
+
// .slice(0)
|
|
1524
|
+
// .reverse()
|
|
1525
|
+
.map((item, index) => (<View key={keyExtractor(item)}>
|
|
1526
|
+
<RenderMessageItem item={item} index={index}/>
|
|
1527
|
+
{itemSeperator()}
|
|
1528
|
+
</View>))) : (getEmptyTextView())}
|
|
1529
|
+
</ScrollView>
|
|
1530
|
+
{CustomListHeader && <CustomListHeader />}
|
|
1531
|
+
{ongoingCallView}
|
|
1532
|
+
{FooterView && <View style={[Style.stickyHeaderFooterStyle, { bottom: 0 }]}>
|
|
1533
|
+
<FooterView group={group && group['guid']} user={user && user['uid']} id={{
|
|
1534
|
+
guid: group && group['guid'],
|
|
1535
|
+
uid: user && user['uid'],
|
|
1536
|
+
parentMessageId: parentMessageId
|
|
1537
|
+
}}/>
|
|
1538
|
+
</View>}
|
|
1539
|
+
</View> : null}
|
|
1540
|
+
{unreadCount > 0 ?
|
|
1541
|
+
<TouchableOpacity onPress={newMsgIndicatorPressed.bind(this)} style={Style.newMessageIndicatorStyle}>
|
|
1542
|
+
<Text style={[Style.newMessageIndicatorText]}>
|
|
1543
|
+
{newMessageIndicatorText ?
|
|
1544
|
+
newMessageIndicatorText :
|
|
1545
|
+
`${unreadCount} ${localize("NEW_MESSAGE")}`}
|
|
1546
|
+
</Text>
|
|
1547
|
+
<Image source={downArrowIcon} style={Style.newMessageIndicatorImage}/>
|
|
1548
|
+
</TouchableOpacity>
|
|
1549
|
+
:
|
|
1550
|
+
null}
|
|
1551
|
+
|
|
1552
|
+
<CometChatBottomSheet ref={bottomSheetRef} onClose={() => {
|
|
1553
|
+
if (ExtensionsComponent)
|
|
1554
|
+
setExtensionsComponent(null);
|
|
1555
|
+
setShowMessageOptions([]);
|
|
1556
|
+
infoObject.current = null;
|
|
1557
|
+
setMessageInfo(false);
|
|
1558
|
+
}} isOpen={showMessageOptions.length > 0 || Boolean(ExtensionsComponent) || messageInfo} sliderMaxHeight={Dimensions.get('window').height * 0.5} sliderMinHeight={Dimensions.get('window').height * 0.5} onDismiss={() => {
|
|
1559
|
+
setShowMessageOptions([]);
|
|
1560
|
+
if (Platform.OS === 'ios') {
|
|
1561
|
+
setHasDismissed(true);
|
|
1562
|
+
}
|
|
1563
|
+
}}>
|
|
1564
|
+
{ExtensionsComponent ? ExtensionsComponent :
|
|
1565
|
+
messageInfo && infoObject.current ?
|
|
1566
|
+
<CometChatMessageInformation message={infoObject.current} template={templatesMap.get(`${infoObject.current?.getCategory()}_${infoObject.current?.getType()}`)} sentIcon={sentIcon} deliveredIcon={deliveredIcon} readIcon={readIcon} {...messageInformationConfiguration} onBack={() => {
|
|
1567
|
+
infoObject.current = null;
|
|
1568
|
+
setMessageInfo(false);
|
|
1569
|
+
messageInformationConfiguration?.onBack && messageInformationConfiguration.onBack();
|
|
1570
|
+
}}/> :
|
|
1571
|
+
<View>
|
|
1572
|
+
{!disableReactions && <CometChatQuickReactions
|
|
1573
|
+
// quickReactions={quickReactions}
|
|
1574
|
+
onReactionPress={reactToMessage} onAddReactionPress={() => {
|
|
1575
|
+
setShowMessageOptions([]);
|
|
1576
|
+
setShowEmojiKeyboard(true);
|
|
1577
|
+
}} {...quickReactionConfiguration}/>}
|
|
1578
|
+
<View style={{
|
|
1579
|
+
maxHeight: (Dimensions.get('window').height * 0.5) - (disableReactions ? 0 : 100),
|
|
1580
|
+
minHeight: (Dimensions.get('window').height * 0.5) - (disableReactions ? 0 : 100),
|
|
1581
|
+
overflow: "scroll"
|
|
1582
|
+
}}>
|
|
1583
|
+
<CometChatActionSheet hideHeader={hideActionSheetHeader} actions={showMessageOptions} style={_actionStyle}/>
|
|
1584
|
+
</View>
|
|
1585
|
+
</View>}
|
|
1586
|
+
</CometChatBottomSheet>
|
|
1587
|
+
<CometChatBottomSheet isOpen={modalCheck()} onClose={() => {
|
|
1588
|
+
setShowEmojiKeyboard(false);
|
|
1589
|
+
if (Platform.OS === 'ios') {
|
|
1590
|
+
setHasDismissed(false);
|
|
1591
|
+
}
|
|
1592
|
+
}}>
|
|
1593
|
+
<CometChatEmojiKeyboard onClick={(item) => {
|
|
1594
|
+
setShowEmojiKeyboard(false);
|
|
1595
|
+
reactToMessage(item, selectedMessage);
|
|
1596
|
+
}} style={{
|
|
1597
|
+
height: (Dimensions.get('window').height * 0.5) - 54,
|
|
1598
|
+
...emojiKeyboardStyle
|
|
1599
|
+
}} theme={theme}/>
|
|
1600
|
+
</CometChatBottomSheet>
|
|
1601
|
+
|
|
1602
|
+
<CometChatBottomSheet isOpen={showReactionList} onClose={() => {
|
|
1603
|
+
setShowReactionList(false);
|
|
1604
|
+
setSelectedEmoji(undefined);
|
|
1605
|
+
}} sliderMaxHeight={Dimensions.get('window').height * 0.5} sliderMinHeight={Dimensions.get('window').height * 0.5}>
|
|
1606
|
+
<CometChatReactionList messageObject={selectedMessage} selectedReaction={selectedEmoji} {...reactionListConfiguration} onPress={(messageReaction, messageObject) => {
|
|
1607
|
+
if (reactionListConfiguration?.onPress) {
|
|
1608
|
+
reactionListConfiguration.onPress(messageReaction, messageObject);
|
|
1609
|
+
return;
|
|
1610
|
+
}
|
|
1611
|
+
reactToMessage(messageReaction?.getReaction(), messageObject);
|
|
1612
|
+
if (messageObject?.getReactions()?.length === 1 && messageObject?.getReactions()?.[0]?.['count'] == 1) {
|
|
1613
|
+
setShowReactionList(false);
|
|
1614
|
+
setSelectedEmoji(undefined);
|
|
1615
|
+
}
|
|
1616
|
+
}}/>
|
|
1617
|
+
</CometChatBottomSheet>
|
|
1618
|
+
</View>);
|
|
1619
|
+
}));
|
|
1620
|
+
//# sourceMappingURL=CometChatMessageList.js.map
|