@cometchat/chat-uikit-react-native 4.0.0-beta.1
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/LICENSE +21 -0
- package/README.md +67 -0
- package/android/build.gradle +139 -0
- package/android/gradle.properties +5 -0
- package/android/settings.gradle +3 -0
- package/android/src/main/AndroidManifest.xml +14 -0
- package/android/src/main/java/com/reactnativecometchatuikit/CometChatImageViewer.java +78 -0
- package/android/src/main/java/com/reactnativecometchatuikit/CometChatVideoPlayer.java +40 -0
- package/android/src/main/java/com/reactnativecometchatuikit/CometchatUiKitModule.java +33 -0
- package/android/src/main/java/com/reactnativecometchatuikit/CometchatUiKitPackage.java +33 -0
- package/android/src/main/java/com/reactnativecometchatuikit/FileManager.java +370 -0
- package/android/src/main/java/com/reactnativecometchatuikit/ImageManager.java +40 -0
- package/android/src/main/java/com/reactnativecometchatuikit/RNSoundModule.java +605 -0
- package/android/src/main/java/com/reactnativecometchatuikit/SoundPlayer.java +132 -0
- package/android/src/main/java/com/reactnativecometchatuikit/VideoManager.java +40 -0
- package/ios/CometchatUiKit.h +5 -0
- package/ios/CometchatUiKit.mm +31 -0
- package/ios/CometchatUiKit.xcodeproj/project.pbxproj +310 -0
- package/ios/CometchatUiKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/CometchatUiKit.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/CometchatUiKit.xcodeproj/project.xcworkspace/xcuserdata/ashishjajoo.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/CometchatUiKit.xcodeproj/xcuserdata/ashishjajoo.xcuserdatad/xcschemes/xcschememanagement.plist +22 -0
- package/ios/CometchatUiKit.xcodeproj/xcuserdata/ritikkaushik.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/ios/FileManager.h +7 -0
- package/ios/FileManager.m +257 -0
- package/ios/RNSound.h +17 -0
- package/ios/RNSound.m +391 -0
- package/ios/SoundPlayer.h +7 -0
- package/ios/SoundPlayer.m +86 -0
- package/ios/VideoManager.h +6 -0
- package/ios/VideoManager.m +51 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.d.ts +43 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.js +41 -0
- package/lib/CometChatAddMembers/AddMembersConfiguration.js.map +1 -0
- package/lib/CometChatAddMembers/CometChatAddMembers.d.ts +10 -0
- package/lib/CometChatAddMembers/CometChatAddMembers.js +60 -0
- package/lib/CometChatAddMembers/CometChatAddMembers.js.map +1 -0
- package/lib/CometChatAddMembers/index.d.ts +3 -0
- package/lib/CometChatAddMembers/index.js +4 -0
- package/lib/CometChatAddMembers/index.js.map +1 -0
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.d.ts +46 -0
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js +43 -0
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js.map +1 -0
- package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +18 -0
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js +72 -0
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +1 -0
- package/lib/CometChatBannedMembers/index.d.ts +3 -0
- package/lib/CometChatBannedMembers/index.js +4 -0
- package/lib/CometChatBannedMembers/index.js.map +1 -0
- package/lib/CometChatBannedMembers/resources/clear.png +0 -0
- package/lib/CometChatBannedMembers/resources/index.d.ts +3 -0
- package/lib/CometChatBannedMembers/resources/index.js +3 -0
- package/lib/CometChatBannedMembers/resources/index.js.map +1 -0
- package/lib/CometChatConversations/CometChatConversations.d.ts +195 -0
- package/lib/CometChatConversations/CometChatConversations.js +628 -0
- package/lib/CometChatConversations/CometChatConversations.js.map +1 -0
- package/lib/CometChatConversations/ConversationsConfiguration.d.ts +96 -0
- package/lib/CometChatConversations/ConversationsConfiguration.js +87 -0
- package/lib/CometChatConversations/ConversationsConfiguration.js.map +1 -0
- package/lib/CometChatConversations/ConversationsStyle.d.ts +38 -0
- package/lib/CometChatConversations/ConversationsStyle.js +46 -0
- package/lib/CometChatConversations/ConversationsStyle.js.map +1 -0
- package/lib/CometChatConversations/index.d.ts +4 -0
- package/lib/CometChatConversations/index.js +5 -0
- package/lib/CometChatConversations/index.js.map +1 -0
- package/lib/CometChatConversations/resources/back.png +0 -0
- package/lib/CometChatConversations/resources/blue-double-tick-icon.png +0 -0
- package/lib/CometChatConversations/resources/close.png +0 -0
- package/lib/CometChatConversations/resources/delete.png +0 -0
- package/lib/CometChatConversations/resources/error.png +0 -0
- package/lib/CometChatConversations/resources/grey-double-tick-icon.png +0 -0
- package/lib/CometChatConversations/resources/grey-tick-icon.png +0 -0
- package/lib/CometChatConversations/resources/index.d.ts +14 -0
- package/lib/CometChatConversations/resources/index.js +15 -0
- package/lib/CometChatConversations/resources/index.js.map +1 -0
- package/lib/CometChatConversations/resources/new.png +0 -0
- package/lib/CometChatConversations/resources/password.png +0 -0
- package/lib/CometChatConversations/resources/private.png +0 -0
- package/lib/CometChatConversations/resources/rightTick.png +0 -0
- package/lib/CometChatConversations/resources/sending.png +0 -0
- package/lib/CometChatConversations/resources/spineer.png +0 -0
- package/lib/CometChatConversations/style.d.ts +61 -0
- package/lib/CometChatConversations/style.js +63 -0
- package/lib/CometChatConversations/style.js.map +1 -0
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.d.ts +12 -0
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js +89 -0
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js.map +1 -0
- package/lib/CometChatConversationsWithMessages/index.d.ts +2 -0
- package/lib/CometChatConversationsWithMessages/index.js +3 -0
- package/lib/CometChatConversationsWithMessages/index.js.map +1 -0
- package/lib/CometChatConversationsWithMessages/styles.d.ts +12 -0
- package/lib/CometChatConversationsWithMessages/styles.js +14 -0
- package/lib/CometChatConversationsWithMessages/styles.js.map +1 -0
- package/lib/CometChatCreateGroup/CometChatCreateGroup.d.ts +98 -0
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js +196 -0
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js.map +1 -0
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.d.ts +14 -0
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js +15 -0
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js.map +1 -0
- package/lib/CometChatCreateGroup/Header.d.ts +3 -0
- package/lib/CometChatCreateGroup/Header.js +41 -0
- package/lib/CometChatCreateGroup/Header.js.map +1 -0
- package/lib/CometChatCreateGroup/index.d.ts +3 -0
- package/lib/CometChatCreateGroup/index.js +4 -0
- package/lib/CometChatCreateGroup/index.js.map +1 -0
- package/lib/CometChatCreateGroup/resources/close.png +0 -0
- package/lib/CometChatCreateGroup/resources/index.d.ts +5 -0
- package/lib/CometChatCreateGroup/resources/index.js +9 -0
- package/lib/CometChatCreateGroup/resources/index.js.map +1 -0
- package/lib/CometChatCreateGroup/resources/rightTick.png +0 -0
- package/lib/CometChatCreateGroup/resources/warning.png +0 -0
- package/lib/CometChatCreateGroup/style.d.ts +46 -0
- package/lib/CometChatCreateGroup/style.js +43 -0
- package/lib/CometChatCreateGroup/style.js.map +1 -0
- package/lib/CometChatDetails/CometChatDetails.d.ts +281 -0
- package/lib/CometChatDetails/CometChatDetails.js +404 -0
- package/lib/CometChatDetails/CometChatDetails.js.map +1 -0
- package/lib/CometChatDetails/DetailsConfiguration.d.ts +36 -0
- package/lib/CometChatDetails/DetailsConfiguration.js +26 -0
- package/lib/CometChatDetails/DetailsConfiguration.js.map +1 -0
- package/lib/CometChatDetails/Header.d.ts +3 -0
- package/lib/CometChatDetails/Header.js +26 -0
- package/lib/CometChatDetails/Header.js.map +1 -0
- package/lib/CometChatDetails/index.d.ts +3 -0
- package/lib/CometChatDetails/index.js +4 -0
- package/lib/CometChatDetails/index.js.map +1 -0
- package/lib/CometChatDetails/listners.d.ts +20 -0
- package/lib/CometChatDetails/listners.js +57 -0
- package/lib/CometChatDetails/listners.js.map +1 -0
- package/lib/CometChatDetails/resources/Back.png +0 -0
- package/lib/CometChatDetails/resources/close.png +0 -0
- package/lib/CometChatDetails/resources/index.d.ts +7 -0
- package/lib/CometChatDetails/resources/index.js +13 -0
- package/lib/CometChatDetails/resources/index.js.map +1 -0
- package/lib/CometChatDetails/resources/password.png +0 -0
- package/lib/CometChatDetails/resources/private.png +0 -0
- package/lib/CometChatDetails/resources/right-arrow.png +0 -0
- package/lib/CometChatDetails/styles.d.ts +28 -0
- package/lib/CometChatDetails/styles.js +23 -0
- package/lib/CometChatDetails/styles.js.map +1 -0
- package/lib/CometChatGroupMembers/CometChatGroupMembers.d.ts +96 -0
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js +348 -0
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -0
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.d.ts +63 -0
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js +59 -0
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js.map +1 -0
- package/lib/CometChatGroupMembers/GroupMemberStyle.d.ts +42 -0
- package/lib/CometChatGroupMembers/GroupMemberStyle.js +48 -0
- package/lib/CometChatGroupMembers/GroupMemberStyle.js.map +1 -0
- package/lib/CometChatGroupMembers/GroupScopeStyle.d.ts +28 -0
- package/lib/CometChatGroupMembers/GroupScopeStyle.js +35 -0
- package/lib/CometChatGroupMembers/GroupScopeStyle.js.map +1 -0
- package/lib/CometChatGroupMembers/index.d.ts +4 -0
- package/lib/CometChatGroupMembers/index.js +5 -0
- package/lib/CometChatGroupMembers/index.js.map +1 -0
- package/lib/CometChatGroupMembers/resources/banIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/downArrowIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/index.d.ts +5 -0
- package/lib/CometChatGroupMembers/resources/index.js +6 -0
- package/lib/CometChatGroupMembers/resources/index.js.map +1 -0
- package/lib/CometChatGroupMembers/resources/kickIcon.png +0 -0
- package/lib/CometChatGroupMembers/resources/rightTick.png +0 -0
- package/lib/CometChatGroupMembers/style.d.ts +31 -0
- package/lib/CometChatGroupMembers/style.js +30 -0
- package/lib/CometChatGroupMembers/style.js.map +1 -0
- package/lib/CometChatGroups/CometChatGroups.d.ts +137 -0
- package/lib/CometChatGroups/CometChatGroups.js +309 -0
- package/lib/CometChatGroups/CometChatGroups.js.map +1 -0
- package/lib/CometChatGroups/GroupsConfiguration.d.ts +74 -0
- package/lib/CometChatGroups/GroupsConfiguration.js +72 -0
- package/lib/CometChatGroups/GroupsConfiguration.js.map +1 -0
- package/lib/CometChatGroups/GroupsStyle.d.ts +51 -0
- package/lib/CometChatGroups/GroupsStyle.js +61 -0
- package/lib/CometChatGroups/GroupsStyle.js.map +1 -0
- package/lib/CometChatGroups/index.d.ts +4 -0
- package/lib/CometChatGroups/index.js +5 -0
- package/lib/CometChatGroups/index.js.map +1 -0
- package/lib/CometChatGroups/resources/back.png +0 -0
- package/lib/CometChatGroups/resources/close.png +0 -0
- package/lib/CometChatGroups/resources/create.png +0 -0
- package/lib/CometChatGroups/resources/index.d.ts +10 -0
- package/lib/CometChatGroups/resources/index.js +11 -0
- package/lib/CometChatGroups/resources/index.js.map +1 -0
- package/lib/CometChatGroups/resources/more.png +0 -0
- package/lib/CometChatGroups/resources/password.png +0 -0
- package/lib/CometChatGroups/resources/private.png +0 -0
- package/lib/CometChatGroups/resources/rightTick.png +0 -0
- package/lib/CometChatGroups/resources/search.png +0 -0
- package/lib/CometChatGroups/resources/spineer.png +0 -0
- package/lib/CometChatGroups/style.d.ts +16 -0
- package/lib/CometChatGroups/style.js +19 -0
- package/lib/CometChatGroups/style.js.map +1 -0
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.d.ts +13 -0
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js +109 -0
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -0
- package/lib/CometChatGroupsWithMessages/index.d.ts +2 -0
- package/lib/CometChatGroupsWithMessages/index.js +3 -0
- package/lib/CometChatGroupsWithMessages/index.js.map +1 -0
- package/lib/CometChatGroupsWithMessages/resources/index.d.ts +2 -0
- package/lib/CometChatGroupsWithMessages/resources/index.js +3 -0
- package/lib/CometChatGroupsWithMessages/resources/index.js.map +1 -0
- package/lib/CometChatGroupsWithMessages/resources/write.png +0 -0
- package/lib/CometChatGroupsWithMessages/styles.d.ts +12 -0
- package/lib/CometChatGroupsWithMessages/styles.js +14 -0
- package/lib/CometChatGroupsWithMessages/styles.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.d.ts +111 -0
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js +96 -0
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/Header.d.ts +3 -0
- package/lib/CometChatJoinProtectedGroup/Header.js +33 -0
- package/lib/CometChatJoinProtectedGroup/Header.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.d.ts +15 -0
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js +16 -0
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/index.d.ts +3 -0
- package/lib/CometChatJoinProtectedGroup/index.js +4 -0
- package/lib/CometChatJoinProtectedGroup/index.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/resources/close.png +0 -0
- package/lib/CometChatJoinProtectedGroup/resources/index.d.ts +4 -0
- package/lib/CometChatJoinProtectedGroup/resources/index.js +7 -0
- package/lib/CometChatJoinProtectedGroup/resources/index.js.map +1 -0
- package/lib/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
- package/lib/CometChatJoinProtectedGroup/style.d.ts +11 -0
- package/lib/CometChatJoinProtectedGroup/style.js +10 -0
- package/lib/CometChatJoinProtectedGroup/style.js.map +1 -0
- package/lib/CometChatMessageComposer/CometChatMessageComposer.d.ts +205 -0
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +537 -0
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.d.ts +37 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js +25 -0
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js.map +1 -0
- package/lib/CometChatMessageComposer/index.d.ts +3 -0
- package/lib/CometChatMessageComposer/index.js +4 -0
- package/lib/CometChatMessageComposer/index.js.map +1 -0
- package/lib/CometChatMessageComposer/resources/circle_add.png +0 -0
- package/lib/CometChatMessageComposer/resources/close.png +0 -0
- package/lib/CometChatMessageComposer/resources/emoji.png +0 -0
- package/lib/CometChatMessageComposer/resources/heart.png +0 -0
- package/lib/CometChatMessageComposer/resources/image.png +0 -0
- package/lib/CometChatMessageComposer/resources/index.d.ts +9 -0
- package/lib/CometChatMessageComposer/resources/index.js +17 -0
- package/lib/CometChatMessageComposer/resources/index.js.map +1 -0
- package/lib/CometChatMessageComposer/resources/send_message.png +0 -0
- package/lib/CometChatMessageComposer/resources/stickers.png +0 -0
- package/lib/CometChatMessageComposer/styles.d.ts +27 -0
- package/lib/CometChatMessageComposer/styles.js +29 -0
- package/lib/CometChatMessageComposer/styles.js.map +1 -0
- package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +150 -0
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +214 -0
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -0
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.d.ts +37 -0
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js +27 -0
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js.map +1 -0
- package/lib/CometChatMessageHeader/index.d.ts +3 -0
- package/lib/CometChatMessageHeader/index.js +4 -0
- package/lib/CometChatMessageHeader/index.js.map +1 -0
- package/lib/CometChatMessageHeader/listners.d.ts +27 -0
- package/lib/CometChatMessageHeader/listners.js +50 -0
- package/lib/CometChatMessageHeader/listners.js.map +1 -0
- package/lib/CometChatMessageHeader/resources/Back.png +0 -0
- package/lib/CometChatMessageHeader/resources/index.d.ts +5 -0
- package/lib/CometChatMessageHeader/resources/index.js +9 -0
- package/lib/CometChatMessageHeader/resources/index.js.map +1 -0
- package/lib/CometChatMessageHeader/resources/password.png +0 -0
- package/lib/CometChatMessageHeader/resources/private.png +0 -0
- package/lib/CometChatMessageHeader/styles.d.ts +16 -0
- package/lib/CometChatMessageHeader/styles.js +16 -0
- package/lib/CometChatMessageHeader/styles.js.map +1 -0
- package/lib/CometChatMessageList/CometChatMessageList.d.ts +73 -0
- package/lib/CometChatMessageList/CometChatMessageList.js +804 -0
- package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -0
- package/lib/CometChatMessageList/MessageListConfiguration.d.ts +101 -0
- package/lib/CometChatMessageList/MessageListConfiguration.js +37 -0
- package/lib/CometChatMessageList/MessageListConfiguration.js.map +1 -0
- package/lib/CometChatMessageList/MessageListStyle.d.ts +32 -0
- package/lib/CometChatMessageList/MessageListStyle.js +39 -0
- package/lib/CometChatMessageList/MessageListStyle.js.map +1 -0
- package/lib/CometChatMessageList/index.d.ts +4 -0
- package/lib/CometChatMessageList/index.js +5 -0
- package/lib/CometChatMessageList/index.js.map +1 -0
- package/lib/CometChatMessageList/resources/back.png +0 -0
- package/lib/CometChatMessageList/resources/close.png +0 -0
- package/lib/CometChatMessageList/resources/downArrowIcon.png +0 -0
- package/lib/CometChatMessageList/resources/index.d.ts +6 -0
- package/lib/CometChatMessageList/resources/index.js +7 -0
- package/lib/CometChatMessageList/resources/index.js.map +1 -0
- package/lib/CometChatMessageList/resources/rightArrowIcon.png +0 -0
- package/lib/CometChatMessageList/resources/spineer.png +0 -0
- package/lib/CometChatMessageList/style.d.ts +52 -0
- package/lib/CometChatMessageList/style.js +54 -0
- package/lib/CometChatMessageList/style.js.map +1 -0
- package/lib/CometChatMessages/CometChatMessages.d.ts +42 -0
- package/lib/CometChatMessages/CometChatMessages.js +167 -0
- package/lib/CometChatMessages/CometChatMessages.js.map +1 -0
- package/lib/CometChatMessages/MessageStyle.d.ts +15 -0
- package/lib/CometChatMessages/MessageStyle.js +19 -0
- package/lib/CometChatMessages/MessageStyle.js.map +1 -0
- package/lib/CometChatMessages/MessagesConfiguration.d.ts +69 -0
- package/lib/CometChatMessages/MessagesConfiguration.js +25 -0
- package/lib/CometChatMessages/MessagesConfiguration.js.map +1 -0
- package/lib/CometChatMessages/index.d.ts +4 -0
- package/lib/CometChatMessages/index.js +5 -0
- package/lib/CometChatMessages/index.js.map +1 -0
- package/lib/CometChatMessages/resources/index.d.ts +2 -0
- package/lib/CometChatMessages/resources/index.js +3 -0
- package/lib/CometChatMessages/resources/index.js.map +1 -0
- package/lib/CometChatMessages/resources/info.png +0 -0
- package/lib/CometChatMessages/style.d.ts +21 -0
- package/lib/CometChatMessages/style.js +23 -0
- package/lib/CometChatMessages/style.js.map +1 -0
- package/lib/CometChatTabs/CometChatTabs.d.ts +10 -0
- package/lib/CometChatTabs/CometChatTabs.js +74 -0
- package/lib/CometChatTabs/CometChatTabs.js.map +1 -0
- package/lib/CometChatTabs/CometChatTabsStyle.d.ts +6 -0
- package/lib/CometChatTabs/CometChatTabsStyle.js +13 -0
- package/lib/CometChatTabs/CometChatTabsStyle.js.map +1 -0
- package/lib/CometChatTabs/TabItemStyle.d.ts +20 -0
- package/lib/CometChatTabs/TabItemStyle.js +27 -0
- package/lib/CometChatTabs/TabItemStyle.js.map +1 -0
- package/lib/CometChatTabs/TabItems.d.ts +11 -0
- package/lib/CometChatTabs/TabItems.js +2 -0
- package/lib/CometChatTabs/TabItems.js.map +1 -0
- package/lib/CometChatTabs/index.d.ts +4 -0
- package/lib/CometChatTabs/index.js +4 -0
- package/lib/CometChatTabs/index.js.map +1 -0
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.d.ts +90 -0
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js +137 -0
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js.map +1 -0
- package/lib/CometChatThreadedMessages/Header.d.ts +12 -0
- package/lib/CometChatThreadedMessages/Header.js +23 -0
- package/lib/CometChatThreadedMessages/Header.js.map +1 -0
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.d.ts +18 -0
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js +16 -0
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js.map +1 -0
- package/lib/CometChatThreadedMessages/index.d.ts +3 -0
- package/lib/CometChatThreadedMessages/index.js +4 -0
- package/lib/CometChatThreadedMessages/index.js.map +1 -0
- package/lib/CometChatThreadedMessages/resources/Back.png +0 -0
- package/lib/CometChatThreadedMessages/resources/close.png +0 -0
- package/lib/CometChatThreadedMessages/resources/index.d.ts +8 -0
- package/lib/CometChatThreadedMessages/resources/index.js +15 -0
- package/lib/CometChatThreadedMessages/resources/index.js.map +1 -0
- package/lib/CometChatThreadedMessages/resources/more.png +0 -0
- package/lib/CometChatThreadedMessages/resources/password.png +0 -0
- package/lib/CometChatThreadedMessages/resources/private.png +0 -0
- package/lib/CometChatThreadedMessages/resources/right-arrow.png +0 -0
- package/lib/CometChatThreadedMessages/style.d.ts +27 -0
- package/lib/CometChatThreadedMessages/style.js +24 -0
- package/lib/CometChatThreadedMessages/style.js.map +1 -0
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +41 -0
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js +58 -0
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js.map +1 -0
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.d.ts +41 -0
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js +37 -0
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js.map +1 -0
- package/lib/CometChatTransferOwnership/index.d.ts +3 -0
- package/lib/CometChatTransferOwnership/index.js +4 -0
- package/lib/CometChatTransferOwnership/index.js.map +1 -0
- package/lib/CometChatUsers/CometChatUsers.d.ts +69 -0
- package/lib/CometChatUsers/CometChatUsers.js +64 -0
- package/lib/CometChatUsers/CometChatUsers.js.map +1 -0
- package/lib/CometChatUsers/UsersConfiguration.d.ts +43 -0
- package/lib/CometChatUsers/UsersConfiguration.js +41 -0
- package/lib/CometChatUsers/UsersConfiguration.js.map +1 -0
- package/lib/CometChatUsers/index.d.ts +3 -0
- package/lib/CometChatUsers/index.js +4 -0
- package/lib/CometChatUsers/index.js.map +1 -0
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.d.ts +11 -0
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js +63 -0
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -0
- package/lib/CometChatUsersWithMessages/index.d.ts +2 -0
- package/lib/CometChatUsersWithMessages/index.js +3 -0
- package/lib/CometChatUsersWithMessages/index.js.map +1 -0
- package/lib/CometChatUsersWithMessages/styles.d.ts +12 -0
- package/lib/CometChatUsersWithMessages/styles.js +14 -0
- package/lib/CometChatUsersWithMessages/styles.js.map +1 -0
- package/lib/calls/CallEvents.d.ts +9 -0
- package/lib/calls/CallEvents.js +10 -0
- package/lib/calls/CallEvents.js.map +1 -0
- package/lib/calls/CallUtils.d.ts +5 -0
- package/lib/calls/CallUtils.js +60 -0
- package/lib/calls/CallUtils.js.map +1 -0
- package/lib/calls/CallingConfiguration.d.ts +3 -0
- package/lib/calls/CallingConfiguration.js +5 -0
- package/lib/calls/CallingConfiguration.js.map +1 -0
- package/lib/calls/CallingDetailsUtils.d.ts +7 -0
- package/lib/calls/CallingDetailsUtils.js +31 -0
- package/lib/calls/CallingDetailsUtils.js.map +1 -0
- package/lib/calls/CallingExtension.d.ts +9 -0
- package/lib/calls/CallingExtension.js +30 -0
- package/lib/calls/CallingExtension.js.map +1 -0
- package/lib/calls/CallingExtentionDecorator.d.ts +33 -0
- package/lib/calls/CallingExtentionDecorator.js +154 -0
- package/lib/calls/CallingExtentionDecorator.js.map +1 -0
- package/lib/calls/CallingPacakge.d.ts +4 -0
- package/lib/calls/CallingPacakge.js +7 -0
- package/lib/calls/CallingPacakge.js.map +1 -0
- package/lib/calls/CallingPackage.d.ts +4 -0
- package/lib/calls/CallingPackage.js +7 -0
- package/lib/calls/CallingPackage.js.map +1 -0
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.d.ts +13 -0
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js +11 -0
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.d.ts +18 -0
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.js +25 -0
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.js.map +1 -0
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.d.ts +11 -0
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js +21 -0
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js.map +1 -0
- package/lib/calls/CometChatCallBubble/index.d.ts +4 -0
- package/lib/calls/CometChatCallBubble/index.js +5 -0
- package/lib/calls/CometChatCallBubble/index.js.map +1 -0
- package/lib/calls/CometChatCallBubble/resources/avatar.png +0 -0
- package/lib/calls/CometChatCallBubble/resources/incomingaudiocall.png +0 -0
- package/lib/calls/CometChatCallBubble/resources/incomingvideocall.png +0 -0
- package/lib/calls/CometChatCallBubble/resources/index.d.ts +4 -0
- package/lib/calls/CometChatCallBubble/resources/index.js +5 -0
- package/lib/calls/CometChatCallBubble/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallBubble/styles.d.ts +20 -0
- package/lib/calls/CometChatCallBubble/styles.js +22 -0
- package/lib/calls/CometChatCallBubble/styles.js.map +1 -0
- package/lib/calls/CometChatCallButtons/CallButtonStyle.d.ts +12 -0
- package/lib/calls/CometChatCallButtons/CallButtonStyle.js +19 -0
- package/lib/calls/CometChatCallButtons/CallButtonStyle.js.map +1 -0
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.d.ts +34 -0
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js +19 -0
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.d.ts +61 -0
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +198 -0
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +1 -0
- package/lib/calls/CometChatCallButtons/index.d.ts +4 -0
- package/lib/calls/CometChatCallButtons/index.js +4 -0
- package/lib/calls/CometChatCallButtons/index.js.map +1 -0
- package/lib/calls/CometChatCallButtons/resources/Call.png +0 -0
- package/lib/calls/CometChatCallButtons/resources/Video.png +0 -0
- package/lib/calls/CometChatCallButtons/resources/index.d.ts +3 -0
- package/lib/calls/CometChatCallButtons/resources/index.js +4 -0
- package/lib/calls/CometChatCallButtons/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallButtons/style.d.ts +12 -0
- package/lib/calls/CometChatCallButtons/style.js +14 -0
- package/lib/calls/CometChatCallButtons/style.js.map +1 -0
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.d.ts +54 -0
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js +31 -0
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.d.ts +20 -0
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.js +27 -0
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.js.map +1 -0
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.d.ts +1 -0
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.js +137 -0
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.js.map +1 -0
- package/lib/calls/CometChatCallDetails/index.d.ts +3 -0
- package/lib/calls/CometChatCallDetails/index.js +4 -0
- package/lib/calls/CometChatCallDetails/index.js.map +1 -0
- package/lib/calls/CometChatCallDetails/resources/CloseIcon.png +0 -0
- package/lib/calls/CometChatCallDetails/resources/index.d.ts +2 -0
- package/lib/calls/CometChatCallDetails/resources/index.js +3 -0
- package/lib/calls/CometChatCallDetails/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallDetails/style.d.ts +12 -0
- package/lib/calls/CometChatCallDetails/style.js +14 -0
- package/lib/calls/CometChatCallDetails/style.js.map +1 -0
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.d.ts +86 -0
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js +39 -0
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.d.ts +13 -0
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.js +20 -0
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.js.map +1 -0
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.d.ts +1 -0
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.js +250 -0
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.js.map +1 -0
- package/lib/calls/CometChatCallHistory/index.d.ts +3 -0
- package/lib/calls/CometChatCallHistory/index.js +4 -0
- package/lib/calls/CometChatCallHistory/index.js.map +1 -0
- package/lib/calls/CometChatCallHistory/resources/Back.png +0 -0
- package/lib/calls/CometChatCallHistory/resources/Call.png +0 -0
- package/lib/calls/CometChatCallHistory/resources/Info.png +0 -0
- package/lib/calls/CometChatCallHistory/resources/Selection.png +0 -0
- package/lib/calls/CometChatCallHistory/resources/Spineer.png +0 -0
- package/lib/calls/CometChatCallHistory/resources/Video.png +0 -0
- package/lib/calls/CometChatCallHistory/resources/check.png +0 -0
- package/lib/calls/CometChatCallHistory/resources/index.d.ts +8 -0
- package/lib/calls/CometChatCallHistory/resources/index.js +9 -0
- package/lib/calls/CometChatCallHistory/resources/index.js.map +1 -0
- package/lib/calls/CometChatCallHistory/style.d.ts +21 -0
- package/lib/calls/CometChatCallHistory/style.js +23 -0
- package/lib/calls/CometChatCallHistory/style.js.map +1 -0
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.d.ts +1 -0
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js +30 -0
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js.map +1 -0
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.d.ts +6 -0
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js +2 -0
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js.map +1 -0
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.d.ts +2 -0
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js +2 -0
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js.map +1 -0
- package/lib/calls/CometChatCallHistoryWithDetails/index.d.ts +3 -0
- package/lib/calls/CometChatCallHistoryWithDetails/index.js +2 -0
- package/lib/calls/CometChatCallHistoryWithDetails/index.js.map +1 -0
- package/lib/calls/CometChatCallHistoryWithDetails/style.d.ts +8 -0
- package/lib/calls/CometChatCallHistoryWithDetails/style.js +10 -0
- package/lib/calls/CometChatCallHistoryWithDetails/style.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +21 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +160 -0
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.d.ts +32 -0
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js +39 -0
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/index.d.ts +3 -0
- package/lib/calls/CometChatIncomingCall/index.js +4 -0
- package/lib/calls/CometChatIncomingCall/index.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/resources/Call.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/close.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/incomingaudiocall.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/incomingvideocall.png +0 -0
- package/lib/calls/CometChatIncomingCall/resources/index.d.ts +5 -0
- package/lib/calls/CometChatIncomingCall/resources/index.js +6 -0
- package/lib/calls/CometChatIncomingCall/resources/index.js.map +1 -0
- package/lib/calls/CometChatIncomingCall/styles.d.ts +9 -0
- package/lib/calls/CometChatIncomingCall/styles.js +11 -0
- package/lib/calls/CometChatIncomingCall/styles.js.map +1 -0
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.d.ts +12 -0
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js +41 -0
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js.map +1 -0
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.d.ts +13 -0
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js +13 -0
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js.map +1 -0
- package/lib/calls/CometChatOngoingCall/index.d.ts +3 -0
- package/lib/calls/CometChatOngoingCall/index.js +3 -0
- package/lib/calls/CometChatOngoingCall/index.js.map +1 -0
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +46 -0
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +141 -0
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -0
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.d.ts +18 -0
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js +15 -0
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js.map +1 -0
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.d.ts +14 -0
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js +21 -0
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js.map +1 -0
- package/lib/calls/CometChatOutgoingCall/index.d.ts +3 -0
- package/lib/calls/CometChatOutgoingCall/index.js +4 -0
- package/lib/calls/CometChatOutgoingCall/index.js.map +1 -0
- package/lib/calls/CometChatOutgoingCall/resources/Close.png +0 -0
- package/lib/calls/CometChatOutgoingCall/resources/index.d.ts +2 -0
- package/lib/calls/CometChatOutgoingCall/resources/index.js +3 -0
- package/lib/calls/CometChatOutgoingCall/resources/index.js.map +1 -0
- package/lib/calls/index.d.ts +12 -0
- package/lib/calls/index.js +13 -0
- package/lib/calls/index.js.map +1 -0
- package/lib/calls/resources/Call.png +0 -0
- package/lib/calls/resources/Video.png +0 -0
- package/lib/calls/resources/index.d.ts +3 -0
- package/lib/calls/resources/index.js +4 -0
- package/lib/calls/resources/index.js.map +1 -0
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.d.ts +55 -0
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js +30 -0
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js.map +1 -0
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +44 -0
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js +60 -0
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +1 -0
- package/lib/extensions/CollaborativeBubble/resources/index.d.ts +3 -0
- package/lib/extensions/CollaborativeBubble/resources/index.js +3 -0
- package/lib/extensions/CollaborativeBubble/resources/index.js.map +1 -0
- package/lib/extensions/CollaborativeBubble/resources/whiteboard.png +0 -0
- package/lib/extensions/CollaborativeBubble/styles.d.ts +33 -0
- package/lib/extensions/CollaborativeBubble/styles.js +72 -0
- package/lib/extensions/CollaborativeBubble/styles.js.map +1 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +14 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js +7 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js.map +1 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +11 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js +20 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js.map +1 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +22 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +129 -0
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +1 -0
- package/lib/extensions/CollaborativeDocument/index.d.ts +5 -0
- package/lib/extensions/CollaborativeDocument/index.js +6 -0
- package/lib/extensions/CollaborativeDocument/index.js.map +1 -0
- package/lib/extensions/CollaborativeDocument/resources/collaborative_document.png +0 -0
- package/lib/extensions/CollaborativeDocument/resources/collaborative_document_2x.png +0 -0
- package/lib/extensions/CollaborativeDocument/resources/index.d.ts +2 -0
- package/lib/extensions/CollaborativeDocument/resources/index.js +5 -0
- package/lib/extensions/CollaborativeDocument/resources/index.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +14 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js +7 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +11 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js +20 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +23 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +135 -0
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/index.d.ts +5 -0
- package/lib/extensions/CollaborativeWhiteboard/index.js +6 -0
- package/lib/extensions/CollaborativeWhiteboard/index.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/index.d.ts +2 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/index.js +5 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/index.js.map +1 -0
- package/lib/extensions/CollaborativeWhiteboard/resources/whiteboard.png +0 -0
- package/lib/extensions/ExtensionConstants.d.ts +50 -0
- package/lib/extensions/ExtensionConstants.js +51 -0
- package/lib/extensions/ExtensionConstants.js.map +1 -0
- package/lib/extensions/ExtensionModerator.d.ts +16 -0
- package/lib/extensions/ExtensionModerator.js +51 -0
- package/lib/extensions/ExtensionModerator.js.map +1 -0
- package/lib/extensions/ImageModeration/ImageModerationDecorator.d.ts +13 -0
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js +45 -0
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js.map +1 -0
- package/lib/extensions/ImageModeration/ImageModerationExtension.d.ts +13 -0
- package/lib/extensions/ImageModeration/ImageModerationExtension.js +21 -0
- package/lib/extensions/ImageModeration/ImageModerationExtension.js.map +1 -0
- package/lib/extensions/ImageModeration/ImageModerationFilter.d.ts +17 -0
- package/lib/extensions/ImageModeration/ImageModerationFilter.js +93 -0
- package/lib/extensions/ImageModeration/ImageModerationFilter.js.map +1 -0
- package/lib/extensions/ImageModeration/index.d.ts +4 -0
- package/lib/extensions/ImageModeration/index.js +5 -0
- package/lib/extensions/ImageModeration/index.js.map +1 -0
- package/lib/extensions/ImageModeration/resources/index.d.ts +3 -0
- package/lib/extensions/ImageModeration/resources/index.js +3 -0
- package/lib/extensions/ImageModeration/resources/index.js.map +1 -0
- package/lib/extensions/ImageModeration/resources/unsafe.png +0 -0
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.d.ts +18 -0
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js +17 -0
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js.map +1 -0
- package/lib/extensions/LinkPreview/LinkPreviewBubble.d.ts +12 -0
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js +34 -0
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js.map +1 -0
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.d.ts +14 -0
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js +13 -0
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js.map +1 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtention.d.ts +7 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js +14 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js.map +1 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.d.ts +13 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js +37 -0
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js.map +1 -0
- package/lib/extensions/LinkPreview/index.d.ts +6 -0
- package/lib/extensions/LinkPreview/index.js +6 -0
- package/lib/extensions/LinkPreview/index.js.map +1 -0
- package/lib/extensions/LinkPreview/resources/defaultImage.png +0 -0
- package/lib/extensions/LinkPreview/resources/index.d.ts +2 -0
- package/lib/extensions/LinkPreview/resources/index.js +3 -0
- package/lib/extensions/LinkPreview/resources/index.js.map +1 -0
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.d.ts +22 -0
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js +69 -0
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js.map +1 -0
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +21 -0
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +152 -0
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +1 -0
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.d.ts +13 -0
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js +21 -0
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js.map +1 -0
- package/lib/extensions/MessageTranslation/index.d.ts +4 -0
- package/lib/extensions/MessageTranslation/index.js +5 -0
- package/lib/extensions/MessageTranslation/index.js.map +1 -0
- package/lib/extensions/MessageTranslation/resources/index.d.ts +3 -0
- package/lib/extensions/MessageTranslation/resources/index.js +5 -0
- package/lib/extensions/MessageTranslation/resources/index.js.map +1 -0
- package/lib/extensions/MessageTranslation/resources/translate.png +0 -0
- package/lib/extensions/Polls/Header.d.ts +14 -0
- package/lib/extensions/Polls/Header.js +41 -0
- package/lib/extensions/Polls/Header.js.map +1 -0
- package/lib/extensions/Polls/Polls.d.ts +132 -0
- package/lib/extensions/Polls/Polls.js +218 -0
- package/lib/extensions/Polls/Polls.js.map +1 -0
- package/lib/extensions/Polls/PollsBubble.d.ts +83 -0
- package/lib/extensions/Polls/PollsBubble.js +202 -0
- package/lib/extensions/Polls/PollsBubble.js.map +1 -0
- package/lib/extensions/Polls/PollsConfigurations.d.ts +15 -0
- package/lib/extensions/Polls/PollsConfigurations.js +2 -0
- package/lib/extensions/Polls/PollsConfigurations.js.map +1 -0
- package/lib/extensions/Polls/PollsDecorator.d.ts +21 -0
- package/lib/extensions/Polls/PollsDecorator.js +103 -0
- package/lib/extensions/Polls/PollsDecorator.js.map +1 -0
- package/lib/extensions/Polls/PollsExtension.d.ts +11 -0
- package/lib/extensions/Polls/PollsExtension.js +20 -0
- package/lib/extensions/Polls/PollsExtension.js.map +1 -0
- package/lib/extensions/Polls/index.d.ts +4 -0
- package/lib/extensions/Polls/index.js +4 -0
- package/lib/extensions/Polls/index.js.map +1 -0
- package/lib/extensions/Polls/resources/close.png +0 -0
- package/lib/extensions/Polls/resources/document.png +0 -0
- package/lib/extensions/Polls/resources/index.d.ts +7 -0
- package/lib/extensions/Polls/resources/index.js +13 -0
- package/lib/extensions/Polls/resources/index.js.map +1 -0
- package/lib/extensions/Polls/resources/kickIcon.png +0 -0
- package/lib/extensions/Polls/resources/rightTick.png +0 -0
- package/lib/extensions/Polls/resources/warning.png +0 -0
- package/lib/extensions/Polls/style.d.ts +45 -0
- package/lib/extensions/Polls/style.js +39 -0
- package/lib/extensions/Polls/style.js.map +1 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.d.ts +22 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js +205 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js.map +1 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/index.d.ts +2 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/index.js +3 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/index.js.map +1 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/style.d.ts +40 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/style.js +42 -0
- package/lib/extensions/Reactions/CometChatMessageReactions/style.js.map +1 -0
- package/lib/extensions/Reactions/ReactionsDecorator.d.ts +23 -0
- package/lib/extensions/Reactions/ReactionsDecorator.js +113 -0
- package/lib/extensions/Reactions/ReactionsDecorator.js.map +1 -0
- package/lib/extensions/Reactions/ReactionsExtension.d.ts +13 -0
- package/lib/extensions/Reactions/ReactionsExtension.js +21 -0
- package/lib/extensions/Reactions/ReactionsExtension.js.map +1 -0
- package/lib/extensions/Reactions/index.d.ts +3 -0
- package/lib/extensions/Reactions/index.js +4 -0
- package/lib/extensions/Reactions/index.js.map +1 -0
- package/lib/extensions/Reactions/resources/AddReactions.png +0 -0
- package/lib/extensions/Reactions/resources/index.d.ts +3 -0
- package/lib/extensions/Reactions/resources/index.js +3 -0
- package/lib/extensions/Reactions/resources/index.js.map +1 -0
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.d.ts +14 -0
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +95 -0
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js.map +1 -0
- package/lib/extensions/SmartReplies/SmartRepliesExtension.d.ts +13 -0
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js +21 -0
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js.map +1 -0
- package/lib/extensions/SmartReplies/SmartRepliesView.d.ts +27 -0
- package/lib/extensions/SmartReplies/SmartRepliesView.js +152 -0
- package/lib/extensions/SmartReplies/SmartRepliesView.js.map +1 -0
- package/lib/extensions/SmartReplies/index.d.ts +3 -0
- package/lib/extensions/SmartReplies/index.js +4 -0
- package/lib/extensions/SmartReplies/index.js.map +1 -0
- package/lib/extensions/SmartReplies/resources/close.png +0 -0
- package/lib/extensions/SmartReplies/resources/index.d.ts +3 -0
- package/lib/extensions/SmartReplies/resources/index.js +5 -0
- package/lib/extensions/SmartReplies/resources/index.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +33 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js +90 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.d.ts +17 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js +17 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.d.ts +20 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js +27 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.d.ts +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js +61 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.d.ts +4 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.js +5 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.js.map +1 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.d.ts +55 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js +55 -0
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js.map +1 -0
- package/lib/extensions/Stickers/StickerConfiguration.d.ts +8 -0
- package/lib/extensions/Stickers/StickerConfiguration.js +12 -0
- package/lib/extensions/Stickers/StickerConfiguration.js.map +1 -0
- package/lib/extensions/Stickers/StickerStyle.d.ts +6 -0
- package/lib/extensions/Stickers/StickerStyle.js +10 -0
- package/lib/extensions/Stickers/StickerStyle.js.map +1 -0
- package/lib/extensions/Stickers/StickersBubble.d.ts +17 -0
- package/lib/extensions/Stickers/StickersBubble.js +21 -0
- package/lib/extensions/Stickers/StickersBubble.js.map +1 -0
- package/lib/extensions/Stickers/StickersExtension.d.ts +7 -0
- package/lib/extensions/Stickers/StickersExtension.js +22 -0
- package/lib/extensions/Stickers/StickersExtension.js.map +1 -0
- package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +22 -0
- package/lib/extensions/Stickers/StickersExtensionDecorator.js +108 -0
- package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +1 -0
- package/lib/extensions/Stickers/index.d.ts +5 -0
- package/lib/extensions/Stickers/index.js +5 -0
- package/lib/extensions/Stickers/index.js.map +1 -0
- package/lib/extensions/Stickers/resources/Stickers.png +0 -0
- package/lib/extensions/Stickers/resources/index.d.ts +2 -0
- package/lib/extensions/Stickers/resources/index.js +3 -0
- package/lib/extensions/Stickers/resources/index.js.map +1 -0
- package/lib/extensions/TextModeration/TextModerationConfiguration.d.ts +14 -0
- package/lib/extensions/TextModeration/TextModerationConfiguration.js +7 -0
- package/lib/extensions/TextModeration/TextModerationConfiguration.js.map +1 -0
- package/lib/extensions/TextModeration/TextModerationExtension.d.ts +11 -0
- package/lib/extensions/TextModeration/TextModerationExtension.js +20 -0
- package/lib/extensions/TextModeration/TextModerationExtension.js.map +1 -0
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +14 -0
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js +55 -0
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js.map +1 -0
- package/lib/extensions/TextModeration/index.d.ts +4 -0
- package/lib/extensions/TextModeration/index.js +4 -0
- package/lib/extensions/TextModeration/index.js.map +1 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.d.ts +16 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +64 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +14 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js +21 -0
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js.map +1 -0
- package/lib/extensions/ThumbnailGeneration/index.d.ts +2 -0
- package/lib/extensions/ThumbnailGeneration/index.js +3 -0
- package/lib/extensions/ThumbnailGeneration/index.js.map +1 -0
- package/lib/extensions/index.d.ts +13 -0
- package/lib/extensions/index.js +14 -0
- package/lib/extensions/index.js.map +1 -0
- package/lib/index.d.ts +24 -0
- package/lib/index.js +51 -0
- package/lib/index.js.map +1 -0
- package/lib/shared/CometChatContext.d.ts +4 -0
- package/lib/shared/CometChatContext.js +30 -0
- package/lib/shared/CometChatContext.js.map +1 -0
- package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +19 -0
- package/lib/shared/CometChatUiKit/CometChatUIKit.js +159 -0
- package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -0
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.d.ts +20 -0
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.js +66 -0
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.js.map +1 -0
- package/lib/shared/CometChatUiKit/UIKitSettings.d.ts +13 -0
- package/lib/shared/CometChatUiKit/UIKitSettings.js +23 -0
- package/lib/shared/CometChatUiKit/UIKitSettings.js.map +1 -0
- package/lib/shared/CometChatUiKit/index.d.ts +4 -0
- package/lib/shared/CometChatUiKit/index.js +5 -0
- package/lib/shared/CometChatUiKit/index.js.map +1 -0
- package/lib/shared/base/BaseStyle.d.ts +26 -0
- package/lib/shared/base/BaseStyle.js +26 -0
- package/lib/shared/base/BaseStyle.js.map +1 -0
- package/lib/shared/base/BorderStyle.d.ts +19 -0
- package/lib/shared/base/BorderStyle.js +19 -0
- package/lib/shared/base/BorderStyle.js.map +1 -0
- package/lib/shared/base/FontStyle.d.ts +18 -0
- package/lib/shared/base/FontStyle.js +18 -0
- package/lib/shared/base/FontStyle.js.map +1 -0
- package/lib/shared/base/ShadowStyle.d.ts +33 -0
- package/lib/shared/base/ShadowStyle.js +27 -0
- package/lib/shared/base/ShadowStyle.js.map +1 -0
- package/lib/shared/base/Types.d.ts +14 -0
- package/lib/shared/base/Types.js +2 -0
- package/lib/shared/base/Types.js.map +1 -0
- package/lib/shared/base/index.d.ts +6 -0
- package/lib/shared/base/index.js +6 -0
- package/lib/shared/base/index.js.map +1 -0
- package/lib/shared/constants/UIKitConstants.d.ts +286 -0
- package/lib/shared/constants/UIKitConstants.js +304 -0
- package/lib/shared/constants/UIKitConstants.js.map +1 -0
- package/lib/shared/events/CometChatMessageEvents/index.d.ts +43 -0
- package/lib/shared/events/CometChatMessageEvents/index.js +93 -0
- package/lib/shared/events/CometChatMessageEvents/index.js.map +1 -0
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.d.ts +30 -0
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +304 -0
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -0
- package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +182 -0
- package/lib/shared/events/CometChatUIEventHandler/Listener.js +263 -0
- package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -0
- package/lib/shared/events/CometChatUIEvents.d.ts +16 -0
- package/lib/shared/events/CometChatUIEvents.js +18 -0
- package/lib/shared/events/CometChatUIEvents.js.map +1 -0
- package/lib/shared/events/conversations.d.ts +3 -0
- package/lib/shared/events/conversations.js +5 -0
- package/lib/shared/events/conversations.js.map +1 -0
- package/lib/shared/events/groups.d.ts +10 -0
- package/lib/shared/events/groups.js +12 -0
- package/lib/shared/events/groups.js.map +1 -0
- package/lib/shared/events/index.d.ts +6 -0
- package/lib/shared/events/index.js +7 -0
- package/lib/shared/events/index.js.map +1 -0
- package/lib/shared/events/messages.d.ts +11 -0
- package/lib/shared/events/messages.js +13 -0
- package/lib/shared/events/messages.js.map +1 -0
- package/lib/shared/framework/ChatConfigurator.d.ts +8 -0
- package/lib/shared/framework/ChatConfigurator.js +23 -0
- package/lib/shared/framework/ChatConfigurator.js.map +1 -0
- package/lib/shared/framework/DataSource.d.ts +49 -0
- package/lib/shared/framework/DataSource.js +2 -0
- package/lib/shared/framework/DataSource.js.map +1 -0
- package/lib/shared/framework/DataSourceDecorator.d.ts +49 -0
- package/lib/shared/framework/DataSourceDecorator.js +121 -0
- package/lib/shared/framework/DataSourceDecorator.js.map +1 -0
- package/lib/shared/framework/ExtensionsDataSource.d.ts +3 -0
- package/lib/shared/framework/ExtensionsDataSource.js +2 -0
- package/lib/shared/framework/ExtensionsDataSource.js.map +1 -0
- package/lib/shared/framework/MessageDataSource.d.ts +72 -0
- package/lib/shared/framework/MessageDataSource.js +526 -0
- package/lib/shared/framework/MessageDataSource.js.map +1 -0
- package/lib/shared/framework/index.d.ts +6 -0
- package/lib/shared/framework/index.js +5 -0
- package/lib/shared/framework/index.js.map +1 -0
- package/lib/shared/framework/resources/audio-file.png +0 -0
- package/lib/shared/framework/resources/circle_add.png +0 -0
- package/lib/shared/framework/resources/copy.png +0 -0
- package/lib/shared/framework/resources/delete.png +0 -0
- package/lib/shared/framework/resources/edit.png +0 -0
- package/lib/shared/framework/resources/emoji.png +0 -0
- package/lib/shared/framework/resources/file_upload.png +0 -0
- package/lib/shared/framework/resources/forward.png +0 -0
- package/lib/shared/framework/resources/heart.png +0 -0
- package/lib/shared/framework/resources/image.png +0 -0
- package/lib/shared/framework/resources/index.d.ts +18 -0
- package/lib/shared/framework/resources/index.js +35 -0
- package/lib/shared/framework/resources/index.js.map +1 -0
- package/lib/shared/framework/resources/info.png +0 -0
- package/lib/shared/framework/resources/location.png +0 -0
- package/lib/shared/framework/resources/reply.png +0 -0
- package/lib/shared/framework/resources/send_message.png +0 -0
- package/lib/shared/framework/resources/share.png +0 -0
- package/lib/shared/framework/resources/thread.png +0 -0
- package/lib/shared/framework/resources/video_upload.png +0 -0
- package/lib/shared/helper/SwipeRow.d.ts +162 -0
- package/lib/shared/helper/SwipeRow.js +808 -0
- package/lib/shared/helper/SwipeRow.js.map +1 -0
- package/lib/shared/helper/functions.d.ts +3 -0
- package/lib/shared/helper/functions.js +32 -0
- package/lib/shared/helper/functions.js.map +1 -0
- package/lib/shared/helper/helperFunctions.d.ts +2 -0
- package/lib/shared/helper/helperFunctions.js +17 -0
- package/lib/shared/helper/helperFunctions.js.map +1 -0
- package/lib/shared/helper/types/index.d.ts +20 -0
- package/lib/shared/helper/types/index.js +2 -0
- package/lib/shared/helper/types/index.js.map +1 -0
- package/lib/shared/helper/useKeyboard.d.ts +1 -0
- package/lib/shared/helper/useKeyboard.js +25 -0
- package/lib/shared/helper/useKeyboard.js.map +1 -0
- package/lib/shared/index.d.ts +14 -0
- package/lib/shared/index.js +28 -0
- package/lib/shared/index.js.map +1 -0
- package/lib/shared/modals/CometChatDetailsOption.d.ts +18 -0
- package/lib/shared/modals/CometChatDetailsOption.js +2 -0
- package/lib/shared/modals/CometChatDetailsOption.js.map +1 -0
- package/lib/shared/modals/CometChatDetailsTemplate.d.ts +15 -0
- package/lib/shared/modals/CometChatDetailsTemplate.js +2 -0
- package/lib/shared/modals/CometChatDetailsTemplate.js.map +1 -0
- package/lib/shared/modals/CometChatMessageOption.d.ts +13 -0
- package/lib/shared/modals/CometChatMessageOption.js +2 -0
- package/lib/shared/modals/CometChatMessageOption.js.map +1 -0
- package/lib/shared/modals/CometChatMessageTemplate.d.ts +24 -0
- package/lib/shared/modals/CometChatMessageTemplate.js +20 -0
- package/lib/shared/modals/CometChatMessageTemplate.js.map +1 -0
- package/lib/shared/modals/CometChatOptions.d.ts +14 -0
- package/lib/shared/modals/CometChatOptions.js +2 -0
- package/lib/shared/modals/CometChatOptions.js.map +1 -0
- package/lib/shared/modals/index.d.ts +6 -0
- package/lib/shared/modals/index.js +3 -0
- package/lib/shared/modals/index.js.map +1 -0
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +3603 -0
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js +164 -0
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js.map +1 -0
- package/lib/shared/resources/CometChatLocalize/index.d.ts +2 -0
- package/lib/shared/resources/CometChatLocalize/index.js +3 -0
- package/lib/shared/resources/CometChatLocalize/index.js.map +1 -0
- package/lib/shared/resources/CometChatLocalize/resources/ar/translation.json +264 -0
- package/lib/shared/resources/CometChatLocalize/resources/de/translation.json +264 -0
- package/lib/shared/resources/CometChatLocalize/resources/en/translation.json +264 -0
- package/lib/shared/resources/CometChatLocalize/resources/es/translation.json +264 -0
- package/lib/shared/resources/CometChatLocalize/resources/fr/translation.json +264 -0
- package/lib/shared/resources/CometChatLocalize/resources/hi/translation.json +264 -0
- package/lib/shared/resources/CometChatLocalize/resources/lt/translation.json +264 -0
- package/lib/shared/resources/CometChatLocalize/resources/ms/translation.json +264 -0
- package/lib/shared/resources/CometChatLocalize/resources/pt/translation.json +264 -0
- package/lib/shared/resources/CometChatLocalize/resources/ru/translation.json +264 -0
- package/lib/shared/resources/CometChatLocalize/resources/sv/translation.json +264 -0
- package/lib/shared/resources/CometChatLocalize/resources/zh/translation.json +264 -0
- package/lib/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +264 -0
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.d.ts +13 -0
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js +82 -0
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js.map +1 -0
- package/lib/shared/resources/CometChatSoundManager/index.d.ts +2 -0
- package/lib/shared/resources/CometChatSoundManager/index.js +3 -0
- package/lib/shared/resources/CometChatSoundManager/index.js.map +1 -0
- package/lib/shared/resources/CometChatSoundManager/resources/incomingcall.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/incomingmessage.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/incomingothermessage.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/index.d.ts +1 -0
- package/lib/shared/resources/CometChatSoundManager/resources/index.js +6 -0
- package/lib/shared/resources/CometChatSoundManager/resources/index.js.map +1 -0
- package/lib/shared/resources/CometChatSoundManager/resources/outgoingcall.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/resources/outgoingmessage.wav +0 -0
- package/lib/shared/resources/CometChatSoundManager/sound.d.ts +56 -0
- package/lib/shared/resources/CometChatSoundManager/sound.js +303 -0
- package/lib/shared/resources/CometChatSoundManager/sound.js.map +1 -0
- package/lib/shared/resources/CometChatTheme/CometChatTheme.d.ts +22 -0
- package/lib/shared/resources/CometChatTheme/CometChatTheme.js +23 -0
- package/lib/shared/resources/CometChatTheme/CometChatTheme.js.map +1 -0
- package/lib/shared/resources/CometChatTheme/Palette.d.ts +118 -0
- package/lib/shared/resources/CometChatTheme/Palette.js +389 -0
- package/lib/shared/resources/CometChatTheme/Palette.js.map +1 -0
- package/lib/shared/resources/CometChatTheme/Typography.d.ts +80 -0
- package/lib/shared/resources/CometChatTheme/Typography.js +212 -0
- package/lib/shared/resources/CometChatTheme/Typography.js.map +1 -0
- package/lib/shared/resources/CometChatTheme/index.d.ts +2 -0
- package/lib/shared/resources/CometChatTheme/index.js +3 -0
- package/lib/shared/resources/CometChatTheme/index.js.map +1 -0
- package/lib/shared/resources/index.d.ts +4 -0
- package/lib/shared/resources/index.js +5 -0
- package/lib/shared/resources/index.js.map +1 -0
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.d.ts +15 -0
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js +87 -0
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js.map +1 -0
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.d.ts +20 -0
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js +27 -0
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js.map +1 -0
- package/lib/shared/utils/CometChatLiveReactions/index.d.ts +1 -0
- package/lib/shared/utils/CometChatLiveReactions/index.js +2 -0
- package/lib/shared/utils/CometChatLiveReactions/index.js.map +1 -0
- package/lib/shared/utils/CometChatLiveReactions/resources/heart.png +0 -0
- package/lib/shared/utils/CometChatLiveReactions/resources/index.d.ts +2 -0
- package/lib/shared/utils/CometChatLiveReactions/resources/index.js +3 -0
- package/lib/shared/utils/CometChatLiveReactions/resources/index.js.map +1 -0
- package/lib/shared/utils/CometChatLiveReactions/style.d.ts +5 -0
- package/lib/shared/utils/CometChatLiveReactions/style.js +7 -0
- package/lib/shared/utils/CometChatLiveReactions/style.js.map +1 -0
- package/lib/shared/utils/CometChatMessageHelper/index.d.ts +12 -0
- package/lib/shared/utils/CometChatMessageHelper/index.js +42 -0
- package/lib/shared/utils/CometChatMessageHelper/index.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +49 -0
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +106 -0
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.d.ts +24 -0
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js +23 -0
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.d.ts +31 -0
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.js +29 -0
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/index.d.ts +4 -0
- package/lib/shared/utils/CometChatMessagePreview/index.js +5 -0
- package/lib/shared/utils/CometChatMessagePreview/index.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
- package/lib/shared/utils/CometChatMessagePreview/resources/index.d.ts +2 -0
- package/lib/shared/utils/CometChatMessagePreview/resources/index.js +3 -0
- package/lib/shared/utils/CometChatMessagePreview/resources/index.js.map +1 -0
- package/lib/shared/utils/CometChatMessagePreview/style.d.ts +8 -0
- package/lib/shared/utils/CometChatMessagePreview/style.js +57 -0
- package/lib/shared/utils/CometChatMessagePreview/style.js.map +1 -0
- package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +13 -0
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js +295 -0
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js.map +1 -0
- package/lib/shared/utils/DetailsUtils/resources/Back.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/banIcon.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/close.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/index.d.ts +9 -0
- package/lib/shared/utils/DetailsUtils/resources/index.js +17 -0
- package/lib/shared/utils/DetailsUtils/resources/index.js.map +1 -0
- package/lib/shared/utils/DetailsUtils/resources/kickIcon.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/password.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/private.png +0 -0
- package/lib/shared/utils/DetailsUtils/resources/right-arrow.png +0 -0
- package/lib/shared/utils/conversationUtils.d.ts +7 -0
- package/lib/shared/utils/conversationUtils.js +73 -0
- package/lib/shared/utils/conversationUtils.js.map +1 -0
- package/lib/shared/utils/index.d.ts +6 -0
- package/lib/shared/utils/index.js +7 -0
- package/lib/shared/utils/index.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/ActionItem.d.ts +49 -0
- package/lib/shared/views/CometChatActionSheet/ActionItem.js +38 -0
- package/lib/shared/views/CometChatActionSheet/ActionItem.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.d.ts +43 -0
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js +49 -0
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +23 -0
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js +170 -0
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/hooks.d.ts +1 -0
- package/lib/shared/views/CometChatActionSheet/hooks.js +7 -0
- package/lib/shared/views/CometChatActionSheet/hooks.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/index.d.ts +3 -0
- package/lib/shared/views/CometChatActionSheet/index.js +4 -0
- package/lib/shared/views/CometChatActionSheet/index.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/resources/grid.png +0 -0
- package/lib/shared/views/CometChatActionSheet/resources/index.d.ts +4 -0
- package/lib/shared/views/CometChatActionSheet/resources/index.js +7 -0
- package/lib/shared/views/CometChatActionSheet/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatActionSheet/resources/list.png +0 -0
- package/lib/shared/views/CometChatActionSheet/style.d.ts +44 -0
- package/lib/shared/views/CometChatActionSheet/style.js +46 -0
- package/lib/shared/views/CometChatActionSheet/style.js.map +1 -0
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.d.ts +16 -0
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js +23 -0
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.d.ts +35 -0
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +92 -0
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +1 -0
- package/lib/shared/views/CometChatAudioBubble/index.d.ts +3 -0
- package/lib/shared/views/CometChatAudioBubble/index.js +4 -0
- package/lib/shared/views/CometChatAudioBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatAudioBubble/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatAudioBubble/resources/index.js +4 -0
- package/lib/shared/views/CometChatAudioBubble/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
- package/lib/shared/views/CometChatAudioBubble/resources/play.png +0 -0
- package/lib/shared/views/CometChatAudioBubble/style.d.ts +26 -0
- package/lib/shared/views/CometChatAudioBubble/style.js +28 -0
- package/lib/shared/views/CometChatAudioBubble/style.js.map +1 -0
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.d.ts +19 -0
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js +19 -0
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatAvatar/AvatarStyle.d.ts +28 -0
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js +38 -0
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js.map +1 -0
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.d.ts +25 -0
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js +88 -0
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js.map +1 -0
- package/lib/shared/views/CometChatAvatar/index.d.ts +4 -0
- package/lib/shared/views/CometChatAvatar/index.js +5 -0
- package/lib/shared/views/CometChatAvatar/index.js.map +1 -0
- package/lib/shared/views/CometChatAvatar/resources/default.jpg +0 -0
- package/lib/shared/views/CometChatAvatar/resources/index.d.ts +3 -0
- package/lib/shared/views/CometChatAvatar/resources/index.js +5 -0
- package/lib/shared/views/CometChatAvatar/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatAvatar/styles.d.ts +21 -0
- package/lib/shared/views/CometChatAvatar/styles.js +24 -0
- package/lib/shared/views/CometChatAvatar/styles.js.map +1 -0
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.d.ts +34 -0
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.js +37 -0
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatBadge/BadgeStyle.d.ts +11 -0
- package/lib/shared/views/CometChatBadge/BadgeStyle.js +25 -0
- package/lib/shared/views/CometChatBadge/BadgeStyle.js.map +1 -0
- package/lib/shared/views/CometChatBadge/CometChatBadge.d.ts +23 -0
- package/lib/shared/views/CometChatBadge/CometChatBadge.js +48 -0
- package/lib/shared/views/CometChatBadge/CometChatBadge.js.map +1 -0
- package/lib/shared/views/CometChatBadge/index.d.ts +4 -0
- package/lib/shared/views/CometChatBadge/index.js +5 -0
- package/lib/shared/views/CometChatBadge/index.js.map +1 -0
- package/lib/shared/views/CometChatBadge/styles.d.ts +14 -0
- package/lib/shared/views/CometChatBadge/styles.js +17 -0
- package/lib/shared/views/CometChatBadge/styles.js.map +1 -0
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.d.ts +18 -0
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +99 -0
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js.map +1 -0
- package/lib/shared/views/CometChatBottomSheet/index.d.ts +2 -0
- package/lib/shared/views/CometChatBottomSheet/index.js +3 -0
- package/lib/shared/views/CometChatBottomSheet/index.js.map +1 -0
- package/lib/shared/views/CometChatBottomSheet/style.d.ts +50 -0
- package/lib/shared/views/CometChatBottomSheet/style.js +52 -0
- package/lib/shared/views/CometChatBottomSheet/style.js.map +1 -0
- package/lib/shared/views/CometChatButton/CometChatButton.d.ts +10 -0
- package/lib/shared/views/CometChatButton/CometChatButton.js +30 -0
- package/lib/shared/views/CometChatButton/CometChatButton.js.map +1 -0
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.d.ts +18 -0
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.js +25 -0
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.js.map +1 -0
- package/lib/shared/views/CometChatButton/index.d.ts +3 -0
- package/lib/shared/views/CometChatButton/index.js +4 -0
- package/lib/shared/views/CometChatButton/index.js.map +1 -0
- package/lib/shared/views/CometChatButton/style.d.ts +6 -0
- package/lib/shared/views/CometChatButton/style.js +8 -0
- package/lib/shared/views/CometChatButton/style.js.map +1 -0
- package/lib/shared/views/CometChatCard/CometChatCard.d.ts +15 -0
- package/lib/shared/views/CometChatCard/CometChatCard.js +35 -0
- package/lib/shared/views/CometChatCard/CometChatCard.js.map +1 -0
- package/lib/shared/views/CometChatCard/CometChatCardStyle.d.ts +10 -0
- package/lib/shared/views/CometChatCard/CometChatCardStyle.js +17 -0
- package/lib/shared/views/CometChatCard/CometChatCardStyle.js.map +1 -0
- package/lib/shared/views/CometChatCard/index.d.ts +3 -0
- package/lib/shared/views/CometChatCard/index.js +4 -0
- package/lib/shared/views/CometChatCard/index.js.map +1 -0
- package/lib/shared/views/CometChatCard/style.d.ts +11 -0
- package/lib/shared/views/CometChatCard/style.js +13 -0
- package/lib/shared/views/CometChatCard/style.js.map +1 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +25 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js +90 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js.map +1 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.d.ts +24 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js +19 -0
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js.map +1 -0
- package/lib/shared/views/CometChatConfirmDialog/index.d.ts +3 -0
- package/lib/shared/views/CometChatConfirmDialog/index.js +3 -0
- package/lib/shared/views/CometChatConfirmDialog/index.js.map +1 -0
- package/lib/shared/views/CometChatConfirmDialog/style.d.ts +61 -0
- package/lib/shared/views/CometChatConfirmDialog/style.js +63 -0
- package/lib/shared/views/CometChatConfirmDialog/style.js.map +1 -0
- package/lib/shared/views/CometChatDate/CometChatDate.d.ts +41 -0
- package/lib/shared/views/CometChatDate/CometChatDate.js +140 -0
- package/lib/shared/views/CometChatDate/CometChatDate.js.map +1 -0
- package/lib/shared/views/CometChatDate/DateConfiguration.d.ts +21 -0
- package/lib/shared/views/CometChatDate/DateConfiguration.js +19 -0
- package/lib/shared/views/CometChatDate/DateConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatDate/DateStyle.d.ts +11 -0
- package/lib/shared/views/CometChatDate/DateStyle.js +16 -0
- package/lib/shared/views/CometChatDate/DateStyle.js.map +1 -0
- package/lib/shared/views/CometChatDate/index.d.ts +4 -0
- package/lib/shared/views/CometChatDate/index.js +5 -0
- package/lib/shared/views/CometChatDate/index.js.map +1 -0
- package/lib/shared/views/CometChatDate/style.d.ts +5 -0
- package/lib/shared/views/CometChatDate/style.js +8 -0
- package/lib/shared/views/CometChatDate/style.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +38 -0
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +136 -0
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.d.ts +16 -0
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js +17 -0
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.d.ts +21 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js +22 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.d.ts +19 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js +20 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.d.ts +27 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js +33 -0
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.d.ts +6579 -0
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.js +8218 -0
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/index.d.ts +4 -0
- package/lib/shared/views/CometChatEmojiKeyboard/index.js +5 -0
- package/lib/shared/views/CometChatEmojiKeyboard/index.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/activity.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/animals.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/flags.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/food.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.d.ts +9 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.js +10 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/objects.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/smileys.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/symbols.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/resources/travel.png +0 -0
- package/lib/shared/views/CometChatEmojiKeyboard/style.d.ts +44 -0
- package/lib/shared/views/CometChatEmojiKeyboard/style.js +57 -0
- package/lib/shared/views/CometChatEmojiKeyboard/style.js.map +1 -0
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.d.ts +35 -0
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js +63 -0
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +1 -0
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.d.ts +31 -0
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js +23 -0
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatFileBubble/index.d.ts +3 -0
- package/lib/shared/views/CometChatFileBubble/index.js +4 -0
- package/lib/shared/views/CometChatFileBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatFileBubble/resources/download.png +0 -0
- package/lib/shared/views/CometChatFileBubble/resources/index.d.ts +2 -0
- package/lib/shared/views/CometChatFileBubble/resources/index.js +3 -0
- package/lib/shared/views/CometChatFileBubble/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatFileBubble/style.d.ts +42 -0
- package/lib/shared/views/CometChatFileBubble/style.js +45 -0
- package/lib/shared/views/CometChatFileBubble/style.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.d.ts +29 -0
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +34 -0
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.d.ts +10 -0
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js +13 -0
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatImageBubble/index.d.ts +3 -0
- package/lib/shared/views/CometChatImageBubble/index.js +4 -0
- package/lib/shared/views/CometChatImageBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatList/CometChatList.d.ts +84 -0
- package/lib/shared/views/CometChatList/CometChatList.js +396 -0
- package/lib/shared/views/CometChatList/CometChatList.js.map +1 -0
- package/lib/shared/views/CometChatList/Header.d.ts +2 -0
- package/lib/shared/views/CometChatList/Header.js +71 -0
- package/lib/shared/views/CometChatList/Header.js.map +1 -0
- package/lib/shared/views/CometChatList/index.d.ts +2 -0
- package/lib/shared/views/CometChatList/index.js +3 -0
- package/lib/shared/views/CometChatList/index.js.map +1 -0
- package/lib/shared/views/CometChatList/resources/Back.png +0 -0
- package/lib/shared/views/CometChatList/resources/Search.png +0 -0
- package/lib/shared/views/CometChatList/resources/Spinner.png +0 -0
- package/lib/shared/views/CometChatList/resources/check.png +0 -0
- package/lib/shared/views/CometChatList/resources/checkmark.png +0 -0
- package/lib/shared/views/CometChatList/resources/index.d.ts +7 -0
- package/lib/shared/views/CometChatList/resources/index.js +13 -0
- package/lib/shared/views/CometChatList/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatList/styles.d.ts +99 -0
- package/lib/shared/views/CometChatList/styles.js +102 -0
- package/lib/shared/views/CometChatList/styles.js.map +1 -0
- package/lib/shared/views/CometChatListItem/CometChatListItem.d.ts +37 -0
- package/lib/shared/views/CometChatListItem/CometChatListItem.js +173 -0
- package/lib/shared/views/CometChatListItem/CometChatListItem.js.map +1 -0
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.d.ts +6 -0
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.js +9 -0
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatListItem/ListItemStyle.d.ts +27 -0
- package/lib/shared/views/CometChatListItem/ListItemStyle.js +34 -0
- package/lib/shared/views/CometChatListItem/ListItemStyle.js.map +1 -0
- package/lib/shared/views/CometChatListItem/index.d.ts +4 -0
- package/lib/shared/views/CometChatListItem/index.js +5 -0
- package/lib/shared/views/CometChatListItem/index.js.map +1 -0
- package/lib/shared/views/CometChatListItem/style.d.ts +61 -0
- package/lib/shared/views/CometChatListItem/style.js +61 -0
- package/lib/shared/views/CometChatListItem/style.js.map +1 -0
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.d.ts +21 -0
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js +41 -0
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +1 -0
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.d.ts +6 -0
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.js +13 -0
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatMessageBubble/index.d.ts +2 -0
- package/lib/shared/views/CometChatMessageBubble/index.js +3 -0
- package/lib/shared/views/CometChatMessageBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatMessageBubble/style.d.ts +0 -0
- package/lib/shared/views/CometChatMessageBubble/style.js +1 -0
- package/lib/shared/views/CometChatMessageBubble/style.js.map +1 -0
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.d.ts +98 -0
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +50 -0
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +1 -0
- package/lib/shared/views/CometChatMessageInput/index.d.ts +2 -0
- package/lib/shared/views/CometChatMessageInput/index.js +3 -0
- package/lib/shared/views/CometChatMessageInput/index.js.map +1 -0
- package/lib/shared/views/CometChatMessageInput/styles.d.ts +6 -0
- package/lib/shared/views/CometChatMessageInput/styles.js +8 -0
- package/lib/shared/views/CometChatMessageInput/styles.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.d.ts +30 -0
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js +48 -0
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.d.ts +30 -0
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js +39 -0
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.d.ts +3 -0
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.js +4 -0
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/index.d.ts +3 -0
- package/lib/shared/views/CometChatReceipt/index.js +4 -0
- package/lib/shared/views/CometChatReceipt/index.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/resources/blue-double-tick-icon.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/error.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/grey-double-tick-icon.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/grey-tick-icon.png +0 -0
- package/lib/shared/views/CometChatReceipt/resources/index.d.ts +7 -0
- package/lib/shared/views/CometChatReceipt/resources/index.js +18 -0
- package/lib/shared/views/CometChatReceipt/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatReceipt/resources/sending.png +0 -0
- package/lib/shared/views/CometChatReceipt/style.d.ts +8 -0
- package/lib/shared/views/CometChatReceipt/style.js +10 -0
- package/lib/shared/views/CometChatReceipt/style.js.map +1 -0
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.d.ts +25 -0
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js +40 -0
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js.map +1 -0
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.d.ts +17 -0
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js +16 -0
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js.map +1 -0
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.d.ts +20 -0
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.js +22 -0
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.js.map +1 -0
- package/lib/shared/views/CometChatStatusIndicator/index.d.ts +4 -0
- package/lib/shared/views/CometChatStatusIndicator/index.js +5 -0
- package/lib/shared/views/CometChatStatusIndicator/index.js.map +1 -0
- package/lib/shared/views/CometChatStatusIndicator/styles.d.ts +12 -0
- package/lib/shared/views/CometChatStatusIndicator/styles.js +15 -0
- package/lib/shared/views/CometChatStatusIndicator/styles.js.map +1 -0
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.d.ts +27 -0
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js +84 -0
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js.map +1 -0
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.d.ts +26 -0
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js +21 -0
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatTextBubble/index.d.ts +3 -0
- package/lib/shared/views/CometChatTextBubble/index.js +4 -0
- package/lib/shared/views/CometChatTextBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.d.ts +31 -0
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +35 -0
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.d.ts +16 -0
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +17 -0
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/index.d.ts +3 -0
- package/lib/shared/views/CometChatVideoBubble/index.js +4 -0
- package/lib/shared/views/CometChatVideoBubble/index.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/resources/index.d.ts +2 -0
- package/lib/shared/views/CometChatVideoBubble/resources/index.js +3 -0
- package/lib/shared/views/CometChatVideoBubble/resources/index.js.map +1 -0
- package/lib/shared/views/CometChatVideoBubble/resources/play.png +0 -0
- package/lib/shared/views/CometChatVideoBubble/style.d.ts +7 -0
- package/lib/shared/views/CometChatVideoBubble/style.js +9 -0
- package/lib/shared/views/CometChatVideoBubble/style.js.map +1 -0
- package/lib/shared/views/SwipeRow/SwipeRow.d.ts +8 -0
- package/lib/shared/views/SwipeRow/SwipeRow.js +79 -0
- package/lib/shared/views/SwipeRow/SwipeRow.js.map +1 -0
- package/lib/shared/views/SwipeRow/index.d.ts +2 -0
- package/lib/shared/views/SwipeRow/index.js +3 -0
- package/lib/shared/views/SwipeRow/index.js.map +1 -0
- package/lib/shared/views/SwipeRow/style.d.ts +28 -0
- package/lib/shared/views/SwipeRow/style.js +28 -0
- package/lib/shared/views/SwipeRow/style.js.map +1 -0
- package/lib/shared/views/index.d.ts +17 -0
- package/lib/shared/views/index.js +20 -0
- package/lib/shared/views/index.js.map +1 -0
- package/package.json +153 -0
- package/react-native-cometchat-ui-kit.podspec +36 -0
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
//@ts-ignore
|
|
2
|
+
import React, { useState, useRef } from "react";
|
|
3
|
+
//@ts-ignore
|
|
4
|
+
import { Text, View } from "react-native";
|
|
5
|
+
import { backIcon, searchIcon, passwordGroupIcon, privateGroupIcon, rightTickIcon, } from "./resources";
|
|
6
|
+
//@ts-ignore
|
|
7
|
+
import { CometChat } from "@cometchat-pro/react-native-chat";
|
|
8
|
+
import { GroupsStyle } from "./GroupsStyle";
|
|
9
|
+
import { Style } from "./style";
|
|
10
|
+
import { CometChatContext, localize } from "../shared";
|
|
11
|
+
import { BorderStyle } from "../shared";
|
|
12
|
+
import { GroupTypeConstants, PASSWORD_GROUP_COLOR, PRIVATE_GROUP_COLOR } from "../shared/constants/UIKitConstants";
|
|
13
|
+
import { CometChatListItem, ListItemStyle } from "../shared";
|
|
14
|
+
import { AvatarStyle, StatusIndicatorStyle } from "../shared";
|
|
15
|
+
import { CometChatList } from "../shared";
|
|
16
|
+
import { CometChatUIEventHandler } from "../shared/events/CometChatUIEventHandler/CometChatUIEventHandler";
|
|
17
|
+
const uiEventListener = "uiEvents_" + new Date().getTime();
|
|
18
|
+
const groupListenerId = "grouplist_" + new Date().getTime();
|
|
19
|
+
export const CometChatGroups = React.forwardRef((props, ref) => {
|
|
20
|
+
const { SubtitleView, ListItemView, AppBarOption, options, hideSeperator, groupsStyle, listItemStyle, avatarStyle, statusIndicatorStyle, searchPlaceHolderText, backButtonIcon, showBackButton, selectionMode, onSelection, searchBoxIcon, hideSearch, title, EmptyStateView, emptyStateText, ErrorStateView, errorStateText, LoadingStateView, groupRequestBuilder, searchRequestBuilder, privateGroupIcon, passwordGroupIcon, hideError, onItemPress, onItemLongPress, onError, onBack, } = props;
|
|
21
|
+
//context values
|
|
22
|
+
const { theme } = React.useContext(CometChatContext);
|
|
23
|
+
const groupListRef = useRef(null);
|
|
24
|
+
const [selecting, setSelecting] = useState(false);
|
|
25
|
+
const [selectedGroups, setSelectedGroups] = useState([]);
|
|
26
|
+
const _groupsStyle = new GroupsStyle({
|
|
27
|
+
backgroundColor: theme?.palette.getBackgroundColor(),
|
|
28
|
+
backIconTint: theme?.palette.getPrimary(),
|
|
29
|
+
emptyTextColor: theme?.palette.getAccent400(),
|
|
30
|
+
emptyTextFont: theme?.typography.caption2,
|
|
31
|
+
errorTextColor: theme?.palette.getError(),
|
|
32
|
+
errorTextFont: theme?.typography.subtitle1,
|
|
33
|
+
searchBackgroundColor: theme?.palette.getAccent600(),
|
|
34
|
+
searchIconTint: theme?.palette.getAccent600(),
|
|
35
|
+
searchBorder: new BorderStyle({
|
|
36
|
+
borderColor: theme?.palette.getAccent700(),
|
|
37
|
+
...groupsStyle?.border,
|
|
38
|
+
}),
|
|
39
|
+
searchTextColor: theme?.palette.getAccent(),
|
|
40
|
+
searchTextFont: theme?.typography.caption1,
|
|
41
|
+
searchPlaceHolderTextColor: theme?.palette.getAccent600(),
|
|
42
|
+
separatorColor: theme?.palette.getAccent100(),
|
|
43
|
+
subtitleTextColor: theme?.palette.getAccent600(),
|
|
44
|
+
subtitleTextFont: theme?.typography.text1,
|
|
45
|
+
titleColor: theme?.palette.getAccent(),
|
|
46
|
+
titleFont: theme?.typography.title1,
|
|
47
|
+
loadingIconTint: theme?.palette.getAccent600(),
|
|
48
|
+
...groupsStyle
|
|
49
|
+
});
|
|
50
|
+
const _avatarStyle = new AvatarStyle({
|
|
51
|
+
backgroundColor: theme?.palette.getAccent600(),
|
|
52
|
+
nameTextColor: theme?.palette.getSecondary(),
|
|
53
|
+
nameTextFont: theme?.typography.title1,
|
|
54
|
+
...avatarStyle
|
|
55
|
+
});
|
|
56
|
+
const _statusIndicatorStyle = new StatusIndicatorStyle(statusIndicatorStyle || {});
|
|
57
|
+
const _listItemStyle = new ListItemStyle({
|
|
58
|
+
backgroundColor: theme?.palette?.getBackgroundColor(),
|
|
59
|
+
titleColor: theme?.palette.getAccent(),
|
|
60
|
+
titleFont: theme?.typography.name,
|
|
61
|
+
...listItemStyle
|
|
62
|
+
});
|
|
63
|
+
// const listStyle = new CometChatListStyles({
|
|
64
|
+
// backgroundColor: theme?.palette?.getBackgroundColor(),
|
|
65
|
+
// titleColor: theme?.palette.getAccent(),
|
|
66
|
+
// titleFont: theme?.typography.name,
|
|
67
|
+
// })
|
|
68
|
+
React.useImperativeHandle(ref, () => ({
|
|
69
|
+
addGroup: addGroup,
|
|
70
|
+
updateGroup: updateGroup,
|
|
71
|
+
removeGroup: removeGroup
|
|
72
|
+
}));
|
|
73
|
+
const ErrorView = () => {
|
|
74
|
+
if (hideError)
|
|
75
|
+
return null;
|
|
76
|
+
if (ErrorStateView)
|
|
77
|
+
return <ErrorStateView />;
|
|
78
|
+
else
|
|
79
|
+
return (<View style={Style.listContainer}>
|
|
80
|
+
<Text style={{ ..._groupsStyle.errorTextFont, color: _groupsStyle.errorTextColor }}>
|
|
81
|
+
{errorStateText || localize("SOMETHING_WRONG")}
|
|
82
|
+
</Text>
|
|
83
|
+
</View>);
|
|
84
|
+
};
|
|
85
|
+
const EmptyView = () => {
|
|
86
|
+
if (EmptyStateView)
|
|
87
|
+
return <EmptyStateView />;
|
|
88
|
+
else
|
|
89
|
+
return (<View style={Style.listContainer}>
|
|
90
|
+
<Text style={{ ..._groupsStyle.emptyTextFont, color: _groupsStyle.emptyTextColor }}>
|
|
91
|
+
{emptyStateText || localize("NO_GROUPS_FOUND")}
|
|
92
|
+
</Text>
|
|
93
|
+
</View>);
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* Listener callback when a member is kicked from / has left the group
|
|
98
|
+
*/
|
|
99
|
+
const handleGroupMemberRemoval = (...options) => {
|
|
100
|
+
const group = options[3];
|
|
101
|
+
groupListRef.current.updateList(group);
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* Listener callback when a member is banned from the group
|
|
106
|
+
*/
|
|
107
|
+
const handleGroupMemberBan = (...options) => {
|
|
108
|
+
const group = options[3];
|
|
109
|
+
groupListRef.current.updateList(group);
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* Listener callback when a user joins/added to the group
|
|
114
|
+
*/
|
|
115
|
+
const handleGroupMemberAddition = (...options) => {
|
|
116
|
+
const group = options[3];
|
|
117
|
+
groupListRef.current.updateList(group);
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* Listener callback when a group member scope is updated
|
|
122
|
+
*/
|
|
123
|
+
const handleGroupMemberScopeChange = (...options) => {
|
|
124
|
+
const group = options[4];
|
|
125
|
+
groupListRef.current.updateList(group);
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* This will update group in the list if not found then
|
|
129
|
+
* @param {object} group Group object
|
|
130
|
+
*/
|
|
131
|
+
const updateGroup = (group) => {
|
|
132
|
+
groupListRef.current.updateList((grp) => grp["guid"] == group["guid"]);
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Add the group to the group list at first position.
|
|
136
|
+
* @param {object} group group object
|
|
137
|
+
*/
|
|
138
|
+
const addGroup = (group) => {
|
|
139
|
+
groupListRef.current.addItemToList((grp) => grp["guid"] == group["guid"], 0);
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* removes the group from the list.
|
|
143
|
+
* @param {object} group Group object
|
|
144
|
+
*/
|
|
145
|
+
const removeGroup = (group) => {
|
|
146
|
+
groupListRef.current.removeItemFromList(group["guid"]);
|
|
147
|
+
};
|
|
148
|
+
const groupClicked = (group) => {
|
|
149
|
+
if (selecting) {
|
|
150
|
+
if (selectionMode == "single") {
|
|
151
|
+
if (selectedGroups.length > 0 && selectedGroups[0].guid == group.guid)
|
|
152
|
+
setSelectedGroups([]);
|
|
153
|
+
else
|
|
154
|
+
setSelectedGroups([group]);
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const index = selectedGroups.findIndex((value) => value.guid == group.guid);
|
|
158
|
+
if (index >= 0) {
|
|
159
|
+
let tmp = [...selectedGroups];
|
|
160
|
+
tmp.splice(index, 1);
|
|
161
|
+
setSelectedGroups([...tmp]);
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
setSelectedGroups([...selectedGroups, group]);
|
|
165
|
+
}
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
onItemPress && onItemPress(group);
|
|
169
|
+
};
|
|
170
|
+
const groupLongPressed = (group) => {
|
|
171
|
+
if (selectionMode != "none") {
|
|
172
|
+
setSelecting(true);
|
|
173
|
+
if (selectionMode === "multiple")
|
|
174
|
+
setSelectedGroups([...selectedGroups, group]);
|
|
175
|
+
else
|
|
176
|
+
setSelectedGroups([group]);
|
|
177
|
+
}
|
|
178
|
+
onItemLongPress && onItemLongPress(group);
|
|
179
|
+
};
|
|
180
|
+
React.useEffect(() => {
|
|
181
|
+
CometChat.addGroupListener(groupListenerId, new CometChat.GroupListener({
|
|
182
|
+
onGroupMemberScopeChanged: (message, changedUser, newScope, oldScope, changedGroup) => {
|
|
183
|
+
handleGroupMemberScopeChange(message, changedUser, newScope, oldScope, changedGroup);
|
|
184
|
+
},
|
|
185
|
+
onGroupMemberKicked: (message, kickedUser, kickedBy, kickedFrom) => {
|
|
186
|
+
handleGroupMemberRemoval(message, kickedUser, kickedBy, kickedFrom);
|
|
187
|
+
},
|
|
188
|
+
onGroupMemberLeft: (message, leavingUser, group) => {
|
|
189
|
+
handleGroupMemberRemoval(message, leavingUser, null, group);
|
|
190
|
+
},
|
|
191
|
+
onGroupMemberBanned: (message, bannedUser, bannedBy, bannedFrom) => {
|
|
192
|
+
handleGroupMemberBan(message, bannedUser, bannedBy, bannedFrom);
|
|
193
|
+
},
|
|
194
|
+
onMemberAddedToGroup: (message, userAdded, userAddedBy, userAddedIn) => {
|
|
195
|
+
handleGroupMemberAddition(message, userAdded, userAddedBy, userAddedIn);
|
|
196
|
+
},
|
|
197
|
+
onGroupMemberJoined: (message, joinedUser, joinedGroup) => {
|
|
198
|
+
handleGroupMemberAddition(message, joinedUser, null, joinedGroup);
|
|
199
|
+
},
|
|
200
|
+
}));
|
|
201
|
+
CometChatUIEventHandler.addGroupListener(uiEventListener, {
|
|
202
|
+
ccGroupCreated: ({ group }) => {
|
|
203
|
+
groupListRef.current.addItemToList(group, 0);
|
|
204
|
+
},
|
|
205
|
+
ccGroupDeleted: ({ group }) => {
|
|
206
|
+
groupListRef.current?.removeItemFromList(group.guid);
|
|
207
|
+
},
|
|
208
|
+
ccGroupLeft: ({ leftGroup }) => {
|
|
209
|
+
leftGroup['hasJoined'] = false;
|
|
210
|
+
leftGroup['membersCount'] = leftGroup['membersCount'] - 1;
|
|
211
|
+
console.log(leftGroup);
|
|
212
|
+
if (leftGroup['type'] == CometChat.GROUP_TYPE.PRIVATE) {
|
|
213
|
+
groupListRef.current?.removeItemFromList(leftGroup.getGuid());
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
groupListRef.current?.updateList(leftGroup);
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
ccGroupMemberKicked: ({ group }) => {
|
|
220
|
+
if (group['type'] == CometChat.GROUP_TYPE.PRIVATE) {
|
|
221
|
+
groupListRef.current?.removeItemFromList(group.getGuid());
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
group.setHasJoined(false);
|
|
225
|
+
groupListRef.current?.updateList(group);
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
ccOwnershipChanged: ({ group }) => {
|
|
229
|
+
groupListRef.current?.updateList(group);
|
|
230
|
+
},
|
|
231
|
+
ccGroupMemberAdded: ({ userAddedIn }) => {
|
|
232
|
+
groupListRef.current?.updateList(userAddedIn);
|
|
233
|
+
},
|
|
234
|
+
ccGroupMemberJoined: ({ joinedGroup }) => {
|
|
235
|
+
joinedGroup['membersCount'] = joinedGroup['membersCount'] + 1;
|
|
236
|
+
joinedGroup['scope'] = "participant";
|
|
237
|
+
joinedGroup['hasJoined'] = true;
|
|
238
|
+
groupListRef.current?.updateList(joinedGroup);
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
return () => {
|
|
242
|
+
CometChat.removeGroupListener(groupListenerId);
|
|
243
|
+
CometChatUIEventHandler.removeGroupListener(uiEventListener);
|
|
244
|
+
};
|
|
245
|
+
}, []);
|
|
246
|
+
const GroupItemView = ({ item }) => {
|
|
247
|
+
//custom view check
|
|
248
|
+
if (ListItemView)
|
|
249
|
+
return ListItemView(item);
|
|
250
|
+
const { type, name, icon, membersCount } = item;
|
|
251
|
+
let image, backgroundColor = "transparent";
|
|
252
|
+
if (type == GroupTypeConstants.password) {
|
|
253
|
+
image = passwordGroupIcon || passwordGroupIcon;
|
|
254
|
+
backgroundColor = PASSWORD_GROUP_COLOR;
|
|
255
|
+
}
|
|
256
|
+
if (type == GroupTypeConstants.private) {
|
|
257
|
+
image = privateGroupIcon || privateGroupIcon;
|
|
258
|
+
backgroundColor = PRIVATE_GROUP_COLOR;
|
|
259
|
+
}
|
|
260
|
+
if (selecting) {
|
|
261
|
+
let index = selectedGroups.findIndex((value) => value.guid == item.guid);
|
|
262
|
+
if (index >= 0) {
|
|
263
|
+
image = rightTickIcon;
|
|
264
|
+
backgroundColor = theme?.palette?.getBackgroundColor();
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return <CometChatListItem id={item.guid} avatarName={name} avatarURL={icon} hideSeparator={hideSeperator} SubtitleView={() => SubtitleView && SubtitleView(item) || <Text style={{ color: theme.palette.getAccent600() }}>{membersCount} <Text>{localize("MEMBERS")}</Text></Text>} title={name} statusIndicatorIcon={image} statusIndicatorColor={backgroundColor} listItemStyle={_listItemStyle} avatarStyle={_avatarStyle} statusIndicatorStyle={_statusIndicatorStyle} onPress={groupClicked.bind(this, item)} onLongPress={groupLongPressed.bind(this, item)} options={() => options && options(item)}/>;
|
|
268
|
+
};
|
|
269
|
+
const onSelectionClicked = () => {
|
|
270
|
+
onSelection && onSelection(selectedGroups);
|
|
271
|
+
setSelecting(false);
|
|
272
|
+
setSelectedGroups([]);
|
|
273
|
+
};
|
|
274
|
+
return (<View style={[Style.container, { backgroundColor: _groupsStyle.backgroundColor }]}>
|
|
275
|
+
<CometChatList title={title} LoadingStateView={LoadingStateView} searchPlaceholderText={searchPlaceHolderText} ref={groupListRef} listItemKey="guid" ListItemView={GroupItemView} EmptyStateView={EmptyView} ErrorStateView={ErrorView} requestBuilder={groupRequestBuilder || new CometChat.GroupsRequestBuilder()
|
|
276
|
+
.setLimit(30)
|
|
277
|
+
.setSearchKeyword("")} searchRequestBuilder={searchRequestBuilder} AppBarOptions={AppBarOption} hideSeparator={hideSeperator} backButtonIcon={backButtonIcon} showBackButton={showBackButton} selectionMode={selectedGroups.length > 0 || selecting ? selectionMode : "none"} onSelection={onSelectionClicked} searchBoxIcon={searchBoxIcon} hideSearch={hideSearch} onError={onError} onBack={onBack} listStyle={{ ..._groupsStyle, background: _groupsStyle.backgroundColor }} statusIndicatorStyle={_statusIndicatorStyle} avatarStyle={_avatarStyle} listItemStyle={_listItemStyle}/>
|
|
278
|
+
</View>);
|
|
279
|
+
});
|
|
280
|
+
CometChatGroups.defaultProps = {
|
|
281
|
+
title: localize("GROUPS"),
|
|
282
|
+
searchPlaceHolderText: localize("SEARCH"),
|
|
283
|
+
showBackButton: false,
|
|
284
|
+
searchBoxIcon: searchIcon,
|
|
285
|
+
hideSearch: false,
|
|
286
|
+
listItemStyle: undefined,
|
|
287
|
+
avatarStyle: undefined,
|
|
288
|
+
statusIndicatorStyle: undefined,
|
|
289
|
+
SubtitleView: undefined,
|
|
290
|
+
ListItemView: undefined,
|
|
291
|
+
AppBarOption: undefined,
|
|
292
|
+
options: undefined,
|
|
293
|
+
hideSeperator: false,
|
|
294
|
+
backButtonIcon: backIcon,
|
|
295
|
+
selectionMode: "multiple",
|
|
296
|
+
onSelection: undefined,
|
|
297
|
+
EmptyStateView: undefined,
|
|
298
|
+
emptyStateText: undefined,
|
|
299
|
+
LoadingStateView: undefined,
|
|
300
|
+
groupRequestBuilder: undefined,
|
|
301
|
+
privateGroupIcon: privateGroupIcon,
|
|
302
|
+
passwordGroupIcon: passwordGroupIcon,
|
|
303
|
+
hideError: false,
|
|
304
|
+
onItemPress: undefined,
|
|
305
|
+
onItemLongPress: undefined,
|
|
306
|
+
onError: undefined,
|
|
307
|
+
onBack: undefined,
|
|
308
|
+
};
|
|
309
|
+
//# sourceMappingURL=CometChatGroups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CometChatGroups.js","sourceRoot":"","sources":["../../src/CometChatGroups/CometChatGroups.tsx"],"names":[],"mappings":"AAAA,YAAY;AACZ,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAChD,YAAY;AACZ,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACH,QAAQ,EAAE,UAAU,EACpB,iBAAiB,EAAE,gBAAgB,EACnC,aAAa,GAChB,MAAM,aAAa,CAAC;AACrB,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAwB,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAyD,QAAQ,EAAE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SAAS;IAC/B,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,OAAO,EAAE,SAAS;IAClB,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,QAAQ;IACxB,aAAa,EAAE,UAAU;IACzB,WAAW,EAAE,SAAS;IACtB,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,SAAS;IACzB,gBAAgB,EAAE,SAAS;IAC3B,mBAAmB,EAAE,SAAS;IAC9B,gBAAgB,EAAE,gBAAgB;IAClC,iBAAiB,EAAE,iBAAiB;IACpC,SAAS,EAAE,KAAK;IAChB,WAAW,EAAE,SAAS;IACtB,eAAe,EAAE,SAAS;IAC1B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,SAAS;CACpB,CAAA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AvatarStyleInterface, CometChatOptions, ImageType, ListItemStyleInterface } from '../shared';
|
|
3
|
+
import { GroupsStyleInterface } from './GroupsStyle';
|
|
4
|
+
import { CometChat } from '@cometchat-pro/react-native-chat';
|
|
5
|
+
import { StatusIndicatorStyleInterface } from '../shared/views/CometChatStatusIndicator/StatusIndicatorStyle';
|
|
6
|
+
export interface GroupsConfigurationInterface {
|
|
7
|
+
SubtitleView?: (item: CometChat.Group) => JSX.Element;
|
|
8
|
+
ListItemView?: (item: CometChat.Group) => JSX.Element;
|
|
9
|
+
AppBarOption?: () => JSX.Element;
|
|
10
|
+
options?: (item: CometChat.Group) => CometChatOptions[];
|
|
11
|
+
hideSeparator?: boolean;
|
|
12
|
+
groupsStyle?: GroupsStyleInterface;
|
|
13
|
+
searchPlaceholderText?: string;
|
|
14
|
+
backButton?: ImageType;
|
|
15
|
+
showBackButton?: boolean;
|
|
16
|
+
selectionMode?: 'none' | 'single' | 'multiple';
|
|
17
|
+
onSelection?: (items: Array<CometChat.Group>) => void;
|
|
18
|
+
searchBoxIcon?: ImageType;
|
|
19
|
+
hideSearch?: boolean;
|
|
20
|
+
title?: string;
|
|
21
|
+
EmptyStateView?: () => JSX.Element;
|
|
22
|
+
ErrorStateView?: () => JSX.Element;
|
|
23
|
+
LoadingStateView?: () => JSX.Element;
|
|
24
|
+
groupsRequestBuilder?: CometChat.GroupsRequestBuilder;
|
|
25
|
+
searchKeyword?: string;
|
|
26
|
+
privateGroupIcon?: ImageType;
|
|
27
|
+
passwordGroupIcon?: ImageType;
|
|
28
|
+
hideError?: boolean;
|
|
29
|
+
onItemPress?: (item: CometChat.Group) => void;
|
|
30
|
+
onItemLongPress?: (item: CometChat.Group) => void;
|
|
31
|
+
onError?: (e: CometChat.CometChatException) => void;
|
|
32
|
+
onBack?: () => void;
|
|
33
|
+
listItemStyle?: ListItemStyleInterface;
|
|
34
|
+
avatarStyle?: AvatarStyleInterface;
|
|
35
|
+
statusIndicatorStyle?: StatusIndicatorStyleInterface;
|
|
36
|
+
searchRequestBuilder?: CometChat.GroupsRequestBuilder;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @class GroupConfiguration
|
|
40
|
+
* @description GroupConfiguration class is used for defining the GroupConfiguration template.
|
|
41
|
+
*/
|
|
42
|
+
export declare class GroupsConfiguration implements GroupsConfigurationInterface {
|
|
43
|
+
SubtitleView: (item: CometChat.Group) => JSX.Element;
|
|
44
|
+
ListItemView: (item: CometChat.Group) => JSX.Element;
|
|
45
|
+
AppBarOption: () => JSX.Element;
|
|
46
|
+
options: (item: CometChat.Group) => CometChatOptions[];
|
|
47
|
+
hideSeparator: boolean;
|
|
48
|
+
searchPlaceholderText: string;
|
|
49
|
+
backButton: ImageType;
|
|
50
|
+
showBackButton: boolean;
|
|
51
|
+
selectionMode: 'none' | 'single' | 'multiple';
|
|
52
|
+
onSelection: (items: Array<CometChat.Group>) => void;
|
|
53
|
+
searchBoxIcon: ImageType;
|
|
54
|
+
hideSearch: boolean;
|
|
55
|
+
title: string;
|
|
56
|
+
EmptyStateView: () => JSX.Element;
|
|
57
|
+
ErrorStateView: () => JSX.Element;
|
|
58
|
+
LoadingStateView: () => JSX.Element;
|
|
59
|
+
groupsRequestBuilder: CometChat.GroupsRequestBuilder;
|
|
60
|
+
searchKeyword: string;
|
|
61
|
+
privateGroupIcon: ImageType;
|
|
62
|
+
passwordGroupIcon: ImageType;
|
|
63
|
+
hideError: boolean;
|
|
64
|
+
onItemPress?: (item: CometChat.Group) => void;
|
|
65
|
+
onItemLongPress?: (item: CometChat.Group) => void;
|
|
66
|
+
onError?: (e: CometChat.CometChatException) => void;
|
|
67
|
+
onBack?: () => void;
|
|
68
|
+
groupsStyle?: GroupsStyleInterface;
|
|
69
|
+
listItemStyle?: ListItemStyleInterface;
|
|
70
|
+
avatarStyle?: AvatarStyleInterface;
|
|
71
|
+
statusIndicatorStyle?: StatusIndicatorStyleInterface;
|
|
72
|
+
searchRequestBuilder?: CometChat.GroupsRequestBuilder;
|
|
73
|
+
constructor(props: GroupsConfigurationInterface);
|
|
74
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { GroupsStyle } from './GroupsStyle';
|
|
2
|
+
import { backIcon, searchIcon, passwordGroupIcon, privateGroupIcon, } from './resources';
|
|
3
|
+
import { localize } from '../shared';
|
|
4
|
+
/**
|
|
5
|
+
* @class GroupConfiguration
|
|
6
|
+
* @description GroupConfiguration class is used for defining the GroupConfiguration template.
|
|
7
|
+
*/
|
|
8
|
+
export class GroupsConfiguration {
|
|
9
|
+
SubtitleView;
|
|
10
|
+
ListItemView;
|
|
11
|
+
AppBarOption;
|
|
12
|
+
options;
|
|
13
|
+
hideSeparator;
|
|
14
|
+
searchPlaceholderText;
|
|
15
|
+
backButton;
|
|
16
|
+
showBackButton;
|
|
17
|
+
selectionMode;
|
|
18
|
+
onSelection;
|
|
19
|
+
searchBoxIcon;
|
|
20
|
+
hideSearch;
|
|
21
|
+
title;
|
|
22
|
+
EmptyStateView;
|
|
23
|
+
ErrorStateView;
|
|
24
|
+
LoadingStateView;
|
|
25
|
+
groupsRequestBuilder;
|
|
26
|
+
searchKeyword;
|
|
27
|
+
privateGroupIcon;
|
|
28
|
+
passwordGroupIcon;
|
|
29
|
+
hideError;
|
|
30
|
+
onItemPress;
|
|
31
|
+
onItemLongPress;
|
|
32
|
+
onError;
|
|
33
|
+
onBack;
|
|
34
|
+
groupsStyle;
|
|
35
|
+
listItemStyle;
|
|
36
|
+
avatarStyle;
|
|
37
|
+
statusIndicatorStyle;
|
|
38
|
+
searchRequestBuilder;
|
|
39
|
+
constructor(props) {
|
|
40
|
+
this.SubtitleView = props?.SubtitleView || undefined;
|
|
41
|
+
this.ListItemView = props?.ListItemView || undefined;
|
|
42
|
+
this.AppBarOption = props?.AppBarOption || undefined;
|
|
43
|
+
this.hideSeparator = props?.hideSeparator || false;
|
|
44
|
+
this.groupsStyle = props?.groupsStyle || new GroupsStyle({});
|
|
45
|
+
this.searchPlaceholderText =
|
|
46
|
+
props?.searchPlaceholderText || localize('SEARCH');
|
|
47
|
+
this.backButton = props?.backButton || backIcon;
|
|
48
|
+
this.showBackButton = props?.showBackButton || false;
|
|
49
|
+
this.selectionMode = props?.selectionMode || 'none';
|
|
50
|
+
this.onSelection = props?.onSelection || undefined;
|
|
51
|
+
this.searchBoxIcon = props?.searchBoxIcon || searchIcon;
|
|
52
|
+
this.hideSearch = props?.hideSearch || false;
|
|
53
|
+
this.title = props?.title || localize('GROUPS');
|
|
54
|
+
this.EmptyStateView = props?.EmptyStateView || undefined;
|
|
55
|
+
this.ErrorStateView = props?.ErrorStateView || undefined;
|
|
56
|
+
this.LoadingStateView = props?.LoadingStateView || undefined;
|
|
57
|
+
this.groupsRequestBuilder = props?.groupsRequestBuilder || undefined;
|
|
58
|
+
this.searchKeyword = props?.searchKeyword || '';
|
|
59
|
+
this.privateGroupIcon = props?.privateGroupIcon || privateGroupIcon;
|
|
60
|
+
this.passwordGroupIcon = props?.passwordGroupIcon || passwordGroupIcon;
|
|
61
|
+
this.hideError = props?.hideError || false;
|
|
62
|
+
this.onItemPress = props?.onItemPress || undefined;
|
|
63
|
+
this.onItemLongPress = props?.onItemLongPress || undefined;
|
|
64
|
+
this.onError = props?.onError || undefined;
|
|
65
|
+
this.onBack = props?.onBack || undefined;
|
|
66
|
+
this.listItemStyle = props.listItemStyle;
|
|
67
|
+
this.avatarStyle = props.avatarStyle;
|
|
68
|
+
this.statusIndicatorStyle = props.statusIndicatorStyle;
|
|
69
|
+
this.searchRequestBuilder = props.searchRequestBuilder;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=GroupsConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupsConfiguration.js","sourceRoot":"","sources":["../../src/CometChatGroups/GroupsConfiguration.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAwB,MAAM,eAAe,CAAC;AAClE,OAAO,EACL,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAqCrC;;;GAGG;AACH,MAAM,OAAO,mBAAmB;IAC9B,YAAY,CAAyC;IACrD,YAAY,CAAyC;IACrD,YAAY,CAAoB;IAChC,OAAO,CAAgD;IACvD,aAAa,CAAU;IACvB,qBAAqB,CAAS;IAC9B,UAAU,CAAY;IACtB,cAAc,CAAU;IACxB,aAAa,CAAiC;IAC9C,WAAW,CAA0C;IACrD,aAAa,CAAY;IACzB,UAAU,CAAU;IACpB,KAAK,CAAS;IACd,cAAc,CAAoB;IAClC,cAAc,CAAoB;IAClC,gBAAgB,CAAoB;IACpC,oBAAoB,CAAiC;IACrD,aAAa,CAAS;IACtB,gBAAgB,CAAY;IAC5B,iBAAiB,CAAY;IAC7B,SAAS,CAAU;IACnB,WAAW,CAAmC;IAC9C,eAAe,CAAmC;IAClD,OAAO,CAA6C;IACpD,MAAM,CAAc;IACpB,WAAW,CAAwB;IACnC,a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;QAC7D,IAAI,CAAC,oBAAoB,GAAG,KAAK,EAAE,oBAAoB,IAAI,SAAS,CAAC;QACrE,IAAI,CAAC,aAAa,GAAG,KAAK,EAAE,aAAa,IAAI,EAAE,CAAC;QAChD,IAAI,CAAC,gBAAgB,GAAG,KAAK,EAAE,gBAAgB,IAAI,gBAAgB,CAAC;QACpE,IAAI,CAAC,iBAAiB,GAAG,KAAK,EAAE,iBAAiB,IAAI,iBAAiB,CAAC;QACvE,IAAI,CAAC,SAAS,GAAG,KAAK,EAAE,SAAS,IAAI,KAAK,CAAC;QAC3C,IAAI,CAAC,WAAW,GAAG,KAAK,EAAE,WAAW,IAAI,SAAS,CAAC;QACnD,IAAI,CAAC,eAAe,GAAG,KAAK,EAAE,eAAe,IAAI,SAAS,CAAC;QAC3D,IAAI,CAAC,OAAO,GAAG,KAAK,EAAE,OAAO,IAAI,SAAS,CAAC;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,EAAE,MAAM,IAAI,SAAS,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;QACzC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,oBAAoB,CAAC;QACvD,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,oBAAoB,CAAC;IACzD,CAAC;CACF"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { BaseStyle, BaseStyleInterface, BorderStyleInterface, FontStyleInterface, ImageType } from "../shared";
|
|
2
|
+
export interface GroupsStyleInterface extends BaseStyleInterface {
|
|
3
|
+
titleFont?: FontStyleInterface;
|
|
4
|
+
titleColor?: string;
|
|
5
|
+
backIconTint?: string;
|
|
6
|
+
searchBorder?: BorderStyleInterface;
|
|
7
|
+
searchBorderRadius?: number;
|
|
8
|
+
searchBackgroundColor?: string;
|
|
9
|
+
searchTextFont?: FontStyleInterface;
|
|
10
|
+
searchTextColor?: string;
|
|
11
|
+
searchIconTint?: string;
|
|
12
|
+
searchPlaceHolderTextColor?: string;
|
|
13
|
+
separatorColor?: string;
|
|
14
|
+
loadingIconTint?: string;
|
|
15
|
+
emptyTextColor?: string;
|
|
16
|
+
emptyTextFont?: FontStyleInterface;
|
|
17
|
+
errorTextColor?: string;
|
|
18
|
+
errorTextFont?: FontStyleInterface;
|
|
19
|
+
subtitleTextColor?: string;
|
|
20
|
+
subtitleTextFont?: FontStyleInterface;
|
|
21
|
+
privateGroupIconBackground?: ImageType;
|
|
22
|
+
passwordGroupIconBackground?: ImageType;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @class GroupsStyle
|
|
26
|
+
* @description GroupsStyle class is used for defining the GroupsStyle template.
|
|
27
|
+
*/
|
|
28
|
+
export declare class GroupsStyle extends BaseStyle {
|
|
29
|
+
titleFont: FontStyleInterface;
|
|
30
|
+
titleColor: string;
|
|
31
|
+
backIconTint: string;
|
|
32
|
+
createGroupIconTint: string;
|
|
33
|
+
searchBorder: BorderStyleInterface;
|
|
34
|
+
searchBorderRadius: number;
|
|
35
|
+
searchBackgroundColor: string;
|
|
36
|
+
searchTextFont: FontStyleInterface;
|
|
37
|
+
searchTextColor: string;
|
|
38
|
+
searchIconTint: string;
|
|
39
|
+
searchPlaceHolderTextColor: string;
|
|
40
|
+
separatorColor: string;
|
|
41
|
+
loadingIconTint: string;
|
|
42
|
+
emptyTextColor: string;
|
|
43
|
+
emptyTextFont: FontStyleInterface;
|
|
44
|
+
errorTextColor: string;
|
|
45
|
+
errorTextFont: FontStyleInterface;
|
|
46
|
+
subtitleTextColor: string;
|
|
47
|
+
subtitleTextFont: FontStyleInterface;
|
|
48
|
+
privateGroupIconBackground: ImageType;
|
|
49
|
+
passwordGroupIconBackground: ImageType;
|
|
50
|
+
constructor(props: GroupsStyleInterface);
|
|
51
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { BaseStyle, BorderStyle, FontStyle } from "../shared";
|
|
2
|
+
import { localize } from "../shared";
|
|
3
|
+
import { passwordGroupIcon, privateGroupIcon } from "./resources";
|
|
4
|
+
/**
|
|
5
|
+
* @class GroupsStyle
|
|
6
|
+
* @description GroupsStyle class is used for defining the GroupsStyle template.
|
|
7
|
+
*/
|
|
8
|
+
export class GroupsStyle extends BaseStyle {
|
|
9
|
+
titleFont;
|
|
10
|
+
titleColor;
|
|
11
|
+
backIconTint;
|
|
12
|
+
createGroupIconTint;
|
|
13
|
+
searchBorder;
|
|
14
|
+
searchBorderRadius;
|
|
15
|
+
searchBackgroundColor;
|
|
16
|
+
searchTextFont;
|
|
17
|
+
searchTextColor;
|
|
18
|
+
searchIconTint;
|
|
19
|
+
searchPlaceHolderTextColor;
|
|
20
|
+
separatorColor;
|
|
21
|
+
loadingIconTint;
|
|
22
|
+
emptyTextColor;
|
|
23
|
+
emptyTextFont;
|
|
24
|
+
errorTextColor;
|
|
25
|
+
errorTextFont;
|
|
26
|
+
subtitleTextColor;
|
|
27
|
+
subtitleTextFont;
|
|
28
|
+
privateGroupIconBackground;
|
|
29
|
+
passwordGroupIconBackground;
|
|
30
|
+
constructor(props) {
|
|
31
|
+
const { width = "100%", height = "100%", border = new BorderStyle({ borderWidth: 0 }), borderRadius = 0, backgroundColor = "white", titleFont = new FontStyle({ fontSize: 17 }), titleColor = '#141414', backIconTint = "black", searchBorder = new BorderStyle({}), searchBorderRadius = 50, searchBackgroundColor = "rgba(20, 20, 20, 0.04)", searchTextFont = new FontStyle({ fontSize: 17 }), searchTextColor = "rgba(20,20,20,0.58)", searchIconTint = "rgba(20,20,20,0.4)", searchPlaceHolderTextColor = "rgba(20,20,20,0.58)", separatorColor = "rgba(20, 20, 20, 0.1)", loadingIconTint = "rgba(20,20,20, 0.7)", emptyTextColor = localize("NO_GROUPS_FOUND"), emptyTextFont = new FontStyle({ fontSize: 20 }), errorTextColor = "rgb(255, 59, 48)", errorTextFont = new FontStyle({ fontSize: 20 }), subtitleTextColor = "rgba(20, 20, 20, 0.58)", subtitleTextFont = new FontStyle({ fontSize: 16 }), privateGroupIconBackground = privateGroupIcon, passwordGroupIconBackground = passwordGroupIcon, } = props;
|
|
32
|
+
super({
|
|
33
|
+
width,
|
|
34
|
+
height,
|
|
35
|
+
backgroundColor,
|
|
36
|
+
border,
|
|
37
|
+
borderRadius
|
|
38
|
+
});
|
|
39
|
+
this.titleFont = titleFont;
|
|
40
|
+
this.titleColor = titleColor;
|
|
41
|
+
this.backIconTint = backIconTint;
|
|
42
|
+
this.searchBorder = searchBorder;
|
|
43
|
+
this.searchBorderRadius = searchBorderRadius;
|
|
44
|
+
this.searchBackgroundColor = searchBackgroundColor;
|
|
45
|
+
this.searchTextFont = searchTextFont;
|
|
46
|
+
this.searchTextColor = searchTextColor;
|
|
47
|
+
this.searchIconTint = searchIconTint;
|
|
48
|
+
this.searchPlaceHolderTextColor = searchPlaceHolderTextColor;
|
|
49
|
+
this.separatorColor = separatorColor;
|
|
50
|
+
this.loadingIconTint = loadingIconTint;
|
|
51
|
+
this.emptyTextColor = emptyTextColor;
|
|
52
|
+
this.emptyTextFont = emptyTextFont;
|
|
53
|
+
this.errorTextColor = errorTextColor;
|
|
54
|
+
this.errorTextFont = errorTextFont;
|
|
55
|
+
this.subtitleTextColor = subtitleTextColor;
|
|
56
|
+
this.subtitleTextFont = subtitleTextFont;
|
|
57
|
+
this.privateGroupIconBackground = privateGroupIconBackground;
|
|
58
|
+
this.passwordGroupIconBackground = passwordGroupIconBackground;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=GroupsStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupsStyle.js","sourceRoot":"","sources":["../../src/CometChatGroups/GroupsStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,WAAW,EAAwB,SAAS,EAAiC,MAAM,WAAW,CAAC;AACvI,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC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0BAA0B,GAAG,0BAA0B,CAAC;QAC7D,IAAI,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;IACnE,CAAC;CACJ"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CometChatGroups, CometChatGroupsInterface } from "./CometChatGroups";
|
|
2
|
+
import { GroupsConfiguration, GroupsConfigurationInterface } from "./GroupsConfiguration";
|
|
3
|
+
import { GroupsStyle, GroupsStyleInterface } from './GroupsStyle';
|
|
4
|
+
export { CometChatGroups, CometChatGroupsInterface, GroupsConfiguration, GroupsStyle, GroupsConfigurationInterface, GroupsStyleInterface };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/CometChatGroups/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA4B,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAgC,MAAM,uBAAuB,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAwB,MAAM,eAAe,CAAC;AAElE,OAAO,EACH,eAAe,EAEf,mBAAmB,EACnB,WAAW,EAGd,CAAA"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import backIcon from "./back.png";
|
|
2
|
+
import createIcon from "./create.png";
|
|
3
|
+
import searchIcon from "./search.png";
|
|
4
|
+
import passwordGroupIcon from "./password.png";
|
|
5
|
+
import privateGroupIcon from "./private.png";
|
|
6
|
+
import loadingIcon from "./spineer.png";
|
|
7
|
+
import rightTickIcon from "./rightTick.png";
|
|
8
|
+
import closeIcon from "./close.png";
|
|
9
|
+
import moreIcon from "./more.png";
|
|
10
|
+
export { backIcon, createIcon, searchIcon, passwordGroupIcon, privateGroupIcon, loadingIcon, rightTickIcon, closeIcon, moreIcon };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import backIcon from "./back.png";
|
|
2
|
+
import createIcon from "./create.png";
|
|
3
|
+
import searchIcon from "./search.png";
|
|
4
|
+
import passwordGroupIcon from "./password.png";
|
|
5
|
+
import privateGroupIcon from "./private.png";
|
|
6
|
+
import loadingIcon from "./spineer.png";
|
|
7
|
+
import rightTickIcon from "./rightTick.png";
|
|
8
|
+
import closeIcon from "./close.png";
|
|
9
|
+
import moreIcon from "./more.png";
|
|
10
|
+
export { backIcon, createIcon, searchIcon, passwordGroupIcon, privateGroupIcon, loadingIcon, rightTickIcon, closeIcon, moreIcon };
|
|
11
|
+
//# sourceMappingURL=index.js.map
|