@cometchat/chat-uikit-react-native 4.0.0-beta.1.1 → 4.0.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 +10 -4
- 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/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/.gitignore +3 -0
- package/android/.idea/gradle.xml +13 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/build.gradle +2 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradlew +234 -0
- package/android/gradlew.bat +89 -0
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +19 -2
- package/android/src/main/java/com/reactnativecometchatuikit/CometChatImageViewer.java +1 -0
- package/android/src/main/java/com/reactnativecometchatuikit/CometChatVideoPlayer.java +1 -0
- package/android/src/main/java/com/reactnativecometchatuikit/CometChatWebView.java +38 -0
- package/android/src/main/java/com/reactnativecometchatuikit/CometchatUiKitPackage.java +1 -0
- package/android/src/main/java/com/reactnativecometchatuikit/FileManager.java +223 -1
- package/android/src/main/java/com/reactnativecometchatuikit/WebViewManager.java +38 -0
- package/android/src/main/res/xml/filepaths.xml +6 -0
- package/ios/CometchatUiKit.xcodeproj/project.pbxproj +12 -0
- package/ios/CometchatUiKit.xcodeproj/project.xcworkspace/xcuserdata/ashishjajoo.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/FileManager.m +265 -37
- package/ios/WebViewManager.h +7 -0
- package/ios/WebViewManager.m +33 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.d.ts +1 -1
- package/lib/CometChatAddMembers/CometChatAddMembers.d.ts +1 -1
- package/lib/CometChatAddMembers/CometChatAddMembers.js +1 -1
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.d.ts +1 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +1 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js +1 -1
- 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 +5 -1
- package/lib/CometChatConversations/CometChatConversations.js +22 -7
- package/lib/CometChatConversations/CometChatConversations.js.map +1 -1
- package/lib/CometChatConversations/ConversationsConfiguration.d.ts +1 -1
- package/lib/CometChatConversations/style.d.ts +4 -4
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.d.ts +3 -1
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js +84 -5
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js.map +1 -1
- 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 +4 -4
- package/lib/CometChatCreateGroup/CometChatCreateGroup.d.ts +1 -1
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js +1 -1
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.d.ts +1 -1
- package/lib/CometChatDetails/CometChatDetails.d.ts +1 -1
- package/lib/CometChatDetails/CometChatDetails.js +2 -1
- package/lib/CometChatDetails/CometChatDetails.js.map +1 -1
- package/lib/CometChatDetails/DetailsConfiguration.d.ts +1 -1
- package/lib/CometChatDetails/listners.js +1 -1
- package/lib/CometChatGroupMembers/CometChatGroupMembers.d.ts +1 -1
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js +13 -1
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.d.ts +1 -1
- package/lib/CometChatGroupMembers/style.d.ts +5 -5
- package/lib/CometChatGroups/CometChatGroups.d.ts +5 -1
- package/lib/CometChatGroups/CometChatGroups.js +18 -5
- package/lib/CometChatGroups/CometChatGroups.js.map +1 -1
- package/lib/CometChatGroups/GroupsConfiguration.d.ts +1 -1
- package/lib/CometChatGroups/style.d.ts +1 -1
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.d.ts +1 -1
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js +71 -8
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -1
- package/lib/CometChatGroupsWithMessages/styles.d.ts +4 -4
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.d.ts +1 -1
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js +1 -1
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.d.ts +1 -1
- package/lib/CometChatMessageComposer/CometChatMessageComposer.d.ts +65 -1
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +39 -5
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.d.ts +11 -1
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js +9 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js.map +1 -1
- package/lib/CometChatMessageComposer/resources/index.d.ts +1 -0
- package/lib/CometChatMessageComposer/resources/index.js +3 -1
- package/lib/CometChatMessageComposer/resources/index.js.map +1 -1
- package/lib/CometChatMessageComposer/styles.d.ts +1 -0
- package/lib/CometChatMessageComposer/styles.js +2 -1
- package/lib/CometChatMessageComposer/styles.js.map +1 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +1 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +7 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.d.ts +1 -1
- package/lib/CometChatMessageHeader/listners.js +1 -1
- package/lib/CometChatMessageHeader/styles.d.ts +1 -1
- 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 +3 -1
- package/lib/CometChatMessageList/CometChatMessageList.js +261 -18
- package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
- package/lib/CometChatMessageList/MessageListConfiguration.d.ts +1 -1
- package/lib/CometChatMessageList/style.d.ts +3 -3
- package/lib/CometChatMessages/CometChatMessages.d.ts +1 -1
- package/lib/CometChatMessages/CometChatMessages.js +34 -1
- package/lib/CometChatMessages/CometChatMessages.js.map +1 -1
- package/lib/CometChatMessages/MessagesConfiguration.d.ts +1 -1
- package/lib/CometChatMessages/style.d.ts +2 -2
- package/lib/CometChatTabs/CometChatTabs.d.ts +1 -0
- package/lib/CometChatTabs/CometChatTabs.js +61 -22
- package/lib/CometChatTabs/CometChatTabs.js.map +1 -1
- package/lib/CometChatTabs/CometChatTabsStyle.d.ts +12 -2
- package/lib/CometChatTabs/CometChatTabsStyle.js +11 -1
- package/lib/CometChatTabs/CometChatTabsStyle.js.map +1 -1
- package/lib/CometChatTabs/TabItemStyle.d.ts +4 -2
- package/lib/CometChatTabs/TabItemStyle.js +3 -1
- package/lib/CometChatTabs/TabItemStyle.js.map +1 -1
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.d.ts +1 -1
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js +5 -3
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js.map +1 -1
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.d.ts +1 -1
- package/lib/CometChatThreadedMessages/style.d.ts +3 -2
- package/lib/CometChatThreadedMessages/style.js +4 -2
- package/lib/CometChatThreadedMessages/style.js.map +1 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +1 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js +1 -1
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.d.ts +1 -1
- package/lib/CometChatUsers/CometChatUsers.d.ts +1 -1
- package/lib/CometChatUsers/CometChatUsers.js +1 -1
- package/lib/CometChatUsers/UsersConfiguration.d.ts +1 -1
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.d.ts +1 -1
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js +29 -3
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -1
- package/lib/CometChatUsersWithMessages/styles.d.ts +4 -4
- package/lib/calls/CallUtils.d.ts +1 -1
- package/lib/calls/CallUtils.js +1 -1
- package/lib/calls/CallingDetailsUtils.d.ts +1 -1
- package/lib/calls/CallingExtension.d.ts +3 -1
- package/lib/calls/CallingExtension.js +8 -2
- package/lib/calls/CallingExtension.js.map +1 -1
- package/lib/calls/CallingExtentionDecorator.d.ts +1 -1
- package/lib/calls/CallingExtentionDecorator.js +5 -2
- package/lib/calls/CallingExtentionDecorator.js.map +1 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.d.ts +1 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.d.ts +1 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +1 -1
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.d.ts +1 -1
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.js +1 -1
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.d.ts +1 -1
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.js +1 -1
- package/lib/calls/CometChatCallHistoryWithDetails/style.d.ts +2 -2
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -1
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +1 -1
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.d.ts +1 -1
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js +1 -1
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -1
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +23 -15
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -1
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js +1 -1
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js.map +1 -1
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +1 -1
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js +5 -4
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +1 -1
- package/lib/extensions/CollaborativeBubble/styles.js +1 -1
- package/lib/extensions/CollaborativeBubble/styles.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +3 -2
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js +8 -3
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js.map +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +1 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +3 -2
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js +10 -3
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js.map +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +1 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +1 -1
- package/lib/extensions/ImageModeration/ImageModerationDecorator.d.ts +1 -1
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js +1 -1
- package/lib/extensions/ImageModeration/ImageModerationExtension.d.ts +3 -2
- package/lib/extensions/ImageModeration/ImageModerationExtension.js +10 -3
- package/lib/extensions/ImageModeration/ImageModerationExtension.js.map +1 -1
- package/lib/extensions/ImageModeration/ImageModerationFilter.d.ts +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtention.d.ts +3 -2
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js +10 -3
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js.map +1 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.d.ts +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +1 -1
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.d.ts +3 -2
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js +10 -3
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js.map +1 -1
- package/lib/extensions/Polls/Polls.d.ts +1 -1
- package/lib/extensions/Polls/Polls.js +1 -1
- package/lib/extensions/Polls/PollsBubble.d.ts +1 -1
- package/lib/extensions/Polls/PollsDecorator.d.ts +1 -1
- package/lib/extensions/Polls/PollsDecorator.js +1 -1
- package/lib/extensions/Polls/PollsExtension.d.ts +3 -2
- package/lib/extensions/Polls/PollsExtension.js +10 -3
- package/lib/extensions/Polls/PollsExtension.js.map +1 -1
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.d.ts +1 -1
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js +0 -2
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js.map +1 -1
- package/lib/extensions/Reactions/ReactionsDecorator.d.ts +1 -1
- package/lib/extensions/Reactions/ReactionsDecorator.js +1 -1
- package/lib/extensions/Reactions/ReactionsExtension.d.ts +3 -2
- package/lib/extensions/Reactions/ReactionsExtension.js +10 -3
- package/lib/extensions/Reactions/ReactionsExtension.js.map +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.d.ts +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesExtension.d.ts +3 -2
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js +10 -3
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js.map +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.d.ts +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js +1 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.d.ts +6 -6
- package/lib/extensions/Stickers/StickersExtension.d.ts +3 -2
- package/lib/extensions/Stickers/StickersExtension.js +10 -4
- package/lib/extensions/Stickers/StickersExtension.js.map +1 -1
- package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +1 -1
- package/lib/extensions/Stickers/StickersExtensionDecorator.js +1 -1
- package/lib/extensions/TextModeration/TextModerationExtension.d.ts +3 -1
- package/lib/extensions/TextModeration/TextModerationExtension.js +19 -2
- package/lib/extensions/TextModeration/TextModerationExtension.js.map +1 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.d.ts +1 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +3 -2
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js +10 -3
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js.map +1 -1
- package/lib/index.d.ts +4 -2
- package/lib/index.js +6 -4
- package/lib/index.js.map +1 -1
- package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +8 -1
- package/lib/shared/CometChatUiKit/CometChatUIKit.js +54 -18
- package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -1
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.d.ts +1 -1
- package/lib/shared/CometChatUiKit/UIKitSettings.d.ts +3 -3
- package/lib/shared/CometChatUiKit/UIKitSettings.js +3 -11
- package/lib/shared/CometChatUiKit/UIKitSettings.js.map +1 -1
- 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/constants/UIKitConstants.d.ts +0 -1
- package/lib/shared/constants/UIKitConstants.js +3 -3
- package/lib/shared/constants/UIKitConstants.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +6 -0
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -1
- package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +4 -2
- package/lib/shared/events/CometChatUIEventHandler/Listener.js +9 -2
- package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -1
- package/lib/shared/events/CometChatUIEvents.d.ts +1 -0
- package/lib/shared/events/CometChatUIEvents.js +1 -0
- package/lib/shared/events/CometChatUIEvents.js.map +1 -1
- package/lib/shared/framework/DataSource.d.ts +1 -1
- package/lib/shared/framework/DataSourceDecorator.d.ts +1 -1
- package/lib/shared/framework/ExtensionsDataSource.d.ts +5 -2
- package/lib/shared/framework/ExtensionsDataSource.js +13 -1
- package/lib/shared/framework/ExtensionsDataSource.js.map +1 -1
- package/lib/shared/framework/MessageDataSource.d.ts +2 -2
- package/lib/shared/framework/MessageDataSource.js +39 -17
- package/lib/shared/framework/MessageDataSource.js.map +1 -1
- package/lib/shared/framework/index.js +2 -1
- package/lib/shared/framework/index.js.map +1 -1
- package/lib/shared/framework/resources/index.d.ts +5 -1
- package/lib/shared/framework/resources/index.js +13 -3
- package/lib/shared/framework/resources/index.js.map +1 -1
- 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/types/index.d.ts +3 -4
- package/lib/shared/index.d.ts +2 -2
- package/lib/shared/index.js +4 -4
- package/lib/shared/index.js.map +1 -1
- package/lib/shared/modals/CometChatMessageOption.d.ts +1 -1
- package/lib/shared/modals/CometChatMessageTemplate.d.ts +1 -1
- package/lib/shared/modals/CometChatMessageTemplate.js +1 -1
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +78 -0
- package/lib/shared/resources/CometChatLocalize/resources/ar/translation.json +7 -1
- package/lib/shared/resources/CometChatLocalize/resources/de/translation.json +7 -1
- package/lib/shared/resources/CometChatLocalize/resources/en/translation.json +9 -3
- package/lib/shared/resources/CometChatLocalize/resources/es/translation.json +7 -1
- package/lib/shared/resources/CometChatLocalize/resources/fr/translation.json +7 -1
- package/lib/shared/resources/CometChatLocalize/resources/hi/translation.json +7 -1
- package/lib/shared/resources/CometChatLocalize/resources/lt/translation.json +7 -1
- package/lib/shared/resources/CometChatLocalize/resources/ms/translation.json +7 -1
- package/lib/shared/resources/CometChatLocalize/resources/pt/translation.json +7 -1
- package/lib/shared/resources/CometChatLocalize/resources/ru/translation.json +7 -1
- package/lib/shared/resources/CometChatLocalize/resources/sv/translation.json +7 -1
- package/lib/shared/resources/CometChatLocalize/resources/zh/translation.json +7 -1
- package/lib/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +7 -1
- package/lib/shared/utils/CometChatMessageHelper/index.js +1 -1
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +2 -1
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +1 -1
- package/lib/shared/utils/CometChatMessagePreview/style.d.ts +1 -0
- package/lib/shared/utils/CometChatMessagePreview/style.js +19 -5
- package/lib/shared/utils/CometChatMessagePreview/style.js.map +1 -1
- package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +1 -1
- 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 +1 -1
- package/lib/shared/utils/conversationUtils.js +1 -1
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +3 -3
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +1 -1
- package/lib/shared/views/CometChatAvatar/styles.d.ts +2 -2
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +1 -1
- package/lib/shared/views/CometChatBottomSheet/style.d.ts +1 -1
- package/lib/shared/views/CometChatCard/style.d.ts +2 -2
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +38 -21
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/style.d.ts +1 -1
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js +12 -9
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +1 -1
- package/lib/shared/views/CometChatFileBubble/resources/index.d.ts +2 -1
- package/lib/shared/views/CometChatFileBubble/resources/index.js +2 -1
- package/lib/shared/views/CometChatFileBubble/resources/index.js.map +1 -1
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +28 -10
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +1 -1
- package/lib/shared/views/CometChatList/CometChatList.d.ts +2 -0
- package/lib/shared/views/CometChatList/CometChatList.js +51 -4
- package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
- package/lib/shared/views/CometChatList/Header.d.ts +1 -1
- package/lib/shared/views/CometChatList/Header.js +2 -2
- package/lib/shared/views/CometChatList/Header.js.map +1 -1
- package/lib/shared/views/CometChatList/styles.d.ts +8 -8
- package/lib/shared/views/CometChatListItem/style.d.ts +5 -5
- 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/CometChatMessageInput/CometChatMessageInput.js +2 -2
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +1 -1
- package/lib/shared/views/CometChatMessageInput/styles.d.ts +1 -0
- package/lib/shared/views/CometChatMessageInput/styles.js +1 -0
- package/lib/shared/views/CometChatMessageInput/styles.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +23 -4
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
- package/lib/shared/views/SwipeRow/style.d.ts +3 -3
- package/lib/shared/views/index.d.ts +2 -1
- package/lib/shared/views/index.js +2 -1
- package/lib/shared/views/index.js.map +1 -1
- package/package.json +7 -6
- package/src/.DS_Store +0 -0
- package/src/CometChatAddMembers/AddMembersConfiguration.tsx +57 -0
- package/src/CometChatAddMembers/CometChatAddMembers.tsx +100 -0
- package/src/CometChatAddMembers/index.ts +8 -0
- package/src/CometChatBannedMembers/BannedMembersConfiguration.tsx +60 -0
- package/src/CometChatBannedMembers/CometChatBannedMembers.tsx +142 -0
- package/src/CometChatBannedMembers/index.ts +8 -0
- package/src/CometChatBannedMembers/resources/index.ts +3 -0
- package/src/CometChatContacts/CometChatContacts.tsx +226 -0
- package/src/CometChatContacts/ContactsConfiguration.tsx +68 -0
- package/src/CometChatContacts/ContactsStyle.ts +60 -0
- package/src/CometChatContacts/Header.tsx +167 -0
- package/src/CometChatContacts/index.ts +11 -0
- package/src/CometChatContacts/styles.ts +105 -0
- package/src/CometChatConversations/CometChatConversations.tsx +1034 -0
- package/src/CometChatConversations/ConversationsConfiguration.ts +181 -0
- package/src/CometChatConversations/ConversationsStyle.ts +88 -0
- package/src/CometChatConversations/index.ts +12 -0
- package/src/CometChatConversations/resources/index.ts +29 -0
- package/src/CometChatConversations/style.ts +63 -0
- package/src/CometChatConversationsWithMessages/CometChatConversationsWithMessages.tsx +230 -0
- package/src/CometChatConversationsWithMessages/index.ts +5 -0
- package/src/CometChatConversationsWithMessages/resources/index.ts +5 -0
- package/src/CometChatConversationsWithMessages/resources/start.png +0 -0
- package/src/CometChatConversationsWithMessages/styles.ts +15 -0
- package/src/CometChatCreateGroup/CometChatCreateGroup.tsx +387 -0
- package/src/CometChatCreateGroup/CreateGroupConfiguration.ts +35 -0
- package/src/CometChatCreateGroup/Header.tsx +60 -0
- package/src/CometChatCreateGroup/index.ts +16 -0
- package/src/CometChatCreateGroup/resources/index.ts +8 -0
- package/src/CometChatCreateGroup/style.ts +44 -0
- package/src/CometChatDetails/CometChatDetails.tsx +980 -0
- package/src/CometChatDetails/DetailsConfiguration.tsx +71 -0
- package/src/CometChatDetails/Header.tsx +42 -0
- package/src/CometChatDetails/index.ts +17 -0
- package/src/CometChatDetails/listners.ts +88 -0
- package/src/CometChatDetails/resources/index.ts +12 -0
- package/src/CometChatDetails/styles.ts +23 -0
- package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +639 -0
- package/src/CometChatGroupMembers/GroupMemberConfiguration.ts +94 -0
- package/src/CometChatGroupMembers/GroupMemberStyle.ts +91 -0
- package/src/CometChatGroupMembers/GroupScopeStyle.ts +68 -0
- package/src/CometChatGroupMembers/index.ts +16 -0
- package/src/CometChatGroupMembers/resources/index.ts +11 -0
- package/src/CometChatGroupMembers/style.ts +31 -0
- package/src/CometChatGroups/CometChatGroups.tsx +611 -0
- package/src/CometChatGroups/GroupsConfiguration.ts +121 -0
- package/src/CometChatGroups/GroupsStyle.ts +112 -0
- package/src/CometChatGroups/index.ts +12 -0
- package/src/CometChatGroups/resources/index.ts +21 -0
- package/src/CometChatGroups/style.ts +19 -0
- package/src/CometChatGroupsWithMessages/CometChatGroupsWithMessages.tsx +231 -0
- package/src/CometChatGroupsWithMessages/index.ts +5 -0
- package/src/CometChatGroupsWithMessages/resources/index.ts +4 -0
- package/src/CometChatGroupsWithMessages/styles.ts +15 -0
- package/src/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.tsx +270 -0
- package/src/CometChatJoinProtectedGroup/Header.tsx +52 -0
- package/src/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.ts +29 -0
- package/src/CometChatJoinProtectedGroup/index.ts +16 -0
- package/src/CometChatJoinProtectedGroup/resources/index.ts +6 -0
- package/src/CometChatJoinProtectedGroup/style.ts +11 -0
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +1262 -0
- package/src/CometChatMessageComposer/MessageComposerConfiguration.tsx +81 -0
- package/src/CometChatMessageComposer/index.ts +17 -0
- package/src/CometChatMessageComposer/resources/index.ts +19 -0
- package/src/CometChatMessageComposer/resources/microphone.png +0 -0
- package/src/CometChatMessageComposer/styles.ts +31 -0
- package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +504 -0
- package/src/CometChatMessageHeader/MessageHeaderConfiguration.tsx +61 -0
- package/src/CometChatMessageHeader/index.ts +16 -0
- package/src/CometChatMessageHeader/listners.ts +73 -0
- package/src/CometChatMessageHeader/resources/index.ts +8 -0
- package/src/CometChatMessageHeader/styles.ts +16 -0
- package/src/CometChatMessageInformation/.DS_Store +0 -0
- package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +302 -0
- package/src/CometChatMessageInformation/MessageInformationConfiguration.tsx +13 -0
- package/src/CometChatMessageInformation/MessageInformationStyle.ts +12 -0
- package/src/CometChatMessageInformation/index.ts +13 -0
- package/src/CometChatMessageInformation/resources/index.ts +5 -0
- package/src/CometChatMessageInformation/styles.ts +26 -0
- package/src/CometChatMessageList/CometChatMessageList.tsx +1408 -0
- package/src/CometChatMessageList/MessageListConfiguration.ts +130 -0
- package/src/CometChatMessageList/MessageListStyle.ts +75 -0
- package/src/CometChatMessageList/index.ts +23 -0
- package/src/CometChatMessageList/resources/index.ts +13 -0
- package/src/CometChatMessageList/style.ts +55 -0
- package/src/CometChatMessages/CometChatMessages.tsx +334 -0
- package/src/CometChatMessages/MessageStyle.ts +34 -0
- package/src/CometChatMessages/MessagesConfiguration.ts +53 -0
- package/src/CometChatMessages/index.ts +15 -0
- package/src/CometChatMessages/resources/index.ts +5 -0
- package/src/CometChatMessages/style.ts +24 -0
- package/src/CometChatTabs/CometChatTabs.tsx +190 -0
- package/src/CometChatTabs/CometChatTabsStyle.ts +43 -0
- package/src/CometChatTabs/TabItemStyle.ts +55 -0
- package/src/CometChatTabs/TabItems.ts +11 -0
- package/src/CometChatTabs/index.ts +11 -0
- package/src/CometChatThreadedMessages/CometChatThreadedMessages.tsx +294 -0
- package/src/CometChatThreadedMessages/Header.tsx +57 -0
- package/src/CometChatThreadedMessages/ThreadedMessagesConfiguration.ts +29 -0
- package/src/CometChatThreadedMessages/index.ts +16 -0
- package/src/CometChatThreadedMessages/resources/index.ts +14 -0
- package/src/CometChatThreadedMessages/style.ts +27 -0
- package/src/CometChatTransferOwnership/CometChatTransferOwnership.tsx +144 -0
- package/src/CometChatTransferOwnership/TransferOwnershipConfiguration.ts +59 -0
- package/src/CometChatTransferOwnership/index.ts +15 -0
- package/src/CometChatUsers/CometChatUsers.tsx +173 -0
- package/src/CometChatUsers/UsersConfiguration.tsx +58 -0
- package/src/CometChatUsers/index.ts +14 -0
- package/src/CometChatUsersWithMessages/CometChatUsersWithMessages.tsx +127 -0
- package/src/CometChatUsersWithMessages/index.ts +5 -0
- package/src/CometChatUsersWithMessages/styles.ts +15 -0
- package/src/calls/CallEvents.ts +9 -0
- package/src/calls/CallUtils.ts +71 -0
- package/src/calls/CallingConfiguration.ts +5 -0
- package/src/calls/CallingDetailsUtils.tsx +39 -0
- package/src/calls/CallingExtension.tsx +48 -0
- package/src/calls/CallingExtentionDecorator.tsx +204 -0
- package/src/calls/CallingPackage.ts +8 -0
- package/src/calls/CometChatCallBubble/CallBubbleConfiguration.ts +23 -0
- package/src/calls/CometChatCallBubble/CallBubbleStyle.ts +47 -0
- package/src/calls/CometChatCallBubble/CometChatCallBubble.tsx +54 -0
- package/src/calls/CometChatCallBubble/index.ts +11 -0
- package/src/calls/CometChatCallBubble/resources/index.ts +9 -0
- package/src/calls/CometChatCallBubble/styles.ts +22 -0
- package/src/calls/CometChatCallButtons/CallButtonStyle.ts +35 -0
- package/src/calls/CometChatCallButtons/CometChatCallButtonConfiguration.ts +41 -0
- package/src/calls/CometChatCallButtons/CometChatCallButtons.tsx +340 -0
- package/src/calls/CometChatCallButtons/index.ts +11 -0
- package/src/calls/CometChatCallButtons/resources/index.ts +7 -0
- package/src/calls/CometChatCallButtons/style.ts +14 -0
- package/src/calls/CometChatCallDetails/CallDetailsConfiguration.ts +68 -0
- package/src/calls/CometChatCallDetails/CallDetailsStyle.ts +52 -0
- package/src/calls/CometChatCallDetails/CometChatCallDetails.tsx +268 -0
- package/src/calls/CometChatCallDetails/index.ts +9 -0
- package/src/calls/CometChatCallDetails/resources/index.ts +4 -0
- package/src/calls/CometChatCallDetails/style.ts +14 -0
- package/src/calls/CometChatCallHistory/.DS_Store +0 -0
- package/src/calls/CometChatCallHistory/CallHistoryConfiguration.ts +77 -0
- package/src/calls/CometChatCallHistory/CallHistoryStyle.ts +34 -0
- package/src/calls/CometChatCallHistory/CometChatCallHistory.tsx +422 -0
- package/src/calls/CometChatCallHistory/index.ts +9 -0
- package/src/calls/CometChatCallHistory/resources/index.ts +17 -0
- package/src/calls/CometChatCallHistory/style.ts +23 -0
- package/src/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.tsx +54 -0
- package/src/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.ts +7 -0
- package/src/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.ts +3 -0
- package/src/calls/CometChatCallHistoryWithDetails/index.ts +8 -0
- package/src/calls/CometChatCallHistoryWithDetails/style.ts +11 -0
- package/src/calls/CometChatIncomingCall/CometChatIncomingCall.tsx +276 -0
- package/src/calls/CometChatIncomingCall/IncomingCallStyle.ts +75 -0
- package/src/calls/CometChatIncomingCall/index.ts +9 -0
- package/src/calls/CometChatIncomingCall/resources/index.ts +11 -0
- package/src/calls/CometChatIncomingCall/styles.ts +11 -0
- package/src/calls/CometChatOngoingCall/CometChatOngoingCall.tsx +67 -0
- package/src/calls/CometChatOngoingCall/OngoingCallStyle.ts +25 -0
- package/src/calls/CometChatOngoingCall/index.ts +8 -0
- package/src/calls/CometChatOutgoingCall/CometChatOutgoingCall.tsx +263 -0
- package/src/calls/CometChatOutgoingCall/OutgoingCallConfiguration.ts +33 -0
- package/src/calls/CometChatOutgoingCall/OutgoingCallStyle.ts +39 -0
- package/src/calls/CometChatOutgoingCall/index.ts +9 -0
- package/src/calls/CometChatOutgoingCall/resources/index.ts +5 -0
- package/src/calls/index.ts +39 -0
- package/src/calls/resources/index.ts +7 -0
- package/src/extensions/CollaborativeBubble/CollaborativeBubbleStyle.ts +97 -0
- package/src/extensions/CollaborativeBubble/CometChatCollaborativeBubble.tsx +106 -0
- package/src/extensions/CollaborativeBubble/resources/index.ts +4 -0
- package/src/extensions/CollaborativeBubble/styles.ts +80 -0
- package/src/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.tsx +26 -0
- package/src/extensions/CollaborativeDocument/CollaborativeDocumentExtension.tsx +38 -0
- package/src/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.tsx +204 -0
- package/src/extensions/CollaborativeDocument/index.ts +12 -0
- package/src/extensions/CollaborativeDocument/resources/index.ts +5 -0
- package/src/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.tsx +26 -0
- package/src/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.tsx +38 -0
- package/src/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.tsx +209 -0
- package/src/extensions/CollaborativeWhiteboard/index.ts +12 -0
- package/src/extensions/CollaborativeWhiteboard/resources/index.ts +5 -0
- package/src/extensions/ExtensionConstants.tsx +54 -0
- package/src/extensions/ExtensionModerator.tsx +60 -0
- package/src/extensions/ImageModeration/ImageModerationDecorator.tsx +82 -0
- package/src/extensions/ImageModeration/ImageModerationExtension.tsx +43 -0
- package/src/extensions/ImageModeration/ImageModerationFilter.tsx +145 -0
- package/src/extensions/ImageModeration/index.ts +10 -0
- package/src/extensions/ImageModeration/resources/index.ts +3 -0
- package/src/extensions/LinkPreview/LInkPreviewBubbleStyle.ts +28 -0
- package/src/extensions/LinkPreview/LinkPreviewBubble.tsx +73 -0
- package/src/extensions/LinkPreview/LinkPreviewConfiguration.ts +27 -0
- package/src/extensions/LinkPreview/LinkPreviewExtention.tsx +25 -0
- package/src/extensions/LinkPreview/LinkPreviewExtentionDecorator.tsx +54 -0
- package/src/extensions/LinkPreview/index.ts +15 -0
- package/src/extensions/LinkPreview/resources/index.ts +5 -0
- package/src/extensions/MessageTranslation/MessageTranslationBubble.tsx +128 -0
- package/src/extensions/MessageTranslation/MessageTranslationDecorator.tsx +216 -0
- package/src/extensions/MessageTranslation/MessageTranslationExtension.tsx +47 -0
- package/src/extensions/MessageTranslation/index.ts +13 -0
- package/src/extensions/MessageTranslation/resources/index.ts +5 -0
- package/src/extensions/Polls/Header.tsx +71 -0
- package/src/extensions/Polls/Polls.tsx +454 -0
- package/src/extensions/Polls/PollsBubble.tsx +330 -0
- package/src/extensions/Polls/PollsConfigurations.ts +16 -0
- package/src/extensions/Polls/PollsDecorator.tsx +172 -0
- package/src/extensions/Polls/PollsExtension.tsx +39 -0
- package/src/extensions/Polls/index.ts +14 -0
- package/src/extensions/Polls/resources/index.ts +14 -0
- package/src/extensions/Polls/style.ts +40 -0
- package/src/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.tsx +249 -0
- package/src/extensions/Reactions/CometChatMessageReactions/index.ts +3 -0
- package/src/extensions/Reactions/CometChatMessageReactions/style.ts +42 -0
- package/src/extensions/Reactions/ReactionsDecorator.tsx +164 -0
- package/src/extensions/Reactions/ReactionsExtension.tsx +48 -0
- package/src/extensions/Reactions/index.ts +4 -0
- package/src/extensions/Reactions/resources/index.ts +2 -0
- package/src/extensions/SmartReplies/SmartRepliesDecorator.tsx +135 -0
- package/src/extensions/SmartReplies/SmartRepliesExtension.tsx +52 -0
- package/src/extensions/SmartReplies/SmartRepliesView.tsx +218 -0
- package/src/extensions/SmartReplies/index.ts +3 -0
- package/src/extensions/SmartReplies/resources/index.ts +5 -0
- package/src/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.tsx +152 -0
- package/src/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.ts +20 -0
- package/src/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.ts +52 -0
- package/src/extensions/Stickers/CometChatStickerKeyboard/hooks.ts +93 -0
- package/src/extensions/Stickers/CometChatStickerKeyboard/index.ts +5 -0
- package/src/extensions/Stickers/CometChatStickerKeyboard/resources/close.svg +4 -0
- package/src/extensions/Stickers/CometChatStickerKeyboard/style.ts +55 -0
- package/src/extensions/Stickers/StickerConfiguration.ts +17 -0
- package/src/extensions/Stickers/StickerStyle.ts +15 -0
- package/src/extensions/Stickers/StickersBubble.tsx +54 -0
- package/src/extensions/Stickers/StickersExtension.ts +32 -0
- package/src/extensions/Stickers/StickersExtensionDecorator.tsx +142 -0
- package/src/extensions/Stickers/index.ts +12 -0
- package/src/extensions/Stickers/resources/index.ts +5 -0
- package/src/extensions/TextModeration/TextModerationConfiguration.tsx +25 -0
- package/src/extensions/TextModeration/TextModerationExtension.tsx +50 -0
- package/src/extensions/TextModeration/TextModerationExtensionDecorator.tsx +92 -0
- package/src/extensions/TextModeration/index.ts +5 -0
- package/src/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.tsx +109 -0
- package/src/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.tsx +45 -0
- package/src/extensions/ThumbnailGeneration/index.ts +3 -0
- package/src/extensions/index.ts +55 -0
- package/src/index.ts +561 -0
- package/src/shared/CometChatContext.tsx +39 -0
- package/src/shared/CometChatUiKit/CometChatUIKit.ts +220 -0
- package/src/shared/CometChatUiKit/CometChatUIKitHelper.ts +121 -0
- package/src/shared/CometChatUiKit/UIKitSettings.ts +39 -0
- package/src/shared/CometChatUiKit/index.ts +9 -0
- package/src/shared/assets/images/index.ts +17 -0
- package/src/shared/base/BaseStyle.ts +40 -0
- package/src/shared/base/BorderStyle.ts +28 -0
- package/src/shared/base/FontStyle.ts +27 -0
- package/src/shared/base/ShadowStyle.ts +40 -0
- package/src/shared/base/Types.ts +21 -0
- package/src/shared/base/index.ts +28 -0
- package/src/shared/constants/UIKitConstants.ts +348 -0
- package/src/shared/events/CometChatMessageEvents/index.ts +100 -0
- package/src/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.ts +332 -0
- package/src/shared/events/CometChatUIEventHandler/Listener.ts +350 -0
- package/src/shared/events/CometChatUIEvents.ts +18 -0
- package/src/shared/events/conversations.ts +3 -0
- package/src/shared/events/groups.ts +10 -0
- package/src/shared/events/index.ts +13 -0
- package/src/shared/events/messages.ts +11 -0
- package/src/shared/framework/.DS_Store +0 -0
- package/src/shared/framework/ChatConfigurator.ts +28 -0
- package/src/shared/framework/DataSource.ts +72 -0
- package/src/shared/framework/DataSourceDecorator.tsx +164 -0
- package/src/shared/framework/ExtensionsDataSource.tsx +20 -0
- package/src/shared/framework/MessageDataSource.tsx +621 -0
- package/src/shared/framework/index.ts +6 -0
- package/src/shared/framework/resources/index.ts +45 -0
- package/src/shared/framework/resources/messageInPrivate.png +0 -0
- package/src/shared/framework/resources/microphone.png +0 -0
- package/src/shared/framework/resources/stop_player.png +0 -0
- package/src/shared/helper/SwipeRow.js +944 -0
- package/src/shared/helper/Toast.tsx +24 -0
- package/src/shared/helper/functions.js +36 -0
- package/src/shared/helper/helperFunctions.ts +18 -0
- package/src/shared/helper/types/index.ts +26 -0
- package/src/shared/helper/useKeyboard.tsx +38 -0
- package/src/shared/index.ts +262 -0
- package/src/shared/modals/CometChatDetailsOption.ts +24 -0
- package/src/shared/modals/CometChatDetailsTemplate.ts +16 -0
- package/src/shared/modals/CometChatMessageOption.ts +14 -0
- package/src/shared/modals/CometChatMessageTemplate.ts +42 -0
- package/src/shared/modals/CometChatOptions.ts +13 -0
- package/src/shared/modals/index.ts +13 -0
- package/src/shared/resources/CometChatLocalize/CometChatLocalize.ts +180 -0
- package/src/shared/resources/CometChatLocalize/index.ts +9 -0
- package/src/shared/resources/CometChatLocalize/resources/ar/translation.json +270 -0
- package/src/shared/resources/CometChatLocalize/resources/de/translation.json +270 -0
- package/src/shared/resources/CometChatLocalize/resources/en/translation.json +270 -0
- package/src/shared/resources/CometChatLocalize/resources/es/translation.json +270 -0
- package/src/shared/resources/CometChatLocalize/resources/fr/translation.json +270 -0
- package/src/shared/resources/CometChatLocalize/resources/hi/translation.json +270 -0
- package/src/shared/resources/CometChatLocalize/resources/lt/translation.json +270 -0
- package/src/shared/resources/CometChatLocalize/resources/ms/translation.json +270 -0
- package/src/shared/resources/CometChatLocalize/resources/pt/translation.json +270 -0
- package/src/shared/resources/CometChatLocalize/resources/ru/translation.json +270 -0
- package/src/shared/resources/CometChatLocalize/resources/sv/translation.json +270 -0
- package/src/shared/resources/CometChatLocalize/resources/zh/translation.json +270 -0
- package/src/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +270 -0
- package/src/shared/resources/CometChatSoundManager/CometChatSoundManager.js +95 -0
- package/src/shared/resources/CometChatSoundManager/index.ts +2 -0
- package/src/shared/resources/CometChatSoundManager/resources/index.js +5 -0
- package/src/shared/resources/CometChatSoundManager/sound.js +336 -0
- package/src/shared/resources/CometChatTheme/CometChatTheme.ts +28 -0
- package/src/shared/resources/CometChatTheme/Palette.ts +501 -0
- package/src/shared/resources/CometChatTheme/Typography.ts +269 -0
- package/src/shared/resources/CometChatTheme/index.ts +2 -0
- package/src/shared/resources/index.ts +12 -0
- package/src/shared/utils/CometChatLiveReactions/CometChatLiveReaction.tsx +120 -0
- package/src/shared/utils/CometChatLiveReactions/LiveReactionstyles.ts +37 -0
- package/src/shared/utils/CometChatLiveReactions/index.ts +1 -0
- package/src/shared/utils/CometChatLiveReactions/resources/index.ts +4 -0
- package/src/shared/utils/CometChatLiveReactions/style.ts +8 -0
- package/src/shared/utils/CometChatMessageHelper/index.ts +55 -0
- package/src/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +117 -0
- package/src/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js +30 -0
- package/src/shared/utils/CometChatMessagePreview/MessagePreviewStyle.js +42 -0
- package/src/shared/utils/CometChatMessagePreview/index.js +5 -0
- package/src/shared/utils/CometChatMessagePreview/resources/index.ts +5 -0
- package/src/shared/utils/CometChatMessagePreview/style.js +71 -0
- package/src/shared/utils/DetailsUtils/DetailsUtils.tsx +353 -0
- package/src/shared/utils/DetailsUtils/resources/index.ts +16 -0
- package/src/shared/utils/MessageUtils.tsx +57 -0
- package/src/shared/utils/conversationUtils.ts +82 -0
- package/src/shared/utils/index.ts +28 -0
- package/src/shared/views/.DS_Store +0 -0
- package/src/shared/views/CometChatActionSheet/ActionItem.ts +60 -0
- package/src/shared/views/CometChatActionSheet/ActionSheetStyle.ts +76 -0
- package/src/shared/views/CometChatActionSheet/CometChatActionSheet.tsx +275 -0
- package/src/shared/views/CometChatActionSheet/hooks.ts +10 -0
- package/src/shared/views/CometChatActionSheet/index.ts +3 -0
- package/src/shared/views/CometChatActionSheet/resources/index.ts +7 -0
- package/src/shared/views/CometChatActionSheet/style.ts +47 -0
- package/src/shared/views/CometChatAudioBubble/.DS_Store +0 -0
- package/src/shared/views/CometChatAudioBubble/AudioBubbleStyle.ts +43 -0
- package/src/shared/views/CometChatAudioBubble/CometChatAudioBubble.tsx +166 -0
- package/src/shared/views/CometChatAudioBubble/index.ts +16 -0
- package/src/shared/views/CometChatAudioBubble/resources/index.ts +7 -0
- package/src/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
- package/src/shared/views/CometChatAudioBubble/style.ts +29 -0
- package/src/shared/views/CometChatAvatar/AvatarConfiguration.ts +27 -0
- package/src/shared/views/CometChatAvatar/AvatarStyle.ts +57 -0
- package/src/shared/views/CometChatAvatar/CometChatAvatar.tsx +122 -0
- package/src/shared/views/CometChatAvatar/index.ts +11 -0
- package/src/shared/views/CometChatAvatar/resources/index.ts +5 -0
- package/src/shared/views/CometChatAvatar/styles.ts +25 -0
- package/src/shared/views/CometChatBadge/BadgeConfiguration.ts +55 -0
- package/src/shared/views/CometChatBadge/BadgeStyle.ts +39 -0
- package/src/shared/views/CometChatBadge/CometChatBadge.tsx +70 -0
- package/src/shared/views/CometChatBadge/index.ts +10 -0
- package/src/shared/views/CometChatBadge/styles.ts +18 -0
- package/src/shared/views/CometChatBottomSheet/CometChatBottomSheet.tsx +173 -0
- package/src/shared/views/CometChatBottomSheet/index.ts +3 -0
- package/src/shared/views/CometChatBottomSheet/style.ts +52 -0
- package/src/shared/views/CometChatButton/CometChatButton.tsx +66 -0
- package/src/shared/views/CometChatButton/CometChatButtonStyle.ts +47 -0
- package/src/shared/views/CometChatButton/index.ts +15 -0
- package/src/shared/views/CometChatButton/style.ts +8 -0
- package/src/shared/views/CometChatCard/CometChatCard.tsx +77 -0
- package/src/shared/views/CometChatCard/CometChatCardStyle.ts +31 -0
- package/src/shared/views/CometChatCard/index.ts +9 -0
- package/src/shared/views/CometChatCard/style.ts +13 -0
- package/src/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.tsx +138 -0
- package/src/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.ts +35 -0
- package/src/shared/views/CometChatConfirmDialog/index.ts +7 -0
- package/src/shared/views/CometChatConfirmDialog/style.ts +63 -0
- package/src/shared/views/CometChatDate/CometChatDate.tsx +188 -0
- package/src/shared/views/CometChatDate/DateConfiguration.ts +28 -0
- package/src/shared/views/CometChatDate/DateStyle.ts +26 -0
- package/src/shared/views/CometChatDate/index.ts +11 -0
- package/src/shared/views/CometChatDate/style.ts +8 -0
- package/src/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.tsx +242 -0
- package/src/shared/views/CometChatEmojiKeyboard/Emoji.ts +17 -0
- package/src/shared/views/CometChatEmojiKeyboard/EmojiCategory.ts +22 -0
- package/src/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.ts +26 -0
- package/src/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.ts +44 -0
- package/src/shared/views/CometChatEmojiKeyboard/emojis.ts +8225 -0
- package/src/shared/views/CometChatEmojiKeyboard/index.ts +5 -0
- package/src/shared/views/CometChatEmojiKeyboard/resources/index.ts +10 -0
- package/src/shared/views/CometChatEmojiKeyboard/style.ts +64 -0
- package/src/shared/views/CometChatFileBubble/.DS_Store +0 -0
- package/src/shared/views/CometChatFileBubble/CometChatFileBubble.tsx +131 -0
- package/src/shared/views/CometChatFileBubble/FileBubbleStyle.ts +58 -0
- package/src/shared/views/CometChatFileBubble/index.ts +9 -0
- package/src/shared/views/CometChatFileBubble/resources/file_upload.png +0 -0
- package/src/shared/views/CometChatFileBubble/resources/index.ts +7 -0
- package/src/shared/views/CometChatFileBubble/style.ts +48 -0
- package/src/shared/views/CometChatImageBubble/CometChatImageBubble.tsx +106 -0
- package/src/shared/views/CometChatImageBubble/ImageBubbleStyle.ts +23 -0
- package/src/shared/views/CometChatImageBubble/index.ts +9 -0
- package/src/shared/views/CometChatList/CometChatList.tsx +727 -0
- package/src/shared/views/CometChatList/Header.tsx +139 -0
- package/src/shared/views/CometChatList/index.ts +12 -0
- package/src/shared/views/CometChatList/resources/Back.png +0 -0
- package/src/shared/views/CometChatList/resources/Spinner.png +0 -0
- package/src/shared/views/CometChatList/resources/checkmark.png +0 -0
- package/src/shared/views/CometChatList/resources/index.ts +12 -0
- package/src/shared/views/CometChatList/styles.ts +103 -0
- package/src/shared/views/CometChatListItem/CometChatListItem.tsx +304 -0
- package/src/shared/views/CometChatListItem/ListItemConfiguration.tsx +20 -0
- package/src/shared/views/CometChatListItem/ListItemStyle.ts +47 -0
- package/src/shared/views/CometChatListItem/index.ts +14 -0
- package/src/shared/views/CometChatListItem/style.ts +65 -0
- package/src/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.tsx +253 -0
- package/src/shared/views/CometChatMediaRecorder/MediaRecorderStyle.ts +63 -0
- package/src/shared/views/CometChatMediaRecorder/index.ts +11 -0
- package/src/shared/views/CometChatMediaRecorder/style.ts +31 -0
- package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +94 -0
- package/src/shared/views/CometChatMessageBubble/MessageBubbleStyle.ts +22 -0
- package/src/shared/views/CometChatMessageBubble/index.ts +6 -0
- package/src/shared/views/CometChatMessageBubble/style.ts +0 -0
- package/src/shared/views/CometChatMessageInput/CometChatMessageInput.tsx +184 -0
- package/src/shared/views/CometChatMessageInput/index.ts +2 -0
- package/src/shared/views/CometChatMessageInput/styles.ts +9 -0
- package/src/shared/views/CometChatReceipt/CometChatReceipt.tsx +72 -0
- package/src/shared/views/CometChatReceipt/MessageConfiguration.ts +53 -0
- package/src/shared/views/CometChatReceipt/ReceiptStyle.ts +3 -0
- package/src/shared/views/CometChatReceipt/index.ts +9 -0
- package/src/shared/views/CometChatReceipt/resources/blue-double-tick-icon.png +0 -0
- package/src/shared/views/CometChatReceipt/resources/error.png +0 -0
- package/src/shared/views/CometChatReceipt/resources/grey-double-tick-icon.png +0 -0
- package/src/shared/views/CometChatReceipt/resources/grey-tick-icon.png +0 -0
- package/src/shared/views/CometChatReceipt/resources/index.ts +18 -0
- package/src/shared/views/CometChatReceipt/resources/sending.png +0 -0
- package/src/shared/views/CometChatReceipt/style.ts +9 -0
- package/src/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.tsx +64 -0
- package/src/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.ts +25 -0
- package/src/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.ts +37 -0
- package/src/shared/views/CometChatStatusIndicator/index.ts +12 -0
- package/src/shared/views/CometChatStatusIndicator/styles.ts +15 -0
- package/src/shared/views/CometChatTextBubble/CometChatTextBubble.tsx +125 -0
- package/src/shared/views/CometChatTextBubble/TextBubbleStyle.ts +51 -0
- package/src/shared/views/CometChatTextBubble/index.ts +11 -0
- package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +113 -0
- package/src/shared/views/CometChatVideoBubble/VideoBubbleStyle.ts +37 -0
- package/src/shared/views/CometChatVideoBubble/index.ts +9 -0
- package/src/shared/views/CometChatVideoBubble/resources/index.ts +5 -0
- package/src/shared/views/CometChatVideoBubble/resources/play.png +0 -0
- package/src/shared/views/CometChatVideoBubble/style.ts +10 -0
- package/src/shared/views/SwipeRow/SwipeRow.tsx +133 -0
- package/src/shared/views/SwipeRow/index.ts +3 -0
- package/src/shared/views/SwipeRow/style.ts +30 -0
- package/src/shared/views/index.ts +163 -0
- /package/{lib → src}/CometChatBannedMembers/resources/clear.png +0 -0
- /package/{lib → src}/CometChatConversations/resources/back.png +0 -0
- /package/{lib → src}/CometChatConversations/resources/blue-double-tick-icon.png +0 -0
- /package/{lib → src}/CometChatConversations/resources/close.png +0 -0
- /package/{lib → src}/CometChatConversations/resources/delete.png +0 -0
- /package/{lib → src}/CometChatConversations/resources/error.png +0 -0
- /package/{lib → src}/CometChatConversations/resources/grey-double-tick-icon.png +0 -0
- /package/{lib → src}/CometChatConversations/resources/grey-tick-icon.png +0 -0
- /package/{lib → src}/CometChatConversations/resources/new.png +0 -0
- /package/{lib → src}/CometChatConversations/resources/password.png +0 -0
- /package/{lib → src}/CometChatConversations/resources/private.png +0 -0
- /package/{lib → src}/CometChatConversations/resources/rightTick.png +0 -0
- /package/{lib → src}/CometChatConversations/resources/sending.png +0 -0
- /package/{lib → src}/CometChatConversations/resources/spineer.png +0 -0
- /package/{lib → src}/CometChatCreateGroup/resources/close.png +0 -0
- /package/{lib → src}/CometChatCreateGroup/resources/rightTick.png +0 -0
- /package/{lib → src}/CometChatCreateGroup/resources/warning.png +0 -0
- /package/{lib → src}/CometChatDetails/resources/Back.png +0 -0
- /package/{lib → src}/CometChatDetails/resources/close.png +0 -0
- /package/{lib → src}/CometChatDetails/resources/password.png +0 -0
- /package/{lib → src}/CometChatDetails/resources/private.png +0 -0
- /package/{lib → src}/CometChatDetails/resources/right-arrow.png +0 -0
- /package/{lib → src}/CometChatGroupMembers/resources/banIcon.png +0 -0
- /package/{lib → src}/CometChatGroupMembers/resources/downArrowIcon.png +0 -0
- /package/{lib → src}/CometChatGroupMembers/resources/kickIcon.png +0 -0
- /package/{lib → src}/CometChatGroupMembers/resources/rightTick.png +0 -0
- /package/{lib → src}/CometChatGroups/resources/back.png +0 -0
- /package/{lib → src}/CometChatGroups/resources/close.png +0 -0
- /package/{lib → src}/CometChatGroups/resources/create.png +0 -0
- /package/{lib → src}/CometChatGroups/resources/more.png +0 -0
- /package/{lib → src}/CometChatGroups/resources/password.png +0 -0
- /package/{lib → src}/CometChatGroups/resources/private.png +0 -0
- /package/{lib → src}/CometChatGroups/resources/rightTick.png +0 -0
- /package/{lib → src}/CometChatGroups/resources/search.png +0 -0
- /package/{lib → src}/CometChatGroups/resources/spineer.png +0 -0
- /package/{lib → src}/CometChatGroupsWithMessages/resources/write.png +0 -0
- /package/{lib → src}/CometChatJoinProtectedGroup/resources/close.png +0 -0
- /package/{lib → src}/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
- /package/{lib → src}/CometChatMessageComposer/resources/circle_add.png +0 -0
- /package/{lib → src}/CometChatMessageComposer/resources/close.png +0 -0
- /package/{lib → src}/CometChatMessageComposer/resources/emoji.png +0 -0
- /package/{lib → src}/CometChatMessageComposer/resources/heart.png +0 -0
- /package/{lib → src}/CometChatMessageComposer/resources/image.png +0 -0
- /package/{lib → src}/CometChatMessageComposer/resources/send_message.png +0 -0
- /package/{lib → src}/CometChatMessageComposer/resources/stickers.png +0 -0
- /package/{lib → src}/CometChatMessageHeader/resources/Back.png +0 -0
- /package/{lib → src}/CometChatMessageHeader/resources/password.png +0 -0
- /package/{lib → src}/CometChatMessageHeader/resources/private.png +0 -0
- /package/{lib/calls/CometChatCallHistory → src/CometChatMessageInformation}/resources/Spineer.png +0 -0
- /package/{lib → src}/CometChatMessageList/resources/back.png +0 -0
- /package/{lib → src}/CometChatMessageList/resources/close.png +0 -0
- /package/{lib → src}/CometChatMessageList/resources/downArrowIcon.png +0 -0
- /package/{lib → src}/CometChatMessageList/resources/rightArrowIcon.png +0 -0
- /package/{lib → src}/CometChatMessageList/resources/spineer.png +0 -0
- /package/{lib → src}/CometChatMessages/resources/info.png +0 -0
- /package/{lib → src}/CometChatThreadedMessages/resources/Back.png +0 -0
- /package/{lib → src}/CometChatThreadedMessages/resources/close.png +0 -0
- /package/{lib → src}/CometChatThreadedMessages/resources/more.png +0 -0
- /package/{lib → src}/CometChatThreadedMessages/resources/password.png +0 -0
- /package/{lib → src}/CometChatThreadedMessages/resources/private.png +0 -0
- /package/{lib → src}/CometChatThreadedMessages/resources/right-arrow.png +0 -0
- /package/{lib → src}/calls/CometChatCallBubble/resources/avatar.png +0 -0
- /package/{lib → src}/calls/CometChatCallBubble/resources/incomingaudiocall.png +0 -0
- /package/{lib → src}/calls/CometChatCallBubble/resources/incomingvideocall.png +0 -0
- /package/{lib → src}/calls/CometChatCallButtons/resources/Call.png +0 -0
- /package/{lib → src}/calls/CometChatCallButtons/resources/Video.png +0 -0
- /package/{lib → src}/calls/CometChatCallDetails/resources/CloseIcon.png +0 -0
- /package/{lib → src}/calls/CometChatCallHistory/resources/Back.png +0 -0
- /package/{lib → src}/calls/CometChatCallHistory/resources/Call.png +0 -0
- /package/{lib → src}/calls/CometChatCallHistory/resources/Info.png +0 -0
- /package/{lib → src}/calls/CometChatCallHistory/resources/Selection.png +0 -0
- /package/{lib/shared/views/CometChatList/resources/Spinner.png → src/calls/CometChatCallHistory/resources/Spineer.png} +0 -0
- /package/{lib → src}/calls/CometChatCallHistory/resources/Video.png +0 -0
- /package/{lib → src}/calls/CometChatCallHistory/resources/check.png +0 -0
- /package/{lib → src}/calls/CometChatIncomingCall/resources/Call.png +0 -0
- /package/{lib → src}/calls/CometChatIncomingCall/resources/close.png +0 -0
- /package/{lib → src}/calls/CometChatIncomingCall/resources/incomingaudiocall.png +0 -0
- /package/{lib → src}/calls/CometChatIncomingCall/resources/incomingvideocall.png +0 -0
- /package/{lib → src}/calls/CometChatOutgoingCall/resources/Close.png +0 -0
- /package/{lib → src}/calls/resources/Call.png +0 -0
- /package/{lib → src}/calls/resources/Video.png +0 -0
- /package/{lib → src}/extensions/CollaborativeBubble/resources/whiteboard.png +0 -0
- /package/{lib → src}/extensions/CollaborativeDocument/resources/collaborative_document.png +0 -0
- /package/{lib → src}/extensions/CollaborativeDocument/resources/collaborative_document_2x.png +0 -0
- /package/{lib → src}/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
- /package/{lib → src}/extensions/CollaborativeWhiteboard/resources/whiteboard.png +0 -0
- /package/{lib → src}/extensions/ImageModeration/resources/unsafe.png +0 -0
- /package/{lib → src}/extensions/LinkPreview/resources/defaultImage.png +0 -0
- /package/{lib → src}/extensions/MessageTranslation/resources/translate.png +0 -0
- /package/{lib → src}/extensions/Polls/resources/close.png +0 -0
- /package/{lib → src}/extensions/Polls/resources/document.png +0 -0
- /package/{lib → src}/extensions/Polls/resources/kickIcon.png +0 -0
- /package/{lib → src}/extensions/Polls/resources/rightTick.png +0 -0
- /package/{lib → src}/extensions/Polls/resources/warning.png +0 -0
- /package/{lib → src}/extensions/Reactions/resources/AddReactions.png +0 -0
- /package/{lib → src}/extensions/SmartReplies/resources/close.png +0 -0
- /package/{lib → src}/extensions/Stickers/resources/Stickers.png +0 -0
- /package/{lib/shared/views/CometChatList/resources → src/shared/assets/images}/Back.png +0 -0
- /package/{lib/shared/views/CometChatReceipt/resources → src/shared/assets/images}/blue-double-tick-icon.png +0 -0
- /package/{lib/shared/views/CometChatList/resources → src/shared/assets/images}/checkmark.png +0 -0
- /package/{lib/shared/views/CometChatReceipt/resources → src/shared/assets/images}/error.png +0 -0
- /package/{lib/shared/views/CometChatReceipt/resources → src/shared/assets/images}/grey-double-tick-icon.png +0 -0
- /package/{lib/shared/views/CometChatReceipt/resources → src/shared/assets/images}/grey-tick-icon.png +0 -0
- /package/{lib/shared/views/CometChatReceipt/resources → src/shared/assets/images}/sending.png +0 -0
- /package/{lib → src}/shared/framework/resources/audio-file.png +0 -0
- /package/{lib → src}/shared/framework/resources/circle_add.png +0 -0
- /package/{lib → src}/shared/framework/resources/copy.png +0 -0
- /package/{lib → src}/shared/framework/resources/delete.png +0 -0
- /package/{lib → src}/shared/framework/resources/edit.png +0 -0
- /package/{lib → src}/shared/framework/resources/emoji.png +0 -0
- /package/{lib → src}/shared/framework/resources/file_upload.png +0 -0
- /package/{lib → src}/shared/framework/resources/forward.png +0 -0
- /package/{lib → src}/shared/framework/resources/heart.png +0 -0
- /package/{lib → src}/shared/framework/resources/image.png +0 -0
- /package/{lib → src}/shared/framework/resources/info.png +0 -0
- /package/{lib → src}/shared/framework/resources/location.png +0 -0
- /package/{lib/shared/views/CometChatAudioBubble → src/shared/framework}/resources/pause.png +0 -0
- /package/{lib/shared/views/CometChatAudioBubble → src/shared/framework}/resources/play.png +0 -0
- /package/{lib → src}/shared/framework/resources/reply.png +0 -0
- /package/{lib → src}/shared/framework/resources/send_message.png +0 -0
- /package/{lib → src}/shared/framework/resources/share.png +0 -0
- /package/{lib → src}/shared/framework/resources/thread.png +0 -0
- /package/{lib → src}/shared/framework/resources/video_upload.png +0 -0
- /package/{lib → src}/shared/resources/CometChatSoundManager/resources/incomingcall.wav +0 -0
- /package/{lib → src}/shared/resources/CometChatSoundManager/resources/incomingmessage.wav +0 -0
- /package/{lib → src}/shared/resources/CometChatSoundManager/resources/incomingothermessage.wav +0 -0
- /package/{lib → src}/shared/resources/CometChatSoundManager/resources/outgoingcall.wav +0 -0
- /package/{lib → src}/shared/resources/CometChatSoundManager/resources/outgoingmessage.wav +0 -0
- /package/{lib → src}/shared/utils/CometChatLiveReactions/resources/heart.png +0 -0
- /package/{lib → src}/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
- /package/{lib → src}/shared/utils/DetailsUtils/resources/Back.png +0 -0
- /package/{lib → src}/shared/utils/DetailsUtils/resources/banIcon.png +0 -0
- /package/{lib → src}/shared/utils/DetailsUtils/resources/close.png +0 -0
- /package/{lib → src}/shared/utils/DetailsUtils/resources/kickIcon.png +0 -0
- /package/{lib → src}/shared/utils/DetailsUtils/resources/password.png +0 -0
- /package/{lib → src}/shared/utils/DetailsUtils/resources/private.png +0 -0
- /package/{lib → src}/shared/utils/DetailsUtils/resources/right-arrow.png +0 -0
- /package/{lib → src}/shared/views/CometChatActionSheet/resources/grid.png +0 -0
- /package/{lib → src}/shared/views/CometChatActionSheet/resources/list.png +0 -0
- /package/{lib/shared/views/CometChatVideoBubble → src/shared/views/CometChatAudioBubble}/resources/play.png +0 -0
- /package/{lib → src}/shared/views/CometChatAvatar/resources/default.jpg +0 -0
- /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/activity.png +0 -0
- /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/animals.png +0 -0
- /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/flags.png +0 -0
- /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/food.png +0 -0
- /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/objects.png +0 -0
- /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/smileys.png +0 -0
- /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/symbols.png +0 -0
- /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/travel.png +0 -0
- /package/{lib → src}/shared/views/CometChatFileBubble/resources/download.png +0 -0
- /package/{lib → src}/shared/views/CometChatList/resources/Search.png +0 -0
- /package/{lib → src}/shared/views/CometChatList/resources/check.png +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
2
|
+
import { GroupsConfigurationInterface } from "../CometChatGroups";
|
|
3
|
+
import { UsersConfigurationInterface } from "../CometChatUsers";
|
|
4
|
+
import { ImageType } from "../shared/base";
|
|
5
|
+
import { ContactsStyleInterface } from "./ContactsStyle";
|
|
6
|
+
export interface ContactsConfigurationInterface {
|
|
7
|
+
/**
|
|
8
|
+
* users configuration
|
|
9
|
+
*/
|
|
10
|
+
usersConfiguration?: UsersConfigurationInterface;
|
|
11
|
+
/**
|
|
12
|
+
* group configuration
|
|
13
|
+
*/
|
|
14
|
+
groupsConfiguration?: GroupsConfigurationInterface;
|
|
15
|
+
/**
|
|
16
|
+
* icon for back image
|
|
17
|
+
*/
|
|
18
|
+
backIcon?: ImageType;
|
|
19
|
+
/**
|
|
20
|
+
* style for the component
|
|
21
|
+
*/
|
|
22
|
+
contactsStyle?: ContactsStyleInterface;
|
|
23
|
+
/**
|
|
24
|
+
* function will be called when pressed on back icon
|
|
25
|
+
*/
|
|
26
|
+
onClose?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* selection mode can be 'single' | 'multiple'
|
|
29
|
+
*/
|
|
30
|
+
selectionMode?: 'single' | 'multiple';
|
|
31
|
+
/**
|
|
32
|
+
* image for submit
|
|
33
|
+
*/
|
|
34
|
+
submitIcon?: ImageType;
|
|
35
|
+
/**
|
|
36
|
+
* title for component
|
|
37
|
+
*/
|
|
38
|
+
title?: string;
|
|
39
|
+
/**
|
|
40
|
+
* users tab title
|
|
41
|
+
*/
|
|
42
|
+
userTabTitle?: string;
|
|
43
|
+
/**
|
|
44
|
+
* groups tab title
|
|
45
|
+
*/
|
|
46
|
+
groupTabTitle?: string;
|
|
47
|
+
/**
|
|
48
|
+
* function will be called when submit icon is pressed.
|
|
49
|
+
*/
|
|
50
|
+
onSubmitIconClick?: (props: {
|
|
51
|
+
users: Array<CometChat.User>;
|
|
52
|
+
groups: Array<CometChat.Group>;
|
|
53
|
+
}) => void;
|
|
54
|
+
/**
|
|
55
|
+
* function will be called when item is pressed.
|
|
56
|
+
*/
|
|
57
|
+
onItemPress?: (param: {
|
|
58
|
+
user?: CometChat.User;
|
|
59
|
+
group?: CometChat.Group;
|
|
60
|
+
}) => void;
|
|
61
|
+
/**
|
|
62
|
+
* desides which tab should be shown
|
|
63
|
+
*/
|
|
64
|
+
tabVisibility?: 'user' | 'groups' | 'usersAndGroup';
|
|
65
|
+
/**
|
|
66
|
+
* maximum limit for item selection
|
|
67
|
+
*/
|
|
68
|
+
selectionLimit?: number;
|
|
69
|
+
/**
|
|
70
|
+
* toggle submit
|
|
71
|
+
*/
|
|
72
|
+
hideSubmit?: boolean;
|
|
73
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactsConfiguration.js","sourceRoot":"","sources":["../../src/CometChatContacts/ContactsConfiguration.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { BaseStyleInterface, BorderStyleInterface, FontStyleInterface } from "../shared";
|
|
2
|
+
export interface ContactsStyleInterface extends BaseStyleInterface {
|
|
3
|
+
/**
|
|
4
|
+
* Font for title
|
|
5
|
+
*/
|
|
6
|
+
titleTextFont?: FontStyleInterface;
|
|
7
|
+
/**
|
|
8
|
+
* title text color
|
|
9
|
+
*/
|
|
10
|
+
titleTextColor?: string;
|
|
11
|
+
/**
|
|
12
|
+
* tint color for back icon
|
|
13
|
+
*/
|
|
14
|
+
backIconTint?: string;
|
|
15
|
+
/**
|
|
16
|
+
* width for a tab
|
|
17
|
+
*/
|
|
18
|
+
tabWidth?: string | number;
|
|
19
|
+
/**
|
|
20
|
+
* height for a tab
|
|
21
|
+
*/
|
|
22
|
+
tabHeight?: string | number;
|
|
23
|
+
/**
|
|
24
|
+
* border property for tab
|
|
25
|
+
*/
|
|
26
|
+
tabBorder?: BorderStyleInterface;
|
|
27
|
+
/**
|
|
28
|
+
* border radius for a tab
|
|
29
|
+
*/
|
|
30
|
+
tabBorderRadius?: number;
|
|
31
|
+
/**
|
|
32
|
+
* background colour for tab
|
|
33
|
+
*/
|
|
34
|
+
tabBackgroundColor?: string;
|
|
35
|
+
/**
|
|
36
|
+
* font style for tab title
|
|
37
|
+
*/
|
|
38
|
+
tabTitleTextFont?: FontStyleInterface;
|
|
39
|
+
/**
|
|
40
|
+
* text colour for tab title
|
|
41
|
+
*/
|
|
42
|
+
tabTitleTextColor?: string;
|
|
43
|
+
/**
|
|
44
|
+
* text colout when tab is active
|
|
45
|
+
*/
|
|
46
|
+
activeTabTitleTextColor?: string;
|
|
47
|
+
/**
|
|
48
|
+
* background colour when tab is active
|
|
49
|
+
*/
|
|
50
|
+
activeTabBackgroundColor?: string;
|
|
51
|
+
/**
|
|
52
|
+
* border style when tab is active
|
|
53
|
+
*/
|
|
54
|
+
activeTabBorder?: BorderStyleInterface;
|
|
55
|
+
/**
|
|
56
|
+
* tint colout for selection icon
|
|
57
|
+
*/
|
|
58
|
+
selectionIconTint?: string;
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactsStyle.js","sourceRoot":"","sources":["../../src/CometChatContacts/ContactsStyle.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { NativeSyntheticEvent, TextInputSubmitEditingEventData } from 'react-native';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ImageType } from '../shared/helper/types';
|
|
4
|
+
import { BorderStyleInterface, FontStyleInterface } from '../shared';
|
|
5
|
+
export declare function Header(props: {
|
|
6
|
+
backButtonIcon?: ImageType;
|
|
7
|
+
showBackButton?: boolean;
|
|
8
|
+
onBack?: () => void;
|
|
9
|
+
title?: string;
|
|
10
|
+
AppBarOptions?: () => JSX.Element;
|
|
11
|
+
shouldSelect?: boolean;
|
|
12
|
+
onSelectionHandler?: () => void;
|
|
13
|
+
hideSearch?: boolean;
|
|
14
|
+
searchBoxIcon?: ImageType;
|
|
15
|
+
searchPlaceholderText?: string;
|
|
16
|
+
searchPlaceholderTextColor?: string;
|
|
17
|
+
searchHandler?: (text: string) => void;
|
|
18
|
+
searchInput?: string;
|
|
19
|
+
onSubmitEditing?: (e: NativeSyntheticEvent<TextInputSubmitEditingEventData>) => void;
|
|
20
|
+
selectionIcon?: ImageType;
|
|
21
|
+
titleFontStyle?: FontStyleInterface;
|
|
22
|
+
titleColor?: string;
|
|
23
|
+
backIconTint?: string;
|
|
24
|
+
searchBorderStyle?: BorderStyleInterface;
|
|
25
|
+
searchBorderRadius?: number;
|
|
26
|
+
searchTextFontStyle?: FontStyleInterface;
|
|
27
|
+
searchTextColor?: string;
|
|
28
|
+
searchIconTint?: string;
|
|
29
|
+
searchBackgroundColor?: string;
|
|
30
|
+
selectionIconTint?: string;
|
|
31
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//@ts-ignore
|
|
2
|
+
import { View, Text, TouchableOpacity, TextInput, Image } from 'react-native';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import styles from './styles';
|
|
5
|
+
import { ICONS } from '../shared/assets/images';
|
|
6
|
+
export function Header(props) {
|
|
7
|
+
const { backButtonIcon, showBackButton, onBack, title, AppBarOptions, shouldSelect, onSelectionHandler, hideSearch, searchBoxIcon, searchPlaceholderText, searchPlaceholderTextColor, searchHandler, searchInput, onSubmitEditing, selectionIcon, titleFontStyle, titleColor, backIconTint, searchBorderStyle, searchBorderRadius, searchTextFontStyle, searchTextColor, searchIconTint, searchBackgroundColor, selectionIconTint, } = props;
|
|
8
|
+
return (<View style={styles.listBaseHeaderStyle}>
|
|
9
|
+
<View style={styles.upperContainer}>
|
|
10
|
+
{(showBackButton || title?.length !== 0) && (<View style={styles.headerLeftContainer}>
|
|
11
|
+
{showBackButton ? (<TouchableOpacity onPress={onBack}>
|
|
12
|
+
<Image source={typeof backButtonIcon == 'string'
|
|
13
|
+
? { uri: backButtonIcon }
|
|
14
|
+
: typeof backButtonIcon == 'object' ||
|
|
15
|
+
typeof backButtonIcon == 'number'
|
|
16
|
+
? backButtonIcon
|
|
17
|
+
: ICONS.BACK} style={[
|
|
18
|
+
styles.backButtonStyle,
|
|
19
|
+
{ tintColor: backIconTint ?? undefined },
|
|
20
|
+
]}/>
|
|
21
|
+
</TouchableOpacity>) : null}
|
|
22
|
+
<Text ellipsizeMode="tail" numberOfLines={1} style={[
|
|
23
|
+
styles.titleStyle,
|
|
24
|
+
{ color: titleColor ?? undefined },
|
|
25
|
+
titleFontStyle ?? {},
|
|
26
|
+
]}>
|
|
27
|
+
{title}
|
|
28
|
+
</Text>
|
|
29
|
+
</View>)}
|
|
30
|
+
{AppBarOptions && !shouldSelect && (<View>
|
|
31
|
+
<AppBarOptions />
|
|
32
|
+
</View>)}
|
|
33
|
+
{shouldSelect && (<View>
|
|
34
|
+
<TouchableOpacity onPress={onSelectionHandler}>
|
|
35
|
+
<Image source={typeof selectionIcon == 'string'
|
|
36
|
+
? { uri: selectionIcon }
|
|
37
|
+
: typeof selectionIcon == 'object' ||
|
|
38
|
+
typeof selectionIcon == 'number'
|
|
39
|
+
? selectionIcon
|
|
40
|
+
: ICONS.CHECK_MARK} style={[
|
|
41
|
+
styles.backButtonStyle,
|
|
42
|
+
{ tintColor: selectionIconTint ?? undefined },
|
|
43
|
+
]}/>
|
|
44
|
+
</TouchableOpacity>
|
|
45
|
+
</View>)}
|
|
46
|
+
</View>
|
|
47
|
+
{!hideSearch && (<View style={[
|
|
48
|
+
styles.searchBox,
|
|
49
|
+
{
|
|
50
|
+
borderRadius: searchBorderRadius ?? 20,
|
|
51
|
+
backgroundColor: searchBackgroundColor ?? undefined,
|
|
52
|
+
},
|
|
53
|
+
searchBorderStyle ?? {},
|
|
54
|
+
]}>
|
|
55
|
+
<Image source={typeof searchBoxIcon == 'string'
|
|
56
|
+
? { uri: searchBoxIcon }
|
|
57
|
+
: typeof searchBoxIcon == 'object' ||
|
|
58
|
+
typeof searchBoxIcon == 'number'
|
|
59
|
+
? searchBoxIcon
|
|
60
|
+
: ICONS.SEARCH} style={[
|
|
61
|
+
styles.searchButtonStyle,
|
|
62
|
+
{ tintColor: searchIconTint ?? undefined },
|
|
63
|
+
]}/>
|
|
64
|
+
<TextInput placeholder={searchPlaceholderText || 'Search'} placeholderTextColor={searchPlaceholderTextColor} onChangeText={searchHandler} value={searchInput} numberOfLines={1} style={[
|
|
65
|
+
styles.searchTextStyle,
|
|
66
|
+
searchTextFontStyle ?? {},
|
|
67
|
+
{ color: searchTextColor ?? undefined },
|
|
68
|
+
]} onSubmitEditing={onSubmitEditing}/>
|
|
69
|
+
</View>)}
|
|
70
|
+
</View>);
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=Header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../src/CometChatContacts/Header.tsx"],"names":[],"mappings":"AAAA,YAAY;AACZ,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,EAAyD,MAAM,cAAc,CAAC;AACrI,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAIhD,MAAM,UAAU,MAAM,CAAC,KA0BtB;IACC,MAAM,EACJ,cAAc,EACd,cAAc,EACd,MAAM,EACN,KAAK,EACL,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,aAAa,EACb,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,WAAW,EACX,eAAe,EACf,aAAa,EACb,cAAc,EACd,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,iBAAiB,GAClB,GAAG,KAAK,CAAC;IACV,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,CACtC;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CACjC;QAAA,CAAC,CAAC,cAAc,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC,CAAC,IAAI,CAC1C,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,CACtC;YAAA,CAAC,cAAc,CAAC,CAAC,CAAC,CAChB,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAChC;gBAAA,CAAC,KAAK,CACJ,MAAM,CAAC,CACL,OAAO,cAAc,IAAI,QAAQ;oBAC/B,CAAC,CAAC,EAAE,GAAG,EAAE,cAAc,EAAE;oBACzB,CAAC,CAAC,OAAO,cAAc,IAAI,QAAQ;wBACjC,OAAO,cAAc,IAAI,QAAQ;wBACnC,CAAC,CAAC,cAAc;wBAChB,CAAC,CAAC,KAAK,CAAC,IAAI,CACf,CACD,KAAK,CAAC,CAAC;oBACL,MAAM,CAAC,eAAe;oBACtB,EAAE,SAAS,EAAE,YAAY,IAAI,SAAS,EAAE;iBACzC,CAAC,EAEN;cAAA,EAAE,gBAAgB,CAAC,CACpB,CAAC,CAAC,CAAC,IAAI,CACR;YAAA,CAAC,IAAI,CACH,aAAa,CAAC,MAAM,CACpB,aAAa,CAAC,CAAC,CAAC,CAAC,CACjB,KAAK,CAAC,CAAC;gBACL,MAAM,CAAC,UAAU;gBACjB,EAAE,KAAK,EAAE,UAAU,IAAI,SAAS,EAAE;gBAClC,cAAc,IAAI,EAAE;aACrB,CAAC,CAEF;cAAA,CAAC,KAAK,CACR;YAAA,EAAE,IAAI,CACR;UAAA,EAAE,IAAI,CAAC,CACR,CACD;QAAA,CAAC,aAAa,IAAI,CAAC,YAAY,IAAI,CACjC,CAAC,IAAI,CACH;YAAA,CAAC,aAAa,CAAC,AAAD,EAChB;UAAA,EAAE,IAAI,CAAC,CACR,CACD;QAAA,CAAC,YAAY,IAAI,CACf,CAAC,IAAI,CACH;YAAA,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,kBAAkB,CAAC,CAC5C;cAAA,CAAC,KAAK,CACJ,MAAM,CAAC,CACL,OAAO,aAAa,IAAI,QAAQ;gBAC9B,CAAC,CAAC,EAAE,GAAG,EAAE,aAAa,EAAE;gBACxB,CAAC,CAAC,OAAO,aAAa,IAAI,QAAQ;oBAChC,OAAO,aAAa,IAAI,QAAQ;oBAClC,CAAC,CAAC,aAAa;oBACf,CAAC,CAAC,KAAK,CAAC,UAAU,CACrB,CACD,KAAK,CAAC,CAAC;gBACL,MAAM,CAAC,eAAe;gBACtB,EAAE,SAAS,EAAE,iBAAiB,IAAI,SAAS,EAAE;aAC9C,CAAC,EAEN;YAAA,EAAE,gBAAgB,CACpB;UAAA,EAAE,IAAI,CAAC,CACR,CACH;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,CAAC,UAAU,IAAI,CACd,CAAC,IAAI,CACH,KAAK,CAAC,CAAC;gBACL,MAAM,CAAC,SAAS;gBAChB;oBACE,YAAY,EAAE,kBAAkB,IAAI,EAAE;oBACtC,eAAe,EAAE,qBAAqB,IAAI,SAAS;iBACpD;gBACD,iBAAiB,IAAI,EAAE;aACxB,CAAC,CAEF;UAAA,CAAC,KAAK,CACJ,MAAM,CAAC,CACL,OAAO,aAAa,IAAI,QAAQ;gBAC9B,CAAC,CAAC,EAAE,GAAG,EAAE,aAAa,EAAE;gBACxB,CAAC,CAAC,OAAO,aAAa,IAAI,QAAQ;oBAChC,OAAO,aAAa,IAAI,QAAQ;oBAClC,CAAC,CAAC,aAAa;oBACf,CAAC,CAAC,KAAK,CAAC,MAAM,CACjB,CACD,KAAK,CAAC,CAAC;gBACL,MAAM,CAAC,iBAAiB;gBACxB,EAAE,SAAS,EAAE,cAAc,IAAI,SAAS,EAAE;aAC3C,CAAC,EAEJ;UAAA,CAAC,SAAS,CACR,WAAW,CAAC,CAAC,qBAAqB,IAAI,QAAQ,CAAC,CAC/C,oBAAoB,CAAC,CAAC,0BAA0B,CAAC,CACjD,YAAY,CAAC,CAAC,aAAa,CAAC,CAC5B,KAAK,CAAC,CAAC,WAAW,CAAC,CACnB,aAAa,CAAC,CAAC,CAAC,CAAC,CACjB,KAAK,CAAC,CAAC;gBACL,MAAM,CAAC,eAAe;gBACtB,mBAAmB,IAAI,EAAE;gBACzB,EAAE,KAAK,EAAE,eAAe,IAAI,SAAS,EAAE;aACxC,CAAC,CACF,eAAe,CAAC,CAAC,eAAe,CAAC,EAErC;QAAA,EAAE,IAAI,CAAC,CACR,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CometChatContacts, CometChatContactsInterface } from "./CometChatContacts";
|
|
2
|
+
import { ContactsConfigurationInterface } from "./ContactsConfiguration";
|
|
3
|
+
import { ContactsStyleInterface } from "./ContactsStyle";
|
|
4
|
+
export { CometChatContacts, CometChatContactsInterface, ContactsConfigurationInterface as StartConversationConfigurationInterface, ContactsStyleInterface, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/CometChatContacts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA8B,MAAM,qBAAqB,CAAC;AAIpF,OAAO,EACH,iBAAiB,GAKpB,CAAA"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
declare const styles: {
|
|
2
|
+
containerStyle: {
|
|
3
|
+
flex: number;
|
|
4
|
+
alignItems: "center";
|
|
5
|
+
justifyContent: "center";
|
|
6
|
+
position: "relative";
|
|
7
|
+
paddingStart: number;
|
|
8
|
+
paddingEnd: number;
|
|
9
|
+
alignSelf: "center";
|
|
10
|
+
};
|
|
11
|
+
container: {
|
|
12
|
+
flex: number;
|
|
13
|
+
width: "100%";
|
|
14
|
+
};
|
|
15
|
+
listBaseHeaderStyle: {
|
|
16
|
+
alignItems: "flex-start";
|
|
17
|
+
justifyContent: "center";
|
|
18
|
+
width: "100%";
|
|
19
|
+
borderRadius: number;
|
|
20
|
+
paddingStart: number;
|
|
21
|
+
paddingEnd: number;
|
|
22
|
+
};
|
|
23
|
+
upperContainer: {
|
|
24
|
+
flexDirection: "row";
|
|
25
|
+
justifyContent: "space-between";
|
|
26
|
+
alignItems: "center";
|
|
27
|
+
width: "100%";
|
|
28
|
+
};
|
|
29
|
+
headerLeftContainer: {
|
|
30
|
+
flexDirection: "row";
|
|
31
|
+
alignItems: "center";
|
|
32
|
+
justifyContent: "center";
|
|
33
|
+
height: number;
|
|
34
|
+
};
|
|
35
|
+
searchBox: {
|
|
36
|
+
height: number;
|
|
37
|
+
flexDirection: "row";
|
|
38
|
+
justifyContent: "center";
|
|
39
|
+
alignItems: "flex-start";
|
|
40
|
+
marginHorizontal: number;
|
|
41
|
+
marginBottom: number;
|
|
42
|
+
overflow: "hidden";
|
|
43
|
+
};
|
|
44
|
+
titleStyle: {
|
|
45
|
+
fontSize: number;
|
|
46
|
+
fontWeight: "600";
|
|
47
|
+
color: string;
|
|
48
|
+
};
|
|
49
|
+
backButtonStyle: {
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
marginRight: number;
|
|
53
|
+
};
|
|
54
|
+
searchTextStyle: {
|
|
55
|
+
flex: number;
|
|
56
|
+
padding: number;
|
|
57
|
+
fontSize: number;
|
|
58
|
+
fontWeight: "400";
|
|
59
|
+
marginLeft: number;
|
|
60
|
+
alignSelf: "center";
|
|
61
|
+
};
|
|
62
|
+
searchButtonStyle: {
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
marginLeft: number;
|
|
66
|
+
marginTop: number;
|
|
67
|
+
marginBottom: number;
|
|
68
|
+
};
|
|
69
|
+
msgContainerStyle: {
|
|
70
|
+
flex: number;
|
|
71
|
+
overflow: "hidden";
|
|
72
|
+
width: "100%";
|
|
73
|
+
justifyContent: "center";
|
|
74
|
+
alignItems: "center";
|
|
75
|
+
};
|
|
76
|
+
msgTxtStyle: {
|
|
77
|
+
justifyContent: "center";
|
|
78
|
+
alignItems: "center";
|
|
79
|
+
alignSelf: "center";
|
|
80
|
+
textAlign: "center";
|
|
81
|
+
width: "100%";
|
|
82
|
+
};
|
|
83
|
+
headerLetterStyle: {
|
|
84
|
+
height: number;
|
|
85
|
+
fontWeight: "500";
|
|
86
|
+
fontFamily: any;
|
|
87
|
+
fontSize: number;
|
|
88
|
+
marginTop: number;
|
|
89
|
+
};
|
|
90
|
+
dividerStyle: {
|
|
91
|
+
height: number;
|
|
92
|
+
width: "100%";
|
|
93
|
+
marginLeft: number;
|
|
94
|
+
marginRight: number;
|
|
95
|
+
};
|
|
96
|
+
listContainerStyle: {
|
|
97
|
+
width: "100%";
|
|
98
|
+
height: "100%";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
export default styles;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
//@ts-ignore
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
const styles = StyleSheet.create({
|
|
4
|
+
containerStyle: {
|
|
5
|
+
flex: 1,
|
|
6
|
+
alignItems: 'center',
|
|
7
|
+
justifyContent: 'center',
|
|
8
|
+
position: 'relative',
|
|
9
|
+
paddingStart: 16,
|
|
10
|
+
paddingEnd: 16,
|
|
11
|
+
alignSelf: 'center',
|
|
12
|
+
},
|
|
13
|
+
container: {
|
|
14
|
+
flex: 1,
|
|
15
|
+
width: '100%',
|
|
16
|
+
},
|
|
17
|
+
listBaseHeaderStyle: {
|
|
18
|
+
alignItems: 'flex-start',
|
|
19
|
+
justifyContent: 'center',
|
|
20
|
+
width: '100%',
|
|
21
|
+
borderRadius: 0,
|
|
22
|
+
paddingStart: 8,
|
|
23
|
+
paddingEnd: 8
|
|
24
|
+
},
|
|
25
|
+
upperContainer: {
|
|
26
|
+
flexDirection: 'row',
|
|
27
|
+
justifyContent: 'space-between',
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
width: '100%',
|
|
30
|
+
},
|
|
31
|
+
headerLeftContainer: {
|
|
32
|
+
flexDirection: 'row',
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
justifyContent: 'center',
|
|
35
|
+
height: 55,
|
|
36
|
+
},
|
|
37
|
+
searchBox: {
|
|
38
|
+
height: 36,
|
|
39
|
+
flexDirection: 'row',
|
|
40
|
+
justifyContent: 'center',
|
|
41
|
+
alignItems: 'flex-start',
|
|
42
|
+
marginHorizontal: 2,
|
|
43
|
+
marginBottom: 16,
|
|
44
|
+
overflow: 'hidden',
|
|
45
|
+
},
|
|
46
|
+
titleStyle: {
|
|
47
|
+
fontSize: 20,
|
|
48
|
+
fontWeight: '600',
|
|
49
|
+
color: '#000',
|
|
50
|
+
},
|
|
51
|
+
backButtonStyle: {
|
|
52
|
+
width: 20,
|
|
53
|
+
height: 20,
|
|
54
|
+
marginRight: 10,
|
|
55
|
+
},
|
|
56
|
+
searchTextStyle: {
|
|
57
|
+
flex: 1,
|
|
58
|
+
padding: 5,
|
|
59
|
+
fontSize: 17,
|
|
60
|
+
fontWeight: '400',
|
|
61
|
+
marginLeft: 8,
|
|
62
|
+
alignSelf: "center"
|
|
63
|
+
},
|
|
64
|
+
searchButtonStyle: {
|
|
65
|
+
width: 16,
|
|
66
|
+
height: 16,
|
|
67
|
+
marginLeft: 11,
|
|
68
|
+
marginTop: 10,
|
|
69
|
+
marginBottom: 10,
|
|
70
|
+
},
|
|
71
|
+
msgContainerStyle: {
|
|
72
|
+
flex: 1,
|
|
73
|
+
overflow: 'hidden',
|
|
74
|
+
width: '100%',
|
|
75
|
+
justifyContent: 'center',
|
|
76
|
+
alignItems: 'center',
|
|
77
|
+
},
|
|
78
|
+
msgTxtStyle: {
|
|
79
|
+
justifyContent: 'center',
|
|
80
|
+
alignItems: 'center',
|
|
81
|
+
alignSelf: 'center',
|
|
82
|
+
textAlign: 'center',
|
|
83
|
+
width: '100%',
|
|
84
|
+
},
|
|
85
|
+
headerLetterStyle: {
|
|
86
|
+
height: 24,
|
|
87
|
+
fontWeight: '500',
|
|
88
|
+
fontFamily: undefined,
|
|
89
|
+
fontSize: 13,
|
|
90
|
+
marginTop: 8,
|
|
91
|
+
},
|
|
92
|
+
dividerStyle: {
|
|
93
|
+
height: 1,
|
|
94
|
+
width: '100%',
|
|
95
|
+
marginLeft: 16,
|
|
96
|
+
marginRight: 16,
|
|
97
|
+
},
|
|
98
|
+
listContainerStyle: {
|
|
99
|
+
width: '100%',
|
|
100
|
+
height: '100%',
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
export default styles;
|
|
104
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/CometChatContacts/styles.ts"],"names":[],"mappings":"AAAA,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,cAAc,EAAE;QACd,IAAI,EAAE,CAAC;QACP,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;QACxB,QAAQ,EAAE,UAAU;QACpB,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,QAAQ;KACpB;IACD,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,MAAM;KACd;IACD,mBAAmB,EAAE;QACnB,UAAU,EAAE,YAAY;QACxB,cAAc,EAAE,QAAQ;QACxB,KAAK,EAAE,MAAM;QACb,YAAY,EAAE,CAAC;QACf,YAAY,EAAE,CAAC;QACf,UAAU,EAAE,CAAC;KACd;IACD,cAAc,EAAE;QACd,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,QAAQ;QACpB,KAAK,EAAE,MAAM;KACd;IACD,mBAAmB,EAAE;QACnB,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;QACxB,MAAM,EAAE,EAAE;KACX;IACD,SAAS,EAAE;QACT,MAAM,EAAE,EAAE;QACV,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,YAAY;QACxB,gBAAgB,EAAE,CAAC;QACnB,YAAY,EAAE,EAAE;QAChB,QAAQ,EAAE,QAAQ;KACnB;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,KAAK,EAAE,MAAM;KACd;IACD,eAAe,EAAE;QACf,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,WAAW,EAAE,EAAE;KAChB;IACD,eAAe,EAAE;QACf,IAAI,EAAE,CAAC;QACP,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,CAAC;QACb,SAAS,EAAC,QAAQ;KACnB;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,EAAE;QACb,YAAY,EAAE,EAAE;KACjB;IACD,iBAAiB,EAAE;QACjB,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,QAAQ;QAClB,KAAK,EAAE,MAAM;QACb,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;IACD,WAAW,EAAE;QACX,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,SAAS,EAAE,QAAQ;QACnB,SAAS,EAAE,QAAQ;QACnB,KAAK,EAAE,MAAM;KACd;IACD,iBAAiB,EAAE;QACjB,MAAM,EAAE,EAAE;QACV,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,SAAS;QACrB,QAAQ,EAAE,EAAE;QACZ,SAAS,EAAE,CAAC;KACb;IACD,YAAY,EAAE;QACZ,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,MAAM;QACb,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,EAAE;KAChB;IACD,kBAAkB,EAAE;QAClB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;CACF,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CometChat } from "@cometchat-
|
|
2
|
+
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
3
3
|
import { AvatarStyleInterface, CometChatConfirmDialogStyleInterface } from "../shared";
|
|
4
4
|
import { ConversationsStyleInterface } from "./ConversationsStyle";
|
|
5
5
|
import { ImageType } from "../shared";
|
|
@@ -10,6 +10,10 @@ import { StatusIndicatorStyleInterface } from "../shared/views/CometChatStatusIn
|
|
|
10
10
|
import { DateStyleInterface } from "../shared/views/CometChatDate/DateStyle";
|
|
11
11
|
import { BadgeStyleInterface } from "../shared/views/CometChatBadge";
|
|
12
12
|
export interface ConversationInterface {
|
|
13
|
+
/**
|
|
14
|
+
* hide selection icon
|
|
15
|
+
*/
|
|
16
|
+
hideSubmitIcon?: boolean;
|
|
13
17
|
/**
|
|
14
18
|
* toggle user presence view
|
|
15
19
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext } from "react";
|
|
2
2
|
import { View, Text } from "react-native";
|
|
3
3
|
//@ts-ignore
|
|
4
|
-
import { CometChat } from "@cometchat-
|
|
4
|
+
import { CometChat } from "@cometchat/chat-sdk-react-native";
|
|
5
5
|
import { ChatConfigurator, CometChatConfirmDialog, CometChatContext, localize } from "../shared";
|
|
6
6
|
import { Style } from "./style";
|
|
7
7
|
import { passwordGroupIcon, privateGroupIcon, rightTickIcon, deleteIcon } from "./resources";
|
|
@@ -30,7 +30,7 @@ export const CometChatConversations = (props) => {
|
|
|
30
30
|
/**
|
|
31
31
|
* Props destructuring
|
|
32
32
|
*/
|
|
33
|
-
const { disableUsersPresence = false, disableReadReceipt = false, disableReceipt = false, disableTyping = false, disableSoundForMessages = false, customSoundForMessages, datePattern, ListItemView, AppBarOption, options, hideSeparator = true, backButtonIcon, showBackButton = false, selectionMode = "multiple", onSelection, title = localize("CHATS"), emptyStateText, EmptyStateView, errorStateText, ErrorStateView, LoadingStateView, conversationsRequestBuilder, SubtitleView, hideError = false, onItemPress, onItemLongPress, onError, onBack, conversationsStyle, } = props;
|
|
33
|
+
const { disableUsersPresence = false, disableReadReceipt = false, disableReceipt = false, disableTyping = false, disableSoundForMessages = false, customSoundForMessages, datePattern, ListItemView, AppBarOption, options, hideSeparator = true, hideSubmitIcon = true, backButtonIcon, showBackButton = false, selectionMode = "multiple", onSelection, title = localize("CHATS"), emptyStateText, EmptyStateView, errorStateText, ErrorStateView, LoadingStateView, conversationsRequestBuilder, SubtitleView, hideError = false, onItemPress, onItemLongPress, onError, onBack, conversationsStyle, } = props;
|
|
34
34
|
//context
|
|
35
35
|
const { theme } = useContext(CometChatContext);
|
|
36
36
|
const conversationListRef = React.useRef(null);
|
|
@@ -247,6 +247,17 @@ export const CometChatConversations = (props) => {
|
|
|
247
247
|
setSelecting(true);
|
|
248
248
|
setSelectedConversations([...selectedConversation, conversation]);
|
|
249
249
|
};
|
|
250
|
+
const removeItemFromSelectionList = (id) => {
|
|
251
|
+
//remove from selected list if list is in selecting mode.
|
|
252
|
+
if (selecting) {
|
|
253
|
+
let index = selectedConversation.find(member => member['uid'] == id);
|
|
254
|
+
if (index > -1) {
|
|
255
|
+
let tmpSelectedConversations = [...selectedConversation];
|
|
256
|
+
tmpSelectedConversations.splice(index, 1);
|
|
257
|
+
setSelectedConversations(tmpSelectedConversations);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
};
|
|
250
261
|
const removeConversation = (id) => {
|
|
251
262
|
let conversation = conversationListRef.current.getListItem(id);
|
|
252
263
|
const { conversationWith, conversationType } = conversation;
|
|
@@ -254,6 +265,7 @@ export const CometChatConversations = (props) => {
|
|
|
254
265
|
CometChat.deleteConversation(conversationWithId, conversationType)
|
|
255
266
|
.then(success => {
|
|
256
267
|
conversationListRef.current.removeItemFromList(id);
|
|
268
|
+
removeItemFromSelectionList(id);
|
|
257
269
|
})
|
|
258
270
|
.catch(err => console.log(err));
|
|
259
271
|
};
|
|
@@ -425,7 +437,7 @@ export const CometChatConversations = (props) => {
|
|
|
425
437
|
onMessagesRead: (messageReceipt) => {
|
|
426
438
|
messageEventHandler(messageReceipt);
|
|
427
439
|
},
|
|
428
|
-
|
|
440
|
+
onMessagesDelivered: (messageReveipt) => {
|
|
429
441
|
messageEventHandler(messageReveipt);
|
|
430
442
|
},
|
|
431
443
|
onTypingStarted: (typingIndicator) => {
|
|
@@ -440,6 +452,7 @@ export const CometChatConversations = (props) => {
|
|
|
440
452
|
CometChat.deleteConversation(conversation.getConversationId(), conversation.getConversationType())
|
|
441
453
|
.then(res => {
|
|
442
454
|
conversationListRef.current.removeItemFromList(conversation);
|
|
455
|
+
removeItemFromSelectionList(conversation.getConversationId());
|
|
443
456
|
})
|
|
444
457
|
.catch(err => {
|
|
445
458
|
console.log("Error", err);
|
|
@@ -491,10 +504,12 @@ export const CometChatConversations = (props) => {
|
|
|
491
504
|
});
|
|
492
505
|
CometChatUIEventHandler.addGroupListener(groupListenerId, {
|
|
493
506
|
ccGroupDeleted: ({ group }) => {
|
|
494
|
-
conversationListRef.current?.removeItemFromList(group['
|
|
507
|
+
conversationListRef.current?.removeItemFromList(group['conversationId']);
|
|
508
|
+
removeItemFromSelectionList(group['conversationId']);
|
|
495
509
|
},
|
|
496
510
|
ccGroupLeft: ({ leftGroup }) => {
|
|
497
511
|
conversationListRef.current?.removeItemFromList(leftGroup['conversationId']);
|
|
512
|
+
removeItemFromSelectionList(leftGroup['conversationId']);
|
|
498
513
|
},
|
|
499
514
|
ccGroupMemberKicked: ({ message, kickedFrom }) => {
|
|
500
515
|
CometChat.CometChatHelper.getConversationFromMessage(message)
|
|
@@ -589,10 +604,10 @@ export const CometChatConversations = (props) => {
|
|
|
589
604
|
//custom view check
|
|
590
605
|
if (ListItemView)
|
|
591
606
|
return ListItemView(conversation);
|
|
592
|
-
const { conversationWith } = conversation;
|
|
607
|
+
const { conversationWith, conversationType } = conversation;
|
|
593
608
|
const lastMessage = CometChatConversationUtils.getLastMessage(conversation);
|
|
594
609
|
const { name, type, conversationId } = conversationWith || {};
|
|
595
|
-
let image, backgroundColor, avatarIcon = conversationWith[
|
|
610
|
+
let image, backgroundColor, avatarIcon = conversationWith[conversationType == "group" ? 'icon' : "avatar"];
|
|
596
611
|
if (type == GroupTypeConstants.password) {
|
|
597
612
|
image = props?.protectedGroupIcon || passwordGroupIcon;
|
|
598
613
|
backgroundColor = PASSWORD_GROUP_COLOR;
|
|
@@ -618,7 +633,7 @@ export const CometChatConversations = (props) => {
|
|
|
618
633
|
*/
|
|
619
634
|
return (<View style={Style.container}>
|
|
620
635
|
<ConfirmDeletionDialog />
|
|
621
|
-
<CometChatList AppBarOptions={AppBarOption} onError={onError} ref={conversationListRef} requestBuilder={conversationsRequestBuilder || new CometChat.ConversationsRequestBuilder().setLimit(30)} title={title} hideSearch={true} listItemKey={"conversationId"} LoadingStateView={LoadingStateView} ListItemView={ConversationItemView} EmptyStateView={EmptyStateView ? EmptyStateView : () => <EmptyView />} ErrorStateView={ErrorStateView ? ErrorStateView : () => <ErrorView />} onBack={onBack} backButtonIcon={backButtonIcon} showBackButton={showBackButton} onSelection={(items) => {
|
|
636
|
+
<CometChatList AppBarOptions={AppBarOption} onError={onError} ref={conversationListRef} requestBuilder={conversationsRequestBuilder || new CometChat.ConversationsRequestBuilder().setLimit(30)} title={title} hideSearch={true} hideSubmitIcon={hideSubmitIcon} listItemKey={"conversationId"} LoadingStateView={LoadingStateView} ListItemView={ConversationItemView} EmptyStateView={EmptyStateView ? EmptyStateView : () => <EmptyView />} ErrorStateView={ErrorStateView ? ErrorStateView : () => <ErrorView />} onBack={onBack} backButtonIcon={backButtonIcon} showBackButton={showBackButton} onSelection={(items) => {
|
|
622
637
|
onSelection && onSelection(items);
|
|
623
638
|
setSelecting(false);
|
|
624
639
|
setSelectedConversations([]);
|