@cometchat/chat-uikit-react-native 4.0.0-beta.1.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (979) hide show
  1. package/README.md +10 -4
  2. package/android/.gradle/7.4/checksums/checksums.lock +0 -0
  3. package/android/.gradle/7.4/checksums/md5-checksums.bin +0 -0
  4. package/android/.gradle/7.4/checksums/sha1-checksums.bin +0 -0
  5. package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  6. package/android/.gradle/7.4/fileChanges/last-build.bin +0 -0
  7. package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  8. package/android/.gradle/7.4/gc.properties +0 -0
  9. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  10. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  11. package/android/.gradle/vcs-1/gc.properties +0 -0
  12. package/android/.idea/.gitignore +3 -0
  13. package/android/.idea/gradle.xml +13 -0
  14. package/android/.idea/misc.xml +9 -0
  15. package/android/.idea/vcs.xml +6 -0
  16. package/android/build.gradle +2 -0
  17. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  18. package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  19. package/android/gradlew +234 -0
  20. package/android/gradlew.bat +89 -0
  21. package/android/local.properties +8 -0
  22. package/android/src/main/AndroidManifest.xml +19 -2
  23. package/android/src/main/java/com/reactnativecometchatuikit/CometChatImageViewer.java +1 -0
  24. package/android/src/main/java/com/reactnativecometchatuikit/CometChatVideoPlayer.java +1 -0
  25. package/android/src/main/java/com/reactnativecometchatuikit/CometChatWebView.java +38 -0
  26. package/android/src/main/java/com/reactnativecometchatuikit/CometchatUiKitPackage.java +1 -0
  27. package/android/src/main/java/com/reactnativecometchatuikit/FileManager.java +223 -1
  28. package/android/src/main/java/com/reactnativecometchatuikit/WebViewManager.java +38 -0
  29. package/android/src/main/res/xml/filepaths.xml +6 -0
  30. package/ios/CometchatUiKit.xcodeproj/project.pbxproj +12 -0
  31. package/ios/CometchatUiKit.xcodeproj/project.xcworkspace/xcuserdata/ashishjajoo.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  32. package/ios/FileManager.m +265 -37
  33. package/ios/WebViewManager.h +7 -0
  34. package/ios/WebViewManager.m +33 -0
  35. package/lib/CometChatAddMembers/AddMembersConfiguration.d.ts +1 -1
  36. package/lib/CometChatAddMembers/CometChatAddMembers.d.ts +1 -1
  37. package/lib/CometChatAddMembers/CometChatAddMembers.js +1 -1
  38. package/lib/CometChatBannedMembers/BannedMembersConfiguration.d.ts +1 -1
  39. package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +1 -1
  40. package/lib/CometChatBannedMembers/CometChatBannedMembers.js +1 -1
  41. package/lib/CometChatContacts/CometChatContacts.d.ts +75 -0
  42. package/lib/CometChatContacts/CometChatContacts.js +84 -0
  43. package/lib/CometChatContacts/CometChatContacts.js.map +1 -0
  44. package/lib/CometChatContacts/ContactsConfiguration.d.ts +73 -0
  45. package/lib/CometChatContacts/ContactsConfiguration.js +2 -0
  46. package/lib/CometChatContacts/ContactsConfiguration.js.map +1 -0
  47. package/lib/CometChatContacts/ContactsStyle.d.ts +59 -0
  48. package/lib/CometChatContacts/ContactsStyle.js +2 -0
  49. package/lib/CometChatContacts/ContactsStyle.js.map +1 -0
  50. package/lib/CometChatContacts/Header.d.ts +31 -0
  51. package/lib/CometChatContacts/Header.js +72 -0
  52. package/lib/CometChatContacts/Header.js.map +1 -0
  53. package/lib/CometChatContacts/index.d.ts +4 -0
  54. package/lib/CometChatContacts/index.js +3 -0
  55. package/lib/CometChatContacts/index.js.map +1 -0
  56. package/lib/CometChatContacts/styles.d.ts +101 -0
  57. package/lib/CometChatContacts/styles.js +104 -0
  58. package/lib/CometChatContacts/styles.js.map +1 -0
  59. package/lib/CometChatConversations/CometChatConversations.d.ts +5 -1
  60. package/lib/CometChatConversations/CometChatConversations.js +22 -7
  61. package/lib/CometChatConversations/CometChatConversations.js.map +1 -1
  62. package/lib/CometChatConversations/ConversationsConfiguration.d.ts +1 -1
  63. package/lib/CometChatConversations/style.d.ts +4 -4
  64. package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.d.ts +3 -1
  65. package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js +84 -5
  66. package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js.map +1 -1
  67. package/lib/CometChatConversationsWithMessages/resources/index.d.ts +2 -0
  68. package/lib/CometChatConversationsWithMessages/resources/index.js +3 -0
  69. package/lib/CometChatConversationsWithMessages/resources/index.js.map +1 -0
  70. package/lib/CometChatConversationsWithMessages/styles.d.ts +4 -4
  71. package/lib/CometChatCreateGroup/CometChatCreateGroup.d.ts +1 -1
  72. package/lib/CometChatCreateGroup/CometChatCreateGroup.js +1 -1
  73. package/lib/CometChatCreateGroup/CreateGroupConfiguration.d.ts +1 -1
  74. package/lib/CometChatDetails/CometChatDetails.d.ts +1 -1
  75. package/lib/CometChatDetails/CometChatDetails.js +2 -1
  76. package/lib/CometChatDetails/CometChatDetails.js.map +1 -1
  77. package/lib/CometChatDetails/DetailsConfiguration.d.ts +1 -1
  78. package/lib/CometChatDetails/listners.js +1 -1
  79. package/lib/CometChatGroupMembers/CometChatGroupMembers.d.ts +1 -1
  80. package/lib/CometChatGroupMembers/CometChatGroupMembers.js +13 -1
  81. package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
  82. package/lib/CometChatGroupMembers/GroupMemberConfiguration.d.ts +1 -1
  83. package/lib/CometChatGroupMembers/style.d.ts +5 -5
  84. package/lib/CometChatGroups/CometChatGroups.d.ts +5 -1
  85. package/lib/CometChatGroups/CometChatGroups.js +18 -5
  86. package/lib/CometChatGroups/CometChatGroups.js.map +1 -1
  87. package/lib/CometChatGroups/GroupsConfiguration.d.ts +1 -1
  88. package/lib/CometChatGroups/style.d.ts +1 -1
  89. package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.d.ts +1 -1
  90. package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js +71 -8
  91. package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -1
  92. package/lib/CometChatGroupsWithMessages/styles.d.ts +4 -4
  93. package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.d.ts +1 -1
  94. package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js +1 -1
  95. package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.d.ts +1 -1
  96. package/lib/CometChatMessageComposer/CometChatMessageComposer.d.ts +65 -1
  97. package/lib/CometChatMessageComposer/CometChatMessageComposer.js +39 -5
  98. package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
  99. package/lib/CometChatMessageComposer/MessageComposerConfiguration.d.ts +11 -1
  100. package/lib/CometChatMessageComposer/MessageComposerConfiguration.js +9 -0
  101. package/lib/CometChatMessageComposer/MessageComposerConfiguration.js.map +1 -1
  102. package/lib/CometChatMessageComposer/resources/index.d.ts +1 -0
  103. package/lib/CometChatMessageComposer/resources/index.js +3 -1
  104. package/lib/CometChatMessageComposer/resources/index.js.map +1 -1
  105. package/lib/CometChatMessageComposer/styles.d.ts +1 -0
  106. package/lib/CometChatMessageComposer/styles.js +2 -1
  107. package/lib/CometChatMessageComposer/styles.js.map +1 -1
  108. package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +1 -1
  109. package/lib/CometChatMessageHeader/CometChatMessageHeader.js +7 -1
  110. package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
  111. package/lib/CometChatMessageHeader/MessageHeaderConfiguration.d.ts +1 -1
  112. package/lib/CometChatMessageHeader/listners.js +1 -1
  113. package/lib/CometChatMessageHeader/styles.d.ts +1 -1
  114. package/lib/CometChatMessageInformation/CometChatMessageInformation.d.ts +36 -0
  115. package/lib/CometChatMessageInformation/CometChatMessageInformation.js +173 -0
  116. package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +1 -0
  117. package/lib/CometChatMessageInformation/MessageInformationConfiguration.d.ts +3 -0
  118. package/lib/CometChatMessageInformation/MessageInformationConfiguration.js +2 -0
  119. package/lib/CometChatMessageInformation/MessageInformationConfiguration.js.map +1 -0
  120. package/lib/CometChatMessageInformation/MessageInformationStyle.d.ts +11 -0
  121. package/lib/CometChatMessageInformation/MessageInformationStyle.js +2 -0
  122. package/lib/CometChatMessageInformation/MessageInformationStyle.js.map +1 -0
  123. package/lib/CometChatMessageInformation/index.d.ts +4 -0
  124. package/lib/CometChatMessageInformation/index.js +3 -0
  125. package/lib/CometChatMessageInformation/index.js.map +1 -0
  126. package/lib/CometChatMessageInformation/resources/index.d.ts +2 -0
  127. package/lib/CometChatMessageInformation/resources/index.js +3 -0
  128. package/lib/CometChatMessageInformation/resources/index.js.map +1 -0
  129. package/lib/CometChatMessageInformation/styles.d.ts +23 -0
  130. package/lib/CometChatMessageInformation/styles.js +26 -0
  131. package/lib/CometChatMessageInformation/styles.js.map +1 -0
  132. package/lib/CometChatMessageList/CometChatMessageList.d.ts +3 -1
  133. package/lib/CometChatMessageList/CometChatMessageList.js +261 -18
  134. package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
  135. package/lib/CometChatMessageList/MessageListConfiguration.d.ts +1 -1
  136. package/lib/CometChatMessageList/style.d.ts +3 -3
  137. package/lib/CometChatMessages/CometChatMessages.d.ts +1 -1
  138. package/lib/CometChatMessages/CometChatMessages.js +34 -1
  139. package/lib/CometChatMessages/CometChatMessages.js.map +1 -1
  140. package/lib/CometChatMessages/MessagesConfiguration.d.ts +1 -1
  141. package/lib/CometChatMessages/style.d.ts +2 -2
  142. package/lib/CometChatTabs/CometChatTabs.d.ts +1 -0
  143. package/lib/CometChatTabs/CometChatTabs.js +61 -22
  144. package/lib/CometChatTabs/CometChatTabs.js.map +1 -1
  145. package/lib/CometChatTabs/CometChatTabsStyle.d.ts +12 -2
  146. package/lib/CometChatTabs/CometChatTabsStyle.js +11 -1
  147. package/lib/CometChatTabs/CometChatTabsStyle.js.map +1 -1
  148. package/lib/CometChatTabs/TabItemStyle.d.ts +4 -2
  149. package/lib/CometChatTabs/TabItemStyle.js +3 -1
  150. package/lib/CometChatTabs/TabItemStyle.js.map +1 -1
  151. package/lib/CometChatThreadedMessages/CometChatThreadedMessages.d.ts +1 -1
  152. package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js +5 -3
  153. package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js.map +1 -1
  154. package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.d.ts +1 -1
  155. package/lib/CometChatThreadedMessages/style.d.ts +3 -2
  156. package/lib/CometChatThreadedMessages/style.js +4 -2
  157. package/lib/CometChatThreadedMessages/style.js.map +1 -1
  158. package/lib/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +1 -1
  159. package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js +1 -1
  160. package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.d.ts +1 -1
  161. package/lib/CometChatUsers/CometChatUsers.d.ts +1 -1
  162. package/lib/CometChatUsers/CometChatUsers.js +1 -1
  163. package/lib/CometChatUsers/UsersConfiguration.d.ts +1 -1
  164. package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.d.ts +1 -1
  165. package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js +29 -3
  166. package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -1
  167. package/lib/CometChatUsersWithMessages/styles.d.ts +4 -4
  168. package/lib/calls/CallUtils.d.ts +1 -1
  169. package/lib/calls/CallUtils.js +1 -1
  170. package/lib/calls/CallingDetailsUtils.d.ts +1 -1
  171. package/lib/calls/CallingExtension.d.ts +3 -1
  172. package/lib/calls/CallingExtension.js +8 -2
  173. package/lib/calls/CallingExtension.js.map +1 -1
  174. package/lib/calls/CallingExtentionDecorator.d.ts +1 -1
  175. package/lib/calls/CallingExtentionDecorator.js +5 -2
  176. package/lib/calls/CallingExtentionDecorator.js.map +1 -1
  177. package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.d.ts +1 -1
  178. package/lib/calls/CometChatCallButtons/CometChatCallButtons.d.ts +1 -1
  179. package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +1 -1
  180. package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.d.ts +1 -1
  181. package/lib/calls/CometChatCallDetails/CometChatCallDetails.js +1 -1
  182. package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.d.ts +1 -1
  183. package/lib/calls/CometChatCallHistory/CometChatCallHistory.js +1 -1
  184. package/lib/calls/CometChatCallHistoryWithDetails/style.d.ts +2 -2
  185. package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +1 -1
  186. package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +1 -1
  187. package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.d.ts +1 -1
  188. package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js +1 -1
  189. package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +1 -1
  190. package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +23 -15
  191. package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -1
  192. package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js +1 -1
  193. package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js.map +1 -1
  194. package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +1 -1
  195. package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js +5 -4
  196. package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +1 -1
  197. package/lib/extensions/CollaborativeBubble/styles.js +1 -1
  198. package/lib/extensions/CollaborativeBubble/styles.js.map +1 -1
  199. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +3 -2
  200. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js +8 -3
  201. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js.map +1 -1
  202. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +1 -1
  203. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +1 -1
  204. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +3 -2
  205. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js +10 -3
  206. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js.map +1 -1
  207. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +1 -1
  208. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +1 -1
  209. package/lib/extensions/ImageModeration/ImageModerationDecorator.d.ts +1 -1
  210. package/lib/extensions/ImageModeration/ImageModerationDecorator.js +1 -1
  211. package/lib/extensions/ImageModeration/ImageModerationExtension.d.ts +3 -2
  212. package/lib/extensions/ImageModeration/ImageModerationExtension.js +10 -3
  213. package/lib/extensions/ImageModeration/ImageModerationExtension.js.map +1 -1
  214. package/lib/extensions/ImageModeration/ImageModerationFilter.d.ts +1 -1
  215. package/lib/extensions/LinkPreview/LinkPreviewExtention.d.ts +3 -2
  216. package/lib/extensions/LinkPreview/LinkPreviewExtention.js +10 -3
  217. package/lib/extensions/LinkPreview/LinkPreviewExtention.js.map +1 -1
  218. package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.d.ts +1 -1
  219. package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +1 -1
  220. package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +1 -1
  221. package/lib/extensions/MessageTranslation/MessageTranslationExtension.d.ts +3 -2
  222. package/lib/extensions/MessageTranslation/MessageTranslationExtension.js +10 -3
  223. package/lib/extensions/MessageTranslation/MessageTranslationExtension.js.map +1 -1
  224. package/lib/extensions/Polls/Polls.d.ts +1 -1
  225. package/lib/extensions/Polls/Polls.js +1 -1
  226. package/lib/extensions/Polls/PollsBubble.d.ts +1 -1
  227. package/lib/extensions/Polls/PollsDecorator.d.ts +1 -1
  228. package/lib/extensions/Polls/PollsDecorator.js +1 -1
  229. package/lib/extensions/Polls/PollsExtension.d.ts +3 -2
  230. package/lib/extensions/Polls/PollsExtension.js +10 -3
  231. package/lib/extensions/Polls/PollsExtension.js.map +1 -1
  232. package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.d.ts +1 -1
  233. package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js +0 -2
  234. package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js.map +1 -1
  235. package/lib/extensions/Reactions/ReactionsDecorator.d.ts +1 -1
  236. package/lib/extensions/Reactions/ReactionsDecorator.js +1 -1
  237. package/lib/extensions/Reactions/ReactionsExtension.d.ts +3 -2
  238. package/lib/extensions/Reactions/ReactionsExtension.js +10 -3
  239. package/lib/extensions/Reactions/ReactionsExtension.js.map +1 -1
  240. package/lib/extensions/SmartReplies/SmartRepliesDecorator.d.ts +1 -1
  241. package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +1 -1
  242. package/lib/extensions/SmartReplies/SmartRepliesExtension.d.ts +3 -2
  243. package/lib/extensions/SmartReplies/SmartRepliesExtension.js +10 -3
  244. package/lib/extensions/SmartReplies/SmartRepliesExtension.js.map +1 -1
  245. package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +1 -1
  246. package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.d.ts +1 -1
  247. package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js +1 -1
  248. package/lib/extensions/Stickers/CometChatStickerKeyboard/style.d.ts +6 -6
  249. package/lib/extensions/Stickers/StickersExtension.d.ts +3 -2
  250. package/lib/extensions/Stickers/StickersExtension.js +10 -4
  251. package/lib/extensions/Stickers/StickersExtension.js.map +1 -1
  252. package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +1 -1
  253. package/lib/extensions/Stickers/StickersExtensionDecorator.js +1 -1
  254. package/lib/extensions/TextModeration/TextModerationExtension.d.ts +3 -1
  255. package/lib/extensions/TextModeration/TextModerationExtension.js +19 -2
  256. package/lib/extensions/TextModeration/TextModerationExtension.js.map +1 -1
  257. package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +1 -1
  258. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.d.ts +1 -1
  259. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +3 -2
  260. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js +10 -3
  261. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js.map +1 -1
  262. package/lib/index.d.ts +4 -2
  263. package/lib/index.js +6 -4
  264. package/lib/index.js.map +1 -1
  265. package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +8 -1
  266. package/lib/shared/CometChatUiKit/CometChatUIKit.js +54 -18
  267. package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -1
  268. package/lib/shared/CometChatUiKit/CometChatUIKitHelper.d.ts +1 -1
  269. package/lib/shared/CometChatUiKit/UIKitSettings.d.ts +3 -3
  270. package/lib/shared/CometChatUiKit/UIKitSettings.js +3 -11
  271. package/lib/shared/CometChatUiKit/UIKitSettings.js.map +1 -1
  272. package/lib/shared/assets/images/index.d.ts +9 -0
  273. package/lib/shared/assets/images/index.js +17 -0
  274. package/lib/shared/assets/images/index.js.map +1 -0
  275. package/lib/shared/constants/UIKitConstants.d.ts +0 -1
  276. package/lib/shared/constants/UIKitConstants.js +3 -3
  277. package/lib/shared/constants/UIKitConstants.js.map +1 -1
  278. package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +6 -0
  279. package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -1
  280. package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +4 -2
  281. package/lib/shared/events/CometChatUIEventHandler/Listener.js +9 -2
  282. package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -1
  283. package/lib/shared/events/CometChatUIEvents.d.ts +1 -0
  284. package/lib/shared/events/CometChatUIEvents.js +1 -0
  285. package/lib/shared/events/CometChatUIEvents.js.map +1 -1
  286. package/lib/shared/framework/DataSource.d.ts +1 -1
  287. package/lib/shared/framework/DataSourceDecorator.d.ts +1 -1
  288. package/lib/shared/framework/ExtensionsDataSource.d.ts +5 -2
  289. package/lib/shared/framework/ExtensionsDataSource.js +13 -1
  290. package/lib/shared/framework/ExtensionsDataSource.js.map +1 -1
  291. package/lib/shared/framework/MessageDataSource.d.ts +2 -2
  292. package/lib/shared/framework/MessageDataSource.js +39 -17
  293. package/lib/shared/framework/MessageDataSource.js.map +1 -1
  294. package/lib/shared/framework/index.js +2 -1
  295. package/lib/shared/framework/index.js.map +1 -1
  296. package/lib/shared/framework/resources/index.d.ts +5 -1
  297. package/lib/shared/framework/resources/index.js +13 -3
  298. package/lib/shared/framework/resources/index.js.map +1 -1
  299. package/lib/shared/helper/Toast.d.ts +4 -0
  300. package/lib/shared/helper/Toast.js +23 -0
  301. package/lib/shared/helper/Toast.js.map +1 -0
  302. package/lib/shared/helper/types/index.d.ts +3 -4
  303. package/lib/shared/index.d.ts +2 -2
  304. package/lib/shared/index.js +4 -4
  305. package/lib/shared/index.js.map +1 -1
  306. package/lib/shared/modals/CometChatMessageOption.d.ts +1 -1
  307. package/lib/shared/modals/CometChatMessageTemplate.d.ts +1 -1
  308. package/lib/shared/modals/CometChatMessageTemplate.js +1 -1
  309. package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +78 -0
  310. package/lib/shared/resources/CometChatLocalize/resources/ar/translation.json +7 -1
  311. package/lib/shared/resources/CometChatLocalize/resources/de/translation.json +7 -1
  312. package/lib/shared/resources/CometChatLocalize/resources/en/translation.json +9 -3
  313. package/lib/shared/resources/CometChatLocalize/resources/es/translation.json +7 -1
  314. package/lib/shared/resources/CometChatLocalize/resources/fr/translation.json +7 -1
  315. package/lib/shared/resources/CometChatLocalize/resources/hi/translation.json +7 -1
  316. package/lib/shared/resources/CometChatLocalize/resources/lt/translation.json +7 -1
  317. package/lib/shared/resources/CometChatLocalize/resources/ms/translation.json +7 -1
  318. package/lib/shared/resources/CometChatLocalize/resources/pt/translation.json +7 -1
  319. package/lib/shared/resources/CometChatLocalize/resources/ru/translation.json +7 -1
  320. package/lib/shared/resources/CometChatLocalize/resources/sv/translation.json +7 -1
  321. package/lib/shared/resources/CometChatLocalize/resources/zh/translation.json +7 -1
  322. package/lib/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +7 -1
  323. package/lib/shared/utils/CometChatMessageHelper/index.js +1 -1
  324. package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +2 -1
  325. package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +1 -1
  326. package/lib/shared/utils/CometChatMessagePreview/style.d.ts +1 -0
  327. package/lib/shared/utils/CometChatMessagePreview/style.js +19 -5
  328. package/lib/shared/utils/CometChatMessagePreview/style.js.map +1 -1
  329. package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +1 -1
  330. package/lib/shared/utils/MessageUtils.d.ts +15 -0
  331. package/lib/shared/utils/MessageUtils.js +31 -0
  332. package/lib/shared/utils/MessageUtils.js.map +1 -0
  333. package/lib/shared/utils/conversationUtils.d.ts +1 -1
  334. package/lib/shared/utils/conversationUtils.js +1 -1
  335. package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +3 -3
  336. package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +1 -1
  337. package/lib/shared/views/CometChatAvatar/styles.d.ts +2 -2
  338. package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +1 -1
  339. package/lib/shared/views/CometChatBottomSheet/style.d.ts +1 -1
  340. package/lib/shared/views/CometChatCard/style.d.ts +2 -2
  341. package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +38 -21
  342. package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +1 -1
  343. package/lib/shared/views/CometChatEmojiKeyboard/style.d.ts +1 -1
  344. package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js +12 -9
  345. package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +1 -1
  346. package/lib/shared/views/CometChatFileBubble/resources/index.d.ts +2 -1
  347. package/lib/shared/views/CometChatFileBubble/resources/index.js +2 -1
  348. package/lib/shared/views/CometChatFileBubble/resources/index.js.map +1 -1
  349. package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +28 -10
  350. package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +1 -1
  351. package/lib/shared/views/CometChatList/CometChatList.d.ts +2 -0
  352. package/lib/shared/views/CometChatList/CometChatList.js +51 -4
  353. package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
  354. package/lib/shared/views/CometChatList/Header.d.ts +1 -1
  355. package/lib/shared/views/CometChatList/Header.js +2 -2
  356. package/lib/shared/views/CometChatList/Header.js.map +1 -1
  357. package/lib/shared/views/CometChatList/styles.d.ts +8 -8
  358. package/lib/shared/views/CometChatListItem/style.d.ts +5 -5
  359. package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +25 -0
  360. package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +151 -0
  361. package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +1 -0
  362. package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.d.ts +26 -0
  363. package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js +33 -0
  364. package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js.map +1 -0
  365. package/lib/shared/views/CometChatMediaRecorder/index.d.ts +3 -0
  366. package/lib/shared/views/CometChatMediaRecorder/index.js +4 -0
  367. package/lib/shared/views/CometChatMediaRecorder/index.js.map +1 -0
  368. package/lib/shared/views/CometChatMediaRecorder/style.d.ts +27 -0
  369. package/lib/shared/views/CometChatMediaRecorder/style.js +28 -0
  370. package/lib/shared/views/CometChatMediaRecorder/style.js.map +1 -0
  371. package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +2 -2
  372. package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +1 -1
  373. package/lib/shared/views/CometChatMessageInput/styles.d.ts +1 -0
  374. package/lib/shared/views/CometChatMessageInput/styles.js +1 -0
  375. package/lib/shared/views/CometChatMessageInput/styles.js.map +1 -1
  376. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +23 -4
  377. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
  378. package/lib/shared/views/SwipeRow/style.d.ts +3 -3
  379. package/lib/shared/views/index.d.ts +2 -1
  380. package/lib/shared/views/index.js +2 -1
  381. package/lib/shared/views/index.js.map +1 -1
  382. package/package.json +7 -6
  383. package/src/.DS_Store +0 -0
  384. package/src/CometChatAddMembers/AddMembersConfiguration.tsx +57 -0
  385. package/src/CometChatAddMembers/CometChatAddMembers.tsx +100 -0
  386. package/src/CometChatAddMembers/index.ts +8 -0
  387. package/src/CometChatBannedMembers/BannedMembersConfiguration.tsx +60 -0
  388. package/src/CometChatBannedMembers/CometChatBannedMembers.tsx +142 -0
  389. package/src/CometChatBannedMembers/index.ts +8 -0
  390. package/src/CometChatBannedMembers/resources/index.ts +3 -0
  391. package/src/CometChatContacts/CometChatContacts.tsx +226 -0
  392. package/src/CometChatContacts/ContactsConfiguration.tsx +68 -0
  393. package/src/CometChatContacts/ContactsStyle.ts +60 -0
  394. package/src/CometChatContacts/Header.tsx +167 -0
  395. package/src/CometChatContacts/index.ts +11 -0
  396. package/src/CometChatContacts/styles.ts +105 -0
  397. package/src/CometChatConversations/CometChatConversations.tsx +1034 -0
  398. package/src/CometChatConversations/ConversationsConfiguration.ts +181 -0
  399. package/src/CometChatConversations/ConversationsStyle.ts +88 -0
  400. package/src/CometChatConversations/index.ts +12 -0
  401. package/src/CometChatConversations/resources/index.ts +29 -0
  402. package/src/CometChatConversations/style.ts +63 -0
  403. package/src/CometChatConversationsWithMessages/CometChatConversationsWithMessages.tsx +230 -0
  404. package/src/CometChatConversationsWithMessages/index.ts +5 -0
  405. package/src/CometChatConversationsWithMessages/resources/index.ts +5 -0
  406. package/src/CometChatConversationsWithMessages/resources/start.png +0 -0
  407. package/src/CometChatConversationsWithMessages/styles.ts +15 -0
  408. package/src/CometChatCreateGroup/CometChatCreateGroup.tsx +387 -0
  409. package/src/CometChatCreateGroup/CreateGroupConfiguration.ts +35 -0
  410. package/src/CometChatCreateGroup/Header.tsx +60 -0
  411. package/src/CometChatCreateGroup/index.ts +16 -0
  412. package/src/CometChatCreateGroup/resources/index.ts +8 -0
  413. package/src/CometChatCreateGroup/style.ts +44 -0
  414. package/src/CometChatDetails/CometChatDetails.tsx +980 -0
  415. package/src/CometChatDetails/DetailsConfiguration.tsx +71 -0
  416. package/src/CometChatDetails/Header.tsx +42 -0
  417. package/src/CometChatDetails/index.ts +17 -0
  418. package/src/CometChatDetails/listners.ts +88 -0
  419. package/src/CometChatDetails/resources/index.ts +12 -0
  420. package/src/CometChatDetails/styles.ts +23 -0
  421. package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +639 -0
  422. package/src/CometChatGroupMembers/GroupMemberConfiguration.ts +94 -0
  423. package/src/CometChatGroupMembers/GroupMemberStyle.ts +91 -0
  424. package/src/CometChatGroupMembers/GroupScopeStyle.ts +68 -0
  425. package/src/CometChatGroupMembers/index.ts +16 -0
  426. package/src/CometChatGroupMembers/resources/index.ts +11 -0
  427. package/src/CometChatGroupMembers/style.ts +31 -0
  428. package/src/CometChatGroups/CometChatGroups.tsx +611 -0
  429. package/src/CometChatGroups/GroupsConfiguration.ts +121 -0
  430. package/src/CometChatGroups/GroupsStyle.ts +112 -0
  431. package/src/CometChatGroups/index.ts +12 -0
  432. package/src/CometChatGroups/resources/index.ts +21 -0
  433. package/src/CometChatGroups/style.ts +19 -0
  434. package/src/CometChatGroupsWithMessages/CometChatGroupsWithMessages.tsx +231 -0
  435. package/src/CometChatGroupsWithMessages/index.ts +5 -0
  436. package/src/CometChatGroupsWithMessages/resources/index.ts +4 -0
  437. package/src/CometChatGroupsWithMessages/styles.ts +15 -0
  438. package/src/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.tsx +270 -0
  439. package/src/CometChatJoinProtectedGroup/Header.tsx +52 -0
  440. package/src/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.ts +29 -0
  441. package/src/CometChatJoinProtectedGroup/index.ts +16 -0
  442. package/src/CometChatJoinProtectedGroup/resources/index.ts +6 -0
  443. package/src/CometChatJoinProtectedGroup/style.ts +11 -0
  444. package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +1262 -0
  445. package/src/CometChatMessageComposer/MessageComposerConfiguration.tsx +81 -0
  446. package/src/CometChatMessageComposer/index.ts +17 -0
  447. package/src/CometChatMessageComposer/resources/index.ts +19 -0
  448. package/src/CometChatMessageComposer/resources/microphone.png +0 -0
  449. package/src/CometChatMessageComposer/styles.ts +31 -0
  450. package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +504 -0
  451. package/src/CometChatMessageHeader/MessageHeaderConfiguration.tsx +61 -0
  452. package/src/CometChatMessageHeader/index.ts +16 -0
  453. package/src/CometChatMessageHeader/listners.ts +73 -0
  454. package/src/CometChatMessageHeader/resources/index.ts +8 -0
  455. package/src/CometChatMessageHeader/styles.ts +16 -0
  456. package/src/CometChatMessageInformation/.DS_Store +0 -0
  457. package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +302 -0
  458. package/src/CometChatMessageInformation/MessageInformationConfiguration.tsx +13 -0
  459. package/src/CometChatMessageInformation/MessageInformationStyle.ts +12 -0
  460. package/src/CometChatMessageInformation/index.ts +13 -0
  461. package/src/CometChatMessageInformation/resources/index.ts +5 -0
  462. package/src/CometChatMessageInformation/styles.ts +26 -0
  463. package/src/CometChatMessageList/CometChatMessageList.tsx +1408 -0
  464. package/src/CometChatMessageList/MessageListConfiguration.ts +130 -0
  465. package/src/CometChatMessageList/MessageListStyle.ts +75 -0
  466. package/src/CometChatMessageList/index.ts +23 -0
  467. package/src/CometChatMessageList/resources/index.ts +13 -0
  468. package/src/CometChatMessageList/style.ts +55 -0
  469. package/src/CometChatMessages/CometChatMessages.tsx +334 -0
  470. package/src/CometChatMessages/MessageStyle.ts +34 -0
  471. package/src/CometChatMessages/MessagesConfiguration.ts +53 -0
  472. package/src/CometChatMessages/index.ts +15 -0
  473. package/src/CometChatMessages/resources/index.ts +5 -0
  474. package/src/CometChatMessages/style.ts +24 -0
  475. package/src/CometChatTabs/CometChatTabs.tsx +190 -0
  476. package/src/CometChatTabs/CometChatTabsStyle.ts +43 -0
  477. package/src/CometChatTabs/TabItemStyle.ts +55 -0
  478. package/src/CometChatTabs/TabItems.ts +11 -0
  479. package/src/CometChatTabs/index.ts +11 -0
  480. package/src/CometChatThreadedMessages/CometChatThreadedMessages.tsx +294 -0
  481. package/src/CometChatThreadedMessages/Header.tsx +57 -0
  482. package/src/CometChatThreadedMessages/ThreadedMessagesConfiguration.ts +29 -0
  483. package/src/CometChatThreadedMessages/index.ts +16 -0
  484. package/src/CometChatThreadedMessages/resources/index.ts +14 -0
  485. package/src/CometChatThreadedMessages/style.ts +27 -0
  486. package/src/CometChatTransferOwnership/CometChatTransferOwnership.tsx +144 -0
  487. package/src/CometChatTransferOwnership/TransferOwnershipConfiguration.ts +59 -0
  488. package/src/CometChatTransferOwnership/index.ts +15 -0
  489. package/src/CometChatUsers/CometChatUsers.tsx +173 -0
  490. package/src/CometChatUsers/UsersConfiguration.tsx +58 -0
  491. package/src/CometChatUsers/index.ts +14 -0
  492. package/src/CometChatUsersWithMessages/CometChatUsersWithMessages.tsx +127 -0
  493. package/src/CometChatUsersWithMessages/index.ts +5 -0
  494. package/src/CometChatUsersWithMessages/styles.ts +15 -0
  495. package/src/calls/CallEvents.ts +9 -0
  496. package/src/calls/CallUtils.ts +71 -0
  497. package/src/calls/CallingConfiguration.ts +5 -0
  498. package/src/calls/CallingDetailsUtils.tsx +39 -0
  499. package/src/calls/CallingExtension.tsx +48 -0
  500. package/src/calls/CallingExtentionDecorator.tsx +204 -0
  501. package/src/calls/CallingPackage.ts +8 -0
  502. package/src/calls/CometChatCallBubble/CallBubbleConfiguration.ts +23 -0
  503. package/src/calls/CometChatCallBubble/CallBubbleStyle.ts +47 -0
  504. package/src/calls/CometChatCallBubble/CometChatCallBubble.tsx +54 -0
  505. package/src/calls/CometChatCallBubble/index.ts +11 -0
  506. package/src/calls/CometChatCallBubble/resources/index.ts +9 -0
  507. package/src/calls/CometChatCallBubble/styles.ts +22 -0
  508. package/src/calls/CometChatCallButtons/CallButtonStyle.ts +35 -0
  509. package/src/calls/CometChatCallButtons/CometChatCallButtonConfiguration.ts +41 -0
  510. package/src/calls/CometChatCallButtons/CometChatCallButtons.tsx +340 -0
  511. package/src/calls/CometChatCallButtons/index.ts +11 -0
  512. package/src/calls/CometChatCallButtons/resources/index.ts +7 -0
  513. package/src/calls/CometChatCallButtons/style.ts +14 -0
  514. package/src/calls/CometChatCallDetails/CallDetailsConfiguration.ts +68 -0
  515. package/src/calls/CometChatCallDetails/CallDetailsStyle.ts +52 -0
  516. package/src/calls/CometChatCallDetails/CometChatCallDetails.tsx +268 -0
  517. package/src/calls/CometChatCallDetails/index.ts +9 -0
  518. package/src/calls/CometChatCallDetails/resources/index.ts +4 -0
  519. package/src/calls/CometChatCallDetails/style.ts +14 -0
  520. package/src/calls/CometChatCallHistory/.DS_Store +0 -0
  521. package/src/calls/CometChatCallHistory/CallHistoryConfiguration.ts +77 -0
  522. package/src/calls/CometChatCallHistory/CallHistoryStyle.ts +34 -0
  523. package/src/calls/CometChatCallHistory/CometChatCallHistory.tsx +422 -0
  524. package/src/calls/CometChatCallHistory/index.ts +9 -0
  525. package/src/calls/CometChatCallHistory/resources/index.ts +17 -0
  526. package/src/calls/CometChatCallHistory/style.ts +23 -0
  527. package/src/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.tsx +54 -0
  528. package/src/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.ts +7 -0
  529. package/src/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.ts +3 -0
  530. package/src/calls/CometChatCallHistoryWithDetails/index.ts +8 -0
  531. package/src/calls/CometChatCallHistoryWithDetails/style.ts +11 -0
  532. package/src/calls/CometChatIncomingCall/CometChatIncomingCall.tsx +276 -0
  533. package/src/calls/CometChatIncomingCall/IncomingCallStyle.ts +75 -0
  534. package/src/calls/CometChatIncomingCall/index.ts +9 -0
  535. package/src/calls/CometChatIncomingCall/resources/index.ts +11 -0
  536. package/src/calls/CometChatIncomingCall/styles.ts +11 -0
  537. package/src/calls/CometChatOngoingCall/CometChatOngoingCall.tsx +67 -0
  538. package/src/calls/CometChatOngoingCall/OngoingCallStyle.ts +25 -0
  539. package/src/calls/CometChatOngoingCall/index.ts +8 -0
  540. package/src/calls/CometChatOutgoingCall/CometChatOutgoingCall.tsx +263 -0
  541. package/src/calls/CometChatOutgoingCall/OutgoingCallConfiguration.ts +33 -0
  542. package/src/calls/CometChatOutgoingCall/OutgoingCallStyle.ts +39 -0
  543. package/src/calls/CometChatOutgoingCall/index.ts +9 -0
  544. package/src/calls/CometChatOutgoingCall/resources/index.ts +5 -0
  545. package/src/calls/index.ts +39 -0
  546. package/src/calls/resources/index.ts +7 -0
  547. package/src/extensions/CollaborativeBubble/CollaborativeBubbleStyle.ts +97 -0
  548. package/src/extensions/CollaborativeBubble/CometChatCollaborativeBubble.tsx +106 -0
  549. package/src/extensions/CollaborativeBubble/resources/index.ts +4 -0
  550. package/src/extensions/CollaborativeBubble/styles.ts +80 -0
  551. package/src/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.tsx +26 -0
  552. package/src/extensions/CollaborativeDocument/CollaborativeDocumentExtension.tsx +38 -0
  553. package/src/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.tsx +204 -0
  554. package/src/extensions/CollaborativeDocument/index.ts +12 -0
  555. package/src/extensions/CollaborativeDocument/resources/index.ts +5 -0
  556. package/src/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.tsx +26 -0
  557. package/src/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.tsx +38 -0
  558. package/src/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.tsx +209 -0
  559. package/src/extensions/CollaborativeWhiteboard/index.ts +12 -0
  560. package/src/extensions/CollaborativeWhiteboard/resources/index.ts +5 -0
  561. package/src/extensions/ExtensionConstants.tsx +54 -0
  562. package/src/extensions/ExtensionModerator.tsx +60 -0
  563. package/src/extensions/ImageModeration/ImageModerationDecorator.tsx +82 -0
  564. package/src/extensions/ImageModeration/ImageModerationExtension.tsx +43 -0
  565. package/src/extensions/ImageModeration/ImageModerationFilter.tsx +145 -0
  566. package/src/extensions/ImageModeration/index.ts +10 -0
  567. package/src/extensions/ImageModeration/resources/index.ts +3 -0
  568. package/src/extensions/LinkPreview/LInkPreviewBubbleStyle.ts +28 -0
  569. package/src/extensions/LinkPreview/LinkPreviewBubble.tsx +73 -0
  570. package/src/extensions/LinkPreview/LinkPreviewConfiguration.ts +27 -0
  571. package/src/extensions/LinkPreview/LinkPreviewExtention.tsx +25 -0
  572. package/src/extensions/LinkPreview/LinkPreviewExtentionDecorator.tsx +54 -0
  573. package/src/extensions/LinkPreview/index.ts +15 -0
  574. package/src/extensions/LinkPreview/resources/index.ts +5 -0
  575. package/src/extensions/MessageTranslation/MessageTranslationBubble.tsx +128 -0
  576. package/src/extensions/MessageTranslation/MessageTranslationDecorator.tsx +216 -0
  577. package/src/extensions/MessageTranslation/MessageTranslationExtension.tsx +47 -0
  578. package/src/extensions/MessageTranslation/index.ts +13 -0
  579. package/src/extensions/MessageTranslation/resources/index.ts +5 -0
  580. package/src/extensions/Polls/Header.tsx +71 -0
  581. package/src/extensions/Polls/Polls.tsx +454 -0
  582. package/src/extensions/Polls/PollsBubble.tsx +330 -0
  583. package/src/extensions/Polls/PollsConfigurations.ts +16 -0
  584. package/src/extensions/Polls/PollsDecorator.tsx +172 -0
  585. package/src/extensions/Polls/PollsExtension.tsx +39 -0
  586. package/src/extensions/Polls/index.ts +14 -0
  587. package/src/extensions/Polls/resources/index.ts +14 -0
  588. package/src/extensions/Polls/style.ts +40 -0
  589. package/src/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.tsx +249 -0
  590. package/src/extensions/Reactions/CometChatMessageReactions/index.ts +3 -0
  591. package/src/extensions/Reactions/CometChatMessageReactions/style.ts +42 -0
  592. package/src/extensions/Reactions/ReactionsDecorator.tsx +164 -0
  593. package/src/extensions/Reactions/ReactionsExtension.tsx +48 -0
  594. package/src/extensions/Reactions/index.ts +4 -0
  595. package/src/extensions/Reactions/resources/index.ts +2 -0
  596. package/src/extensions/SmartReplies/SmartRepliesDecorator.tsx +135 -0
  597. package/src/extensions/SmartReplies/SmartRepliesExtension.tsx +52 -0
  598. package/src/extensions/SmartReplies/SmartRepliesView.tsx +218 -0
  599. package/src/extensions/SmartReplies/index.ts +3 -0
  600. package/src/extensions/SmartReplies/resources/index.ts +5 -0
  601. package/src/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.tsx +152 -0
  602. package/src/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.ts +20 -0
  603. package/src/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.ts +52 -0
  604. package/src/extensions/Stickers/CometChatStickerKeyboard/hooks.ts +93 -0
  605. package/src/extensions/Stickers/CometChatStickerKeyboard/index.ts +5 -0
  606. package/src/extensions/Stickers/CometChatStickerKeyboard/resources/close.svg +4 -0
  607. package/src/extensions/Stickers/CometChatStickerKeyboard/style.ts +55 -0
  608. package/src/extensions/Stickers/StickerConfiguration.ts +17 -0
  609. package/src/extensions/Stickers/StickerStyle.ts +15 -0
  610. package/src/extensions/Stickers/StickersBubble.tsx +54 -0
  611. package/src/extensions/Stickers/StickersExtension.ts +32 -0
  612. package/src/extensions/Stickers/StickersExtensionDecorator.tsx +142 -0
  613. package/src/extensions/Stickers/index.ts +12 -0
  614. package/src/extensions/Stickers/resources/index.ts +5 -0
  615. package/src/extensions/TextModeration/TextModerationConfiguration.tsx +25 -0
  616. package/src/extensions/TextModeration/TextModerationExtension.tsx +50 -0
  617. package/src/extensions/TextModeration/TextModerationExtensionDecorator.tsx +92 -0
  618. package/src/extensions/TextModeration/index.ts +5 -0
  619. package/src/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.tsx +109 -0
  620. package/src/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.tsx +45 -0
  621. package/src/extensions/ThumbnailGeneration/index.ts +3 -0
  622. package/src/extensions/index.ts +55 -0
  623. package/src/index.ts +561 -0
  624. package/src/shared/CometChatContext.tsx +39 -0
  625. package/src/shared/CometChatUiKit/CometChatUIKit.ts +220 -0
  626. package/src/shared/CometChatUiKit/CometChatUIKitHelper.ts +121 -0
  627. package/src/shared/CometChatUiKit/UIKitSettings.ts +39 -0
  628. package/src/shared/CometChatUiKit/index.ts +9 -0
  629. package/src/shared/assets/images/index.ts +17 -0
  630. package/src/shared/base/BaseStyle.ts +40 -0
  631. package/src/shared/base/BorderStyle.ts +28 -0
  632. package/src/shared/base/FontStyle.ts +27 -0
  633. package/src/shared/base/ShadowStyle.ts +40 -0
  634. package/src/shared/base/Types.ts +21 -0
  635. package/src/shared/base/index.ts +28 -0
  636. package/src/shared/constants/UIKitConstants.ts +348 -0
  637. package/src/shared/events/CometChatMessageEvents/index.ts +100 -0
  638. package/src/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.ts +332 -0
  639. package/src/shared/events/CometChatUIEventHandler/Listener.ts +350 -0
  640. package/src/shared/events/CometChatUIEvents.ts +18 -0
  641. package/src/shared/events/conversations.ts +3 -0
  642. package/src/shared/events/groups.ts +10 -0
  643. package/src/shared/events/index.ts +13 -0
  644. package/src/shared/events/messages.ts +11 -0
  645. package/src/shared/framework/.DS_Store +0 -0
  646. package/src/shared/framework/ChatConfigurator.ts +28 -0
  647. package/src/shared/framework/DataSource.ts +72 -0
  648. package/src/shared/framework/DataSourceDecorator.tsx +164 -0
  649. package/src/shared/framework/ExtensionsDataSource.tsx +20 -0
  650. package/src/shared/framework/MessageDataSource.tsx +621 -0
  651. package/src/shared/framework/index.ts +6 -0
  652. package/src/shared/framework/resources/index.ts +45 -0
  653. package/src/shared/framework/resources/messageInPrivate.png +0 -0
  654. package/src/shared/framework/resources/microphone.png +0 -0
  655. package/src/shared/framework/resources/stop_player.png +0 -0
  656. package/src/shared/helper/SwipeRow.js +944 -0
  657. package/src/shared/helper/Toast.tsx +24 -0
  658. package/src/shared/helper/functions.js +36 -0
  659. package/src/shared/helper/helperFunctions.ts +18 -0
  660. package/src/shared/helper/types/index.ts +26 -0
  661. package/src/shared/helper/useKeyboard.tsx +38 -0
  662. package/src/shared/index.ts +262 -0
  663. package/src/shared/modals/CometChatDetailsOption.ts +24 -0
  664. package/src/shared/modals/CometChatDetailsTemplate.ts +16 -0
  665. package/src/shared/modals/CometChatMessageOption.ts +14 -0
  666. package/src/shared/modals/CometChatMessageTemplate.ts +42 -0
  667. package/src/shared/modals/CometChatOptions.ts +13 -0
  668. package/src/shared/modals/index.ts +13 -0
  669. package/src/shared/resources/CometChatLocalize/CometChatLocalize.ts +180 -0
  670. package/src/shared/resources/CometChatLocalize/index.ts +9 -0
  671. package/src/shared/resources/CometChatLocalize/resources/ar/translation.json +270 -0
  672. package/src/shared/resources/CometChatLocalize/resources/de/translation.json +270 -0
  673. package/src/shared/resources/CometChatLocalize/resources/en/translation.json +270 -0
  674. package/src/shared/resources/CometChatLocalize/resources/es/translation.json +270 -0
  675. package/src/shared/resources/CometChatLocalize/resources/fr/translation.json +270 -0
  676. package/src/shared/resources/CometChatLocalize/resources/hi/translation.json +270 -0
  677. package/src/shared/resources/CometChatLocalize/resources/lt/translation.json +270 -0
  678. package/src/shared/resources/CometChatLocalize/resources/ms/translation.json +270 -0
  679. package/src/shared/resources/CometChatLocalize/resources/pt/translation.json +270 -0
  680. package/src/shared/resources/CometChatLocalize/resources/ru/translation.json +270 -0
  681. package/src/shared/resources/CometChatLocalize/resources/sv/translation.json +270 -0
  682. package/src/shared/resources/CometChatLocalize/resources/zh/translation.json +270 -0
  683. package/src/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +270 -0
  684. package/src/shared/resources/CometChatSoundManager/CometChatSoundManager.js +95 -0
  685. package/src/shared/resources/CometChatSoundManager/index.ts +2 -0
  686. package/src/shared/resources/CometChatSoundManager/resources/index.js +5 -0
  687. package/src/shared/resources/CometChatSoundManager/sound.js +336 -0
  688. package/src/shared/resources/CometChatTheme/CometChatTheme.ts +28 -0
  689. package/src/shared/resources/CometChatTheme/Palette.ts +501 -0
  690. package/src/shared/resources/CometChatTheme/Typography.ts +269 -0
  691. package/src/shared/resources/CometChatTheme/index.ts +2 -0
  692. package/src/shared/resources/index.ts +12 -0
  693. package/src/shared/utils/CometChatLiveReactions/CometChatLiveReaction.tsx +120 -0
  694. package/src/shared/utils/CometChatLiveReactions/LiveReactionstyles.ts +37 -0
  695. package/src/shared/utils/CometChatLiveReactions/index.ts +1 -0
  696. package/src/shared/utils/CometChatLiveReactions/resources/index.ts +4 -0
  697. package/src/shared/utils/CometChatLiveReactions/style.ts +8 -0
  698. package/src/shared/utils/CometChatMessageHelper/index.ts +55 -0
  699. package/src/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +117 -0
  700. package/src/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js +30 -0
  701. package/src/shared/utils/CometChatMessagePreview/MessagePreviewStyle.js +42 -0
  702. package/src/shared/utils/CometChatMessagePreview/index.js +5 -0
  703. package/src/shared/utils/CometChatMessagePreview/resources/index.ts +5 -0
  704. package/src/shared/utils/CometChatMessagePreview/style.js +71 -0
  705. package/src/shared/utils/DetailsUtils/DetailsUtils.tsx +353 -0
  706. package/src/shared/utils/DetailsUtils/resources/index.ts +16 -0
  707. package/src/shared/utils/MessageUtils.tsx +57 -0
  708. package/src/shared/utils/conversationUtils.ts +82 -0
  709. package/src/shared/utils/index.ts +28 -0
  710. package/src/shared/views/.DS_Store +0 -0
  711. package/src/shared/views/CometChatActionSheet/ActionItem.ts +60 -0
  712. package/src/shared/views/CometChatActionSheet/ActionSheetStyle.ts +76 -0
  713. package/src/shared/views/CometChatActionSheet/CometChatActionSheet.tsx +275 -0
  714. package/src/shared/views/CometChatActionSheet/hooks.ts +10 -0
  715. package/src/shared/views/CometChatActionSheet/index.ts +3 -0
  716. package/src/shared/views/CometChatActionSheet/resources/index.ts +7 -0
  717. package/src/shared/views/CometChatActionSheet/style.ts +47 -0
  718. package/src/shared/views/CometChatAudioBubble/.DS_Store +0 -0
  719. package/src/shared/views/CometChatAudioBubble/AudioBubbleStyle.ts +43 -0
  720. package/src/shared/views/CometChatAudioBubble/CometChatAudioBubble.tsx +166 -0
  721. package/src/shared/views/CometChatAudioBubble/index.ts +16 -0
  722. package/src/shared/views/CometChatAudioBubble/resources/index.ts +7 -0
  723. package/src/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
  724. package/src/shared/views/CometChatAudioBubble/style.ts +29 -0
  725. package/src/shared/views/CometChatAvatar/AvatarConfiguration.ts +27 -0
  726. package/src/shared/views/CometChatAvatar/AvatarStyle.ts +57 -0
  727. package/src/shared/views/CometChatAvatar/CometChatAvatar.tsx +122 -0
  728. package/src/shared/views/CometChatAvatar/index.ts +11 -0
  729. package/src/shared/views/CometChatAvatar/resources/index.ts +5 -0
  730. package/src/shared/views/CometChatAvatar/styles.ts +25 -0
  731. package/src/shared/views/CometChatBadge/BadgeConfiguration.ts +55 -0
  732. package/src/shared/views/CometChatBadge/BadgeStyle.ts +39 -0
  733. package/src/shared/views/CometChatBadge/CometChatBadge.tsx +70 -0
  734. package/src/shared/views/CometChatBadge/index.ts +10 -0
  735. package/src/shared/views/CometChatBadge/styles.ts +18 -0
  736. package/src/shared/views/CometChatBottomSheet/CometChatBottomSheet.tsx +173 -0
  737. package/src/shared/views/CometChatBottomSheet/index.ts +3 -0
  738. package/src/shared/views/CometChatBottomSheet/style.ts +52 -0
  739. package/src/shared/views/CometChatButton/CometChatButton.tsx +66 -0
  740. package/src/shared/views/CometChatButton/CometChatButtonStyle.ts +47 -0
  741. package/src/shared/views/CometChatButton/index.ts +15 -0
  742. package/src/shared/views/CometChatButton/style.ts +8 -0
  743. package/src/shared/views/CometChatCard/CometChatCard.tsx +77 -0
  744. package/src/shared/views/CometChatCard/CometChatCardStyle.ts +31 -0
  745. package/src/shared/views/CometChatCard/index.ts +9 -0
  746. package/src/shared/views/CometChatCard/style.ts +13 -0
  747. package/src/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.tsx +138 -0
  748. package/src/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.ts +35 -0
  749. package/src/shared/views/CometChatConfirmDialog/index.ts +7 -0
  750. package/src/shared/views/CometChatConfirmDialog/style.ts +63 -0
  751. package/src/shared/views/CometChatDate/CometChatDate.tsx +188 -0
  752. package/src/shared/views/CometChatDate/DateConfiguration.ts +28 -0
  753. package/src/shared/views/CometChatDate/DateStyle.ts +26 -0
  754. package/src/shared/views/CometChatDate/index.ts +11 -0
  755. package/src/shared/views/CometChatDate/style.ts +8 -0
  756. package/src/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.tsx +242 -0
  757. package/src/shared/views/CometChatEmojiKeyboard/Emoji.ts +17 -0
  758. package/src/shared/views/CometChatEmojiKeyboard/EmojiCategory.ts +22 -0
  759. package/src/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.ts +26 -0
  760. package/src/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.ts +44 -0
  761. package/src/shared/views/CometChatEmojiKeyboard/emojis.ts +8225 -0
  762. package/src/shared/views/CometChatEmojiKeyboard/index.ts +5 -0
  763. package/src/shared/views/CometChatEmojiKeyboard/resources/index.ts +10 -0
  764. package/src/shared/views/CometChatEmojiKeyboard/style.ts +64 -0
  765. package/src/shared/views/CometChatFileBubble/.DS_Store +0 -0
  766. package/src/shared/views/CometChatFileBubble/CometChatFileBubble.tsx +131 -0
  767. package/src/shared/views/CometChatFileBubble/FileBubbleStyle.ts +58 -0
  768. package/src/shared/views/CometChatFileBubble/index.ts +9 -0
  769. package/src/shared/views/CometChatFileBubble/resources/file_upload.png +0 -0
  770. package/src/shared/views/CometChatFileBubble/resources/index.ts +7 -0
  771. package/src/shared/views/CometChatFileBubble/style.ts +48 -0
  772. package/src/shared/views/CometChatImageBubble/CometChatImageBubble.tsx +106 -0
  773. package/src/shared/views/CometChatImageBubble/ImageBubbleStyle.ts +23 -0
  774. package/src/shared/views/CometChatImageBubble/index.ts +9 -0
  775. package/src/shared/views/CometChatList/CometChatList.tsx +727 -0
  776. package/src/shared/views/CometChatList/Header.tsx +139 -0
  777. package/src/shared/views/CometChatList/index.ts +12 -0
  778. package/src/shared/views/CometChatList/resources/Back.png +0 -0
  779. package/src/shared/views/CometChatList/resources/Spinner.png +0 -0
  780. package/src/shared/views/CometChatList/resources/checkmark.png +0 -0
  781. package/src/shared/views/CometChatList/resources/index.ts +12 -0
  782. package/src/shared/views/CometChatList/styles.ts +103 -0
  783. package/src/shared/views/CometChatListItem/CometChatListItem.tsx +304 -0
  784. package/src/shared/views/CometChatListItem/ListItemConfiguration.tsx +20 -0
  785. package/src/shared/views/CometChatListItem/ListItemStyle.ts +47 -0
  786. package/src/shared/views/CometChatListItem/index.ts +14 -0
  787. package/src/shared/views/CometChatListItem/style.ts +65 -0
  788. package/src/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.tsx +253 -0
  789. package/src/shared/views/CometChatMediaRecorder/MediaRecorderStyle.ts +63 -0
  790. package/src/shared/views/CometChatMediaRecorder/index.ts +11 -0
  791. package/src/shared/views/CometChatMediaRecorder/style.ts +31 -0
  792. package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +94 -0
  793. package/src/shared/views/CometChatMessageBubble/MessageBubbleStyle.ts +22 -0
  794. package/src/shared/views/CometChatMessageBubble/index.ts +6 -0
  795. package/src/shared/views/CometChatMessageBubble/style.ts +0 -0
  796. package/src/shared/views/CometChatMessageInput/CometChatMessageInput.tsx +184 -0
  797. package/src/shared/views/CometChatMessageInput/index.ts +2 -0
  798. package/src/shared/views/CometChatMessageInput/styles.ts +9 -0
  799. package/src/shared/views/CometChatReceipt/CometChatReceipt.tsx +72 -0
  800. package/src/shared/views/CometChatReceipt/MessageConfiguration.ts +53 -0
  801. package/src/shared/views/CometChatReceipt/ReceiptStyle.ts +3 -0
  802. package/src/shared/views/CometChatReceipt/index.ts +9 -0
  803. package/src/shared/views/CometChatReceipt/resources/blue-double-tick-icon.png +0 -0
  804. package/src/shared/views/CometChatReceipt/resources/error.png +0 -0
  805. package/src/shared/views/CometChatReceipt/resources/grey-double-tick-icon.png +0 -0
  806. package/src/shared/views/CometChatReceipt/resources/grey-tick-icon.png +0 -0
  807. package/src/shared/views/CometChatReceipt/resources/index.ts +18 -0
  808. package/src/shared/views/CometChatReceipt/resources/sending.png +0 -0
  809. package/src/shared/views/CometChatReceipt/style.ts +9 -0
  810. package/src/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.tsx +64 -0
  811. package/src/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.ts +25 -0
  812. package/src/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.ts +37 -0
  813. package/src/shared/views/CometChatStatusIndicator/index.ts +12 -0
  814. package/src/shared/views/CometChatStatusIndicator/styles.ts +15 -0
  815. package/src/shared/views/CometChatTextBubble/CometChatTextBubble.tsx +125 -0
  816. package/src/shared/views/CometChatTextBubble/TextBubbleStyle.ts +51 -0
  817. package/src/shared/views/CometChatTextBubble/index.ts +11 -0
  818. package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +113 -0
  819. package/src/shared/views/CometChatVideoBubble/VideoBubbleStyle.ts +37 -0
  820. package/src/shared/views/CometChatVideoBubble/index.ts +9 -0
  821. package/src/shared/views/CometChatVideoBubble/resources/index.ts +5 -0
  822. package/src/shared/views/CometChatVideoBubble/resources/play.png +0 -0
  823. package/src/shared/views/CometChatVideoBubble/style.ts +10 -0
  824. package/src/shared/views/SwipeRow/SwipeRow.tsx +133 -0
  825. package/src/shared/views/SwipeRow/index.ts +3 -0
  826. package/src/shared/views/SwipeRow/style.ts +30 -0
  827. package/src/shared/views/index.ts +163 -0
  828. /package/{lib → src}/CometChatBannedMembers/resources/clear.png +0 -0
  829. /package/{lib → src}/CometChatConversations/resources/back.png +0 -0
  830. /package/{lib → src}/CometChatConversations/resources/blue-double-tick-icon.png +0 -0
  831. /package/{lib → src}/CometChatConversations/resources/close.png +0 -0
  832. /package/{lib → src}/CometChatConversations/resources/delete.png +0 -0
  833. /package/{lib → src}/CometChatConversations/resources/error.png +0 -0
  834. /package/{lib → src}/CometChatConversations/resources/grey-double-tick-icon.png +0 -0
  835. /package/{lib → src}/CometChatConversations/resources/grey-tick-icon.png +0 -0
  836. /package/{lib → src}/CometChatConversations/resources/new.png +0 -0
  837. /package/{lib → src}/CometChatConversations/resources/password.png +0 -0
  838. /package/{lib → src}/CometChatConversations/resources/private.png +0 -0
  839. /package/{lib → src}/CometChatConversations/resources/rightTick.png +0 -0
  840. /package/{lib → src}/CometChatConversations/resources/sending.png +0 -0
  841. /package/{lib → src}/CometChatConversations/resources/spineer.png +0 -0
  842. /package/{lib → src}/CometChatCreateGroup/resources/close.png +0 -0
  843. /package/{lib → src}/CometChatCreateGroup/resources/rightTick.png +0 -0
  844. /package/{lib → src}/CometChatCreateGroup/resources/warning.png +0 -0
  845. /package/{lib → src}/CometChatDetails/resources/Back.png +0 -0
  846. /package/{lib → src}/CometChatDetails/resources/close.png +0 -0
  847. /package/{lib → src}/CometChatDetails/resources/password.png +0 -0
  848. /package/{lib → src}/CometChatDetails/resources/private.png +0 -0
  849. /package/{lib → src}/CometChatDetails/resources/right-arrow.png +0 -0
  850. /package/{lib → src}/CometChatGroupMembers/resources/banIcon.png +0 -0
  851. /package/{lib → src}/CometChatGroupMembers/resources/downArrowIcon.png +0 -0
  852. /package/{lib → src}/CometChatGroupMembers/resources/kickIcon.png +0 -0
  853. /package/{lib → src}/CometChatGroupMembers/resources/rightTick.png +0 -0
  854. /package/{lib → src}/CometChatGroups/resources/back.png +0 -0
  855. /package/{lib → src}/CometChatGroups/resources/close.png +0 -0
  856. /package/{lib → src}/CometChatGroups/resources/create.png +0 -0
  857. /package/{lib → src}/CometChatGroups/resources/more.png +0 -0
  858. /package/{lib → src}/CometChatGroups/resources/password.png +0 -0
  859. /package/{lib → src}/CometChatGroups/resources/private.png +0 -0
  860. /package/{lib → src}/CometChatGroups/resources/rightTick.png +0 -0
  861. /package/{lib → src}/CometChatGroups/resources/search.png +0 -0
  862. /package/{lib → src}/CometChatGroups/resources/spineer.png +0 -0
  863. /package/{lib → src}/CometChatGroupsWithMessages/resources/write.png +0 -0
  864. /package/{lib → src}/CometChatJoinProtectedGroup/resources/close.png +0 -0
  865. /package/{lib → src}/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
  866. /package/{lib → src}/CometChatMessageComposer/resources/circle_add.png +0 -0
  867. /package/{lib → src}/CometChatMessageComposer/resources/close.png +0 -0
  868. /package/{lib → src}/CometChatMessageComposer/resources/emoji.png +0 -0
  869. /package/{lib → src}/CometChatMessageComposer/resources/heart.png +0 -0
  870. /package/{lib → src}/CometChatMessageComposer/resources/image.png +0 -0
  871. /package/{lib → src}/CometChatMessageComposer/resources/send_message.png +0 -0
  872. /package/{lib → src}/CometChatMessageComposer/resources/stickers.png +0 -0
  873. /package/{lib → src}/CometChatMessageHeader/resources/Back.png +0 -0
  874. /package/{lib → src}/CometChatMessageHeader/resources/password.png +0 -0
  875. /package/{lib → src}/CometChatMessageHeader/resources/private.png +0 -0
  876. /package/{lib/calls/CometChatCallHistory → src/CometChatMessageInformation}/resources/Spineer.png +0 -0
  877. /package/{lib → src}/CometChatMessageList/resources/back.png +0 -0
  878. /package/{lib → src}/CometChatMessageList/resources/close.png +0 -0
  879. /package/{lib → src}/CometChatMessageList/resources/downArrowIcon.png +0 -0
  880. /package/{lib → src}/CometChatMessageList/resources/rightArrowIcon.png +0 -0
  881. /package/{lib → src}/CometChatMessageList/resources/spineer.png +0 -0
  882. /package/{lib → src}/CometChatMessages/resources/info.png +0 -0
  883. /package/{lib → src}/CometChatThreadedMessages/resources/Back.png +0 -0
  884. /package/{lib → src}/CometChatThreadedMessages/resources/close.png +0 -0
  885. /package/{lib → src}/CometChatThreadedMessages/resources/more.png +0 -0
  886. /package/{lib → src}/CometChatThreadedMessages/resources/password.png +0 -0
  887. /package/{lib → src}/CometChatThreadedMessages/resources/private.png +0 -0
  888. /package/{lib → src}/CometChatThreadedMessages/resources/right-arrow.png +0 -0
  889. /package/{lib → src}/calls/CometChatCallBubble/resources/avatar.png +0 -0
  890. /package/{lib → src}/calls/CometChatCallBubble/resources/incomingaudiocall.png +0 -0
  891. /package/{lib → src}/calls/CometChatCallBubble/resources/incomingvideocall.png +0 -0
  892. /package/{lib → src}/calls/CometChatCallButtons/resources/Call.png +0 -0
  893. /package/{lib → src}/calls/CometChatCallButtons/resources/Video.png +0 -0
  894. /package/{lib → src}/calls/CometChatCallDetails/resources/CloseIcon.png +0 -0
  895. /package/{lib → src}/calls/CometChatCallHistory/resources/Back.png +0 -0
  896. /package/{lib → src}/calls/CometChatCallHistory/resources/Call.png +0 -0
  897. /package/{lib → src}/calls/CometChatCallHistory/resources/Info.png +0 -0
  898. /package/{lib → src}/calls/CometChatCallHistory/resources/Selection.png +0 -0
  899. /package/{lib/shared/views/CometChatList/resources/Spinner.png → src/calls/CometChatCallHistory/resources/Spineer.png} +0 -0
  900. /package/{lib → src}/calls/CometChatCallHistory/resources/Video.png +0 -0
  901. /package/{lib → src}/calls/CometChatCallHistory/resources/check.png +0 -0
  902. /package/{lib → src}/calls/CometChatIncomingCall/resources/Call.png +0 -0
  903. /package/{lib → src}/calls/CometChatIncomingCall/resources/close.png +0 -0
  904. /package/{lib → src}/calls/CometChatIncomingCall/resources/incomingaudiocall.png +0 -0
  905. /package/{lib → src}/calls/CometChatIncomingCall/resources/incomingvideocall.png +0 -0
  906. /package/{lib → src}/calls/CometChatOutgoingCall/resources/Close.png +0 -0
  907. /package/{lib → src}/calls/resources/Call.png +0 -0
  908. /package/{lib → src}/calls/resources/Video.png +0 -0
  909. /package/{lib → src}/extensions/CollaborativeBubble/resources/whiteboard.png +0 -0
  910. /package/{lib → src}/extensions/CollaborativeDocument/resources/collaborative_document.png +0 -0
  911. /package/{lib → src}/extensions/CollaborativeDocument/resources/collaborative_document_2x.png +0 -0
  912. /package/{lib → src}/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
  913. /package/{lib → src}/extensions/CollaborativeWhiteboard/resources/whiteboard.png +0 -0
  914. /package/{lib → src}/extensions/ImageModeration/resources/unsafe.png +0 -0
  915. /package/{lib → src}/extensions/LinkPreview/resources/defaultImage.png +0 -0
  916. /package/{lib → src}/extensions/MessageTranslation/resources/translate.png +0 -0
  917. /package/{lib → src}/extensions/Polls/resources/close.png +0 -0
  918. /package/{lib → src}/extensions/Polls/resources/document.png +0 -0
  919. /package/{lib → src}/extensions/Polls/resources/kickIcon.png +0 -0
  920. /package/{lib → src}/extensions/Polls/resources/rightTick.png +0 -0
  921. /package/{lib → src}/extensions/Polls/resources/warning.png +0 -0
  922. /package/{lib → src}/extensions/Reactions/resources/AddReactions.png +0 -0
  923. /package/{lib → src}/extensions/SmartReplies/resources/close.png +0 -0
  924. /package/{lib → src}/extensions/Stickers/resources/Stickers.png +0 -0
  925. /package/{lib/shared/views/CometChatList/resources → src/shared/assets/images}/Back.png +0 -0
  926. /package/{lib/shared/views/CometChatReceipt/resources → src/shared/assets/images}/blue-double-tick-icon.png +0 -0
  927. /package/{lib/shared/views/CometChatList/resources → src/shared/assets/images}/checkmark.png +0 -0
  928. /package/{lib/shared/views/CometChatReceipt/resources → src/shared/assets/images}/error.png +0 -0
  929. /package/{lib/shared/views/CometChatReceipt/resources → src/shared/assets/images}/grey-double-tick-icon.png +0 -0
  930. /package/{lib/shared/views/CometChatReceipt/resources → src/shared/assets/images}/grey-tick-icon.png +0 -0
  931. /package/{lib/shared/views/CometChatReceipt/resources → src/shared/assets/images}/sending.png +0 -0
  932. /package/{lib → src}/shared/framework/resources/audio-file.png +0 -0
  933. /package/{lib → src}/shared/framework/resources/circle_add.png +0 -0
  934. /package/{lib → src}/shared/framework/resources/copy.png +0 -0
  935. /package/{lib → src}/shared/framework/resources/delete.png +0 -0
  936. /package/{lib → src}/shared/framework/resources/edit.png +0 -0
  937. /package/{lib → src}/shared/framework/resources/emoji.png +0 -0
  938. /package/{lib → src}/shared/framework/resources/file_upload.png +0 -0
  939. /package/{lib → src}/shared/framework/resources/forward.png +0 -0
  940. /package/{lib → src}/shared/framework/resources/heart.png +0 -0
  941. /package/{lib → src}/shared/framework/resources/image.png +0 -0
  942. /package/{lib → src}/shared/framework/resources/info.png +0 -0
  943. /package/{lib → src}/shared/framework/resources/location.png +0 -0
  944. /package/{lib/shared/views/CometChatAudioBubble → src/shared/framework}/resources/pause.png +0 -0
  945. /package/{lib/shared/views/CometChatAudioBubble → src/shared/framework}/resources/play.png +0 -0
  946. /package/{lib → src}/shared/framework/resources/reply.png +0 -0
  947. /package/{lib → src}/shared/framework/resources/send_message.png +0 -0
  948. /package/{lib → src}/shared/framework/resources/share.png +0 -0
  949. /package/{lib → src}/shared/framework/resources/thread.png +0 -0
  950. /package/{lib → src}/shared/framework/resources/video_upload.png +0 -0
  951. /package/{lib → src}/shared/resources/CometChatSoundManager/resources/incomingcall.wav +0 -0
  952. /package/{lib → src}/shared/resources/CometChatSoundManager/resources/incomingmessage.wav +0 -0
  953. /package/{lib → src}/shared/resources/CometChatSoundManager/resources/incomingothermessage.wav +0 -0
  954. /package/{lib → src}/shared/resources/CometChatSoundManager/resources/outgoingcall.wav +0 -0
  955. /package/{lib → src}/shared/resources/CometChatSoundManager/resources/outgoingmessage.wav +0 -0
  956. /package/{lib → src}/shared/utils/CometChatLiveReactions/resources/heart.png +0 -0
  957. /package/{lib → src}/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
  958. /package/{lib → src}/shared/utils/DetailsUtils/resources/Back.png +0 -0
  959. /package/{lib → src}/shared/utils/DetailsUtils/resources/banIcon.png +0 -0
  960. /package/{lib → src}/shared/utils/DetailsUtils/resources/close.png +0 -0
  961. /package/{lib → src}/shared/utils/DetailsUtils/resources/kickIcon.png +0 -0
  962. /package/{lib → src}/shared/utils/DetailsUtils/resources/password.png +0 -0
  963. /package/{lib → src}/shared/utils/DetailsUtils/resources/private.png +0 -0
  964. /package/{lib → src}/shared/utils/DetailsUtils/resources/right-arrow.png +0 -0
  965. /package/{lib → src}/shared/views/CometChatActionSheet/resources/grid.png +0 -0
  966. /package/{lib → src}/shared/views/CometChatActionSheet/resources/list.png +0 -0
  967. /package/{lib/shared/views/CometChatVideoBubble → src/shared/views/CometChatAudioBubble}/resources/play.png +0 -0
  968. /package/{lib → src}/shared/views/CometChatAvatar/resources/default.jpg +0 -0
  969. /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/activity.png +0 -0
  970. /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/animals.png +0 -0
  971. /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/flags.png +0 -0
  972. /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/food.png +0 -0
  973. /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/objects.png +0 -0
  974. /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/smileys.png +0 -0
  975. /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/symbols.png +0 -0
  976. /package/{lib → src}/shared/views/CometChatEmojiKeyboard/resources/travel.png +0 -0
  977. /package/{lib → src}/shared/views/CometChatFileBubble/resources/download.png +0 -0
  978. /package/{lib → src}/shared/views/CometChatList/resources/Search.png +0 -0
  979. /package/{lib → src}/shared/views/CometChatList/resources/check.png +0 -0
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { CometChatTheme } from "../../../shared/resources/CometChatTheme";
3
- import { CometChat } from "@cometchat-pro/react-native-chat";
3
+ import { CometChat } from "@cometchat/chat-sdk-react-native";
4
4
  export interface CometChatStickerKeyboardInterface {
5
5
  loadingText?: string;
6
6
  theme?: CometChatTheme;
@@ -1,5 +1,5 @@
1
1
  import { StickerKeyboardStyle, StickerKeyboardStyleInterface } from "./StickerKeyboardStyle";
2
- import { CometChat } from "@cometchat-pro/react-native-chat";
2
+ import { CometChat } from "@cometchat/chat-sdk-react-native";
3
3
  /**
4
4
  * @class StickerKeyboardConfiguration
5
5
  * @description StickerKeyboardConfiguration class is used for defining the StickerKeyboard templates.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { CometChat } from "@cometchat-pro/react-native-chat";
2
+ import { CometChat } from "@cometchat/chat-sdk-react-native";
3
3
  import { ExtensionConstants, ExtensionURLs } from "../../ExtensionConstants";
4
4
  import { CometChatUIEventHandler } from "../../../shared/events/CometChatUIEventHandler/CometChatUIEventHandler";
5
5
  import { localize } from "../../../shared/resources/CometChatLocalize";
@@ -20,7 +20,7 @@ export declare const Styles: {
20
20
  };
21
21
  stickerListStyle: {
22
22
  flexWrap: "wrap";
23
- width: string;
23
+ width: "100%";
24
24
  padding: number;
25
25
  margin: number;
26
26
  justifyContent: "flex-start";
@@ -28,25 +28,25 @@ export declare const Styles: {
28
28
  flexDirection: "row";
29
29
  };
30
30
  stickerItemStyle: {
31
- width: string;
31
+ width: "20%";
32
32
  height: number;
33
33
  margin: number;
34
34
  padding: number;
35
35
  };
36
36
  stickerMsgStyle: {
37
37
  overflow: "hidden";
38
- width: string;
38
+ width: "100%";
39
39
  justifyContent: "center";
40
40
  alignItems: "center";
41
- top: string;
41
+ top: "45%";
42
42
  };
43
43
  stickerMsgTxtStyle: {
44
44
  margin: number;
45
45
  height: number;
46
46
  };
47
47
  stickerImageStyle: {
48
- width: string;
49
- height: string;
48
+ width: "100%";
49
+ height: "100%";
50
50
  };
51
51
  stickerCategoryImageStyle: {
52
52
  width: number;
@@ -1,7 +1,8 @@
1
1
  import { ExtensionsDataSource } from "../../shared/framework";
2
2
  import { StickerConfigurationInterface } from "./StickerConfiguration";
3
- export declare class StickersExtension implements ExtensionsDataSource {
3
+ export declare class StickersExtension extends ExtensionsDataSource {
4
4
  configuration?: StickerConfigurationInterface;
5
5
  constructor(stickerConfiguration?: StickerConfigurationInterface);
6
- enable(): void;
6
+ addExtension(): void;
7
+ getExtensionId(): string;
7
8
  }
@@ -1,16 +1,18 @@
1
- import { ChatConfigurator } from "../../shared/framework";
1
+ import { ChatConfigurator, ExtensionsDataSource } from "../../shared/framework";
2
+ import { ExtensionConstants } from "../ExtensionConstants";
2
3
  import { StickerConfiguration } from "./StickerConfiguration";
3
4
  import { StickersExtensionDecorator } from "./StickersExtensionDecorator";
4
- export class StickersExtension {
5
+ export class StickersExtension extends ExtensionsDataSource {
5
6
  //Configuration prop taken as optional field in constructor
6
7
  configuration;
7
8
  constructor(stickerConfiguration) {
9
+ super();
8
10
  this.configuration = new StickerConfiguration({
9
11
  ...stickerConfiguration
10
12
  });
11
13
  }
12
- //override enable method from ExtensionsDataSource interface
13
- enable() {
14
+ //override addExtension method from ExtensionsDataSource interface
15
+ addExtension() {
14
16
  ChatConfigurator.enable((dataSource) => {
15
17
  return new StickersExtensionDecorator({
16
18
  dataSource,
@@ -18,5 +20,9 @@ export class StickersExtension {
18
20
  });
19
21
  });
20
22
  }
23
+ //override getExtensionId method from ExtensionsDataSource interface
24
+ getExtensionId() {
25
+ return ExtensionConstants.stickers;
26
+ }
21
27
  }
22
28
  //# sourceMappingURL=StickersExtension.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StickersExtension.js","sourceRoot":"","sources":["../../../src/extensions/Stickers/StickersExtension.ts"],"names":[],"mappings":"AAAA,OAA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AU;gBACV,YAAY,EAAE,IAAI,CAAC,aAAa;aACjC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAED,oEAAoE;IAC3D,cAAc;QACrB,OAAO,kBAAkB,CAAC,QAAQ,CAAC;IACrC,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { CometChat } from "@cometchat-pro/react-native-chat";
2
+ import { CometChat } from "@cometchat/chat-sdk-react-native";
3
3
  import { CometChatMessageTemplate } from "../../shared/modals";
4
4
  import { DataSource, DataSourceDecorator } from "../../shared/framework";
5
5
  import { CometChatTheme } from "../../shared/resources/CometChatTheme";
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useRef, useState } from "react";
2
- import { CometChat } from "@cometchat-pro/react-native-chat";
2
+ import { CometChat } from "@cometchat/chat-sdk-react-native";
3
3
  import { CometChatMessageTemplate } from "../../shared/modals";
4
4
  import { localize } from "../../shared/resources";
5
5
  import { CometChatBottomSheet } from "../../shared/views";
@@ -1,6 +1,6 @@
1
1
  import { ExtensionsDataSource } from "../../shared/framework";
2
2
  import { TextModerationConfigurationInterface } from "./TextModerationConfiguration";
3
- export declare class TextModerationExtension implements ExtensionsDataSource {
3
+ export declare class TextModerationExtension extends ExtensionsDataSource {
4
4
  textModerationConfigurationInterface?: TextModerationConfigurationInterface;
5
5
  constructor(textModerationConfiguration?: TextModerationConfigurationInterface);
6
6
  /**
@@ -8,4 +8,6 @@ export declare class TextModerationExtension implements ExtensionsDataSource {
8
8
  * @description enables the Text moderation extension which includes Data profanity and data masking
9
9
  */
10
10
  enable(): void;
11
+ addExtension(): void;
12
+ getExtensionId(): string;
11
13
  }
@@ -1,8 +1,11 @@
1
- import { ChatConfigurator } from "../../shared/framework";
1
+ import { ExtensionsDataSource, ChatConfigurator } from "../../shared/framework";
2
2
  import { TextModerationExtensionDecorator } from "./TextModerationExtensionDecorator";
3
- export class TextModerationExtension {
3
+ import { ExtensionConstants } from "../ExtensionConstants";
4
+ import { CometChat } from "@cometchat/chat-sdk-react-native";
5
+ export class TextModerationExtension extends ExtensionsDataSource {
4
6
  textModerationConfigurationInterface;
5
7
  constructor(textModerationConfiguration) {
8
+ super();
6
9
  if (textModerationConfiguration != null) {
7
10
  this.textModerationConfigurationInterface = textModerationConfiguration;
8
11
  }
@@ -12,9 +15,23 @@ export class TextModerationExtension {
12
15
  * @description enables the Text moderation extension which includes Data profanity and data masking
13
16
  */
14
17
  enable() {
18
+ const promise1 = CometChat.isExtensionEnabled(ExtensionConstants.profanityFilter);
19
+ const promise2 = CometChat.isExtensionEnabled(ExtensionConstants.dataMasking);
20
+ Promise.all([promise1, promise2]).then((values) => {
21
+ if (values.includes(true)) {
22
+ this.addExtension();
23
+ }
24
+ });
25
+ }
26
+ //override addExtension method from ExtensionsDataSource interface
27
+ addExtension() {
15
28
  ChatConfigurator.enable((dataSource) => {
16
29
  return new TextModerationExtensionDecorator(dataSource, this.textModerationConfigurationInterface);
17
30
  });
18
31
  }
32
+ //override getExtensionId method from ExtensionsDataSource interface
33
+ getExtensionId() {
34
+ return ExtensionConstants.profanityFilter;
35
+ }
19
36
  }
20
37
  //# sourceMappingURL=TextModerationExtension.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextModerationExtension.js","sourceRoot":"","sources":["../../../src/extensions/TextModeration/TextModerationExtension.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,gBAAgB,EAAc,MAAM,wBAAwB,CAAC;AAC5F,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAKtF,MAAM,OAAO,uBAAuB;IAEhC,oCAAoC,CAAwC;IAE5E,YAAY,2BAAkE;QAC1E,IAAG,2BAA2B,IAAE,IAAI,EAAC;YACjC,IAAI,CAAC,oCAAoC,GAAG,2BAA2B,CAAC;SAC3E;IAEL,CAAC;IAGJ;;;MAGE;IACC,MAAM;QACF,gBAAgB,CAAC,MAAM,CAAC,CAAE,UAAuB,EAAE,EAAE;YACjD,OAAO,IAAI,gCAAgC,CAAC,UAAU,EAAG,IAAI,CAAC,oCAAoC,CAAC,CAAC;QACxG,CAAC,CAAG,CAAA;IACR,CAAC;CAIJ"}
1
+ {"version":3,"file":"TextModerationExtension.js","sourceRoot":"","sources":["../../../src/extensions/TextModeration/TextModerationExtension.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAc,MAAM,wBAAwB,CAAC;AAC5F,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAEtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAG7D,MAAM,OAAO,uBAAwB,SAAQ,oBAAoB;IAE7D,oCAAoC,CAAwC;IAE5E,YAAY,2BAAkE;QAC5E,KAAK,EAAE,CAAC;QACN,IAAG,2BAA2B,IAAE,IAAI,EAAC;YACjC,IAAI,CAAC,oCAAoC,GAAG,2BAA2B,CAAC;SAC3E;IAEL,CAAC;IAGJ;;;MAGE;IACC,MAAM;QACF,MAAM,QAAQ,GAAG,SAAS,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;QAClF,MAAM,QAAQ,GAAG,SAAS,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;QAC9E,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;YAChD,IAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EACxB;gBACE,IAAI,CAAC,YAAY,EAAE,CAAC;aACrB;QACH,CAAC,CAAC,CAAC;IACP,CAAC;IAED,kEAAkE;IACzD,YAAY;QACjB,gBAAgB,CAAC,MAAM,CAAC,CAAE,UAAuB,EAAE,EAAE;YACjD,OAAO,IAAI,gCAAgC,CAAC,UAAU,EAAG,IAAI,CAAC,oCAAoC,CAAC,CAAC;QACxG,CAAC,CAAG,CAAA;IACR,CAAC;IAED,oEAAoE;IAC3D,cAAc;QACrB,OAAO,kBAAkB,CAAC,eAAe,CAAC;IAC5C,CAAC;CAIJ"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { DataSource, DataSourceDecorator } from "../../shared/framework";
3
- import { CometChat } from "@cometchat-pro/react-native-chat";
3
+ import { CometChat } from "@cometchat/chat-sdk-react-native";
4
4
  import { MessageBubbleAlignmentType } from "../../shared/constants/UIKitConstants";
5
5
  import { CometChatTheme } from "../../shared/resources/CometChatTheme";
6
6
  import { TextModerationConfigurationInterface } from "./TextModerationConfiguration";
@@ -1,5 +1,5 @@
1
1
  import { DataSource, DataSourceDecorator } from '../../shared/framework';
2
- import { CometChat } from '@cometchat-pro/react-native-chat';
2
+ import { CometChat } from '@cometchat/chat-sdk-react-native';
3
3
  import { ImageBubbleStyleInterface, VideoBubbleStyleInterface } from '../../shared/views';
4
4
  import React from 'react';
5
5
  import { CometChatTheme } from '../../shared/resources/CometChatTheme';
@@ -3,12 +3,13 @@ import { VideoBubbleStyleInterface } from '../../shared';
3
3
  export interface ThumbnailGenerationConfigurationInterface {
4
4
  videoBubbleStyle: VideoBubbleStyleInterface;
5
5
  }
6
- export declare class ThumbnailGenerationExtension implements ExtensionsDataSource {
6
+ export declare class ThumbnailGenerationExtension extends ExtensionsDataSource {
7
7
  ThumbnailGenerationConfigurationInterface?: ThumbnailGenerationConfigurationInterface;
8
8
  constructor(ThumbnailGenerationConfigurationConfiguration?: ThumbnailGenerationConfigurationInterface);
9
9
  /**
10
10
  * enable
11
11
  * @description enables the Text moderation extension which includes Data profanity and data masking
12
12
  */
13
- enable(): void;
13
+ addExtension(): void;
14
+ getExtensionId(): string;
14
15
  }
@@ -1,8 +1,10 @@
1
- import { ChatConfigurator, } from '../../shared/framework';
1
+ import { ExtensionsDataSource, ChatConfigurator, } from '../../shared/framework';
2
2
  import { ThumbnailGenerationExtensionDecorator } from './ThumbnailGenerationDecorator';
3
- export class ThumbnailGenerationExtension {
3
+ import { ExtensionConstants } from '../ExtensionConstants';
4
+ export class ThumbnailGenerationExtension extends ExtensionsDataSource {
4
5
  ThumbnailGenerationConfigurationInterface;
5
6
  constructor(ThumbnailGenerationConfigurationConfiguration) {
7
+ super();
6
8
  if (ThumbnailGenerationConfigurationConfiguration != null) {
7
9
  this.ThumbnailGenerationConfigurationInterface =
8
10
  ThumbnailGenerationConfigurationConfiguration;
@@ -12,10 +14,15 @@ export class ThumbnailGenerationExtension {
12
14
  * enable
13
15
  * @description enables the Text moderation extension which includes Data profanity and data masking
14
16
  */
15
- enable() {
17
+ //override addExtension method from ExtensionsDataSource interface
18
+ addExtension() {
16
19
  ChatConfigurator.enable((dataSource) => {
17
20
  return new ThumbnailGenerationExtensionDecorator(dataSource, this.ThumbnailGenerationConfigurationInterface);
18
21
  });
19
22
  }
23
+ //override getExtensionId method from ExtensionsDataSource interface
24
+ getExtensionId() {
25
+ return ExtensionConstants.thumbnailGeneration;
26
+ }
20
27
  }
21
28
  //# sourceMappingURL=ThumbnailGenerationExtension.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThumbnailGenerationExtension.js","sourceRoot":"","sources":["../../../src/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,GAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,qCAAqC,EAAE,MAAM,gCAAgC,CAAC;AAMvF,MAAM,OAAO,4BAA4B;IACvC,yCAAyC,CAA6C;IAEtF,YACE,6CAAyF;QAEzF,IAAI,6CAA6C,IAAI,IAAI,EAAE;YACzD,IAAI,CAAC,yCAAyC;gBAC5C,6CAA6C,CAAC;SACjD;IACH,CAAC;IAED;;;OAGG;IACH,MAAM;QACJ,gBAAgB,CAAC,MAAM,CAAC,CAAC,UAAsB,EAAE,EAAE;YACjD,OAAO,IAAI,qCAAqC,CAC9C,UAAU,EACV,IAAI,CAAC,yCAAyC,CAC/C,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"ThumbnailGenerationExtension.js","sourceRoot":"","sources":["../../../src/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,gBAAgB,GAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,qCAAqC,EAAE,MAAM,gCAAgC,CAAC;AAGvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI3D,MAAM,OAAO,4BAA6B,SAAQ,oBAAoB;IACpE,yCAAyC,CAA6C;IAEtF,YACE,6CAAyF;QAEzF,KAAK,EAAE,CAAC;QACR,IAAI,6CAA6C,IAAI,IAAI,EAAE;YACzD,IAAI,CAAC,yCAAyC;gBAC5C,6CAA6C,CAAC;SACjD;IACH,CAAC;IAED;;;OAGG;IAEH,kEAAkE;IACzD,YAAY;QACnB,gBAAgB,CAAC,MAAM,CAAC,CAAC,UAAsB,EAAE,EAAE;YACjD,OAAO,IAAI,qCAAqC,CAC9C,UAAU,EACV,IAAI,CAAC,yCAAyC,CAC/C,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAED,oEAAoE;IAC3D,cAAc;QACrB,OAAO,kBAAkB,CAAC,mBAAmB,CAAC;IAChD,CAAC;CACF"}
package/lib/index.d.ts CHANGED
@@ -1,15 +1,17 @@
1
- import { BaseStyleInterface, BorderStyleInterface, FontStyleInterface, ShadowStyleInterface, ImageType, CometChatOptions, CometChatMessageOption, CometChatMessageTemplate, CometChatDetailsTemplate, CometChatDetailsOption, CometChatMessageComposerActionInterface, CometChatTabAlignment, ConversationType, DatePattern, CometChatUiKitConstants, CometChatConversationUtils, getDefaultDetailsTemplate, CometChatLiveReactions, messageStatus, CometChatLocalize, localize, CometChatSoundManager, CometChatTheme, Palette, Typography, ListItemConfiguration, CometChatListItem, CometChatListItemInterface, ListItemStyleInterface, CometChatAvatar, CometChatBadge, CometChatStatusIndicator, CometChatReceipt, CometChatDate, AudioBubbleStyleInterface, CometChatAudioBubble, CometChatAudioBubbleInterface, CometChatFileBubble, CometChatFileBubbleInterface, FileBubbleStyleInterface, CometChatVideoBubble, CometChatVideoBubbleInterface, VideoBubbleStyleInterface, CometChatTextBubble, CometChatTextBubbleInterface, TextBubbleStyleInterface, CometChatImageBubble, CometChatImageBubbleInterface, ImageBubbleStyleInterface, CometChatActionSheet, ActionItem, CometChatBottomSheet, CometChatConfirmDialog, CometChatMessagePreview, MessagePreviewConfiguration, AvatarStyleInterface, CometChatListActionsInterface, CometChatListStylesInterface, CometChatConfirmDialogInterface, CometChatConfirmDialogStyleInterface, MessageReceipt, CometChatUIEventHandler, CometChatConversationEvents, CometChatGroupsEvents, CometChatUIEvents, MessageEvents, ChatConfigurator, DataSource, MessageDataSource, DataSourceDecorator, ExtensionsDataSource, CometChatUIKit, CometChatUIKitHelper, UIKitSettings, CometChatContext, CometChatContextType, CometChatContextProvider, ActionItemInterface, ActionSheetStylesInterface, AvatarConfigurationInterface, BadgeConfigurationInterface, BadgeStyleInterface, CometChatBottomSheetInterface, CometChatDateInterface, CometChatMessageInputInterface, CometChatMessageInputStyleInterface, CometChatReceiptInterface, CometChatStatusIndicatorInterface, DateConfigurationInterface, DateStyleInterface, ReceiptConfigurationInterface, StatusIndicatorConfigurationInterface, StatusIndicatorStyleInterface } from './shared';
1
+ import { BaseStyleInterface, BorderStyleInterface, FontStyleInterface, ShadowStyleInterface, ImageType, CometChatOptions, CometChatMessageOption, CometChatMessageTemplate, CometChatDetailsTemplate, CometChatDetailsOption, CometChatMessageComposerActionInterface, CometChatTabAlignment, ConversationType, DatePattern, CometChatUiKitConstants, CometChatConversationUtils, getDefaultDetailsTemplate, CometChatLiveReactions, messageStatus, CometChatLocalize, localize, CometChatSoundManager, CometChatTheme, Palette, Typography, ListItemConfiguration, CometChatListItem, CometChatListItemInterface, ListItemStyleInterface, CometChatAvatar, CometChatBadge, CometChatStatusIndicator, CometChatReceipt, CometChatDate, AudioBubbleStyleInterface, CometChatAudioBubble, CometChatAudioBubbleInterface, CometChatFileBubble, CometChatFileBubbleInterface, FileBubbleStyleInterface, CometChatVideoBubble, CometChatVideoBubbleInterface, VideoBubbleStyleInterface, CometChatTextBubble, CometChatTextBubbleInterface, TextBubbleStyleInterface, CometChatImageBubble, CometChatImageBubbleInterface, ImageBubbleStyleInterface, CometChatActionSheet, ActionItem, CometChatBottomSheet, CometChatConfirmDialog, CometChatMessagePreview, MessagePreviewConfiguration, AvatarStyleInterface, CometChatListActionsInterface, CometChatListStylesInterface, CometChatConfirmDialogInterface, CometChatConfirmDialogStyleInterface, MessageReceipt, CometChatUIEventHandler, CometChatConversationEvents, CometChatGroupsEvents, CometChatUIEvents, MessageEvents, ChatConfigurator, DataSource, MessageDataSource, DataSourceDecorator, ExtensionsDataSource, CometChatUIKit, CometChatUIKitHelper, UIKitSettings, CometChatContext, CometChatContextType, CometChatContextProvider, ActionItemInterface, ActionSheetStylesInterface, AvatarConfigurationInterface, BadgeConfigurationInterface, BadgeStyleInterface, CometChatBottomSheetInterface, CometChatDateInterface, CometChatMessageInputInterface, CometChatMessageInputStyleInterface, CometChatReceiptInterface, CometChatStatusIndicatorInterface, DateConfigurationInterface, DateStyleInterface, ReceiptConfigurationInterface, StatusIndicatorConfigurationInterface, StatusIndicatorStyleInterface, CometChatMediaRecorder, CometChatMediaRecorderInterface, MediaRecorderStyleInterface, MediaRecorderStyle } from './shared';
2
2
  import { CometChatUsers, CometChatUsersActionsInterface, CometChatUsersInterface, UsersConfigurationInterface } from './CometChatUsers';
3
3
  import { CometChatGroups, GroupsConfigurationInterface, GroupsStyleInterface, CometChatGroupsInterface } from './CometChatGroups';
4
4
  import { CometChatConversations, ConversationInterface, ConversationsConfigurationInterface, ConversationsStyleInterface } from './CometChatConversations';
5
5
  import { CometChatGroupsMembers, CometChatGroupsMembersInterface, GroupMemberConfigurationInterface, GroupMembersStyleInterface, GroupScopeStyleInterface } from './CometChatGroupMembers';
6
6
  import { CometChatBannedMembers, BannedMembersConfigurationInterface, CometChatBannedMembersInterface } from './CometChatBannedMembers';
7
+ import { CometChatContacts, CometChatContactsInterface, ContactsStyleInterface, StartConversationConfigurationInterface } from './CometChatContacts';
7
8
  import { CometChatAddMembers, AddMembersConfigurationInterface, CometChatAddMembersInterface } from './CometChatAddMembers';
8
9
  import { CometChatTransferOwnership, CometChatTransferOwnershipInterface, TransferOwnershipConfigurationInterface } from "./CometChatTransferOwnership";
9
10
  import { CreateGroupStyleInterface, CometChatCreateGroup, CometChatCreateGroupInterface, CreateGroupConfigurationInterface } from "./CometChatCreateGroup";
10
11
  import { CometChatJoinProtectedGroup, CometChatJoinProtectedGroupInterface, JoinProtectedGroupConfigurationInterface, JoinProtectedGroupStyleInterface } from "./CometChatJoinProtectedGroup";
11
12
  import { CometChatDetails, CometChatDetailsInterface, DetailsConfigurationInterface, DetailsStyleInterface, ModalDetailsInterface, ModalDetailsStyleInterface } from './CometChatDetails';
12
13
  import { CometChatMessageHeader, CometChatMessageHeaderInterface, MessageHeaderConfigurationInterface, MessageHeaderStyleInterface } from './CometChatMessageHeader';
14
+ import { CometChatMessageInformation, CometChatMessageInformationInterface, MessageInformationConfigurationInterface, MessageInformationStyleInterface } from './CometChatMessageInformation';
13
15
  import { CometChatMessageList, CometChatMessageListActionsInterface, CometChatMessageListProps, MessageListStyleInterface, MessageListConfigurationInterface } from './CometChatMessageList';
14
16
  import { CometChatMessageComposer, CometChatMessageComposerInterface, MessageComposerConfigurationInterface, MessageComposerStyleInterface } from './CometChatMessageComposer';
15
17
  import { CometChatMessages, CometChatMessagesInterface, MessageStyleInterface, MessagesConfiguration, MessagesConfigurationInterface } from "./CometChatMessages";
@@ -21,4 +23,4 @@ import { CometChatCallButtons, CallButtonStyleInterface, CallUIEvents, CallingEx
21
23
  import { ExtensionConstants, CollaborativeDocumentExtension, CollaborativeDocumentConfigurationInterface, CometChatCollaborativeDocumentBubble, CollaborativeWhiteboardConfigurationInterface, CollaborativeWhiteboardExtension, CometChatCollaborativeWhiteBoardBubble, ImageModerationConfigurationInterface, ImageModerationExtension, ImageModerationFilterInterface, TextModerationExtensionDecorator, TextModerationExtension, TextModerationConfigurationInterface, LinkPreviewConfigurationInterface, LinkPreviewExtention, LinkPreviewBubble, LinkPreviewBubbleInterface, LinkPreviewBubbleStyleInterface, MessageTranslationBubble, MessageTranslationExtension, MessageTranslationConfigurationInterface, CometChatCreatePoll, CometChatCreatePollInterface, PollsConfigurationInterface, PollsExtension, PollsStyleInterface, CometChatMessageReactions, ReactionsExtension, ReactionsConfigurationInterface, SmartRepliesExtension, SmartRepliesConfigurationInterface, SmartRepliesInterface, SmartRepliesView, CometChatStickerBubble, StickerConfigurationInterface, StickersExtension, CometChatStickerBubbleInterface, ThumbnailGenerationConfigurationInterface, ThumbnailGenerationExtension } from "./extensions";
22
24
  import { CometChatTabs, CometChatTabsInterface, TabItemStyleInterface, TabItem } from "./CometChatTabs";
23
25
  import { CometChatMessageListProps as CometChatMessageListInterface } from "./CometChatMessageList";
24
- export { CometChatUIEventHandler, CometChatContextProvider, ThumbnailGenerationConfigurationInterface, ThumbnailGenerationExtension, PollsStyleInterface, LinkPreviewBubble, LinkPreviewBubbleInterface, LinkPreviewBubbleStyleInterface, ReactionsConfigurationInterface, TextModerationExtensionDecorator, TextModerationExtension, TextModerationConfigurationInterface, SmartRepliesConfigurationInterface, CometChatJoinProtectedGroup, CometChatJoinProtectedGroupInterface, JoinProtectedGroupConfigurationInterface, JoinProtectedGroupStyleInterface, CometChatMessageListInterface, CometChatTabs, CometChatTabsInterface, TabItemStyleInterface, TabItem, CometChatThreadedMessages, CometChatThreadedMessagesInterface, ThreadedMessagesConfigurationInterface, ThreadedMessagesStyleInterface, CometChatTransferOwnership, CometChatTransferOwnershipInterface, TransferOwnershipConfigurationInterface, ExtensionConstants, CollaborativeDocumentExtension, CollaborativeDocumentConfigurationInterface, CometChatCollaborativeDocumentBubble, CollaborativeWhiteboardConfigurationInterface, CollaborativeWhiteboardExtension, CometChatCollaborativeWhiteBoardBubble, ImageModerationConfigurationInterface, ImageModerationExtension, ImageModerationFilterInterface, LinkPreviewConfigurationInterface, LinkPreviewExtention, MessageTranslationBubble, MessageTranslationExtension, MessageTranslationConfigurationInterface, CometChatCreatePoll, CometChatCreatePollInterface, PollsConfigurationInterface, PollsExtension, CometChatMessageReactions, ReactionsExtension, SmartRepliesExtension, SmartRepliesInterface, SmartRepliesView, CometChatStickerBubble, StickerConfigurationInterface, StickersExtension, CometChatStickerBubbleInterface, CometChatTheme, Palette, Typography, CometChatConversationEvents, CometChatGroupsEvents, CometChatUIEvents, MessageEvents, CometChatCallButtons, CallButtonStyleInterface, CallUIEvents, CallingExtension, CallingPackage, CometChatCallButtonConfigurationInterface, CometChatCallButtonsInterface, CometChatMessagesInterface, MessageStyleInterface, MessagesConfiguration, MessagesConfigurationInterface, MessageListConfigurationInterface, CometChatGroupsInterface, ConversationsConfigurationInterface, ConversationsStyleInterface, GroupMemberConfigurationInterface, GroupMembersStyleInterface, GroupScopeStyleInterface, CometChatMessageHeaderInterface, MessageHeaderConfigurationInterface, MessageHeaderStyleInterface, CometChatMessageComposerInterface, MessageComposerConfigurationInterface, MessageComposerStyleInterface, CometChatDetailsInterface, DetailsConfigurationInterface, DetailsStyleInterface, ModalDetailsInterface, ModalDetailsStyleInterface, CometChatUsersActionsInterface, CometChatUsersInterface, UsersConfigurationInterface, BannedMembersConfigurationInterface, CometChatBannedMembersInterface, AddMembersConfigurationInterface, CometChatAddMembersInterface, CometChatContextType, CometChatTabAlignment, ConversationType, DataSourceDecorator, DatePattern, ExtensionsDataSource, MessageReceipt, CometChatUIKit, CometChatUIKitHelper, UIKitSettings, CometChatConfirmDialogInterface, CometChatConfirmDialogStyleInterface, CometChatGroupsWithMessages, CometChatGroupsWithMessagesInterface, CometChatUsersWithMessages, CometChatUsersWithMessagesInterface, CometChatConversationsWithMessages, CometChatConversationsWithMessagesInterface, CometChatContext, CometChatMessages, ListItemConfiguration, CometChatMessageList, CometChatMessageListActionsInterface, CometChatMessageListProps, MessageListStyleInterface, CometChatGroups, GroupsConfigurationInterface, GroupsStyleInterface, CometChatConversations, ConversationInterface, CometChatGroupsMembers, CometChatGroupsMembersInterface, CometChatMessageHeader, CometChatMessageComposer, CometChatDetails, CometChatUsers, CometChatAddMembers, CometChatBannedMembers, BaseStyleInterface, BorderStyleInterface, FontStyleInterface, ShadowStyleInterface, ImageType, ChatConfigurator, DataSource, MessageDataSource, CometChatOptions, CometChatMessageOption, CometChatMessageTemplate, CometChatDetailsTemplate, CometChatDetailsOption, CometChatLocalize, localize, CometChatConversationUtils, getDefaultDetailsTemplate, CometChatLiveReactions, CometChatListItem, CometChatListItemInterface, ListItemStyleInterface, CometChatAvatar, CometChatBadge, CometChatStatusIndicator, CometChatReceipt, CometChatDate, AudioBubbleStyleInterface, CometChatAudioBubble, CometChatAudioBubbleInterface, CometChatFileBubble, CometChatFileBubbleInterface, FileBubbleStyleInterface, CometChatVideoBubble, CometChatVideoBubbleInterface, VideoBubbleStyleInterface, CometChatTextBubble, CometChatTextBubbleInterface, TextBubbleStyleInterface, CometChatImageBubble, CometChatImageBubbleInterface, ImageBubbleStyleInterface, AvatarStyleInterface, CometChatActionSheet, ActionItem, CometChatBottomSheet, CometChatConfirmDialog, CometChatMessagePreview, MessagePreviewConfiguration, CometChatSoundManager, CometChatListActionsInterface, CometChatListStylesInterface, CometChatMessageComposerActionInterface, CometChatUiKitConstants, messageStatus, ActionItemInterface, ActionSheetStylesInterface, AvatarConfigurationInterface, BadgeConfigurationInterface, BadgeStyleInterface, CometChatBottomSheetInterface, CometChatDateInterface, CometChatMessageInputInterface, CometChatMessageInputStyleInterface, CometChatReceiptInterface, CometChatStatusIndicatorInterface, DateConfigurationInterface, DateStyleInterface, ReceiptConfigurationInterface, StatusIndicatorConfigurationInterface, StatusIndicatorStyleInterface, CreateGroupStyleInterface, CometChatCreateGroup, CometChatCreateGroupInterface, CreateGroupConfigurationInterface, CometChatIncomingCall, CometChatOngoingCall, CometChatOutgoingCall, CometChatCallBubble, CallingExtensionDecorator, };
26
+ export { CometChatUIEventHandler, CometChatContextProvider, ThumbnailGenerationConfigurationInterface, ThumbnailGenerationExtension, PollsStyleInterface, LinkPreviewBubble, LinkPreviewBubbleInterface, LinkPreviewBubbleStyleInterface, ReactionsConfigurationInterface, TextModerationExtensionDecorator, TextModerationExtension, TextModerationConfigurationInterface, SmartRepliesConfigurationInterface, CometChatJoinProtectedGroup, CometChatJoinProtectedGroupInterface, JoinProtectedGroupConfigurationInterface, JoinProtectedGroupStyleInterface, CometChatMessageListInterface, CometChatTabs, CometChatTabsInterface, TabItemStyleInterface, TabItem, CometChatThreadedMessages, CometChatThreadedMessagesInterface, ThreadedMessagesConfigurationInterface, ThreadedMessagesStyleInterface, CometChatTransferOwnership, CometChatTransferOwnershipInterface, TransferOwnershipConfigurationInterface, ExtensionConstants, CollaborativeDocumentExtension, CollaborativeDocumentConfigurationInterface, CometChatCollaborativeDocumentBubble, CollaborativeWhiteboardConfigurationInterface, CollaborativeWhiteboardExtension, CometChatCollaborativeWhiteBoardBubble, ImageModerationConfigurationInterface, ImageModerationExtension, ImageModerationFilterInterface, LinkPreviewConfigurationInterface, LinkPreviewExtention, MessageTranslationBubble, MessageTranslationExtension, MessageTranslationConfigurationInterface, CometChatCreatePoll, CometChatCreatePollInterface, PollsConfigurationInterface, PollsExtension, CometChatMessageReactions, ReactionsExtension, SmartRepliesExtension, SmartRepliesInterface, SmartRepliesView, CometChatStickerBubble, StickerConfigurationInterface, StickersExtension, CometChatStickerBubbleInterface, CometChatTheme, Palette, Typography, CometChatConversationEvents, CometChatGroupsEvents, CometChatUIEvents, MessageEvents, CometChatCallButtons, CallButtonStyleInterface, CallUIEvents, CallingExtension, CallingPackage, CometChatCallButtonConfigurationInterface, CometChatCallButtonsInterface, CometChatMessagesInterface, MessageStyleInterface, MessagesConfiguration, MessagesConfigurationInterface, MessageListConfigurationInterface, CometChatGroupsInterface, ConversationsConfigurationInterface, ConversationsStyleInterface, GroupMemberConfigurationInterface, GroupMembersStyleInterface, GroupScopeStyleInterface, CometChatMessageHeaderInterface, MessageHeaderConfigurationInterface, MessageHeaderStyleInterface, CometChatMessageComposerInterface, MessageComposerConfigurationInterface, MessageComposerStyleInterface, CometChatDetailsInterface, DetailsConfigurationInterface, DetailsStyleInterface, ModalDetailsInterface, ModalDetailsStyleInterface, CometChatUsersActionsInterface, CometChatUsersInterface, UsersConfigurationInterface, BannedMembersConfigurationInterface, CometChatBannedMembersInterface, AddMembersConfigurationInterface, CometChatAddMembersInterface, CometChatContextType, CometChatTabAlignment, ConversationType, DataSourceDecorator, DatePattern, ExtensionsDataSource, MessageReceipt, CometChatUIKit, CometChatUIKitHelper, UIKitSettings, CometChatConfirmDialogInterface, CometChatConfirmDialogStyleInterface, CometChatGroupsWithMessages, CometChatGroupsWithMessagesInterface, CometChatUsersWithMessages, CometChatUsersWithMessagesInterface, CometChatConversationsWithMessages, CometChatConversationsWithMessagesInterface, CometChatContext, CometChatMessages, ListItemConfiguration, CometChatMessageList, CometChatMessageListActionsInterface, CometChatMessageListProps, MessageListStyleInterface, CometChatGroups, GroupsConfigurationInterface, GroupsStyleInterface, CometChatConversations, ConversationInterface, CometChatGroupsMembers, CometChatGroupsMembersInterface, CometChatMessageHeader, CometChatMessageComposer, CometChatDetails, CometChatUsers, CometChatAddMembers, CometChatBannedMembers, BaseStyleInterface, BorderStyleInterface, FontStyleInterface, ShadowStyleInterface, ImageType, ChatConfigurator, DataSource, MessageDataSource, CometChatOptions, CometChatMessageOption, CometChatMessageTemplate, CometChatDetailsTemplate, CometChatDetailsOption, CometChatLocalize, localize, CometChatConversationUtils, getDefaultDetailsTemplate, CometChatLiveReactions, CometChatListItem, CometChatListItemInterface, ListItemStyleInterface, CometChatAvatar, CometChatBadge, CometChatStatusIndicator, CometChatReceipt, CometChatDate, AudioBubbleStyleInterface, CometChatAudioBubble, CometChatAudioBubbleInterface, CometChatFileBubble, CometChatFileBubbleInterface, FileBubbleStyleInterface, CometChatVideoBubble, CometChatVideoBubbleInterface, VideoBubbleStyleInterface, CometChatTextBubble, CometChatTextBubbleInterface, TextBubbleStyleInterface, CometChatImageBubble, CometChatImageBubbleInterface, ImageBubbleStyleInterface, AvatarStyleInterface, CometChatActionSheet, ActionItem, CometChatBottomSheet, CometChatMediaRecorder, CometChatMediaRecorderInterface, MediaRecorderStyleInterface, MediaRecorderStyle, CometChatConfirmDialog, CometChatMessagePreview, MessagePreviewConfiguration, CometChatSoundManager, CometChatListActionsInterface, CometChatListStylesInterface, CometChatMessageComposerActionInterface, CometChatUiKitConstants, messageStatus, ActionItemInterface, ActionSheetStylesInterface, AvatarConfigurationInterface, BadgeConfigurationInterface, BadgeStyleInterface, CometChatBottomSheetInterface, CometChatDateInterface, CometChatMessageInputInterface, CometChatMessageInputStyleInterface, CometChatReceiptInterface, CometChatStatusIndicatorInterface, DateConfigurationInterface, DateStyleInterface, ReceiptConfigurationInterface, StatusIndicatorConfigurationInterface, StatusIndicatorStyleInterface, CreateGroupStyleInterface, CometChatCreateGroup, CometChatCreateGroupInterface, CreateGroupConfigurationInterface, CometChatIncomingCall, CometChatOngoingCall, CometChatOutgoingCall, CometChatCallBubble, CallingExtensionDecorator, CometChatContacts, CometChatContactsInterface, ContactsStyleInterface, StartConversationConfigurationInterface, CometChatMessageInformation, CometChatMessageInformationInterface, MessageInformationConfigurationInterface, MessageInformationStyleInterface };
package/lib/index.js CHANGED
@@ -9,11 +9,11 @@ ListItemConfiguration, CometChatListItem, CometChatAvatar, CometChatBadge, Comet
9
9
  CometChatUIEventHandler, CometChatConversationEvents, CometChatGroupsEvents, CometChatUIEvents, MessageEvents,
10
10
  //Add Call events here already exposed in Calls
11
11
  //Framework
12
- ChatConfigurator, MessageDataSource, DataSourceDecorator,
12
+ ChatConfigurator, MessageDataSource, DataSourceDecorator, ExtensionsDataSource,
13
13
  //CometChatUIKit
14
14
  CometChatUIKit, CometChatUIKitHelper, UIKitSettings,
15
15
  //Context
16
- CometChatContext, CometChatContextProvider,
16
+ CometChatContext, CometChatContextProvider, CometChatMediaRecorder, MediaRecorderStyle
17
17
  //
18
18
  } from './shared';
19
19
  import { CometChatUsers, } from './CometChatUsers';
@@ -21,12 +21,14 @@ import { CometChatGroups, } from './CometChatGroups';
21
21
  import { CometChatConversations, } from './CometChatConversations';
22
22
  import { CometChatGroupsMembers } from './CometChatGroupMembers';
23
23
  import { CometChatBannedMembers } from './CometChatBannedMembers';
24
+ import { CometChatContacts } from './CometChatContacts';
24
25
  import { CometChatAddMembers } from './CometChatAddMembers';
25
26
  import { CometChatTransferOwnership, } from "./CometChatTransferOwnership";
26
27
  import { CometChatCreateGroup, } from "./CometChatCreateGroup";
27
28
  import { CometChatJoinProtectedGroup } from "./CometChatJoinProtectedGroup";
28
29
  import { CometChatDetails, } from './CometChatDetails';
29
30
  import { CometChatMessageHeader, } from './CometChatMessageHeader';
31
+ import { CometChatMessageInformation } from './CometChatMessageInformation';
30
32
  import { CometChatMessageList } from './CometChatMessageList';
31
33
  import { CometChatMessageComposer, } from './CometChatMessageComposer';
32
34
  import { CometChatMessages, MessagesConfiguration } from "./CometChatMessages";
@@ -37,7 +39,7 @@ import { CometChatConversationsWithMessages, } from "./CometChatConversationsWit
37
39
  import { CometChatCallButtons, CallUIEvents, CallingExtension, CallingPackage, CometChatIncomingCall, CometChatOngoingCall, CometChatOutgoingCall, CometChatCallBubble, CallingExtensionDecorator, } from "./calls";
38
40
  import { ExtensionConstants, CollaborativeDocumentExtension, CometChatCollaborativeDocumentBubble, CollaborativeWhiteboardExtension, CometChatCollaborativeWhiteBoardBubble, ImageModerationExtension, TextModerationExtensionDecorator, TextModerationExtension, LinkPreviewExtention, LinkPreviewBubble, MessageTranslationBubble, MessageTranslationExtension, CometChatCreatePoll, PollsExtension, CometChatMessageReactions, ReactionsExtension, SmartRepliesExtension, SmartRepliesView, CometChatStickerBubble, StickersExtension, ThumbnailGenerationExtension, } from "./extensions";
39
41
  import { CometChatTabs } from "./CometChatTabs";
40
- export { CometChatUIEventHandler, CometChatContextProvider, ThumbnailGenerationExtension, LinkPreviewBubble, TextModerationExtensionDecorator, TextModerationExtension, CometChatJoinProtectedGroup, CometChatTabs, CometChatThreadedMessages, CometChatTransferOwnership, ExtensionConstants, CollaborativeDocumentExtension, CometChatCollaborativeDocumentBubble, CollaborativeWhiteboardExtension, CometChatCollaborativeWhiteBoardBubble, ImageModerationExtension, LinkPreviewExtention, MessageTranslationBubble, MessageTranslationExtension, CometChatCreatePoll, PollsExtension, CometChatMessageReactions, ReactionsExtension, SmartRepliesExtension, SmartRepliesView, CometChatStickerBubble, StickersExtension, CometChatTheme, Palette, Typography, CometChatConversationEvents, CometChatGroupsEvents, CometChatUIEvents, MessageEvents, CometChatCallButtons, CallUIEvents, CallingExtension, CallingPackage, MessagesConfiguration, DataSourceDecorator, CometChatUIKit, CometChatUIKitHelper, UIKitSettings, CometChatGroupsWithMessages, CometChatUsersWithMessages, CometChatConversationsWithMessages, CometChatContext, CometChatMessages, ListItemConfiguration, CometChatMessageList, CometChatGroups, CometChatConversations, CometChatGroupsMembers, CometChatMessageHeader, CometChatMessageComposer, CometChatDetails, CometChatUsers, CometChatAddMembers, CometChatBannedMembers,
42
+ export { CometChatUIEventHandler, CometChatContextProvider, ThumbnailGenerationExtension, LinkPreviewBubble, TextModerationExtensionDecorator, TextModerationExtension, CometChatJoinProtectedGroup, CometChatTabs, CometChatThreadedMessages, CometChatTransferOwnership, ExtensionConstants, CollaborativeDocumentExtension, CometChatCollaborativeDocumentBubble, CollaborativeWhiteboardExtension, CometChatCollaborativeWhiteBoardBubble, ImageModerationExtension, LinkPreviewExtention, MessageTranslationBubble, MessageTranslationExtension, CometChatCreatePoll, PollsExtension, CometChatMessageReactions, ReactionsExtension, SmartRepliesExtension, SmartRepliesView, CometChatStickerBubble, StickersExtension, CometChatTheme, Palette, Typography, CometChatConversationEvents, CometChatGroupsEvents, CometChatUIEvents, MessageEvents, CometChatCallButtons, CallUIEvents, CallingExtension, CallingPackage, MessagesConfiguration, DataSourceDecorator, ExtensionsDataSource, CometChatUIKit, CometChatUIKitHelper, UIKitSettings, CometChatGroupsWithMessages, CometChatUsersWithMessages, CometChatConversationsWithMessages, CometChatContext, CometChatMessages, ListItemConfiguration, CometChatMessageList, CometChatGroups, CometChatConversations, CometChatGroupsMembers, CometChatMessageHeader, CometChatMessageComposer, CometChatDetails, CometChatUsers, CometChatAddMembers, CometChatBannedMembers,
41
43
  //
42
44
  ChatConfigurator, MessageDataSource, CometChatMessageTemplate,
43
45
  //
@@ -47,5 +49,5 @@ CometChatConversationUtils, getDefaultDetailsTemplate, CometChatLiveReactions,
47
49
  //
48
50
  CometChatListItem, CometChatAvatar, CometChatBadge, CometChatStatusIndicator, CometChatReceipt, CometChatDate, CometChatAudioBubble, CometChatFileBubble, CometChatVideoBubble, CometChatTextBubble, CometChatImageBubble,
49
51
  //
50
- CometChatActionSheet, ActionItem, CometChatBottomSheet, CometChatConfirmDialog, CometChatMessagePreview, MessagePreviewConfiguration, CometChatSoundManager, CometChatUiKitConstants, messageStatus, CometChatCreateGroup, CometChatIncomingCall, CometChatOngoingCall, CometChatOutgoingCall, CometChatCallBubble, CallingExtensionDecorator, };
52
+ CometChatActionSheet, ActionItem, CometChatBottomSheet, CometChatMediaRecorder, MediaRecorderStyle, CometChatConfirmDialog, CometChatMessagePreview, MessagePreviewConfiguration, CometChatSoundManager, CometChatUiKitConstants, messageStatus, CometChatCreateGroup, CometChatIncomingCall, CometChatOngoingCall, CometChatOutgoingCall, CometChatCallBubble, CallingExtensionDecorator, CometChatContacts, CometChatMessageInformation };
51
53
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,wBAAwB,EASxB,uBAAuB;AAEvB,OAAO;AACP,0BAA0B,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AGtB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EAKrB,uBAAuB,EACvB,aAAa,EAqBb,oBAAoB,EAIpB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,yBAAyB,EACzB,iBAAiB,EAIjB,2BAA2B,EAI5B,CAAC"}
@@ -1,8 +1,12 @@
1
- import { CometChat } from "@cometchat-pro/react-native-chat";
1
+ import { CometChat } from "@cometchat/chat-sdk-react-native";
2
2
  import { UIKitSettings } from "./UIKitSettings";
3
+ import { ExtensionsDataSource } from "../framework";
4
+ import { CometChatSoundManager } from "../utils";
5
+ import { CometChatLocalize } from "../resources";
3
6
  export declare class CometChatUIKit {
4
7
  static uiKitSettings: UIKitSettings;
5
8
  static init(uiKitSettings: UIKitSettings): Promise<boolean>;
9
+ static defaultExtensions: ExtensionsDataSource[];
6
10
  private static enableExtensions;
7
11
  static getLoggedInUser(): Promise<CometChat.User>;
8
12
  static login({ uid, authToken }: {
@@ -16,4 +20,7 @@ export declare class CometChatUIKit {
16
20
  static sendCustomMessage(message: CometChat.CustomMessage, onSuccess?: (msg: CometChat.CustomMessage | CometChat.BaseMessage) => void, onError?: (msg: CometChat.CometChatException) => void): void;
17
21
  static sendMediaMessage(message: CometChat.MediaMessage, onSuccess?: (msg: CometChat.MediaMessage | CometChat.BaseMessage) => void, onError?: (msg: CometChat.CometChatException) => void): void;
18
22
  static sendTextMessage(message: CometChat.TextMessage, onSuccess?: (msg: CometChat.TextMessage | CometChat.BaseMessage) => void, onError?: (msg: CometChat.CometChatException) => void): void;
23
+ static getDataSource(): import("../framework").DataSource;
24
+ static SoundManager: typeof CometChatSoundManager;
25
+ static Localize: typeof CometChatLocalize;
19
26
  }
@@ -1,4 +1,5 @@
1
- import { CometChat } from "@cometchat-pro/react-native-chat";
1
+ import { Platform } from "react-native";
2
+ import { CometChat } from "@cometchat/chat-sdk-react-native";
2
3
  import { CometChatUIKitHelper } from "./CometChatUIKitHelper";
3
4
  import { messageStatus } from "../utils/CometChatMessageHelper";
4
5
  import { CallingExtension } from "../../calls/CallingExtension";
@@ -15,6 +16,8 @@ import { ImageModerationExtension } from "../../extensions/ImageModeration";
15
16
  import { MessageTranslationExtension } from "../../extensions/MessageTranslation";
16
17
  import { TextModerationExtension } from "../../extensions/TextModeration";
17
18
  import { ThumbnailGenerationExtension } from "../../extensions/ThumbnailGeneration";
19
+ import { CometChatSoundManager } from "../utils";
20
+ import { CometChatLocalize } from "../resources";
18
21
  export class CometChatUIKit {
19
22
  static uiKitSettings;
20
23
  static init(uiKitSettings) {
@@ -27,32 +30,37 @@ export class CometChatUIKit {
27
30
  .autoEstablishSocketConnection(uiKitSettings.autoEstablishSocketConnection)
28
31
  .setRegion(uiKitSettings.region);
29
32
  appSetting.subscriptionType = uiKitSettings.subscriptionType;
30
- return CometChat.init(uiKitSettings.appId, appSetting.build());
33
+ return CometChat.init(uiKitSettings.appId, appSetting.build()).then(() => {
34
+ CometChat.setSource("uikit-v4", Platform.OS, "react-native");
35
+ }, error => {
36
+ // console.log("Initialization failed with error:", error);
37
+ });
31
38
  }
39
+ static defaultExtensions = [
40
+ new StickersExtension(),
41
+ new SmartRepliesExtension(),
42
+ new CollaborativeWhiteboardExtension(),
43
+ new CollaborativeDocumentExtension(),
44
+ new MessageTranslationExtension(),
45
+ new TextModerationExtension(),
46
+ new ThumbnailGenerationExtension(),
47
+ new LinkPreviewExtention(),
48
+ new PollsExtension(),
49
+ new ReactionsExtension(),
50
+ new ImageModerationExtension()
51
+ ];
32
52
  static enableExtensions() {
33
53
  ChatConfigurator.init(); //re-initialize data source
34
54
  if (!CometChatUIKit.uiKitSettings.disableCalling) {
35
55
  if (CallingPackage.isCallingPackageInstalled)
36
56
  new CallingExtension().enable();
37
57
  }
38
- if (CometChatUIKit.uiKitSettings.extensions?.length > 0) {
39
- CometChatUIKit.uiKitSettings.extensions.forEach(extention => {
40
- extention.enable();
58
+ let extensionList = this.defaultExtensions;
59
+ if (extensionList?.length > 0) {
60
+ extensionList.forEach((extension) => {
61
+ extension?.enable();
41
62
  });
42
63
  }
43
- else {
44
- new StickersExtension().enable();
45
- new LinkPreviewExtention().enable();
46
- new CollaborativeWhiteboardExtension().enable();
47
- new CollaborativeDocumentExtension().enable();
48
- new ReactionsExtension().enable();
49
- new PollsExtension().enable();
50
- new SmartRepliesExtension().enable();
51
- new ImageModerationExtension().enable();
52
- new MessageTranslationExtension().enable();
53
- new TextModerationExtension().enable();
54
- new ThumbnailGenerationExtension().enable();
55
- }
56
64
  }
57
65
  static async getLoggedInUser() {
58
66
  if (CometChatUIKit.checkAuthSettings(Promise.reject))
@@ -131,6 +139,29 @@ export class CometChatUIKit {
131
139
  }
132
140
  ///[sendMediaMessage] used to send a media message
133
141
  static sendMediaMessage(message, onSuccess, onError) {
142
+ let hasAttachment;
143
+ try {
144
+ hasAttachment = message.getAttachment();
145
+ }
146
+ catch (error) {
147
+ console.log("no attachment found");
148
+ }
149
+ if (hasAttachment == undefined) {
150
+ let file = message['files'][0];
151
+ if (file == undefined) {
152
+ onError && onError(new CometChat.CometChatException({
153
+ code: "Invalid Media message object",
154
+ message: "file object not found."
155
+ }));
156
+ }
157
+ let attachmentObject = new CometChat.Attachment(file);
158
+ attachmentObject.setName(file['name']);
159
+ attachmentObject.setExtension((file['name'].lastIndexOf('.') + 1).toString());
160
+ attachmentObject.setMimeType(file['type']);
161
+ attachmentObject.setSize(0);
162
+ attachmentObject.setUrl(file['uri']);
163
+ message.setAttachment(attachmentObject);
164
+ }
134
165
  CometChatUIKitHelper.onMessageSent(message, messageStatus.inprogress);
135
166
  CometChat.sendMediaMessage(message)
136
167
  .then(mediaMessage => {
@@ -155,5 +186,10 @@ export class CometChatUIKit {
155
186
  onError && onError(err);
156
187
  });
157
188
  }
189
+ static getDataSource() {
190
+ return ChatConfigurator.getDataSource();
191
+ }
192
+ static SoundManager = CometChatSoundManager;
193
+ static Localize = CometChatLocalize;
158
194
  }
159
195
  //# sourceMappingURL=CometChatUIKit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CometChatUIKit.js","sourceRoot":"","sources":["../../../src/shared/CometChatUiKit/CometChatUIKit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,gCAAgC,EAAE,MAAM,2EAA2E,CAAC;AAC7H,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,uEAAuE,CAAC;AACvH,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEpF,MAAM,OAAO,cAAc;IACvB,MAAM,CAAC,aAAa,CAAgB;IAEpC,MAAM,CAAC,IAAI,CAAC,aAA4B;QAEpC,mDAAmD;QACnD,cAAc,CAAC,aAAa,GAAG;YAC3B,GAAG,aAAa;SACnB,CAAC;QAEF,IAAI,UAAU,GA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OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAA;IACV,CAAC;IAED,MAAM,CAAC,aAAa;QAChB,OAAO,gBAAgB,CAAC,aAAa,EAAE,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,YAAY,GAAiC,qBAAqB,CAAC;IAC1E,MAAM,CAAC,QAAQ,GAA6B,iBAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { CometChat } from "@cometchat-pro/react-native-chat";
1
+ import { CometChat } from "@cometchat/chat-sdk-react-native";
2
2
  export declare class CometChatUIKitHelper {
3
3
  static onMessageSent(message: CometChat.BaseMessage, status: string): void;
4
4
  static onMessageEdited(message: CometChat.BaseMessage, status: string): void;
@@ -1,13 +1,13 @@
1
- import { ExtensionsDataSource } from "../framework";
2
1
  export type UIKitSettings = {
3
2
  appId: string;
4
3
  region: string;
5
4
  authKey: string;
6
5
  subscriptionType?: string;
7
6
  autoEstablishSocketConnection?: boolean;
7
+ overrideAdminHost?: string;
8
+ overrideClientHost?: string;
8
9
  deviceToken?: string;
9
10
  googleApiKey?: string;
10
- extensions?: Array<ExtensionsDataSource>;
11
11
  disableCalling?: boolean;
12
12
  };
13
- export declare function UIKitSettings({ appId, region, authKey, subscriptionType, autoEstablishSocketConnection, deviceToken, googleApiKey, extensions, disableCalling, }: UIKitSettings): UIKitSettings;
13
+ export declare function UIKitSettings({ appId, region, authKey, subscriptionType, autoEstablishSocketConnection, overrideAdminHost, overrideClientHost, deviceToken, googleApiKey, disableCalling, }: UIKitSettings): UIKitSettings;