stream-chat-react-native-core 9.0.0-beta.31 → 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 (590) 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/MessageInput/MessageComposer.js +15 -55
  86. package/lib/commonjs/components/MessageInput/MessageComposer.js.map +1 -1
  87. package/lib/commonjs/components/MessageInput/MessageInputHeaderView.js +5 -5
  88. package/lib/commonjs/components/MessageInput/MessageInputHeaderView.js.map +1 -1
  89. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js +9 -17
  90. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js.map +1 -1
  91. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js +5 -5
  92. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js.map +1 -1
  93. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js +5 -5
  94. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js.map +1 -1
  95. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +5 -5
  96. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
  97. package/lib/commonjs/components/MessageInput/components/InputButtons/index.js +4 -4
  98. package/lib/commonjs/components/MessageInput/components/InputButtons/index.js.map +1 -1
  99. package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js +3 -2
  100. package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js.map +1 -1
  101. package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js +7 -13
  102. package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js.map +1 -1
  103. package/lib/commonjs/components/MessageList/MessageFlashList.js +14 -40
  104. package/lib/commonjs/components/MessageList/MessageFlashList.js.map +1 -1
  105. package/lib/commonjs/components/MessageList/MessageList.js +12 -38
  106. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  107. package/lib/commonjs/components/MessageList/StickyHeader.js +3 -1
  108. package/lib/commonjs/components/MessageList/StickyHeader.js.map +1 -1
  109. package/lib/commonjs/components/MessageMenu/MessageActionList.js +4 -2
  110. package/lib/commonjs/components/MessageMenu/MessageActionList.js.map +1 -1
  111. package/lib/commonjs/components/MessageMenu/MessageMenu.js.map +1 -1
  112. package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +4 -8
  113. package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
  114. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +4 -2
  115. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
  116. package/lib/commonjs/components/Poll/CreatePollContent.js +3 -1
  117. package/lib/commonjs/components/Poll/CreatePollContent.js.map +1 -1
  118. package/lib/commonjs/components/Poll/Poll.js +12 -9
  119. package/lib/commonjs/components/Poll/Poll.js.map +1 -1
  120. package/lib/commonjs/components/Poll/components/PollAnswersList.js +5 -3
  121. package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -1
  122. package/lib/commonjs/components/Poll/components/PollOption.js +5 -3
  123. package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
  124. package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js +5 -5
  125. package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
  126. package/lib/commonjs/components/Poll/components/PollResults/PollResults.js +5 -3
  127. package/lib/commonjs/components/Poll/components/PollResults/PollResults.js.map +1 -1
  128. package/lib/commonjs/components/Reply/Reply.js +4 -2
  129. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  130. package/lib/commonjs/components/Thread/Thread.js +4 -8
  131. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  132. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +4 -6
  133. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  134. package/lib/commonjs/components/ThreadList/ThreadList.js +12 -15
  135. package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
  136. package/lib/commonjs/components/ThreadList/ThreadListItem.js +8 -11
  137. package/lib/commonjs/components/ThreadList/ThreadListItem.js.map +1 -1
  138. package/lib/commonjs/components/ui/Avatar/Avatar.js +3 -3
  139. package/lib/commonjs/components/ui/Avatar/Avatar.js.map +1 -1
  140. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  141. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  142. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  143. package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
  144. package/lib/commonjs/contexts/componentsContext/ComponentsContext.js +37 -0
  145. package/lib/commonjs/contexts/componentsContext/ComponentsContext.js.map +1 -0
  146. package/lib/commonjs/contexts/componentsContext/PLAN.md +148 -0
  147. package/lib/commonjs/contexts/componentsContext/defaultComponents.js +286 -0
  148. package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -0
  149. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +1 -9
  150. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  151. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContextBase.js.map +1 -1
  152. package/lib/commonjs/contexts/index.js +11 -0
  153. package/lib/commonjs/contexts/index.js.map +1 -1
  154. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  155. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -76
  156. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  157. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  158. package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js +7 -5
  159. package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
  160. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  161. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +1 -4
  162. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  163. package/lib/commonjs/contexts/threadsContext/ThreadsContext.js.map +1 -1
  164. package/lib/commonjs/version.json +1 -1
  165. package/lib/module/components/Attachment/Attachment.js +15 -52
  166. package/lib/module/components/Attachment/Attachment.js.map +1 -1
  167. package/lib/module/components/Attachment/FileAttachment.js +4 -6
  168. package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
  169. package/lib/module/components/Attachment/FileAttachmentGroup.js +4 -10
  170. package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
  171. package/lib/module/components/Attachment/FilePreview.js +3 -6
  172. package/lib/module/components/Attachment/FilePreview.js.map +1 -1
  173. package/lib/module/components/Attachment/Gallery.js +9 -28
  174. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  175. package/lib/module/components/Attachment/GalleryImage.js +3 -3
  176. package/lib/module/components/Attachment/GalleryImage.js.map +1 -1
  177. package/lib/module/components/Attachment/Giphy/GiphyImage.js +7 -13
  178. package/lib/module/components/Attachment/Giphy/GiphyImage.js.map +1 -1
  179. package/lib/module/components/Attachment/UnsupportedAttachment.js +4 -6
  180. package/lib/module/components/Attachment/UnsupportedAttachment.js.map +1 -1
  181. package/lib/module/components/Attachment/UrlPreview/URLPreview.js +3 -3
  182. package/lib/module/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
  183. package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js +3 -3
  184. package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
  185. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +4 -2
  186. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  187. package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +7 -4
  188. package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
  189. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +9 -13
  190. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  191. package/lib/module/components/Channel/Channel.js +9 -418
  192. package/lib/module/components/Channel/Channel.js.map +1 -1
  193. package/lib/module/components/Channel/hooks/useCreateChannelContext.js +0 -8
  194. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  195. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +3 -77
  196. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  197. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +2 -132
  198. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  199. package/lib/module/components/ChannelList/ChannelList.js +1 -57
  200. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  201. package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js +4 -2
  202. package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
  203. package/lib/module/components/ChannelList/ChannelListView.js +11 -20
  204. package/lib/module/components/ChannelList/ChannelListView.js.map +1 -1
  205. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js +1 -39
  206. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  207. package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js +3 -2
  208. package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
  209. package/lib/module/components/ChannelPreview/ChannelPreview.js +4 -6
  210. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  211. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +6 -18
  212. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  213. package/lib/module/components/ChannelPreview/ChannelPreviewView.js +8 -28
  214. package/lib/module/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
  215. package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js +3 -3
  216. package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
  217. package/lib/module/components/Chat/Chat.js +4 -6
  218. package/lib/module/components/Chat/Chat.js.map +1 -1
  219. package/lib/module/components/Chat/hooks/useCreateChatContext.js +0 -2
  220. package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  221. package/lib/module/components/ImageGallery/ImageGallery.js +7 -9
  222. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  223. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +4 -2
  224. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  225. package/lib/module/components/Message/Message.js +9 -13
  226. package/lib/module/components/Message/Message.js.map +1 -1
  227. package/lib/module/components/Message/MessageItemView/MessageBubble.js +4 -2
  228. package/lib/module/components/Message/MessageItemView/MessageBubble.js.map +1 -1
  229. package/lib/module/components/Message/MessageItemView/MessageContent.js +18 -39
  230. package/lib/module/components/Message/MessageItemView/MessageContent.js.map +1 -1
  231. package/lib/module/components/Message/MessageItemView/MessageDeleted.js +5 -7
  232. package/lib/module/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
  233. package/lib/module/components/Message/MessageItemView/MessageFooter.js +4 -8
  234. package/lib/module/components/Message/MessageItemView/MessageFooter.js.map +1 -1
  235. package/lib/module/components/Message/MessageItemView/MessageHeader.js +8 -16
  236. package/lib/module/components/Message/MessageItemView/MessageHeader.js.map +1 -1
  237. package/lib/module/components/Message/MessageItemView/MessageItemView.js +13 -35
  238. package/lib/module/components/Message/MessageItemView/MessageItemView.js.map +1 -1
  239. package/lib/module/components/Message/MessageItemView/MessageReplies.js +3 -5
  240. package/lib/module/components/Message/MessageItemView/MessageReplies.js.map +1 -1
  241. package/lib/module/components/Message/MessageItemView/MessageTextContainer.js +3 -3
  242. package/lib/module/components/Message/MessageItemView/MessageTextContainer.js.map +1 -1
  243. package/lib/module/components/Message/MessageItemView/MessageWrapper.js +6 -4
  244. package/lib/module/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
  245. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListBottom.js +6 -8
  246. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListBottom.js.map +1 -1
  247. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListTop.js +7 -11
  248. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListTop.js.map +1 -1
  249. package/lib/module/components/MessageInput/MessageComposer.js +15 -55
  250. package/lib/module/components/MessageInput/MessageComposer.js.map +1 -1
  251. package/lib/module/components/MessageInput/MessageInputHeaderView.js +5 -5
  252. package/lib/module/components/MessageInput/MessageInputHeaderView.js.map +1 -1
  253. package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js +9 -17
  254. package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js.map +1 -1
  255. package/lib/module/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js +5 -5
  256. package/lib/module/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js.map +1 -1
  257. package/lib/module/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js +5 -5
  258. package/lib/module/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js.map +1 -1
  259. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +5 -5
  260. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
  261. package/lib/module/components/MessageInput/components/InputButtons/index.js +4 -4
  262. package/lib/module/components/MessageInput/components/InputButtons/index.js.map +1 -1
  263. package/lib/module/components/MessageInput/components/LinkPreviewList.js +3 -2
  264. package/lib/module/components/MessageInput/components/LinkPreviewList.js.map +1 -1
  265. package/lib/module/components/MessageInput/components/OutputButtons/index.js +7 -13
  266. package/lib/module/components/MessageInput/components/OutputButtons/index.js.map +1 -1
  267. package/lib/module/components/MessageList/MessageFlashList.js +14 -40
  268. package/lib/module/components/MessageList/MessageFlashList.js.map +1 -1
  269. package/lib/module/components/MessageList/MessageList.js +12 -38
  270. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  271. package/lib/module/components/MessageList/StickyHeader.js +3 -1
  272. package/lib/module/components/MessageList/StickyHeader.js.map +1 -1
  273. package/lib/module/components/MessageMenu/MessageActionList.js +4 -2
  274. package/lib/module/components/MessageMenu/MessageActionList.js.map +1 -1
  275. package/lib/module/components/MessageMenu/MessageMenu.js.map +1 -1
  276. package/lib/module/components/MessageMenu/MessageUserReactions.js +4 -8
  277. package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
  278. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +4 -2
  279. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
  280. package/lib/module/components/Poll/CreatePollContent.js +3 -1
  281. package/lib/module/components/Poll/CreatePollContent.js.map +1 -1
  282. package/lib/module/components/Poll/Poll.js +12 -9
  283. package/lib/module/components/Poll/Poll.js.map +1 -1
  284. package/lib/module/components/Poll/components/PollAnswersList.js +5 -3
  285. package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -1
  286. package/lib/module/components/Poll/components/PollOption.js +5 -3
  287. package/lib/module/components/Poll/components/PollOption.js.map +1 -1
  288. package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js +5 -5
  289. package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
  290. package/lib/module/components/Poll/components/PollResults/PollResults.js +5 -3
  291. package/lib/module/components/Poll/components/PollResults/PollResults.js.map +1 -1
  292. package/lib/module/components/Reply/Reply.js +4 -2
  293. package/lib/module/components/Reply/Reply.js.map +1 -1
  294. package/lib/module/components/Thread/Thread.js +4 -8
  295. package/lib/module/components/Thread/Thread.js.map +1 -1
  296. package/lib/module/components/Thread/components/ThreadFooterComponent.js +4 -6
  297. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  298. package/lib/module/components/ThreadList/ThreadList.js +12 -15
  299. package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
  300. package/lib/module/components/ThreadList/ThreadListItem.js +8 -11
  301. package/lib/module/components/ThreadList/ThreadListItem.js.map +1 -1
  302. package/lib/module/components/ui/Avatar/Avatar.js +3 -3
  303. package/lib/module/components/ui/Avatar/Avatar.js.map +1 -1
  304. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  305. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  306. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  307. package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
  308. package/lib/module/contexts/componentsContext/ComponentsContext.js +37 -0
  309. package/lib/module/contexts/componentsContext/ComponentsContext.js.map +1 -0
  310. package/lib/module/contexts/componentsContext/PLAN.md +148 -0
  311. package/lib/module/contexts/componentsContext/defaultComponents.js +286 -0
  312. package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -0
  313. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +1 -9
  314. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  315. package/lib/module/contexts/imageGalleryContext/ImageGalleryContextBase.js.map +1 -1
  316. package/lib/module/contexts/index.js +11 -0
  317. package/lib/module/contexts/index.js.map +1 -1
  318. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  319. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -76
  320. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  321. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  322. package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js +7 -5
  323. package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
  324. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  325. package/lib/module/contexts/overlayContext/OverlayProvider.js +1 -4
  326. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  327. package/lib/module/contexts/threadsContext/ThreadsContext.js.map +1 -1
  328. package/lib/module/version.json +1 -1
  329. package/lib/typescript/components/Attachment/Attachment.d.ts +1 -1
  330. package/lib/typescript/components/Attachment/Attachment.d.ts.map +1 -1
  331. package/lib/typescript/components/Attachment/FileAttachment.d.ts +1 -1
  332. package/lib/typescript/components/Attachment/FileAttachment.d.ts.map +1 -1
  333. package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts +1 -2
  334. package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts.map +1 -1
  335. package/lib/typescript/components/Attachment/FilePreview.d.ts +2 -3
  336. package/lib/typescript/components/Attachment/FilePreview.d.ts.map +1 -1
  337. package/lib/typescript/components/Attachment/Gallery.d.ts +1 -1
  338. package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
  339. package/lib/typescript/components/Attachment/GalleryImage.d.ts +3 -2
  340. package/lib/typescript/components/Attachment/GalleryImage.d.ts.map +1 -1
  341. package/lib/typescript/components/Attachment/Giphy/GiphyImage.d.ts +4 -2
  342. package/lib/typescript/components/Attachment/Giphy/GiphyImage.d.ts.map +1 -1
  343. package/lib/typescript/components/Attachment/UnsupportedAttachment.d.ts +2 -3
  344. package/lib/typescript/components/Attachment/UnsupportedAttachment.d.ts.map +1 -1
  345. package/lib/typescript/components/Attachment/UrlPreview/URLPreview.d.ts +4 -3
  346. package/lib/typescript/components/Attachment/UrlPreview/URLPreview.d.ts.map +1 -1
  347. package/lib/typescript/components/Attachment/UrlPreview/URLPreviewCompact.d.ts +4 -3
  348. package/lib/typescript/components/Attachment/UrlPreview/URLPreviewCompact.d.ts.map +1 -1
  349. package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -1
  350. package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.d.ts.map +1 -1
  351. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +2 -3
  352. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -1
  353. package/lib/typescript/components/Channel/Channel.d.ts +3 -28
  354. package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
  355. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
  356. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -1
  357. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
  358. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
  359. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
  360. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
  361. package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts.map +1 -1
  362. package/lib/typescript/components/ChannelList/ChannelList.d.ts +2 -10
  363. package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
  364. package/lib/typescript/components/ChannelList/ChannelListLoadingIndicator.d.ts.map +1 -1
  365. package/lib/typescript/components/ChannelList/ChannelListView.d.ts +1 -1
  366. package/lib/typescript/components/ChannelList/ChannelListView.d.ts.map +1 -1
  367. package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts +1 -1
  368. package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts.map +1 -1
  369. package/lib/typescript/components/ChannelPreview/ChannelDetailsBottomSheet.d.ts +1 -2
  370. package/lib/typescript/components/ChannelPreview/ChannelDetailsBottomSheet.d.ts.map +1 -1
  371. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +1 -1
  372. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
  373. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts +1 -2
  374. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -1
  375. package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts +1 -1
  376. package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts.map +1 -1
  377. package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts +1 -3
  378. package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts.map +1 -1
  379. package/lib/typescript/components/Chat/Chat.d.ts +1 -7
  380. package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
  381. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -1
  382. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
  383. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +6 -1
  384. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
  385. package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -1
  386. package/lib/typescript/components/ImageGallery/components/types.d.ts +0 -2
  387. package/lib/typescript/components/ImageGallery/components/types.d.ts.map +1 -1
  388. package/lib/typescript/components/Message/Message.d.ts +1 -1
  389. package/lib/typescript/components/Message/Message.d.ts.map +1 -1
  390. package/lib/typescript/components/Message/MessageItemView/MessageBubble.d.ts +1 -2
  391. package/lib/typescript/components/Message/MessageItemView/MessageBubble.d.ts.map +1 -1
  392. package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts +1 -1
  393. package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts.map +1 -1
  394. package/lib/typescript/components/Message/MessageItemView/MessageDeleted.d.ts +1 -2
  395. package/lib/typescript/components/Message/MessageItemView/MessageDeleted.d.ts.map +1 -1
  396. package/lib/typescript/components/Message/MessageItemView/MessageFooter.d.ts +0 -2
  397. package/lib/typescript/components/Message/MessageItemView/MessageFooter.d.ts.map +1 -1
  398. package/lib/typescript/components/Message/MessageItemView/MessageHeader.d.ts.map +1 -1
  399. package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts +1 -1
  400. package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts.map +1 -1
  401. package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts +1 -2
  402. package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts.map +1 -1
  403. package/lib/typescript/components/Message/MessageItemView/MessageTextContainer.d.ts +1 -1
  404. package/lib/typescript/components/Message/MessageItemView/MessageTextContainer.d.ts.map +1 -1
  405. package/lib/typescript/components/Message/MessageItemView/MessageWrapper.d.ts.map +1 -1
  406. package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListBottom.d.ts +1 -1
  407. package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListBottom.d.ts.map +1 -1
  408. package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListTop.d.ts +1 -1
  409. package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListTop.d.ts.map +1 -1
  410. package/lib/typescript/components/MessageInput/MessageComposer.d.ts +1 -2
  411. package/lib/typescript/components/MessageInput/MessageComposer.d.ts.map +1 -1
  412. package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.d.ts +3 -4
  413. package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.d.ts.map +1 -1
  414. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts +1 -1
  415. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts.map +1 -1
  416. package/lib/typescript/components/MessageInput/components/InputButtons/index.d.ts +1 -1
  417. package/lib/typescript/components/MessageInput/components/InputButtons/index.d.ts.map +1 -1
  418. package/lib/typescript/components/MessageInput/components/LinkPreviewList.d.ts.map +1 -1
  419. package/lib/typescript/components/MessageInput/components/OutputButtons/index.d.ts +1 -1
  420. package/lib/typescript/components/MessageInput/components/OutputButtons/index.d.ts.map +1 -1
  421. package/lib/typescript/components/MessageList/MessageFlashList.d.ts +1 -1
  422. package/lib/typescript/components/MessageList/MessageFlashList.d.ts.map +1 -1
  423. package/lib/typescript/components/MessageList/MessageList.d.ts +1 -1
  424. package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
  425. package/lib/typescript/components/MessageList/StickyHeader.d.ts +2 -3
  426. package/lib/typescript/components/MessageList/StickyHeader.d.ts.map +1 -1
  427. package/lib/typescript/components/MessageMenu/MessageActionList.d.ts +1 -2
  428. package/lib/typescript/components/MessageMenu/MessageActionList.d.ts.map +1 -1
  429. package/lib/typescript/components/MessageMenu/MessageMenu.d.ts +1 -2
  430. package/lib/typescript/components/MessageMenu/MessageMenu.d.ts.map +1 -1
  431. package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts +1 -1
  432. package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -1
  433. package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts +2 -3
  434. package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +1 -1
  435. package/lib/typescript/components/Poll/CreatePollContent.d.ts +2 -2
  436. package/lib/typescript/components/Poll/CreatePollContent.d.ts.map +1 -1
  437. package/lib/typescript/components/Poll/Poll.d.ts +5 -8
  438. package/lib/typescript/components/Poll/Poll.d.ts.map +1 -1
  439. package/lib/typescript/components/Poll/components/PollAnswersList.d.ts +1 -2
  440. package/lib/typescript/components/Poll/components/PollAnswersList.d.ts.map +1 -1
  441. package/lib/typescript/components/Poll/components/PollOption.d.ts +1 -2
  442. package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
  443. package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts +1 -4
  444. package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts.map +1 -1
  445. package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts +1 -2
  446. package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts.map +1 -1
  447. package/lib/typescript/components/Reply/Reply.d.ts +4 -3
  448. package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
  449. package/lib/typescript/components/Thread/Thread.d.ts +2 -8
  450. package/lib/typescript/components/Thread/Thread.d.ts.map +1 -1
  451. package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts +1 -2
  452. package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts.map +1 -1
  453. package/lib/typescript/components/ThreadList/ThreadList.d.ts +2 -3
  454. package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
  455. package/lib/typescript/components/ThreadList/ThreadListItem.d.ts.map +1 -1
  456. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +0 -17
  457. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
  458. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +0 -23
  459. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
  460. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +0 -112
  461. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -1
  462. package/lib/typescript/contexts/chatContext/ChatContext.d.ts +0 -5
  463. package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -1
  464. package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts +321 -0
  465. package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts.map +1 -0
  466. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +296 -0
  467. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -0
  468. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -1
  469. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContextBase.d.ts +0 -5
  470. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContextBase.d.ts.map +1 -1
  471. package/lib/typescript/contexts/index.d.ts +1 -0
  472. package/lib/typescript/contexts/index.d.ts.map +1 -1
  473. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +1 -169
  474. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
  475. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
  476. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
  477. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +3 -332
  478. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
  479. package/lib/typescript/contexts/overlayContext/MessageOverlayHostLayer.d.ts +2 -5
  480. package/lib/typescript/contexts/overlayContext/MessageOverlayHostLayer.d.ts.map +1 -1
  481. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +0 -4
  482. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts.map +1 -1
  483. package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
  484. package/lib/typescript/contexts/threadsContext/ThreadsContext.d.ts +0 -9
  485. package/lib/typescript/contexts/threadsContext/ThreadsContext.d.ts.map +1 -1
  486. package/package.json +1 -1
  487. package/src/__tests__/offline-support/offline-feature.js +64 -67
  488. package/src/components/Attachment/Attachment.tsx +7 -69
  489. package/src/components/Attachment/FileAttachment.tsx +4 -7
  490. package/src/components/Attachment/FileAttachmentGroup.tsx +9 -19
  491. package/src/components/Attachment/FilePreview.tsx +4 -9
  492. package/src/components/Attachment/Gallery.tsx +6 -83
  493. package/src/components/Attachment/GalleryImage.tsx +5 -4
  494. package/src/components/Attachment/Giphy/GiphyImage.tsx +15 -37
  495. package/src/components/Attachment/UnsupportedAttachment.tsx +5 -10
  496. package/src/components/Attachment/UrlPreview/URLPreview.tsx +6 -4
  497. package/src/components/Attachment/UrlPreview/URLPreviewCompact.tsx +6 -4
  498. package/src/components/AttachmentPicker/AttachmentPicker.tsx +2 -2
  499. package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx +5 -4
  500. package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +4 -20
  501. package/src/components/Channel/Channel.tsx +31 -438
  502. package/src/components/Channel/__tests__/isAttachmentEqualHandler.test.js +12 -9
  503. package/src/components/Channel/hooks/useCreateChannelContext.ts +0 -8
  504. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +1 -81
  505. package/src/components/Channel/hooks/useCreateMessagesContext.ts +0 -130
  506. package/src/components/ChannelList/ChannelList.tsx +3 -76
  507. package/src/components/ChannelList/ChannelListLoadingIndicator.tsx +3 -1
  508. package/src/components/ChannelList/ChannelListView.tsx +12 -33
  509. package/src/components/ChannelList/__tests__/ChannelList.test.js +173 -116
  510. package/src/components/ChannelList/__tests__/ChannelListView.test.js +64 -41
  511. package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +0 -39
  512. package/src/components/ChannelPreview/ChannelDetailsBottomSheet.tsx +2 -2
  513. package/src/components/ChannelPreview/ChannelPreview.tsx +6 -14
  514. package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +7 -33
  515. package/src/components/ChannelPreview/ChannelPreviewView.tsx +11 -40
  516. package/src/components/ChannelPreview/ChannelSwipableWrapper.tsx +2 -4
  517. package/src/components/ChannelPreview/__tests__/ChannelDetailsBottomSheet.test.tsx +16 -12
  518. package/src/components/ChannelPreview/__tests__/ChannelPreview.test.tsx +25 -24
  519. package/src/components/ChannelPreview/__tests__/ChannelSwipableWrapper.test.tsx +11 -6
  520. package/src/components/Chat/Chat.tsx +5 -12
  521. package/src/components/Chat/hooks/useCreateChatContext.ts +0 -2
  522. package/src/components/ImageGallery/ImageGallery.tsx +14 -16
  523. package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +0 -8
  524. package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +25 -21
  525. package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +3 -1
  526. package/src/components/ImageGallery/components/types.ts +0 -3
  527. package/src/components/Message/Message.tsx +11 -32
  528. package/src/components/Message/MessageItemView/MessageBubble.tsx +11 -7
  529. package/src/components/Message/MessageItemView/MessageContent.tsx +14 -47
  530. package/src/components/Message/MessageItemView/MessageDeleted.tsx +3 -9
  531. package/src/components/Message/MessageItemView/MessageFooter.tsx +2 -14
  532. package/src/components/Message/MessageItemView/MessageHeader.tsx +11 -29
  533. package/src/components/Message/MessageItemView/MessageItemView.tsx +10 -42
  534. package/src/components/Message/MessageItemView/MessageReplies.tsx +2 -8
  535. package/src/components/Message/MessageItemView/MessageTextContainer.tsx +4 -8
  536. package/src/components/Message/MessageItemView/MessageWrapper.tsx +4 -9
  537. package/src/components/Message/MessageItemView/ReactionList/ReactionListBottom.tsx +4 -12
  538. package/src/components/Message/MessageItemView/ReactionList/ReactionListTop.tsx +4 -20
  539. package/src/components/Message/MessageItemView/__tests__/MessageContent.test.js +47 -30
  540. package/src/components/Message/MessageItemView/__tests__/MessageItemView.test.js +16 -7
  541. package/src/components/Message/MessageItemView/__tests__/MessageTextContainer.test.tsx +8 -4
  542. package/src/components/MessageInput/MessageComposer.tsx +16 -76
  543. package/src/components/MessageInput/MessageInputHeaderView.tsx +3 -3
  544. package/src/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.tsx +7 -35
  545. package/src/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.tsx +2 -2
  546. package/src/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.tsx +2 -2
  547. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx +6 -4
  548. package/src/components/MessageInput/components/InputButtons/index.tsx +4 -5
  549. package/src/components/MessageInput/components/LinkPreviewList.tsx +3 -2
  550. package/src/components/MessageInput/components/OutputButtons/index.tsx +4 -23
  551. package/src/components/MessageList/MessageFlashList.tsx +13 -57
  552. package/src/components/MessageList/MessageList.tsx +15 -57
  553. package/src/components/MessageList/StickyHeader.tsx +4 -3
  554. package/src/components/MessageMenu/MessageActionList.tsx +4 -3
  555. package/src/components/MessageMenu/MessageMenu.tsx +35 -47
  556. package/src/components/MessageMenu/MessageUserReactions.tsx +7 -27
  557. package/src/components/MessageMenu/MessageUserReactionsItem.tsx +3 -6
  558. package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +12 -11
  559. package/src/components/Poll/CreatePollContent.tsx +3 -4
  560. package/src/components/Poll/Poll.tsx +22 -24
  561. package/src/components/Poll/components/PollAnswersList.tsx +9 -11
  562. package/src/components/Poll/components/PollOption.tsx +9 -11
  563. package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +10 -11
  564. package/src/components/Poll/components/PollResults/PollResults.tsx +9 -15
  565. package/src/components/Reply/Reply.tsx +18 -5
  566. package/src/components/Thread/Thread.tsx +3 -18
  567. package/src/components/Thread/components/ThreadFooterComponent.tsx +10 -11
  568. package/src/components/ThreadList/ThreadList.tsx +14 -22
  569. package/src/components/ThreadList/ThreadListItem.tsx +6 -11
  570. package/src/components/ui/Avatar/Avatar.tsx +2 -2
  571. package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +0 -15
  572. package/src/contexts/channelContext/ChannelContext.tsx +0 -24
  573. package/src/contexts/channelsContext/ChannelsContext.tsx +0 -113
  574. package/src/contexts/chatContext/ChatContext.tsx +0 -5
  575. package/src/contexts/componentsContext/ComponentsContext.tsx +62 -0
  576. package/src/contexts/componentsContext/PLAN.md +148 -0
  577. package/src/contexts/componentsContext/__tests__/defaultComponents.test.ts +44 -0
  578. package/src/contexts/componentsContext/defaultComponents.ts +332 -0
  579. package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +0 -8
  580. package/src/contexts/imageGalleryContext/ImageGalleryContextBase.tsx +0 -10
  581. package/src/contexts/index.ts +1 -0
  582. package/src/contexts/messageInputContext/MessageInputContext.tsx +0 -185
  583. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +1 -75
  584. package/src/contexts/messagesContext/MessagesContext.tsx +3 -358
  585. package/src/contexts/overlayContext/MessageOverlayHostLayer.tsx +5 -7
  586. package/src/contexts/overlayContext/OverlayContext.tsx +0 -4
  587. package/src/contexts/overlayContext/OverlayProvider.tsx +1 -2
  588. package/src/contexts/overlayContext/__tests__/MessageOverlayHostLayer.test.tsx +21 -6
  589. package/src/contexts/threadsContext/ThreadsContext.tsx +0 -9
  590. package/src/version.json +1 -1
@@ -0,0 +1,332 @@
1
+ import React from 'react';
2
+ import { Image } from 'react-native';
3
+
4
+ import { Attachment } from '../../components/Attachment/Attachment';
5
+ import { AudioAttachment } from '../../components/Attachment/Audio';
6
+ import { FileAttachment } from '../../components/Attachment/FileAttachment';
7
+ import { FileAttachmentGroup } from '../../components/Attachment/FileAttachmentGroup';
8
+ import { FileIcon } from '../../components/Attachment/FileIcon';
9
+ import { FilePreview } from '../../components/Attachment/FilePreview';
10
+ import { Gallery } from '../../components/Attachment/Gallery';
11
+ import { Giphy } from '../../components/Attachment/Giphy';
12
+ import { ImageLoadingFailedIndicator } from '../../components/Attachment/ImageLoadingFailedIndicator';
13
+ import { ImageLoadingIndicator } from '../../components/Attachment/ImageLoadingIndicator';
14
+ import { UnsupportedAttachment } from '../../components/Attachment/UnsupportedAttachment';
15
+ import { URLPreview } from '../../components/Attachment/UrlPreview';
16
+ import { URLPreviewCompact } from '../../components/Attachment/UrlPreview/URLPreviewCompact';
17
+ import { VideoThumbnail } from '../../components/Attachment/VideoThumbnail';
18
+ import { AttachmentPickerContent } from '../../components/AttachmentPicker/components/AttachmentPickerContent';
19
+ import { AttachmentPickerSelectionBar } from '../../components/AttachmentPicker/components/AttachmentPickerSelectionBar';
20
+ import { ImageOverlaySelectedComponent } from '../../components/AttachmentPicker/components/ImageOverlaySelectedComponent';
21
+ import { AutoCompleteSuggestionHeader } from '../../components/AutoCompleteInput/AutoCompleteSuggestionHeader';
22
+ import { AutoCompleteSuggestionItem } from '../../components/AutoCompleteInput/AutoCompleteSuggestionItem';
23
+ import { AutoCompleteSuggestionList } from '../../components/AutoCompleteInput/AutoCompleteSuggestionList';
24
+ import { InputView } from '../../components/AutoCompleteInput/InputView';
25
+ import { ChannelListFooterLoadingIndicator } from '../../components/ChannelList/ChannelListFooterLoadingIndicator';
26
+ import { ChannelListHeaderErrorIndicator } from '../../components/ChannelList/ChannelListHeaderErrorIndicator';
27
+ import { ChannelListHeaderNetworkDownIndicator } from '../../components/ChannelList/ChannelListHeaderNetworkDownIndicator';
28
+ import { ChannelListLoadingIndicator } from '../../components/ChannelList/ChannelListLoadingIndicator';
29
+ import { Skeleton } from '../../components/ChannelList/Skeleton';
30
+ import { ChannelDetailsBottomSheet } from '../../components/ChannelPreview/ChannelDetailsBottomSheet';
31
+ import { ChannelDetailsHeader } from '../../components/ChannelPreview/ChannelDetailsBottomSheet';
32
+ import { ChannelLastMessagePreview } from '../../components/ChannelPreview/ChannelLastMessagePreview';
33
+ import { ChannelMessagePreviewDeliveryStatus } from '../../components/ChannelPreview/ChannelMessagePreviewDeliveryStatus';
34
+ import { ChannelPreviewMessage } from '../../components/ChannelPreview/ChannelPreviewMessage';
35
+ import { ChannelPreviewMutedStatus } from '../../components/ChannelPreview/ChannelPreviewMutedStatus';
36
+ import { ChannelPreviewStatus } from '../../components/ChannelPreview/ChannelPreviewStatus';
37
+ import { ChannelPreviewTitle } from '../../components/ChannelPreview/ChannelPreviewTitle';
38
+ import { ChannelPreviewTypingIndicator } from '../../components/ChannelPreview/ChannelPreviewTypingIndicator';
39
+ import { ChannelPreviewUnreadCount } from '../../components/ChannelPreview/ChannelPreviewUnreadCount';
40
+ import { ChannelPreviewView } from '../../components/ChannelPreview/ChannelPreviewView';
41
+ import { ImageGalleryFooter } from '../../components/ImageGallery/components/ImageGalleryFooter';
42
+ import { ImageGalleryHeader } from '../../components/ImageGallery/components/ImageGalleryHeader';
43
+ import { ImageGalleryVideoControl } from '../../components/ImageGallery/components/ImageGalleryVideoControl';
44
+ import { ImageGalleryGrid } from '../../components/ImageGallery/components/ImageGrid';
45
+ import { EmptyStateIndicator } from '../../components/Indicators/EmptyStateIndicator';
46
+ import { LoadingErrorIndicator } from '../../components/Indicators/LoadingErrorIndicator';
47
+ import { LoadingIndicator } from '../../components/Indicators/LoadingIndicator';
48
+ import { KeyboardCompatibleView } from '../../components/KeyboardCompatibleView/KeyboardControllerAvoidingView';
49
+ import { Message } from '../../components/Message/Message';
50
+ import { MessagePinnedHeader } from '../../components/Message/MessageItemView/Headers/MessagePinnedHeader';
51
+ import { MessageReminderHeader } from '../../components/Message/MessageItemView/Headers/MessageReminderHeader';
52
+ import { MessageSavedForLaterHeader } from '../../components/Message/MessageItemView/Headers/MessageSavedForLaterHeader';
53
+ import { SentToChannelHeader } from '../../components/Message/MessageItemView/Headers/SentToChannelHeader';
54
+ import { MessageAuthor } from '../../components/Message/MessageItemView/MessageAuthor';
55
+ import { MessageBlocked } from '../../components/Message/MessageItemView/MessageBlocked';
56
+ import { MessageBounce } from '../../components/Message/MessageItemView/MessageBounce';
57
+ import { MessageContent } from '../../components/Message/MessageItemView/MessageContent';
58
+ import { MessageDeleted } from '../../components/Message/MessageItemView/MessageDeleted';
59
+ import { MessageError } from '../../components/Message/MessageItemView/MessageError';
60
+ import { MessageFooter } from '../../components/Message/MessageItemView/MessageFooter';
61
+ import { MessageHeader } from '../../components/Message/MessageItemView/MessageHeader';
62
+ import { MessageItemView } from '../../components/Message/MessageItemView/MessageItemView';
63
+ import { MessageReplies } from '../../components/Message/MessageItemView/MessageReplies';
64
+ import { MessageRepliesAvatars } from '../../components/Message/MessageItemView/MessageRepliesAvatars';
65
+ import { MessageStatus } from '../../components/Message/MessageItemView/MessageStatus';
66
+ import { MessageSwipeContent } from '../../components/Message/MessageItemView/MessageSwipeContent';
67
+ import { MessageTimestamp } from '../../components/Message/MessageItemView/MessageTimestamp';
68
+ import { ReactionListBottom } from '../../components/Message/MessageItemView/ReactionList/ReactionListBottom';
69
+ import { ReactionListClustered } from '../../components/Message/MessageItemView/ReactionList/ReactionListClustered';
70
+ import {
71
+ ReactionListCountItem,
72
+ ReactionListItem,
73
+ } from '../../components/Message/MessageItemView/ReactionList/ReactionListItem';
74
+ import { ReactionListItemWrapper } from '../../components/Message/MessageItemView/ReactionList/ReactionListItemWrapper';
75
+ import { ReactionListTop } from '../../components/Message/MessageItemView/ReactionList/ReactionListTop';
76
+ import { StreamingMessageView } from '../../components/Message/MessageItemView/StreamingMessageView';
77
+ import { AttachmentUploadPreviewList } from '../../components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList';
78
+ import {
79
+ FileUploadInProgressIndicator,
80
+ FileUploadNotSupportedIndicator,
81
+ FileUploadRetryIndicator,
82
+ ImageUploadInProgressIndicator,
83
+ ImageUploadNotSupportedIndicator,
84
+ ImageUploadRetryIndicator,
85
+ } from '../../components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator';
86
+ import { AudioAttachmentUploadPreview } from '../../components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview';
87
+ import { FileAttachmentUploadPreview } from '../../components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview';
88
+ import { ImageAttachmentUploadPreview } from '../../components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview';
89
+ import { VideoAttachmentUploadPreview } from '../../components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview';
90
+ import { AudioRecorder } from '../../components/MessageInput/components/AudioRecorder/AudioRecorder';
91
+ import { AudioRecordingButton } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingButton';
92
+ import { AudioRecordingInProgress } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingInProgress';
93
+ import { AudioRecordingLockIndicator } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator';
94
+ import { AudioRecordingPreview } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingPreview';
95
+ import { AudioRecordingWaveform } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingWaveform';
96
+ import { InputButtons } from '../../components/MessageInput/components/InputButtons';
97
+ import { AttachButton } from '../../components/MessageInput/components/InputButtons/AttachButton';
98
+ import { CooldownTimer } from '../../components/MessageInput/components/OutputButtons/CooldownTimer';
99
+ import { SendButton } from '../../components/MessageInput/components/OutputButtons/SendButton';
100
+ import { MessageComposer } from '../../components/MessageInput/MessageComposer';
101
+ import { MessageComposerLeadingView } from '../../components/MessageInput/MessageComposerLeadingView';
102
+ import { MessageComposerTrailingView } from '../../components/MessageInput/MessageComposerTrailingView';
103
+ import { MessageInputFooterView } from '../../components/MessageInput/MessageInputFooterView';
104
+ import { MessageInputHeaderView } from '../../components/MessageInput/MessageInputHeaderView';
105
+ import { MessageInputLeadingView } from '../../components/MessageInput/MessageInputLeadingView';
106
+ import { MessageInputTrailingView } from '../../components/MessageInput/MessageInputTrailingView';
107
+ import { SendMessageDisallowedIndicator } from '../../components/MessageInput/SendMessageDisallowedIndicator';
108
+ import { ShowThreadMessageInChannelButton } from '../../components/MessageInput/ShowThreadMessageInChannelButton';
109
+ import { StopMessageStreamingButton } from '../../components/MessageInput/StopMessageStreamingButton';
110
+ import { DateHeader } from '../../components/MessageList/DateHeader';
111
+ import { InlineDateSeparator } from '../../components/MessageList/InlineDateSeparator';
112
+ import { InlineUnreadIndicator } from '../../components/MessageList/InlineUnreadIndicator';
113
+ import { MessageList } from '../../components/MessageList/MessageList';
114
+ import { MessageSystem } from '../../components/MessageList/MessageSystem';
115
+ import { NetworkDownIndicator } from '../../components/MessageList/NetworkDownIndicator';
116
+ import { ScrollToBottomButton } from '../../components/MessageList/ScrollToBottomButton';
117
+ import { StickyHeader } from '../../components/MessageList/StickyHeader';
118
+ import { TypingIndicator } from '../../components/MessageList/TypingIndicator';
119
+ import { TypingIndicatorContainer } from '../../components/MessageList/TypingIndicatorContainer';
120
+ import { UnreadMessagesNotification } from '../../components/MessageList/UnreadMessagesNotification';
121
+ import { MessageActionList } from '../../components/MessageMenu/MessageActionList';
122
+ import { MessageActionListItem } from '../../components/MessageMenu/MessageActionListItem';
123
+ import { MessageMenu } from '../../components/MessageMenu/MessageMenu';
124
+ import { MessageReactionPicker } from '../../components/MessageMenu/MessageReactionPicker';
125
+ import { MessageUserReactions } from '../../components/MessageMenu/MessageUserReactions';
126
+ import { MessageUserReactionsAvatar } from '../../components/MessageMenu/MessageUserReactionsAvatar';
127
+ import { MessageUserReactionsItem } from '../../components/MessageMenu/MessageUserReactionsItem';
128
+ import { PollAnswersListContent } from '../../components/Poll/components/PollAnswersList';
129
+ import { PollButtons } from '../../components/Poll/components/PollButtons';
130
+ import { PollAllOptionsContent } from '../../components/Poll/components/PollOption';
131
+ import { PollOptionFullResultsContent } from '../../components/Poll/components/PollResults/PollOptionFullResults';
132
+ import { PollResultsContent } from '../../components/Poll/components/PollResults/PollResults';
133
+ import { PollHeader } from '../../components/Poll/Poll';
134
+ import { Reply } from '../../components/Reply/Reply';
135
+ import {
136
+ DefaultThreadListComponent as ThreadListComponent,
137
+ DefaultThreadListEmptyPlaceholder,
138
+ DefaultThreadListLoadingIndicator,
139
+ DefaultThreadListLoadingNextIndicator,
140
+ } from '../../components/ThreadList/ThreadList';
141
+ import { ThreadListItemComponent as ThreadListItem } from '../../components/ThreadList/ThreadListItem';
142
+ import { ThreadListItemMessagePreview } from '../../components/ThreadList/ThreadListItemMessagePreview';
143
+ import { ThreadListUnreadBanner } from '../../components/ThreadList/ThreadListUnreadBanner';
144
+ import { ThreadMessagePreviewDeliveryStatus } from '../../components/ThreadList/ThreadMessagePreviewDeliveryStatus';
145
+ import { ChannelAvatar } from '../../components/ui/Avatar/ChannelAvatar';
146
+ import { DefaultMessageOverlayBackground } from '../../contexts/overlayContext/MessageOverlayHostLayer';
147
+
148
+ /**
149
+ * All default component implementations used across the SDK.
150
+ * These are the components used when no overrides are provided via WithComponents.
151
+ */
152
+ export const DEFAULT_COMPONENTS = {
153
+ Attachment,
154
+ AttachButton,
155
+ AttachmentPickerContent,
156
+ AttachmentPickerSelectionBar,
157
+ AttachmentUploadPreviewList,
158
+ AudioAttachment,
159
+ AudioAttachmentUploadPreview,
160
+ AudioRecorder,
161
+ AudioRecordingInProgress,
162
+ AudioRecordingLockIndicator,
163
+ AudioRecordingPreview,
164
+ AudioRecordingWaveform,
165
+ AutoCompleteSuggestionHeader,
166
+ AutoCompleteSuggestionItem,
167
+ AutoCompleteSuggestionList,
168
+ ChannelDetailsBottomSheet,
169
+ CooldownTimer,
170
+ DateHeader,
171
+ EmptyStateIndicator,
172
+ FileAttachment,
173
+ FileAttachmentGroup,
174
+ FileAttachmentIcon: FileIcon,
175
+ FileAttachmentUploadPreview,
176
+ FileUploadInProgressIndicator,
177
+ FileUploadNotSupportedIndicator,
178
+ FileUploadRetryIndicator,
179
+ FilePreview,
180
+ FooterLoadingIndicator: ChannelListFooterLoadingIndicator,
181
+ Gallery,
182
+ Giphy,
183
+ HeaderErrorIndicator: ChannelListHeaderErrorIndicator,
184
+ HeaderNetworkDownIndicator: ChannelListHeaderNetworkDownIndicator,
185
+ ImageAttachmentUploadPreview,
186
+ ImageLoadingFailedIndicator,
187
+ ImageLoadingIndicator,
188
+ ImageOverlaySelectedComponent,
189
+ ImageUploadInProgressIndicator,
190
+ ImageUploadNotSupportedIndicator,
191
+ ImageUploadRetryIndicator,
192
+ InlineDateSeparator,
193
+ InlineUnreadIndicator,
194
+ InputButtons,
195
+ InputView,
196
+ KeyboardCompatibleView,
197
+ LoadingErrorIndicator,
198
+ ChannelListLoadingIndicator,
199
+ MessageListLoadingIndicator: LoadingIndicator,
200
+ Message,
201
+ MessageActionList,
202
+ MessageActionListItem,
203
+ MessageAuthor,
204
+ MessageBlocked,
205
+ MessageBounce,
206
+ MessageComposerLeadingView,
207
+ MessageComposerTrailingView,
208
+ MessageContent,
209
+ MessageDeleted,
210
+ MessageError,
211
+ MessageFooter,
212
+ MessageHeader,
213
+ MessageInputFooterView,
214
+ MessageInputHeaderView,
215
+ MessageInputLeadingView,
216
+ MessageInputTrailingView,
217
+ MessageItemView,
218
+ MessageList,
219
+ MessageMenu,
220
+ MessagePinnedHeader,
221
+ MessageReactionPicker,
222
+ MessageReminderHeader,
223
+ MessageReplies,
224
+ MessageRepliesAvatars,
225
+ MessageSavedForLaterHeader,
226
+ MessageStatus,
227
+ MessageSwipeContent,
228
+ MessageSystem,
229
+ MessageTimestamp,
230
+ MessageUserReactions,
231
+ MessageUserReactionsAvatar,
232
+ MessageUserReactionsItem,
233
+ NetworkDownIndicator,
234
+ Preview: ChannelPreviewView,
235
+ PreviewAvatar: ChannelAvatar,
236
+ PreviewLastMessage: ChannelLastMessagePreview,
237
+ PreviewMessage: ChannelPreviewMessage,
238
+ PreviewMessageDeliveryStatus: ChannelMessagePreviewDeliveryStatus,
239
+ PreviewMutedStatus: ChannelPreviewMutedStatus,
240
+ PreviewStatus: ChannelPreviewStatus,
241
+ PreviewTitle: ChannelPreviewTitle,
242
+ PreviewTypingIndicator: ChannelPreviewTypingIndicator,
243
+ PreviewUnreadCount: ChannelPreviewUnreadCount,
244
+ ReactionListBottom,
245
+ ReactionListClustered,
246
+ ReactionListCountItem,
247
+ ReactionListItem,
248
+ ReactionListItemWrapper,
249
+ ReactionListTop,
250
+ Reply,
251
+ ScrollToBottomButton,
252
+ SendButton,
253
+ SendMessageDisallowedIndicator,
254
+ SentToChannelHeader,
255
+ ShowThreadMessageInChannelButton,
256
+ Skeleton,
257
+ StartAudioRecordingButton: AudioRecordingButton,
258
+ StickyHeader,
259
+ StopMessageStreamingButton,
260
+ StreamingMessageView,
261
+ TypingIndicator,
262
+ TypingIndicatorContainer,
263
+ UnreadMessagesNotification,
264
+ UnsupportedAttachment,
265
+ UrlPreview: URLPreview,
266
+ URLPreviewCompact,
267
+ VideoAttachmentUploadPreview,
268
+ VideoThumbnail,
269
+
270
+ // Channel details
271
+ ChannelDetailsHeader,
272
+
273
+ // Thread
274
+ ThreadMessageComposer: MessageComposer,
275
+ ThreadListComponent,
276
+ ThreadListEmptyPlaceholder: DefaultThreadListEmptyPlaceholder,
277
+ ThreadListItem,
278
+ ThreadListItemMessagePreview,
279
+ ThreadListLoadingIndicator: DefaultThreadListLoadingIndicator,
280
+ ThreadListLoadingMoreIndicator: DefaultThreadListLoadingNextIndicator,
281
+ ThreadListUnreadBanner,
282
+ ThreadMessagePreviewDeliveryStatus,
283
+
284
+ // Poll
285
+ PollButtons,
286
+ PollHeader,
287
+ PollAllOptionsContent,
288
+ PollAnswersListContent,
289
+ PollResultsContent,
290
+ PollOptionFullResultsContent,
291
+
292
+ // ImageGallery
293
+ ImageGalleryFooter,
294
+ ImageGalleryGrid,
295
+ ImageGalleryHeader,
296
+ ImageGalleryVideoControls: ImageGalleryVideoControl,
297
+
298
+ // Overlay
299
+ MessageOverlayBackground: DefaultMessageOverlayBackground,
300
+
301
+ // Image
302
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
303
+ ImageComponent: Image as React.ComponentType<any>,
304
+
305
+ // Optional overrides (no defaults — undefined unless user provides via WithComponents)
306
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
307
+ AttachmentPickerIOSSelectMorePhotos: undefined as React.ComponentType<any> | undefined,
308
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
309
+ ChatLoadingIndicator: undefined as React.ComponentType<any> | null | undefined,
310
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
311
+ CreatePollContent: undefined as React.ComponentType<any> | undefined,
312
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
313
+ Input: undefined as React.ComponentType<any> | undefined,
314
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
315
+ ListHeaderComponent: undefined as React.ComponentType<any> | undefined,
316
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
317
+ MessageContentBottomView: undefined as React.ComponentType<any> | undefined,
318
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
319
+ MessageContentLeadingView: undefined as React.ComponentType<any> | undefined,
320
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
321
+ MessageContentTopView: undefined as React.ComponentType<any> | undefined,
322
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
323
+ MessageContentTrailingView: undefined as React.ComponentType<any> | undefined,
324
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
325
+ MessageLocation: undefined as React.ComponentType<any> | undefined,
326
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
327
+ MessageSpacer: undefined as React.ComponentType<any> | undefined,
328
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
329
+ MessageText: undefined as React.ComponentType<any> | undefined,
330
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
331
+ PollContent: undefined as React.ComponentType<any> | undefined,
332
+ };
@@ -7,10 +7,6 @@ import {
7
7
  useImageGalleryContext,
8
8
  } from './ImageGalleryContextBase';
9
9
 
10
- import { ImageGalleryFooter as ImageGalleryFooterDefault } from '../../components/ImageGallery/components/ImageGalleryFooter';
11
- import { ImageGalleryHeader as ImageGalleryHeaderDefault } from '../../components/ImageGallery/components/ImageGalleryHeader';
12
- import { ImageGalleryVideoControl as ImageGalleryVideoControlDefault } from '../../components/ImageGallery/components/ImageGalleryVideoControl';
13
- import { ImageGalleryGrid as ImageGalleryGridDefault } from '../../components/ImageGallery/components/ImageGrid';
14
10
  import { ImageGalleryStateStore } from '../../state-store/image-gallery-state-store';
15
11
 
16
12
  export const ImageGalleryProvider = ({
@@ -30,10 +26,6 @@ export const ImageGalleryProvider = ({
30
26
  () => ({
31
27
  autoPlayVideo: value?.autoPlayVideo,
32
28
  imageGalleryStateStore,
33
- ImageGalleryHeader: ImageGalleryHeaderDefault,
34
- ImageGalleryFooter: ImageGalleryFooterDefault,
35
- ImageGalleryVideoControls: ImageGalleryVideoControlDefault,
36
- ImageGalleryGrid: ImageGalleryGridDefault,
37
29
  ...value,
38
30
  }),
39
31
  [imageGalleryStateStore, value],
@@ -2,12 +2,6 @@ import React, { useContext } from 'react';
2
2
 
3
3
  import type { Attachment } from 'stream-chat';
4
4
 
5
- import type {
6
- ImageGalleryFooterProps,
7
- ImageGalleryGridProps,
8
- ImageGalleryHeaderProps,
9
- ImageGalleryVideoControlProps,
10
- } from '../../components/ImageGallery/components/types';
11
5
  import { ImageGalleryStateStore } from '../../state-store/image-gallery-state-store';
12
6
  import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
13
7
 
@@ -17,10 +11,6 @@ export type ImageGalleryProviderProps = {
17
11
  autoPlayVideo?: boolean;
18
12
  giphyVersion?: keyof NonNullable<Attachment['giphy']>;
19
13
  numberOfImageGalleryGridColumns?: number;
20
- ImageGalleryHeader?: React.ComponentType<ImageGalleryHeaderProps>;
21
- ImageGalleryFooter?: React.ComponentType<ImageGalleryFooterProps>;
22
- ImageGalleryVideoControls?: React.ComponentType<ImageGalleryVideoControlProps>;
23
- ImageGalleryGrid?: React.ComponentType<ImageGalleryGridProps>;
24
14
  };
25
15
 
26
16
  export type ImageGalleryContextValue = ImageGalleryProviderProps & {
@@ -1,4 +1,5 @@
1
1
  export * from './attachmentPickerContext/AttachmentPickerContext';
2
+ export * from './componentsContext/ComponentsContext';
2
3
  export * from './bottomSheetContext/BottomSheetContext';
3
4
  export * from './channelContext/ChannelContext';
4
5
  export * from './channelsContext/ChannelsContext';
@@ -18,40 +18,14 @@ import {
18
18
  Message as StreamMessage,
19
19
  UpdateMessageOptions,
20
20
  UploadRequestFn,
21
- UserResponse,
22
21
  } from 'stream-chat';
23
22
 
24
23
  import { useCreateMessageInputContext } from './hooks/useCreateMessageInputContext';
25
24
  import { useMessageComposer } from './hooks/useMessageComposer';
26
25
 
27
- import {
28
- AutoCompleteSuggestionHeaderProps,
29
- AutoCompleteSuggestionItemProps,
30
- AutoCompleteSuggestionListProps,
31
- FileUploadNotSupportedIndicatorProps,
32
- FileUploadRetryIndicatorProps,
33
- ImageUploadRetryIndicatorProps,
34
- PollContentProps,
35
- StopMessageStreamingButtonProps,
36
- } from '../../components';
37
- import type { InputViewProps } from '../../components/AutoCompleteInput/InputView';
38
26
  import { dismissKeyboard } from '../../components/KeyboardCompatibleView/KeyboardControllerAvoidingView';
39
27
  import { parseLinksFromText } from '../../components/Message/MessageItemView/utils/parseLinks';
40
- import { AttachmentUploadPreviewListProps } from '../../components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList';
41
- import { AudioAttachmentUploadPreviewProps } from '../../components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview';
42
- import { FileAttachmentUploadPreviewProps } from '../../components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview';
43
- import { ImageAttachmentUploadPreviewProps } from '../../components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview';
44
- import { VideoAttachmentUploadPreviewProps } from '../../components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview';
45
- import type { AudioRecorderProps } from '../../components/MessageInput/components/AudioRecorder/AudioRecorder';
46
- import type { AudioRecordingButtonProps } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingButton';
47
- import type { AudioRecordingInProgressProps } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingInProgress';
48
- import type { AudioRecordingLockIndicatorProps } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator';
49
- import type { AudioRecordingWaveformProps } from '../../components/MessageInput/components/AudioRecorder/AudioRecordingWaveform';
50
- import type { AttachButtonProps } from '../../components/MessageInput/components/InputButtons/AttachButton';
51
- import type { InputButtonsProps } from '../../components/MessageInput/components/InputButtons/index';
52
- import type { SendButtonProps } from '../../components/MessageInput/components/OutputButtons/SendButton';
53
28
  import { useAudioRecorder } from '../../components/MessageInput/hooks/useAudioRecorder';
54
- import type { MessageComposerProps } from '../../components/MessageInput/MessageComposer';
55
29
  import { useStableCallback } from '../../hooks/useStableCallback';
56
30
  import {
57
31
  createAttachmentsCompositionMiddleware,
@@ -125,69 +99,16 @@ export type InputMessageInputContextValue = {
125
99
  * message.
126
100
  */
127
101
  asyncMessagesSlideToCancelDistance: number;
128
- /**
129
- * Custom UI component for attach button.
130
- *
131
- * Defaults to and accepts same props as:
132
- * [AttachButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/attach-button/)
133
- */
134
- AttachButton: React.ComponentType<AttachButtonProps>;
135
- /**
136
- * Custom UI component for audio recorder UI.
137
- *
138
- * Defaults to and accepts same props as:
139
- * [AudioRecorder](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/AudioRecorder.tsx)
140
- */
141
- AudioRecorder: React.ComponentType<AudioRecorderProps>;
142
102
  /**
143
103
  * Controls whether the async audio feature is enabled.
144
104
  */
145
105
  audioRecordingEnabled: boolean;
146
- /**
147
- * Custom UI component to render audio recording in progress.
148
- *
149
- * **Default**
150
- * [AudioRecordingInProgress](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx)
151
- */
152
- AudioRecordingInProgress: React.ComponentType<AudioRecordingInProgressProps>;
153
- /**
154
- * Custom UI component for audio recording lock indicator.
155
- *
156
- * Defaults to and accepts same props as:
157
- * [AudioRecordingLockIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx)
158
- */
159
- AudioRecordingLockIndicator: React.ComponentType<AudioRecordingLockIndicatorProps>;
160
- /**
161
- * Custom UI component to render audio recording preview.
162
- *
163
- * **Default**
164
- * [AudioRecordingPreview](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.tsx)
165
- */
166
- AudioRecordingPreview: React.ComponentType;
167
- /**
168
- * Custom UI component to render audio recording waveform.
169
- *
170
- * **Default**
171
- * [AudioRecordingWaveform](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.tsx)
172
- */
173
- AudioRecordingWaveform: React.ComponentType<AudioRecordingWaveformProps>;
174
-
175
- AutoCompleteSuggestionHeader: React.ComponentType<AutoCompleteSuggestionHeaderProps>;
176
- AutoCompleteSuggestionItem: React.ComponentType<AutoCompleteSuggestionItemProps>;
177
- AutoCompleteSuggestionList: React.ComponentType<AutoCompleteSuggestionListProps>;
178
106
  /**
179
107
  * Height of the image picker bottom sheet when opened.
180
108
  * @type number
181
109
  * @default 40% of window height
182
110
  */
183
111
  attachmentPickerBottomSheetHeight: number;
184
- /**
185
- * Custom UI component for AttachmentPickerSelectionBar
186
- *
187
- * **Default: **
188
- * [AttachmentPickerSelectionBar](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/components/AttachmentPicker/components/AttachmentPickerSelectionBar.tsx)
189
- */
190
- AttachmentPickerSelectionBar: React.ComponentType;
191
112
  /**
192
113
  * Height of the attachment selection bar displayed on the attachment picker.
193
114
  * @type number
@@ -196,28 +117,6 @@ export type InputMessageInputContextValue = {
196
117
  */
197
118
  attachmentSelectionBarHeight: number;
198
119
 
199
- AttachmentUploadPreviewList: React.ComponentType<AttachmentUploadPreviewListProps>;
200
- AudioAttachmentUploadPreview: React.ComponentType<AudioAttachmentUploadPreviewProps>;
201
- ImageAttachmentUploadPreview: React.ComponentType<ImageAttachmentUploadPreviewProps>;
202
- FileAttachmentUploadPreview: React.ComponentType<FileAttachmentUploadPreviewProps>;
203
- VideoAttachmentUploadPreview: React.ComponentType<VideoAttachmentUploadPreviewProps>;
204
-
205
- FileUploadInProgressIndicator: React.ComponentType;
206
- FileUploadRetryIndicator: React.ComponentType<FileUploadRetryIndicatorProps>;
207
- FileUploadNotSupportedIndicator: React.ComponentType<FileUploadNotSupportedIndicatorProps>;
208
- ImageUploadInProgressIndicator: React.ComponentType;
209
- ImageUploadRetryIndicator: React.ComponentType<ImageUploadRetryIndicatorProps>;
210
- ImageUploadNotSupportedIndicator: React.ComponentType;
211
-
212
- /**
213
- * Custom UI component to display the remaining cooldown a user will have to wait before
214
- * being allowed to send another message. This component is displayed in place of the
215
- * send button for the MessageComposer component.
216
- *
217
- * **default**
218
- * [CooldownTimer](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/CooldownTimer.tsx)
219
- */
220
- CooldownTimer: React.ComponentType;
221
120
  editMessage: (params: {
222
121
  localMessage: LocalMessage;
223
122
  options?: UpdateMessageOptions;
@@ -233,58 +132,11 @@ export type InputMessageInputContextValue = {
233
132
  /** When false, ImageSelectorIcon will be hidden */
234
133
  hasImagePicker: boolean;
235
134
 
236
- /**
237
- * Custom UI component for send button.
238
- *
239
- * Defaults to and accepts same props as:
240
- * [SendButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/send-button/)
241
- */
242
- SendButton: React.ComponentType<SendButtonProps>;
243
135
  sendMessage: (params: {
244
136
  localMessage: LocalMessage;
245
137
  message: StreamMessage;
246
138
  options?: SendMessageOptions;
247
139
  }) => Promise<void>;
248
- /**
249
- * Custom UI component to render checkbox with text ("Also send to channel") in Thread's input box.
250
- * When ticked, message will also be sent in parent channel.
251
- */
252
- ShowThreadMessageInChannelButton: React.ComponentType<{
253
- threadList?: boolean;
254
- }>;
255
- /**
256
- * Custom UI component to override leading side of composer container.
257
- */
258
- MessageComposerLeadingView: React.ComponentType;
259
- /**
260
- * Custom UI component to override trailing side of composer container.
261
- */
262
- MessageComposerTrailingView: React.ComponentType;
263
- /**
264
- * Custom UI component to override message input header content.
265
- */
266
- MessageInputHeaderView: React.ComponentType;
267
- /**
268
- * Custom UI component to override message input footer content.
269
- */
270
- MessageInputFooterView: React.ComponentType;
271
- /**
272
- * Custom UI component to override leading side of input row.
273
- */
274
- MessageInputLeadingView: React.ComponentType;
275
- /**
276
- * Custom UI component to override trailing side of input row.
277
- */
278
- MessageInputTrailingView: React.ComponentType;
279
-
280
- /**
281
- * Custom UI component for audio recording mic button.
282
- *
283
- * Defaults to and accepts same props as:
284
- * [AudioRecordingButton](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx)
285
- */
286
- StartAudioRecordingButton: React.ComponentType<AudioRecordingButtonProps>;
287
- StopMessageStreamingButton: React.ComponentType<StopMessageStreamingButtonProps> | null;
288
140
  /**
289
141
  * Additional props for underlying TextInput component. These props will be forwarded as it is to TextInput component.
290
142
  *
@@ -301,10 +153,6 @@ export type InputMessageInputContextValue = {
301
153
  */
302
154
  compressImageQuality?: number;
303
155
 
304
- /**
305
- * Override the entire content of the CreatePoll component. The component has full access to the useCreatePollContext() hook.
306
- * */
307
- CreatePollContent?: React.ComponentType<PollContentProps>;
308
156
  /**
309
157
  * Vertical gap between poll options in poll creation dialog.
310
158
  */
@@ -331,40 +179,7 @@ export type InputMessageInputContextValue = {
331
179
  */
332
180
  messageInputFloating: boolean;
333
181
 
334
- /**
335
- * Custom UI component for AutoCompleteInput.
336
- * Has access to all of [MessageInputContext](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/messageInputContext/MessageInputContext.tsx)
337
- */
338
- Input?: React.ComponentType<
339
- Omit<MessageComposerProps, 'Input'> &
340
- InputButtonsProps & {
341
- getUsers: () => UserResponse[];
342
- }
343
- >;
344
- /**
345
- * Custom UI component to override the combined input body view.
346
- * Defaults to
347
- * [InputView](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AutoCompleteInput/InputView.tsx)
348
- */
349
- InputView: React.ComponentType<InputViewProps>;
350
- /**
351
- * Custom UI component to override buttons on left side of input box
352
- * Defaults to
353
- * [InputButtons](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageInput/InputButtons.tsx),
354
- * which contain following components/buttons:
355
- *
356
- * - AttachButton
357
- * - CommandsButtom
358
- *
359
- * You have access to following prop functions:
360
- *
361
- * - closeAttachmentPicker
362
- * - openAttachmentPicker
363
- * - openCommandsPicker
364
- */
365
- InputButtons?: React.ComponentType<InputButtonsProps>;
366
182
  openPollCreationDialog?: ({ sendMessage }: Pick<LocalMessageInputContext, 'sendMessage'>) => void;
367
- SendMessageDisallowedIndicator?: React.ComponentType;
368
183
  /**
369
184
  * ref for input setter function
370
185
  *