@cometchat/chat-uikit-react-native 5.1.0 → 5.1.2

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 (642) hide show
  1. package/android/src/main/java/com/reactnativecometchatuikit/CometchatUiKitPackage.java +2 -0
  2. package/android/src/main/java/com/reactnativecometchatuikit/ProximityModule.java +53 -0
  3. package/ios/Proximity.h +5 -0
  4. package/ios/Proximity.m +25 -0
  5. package/lib/CometChatConversations/CometChatConversations.js +27 -19
  6. package/lib/CometChatConversations/CometChatConversations.js.map +1 -1
  7. package/lib/CometChatConversations/Skeleton.js +1 -1
  8. package/lib/CometChatConversations/Skeleton.js.map +1 -1
  9. package/lib/CometChatConversations/style.js.map +1 -1
  10. package/lib/CometChatGroupMembers/CometChatGroupMembers.js +52 -41
  11. package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
  12. package/lib/CometChatGroups/CometChatGroups.js +8 -6
  13. package/lib/CometChatGroups/CometChatGroups.js.map +1 -1
  14. package/lib/CometChatGroups/Skeleton.js +1 -1
  15. package/lib/CometChatGroups/Skeleton.js.map +1 -1
  16. package/lib/CometChatMessageComposer/CometChatMessageComposer.js +178 -44
  17. package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
  18. package/lib/CometChatMessageComposer/styles.d.ts +1 -1
  19. package/lib/CometChatMessageComposer/styles.js +1 -5
  20. package/lib/CometChatMessageComposer/styles.js.map +1 -1
  21. package/lib/CometChatMessageHeader/CometChatMessageHeader.js +14 -52
  22. package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
  23. package/lib/CometChatMessageInformation/CometChatMessageInformation.js +7 -12
  24. package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +1 -1
  25. package/lib/CometChatMessageList/CometChatMessageList.js +35 -13
  26. package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
  27. package/lib/CometChatMessageList/style.js +0 -16
  28. package/lib/CometChatMessageList/style.js.map +1 -1
  29. package/lib/CometChatThreadHeader/CometChatThreadHeader.js +4 -2
  30. package/lib/CometChatThreadHeader/CometChatThreadHeader.js.map +1 -1
  31. package/lib/CometChatThreadHeader/Header.d.ts +4 -4
  32. package/lib/CometChatUsers/CometChatUsers.js +7 -5
  33. package/lib/CometChatUsers/CometChatUsers.js.map +1 -1
  34. package/lib/CometChatUsers/Skeleton.js +1 -1
  35. package/lib/CometChatUsers/Skeleton.js.map +1 -1
  36. package/lib/calls/CallUtils.js +24 -17
  37. package/lib/calls/CallUtils.js.map +1 -1
  38. package/lib/calls/CallingExtensionDecorator.js +14 -11
  39. package/lib/calls/CallingExtensionDecorator.js.map +1 -1
  40. package/lib/calls/CallingPackage.js.map +1 -1
  41. package/lib/calls/CometChatCallBubble/CometChatCallBubble.js +4 -3
  42. package/lib/calls/CometChatCallBubble/CometChatCallBubble.js.map +1 -1
  43. package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +1 -1
  44. package/lib/calls/CometChatCallButtons/style.d.ts +1 -1
  45. package/lib/calls/CometChatCallLogs/CometChatCallLogs.js +9 -7
  46. package/lib/calls/CometChatCallLogs/CometChatCallLogs.js.map +1 -1
  47. package/lib/calls/CometChatCallLogs/Skeleton.js +1 -1
  48. package/lib/calls/CometChatCallLogs/Skeleton.js.map +1 -1
  49. package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +8 -6
  50. package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +1 -1
  51. package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js +10 -0
  52. package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js.map +1 -1
  53. package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +4 -2
  54. package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -1
  55. package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +1 -1
  56. package/lib/extensions/CollaborativeBubble/style.js +2 -2
  57. package/lib/extensions/CollaborativeBubble/style.js.map +1 -1
  58. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +5 -4
  59. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +1 -1
  60. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +5 -4
  61. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +1 -1
  62. package/lib/extensions/ExtensionConstants.js +1 -1
  63. package/lib/extensions/ExtensionConstants.js.map +1 -1
  64. package/lib/extensions/ExtensionModerator.js.map +1 -1
  65. package/lib/extensions/LinkPreview/LinkPreviewBubble.js +3 -2
  66. package/lib/extensions/LinkPreview/LinkPreviewBubble.js.map +1 -1
  67. package/lib/extensions/LinkPreview/LinkPreviewExtensionDecorator.js.map +1 -1
  68. package/lib/extensions/MessageTranslation/MessageTranslationBubble.js +3 -2
  69. package/lib/extensions/MessageTranslation/MessageTranslationBubble.js.map +1 -1
  70. package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +17 -17
  71. package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +1 -1
  72. package/lib/extensions/Polls/Polls.js +48 -19
  73. package/lib/extensions/Polls/Polls.js.map +1 -1
  74. package/lib/extensions/Polls/PollsBubble.js.map +1 -1
  75. package/lib/extensions/Polls/PollsDecorator.js +4 -3
  76. package/lib/extensions/Polls/PollsDecorator.js.map +1 -1
  77. package/lib/extensions/Polls/PollsExtension.js.map +1 -1
  78. package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js +4 -3
  79. package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js.map +1 -1
  80. package/lib/extensions/Stickers/CometChatStickerKeyboard/Skeleton.js.map +1 -1
  81. package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.d.ts +2 -1
  82. package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js +3 -2
  83. package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js.map +1 -1
  84. package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +2 -1
  85. package/lib/extensions/Stickers/StickersExtensionDecorator.js +5 -3
  86. package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +1 -1
  87. package/lib/extensions/Stickers/style.js +3 -3
  88. package/lib/extensions/Stickers/style.js.map +1 -1
  89. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -1
  90. package/lib/index.d.ts +7 -3
  91. package/lib/index.js +9 -4
  92. package/lib/index.js.map +1 -1
  93. package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +1 -3
  94. package/lib/shared/CometChatUiKit/CometChatUIKit.js +2 -5
  95. package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -1
  96. package/lib/shared/constants/UIKitConstants.js.map +1 -1
  97. package/lib/shared/events/CometChatMessageEvents/index.js +1 -2
  98. package/lib/shared/events/CometChatMessageEvents/index.js.map +1 -1
  99. package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +1 -2
  100. package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -1
  101. package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -1
  102. package/lib/shared/events/ListenerInitializer.js +1 -2
  103. package/lib/shared/events/ListenerInitializer.js.map +1 -1
  104. package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.d.ts +21 -7
  105. package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +92 -31
  106. package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +1 -1
  107. package/lib/shared/formatters/CometChatTextFormatter.js.map +1 -1
  108. package/lib/shared/formatters/CometChatUrlsFormatter/index.js.map +1 -1
  109. package/lib/shared/framework/ChatConfigurator.js +1 -2
  110. package/lib/shared/framework/ChatConfigurator.js.map +1 -1
  111. package/lib/shared/framework/DataSource.d.ts +2 -2
  112. package/lib/shared/framework/DataSourceDecorator.d.ts +2 -2
  113. package/lib/shared/framework/DataSourceDecorator.js +4 -4
  114. package/lib/shared/framework/DataSourceDecorator.js.map +1 -1
  115. package/lib/shared/framework/MessageDataSource.d.ts +10 -2
  116. package/lib/shared/framework/MessageDataSource.js +144 -44
  117. package/lib/shared/framework/MessageDataSource.js.map +1 -1
  118. package/lib/shared/helper/LocalizedDateHelper.d.ts +70 -0
  119. package/lib/shared/helper/LocalizedDateHelper.js +265 -0
  120. package/lib/shared/helper/LocalizedDateHelper.js.map +1 -0
  121. package/lib/shared/helper/dateHelper.js +1 -2
  122. package/lib/shared/helper/dateHelper.js.map +1 -1
  123. package/lib/shared/helper/functions.d.ts +1 -0
  124. package/lib/shared/helper/functions.js +48 -0
  125. package/lib/shared/helper/functions.js.map +1 -1
  126. package/lib/shared/helper/helperFunctions.d.ts +1 -1
  127. package/lib/shared/helper/helperFunctions.js.map +1 -1
  128. package/lib/shared/helper/useKeyboard.js.map +1 -1
  129. package/lib/shared/helper/useLocalizedDateHook.d.ts +6 -0
  130. package/lib/shared/helper/useLocalizedDateHook.js +15 -0
  131. package/lib/shared/helper/useLocalizedDateHook.js.map +1 -0
  132. package/lib/shared/icons/Icon.js.map +1 -1
  133. package/lib/shared/icons/components/ListItemCheck.d.ts +0 -1
  134. package/lib/shared/icons/components/StickerBase-icon.d.ts +0 -1
  135. package/lib/shared/icons/components/account-circle-fill.d.ts +0 -1
  136. package/lib/shared/icons/components/account-circle.d.ts +0 -1
  137. package/lib/shared/icons/components/activity.d.ts +0 -1
  138. package/lib/shared/icons/components/add-a-photo-fill.d.ts +0 -1
  139. package/lib/shared/icons/components/add-a-photo.d.ts +0 -1
  140. package/lib/shared/icons/components/add-box-fill.d.ts +0 -1
  141. package/lib/shared/icons/components/add-box.d.ts +0 -1
  142. package/lib/shared/icons/components/add-call-fill.d.ts +0 -1
  143. package/lib/shared/icons/components/add-call.d.ts +0 -1
  144. package/lib/shared/icons/components/add-circle-fill.d.ts +0 -1
  145. package/lib/shared/icons/components/add-circle.d.ts +0 -1
  146. package/lib/shared/icons/components/add-comment-fill.d.ts +0 -1
  147. package/lib/shared/icons/components/add-comment.d.ts +0 -1
  148. package/lib/shared/icons/components/add-fill.d.ts +0 -1
  149. package/lib/shared/icons/components/add-reaction-fill.d.ts +0 -1
  150. package/lib/shared/icons/components/add-reaction.d.ts +0 -1
  151. package/lib/shared/icons/components/add.d.ts +0 -1
  152. package/lib/shared/icons/components/ai-conversation-summary-fill.d.ts +0 -1
  153. package/lib/shared/icons/components/ai-conversation-summary.d.ts +0 -1
  154. package/lib/shared/icons/components/ai-fill.d.ts +0 -1
  155. package/lib/shared/icons/components/ai-suggest-reply-fill.d.ts +0 -1
  156. package/lib/shared/icons/components/ai-suggest-reply.d.ts +0 -1
  157. package/lib/shared/icons/components/ai.d.ts +0 -1
  158. package/lib/shared/icons/components/alternate-email-fill.d.ts +0 -1
  159. package/lib/shared/icons/components/alternate-email.d.ts +0 -1
  160. package/lib/shared/icons/components/animals-&-nature.d.ts +0 -1
  161. package/lib/shared/icons/components/archive-fill.d.ts +0 -1
  162. package/lib/shared/icons/components/archive.d.ts +0 -1
  163. package/lib/shared/icons/components/arrow-back-fill.d.ts +0 -1
  164. package/lib/shared/icons/components/arrow-back.d.ts +0 -1
  165. package/lib/shared/icons/components/arrow-forward-fill.d.ts +0 -1
  166. package/lib/shared/icons/components/arrow-forward.d.ts +0 -1
  167. package/lib/shared/icons/components/attach-file-fill.d.ts +0 -1
  168. package/lib/shared/icons/components/attach-file.d.ts +0 -1
  169. package/lib/shared/icons/components/audio-file-type.d.ts +0 -1
  170. package/lib/shared/icons/components/bar-chart-fill.d.ts +0 -1
  171. package/lib/shared/icons/components/bar-chart.d.ts +0 -1
  172. package/lib/shared/icons/components/base-icon.d.ts +0 -1
  173. package/lib/shared/icons/components/bedtime-fill.d.ts +0 -1
  174. package/lib/shared/icons/components/bedtime.d.ts +0 -1
  175. package/lib/shared/icons/components/block-fill.d.ts +0 -1
  176. package/lib/shared/icons/components/block.d.ts +0 -1
  177. package/lib/shared/icons/components/bookmark-add-fill.d.ts +0 -1
  178. package/lib/shared/icons/components/bookmark-add.d.ts +0 -1
  179. package/lib/shared/icons/components/bookmark-fill.d.ts +0 -1
  180. package/lib/shared/icons/components/bookmark.d.ts +0 -1
  181. package/lib/shared/icons/components/calendar-add-on-fill.d.ts +0 -1
  182. package/lib/shared/icons/components/calendar-add-on.d.ts +0 -1
  183. package/lib/shared/icons/components/calendar-today-fill.d.ts +0 -1
  184. package/lib/shared/icons/components/calendar-today.d.ts +0 -1
  185. package/lib/shared/icons/components/call-end-fill.d.ts +0 -1
  186. package/lib/shared/icons/components/call-end.d.ts +0 -1
  187. package/lib/shared/icons/components/call-fill.d.ts +0 -1
  188. package/lib/shared/icons/components/call-log-fill.d.ts +0 -1
  189. package/lib/shared/icons/components/call-log.d.ts +0 -1
  190. package/lib/shared/icons/components/call-made-fill.d.ts +0 -1
  191. package/lib/shared/icons/components/call-made.d.ts +0 -1
  192. package/lib/shared/icons/components/call-missed-fill.d.ts +0 -1
  193. package/lib/shared/icons/components/call-missed-outgoing-fill.d.ts +0 -1
  194. package/lib/shared/icons/components/call-missed-outgoing.d.ts +0 -1
  195. package/lib/shared/icons/components/call-missed.d.ts +0 -1
  196. package/lib/shared/icons/components/call-received-fill.d.ts +0 -1
  197. package/lib/shared/icons/components/call-received.d.ts +0 -1
  198. package/lib/shared/icons/components/call.d.ts +0 -1
  199. package/lib/shared/icons/components/cancel-fill.d.ts +0 -1
  200. package/lib/shared/icons/components/cancel.d.ts +0 -1
  201. package/lib/shared/icons/components/change-circle-fill.d.ts +0 -1
  202. package/lib/shared/icons/components/change-circle.d.ts +0 -1
  203. package/lib/shared/icons/components/chat-bot-fill.d.ts +0 -1
  204. package/lib/shared/icons/components/chat-bot.d.ts +0 -1
  205. package/lib/shared/icons/components/chat-fill.d.ts +0 -1
  206. package/lib/shared/icons/components/chat.d.ts +0 -1
  207. package/lib/shared/icons/components/check-circle-fill.d.ts +0 -1
  208. package/lib/shared/icons/components/check-circle.d.ts +0 -1
  209. package/lib/shared/icons/components/check-fill.d.ts +0 -1
  210. package/lib/shared/icons/components/check.d.ts +0 -1
  211. package/lib/shared/icons/components/chevron-left-fill.d.ts +0 -1
  212. package/lib/shared/icons/components/chevron-left.d.ts +0 -1
  213. package/lib/shared/icons/components/chevron-right-fill.d.ts +0 -1
  214. package/lib/shared/icons/components/chevron-right.d.ts +0 -1
  215. package/lib/shared/icons/components/close-fill.d.ts +0 -1
  216. package/lib/shared/icons/components/close.d.ts +0 -1
  217. package/lib/shared/icons/components/collaborative-document-fill.d.ts +0 -1
  218. package/lib/shared/icons/components/collaborative-document-icon.d.ts +0 -1
  219. package/lib/shared/icons/components/collaborative-document.d.ts +0 -1
  220. package/lib/shared/icons/components/collaborative-whiteboard-fill.d.ts +0 -1
  221. package/lib/shared/icons/components/collaborative-whiteboard-icon.d.ts +0 -1
  222. package/lib/shared/icons/components/collaborative-whiteboard.d.ts +0 -1
  223. package/lib/shared/icons/components/content-copy-fill.d.ts +0 -1
  224. package/lib/shared/icons/components/content-copy.d.ts +0 -1
  225. package/lib/shared/icons/components/crop-fill.d.ts +0 -1
  226. package/lib/shared/icons/components/crop.d.ts +0 -1
  227. package/lib/shared/icons/components/delete-fill.d.ts +0 -1
  228. package/lib/shared/icons/components/delete.d.ts +0 -1
  229. package/lib/shared/icons/components/description-fill.d.ts +0 -1
  230. package/lib/shared/icons/components/description.d.ts +0 -1
  231. package/lib/shared/icons/components/document-file-type.d.ts +0 -1
  232. package/lib/shared/icons/components/done-all-fill.d.ts +0 -1
  233. package/lib/shared/icons/components/done-all.d.ts +0 -1
  234. package/lib/shared/icons/components/download-fill.d.ts +0 -1
  235. package/lib/shared/icons/components/download.d.ts +0 -1
  236. package/lib/shared/icons/components/edit-calendar-fill.d.ts +0 -1
  237. package/lib/shared/icons/components/edit-calendar.d.ts +0 -1
  238. package/lib/shared/icons/components/edit-fill.d.ts +0 -1
  239. package/lib/shared/icons/components/edit-square-fill.d.ts +0 -1
  240. package/lib/shared/icons/components/edit-square.d.ts +0 -1
  241. package/lib/shared/icons/components/edit.d.ts +0 -1
  242. package/lib/shared/icons/components/empty-state.d.ts +0 -1
  243. package/lib/shared/icons/components/error-fill.d.ts +0 -1
  244. package/lib/shared/icons/components/error-state.d.ts +0 -1
  245. package/lib/shared/icons/components/error.d.ts +0 -1
  246. package/lib/shared/icons/components/event-available-fill.d.ts +0 -1
  247. package/lib/shared/icons/components/event-available.d.ts +0 -1
  248. package/lib/shared/icons/components/event-fill.d.ts +0 -1
  249. package/lib/shared/icons/components/event.d.ts +0 -1
  250. package/lib/shared/icons/components/favorite-fill.d.ts +0 -1
  251. package/lib/shared/icons/components/favorite.d.ts +0 -1
  252. package/lib/shared/icons/components/filter-list-fill.d.ts +0 -1
  253. package/lib/shared/icons/components/filter-list-off-fill.d.ts +0 -1
  254. package/lib/shared/icons/components/filter-list-off.d.ts +0 -1
  255. package/lib/shared/icons/components/filter-list.d.ts +0 -1
  256. package/lib/shared/icons/components/flags.d.ts +0 -1
  257. package/lib/shared/icons/components/flip-camera-ios-fill.d.ts +0 -1
  258. package/lib/shared/icons/components/flip-camera-ios.d.ts +0 -1
  259. package/lib/shared/icons/components/food-&-drink.d.ts +0 -1
  260. package/lib/shared/icons/components/forward-fill.d.ts +0 -1
  261. package/lib/shared/icons/components/forward.d.ts +0 -1
  262. package/lib/shared/icons/components/gif-fill.d.ts +0 -1
  263. package/lib/shared/icons/components/gif.d.ts +0 -1
  264. package/lib/shared/icons/components/graphic-eq-fill.d.ts +0 -1
  265. package/lib/shared/icons/components/graphic-eq.d.ts +0 -1
  266. package/lib/shared/icons/components/group-add.d.ts +0 -1
  267. package/lib/shared/icons/components/group-fill.d.ts +0 -1
  268. package/lib/shared/icons/components/group.d.ts +0 -1
  269. package/lib/shared/icons/components/help-fill.d.ts +0 -1
  270. package/lib/shared/icons/components/help.d.ts +0 -1
  271. package/lib/shared/icons/components/history-fill.d.ts +0 -1
  272. package/lib/shared/icons/components/history.d.ts +0 -1
  273. package/lib/shared/icons/components/image-file-type.d.ts +0 -1
  274. package/lib/shared/icons/components/incoming-audio-fill.d.ts +0 -1
  275. package/lib/shared/icons/components/incoming-audio.d.ts +0 -1
  276. package/lib/shared/icons/components/incoming-video-fill.d.ts +0 -1
  277. package/lib/shared/icons/components/incoming-video.d.ts +0 -1
  278. package/lib/shared/icons/components/info-fill.d.ts +0 -1
  279. package/lib/shared/icons/components/info.d.ts +0 -1
  280. package/lib/shared/icons/components/keep-fill.d.ts +0 -1
  281. package/lib/shared/icons/components/keep-off-fill.d.ts +0 -1
  282. package/lib/shared/icons/components/keep-off.d.ts +0 -1
  283. package/lib/shared/icons/components/keep.d.ts +0 -1
  284. package/lib/shared/icons/components/keyboard-arrow-down-fill.d.ts +0 -1
  285. package/lib/shared/icons/components/keyboard-arrow-down.d.ts +0 -1
  286. package/lib/shared/icons/components/keyboard-arrow-up-fill.d.ts +0 -1
  287. package/lib/shared/icons/components/keyboard-arrow-up.d.ts +0 -1
  288. package/lib/shared/icons/components/keyboard-fill.d.ts +0 -1
  289. package/lib/shared/icons/components/keyboard.d.ts +0 -1
  290. package/lib/shared/icons/components/language-fill.d.ts +0 -1
  291. package/lib/shared/icons/components/language.d.ts +0 -1
  292. package/lib/shared/icons/components/link-fill.d.ts +0 -1
  293. package/lib/shared/icons/components/link.d.ts +0 -1
  294. package/lib/shared/icons/components/loading-fill.d.ts +0 -1
  295. package/lib/shared/icons/components/loading.d.ts +0 -1
  296. package/lib/shared/icons/components/location-on-fill.d.ts +0 -1
  297. package/lib/shared/icons/components/location-on.d.ts +0 -1
  298. package/lib/shared/icons/components/lock-fill.d.ts +0 -1
  299. package/lib/shared/icons/components/lock-open-fill.d.ts +0 -1
  300. package/lib/shared/icons/components/lock-open.d.ts +0 -1
  301. package/lib/shared/icons/components/lock.d.ts +0 -1
  302. package/lib/shared/icons/components/logout-fill.d.ts +0 -1
  303. package/lib/shared/icons/components/logout.d.ts +0 -1
  304. package/lib/shared/icons/components/mail-fill.d.ts +0 -1
  305. package/lib/shared/icons/components/mail.d.ts +0 -1
  306. package/lib/shared/icons/components/mic-fill.d.ts +0 -1
  307. package/lib/shared/icons/components/mic-off-fill.d.ts +0 -1
  308. package/lib/shared/icons/components/mic-off.d.ts +0 -1
  309. package/lib/shared/icons/components/mic.d.ts +0 -1
  310. package/lib/shared/icons/components/missed-video-call-fill.d.ts +0 -1
  311. package/lib/shared/icons/components/missed-video-call.d.ts +0 -1
  312. package/lib/shared/icons/components/mood-fill.d.ts +0 -1
  313. package/lib/shared/icons/components/mood.d.ts +0 -1
  314. package/lib/shared/icons/components/more-vert-fill.d.ts +0 -1
  315. package/lib/shared/icons/components/more-vert.d.ts +0 -1
  316. package/lib/shared/icons/components/near-me-fill.d.ts +0 -1
  317. package/lib/shared/icons/components/near-me.d.ts +0 -1
  318. package/lib/shared/icons/components/no-photography-fill.d.ts +0 -1
  319. package/lib/shared/icons/components/no-photography.d.ts +0 -1
  320. package/lib/shared/icons/components/notifications-fill.d.ts +0 -1
  321. package/lib/shared/icons/components/notifications-off-fill.d.ts +0 -1
  322. package/lib/shared/icons/components/notifications-off.d.ts +0 -1
  323. package/lib/shared/icons/components/notifications.d.ts +0 -1
  324. package/lib/shared/icons/components/objects.d.ts +0 -1
  325. package/lib/shared/icons/components/outgoing-audio-fill.d.ts +0 -1
  326. package/lib/shared/icons/components/outgoing-audio.d.ts +0 -1
  327. package/lib/shared/icons/components/outgoing-video-fill.d.ts +0 -1
  328. package/lib/shared/icons/components/outgoing-video.d.ts +0 -1
  329. package/lib/shared/icons/components/pause-fill.d.ts +0 -1
  330. package/lib/shared/icons/components/pause.d.ts +0 -1
  331. package/lib/shared/icons/components/pdf-file-type.d.ts +0 -1
  332. package/lib/shared/icons/components/person-add-fill.d.ts +0 -1
  333. package/lib/shared/icons/components/person-add.d.ts +0 -1
  334. package/lib/shared/icons/components/person-fill.d.ts +0 -1
  335. package/lib/shared/icons/components/person-off.d.ts +0 -1
  336. package/lib/shared/icons/components/person.d.ts +0 -1
  337. package/lib/shared/icons/components/phone-in-talk-fill.d.ts +0 -1
  338. package/lib/shared/icons/components/phone-in-talk.d.ts +0 -1
  339. package/lib/shared/icons/components/phone-incoming-fill.d.ts +0 -1
  340. package/lib/shared/icons/components/phone-incoming.d.ts +0 -1
  341. package/lib/shared/icons/components/phone-missed-fill.d.ts +0 -1
  342. package/lib/shared/icons/components/phone-missed.d.ts +0 -1
  343. package/lib/shared/icons/components/phone-outgoing-fill.d.ts +0 -1
  344. package/lib/shared/icons/components/phone-outgoing.d.ts +0 -1
  345. package/lib/shared/icons/components/photo-camera-fill.d.ts +0 -1
  346. package/lib/shared/icons/components/photo-camera.d.ts +0 -1
  347. package/lib/shared/icons/components/photo-fill.d.ts +0 -1
  348. package/lib/shared/icons/components/photo.d.ts +0 -1
  349. package/lib/shared/icons/components/play-arrow-fill.d.ts +0 -1
  350. package/lib/shared/icons/components/play-arrow.d.ts +0 -1
  351. package/lib/shared/icons/components/play-circle-fill.d.ts +0 -1
  352. package/lib/shared/icons/components/play-circle.d.ts +0 -1
  353. package/lib/shared/icons/components/poll-Icon.d.ts +0 -1
  354. package/lib/shared/icons/components/poll-fill.d.ts +0 -1
  355. package/lib/shared/icons/components/poll.d.ts +0 -1
  356. package/lib/shared/icons/components/presentation-file-type.d.ts +0 -1
  357. package/lib/shared/icons/components/rearrange-fill.d.ts +0 -1
  358. package/lib/shared/icons/components/rearrange.d.ts +0 -1
  359. package/lib/shared/icons/components/refresh-fill.d.ts +0 -1
  360. package/lib/shared/icons/components/refresh.d.ts +0 -1
  361. package/lib/shared/icons/components/reply-all-fill.d.ts +0 -1
  362. package/lib/shared/icons/components/reply-all.d.ts +0 -1
  363. package/lib/shared/icons/components/reply-fill.d.ts +0 -1
  364. package/lib/shared/icons/components/reply.d.ts +0 -1
  365. package/lib/shared/icons/components/retry-fill.d.ts +0 -1
  366. package/lib/shared/icons/components/retry.d.ts +0 -1
  367. package/lib/shared/icons/components/schedule-fill.d.ts +0 -1
  368. package/lib/shared/icons/components/schedule.d.ts +0 -1
  369. package/lib/shared/icons/components/screen-share-fill.d.ts +0 -1
  370. package/lib/shared/icons/components/screen-share.d.ts +0 -1
  371. package/lib/shared/icons/components/search-fill.d.ts +0 -1
  372. package/lib/shared/icons/components/search.d.ts +0 -1
  373. package/lib/shared/icons/components/send-fill.d.ts +0 -1
  374. package/lib/shared/icons/components/send.d.ts +0 -1
  375. package/lib/shared/icons/components/settings-fill.d.ts +0 -1
  376. package/lib/shared/icons/components/settings.d.ts +0 -1
  377. package/lib/shared/icons/components/share-fill.d.ts +0 -1
  378. package/lib/shared/icons/components/share.d.ts +0 -1
  379. package/lib/shared/icons/components/shield-fill.d.ts +0 -1
  380. package/lib/shared/icons/components/shield.d.ts +0 -1
  381. package/lib/shared/icons/components/smileys-&-people.d.ts +0 -1
  382. package/lib/shared/icons/components/spreadsheet-file-type.d.ts +0 -1
  383. package/lib/shared/icons/components/star-fill.d.ts +0 -1
  384. package/lib/shared/icons/components/star.d.ts +0 -1
  385. package/lib/shared/icons/components/sticker-fill.d.ts +0 -1
  386. package/lib/shared/icons/components/sticker.d.ts +0 -1
  387. package/lib/shared/icons/components/stop-circle-fill.d.ts +0 -1
  388. package/lib/shared/icons/components/stop-circle.d.ts +0 -1
  389. package/lib/shared/icons/components/stop-fill.d.ts +0 -1
  390. package/lib/shared/icons/components/stop-screen-share-fill.d.ts +0 -1
  391. package/lib/shared/icons/components/stop-screen-share.d.ts +0 -1
  392. package/lib/shared/icons/components/stop.d.ts +0 -1
  393. package/lib/shared/icons/components/subdirectory-arrow-left-fill.d.ts +0 -1
  394. package/lib/shared/icons/components/subdirectory-arrow-left.d.ts +0 -1
  395. package/lib/shared/icons/components/subdirectory-arrow-right-fill.d.ts +0 -1
  396. package/lib/shared/icons/components/subdirectory-arrow-right.d.ts +0 -1
  397. package/lib/shared/icons/components/sunny-fill.d.ts +0 -1
  398. package/lib/shared/icons/components/sunny.d.ts +0 -1
  399. package/lib/shared/icons/components/symbols.d.ts +0 -1
  400. package/lib/shared/icons/components/text-file-type.d.ts +0 -1
  401. package/lib/shared/icons/components/thumb-down-fill.d.ts +0 -1
  402. package/lib/shared/icons/components/thumb-down.d.ts +0 -1
  403. package/lib/shared/icons/components/thumb-up-fill.d.ts +0 -1
  404. package/lib/shared/icons/components/thumb-up.d.ts +0 -1
  405. package/lib/shared/icons/components/translate-fill.d.ts +0 -1
  406. package/lib/shared/icons/components/translate.d.ts +0 -1
  407. package/lib/shared/icons/components/travel-&-places.d.ts +0 -1
  408. package/lib/shared/icons/components/unknown-file-type.d.ts +0 -1
  409. package/lib/shared/icons/components/upload-fill.d.ts +0 -1
  410. package/lib/shared/icons/components/upload.d.ts +0 -1
  411. package/lib/shared/icons/components/user-empty-icon.d.ts +0 -1
  412. package/lib/shared/icons/components/video-call-fill.d.ts +0 -1
  413. package/lib/shared/icons/components/video-call.d.ts +0 -1
  414. package/lib/shared/icons/components/video-file-type.d.ts +0 -1
  415. package/lib/shared/icons/components/videocam-fill.d.ts +0 -1
  416. package/lib/shared/icons/components/videocam-off-fill.d.ts +0 -1
  417. package/lib/shared/icons/components/videocam-off.d.ts +0 -1
  418. package/lib/shared/icons/components/videocam.d.ts +0 -1
  419. package/lib/shared/icons/components/visibility-off-fill.d.ts +0 -1
  420. package/lib/shared/icons/components/visibility-off.d.ts +0 -1
  421. package/lib/shared/icons/components/volume-down-fill.d.ts +0 -1
  422. package/lib/shared/icons/components/volume-down.d.ts +0 -1
  423. package/lib/shared/icons/components/volume-mute-fill.d.ts +0 -1
  424. package/lib/shared/icons/components/volume-mute.d.ts +0 -1
  425. package/lib/shared/icons/components/volume-off-fill.d.ts +0 -1
  426. package/lib/shared/icons/components/volume-off.d.ts +0 -1
  427. package/lib/shared/icons/components/volume-up-fill.d.ts +0 -1
  428. package/lib/shared/icons/components/volume-up.d.ts +0 -1
  429. package/lib/shared/icons/components/warning-fill.d.ts +0 -1
  430. package/lib/shared/icons/components/warning.d.ts +0 -1
  431. package/lib/shared/icons/components/wifi-fill.d.ts +0 -1
  432. package/lib/shared/icons/components/wifi.d.ts +0 -1
  433. package/lib/shared/icons/components/zip-file-type.d.ts +0 -1
  434. package/lib/shared/icons/components/zoom-in-map-fill.d.ts +0 -1
  435. package/lib/shared/icons/components/zoom-in-map.d.ts +0 -1
  436. package/lib/shared/icons/components/zoom-out-map-fill.d.ts +0 -1
  437. package/lib/shared/icons/components/zoom-out-map.d.ts +0 -1
  438. package/lib/shared/icons/icon-mapping.d.ts +0 -1
  439. package/lib/shared/index.d.ts +20 -14
  440. package/lib/shared/index.js +15 -29
  441. package/lib/shared/index.js.map +1 -1
  442. package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.js.map +1 -1
  443. package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.js.map +1 -1
  444. package/lib/shared/libs/ImageZoom/helper.js.map +1 -1
  445. package/lib/shared/libs/VideoPlayer/DRMType.d.ts +4 -4
  446. package/lib/shared/libs/VideoPlayer/FilterType.d.ts +16 -16
  447. package/lib/shared/libs/VideoPlayer/TextTrackType.d.ts +3 -3
  448. package/lib/shared/libs/VideoPlayer/VideoResizeMode.d.ts +3 -3
  449. package/lib/shared/modals/CometChatMessageTemplate.d.ts +3 -1
  450. package/lib/shared/modals/CometChatMessageTemplate.js +3 -1
  451. package/lib/shared/modals/CometChatMessageTemplate.js.map +1 -1
  452. package/lib/shared/resources/CometChatLocalizeNew/CometChatI18nProvider.d.ts +15 -0
  453. package/lib/shared/resources/CometChatLocalizeNew/CometChatI18nProvider.js +75 -0
  454. package/lib/shared/resources/CometChatLocalizeNew/CometChatI18nProvider.js.map +1 -0
  455. package/lib/shared/resources/CometChatLocalizeNew/CometChatLocalizationHelper.d.ts +9601 -0
  456. package/lib/shared/resources/CometChatLocalizeNew/CometChatLocalizationHelper.js +66 -0
  457. package/lib/shared/resources/CometChatLocalizeNew/CometChatLocalizationHelper.js.map +1 -0
  458. package/lib/shared/resources/CometChatLocalizeNew/CometChatLocalizeContext.d.ts +3 -0
  459. package/lib/shared/resources/CometChatLocalizeNew/CometChatLocalizeContext.js +12 -0
  460. package/lib/shared/resources/CometChatLocalizeNew/CometChatLocalizeContext.js.map +1 -0
  461. package/lib/shared/resources/CometChatLocalizeNew/LocalizationManager.d.ts +5 -0
  462. package/lib/shared/resources/CometChatLocalizeNew/LocalizationManager.js +47 -0
  463. package/lib/shared/resources/CometChatLocalizeNew/LocalizationManager.js.map +1 -0
  464. package/lib/shared/resources/CometChatLocalizeNew/index.d.ts +6 -0
  465. package/lib/shared/resources/CometChatLocalizeNew/index.js +6 -0
  466. package/lib/shared/resources/CometChatLocalizeNew/index.js.map +1 -0
  467. package/lib/shared/resources/{CometChatLocalize → CometChatLocalizeNew}/resources/de/translation.json +11 -1
  468. package/lib/shared/resources/{CometChatLocalize → CometChatLocalizeNew}/resources/en/translation.json +10 -1
  469. package/lib/shared/resources/{CometChatLocalize → CometChatLocalizeNew}/resources/es/translation.json +11 -1
  470. package/lib/shared/resources/{CometChatLocalize → CometChatLocalizeNew}/resources/fr/translation.json +412 -401
  471. package/lib/shared/resources/{CometChatLocalize → CometChatLocalizeNew}/resources/hi/translation.json +10 -1
  472. package/lib/shared/resources/{CometChatLocalize → CometChatLocalizeNew}/resources/hu/translation.json +412 -402
  473. package/lib/shared/resources/CometChatLocalizeNew/resources/it/translation.json +456 -0
  474. package/lib/shared/resources/CometChatLocalizeNew/resources/ja/translation.json +456 -0
  475. package/lib/shared/resources/CometChatLocalizeNew/resources/ko/translation.json +456 -0
  476. package/lib/shared/resources/{CometChatLocalize → CometChatLocalizeNew}/resources/lt/translation.json +412 -402
  477. package/lib/shared/resources/{CometChatLocalize → CometChatLocalizeNew}/resources/ms/translation.json +412 -402
  478. package/lib/shared/resources/CometChatLocalizeNew/resources/nl/translation.json +456 -0
  479. package/lib/shared/resources/{CometChatLocalize → CometChatLocalizeNew}/resources/pt/translation.json +412 -402
  480. package/lib/shared/resources/{CometChatLocalize → CometChatLocalizeNew}/resources/ru/translation.json +412 -402
  481. package/lib/shared/resources/{CometChatLocalize → CometChatLocalizeNew}/resources/sv/translation.json +412 -402
  482. package/lib/shared/resources/CometChatLocalizeNew/resources/tr/translation.json +456 -0
  483. package/lib/shared/resources/{CometChatLocalize → CometChatLocalizeNew}/resources/zh/translation.json +412 -402
  484. package/lib/shared/resources/{CometChatLocalize → CometChatLocalizeNew}/resources/zh-tw/translation.json +412 -401
  485. package/lib/shared/resources/CometChatLocalizeNew/type.d.ts +5 -0
  486. package/lib/shared/resources/CometChatLocalizeNew/type.js +2 -0
  487. package/lib/shared/resources/CometChatLocalizeNew/type.js.map +1 -0
  488. package/lib/shared/resources/CometChatLocalizeNew/useCometChatTranslationHook.d.ts +5 -0
  489. package/lib/shared/resources/CometChatLocalizeNew/useCometChatTranslationHook.js +19 -0
  490. package/lib/shared/resources/CometChatLocalizeNew/useCometChatTranslationHook.js.map +1 -0
  491. package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js +1 -2
  492. package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js.map +1 -1
  493. package/lib/shared/resources/CometChatSoundManager/sound.d.ts +17 -17
  494. package/lib/shared/resources/CometChatSoundManager/sound.js.map +1 -1
  495. package/lib/shared/resources/index.d.ts +1 -2
  496. package/lib/shared/resources/index.js +1 -2
  497. package/lib/shared/resources/index.js.map +1 -1
  498. package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +1 -10
  499. package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +0 -8
  500. package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +1 -1
  501. package/lib/shared/utils/CometChatMessagePreview/index.d.ts +1 -2
  502. package/lib/shared/utils/CometChatMessagePreview/index.js +1 -3
  503. package/lib/shared/utils/CometChatMessagePreview/index.js.map +1 -1
  504. package/lib/shared/utils/CometChatMessagePreview/style.d.ts +60 -450
  505. package/lib/shared/utils/CommonUtils.d.ts +1 -1
  506. package/lib/shared/utils/CommonUtils.js.map +1 -1
  507. package/lib/shared/utils/MessageUtils.d.ts +2 -2
  508. package/lib/shared/utils/MessageUtils.js +10 -11
  509. package/lib/shared/utils/MessageUtils.js.map +1 -1
  510. package/lib/shared/utils/NetworkUtils.js.map +1 -1
  511. package/lib/shared/utils/PermissionUtil.js +5 -4
  512. package/lib/shared/utils/PermissionUtil.js.map +1 -1
  513. package/lib/shared/utils/conversationUtils.js +11 -11
  514. package/lib/shared/utils/conversationUtils.js.map +1 -1
  515. package/lib/shared/utils/icsToJson.js.map +1 -1
  516. package/lib/shared/utils/index.d.ts +2 -2
  517. package/lib/shared/utils/index.js +2 -2
  518. package/lib/shared/utils/index.js.map +1 -1
  519. package/lib/shared/views/CometChatAudioBubble/AnimatedAudioWaves.d.ts +1 -1
  520. package/lib/shared/views/CometChatAudioBubble/AnimatedAudioWaves.js.map +1 -1
  521. package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +5 -3
  522. package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +1 -1
  523. package/lib/shared/views/CometChatAvatar/CometChatAvatar.js +2 -1
  524. package/lib/shared/views/CometChatAvatar/CometChatAvatar.js.map +1 -1
  525. package/lib/shared/views/CometChatBadge/CometChatBadge.js.map +1 -1
  526. package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +1 -1
  527. package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js.map +1 -1
  528. package/lib/shared/views/CometChatDate/CometChatDate.d.ts +11 -11
  529. package/lib/shared/views/CometChatDate/CometChatDate.js +5 -2
  530. package/lib/shared/views/CometChatDate/CometChatDate.js.map +1 -1
  531. package/lib/shared/views/CometChatDateSeperator/CometChatDateSeparator.d.ts +2 -2
  532. package/lib/shared/views/CometChatDateSeperator/CometChatDateSeparator.js +3 -2
  533. package/lib/shared/views/CometChatDateSeperator/CometChatDateSeparator.js.map +1 -1
  534. package/lib/shared/views/CometChatDeletedBubble/CometChatDeletedBubble.js +3 -2
  535. package/lib/shared/views/CometChatDeletedBubble/CometChatDeletedBubble.js.map +1 -1
  536. package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +1 -1
  537. package/lib/shared/views/CometChatEmojiKeyboard/emojis.js +10 -8
  538. package/lib/shared/views/CometChatEmojiKeyboard/emojis.js.map +1 -1
  539. package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +1 -1
  540. package/lib/shared/views/CometChatImageBubble/CometChatImageLoader.js +2 -2
  541. package/lib/shared/views/CometChatImageBubble/CometChatImageLoader.js.map +1 -1
  542. package/lib/shared/views/CometChatList/CometChatList.js +44 -9
  543. package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
  544. package/lib/shared/views/CometChatList/Header.js.map +1 -1
  545. package/lib/shared/views/CometChatListItem/CometChatListItem.js.map +1 -1
  546. package/lib/shared/views/CometChatMediaRecorder/AnimatingMic.d.ts +2 -2
  547. package/lib/shared/views/CometChatMediaRecorder/CometChatAudioPlayer.js.map +1 -1
  548. package/lib/shared/views/CometChatMediaRecorder/CometChatAudioPreview/CometChatAudioPreview.js +13 -6
  549. package/lib/shared/views/CometChatMediaRecorder/CometChatAudioPreview/CometChatAudioPreview.js.map +1 -1
  550. package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +5 -4
  551. package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +1 -1
  552. package/lib/shared/views/CometChatMediaRecorder/Timer.js.map +1 -1
  553. package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js +1 -1
  554. package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +1 -1
  555. package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +3 -2
  556. package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +1 -1
  557. package/lib/shared/views/CometChatReactionList/CometChatReactionList.d.ts +4 -0
  558. package/lib/shared/views/CometChatReactionList/CometChatReactionList.js +13 -7
  559. package/lib/shared/views/CometChatReactionList/CometChatReactionList.js.map +1 -1
  560. package/lib/shared/views/CometChatReactions/CometChatReactions.js.map +1 -1
  561. package/lib/shared/views/CometChatReceipt/CometChatReceipt.js.map +1 -1
  562. package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.d.ts +1 -1
  563. package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js.map +1 -1
  564. package/lib/shared/views/CometChatSuggestionList/CometChatSuggestionList.js.map +1 -1
  565. package/lib/shared/views/CometChatSuggestionList/Skeleton.js +18 -18
  566. package/lib/shared/views/CometChatSuggestionList/Skeleton.js.map +1 -1
  567. package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js +11 -9
  568. package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js.map +1 -1
  569. package/lib/shared/views/CometChatTooltipMenu/CometChatTooltipMenu.d.ts +1 -0
  570. package/lib/shared/views/CometChatTooltipMenu/CometChatTooltipMenu.js.map +1 -1
  571. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +9 -24
  572. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
  573. package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js +61 -61
  574. package/lib/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.js.map +1 -1
  575. package/lib/theme/CometChatThemeHelper.d.ts +69 -69
  576. package/lib/theme/CometChatThemeHelper.js.map +1 -1
  577. package/lib/theme/context.d.ts +3025 -2834
  578. package/lib/theme/context.js +1 -1
  579. package/lib/theme/context.js.map +1 -1
  580. package/lib/theme/default/default.d.ts +6 -0
  581. package/lib/theme/default/default.js +147 -0
  582. package/lib/theme/default/default.js.map +1 -0
  583. package/lib/theme/default/index.d.ts +0 -6
  584. package/lib/theme/default/index.js +0 -178
  585. package/lib/theme/default/index.js.map +1 -1
  586. package/lib/theme/provider.js +1 -1
  587. package/lib/theme/provider.js.map +1 -1
  588. package/package.json +4 -4
  589. package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +15 -9
  590. package/src/CometChatMessageList/CometChatMessageList.tsx +120 -53
  591. package/src/calls/CallUtils.ts +1 -1
  592. package/src/calls/CallingExtensionDecorator.tsx +4 -2
  593. package/src/calls/CometChatIncomingCall/CometChatIncomingCall.tsx +13 -29
  594. package/src/calls/CometChatOngoingCall/CometChatOngoingCall.tsx +13 -0
  595. package/src/calls/CometChatOutgoingCall/CometChatOutgoingCall.tsx +8 -5
  596. package/src/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.tsx +1 -1
  597. package/src/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.tsx +1 -1
  598. package/src/extensions/MessageTranslation/MessageTranslationBubble.tsx +1 -1
  599. package/src/extensions/MessageTranslation/MessageTranslationDecorator.tsx +1 -1
  600. package/src/extensions/Polls/Polls.tsx +50 -22
  601. package/src/extensions/Polls/PollsDecorator.tsx +1 -1
  602. package/src/extensions/Stickers/StickersExtensionDecorator.tsx +1 -1
  603. package/src/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.tsx +1 -1
  604. package/src/shared/framework/MessageDataSource.tsx +1 -1
  605. package/src/shared/helper/LocalizedDateHelper.ts +1 -1
  606. package/src/shared/helper/functions.js +1 -1
  607. package/src/shared/modals/CometChatMessageTemplate.ts +12 -0
  608. package/src/shared/resources/CometChatLocalizeNew/resources/de/translation.json +1 -0
  609. package/src/shared/resources/CometChatLocalizeNew/resources/es/translation.json +1 -0
  610. package/src/shared/resources/CometChatLocalizeNew/resources/fr/translation.json +456 -454
  611. package/src/shared/resources/CometChatLocalizeNew/resources/hu/translation.json +416 -415
  612. package/src/shared/resources/CometChatLocalizeNew/resources/lt/translation.json +415 -414
  613. package/src/shared/resources/CometChatLocalizeNew/resources/ms/translation.json +414 -413
  614. package/src/shared/resources/CometChatLocalizeNew/resources/pt/translation.json +414 -413
  615. package/src/shared/resources/CometChatLocalizeNew/resources/ru/translation.json +414 -413
  616. package/src/shared/resources/CometChatLocalizeNew/resources/sv/translation.json +414 -414
  617. package/src/shared/resources/CometChatLocalizeNew/resources/zh/translation.json +415 -415
  618. package/src/shared/resources/CometChatLocalizeNew/resources/zh-tw/translation.json +415 -413
  619. package/src/shared/utils/PermissionUtil.ts +1 -1
  620. package/src/shared/utils/conversationUtils.ts +1 -1
  621. package/src/shared/views/CometChatAvatar/CometChatAvatar.tsx +4 -2
  622. package/src/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.tsx +5 -1
  623. package/src/shared/views/CometChatEmojiKeyboard/emojis.ts +1 -1
  624. package/src/shared/views/CometChatImageBubble/CometChatImageLoader.tsx +1 -0
  625. package/src/shared/views/CometChatImageViewerModal/ImageViewerModal.tsx +57 -45
  626. package/src/shared/views/CometChatList/CometChatList.tsx +44 -7
  627. package/src/shared/views/CometChatTextBubble/CometChatTextBubble.tsx +121 -74
  628. package/android/.gradle/7.4/checksums/checksums.lock +0 -0
  629. package/android/.gradle/7.4/fileChanges/last-build.bin +0 -0
  630. package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  631. package/android/.gradle/7.4/gc.properties +0 -0
  632. package/android/.gradle/vcs-1/gc.properties +0 -0
  633. package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +0 -79
  634. package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js +0 -152
  635. package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js.map +0 -1
  636. package/lib/shared/resources/CometChatLocalize/index.d.ts +0 -2
  637. package/lib/shared/resources/CometChatLocalize/index.js +0 -3
  638. package/lib/shared/resources/CometChatLocalize/index.js.map +0 -1
  639. package/lib/shared/resources/CometChatLocalize/resources/ar/translation.json +0 -447
  640. package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.d.ts +0 -29
  641. package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.js +0 -29
  642. package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { createContext } from "react";
2
- import { defaultDarkTheme, defaultLightTheme } from "./default";
2
+ import { defaultDarkTheme, defaultLightTheme } from "./default/default";
3
3
  export const themeProviderDefaultValue = {
4
4
  dark: defaultDarkTheme,
5
5
  light: defaultLightTheme,
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/theme/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAShE,MAAM,CAAC,MAAM,yBAAyB,GAAuB;IAC3D,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,iBAAiB;IACxB,IAAI,EAAE,MAAM;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAqB,yBAAyB,CAAC,CAAC;AAEzF,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAA2C,EAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/theme/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AASxE,MAAM,CAAC,MAAM,yBAAyB,GAAuB;IAC3D,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,iBAAiB;IACxB,IAAI,EAAE,MAAM;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAqB,yBAAyB,CAAC,CAAC;AAEzF,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAA2C,EAAS,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { CometChatTheme } from "../type";
2
+ import { DeepPartial } from "../../shared/helper/types";
3
+ export declare const lightThemeMaker: (spacing: CometChatTheme["spacing"], color: CometChatTheme["color"], typography: CometChatTheme["typography"]) => DeepPartial<CometChatTheme>;
4
+ export declare const darkThemeMaker: (spacing: CometChatTheme["spacing"], color: CometChatTheme["color"], typography: CometChatTheme["typography"]) => DeepPartial<CometChatTheme>;
5
+ export declare const defaultLightTheme: DeepPartial<CometChatTheme>;
6
+ export declare const defaultDarkTheme: DeepPartial<CometChatTheme>;
@@ -0,0 +1,147 @@
1
+ import { getCallButtonStyle } from "../../calls/CometChatCallButtons/style";
2
+ import { getCallLogsItemStyle, getCallLogsStyleLight, getCallLogsStyleDark } from "../../calls/CometChatCallLogs/style";
3
+ import { getIncomingCallStyle } from "../../calls/CometChatIncomingCall/style";
4
+ import { getOutgoingCallStyle } from "../../calls/CometChatOutgoingCall";
5
+ import { getConversationStyleDark, getConversationStyleLight, } from "../../CometChatConversations/style";
6
+ import { getGroupMemberStyleDark, getGroupMemberStyleLight, } from "../../CometChatGroupMembers/style";
7
+ import { getGroupListStyleLight, getUserGroupStyleDark } from "../../CometChatGroups/GroupsStyle";
8
+ import { getComposerStyle } from "../../CometChatMessageComposer/styles";
9
+ import { getMessageHeaderStyle } from "../../CometChatMessageHeader/styles";
10
+ import { getMessageInormationListStyleDark, getMessageInormationListStyleLight, } from "../../CometChatMessageInformation/styles";
11
+ import { getMessageListStylesDark, getMessageListStylesLight, } from "../../CometChatMessageList/style";
12
+ import { getThreadHeaderStyleDark, getThreadHeaderStyleLight, } from "../../CometChatThreadHeader/style";
13
+ import { getUserListStyleDark, getUserListStyleLight } from "../../CometChatUsers/style";
14
+ import { getAvatarStyle } from "../../shared/views/CometChatAvatar/styles";
15
+ import { getBadgeStyle } from "../../shared/views/CometChatBadge";
16
+ import { getConfirmDialogStyleDark, getConfirmDialogStyleLight, } from "../../shared/views/CometChatConfirmDialog/style";
17
+ import { getDateStyleDark, getDateStyleLight } from "../../shared/views/CometChatDate";
18
+ import { getQuickReactionStyleDark, getQuickReactionStyleLight, } from "../../shared/views/CometChatQuickReactions/QuickReactionsStyle";
19
+ import { getReactionListStyleDark, getReactionListStyleLight, } from "../../shared/views/CometChatReactionList/ReactionListStyle";
20
+ import { getMessageReceiptStyle } from "../../shared/views/CometChatReceipt/style";
21
+ import { getStatusIndicatorStyles } from "../../shared/views/CometChatStatusIndicator/styles";
22
+ import { getMentionsListStyleDark, getMentionsListStyleLight, } from "../../shared/views/CometChatSuggestionList/style";
23
+ import { defaultColorDark } from "./color/dark";
24
+ import { defaultColorLight } from "./color/light";
25
+ import { defaultSpacing } from "./spacing";
26
+ import { defaultTypography } from "./typography";
27
+ import { getMediaRecorderStyle } from "../../shared/views/CometChatMediaRecorder/style";
28
+ import { getDateSeparatorStyleDark, getDateSeparatorStyleLight } from "../../shared/views/CometChatDateSeperator";
29
+ const getActionSheetStyle = (color, spacing, typography) => {
30
+ return {
31
+ optionsItemStyle: {
32
+ containerStyle: {
33
+ paddingVertical: spacing.padding.p3,
34
+ paddingHorizontal: spacing.padding.p8,
35
+ backgroundColor: color.background1,
36
+ flexDirection: "row",
37
+ alignItems: "center",
38
+ gap: 5,
39
+ },
40
+ titleStyle: {
41
+ ...typography.body.regular,
42
+ color: color.textPrimary,
43
+ },
44
+ iconStyle: {
45
+ height: 24,
46
+ width: 24,
47
+ },
48
+ iconContainerStyle: {},
49
+ },
50
+ };
51
+ };
52
+ const getAIOptionsStyle = (color, spacing, typography) => {
53
+ return {
54
+ optionsItemStyle: {
55
+ containerStyle: {
56
+ padding: spacing.padding.p4,
57
+ backgroundColor: color.background1,
58
+ flexDirection: "row",
59
+ alignItems: "center",
60
+ gap: 5,
61
+ },
62
+ titleStyle: {
63
+ ...typography.body.regular,
64
+ color: color.textPrimary,
65
+ paddingLeft: spacing.padding.p1,
66
+ },
67
+ iconStyle: {
68
+ height: 24,
69
+ width: 24,
70
+ },
71
+ iconContainerStyle: {},
72
+ },
73
+ };
74
+ };
75
+ export const lightThemeMaker = (spacing, color, typography) => {
76
+ return {
77
+ mode: 'light',
78
+ spacing: spacing,
79
+ color: color,
80
+ typography: typography,
81
+ avatarStyle: getAvatarStyle(color, spacing, typography),
82
+ receiptStyles: getMessageReceiptStyle(color, spacing, typography),
83
+ statusIndicatorStyle: getStatusIndicatorStyles(color, spacing, typography),
84
+ badgeStyle: getBadgeStyle(color, spacing, typography),
85
+ dateStyles: getDateStyleLight(color, spacing, typography),
86
+ dateSeparatorStyles: getDateSeparatorStyleLight(color, spacing, typography),
87
+ conversationStyles: getConversationStyleLight(color, spacing, typography),
88
+ confirmDialogStyles: getConfirmDialogStyleLight(color, spacing, typography),
89
+ messageHeaderStyles: getMessageHeaderStyle(color, spacing, typography),
90
+ messageComposerStyles: getComposerStyle(color, spacing, typography),
91
+ userStyles: getUserListStyleLight(color, spacing, typography),
92
+ groupStyles: getGroupListStyleLight(color, spacing, typography),
93
+ groupMemberStyle: getGroupMemberStyleLight(color, spacing, typography),
94
+ callButtonStyles: getCallButtonStyle(color, spacing, typography),
95
+ messageListStyles: getMessageListStylesLight(color, spacing, typography),
96
+ reactionListStyles: getReactionListStyleLight(color, spacing, typography),
97
+ messageInformationStyles: getMessageInormationListStyleLight(color, spacing, typography),
98
+ actionSheetStyle: getActionSheetStyle(color, spacing, typography),
99
+ mentionsListStyle: getMentionsListStyleLight(color, spacing, typography),
100
+ threadHeaderStyles: getThreadHeaderStyleLight(color, spacing, typography),
101
+ aiOptionsStyle: getAIOptionsStyle(color, spacing, typography),
102
+ quickReactionStyle: getQuickReactionStyleLight(color, spacing, typography),
103
+ outgoingCallStyle: getOutgoingCallStyle(color, spacing, typography),
104
+ incomingCallStyle: getIncomingCallStyle(color, spacing, typography),
105
+ callLogsStyles: getCallLogsStyleLight(color, spacing, typography),
106
+ callLogsItemStyle: getCallLogsItemStyle(color, spacing, typography),
107
+ mediaRecorderStyle: getMediaRecorderStyle(color, spacing, typography),
108
+ };
109
+ };
110
+ export const darkThemeMaker = (spacing, color, typography) => {
111
+ return {
112
+ mode: 'dark',
113
+ spacing: spacing,
114
+ color: color,
115
+ typography: typography,
116
+ avatarStyle: getAvatarStyle(color, spacing, typography),
117
+ receiptStyles: getMessageReceiptStyle(color, spacing, typography),
118
+ statusIndicatorStyle: getStatusIndicatorStyles(color, spacing, typography),
119
+ badgeStyle: getBadgeStyle(color, spacing, typography),
120
+ dateStyles: getDateStyleDark(color, spacing, typography),
121
+ dateSeparatorStyles: getDateSeparatorStyleDark(color, spacing, typography),
122
+ conversationStyles: getConversationStyleDark(color, spacing, typography),
123
+ confirmDialogStyles: getConfirmDialogStyleDark(color, spacing, typography),
124
+ messageHeaderStyles: getMessageHeaderStyle(color, spacing, typography),
125
+ messageComposerStyles: getComposerStyle(color, spacing, typography),
126
+ userStyles: getUserListStyleDark(color, spacing, typography),
127
+ groupMemberStyle: getGroupMemberStyleDark(color, spacing, typography),
128
+ groupStyles: getUserGroupStyleDark(color, spacing, typography),
129
+ callButtonStyles: getCallButtonStyle(color, spacing, typography),
130
+ messageListStyles: getMessageListStylesDark(color, spacing, typography),
131
+ reactionListStyles: getReactionListStyleDark(color, spacing, typography),
132
+ messageInformationStyles: getMessageInormationListStyleDark(color, spacing, typography),
133
+ actionSheetStyle: getActionSheetStyle(color, spacing, typography),
134
+ mentionsListStyle: getMentionsListStyleDark(color, spacing, typography),
135
+ threadHeaderStyles: getThreadHeaderStyleDark(color, spacing, typography),
136
+ aiOptionsStyle: getAIOptionsStyle(color, spacing, typography),
137
+ quickReactionStyle: getQuickReactionStyleDark(color, spacing, typography),
138
+ outgoingCallStyle: getOutgoingCallStyle(color, spacing, typography),
139
+ incomingCallStyle: getIncomingCallStyle(color, spacing, typography),
140
+ callLogsStyles: getCallLogsStyleDark(color, spacing, typography),
141
+ callLogsItemStyle: getCallLogsItemStyle(color, spacing, typography),
142
+ mediaRecorderStyle: getMediaRecorderStyle(color, spacing, typography),
143
+ };
144
+ };
145
+ export const defaultLightTheme = lightThemeMaker(defaultSpacing, defaultColorLight, defaultTypography);
146
+ export const defaultDarkTheme = darkThemeMaker(defaultSpacing, defaultColorDark, defaultTypography);
147
+ //# sourceMappingURL=default.js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AC"}
@@ -1,9 +1,3 @@
1
- import { CometChatTheme } from "../type";
2
- import { DeepPartial } from "../../shared/helper/types";
3
- export declare const lightThemeMaker: (spacing: CometChatTheme["spacing"], color: CometChatTheme["color"], typography: CometChatTheme["typography"]) => DeepPartial<CometChatTheme>;
4
- export declare const darkThemeMaker: (spacing: CometChatTheme["spacing"], color: CometChatTheme["color"], typography: CometChatTheme["typography"]) => DeepPartial<CometChatTheme>;
5
- export declare const defaultLightTheme: DeepPartial<CometChatTheme>;
6
- export declare const defaultDarkTheme: DeepPartial<CometChatTheme>;
7
1
  export * from "./color/dark";
8
2
  export * from "./color/light";
9
3
  export * from "./spacing";
@@ -1,181 +1,3 @@
1
- import { getCallButtonStyle } from "../../calls/CometChatCallButtons/style";
2
- import { getCallLogsItemStyle, getCallLogsStyleLight, getCallLogsStyleDark } from "../../calls/CometChatCallLogs/style";
3
- import { getIncomingCallStyle } from "../../calls/CometChatIncomingCall/style";
4
- import { getOutgoingCallStyle } from "../../calls/CometChatOutgoingCall";
5
- import { getConversationStyleDark, getConversationStyleLight, } from "../../CometChatConversations/style";
6
- import { getGroupMemberStyleDark, getGroupMemberStyleLight, } from "../../CometChatGroupMembers/style";
7
- import { getGroupListStyleLight, getUserGroupStyleDark } from "../../CometChatGroups/GroupsStyle";
8
- import { getComposerStyle } from "../../CometChatMessageComposer/styles";
9
- import { getMessageHeaderStyle } from "../../CometChatMessageHeader/styles";
10
- import { getMessageInormationListStyleDark, getMessageInormationListStyleLight, } from "../../CometChatMessageInformation/styles";
11
- import { getMessageListStylesDark, getMessageListStylesLight, } from "../../CometChatMessageList/style";
12
- import { getThreadHeaderStyleDark, getThreadHeaderStyleLight, } from "../../CometChatThreadHeader/style";
13
- import { getUserListStyleDark, getUserListStyleLight } from "../../CometChatUsers/style";
14
- import { getAvatarStyle } from "../../shared/views/CometChatAvatar";
15
- import { getBadgeStyle } from "../../shared/views/CometChatBadge";
16
- import { getConfirmDialogStyleDark, getConfirmDialogStyleLight, } from "../../shared/views/CometChatConfirmDialog/style";
17
- import { getDateStyleDark, getDateStyleLight } from "../../shared/views/CometChatDate";
18
- import { getQuickReactionStyleDark, getQuickReactionStyleLight, } from "../../shared/views/CometChatQuickReactions/QuickReactionsStyle";
19
- import { getReactionListStyleDark, getReactionListStyleLight, } from "../../shared/views/CometChatReactionList/ReactionListStyle";
20
- import { getMessageReceiptStyle } from "../../shared/views/CometChatReceipt/style";
21
- import { getStatusIndicatorStyles } from "../../shared/views/CometChatStatusIndicator/styles";
22
- import { getMentionsListStyleDark, getMentionsListStyleLight, } from "../../shared/views/CometChatSuggestionList/style";
23
- import { defaultColorDark } from "./color/dark";
24
- import { defaultColorLight } from "./color/light";
25
- import { defaultSpacing } from "./spacing";
26
- import { defaultTypography } from "./typography";
27
- import { getMediaRecorderStyle } from "../../shared/views/CometChatMediaRecorder/style";
28
- import { getDateSeparatorStyleDark, getDateSeparatorStyleLight } from "../../shared/views/CometChatDateSeperator";
29
- const getActionSheetStyle = (color, spacing, typography) => {
30
- return {
31
- optionsItemStyle: {
32
- containerStyle: {
33
- paddingVertical: spacing.padding.p3,
34
- paddingHorizontal: spacing.padding.p8,
35
- backgroundColor: color.background1,
36
- flexDirection: "row",
37
- alignItems: "center",
38
- gap: 5,
39
- },
40
- titleStyle: {
41
- ...typography.body.regular,
42
- color: color.textPrimary,
43
- },
44
- iconStyle: {
45
- height: 24,
46
- width: 24,
47
- },
48
- iconContainerStyle: {},
49
- },
50
- };
51
- };
52
- // const getAttachmentOptionsStyle = (
53
- // color: CometChatTheme["color"],
54
- // spacing: CometChatTheme["spacing"],
55
- // typography: CometChatTheme["typography"]
56
- // ): ActionSheetStyle => {
57
- // return {
58
- // optionsItemStyle: {
59
- // containerStyle: {
60
- // paddingVertical: spacing.padding.p3,
61
- // paddingHorizontal: spacing.padding.p4,
62
- // backgroundColor: color.background1,
63
- // flexDirection: "row",
64
- // alignItems: "center",
65
- // gap: 5,
66
- // },
67
- // titleStyle: {
68
- // ...typography.body.regular,
69
- // color: color.textPrimary,
70
- // paddingLeft: spacing.padding.p1,
71
- // },
72
- // iconStyle: {
73
- // height: 24,
74
- // width: 24,
75
- // },
76
- // iconContainerStyle: {},
77
- // },
78
- // };
79
- // };
80
- const getAIOptionsStyle = (color, spacing, typography) => {
81
- return {
82
- optionsItemStyle: {
83
- containerStyle: {
84
- padding: spacing.padding.p4,
85
- backgroundColor: color.background1,
86
- flexDirection: "row",
87
- alignItems: "center",
88
- gap: 5,
89
- },
90
- titleStyle: {
91
- ...typography.body.regular,
92
- color: color.textPrimary,
93
- paddingLeft: spacing.padding.p1,
94
- },
95
- iconStyle: {
96
- height: 24,
97
- width: 24,
98
- },
99
- iconContainerStyle: {},
100
- },
101
- };
102
- };
103
- export const lightThemeMaker = (spacing, color, typography) => {
104
- return {
105
- mode: 'light',
106
- spacing: spacing,
107
- color: color,
108
- typography: typography,
109
- avatarStyle: getAvatarStyle(color, spacing, typography),
110
- receiptStyles: getMessageReceiptStyle(color, spacing, typography),
111
- statusIndicatorStyle: getStatusIndicatorStyles(color, spacing, typography),
112
- badgeStyle: getBadgeStyle(color, spacing, typography),
113
- dateStyles: getDateStyleLight(color, spacing, typography),
114
- dateSeparatorStyles: getDateSeparatorStyleLight(color, spacing, typography),
115
- conversationStyles: getConversationStyleLight(color, spacing, typography),
116
- confirmDialogStyles: getConfirmDialogStyleLight(color, spacing, typography),
117
- messageHeaderStyles: getMessageHeaderStyle(color, spacing, typography),
118
- messageComposerStyles: getComposerStyle(color, spacing, typography),
119
- userStyles: getUserListStyleLight(color, spacing, typography),
120
- groupStyles: getGroupListStyleLight(color, spacing, typography),
121
- groupMemberStyle: getGroupMemberStyleLight(color, spacing, typography),
122
- callButtonStyles: getCallButtonStyle(color, spacing, typography),
123
- messageListStyles: getMessageListStylesLight(color, spacing, typography),
124
- reactionListStyles: getReactionListStyleLight(color, spacing, typography),
125
- messageInformationStyles: getMessageInormationListStyleLight(color, spacing, typography),
126
- //messageOptionsStyles: getMessageOptionsStyle(color, spacing, typography),
127
- //attachmentOptionsStyles: getAttachmentOptionsStyle(color, spacing, typography),
128
- actionSheetStyle: getActionSheetStyle(color, spacing, typography),
129
- mentionsListStyle: getMentionsListStyleLight(color, spacing, typography),
130
- threadHeaderStyles: getThreadHeaderStyleLight(color, spacing, typography),
131
- aiOptionsStyle: getAIOptionsStyle(color, spacing, typography),
132
- quickReactionStyle: getQuickReactionStyleLight(color, spacing, typography),
133
- outgoingCallStyle: getOutgoingCallStyle(color, spacing, typography),
134
- incomingCallStyle: getIncomingCallStyle(color, spacing, typography),
135
- callLogsStyles: getCallLogsStyleLight(color, spacing, typography),
136
- callLogsItemStyle: getCallLogsItemStyle(color, spacing, typography),
137
- mediaRecorderStyle: getMediaRecorderStyle(color, spacing, typography),
138
- };
139
- };
140
- export const darkThemeMaker = (spacing, color, typography) => {
141
- return {
142
- mode: 'dark',
143
- spacing: spacing,
144
- color: color,
145
- typography: typography,
146
- avatarStyle: getAvatarStyle(color, spacing, typography),
147
- receiptStyles: getMessageReceiptStyle(color, spacing, typography),
148
- statusIndicatorStyle: getStatusIndicatorStyles(color, spacing, typography),
149
- badgeStyle: getBadgeStyle(color, spacing, typography),
150
- dateStyles: getDateStyleDark(color, spacing, typography),
151
- dateSeparatorStyles: getDateSeparatorStyleDark(color, spacing, typography),
152
- conversationStyles: getConversationStyleDark(color, spacing, typography),
153
- confirmDialogStyles: getConfirmDialogStyleDark(color, spacing, typography),
154
- messageHeaderStyles: getMessageHeaderStyle(color, spacing, typography),
155
- messageComposerStyles: getComposerStyle(color, spacing, typography),
156
- userStyles: getUserListStyleDark(color, spacing, typography),
157
- groupMemberStyle: getGroupMemberStyleDark(color, spacing, typography),
158
- groupStyles: getUserGroupStyleDark(color, spacing, typography),
159
- callButtonStyles: getCallButtonStyle(color, spacing, typography),
160
- messageListStyles: getMessageListStylesDark(color, spacing, typography),
161
- reactionListStyles: getReactionListStyleDark(color, spacing, typography),
162
- messageInformationStyles: getMessageInormationListStyleDark(color, spacing, typography),
163
- //messageOptionsStyles: getMessageOptionsStyle(color, spacing, typography),
164
- //attachmentOptionsStyles: getAttachmentOptionsStyle(color, spacing, typography),
165
- actionSheetStyle: getActionSheetStyle(color, spacing, typography),
166
- mentionsListStyle: getMentionsListStyleDark(color, spacing, typography),
167
- threadHeaderStyles: getThreadHeaderStyleDark(color, spacing, typography),
168
- aiOptionsStyle: getAIOptionsStyle(color, spacing, typography),
169
- quickReactionStyle: getQuickReactionStyleDark(color, spacing, typography),
170
- outgoingCallStyle: getOutgoingCallStyle(color, spacing, typography),
171
- incomingCallStyle: getIncomingCallStyle(color, spacing, typography),
172
- callLogsStyles: getCallLogsStyleDark(color, spacing, typography),
173
- callLogsItemStyle: getCallLogsItemStyle(color, spacing, typography),
174
- mediaRecorderStyle: getMediaRecorderStyle(color, spacing, typography),
175
- };
176
- };
177
- export const defaultLightTheme = lightThemeMaker(defaultSpacing, defaultColorLight, defaultTypography);
178
- export const defaultDarkTheme = darkThemeMaker(defaultSpacing, defaultColorDark, defaultTypography);
179
1
  export * from "./color/dark";
180
2
  export * from "./color/light";
181
3
  export * from "./spacing";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme/default/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AACxH,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EACL,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAClG,O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,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme/default/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
@@ -3,7 +3,7 @@ import { useColorScheme, Platform } from "react-native";
3
3
  import { deepMerge } from "../shared/helper/helperFunctions";
4
4
  import { Brightness, CometChatThemeHelper } from "./CometChatThemeHelper";
5
5
  import { CompThemeContext, ThemeContext, } from "./context";
6
- import { darkThemeMaker, lightThemeMaker } from "./default";
6
+ import { darkThemeMaker, lightThemeMaker } from "./default/default";
7
7
  import { useThemeInternal } from "./hook";
8
8
  function useDebounce(value, delay) {
9
9
  const [debouncedValue, setDebouncedValue] = useState(value);
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/theme/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EACP,QAAQ,EACR,SAAS,GACV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EACL,gBAAgB,EAChB,YAAY,GAEb,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAO1C,SAAS,WAAW,CAAI,KAAQ,EAAE,KAAa;IAC7C,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5D,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YAC9B,iBAAiB,CAAC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AAO,SAAS,CAAC,oCAAoC,EAAE,IAAI,CAAC,CAAC;QAC/D,CAAC;QACD,OAAO,mBAAmB,CAAC,IAAI,CAAC;IAClC,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC;IAErC,MAAM,UAAU,GAAG;QACjB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,SAAS;QACf,qEAAqE;QACrE,IAAI,EACF,IAAI,KAAK,MAAM;YACb,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;YACjD,CAAC,CAAC,IAAI;KACX,CAAC;IAEF,OAAO,CACL,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,CACvC;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,YAAY,CAAC,QAAQ,CAAC,CACzB,CAAC;AACJ,CAAC,CAAC;AAMF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EACzC,QAAQ,EACR,KAAK,GAAG,EAAS,GACkC,EAAE,EAAE;IACvD,OAAO,CACL,CAAC,gBAAgB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CACtC;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAC7B,CAAC;AACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/chat-uikit-react-native",
3
- "version": "5.1.0",
3
+ "version": "5.1.2",
4
4
  "description": "Ready-to-use Chat UI Components for React Native",
5
5
  "main": "src/index",
6
6
  "module": "src/index",
@@ -67,8 +67,7 @@
67
67
  "dependencies": {
68
68
  "@types/prop-types": "^15.7.14",
69
69
  "dayjs": "^1.11.18",
70
- "prop-types": "^15.8.1",
71
- "react-native-localize": "^3.5.2"
70
+ "prop-types": "^15.8.1"
72
71
  },
73
72
  "peerDependencies": {
74
73
  "@cometchat/chat-sdk-react-native": "*",
@@ -77,7 +76,8 @@
77
76
  "react-native": "*",
78
77
  "react-native-gesture-handler": "*",
79
78
  "react-native-svg": "*",
80
- "react-native-video": "*"
79
+ "react-native-video": "*",
80
+ "react-native-localize": "*"
81
81
  },
82
82
  "jest": {
83
83
  "preset": "react-native",
@@ -114,7 +114,7 @@ export const CometChatMessageHeader = (props: CometChatMessageHeaderInterface) =
114
114
  const msgTypingListenerId = "message_typing_" + new Date().getTime();
115
115
  const groupListenerId = "head_group_" + new Date().getTime();
116
116
  const theme = useTheme();
117
- const {t}= useCometChatTranslation()
117
+ const { t } = useCometChatTranslation();
118
118
 
119
119
  const {
120
120
  TitleView,
@@ -160,7 +160,6 @@ export const CometChatMessageHeader = (props: CometChatMessageHeaderInterface) =
160
160
  hoursAgo: (hours: number) => `${hours} hour${hours === 1 ? "" : "s"} ago`,
161
161
  };
162
162
 
163
-
164
163
  /**
165
164
  * Renders the back button.
166
165
  */
@@ -203,10 +202,10 @@ export const CometChatMessageHeader = (props: CometChatMessageHeaderInterface) =
203
202
  ? { uri: userObj.getAvatar() }
204
203
  : undefined
205
204
  : groupObj
206
- ? groupObj.getIcon()
207
- ? { uri: groupObj.getIcon() }
205
+ ? groupObj.getIcon()
206
+ ? { uri: groupObj.getIcon() }
207
+ : undefined
208
208
  : undefined
209
- : undefined
210
209
  }
211
210
  name={(userObj?.getName() ?? groupObj?.getName())!}
212
211
  />
@@ -232,8 +231,15 @@ export const CometChatMessageHeader = (props: CometChatMessageHeaderInterface) =
232
231
  const SubtitleViewFnc = useCallback(() => {
233
232
  try {
234
233
  if (typingText !== "")
235
- return <Text style={[messageHeaderStyles.typingIndicatorTextStyle]}>{typingText}</Text>;
236
-
234
+ return (
235
+ <Text
236
+ numberOfLines={1}
237
+ ellipsizeMode='tail'
238
+ style={[messageHeaderStyles.typingIndicatorTextStyle]}
239
+ >
240
+ {typingText}
241
+ </Text>
242
+ );
237
243
  let subtitle = "";
238
244
 
239
245
  if (groupObj) {
@@ -300,8 +306,8 @@ export const CometChatMessageHeader = (props: CometChatMessageHeaderInterface) =
300
306
  } else if (
301
307
  receiverTypeRef.current === CometChat.RECEIVER_TYPE.USER &&
302
308
  receiverTypeRef.current === typist.getReceiverType() &&
303
- userObj?.getUid() === typist.getSender().getUid()
304
- && !(userObj.getBlockedByMe() || userObj.getHasBlockedMe())
309
+ userObj?.getUid() === typist.getSender().getUid() &&
310
+ !(userObj.getBlockedByMe() || userObj.getHasBlockedMe())
305
311
  ) {
306
312
  setTypingText(status === "typing" ? t("TYPING") : "");
307
313
  }