@cometchat/chat-uikit-react-native 4.3.14 → 4.3.15

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 (1022) hide show
  1. package/android/.gradle/7.4/checksums/checksums.lock +0 -0
  2. package/android/.gradle/7.4/checksums/md5-checksums.bin +0 -0
  3. package/android/.gradle/7.4/checksums/sha1-checksums.bin +0 -0
  4. package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  5. package/android/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  6. package/android/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
  7. package/android/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  8. package/android/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
  9. package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  10. package/android/.gradle/7.4/fileHashes/resourceHashesCache.bin +0 -0
  11. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  12. package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
  13. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  14. package/android/.gradle/checksums/checksums.lock +0 -0
  15. package/android/.gradle/config.properties +2 -0
  16. package/android/.gradle/configuration-cache/gc.properties +0 -0
  17. package/android/.gradle/file-system.probe +0 -0
  18. package/android/.idea/gradle.xml +2 -2
  19. package/android/.idea/migrations.xml +10 -0
  20. package/android/.idea/misc.xml +2 -1
  21. package/lib/AI/AIAssistBot/AIAssistBotDecorator.js +49 -35
  22. package/lib/AI/AIAssistBot/AIAssistBotDecorator.js.map +1 -1
  23. package/lib/AI/AIAssistBot/AIAssistBotExtension.js +0 -1
  24. package/lib/AI/AIAssistBot/AIAssistBotExtension.js.map +1 -1
  25. package/lib/AI/AIAssistBot/AIAssistBotStyle.js +7 -12
  26. package/lib/AI/AIAssistBot/AIAssistBotStyle.js.map +1 -1
  27. package/lib/AI/AIAssistBot/AIAssistBotView.d.ts +3 -2
  28. package/lib/AI/AIAssistBot/AIAssistBotView.js +54 -65
  29. package/lib/AI/AIAssistBot/AIAssistBotView.js.map +1 -1
  30. package/lib/AI/AIAssistBot/configuration.js +2 -12
  31. package/lib/AI/AIAssistBot/configuration.js.map +1 -1
  32. package/lib/AI/AIBaseConfiguration.d.ts +11 -0
  33. package/lib/AI/AIBaseConfiguration.js +3 -7
  34. package/lib/AI/AIBaseConfiguration.js.map +1 -1
  35. package/lib/AI/AIBaseStyle.js +0 -9
  36. package/lib/AI/AIBaseStyle.js.map +1 -1
  37. package/lib/AI/AIConversationStarter/AIConversationStarter.js +0 -1
  38. package/lib/AI/AIConversationStarter/AIConversationStarter.js.map +1 -1
  39. package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.d.ts +30 -0
  40. package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js +48 -53
  41. package/lib/AI/AIConversationStarter/AIConversationStarterDecorator.js.map +1 -1
  42. package/lib/AI/AIConversationStarter/AIConversationStarterStyle.d.ts +1 -0
  43. package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js +0 -5
  44. package/lib/AI/AIConversationStarter/AIConversationStarterStyle.js.map +1 -1
  45. package/lib/AI/AIConversationStarter/configuration.js +0 -2
  46. package/lib/AI/AIConversationStarter/configuration.js.map +1 -1
  47. package/lib/AI/AIConversationStarter/style.d.ts +18 -7
  48. package/lib/AI/AIConversationStarter/style.js +23 -42
  49. package/lib/AI/AIConversationStarter/style.js.map +1 -1
  50. package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js +63 -53
  51. package/lib/AI/AIConversationSummary/AIConversationSummaryDecorator.js.map +1 -1
  52. package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js +0 -1
  53. package/lib/AI/AIConversationSummary/AIConversationSummaryExtension.js.map +1 -1
  54. package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js +5 -10
  55. package/lib/AI/AIConversationSummary/AIConversationSummaryStyle.js.map +1 -1
  56. package/lib/AI/AIConversationSummary/AIConversationSummaryView.d.ts +2 -1
  57. package/lib/AI/AIConversationSummary/AIConversationSummaryView.js +39 -33
  58. package/lib/AI/AIConversationSummary/AIConversationSummaryView.js.map +1 -1
  59. package/lib/AI/AIConversationSummary/configuration.js +2 -4
  60. package/lib/AI/AIConversationSummary/configuration.js.map +1 -1
  61. package/lib/AI/AIExtensionDataSource.js +1 -0
  62. package/lib/AI/AIExtensionDataSource.js.map +1 -1
  63. package/lib/AI/AIOptionsStyle.js +0 -6
  64. package/lib/AI/AIOptionsStyle.js.map +1 -1
  65. package/lib/AI/AISmartReplies/AISmartReplies.js +0 -1
  66. package/lib/AI/AISmartReplies/AISmartReplies.js.map +1 -1
  67. package/lib/AI/AISmartReplies/AISmartRepliesDecorator.d.ts +37 -0
  68. package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js +89 -101
  69. package/lib/AI/AISmartReplies/AISmartRepliesDecorator.js.map +1 -1
  70. package/lib/AI/AISmartReplies/AISmartRepliesStyle.js +1 -8
  71. package/lib/AI/AISmartReplies/AISmartRepliesStyle.js.map +1 -1
  72. package/lib/AI/AISmartReplies/configuration.d.ts +2 -0
  73. package/lib/AI/AISmartReplies/configuration.js +0 -2
  74. package/lib/AI/AISmartReplies/configuration.js.map +1 -1
  75. package/lib/AI/CardView.d.ts +2 -1
  76. package/lib/AI/CardView.js +7 -18
  77. package/lib/AI/CardView.js.map +1 -1
  78. package/lib/AI/CardViewStyle.js +6 -22
  79. package/lib/AI/CardViewStyle.js.map +1 -1
  80. package/lib/AI/style.d.ts +92 -13
  81. package/lib/AI/style.js +35 -83
  82. package/lib/AI/style.js.map +1 -1
  83. package/lib/AI/utils.js +1 -15
  84. package/lib/AI/utils.js.map +1 -1
  85. package/lib/CometChatAddMembers/AddMembersConfiguration.d.ts +42 -0
  86. package/lib/CometChatAddMembers/AddMembersConfiguration.js +0 -32
  87. package/lib/CometChatAddMembers/AddMembersConfiguration.js.map +1 -1
  88. package/lib/CometChatAddMembers/CometChatAddMembers.d.ts +2 -1
  89. package/lib/CometChatAddMembers/CometChatAddMembers.js +18 -6
  90. package/lib/CometChatAddMembers/CometChatAddMembers.js.map +1 -1
  91. package/lib/CometChatBannedMembers/BannedMembersConfiguration.d.ts +45 -0
  92. package/lib/CometChatBannedMembers/BannedMembersConfiguration.js +0 -34
  93. package/lib/CometChatBannedMembers/BannedMembersConfiguration.js.map +1 -1
  94. package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +2 -1
  95. package/lib/CometChatBannedMembers/CometChatBannedMembers.js +28 -15
  96. package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +1 -1
  97. package/lib/CometChatContacts/CometChatContacts.d.ts +2 -1
  98. package/lib/CometChatContacts/CometChatContacts.js +29 -29
  99. package/lib/CometChatContacts/CometChatContacts.js.map +1 -1
  100. package/lib/CometChatContacts/Header.d.ts +31 -0
  101. package/lib/CometChatContacts/Header.js +50 -60
  102. package/lib/CometChatContacts/Header.js.map +1 -1
  103. package/lib/CometChatContacts/styles.d.ts +100 -1
  104. package/lib/CometChatConversations/CometChatConversations.d.ts +208 -0
  105. package/lib/CometChatConversations/CometChatConversations.js +126 -151
  106. package/lib/CometChatConversations/CometChatConversations.js.map +1 -1
  107. package/lib/CometChatConversations/ConversationsConfiguration.d.ts +113 -0
  108. package/lib/CometChatConversations/ConversationsConfiguration.js +0 -48
  109. package/lib/CometChatConversations/ConversationsConfiguration.js.map +1 -1
  110. package/lib/CometChatConversations/ConversationsStyle.js +0 -16
  111. package/lib/CometChatConversations/ConversationsStyle.js.map +1 -1
  112. package/lib/CometChatConversations/style.d.ts +65 -1
  113. package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.d.ts +2 -1
  114. package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js +31 -49
  115. package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js.map +1 -1
  116. package/lib/CometChatConversationsWithMessages/styles.d.ts +12 -1
  117. package/lib/CometChatCreateGroup/CometChatCreateGroup.d.ts +2 -1
  118. package/lib/CometChatCreateGroup/CometChatCreateGroup.js +74 -92
  119. package/lib/CometChatCreateGroup/CometChatCreateGroup.js.map +1 -1
  120. package/lib/CometChatCreateGroup/CreateGroupConfiguration.js +0 -6
  121. package/lib/CometChatCreateGroup/CreateGroupConfiguration.js.map +1 -1
  122. package/lib/CometChatCreateGroup/Header.d.ts +2 -1
  123. package/lib/CometChatCreateGroup/Header.js +15 -19
  124. package/lib/CometChatCreateGroup/Header.js.map +1 -1
  125. package/lib/CometChatCreateGroup/style.d.ts +46 -1
  126. package/lib/CometChatDetails/CometChatDetails.d.ts +281 -0
  127. package/lib/CometChatDetails/CometChatDetails.js +73 -97
  128. package/lib/CometChatDetails/CometChatDetails.js.map +1 -1
  129. package/lib/CometChatDetails/DetailsConfiguration.d.ts +35 -0
  130. package/lib/CometChatDetails/DetailsConfiguration.js +0 -17
  131. package/lib/CometChatDetails/DetailsConfiguration.js.map +1 -1
  132. package/lib/CometChatDetails/Header.d.ts +2 -1
  133. package/lib/CometChatDetails/Header.js +8 -10
  134. package/lib/CometChatDetails/Header.js.map +1 -1
  135. package/lib/CometChatDetails/listners.js +1 -1
  136. package/lib/CometChatDetails/listners.js.map +1 -1
  137. package/lib/CometChatDetails/styles.d.ts +28 -1
  138. package/lib/CometChatGroupMembers/CometChatGroupMembers.d.ts +96 -0
  139. package/lib/CometChatGroupMembers/CometChatGroupMembers.js +62 -117
  140. package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
  141. package/lib/CometChatGroupMembers/GroupMemberConfiguration.d.ts +86 -0
  142. package/lib/CometChatGroupMembers/GroupMemberConfiguration.js +3 -41
  143. package/lib/CometChatGroupMembers/GroupMemberConfiguration.js.map +1 -1
  144. package/lib/CometChatGroupMembers/GroupMemberStyle.js +0 -19
  145. package/lib/CometChatGroupMembers/GroupMemberStyle.js.map +1 -1
  146. package/lib/CometChatGroupMembers/GroupScopeStyle.js +0 -11
  147. package/lib/CometChatGroupMembers/GroupScopeStyle.js.map +1 -1
  148. package/lib/CometChatGroupMembers/style.d.ts +31 -1
  149. package/lib/CometChatGroups/CometChatGroups.d.ts +141 -0
  150. package/lib/CometChatGroups/CometChatGroups.js +53 -73
  151. package/lib/CometChatGroups/CometChatGroups.js.map +1 -1
  152. package/lib/CometChatGroups/GroupsConfiguration.d.ts +73 -0
  153. package/lib/CometChatGroups/GroupsConfiguration.js +32 -55
  154. package/lib/CometChatGroups/GroupsConfiguration.js.map +1 -1
  155. package/lib/CometChatGroups/GroupsStyle.js +0 -21
  156. package/lib/CometChatGroups/GroupsStyle.js.map +1 -1
  157. package/lib/CometChatGroups/style.d.ts +16 -1
  158. package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.d.ts +2 -1
  159. package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js +18 -33
  160. package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -1
  161. package/lib/CometChatGroupsWithMessages/styles.d.ts +12 -1
  162. package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.d.ts +2 -1
  163. package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js +33 -40
  164. package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js.map +1 -1
  165. package/lib/CometChatJoinProtectedGroup/Header.d.ts +2 -1
  166. package/lib/CometChatJoinProtectedGroup/Header.js +7 -11
  167. package/lib/CometChatJoinProtectedGroup/Header.js.map +1 -1
  168. package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js +0 -7
  169. package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js.map +1 -1
  170. package/lib/CometChatJoinProtectedGroup/style.d.ts +11 -1
  171. package/lib/CometChatMessageComposer/CometChatMessageComposer.d.ts +294 -0
  172. package/lib/CometChatMessageComposer/CometChatMessageComposer.js +197 -239
  173. package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
  174. package/lib/CometChatMessageComposer/MessageComposerConfiguration.d.ts +61 -0
  175. package/lib/CometChatMessageComposer/MessageComposerConfiguration.js +0 -37
  176. package/lib/CometChatMessageComposer/MessageComposerConfiguration.js.map +1 -1
  177. package/lib/CometChatMessageComposer/styles.d.ts +26 -1
  178. package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +150 -0
  179. package/lib/CometChatMessageHeader/CometChatMessageHeader.js +52 -76
  180. package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
  181. package/lib/CometChatMessageHeader/MessageHeaderConfiguration.d.ts +36 -0
  182. package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js +0 -17
  183. package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js.map +1 -1
  184. package/lib/CometChatMessageHeader/styles.d.ts +16 -1
  185. package/lib/CometChatMessageInformation/CometChatMessageInformation.d.ts +36 -0
  186. package/lib/CometChatMessageInformation/CometChatMessageInformation.js +66 -86
  187. package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +1 -1
  188. package/lib/CometChatMessageInformation/styles.d.ts +23 -1
  189. package/lib/CometChatMessageList/CometChatMessageList.d.ts +116 -0
  190. package/lib/CometChatMessageList/CometChatMessageList.js +247 -378
  191. package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
  192. package/lib/CometChatMessageList/MessageListConfiguration.d.ts +177 -0
  193. package/lib/CometChatMessageList/MessageListConfiguration.js +0 -64
  194. package/lib/CometChatMessageList/MessageListConfiguration.js.map +1 -1
  195. package/lib/CometChatMessageList/MessageListStyle.js +0 -13
  196. package/lib/CometChatMessageList/MessageListStyle.js.map +1 -1
  197. package/lib/CometChatMessageList/style.d.ts +52 -1
  198. package/lib/CometChatMessages/CometChatMessages.d.ts +42 -0
  199. package/lib/CometChatMessages/CometChatMessages.js +51 -65
  200. package/lib/CometChatMessages/CometChatMessages.js.map +1 -1
  201. package/lib/CometChatMessages/MessageStyle.js +0 -7
  202. package/lib/CometChatMessages/MessageStyle.js.map +1 -1
  203. package/lib/CometChatMessages/MessagesConfiguration.d.ts +68 -0
  204. package/lib/CometChatMessages/MessagesConfiguration.js +0 -16
  205. package/lib/CometChatMessages/MessagesConfiguration.js.map +1 -1
  206. package/lib/CometChatMessages/style.d.ts +21 -1
  207. package/lib/CometChatTabs/CometChatTabs.d.ts +2 -1
  208. package/lib/CometChatTabs/CometChatTabs.js +13 -48
  209. package/lib/CometChatTabs/CometChatTabs.js.map +1 -1
  210. package/lib/CometChatTabs/CometChatTabsStyle.d.ts +2 -0
  211. package/lib/CometChatTabs/CometChatTabsStyle.js +0 -5
  212. package/lib/CometChatTabs/CometChatTabsStyle.js.map +1 -1
  213. package/lib/CometChatTabs/TabItemStyle.js +0 -8
  214. package/lib/CometChatTabs/TabItemStyle.js.map +1 -1
  215. package/lib/CometChatTabs/TabItems.d.ts +10 -0
  216. package/lib/CometChatThreadedMessages/CometChatThreadedMessages.d.ts +113 -0
  217. package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js +36 -49
  218. package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js.map +1 -1
  219. package/lib/CometChatThreadedMessages/Header.d.ts +4 -3
  220. package/lib/CometChatThreadedMessages/Header.js +4 -6
  221. package/lib/CometChatThreadedMessages/Header.js.map +1 -1
  222. package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.d.ts +40 -0
  223. package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js +0 -22
  224. package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js.map +1 -1
  225. package/lib/CometChatThreadedMessages/style.d.ts +25 -1
  226. package/lib/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +2 -1
  227. package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js +19 -12
  228. package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js.map +1 -1
  229. package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.d.ts +40 -0
  230. package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js +0 -28
  231. package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js.map +1 -1
  232. package/lib/CometChatUsers/CometChatUsers.d.ts +69 -0
  233. package/lib/CometChatUsers/CometChatUsers.js +22 -16
  234. package/lib/CometChatUsers/CometChatUsers.js.map +1 -1
  235. package/lib/CometChatUsers/UsersConfiguration.d.ts +42 -0
  236. package/lib/CometChatUsers/UsersConfiguration.js +0 -32
  237. package/lib/CometChatUsers/UsersConfiguration.js.map +1 -1
  238. package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.d.ts +2 -1
  239. package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js +9 -20
  240. package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -1
  241. package/lib/CometChatUsersWithMessages/styles.d.ts +12 -1
  242. package/lib/calls/CallUtils.js +2 -2
  243. package/lib/calls/CallUtils.js.map +1 -1
  244. package/lib/calls/CallingDetailsUtils.js +40 -47
  245. package/lib/calls/CallingDetailsUtils.js.map +1 -1
  246. package/lib/calls/CallingExtension.js +0 -1
  247. package/lib/calls/CallingExtension.js.map +1 -1
  248. package/lib/calls/CallingExtentionDecorator.d.ts +5 -4
  249. package/lib/calls/CallingExtentionDecorator.js +100 -97
  250. package/lib/calls/CallingExtentionDecorator.js.map +1 -1
  251. package/lib/calls/CallingPackage.d.ts +1 -1
  252. package/lib/calls/CallingPackage.js +2 -1
  253. package/lib/calls/CallingPackage.js.map +1 -1
  254. package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js +0 -3
  255. package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js.map +1 -1
  256. package/lib/calls/CometChatCallBubble/CallBubbleStyle.js +0 -6
  257. package/lib/calls/CometChatCallBubble/CallBubbleStyle.js.map +1 -1
  258. package/lib/calls/CometChatCallBubble/CometChatCallBubble.d.ts +2 -1
  259. package/lib/calls/CometChatCallBubble/CometChatCallBubble.js +13 -12
  260. package/lib/calls/CometChatCallBubble/CometChatCallBubble.js.map +1 -1
  261. package/lib/calls/CometChatCallBubble/styles.d.ts +21 -1
  262. package/lib/calls/CometChatCallButtons/CallButtonStyle.js +0 -3
  263. package/lib/calls/CometChatCallButtons/CallButtonStyle.js.map +1 -1
  264. package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js +0 -7
  265. package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js.map +1 -1
  266. package/lib/calls/CometChatCallButtons/CometChatCallButtons.d.ts +2 -1
  267. package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +41 -43
  268. package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +1 -1
  269. package/lib/calls/CometChatCallButtons/style.d.ts +12 -1
  270. package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.d.ts +119 -0
  271. package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js +0 -48
  272. package/lib/calls/CometChatCallLogDetails/CallLogDetailsConfiguration.js.map +1 -1
  273. package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js +0 -3
  274. package/lib/calls/CometChatCallLogDetails/CallLogDetailsStyle.js.map +1 -1
  275. package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.d.ts +72 -0
  276. package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js +45 -71
  277. package/lib/calls/CometChatCallLogDetails/CometChatCallLogDetails.js.map +1 -1
  278. package/lib/calls/CometChatCallLogDetails/style.d.ts +13 -1
  279. package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.d.ts +72 -0
  280. package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js +0 -23
  281. package/lib/calls/CometChatCallLogHistory/CallLogHistoryConfiguration.js.map +1 -1
  282. package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js +0 -17
  283. package/lib/calls/CometChatCallLogHistory/CallLogHistoryStyle.js.map +1 -1
  284. package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.d.ts +45 -0
  285. package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js +56 -90
  286. package/lib/calls/CometChatCallLogHistory/CometChatCallLogHistory.js.map +1 -1
  287. package/lib/calls/CometChatCallLogHistory/style.d.ts +22 -1
  288. package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.d.ts +65 -0
  289. package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js +0 -22
  290. package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsConfiguration.js.map +1 -1
  291. package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js +0 -9
  292. package/lib/calls/CometChatCallLogParticipants/CallLogParticipantsStyle.js.map +1 -1
  293. package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.d.ts +39 -0
  294. package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js +27 -49
  295. package/lib/calls/CometChatCallLogParticipants/CometChatCallLogParticipants.js.map +1 -1
  296. package/lib/calls/CometChatCallLogParticipants/style.d.ts +22 -1
  297. package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.d.ts +71 -0
  298. package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js +0 -23
  299. package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsConfiguration.js.map +1 -1
  300. package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js +0 -10
  301. package/lib/calls/CometChatCallLogRecordings/CallLogRecordingsStyle.js.map +1 -1
  302. package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.d.ts +41 -0
  303. package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js +46 -64
  304. package/lib/calls/CometChatCallLogRecordings/CometChatCallLogRecordings.js.map +1 -1
  305. package/lib/calls/CometChatCallLogRecordings/style.d.ts +22 -1
  306. package/lib/calls/CometChatCallLogs/CallLogsConfiguration.d.ts +99 -0
  307. package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js +0 -34
  308. package/lib/calls/CometChatCallLogs/CallLogsConfiguration.js.map +1 -1
  309. package/lib/calls/CometChatCallLogs/CallLogsStyle.js +0 -18
  310. package/lib/calls/CometChatCallLogs/CallLogsStyle.js.map +1 -1
  311. package/lib/calls/CometChatCallLogs/CometChatCallLogs.d.ts +56 -0
  312. package/lib/calls/CometChatCallLogs/CometChatCallLogs.js +73 -104
  313. package/lib/calls/CometChatCallLogs/CometChatCallLogs.js.map +1 -1
  314. package/lib/calls/CometChatCallLogs/style.d.ts +22 -1
  315. package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.d.ts +2 -1
  316. package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js +8 -10
  317. package/lib/calls/CometChatCallLogsWithDetails/CometChatCallLogsWithDetails.js.map +1 -1
  318. package/lib/calls/CometChatCallLogsWithDetails/style.d.ts +8 -1
  319. package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +21 -0
  320. package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +20 -47
  321. package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +1 -1
  322. package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js +0 -13
  323. package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js.map +1 -1
  324. package/lib/calls/CometChatIncomingCall/styles.d.ts +9 -1
  325. package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.d.ts +2 -1
  326. package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js +6 -8
  327. package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js.map +1 -1
  328. package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js +0 -4
  329. package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js.map +1 -1
  330. package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +2 -1
  331. package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +17 -33
  332. package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -1
  333. package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js +0 -5
  334. package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js.map +1 -1
  335. package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js +0 -4
  336. package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js.map +1 -1
  337. package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js +0 -9
  338. package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js.map +1 -1
  339. package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +2 -1
  340. package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js +10 -15
  341. package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +1 -1
  342. package/lib/extensions/CollaborativeBubble/styles.d.ts +35 -1
  343. package/lib/extensions/CollaborativeBubble/styles.js +15 -39
  344. package/lib/extensions/CollaborativeBubble/styles.js.map +1 -1
  345. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +1 -1
  346. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js +0 -1
  347. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js.map +1 -1
  348. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js +0 -1
  349. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js.map +1 -1
  350. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +2 -1
  351. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +9 -9
  352. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +1 -1
  353. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +1 -1
  354. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js +0 -1
  355. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js.map +1 -1
  356. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js +0 -1
  357. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js.map +1 -1
  358. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +3 -2
  359. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +10 -11
  360. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +1 -1
  361. package/lib/extensions/ExtensionModerator.js +1 -1
  362. package/lib/extensions/ExtensionModerator.js.map +1 -1
  363. package/lib/extensions/ImageModeration/ImageModerationDecorator.d.ts +12 -0
  364. package/lib/extensions/ImageModeration/ImageModerationDecorator.js +1 -2
  365. package/lib/extensions/ImageModeration/ImageModerationDecorator.js.map +1 -1
  366. package/lib/extensions/ImageModeration/ImageModerationExtension.js +0 -1
  367. package/lib/extensions/ImageModeration/ImageModerationExtension.js.map +1 -1
  368. package/lib/extensions/ImageModeration/ImageModerationFilter.d.ts +2 -1
  369. package/lib/extensions/ImageModeration/ImageModerationFilter.js +16 -19
  370. package/lib/extensions/ImageModeration/ImageModerationFilter.js.map +1 -1
  371. package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js +0 -6
  372. package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js.map +1 -1
  373. package/lib/extensions/LinkPreview/LinkPreviewBubble.d.ts +12 -0
  374. package/lib/extensions/LinkPreview/LinkPreviewBubble.js +25 -36
  375. package/lib/extensions/LinkPreview/LinkPreviewBubble.js.map +1 -1
  376. package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js +0 -4
  377. package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js.map +1 -1
  378. package/lib/extensions/LinkPreview/LinkPreviewExtention.d.ts +1 -1
  379. package/lib/extensions/LinkPreview/LinkPreviewExtention.js +0 -1
  380. package/lib/extensions/LinkPreview/LinkPreviewExtention.js.map +1 -1
  381. package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.d.ts +12 -0
  382. package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js +2 -3
  383. package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js.map +1 -1
  384. package/lib/extensions/MessageTranslation/MessageTranslationBubble.d.ts +2 -1
  385. package/lib/extensions/MessageTranslation/MessageTranslationBubble.js +24 -43
  386. package/lib/extensions/MessageTranslation/MessageTranslationBubble.js.map +1 -1
  387. package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +20 -0
  388. package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +82 -112
  389. package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +1 -1
  390. package/lib/extensions/MessageTranslation/MessageTranslationExtension.js +0 -1
  391. package/lib/extensions/MessageTranslation/MessageTranslationExtension.js.map +1 -1
  392. package/lib/extensions/Polls/Header.d.ts +10 -9
  393. package/lib/extensions/Polls/Header.js +15 -19
  394. package/lib/extensions/Polls/Header.js.map +1 -1
  395. package/lib/extensions/Polls/Polls.d.ts +2 -1
  396. package/lib/extensions/Polls/Polls.js +90 -109
  397. package/lib/extensions/Polls/Polls.js.map +1 -1
  398. package/lib/extensions/Polls/PollsBubble.d.ts +2 -1
  399. package/lib/extensions/Polls/PollsBubble.js +70 -90
  400. package/lib/extensions/Polls/PollsBubble.js.map +1 -1
  401. package/lib/extensions/Polls/PollsDecorator.d.ts +2 -1
  402. package/lib/extensions/Polls/PollsDecorator.js +8 -8
  403. package/lib/extensions/Polls/PollsDecorator.js.map +1 -1
  404. package/lib/extensions/Polls/PollsExtension.js +0 -1
  405. package/lib/extensions/Polls/PollsExtension.js.map +1 -1
  406. package/lib/extensions/Polls/style.d.ts +45 -1
  407. package/lib/extensions/SmartReplies/SmartRepliesDecorator.d.ts +1 -1
  408. package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +43 -42
  409. package/lib/extensions/SmartReplies/SmartRepliesDecorator.js.map +1 -1
  410. package/lib/extensions/SmartReplies/SmartRepliesExtension.js +0 -1
  411. package/lib/extensions/SmartReplies/SmartRepliesExtension.js.map +1 -1
  412. package/lib/extensions/SmartReplies/SmartRepliesView.d.ts +2 -1
  413. package/lib/extensions/SmartReplies/SmartRepliesView.js +38 -45
  414. package/lib/extensions/SmartReplies/SmartRepliesView.js.map +1 -1
  415. package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +2 -1
  416. package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js +16 -30
  417. package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js.map +1 -1
  418. package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.d.ts +1 -1
  419. package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js +2 -4
  420. package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js.map +1 -1
  421. package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js +3 -10
  422. package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js.map +1 -1
  423. package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js +7 -6
  424. package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js.map +1 -1
  425. package/lib/extensions/Stickers/CometChatStickerKeyboard/style.d.ts +55 -1
  426. package/lib/extensions/Stickers/StickerConfiguration.js +1 -6
  427. package/lib/extensions/Stickers/StickerConfiguration.js.map +1 -1
  428. package/lib/extensions/Stickers/StickersBubble.d.ts +2 -1
  429. package/lib/extensions/Stickers/StickersBubble.js +5 -10
  430. package/lib/extensions/Stickers/StickersBubble.js.map +1 -1
  431. package/lib/extensions/Stickers/StickersExtension.js +1 -5
  432. package/lib/extensions/Stickers/StickersExtension.js.map +1 -1
  433. package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +4 -3
  434. package/lib/extensions/Stickers/StickersExtensionDecorator.js +15 -19
  435. package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +1 -1
  436. package/lib/extensions/TextModeration/TextModerationConfiguration.d.ts +1 -1
  437. package/lib/extensions/TextModeration/TextModerationConfiguration.js +0 -1
  438. package/lib/extensions/TextModeration/TextModerationConfiguration.js.map +1 -1
  439. package/lib/extensions/TextModeration/TextModerationExtension.js +1 -1
  440. package/lib/extensions/TextModeration/TextModerationExtension.js.map +1 -1
  441. package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +1 -1
  442. package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js +0 -1
  443. package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js.map +1 -1
  444. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.d.ts +16 -0
  445. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +9 -20
  446. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -1
  447. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js +0 -1
  448. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js.map +1 -1
  449. package/lib/shared/CometChatContext.d.ts +4 -2
  450. package/lib/shared/CometChatContext.js +1 -3
  451. package/lib/shared/CometChatContext.js.map +1 -1
  452. package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +1 -1
  453. package/lib/shared/CometChatUiKit/CometChatUIKit.js +87 -74
  454. package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -1
  455. package/lib/shared/CometChatUiKit/CometChatUIKitHelper.js.map +1 -1
  456. package/lib/shared/assets/images/index.d.ts +1 -0
  457. package/lib/shared/assets/images/index.js +2 -0
  458. package/lib/shared/assets/images/index.js.map +1 -1
  459. package/lib/shared/base/BaseStyle.js +0 -5
  460. package/lib/shared/base/BaseStyle.js.map +1 -1
  461. package/lib/shared/base/BorderStyle.js +0 -3
  462. package/lib/shared/base/BorderStyle.js.map +1 -1
  463. package/lib/shared/base/FontStyle.d.ts +2 -2
  464. package/lib/shared/base/FontStyle.js +0 -3
  465. package/lib/shared/base/FontStyle.js.map +1 -1
  466. package/lib/shared/base/ShadowStyle.js +0 -5
  467. package/lib/shared/base/ShadowStyle.js.map +1 -1
  468. package/lib/shared/constants/UIKitConstants.js.map +1 -1
  469. package/lib/shared/events/CometChatMessageEvents/index.js +90 -90
  470. package/lib/shared/events/CometChatMessageEvents/index.js.map +1 -1
  471. package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +176 -150
  472. package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -1
  473. package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +8 -8
  474. package/lib/shared/events/CometChatUIEventHandler/Listener.js +46 -94
  475. package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -1
  476. package/lib/shared/events/ListenerInitializer.js +2 -1
  477. package/lib/shared/events/ListenerInitializer.js.map +1 -1
  478. package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.d.ts +162 -0
  479. package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +88 -100
  480. package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +1 -1
  481. package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js +0 -2
  482. package/lib/shared/formatters/CometChatMentionsFormatter/MentionTextStyle.js.map +1 -1
  483. package/lib/shared/formatters/CometChatTextFormatter.d.ts +170 -0
  484. package/lib/shared/formatters/CometChatTextFormatter.js +39 -61
  485. package/lib/shared/formatters/CometChatTextFormatter.js.map +1 -1
  486. package/lib/shared/formatters/CometChatUrlsFormatter/index.d.ts +39 -0
  487. package/lib/shared/formatters/CometChatUrlsFormatter/index.js +81 -88
  488. package/lib/shared/formatters/CometChatUrlsFormatter/index.js.map +1 -1
  489. package/lib/shared/framework/ChatConfigurator.js +3 -3
  490. package/lib/shared/framework/ChatConfigurator.js.map +1 -1
  491. package/lib/shared/framework/DataSource.d.ts +71 -0
  492. package/lib/shared/framework/DataSourceDecorator.d.ts +14 -14
  493. package/lib/shared/framework/DataSourceDecorator.js +0 -1
  494. package/lib/shared/framework/DataSourceDecorator.js.map +1 -1
  495. package/lib/shared/framework/ExtensionsDataSource.js +1 -0
  496. package/lib/shared/framework/ExtensionsDataSource.js.map +1 -1
  497. package/lib/shared/framework/MessageDataSource.d.ts +95 -0
  498. package/lib/shared/framework/MessageDataSource.js +162 -166
  499. package/lib/shared/framework/MessageDataSource.js.map +1 -1
  500. package/lib/shared/helper/SwipeRow.d.ts +63 -60
  501. package/lib/shared/helper/SwipeRow.js +33 -74
  502. package/lib/shared/helper/SwipeRow.js.map +1 -1
  503. package/lib/shared/helper/Toast.d.ts +2 -1
  504. package/lib/shared/helper/Toast.js +2 -3
  505. package/lib/shared/helper/Toast.js.map +1 -1
  506. package/lib/shared/helper/functions.js +1 -1
  507. package/lib/shared/helper/functions.js.map +1 -1
  508. package/lib/shared/helper/types/index.d.ts +18 -0
  509. package/lib/shared/helper/useKeyboard.d.ts +1 -1
  510. package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js +14 -13
  511. package/lib/shared/libs/CometChatCalendar/Calendars/BaseCalendar.js.map +1 -1
  512. package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js +18 -7
  513. package/lib/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.js.map +1 -1
  514. package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js +18 -7
  515. package/lib/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.js.map +1 -1
  516. package/lib/shared/libs/CometChatCalendar/Calendars/Providers.d.ts +9 -1
  517. package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js +16 -6
  518. package/lib/shared/libs/CometChatCalendar/Calendars/Providers.js.map +1 -1
  519. package/lib/shared/libs/CometChatCalendar/Components/Arrow.d.ts +2 -1
  520. package/lib/shared/libs/CometChatCalendar/Components/Arrow.js +6 -7
  521. package/lib/shared/libs/CometChatCalendar/Components/Arrow.js.map +1 -1
  522. package/lib/shared/libs/CometChatCalendar/Components/Day.d.ts +2 -1
  523. package/lib/shared/libs/CometChatCalendar/Components/Day.js +18 -20
  524. package/lib/shared/libs/CometChatCalendar/Components/Day.js.map +1 -1
  525. package/lib/shared/libs/CometChatCalendar/Components/Days.js +7 -8
  526. package/lib/shared/libs/CometChatCalendar/Components/Days.js.map +1 -1
  527. package/lib/shared/libs/CometChatCalendar/Components/Month.d.ts +2 -1
  528. package/lib/shared/libs/CometChatCalendar/Components/Month.js +8 -10
  529. package/lib/shared/libs/CometChatCalendar/Components/Month.js.map +1 -1
  530. package/lib/shared/libs/CometChatCalendar/Components/Month.test.d.ts +33 -1
  531. package/lib/shared/libs/CometChatCalendar/Components/Months.d.ts +2 -1
  532. package/lib/shared/libs/CometChatCalendar/Components/Months.js +5 -6
  533. package/lib/shared/libs/CometChatCalendar/Components/Months.js.map +1 -1
  534. package/lib/shared/libs/CometChatCalendar/Components/Months.test.d.ts +33 -33
  535. package/lib/shared/libs/CometChatCalendar/Components/Title.js +4 -5
  536. package/lib/shared/libs/CometChatCalendar/Components/Title.js.map +1 -1
  537. package/lib/shared/libs/CometChatCalendar/Components/Weekdays.d.ts +2 -1
  538. package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js +1 -5
  539. package/lib/shared/libs/CometChatCalendar/Components/Weekdays.js.map +1 -1
  540. package/lib/shared/libs/CometChatCalendar/Contexts/LocaleContext.d.ts +2 -1
  541. package/lib/shared/libs/CometChatCalendar/Contexts/ThemeContext.d.ts +3 -1
  542. package/lib/shared/libs/CometChatCalendar/Entities/Components.d.ts +11 -0
  543. package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.d.ts +36 -1
  544. package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js +3 -0
  545. package/lib/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.js.map +1 -1
  546. package/lib/shared/libs/CometChatCalendar/Locales/index.js +1 -0
  547. package/lib/shared/libs/CometChatCalendar/Locales/index.js.map +1 -1
  548. package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js +13 -27
  549. package/lib/shared/libs/CometChatCalendar/Themes/DarkTheme.js.map +1 -1
  550. package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js +1 -4
  551. package/lib/shared/libs/CometChatCalendar/Themes/DefaultTheme.js.map +1 -1
  552. package/lib/shared/libs/CometChatCalendar/Utils/dateRange.d.ts +2 -1
  553. package/lib/shared/libs/CometChatCalendar/Utils/dateRange.js.map +1 -1
  554. package/lib/shared/libs/CometChatCalendar/Utils/getExtraDays.js.map +1 -1
  555. package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js +1 -0
  556. package/lib/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.js.map +1 -1
  557. package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.d.ts +5 -8
  558. package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js +340 -335
  559. package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js.map +1 -1
  560. package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.d.ts +3 -3
  561. package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js +11 -12
  562. package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js.map +1 -1
  563. package/lib/shared/libs/ImageZoom/helper.d.ts +3 -3
  564. package/lib/shared/libs/ImageZoom/helper.js +2 -1
  565. package/lib/shared/libs/ImageZoom/helper.js.map +1 -1
  566. package/lib/shared/libs/ImageZoom/types/index.d.ts +8 -8
  567. package/lib/shared/libs/VideoPlayer/Video.d.ts +3 -2
  568. package/lib/shared/libs/VideoPlayer/Video.js +172 -256
  569. package/lib/shared/libs/VideoPlayer/Video.js.map +1 -1
  570. package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.d.ts +2 -2
  571. package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js +4 -7
  572. package/lib/shared/libs/VideoPlayerControls/OSSupport/PlatformSupport.js.map +1 -1
  573. package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js +1 -0
  574. package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.js.map +1 -1
  575. package/lib/shared/libs/VideoPlayerControls/VideoPlayer.d.ts +2 -1
  576. package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js +31 -20
  577. package/lib/shared/libs/VideoPlayerControls/VideoPlayer.js.map +1 -1
  578. package/lib/shared/libs/VideoPlayerControls/components/Back/Back.d.ts +2 -1
  579. package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js +2 -3
  580. package/lib/shared/libs/VideoPlayerControls/components/Back/Back.js.map +1 -1
  581. package/lib/shared/libs/VideoPlayerControls/components/BottomControls.d.ts +2 -2
  582. package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js +30 -25
  583. package/lib/shared/libs/VideoPlayerControls/components/BottomControls.js.map +1 -1
  584. package/lib/shared/libs/VideoPlayerControls/components/Control.d.ts +2 -2
  585. package/lib/shared/libs/VideoPlayerControls/components/Control.js +15 -5
  586. package/lib/shared/libs/VideoPlayerControls/components/Control.js.map +1 -1
  587. package/lib/shared/libs/VideoPlayerControls/components/Error/Error.d.ts +2 -1
  588. package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js +3 -4
  589. package/lib/shared/libs/VideoPlayerControls/components/Error/Error.js.map +1 -1
  590. package/lib/shared/libs/VideoPlayerControls/components/Error/styles.d.ts +19 -1
  591. package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.d.ts +2 -1
  592. package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js +2 -3
  593. package/lib/shared/libs/VideoPlayerControls/components/Fullscreen.js.map +1 -1
  594. package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.d.ts +2 -1
  595. package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js +2 -3
  596. package/lib/shared/libs/VideoPlayerControls/components/Loader/Loader.js.map +1 -1
  597. package/lib/shared/libs/VideoPlayerControls/components/Loader/styles.d.ts +14 -1
  598. package/lib/shared/libs/VideoPlayerControls/components/NullControl.d.ts +2 -1
  599. package/lib/shared/libs/VideoPlayerControls/components/NullControl.js +1 -1
  600. package/lib/shared/libs/VideoPlayerControls/components/NullControl.js.map +1 -1
  601. package/lib/shared/libs/VideoPlayerControls/components/Overlay.d.ts +2 -1
  602. package/lib/shared/libs/VideoPlayerControls/components/Overlay.js +1 -1
  603. package/lib/shared/libs/VideoPlayerControls/components/Overlay.js.map +1 -1
  604. package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.d.ts +4 -3
  605. package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js +27 -19
  606. package/lib/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.js.map +1 -1
  607. package/lib/shared/libs/VideoPlayerControls/components/PlayPause/styles.d.ts +19 -1
  608. package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.d.ts +2 -2
  609. package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js +11 -14
  610. package/lib/shared/libs/VideoPlayerControls/components/Seekbar/Seekbar.js.map +1 -1
  611. package/lib/shared/libs/VideoPlayerControls/components/Seekbar/styles.d.ts +35 -1
  612. package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.d.ts +2 -2
  613. package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js +2 -3
  614. package/lib/shared/libs/VideoPlayerControls/components/Timer/Timer.js.map +1 -1
  615. package/lib/shared/libs/VideoPlayerControls/components/Timer/styles.d.ts +10 -1
  616. package/lib/shared/libs/VideoPlayerControls/components/Title.d.ts +2 -1
  617. package/lib/shared/libs/VideoPlayerControls/components/Title.js +2 -5
  618. package/lib/shared/libs/VideoPlayerControls/components/Title.js.map +1 -1
  619. package/lib/shared/libs/VideoPlayerControls/components/TopControls.d.ts +21 -1
  620. package/lib/shared/libs/VideoPlayerControls/components/TopControls.js +7 -10
  621. package/lib/shared/libs/VideoPlayerControls/components/TopControls.js.map +1 -1
  622. package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.d.ts +2 -1
  623. package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js +5 -7
  624. package/lib/shared/libs/VideoPlayerControls/components/Volume/Volume.js.map +1 -1
  625. package/lib/shared/libs/VideoPlayerControls/components/Volume/styles.d.ts +29 -1
  626. package/lib/shared/libs/VideoPlayerControls/components/styles.d.ts +28 -1
  627. package/lib/shared/libs/VideoPlayerControls/hooks/useControlTimeout.d.ts +1 -1
  628. package/lib/shared/libs/VideoPlayerControls/hooks/usePanResponders.d.ts +2 -2
  629. package/lib/shared/libs/VideoPlayerControls/styles.d.ts +15 -1
  630. package/lib/shared/libs/VideoPlayerControls/utils.js +3 -7
  631. package/lib/shared/libs/VideoPlayerControls/utils.js.map +1 -1
  632. package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.d.ts +2 -1
  633. package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js +14 -2
  634. package/lib/shared/libs/datePickerModal/DateTimePickerModal.android.js.map +1 -1
  635. package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.d.ts +125 -32
  636. package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js +121 -116
  637. package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.js.map +1 -1
  638. package/lib/shared/libs/datePickerModal/Modal.d.ts +16 -11
  639. package/lib/shared/libs/datePickerModal/Modal.js +74 -64
  640. package/lib/shared/libs/datePickerModal/Modal.js.map +1 -1
  641. package/lib/shared/libs/luxon/src/datetime.d.ts +34 -34
  642. package/lib/shared/libs/luxon/src/datetime.js +13 -30
  643. package/lib/shared/libs/luxon/src/datetime.js.map +1 -1
  644. package/lib/shared/libs/luxon/src/duration.d.ts +5 -5
  645. package/lib/shared/libs/luxon/src/duration.js +16 -35
  646. package/lib/shared/libs/luxon/src/duration.js.map +1 -1
  647. package/lib/shared/libs/luxon/src/impl/conversions.js +4 -4
  648. package/lib/shared/libs/luxon/src/impl/conversions.js.map +1 -1
  649. package/lib/shared/libs/luxon/src/impl/formatter.js +3 -3
  650. package/lib/shared/libs/luxon/src/impl/formatter.js.map +1 -1
  651. package/lib/shared/libs/luxon/src/impl/locale.js +19 -11
  652. package/lib/shared/libs/luxon/src/impl/locale.js.map +1 -1
  653. package/lib/shared/libs/luxon/src/impl/regexParser.js +1 -1
  654. package/lib/shared/libs/luxon/src/impl/regexParser.js.map +1 -1
  655. package/lib/shared/libs/luxon/src/impl/util.d.ts +3 -3
  656. package/lib/shared/libs/luxon/src/impl/util.js +1 -1
  657. package/lib/shared/libs/luxon/src/impl/util.js.map +1 -1
  658. package/lib/shared/libs/luxon/src/info.d.ts +1 -1
  659. package/lib/shared/libs/luxon/src/interval.d.ts +8 -8
  660. package/lib/shared/libs/luxon/src/interval.js +1 -1
  661. package/lib/shared/libs/luxon/src/interval.js.map +1 -1
  662. package/lib/shared/modals/CometChatCallLogDetailsOptions.d.ts +14 -0
  663. package/lib/shared/modals/CometChatDetailsOption.d.ts +17 -0
  664. package/lib/shared/modals/CometChatMessageOption.d.ts +12 -0
  665. package/lib/shared/modals/CometChatMessageTemplate.d.ts +131 -0
  666. package/lib/shared/modals/CometChatMessageTemplate.js +1 -56
  667. package/lib/shared/modals/CometChatMessageTemplate.js.map +1 -1
  668. package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js +4 -20
  669. package/lib/shared/modals/InteractiveData/InteractiveActions/APIAction.js.map +1 -1
  670. package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js +0 -4
  671. package/lib/shared/modals/InteractiveData/InteractiveActions/URLNavigationAction.js.map +1 -1
  672. package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js +2 -4
  673. package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveCardData.js.map +1 -1
  674. package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js +1 -17
  675. package/lib/shared/modals/InteractiveData/InteractiveData/InteractiveFormData.js.map +1 -1
  676. package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js +4 -8
  677. package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInputElement.js.map +1 -1
  678. package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js +0 -4
  679. package/lib/shared/modals/InteractiveData/InteractiveElements/BaseInteractiveElement.js.map +1 -1
  680. package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js +4 -8
  681. package/lib/shared/modals/InteractiveData/InteractiveElements/ButtonElement.js.map +1 -1
  682. package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js +1 -7
  683. package/lib/shared/modals/InteractiveData/InteractiveElements/CheckboxElement.js.map +1 -1
  684. package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js +0 -13
  685. package/lib/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.js.map +1 -1
  686. package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js +1 -13
  687. package/lib/shared/modals/InteractiveData/InteractiveElements/DropdownElement.js.map +1 -1
  688. package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js +0 -2
  689. package/lib/shared/modals/InteractiveData/InteractiveElements/LabelElement.js.map +1 -1
  690. package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js +0 -4
  691. package/lib/shared/modals/InteractiveData/InteractiveElements/OptionElement.js.map +1 -1
  692. package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js +1 -7
  693. package/lib/shared/modals/InteractiveData/InteractiveElements/RadioButtonElement.js.map +1 -1
  694. package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js +1 -7
  695. package/lib/shared/modals/InteractiveData/InteractiveElements/SingleSelectElement.js.map +1 -1
  696. package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js +10 -14
  697. package/lib/shared/modals/InteractiveData/InteractiveElements/TextInputElement.js.map +1 -1
  698. package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js +0 -4
  699. package/lib/shared/modals/InteractiveData/InteractiveEntities/ActionEntity.js.map +1 -1
  700. package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js +0 -8
  701. package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js.map +1 -1
  702. package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js +6 -16
  703. package/lib/shared/modals/InteractiveData/InteractiveMessage/CardMessage.js.map +1 -1
  704. package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js +3 -1
  705. package/lib/shared/modals/InteractiveData/InteractiveMessage/CustomInteractiveMessage.js.map +1 -1
  706. package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js +6 -20
  707. package/lib/shared/modals/InteractiveData/InteractiveMessage/FormMessage.js.map +1 -1
  708. package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js +2 -13
  709. package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.js.map +1 -1
  710. package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +32 -124
  711. package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js +124 -123
  712. package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js.map +1 -1
  713. package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js +79 -66
  714. package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js.map +1 -1
  715. package/lib/shared/resources/CometChatSoundManager/sound.d.ts +1 -1
  716. package/lib/shared/resources/CometChatSoundManager/sound.js +18 -7
  717. package/lib/shared/resources/CometChatSoundManager/sound.js.map +1 -1
  718. package/lib/shared/resources/CometChatTheme/CometChatTheme.js +0 -2
  719. package/lib/shared/resources/CometChatTheme/CometChatTheme.js.map +1 -1
  720. package/lib/shared/resources/CometChatTheme/Palette.js +66 -90
  721. package/lib/shared/resources/CometChatTheme/Palette.js.map +1 -1
  722. package/lib/shared/resources/CometChatTheme/Typography.d.ts +4 -4
  723. package/lib/shared/resources/CometChatTheme/Typography.js +0 -23
  724. package/lib/shared/resources/CometChatTheme/Typography.js.map +1 -1
  725. package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.d.ts +2 -1
  726. package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js +12 -20
  727. package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js.map +1 -1
  728. package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js +0 -1
  729. package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js.map +1 -1
  730. package/lib/shared/utils/CometChatLiveReactions/style.d.ts +5 -1
  731. package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +8 -7
  732. package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +11 -16
  733. package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +1 -1
  734. package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js +1 -1
  735. package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js.map +1 -1
  736. package/lib/shared/utils/CometChatMessagePreview/style.d.ts +10 -1
  737. package/lib/shared/utils/CometChatMessagePreview/style.js +13 -20
  738. package/lib/shared/utils/CometChatMessagePreview/style.js.map +1 -1
  739. package/lib/shared/utils/CommonUtils.js +3 -6
  740. package/lib/shared/utils/CommonUtils.js.map +1 -1
  741. package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +1 -0
  742. package/lib/shared/utils/DetailsUtils/DetailsUtils.js +11 -7
  743. package/lib/shared/utils/DetailsUtils/DetailsUtils.js.map +1 -1
  744. package/lib/shared/utils/InteractiveMessageUtils.js +28 -28
  745. package/lib/shared/utils/InteractiveMessageUtils.js.map +1 -1
  746. package/lib/shared/utils/MessageUtils.d.ts +2 -1
  747. package/lib/shared/utils/MessageUtils.js +4 -2
  748. package/lib/shared/utils/MessageUtils.js.map +1 -1
  749. package/lib/shared/utils/NetworkUtils.js +24 -16
  750. package/lib/shared/utils/NetworkUtils.js.map +1 -1
  751. package/lib/shared/utils/PermissionUtil.js +91 -74
  752. package/lib/shared/utils/PermissionUtil.js.map +1 -1
  753. package/lib/shared/utils/SchedulerUtils.d.ts +1 -7
  754. package/lib/shared/utils/SchedulerUtils.js.map +1 -1
  755. package/lib/shared/utils/TypeUtils.d.ts +3 -0
  756. package/lib/shared/utils/TypeUtils.js +2 -0
  757. package/lib/shared/utils/TypeUtils.js.map +1 -0
  758. package/lib/shared/utils/conversationUtils.js +51 -49
  759. package/lib/shared/utils/conversationUtils.js.map +1 -1
  760. package/lib/shared/utils/icsToJson.js +3 -2
  761. package/lib/shared/utils/icsToJson.js.map +1 -1
  762. package/lib/shared/utils/index.d.ts +1 -0
  763. package/lib/shared/views/CometChatAICard/CometChatAICard.d.ts +3 -1
  764. package/lib/shared/views/CometChatAICard/CometChatAICard.js +13 -29
  765. package/lib/shared/views/CometChatAICard/CometChatAICard.js.map +1 -1
  766. package/lib/shared/views/CometChatActionSheet/ActionItem.js +0 -21
  767. package/lib/shared/views/CometChatActionSheet/ActionItem.js.map +1 -1
  768. package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.d.ts +3 -1
  769. package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js +2 -11
  770. package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js.map +1 -1
  771. package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +2 -1
  772. package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js +80 -102
  773. package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js.map +1 -1
  774. package/lib/shared/views/CometChatActionSheet/style.d.ts +44 -1
  775. package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js +0 -5
  776. package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js.map +1 -1
  777. package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.d.ts +2 -1
  778. package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +12 -27
  779. package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +1 -1
  780. package/lib/shared/views/CometChatAudioBubble/style.d.ts +28 -1
  781. package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js +0 -2
  782. package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js.map +1 -1
  783. package/lib/shared/views/CometChatAvatar/AvatarStyle.js +0 -4
  784. package/lib/shared/views/CometChatAvatar/AvatarStyle.js.map +1 -1
  785. package/lib/shared/views/CometChatAvatar/CometChatAvatar.d.ts +2 -1
  786. package/lib/shared/views/CometChatAvatar/CometChatAvatar.js +24 -34
  787. package/lib/shared/views/CometChatAvatar/CometChatAvatar.js.map +1 -1
  788. package/lib/shared/views/CometChatAvatar/styles.d.ts +21 -1
  789. package/lib/shared/views/CometChatBadge/BadgeConfiguration.js +0 -7
  790. package/lib/shared/views/CometChatBadge/BadgeConfiguration.js.map +1 -1
  791. package/lib/shared/views/CometChatBadge/BadgeStyle.js +0 -2
  792. package/lib/shared/views/CometChatBadge/BadgeStyle.js.map +1 -1
  793. package/lib/shared/views/CometChatBadge/CometChatBadge.d.ts +2 -1
  794. package/lib/shared/views/CometChatBadge/CometChatBadge.js +12 -19
  795. package/lib/shared/views/CometChatBadge/CometChatBadge.js.map +1 -1
  796. package/lib/shared/views/CometChatBadge/styles.d.ts +13 -1
  797. package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.d.ts +2 -1
  798. package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +25 -43
  799. package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js.map +1 -1
  800. package/lib/shared/views/CometChatBottomSheet/style.d.ts +48 -1
  801. package/lib/shared/views/CometChatButton/CometChatButton.d.ts +2 -1
  802. package/lib/shared/views/CometChatButton/CometChatButton.js +10 -27
  803. package/lib/shared/views/CometChatButton/CometChatButton.js.map +1 -1
  804. package/lib/shared/views/CometChatButton/CometChatButtonStyle.js +0 -6
  805. package/lib/shared/views/CometChatButton/CometChatButtonStyle.js.map +1 -1
  806. package/lib/shared/views/CometChatButton/style.d.ts +6 -1
  807. package/lib/shared/views/CometChatCard/CometChatCard.d.ts +15 -0
  808. package/lib/shared/views/CometChatCard/CometChatCard.js +8 -21
  809. package/lib/shared/views/CometChatCard/CometChatCard.js.map +1 -1
  810. package/lib/shared/views/CometChatCard/CometChatCardStyle.js +0 -2
  811. package/lib/shared/views/CometChatCard/CometChatCardStyle.js.map +1 -1
  812. package/lib/shared/views/CometChatCard/style.d.ts +11 -1
  813. package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js +0 -6
  814. package/lib/shared/views/CometChatCardBubble/CardBubbleStyle.js.map +1 -1
  815. package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.d.ts +2 -1
  816. package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js +20 -29
  817. package/lib/shared/views/CometChatCardBubble/CometChatCardBubble.js.map +1 -1
  818. package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js +0 -8
  819. package/lib/shared/views/CometChatCheckBox/CheckBoxStyle.js.map +1 -1
  820. package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.d.ts +2 -1
  821. package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js +14 -29
  822. package/lib/shared/views/CometChatCheckBox/CometChatCheckBox.js.map +1 -1
  823. package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +2 -1
  824. package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js +50 -65
  825. package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js.map +1 -1
  826. package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js +0 -10
  827. package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js.map +1 -1
  828. package/lib/shared/views/CometChatConfirmDialog/style.d.ts +61 -1
  829. package/lib/shared/views/CometChatDate/CometChatDate.d.ts +2 -1
  830. package/lib/shared/views/CometChatDate/CometChatDate.js +4 -10
  831. package/lib/shared/views/CometChatDate/CometChatDate.js.map +1 -1
  832. package/lib/shared/views/CometChatDate/DateConfiguration.js +0 -3
  833. package/lib/shared/views/CometChatDate/DateConfiguration.js.map +1 -1
  834. package/lib/shared/views/CometChatDate/DateStyle.js +0 -2
  835. package/lib/shared/views/CometChatDate/DateStyle.js.map +1 -1
  836. package/lib/shared/views/CometChatDate/style.d.ts +5 -1
  837. package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.d.ts +4 -2
  838. package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js +32 -36
  839. package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js.map +1 -1
  840. package/lib/shared/views/CometChatDateTimePicker/DateTimePickerStyle.d.ts +11 -1
  841. package/lib/shared/views/CometChatDropDown/CometChatDropDown.d.ts +2 -1
  842. package/lib/shared/views/CometChatDropDown/CometChatDropDown.js +12 -28
  843. package/lib/shared/views/CometChatDropDown/CometChatDropDown.js.map +1 -1
  844. package/lib/shared/views/CometChatDropDown/DropDownStyle.js +0 -7
  845. package/lib/shared/views/CometChatDropDown/DropDownStyle.js.map +1 -1
  846. package/lib/shared/views/CometChatDropDown/resources/index.d.ts +0 -1
  847. package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +5 -3
  848. package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +65 -72
  849. package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +1 -1
  850. package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js +2 -2
  851. package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js.map +1 -1
  852. package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js +4 -4
  853. package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js.map +1 -1
  854. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.d.ts +2 -1
  855. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js +0 -3
  856. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js.map +1 -1
  857. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.d.ts +1 -11
  858. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js +1 -6
  859. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js.map +1 -1
  860. package/lib/shared/views/CometChatEmojiKeyboard/style.d.ts +44 -1
  861. package/lib/shared/views/CometChatEmojiKeyboard/style.js +2 -2
  862. package/lib/shared/views/CometChatEmojiKeyboard/style.js.map +1 -1
  863. package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.d.ts +2 -1
  864. package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js +20 -26
  865. package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +1 -1
  866. package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js +1 -6
  867. package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js.map +1 -1
  868. package/lib/shared/views/CometChatFileBubble/style.d.ts +44 -1
  869. package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.d.ts +2 -1
  870. package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js +134 -140
  871. package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js.map +1 -1
  872. package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js +0 -16
  873. package/lib/shared/views/CometChatFormBubble/FormBubbleStyle.js.map +1 -1
  874. package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.d.ts +2 -1
  875. package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +21 -28
  876. package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +1 -1
  877. package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.d.ts +1 -1
  878. package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js +0 -1
  879. package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js.map +1 -1
  880. package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.d.ts +2 -1
  881. package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js +9 -16
  882. package/lib/shared/views/CometChatImageViewerModal/ImageViewerModal.js.map +1 -1
  883. package/lib/shared/views/CometChatLabel/CometChatLabel.d.ts +2 -1
  884. package/lib/shared/views/CometChatLabel/CometChatLabel.js +3 -6
  885. package/lib/shared/views/CometChatLabel/CometChatLabel.js.map +1 -1
  886. package/lib/shared/views/CometChatLabel/LabelStyle.js +0 -2
  887. package/lib/shared/views/CometChatLabel/LabelStyle.js.map +1 -1
  888. package/lib/shared/views/CometChatList/CometChatList.d.ts +90 -0
  889. package/lib/shared/views/CometChatList/CometChatList.js +76 -88
  890. package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
  891. package/lib/shared/views/CometChatList/Header.d.ts +2 -1
  892. package/lib/shared/views/CometChatList/Header.js +50 -60
  893. package/lib/shared/views/CometChatList/Header.js.map +1 -1
  894. package/lib/shared/views/CometChatList/styles.d.ts +98 -1
  895. package/lib/shared/views/CometChatListItem/CometChatListItem.d.ts +3 -3
  896. package/lib/shared/views/CometChatListItem/CometChatListItem.js +59 -86
  897. package/lib/shared/views/CometChatListItem/CometChatListItem.js.map +1 -1
  898. package/lib/shared/views/CometChatListItem/ListItemStyle.js +0 -2
  899. package/lib/shared/views/CometChatListItem/ListItemStyle.js.map +1 -1
  900. package/lib/shared/views/CometChatListItem/style.d.ts +61 -1
  901. package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +2 -1
  902. package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +54 -52
  903. package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +1 -1
  904. package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js +0 -10
  905. package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js.map +1 -1
  906. package/lib/shared/views/CometChatMediaRecorder/style.d.ts +27 -1
  907. package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.d.ts +61 -0
  908. package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js +17 -24
  909. package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +1 -1
  910. package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.d.ts +1 -1
  911. package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +29 -34
  912. package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +1 -1
  913. package/lib/shared/views/CometChatMessageInput/index.d.ts +2 -1
  914. package/lib/shared/views/CometChatMessageInput/index.js.map +1 -1
  915. package/lib/shared/views/CometChatMessageInput/styles.d.ts +7 -1
  916. package/lib/shared/views/CometChatPanel/CometChatPanel.d.ts +2 -1
  917. package/lib/shared/views/CometChatPanel/CometChatPanel.js +7 -21
  918. package/lib/shared/views/CometChatPanel/CometChatPanel.js.map +1 -1
  919. package/lib/shared/views/CometChatPanel/PanelStyle.js +0 -5
  920. package/lib/shared/views/CometChatPanel/PanelStyle.js.map +1 -1
  921. package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.d.ts +2 -1
  922. package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js +21 -26
  923. package/lib/shared/views/CometChatQuickReactions/CometChatQuickReactions.js.map +1 -1
  924. package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js +0 -3
  925. package/lib/shared/views/CometChatQuickReactions/QuickReactionsStyle.js.map +1 -1
  926. package/lib/shared/views/CometChatQuickReactions/index.d.ts +2 -1
  927. package/lib/shared/views/CometChatQuickReactions/index.js.map +1 -1
  928. package/lib/shared/views/CometChatQuickView/CometChatQuickView.d.ts +2 -1
  929. package/lib/shared/views/CometChatQuickView/CometChatQuickView.js +12 -24
  930. package/lib/shared/views/CometChatQuickView/CometChatQuickView.js.map +1 -1
  931. package/lib/shared/views/CometChatQuickView/QuickViewStyle.js +0 -8
  932. package/lib/shared/views/CometChatQuickView/QuickViewStyle.js.map +1 -1
  933. package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.d.ts +2 -1
  934. package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js +12 -23
  935. package/lib/shared/views/CometChatRadioButton/CometChatRadioButton.js.map +1 -1
  936. package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js +0 -6
  937. package/lib/shared/views/CometChatRadioButton/RadioButtonStyle.js.map +1 -1
  938. package/lib/shared/views/CometChatReactionList/CometChatReactionList.d.ts +20 -0
  939. package/lib/shared/views/CometChatReactionList/CometChatReactionList.js +84 -91
  940. package/lib/shared/views/CometChatReactionList/CometChatReactionList.js.map +1 -1
  941. package/lib/shared/views/CometChatReactionList/ReactionListStyle.js +0 -11
  942. package/lib/shared/views/CometChatReactionList/ReactionListStyle.js.map +1 -1
  943. package/lib/shared/views/CometChatReactionList/index.d.ts +2 -1
  944. package/lib/shared/views/CometChatReactionList/index.js.map +1 -1
  945. package/lib/shared/views/CometChatReactions/CometChatReactions.d.ts +2 -1
  946. package/lib/shared/views/CometChatReactions/CometChatReactions.js +44 -59
  947. package/lib/shared/views/CometChatReactions/CometChatReactions.js.map +1 -1
  948. package/lib/shared/views/CometChatReactions/ReactionsStyle.js +0 -5
  949. package/lib/shared/views/CometChatReactions/ReactionsStyle.js.map +1 -1
  950. package/lib/shared/views/CometChatReactions/style.d.ts +38 -1
  951. package/lib/shared/views/CometChatReceipt/CometChatReceipt.d.ts +2 -1
  952. package/lib/shared/views/CometChatReceipt/CometChatReceipt.js +2 -7
  953. package/lib/shared/views/CometChatReceipt/CometChatReceipt.js.map +1 -1
  954. package/lib/shared/views/CometChatReceipt/MessageConfiguration.js +0 -6
  955. package/lib/shared/views/CometChatReceipt/MessageConfiguration.js.map +1 -1
  956. package/lib/shared/views/CometChatReceipt/style.d.ts +7 -1
  957. package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.d.ts +2 -1
  958. package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js +473 -551
  959. package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js.map +1 -1
  960. package/lib/shared/views/CometChatSchedulerBubble/styles.d.ts +91 -1
  961. package/lib/shared/views/CometChatSchedulerBubble/styles.js +1 -1
  962. package/lib/shared/views/CometChatSchedulerBubble/styles.js.map +1 -1
  963. package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.d.ts +2 -1
  964. package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js +11 -21
  965. package/lib/shared/views/CometChatSingleSelect/CometChatSingleSelect.js.map +1 -1
  966. package/lib/shared/views/CometChatSingleSelect/SingleStyle.js +0 -6
  967. package/lib/shared/views/CometChatSingleSelect/SingleStyle.js.map +1 -1
  968. package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.d.ts +2 -1
  969. package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js +10 -15
  970. package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js.map +1 -1
  971. package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js +0 -2
  972. package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js.map +1 -1
  973. package/lib/shared/views/CometChatStatusIndicator/styles.d.ts +12 -1
  974. package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.d.ts +2 -1
  975. package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js +14 -17
  976. package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js.map +1 -1
  977. package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js +5 -40
  978. package/lib/shared/views/CometChatSuggestionList/SuggestionItem.js.map +1 -1
  979. package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js +0 -10
  980. package/lib/shared/views/CometChatSuggestionList/SuggestionListConfiguration.js.map +1 -1
  981. package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.d.ts +2 -1
  982. package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js +6 -13
  983. package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js.map +1 -1
  984. package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js +1 -3
  985. package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js.map +1 -1
  986. package/lib/shared/views/CometChatTextInput/CometChatTextInput.d.ts +2 -1
  987. package/lib/shared/views/CometChatTextInput/CometChatTextInput.js +13 -16
  988. package/lib/shared/views/CometChatTextInput/CometChatTextInput.js.map +1 -1
  989. package/lib/shared/views/CometChatTextInput/TextInputStyle.js +0 -3
  990. package/lib/shared/views/CometChatTextInput/TextInputStyle.js.map +1 -1
  991. package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.d.ts +2 -1
  992. package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js +39 -48
  993. package/lib/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.js.map +1 -1
  994. package/lib/shared/views/CometChatTimeSlotSelector/styles.d.ts +25 -1
  995. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.d.ts +2 -1
  996. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +9 -17
  997. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
  998. package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +0 -22
  999. package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js.map +1 -1
  1000. package/lib/shared/views/CometChatVideoBubble/style.d.ts +7 -1
  1001. package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.d.ts +2 -18
  1002. package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js +7 -10
  1003. package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js.map +1 -1
  1004. package/lib/shared/views/SwipeRow/SwipeRow.js +24 -32
  1005. package/lib/shared/views/SwipeRow/SwipeRow.js.map +1 -1
  1006. package/lib/shared/views/SwipeRow/style.d.ts +28 -1
  1007. package/package.json +1 -1
  1008. package/src/CometChatDetails/CometChatDetails.tsx +13 -19
  1009. package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +5 -4
  1010. package/src/CometChatMessageList/CometChatMessageList.tsx +1 -1
  1011. package/src/calls/CometChatCallLogHistory/CometChatCallLogHistory.tsx +6 -4
  1012. package/src/calls/CometChatCallLogs/CometChatCallLogs.tsx +7 -5
  1013. package/src/extensions/ImageModeration/ImageModerationFilter.tsx +0 -1
  1014. package/src/extensions/LinkPreview/LinkPreviewBubble.tsx +20 -4
  1015. package/src/shared/utils/DetailsUtils/DetailsUtils.tsx +116 -71
  1016. package/src/shared/views/CometChatAudioBubble/CometChatAudioBubble.tsx +23 -3
  1017. package/src/shared/views/CometChatFileBubble/CometChatFileBubble.tsx +26 -3
  1018. package/src/shared/views/CometChatImageBubble/CometChatImageBubble.tsx +21 -3
  1019. package/src/shared/views/CometChatList/CometChatList.tsx +2 -7
  1020. package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +1 -1
  1021. package/src/shared/views/CometChatReactionList/CometChatReactionList.tsx +6 -6
  1022. package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +23 -3
@@ -1,10 +1,4 @@
1
1
  export class LinkPreviewBubbleStyle {
2
- backgroundColor;
3
- titleFont;
4
- titleColor;
5
- subtitleFont;
6
- subtitleColor;
7
- childContainerStyle;
8
2
  constructor(props) {
9
3
  this.backgroundColor = props.backgroundColor;
10
4
  this.titleFont = props.titleFont;
@@ -1 +1 @@
1
- {"version":3,"file":"LInkPreviewBubbleStyle.js","sourceRoot":"","sources":["../../../src/extensions/LinkPreview/LInkPreviewBubbleStyle.ts"],"names":[],"mappings":"AAWA,MAAM,OAAO,sBAAsB;IAC/B,eAAe,CAAS;IACxB,SAAS,CAAqB;IAC9B,UAAU,CAAS;IACnB,YAAY,CAAqB;IACjC,aAAa,CAAS;IACtB,mBAAmB,CAAS;IAE5B,YAAY,KAAsC;QAC9C,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QAC7C,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;QACjC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;QACnC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;QACvC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;QACzC,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC;IACzD,CAAC;CACJ"}
1
+ {"version":3,"file":"LInkPreviewBubbleStyle.js","sourceRoot":"","sources":["../../../src/extensions/LinkPreview/LInkPreviewBubbleStyle.ts"],"names":[],"mappings":"AAWA,MAAM,OAAO,sBAAsB;IAQ/B,YAAY,KAAsC;QAC9C,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QAC7C,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;QACjC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;QACnC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;QACvC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;QACzC,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC;IACzD,CAAC;CACJ"}
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { LinkPreviewBubbleStyleInterface } from './LInkPreviewBubbleStyle';
3
+ export interface LinkPreviewBubbleInterface {
4
+ ChildView?: () => JSX.Element | null;
5
+ description?: string;
6
+ style?: LinkPreviewBubbleStyleInterface;
7
+ link: string;
8
+ onPress?: () => void;
9
+ title: string;
10
+ image: string;
11
+ }
12
+ export declare const LinkPreviewBubble: (props: LinkPreviewBubbleInterface) => React.JSX.Element;
@@ -1,3 +1,12 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
1
10
  import React, { useRef, useState } from "react";
2
11
  import { View, Text, Linking, Image, Alert, Platform } from 'react-native';
3
12
  import { LinkPreviewBubbleStyle } from './LInkPreviewBubbleStyle';
@@ -5,57 +14,37 @@ import { localize } from '../../shared/resources/CometChatLocalize';
5
14
  import { DefaultLinkPreview } from "./resources";
6
15
  export const LinkPreviewBubble = (props) => {
7
16
  const { style, link, title, ChildView, image, onPress, description } = props;
8
- const _style = new LinkPreviewBubbleStyle(style);
17
+ const _style = new LinkPreviewBubbleStyle(style || {});
9
18
  const [imageSource, setImageSource] = useState({ uri: image.startsWith("https:") ? image : `https:${image.split("http:")[1]}` });
10
19
  const pressTime = useRef(0);
11
20
  const handleTouchStart = () => {
12
21
  pressTime.current = Date.now();
13
22
  };
14
- const handleTouchEnd = () => {
23
+ const handleTouchEnd = () => __awaiter(void 0, void 0, void 0, function* () {
15
24
  if (pressTime.current === null && Platform.OS === "ios")
16
25
  return;
17
26
  const endTime = Date.now();
18
27
  const pressDuration = endTime - pressTime.current;
19
28
  if (pressDuration < 500) {
20
- onPress ? onPress() : (Linking.canOpenURL(link) && Linking.openURL(link)) || Alert.alert(localize("SOMETHING_WRONG"));
29
+ onPress ? onPress() : (yield Linking.openURL(link)) ? Linking.openURL(link) : Alert.alert(localize("SOMETHING_WRONG"));
21
30
  }
22
- };
31
+ });
23
32
  const onTouchMove = () => {
24
33
  if (Platform.OS === "ios") {
25
34
  pressTime.current = null;
26
35
  }
27
36
  };
28
- return (<View>
29
-
30
- <View style={{
31
- backgroundColor: _style.backgroundColor,
32
- borderRadius: 8,
33
- }} onTouchStart={handleTouchStart} onTouchEnd={handleTouchEnd} onTouchMove={onTouchMove}>
34
-
35
- <Image source={imageSource} style={{ height: 100, width: "100%", alignSelf: "center" }} onError={(err) => {
36
- setImageSource(DefaultLinkPreview);
37
- }}/>
38
-
39
-
40
- </View>
41
-
42
- <View style={{ margin: 8 }}>
43
- <Text style={{
44
- color: _style.titleColor,
45
- ..._style.titleFont
46
- }} ellipsizeMode="tail">
47
- {title}
48
- </Text>
49
- <Text style={{
50
- color: _style.subtitleColor,
51
- ..._style.subtitleFont,
52
- }} numberOfLines={2} ellipsizeMode="tail">
53
- {description}
54
- </Text>
55
- {ChildView && <ChildView />}
56
- </View>
57
-
58
-
59
- </View>);
37
+ return (React.createElement(View, null,
38
+ React.createElement(View, { style: {
39
+ backgroundColor: _style.backgroundColor,
40
+ borderRadius: 8,
41
+ }, onTouchStart: handleTouchStart, onTouchEnd: handleTouchEnd, onTouchMove: onTouchMove },
42
+ React.createElement(Image, { source: imageSource, style: { height: 100, width: "100%", alignSelf: "center" }, onError: (err) => {
43
+ setImageSource(DefaultLinkPreview);
44
+ } })),
45
+ React.createElement(View, { style: { margin: 8 } },
46
+ React.createElement(Text, { style: Object.assign({ color: _style.titleColor }, _style.titleFont), ellipsizeMode: "tail" }, title),
47
+ React.createElement(Text, { style: Object.assign({ color: _style.subtitleColor }, _style.subtitleFont), numberOfLines: 2, ellipsizeMode: "tail" }, description),
48
+ ChildView && React.createElement(ChildView, null))));
60
49
  };
61
50
  //# sourceMappingURL=LinkPreviewBubble.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkPreviewBubble.js","sourceRoot":"","sources":["../../../src/extensions/LinkPreview/LinkPreviewBubble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAoB,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5F,OAAO,EAAE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AC1D,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;oBACb,cAAc,CAAC,kBAAkB,CAAC,CAAA;gBACtC,CAAC,GACH,CAGC;QAEP,oBAAC,IAAI,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;YACtB,oBAAC,IAAI,IACD,KAAK,EAAE,gBACH,KAAK,EAAE,MAAM,CAAC,UAAU,IACrB,MAAM,CAAC,SAAS,CACR,EACf,aAAa,EAAC,MAAM,IAEnB,KAAK,CACH;YACP,oBAAC,IAAI,IACD,KAAK,EAAE,gBACH,KAAK,EAAE,MAAM,CAAC,aAAa,IACxB,MAAM,CAAC,YAAY,CACZ,EACd,aAAa,EAAE,CAAC,EAChB,aAAa,EAAC,MAAM,IAEnB,WAAW,CACT;YAEH,SAAS,IAAI,oBAAC,SAAS,OAAG,CAE3B,CAGJ,CAEV,CAAA;AACL,CAAC,CAAA"}
@@ -1,8 +1,4 @@
1
1
  export class LinkPreviewConfiguration {
2
- subtitleFontColor;
3
- subtitleFontStyle;
4
- titleFontColor;
5
- titleFontStyle;
6
2
  constructor({ subtitleFontColor, subtitleFontStyle, titleFontColor, titleFontStyle }) {
7
3
  this.subtitleFontColor = subtitleFontColor;
8
4
  this.subtitleFontStyle = subtitleFontStyle;
@@ -1 +1 @@
1
- {"version":3,"file":"LinkPreviewConfiguration.js","sourceRoot":"","sources":["../../../src/extensions/LinkPreview/LinkPreviewConfiguration.ts"],"names":[],"mappings":"AASA,MAAM,OAAO,wBAAwB;IACjC,iBAAiB,CAAS;IAC1B,iBAAiB,CAAqB;IACtC,cAAc,CAAS;IACvB,cAAc,CAAqB;IAEnC,YAAY,EACR,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,cAAc,EACkB;QAChC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;QAC1C,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;QAC1C,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;IACxC,CAAC;CACJ"}
1
+ {"version":3,"file":"LinkPreviewConfiguration.js","sourceRoot":"","sources":["../../../src/extensions/LinkPreview/LinkPreviewConfiguration.ts"],"names":[],"mappings":"AASA,MAAM,OAAO,wBAAwB;IAMjC,YAAY,EACR,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,cAAc,EACkB;QAChC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;QAC1C,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;QAC1C,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;IACxC,CAAC;CACJ"}
@@ -1,7 +1,7 @@
1
1
  import { ExtensionsDataSource } from "../../shared/framework";
2
2
  import { LinkPreviewConfigurationInterface } from "./LinkPreviewConfiguration";
3
3
  export declare class LinkPreviewExtention extends ExtensionsDataSource {
4
- linkPreviewConfiguration: LinkPreviewConfigurationInterface;
4
+ linkPreviewConfiguration?: LinkPreviewConfigurationInterface;
5
5
  constructor(linkPreviewConfiguration?: LinkPreviewConfigurationInterface);
6
6
  addExtension(): void;
7
7
  getExtensionId(): string;
@@ -2,7 +2,6 @@ import { ChatConfigurator, ExtensionsDataSource } from "../../shared/framework";
2
2
  import { ExtensionConstants } from "../ExtensionConstants";
3
3
  import { LinkPreviewExtentionDecorator } from "./LinkPreviewExtentionDecorator";
4
4
  export class LinkPreviewExtention extends ExtensionsDataSource {
5
- linkPreviewConfiguration;
6
5
  constructor(linkPreviewConfiguration) {
7
6
  super();
8
7
  this.linkPreviewConfiguration = linkPreviewConfiguration ? linkPreviewConfiguration : undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"LinkPreviewExtention.js","sourceRoot":"","sources":["../../../src/extensions/LinkPreview/LinkPreviewExtention.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAc,oBAAoB,EAAE,MAAM,wBAAwB,CAAC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AAC,CAAA;QACvF,CAAC,CAAG,CAAA;IACR,CAAC;IAED,oEAAoE;IAC3D,cAAc;QACrB,OAAO,kBAAkB,CAAC,WAAW,CAAC;IACxC,CAAC;CACJ"}
@@ -0,0 +1,12 @@
1
+ import { CometChat } from "@cometchat/chat-sdk-react-native";
2
+ import { DataSource, DataSourceDecorator } from "../../shared/framework";
3
+ import { LinkPreviewConfigurationInterface } from "./LinkPreviewConfiguration";
4
+ import { CometChatTheme } from "../../shared/resources/CometChatTheme";
5
+ import { AdditionalBubbleStylingParams, MessageBubbleAlignmentType } from "../../shared/base/Types";
6
+ export declare class LinkPreviewExtentionDecorator extends DataSourceDecorator {
7
+ linkPreviewConfiguration?: LinkPreviewConfigurationInterface;
8
+ constructor(dataSource: DataSource, linkPreviewConfiguration?: LinkPreviewConfigurationInterface);
9
+ isDeletedMessage(message: CometChat.BaseMessage): boolean;
10
+ getId(): string;
11
+ getTextMessageContentView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme, additionalParams?: AdditionalBubbleStylingParams): JSX.Element | null;
12
+ }
@@ -4,7 +4,6 @@ import { getExtentionData } from "../ExtensionModerator";
4
4
  import { ExtensionConstants } from "../ExtensionConstants";
5
5
  import { LinkPreviewBubble } from "./LinkPreviewBubble";
6
6
  export class LinkPreviewExtentionDecorator extends DataSourceDecorator {
7
- linkPreviewConfiguration;
8
7
  constructor(dataSource, linkPreviewConfiguration) {
9
8
  super(dataSource);
10
9
  if (linkPreviewConfiguration) {
@@ -25,12 +24,12 @@ export class LinkPreviewExtentionDecorator extends DataSourceDecorator {
25
24
  else {
26
25
  const { image, favicon, title, url, description } = linkData.links[0];
27
26
  let img = image.length == 0 ? favicon : image;
28
- return <LinkPreviewBubble link={url} description={description} image={img} ChildView={() => super.getTextMessageBubble(message.getText(), message, alignment, theme, additionalParams)} title={title} style={{
27
+ return React.createElement(LinkPreviewBubble, { link: url, description: description, image: img, ChildView: () => super.getTextMessageBubble(message.getText(), message, alignment, theme, additionalParams), title: title, style: {
29
28
  backgroundColor: "transparent",
30
29
  titleColor: theme.palette.getAccent(),
31
30
  titleFont: theme.typography.title2,
32
31
  subtitleColor: theme.palette.getAccent()
33
- }}/>;
32
+ } });
34
33
  }
35
34
  }
36
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LinkPreviewExtentionDecorator.js","sourceRoot":"","sources":["../../../src/extensions/LinkPreview/LinkPreviewExtentionDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAc,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,MAAM,OAAO,6BAA8B,SAAQ,mBAAmB;IAClE,wBAAwB,CAAoC;IAE5D,YAAY,UAAsB,EAAE,wBAA4D;QAC5F,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,wBAAwB,EAAE,CAAC;YAC3B,IAAI,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;QAC7D,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,OAA8B;QAC3C,OAAO,OAAO,CAAC,YAAY,EAAE,IAAI,IAAI,CAAC;IAC1C,CAAC;IAED,KAAK;QACD,OAAO,sBAAsB,CAAC;IAClC,CAAC;IAED,yBAAyB,CAAC,OAA8B,EAAE,SAAqC,EAAE,KAAqB,EAAE,gBAAgD;QACpK,IAAI,QAAQ,GAAG,gBAAgB,CAAC,OAAO,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;QACzE,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;YAC1C,OAAO,KAAK,CAAC,yBAAyB,CAAC,OAAO,EAAE,SAAS,EAAE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AK,EAAE,KAAK,EACZ,KAAK,EAAE;oBACH,eAAe,EAAE,aAAa;oBAC9B,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE;oBACrC,SAAS,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM;oBAClC,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE;iBAC3C,GACH,CAAA;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -1,4 +1,5 @@
1
1
  import { StyleProp, ViewStyle } from 'react-native';
2
+ import React from 'react';
2
3
  import { FontStyleInterface } from "../../shared/base";
3
4
  import { CometChatMentionsFormatter, CometChatTextFormatter, CometChatUrlsFormatter } from '../../shared';
4
5
  interface textStyle extends FontStyleInterface {
@@ -19,5 +20,5 @@ export interface MessageTranslationBubble {
19
20
  alignment?: string;
20
21
  textFormatters?: Array<CometChatMentionsFormatter | CometChatUrlsFormatter | CometChatTextFormatter>;
21
22
  }
22
- export declare const MessageTranslationBubble: (props: MessageTranslationBubble) => any;
23
+ export declare const MessageTranslationBubble: (props: MessageTranslationBubble) => React.JSX.Element;
23
24
  export {};
@@ -3,13 +3,14 @@ import React, { useContext, useEffect, useState } from 'react';
3
3
  import { CometChatContext, } from '../../shared/CometChatContext';
4
4
  import { CometChatTextBubble, TextBubbleStyle, } from "../../shared/views";
5
5
  export const MessageTranslationBubble = (props) => {
6
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
6
7
  const { theme } = useContext(CometChatContext);
7
8
  const { translatedText, text, style = {}, textContainerStyle, alignment, textFormatters, } = props;
8
9
  const [formattedText, setFormattedText] = useState();
9
10
  const [formattedTranslatedText, setFormattedTranslatedText] = useState();
10
11
  useEffect(() => {
11
- let _formattedText = text;
12
- let _formattedTranslatedText = text;
12
+ let _formattedText = text || '';
13
+ let _formattedTranslatedText = text || '';
13
14
  if (textFormatters && textFormatters.length) {
14
15
  if (textFormatters) {
15
16
  for (let i = 0; i < textFormatters.length; i++) {
@@ -27,39 +28,24 @@ export const MessageTranslationBubble = (props) => {
27
28
  setFormattedText(_formattedText);
28
29
  setFormattedTranslatedText(_formattedTranslatedText);
29
30
  }, []);
30
- const _style = {
31
- ...new TextBubbleStyle({}),
32
- backgroundColor: alignment == 'left'
33
- ? theme?.palette?.getAccent50()
34
- : theme?.palette?.getPrimary(),
35
- textFont: theme?.typography.body,
36
- textColor: alignment == 'right'
37
- ? theme?.palette.getSecondary()
38
- : theme?.palette?.getAccent(),
39
- borderRadius: 8,
40
- translatedTextStyle: {
41
- color: alignment == 'right'
42
- ? theme?.palette.getSecondary()
43
- : theme?.palette?.getAccent(),
44
- ...(theme?.typography?.subtitle2 ?? {
45
- fontSize: 13,
46
- fontWeight: '400',
47
- }),
48
- },
49
- translatedMsgStyle: {
50
- color: alignment == 'right'
51
- ? theme?.palette.getSecondary()
52
- : theme?.palette?.getAccent(),
53
- ...(theme?.typography?.caption2 ?? {
54
- fontSize: 11,
55
- fontWeight: '400',
56
- }),
57
- },
58
- ...style,
59
- };
31
+ const _style = Object.assign(Object.assign(Object.assign({}, new TextBubbleStyle({})), { backgroundColor: alignment == 'left'
32
+ ? (_a = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _a === void 0 ? void 0 : _a.getAccent50()
33
+ : (_b = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _b === void 0 ? void 0 : _b.getPrimary(), textFont: theme === null || theme === void 0 ? void 0 : theme.typography.body, textColor: alignment == 'right'
34
+ ? theme === null || theme === void 0 ? void 0 : theme.palette.getSecondary()
35
+ : (_c = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _c === void 0 ? void 0 : _c.getAccent(), borderRadius: 8, translatedTextStyle: Object.assign({ color: alignment == 'right'
36
+ ? theme === null || theme === void 0 ? void 0 : theme.palette.getSecondary()
37
+ : (_d = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _d === void 0 ? void 0 : _d.getAccent() }, ((_f = (_e = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _e === void 0 ? void 0 : _e.subtitle2) !== null && _f !== void 0 ? _f : {
38
+ fontSize: 13,
39
+ fontWeight: '400',
40
+ })), translatedMsgStyle: Object.assign({ color: alignment == 'right'
41
+ ? theme === null || theme === void 0 ? void 0 : theme.palette.getSecondary()
42
+ : (_g = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _g === void 0 ? void 0 : _g.getAccent() }, ((_j = (_h = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _h === void 0 ? void 0 : _h.caption2) !== null && _j !== void 0 ? _j : {
43
+ fontSize: 11,
44
+ fontWeight: '400',
45
+ })) }), style);
60
46
  const { backgroundColor, border, borderRadius, textColor, textFont, height, width, } = _style;
61
47
  if (translatedText && translatedText !== '') {
62
- return (<View style={[
48
+ return (React.createElement(View, { style: [
63
49
  {
64
50
  backgroundColor,
65
51
  borderRadius,
@@ -70,17 +56,12 @@ export const MessageTranslationBubble = (props) => {
70
56
  },
71
57
  border,
72
58
  textContainerStyle,
73
- ]}>
74
- <Text style={[{ color: textColor }, textFont]}>{formattedText}</Text>
75
- <Text style={[styles.textsPadding, style.translatedTextStyle]}>
76
- {formattedTranslatedText}
77
- </Text>
78
- <Text style={[styles.textsPadding, style.translatedMsgStyle]}>
79
- Translated Message
80
- </Text>
81
- </View>);
59
+ ] },
60
+ React.createElement(Text, { style: [{ color: textColor }, textFont] }, formattedText),
61
+ React.createElement(Text, { style: [styles.textsPadding, style.translatedTextStyle] }, formattedTranslatedText),
62
+ React.createElement(Text, { style: [styles.textsPadding, style.translatedMsgStyle] }, "Translated Message")));
82
63
  }
83
- return (<CometChatTextBubble text={text} textContainerStyle={textContainerStyle} style={_style}/>);
64
+ return (React.createElement(CometChatTextBubble, { text: text, textContainerStyle: textContainerStyle, style: _style }));
84
65
  };
85
66
  const styles = StyleSheet.create({
86
67
  textsPadding: {
@@ -1 +1 @@
1
- {"version":3,"file":"MessageTranslationBubble.js","sourceRoot":"","sources":["../../../src/extensions/MessageTranslation/MessageTranslationBubble.tsx"],"names":[],"mappings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;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"MessageTranslationBubble.js","sourceRoot":"","sources":["../../../src/extensions/MessageTranslation/MessageTranslationBubble.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,IAAI,EAAa,IAAI,EAAwB,MAAM,cAAc,CAAC;AAClG,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EACL,gBAAgB,GACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,mBAAmB,EACnB,eAAe,GAAG,MAAM,oBAAoB,CAAC;AAuB/C,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,KAA+B,EAAE,EAAE;;IAC1E,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC/C,MAAM,EACJ,cAAc,EACd,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,kBAAkB,EAClB,SAAS,EACT,cAAc,GACf,GAAG,KAAK,CAAC;IACV,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,EAAU,CAAC;IAC7D,MAAM,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,GAAG,QAAQ,EAAU,CAAC;IAEjF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,cAAc,GAAW,IAAI,IAAI,EAAE,CAAC;QACxC,IAAI,wBAAwB,GAAW,IAAI,IAAI,EAAE,CAAC;QAClD,IAAI,cAAc,IAAI,cAAc,CAAC,MAAM,EAAE,CAAC;YAC1C,IAAI,cAAc,EAAE,CAAC;gBACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBAC5C,cAAgC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;gBAC3F,CAAC;YACL,CAAC;QACL,CAAC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IACJ,CAAC;IACD,OAAO,CACL,oBAAC,mBAAmB,IAClB,IAAI,EAAE,IAAI,EACV,kBAAkB,EAAE,kBAAkB,EACtC,KAAK,EAAE,MAAM,GACb,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,YAAY,EAAE;QACZ,eAAe,EAAE,CAAC;KACnB;CACF,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { DataSource, DataSourceDecorator } from '../../shared/framework';
2
+ import { CometChat } from '@cometchat/chat-sdk-react-native';
3
+ import { CometChatMessageOption } from "../../shared/modals";
4
+ import { CometChatTheme } from '../../shared/resources/CometChatTheme';
5
+ import { MessageTranslationConfigurationInterface } from './MessageTranslationExtension';
6
+ import { AdditionalBubbleStylingParams, MessageBubbleAlignmentType } from '../../shared/base/Types';
7
+ export declare class MessageTranslationExtensionDecorator extends DataSourceDecorator {
8
+ messageTranslationConfiguration?: MessageTranslationConfigurationInterface;
9
+ translatedMessage: {};
10
+ constructor(dataSource: DataSource, messageTranslationConfiguration?: MessageTranslationConfigurationInterface);
11
+ getId(): string;
12
+ getTextMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group: CometChat.Group): CometChatMessageOption[];
13
+ getTranslateOption(messageObject: any): CometChatMessageOption;
14
+ getSetMetaData: (messageObj: any, messageTranslation: any) => {
15
+ msg: any;
16
+ metaData: any;
17
+ };
18
+ translateMessage: (message: any) => void;
19
+ getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme, additionalParams?: AdditionalBubbleStylingParams): JSX.Element | null;
20
+ }
@@ -14,10 +14,82 @@ import { ICONS } from './resources';
14
14
  import { CometChatUIKit, CometChatUrlsFormatter, MentionTextStyle } from '../../shared';
15
15
  import { CommonUtils } from '../../shared/utils/CommonUtils';
16
16
  export class MessageTranslationExtensionDecorator extends DataSourceDecorator {
17
- messageTranslationConfiguration;
18
- translatedMessage = {};
19
17
  constructor(dataSource, messageTranslationConfiguration) {
20
18
  super(dataSource);
19
+ this.translatedMessage = {};
20
+ this.getSetMetaData = (messageObj, messageTranslation) => {
21
+ let metaData = messageObj.getMetadata();
22
+ if (!metaData) {
23
+ metaData = {};
24
+ }
25
+ if (metaData && !metaData['@injected']) {
26
+ metaData = Object.assign(Object.assign({}, metaData), { '@injected': { extensions: { translate: {} } } });
27
+ }
28
+ if (metaData &&
29
+ metaData['@injected'] &&
30
+ metaData['@injected']['extensions']) {
31
+ let tempData = metaData['@injected']['extensions'];
32
+ tempData = Object.assign(Object.assign({}, metaData), { '@injected': Object.assign(Object.assign({}, metaData['@injected']), { extensions: Object.assign(Object.assign({}, metaData['@injected']['extensions']), { translate: { [messageObj.id]: messageTranslation } }) }) });
33
+ metaData = tempData;
34
+ }
35
+ if (metaData &&
36
+ metaData['@injected'] &&
37
+ metaData['@injected']['extensions']['translate']) {
38
+ let tempMetaData = {};
39
+ let translateData = metaData['@injected']['extensions']['translate'];
40
+ if (translateData) {
41
+ translateData = Object.assign(Object.assign({}, translateData), { [messageObj.id]: messageTranslation });
42
+ }
43
+ else {
44
+ translateData[messageObj.id] = {
45
+ [messageObj.id]: messageTranslation,
46
+ };
47
+ }
48
+ tempMetaData = Object.assign(Object.assign({}, metaData['@injected']['extensions']['translate']), translateData);
49
+ metaData['@injected']['extensions']['translate'] = tempMetaData;
50
+ }
51
+ messageObj.setMetadata(metaData);
52
+ return {
53
+ msg: messageObj,
54
+ metaData: metaData['@injected']['extensions']['translate'],
55
+ };
56
+ };
57
+ this.translateMessage = (message) => {
58
+ const messageId = message.id;
59
+ const messageText = message.text;
60
+ let translateToLanguage = CometChatLocalize.getLocale();
61
+ CometChatUIEventHandler.emitUIEvent(CometChatUIEvents.ccToggleBottomSheet, {
62
+ isBottomSheetVisible: false,
63
+ });
64
+ CometChat.callExtension(ExtensionConstants.messageTranslation, 'POST', ExtensionURLs.translate, {
65
+ msgId: messageId,
66
+ text: messageText,
67
+ languages: [translateToLanguage],
68
+ })
69
+ .then((result) => {
70
+ var _a, _b;
71
+ if ((result === null || result === void 0 ? void 0 : result.hasOwnProperty('translations')) &&
72
+ result['translations']['length']) {
73
+ const messageTranslation = result['translations'][0];
74
+ let translatedMsg = this.getSetMetaData(message, messageTranslation['message_translated']);
75
+ if (translatedMsg) {
76
+ if ((_a = translatedMsg.metaData) === null || _a === void 0 ? void 0 : _a.translate)
77
+ this.translatedMessage = (_b = translatedMsg === null || translatedMsg === void 0 ? void 0 : translatedMsg.metaData) === null || _b === void 0 ? void 0 : _b.translate;
78
+ }
79
+ else
80
+ this.translatedMessage = {
81
+ [message.id]: `${messageTranslation['message_translated']}`,
82
+ };
83
+ CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, {
84
+ message: translatedMsg.msg,
85
+ status: messageStatus.success,
86
+ });
87
+ }
88
+ })
89
+ .catch((error) => {
90
+ console.log(error);
91
+ });
92
+ };
21
93
  if (messageTranslationConfiguration != undefined) {
22
94
  this.messageTranslationConfiguration = messageTranslationConfiguration;
23
95
  }
@@ -40,96 +112,6 @@ export class MessageTranslationExtensionDecorator extends DataSourceDecorator {
40
112
  },
41
113
  };
42
114
  }
43
- getSetMetaData = (messageObj, messageTranslation) => {
44
- let metaData = messageObj.getMetadata();
45
- if (!metaData) {
46
- metaData = {};
47
- }
48
- if (metaData && !metaData['@injected']) {
49
- metaData = {
50
- ...metaData,
51
- '@injected': { extensions: { translate: {} } },
52
- };
53
- }
54
- if (metaData &&
55
- metaData['@injected'] &&
56
- metaData['@injected']['extensions']) {
57
- let tempData = metaData['@injected']['extensions'];
58
- tempData = {
59
- ...metaData,
60
- '@injected': {
61
- ...metaData['@injected'],
62
- extensions: {
63
- ...metaData['@injected']['extensions'],
64
- translate: { [messageObj.id]: messageTranslation },
65
- },
66
- },
67
- };
68
- metaData = tempData;
69
- }
70
- if (metaData &&
71
- metaData['@injected'] &&
72
- metaData['@injected']['extensions']['translate']) {
73
- let tempMetaData = {};
74
- let translateData = metaData['@injected']['extensions']['translate'];
75
- if (translateData) {
76
- translateData = {
77
- ...translateData,
78
- [messageObj.id]: messageTranslation,
79
- };
80
- }
81
- else {
82
- translateData[messageObj.id] = {
83
- [messageObj.id]: messageTranslation,
84
- };
85
- }
86
- tempMetaData = {
87
- ...metaData['@injected']['extensions']['translate'],
88
- ...translateData,
89
- };
90
- metaData['@injected']['extensions']['translate'] = tempMetaData;
91
- }
92
- messageObj.setMetadata(metaData);
93
- return {
94
- msg: messageObj,
95
- metaData: metaData['@injected']['extensions']['translate'],
96
- };
97
- };
98
- translateMessage = (message) => {
99
- const messageId = message.id;
100
- const messageText = message.text;
101
- let translateToLanguage = CometChatLocalize.getLocale();
102
- CometChatUIEventHandler.emitUIEvent(CometChatUIEvents.ccToggleBottomSheet, {
103
- isBottomSheetVisible: false,
104
- });
105
- CometChat.callExtension(ExtensionConstants.messageTranslation, 'POST', ExtensionURLs.translate, {
106
- msgId: messageId,
107
- text: messageText,
108
- languages: [translateToLanguage],
109
- })
110
- .then((result) => {
111
- if (result?.hasOwnProperty('translations') &&
112
- result['translations']['length']) {
113
- const messageTranslation = result['translations'][0];
114
- let translatedMsg = this.getSetMetaData(message, messageTranslation['message_translated']);
115
- if (translatedMsg) {
116
- if (translatedMsg.metaData?.translate)
117
- this.translatedMessage = translatedMsg?.metaData?.translate;
118
- }
119
- else
120
- this.translatedMessage = {
121
- [message.id]: `${messageTranslation['message_translated']}`,
122
- };
123
- CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageEdited, {
124
- message: translatedMsg.msg,
125
- status: messageStatus.success,
126
- });
127
- }
128
- })
129
- .catch((error) => {
130
- console.log(error);
131
- });
132
- };
133
115
  getTextMessageBubble(messageText, message, alignment, theme, additionalParams) {
134
116
  let tempTranslatedMsg = {};
135
117
  let translatedMetaData = message.getMetadata();
@@ -142,12 +124,12 @@ export class MessageTranslationExtensionDecorator extends DataSourceDecorator {
142
124
  }
143
125
  let loggedInUser = CometChatUIKit.loggedInUser;
144
126
  let mentionedUsers = message.getMentionedUsers();
145
- let textFormatters = [...(additionalParams?.textFormatters || [])] || [];
127
+ let textFormatters = [...((additionalParams === null || additionalParams === void 0 ? void 0 : additionalParams.textFormatters) || [])] || [];
146
128
  let linksTextFormatter = ChatConfigurator.getDataSource().getUrlsFormatter(loggedInUser);
147
129
  linksTextFormatter.setMessage(message);
148
130
  linksTextFormatter.setId("ccDefaultUrlsFormatterId");
149
131
  textFormatters.push(linksTextFormatter);
150
- if (!additionalParams?.disableMentions && mentionedUsers && mentionedUsers.length) {
132
+ if (!(additionalParams === null || additionalParams === void 0 ? void 0 : additionalParams.disableMentions) && mentionedUsers && mentionedUsers.length) {
151
133
  let mentionsTextFormatter = ChatConfigurator.getDataSource().getMentionsFormatter(loggedInUser);
152
134
  mentionsTextFormatter.setLoggedInUser(loggedInUser);
153
135
  mentionsTextFormatter.setMessage(message);
@@ -155,26 +137,14 @@ export class MessageTranslationExtensionDecorator extends DataSourceDecorator {
155
137
  let isUserSentMessage = alignment === "right";
156
138
  if (isUserSentMessage) {
157
139
  mentionsTextFormatter.setMentionsStyle(new MentionTextStyle({
158
- loggedInUserTextStyle: {
159
- color: theme.palette.getTertiary(),
160
- ...theme.typography.title2,
161
- },
162
- textStyle: {
163
- color: theme.palette.getTertiary(),
164
- ...theme.typography.subtitle1,
165
- },
140
+ loggedInUserTextStyle: Object.assign({ color: theme.palette.getTertiary() }, theme.typography.title2),
141
+ textStyle: Object.assign({ color: theme.palette.getTertiary() }, theme.typography.subtitle1),
166
142
  }));
167
143
  }
168
144
  else {
169
145
  mentionsTextFormatter.setMentionsStyle(new MentionTextStyle({
170
- loggedInUserTextStyle: {
171
- color: theme.palette.getPrimary(),
172
- ...theme.typography.title2,
173
- },
174
- textStyle: {
175
- color: theme.palette.getPrimary(),
176
- ...theme.typography.subtitle1,
177
- },
146
+ loggedInUserTextStyle: Object.assign({ color: theme.palette.getPrimary() }, theme.typography.title2),
147
+ textStyle: Object.assign({ color: theme.palette.getPrimary() }, theme.typography.subtitle1),
178
148
  }));
179
149
  }
180
150
  textFormatters.push(mentionsTextFormatter);
@@ -201,11 +171,11 @@ export class MessageTranslationExtensionDecorator extends DataSourceDecorator {
201
171
  }
202
172
  if ((tempTranslatedMsg && tempTranslatedMsg[message.getId()]) ||
203
173
  (this.translatedMessage && this.translatedMessage[message.getId()])) {
204
- return (<MessageTranslationBubble translatedText={tempTranslatedMsg
174
+ return (React.createElement(MessageTranslationBubble, Object.assign({ translatedText: tempTranslatedMsg
205
175
  ? tempTranslatedMsg[message.getId()]
206
176
  : this.translatedMessage[message.getId()]
207
177
  ? this.translatedMessage[message.getId()]
208
- : ''} text={messageText} alignment={alignment} textFormatters={finalFormatters} {...this.messageTranslationConfiguration}/>);
178
+ : '', text: messageText, alignment: alignment, textFormatters: finalFormatters }, this.messageTranslationConfiguration)));
209
179
  }
210
180
  return super.getTextMessageBubble(messageText, message, alignment, theme, additionalParams);
211
181
  }