@cometchat/chat-uikit-react-native 4.2.2 → 4.3.0
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/README.md +3 -3
- package/android/.gradle/7.4/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.4/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.idea/misc.xml +1 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/reactnativecometchatuikit/CometchatUiKitPackage.java +2 -1
- package/android/src/main/java/com/reactnativecometchatuikit/ReactVideoView.java +796 -0
- package/android/src/main/java/com/reactnativecometchatuikit/ReactVideoViewManager.java +172 -0
- package/android/src/main/java/com/scalablevideoview/BuildConfig.java +10 -0
- package/android/src/main/java/com/scalablevideoview/PivotPoint.java +13 -0
- package/android/src/main/java/com/scalablevideoview/ScalableType.java +34 -0
- package/android/src/main/java/com/scalablevideoview/ScalableVideoView.java +255 -0
- package/android/src/main/java/com/scalablevideoview/ScaleManager.java +188 -0
- package/android/src/main/java/com/scalablevideoview/Size.java +20 -0
- package/android/src/main/java/com/zipfile/APEZProvider.java +287 -0
- package/android/src/main/java/com/zipfile/APKExpansionSupport.java +81 -0
- package/android/src/main/java/com/zipfile/ZipResourceFile.java +428 -0
- package/android/src/main/res/values/attrs.xml +37 -0
- package/ios/Video/CCRCTVideo.h +67 -0
- package/ios/Video/CCRCTVideo.m +2031 -0
- package/ios/Video/CCRCTVideoManager.h +6 -0
- package/ios/Video/CCRCTVideoManager.m +133 -0
- package/ios/Video/CCRCTVideoPlayerViewController.h +20 -0
- package/ios/Video/CCRCTVideoPlayerViewController.m +43 -0
- package/ios/Video/CCRCTVideoPlayerViewControllerDelegate.h +7 -0
- package/ios/Video/UIView+FindUIViewController.h +15 -0
- package/ios/Video/UIView+FindUIViewController.m +21 -0
- package/ios/VideoCaching/RCTVideoCache.h +38 -0
- package/ios/VideoCaching/RCTVideoCache.m +174 -0
- package/ios/VideoPickerModule.h +7 -0
- package/ios/VideoPickerModule.mm +95 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.d.ts +43 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.js +41 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.js.map +1 -0
- package/lib/CometChatAddMembers/CometChatAddMembers.d.ts +10 -0
- package/lib/CometChatAddMembers/CometChatAddMembers.js +60 -0
- package/lib/CometChatAddMembers/CometChatAddMembers.js.map +1 -0
- package/lib/CometChatAddMembers/index.d.ts +3 -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 +43 -0
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js.map +1 -0
- package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +18 -0
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js +72 -0
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +1 -0
- package/lib/CometChatBannedMembers/index.d.ts +3 -0
- package/lib/CometChatBannedMembers/index.js +4 -0
- package/lib/CometChatBannedMembers/index.js.map +1 -0
- package/lib/CometChatBannedMembers/resources/index.d.ts +3 -0
- package/lib/CometChatBannedMembers/resources/index.js +3 -0
- package/lib/CometChatBannedMembers/resources/index.js.map +1 -0
- package/lib/CometChatContacts/CometChatContacts.d.ts +75 -0
- package/lib/CometChatContacts/CometChatContacts.js +84 -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 +4 -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 +199 -0
- package/lib/CometChatConversations/CometChatConversations.js +643 -0
- package/lib/CometChatConversations/CometChatConversations.js.map +1 -0
- package/lib/CometChatConversations/ConversationsConfiguration.d.ts +96 -0
- package/lib/CometChatConversations/ConversationsConfiguration.js +87 -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 +4 -0
- package/lib/CometChatConversations/index.js +5 -0
- package/lib/CometChatConversations/index.js.map +1 -0
- package/lib/CometChatConversations/resources/index.d.ts +14 -0
- package/lib/CometChatConversations/resources/index.js +15 -0
- package/lib/CometChatConversations/resources/index.js.map +1 -0
- package/lib/CometChatConversations/style.d.ts +61 -0
- package/lib/CometChatConversations/style.js +63 -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 +2 -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 +3 -0
- package/lib/CometChatConversationsWithMessages/resources/index.js.map +1 -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 +98 -0
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js +196 -0
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js.map +1 -0
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.d.ts +14 -0
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js +15 -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 +3 -0
- package/lib/CometChatCreateGroup/index.js +4 -0
- package/lib/CometChatCreateGroup/index.js.map +1 -0
- package/lib/CometChatCreateGroup/resources/index.d.ts +5 -0
- package/lib/CometChatCreateGroup/resources/index.js +9 -0
- package/lib/CometChatCreateGroup/resources/index.js.map +1 -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 +405 -0
- package/lib/CometChatDetails/CometChatDetails.js.map +1 -0
- package/lib/CometChatDetails/DetailsConfiguration.d.ts +36 -0
- package/lib/CometChatDetails/DetailsConfiguration.js +26 -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 +3 -0
- package/lib/CometChatDetails/index.js +4 -0
- package/lib/CometChatDetails/index.js.map +1 -0
- package/lib/CometChatDetails/listners.d.ts +20 -0
- package/lib/CometChatDetails/listners.js +57 -0
- package/lib/CometChatDetails/listners.js.map +1 -0
- package/lib/CometChatDetails/resources/index.d.ts +7 -0
- package/lib/CometChatDetails/resources/index.js +13 -0
- package/lib/CometChatDetails/resources/index.js.map +1 -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 +360 -0
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -0
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.d.ts +63 -0
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js +59 -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 +4 -0
- package/lib/CometChatGroupMembers/index.js +5 -0
- package/lib/CometChatGroupMembers/index.js.map +1 -0
- package/lib/CometChatGroupMembers/resources/index.d.ts +5 -0
- package/lib/CometChatGroupMembers/resources/index.js +6 -0
- package/lib/CometChatGroupMembers/resources/index.js.map +1 -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 +322 -0
- package/lib/CometChatGroups/CometChatGroups.js.map +1 -0
- package/lib/CometChatGroups/GroupsConfiguration.d.ts +74 -0
- package/lib/CometChatGroups/GroupsConfiguration.js +72 -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 +4 -0
- package/lib/CometChatGroups/index.js +5 -0
- package/lib/CometChatGroups/index.js.map +1 -0
- package/lib/CometChatGroups/resources/index.d.ts +10 -0
- package/lib/CometChatGroups/resources/index.js +11 -0
- package/lib/CometChatGroups/resources/index.js.map +1 -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 +172 -0
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -0
- package/lib/CometChatGroupsWithMessages/index.d.ts +2 -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 +3 -0
- package/lib/CometChatGroupsWithMessages/resources/index.js.map +1 -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 +111 -0
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js +96 -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 +16 -0
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/index.d.ts +3 -0
- package/lib/CometChatJoinProtectedGroup/index.js +4 -0
- package/lib/CometChatJoinProtectedGroup/index.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/resources/index.d.ts +4 -0
- package/lib/CometChatJoinProtectedGroup/resources/index.js +7 -0
- package/lib/CometChatJoinProtectedGroup/resources/index.js.map +1 -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 +269 -0
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +571 -0
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.d.ts +47 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js +34 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js.map +1 -0
- package/lib/CometChatMessageComposer/index.d.ts +3 -0
- package/lib/CometChatMessageComposer/index.js +4 -0
- package/lib/CometChatMessageComposer/index.js.map +1 -0
- package/lib/CometChatMessageComposer/resources/index.d.ts +10 -0
- package/lib/CometChatMessageComposer/resources/index.js +19 -0
- package/lib/CometChatMessageComposer/resources/index.js.map +1 -0
- package/lib/CometChatMessageComposer/styles.d.ts +28 -0
- package/lib/CometChatMessageComposer/styles.js +30 -0
- package/lib/CometChatMessageComposer/styles.js.map +1 -0
- package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +150 -0
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +220 -0
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -0
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.d.ts +37 -0
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js +27 -0
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js.map +1 -0
- package/lib/CometChatMessageHeader/index.d.ts +3 -0
- package/lib/CometChatMessageHeader/index.js +4 -0
- package/lib/CometChatMessageHeader/index.js.map +1 -0
- package/lib/CometChatMessageHeader/listners.d.ts +27 -0
- package/lib/CometChatMessageHeader/listners.js +50 -0
- package/lib/CometChatMessageHeader/listners.js.map +1 -0
- package/lib/CometChatMessageHeader/resources/index.d.ts +5 -0
- package/lib/CometChatMessageHeader/resources/index.js +9 -0
- package/lib/CometChatMessageHeader/resources/index.js.map +1 -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 +36 -0
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js +173 -0
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +1 -0
- package/lib/CometChatMessageInformation/MessageInformationConfiguration.d.ts +3 -0
- package/lib/CometChatMessageInformation/MessageInformationConfiguration.js +2 -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 +4 -0
- package/lib/CometChatMessageInformation/index.js +3 -0
- package/lib/CometChatMessageInformation/index.js.map +1 -0
- package/lib/CometChatMessageInformation/resources/index.d.ts +2 -0
- package/lib/CometChatMessageInformation/resources/index.js +3 -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 +75 -0
- package/lib/CometChatMessageList/CometChatMessageList.js +1047 -0
- package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -0
- package/lib/CometChatMessageList/MessageListConfiguration.d.ts +101 -0
- package/lib/CometChatMessageList/MessageListConfiguration.js +37 -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 +4 -0
- package/lib/CometChatMessageList/index.js +5 -0
- package/lib/CometChatMessageList/index.js.map +1 -0
- package/lib/CometChatMessageList/resources/index.d.ts +6 -0
- package/lib/CometChatMessageList/resources/index.js +7 -0
- package/lib/CometChatMessageList/resources/index.js.map +1 -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 +200 -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 +25 -0
- package/lib/CometChatMessages/MessagesConfiguration.js.map +1 -0
- package/lib/CometChatMessages/index.d.ts +4 -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 +3 -0
- package/lib/CometChatMessages/resources/index.js.map +1 -0
- package/lib/CometChatMessages/style.d.ts +21 -0
- package/lib/CometChatMessages/style.js +23 -0
- package/lib/CometChatMessages/style.js.map +1 -0
- package/lib/CometChatTabs/CometChatTabs.d.ts +11 -0
- package/lib/CometChatTabs/CometChatTabs.js +113 -0
- package/lib/CometChatTabs/CometChatTabs.js.map +1 -0
- package/lib/CometChatTabs/CometChatTabsStyle.d.ts +16 -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 +4 -0
- package/lib/CometChatTabs/index.js +4 -0
- package/lib/CometChatTabs/index.js.map +1 -0
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.d.ts +90 -0
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js +139 -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 +18 -0
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js +16 -0
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js.map +1 -0
- package/lib/CometChatThreadedMessages/index.d.ts +3 -0
- package/lib/CometChatThreadedMessages/index.js +4 -0
- package/lib/CometChatThreadedMessages/index.js.map +1 -0
- package/lib/CometChatThreadedMessages/resources/index.d.ts +8 -0
- package/lib/CometChatThreadedMessages/resources/index.js +15 -0
- package/lib/CometChatThreadedMessages/resources/index.js.map +1 -0
- package/lib/CometChatThreadedMessages/style.d.ts +28 -0
- package/lib/CometChatThreadedMessages/style.js +26 -0
- package/lib/CometChatThreadedMessages/style.js.map +1 -0
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +41 -0
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js +58 -0
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js.map +1 -0
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.d.ts +41 -0
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js +37 -0
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js.map +1 -0
- package/lib/CometChatTransferOwnership/index.d.ts +3 -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 +64 -0
- package/lib/CometChatUsers/CometChatUsers.js.map +1 -0
- package/lib/CometChatUsers/UsersConfiguration.d.ts +43 -0
- package/lib/CometChatUsers/UsersConfiguration.js +41 -0
- package/lib/CometChatUsers/UsersConfiguration.js.map +1 -0
- package/lib/CometChatUsers/index.d.ts +3 -0
- package/lib/CometChatUsers/index.js +4 -0
- package/lib/CometChatUsers/index.js.map +1 -0
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.d.ts +11 -0
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js +89 -0
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -0
- package/lib/CometChatUsersWithMessages/index.d.ts +2 -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 +9 -0
- package/lib/calls/CallEvents.js +10 -0
- package/lib/calls/CallEvents.js.map +1 -0
- package/lib/calls/CallUtils.d.ts +5 -0
- package/lib/calls/CallUtils.js +60 -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 +31 -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 +157 -0
- package/lib/calls/CallingExtentionDecorator.js.map +1 -0
- package/lib/calls/CallingPackage.d.ts +4 -0
- package/lib/calls/CallingPackage.js +7 -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 +4 -0
- package/lib/calls/CometChatCallBubble/index.js +5 -0
- package/lib/calls/CometChatCallBubble/index.js.map +1 -0
- package/lib/calls/CometChatCallBubble/resources/index.d.ts +4 -0
- package/lib/calls/CometChatCallBubble/resources/index.js +5 -0
- package/lib/calls/CometChatCallBubble/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallBubble/styles.d.ts +20 -0
- package/lib/calls/CometChatCallBubble/styles.js +22 -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 +198 -0
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +1 -0
- package/lib/calls/CometChatCallButtons/index.d.ts +4 -0
- package/lib/calls/CometChatCallButtons/index.js +4 -0
- package/lib/calls/CometChatCallButtons/index.js.map +1 -0
- package/lib/calls/CometChatCallButtons/resources/index.d.ts +3 -0
- package/lib/calls/CometChatCallButtons/resources/index.js +4 -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/CometChatCallDetails/CallDetailsConfiguration.d.ts +54 -0
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js +31 -0
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.d.ts +20 -0
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.js +27 -0
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.js.map +1 -0
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.d.ts +1 -0
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.js +137 -0
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.js.map +1 -0
- package/lib/calls/CometChatCallDetails/index.d.ts +3 -0
- package/lib/calls/CometChatCallDetails/index.js +4 -0
- package/lib/calls/CometChatCallDetails/index.js.map +1 -0
- package/lib/calls/CometChatCallDetails/resources/index.d.ts +2 -0
- package/lib/calls/CometChatCallDetails/resources/index.js +3 -0
- package/lib/calls/CometChatCallDetails/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallDetails/style.d.ts +12 -0
- package/lib/calls/CometChatCallDetails/style.js +14 -0
- package/lib/calls/CometChatCallDetails/style.js.map +1 -0
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.d.ts +86 -0
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js +39 -0
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.d.ts +13 -0
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.js +20 -0
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.js.map +1 -0
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.d.ts +1 -0
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.js +250 -0
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.js.map +1 -0
- package/lib/calls/CometChatCallHistory/index.d.ts +3 -0
- package/lib/calls/CometChatCallHistory/index.js +4 -0
- package/lib/calls/CometChatCallHistory/index.js.map +1 -0
- package/lib/calls/CometChatCallHistory/resources/index.d.ts +8 -0
- package/lib/calls/CometChatCallHistory/resources/index.js +9 -0
- package/lib/calls/CometChatCallHistory/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallHistory/style.d.ts +21 -0
- package/lib/calls/CometChatCallHistory/style.js +23 -0
- package/lib/calls/CometChatCallHistory/style.js.map +1 -0
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.d.ts +1 -0
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js +30 -0
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js.map +1 -0
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.d.ts +6 -0
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js +2 -0
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.d.ts +2 -0
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js +2 -0
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js.map +1 -0
- package/lib/calls/CometChatCallHistoryWithDetails/index.d.ts +3 -0
- package/lib/calls/CometChatCallHistoryWithDetails/index.js +2 -0
- package/lib/calls/CometChatCallHistoryWithDetails/index.js.map +1 -0
- package/lib/calls/CometChatCallHistoryWithDetails/style.d.ts +8 -0
- package/lib/calls/CometChatCallHistoryWithDetails/style.js +10 -0
- package/lib/calls/CometChatCallHistoryWithDetails/style.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +21 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +160 -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 +3 -0
- package/lib/calls/CometChatIncomingCall/index.js +4 -0
- package/lib/calls/CometChatIncomingCall/index.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/resources/index.d.ts +5 -0
- package/lib/calls/CometChatIncomingCall/resources/index.js +6 -0
- package/lib/calls/CometChatIncomingCall/resources/index.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/styles.d.ts +9 -0
- package/lib/calls/CometChatIncomingCall/styles.js +11 -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 +41 -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 +3 -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 +149 -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 +3 -0
- package/lib/calls/CometChatOutgoingCall/index.js +4 -0
- package/lib/calls/CometChatOutgoingCall/index.js.map +1 -0
- package/lib/calls/CometChatOutgoingCall/resources/index.d.ts +2 -0
- package/lib/calls/CometChatOutgoingCall/resources/index.js +3 -0
- package/lib/calls/CometChatOutgoingCall/resources/index.js.map +1 -0
- package/lib/calls/index.d.ts +12 -0
- package/lib/calls/index.js +13 -0
- package/lib/calls/index.js.map +1 -0
- package/lib/calls/resources/index.d.ts +3 -0
- package/lib/calls/resources/index.js +4 -0
- package/lib/calls/resources/index.js.map +1 -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 +44 -0
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js +61 -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 +3 -0
- package/lib/extensions/CollaborativeBubble/resources/index.js.map +1 -0
- package/lib/extensions/CollaborativeBubble/styles.d.ts +33 -0
- package/lib/extensions/CollaborativeBubble/styles.js +72 -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 +129 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +1 -0
- package/lib/extensions/CollaborativeDocument/index.d.ts +5 -0
- package/lib/extensions/CollaborativeDocument/index.js +6 -0
- package/lib/extensions/CollaborativeDocument/index.js.map +1 -0
- package/lib/extensions/CollaborativeDocument/resources/index.d.ts +2 -0
- package/lib/extensions/CollaborativeDocument/resources/index.js +5 -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 +135 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/index.d.ts +5 -0
- package/lib/extensions/CollaborativeWhiteboard/index.js +6 -0
- package/lib/extensions/CollaborativeWhiteboard/index.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/index.d.ts +2 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/index.js +5 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/index.js.map +1 -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 +93 -0
- package/lib/extensions/ImageModeration/ImageModerationFilter.js.map +1 -0
- package/lib/extensions/ImageModeration/index.d.ts +4 -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 +3 -0
- package/lib/extensions/ImageModeration/resources/index.js.map +1 -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 +34 -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 +6 -0
- package/lib/extensions/LinkPreview/index.js +6 -0
- package/lib/extensions/LinkPreview/index.js.map +1 -0
- package/lib/extensions/LinkPreview/resources/index.d.ts +2 -0
- package/lib/extensions/LinkPreview/resources/index.js +3 -0
- package/lib/extensions/LinkPreview/resources/index.js.map +1 -0
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.d.ts +22 -0
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js +69 -0
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js.map +1 -0
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +21 -0
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +152 -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 +4 -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 +5 -0
- package/lib/extensions/MessageTranslation/resources/index.js.map +1 -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 +132 -0
- package/lib/extensions/Polls/Polls.js +218 -0
- package/lib/extensions/Polls/Polls.js.map +1 -0
- package/lib/extensions/Polls/PollsBubble.d.ts +83 -0
- package/lib/extensions/Polls/PollsBubble.js +202 -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 +21 -0
- package/lib/extensions/Polls/PollsDecorator.js +103 -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 +4 -0
- package/lib/extensions/Polls/index.js +4 -0
- package/lib/extensions/Polls/index.js.map +1 -0
- package/lib/extensions/Polls/resources/index.d.ts +7 -0
- package/lib/extensions/Polls/resources/index.js +13 -0
- package/lib/extensions/Polls/resources/index.js.map +1 -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/Reactions/CometChatMessageReactions/CometChatMessageReactions.d.ts +22 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js +203 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js.map +1 -0
- package/{src/extensions/Reactions/CometChatMessageReactions/index.ts → lib/extensions/Reactions/CometChatMessageReactions/index.d.ts} +0 -1
- package/lib/extensions/Reactions/CometChatMessageReactions/index.js +3 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/index.js.map +1 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/style.d.ts +40 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/style.js +42 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/style.js.map +1 -0
- package/lib/extensions/Reactions/ReactionsDecorator.d.ts +23 -0
- package/lib/extensions/Reactions/ReactionsDecorator.js +113 -0
- package/lib/extensions/Reactions/ReactionsDecorator.js.map +1 -0
- package/lib/extensions/Reactions/ReactionsExtension.d.ts +14 -0
- package/lib/extensions/Reactions/ReactionsExtension.js +28 -0
- package/lib/extensions/Reactions/ReactionsExtension.js.map +1 -0
- package/{src/extensions/Reactions/index.ts → lib/extensions/Reactions/index.d.ts} +0 -1
- package/lib/extensions/Reactions/index.js +4 -0
- package/lib/extensions/Reactions/index.js.map +1 -0
- package/lib/extensions/Reactions/resources/index.d.ts +3 -0
- package/lib/extensions/Reactions/resources/index.js +3 -0
- package/lib/extensions/Reactions/resources/index.js.map +1 -0
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.d.ts +14 -0
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +95 -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 +27 -0
- package/lib/extensions/SmartReplies/SmartRepliesView.js +152 -0
- package/lib/extensions/SmartReplies/SmartRepliesView.js.map +1 -0
- package/lib/extensions/SmartReplies/index.d.ts +3 -0
- package/lib/extensions/SmartReplies/index.js +4 -0
- package/lib/extensions/SmartReplies/index.js.map +1 -0
- package/lib/extensions/SmartReplies/resources/index.d.ts +3 -0
- package/lib/extensions/SmartReplies/resources/index.js +5 -0
- package/lib/extensions/SmartReplies/resources/index.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +33 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js +90 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.d.ts +17 -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 +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js +61 -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 +108 -0
- package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +1 -0
- package/lib/extensions/Stickers/index.d.ts +5 -0
- package/lib/extensions/Stickers/index.js +5 -0
- package/lib/extensions/Stickers/index.js.map +1 -0
- package/lib/extensions/Stickers/resources/index.d.ts +2 -0
- package/lib/extensions/Stickers/resources/index.js +3 -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 +37 -0
- package/lib/extensions/TextModeration/TextModerationExtension.js.map +1 -0
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +14 -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 +4 -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 +64 -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 +2 -0
- package/lib/extensions/ThumbnailGeneration/index.js +3 -0
- package/lib/extensions/ThumbnailGeneration/index.js.map +1 -0
- package/lib/extensions/index.d.ts +13 -0
- package/lib/extensions/index.js +14 -0
- package/lib/extensions/index.js.map +1 -0
- package/lib/index.d.ts +26 -0
- package/lib/index.js +53 -0
- package/lib/index.js.map +1 -0
- package/lib/shared/CometChatContext.d.ts +4 -0
- package/lib/shared/CometChatContext.js +30 -0
- package/lib/shared/CometChatContext.js.map +1 -0
- package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +26 -0
- package/lib/shared/CometChatUiKit/CometChatUIKit.js +195 -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 +13 -0
- package/lib/shared/CometChatUiKit/UIKitSettings.js +15 -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/index.d.ts +9 -0
- package/lib/shared/assets/images/index.js +17 -0
- package/lib/shared/assets/images/index.js.map +1 -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 +14 -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 +6 -0
- package/lib/shared/base/index.js +6 -0
- package/lib/shared/base/index.js.map +1 -0
- package/lib/shared/constants/UIKitConstants.d.ts +285 -0
- package/lib/shared/constants/UIKitConstants.js +304 -0
- package/lib/shared/constants/UIKitConstants.js.map +1 -0
- package/lib/shared/events/CometChatMessageEvents/index.d.ts +43 -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 +310 -0
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -0
- package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +184 -0
- package/lib/shared/events/CometChatUIEventHandler/Listener.js +270 -0
- package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -0
- package/lib/shared/events/CometChatUIEvents.d.ts +17 -0
- package/lib/shared/events/CometChatUIEvents.js +19 -0
- package/lib/shared/events/CometChatUIEvents.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 +11 -0
- package/lib/shared/events/messages.js +13 -0
- package/lib/shared/events/messages.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 +49 -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 +49 -0
- package/lib/shared/framework/DataSourceDecorator.js +121 -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 +14 -0
- package/lib/shared/framework/ExtensionsDataSource.js.map +1 -0
- package/lib/shared/framework/MessageDataSource.d.ts +72 -0
- package/lib/shared/framework/MessageDataSource.js +548 -0
- package/lib/shared/framework/MessageDataSource.js.map +1 -0
- package/lib/shared/framework/index.d.ts +6 -0
- package/lib/shared/framework/index.js +6 -0
- package/lib/shared/framework/index.js.map +1 -0
- package/lib/shared/framework/resources/index.d.ts +22 -0
- package/lib/shared/framework/resources/index.js +45 -0
- package/lib/shared/framework/resources/index.js.map +1 -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 +2 -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 +1 -0
- package/lib/shared/helper/useKeyboard.js +25 -0
- package/lib/shared/helper/useKeyboard.js.map +1 -0
- package/lib/shared/index.d.ts +14 -0
- package/lib/shared/index.js +28 -0
- package/lib/shared/index.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 +24 -0
- package/lib/shared/modals/CometChatMessageTemplate.js +20 -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/index.d.ts +6 -0
- package/lib/shared/modals/index.js +3 -0
- package/lib/shared/modals/index.js.map +1 -0
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +3681 -0
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js +164 -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 +270 -0
- package/lib/shared/resources/CometChatLocalize/resources/de/translation.json +270 -0
- package/lib/shared/resources/CometChatLocalize/resources/en/translation.json +270 -0
- package/lib/shared/resources/CometChatLocalize/resources/es/translation.json +270 -0
- package/lib/shared/resources/CometChatLocalize/resources/fr/translation.json +270 -0
- package/lib/shared/resources/CometChatLocalize/resources/hi/translation.json +270 -0
- package/lib/shared/resources/CometChatLocalize/resources/lt/translation.json +270 -0
- package/lib/shared/resources/CometChatLocalize/resources/ms/translation.json +270 -0
- package/lib/shared/resources/CometChatLocalize/resources/pt/translation.json +270 -0
- package/lib/shared/resources/CometChatLocalize/resources/ru/translation.json +270 -0
- package/lib/shared/resources/CometChatLocalize/resources/sv/translation.json +270 -0
- package/lib/shared/resources/CometChatLocalize/resources/zh/translation.json +270 -0
- package/lib/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +270 -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 +3 -0
- package/lib/shared/resources/CometChatSoundManager/index.js.map +1 -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/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 +118 -0
- package/lib/shared/resources/CometChatTheme/Palette.js +389 -0
- package/lib/shared/resources/CometChatTheme/Palette.js.map +1 -0
- package/lib/shared/resources/CometChatTheme/Typography.d.ts +80 -0
- package/lib/shared/resources/CometChatTheme/Typography.js +212 -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 +87 -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/index.d.ts +2 -0
- package/lib/shared/utils/CometChatLiveReactions/resources/index.js +3 -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 +12 -0
- package/lib/shared/utils/CometChatMessageHelper/index.js +42 -0
- package/lib/shared/utils/CometChatMessageHelper/index.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +49 -0
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +107 -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 +5 -0
- package/lib/shared/utils/CometChatMessagePreview/index.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/resources/index.d.ts +2 -0
- package/lib/shared/utils/CometChatMessagePreview/resources/index.js +3 -0
- package/lib/shared/utils/CometChatMessagePreview/resources/index.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/style.d.ts +9 -0
- package/lib/shared/utils/CometChatMessagePreview/style.js +71 -0
- package/lib/shared/utils/CometChatMessagePreview/style.js.map +1 -0
- package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +13 -0
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js +295 -0
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js.map +1 -0
- package/lib/shared/utils/DetailsUtils/resources/index.d.ts +9 -0
- package/lib/shared/utils/DetailsUtils/resources/index.js +17 -0
- package/lib/shared/utils/DetailsUtils/resources/index.js.map +1 -0
- package/lib/shared/utils/MessageUtils.d.ts +15 -0
- package/lib/shared/utils/MessageUtils.js +31 -0
- package/lib/shared/utils/MessageUtils.js.map +1 -0
- package/lib/shared/utils/conversationUtils.d.ts +7 -0
- package/lib/shared/utils/conversationUtils.js +73 -0
- package/lib/shared/utils/conversationUtils.js.map +1 -0
- package/lib/shared/utils/index.d.ts +6 -0
- package/lib/shared/utils/index.js +7 -0
- package/lib/shared/utils/index.js.map +1 -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 +43 -0
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js +49 -0
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +23 -0
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js +170 -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 +3 -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/index.d.ts +4 -0
- package/lib/shared/views/CometChatActionSheet/resources/index.js +7 -0
- package/lib/shared/views/CometChatActionSheet/resources/index.js.map +1 -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 +92 -0
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +1 -0
- package/lib/shared/views/CometChatAudioBubble/index.d.ts +3 -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 +4 -0
- package/lib/shared/views/CometChatAudioBubble/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatAudioBubble/style.d.ts +26 -0
- package/lib/shared/views/CometChatAudioBubble/style.js +28 -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 +25 -0
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js +88 -0
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js.map +1 -0
- package/lib/shared/views/CometChatAvatar/index.d.ts +4 -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/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 +23 -0
- package/lib/shared/views/CometChatBadge/CometChatBadge.js +48 -0
- package/lib/shared/views/CometChatBadge/CometChatBadge.js.map +1 -0
- package/lib/shared/views/CometChatBadge/index.d.ts +4 -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 +18 -0
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +99 -0
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js.map +1 -0
- package/lib/shared/views/CometChatBottomSheet/index.d.ts +2 -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 +50 -0
- package/lib/shared/views/CometChatBottomSheet/style.js +52 -0
- package/lib/shared/views/CometChatBottomSheet/style.js.map +1 -0
- package/lib/shared/views/CometChatButton/CometChatButton.d.ts +10 -0
- package/lib/shared/views/CometChatButton/CometChatButton.js +30 -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 +3 -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 +3 -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/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +25 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js +90 -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 +19 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js.map +1 -0
- package/lib/shared/views/CometChatConfirmDialog/index.d.ts +3 -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 +41 -0
- package/lib/shared/views/CometChatDate/CometChatDate.js +140 -0
- package/lib/shared/views/CometChatDate/CometChatDate.js.map +1 -0
- package/lib/shared/views/CometChatDate/DateConfiguration.d.ts +21 -0
- package/lib/shared/views/CometChatDate/DateConfiguration.js +19 -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 +4 -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/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +38 -0
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +153 -0
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.d.ts +16 -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 +21 -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 +20 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.d.ts +27 -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 +8218 -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/index.d.ts +9 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.js +10 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.js.map +1 -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 +66 -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 +3 -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/index.d.ts +3 -0
- package/lib/shared/views/CometChatFileBubble/resources/index.js +4 -0
- package/lib/shared/views/CometChatFileBubble/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatFileBubble/style.d.ts +42 -0
- package/lib/shared/views/CometChatFileBubble/style.js +45 -0
- package/lib/shared/views/CometChatFileBubble/style.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.d.ts +29 -0
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +52 -0
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.d.ts +10 -0
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js +13 -0
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/index.d.ts +3 -0
- package/lib/shared/views/CometChatImageBubble/index.js +4 -0
- package/lib/shared/views/CometChatImageBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatList/CometChatList.d.ts +86 -0
- package/lib/shared/views/CometChatList/CometChatList.js +443 -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 +2 -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/index.d.ts +7 -0
- package/lib/shared/views/CometChatList/resources/index.js +13 -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 +37 -0
- package/lib/shared/views/CometChatListItem/CometChatListItem.js +173 -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 +9 -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 +4 -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 +25 -0
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +151 -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 +3 -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 +21 -0
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js +41 -0
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +1 -0
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.d.ts +6 -0
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.js +13 -0
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatMessageBubble/index.d.ts +2 -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.js +1 -0
- package/lib/shared/views/CometChatMessageBubble/style.js.map +1 -0
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.d.ts +98 -0
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +50 -0
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +1 -0
- package/lib/shared/views/CometChatMessageInput/index.d.ts +2 -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/CometChatReceipt/CometChatReceipt.d.ts +30 -0
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js +48 -0
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.d.ts +30 -0
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js +39 -0
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.d.ts +3 -0
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.js +4 -0
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/index.d.ts +3 -0
- package/lib/shared/views/CometChatReceipt/index.js +4 -0
- package/lib/shared/views/CometChatReceipt/index.js.map +1 -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/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/CometChatStatusIndicator/CometChatStatusIndicator.d.ts +25 -0
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js +40 -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 +4 -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/CometChatTextBubble/CometChatTextBubble.d.ts +27 -0
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js +84 -0
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js.map +1 -0
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.d.ts +26 -0
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js +21 -0
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatTextBubble/index.d.ts +3 -0
- package/lib/shared/views/CometChatTextBubble/index.js +4 -0
- package/lib/shared/views/CometChatTextBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.d.ts +31 -0
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +54 -0
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.d.ts +16 -0
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +17 -0
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/index.d.ts +3 -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/index.d.ts +2 -0
- package/lib/shared/views/CometChatVideoBubble/resources/index.js +3 -0
- package/lib/shared/views/CometChatVideoBubble/resources/index.js.map +1 -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/SwipeRow/SwipeRow.d.ts +8 -0
- package/lib/shared/views/SwipeRow/SwipeRow.js +79 -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 +18 -0
- package/lib/shared/views/index.js +21 -0
- package/lib/shared/views/index.js.map +1 -0
- package/package.json +2 -2
- package/react-native-cometchat-ui-kit.podspec +24 -10
- package/src/CometChatConversations/CometChatConversations.tsx +0 -1
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +36 -15
- package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +9 -2
- package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +1 -1
- package/src/CometChatMessageList/CometChatMessageList.tsx +563 -173
- package/src/CometChatMessageList/MessageListConfiguration.ts +55 -4
- package/src/CometChatMessageList/resources/index.ts +5 -1
- package/src/CometChatMessageList/resources/leftarrowcurve.png +0 -0
- package/src/CometChatMessageList/resources/rightarrowcurve.png +0 -0
- package/src/CometChatMessages/CometChatMessages.tsx +1 -0
- package/src/CometChatThreadedMessages/CometChatThreadedMessages.tsx +4 -12
- package/src/CometChatThreadedMessages/style.ts +3 -1
- package/src/calls/CometChatCallBubble/styles.ts +2 -1
- package/src/calls/CometChatIncomingCall/CometChatIncomingCall.tsx +9 -9
- package/src/calls/CometChatOutgoingCall/CometChatOutgoingCall.tsx +80 -73
- package/src/extensions/CollaborativeBubble/styles.ts +2 -0
- package/src/extensions/index.ts +0 -4
- package/src/index.ts +53 -8
- package/src/shared/CometChatUiKit/CometChatUIKit.ts +0 -2
- package/src/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.ts +6 -0
- package/src/shared/events/CometChatUIEventHandler/Listener.ts +8 -0
- package/src/shared/events/ListenerInitializer.ts +6 -0
- package/src/shared/events/messages.ts +2 -0
- package/src/shared/framework/MessageDataSource.tsx +28 -24
- package/src/shared/index.ts +49 -1
- package/src/shared/libs/VideoPlayer/DRMType.js +6 -0
- package/src/shared/libs/VideoPlayer/FilterType.js +18 -0
- package/src/shared/libs/VideoPlayer/TextTrackType.js +5 -0
- package/src/shared/libs/VideoPlayer/Video.js +519 -0
- package/src/shared/libs/VideoPlayer/VideoResizeMode.js +5 -0
- package/src/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.tsx +43 -0
- package/src/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.tsx +16 -0
- package/src/shared/libs/VideoPlayerControls/OSSupport/index.tsx +1 -0
- package/src/shared/libs/VideoPlayerControls/VideoPlayer.tsx +511 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/back.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/back@2x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/back@3x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/bottom-vignette.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/bottom-vignette@2x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/bottom-vignette@3x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/error-icon.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/error-icon@2x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/error-icon@3x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/expand.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/expand@2x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/expand@3x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/forward.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/forward@2x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/forward@3x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/loader-icon.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/loader-icon@2x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/loader-icon@3x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/pause.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/pause@2x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/pause@3x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/play.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/play@2x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/play@3x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/rewind.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/rewind@2x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/rewind@3x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/shrink.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/shrink@2x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/shrink@3x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/top-vignette.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/top-vignette@2x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/top-vignette@3x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/volume.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/volume@2x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/assets/img/volume@3x.png +0 -0
- package/src/shared/libs/VideoPlayerControls/components/Back/Back.tsx +28 -0
- package/src/shared/libs/VideoPlayerControls/components/Back/index.ts +1 -0
- package/src/shared/libs/VideoPlayerControls/components/BottomControls.tsx +142 -0
- package/src/shared/libs/VideoPlayerControls/components/Control.tsx +45 -0
- package/src/shared/libs/VideoPlayerControls/components/Error/Error.tsx +22 -0
- package/src/shared/libs/VideoPlayerControls/components/Error/index.ts +1 -0
- package/src/shared/libs/VideoPlayerControls/components/Error/styles.ts +21 -0
- package/src/shared/libs/VideoPlayerControls/components/Fullscreen.tsx +36 -0
- package/src/shared/libs/VideoPlayerControls/components/Loader/Loader.tsx +15 -0
- package/src/shared/libs/VideoPlayerControls/components/Loader/index.ts +1 -0
- package/src/shared/libs/VideoPlayerControls/components/Loader/styles.ts +16 -0
- package/src/shared/libs/VideoPlayerControls/components/NullControl.tsx +7 -0
- package/src/shared/libs/VideoPlayerControls/components/Overlay.tsx +23 -0
- package/src/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.tsx +109 -0
- package/src/shared/libs/VideoPlayerControls/components/PlayPause/index.ts +1 -0
- package/src/shared/libs/VideoPlayerControls/components/PlayPause/styles.ts +21 -0
- package/src/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.tsx +47 -0
- package/src/shared/libs/VideoPlayerControls/components/Seekbar/index.ts +1 -0
- package/src/shared/libs/VideoPlayerControls/components/Seekbar/styles.ts +37 -0
- package/src/shared/libs/VideoPlayerControls/components/Timer/Timer.tsx +28 -0
- package/src/shared/libs/VideoPlayerControls/components/Timer/index.ts +1 -0
- package/src/shared/libs/VideoPlayerControls/components/Timer/styles.ts +12 -0
- package/src/shared/libs/VideoPlayerControls/components/Title.tsx +35 -0
- package/src/shared/libs/VideoPlayerControls/components/TopControls.tsx +110 -0
- package/src/shared/libs/VideoPlayerControls/components/Volume/Volume.tsx +37 -0
- package/src/shared/libs/VideoPlayerControls/components/Volume/index.ts +1 -0
- package/src/shared/libs/VideoPlayerControls/components/Volume/styles.ts +31 -0
- package/src/shared/libs/VideoPlayerControls/components/index.ts +14 -0
- package/src/shared/libs/VideoPlayerControls/components/styles.ts +30 -0
- package/src/shared/libs/VideoPlayerControls/hooks/index.ts +3 -0
- package/src/shared/libs/VideoPlayerControls/hooks/useAnimations.ts +68 -0
- package/src/shared/libs/VideoPlayerControls/hooks/useControlTimeout.tsx +67 -0
- package/src/shared/libs/VideoPlayerControls/hooks/usePanResponders.tsx +96 -0
- package/src/shared/libs/VideoPlayerControls/index.ts +4 -0
- package/src/shared/libs/VideoPlayerControls/styles.ts +19 -0
- package/src/shared/libs/VideoPlayerControls/types.ts +290 -0
- package/src/shared/libs/VideoPlayerControls/utils.ts +76 -0
- package/src/shared/modals/CometChatMessageTemplate.ts +113 -9
- package/src/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.ts +23 -21
- package/src/shared/resources/CometChatLocalize/resources/ar/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/de/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/en/translation.json +5 -3
- package/src/shared/resources/CometChatLocalize/resources/es/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/fr/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/hi/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/lt/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/ms/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/pt/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/ru/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/sv/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/zh/translation.json +3 -1
- package/src/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +3 -1
- package/src/shared/resources/CometChatTheme/Palette.ts +79 -40
- package/src/shared/resources/CometChatTheme/Typography.ts +18 -0
- package/src/shared/utils/CommonUtils.ts +45 -0
- package/src/shared/views/CometChatActionSheet/ActionSheetStyle.ts +3 -1
- package/src/shared/views/CometChatActionSheet/CometChatActionSheet.tsx +6 -6
- package/src/shared/views/CometChatAudioBubble/CometChatAudioBubble.tsx +28 -5
- package/src/shared/views/CometChatAudioBubble/style.ts +4 -2
- package/src/shared/views/CometChatAvatar/AvatarStyle.ts +1 -1
- package/src/shared/views/CometChatBottomSheet/CometChatBottomSheet.tsx +4 -3
- package/src/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.tsx +47 -31
- package/src/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.ts +5 -5
- package/src/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.ts +12 -13
- package/src/shared/views/CometChatFileBubble/CometChatFileBubble.tsx +52 -5
- package/src/shared/views/CometChatFileBubble/style.ts +4 -2
- package/src/shared/views/CometChatImageBubble/CometChatImageBubble.tsx +25 -2
- package/src/shared/views/CometChatList/CometChatList.tsx +2 -1
- package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +51 -2
- package/src/shared/views/CometChatQuickReactions/CometChatQuickReactions.tsx +76 -0
- package/src/shared/views/CometChatQuickReactions/QuickReactionsConfiguration.tsx +12 -0
- package/src/shared/views/CometChatQuickReactions/QuickReactionsStyle.tsx +35 -0
- package/src/shared/views/CometChatQuickReactions/index.ts +12 -0
- package/src/shared/views/CometChatReactions/CometChatReactions.tsx +166 -0
- package/src/shared/views/CometChatReactions/ReactionsConfiguration.tsx +12 -0
- package/src/shared/views/CometChatReactions/ReactionsStyle.tsx +43 -0
- package/src/shared/views/CometChatReactions/index.ts +12 -0
- package/src/{extensions/Reactions/CometChatMessageReactions → shared/views/CometChatReactions}/style.ts +7 -7
- package/src/shared/views/CometChatReactionsList/CometChatReactionsList.tsx +335 -0
- package/src/shared/views/CometChatReactionsList/ReactionsListConfiguration.tsx +14 -0
- package/src/shared/views/CometChatReactionsList/ReactionsListStyle.tsx +67 -0
- package/src/shared/views/CometChatReactionsList/index.ts +12 -0
- package/src/shared/views/CometChatReactionsList/resources/Spineer.png +0 -0
- package/src/shared/views/CometChatReactionsList/resources/index.ts +5 -0
- package/src/shared/views/CometChatReceipt/CometChatReceipt.tsx +21 -4
- package/src/shared/views/CometChatReceipt/MessageConfiguration.ts +12 -0
- package/src/shared/views/CometChatTextBubble/CometChatTextBubble.tsx +1 -1
- package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +78 -12
- package/src/shared/views/CometChatVideoBubble/VideoBubbleStyle.ts +52 -2
- package/src/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.tsx +134 -0
- package/src/shared/views/CometChatVideoPlayer/index.tsx +1 -0
- package/src/shared/views/index.ts +30 -0
- package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.idea/modules/android.iml +0 -18
- package/android/.idea/modules.xml +0 -8
- package/android/local.properties +0 -8
- package/src/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.tsx +0 -249
- package/src/extensions/Reactions/ReactionsDecorator.tsx +0 -164
- package/src/extensions/Reactions/ReactionsExtension.tsx +0 -48
- /package/{android/.gradle/7.4.2/gc.properties → lib/shared/views/CometChatMessageBubble/style.d.ts} +0 -0
- /package/src/{extensions/Reactions → shared/views/CometChatQuickReactions}/resources/AddReactions.png +0 -0
- /package/src/{extensions/Reactions → shared/views/CometChatQuickReactions}/resources/index.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React, { forwardRef, useEffect, useRef, useState, useImperativeHandle, useContext, useCallback } from "react";
|
|
1
|
+
import React, { forwardRef, useEffect, useRef, useState, useImperativeHandle, useContext, useCallback, memo, useLayoutEffect } from "react";
|
|
2
2
|
import { View, FlatList, Text, Image, TouchableOpacity, ActivityIndicator, Modal, SafeAreaView, NativeModules, ScrollView, Dimensions, Platform } from "react-native";
|
|
3
3
|
//@ts-ignore
|
|
4
4
|
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
5
|
-
import {
|
|
5
|
+
import { LeftArrowCurve, RightArrowCurve } from "./resources";
|
|
6
6
|
import { BaseStyle, BaseStyleInterface, CometChatContext, CometChatLiveReactions, CometChatUIKit, ImageType } from "../shared";
|
|
7
7
|
import { MessageBubbleStyle, MessageBubbleStyleInterface } from "../shared/views/CometChatMessageBubble/MessageBubbleStyle";
|
|
8
8
|
import { AvatarStyle, AvatarStyleInterface } from "../shared";
|
|
@@ -23,11 +23,16 @@ import { DateStyleInterface } from "../shared/views/CometChatDate/DateStyle";
|
|
|
23
23
|
import { CometChatContextType } from "../shared/base/Types";
|
|
24
24
|
import { CometChatUIEventHandler } from "../shared/events/CometChatUIEventHandler/CometChatUIEventHandler";
|
|
25
25
|
import { ActionSheetStylesInterface } from "../shared/views/CometChatActionSheet/ActionSheetStyle";
|
|
26
|
-
import Clipboard from "@react-native-
|
|
26
|
+
import Clipboard from "@react-native-clipboard/clipboard";
|
|
27
27
|
import { CometChatMessageInformation } from "../CometChatMessageInformation/CometChatMessageInformation";
|
|
28
28
|
// import { CometChatContacts, ForwardMessageConfigurationInterface } from "../CometChatContacts";
|
|
29
29
|
import { MessageInformationConfigurationInterface } from "../CometChatMessageInformation";
|
|
30
30
|
import { InteractiveMessageUtils } from "../shared/utils/InteractiveMessageUtils";
|
|
31
|
+
import { CometChatEmojiKeyboard, EmojiKeyboardStyle } from "../shared/views/CometChatEmojiKeyboard";
|
|
32
|
+
import { CometChatReactionsList, ReactionsListConfigurationInterface } from "../shared/views/CometChatReactionsList";
|
|
33
|
+
import { CometChatQuickReactions, QuickReactionsConfigurationInterface } from "../shared/views/CometChatQuickReactions";
|
|
34
|
+
import { CometChatReactions, ReactionsConfigurationInterface } from "../shared/views/CometChatReactions";
|
|
35
|
+
import { CommonUtils } from "../shared/utils/CommonUtils";
|
|
31
36
|
|
|
32
37
|
let templatesMap = new Map<string, CometChatMessageTemplate>();
|
|
33
38
|
|
|
@@ -72,7 +77,31 @@ export interface CometChatMessageListProps {
|
|
|
72
77
|
onError?: (e: CometChat.CometChatException) => void,
|
|
73
78
|
onBack?: () => void,
|
|
74
79
|
// forwardMessageConfiguration?: ForwardMessageConfigurationInterface,
|
|
75
|
-
messageInformationConfiguration?: MessageInformationConfigurationInterface
|
|
80
|
+
messageInformationConfiguration?: MessageInformationConfigurationInterface,
|
|
81
|
+
/**
|
|
82
|
+
* Hide the header of the action sheet
|
|
83
|
+
*/
|
|
84
|
+
hideActionSheetHeader?: boolean,
|
|
85
|
+
/**
|
|
86
|
+
* Message Reaction Configuration @ReactionsConfigurationInterface
|
|
87
|
+
*/
|
|
88
|
+
reactionsConfiguration?: ReactionsConfigurationInterface,
|
|
89
|
+
/**
|
|
90
|
+
* Message Reaction List Configuration @ReactionsListConfigurationInterface
|
|
91
|
+
*/
|
|
92
|
+
reactionsListConfiguration?: ReactionsListConfigurationInterface,
|
|
93
|
+
/**
|
|
94
|
+
* Quick Reaction Configuration @QuickReactionsConfigurationInterface
|
|
95
|
+
*/
|
|
96
|
+
quickReactionConfiguration?: QuickReactionsConfigurationInterface,
|
|
97
|
+
/**
|
|
98
|
+
* Emoji Keyboard style @EmojiKeyboardStyle
|
|
99
|
+
*/
|
|
100
|
+
emojiKeyboardStyle?: EmojiKeyboardStyle,
|
|
101
|
+
/**
|
|
102
|
+
* Disables the reactions functionality
|
|
103
|
+
*/
|
|
104
|
+
disableReactions?: boolean,
|
|
76
105
|
}
|
|
77
106
|
|
|
78
107
|
export interface CometChatMessageListActionsInterface {
|
|
@@ -85,7 +114,7 @@ export interface CometChatMessageListActionsInterface {
|
|
|
85
114
|
updateMessageReceipt: (message: CometChat.BaseMessage) => void
|
|
86
115
|
}
|
|
87
116
|
|
|
88
|
-
export const CometChatMessageList = forwardRef<
|
|
117
|
+
export const CometChatMessageList = memo(forwardRef<
|
|
89
118
|
CometChatMessageListActionsInterface,
|
|
90
119
|
CometChatMessageListProps>
|
|
91
120
|
((props: CometChatMessageListProps, ref) => {
|
|
@@ -95,11 +124,11 @@ export const CometChatMessageList = forwardRef<
|
|
|
95
124
|
user,
|
|
96
125
|
group,
|
|
97
126
|
EmptyStateView,
|
|
98
|
-
emptyStateText,
|
|
127
|
+
emptyStateText = localize("NO_MESSAGES_FOUND"),
|
|
99
128
|
ErrorStateView,
|
|
100
|
-
errorStateText,
|
|
129
|
+
errorStateText = localize("SOMETHING_WRONG"),
|
|
101
130
|
LoadingStateView,
|
|
102
|
-
disableReceipt,
|
|
131
|
+
disableReceipt = false,
|
|
103
132
|
disableSoundForMessages,
|
|
104
133
|
customSoundForMessages,
|
|
105
134
|
readIcon,
|
|
@@ -107,12 +136,12 @@ export const CometChatMessageList = forwardRef<
|
|
|
107
136
|
sentIcon,
|
|
108
137
|
waitIcon,
|
|
109
138
|
errorIcon,
|
|
110
|
-
alignment,
|
|
111
|
-
showAvatar,
|
|
139
|
+
alignment = "standard",
|
|
140
|
+
showAvatar = true,
|
|
112
141
|
datePattern,
|
|
113
|
-
timeStampAlignment,
|
|
142
|
+
timeStampAlignment = "bottom",
|
|
114
143
|
dateSeperatorPattern,
|
|
115
|
-
templates,
|
|
144
|
+
templates = [],
|
|
116
145
|
messageRequestBuilder,
|
|
117
146
|
newMessageIndicatorText,
|
|
118
147
|
scrollToBottomOnNewMessages,
|
|
@@ -127,7 +156,13 @@ export const CometChatMessageList = forwardRef<
|
|
|
127
156
|
onError,
|
|
128
157
|
onBack,
|
|
129
158
|
// forwardMessageConfiguration
|
|
130
|
-
messageInformationConfiguration
|
|
159
|
+
messageInformationConfiguration,
|
|
160
|
+
hideActionSheetHeader,
|
|
161
|
+
reactionsConfiguration,
|
|
162
|
+
disableReactions,
|
|
163
|
+
reactionsListConfiguration,
|
|
164
|
+
quickReactionConfiguration,
|
|
165
|
+
emojiKeyboardStyle,
|
|
131
166
|
} = props;
|
|
132
167
|
|
|
133
168
|
const callListenerId = "call_" + new Date().getTime();
|
|
@@ -138,26 +173,56 @@ export const CometChatMessageList = forwardRef<
|
|
|
138
173
|
const uiEventListenerHide = "uiEvent_hide_" + new Date().getTime();
|
|
139
174
|
const connectionListenerId = 'connectionListener_' + new Date().getTime();
|
|
140
175
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
176
|
+
useLayoutEffect(() => {
|
|
177
|
+
if (user) {
|
|
178
|
+
_defaultRequestBuilder = new CometChat.MessagesRequestBuilder()
|
|
179
|
+
.setLimit(30)
|
|
180
|
+
.setTags([])
|
|
181
|
+
.setUID(user["uid"]);
|
|
182
|
+
}
|
|
183
|
+
else if (group) {
|
|
184
|
+
_defaultRequestBuilder = new CometChat.MessagesRequestBuilder()
|
|
185
|
+
.setLimit(30)
|
|
186
|
+
.setTags([])
|
|
187
|
+
.setGUID(group["guid"]);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
_defaultRequestBuilder.setTypes(ChatConfigurator.dataSource.getAllMessageTypes())
|
|
191
|
+
_defaultRequestBuilder.setCategories(ChatConfigurator.dataSource.getAllMessageCategories())
|
|
192
|
+
|
|
193
|
+
//updating users request builder
|
|
194
|
+
let _updatedCustomRequestBuilder = _defaultRequestBuilder;
|
|
195
|
+
if (messageRequestBuilder) {
|
|
196
|
+
_updatedCustomRequestBuilder = messageRequestBuilder;
|
|
197
|
+
}
|
|
198
|
+
_updatedCustomRequestBuilder.hideReplies(true);
|
|
199
|
+
if (user)
|
|
200
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setUID(user["uid"])
|
|
201
|
+
if (group)
|
|
202
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setGUID(group["guid"])
|
|
203
|
+
if (parentMessageId)
|
|
204
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setParentMessageId(parseInt(parentMessageId));
|
|
205
|
+
let types = [], categories = [];
|
|
206
|
+
if (templates.length) {
|
|
207
|
+
types = templates.map(template => template.type);
|
|
208
|
+
categories = templates.map(template => template.category);
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
types = ChatConfigurator.dataSource.getAllMessageTypes();
|
|
212
|
+
categories = ChatConfigurator.dataSource.getAllMessageCategories();
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setTypes(types);
|
|
216
|
+
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setCategories(categories);
|
|
153
217
|
|
|
154
|
-
|
|
155
|
-
|
|
218
|
+
msgRequestBuilder.current = _updatedCustomRequestBuilder;
|
|
219
|
+
|
|
220
|
+
}, []);
|
|
156
221
|
|
|
157
222
|
const { theme } = useContext<CometChatContextType>(CometChatContext);
|
|
158
223
|
|
|
159
224
|
// creating style based on styles from users
|
|
160
|
-
const _messageListStyle = new MessageListStyle({
|
|
225
|
+
const _messageListStyle = useRef(new MessageListStyle({
|
|
161
226
|
backgroundColor: theme?.palette.getBackgroundColor(),
|
|
162
227
|
emptyStateTextColor: theme?.palette.getError(),
|
|
163
228
|
emptyStateTextFont: theme?.typography.subtitle1,
|
|
@@ -173,28 +238,28 @@ export const CometChatMessageList = forwardRef<
|
|
|
173
238
|
timestampTextColor: theme?.palette.getAccent500(),
|
|
174
239
|
timestampTextFont: theme?.typography.caption1,
|
|
175
240
|
...messageListStyle
|
|
176
|
-
});
|
|
177
|
-
const _avatarStyle = new AvatarStyle({
|
|
178
|
-
backgroundColor: _messageListStyle.backgroundColor,
|
|
241
|
+
})).current;
|
|
242
|
+
const _avatarStyle = useRef(new AvatarStyle({
|
|
179
243
|
nameTextColor: _messageListStyle.nameTextColor,
|
|
180
244
|
nameTextFont: _messageListStyle.nameTextFont,
|
|
181
245
|
...avatarStyle
|
|
182
|
-
});
|
|
183
|
-
const _dateSeperatorStyle = new DateStyle({
|
|
246
|
+
})).current;
|
|
247
|
+
const _dateSeperatorStyle = useRef(new DateStyle({
|
|
184
248
|
textColor: _messageListStyle.timestampTextColor,
|
|
185
249
|
textFont: theme?.typography.title2,
|
|
186
250
|
...dateSeperatorStyle
|
|
187
|
-
});
|
|
188
|
-
const messageBubbleDateStyle = new DateStyle({
|
|
251
|
+
})).current;
|
|
252
|
+
const messageBubbleDateStyle = useRef(new DateStyle({
|
|
189
253
|
textColor: _messageListStyle.timestampTextColor,
|
|
190
254
|
textFont: _messageListStyle.timestampTextFont
|
|
191
|
-
});
|
|
192
|
-
const _actionStyle = new ActionSheetStyles({
|
|
255
|
+
})).current;
|
|
256
|
+
const _actionStyle = useRef(new ActionSheetStyles({
|
|
257
|
+
actionSheetSeparatorTint: 'transparent',
|
|
193
258
|
...actionSheetStyle
|
|
194
|
-
});
|
|
195
|
-
const _messageBubbleStyle = new MessageBubbleStyle({
|
|
259
|
+
})).current;
|
|
260
|
+
const _messageBubbleStyle = useRef(new MessageBubbleStyle({
|
|
196
261
|
...wrapperMessageBubbleStyle
|
|
197
|
-
});
|
|
262
|
+
})).current;
|
|
198
263
|
|
|
199
264
|
// refs
|
|
200
265
|
const currentScrollPosition = useRef({ y: null, scrollViewHeight: 0, layoutHeight: 0 });
|
|
@@ -204,33 +269,9 @@ export const CometChatMessageList = forwardRef<
|
|
|
204
269
|
const messageListRef = useRef<ScrollView>(null);
|
|
205
270
|
const loggedInUser = useRef<CometChat.User>(null);
|
|
206
271
|
const messageRequest = useRef<CometChat.MessagesRequest>(null);
|
|
272
|
+
const messagesContentListRef = useRef([]);
|
|
207
273
|
|
|
208
|
-
|
|
209
|
-
let _updatedCustomRequestBuilder = _defaultRequestBuilder;
|
|
210
|
-
if (messageRequestBuilder) {
|
|
211
|
-
_updatedCustomRequestBuilder = messageRequestBuilder;
|
|
212
|
-
}
|
|
213
|
-
_updatedCustomRequestBuilder.hideReplies(true);
|
|
214
|
-
if (user)
|
|
215
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setUID(user["uid"])
|
|
216
|
-
if (group)
|
|
217
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setGUID(group["guid"])
|
|
218
|
-
if (parentMessageId)
|
|
219
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setParentMessageId(parseInt(parentMessageId));
|
|
220
|
-
let types = [], categories = [];
|
|
221
|
-
if (templates.length) {
|
|
222
|
-
types = templates.map(template => template.type);
|
|
223
|
-
categories = templates.map(template => template.category);
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
types = ChatConfigurator.dataSource.getAllMessageTypes();
|
|
227
|
-
categories = ChatConfigurator.dataSource.getAllMessageCategories();
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setTypes(types);
|
|
231
|
-
_updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setCategories(categories);
|
|
232
|
-
|
|
233
|
-
const msgRequestBuilder = useRef<CometChat.MessagesRequestBuilder>(_updatedCustomRequestBuilder);
|
|
274
|
+
const msgRequestBuilder = useRef<CometChat.MessagesRequestBuilder>();
|
|
234
275
|
const lastMessageDate = useRef(new Date().getTime());
|
|
235
276
|
|
|
236
277
|
// states
|
|
@@ -244,9 +285,14 @@ export const CometChatMessageList = forwardRef<
|
|
|
244
285
|
const [CustomListHeader, setCustomListHeader] = useState(null);
|
|
245
286
|
const [messageInfo, setMessageInfo] = useState(false);
|
|
246
287
|
const [ongoingCallView, setOngoingCallView] = useState(null);
|
|
288
|
+
const [selectedMessage, setSelectedMessage] = useState(null);
|
|
289
|
+
const [showEmojiKeyboard, setShowEmojiKeyboard] = useState(false);
|
|
290
|
+
const [showReactionsList, setShowReactionsList] = useState(false);
|
|
291
|
+
const [selectedEmoji, setSelectedEmoji] = useState(null);
|
|
247
292
|
// const [forwarding, setForwarding] = useState(false);
|
|
248
293
|
|
|
249
294
|
const infoObject = useRef<CometChat.BaseMessage>();
|
|
295
|
+
const inProgressMessages = useRef([]);
|
|
250
296
|
// const messageToForward = useRef<CometChat.BaseMessage>();
|
|
251
297
|
const bottomSheetRef = useRef(null)
|
|
252
298
|
const conversationId = useRef(null)
|
|
@@ -277,7 +323,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
277
323
|
|
|
278
324
|
const markUnreadMessageAsRead = () => {
|
|
279
325
|
for (let index = 0; index < unreadCount; index++) {
|
|
280
|
-
const message =
|
|
326
|
+
const message = messagesContentListRef.current[messagesContentListRef.current.length - (index + 1)];
|
|
281
327
|
if (index == 0)
|
|
282
328
|
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageRead, { message });
|
|
283
329
|
CometChat.markAsRead(message);
|
|
@@ -288,7 +334,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
288
334
|
const newMsgIndicatorPressed = () => {
|
|
289
335
|
scrollToBottom();
|
|
290
336
|
markUnreadMessageAsRead();
|
|
291
|
-
}
|
|
337
|
+
};
|
|
292
338
|
|
|
293
339
|
const getPreviousMessages = async () => {
|
|
294
340
|
|
|
@@ -334,7 +380,11 @@ export const CometChatMessageList = forwardRef<
|
|
|
334
380
|
return item;
|
|
335
381
|
}
|
|
336
382
|
})
|
|
337
|
-
reversed.length > 0
|
|
383
|
+
if (reversed.length > 0) {
|
|
384
|
+
let reversedData = [...reversed.reverse()];
|
|
385
|
+
messagesContentListRef.current = [...reversedData, ...messagesContentListRef.current];
|
|
386
|
+
setMessagesList([...reversedData, ...messagesList]);
|
|
387
|
+
}
|
|
338
388
|
if (messagesList.length == 0)
|
|
339
389
|
setListState("");
|
|
340
390
|
else
|
|
@@ -346,7 +396,6 @@ export const CometChatMessageList = forwardRef<
|
|
|
346
396
|
setListState("error");
|
|
347
397
|
else
|
|
348
398
|
setLoadingMessages(false);
|
|
349
|
-
console.log(e);
|
|
350
399
|
onError && onError(e)
|
|
351
400
|
})
|
|
352
401
|
}
|
|
@@ -365,6 +414,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
365
414
|
messagesRequest.build()
|
|
366
415
|
.fetchNext()
|
|
367
416
|
.then(updatedMessages => {
|
|
417
|
+
if (!updatedMessages.length) return;
|
|
368
418
|
let tmpList = [...messagesList];
|
|
369
419
|
for (let i = 0; i < updatedMessages.length; i++) {
|
|
370
420
|
let condition = (msg) => msg.getId() == updatedMessages[i]?.actionOn.getId()
|
|
@@ -409,6 +459,14 @@ export const CometChatMessageList = forwardRef<
|
|
|
409
459
|
return item;
|
|
410
460
|
}
|
|
411
461
|
})
|
|
462
|
+
if (inProgressMessages.current.length) {
|
|
463
|
+
const filteredInProgressMessages = inProgressMessages.current.filter(secondItem =>
|
|
464
|
+
!tmpList.some(firstItem => firstItem.muid === secondItem.muid)
|
|
465
|
+
);
|
|
466
|
+
const combinedArray = tmpList.concat(filteredInProgressMessages);
|
|
467
|
+
tmpList = combinedArray
|
|
468
|
+
}
|
|
469
|
+
messagesContentListRef.current = tmpList;
|
|
412
470
|
setMessagesList(tmpList);
|
|
413
471
|
markMessageAsRead(tmpList[0]);
|
|
414
472
|
if (newMessages.length === 30) {
|
|
@@ -418,16 +476,16 @@ export const CometChatMessageList = forwardRef<
|
|
|
418
476
|
.catch(e => console.log("error while fetching updated msgs", e))
|
|
419
477
|
}
|
|
420
478
|
|
|
421
|
-
const loadTemplates = () => {
|
|
479
|
+
const loadTemplates = useCallback(() => {
|
|
422
480
|
let templates: CometChatMessageTemplate[] = ChatConfigurator.dataSource.getAllMessageTemplates(theme);
|
|
423
481
|
templates.forEach(template => {
|
|
424
482
|
|
|
425
483
|
if (templatesMap.get(`${template.category}_${template.type}`)) return
|
|
426
484
|
templatesMap.set(`${template.category}_${template.type}`, template);
|
|
427
485
|
});
|
|
428
|
-
}
|
|
486
|
+
}, [])
|
|
429
487
|
|
|
430
|
-
const playNotificationSound = (message) => {
|
|
488
|
+
const playNotificationSound = useCallback((message) => {
|
|
431
489
|
|
|
432
490
|
if (disableSoundForMessages) return;
|
|
433
491
|
|
|
@@ -444,10 +502,10 @@ export const CometChatMessageList = forwardRef<
|
|
|
444
502
|
);
|
|
445
503
|
}
|
|
446
504
|
}
|
|
447
|
-
};
|
|
505
|
+
}, []);
|
|
448
506
|
|
|
449
|
-
const scrollToBottom = (scrollToFirstUnread = false) => {
|
|
450
|
-
if (messageListRef &&
|
|
507
|
+
const scrollToBottom = useCallback((scrollToFirstUnread = false) => {
|
|
508
|
+
if (messageListRef.current && messagesContentListRef.current.length > 0) {
|
|
451
509
|
let firstUnreadPosition = previousScrollPosition.current.scrollViewHeight;
|
|
452
510
|
if (scrollToFirstUnread) {
|
|
453
511
|
setTimeout(() => {
|
|
@@ -459,7 +517,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
459
517
|
}, 0)
|
|
460
518
|
}
|
|
461
519
|
}
|
|
462
|
-
};
|
|
520
|
+
}, []);
|
|
463
521
|
|
|
464
522
|
const markMessageAsRead = (message) => {
|
|
465
523
|
if (!disableReceipt && !message?.readAt) {
|
|
@@ -474,20 +532,20 @@ export const CometChatMessageList = forwardRef<
|
|
|
474
532
|
};
|
|
475
533
|
|
|
476
534
|
function checkMessageInSameConversation(message: CometChat.BaseMessage): boolean {
|
|
477
|
-
return (message
|
|
535
|
+
return (message?.getReceiverType() == ReceiverTypeConstants.user &&
|
|
478
536
|
user &&
|
|
479
537
|
user?.getUid() == message.getReceiver()?.['uid']) ||
|
|
480
|
-
(message
|
|
538
|
+
(message?.getReceiverType() == ReceiverTypeConstants.group &&
|
|
481
539
|
message.getReceiverId() &&
|
|
482
540
|
group &&
|
|
483
541
|
group?.getGuid() == message.getReceiverId());
|
|
484
542
|
}
|
|
485
543
|
|
|
486
544
|
function messageToSameConversation(message: CometChat.BaseMessage): boolean {
|
|
487
|
-
return (message
|
|
545
|
+
return (message?.getReceiverType() == ReceiverTypeConstants.user &&
|
|
488
546
|
user &&
|
|
489
547
|
user?.getUid() == message.getReceiverId()) ||
|
|
490
|
-
(message
|
|
548
|
+
(message?.getReceiverType() == ReceiverTypeConstants.group &&
|
|
491
549
|
message.getReceiverId() &&
|
|
492
550
|
group &&
|
|
493
551
|
group?.getGuid() == message.getReceiverId());
|
|
@@ -506,30 +564,41 @@ export const CometChatMessageList = forwardRef<
|
|
|
506
564
|
if (baseMessage.getParentMessageId()) {
|
|
507
565
|
if (baseMessage.getParentMessageId() == parseInt(parentMessageId)) {
|
|
508
566
|
// add to list
|
|
567
|
+
messagesContentListRef.current = [...messagesContentListRef.current, newMessage];
|
|
509
568
|
setMessagesList([...messagesList, newMessage]);
|
|
569
|
+
inProgressMessages.current = [...inProgressMessages.current, newMessage]
|
|
510
570
|
} else {
|
|
511
571
|
//increase count
|
|
512
572
|
let index = messagesList.findIndex(msg => msg.id === newMessage.parentMessageId);
|
|
513
|
-
let oldMsg: CometChat.BaseMessage = messagesList[index];
|
|
573
|
+
let oldMsg: CometChat.BaseMessage = CommonUtils.clone(messagesList[index]);
|
|
514
574
|
oldMsg.setReplyCount(oldMsg.getReplyCount() ? oldMsg.getReplyCount() + 1 : 1);
|
|
575
|
+
// if ((newMessage?.sender?.uid !== loggedInUser.current?.['uid'])) {
|
|
576
|
+
// oldMsg.setUnreadReplyCount(oldMsg.getUnreadReplyCount() ? oldMsg.getUnreadReplyCount() + 1 : 1);
|
|
577
|
+
// }
|
|
515
578
|
let tmpList = [...messagesList];
|
|
516
579
|
tmpList[index] = oldMsg;
|
|
580
|
+
messagesContentListRef.current = tmpList;
|
|
517
581
|
setMessagesList(tmpList);
|
|
582
|
+
inProgressMessages.current = [...inProgressMessages.current, newMessage]
|
|
518
583
|
}
|
|
519
584
|
} else if (parentMessageId == undefined) {
|
|
585
|
+
messagesContentListRef.current = [...messagesContentListRef.current, newMessage];
|
|
520
586
|
setMessagesList([...messagesList, newMessage]);
|
|
587
|
+
inProgressMessages.current = [...inProgressMessages.current, newMessage]
|
|
521
588
|
}
|
|
522
589
|
// if scroll is not at bottom
|
|
523
590
|
if (!scrollToBottomOnNewMessages && (Math.round(currentScrollPosition.current.y) <= currentScrollPosition.current.scrollViewHeight)) {
|
|
524
|
-
if ((baseMessage.getSender()?.getUid() || baseMessage?.['sender']?.['uid']) == loggedInUser.current?.['uid']) {
|
|
591
|
+
if ((parentMessageId && newMessage.parentMessageId == parseInt(parentMessageId)) || (!parentMessageId && !newMessage.parentMessageId && (baseMessage.getSender()?.getUid() || baseMessage?.['sender']?.['uid']) == loggedInUser.current?.['uid'])) {
|
|
525
592
|
scrollToBottom();
|
|
526
593
|
return;
|
|
527
594
|
}
|
|
528
595
|
CometChat.markAsDelivered(newMessage);
|
|
529
|
-
if (baseMessage
|
|
596
|
+
if (baseMessage?.getReceiverType() == ReceiverTypeConstants.user) {
|
|
530
597
|
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageDelivered, { message: newMessage });
|
|
531
598
|
}
|
|
532
|
-
|
|
599
|
+
if ((!parentMessageId && !(newMessage.parentMessageId)) || (parentMessageId && newMessage.parentMessageId == parseInt(parentMessageId))) {
|
|
600
|
+
setUnreadCount(unreadCount + 1);
|
|
601
|
+
}
|
|
533
602
|
} else {
|
|
534
603
|
scrollToBottom();
|
|
535
604
|
if (isReceived) {
|
|
@@ -541,10 +610,27 @@ export const CometChatMessageList = forwardRef<
|
|
|
541
610
|
playNotificationSound(newMessage);
|
|
542
611
|
}
|
|
543
612
|
|
|
613
|
+
const markParentMessageAsRead = (message: CometChat.BaseMessage) => {
|
|
614
|
+
let condition: (value: any, index: number, obj: any[]) => unknown;
|
|
615
|
+
condition = (msg) => msg.getId() == message?.['parentMessageId'];
|
|
616
|
+
let msgIndex = messagesList.findIndex(condition);
|
|
617
|
+
if (msgIndex > -1) {
|
|
618
|
+
let tmpList = [...messagesList];
|
|
619
|
+
if (message.getCategory() === MessageCategoryConstants.interactive) {
|
|
620
|
+
message = InteractiveMessageUtils.convertInteractiveMessage(message);
|
|
621
|
+
}
|
|
622
|
+
tmpList[msgIndex]?.setUnreadReplyCount(0);
|
|
623
|
+
messagesContentListRef.current = tmpList;
|
|
624
|
+
setMessagesList(tmpList);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
|
|
544
628
|
const messageEdited = (editedMessage: CometChat.BaseMessage, withMuid: boolean = false) => {
|
|
545
629
|
let condition: (value: any, index: number, obj: any[]) => unknown;
|
|
546
|
-
if (withMuid)
|
|
630
|
+
if (withMuid) {
|
|
547
631
|
condition = (msg) => msg['muid'] == editedMessage['muid']
|
|
632
|
+
inProgressMessages.current = inProgressMessages.current.filter(item => item.muid !== editedMessage['muid'])
|
|
633
|
+
}
|
|
548
634
|
else
|
|
549
635
|
condition = (msg) => msg.getId() == editedMessage.getId()
|
|
550
636
|
let msgIndex = messagesList.findIndex(condition);
|
|
@@ -553,7 +639,8 @@ export const CometChatMessageList = forwardRef<
|
|
|
553
639
|
if (editedMessage.getCategory() === MessageCategoryConstants.interactive) {
|
|
554
640
|
editedMessage = InteractiveMessageUtils.convertInteractiveMessage(editedMessage);
|
|
555
641
|
}
|
|
556
|
-
tmpList[msgIndex] = editedMessage;
|
|
642
|
+
tmpList[msgIndex] = CommonUtils.clone(editedMessage);
|
|
643
|
+
messagesContentListRef.current = tmpList;
|
|
557
644
|
setMessagesList(tmpList);
|
|
558
645
|
}
|
|
559
646
|
}
|
|
@@ -564,6 +651,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
564
651
|
|
|
565
652
|
let tmpList = [...messagesList];
|
|
566
653
|
tmpList.splice(msgIndex, 1);
|
|
654
|
+
messagesContentListRef.current = tmpList;
|
|
567
655
|
setMessagesList(tmpList);
|
|
568
656
|
}
|
|
569
657
|
|
|
@@ -596,7 +684,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
596
684
|
let tmpList = [...messagesList];
|
|
597
685
|
|
|
598
686
|
let tmpMsg = tmpList[index];
|
|
599
|
-
if ((tmpMsg as CometChat.BaseMessage)
|
|
687
|
+
if ((tmpMsg as CometChat.BaseMessage)?.getReceiverType() == ReceiverTypeConstants.group)
|
|
600
688
|
return;
|
|
601
689
|
if (tmpMsg.getCategory() === MessageCategoryConstants.interactive) {
|
|
602
690
|
tmpMsg = InteractiveMessageUtils.convertInteractiveMessage(tmpMsg);
|
|
@@ -609,6 +697,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
609
697
|
}
|
|
610
698
|
tmpMsg['updatedAt'] = receipt['timestamp'];
|
|
611
699
|
|
|
700
|
+
messagesContentListRef.current = tmpList;
|
|
612
701
|
setMessagesList(tmpList);
|
|
613
702
|
}
|
|
614
703
|
|
|
@@ -668,6 +757,15 @@ export const CometChatMessageList = forwardRef<
|
|
|
668
757
|
useEffect(() => {
|
|
669
758
|
//add listeners
|
|
670
759
|
|
|
760
|
+
let reactionListeners = disableReactions ? {} : {
|
|
761
|
+
onMessageReactionAdded: (reaction: CometChat.ReactionEvent) => {
|
|
762
|
+
updateMessageReaction(reaction, true);
|
|
763
|
+
},
|
|
764
|
+
onMessageReactionRemoved: (reaction: CometChat.ReactionEvent) => {
|
|
765
|
+
updateMessageReaction(reaction, false);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
|
|
671
769
|
CometChat.addGroupListener(
|
|
672
770
|
groupListenerId,
|
|
673
771
|
new CometChat.GroupListener({
|
|
@@ -713,6 +811,11 @@ export const CometChatMessageList = forwardRef<
|
|
|
713
811
|
ccMessageDeleted: ({ message }) => {
|
|
714
812
|
messageEdited(message, false);
|
|
715
813
|
},
|
|
814
|
+
ccMessageRead: ({ message }) => {
|
|
815
|
+
if (!parentMessageId && message.parentMessageId) {
|
|
816
|
+
// markParentMessageAsRead(message); //NOTE: uncomment this when want unread count in thread view
|
|
817
|
+
}
|
|
818
|
+
},
|
|
716
819
|
onTextMessageReceived: (textMessage) => {
|
|
717
820
|
newMessage(textMessage);
|
|
718
821
|
},
|
|
@@ -765,6 +868,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
765
868
|
messageEdited(editedMessage);
|
|
766
869
|
}
|
|
767
870
|
},
|
|
871
|
+
...reactionListeners
|
|
768
872
|
}
|
|
769
873
|
)
|
|
770
874
|
CometChatUIEventHandler.addGroupListener(
|
|
@@ -884,9 +988,15 @@ export const CometChatMessageList = forwardRef<
|
|
|
884
988
|
}, [messagesList, unreadCount, user, group]);
|
|
885
989
|
|
|
886
990
|
useEffect(() => {
|
|
887
|
-
prevMessagesLength.current = messagesLength.current ||
|
|
888
|
-
messagesLength.current =
|
|
889
|
-
}, [
|
|
991
|
+
prevMessagesLength.current = messagesLength.current || messagesContentListRef.current.length;
|
|
992
|
+
messagesLength.current = messagesContentListRef.current.length;
|
|
993
|
+
}, [messagesContentListRef.current])
|
|
994
|
+
|
|
995
|
+
useEffect(() => {
|
|
996
|
+
if (selectedEmoji) {
|
|
997
|
+
setShowReactionsList(true);
|
|
998
|
+
}
|
|
999
|
+
}, [selectedEmoji])
|
|
890
1000
|
|
|
891
1001
|
useImperativeHandle(ref, () => {
|
|
892
1002
|
return {
|
|
@@ -901,12 +1011,72 @@ export const CometChatMessageList = forwardRef<
|
|
|
901
1011
|
}
|
|
902
1012
|
});
|
|
903
1013
|
|
|
1014
|
+
const getMessageById = (messageId: string): CometChat.BaseMessage => {
|
|
1015
|
+
const message = messagesList.find((message) => message.getId() === messageId);
|
|
1016
|
+
return message;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
function isReactionOfThisList(receipt: CometChat.ReactionEvent) {
|
|
1020
|
+
const receiverId = receipt?.getReceiverId();
|
|
1021
|
+
const receiverType = receipt?.getReceiverType();
|
|
1022
|
+
const reactedById = receipt?.getReaction()?.getReactedBy()?.getUid();
|
|
1023
|
+
const parentMessageId = receipt?.getParentMessageId();
|
|
1024
|
+
const listParentMessageId = parentMessageId && String(parentMessageId);
|
|
1025
|
+
if (listParentMessageId) {
|
|
1026
|
+
if (parentMessageId === listParentMessageId) {
|
|
1027
|
+
return true;
|
|
1028
|
+
} else {
|
|
1029
|
+
return false
|
|
1030
|
+
}
|
|
1031
|
+
} else {
|
|
1032
|
+
if (receipt.getParentMessageId()) {
|
|
1033
|
+
return false
|
|
1034
|
+
}
|
|
1035
|
+
if (user) {
|
|
1036
|
+
if (receiverType === ReceiverTypeConstants.user && (receiverId === user.getUid() || reactedById === user.getUid())) {
|
|
1037
|
+
return true
|
|
1038
|
+
}
|
|
1039
|
+
} else if (group) {
|
|
1040
|
+
if (receiverType === ReceiverTypeConstants.group && (receiverId === group.getGuid())) {
|
|
1041
|
+
return true
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
return false
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
const updateMessageReaction = (message: CometChat.ReactionEvent, isAdded: boolean): void => {
|
|
1049
|
+
let _isReactionOfThisList = isReactionOfThisList(message);
|
|
1050
|
+
if (!_isReactionOfThisList) return;
|
|
1051
|
+
|
|
1052
|
+
const messageId = message?.getReaction()?.getMessageId();
|
|
1053
|
+
const messageObject = getMessageById(messageId);
|
|
1054
|
+
if (!messageObject) return;
|
|
1055
|
+
|
|
1056
|
+
let action: any;
|
|
1057
|
+
if (isAdded) {
|
|
1058
|
+
action = CometChat.REACTION_ACTION.REACTION_ADDED;
|
|
1059
|
+
} else {
|
|
1060
|
+
action = CometChat.REACTION_ACTION.REACTION_REMOVED;
|
|
1061
|
+
}
|
|
1062
|
+
const modifiedMessage = CometChat.CometChatHelper.updateMessageWithReactionInfo(
|
|
1063
|
+
messageObject,
|
|
1064
|
+
message.getReaction(),
|
|
1065
|
+
action
|
|
1066
|
+
)
|
|
1067
|
+
if (modifiedMessage instanceof CometChat.CometChatException) {
|
|
1068
|
+
onError && onError(modifiedMessage);
|
|
1069
|
+
return;
|
|
1070
|
+
}
|
|
1071
|
+
messageEdited(modifiedMessage, false);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
904
1074
|
// functions returning view
|
|
905
1075
|
const getLeadingView = useCallback((item: CometChat.BaseMessage) => {
|
|
906
|
-
if (showAvatar && (item.getSender()?.getUid() || item?.['sender']?.['uid']) !== loggedInUser.current['uid'] && item['category'] != MessageCategoryConstants.action) {
|
|
1076
|
+
if (showAvatar && (alignment === "leftAligned" || (item.getSender()?.getUid() || item?.['sender']?.['uid']) !== loggedInUser.current['uid'] && item['category'] != MessageCategoryConstants.action)) {
|
|
907
1077
|
return <CometChatAvatar
|
|
908
|
-
image={item?.getSender()?.getAvatar ? { uri: item.getSender().getAvatar() } : undefined}
|
|
909
|
-
name={item?.getSender()?.getName ? item?.getSender()?.getName() : ""}
|
|
1078
|
+
image={(item?.getSender()?.getAvatar && item?.getSender()?.getAvatar()) ? { uri: item.getSender().getAvatar() } : undefined}
|
|
1079
|
+
name={(item?.getSender()?.getName && item?.getSender()?.getName()) ? item?.getSender()?.getName() : ""}
|
|
910
1080
|
style={_avatarStyle}
|
|
911
1081
|
/>
|
|
912
1082
|
}
|
|
@@ -915,7 +1085,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
915
1085
|
|
|
916
1086
|
const getHeaderView = useCallback((item: CometChat.BaseMessage) => {
|
|
917
1087
|
let senderName: string = "";
|
|
918
|
-
if ((item.getSender()?.getUid() || item?.['sender']?.['uid']) != loggedInUser.current['uid'])
|
|
1088
|
+
if (alignment === "leftAligned" || ((item.getSender()?.getUid() || item?.['sender']?.['uid']) != loggedInUser.current['uid']))
|
|
919
1089
|
senderName = item.getSender()?.getName ? item.getSender()?.getName() : "";
|
|
920
1090
|
|
|
921
1091
|
if (item.getCategory() == MessageCategoryConstants.action || item.getCategory() == MessageCategoryConstants.call)
|
|
@@ -942,9 +1112,9 @@ export const CometChatMessageList = forwardRef<
|
|
|
942
1112
|
)
|
|
943
1113
|
}, [])
|
|
944
1114
|
|
|
945
|
-
const
|
|
1115
|
+
const getStatusInfoView = useCallback((item: CometChat.BaseMessage, bubbleAlignment: MessageBubbleAlignmentType): JSX.Element => {
|
|
946
1116
|
// return null if time alignment is top
|
|
947
|
-
if (timeStampAlignment == "top" || item['category'] == "action") return null
|
|
1117
|
+
if (timeStampAlignment == "top" || item['category'] == "action" || item['deletedAt']) return null
|
|
948
1118
|
|
|
949
1119
|
let isSender = (item.getSender()?.getUid() || item?.['sender']?.['uid']) == loggedInUser.current['uid'];
|
|
950
1120
|
let messageState;
|
|
@@ -959,29 +1129,70 @@ export const CometChatMessageList = forwardRef<
|
|
|
959
1129
|
else
|
|
960
1130
|
messageState = "ERROR"
|
|
961
1131
|
|
|
962
|
-
|
|
1132
|
+
let isAudioVideo = (item?.getType() === "image" || item?.getType() === "video");
|
|
1133
|
+
return <View style={[
|
|
1134
|
+
isAudioVideo ? {
|
|
1135
|
+
flexDirection: "row", justifyContent: bubbleAlignment === "right" ? "flex-end" : "flex-start", alignSelf: "flex-end", paddingVertical: 2, paddingHorizontal: 5,
|
|
1136
|
+
position: "absolute", borderRadius: 10, backgroundColor: theme.palette.getAccent500("dark"), zIndex: 1, bottom: 5, right: 5,
|
|
1137
|
+
}
|
|
1138
|
+
:
|
|
1139
|
+
{ flexDirection: "row", justifyContent: bubbleAlignment === "right" ? "flex-end" : "flex-start", alignSelf: "flex-end", padding: 5 }
|
|
1140
|
+
]}>
|
|
963
1141
|
<CometChatDate
|
|
964
1142
|
timeStamp={((item.getDeletedAt() || item.getReadAt() || item.getDeliveredAt() || item.getSentAt()) * 1000) || getSentAtTimestamp(item)}
|
|
965
|
-
style={messageBubbleDateStyle}
|
|
1143
|
+
style={{ ...messageBubbleDateStyle, textFont: isAudioVideo ? theme.typography.caption3 : messageBubbleDateStyle.textFont }}
|
|
966
1144
|
pattern={"timeFormat"}
|
|
967
1145
|
customDateString={datePattern && datePattern(item)}
|
|
968
1146
|
dateAlignment="center"
|
|
969
1147
|
/>
|
|
970
1148
|
{
|
|
971
|
-
!disableReceipt && isSender ?
|
|
972
|
-
<
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
1149
|
+
(!disableReceipt && alignment !== "leftAligned") && isSender ?
|
|
1150
|
+
<View style={{ marginLeft: 2, alignItems: "center", justifyContent: "center" }}>
|
|
1151
|
+
<CometChatReceipt
|
|
1152
|
+
receipt={messageState}
|
|
1153
|
+
deliveredIcon={deliveredIcon}
|
|
1154
|
+
readIcon={readIcon}
|
|
1155
|
+
sentIcon={sentIcon}
|
|
1156
|
+
waitIcon={waitIcon}
|
|
1157
|
+
errorIcon={errorIcon}
|
|
1158
|
+
style={{
|
|
1159
|
+
height: isAudioVideo && 8, width: isAudioVideo && 10,
|
|
1160
|
+
tintColor: (messageState === "READ" && item?.getType() === "text") ? theme.palette.getBackgroundColor() :
|
|
1161
|
+
messageState === "WAIT" ? theme?.palette?.getAccent400() : undefined
|
|
1162
|
+
}}
|
|
1163
|
+
/>
|
|
1164
|
+
</View>
|
|
1165
|
+
:
|
|
980
1166
|
null
|
|
981
1167
|
}
|
|
982
1168
|
</View>
|
|
983
1169
|
}, [])
|
|
984
1170
|
|
|
1171
|
+
const getFooterView = useCallback((
|
|
1172
|
+
messageObject: CometChat.BaseMessage,
|
|
1173
|
+
alignment: MessageBubbleAlignmentType
|
|
1174
|
+
) => {
|
|
1175
|
+
let hasReaction = messageObject?.getReactions && messageObject?.getReactions() && messageObject?.getReactions().length > 0;
|
|
1176
|
+
return (
|
|
1177
|
+
<View style={{
|
|
1178
|
+
minHeight: hasReaction ? 27 : 0,
|
|
1179
|
+
}}>
|
|
1180
|
+
<CometChatReactions
|
|
1181
|
+
messageObject={messageObject}
|
|
1182
|
+
onReactionPress={(reaction: CometChat.ReactionCount, messageObject: CometChat.BaseMessage) => reactToMessage(reaction.getReaction(), messageObject)}
|
|
1183
|
+
onReactionLongPress={(reaction: CometChat.ReactionCount, messageObject: CometChat.BaseMessage) => onReactionLongPress(reaction.getReaction(), messageObject)}
|
|
1184
|
+
alignment={alignment}
|
|
1185
|
+
{...reactionsConfiguration}
|
|
1186
|
+
/>
|
|
1187
|
+
</View>
|
|
1188
|
+
);
|
|
1189
|
+
}, [])
|
|
1190
|
+
|
|
1191
|
+
const onReactionLongPress = (emoji: string, messageObj?: CometChat.BaseMessage) => { //TODO: check useCallBAck
|
|
1192
|
+
setSelectedMessage(messageObj);
|
|
1193
|
+
setSelectedEmoji(emoji);
|
|
1194
|
+
}
|
|
1195
|
+
|
|
985
1196
|
const getAlignment = useCallback((item: CometChat.BaseMessage): MessageBubbleAlignmentType => {
|
|
986
1197
|
if (item && item.getCategory() == MessageCategoryConstants.action)
|
|
987
1198
|
return "center";
|
|
@@ -1014,22 +1225,64 @@ export const CometChatMessageList = forwardRef<
|
|
|
1014
1225
|
setShowMessageOptions([]);
|
|
1015
1226
|
}
|
|
1016
1227
|
|
|
1017
|
-
const getThreadView = useCallback((item: CometChat.BaseMessage) => {
|
|
1228
|
+
const getThreadView = useCallback((item: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType) => {
|
|
1018
1229
|
let isThreaded = item.getReplyCount() > 0;
|
|
1019
1230
|
|
|
1020
|
-
let style = {
|
|
1021
|
-
color: theme?.palette.
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1231
|
+
let style = [{
|
|
1232
|
+
color: theme?.palette.getAccent900(),
|
|
1233
|
+
marginRight: alignment === "right" ? 3 : 0,
|
|
1234
|
+
marginLeft: alignment === "left" ? 3 : 0
|
|
1235
|
+
}, theme?.typography?.subtitle1];
|
|
1236
|
+
|
|
1237
|
+
// let unreadReplyCount = item?.getUnreadReplyCount && item?.getUnreadReplyCount();
|
|
1026
1238
|
|
|
1027
1239
|
return !isThreaded ? null :
|
|
1028
1240
|
<TouchableOpacity
|
|
1029
1241
|
onPress={() => openThreadView(item, null)}
|
|
1030
|
-
style={{
|
|
1031
|
-
|
|
1032
|
-
|
|
1242
|
+
style={{
|
|
1243
|
+
flexDirection: "row",
|
|
1244
|
+
marginRight: 4,
|
|
1245
|
+
paddingHorizontal: 4,
|
|
1246
|
+
marginTop: 2,
|
|
1247
|
+
alignSelf: alignment === "right" ? "flex-end" : "flex-start",
|
|
1248
|
+
}}
|
|
1249
|
+
>
|
|
1250
|
+
{alignment === "left" && <Image style={{ resizeMode: "contain", tintColor: theme?.palette.getAccent600() }} source={LeftArrowCurve} />}
|
|
1251
|
+
<Text style={style}>{`${item.getReplyCount()} ${item.getReplyCount() > 1 ? localize("REPLIES") : localize("REPLY")}`}</Text>
|
|
1252
|
+
|
|
1253
|
+
{/** NOTE: uncomment below code when want unread count in thread view **/}
|
|
1254
|
+
{/* {alignment === "left" && !!unreadReplyCount &&
|
|
1255
|
+
<View style={{
|
|
1256
|
+
borderRadius: 10, marginLeft: 3,
|
|
1257
|
+
paddingHorizontal: 7,
|
|
1258
|
+
alignment: "center", justifyContent: "center",
|
|
1259
|
+
backgroundColor: theme?.palette?.getPrimary()
|
|
1260
|
+
}}>
|
|
1261
|
+
<Text style={[theme?.typography?.subtitle4,
|
|
1262
|
+
{
|
|
1263
|
+
color: theme?.palette?.getBackgroundColor(),
|
|
1264
|
+
textAlign: "center"
|
|
1265
|
+
}]}
|
|
1266
|
+
>{unreadReplyCount}</Text>
|
|
1267
|
+
</View>
|
|
1268
|
+
} */}
|
|
1269
|
+
{/* {alignment === "right" && !!unreadReplyCount &&
|
|
1270
|
+
<View style={{
|
|
1271
|
+
borderRadius: 10, marginRight: 3, paddingVertical: 2, paddingHorizontal: 6,
|
|
1272
|
+
backgroundColor: theme?.palette?.getPrimary()
|
|
1273
|
+
}}>
|
|
1274
|
+
<Text style={[theme?.typography?.subtitle4,
|
|
1275
|
+
{ color: theme?.palette?.getBackgroundColor() }]}
|
|
1276
|
+
>{unreadReplyCount}</Text>
|
|
1277
|
+
</View>
|
|
1278
|
+
} */}
|
|
1279
|
+
{/** NOTE: uncomment above code when want unread count in thread view **/}
|
|
1280
|
+
|
|
1281
|
+
{alignment === "right" && <Image style={[{ resizeMode: "contain", tintColor: theme?.palette.getAccent600() },
|
|
1282
|
+
{
|
|
1283
|
+
transform: [{ scaleX: -1 }]
|
|
1284
|
+
}
|
|
1285
|
+
]} source={LeftArrowCurve} />}
|
|
1033
1286
|
</TouchableOpacity>
|
|
1034
1287
|
}, [])
|
|
1035
1288
|
|
|
@@ -1045,7 +1298,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
1045
1298
|
})
|
|
1046
1299
|
}
|
|
1047
1300
|
|
|
1048
|
-
const shareMedia = async (messageObject: CometChat.
|
|
1301
|
+
const shareMedia = async (messageObject: CometChat.MediaMessage) => {
|
|
1049
1302
|
let textMessage = messageObject.data.text;
|
|
1050
1303
|
let fileUrl = messageObject.data.url;
|
|
1051
1304
|
|
|
@@ -1059,7 +1312,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
1059
1312
|
"type": messageObject["type"],
|
|
1060
1313
|
"mediaName": getFileName(), // get File name
|
|
1061
1314
|
"fileUrl": fileUrl || "", // get File url
|
|
1062
|
-
"mimeType": messageObject["type"] === "text" ? "" : messageObject?.getAttachment()?.getMimeType(), // get Mime Type
|
|
1315
|
+
"mimeType": messageObject["type"] === "text" ? "" : (messageObject as CometChat.MediaMessage)?.getAttachment()?.getMimeType(), // get Mime Type
|
|
1063
1316
|
}
|
|
1064
1317
|
|
|
1065
1318
|
NativeModules.FileManager.shareMessage(shareObj, (callback) => {
|
|
@@ -1079,8 +1332,12 @@ export const CometChatMessageList = forwardRef<
|
|
|
1079
1332
|
}
|
|
1080
1333
|
}
|
|
1081
1334
|
|
|
1082
|
-
if ((item.getSender()?.getUid() || item?.['sender']?.['uid']) == loggedInUser.current?.['uid']
|
|
1083
|
-
_style.backgroundColor = theme?.palette.getPrimary();
|
|
1335
|
+
if ((item.getSender()?.getUid() || item?.['sender']?.['uid']) == loggedInUser.current?.['uid'])
|
|
1336
|
+
_style.backgroundColor = (alignment !== "leftAligned" && (item.getType() === MessageTypeConstants.text || item.getType() === MessageTypeConstants.meeting)) ? theme?.palette.getPrimary() : theme?.palette.getAccent50();
|
|
1337
|
+
|
|
1338
|
+
if(item?.getDeletedBy()) {
|
|
1339
|
+
_style.backgroundColor = 'transparent';
|
|
1340
|
+
}
|
|
1084
1341
|
|
|
1085
1342
|
return _style;
|
|
1086
1343
|
}, []);
|
|
@@ -1224,16 +1481,23 @@ export const CometChatMessageList = forwardRef<
|
|
|
1224
1481
|
|
|
1225
1482
|
let bubbleAlignment: MessageBubbleAlignmentType = getAlignment(message);
|
|
1226
1483
|
|
|
1227
|
-
|
|
1484
|
+
const onLongPress = () => {
|
|
1485
|
+
if (message.getDeletedBy() != null) return;
|
|
1486
|
+
setSelectedMessage(message)
|
|
1487
|
+
openOptionsForMessage(message, hasTemplate)
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
return <TouchableOpacity activeOpacity={1} onLongPress={() => showOptions ? onLongPress() : undefined} >
|
|
1228
1491
|
<CometChatMessageBubble
|
|
1229
1492
|
id={`${message.getId()}`}
|
|
1230
1493
|
LeadingView={() => !isThreaded && getLeadingView(message)}
|
|
1231
1494
|
HeaderView={() => !isThreaded && getHeaderView(message)}
|
|
1232
|
-
FooterView={() => getFooterView(message, bubbleAlignment)}
|
|
1495
|
+
FooterView={() => (disableReactions || isThreaded) ? null : getFooterView(message, bubbleAlignment)}
|
|
1233
1496
|
alignment={isThreaded ? "left" : bubbleAlignment}
|
|
1234
1497
|
ContentView={hasTemplate.ContentView?.bind(this, message, bubbleAlignment)}
|
|
1235
|
-
ThreadView={() => !isThreaded && getThreadView(message)}
|
|
1498
|
+
ThreadView={() => !isThreaded && getThreadView(message, bubbleAlignment)}
|
|
1236
1499
|
BottomView={() => ChatConfigurator.dataSource.getBottomView(message, bubbleAlignment)} // Note please rewrite this
|
|
1500
|
+
StatusInfoView={() => getStatusInfoView(message, bubbleAlignment)}
|
|
1237
1501
|
style={getStyle(message)}
|
|
1238
1502
|
/>
|
|
1239
1503
|
</TouchableOpacity>
|
|
@@ -1249,9 +1513,86 @@ export const CometChatMessageList = forwardRef<
|
|
|
1249
1513
|
return item['sentAt'] * 1000;
|
|
1250
1514
|
}, [])
|
|
1251
1515
|
|
|
1252
|
-
|
|
1516
|
+
|
|
1517
|
+
const reactToMessage = (emoji: string, messageObj?: CometChat.BaseMessage) => {
|
|
1518
|
+
|
|
1519
|
+
const msgObj = CommonUtils.clone(messageObj) || CommonUtils.clone(selectedMessage);
|
|
1520
|
+
|
|
1521
|
+
const messageId = msgObj?.getId();
|
|
1522
|
+
const reactions = msgObj?.getReactions() || [];
|
|
1523
|
+
const emojiObject = reactions?.find(
|
|
1524
|
+
(reaction: any) => {
|
|
1525
|
+
return reaction?.reaction == emoji;
|
|
1526
|
+
}
|
|
1527
|
+
);
|
|
1528
|
+
if (emojiObject && emojiObject?.getReactedByMe()) {
|
|
1529
|
+
const updatedReactions = [];
|
|
1530
|
+
reactions.forEach((reaction) => {
|
|
1531
|
+
if (reaction?.getReaction() == emoji) {
|
|
1532
|
+
if (reaction?.getCount() === 1) {
|
|
1533
|
+
return;
|
|
1534
|
+
} else {
|
|
1535
|
+
reaction.setCount(reaction?.getCount() - 1);
|
|
1536
|
+
reaction.setReactedByMe(false);
|
|
1537
|
+
updatedReactions.push(reaction);
|
|
1538
|
+
}
|
|
1539
|
+
} else {
|
|
1540
|
+
updatedReactions.push(reaction);
|
|
1541
|
+
}
|
|
1542
|
+
});
|
|
1543
|
+
|
|
1544
|
+
const newMessageObj = CommonUtils.clone(msgObj);
|
|
1545
|
+
newMessageObj.setReactions(updatedReactions);
|
|
1546
|
+
|
|
1547
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, { message: newMessageObj, status: messageStatus.success });
|
|
1548
|
+
CometChat.removeReaction(messageId, emoji).then((message) => {
|
|
1549
|
+
}).catch((error) => {
|
|
1550
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, { message: msgObj, status: messageStatus.success });
|
|
1551
|
+
console.log(error);
|
|
1552
|
+
});
|
|
1553
|
+
} else {
|
|
1554
|
+
const updatedReactions = [];
|
|
1555
|
+
const reactionAvailable = reactions.find((reaction) => {
|
|
1556
|
+
return reaction?.getReaction() == emoji;
|
|
1557
|
+
});
|
|
1558
|
+
reactions.forEach((reaction) => {
|
|
1559
|
+
if (reaction?.getReaction() == emoji) {
|
|
1560
|
+
reaction.setCount(reaction?.getCount() + 1);
|
|
1561
|
+
reaction.setReactedByMe(true);
|
|
1562
|
+
updatedReactions.push(reaction);
|
|
1563
|
+
} else {
|
|
1564
|
+
updatedReactions.push(reaction);
|
|
1565
|
+
}
|
|
1566
|
+
});
|
|
1567
|
+
if (!reactionAvailable) {
|
|
1568
|
+
const react: CometChat.ReactionCount = new CometChat.ReactionCount(emoji, 1, true);
|
|
1569
|
+
updatedReactions.push(react);
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
const newMessageObj = CommonUtils.clone(msgObj);
|
|
1573
|
+
|
|
1574
|
+
newMessageObj.setReactions(updatedReactions);
|
|
1575
|
+
|
|
1576
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, { message: newMessageObj, status: messageStatus.success });
|
|
1577
|
+
|
|
1578
|
+
CometChat.addReaction(messageId, emoji)
|
|
1579
|
+
.then((response: any) => {
|
|
1580
|
+
})
|
|
1581
|
+
.catch((error: any) => {
|
|
1582
|
+
console.log(error);
|
|
1583
|
+
CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, { message: msgObj, status: messageStatus.success });
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
setShowMessageOptions([]);
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
const RenderMessageItem = useCallback(memo(function RenderMessageItem({ item, index }: {
|
|
1591
|
+
item: any;
|
|
1592
|
+
index: number;
|
|
1593
|
+
}) {
|
|
1253
1594
|
let seperatorView = null;
|
|
1254
|
-
const previousMessageDate =
|
|
1595
|
+
const previousMessageDate = messagesContentListRef.current[index - 1] ? new Date(getSentAtTimestamp(messagesContentListRef.current[index - 1])) : null;
|
|
1255
1596
|
const currentMessageDate = new Date(getSentAtTimestamp(item));
|
|
1256
1597
|
|
|
1257
1598
|
const currentDate = isNaN(currentMessageDate.getDate()) ? undefined : `${currentMessageDate.getDate()}-${currentMessageDate.getMonth()}-${currentMessageDate.getFullYear()}`;
|
|
@@ -1277,7 +1618,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
1277
1618
|
{seperatorView}
|
|
1278
1619
|
<MessageView message={item} />
|
|
1279
1620
|
</React.Fragment>
|
|
1280
|
-
};
|
|
1621
|
+
}), []);
|
|
1281
1622
|
|
|
1282
1623
|
const keyExtractor = useCallback((item) => `${item.id}_${item.muid}`, [])
|
|
1283
1624
|
|
|
@@ -1321,7 +1662,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
1321
1662
|
);
|
|
1322
1663
|
}, [])
|
|
1323
1664
|
|
|
1324
|
-
const getLoadingStateView = () => {
|
|
1665
|
+
const getLoadingStateView = useCallback(() => {
|
|
1325
1666
|
if (LoadingStateView)
|
|
1326
1667
|
return LoadingStateView;
|
|
1327
1668
|
|
|
@@ -1330,20 +1671,20 @@ export const CometChatMessageList = forwardRef<
|
|
|
1330
1671
|
<ActivityIndicator size="large" color={messageListStyle?.loadingIconTint} />
|
|
1331
1672
|
</View>
|
|
1332
1673
|
)
|
|
1333
|
-
}
|
|
1674
|
+
}, [])
|
|
1334
1675
|
|
|
1335
|
-
|
|
1676
|
+
const handleScroll = (event) => {
|
|
1336
1677
|
if (event.nativeEvent.contentOffset.y == 0) {
|
|
1337
1678
|
getPreviousMessages();
|
|
1338
1679
|
}
|
|
1339
1680
|
scrollHandler(event);
|
|
1340
1681
|
};
|
|
1341
1682
|
|
|
1342
|
-
|
|
1683
|
+
const onContentSizeChange = useCallback((contentWidth, contentHeight) => {
|
|
1343
1684
|
if (currentScrollPosition.current.y == 0 && currentScrollPosition.current.scrollViewHeight) {
|
|
1344
1685
|
let diff = contentHeight - currentScrollPosition.current.scrollViewHeight;
|
|
1345
1686
|
if (messagesLength.current > prevMessagesLength.current && diff > 0 && !(unreadCount > 0)) {
|
|
1346
|
-
messageListRef.current.scrollTo({ y:
|
|
1687
|
+
messageListRef.current.scrollTo({ y: diff, animated: false })
|
|
1347
1688
|
}
|
|
1348
1689
|
}
|
|
1349
1690
|
|
|
@@ -1357,7 +1698,7 @@ export const CometChatMessageList = forwardRef<
|
|
|
1357
1698
|
currentScrollPosition.current.scrollViewHeight = contentHeight;
|
|
1358
1699
|
}
|
|
1359
1700
|
}
|
|
1360
|
-
}
|
|
1701
|
+
}, [])
|
|
1361
1702
|
|
|
1362
1703
|
const {
|
|
1363
1704
|
height,
|
|
@@ -1401,33 +1742,31 @@ export const CometChatMessageList = forwardRef<
|
|
|
1401
1742
|
</View>
|
|
1402
1743
|
}
|
|
1403
1744
|
|
|
1404
|
-
<
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
)
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
</ScrollView>
|
|
1430
|
-
</SafeAreaView>
|
|
1745
|
+
<ScrollView
|
|
1746
|
+
ref={messageListRef}
|
|
1747
|
+
onScroll={handleScroll}
|
|
1748
|
+
scrollEventThrottle={16} // control how often the scroll event will be fired
|
|
1749
|
+
onLayout={() => {
|
|
1750
|
+
!currentScrollPosition.current.scrollViewHeight && messageListRef.current.scrollToEnd({ animated: false })
|
|
1751
|
+
}}
|
|
1752
|
+
onContentSizeChange={onContentSizeChange}
|
|
1753
|
+
>
|
|
1754
|
+
|
|
1755
|
+
{messagesList?.length ? (
|
|
1756
|
+
messagesList
|
|
1757
|
+
// .slice(0)
|
|
1758
|
+
// .reverse()
|
|
1759
|
+
.map((item, index) => (
|
|
1760
|
+
<View
|
|
1761
|
+
key={keyExtractor(item)}>
|
|
1762
|
+
<RenderMessageItem item={item} index={index} />
|
|
1763
|
+
{itemSeperator()}
|
|
1764
|
+
</View>
|
|
1765
|
+
))
|
|
1766
|
+
) : (
|
|
1767
|
+
getEmptyTextView()
|
|
1768
|
+
)}
|
|
1769
|
+
</ScrollView>
|
|
1431
1770
|
{CustomListHeader && <CustomListHeader />}
|
|
1432
1771
|
{ongoingCallView}
|
|
1433
1772
|
{
|
|
@@ -1509,6 +1848,8 @@ export const CometChatMessageList = forwardRef<
|
|
|
1509
1848
|
infoObject.current = null;
|
|
1510
1849
|
setMessageInfo(false);
|
|
1511
1850
|
}} isOpen={showMessageOptions.length > 0 || ExtensionsComponent || messageInfo}
|
|
1851
|
+
sliderMaxHeight={Dimensions.get('window').height * 0.5}
|
|
1852
|
+
sliderMinHeight={Dimensions.get('window').height * 0.5}
|
|
1512
1853
|
>
|
|
1513
1854
|
{
|
|
1514
1855
|
ExtensionsComponent ? ExtensionsComponent :
|
|
@@ -1526,19 +1867,68 @@ export const CometChatMessageList = forwardRef<
|
|
|
1526
1867
|
messageInformationConfiguration?.onBack && messageInformationConfiguration.onBack();
|
|
1527
1868
|
}}
|
|
1528
1869
|
/> :
|
|
1529
|
-
<
|
|
1870
|
+
<View>
|
|
1871
|
+
{!disableReactions && <CometChatQuickReactions
|
|
1872
|
+
// quickReactions={quickReactions}
|
|
1873
|
+
onReactionPress={reactToMessage}
|
|
1874
|
+
onAddReactionPress={() => {
|
|
1875
|
+
setShowMessageOptions([])
|
|
1876
|
+
setShowEmojiKeyboard(true)
|
|
1877
|
+
}}
|
|
1878
|
+
{...quickReactionConfiguration}
|
|
1879
|
+
/>}
|
|
1880
|
+
<View style={{
|
|
1881
|
+
maxHeight: (Dimensions.get('window').height * 0.5) - (disableReactions ? 0 : 100),
|
|
1882
|
+
minHeight: (Dimensions.get('window').height * 0.5) - (disableReactions ? 0 : 100),
|
|
1883
|
+
overflow: "scroll"
|
|
1884
|
+
}}>
|
|
1885
|
+
<CometChatActionSheet hideHeader={hideActionSheetHeader} actions={showMessageOptions} style={_actionStyle} />
|
|
1886
|
+
</View>
|
|
1887
|
+
</View>
|
|
1530
1888
|
}
|
|
1531
1889
|
</CometChatBottomSheet>
|
|
1890
|
+
<CometChatBottomSheet
|
|
1891
|
+
isOpen={showEmojiKeyboard}
|
|
1892
|
+
onClose={() => setShowEmojiKeyboard(false)}
|
|
1893
|
+
>
|
|
1894
|
+
<CometChatEmojiKeyboard
|
|
1895
|
+
onClick={(item) => {
|
|
1896
|
+
setShowEmojiKeyboard(false)
|
|
1897
|
+
reactToMessage(item, selectedMessage)
|
|
1898
|
+
}}
|
|
1899
|
+
style={{
|
|
1900
|
+
height: (Dimensions.get('window').height * 0.5) - 54,
|
|
1901
|
+
...emojiKeyboardStyle
|
|
1902
|
+
}}
|
|
1903
|
+
/>
|
|
1904
|
+
</CometChatBottomSheet>
|
|
1905
|
+
|
|
1906
|
+
<CometChatBottomSheet
|
|
1907
|
+
isOpen={showReactionsList}
|
|
1908
|
+
onClose={() => {
|
|
1909
|
+
setShowReactionsList(false);
|
|
1910
|
+
setSelectedEmoji(null);
|
|
1911
|
+
}}
|
|
1912
|
+
sliderMaxHeight={Dimensions.get('window').height * 0.5}
|
|
1913
|
+
sliderMinHeight={Dimensions.get('window').height * 0.5}
|
|
1914
|
+
>
|
|
1915
|
+
<CometChatReactionsList
|
|
1916
|
+
messageObject={selectedMessage}
|
|
1917
|
+
selectedReaction={selectedEmoji}
|
|
1918
|
+
{...reactionsListConfiguration}
|
|
1919
|
+
onPress={(messageReaction: CometChat.Reaction, messageObject: CometChat.BaseMessage) => {
|
|
1920
|
+
if (reactionsListConfiguration?.onPress) {
|
|
1921
|
+
reactionsListConfiguration.onPress(messageReaction, messageObject);
|
|
1922
|
+
return;
|
|
1923
|
+
}
|
|
1924
|
+
reactToMessage(messageReaction?.getReaction(), messageObject);
|
|
1925
|
+
if (messageObject?.getReactions()?.length === 1 && messageObject?.getReactions()?.[0]?.['count'] == 1) {
|
|
1926
|
+
setShowReactionsList(false);
|
|
1927
|
+
setSelectedEmoji(null);
|
|
1928
|
+
}
|
|
1929
|
+
}}
|
|
1930
|
+
/>
|
|
1931
|
+
</CometChatBottomSheet>
|
|
1532
1932
|
</View>
|
|
1533
1933
|
)
|
|
1534
|
-
});
|
|
1535
|
-
|
|
1536
|
-
CometChatMessageList.defaultProps = {
|
|
1537
|
-
timeStampAlignment: "bottom",
|
|
1538
|
-
templates: [],
|
|
1539
|
-
showAvatar: true,
|
|
1540
|
-
alignment: "standard",
|
|
1541
|
-
errorStateText: localize("SOMETHING_WRONG"),
|
|
1542
|
-
emptyStateText: localize("NO_MESSAGES_FOUND"),
|
|
1543
|
-
disableReceipt: false
|
|
1544
|
-
}
|
|
1934
|
+
}));
|