stream-chat-react-native-core 9.0.0-beta.30 → 9.0.0-beta.32

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 (750) hide show
  1. package/lib/commonjs/components/Attachment/Attachment.js +15 -52
  2. package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
  3. package/lib/commonjs/components/Attachment/FileAttachment.js +4 -6
  4. package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
  5. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +4 -10
  6. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
  7. package/lib/commonjs/components/Attachment/FilePreview.js +3 -6
  8. package/lib/commonjs/components/Attachment/FilePreview.js.map +1 -1
  9. package/lib/commonjs/components/Attachment/Gallery.js +9 -28
  10. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  11. package/lib/commonjs/components/Attachment/GalleryImage.js +3 -3
  12. package/lib/commonjs/components/Attachment/GalleryImage.js.map +1 -1
  13. package/lib/commonjs/components/Attachment/Giphy/GiphyImage.js +7 -13
  14. package/lib/commonjs/components/Attachment/Giphy/GiphyImage.js.map +1 -1
  15. package/lib/commonjs/components/Attachment/UnsupportedAttachment.js +4 -6
  16. package/lib/commonjs/components/Attachment/UnsupportedAttachment.js.map +1 -1
  17. package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js +3 -3
  18. package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
  19. package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js +3 -3
  20. package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
  21. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +4 -2
  22. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  23. package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +7 -4
  24. package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
  25. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +9 -13
  26. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  27. package/lib/commonjs/components/Channel/Channel.js +9 -418
  28. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  29. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +0 -8
  30. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  31. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +3 -77
  32. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  33. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +2 -132
  34. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  35. package/lib/commonjs/components/ChannelList/ChannelList.js +1 -57
  36. package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
  37. package/lib/commonjs/components/ChannelList/ChannelListLoadingIndicator.js +4 -2
  38. package/lib/commonjs/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
  39. package/lib/commonjs/components/ChannelList/ChannelListView.js +11 -20
  40. package/lib/commonjs/components/ChannelList/ChannelListView.js.map +1 -1
  41. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js +1 -39
  42. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  43. package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js +3 -2
  44. package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
  45. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +4 -6
  46. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  47. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +6 -18
  48. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  49. package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js +8 -28
  50. package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
  51. package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js +3 -3
  52. package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
  53. package/lib/commonjs/components/Chat/Chat.js +4 -6
  54. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  55. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +0 -2
  56. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  57. package/lib/commonjs/components/ImageGallery/ImageGallery.js +7 -9
  58. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  59. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +4 -2
  60. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  61. package/lib/commonjs/components/Message/Message.js +9 -13
  62. package/lib/commonjs/components/Message/Message.js.map +1 -1
  63. package/lib/commonjs/components/Message/MessageItemView/MessageBubble.js +4 -2
  64. package/lib/commonjs/components/Message/MessageItemView/MessageBubble.js.map +1 -1
  65. package/lib/commonjs/components/Message/MessageItemView/MessageContent.js +18 -39
  66. package/lib/commonjs/components/Message/MessageItemView/MessageContent.js.map +1 -1
  67. package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js +5 -7
  68. package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
  69. package/lib/commonjs/components/Message/MessageItemView/MessageFooter.js +4 -8
  70. package/lib/commonjs/components/Message/MessageItemView/MessageFooter.js.map +1 -1
  71. package/lib/commonjs/components/Message/MessageItemView/MessageHeader.js +8 -16
  72. package/lib/commonjs/components/Message/MessageItemView/MessageHeader.js.map +1 -1
  73. package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js +13 -35
  74. package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js.map +1 -1
  75. package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js +3 -5
  76. package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js.map +1 -1
  77. package/lib/commonjs/components/Message/MessageItemView/MessageTextContainer.js +3 -3
  78. package/lib/commonjs/components/Message/MessageItemView/MessageTextContainer.js.map +1 -1
  79. package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js +6 -4
  80. package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
  81. package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListBottom.js +6 -8
  82. package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListBottom.js.map +1 -1
  83. package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListTop.js +7 -11
  84. package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListTop.js.map +1 -1
  85. package/lib/commonjs/components/Message/MessageItemView/utils/renderText.js +3 -1
  86. package/lib/commonjs/components/Message/MessageItemView/utils/renderText.js.map +1 -1
  87. package/lib/commonjs/components/MessageInput/MessageComposer.js +15 -55
  88. package/lib/commonjs/components/MessageInput/MessageComposer.js.map +1 -1
  89. package/lib/commonjs/components/MessageInput/MessageInputHeaderView.js +5 -5
  90. package/lib/commonjs/components/MessageInput/MessageInputHeaderView.js.map +1 -1
  91. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js +9 -17
  92. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js.map +1 -1
  93. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js +5 -5
  94. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js.map +1 -1
  95. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js +5 -5
  96. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js.map +1 -1
  97. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +5 -5
  98. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
  99. package/lib/commonjs/components/MessageInput/components/InputButtons/index.js +4 -4
  100. package/lib/commonjs/components/MessageInput/components/InputButtons/index.js.map +1 -1
  101. package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js +3 -2
  102. package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js.map +1 -1
  103. package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js +7 -13
  104. package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js.map +1 -1
  105. package/lib/commonjs/components/MessageList/MessageFlashList.js +14 -40
  106. package/lib/commonjs/components/MessageList/MessageFlashList.js.map +1 -1
  107. package/lib/commonjs/components/MessageList/MessageList.js +12 -38
  108. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  109. package/lib/commonjs/components/MessageList/StickyHeader.js +3 -1
  110. package/lib/commonjs/components/MessageList/StickyHeader.js.map +1 -1
  111. package/lib/commonjs/components/MessageMenu/MessageActionList.js +4 -2
  112. package/lib/commonjs/components/MessageMenu/MessageActionList.js.map +1 -1
  113. package/lib/commonjs/components/MessageMenu/MessageMenu.js.map +1 -1
  114. package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +4 -8
  115. package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
  116. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +4 -2
  117. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
  118. package/lib/commonjs/components/Poll/CreatePollContent.js +8 -4
  119. package/lib/commonjs/components/Poll/CreatePollContent.js.map +1 -1
  120. package/lib/commonjs/components/Poll/Poll.js +12 -9
  121. package/lib/commonjs/components/Poll/Poll.js.map +1 -1
  122. package/lib/commonjs/components/Poll/components/MultipleAnswersField.js +5 -3
  123. package/lib/commonjs/components/Poll/components/MultipleAnswersField.js.map +1 -1
  124. package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js +5 -3
  125. package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js.map +1 -1
  126. package/lib/commonjs/components/Poll/components/PollAnswersList.js +5 -3
  127. package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -1
  128. package/lib/commonjs/components/Poll/components/PollInputDialog.js +2 -1
  129. package/lib/commonjs/components/Poll/components/PollInputDialog.js.map +1 -1
  130. package/lib/commonjs/components/Poll/components/PollOption.js +5 -3
  131. package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
  132. package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js +5 -5
  133. package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
  134. package/lib/commonjs/components/Poll/components/PollResults/PollResults.js +5 -3
  135. package/lib/commonjs/components/Poll/components/PollResults/PollResults.js.map +1 -1
  136. package/lib/commonjs/components/Reply/Reply.js +11 -4
  137. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  138. package/lib/commonjs/components/Thread/Thread.js +4 -8
  139. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  140. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +4 -6
  141. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  142. package/lib/commonjs/components/ThreadList/ThreadList.js +12 -15
  143. package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
  144. package/lib/commonjs/components/ThreadList/ThreadListItem.js +8 -11
  145. package/lib/commonjs/components/ThreadList/ThreadListItem.js.map +1 -1
  146. package/lib/commonjs/components/ui/Avatar/Avatar.js +3 -3
  147. package/lib/commonjs/components/ui/Avatar/Avatar.js.map +1 -1
  148. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  149. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  150. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  151. package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
  152. package/lib/commonjs/contexts/componentsContext/ComponentsContext.js +37 -0
  153. package/lib/commonjs/contexts/componentsContext/ComponentsContext.js.map +1 -0
  154. package/lib/commonjs/contexts/componentsContext/PLAN.md +148 -0
  155. package/lib/commonjs/contexts/componentsContext/defaultComponents.js +286 -0
  156. package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -0
  157. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +1 -9
  158. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  159. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContextBase.js.map +1 -1
  160. package/lib/commonjs/contexts/index.js +11 -0
  161. package/lib/commonjs/contexts/index.js.map +1 -1
  162. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  163. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -76
  164. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  165. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  166. package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js +7 -5
  167. package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
  168. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  169. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +1 -4
  170. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  171. package/lib/commonjs/contexts/threadsContext/ThreadsContext.js.map +1 -1
  172. package/lib/commonjs/hooks/messagePreview/useMessagePreviewText.js +28 -13
  173. package/lib/commonjs/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
  174. package/lib/commonjs/i18n/en.json +20 -0
  175. package/lib/commonjs/i18n/es.json +20 -0
  176. package/lib/commonjs/i18n/fr.json +20 -0
  177. package/lib/commonjs/i18n/he.json +20 -0
  178. package/lib/commonjs/i18n/hi.json +20 -0
  179. package/lib/commonjs/i18n/it.json +20 -0
  180. package/lib/commonjs/i18n/ja.json +20 -0
  181. package/lib/commonjs/i18n/ko.json +20 -0
  182. package/lib/commonjs/i18n/nl.json +20 -0
  183. package/lib/commonjs/i18n/pt-br.json +20 -0
  184. package/lib/commonjs/i18n/ru.json +20 -0
  185. package/lib/commonjs/i18n/tr.json +20 -0
  186. package/lib/commonjs/icons/arrow-up-right.js +10 -6
  187. package/lib/commonjs/icons/arrow-up-right.js.map +1 -1
  188. package/lib/commonjs/icons/audio.js +10 -6
  189. package/lib/commonjs/icons/audio.js.map +1 -1
  190. package/lib/commonjs/icons/chevron-left.js +10 -6
  191. package/lib/commonjs/icons/chevron-left.js.map +1 -1
  192. package/lib/commonjs/icons/leave.js +10 -6
  193. package/lib/commonjs/icons/leave.js.map +1 -1
  194. package/lib/commonjs/icons/message-bubble.js +10 -6
  195. package/lib/commonjs/icons/message-bubble.js.map +1 -1
  196. package/lib/commonjs/icons/mute.js +11 -7
  197. package/lib/commonjs/icons/mute.js.map +1 -1
  198. package/lib/commonjs/icons/reply.js +10 -6
  199. package/lib/commonjs/icons/reply.js.map +1 -1
  200. package/lib/commonjs/icons/search.js +11 -7
  201. package/lib/commonjs/icons/search.js.map +1 -1
  202. package/lib/commonjs/icons/send.js +11 -7
  203. package/lib/commonjs/icons/send.js.map +1 -1
  204. package/lib/commonjs/icons/thread.js +10 -6
  205. package/lib/commonjs/icons/thread.js.map +1 -1
  206. package/lib/commonjs/icons/video-fill.js +2 -0
  207. package/lib/commonjs/icons/video-fill.js.map +1 -1
  208. package/lib/commonjs/icons/video.js +10 -6
  209. package/lib/commonjs/icons/video.js.map +1 -1
  210. package/lib/commonjs/utils/rtlMirrorSwitchStyle.js +20 -0
  211. package/lib/commonjs/utils/rtlMirrorSwitchStyle.js.map +1 -0
  212. package/lib/commonjs/version.json +1 -1
  213. package/lib/module/components/Attachment/Attachment.js +15 -52
  214. package/lib/module/components/Attachment/Attachment.js.map +1 -1
  215. package/lib/module/components/Attachment/FileAttachment.js +4 -6
  216. package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
  217. package/lib/module/components/Attachment/FileAttachmentGroup.js +4 -10
  218. package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
  219. package/lib/module/components/Attachment/FilePreview.js +3 -6
  220. package/lib/module/components/Attachment/FilePreview.js.map +1 -1
  221. package/lib/module/components/Attachment/Gallery.js +9 -28
  222. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  223. package/lib/module/components/Attachment/GalleryImage.js +3 -3
  224. package/lib/module/components/Attachment/GalleryImage.js.map +1 -1
  225. package/lib/module/components/Attachment/Giphy/GiphyImage.js +7 -13
  226. package/lib/module/components/Attachment/Giphy/GiphyImage.js.map +1 -1
  227. package/lib/module/components/Attachment/UnsupportedAttachment.js +4 -6
  228. package/lib/module/components/Attachment/UnsupportedAttachment.js.map +1 -1
  229. package/lib/module/components/Attachment/UrlPreview/URLPreview.js +3 -3
  230. package/lib/module/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
  231. package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js +3 -3
  232. package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
  233. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +4 -2
  234. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  235. package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +7 -4
  236. package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
  237. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +9 -13
  238. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  239. package/lib/module/components/Channel/Channel.js +9 -418
  240. package/lib/module/components/Channel/Channel.js.map +1 -1
  241. package/lib/module/components/Channel/hooks/useCreateChannelContext.js +0 -8
  242. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  243. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +3 -77
  244. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  245. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +2 -132
  246. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  247. package/lib/module/components/ChannelList/ChannelList.js +1 -57
  248. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  249. package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js +4 -2
  250. package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
  251. package/lib/module/components/ChannelList/ChannelListView.js +11 -20
  252. package/lib/module/components/ChannelList/ChannelListView.js.map +1 -1
  253. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js +1 -39
  254. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  255. package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js +3 -2
  256. package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
  257. package/lib/module/components/ChannelPreview/ChannelPreview.js +4 -6
  258. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  259. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +6 -18
  260. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  261. package/lib/module/components/ChannelPreview/ChannelPreviewView.js +8 -28
  262. package/lib/module/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
  263. package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js +3 -3
  264. package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
  265. package/lib/module/components/Chat/Chat.js +4 -6
  266. package/lib/module/components/Chat/Chat.js.map +1 -1
  267. package/lib/module/components/Chat/hooks/useCreateChatContext.js +0 -2
  268. package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  269. package/lib/module/components/ImageGallery/ImageGallery.js +7 -9
  270. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  271. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +4 -2
  272. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  273. package/lib/module/components/Message/Message.js +9 -13
  274. package/lib/module/components/Message/Message.js.map +1 -1
  275. package/lib/module/components/Message/MessageItemView/MessageBubble.js +4 -2
  276. package/lib/module/components/Message/MessageItemView/MessageBubble.js.map +1 -1
  277. package/lib/module/components/Message/MessageItemView/MessageContent.js +18 -39
  278. package/lib/module/components/Message/MessageItemView/MessageContent.js.map +1 -1
  279. package/lib/module/components/Message/MessageItemView/MessageDeleted.js +5 -7
  280. package/lib/module/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
  281. package/lib/module/components/Message/MessageItemView/MessageFooter.js +4 -8
  282. package/lib/module/components/Message/MessageItemView/MessageFooter.js.map +1 -1
  283. package/lib/module/components/Message/MessageItemView/MessageHeader.js +8 -16
  284. package/lib/module/components/Message/MessageItemView/MessageHeader.js.map +1 -1
  285. package/lib/module/components/Message/MessageItemView/MessageItemView.js +13 -35
  286. package/lib/module/components/Message/MessageItemView/MessageItemView.js.map +1 -1
  287. package/lib/module/components/Message/MessageItemView/MessageReplies.js +3 -5
  288. package/lib/module/components/Message/MessageItemView/MessageReplies.js.map +1 -1
  289. package/lib/module/components/Message/MessageItemView/MessageTextContainer.js +3 -3
  290. package/lib/module/components/Message/MessageItemView/MessageTextContainer.js.map +1 -1
  291. package/lib/module/components/Message/MessageItemView/MessageWrapper.js +6 -4
  292. package/lib/module/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
  293. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListBottom.js +6 -8
  294. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListBottom.js.map +1 -1
  295. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListTop.js +7 -11
  296. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListTop.js.map +1 -1
  297. package/lib/module/components/Message/MessageItemView/utils/renderText.js +3 -1
  298. package/lib/module/components/Message/MessageItemView/utils/renderText.js.map +1 -1
  299. package/lib/module/components/MessageInput/MessageComposer.js +15 -55
  300. package/lib/module/components/MessageInput/MessageComposer.js.map +1 -1
  301. package/lib/module/components/MessageInput/MessageInputHeaderView.js +5 -5
  302. package/lib/module/components/MessageInput/MessageInputHeaderView.js.map +1 -1
  303. package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js +9 -17
  304. package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js.map +1 -1
  305. package/lib/module/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js +5 -5
  306. package/lib/module/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js.map +1 -1
  307. package/lib/module/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js +5 -5
  308. package/lib/module/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js.map +1 -1
  309. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +5 -5
  310. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
  311. package/lib/module/components/MessageInput/components/InputButtons/index.js +4 -4
  312. package/lib/module/components/MessageInput/components/InputButtons/index.js.map +1 -1
  313. package/lib/module/components/MessageInput/components/LinkPreviewList.js +3 -2
  314. package/lib/module/components/MessageInput/components/LinkPreviewList.js.map +1 -1
  315. package/lib/module/components/MessageInput/components/OutputButtons/index.js +7 -13
  316. package/lib/module/components/MessageInput/components/OutputButtons/index.js.map +1 -1
  317. package/lib/module/components/MessageList/MessageFlashList.js +14 -40
  318. package/lib/module/components/MessageList/MessageFlashList.js.map +1 -1
  319. package/lib/module/components/MessageList/MessageList.js +12 -38
  320. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  321. package/lib/module/components/MessageList/StickyHeader.js +3 -1
  322. package/lib/module/components/MessageList/StickyHeader.js.map +1 -1
  323. package/lib/module/components/MessageMenu/MessageActionList.js +4 -2
  324. package/lib/module/components/MessageMenu/MessageActionList.js.map +1 -1
  325. package/lib/module/components/MessageMenu/MessageMenu.js.map +1 -1
  326. package/lib/module/components/MessageMenu/MessageUserReactions.js +4 -8
  327. package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
  328. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +4 -2
  329. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
  330. package/lib/module/components/Poll/CreatePollContent.js +8 -4
  331. package/lib/module/components/Poll/CreatePollContent.js.map +1 -1
  332. package/lib/module/components/Poll/Poll.js +12 -9
  333. package/lib/module/components/Poll/Poll.js.map +1 -1
  334. package/lib/module/components/Poll/components/MultipleAnswersField.js +5 -3
  335. package/lib/module/components/Poll/components/MultipleAnswersField.js.map +1 -1
  336. package/lib/module/components/Poll/components/MultipleVotesSettings.js +5 -3
  337. package/lib/module/components/Poll/components/MultipleVotesSettings.js.map +1 -1
  338. package/lib/module/components/Poll/components/PollAnswersList.js +5 -3
  339. package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -1
  340. package/lib/module/components/Poll/components/PollInputDialog.js +2 -1
  341. package/lib/module/components/Poll/components/PollInputDialog.js.map +1 -1
  342. package/lib/module/components/Poll/components/PollOption.js +5 -3
  343. package/lib/module/components/Poll/components/PollOption.js.map +1 -1
  344. package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js +5 -5
  345. package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
  346. package/lib/module/components/Poll/components/PollResults/PollResults.js +5 -3
  347. package/lib/module/components/Poll/components/PollResults/PollResults.js.map +1 -1
  348. package/lib/module/components/Reply/Reply.js +11 -4
  349. package/lib/module/components/Reply/Reply.js.map +1 -1
  350. package/lib/module/components/Thread/Thread.js +4 -8
  351. package/lib/module/components/Thread/Thread.js.map +1 -1
  352. package/lib/module/components/Thread/components/ThreadFooterComponent.js +4 -6
  353. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  354. package/lib/module/components/ThreadList/ThreadList.js +12 -15
  355. package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
  356. package/lib/module/components/ThreadList/ThreadListItem.js +8 -11
  357. package/lib/module/components/ThreadList/ThreadListItem.js.map +1 -1
  358. package/lib/module/components/ui/Avatar/Avatar.js +3 -3
  359. package/lib/module/components/ui/Avatar/Avatar.js.map +1 -1
  360. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  361. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  362. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  363. package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
  364. package/lib/module/contexts/componentsContext/ComponentsContext.js +37 -0
  365. package/lib/module/contexts/componentsContext/ComponentsContext.js.map +1 -0
  366. package/lib/module/contexts/componentsContext/PLAN.md +148 -0
  367. package/lib/module/contexts/componentsContext/defaultComponents.js +286 -0
  368. package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -0
  369. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +1 -9
  370. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  371. package/lib/module/contexts/imageGalleryContext/ImageGalleryContextBase.js.map +1 -1
  372. package/lib/module/contexts/index.js +11 -0
  373. package/lib/module/contexts/index.js.map +1 -1
  374. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  375. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -76
  376. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  377. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  378. package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js +7 -5
  379. package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
  380. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  381. package/lib/module/contexts/overlayContext/OverlayProvider.js +1 -4
  382. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  383. package/lib/module/contexts/threadsContext/ThreadsContext.js.map +1 -1
  384. package/lib/module/hooks/messagePreview/useMessagePreviewText.js +28 -13
  385. package/lib/module/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
  386. package/lib/module/i18n/en.json +20 -0
  387. package/lib/module/i18n/es.json +20 -0
  388. package/lib/module/i18n/fr.json +20 -0
  389. package/lib/module/i18n/he.json +20 -0
  390. package/lib/module/i18n/hi.json +20 -0
  391. package/lib/module/i18n/it.json +20 -0
  392. package/lib/module/i18n/ja.json +20 -0
  393. package/lib/module/i18n/ko.json +20 -0
  394. package/lib/module/i18n/nl.json +20 -0
  395. package/lib/module/i18n/pt-br.json +20 -0
  396. package/lib/module/i18n/ru.json +20 -0
  397. package/lib/module/i18n/tr.json +20 -0
  398. package/lib/module/icons/arrow-up-right.js +10 -6
  399. package/lib/module/icons/arrow-up-right.js.map +1 -1
  400. package/lib/module/icons/audio.js +10 -6
  401. package/lib/module/icons/audio.js.map +1 -1
  402. package/lib/module/icons/chevron-left.js +10 -6
  403. package/lib/module/icons/chevron-left.js.map +1 -1
  404. package/lib/module/icons/leave.js +10 -6
  405. package/lib/module/icons/leave.js.map +1 -1
  406. package/lib/module/icons/message-bubble.js +10 -6
  407. package/lib/module/icons/message-bubble.js.map +1 -1
  408. package/lib/module/icons/mute.js +11 -7
  409. package/lib/module/icons/mute.js.map +1 -1
  410. package/lib/module/icons/reply.js +10 -6
  411. package/lib/module/icons/reply.js.map +1 -1
  412. package/lib/module/icons/search.js +11 -7
  413. package/lib/module/icons/search.js.map +1 -1
  414. package/lib/module/icons/send.js +11 -7
  415. package/lib/module/icons/send.js.map +1 -1
  416. package/lib/module/icons/thread.js +10 -6
  417. package/lib/module/icons/thread.js.map +1 -1
  418. package/lib/module/icons/video-fill.js +2 -0
  419. package/lib/module/icons/video-fill.js.map +1 -1
  420. package/lib/module/icons/video.js +10 -6
  421. package/lib/module/icons/video.js.map +1 -1
  422. package/lib/module/utils/rtlMirrorSwitchStyle.js +20 -0
  423. package/lib/module/utils/rtlMirrorSwitchStyle.js.map +1 -0
  424. package/lib/module/version.json +1 -1
  425. package/lib/typescript/components/Attachment/Attachment.d.ts +1 -1
  426. package/lib/typescript/components/Attachment/Attachment.d.ts.map +1 -1
  427. package/lib/typescript/components/Attachment/FileAttachment.d.ts +1 -1
  428. package/lib/typescript/components/Attachment/FileAttachment.d.ts.map +1 -1
  429. package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts +1 -2
  430. package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts.map +1 -1
  431. package/lib/typescript/components/Attachment/FilePreview.d.ts +2 -3
  432. package/lib/typescript/components/Attachment/FilePreview.d.ts.map +1 -1
  433. package/lib/typescript/components/Attachment/Gallery.d.ts +1 -1
  434. package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
  435. package/lib/typescript/components/Attachment/GalleryImage.d.ts +3 -2
  436. package/lib/typescript/components/Attachment/GalleryImage.d.ts.map +1 -1
  437. package/lib/typescript/components/Attachment/Giphy/GiphyImage.d.ts +4 -2
  438. package/lib/typescript/components/Attachment/Giphy/GiphyImage.d.ts.map +1 -1
  439. package/lib/typescript/components/Attachment/UnsupportedAttachment.d.ts +2 -3
  440. package/lib/typescript/components/Attachment/UnsupportedAttachment.d.ts.map +1 -1
  441. package/lib/typescript/components/Attachment/UrlPreview/URLPreview.d.ts +4 -3
  442. package/lib/typescript/components/Attachment/UrlPreview/URLPreview.d.ts.map +1 -1
  443. package/lib/typescript/components/Attachment/UrlPreview/URLPreviewCompact.d.ts +4 -3
  444. package/lib/typescript/components/Attachment/UrlPreview/URLPreviewCompact.d.ts.map +1 -1
  445. package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -1
  446. package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.d.ts.map +1 -1
  447. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +2 -3
  448. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -1
  449. package/lib/typescript/components/Channel/Channel.d.ts +3 -28
  450. package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
  451. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
  452. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -1
  453. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
  454. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
  455. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
  456. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
  457. package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts.map +1 -1
  458. package/lib/typescript/components/ChannelList/ChannelList.d.ts +2 -10
  459. package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
  460. package/lib/typescript/components/ChannelList/ChannelListLoadingIndicator.d.ts.map +1 -1
  461. package/lib/typescript/components/ChannelList/ChannelListView.d.ts +1 -1
  462. package/lib/typescript/components/ChannelList/ChannelListView.d.ts.map +1 -1
  463. package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts +1 -1
  464. package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts.map +1 -1
  465. package/lib/typescript/components/ChannelPreview/ChannelDetailsBottomSheet.d.ts +1 -2
  466. package/lib/typescript/components/ChannelPreview/ChannelDetailsBottomSheet.d.ts.map +1 -1
  467. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +1 -1
  468. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
  469. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts +1 -2
  470. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -1
  471. package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts +1 -1
  472. package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts.map +1 -1
  473. package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts +1 -3
  474. package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts.map +1 -1
  475. package/lib/typescript/components/Chat/Chat.d.ts +1 -7
  476. package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
  477. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -1
  478. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
  479. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +6 -1
  480. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
  481. package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -1
  482. package/lib/typescript/components/ImageGallery/components/types.d.ts +0 -2
  483. package/lib/typescript/components/ImageGallery/components/types.d.ts.map +1 -1
  484. package/lib/typescript/components/Message/Message.d.ts +1 -1
  485. package/lib/typescript/components/Message/Message.d.ts.map +1 -1
  486. package/lib/typescript/components/Message/MessageItemView/MessageBubble.d.ts +1 -2
  487. package/lib/typescript/components/Message/MessageItemView/MessageBubble.d.ts.map +1 -1
  488. package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts +1 -1
  489. package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts.map +1 -1
  490. package/lib/typescript/components/Message/MessageItemView/MessageDeleted.d.ts +1 -2
  491. package/lib/typescript/components/Message/MessageItemView/MessageDeleted.d.ts.map +1 -1
  492. package/lib/typescript/components/Message/MessageItemView/MessageFooter.d.ts +0 -2
  493. package/lib/typescript/components/Message/MessageItemView/MessageFooter.d.ts.map +1 -1
  494. package/lib/typescript/components/Message/MessageItemView/MessageHeader.d.ts.map +1 -1
  495. package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts +1 -1
  496. package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts.map +1 -1
  497. package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts +1 -2
  498. package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts.map +1 -1
  499. package/lib/typescript/components/Message/MessageItemView/MessageTextContainer.d.ts +1 -1
  500. package/lib/typescript/components/Message/MessageItemView/MessageTextContainer.d.ts.map +1 -1
  501. package/lib/typescript/components/Message/MessageItemView/MessageWrapper.d.ts.map +1 -1
  502. package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListBottom.d.ts +1 -1
  503. package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListBottom.d.ts.map +1 -1
  504. package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListTop.d.ts +1 -1
  505. package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListTop.d.ts.map +1 -1
  506. package/lib/typescript/components/Message/MessageItemView/utils/renderText.d.ts.map +1 -1
  507. package/lib/typescript/components/MessageInput/MessageComposer.d.ts +1 -2
  508. package/lib/typescript/components/MessageInput/MessageComposer.d.ts.map +1 -1
  509. package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.d.ts +3 -4
  510. package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.d.ts.map +1 -1
  511. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts +1 -1
  512. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts.map +1 -1
  513. package/lib/typescript/components/MessageInput/components/InputButtons/index.d.ts +1 -1
  514. package/lib/typescript/components/MessageInput/components/InputButtons/index.d.ts.map +1 -1
  515. package/lib/typescript/components/MessageInput/components/LinkPreviewList.d.ts.map +1 -1
  516. package/lib/typescript/components/MessageInput/components/OutputButtons/index.d.ts +1 -1
  517. package/lib/typescript/components/MessageInput/components/OutputButtons/index.d.ts.map +1 -1
  518. package/lib/typescript/components/MessageList/MessageFlashList.d.ts +1 -1
  519. package/lib/typescript/components/MessageList/MessageFlashList.d.ts.map +1 -1
  520. package/lib/typescript/components/MessageList/MessageList.d.ts +1 -1
  521. package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
  522. package/lib/typescript/components/MessageList/StickyHeader.d.ts +2 -3
  523. package/lib/typescript/components/MessageList/StickyHeader.d.ts.map +1 -1
  524. package/lib/typescript/components/MessageMenu/MessageActionList.d.ts +1 -2
  525. package/lib/typescript/components/MessageMenu/MessageActionList.d.ts.map +1 -1
  526. package/lib/typescript/components/MessageMenu/MessageMenu.d.ts +1 -2
  527. package/lib/typescript/components/MessageMenu/MessageMenu.d.ts.map +1 -1
  528. package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts +1 -1
  529. package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -1
  530. package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts +2 -3
  531. package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +1 -1
  532. package/lib/typescript/components/Poll/CreatePollContent.d.ts +2 -2
  533. package/lib/typescript/components/Poll/CreatePollContent.d.ts.map +1 -1
  534. package/lib/typescript/components/Poll/Poll.d.ts +5 -8
  535. package/lib/typescript/components/Poll/Poll.d.ts.map +1 -1
  536. package/lib/typescript/components/Poll/components/MultipleVotesSettings.d.ts.map +1 -1
  537. package/lib/typescript/components/Poll/components/PollAnswersList.d.ts +1 -2
  538. package/lib/typescript/components/Poll/components/PollAnswersList.d.ts.map +1 -1
  539. package/lib/typescript/components/Poll/components/PollOption.d.ts +1 -2
  540. package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
  541. package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts +1 -4
  542. package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts.map +1 -1
  543. package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts +1 -2
  544. package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts.map +1 -1
  545. package/lib/typescript/components/Reply/Reply.d.ts +4 -3
  546. package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
  547. package/lib/typescript/components/Thread/Thread.d.ts +2 -8
  548. package/lib/typescript/components/Thread/Thread.d.ts.map +1 -1
  549. package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts +1 -2
  550. package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts.map +1 -1
  551. package/lib/typescript/components/ThreadList/ThreadList.d.ts +2 -3
  552. package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
  553. package/lib/typescript/components/ThreadList/ThreadListItem.d.ts.map +1 -1
  554. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +0 -17
  555. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
  556. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +0 -23
  557. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
  558. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +0 -112
  559. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -1
  560. package/lib/typescript/contexts/chatContext/ChatContext.d.ts +0 -5
  561. package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -1
  562. package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts +321 -0
  563. package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts.map +1 -0
  564. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +296 -0
  565. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -0
  566. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -1
  567. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContextBase.d.ts +0 -5
  568. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContextBase.d.ts.map +1 -1
  569. package/lib/typescript/contexts/index.d.ts +1 -0
  570. package/lib/typescript/contexts/index.d.ts.map +1 -1
  571. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +1 -169
  572. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
  573. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
  574. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
  575. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +3 -332
  576. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
  577. package/lib/typescript/contexts/overlayContext/MessageOverlayHostLayer.d.ts +2 -5
  578. package/lib/typescript/contexts/overlayContext/MessageOverlayHostLayer.d.ts.map +1 -1
  579. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +0 -4
  580. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts.map +1 -1
  581. package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
  582. package/lib/typescript/contexts/threadsContext/ThreadsContext.d.ts +0 -9
  583. package/lib/typescript/contexts/threadsContext/ThreadsContext.d.ts.map +1 -1
  584. package/lib/typescript/hooks/messagePreview/useMessagePreviewText.d.ts.map +1 -1
  585. package/lib/typescript/i18n/en.json +20 -0
  586. package/lib/typescript/i18n/es.json +20 -0
  587. package/lib/typescript/i18n/fr.json +20 -0
  588. package/lib/typescript/i18n/he.json +20 -0
  589. package/lib/typescript/i18n/hi.json +20 -0
  590. package/lib/typescript/i18n/it.json +20 -0
  591. package/lib/typescript/i18n/ja.json +20 -0
  592. package/lib/typescript/i18n/ko.json +20 -0
  593. package/lib/typescript/i18n/nl.json +20 -0
  594. package/lib/typescript/i18n/pt-br.json +20 -0
  595. package/lib/typescript/i18n/ru.json +20 -0
  596. package/lib/typescript/i18n/tr.json +20 -0
  597. package/lib/typescript/icons/arrow-up-right.d.ts.map +1 -1
  598. package/lib/typescript/icons/audio.d.ts.map +1 -1
  599. package/lib/typescript/icons/chevron-left.d.ts.map +1 -1
  600. package/lib/typescript/icons/leave.d.ts.map +1 -1
  601. package/lib/typescript/icons/message-bubble.d.ts.map +1 -1
  602. package/lib/typescript/icons/mute.d.ts.map +1 -1
  603. package/lib/typescript/icons/reply.d.ts.map +1 -1
  604. package/lib/typescript/icons/search.d.ts.map +1 -1
  605. package/lib/typescript/icons/send.d.ts.map +1 -1
  606. package/lib/typescript/icons/thread.d.ts.map +1 -1
  607. package/lib/typescript/icons/video-fill.d.ts.map +1 -1
  608. package/lib/typescript/icons/video.d.ts.map +1 -1
  609. package/lib/typescript/utils/i18n/Streami18n.d.ts +20 -0
  610. package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
  611. package/lib/typescript/utils/rtlMirrorSwitchStyle.d.ts +9 -0
  612. package/lib/typescript/utils/rtlMirrorSwitchStyle.d.ts.map +1 -0
  613. package/package.json +1 -1
  614. package/src/__tests__/offline-support/offline-feature.js +64 -67
  615. package/src/components/Attachment/Attachment.tsx +7 -69
  616. package/src/components/Attachment/FileAttachment.tsx +4 -7
  617. package/src/components/Attachment/FileAttachmentGroup.tsx +9 -19
  618. package/src/components/Attachment/FilePreview.tsx +4 -9
  619. package/src/components/Attachment/Gallery.tsx +6 -83
  620. package/src/components/Attachment/GalleryImage.tsx +5 -4
  621. package/src/components/Attachment/Giphy/GiphyImage.tsx +15 -37
  622. package/src/components/Attachment/UnsupportedAttachment.tsx +5 -10
  623. package/src/components/Attachment/UrlPreview/URLPreview.tsx +6 -4
  624. package/src/components/Attachment/UrlPreview/URLPreviewCompact.tsx +6 -4
  625. package/src/components/AttachmentPicker/AttachmentPicker.tsx +2 -2
  626. package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx +5 -4
  627. package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +4 -20
  628. package/src/components/Channel/Channel.tsx +31 -438
  629. package/src/components/Channel/__tests__/isAttachmentEqualHandler.test.js +12 -9
  630. package/src/components/Channel/hooks/useCreateChannelContext.ts +0 -8
  631. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +1 -81
  632. package/src/components/Channel/hooks/useCreateMessagesContext.ts +0 -130
  633. package/src/components/ChannelList/ChannelList.tsx +3 -76
  634. package/src/components/ChannelList/ChannelListLoadingIndicator.tsx +3 -1
  635. package/src/components/ChannelList/ChannelListView.tsx +12 -33
  636. package/src/components/ChannelList/__tests__/ChannelList.test.js +173 -116
  637. package/src/components/ChannelList/__tests__/ChannelListView.test.js +64 -41
  638. package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +0 -39
  639. package/src/components/ChannelPreview/ChannelDetailsBottomSheet.tsx +2 -2
  640. package/src/components/ChannelPreview/ChannelPreview.tsx +6 -14
  641. package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +7 -33
  642. package/src/components/ChannelPreview/ChannelPreviewView.tsx +11 -40
  643. package/src/components/ChannelPreview/ChannelSwipableWrapper.tsx +2 -4
  644. package/src/components/ChannelPreview/__tests__/ChannelDetailsBottomSheet.test.tsx +16 -12
  645. package/src/components/ChannelPreview/__tests__/ChannelPreview.test.tsx +25 -24
  646. package/src/components/ChannelPreview/__tests__/ChannelSwipableWrapper.test.tsx +11 -6
  647. package/src/components/Chat/Chat.tsx +5 -12
  648. package/src/components/Chat/hooks/useCreateChatContext.ts +0 -2
  649. package/src/components/ImageGallery/ImageGallery.tsx +14 -16
  650. package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +0 -8
  651. package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +25 -21
  652. package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +3 -1
  653. package/src/components/ImageGallery/components/types.ts +0 -3
  654. package/src/components/Message/Message.tsx +11 -32
  655. package/src/components/Message/MessageItemView/MessageBubble.tsx +11 -7
  656. package/src/components/Message/MessageItemView/MessageContent.tsx +14 -47
  657. package/src/components/Message/MessageItemView/MessageDeleted.tsx +3 -9
  658. package/src/components/Message/MessageItemView/MessageFooter.tsx +2 -14
  659. package/src/components/Message/MessageItemView/MessageHeader.tsx +11 -29
  660. package/src/components/Message/MessageItemView/MessageItemView.tsx +10 -42
  661. package/src/components/Message/MessageItemView/MessageReplies.tsx +2 -8
  662. package/src/components/Message/MessageItemView/MessageTextContainer.tsx +4 -8
  663. package/src/components/Message/MessageItemView/MessageWrapper.tsx +4 -9
  664. package/src/components/Message/MessageItemView/ReactionList/ReactionListBottom.tsx +4 -12
  665. package/src/components/Message/MessageItemView/ReactionList/ReactionListTop.tsx +4 -20
  666. package/src/components/Message/MessageItemView/__tests__/MessageContent.test.js +47 -30
  667. package/src/components/Message/MessageItemView/__tests__/MessageItemView.test.js +16 -7
  668. package/src/components/Message/MessageItemView/__tests__/MessageTextContainer.test.tsx +8 -4
  669. package/src/components/Message/MessageItemView/__tests__/__snapshots__/MessageTextContainer.test.tsx.snap +1 -0
  670. package/src/components/Message/MessageItemView/utils/renderText.tsx +2 -0
  671. package/src/components/MessageInput/MessageComposer.tsx +16 -76
  672. package/src/components/MessageInput/MessageInputHeaderView.tsx +3 -3
  673. package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.js.snap +54 -36
  674. package/src/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.tsx +7 -35
  675. package/src/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.tsx +2 -2
  676. package/src/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.tsx +2 -2
  677. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx +6 -4
  678. package/src/components/MessageInput/components/InputButtons/index.tsx +4 -5
  679. package/src/components/MessageInput/components/LinkPreviewList.tsx +3 -2
  680. package/src/components/MessageInput/components/OutputButtons/index.tsx +4 -23
  681. package/src/components/MessageList/MessageFlashList.tsx +13 -57
  682. package/src/components/MessageList/MessageList.tsx +15 -57
  683. package/src/components/MessageList/StickyHeader.tsx +4 -3
  684. package/src/components/MessageMenu/MessageActionList.tsx +4 -3
  685. package/src/components/MessageMenu/MessageMenu.tsx +35 -47
  686. package/src/components/MessageMenu/MessageUserReactions.tsx +7 -27
  687. package/src/components/MessageMenu/MessageUserReactionsItem.tsx +3 -6
  688. package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +12 -11
  689. package/src/components/Poll/CreatePollContent.tsx +7 -6
  690. package/src/components/Poll/Poll.tsx +22 -24
  691. package/src/components/Poll/components/MultipleAnswersField.tsx +4 -3
  692. package/src/components/Poll/components/MultipleVotesSettings.tsx +4 -2
  693. package/src/components/Poll/components/PollAnswersList.tsx +9 -11
  694. package/src/components/Poll/components/PollInputDialog.tsx +1 -0
  695. package/src/components/Poll/components/PollOption.tsx +9 -11
  696. package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +10 -11
  697. package/src/components/Poll/components/PollResults/PollResults.tsx +9 -15
  698. package/src/components/Reply/Reply.tsx +25 -10
  699. package/src/components/Thread/Thread.tsx +3 -18
  700. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +31 -18
  701. package/src/components/Thread/components/ThreadFooterComponent.tsx +10 -11
  702. package/src/components/ThreadList/ThreadList.tsx +14 -22
  703. package/src/components/ThreadList/ThreadListItem.tsx +6 -11
  704. package/src/components/ui/Avatar/Avatar.tsx +2 -2
  705. package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +0 -15
  706. package/src/contexts/channelContext/ChannelContext.tsx +0 -24
  707. package/src/contexts/channelsContext/ChannelsContext.tsx +0 -113
  708. package/src/contexts/chatContext/ChatContext.tsx +0 -5
  709. package/src/contexts/componentsContext/ComponentsContext.tsx +62 -0
  710. package/src/contexts/componentsContext/PLAN.md +148 -0
  711. package/src/contexts/componentsContext/__tests__/defaultComponents.test.ts +44 -0
  712. package/src/contexts/componentsContext/defaultComponents.ts +332 -0
  713. package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +0 -8
  714. package/src/contexts/imageGalleryContext/ImageGalleryContextBase.tsx +0 -10
  715. package/src/contexts/index.ts +1 -0
  716. package/src/contexts/messageInputContext/MessageInputContext.tsx +0 -185
  717. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +1 -75
  718. package/src/contexts/messagesContext/MessagesContext.tsx +3 -358
  719. package/src/contexts/overlayContext/MessageOverlayHostLayer.tsx +5 -7
  720. package/src/contexts/overlayContext/OverlayContext.tsx +0 -4
  721. package/src/contexts/overlayContext/OverlayProvider.tsx +1 -2
  722. package/src/contexts/overlayContext/__tests__/MessageOverlayHostLayer.test.tsx +21 -6
  723. package/src/contexts/threadsContext/ThreadsContext.tsx +0 -9
  724. package/src/hooks/messagePreview/useMessagePreviewText.tsx +17 -13
  725. package/src/i18n/en.json +20 -0
  726. package/src/i18n/es.json +20 -0
  727. package/src/i18n/fr.json +20 -0
  728. package/src/i18n/he.json +20 -0
  729. package/src/i18n/hi.json +20 -0
  730. package/src/i18n/it.json +20 -0
  731. package/src/i18n/ja.json +20 -0
  732. package/src/i18n/ko.json +20 -0
  733. package/src/i18n/nl.json +20 -0
  734. package/src/i18n/pt-br.json +20 -0
  735. package/src/i18n/ru.json +20 -0
  736. package/src/i18n/tr.json +20 -0
  737. package/src/icons/arrow-up-right.tsx +11 -8
  738. package/src/icons/audio.tsx +11 -8
  739. package/src/icons/chevron-left.tsx +11 -8
  740. package/src/icons/leave.tsx +11 -8
  741. package/src/icons/message-bubble.tsx +11 -8
  742. package/src/icons/mute.tsx +12 -9
  743. package/src/icons/reply.tsx +11 -8
  744. package/src/icons/search.tsx +12 -9
  745. package/src/icons/send.tsx +12 -9
  746. package/src/icons/thread.tsx +11 -8
  747. package/src/icons/video-fill.tsx +5 -1
  748. package/src/icons/video.tsx +11 -8
  749. package/src/utils/rtlMirrorSwitchStyle.ts +20 -0
  750. package/src/version.json +1 -1
@@ -4,16 +4,10 @@ import { ThreadFooterComponent } from './components/ThreadFooterComponent';
4
4
 
5
5
  import { useChannelContext } from '../../contexts/channelContext/ChannelContext';
6
6
  import { ChatContextValue, useChatContext } from '../../contexts/chatContext/ChatContext';
7
- import {
8
- MessagesContextValue,
9
- useMessagesContext,
10
- } from '../../contexts/messagesContext/MessagesContext';
7
+ import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
11
8
  import { ThreadContextValue, useThreadContext } from '../../contexts/threadContext/ThreadContext';
12
9
 
13
- import {
14
- MessageComposer as DefaultMessageComposer,
15
- MessageComposerProps,
16
- } from '../MessageInput/MessageComposer';
10
+ import type { MessageComposerProps } from '../MessageInput/MessageComposer';
17
11
  import { MessageFlashList, MessageFlashListProps } from '../MessageList/MessageFlashList';
18
12
  import { MessageListProps } from '../MessageList/MessageList';
19
13
 
@@ -26,7 +20,6 @@ try {
26
20
  }
27
21
 
28
22
  type ThreadPropsWithContext = Pick<ChatContextValue, 'client'> &
29
- Pick<MessagesContextValue, 'MessageList'> &
30
23
  Pick<
31
24
  ThreadContextValue,
32
25
  | 'closeThread'
@@ -59,11 +52,6 @@ type ThreadPropsWithContext = Pick<ChatContextValue, 'client'> &
59
52
  closeThreadOnDismount?: boolean;
60
53
  /** Disables the thread UI. So MessageComposer and MessageList will be disabled. */
61
54
  disabled?: boolean;
62
- /**
63
- * **Customized MessageComposer component to used within Thread instead of default MessageComposer
64
- * **Available from [MessageComposer](https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-input)**
65
- */
66
- MessageComposer?: React.ComponentType<MessageComposerProps>;
67
55
  /**
68
56
  * Call custom function on closing thread if handling thread state elsewhere
69
57
  */
@@ -81,14 +69,13 @@ const ThreadWithContext = (props: ThreadPropsWithContext) => {
81
69
  closeThreadOnDismount = true,
82
70
  disabled,
83
71
  loadMoreThread,
84
- MessageComposer = DefaultMessageComposer,
85
- MessageList,
86
72
  onThreadDismount,
87
73
  parentMessagePreventPress = true,
88
74
  thread,
89
75
  threadInstance,
90
76
  shouldUseFlashList = false,
91
77
  } = props;
78
+ const { MessageList, ThreadMessageComposer: MessageComposer } = useComponentsContext();
92
79
 
93
80
  useEffect(() => {
94
81
  if (threadInstance?.activate) {
@@ -171,7 +158,6 @@ export type ThreadProps = Partial<ThreadPropsWithContext>;
171
158
  export const Thread = (props: ThreadProps) => {
172
159
  const { client } = useChatContext();
173
160
  const { threadList } = useChannelContext();
174
- const { MessageList } = useMessagesContext();
175
161
  const { closeThread, loadMoreThread, reloadThread, thread, threadInstance } = useThreadContext();
176
162
 
177
163
  if (thread?.id && !threadList) {
@@ -186,7 +172,6 @@ export const Thread = (props: ThreadProps) => {
186
172
  client,
187
173
  closeThread,
188
174
  loadMoreThread,
189
- MessageList,
190
175
  reloadThread,
191
176
  thread,
192
177
  threadInstance,
@@ -589,6 +589,7 @@ exports[`Thread should match thread snapshot 1`] = `
589
589
  "color": "#1a1b25",
590
590
  "fontSize": 17,
591
591
  "lineHeight": 20,
592
+ "writingDirection": "ltr",
592
593
  }
593
594
  }
594
595
  >
@@ -922,6 +923,7 @@ exports[`Thread should match thread snapshot 1`] = `
922
923
  "color": "#1a1b25",
923
924
  "fontSize": 17,
924
925
  "lineHeight": 20,
926
+ "writingDirection": "ltr",
925
927
  }
926
928
  }
927
929
  >
@@ -1288,6 +1290,7 @@ exports[`Thread should match thread snapshot 1`] = `
1288
1290
  "color": "#1a1b25",
1289
1291
  "fontSize": 17,
1290
1292
  "lineHeight": 20,
1293
+ "writingDirection": "ltr",
1291
1294
  }
1292
1295
  }
1293
1296
  >
@@ -1612,6 +1615,7 @@ exports[`Thread should match thread snapshot 1`] = `
1612
1615
  "color": "#1a1b25",
1613
1616
  "fontSize": 17,
1614
1617
  "lineHeight": 20,
1618
+ "writingDirection": "ltr",
1615
1619
  }
1616
1620
  }
1617
1621
  >
@@ -2266,28 +2270,37 @@ exports[`Thread should match thread snapshot 1`] = `
2266
2270
  }
2267
2271
  strokeWidth={1.5}
2268
2272
  >
2269
- <RNSVGPath
2270
- d="M11.2498 10H6.24982M6.24982 10L3.7881 2.71328C3.74537 2.59349 3.7402 2.4635 3.7733 2.34069C3.80639 2.21788 3.87616 2.10808 3.9733 2.02597C4.07044 1.94386 4.19032 1.89335 4.31693 1.88117C4.44353 1.86899 4.57084 1.89573 4.68185 1.95781L17.8069 9.4461C17.9045 9.50015 17.986 9.57937 18.0427 9.67555C18.0994 9.77172 18.1293 9.88133 18.1293 9.99297C18.1293 10.1046 18.0994 10.2142 18.0427 10.3104C17.986 10.4066 17.9045 10.4858 17.8069 10.5398L4.68185 18.0469C4.57051 18.1096 4.4426 18.1367 4.31537 18.1245C4.18815 18.1123 4.06772 18.0614 3.97032 17.9787C3.87292 17.8959 3.80323 17.7853 3.77065 17.6617C3.73807 17.5381 3.74416 17.4075 3.7881 17.2875L6.24982 10Z"
2271
- fill={null}
2272
- propList={
2273
- [
2274
- "fill",
2275
- "stroke",
2276
- "strokeWidth",
2277
- "strokeLinecap",
2278
- "strokeLinejoin",
2279
- ]
2280
- }
2281
- stroke={
2273
+ <RNSVGGroup
2274
+ fill={
2282
2275
  {
2283
- "payload": 4288916666,
2276
+ "payload": 4278190080,
2284
2277
  "type": 0,
2285
2278
  }
2286
2279
  }
2287
- strokeLinecap={1}
2288
- strokeLinejoin={1}
2289
- strokeWidth={1.5}
2290
- />
2280
+ >
2281
+ <RNSVGPath
2282
+ d="M11.2498 10H6.24982M6.24982 10L3.7881 2.71328C3.74537 2.59349 3.7402 2.4635 3.7733 2.34069C3.80639 2.21788 3.87616 2.10808 3.9733 2.02597C4.07044 1.94386 4.19032 1.89335 4.31693 1.88117C4.44353 1.86899 4.57084 1.89573 4.68185 1.95781L17.8069 9.4461C17.9045 9.50015 17.986 9.57937 18.0427 9.67555C18.0994 9.77172 18.1293 9.88133 18.1293 9.99297C18.1293 10.1046 18.0994 10.2142 18.0427 10.3104C17.986 10.4066 17.9045 10.4858 17.8069 10.5398L4.68185 18.0469C4.57051 18.1096 4.4426 18.1367 4.31537 18.1245C4.18815 18.1123 4.06772 18.0614 3.97032 17.9787C3.87292 17.8959 3.80323 17.7853 3.77065 17.6617C3.73807 17.5381 3.74416 17.4075 3.7881 17.2875L6.24982 10Z"
2283
+ fill={null}
2284
+ propList={
2285
+ [
2286
+ "fill",
2287
+ "stroke",
2288
+ "strokeWidth",
2289
+ "strokeLinecap",
2290
+ "strokeLinejoin",
2291
+ ]
2292
+ }
2293
+ stroke={
2294
+ {
2295
+ "payload": 4288916666,
2296
+ "type": 0,
2297
+ }
2298
+ }
2299
+ strokeLinecap={1}
2300
+ strokeLinejoin={1}
2301
+ strokeWidth={1.5}
2302
+ />
2303
+ </RNSVGGroup>
2291
2304
  </RNSVGGroup>
2292
2305
  </RNSVGSvgView>
2293
2306
  </View>
@@ -3,10 +3,7 @@ import { ActivityIndicator, StyleSheet, Text, View } from 'react-native';
3
3
 
4
4
  import type { ThreadState } from 'stream-chat';
5
5
 
6
- import {
7
- MessagesContextValue,
8
- useMessagesContext,
9
- } from '../../../contexts/messagesContext/MessagesContext';
6
+ import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
10
7
  import { useTheme } from '../../../contexts/themeContext/ThemeContext';
11
8
  import {
12
9
  ThreadContextValue,
@@ -16,8 +13,10 @@ import { useTranslationContext } from '../../../contexts/translationContext/Tran
16
13
  import { useStateStore } from '../../../hooks';
17
14
  import { primitives } from '../../../theme';
18
15
 
19
- type ThreadFooterComponentPropsWithContext = Pick<MessagesContextValue, 'Message'> &
20
- Pick<ThreadContextValue, 'parentMessagePreventPress' | 'thread' | 'threadInstance'>;
16
+ type ThreadFooterComponentPropsWithContext = Pick<
17
+ ThreadContextValue,
18
+ 'parentMessagePreventPress' | 'thread' | 'threadInstance'
19
+ >;
21
20
 
22
21
  export const InlineLoadingMoreThreadIndicator = () => {
23
22
  const { threadLoadingMore } = useThreadContext();
@@ -43,7 +42,8 @@ const selector = (nextValue: ThreadState) =>
43
42
  }) as const;
44
43
 
45
44
  const ThreadFooterComponentWithContext = (props: ThreadFooterComponentPropsWithContext) => {
46
- const { Message, parentMessagePreventPress, thread, threadInstance } = props;
45
+ const { parentMessagePreventPress, thread, threadInstance } = props;
46
+ const { Message } = useComponentsContext();
47
47
  const { t } = useTranslationContext();
48
48
 
49
49
  const styles = useStyles();
@@ -131,18 +131,17 @@ const MemoizedThreadFooter = React.memo(
131
131
  areEqual,
132
132
  ) as typeof ThreadFooterComponentWithContext;
133
133
 
134
- export type ThreadFooterComponentProps = Partial<Pick<MessagesContextValue, 'Message'>> &
135
- Partial<Pick<ThreadContextValue, 'parentMessagePreventPress' | 'thread'>>;
134
+ export type ThreadFooterComponentProps = Partial<
135
+ Pick<ThreadContextValue, 'parentMessagePreventPress' | 'thread'>
136
+ >;
136
137
 
137
138
  export const ThreadFooterComponent = (props: ThreadFooterComponentProps) => {
138
- const { Message } = useMessagesContext();
139
139
  const { parentMessagePreventPress, thread, threadInstance, threadLoadingMore } =
140
140
  useThreadContext();
141
141
 
142
142
  return (
143
143
  <MemoizedThreadFooter
144
144
  {...{
145
- Message,
146
145
  parentMessagePreventPress,
147
146
  thread,
148
147
  threadInstance,
@@ -5,9 +5,9 @@ import { Thread, ThreadManagerState } from 'stream-chat';
5
5
 
6
6
  import { ThreadListItem } from './ThreadListItem';
7
7
  import { ThreadListItemSkeleton } from './ThreadListItemSkeleton';
8
- import { ThreadListUnreadBanner as DefaultThreadListBanner } from './ThreadListUnreadBanner';
9
8
 
10
9
  import { useChatContext } from '../../contexts';
10
+ import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
11
11
  import {
12
12
  ThreadsContextValue,
13
13
  ThreadsProvider,
@@ -27,14 +27,8 @@ const selector = (nextValue: ThreadManagerState) =>
27
27
 
28
28
  export type ThreadListProps = Pick<
29
29
  ThreadsContextValue,
30
- | 'additionalFlatListProps'
31
- | 'isFocused'
32
- | 'onThreadSelect'
33
- | 'ThreadListItem'
34
- | 'ThreadListEmptyPlaceholder'
35
- | 'ThreadListLoadingIndicator'
36
- | 'ThreadListUnreadBanner'
37
- > & { ThreadList?: React.ComponentType };
30
+ 'additionalFlatListProps' | 'isFocused' | 'onThreadSelect'
31
+ >;
38
32
 
39
33
  export const DefaultThreadListEmptyPlaceholder = () => <EmptyStateIndicator listType='threads' />;
40
34
 
@@ -49,18 +43,15 @@ export const DefaultThreadListLoadingNextIndicator = () => <LoadingIndicator lis
49
43
 
50
44
  const renderItem = (props: { item: Thread }) => <ThreadListItem thread={props.item} />;
51
45
 
52
- const ThreadListComponent = () => {
46
+ export const DefaultThreadListComponent = () => {
47
+ const { additionalFlatListProps, isLoading, isLoadingNext, loadMore, threads } =
48
+ useThreadsContext();
53
49
  const {
54
- additionalFlatListProps,
55
- isLoading,
56
- isLoadingNext,
57
- loadMore,
58
- ThreadListEmptyPlaceholder = DefaultThreadListEmptyPlaceholder,
59
- ThreadListLoadingIndicator = DefaultThreadListLoadingIndicator,
60
- ThreadListLoadingMoreIndicator = DefaultThreadListLoadingNextIndicator,
61
- ThreadListUnreadBanner = DefaultThreadListBanner,
62
- threads,
63
- } = useThreadsContext();
50
+ ThreadListEmptyPlaceholder,
51
+ ThreadListLoadingIndicator,
52
+ ThreadListLoadingMoreIndicator,
53
+ ThreadListUnreadBanner,
54
+ } = useComponentsContext();
64
55
 
65
56
  if (isLoading) {
66
57
  return <ThreadListLoadingIndicator />;
@@ -85,7 +76,8 @@ const ThreadListComponent = () => {
85
76
  };
86
77
 
87
78
  export const ThreadList = (props: ThreadListProps) => {
88
- const { isFocused = true, ThreadList = ThreadListComponent } = props;
79
+ const { isFocused = true } = props;
80
+ const { ThreadListComponent: ThreadListContent } = useComponentsContext();
89
81
  const { client } = useChatContext();
90
82
 
91
83
  useEffect(() => {
@@ -120,7 +112,7 @@ export const ThreadList = (props: ThreadListProps) => {
120
112
  <ThreadsProvider
121
113
  value={{ isLoading, isLoadingNext, loadMore: client.threads.loadNextPage, threads, ...props }}
122
114
  >
123
- <ThreadList />
115
+ <ThreadListContent />
124
116
  </ThreadsProvider>
125
117
  );
126
118
  };
@@ -10,11 +10,8 @@ import {
10
10
  ThreadState,
11
11
  } from 'stream-chat';
12
12
 
13
- import { ThreadListItemMessagePreview as ThreadListItemMessagePreviewDefault } from './ThreadListItemMessagePreview';
14
-
15
- import { ThreadMessagePreviewDeliveryStatus as ThreadMessagePreviewDeliveryStatusDefault } from './ThreadMessagePreviewDeliveryStatus';
16
-
17
13
  import { useChatContext, useTheme, useTranslationContext } from '../../contexts';
14
+ import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
18
15
  import {
19
16
  ThreadListItemProvider,
20
17
  useThreadListItemContext,
@@ -62,11 +59,9 @@ export const ThreadListItemComponent = () => {
62
59
  } = useThreadListItemContext();
63
60
  const online = useChannelPreviewDisplayPresence(channel);
64
61
  const displayName = useChannelPreviewDisplayName(channel);
65
- const {
66
- onThreadSelect,
67
- ThreadListItemMessagePreview = ThreadListItemMessagePreviewDefault,
68
- ThreadMessagePreviewDeliveryStatus = ThreadMessagePreviewDeliveryStatusDefault,
69
- } = useThreadsContext();
62
+ const { onThreadSelect } = useThreadsContext();
63
+ const { ThreadListItemMessagePreview, ThreadMessagePreviewDeliveryStatus } =
64
+ useComponentsContext();
70
65
  const {
71
66
  theme: { semantics },
72
67
  } = useTheme();
@@ -143,7 +138,7 @@ export const ThreadListItem = (props: ThreadListItemProps) => {
143
138
  const { client } = useChatContext();
144
139
  const { t, tDateTimeParser } = useTranslationContext();
145
140
  const { thread, timestampTranslationKey = 'timestamp/ThreadListItem' } = props;
146
- const { ThreadListItem = ThreadListItemComponent } = useThreadsContext();
141
+ const { ThreadListItem: ThreadListItemOverride } = useComponentsContext();
147
142
  const { text: draftText } = useStateStore(
148
143
  thread.messageComposer.textComposer.state,
149
144
  textComposerStateSelector,
@@ -229,7 +224,7 @@ export const ThreadListItem = (props: ThreadListItemProps) => {
229
224
  thread,
230
225
  }}
231
226
  >
232
- <ThreadListItem />
227
+ <ThreadListItemOverride />
233
228
  </ThreadListItemProvider>
234
229
  );
235
230
  };
@@ -3,7 +3,7 @@ import { ColorValue, StyleProp, StyleSheet, View, ViewStyle } from 'react-native
3
3
 
4
4
  import { avatarSizes } from './constants';
5
5
 
6
- import { useChatContext } from '../../../contexts';
6
+ import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
7
7
  import { useTheme } from '../../../contexts/themeContext/ThemeContext';
8
8
  import { primitives } from '../../../theme';
9
9
 
@@ -21,7 +21,7 @@ export const Avatar = (props: AvatarProps) => {
21
21
  const {
22
22
  theme: { semantics },
23
23
  } = useTheme();
24
- const { ImageComponent } = useChatContext();
24
+ const { ImageComponent } = useComponentsContext();
25
25
  const defaultAvatarBg = semantics.avatarPaletteBg1;
26
26
  const {
27
27
  backgroundColor = defaultAvatarBg,
@@ -2,7 +2,6 @@ import React, { PropsWithChildren, useContext, useMemo, useState } from 'react';
2
2
 
3
3
  import BottomSheet from '@gorhom/bottom-sheet';
4
4
 
5
- import { AttachmentPickerContentProps } from '../../components';
6
5
  import {
7
6
  AttachmentPickerStore,
8
7
  SelectedPickerType,
@@ -21,10 +20,6 @@ export type AttachmentPickerContextValue = Pick<
21
20
  MessageInputContextValue,
22
21
  'attachmentSelectionBarHeight' | 'attachmentPickerBottomSheetHeight'
23
22
  > & {
24
- /**
25
- * Custom UI Component to render select more photos for selected gallery access in iOS.
26
- */
27
- AttachmentPickerIOSSelectMorePhotos: React.ComponentType;
28
23
  /**
29
24
  * `bottomInset` determine the height of the `AttachmentPicker` and the underlying shift to the `MessageList` when it is opened.
30
25
  * This can also be set via the `setBottomInset` function provided by the `useAttachmentPickerContext` hook.
@@ -39,16 +34,6 @@ export type AttachmentPickerContextValue = Pick<
39
34
  topInset: number;
40
35
 
41
36
  disableAttachmentPicker?: boolean;
42
- /**
43
- * Custom UI component to render overlay component, that shows up on top of [selected
44
- * image](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png) (with tick mark)
45
- *
46
- * **Default**
47
- * [ImageOverlaySelectedComponent](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/ImageOverlaySelectedComponent.tsx)
48
- */
49
- ImageOverlaySelectedComponent: React.ComponentType<{ index: number }>;
50
- AttachmentPickerSelectionBar: React.ComponentType;
51
- AttachmentPickerContent: React.ComponentType<AttachmentPickerContentProps>;
52
37
  attachmentPickerStore: AttachmentPickerStore;
53
38
  numberOfAttachmentPickerImageColumns?: number;
54
39
  numberOfAttachmentImagesToLoadPerCall?: number;
@@ -3,9 +3,6 @@ import React, { PropsWithChildren, useContext } from 'react';
3
3
  import type { Channel, ChannelState } from 'stream-chat';
4
4
 
5
5
  import { MarkReadFunctionOptions } from '../../components/Channel/Channel';
6
- import type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';
7
- import type { LoadingProps } from '../../components/Indicators/LoadingIndicator';
8
- import { StickyHeaderProps } from '../../components/MessageList/StickyHeader';
9
6
  import {
10
7
  ChannelUnreadStateStore,
11
8
  ChannelUnreadStateStoreType,
@@ -38,12 +35,6 @@ export type ChannelContextValue = {
38
35
  * @overrideType Channel
39
36
  */
40
37
  channel: Channel;
41
- /**
42
- * Custom UI component to display empty state when channel has no messages.
43
- *
44
- * **Default** [EmptyStateIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Indicators/EmptyStateIndicator.tsx)
45
- */
46
- EmptyStateIndicator: React.ComponentType<EmptyStateProps>;
47
38
  /**
48
39
  * When set to true, reactions will be limited to 1 per user. If user selects another reaction
49
40
  * then his previous reaction will be removed and replaced with new one.
@@ -90,10 +81,6 @@ export type ChannelContextValue = {
90
81
  setTargetedMessage?: (messageId: string) => void;
91
82
  }) => Promise<void>;
92
83
 
93
- /**
94
- * Custom loading indicator to override the Stream default
95
- */
96
- LoadingIndicator: React.ComponentType<LoadingProps>;
97
84
  markRead: (options?: MarkReadFunctionOptions) => void;
98
85
  /**
99
86
  *
@@ -119,10 +106,6 @@ export type ChannelContextValue = {
119
106
  * ```
120
107
  */
121
108
  members: ChannelState['members'];
122
- /**
123
- * Custom network down indicator to override the Stream default
124
- */
125
- NetworkDownIndicator: React.ComponentType;
126
109
  read: ChannelState['read'];
127
110
  reloadChannel: () => Promise<void>;
128
111
  scrollToFirstUnreadThreshold: number;
@@ -156,13 +139,6 @@ export type ChannelContextValue = {
156
139
  * currently near them within the viewport.
157
140
  */
158
141
  maximumMessageLimit?: number;
159
- /**
160
- * Custom UI component for sticky header of channel.
161
- *
162
- * **Default** [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/DateHeader.tsx)
163
- */
164
- StickyHeader?: React.ComponentType<StickyHeaderProps>;
165
-
166
142
  /**
167
143
  * Id of message, around which Channel/MessageList gets loaded when opened.
168
144
  * You will see a highlighted background for targetted message, when opened.
@@ -5,23 +5,8 @@ import type { FlatList } from 'react-native-gesture-handler';
5
5
 
6
6
  import type { Channel } from 'stream-chat';
7
7
 
8
- import type { HeaderErrorProps } from '../../components/ChannelList/ChannelListHeaderErrorIndicator';
9
8
  import type { GetChannelActionItems } from '../../components/ChannelList/hooks/useChannelActionItems';
10
9
  import type { QueryChannels } from '../../components/ChannelList/hooks/usePaginatedChannels';
11
- import type { ChannelDetailsBottomSheetProps } from '../../components/ChannelPreview/ChannelDetailsBottomSheet';
12
- import { ChannelLastMessagePreviewProps } from '../../components/ChannelPreview/ChannelLastMessagePreview';
13
- import { ChannelMessagePreviewDeliveryStatusProps } from '../../components/ChannelPreview/ChannelMessagePreviewDeliveryStatus';
14
- import { ChannelPreviewMessageProps } from '../../components/ChannelPreview/ChannelPreviewMessage';
15
- import type { ChannelPreviewStatusProps } from '../../components/ChannelPreview/ChannelPreviewStatus';
16
- import type { ChannelPreviewTitleProps } from '../../components/ChannelPreview/ChannelPreviewTitle';
17
- import { ChannelPreviewTypingIndicatorProps } from '../../components/ChannelPreview/ChannelPreviewTypingIndicator';
18
- import type { ChannelPreviewUnreadCountProps } from '../../components/ChannelPreview/ChannelPreviewUnreadCount';
19
- import type { ChannelPreviewViewProps } from '../../components/ChannelPreview/ChannelPreviewView';
20
- import type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';
21
- import type { LoadingErrorProps } from '../../components/Indicators/LoadingErrorIndicator';
22
- import type { LoadingProps } from '../../components/Indicators/LoadingIndicator';
23
-
24
- import { ChannelAvatarProps } from '../../components/ui/Avatar/ChannelAvatar';
25
10
  import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
26
11
 
27
12
  import { isTestEnvironment } from '../utils/isTestEnvironment';
@@ -53,18 +38,6 @@ export type ChannelsContextValue = {
53
38
  * Channels can be either an array of channels or a promise which resolves to an array of channels
54
39
  */
55
40
  channels: Channel[] | null;
56
- /**
57
- * Custom indicator to use when channel list is empty
58
- *
59
- * Default: [EmptyStateIndicator](https://getstream.io/chat/docs/sdk/reactnative/core-components/channel/#emptystateindicator)
60
- * */
61
- EmptyStateIndicator: React.ComponentType<EmptyStateProps>;
62
- /**
63
- * Custom loading indicator to display at bottom of the list, while loading further pages
64
- *
65
- * Default: [ChannelListFooterLoadingIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#footerloadingindicator)
66
- */
67
- FooterLoadingIndicator: React.ComponentType;
68
41
  /**
69
42
  * Incremental number change to force update the FlatList
70
43
  */
@@ -73,33 +46,10 @@ export type ChannelsContextValue = {
73
46
  * Whether or not the FlatList has another page to render
74
47
  */
75
48
  hasNextPage: boolean;
76
- /**
77
- * Custom indicator to display error at top of list, if loading/pagination error occurs
78
- *
79
- * Default: [ChannelListHeaderErrorIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#headererrorindicator)
80
- */
81
- HeaderErrorIndicator: React.ComponentType<HeaderErrorProps>;
82
- /**
83
- * Custom indicator to display network-down error at top of list, if there is connectivity issue
84
- *
85
- * Default: [ChannelListHeaderNetworkDownIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#headernetworkdownindicator)
86
- */
87
- HeaderNetworkDownIndicator: React.ComponentType;
88
49
  /**
89
50
  * Initial channels query loading state, triggers the LoadingIndicator
90
51
  */
91
52
  loadingChannels: boolean;
92
- /**
93
- * Custom indicator to use when there is error in fetching channels
94
- *
95
- * Default: [LoadingErrorIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#loadingerrorindicator)
96
- * */
97
- LoadingErrorIndicator: React.ComponentType<LoadingErrorProps>;
98
- /**
99
- * Custom loading indicator to use on Channel List
100
- *
101
- * */
102
- LoadingIndicator: React.ComponentType<Pick<LoadingProps, 'listType'>>;
103
53
  /**
104
54
  * Whether or not additional channels are being loaded, triggers the FooterLoadingIndicator
105
55
  */
@@ -121,12 +71,6 @@ export type ChannelsContextValue = {
121
71
  * Number of skeletons that should show when loading. Default: 6
122
72
  */
123
73
  numberOfSkeletons: number;
124
- /**
125
- * Custom UI component to display individual channel list items
126
- *
127
- * Default: [ChannelPreviewView](https://getstream.io/chat/docs/sdk/reactnative/ui-components/channel-preview-view/)
128
- */
129
- Preview: React.ComponentType<ChannelPreviewViewProps>;
130
74
  /**
131
75
  * Triggered when the channel list is refreshing, displays a loading spinner at the top of the list
132
76
  */
@@ -159,73 +103,16 @@ export type ChannelsContextValue = {
159
103
  * ```
160
104
  */
161
105
  setFlatListRef: (ref: FlatList<Channel> | null) => void;
162
- /**
163
- * Custom UI component to display loading channel skeletons
164
- *
165
- * Default: [Skeleton](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#skeleton)
166
- */
167
- Skeleton: React.ComponentType;
168
106
  /**
169
107
  * Error in channels query, if any
170
108
  */
171
109
  error?: Error;
172
- ListHeaderComponent?: React.ComponentType;
173
110
  /**
174
111
  * Function to set the currently active channel, acts as a bridge between ChannelList and Channel components
175
112
  *
176
113
  * @param channel A channel object
177
114
  */
178
115
  onSelect?: (channel: Channel) => void;
179
- /**
180
- * Custom UI component to render preview avatar.
181
- *
182
- * **Default** [ChannelAvatar](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelAvatar.tsx)
183
- */
184
- PreviewAvatar?: React.ComponentType<ChannelAvatarProps>;
185
- /**
186
- * Custom UI component to render preview of latest message on channel.
187
- *
188
- * **Default** [ChannelPreviewMessage](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewMessage.tsx)
189
- */
190
- PreviewMessage?: React.ComponentType<ChannelPreviewMessageProps>;
191
- /**
192
- * Custom UI component to render delivery status of latest message on channel.
193
- *
194
- * **Default** [ChannelMessagePreviewDeliveryStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.tsx)
195
- */
196
- PreviewMessageDeliveryStatus?: React.ComponentType<ChannelMessagePreviewDeliveryStatusProps>;
197
- /**
198
- * Custom UI component to render muted status.
199
- *
200
- * **Default** [ChannelMutedStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx)
201
- */
202
- PreviewMutedStatus?: React.ComponentType;
203
- /**
204
- * Custom UI component to render preview avatar.
205
- *
206
- * **Default** [ChannelPreviewStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewStatus.tsx)
207
- */
208
- PreviewStatus?: React.ComponentType<ChannelPreviewStatusProps>;
209
- /**
210
- * Custom UI component to render preview avatar.
211
- *
212
- * **Default** [ChannelPreviewTitle](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewTitle.tsx)
213
- */
214
- PreviewTitle?: React.ComponentType<ChannelPreviewTitleProps>;
215
- /**
216
- * Custom UI component to render preview avatar.
217
- *
218
- * **Default** [ChannelPreviewUnreadCount](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx)
219
- */
220
- PreviewUnreadCount?: React.ComponentType<ChannelPreviewUnreadCountProps>;
221
- PreviewTypingIndicator?: React.ComponentType<ChannelPreviewTypingIndicatorProps>;
222
- ChannelDetailsBottomSheet?: React.ComponentType<ChannelDetailsBottomSheetProps>;
223
- /**
224
- * Custom UI component to render preview of last message on channel.
225
- *
226
- * **Default** [ChannelLastMessagePreview](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelLastMessagePreview.tsx)
227
- */
228
- PreviewLastMessage?: React.ComponentType<ChannelLastMessagePreviewProps>;
229
116
  getChannelActionItems?: GetChannelActionItems;
230
117
  swipeActionsEnabled?: boolean;
231
118
 
@@ -1,5 +1,4 @@
1
1
  import React, { PropsWithChildren, useContext } from 'react';
2
- import type { ImageProps } from 'react-native';
3
2
 
4
3
  import type { AppSettingsAPIResponse, Channel, Mute, StreamChat } from 'stream-chat';
5
4
 
@@ -32,10 +31,6 @@ export type ChatContextValue = {
32
31
  client: StreamChat;
33
32
  connectionRecovering: boolean;
34
33
  enableOfflineSupport: boolean;
35
- /**
36
- * Drop in replacement of all the underlying Image components within SDK. This is useful for the purpose of offline caching of images. Please check the Offline Support Guide for usage.
37
- */
38
- ImageComponent: React.ComponentType<ImageProps>;
39
34
  isOnline: boolean | null;
40
35
  mutedUsers: Mute[];
41
36
  /**