stream-chat-react-native-core 7.0.0-rc.8 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/README.md +1 -1
  2. package/lib/commonjs/components/Attachment/AudioAttachment.js +19 -9
  3. package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
  4. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +3 -1
  5. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
  6. package/lib/commonjs/components/Attachment/Gallery.js +16 -3
  7. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  8. package/lib/commonjs/components/Attachment/ImageReloadIndicator.js.map +1 -1
  9. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +2 -2
  10. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  11. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +7 -24
  12. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  13. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +2 -4
  14. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  15. package/lib/commonjs/components/Channel/Channel.js +320 -310
  16. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  17. package/lib/commonjs/components/Channel/hooks/useChannelDataState.js.map +1 -1
  18. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +2 -0
  19. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  20. package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js +133 -147
  21. package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js.map +1 -1
  22. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  23. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js +8 -13
  24. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
  25. package/lib/commonjs/components/Message/Message.js +14 -7
  26. package/lib/commonjs/components/Message/Message.js.map +1 -1
  27. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  28. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +70 -54
  29. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  30. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +14 -6
  31. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  32. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  33. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  34. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +3 -1
  35. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  36. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  37. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  38. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +25 -39
  39. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  40. package/lib/commonjs/components/MessageInput/InputButtons.js +18 -15
  41. package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
  42. package/lib/commonjs/components/MessageInput/MessageInput.js +96 -74
  43. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  44. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +2 -1
  45. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
  46. package/lib/commonjs/components/MessageInput/hooks/useAudioController.js +4 -4
  47. package/lib/commonjs/components/MessageInput/hooks/useAudioController.js.map +1 -1
  48. package/lib/commonjs/components/MessageList/MessageList.js +281 -223
  49. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  50. package/lib/commonjs/components/MessageList/hooks/useMessageList.js +65 -48
  51. package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
  52. package/lib/commonjs/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
  53. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +1 -1
  54. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
  55. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  56. package/lib/commonjs/components/MessageList/utils/getReadState.js +20 -0
  57. package/lib/commonjs/components/MessageList/utils/getReadState.js.map +1 -0
  58. package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
  59. package/lib/commonjs/components/Poll/components/Button.js.map +1 -1
  60. package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
  61. package/lib/commonjs/components/Reply/Reply.js +2 -2
  62. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  63. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +24 -6
  64. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  65. package/lib/commonjs/components/ThreadList/ThreadListItem.js.map +1 -1
  66. package/lib/commonjs/components/UIComponents/BottomSheetModal.js +10 -6
  67. package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +1 -1
  68. package/lib/commonjs/components/index.js +15 -4
  69. package/lib/commonjs/components/index.js.map +1 -1
  70. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  71. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js +5 -1
  72. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
  73. package/lib/commonjs/contexts/debugContext/DebugContext.js.map +1 -1
  74. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  75. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  76. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +535 -523
  77. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  78. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +7 -6
  79. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  80. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +37 -41
  81. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  82. package/lib/commonjs/contexts/messageInputContext/utils/utils.js +4 -4
  83. package/lib/commonjs/contexts/messageInputContext/utils/utils.js.map +1 -1
  84. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  85. package/lib/commonjs/contexts/pollContext/pollContext.js.map +1 -1
  86. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +23 -14
  87. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  88. package/lib/commonjs/contexts/themeContext/utils/theme.js +2 -1
  89. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  90. package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
  91. package/lib/commonjs/contexts/threadsContext/ThreadListItemContext.js.map +1 -1
  92. package/lib/commonjs/hooks/index.js +22 -0
  93. package/lib/commonjs/hooks/index.js.map +1 -1
  94. package/lib/commonjs/hooks/useAudioPlayer.js +60 -69
  95. package/lib/commonjs/hooks/useAudioPlayer.js.map +1 -1
  96. package/lib/commonjs/hooks/useStableCallback.js +13 -0
  97. package/lib/commonjs/hooks/useStableCallback.js.map +1 -0
  98. package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
  99. package/lib/commonjs/i18n/en.json +3 -0
  100. package/lib/commonjs/i18n/es.json +3 -0
  101. package/lib/commonjs/i18n/fr.json +3 -0
  102. package/lib/commonjs/i18n/he.json +3 -0
  103. package/lib/commonjs/i18n/hi.json +2 -0
  104. package/lib/commonjs/i18n/it.json +3 -0
  105. package/lib/commonjs/i18n/ja.json +1 -0
  106. package/lib/commonjs/i18n/ko.json +1 -0
  107. package/lib/commonjs/i18n/nl.json +2 -0
  108. package/lib/commonjs/i18n/pt-br.json +3 -0
  109. package/lib/commonjs/i18n/ru.json +4 -0
  110. package/lib/commonjs/i18n/tr.json +2 -0
  111. package/lib/commonjs/mock-builders/api/channelMocks.js.map +1 -1
  112. package/lib/commonjs/native.js.map +1 -1
  113. package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
  114. package/lib/commonjs/types/types.js.map +1 -1
  115. package/lib/commonjs/utils/compressImage.js +1 -1
  116. package/lib/commonjs/utils/compressImage.js.map +1 -1
  117. package/lib/commonjs/utils/removeReservedFields.js.map +1 -1
  118. package/lib/commonjs/utils/utils.js +17 -4
  119. package/lib/commonjs/utils/utils.js.map +1 -1
  120. package/lib/commonjs/version.json +1 -1
  121. package/lib/module/components/Attachment/AudioAttachment.js +19 -9
  122. package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
  123. package/lib/module/components/Attachment/FileAttachmentGroup.js +3 -1
  124. package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
  125. package/lib/module/components/Attachment/Gallery.js +16 -3
  126. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  127. package/lib/module/components/Attachment/ImageReloadIndicator.js.map +1 -1
  128. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +2 -2
  129. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  130. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +7 -24
  131. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  132. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +2 -4
  133. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  134. package/lib/module/components/Channel/Channel.js +320 -310
  135. package/lib/module/components/Channel/Channel.js.map +1 -1
  136. package/lib/module/components/Channel/hooks/useChannelDataState.js.map +1 -1
  137. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +2 -0
  138. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  139. package/lib/module/components/Channel/hooks/useMessageListPagination.js +133 -147
  140. package/lib/module/components/Channel/hooks/useMessageListPagination.js.map +1 -1
  141. package/lib/module/components/Chat/Chat.js.map +1 -1
  142. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js +8 -13
  143. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
  144. package/lib/module/components/Message/Message.js +14 -7
  145. package/lib/module/components/Message/Message.js.map +1 -1
  146. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  147. package/lib/module/components/Message/MessageSimple/MessageSimple.js +70 -54
  148. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  149. package/lib/module/components/Message/MessageSimple/MessageStatus.js +14 -6
  150. package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  151. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  152. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  153. package/lib/module/components/Message/hooks/useCreateMessageContext.js +3 -1
  154. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  155. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  156. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  157. package/lib/module/components/MessageInput/FileUploadPreview.js +25 -39
  158. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  159. package/lib/module/components/MessageInput/InputButtons.js +18 -15
  160. package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
  161. package/lib/module/components/MessageInput/MessageInput.js +96 -74
  162. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  163. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +2 -1
  164. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
  165. package/lib/module/components/MessageInput/hooks/useAudioController.js +4 -4
  166. package/lib/module/components/MessageInput/hooks/useAudioController.js.map +1 -1
  167. package/lib/module/components/MessageList/MessageList.js +281 -223
  168. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  169. package/lib/module/components/MessageList/hooks/useMessageList.js +65 -48
  170. package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
  171. package/lib/module/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
  172. package/lib/module/components/MessageList/utils/getGroupStyles.js +1 -1
  173. package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
  174. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  175. package/lib/module/components/MessageList/utils/getReadState.js +20 -0
  176. package/lib/module/components/MessageList/utils/getReadState.js.map +1 -0
  177. package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
  178. package/lib/module/components/Poll/components/Button.js.map +1 -1
  179. package/lib/module/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
  180. package/lib/module/components/Reply/Reply.js +2 -2
  181. package/lib/module/components/Reply/Reply.js.map +1 -1
  182. package/lib/module/components/Thread/components/ThreadFooterComponent.js +24 -6
  183. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  184. package/lib/module/components/ThreadList/ThreadListItem.js.map +1 -1
  185. package/lib/module/components/UIComponents/BottomSheetModal.js +10 -6
  186. package/lib/module/components/UIComponents/BottomSheetModal.js.map +1 -1
  187. package/lib/module/components/index.js +15 -4
  188. package/lib/module/components/index.js.map +1 -1
  189. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  190. package/lib/module/contexts/channelsStateContext/useChannelState.js +5 -1
  191. package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
  192. package/lib/module/contexts/debugContext/DebugContext.js.map +1 -1
  193. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  194. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  195. package/lib/module/contexts/messageInputContext/MessageInputContext.js +535 -523
  196. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  197. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +7 -6
  198. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  199. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +37 -41
  200. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  201. package/lib/module/contexts/messageInputContext/utils/utils.js +4 -4
  202. package/lib/module/contexts/messageInputContext/utils/utils.js.map +1 -1
  203. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  204. package/lib/module/contexts/pollContext/pollContext.js.map +1 -1
  205. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +23 -14
  206. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  207. package/lib/module/contexts/themeContext/utils/theme.js +2 -1
  208. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  209. package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
  210. package/lib/module/contexts/threadsContext/ThreadListItemContext.js.map +1 -1
  211. package/lib/module/hooks/index.js +22 -0
  212. package/lib/module/hooks/index.js.map +1 -1
  213. package/lib/module/hooks/useAudioPlayer.js +60 -69
  214. package/lib/module/hooks/useAudioPlayer.js.map +1 -1
  215. package/lib/module/hooks/useStableCallback.js +13 -0
  216. package/lib/module/hooks/useStableCallback.js.map +1 -0
  217. package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
  218. package/lib/module/i18n/en.json +3 -0
  219. package/lib/module/i18n/es.json +3 -0
  220. package/lib/module/i18n/fr.json +3 -0
  221. package/lib/module/i18n/he.json +3 -0
  222. package/lib/module/i18n/hi.json +2 -0
  223. package/lib/module/i18n/it.json +3 -0
  224. package/lib/module/i18n/ja.json +1 -0
  225. package/lib/module/i18n/ko.json +1 -0
  226. package/lib/module/i18n/nl.json +2 -0
  227. package/lib/module/i18n/pt-br.json +3 -0
  228. package/lib/module/i18n/ru.json +4 -0
  229. package/lib/module/i18n/tr.json +2 -0
  230. package/lib/module/mock-builders/api/channelMocks.js.map +1 -1
  231. package/lib/module/native.js.map +1 -1
  232. package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
  233. package/lib/module/types/types.js.map +1 -1
  234. package/lib/module/utils/compressImage.js +1 -1
  235. package/lib/module/utils/compressImage.js.map +1 -1
  236. package/lib/module/utils/removeReservedFields.js.map +1 -1
  237. package/lib/module/utils/utils.js +17 -4
  238. package/lib/module/utils/utils.js.map +1 -1
  239. package/lib/module/version.json +1 -1
  240. package/lib/typescript/components/Attachment/AudioAttachment.d.ts +2 -2
  241. package/lib/typescript/components/Attachment/AudioAttachment.d.ts.map +1 -1
  242. package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts.map +1 -1
  243. package/lib/typescript/components/Attachment/Gallery.d.ts +3 -3
  244. package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
  245. package/lib/typescript/components/Attachment/ImageReloadIndicator.d.ts +4 -3
  246. package/lib/typescript/components/Attachment/ImageReloadIndicator.d.ts.map +1 -1
  247. package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -1
  248. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts +2 -2
  249. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts.map +1 -1
  250. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +2 -3
  251. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts.map +1 -1
  252. package/lib/typescript/components/Channel/Channel.d.ts +3 -4
  253. package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
  254. package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts +2 -3
  255. package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts.map +1 -1
  256. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
  257. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
  258. package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts +6 -6
  259. package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts.map +1 -1
  260. package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts +3 -3
  261. package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts.map +1 -1
  262. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewData.d.ts +1 -1
  263. package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +1 -1
  264. package/lib/typescript/components/Chat/Chat.d.ts +0 -9
  265. package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
  266. package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleView.d.ts +3 -0
  267. package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleView.d.ts.map +1 -1
  268. package/lib/typescript/components/Message/Message.d.ts +4 -5
  269. package/lib/typescript/components/Message/Message.d.ts.map +1 -1
  270. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +2 -3
  271. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts.map +1 -1
  272. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -1
  273. package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +1 -1
  274. package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts.map +1 -1
  275. package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts.map +1 -1
  276. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +2 -2
  277. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts.map +1 -1
  278. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
  279. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
  280. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts.map +1 -1
  281. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +2 -2
  282. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
  283. package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +2 -4
  284. package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts.map +1 -1
  285. package/lib/typescript/components/MessageInput/InputButtons.d.ts +1 -1
  286. package/lib/typescript/components/MessageInput/InputButtons.d.ts.map +1 -1
  287. package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -1
  288. package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
  289. package/lib/typescript/components/MessageInput/hooks/useAudioController.d.ts.map +1 -1
  290. package/lib/typescript/components/MessageList/MessageList.d.ts +4 -4
  291. package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
  292. package/lib/typescript/components/MessageList/MessageSystem.d.ts +2 -2
  293. package/lib/typescript/components/MessageList/MessageSystem.d.ts.map +1 -1
  294. package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +14 -9
  295. package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts.map +1 -1
  296. package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts +2 -2
  297. package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts.map +1 -1
  298. package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts.map +1 -1
  299. package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts +2 -2
  300. package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts.map +1 -1
  301. package/lib/typescript/components/MessageList/utils/getReadState.d.ts +9 -0
  302. package/lib/typescript/components/MessageList/utils/getReadState.d.ts.map +1 -0
  303. package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts +2 -3
  304. package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts.map +1 -1
  305. package/lib/typescript/components/Poll/components/Button.d.ts +2 -3
  306. package/lib/typescript/components/Poll/components/Button.d.ts.map +1 -1
  307. package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts +2 -3
  308. package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts.map +1 -1
  309. package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
  310. package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts.map +1 -1
  311. package/lib/typescript/components/ThreadList/ThreadListItem.d.ts.map +1 -1
  312. package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +1 -1
  313. package/lib/typescript/components/index.d.ts +2 -1
  314. package/lib/typescript/components/index.d.ts.map +1 -1
  315. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +3 -3
  316. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
  317. package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts.map +1 -1
  318. package/lib/typescript/contexts/debugContext/DebugContext.d.ts +2 -3
  319. package/lib/typescript/contexts/debugContext/DebugContext.d.ts.map +1 -1
  320. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +3 -3
  321. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -1
  322. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +6 -4
  323. package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
  324. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +13 -15
  325. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
  326. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
  327. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
  328. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +3 -3
  329. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts.map +1 -1
  330. package/lib/typescript/contexts/messageInputContext/utils/utils.d.ts +2 -2
  331. package/lib/typescript/contexts/messageInputContext/utils/utils.d.ts.map +1 -1
  332. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +25 -21
  333. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
  334. package/lib/typescript/contexts/pollContext/pollContext.d.ts +2 -3
  335. package/lib/typescript/contexts/pollContext/pollContext.d.ts.map +1 -1
  336. package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts.map +1 -1
  337. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +1 -0
  338. package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
  339. package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +4 -5
  340. package/lib/typescript/contexts/threadContext/ThreadContext.d.ts.map +1 -1
  341. package/lib/typescript/contexts/threadsContext/ThreadListItemContext.d.ts +3 -4
  342. package/lib/typescript/contexts/threadsContext/ThreadListItemContext.d.ts.map +1 -1
  343. package/lib/typescript/hooks/index.d.ts +2 -0
  344. package/lib/typescript/hooks/index.d.ts.map +1 -1
  345. package/lib/typescript/hooks/useAudioPlayer.d.ts.map +1 -1
  346. package/lib/typescript/hooks/useStableCallback.d.ts +26 -0
  347. package/lib/typescript/hooks/useStableCallback.d.ts.map +1 -0
  348. package/lib/typescript/hooks/useTranslatedMessage.d.ts +59 -58
  349. package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -1
  350. package/lib/typescript/i18n/en.json +3 -0
  351. package/lib/typescript/i18n/es.json +3 -0
  352. package/lib/typescript/i18n/fr.json +3 -0
  353. package/lib/typescript/i18n/he.json +3 -0
  354. package/lib/typescript/i18n/hi.json +2 -0
  355. package/lib/typescript/i18n/it.json +3 -0
  356. package/lib/typescript/i18n/ja.json +1 -0
  357. package/lib/typescript/i18n/ko.json +1 -0
  358. package/lib/typescript/i18n/nl.json +2 -0
  359. package/lib/typescript/i18n/pt-br.json +3 -0
  360. package/lib/typescript/i18n/ru.json +4 -0
  361. package/lib/typescript/i18n/tr.json +2 -0
  362. package/lib/typescript/native.d.ts +8 -11
  363. package/lib/typescript/native.d.ts.map +1 -1
  364. package/lib/typescript/store/apis/insertReaction.d.ts +2 -2
  365. package/lib/typescript/store/apis/insertReaction.d.ts.map +1 -1
  366. package/lib/typescript/store/apis/updateMessage.d.ts +2 -2
  367. package/lib/typescript/store/apis/updateMessage.d.ts.map +1 -1
  368. package/lib/typescript/store/apis/updateReaction.d.ts +2 -2
  369. package/lib/typescript/store/apis/updateReaction.d.ts.map +1 -1
  370. package/lib/typescript/store/mappers/mapMessageToStorable.d.ts +2 -2
  371. package/lib/typescript/store/mappers/mapMessageToStorable.d.ts.map +1 -1
  372. package/lib/typescript/types/types.d.ts +28 -50
  373. package/lib/typescript/types/types.d.ts.map +1 -1
  374. package/lib/typescript/utils/compressImage.d.ts +2 -2
  375. package/lib/typescript/utils/compressImage.d.ts.map +1 -1
  376. package/lib/typescript/utils/i18n/Streami18n.d.ts +3 -0
  377. package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
  378. package/lib/typescript/utils/removeReservedFields.d.ts +2 -3
  379. package/lib/typescript/utils/removeReservedFields.d.ts.map +1 -1
  380. package/lib/typescript/utils/utils.d.ts +10 -10
  381. package/lib/typescript/utils/utils.d.ts.map +1 -1
  382. package/package.json +4 -3
  383. package/src/components/Attachment/AudioAttachment.tsx +12 -6
  384. package/src/components/Attachment/FileAttachmentGroup.tsx +3 -1
  385. package/src/components/Attachment/Gallery.tsx +22 -7
  386. package/src/components/Attachment/ImageReloadIndicator.tsx +4 -5
  387. package/src/components/AttachmentPicker/AttachmentPicker.tsx +4 -10
  388. package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +9 -37
  389. package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +27 -23
  390. package/src/components/AutoCompleteInput/__tests__/AutoCompleteInput.test.js +12 -12
  391. package/src/components/Channel/Channel.tsx +423 -361
  392. package/src/components/Channel/__tests__/Channel.test.js +10 -3
  393. package/src/components/Channel/hooks/useChannelDataState.ts +2 -4
  394. package/src/components/Channel/hooks/useCreateMessagesContext.ts +2 -0
  395. package/src/components/Channel/hooks/useMessageListPagination.tsx +150 -150
  396. package/src/components/Chat/Chat.tsx +0 -9
  397. package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +8 -7
  398. package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +5 -4
  399. package/src/components/ImageGallery/__tests__/ImageGalleryHeader.test.tsx +5 -4
  400. package/src/components/ImageGallery/__tests__/ImageGalleryOverlay.test.tsx +3 -2
  401. package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx +12 -5
  402. package/src/components/Message/Message.tsx +16 -15
  403. package/src/components/Message/MessageSimple/MessageFooter.tsx +2 -3
  404. package/src/components/Message/MessageSimple/MessageSimple.tsx +112 -70
  405. package/src/components/Message/MessageSimple/MessageStatus.tsx +19 -17
  406. package/src/components/Message/MessageSimple/MessageTextContainer.tsx +3 -3
  407. package/src/components/Message/MessageSimple/__tests__/MessageStatus.test.js +11 -5
  408. package/src/components/Message/MessageSimple/__tests__/MessageTextContainer.test.tsx +5 -4
  409. package/src/components/Message/MessageSimple/utils/renderText.tsx +2 -3
  410. package/src/components/Message/hooks/useCreateMessageContext.ts +3 -0
  411. package/src/components/Message/hooks/useMessageActionHandlers.ts +1 -3
  412. package/src/components/Message/hooks/useMessageActions.tsx +4 -3
  413. package/src/components/MessageInput/FileUploadPreview.tsx +41 -70
  414. package/src/components/MessageInput/ImageUploadPreview.tsx +2 -2
  415. package/src/components/MessageInput/InputButtons.tsx +14 -10
  416. package/src/components/MessageInput/MessageInput.tsx +28 -30
  417. package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +1 -1
  418. package/src/components/MessageInput/__tests__/MessageInput.test.js +3 -1
  419. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +1 -0
  420. package/src/components/MessageInput/hooks/useAudioController.tsx +6 -5
  421. package/src/components/MessageList/MessageList.tsx +253 -137
  422. package/src/components/MessageList/MessageSystem.tsx +2 -2
  423. package/src/components/MessageList/hooks/useMessageList.ts +82 -64
  424. package/src/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.ts +2 -2
  425. package/src/components/MessageList/utils/getGroupStyles.ts +7 -5
  426. package/src/components/MessageList/utils/getLastReceivedMessage.ts +3 -3
  427. package/src/components/MessageList/utils/getReadState.ts +27 -0
  428. package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +2 -3
  429. package/src/components/MessageMenu/hooks/useFetchReactions.ts +2 -3
  430. package/src/components/Poll/components/Button.tsx +2 -4
  431. package/src/components/Poll/components/PollResults/PollResultItem.tsx +2 -3
  432. package/src/components/Reply/Reply.tsx +1 -2
  433. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +318 -847
  434. package/src/components/Thread/components/ThreadFooterComponent.tsx +31 -9
  435. package/src/components/ThreadList/ThreadListItem.tsx +6 -4
  436. package/src/components/UIComponents/BottomSheetModal.tsx +11 -7
  437. package/src/components/index.ts +2 -1
  438. package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +5 -4
  439. package/src/contexts/channelsStateContext/useChannelState.ts +5 -1
  440. package/src/contexts/debugContext/DebugContext.tsx +2 -4
  441. package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +5 -4
  442. package/src/contexts/messageContext/MessageContext.tsx +6 -4
  443. package/src/contexts/messageInputContext/MessageInputContext.tsx +295 -262
  444. package/src/contexts/messageInputContext/__tests__/__snapshots__/sendMessage.test.tsx.snap +10 -6
  445. package/src/contexts/messageInputContext/__tests__/sendMessage.test.tsx +6 -5
  446. package/src/contexts/messageInputContext/__tests__/updateMessage.test.tsx +3 -5
  447. package/src/contexts/messageInputContext/__tests__/useMessageDetailsForState.test.tsx +14 -9
  448. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +7 -3
  449. package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +37 -40
  450. package/src/contexts/messageInputContext/utils/utils.ts +6 -8
  451. package/src/contexts/messagesContext/MessagesContext.tsx +26 -20
  452. package/src/contexts/pollContext/pollContext.tsx +2 -4
  453. package/src/contexts/suggestionsContext/SuggestionsContext.tsx +33 -14
  454. package/src/contexts/themeContext/utils/theme.ts +2 -0
  455. package/src/contexts/threadContext/ThreadContext.tsx +4 -6
  456. package/src/contexts/threadsContext/ThreadListItemContext.tsx +3 -5
  457. package/src/hooks/index.ts +2 -0
  458. package/src/hooks/useAudioPlayer.ts +37 -31
  459. package/src/hooks/useStableCallback.ts +37 -0
  460. package/src/hooks/useTranslatedMessage.ts +2 -2
  461. package/src/i18n/en.json +3 -0
  462. package/src/i18n/es.json +3 -0
  463. package/src/i18n/fr.json +3 -0
  464. package/src/i18n/he.json +3 -0
  465. package/src/i18n/hi.json +2 -0
  466. package/src/i18n/it.json +3 -0
  467. package/src/i18n/ja.json +1 -0
  468. package/src/i18n/ko.json +1 -0
  469. package/src/i18n/nl.json +2 -0
  470. package/src/i18n/pt-br.json +3 -0
  471. package/src/i18n/ru.json +4 -0
  472. package/src/i18n/tr.json +2 -0
  473. package/src/mock-builders/api/channelMocks.tsx +2 -8
  474. package/src/native.ts +13 -8
  475. package/src/store/apis/insertReaction.ts +2 -2
  476. package/src/store/apis/updateMessage.ts +2 -2
  477. package/src/store/apis/updateReaction.ts +2 -2
  478. package/src/store/mappers/mapMessageToStorable.ts +2 -2
  479. package/src/types/stream-chat-common-custom-data.d.ts +22 -22
  480. package/src/types/types.ts +35 -54
  481. package/src/utils/compressImage.ts +3 -4
  482. package/src/utils/removeReservedFields.ts +3 -5
  483. package/src/utils/utils.ts +25 -16
  484. package/src/version.json +1 -1
  485. package/lib/commonjs/components/MessageList/hooks/useLastReadData.js +0 -20
  486. package/lib/commonjs/components/MessageList/hooks/useLastReadData.js.map +0 -1
  487. package/lib/commonjs/components/MessageList/utils/getReadStates.js +0 -34
  488. package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +0 -1
  489. package/lib/module/components/MessageList/hooks/useLastReadData.js +0 -20
  490. package/lib/module/components/MessageList/hooks/useLastReadData.js.map +0 -1
  491. package/lib/module/components/MessageList/utils/getReadStates.js +0 -34
  492. package/lib/module/components/MessageList/utils/getReadStates.js.map +0 -1
  493. package/lib/typescript/components/MessageList/hooks/useLastReadData.d.ts +0 -12
  494. package/lib/typescript/components/MessageList/hooks/useLastReadData.d.ts.map +0 -1
  495. package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +0 -5
  496. package/lib/typescript/components/MessageList/utils/getReadStates.d.ts.map +0 -1
  497. package/src/components/MessageList/hooks/useLastReadData.ts +0 -29
  498. package/src/components/MessageList/utils/getReadStates.ts +0 -55
@@ -1,5 +1,5 @@
1
1
  import type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
2
- export declare const useCreateMessagesContext: ({ additionalPressableProps, Attachment, AttachmentActions, AudioAttachment, Card, CardCover, CardFooter, CardHeader, channelId, clearQuotedMessageState, DateHeader, deletedMessagesVisibilityType, deleteMessage, deleteReaction, disableTypingIndicator, dismissKeyboardOnMessageTouch, enableMessageGroupingByUser, enableSwipeToReply, FileAttachment, FileAttachmentGroup, FileAttachmentIcon, FlatList, forceAlignMessages, Gallery, getMessagesGroupStyles, Giphy, giphyVersion, handleBan, handleCopy, handleDelete, handleEdit, handleFlag, handleMarkUnread, handleMute, handlePinMessage, handleQuotedReply, handleReaction, handleRetry, handleThreadReply, hasCreatePoll, ImageLoadingFailedIndicator, ImageLoadingIndicator, initialScrollToFirstUnreadMessage, InlineDateSeparator, InlineUnreadIndicator, isAttachmentEqual, isMessageAIGenerated, legacyImageViewerSwipeBehaviour, markdownRules, Message, MessageActionList, MessageActionListItem, messageActions, MessageAvatar, MessageBounce, MessageContent, messageContentOrder, MessageDeleted, MessageEditedTimestamp, MessageError, MessageFooter, MessageHeader, MessageList, MessageMenu, MessagePinnedHeader, MessageReactionPicker, MessageReplies, MessageRepliesAvatars, MessageSimple, MessageStatus, MessageSwipeContent, messageSwipeToReplyHitSlop, MessageSystem, MessageText, messageTextNumberOfLines, MessageTimestamp, MessageUserReactions, MessageUserReactionsAvatar, MessageUserReactionsItem, myMessageTheme, onLongPressMessage, onPressInMessage, onPressMessage, PollContent, ReactionListBottom, reactionListPosition, ReactionListTop, removeMessage, Reply, retrySendMessage, ScrollToBottomButton, selectReaction, sendReaction, setEditingState, setQuotedMessageState, shouldShowUnreadUnderlay, StreamingMessageView, supportedReactions, targetedMessage, TypingIndicator, TypingIndicatorContainer, UnreadMessagesNotification, updateMessage, UrlPreview, VideoThumbnail, }: MessagesContextValue & {
2
+ export declare const useCreateMessagesContext: ({ additionalPressableProps, Attachment, AttachmentActions, AudioAttachment, Card, CardCover, CardFooter, CardHeader, channelId, clearQuotedMessageState, DateHeader, deletedMessagesVisibilityType, deleteMessage, deleteReaction, disableTypingIndicator, dismissKeyboardOnMessageTouch, enableMessageGroupingByUser, enableSwipeToReply, FileAttachment, FileAttachmentGroup, FileAttachmentIcon, FlatList, forceAlignMessages, Gallery, getMessagesGroupStyles, Giphy, giphyVersion, handleBan, handleCopy, handleDelete, handleEdit, handleFlag, handleMarkUnread, handleMute, handlePinMessage, handleQuotedReply, handleReaction, handleRetry, handleThreadReply, hasCreatePoll, ImageLoadingFailedIndicator, ImageLoadingIndicator, ImageReloadIndicator, initialScrollToFirstUnreadMessage, InlineDateSeparator, InlineUnreadIndicator, isAttachmentEqual, isMessageAIGenerated, legacyImageViewerSwipeBehaviour, markdownRules, Message, MessageActionList, MessageActionListItem, messageActions, MessageAvatar, MessageBounce, MessageContent, messageContentOrder, MessageDeleted, MessageEditedTimestamp, MessageError, MessageFooter, MessageHeader, MessageList, MessageMenu, MessagePinnedHeader, MessageReactionPicker, MessageReplies, MessageRepliesAvatars, MessageSimple, MessageStatus, MessageSwipeContent, messageSwipeToReplyHitSlop, MessageSystem, MessageText, messageTextNumberOfLines, MessageTimestamp, MessageUserReactions, MessageUserReactionsAvatar, MessageUserReactionsItem, myMessageTheme, onLongPressMessage, onPressInMessage, onPressMessage, PollContent, ReactionListBottom, reactionListPosition, ReactionListTop, removeMessage, Reply, retrySendMessage, ScrollToBottomButton, selectReaction, sendReaction, setEditingState, setQuotedMessageState, shouldShowUnreadUnderlay, StreamingMessageView, supportedReactions, targetedMessage, TypingIndicator, TypingIndicatorContainer, UnreadMessagesNotification, updateMessage, UrlPreview, VideoThumbnail, }: MessagesContextValue & {
3
3
  /**
4
4
  * To ensure we allow re-render, when channel is changed
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateMessagesContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateMessagesContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,eAAO,MAAM,wBAAwB,GAAI,y3DA0GtC,oBAAoB,GAAG;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,yBAkIA,CAAC"}
1
+ {"version":3,"file":"useCreateMessagesContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateMessagesContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,eAAO,MAAM,wBAAwB,GAAI,+4DA2GtC,oBAAoB,GAAG;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,yBAmIA,CAAC"}
@@ -9,13 +9,13 @@ export declare const useCreateThreadContext: ({ allowThreadMessagesInChannel, cl
9
9
  threadInstance: import("stream-chat").Thread;
10
10
  threadLoadingMore: boolean | undefined;
11
11
  threadLoadingMoreRecent: boolean | undefined;
12
- threadMessages: import("stream-chat").FormatMessageResponse[];
12
+ threadMessages: import("stream-chat").LocalMessage[];
13
13
  allowThreadMessagesInChannel: boolean;
14
14
  closeThread: () => void;
15
- openThread: (message: import("../..").MessageType) => void;
15
+ openThread: (message: import("stream-chat").LocalMessage) => void;
16
16
  reloadThread: () => void;
17
17
  setThreadLoadingMore: import("react").Dispatch<import("react").SetStateAction<boolean>>;
18
- thread: import("../..").MessageType | null;
18
+ thread: import("stream-chat").LocalMessage | null;
19
19
  threadHasMore: boolean;
20
20
  } | {
21
21
  loadMoreRecentThread?: undefined;
@@ -23,13 +23,13 @@ export declare const useCreateThreadContext: ({ allowThreadMessagesInChannel, cl
23
23
  threadInstance?: undefined;
24
24
  threadLoadingMore: boolean | undefined;
25
25
  threadLoadingMoreRecent?: undefined;
26
- threadMessages: import("stream-chat").FormatMessageResponse[];
26
+ threadMessages: import("stream-chat").LocalMessage[];
27
27
  allowThreadMessagesInChannel: boolean;
28
28
  closeThread: () => void;
29
- openThread: (message: import("../..").MessageType) => void;
29
+ openThread: (message: import("stream-chat").LocalMessage) => void;
30
30
  reloadThread: () => void;
31
31
  setThreadLoadingMore: import("react").Dispatch<import("react").SetStateAction<boolean>>;
32
- thread: import("../..").MessageType | null;
32
+ thread: import("stream-chat").LocalMessage | null;
33
33
  threadHasMore: boolean;
34
34
  };
35
35
  //# sourceMappingURL=useCreateThreadContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateThreadContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateThreadContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAUxF,eAAO,MAAM,sBAAsB,GAAI,0LAYpC,kBAAkB;;aA6By9D,CAAC;;;aAAiF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;CADhkE,CAAC"}
1
+ {"version":3,"file":"useCreateThreadContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateThreadContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAUxF,eAAO,MAAM,sBAAsB,GAAI,0LAYpC,kBAAkB;;aA6BijE,CAAC;;;aAAiF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;CADxpE,CAAC"}
@@ -21,9 +21,9 @@ export declare const useMessageListPagination: ({ channel }: {
21
21
  setTargetedMessage?: (messageId: string) => void;
22
22
  }) => Promise<void>;
23
23
  loadInitialMessagesStateFromChannel: (channel: Channel, hasMore: boolean) => void;
24
- loadLatestMessages: () => Promise<void>;
25
- loadMore: (limit?: number) => Promise<void>;
26
- loadMoreRecent: (limit?: number) => Promise<void>;
24
+ loadLatestMessages: import("../../../hooks").StableCallback<[], Promise<void>>;
25
+ loadMore: import("../../../hooks").StableCallback<[limit?: number | undefined], Promise<void>>;
26
+ loadMoreRecent: import("../../../hooks").StableCallback<[limit?: number | undefined], Promise<void>>;
27
27
  state: import("./useChannelDataState").ChannelMessagesState;
28
28
  };
29
29
  //# sourceMappingURL=useMessageListPagination.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMessageListPagination.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useMessageListPagination.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;AAarE;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GAAI,aAAa;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE;;;aA+DxD,CAAC;iBAAuB,CAAC;0BACf,CAAC;;;0BAgBoB,CAAC;aAA+B,CAAC;6BAElE,CAAC,EAAC,MAAO,QAAQ,CAAC,MAAM,cACnC;0BACK,CAAC;;;;;;;CA+MV,CAAC"}
1
+ {"version":3,"file":"useMessageListPagination.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useMessageListPagination.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;AAcrE;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GAAI,aAAa;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE;;;aA0DlD,CAAC;iBAAuB,CAAC;0BAI7C,CAAC;;;0BAa4D,CAAC;aAC9D,CAAD;6BAIgB,CAAC,EAAC,MAAO,QAAQ,CAAC,MAAM,cAAc;0BAE5C,CAAC;;;;;;;CAgNb,CAAC"}
@@ -2,7 +2,7 @@ import type { Channel, MessageResponse, StreamChat } from 'stream-chat';
2
2
  export declare const useChannelPreviewData: (channel: Channel, client: StreamChat, forceUpdateOverride?: number) => {
3
3
  latestMessagePreview: {
4
4
  created_at: string | Date | undefined;
5
- messageObject: MessageResponse | import("stream-chat").FormatMessageResponse | undefined;
5
+ messageObject: import("stream-chat").LocalMessage | MessageResponse | undefined;
6
6
  previews: {
7
7
  bold: boolean;
8
8
  text: string;
@@ -28,7 +28,7 @@ export declare enum MessageReadStatus {
28
28
  */
29
29
  export declare const useLatestMessagePreview: (channel: Channel, forceUpdate: number, lastMessage?: ReturnType<ChannelState["formatMessage"]> | MessageResponse) => {
30
30
  created_at: string | Date | undefined;
31
- messageObject: MessageResponse | import("stream-chat").FormatMessageResponse | undefined;
31
+ messageObject: import("stream-chat").LocalMessage | MessageResponse | undefined;
32
32
  previews: {
33
33
  bold: boolean;
34
34
  text: string;
@@ -114,15 +114,6 @@ export type ChatProps = Pick<ChatContextValue, 'client'> & Partial<Pick<ChatCont
114
114
  * - connectionRecovering - whether or not websocket is reconnecting
115
115
  * - isOnline - whether or not set user is active
116
116
  * - setActiveChannel - function to set the currently active channel
117
- *
118
- * The Chat Component takes the following generics in order:
119
- * - At (AttachmentType) - custom Attachment object extension
120
- * - Ct (ChannelType) - custom Channel object extension
121
- * - Co (CommandType) - custom Command string union extension
122
- * - Ev (EventType) - custom Event object extension
123
- * - Me (MessageType) - custom Message object extension
124
- * - Re (ReactionType) - custom Reaction object extension
125
- * - Us (UserType) - custom User object extension
126
117
  */
127
118
  export declare const Chat: (props: PropsWithChildren<ChatProps>) => React.JSX.Element;
128
119
  //# sourceMappingURL=Chat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/Chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAatE,OAAO,EAAE,gBAAgB,EAAg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C;AAK9D,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GACtD,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,sBAAsB,CAAC,CAAC,GAAG;IAC3E;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkDG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;CAC5B,CAAC;AAqKJ;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,iBAAiB,CAAC,SAAS,CAAC,sBAIvD,CAAC"}
@@ -29,6 +29,9 @@ export declare class KeyboardCompatibleView extends React.Component<KeyboardAvoi
29
29
  dismissKeyboard: () => Promise<void> | undefined;
30
30
  componentDidMount(): void;
31
31
  componentWillUnmount(): void;
32
+ keyboardContextValue: {
33
+ dismissKeyboard: () => Promise<void> | undefined;
34
+ };
32
35
  render(): React.JSX.Element;
33
36
  }
34
37
  //# sourceMappingURL=KeyboardCompatibleView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyboardCompatibleView.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,cAAc,EAEd,mBAAmB,EAEnB,yBAAyB,EACzB,aAAa,EACb,qBAAqB,EACrB,eAAe,EAEf,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EAIvB,IA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,EACjB,eAAe,EACf,uBAAuB,EAIvB,IAAI,EACL,MAAM,cAAc,CAAC;AAItB;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,KAAK,CAAC,SAAS,CACzD,yBAAyB,EACzB;IAAE,QAAQ,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,OAAO,CAAA;CAAE,CACtE;IACC,MAAM,CAAC,YAAY,EAAE,IAAI,CACvB,yBAAyB,EACzB,UAAU,GAAG,SAAS,GAAG,wBAAwB,CAClD,CAIC;IAEF,MAAM,EAAE,eAAe,GAAG,IAAI,CAAQ;IACtC,cAAc,EAAE,aAAa,GAAG,IAAI,CAAQ;IAC5C,cAAc,EAAE,mBAAmB,EAAE,CAAM;IAC3C,qBAAqB,EAAE,uBAAuB,GAAG,IAAI,CAAQ;IAC7D,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACtC,mBAAmB,SAAK;gBACZ,KAAK,EAAE,yBAAyB;IAU5C,uBAAuB,CAAC,aAAa,EAAE,eAAe;IA+BtD,iBAAiB,EAAE,qBAAqB,CAGtC;IAEF,SAAS,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAQ3C;IAEF,wBAAwB,aAwBtB;IAEF,qBAAqB,GAAI,cAAc,cAAc,UAUnD;IAEF,oBAAoB,aAoBlB;IAEF,sBAAsB,aAKpB;IAEF,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAa9C;IAEF,iBAAiB;IAKjB,oBAAoB;IAapB,oBAAoB;+BAjCG,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS;MAiCiB;IAEjE,MAAM;CAqEP"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { GestureResponderEvent, StyleProp, ViewStyle } from 'react-native';
3
- import type { Attachment, UserResponse } from 'stream-chat';
3
+ import type { Attachment, LocalMessage, UserResponse } from 'stream-chat';
4
4
  import { ChannelContextValue } from '../../contexts/channelContext/ChannelContext';
5
5
  import { ChatContextValue } from '../../contexts/chatContext/ChatContext';
6
6
  import { KeyboardContextValue } from '../../contexts/keyboardContext/KeyboardContext';
@@ -9,7 +9,6 @@ import { MessagesContextValue } from '../../contexts/messagesContext/MessagesCon
9
9
  import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
10
10
  import { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
11
11
  import type { Thumbnail } from '../Attachment/utils/buildGallery/types';
12
- import { MessageType } from '../MessageList/hooks/useMessageList';
13
12
  export type TouchableEmitter = 'fileAttachment' | 'gallery' | 'giphy' | 'message' | 'messageContent' | 'messageReplies' | 'reactionList';
14
13
  export type TextMentionTouchableHandlerAdditionalInfo = {
15
14
  user?: UserResponse;
@@ -57,7 +56,7 @@ export type MessagePressableHandlerPayload = PressableHandlerPayload & {
57
56
  /**
58
57
  * Message object, on which interaction occurred.
59
58
  */
60
- message?: MessageType;
59
+ message?: LocalMessage;
61
60
  };
62
61
  export type MessageActionHandlers = {
63
62
  copyMessage: () => void;
@@ -72,7 +71,7 @@ export type MessageActionHandlers = {
72
71
  toggleMuteUser: () => Promise<void>;
73
72
  toggleReaction: (reactionType: string) => Promise<void>;
74
73
  unpinMessage: () => Promise<void>;
75
- threadReply?: (message: MessageType) => Promise<void>;
74
+ threadReply?: (message: LocalMessage) => Promise<void>;
76
75
  };
77
76
  export type MessagePropsWithContext = Pick<ChannelContextValue, 'channel' | 'enforceUniqueReaction' | 'members'> & Pick<KeyboardContextValue, 'dismissKeyboard'> & Partial<Omit<MessageContextValue, 'groupStyles' | 'handleReaction' | 'message' | 'isMessageAIGenerated'>> & Pick<MessageContextValue, 'groupStyles' | 'message' | 'isMessageAIGenerated'> & Pick<MessagesContextValue, 'sendReaction' | 'deleteMessage' | 'dismissKeyboardOnMessageTouch' | 'forceAlignMessages' | 'handleBan' | 'handleCopy' | 'handleDelete' | 'handleEdit' | 'handleFlag' | 'handleMarkUnread' | 'handleMute' | 'handlePinMessage' | 'handleQuotedReply' | 'handleReaction' | 'handleRetry' | 'handleThreadReply' | 'isAttachmentEqual' | 'MessageMenu' | 'messageActions' | 'messageContentOrder' | 'MessageBounce' | 'MessageSimple' | 'onLongPressMessage' | 'onPressInMessage' | 'onPressMessage' | 'removeMessage' | 'deleteReaction' | 'retrySendMessage' | 'selectReaction' | 'setEditingState' | 'setQuotedMessageState' | 'supportedReactions' | 'updateMessage' | 'PollContent'> & Pick<ThreadContextValue, 'openThread'> & Pick<TranslationContextValue, 't'> & {
78
77
  chatContext: ChatContextValue;
@@ -88,7 +87,7 @@ export type MessagePropsWithContext = Pick<ChannelContextValue, 'channel' | 'enf
88
87
  *
89
88
  * @param message A message object to open the thread upon.
90
89
  */
91
- onThreadSelect?: (message: MessageType) => void;
90
+ onThreadSelect?: (message: LocalMessage) => void;
92
91
  showUnreadUnderlay?: boolean;
93
92
  style?: StyleProp<ViewStyle>;
94
93
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAY,SAAS,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3F,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAQ5D,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAmB,MAAM,8CAA8C,CAAC;AACpG,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAGxD,OAAO,EAAE,kBAAkB,EAAoB,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,uBAAuB,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AAe,GACf,eAAe,GACf,oBAAoB,GACpB,kBAAkB,GAClB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,uBAAuB,GACvB,oBAAoB,GACpB,eAAe,GACf,aAAa,CAChB,GACD,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAC,GACtC,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,GAAG;IACnC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,eAAe,EAAE,oBAAoB,CAAC;IACtC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;IACjD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAgtBJ,MAAM,MAAM,YAAY,GAAG,OAAO,CAChC,IAAI,CAAC,uBAAuB,EAAE,aAAa,GAAG,gBAAgB,GAAG,SAAS,CAAC,CAC5E,GACC,IAAI,CAAC,uBAAuB,EAAE,aAAa,GAAG,SAAS,CAAC,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,sBAwB1C,CAAC"}
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
- import type { Attachment } from 'stream-chat';
2
+ import type { Attachment, LocalMessage } from 'stream-chat';
3
3
  import type { MessageStatusProps } from './MessageStatus';
4
4
  import type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';
5
5
  import { Alignment } from '../../../contexts/messageContext/MessageContext';
6
- import type { MessageType } from '../../MessageList/hooks/useMessageList';
7
6
  type MessageFooterComponentProps = {
8
7
  date?: string | Date;
9
8
  formattedDate?: string | Date;
@@ -12,7 +11,7 @@ type MessageFooterComponentProps = {
12
11
  export type MessageFooterProps = Partial<Pick<ChannelContextValue, 'members'>> & MessageFooterComponentProps & {
13
12
  alignment?: Alignment;
14
13
  lastGroupMessage?: boolean;
15
- message?: MessageType;
14
+ message?: LocalMessage;
16
15
  MessageStatus?: React.ComponentType<MessageStatusProps>;
17
16
  otherAttachments?: Attachment[];
18
17
  showMessageStatus?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"MessageFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,EACL,SAAS,EAGV,MAAM,iDAAiD,CAAC;AAWzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAE1E,KAAK,2BAA2B,GAAG;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAgPF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC,GAC5E,2BAA2B,GAAG;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IACxD,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEJ,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,sBAkCtD,CAAC"}
1
+ {"version":3,"file":"MessageFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,EACL,SAAS,EAGV,MAAM,iDAAiD,CAAC;AAYzD,KAAK,2BAA2B,GAAG;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAgPF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC,GAC5E,2BAA2B,GAAG;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IACxD,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEJ,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,sBAkCtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MessageSimple.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAcjD,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAmC3D,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC9C,mBAAmB,EACjB,WAAW,GACX,SAAS,GACT,aAAa,GACb,cAAc,GACd,aAAa,GACb,kBAAkB,GAClB,SAAS,GACT,SAAS,GACT,YAAY,GACZ,kBAAkB,GAClB,mBAAmB,CACtB,GACC,IAAI,CACF,oBAAoB,EAClB,yBAAyB,GACzB,6BAA6B,GAC7B,oBAAoB,GACpB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,qBAAqB,GACrB,gBAAgB,GAChB,eAAe,GACf,qBAAqB,GACrB,4BAA4B,GAC5B,oBAAoB,GACpB,sBAAsB,GACtB,iBAAiB,GACjB,uBAAuB,CAC1B,CAAC;AA2bJ,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,aAAa;YAAW,kBAAkB;;CAuEtD,CAAC"}
1
+ {"version":3,"file":"MessageSimple.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAgB9D,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAmC3D,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC9C,mBAAmB,EACjB,WAAW,GACX,SAAS,GACT,aAAa,GACb,cAAc,GACd,aAAa,GACb,kBAAkB,GAClB,SAAS,GACT,SAAS,GACT,YAAY,GACZ,kBAAkB,GAClB,mBAAmB,CACtB,GACC,IAAI,CACF,oBAAoB,EAClB,yBAAyB,GACzB,6BAA6B,GAC7B,oBAAoB,GACpB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,qBAAqB,GACrB,gBAAgB,GAChB,eAAe,GACf,qBAAqB,GACrB,4BAA4B,GAC5B,oBAAoB,GACpB,sBAAsB,GACtB,iBAAiB,GACjB,uBAAuB,CAC1B,CAAC;AAmeJ,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,aAAa;YAAW,kBAAkB;;CAuEtD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
3
- export type MessageStatusPropsWithContext = Pick<MessageContextValue, 'message' | 'threadList'>;
3
+ export type MessageStatusPropsWithContext = Pick<MessageContextValue, 'message' | 'readBy' | 'threadList'>;
4
4
  export type MessageStatusProps = Partial<MessageStatusPropsWithContext>;
5
5
  export declare const MessageStatus: {
6
6
  (props: MessageStatusProps): React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"MessageStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AAUzD,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,YAAY,CAAC,CAAC;AAoGhG,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AAExE,eAAO,MAAM,aAAa;YAAW,kBAAkB;;CAItD,CAAC"}
1
+ {"version":3,"file":"MessageStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AAOzD,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC9C,mBAAmB,EACnB,SAAS,GAAG,QAAQ,GAAG,YAAY,CACpC,CAAC;AAsGF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AAExE,eAAO,MAAM,aAAa;YAAW,kBAAkB;;CAItD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MessageTextContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageTextContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtE,OAAO,EAAc,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAElE,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAG3D,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,4CAA4C,CAAC;AASvF,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,GAAG;IACzD,UAAU,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IACjE,KAAK,EAAE;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,IAAI,CACrD,mBAAmB,EACnB,SAAS,GAAG,aAAa,GAAG,YAAY,GAAG,SAAS,GAAG,cAAc,CACtE,GACC,IAAI,CACF,oBAAoB,EACpB,eAAe,GAAG,aAAa,GAAG,gBAAgB,GAAG,0BAA0B,CAChF,GAAG;IACF,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;QACf,aAAa,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;KACrC,CAAC,CAAC;CACJ,CAAC;AA0IJ,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAAC;AAEtF,eAAO,MAAM,oBAAoB;YAAW,yBAAyB;;CAqBpE,CAAC"}
1
+ {"version":3,"file":"MessageTextContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageTextContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAItE,OAAO,EAAc,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAElE,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAG3D,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,4CAA4C,CAAC;AAOvF,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,GAAG;IACzD,UAAU,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IACjE,KAAK,EAAE;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,IAAI,CACrD,mBAAmB,EACnB,SAAS,GAAG,aAAa,GAAG,YAAY,GAAG,SAAS,GAAG,cAAc,CACtE,GACC,IAAI,CACF,oBAAoB,EACpB,eAAe,GAAG,aAAa,GAAG,gBAAgB,GAAG,0BAA0B,CAChF,GAAG;IACF,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;QACf,aAAa,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;KACrC,CAAC,CAAC;CACJ,CAAC;AA0IJ,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAAC;AAEtF,eAAO,MAAM,oBAAoB;YAAW,yBAAyB;;CAqBpE,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { DefaultRules, Output, SingleASTNode, State } from 'simple-markdown';
3
+ import type { LocalMessage } from 'stream-chat';
3
4
  import type { MessageContextValue } from '../../../../contexts/messageContext/MessageContext';
4
5
  import type { Colors, MarkdownStyle } from '../../../../contexts/themeContext/utils/theme';
5
- import type { MessageType } from '../../../MessageList/hooks/useMessageList';
6
6
  type ReactOutput = Output<React.ReactNode>;
7
7
  export declare const MarkdownReactiveScrollView: ({ children }: {
8
8
  children: ReactNode;
@@ -10,7 +10,7 @@ export declare const MarkdownReactiveScrollView: ({ children }: {
10
10
  export type MarkdownRules = Partial<DefaultRules>;
11
11
  export type RenderTextParams = Partial<Pick<MessageContextValue, 'onLongPress' | 'onPress' | 'preventPress'>> & {
12
12
  colors: typeof Colors;
13
- message: MessageType;
13
+ message: LocalMessage;
14
14
  markdownRules?: MarkdownRules;
15
15
  markdownStyles?: MarkdownStyle;
16
16
  messageOverlay?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"renderText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/MessageSimple/utils/renderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqB,SAAS,EAAwB,MAAM,OAAO,CAAC;AAgBlF,OAAO,EACL,YAAY,EAIZ,MAAM,EAGN,aAAa,EACb,KAAK,EACN,MAAM,iBAAiB,CAAC;AAMzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAC9F,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAG3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAG7E,KAAK,WAAW,GAAG,MAAM,CAAC,K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WAAW,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CAChC,CAAC"}
1
+ {"version":3,"file":"renderText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/MessageSimple/utils/renderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqB,SAAS,EAAwB,MAAM,OAAO,CAAC;AAgBlF,OAAO,EACL,YAAY,EAIZ,MAAM,EAGN,aAAa,EACb,KAAK,EACN,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,YAAY,EAAgB,MAAM,aAAa,CAAC;AAI9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAC9F,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAK3F,KAAK,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAE3C,eAAO,MAAM,0BAA0B,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sBAkD/E,CAAC;AAmEF,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG,OAAO,CACpC,IAAI,CAAC,mBAAmB,EAAE,aAAa,GAAG,SAAS,GAAG,cAAc,CAAC,CACtE,GAAG;IACF,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,OAAO,EAAE,YAAY,CAAC;IACtB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,QAAQ,gBAAgB,sBAgSlD,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACjC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,iCAAiC,eAAe,sBAsC1E,CAAC;AAoBF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CAChC,CAAC;AA2BF,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CAChC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
2
- export declare const useCreateMessageContext: ({ actionsEnabled, alignment, channel, dismissOverlay, files, goToMessage, groupStyles, handleAction, handleReaction, handleToggleReaction, hasReactions, images, isEditedMessageOpen, isMessageAIGenerated, isMyMessage, lastGroupMessage, lastReceivedId, members, message, messageContentOrder, myMessageTheme, onLongPress, onlyEmojis, onOpenThread, onPress, onPressIn, otherAttachments, preventPress, reactions, setIsEditedMessageOpen, showAvatar, showMessageOverlay, showMessageStatus, threadList, videos, }: MessageContextValue) => MessageContextValue;
2
+ export declare const useCreateMessageContext: ({ actionsEnabled, alignment, channel, dismissOverlay, files, goToMessage, groupStyles, handleAction, handleReaction, handleToggleReaction, hasReactions, images, isEditedMessageOpen, isMessageAIGenerated, isMyMessage, lastGroupMessage, lastReceivedId, members, message, messageContentOrder, myMessageTheme, onLongPress, onlyEmojis, onOpenThread, onPress, onPressIn, otherAttachments, preventPress, reactions, readBy, setIsEditedMessageOpen, showAvatar, showMessageOverlay, showMessageStatus, threadList, videos, }: MessageContextValue) => MessageContextValue;
3
3
  //# sourceMappingURL=useCreateMessageContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateMessageContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useCreateMessageContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAI3F,eAAO,MAAM,uBAAuB,GAAI,0fAoCrC,mBAAmB,wBAsErB,CAAC"}
1
+ {"version":3,"file":"useCreateMessageContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useCreateMessageContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAI3F,eAAO,MAAM,uBAAuB,GAAI,kgBAqCrC,mBAAmB,wBAwErB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMessageActionHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMessageActionHandlers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAK9F,eAAO,MAAM,wBAAwB,GAAI,sIAUtC,IAAI,CACL,oBAAoB,EAClB,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,uBAAuB,GACvB,oBAAoB,CACvB,GACC,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,uBAAuB,CAAC,GAC9D,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAChC,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC;;;;;;;;;;;yCA6Hc,MAAM;CA0CzD,CAAC"}
1
+ {"version":3,"file":"useMessageActionHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMessageActionHandlers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAK9F,eAAO,MAAM,wBAAwB,GAAI,sIAUtC,IAAI,CACL,oBAAoB,EAClB,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,uBAAuB,GACvB,oBAAoB,CACvB,GACC,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,uBAAuB,CAAC,GAC9D,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAChC,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC;;;;;;;;;;;yCA6Hc,MAAM;CA0CzD,CAAC"}
@@ -1,13 +1,13 @@
1
+ import { LocalMessage } from 'stream-chat';
1
2
  import type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';
2
3
  import type { ChatContextValue } from '../../../contexts/chatContext/ChatContext';
3
4
  import type { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
4
5
  import type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
5
6
  import type { ThreadContextValue } from '../../../contexts/threadContext/ThreadContext';
6
7
  import type { TranslationContextValue } from '../../../contexts/translationContext/TranslationContext';
7
- import type { MessageType } from '../../MessageList/hooks/useMessageList';
8
8
  import type { MessageActionType } from '../../MessageMenu/MessageActionListItem';
9
9
  export type MessageActionsHookProps = Pick<MessagesContextValue, 'deleteMessage' | 'sendReaction' | 'handleBan' | 'handleCopy' | 'handleDelete' | 'handleEdit' | 'handleFlag' | 'handleQuotedReply' | 'handleMarkUnread' | 'handleMute' | 'handlePinMessage' | 'handleRetry' | 'handleReaction' | 'handleThreadReply' | 'removeMessage' | 'deleteReaction' | 'retrySendMessage' | 'setEditingState' | 'setQuotedMessageState' | 'selectReaction' | 'supportedReactions' | 'updateMessage'> & Pick<ChannelContextValue, 'channel' | 'enforceUniqueReaction'> & Pick<ChatContextValue, 'client'> & Pick<ThreadContextValue, 'openThread'> & Pick<MessageContextValue, 'dismissOverlay' | 'message'> & Pick<TranslationContextValue, 't'> & {
10
- onThreadSelect?: (message: MessageType) => void;
10
+ onThreadSelect?: (message: LocalMessage) => void;
11
11
  };
12
12
  export declare const useMessageActions: ({ channel, client, deleteMessage: deleteMessageFromContext, deleteReaction, dismissOverlay, enforceUniqueReaction, handleBan, handleCopy, handleDelete, handleEdit, handleFlag, handleMarkUnread, handleMute, handlePinMessage, handleQuotedReply, handleReaction: handleReactionProp, handleRetry, handleThreadReply, message, onThreadSelect, openThread, retrySendMessage, selectReaction, sendReaction, setEditingState, setQuotedMessageState, supportedReactions, t, }: MessageActionsHookProps) => {
13
13
  banUser: MessageActionType;
@@ -1 +1 @@
1
- {"version":3,"file":"useMessageActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMessageActions.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAmBvG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAEjF,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,oBAAoB,EAClB,eAAe,GACf,cAAc,GACd,WAAW,GACX,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,mBAAmB,GACnB,kBAAkB,GAClB,YAAY,GACZ,kBAAkB,GAClB,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,uBAAuB,GACvB,gBAAgB,GAChB,oBAAoB,GACpB,eAAe,CAClB,GACC,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,uBAAuB,CAAC,GAC9D,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAChC,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAC,GACtC,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,SAAS,CAAC,GACvD,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,GAAG;IACnC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;CACjD,CAAC;AAEJ,eAAO,MAAM,iBAAiB,GAAI,8cA6B/B,uBAAuB;;;;;;;;;;;;;;CA+OzB,CAAC"}
1
+ {"version":3,"file":"useMessageActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMessageActions.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAmBvG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAEjF,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,oBAAoB,EAClB,eAAe,GACf,cAAc,GACd,WAAW,GACX,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,mBAAmB,GACnB,kBAAkB,GAClB,YAAY,GACZ,kBAAkB,GAClB,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,uBAAuB,GACvB,gBAAgB,GAChB,oBAAoB,GACpB,eAAe,CAClB,GACC,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,uBAAuB,CAAC,GAC9D,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAChC,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAC,GACtC,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,SAAS,CAAC,GACvD,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,GAAG;IACnC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;CAClD,CAAC;AAEJ,eAAO,MAAM,iBAAiB,GAAI,8cA6B/B,uBAAuB;;;;;;;;;;;;;;CA+OzB,CAAC"}
@@ -2,15 +2,13 @@ import React from 'react';
2
2
  import { ChatContextValue } from '../../contexts';
3
3
  import { MessageInputContextValue } from '../../contexts/messageInputContext/MessageInputContext';
4
4
  import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
5
- type FileUploadPreviewPropsWithContext = Pick<MessageInputContextValue, 'fileUploads' | 'removeFile' | 'uploadFile' | 'setFileUploads' | 'AudioAttachmentUploadPreview'> & Pick<MessagesContextValue, 'FileAttachmentIcon'> & Pick<ChatContextValue, 'enableOfflineSupport'>;
6
- export type FileUploadPreviewProps = Partial<FileUploadPreviewPropsWithContext>;
5
+ export type FileUploadPreviewProps = Partial<Pick<MessageInputContextValue, 'fileUploads' | 'removeFile' | 'uploadFile' | 'setFileUploads' | 'AudioAttachmentUploadPreview'>> & Partial<Pick<MessagesContextValue, 'FileAttachmentIcon'>> & Partial<Pick<ChatContextValue, 'enableOfflineSupport'>>;
7
6
  /**
8
7
  * FileUploadPreview
9
8
  * UI Component to preview the files set for upload
10
9
  */
11
10
  export declare const FileUploadPreview: {
12
- (props: FileUploadPreviewProps): React.JSX.Element;
11
+ (props: FileUploadPreviewProps): React.JSX.Element | null;
13
12
  displayName: string;
14
13
  };
15
- export {};
16
14
  //# sourceMappingURL=FileUploadPreview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileUploadPreview.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/FileUploadPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,OAAO,EAAE,gBAAgB,EAAkB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAgHxD,KAAK,iCAAiC,GAAG,IAAI,CAC3C,wBAAwB,EACxB,aAAa,GAAG,YAAY,GAAG,YAAY,GAAG,gBAAgB,GAAG,8BAA8B,CAChG,GACC,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,GAChD,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,CAAC;AAqNjD,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAAC;AAEhF;;;GAGG;AACH,eAAO,MAAM,iBAAiB;YAAW,sBAAsB;;CAoB9D,CAAC"}
1
+ {"version":3,"file":"FileUploadPreview.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/FileUploadPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,OAAO,EAAE,gBAAgB,EAAkB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAgHxD,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAC1C,IAAI,CACF,wBAAwB,EACxB,aAAa,GAAG,YAAY,GAAG,YAAY,GAAG,gBAAgB,GAAG,8BAA8B,CAChG,CACF,GACC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,GACzD,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,CAAC,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,iBAAiB;YAAW,sBAAsB;;CA0M9D,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { MessageInputContextValue } from '../../contexts/messageInputContext/MessageInputContext';
3
3
  export type InputButtonsProps = Partial<InputButtonsWithContextProps>;
4
- export type InputButtonsWithContextProps = Pick<MessageInputContextValue, 'AttachButton' | 'CommandsButton' | 'giphyActive' | 'hasCameraPicker' | 'hasCommands' | 'hasFilePicker' | 'hasImagePicker' | 'MoreOptionsButton' | 'openCommandsPicker' | 'selectedPicker' | 'setShowMoreOptions' | 'showMoreOptions' | 'text' | 'toggleAttachmentPicker'>;
4
+ export type InputButtonsWithContextProps = Pick<MessageInputContextValue, 'AttachButton' | 'CommandsButton' | 'giphyActive' | 'hasCameraPicker' | 'hasCommands' | 'hasFilePicker' | 'hasImagePicker' | 'hasText' | 'MoreOptionsButton' | 'openCommandsPicker' | 'selectedPicker' | 'setShowMoreOptions' | 'showMoreOptions' | 'toggleAttachmentPicker'>;
5
5
  export declare const InputButtonsWithContext: (props: InputButtonsWithContextProps) => React.JSX.Element | null;
6
6
  export declare const InputButtons: (props: InputButtonsProps) => React.JSX.Element;
7
7
  //# sourceMappingURL=InputButtons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/InputButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAQhE,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAEtE,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,wBAAwB,EACtB,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,iBAAiB,GACjB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,mBAAmB,GACnB,oBAAoB,GACpB,gBAAgB,GAChB,oBAAoB,GACpB,iBAAiB,GACjB,MAAM,GACN,wBAAwB,CAC3B,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,4BAA4B,6BA8C1E,CAAC;AAoEF,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,sBAuCpD,CAAC"}
1
+ {"version":3,"file":"InputButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/InputButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAQhE,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAEtE,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,wBAAwB,EACtB,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,iBAAiB,GACjB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,SAAS,GACT,mBAAmB,GACnB,oBAAoB,GACpB,gBAAgB,GAChB,oBAAoB,GACpB,iBAAiB,GACjB,wBAAwB,CAC3B,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,4BAA4B,6BAkD1E,CAAC;AAoEF,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,sBAuCpD,CAAC"}
@@ -7,7 +7,7 @@ import { MessagesContextValue } from '../../contexts/messagesContext/MessagesCon
7
7
  import { SuggestionsContextValue } from '../../contexts/suggestionsContext/SuggestionsContext';
8
8
  import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
9
9
  import { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
10
- type MessageInputPropsWithContext = Pick<AttachmentPickerContextValue, 'AttachmentPickerSelectionBar'> & Pick<ChatContextValue, 'isOnline'> & Pick<ChannelContextValue, 'members' | 'threadList' | 'watchers'> & Pick<MessageInputContextValue, 'additionalTextInputProps' | 'asyncIds' | 'audioRecordingEnabled' | 'asyncMessagesLockDistance' | 'asyncMessagesMinimumPressDuration' | 'asyncMessagesSlideToCancelDistance' | 'asyncMessagesMultiSendEnabled' | 'asyncUploads' | 'AudioRecorder' | 'AudioRecordingInProgress' | 'AudioRecordingLockIndicator' | 'AudioRecordingPreview' | 'cooldownEndsAt' | 'CooldownTimer' | 'clearEditingState' | 'clearQuotedMessageState' | 'closeAttachmentPicker' | 'editing' | 'FileUploadPreview' | 'fileUploads' | 'giphyActive' | 'ImageUploadPreview' | 'imageUploads' | 'Input' | 'inputBoxRef' | 'InputButtons' | 'InputEditingStateHeader' | 'InputGiphySearch' | 'InputReplyStateHeader' | 'isValidMessage' | 'maxNumberOfFiles' | 'mentionedUsers' | 'numberOfUploads' | 'quotedMessage' | 'resetInput' | 'SendButton' | 'sending' | 'sendMessageAsync' | 'setShowMoreOptions' | 'setGiphyActive' | 'showMoreOptions' | 'ShowThreadMessageInChannelButton' | 'StartAudioRecordingButton' | 'removeFile' | 'removeImage' | 'text' | 'uploadNewFile' | 'uploadNewImage' | 'openPollCreationDialog' | 'closePollCreationDialog' | 'showPollCreationDialog' | 'sendMessage' | 'CreatePollContent' | 'StopMessageStreamingButton'> & Pick<MessagesContextValue, 'Reply'> & Pick<SuggestionsContextValue, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList' | 'suggestions' | 'triggerType'> & Pick<ThreadContextValue, 'thread'> & Pick<TranslationContextValue, 't'>;
10
+ type MessageInputPropsWithContext = Pick<AttachmentPickerContextValue, 'AttachmentPickerSelectionBar'> & Pick<ChatContextValue, 'isOnline'> & Pick<ChannelContextValue, 'channel' | 'members' | 'threadList' | 'watchers'> & Pick<MessageInputContextValue, 'additionalTextInputProps' | 'asyncIds' | 'audioRecordingEnabled' | 'asyncMessagesLockDistance' | 'asyncMessagesMinimumPressDuration' | 'asyncMessagesSlideToCancelDistance' | 'asyncMessagesMultiSendEnabled' | 'asyncUploads' | 'AudioRecorder' | 'AudioRecordingInProgress' | 'AudioRecordingLockIndicator' | 'AudioRecordingPreview' | 'cooldownEndsAt' | 'CooldownTimer' | 'clearEditingState' | 'clearQuotedMessageState' | 'closeAttachmentPicker' | 'compressImageQuality' | 'editing' | 'FileUploadPreview' | 'fileUploads' | 'giphyActive' | 'ImageUploadPreview' | 'imageUploads' | 'Input' | 'inputBoxRef' | 'InputButtons' | 'InputEditingStateHeader' | 'InputGiphySearch' | 'InputReplyStateHeader' | 'isValidMessage' | 'maxNumberOfFiles' | 'mentionedUsers' | 'numberOfUploads' | 'quotedMessage' | 'resetInput' | 'SendButton' | 'sending' | 'sendMessageAsync' | 'setShowMoreOptions' | 'setGiphyActive' | 'showMoreOptions' | 'ShowThreadMessageInChannelButton' | 'StartAudioRecordingButton' | 'removeFile' | 'removeImage' | 'text' | 'uploadNewFile' | 'uploadNewImage' | 'openPollCreationDialog' | 'closePollCreationDialog' | 'showPollCreationDialog' | 'sendMessage' | 'CreatePollContent' | 'StopMessageStreamingButton'> & Pick<MessagesContextValue, 'Reply'> & Pick<SuggestionsContextValue, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList' | 'suggestions' | 'triggerType'> & Pick<ThreadContextValue, 'thread'> & Pick<TranslationContextValue, 't'>;
11
11
  export type MessageInputProps = Partial<MessageInputPropsWithContext>;
12
12
  /**
13
13
  * UI Component for message input
@@ -1 +1 @@
1
- {"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AA8BzE,OAAO,EAAE,gBAAgB,EAA6C,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EACL,4BAA4B,EAE7B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAoB,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAkD9D,KAAK,4BAA4B,GAAG,IAAI,CACtC,4BAA4B,EAC5B,8BAA8B,CAC/B,GACC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,GAClC,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC,GAChE,IAAI,CACF,wBAAwB,EACtB,0BAA0B,GAC1B,UAAU,GACV,uBAAuB,GACvB,2BAA2B,GAC3B,mCAAmC,GACnC,oCAAoC,GACpC,+BAA+B,GAC/B,cAAc,GACd,eAAe,GACf,0BAA0B,GAC1B,6BAA6B,GAC7B,uBAAuB,GACvB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,yBAAyB,GACzB,uBAAuB,GACvB,SAAS,GACT,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,oBAAoB,GACpB,cAAc,GACd,OAAO,GACP,aAAa,GACb,cAAc,GACd,yBAAyB,GACzB,kBAAkB,GAClB,uBAAuB,GACvB,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,kBAAkB,GAClB,oBAAoB,GACpB,gBAAgB,GAChB,iBAAiB,GACjB,kCAAkC,GAClC,2BAA2B,GAC3B,YAAY,GACZ,aAAa,GACb,MAAM,GACN,eAAe,GACf,gBAAgB,GAChB,wBAAwB,GACxB,yBAAyB,GACzB,wBAAwB,GACxB,aAAa,GACb,mBAAmB,GACnB,4BAA4B,CAC/B,GACD,IAAI,CAAC,oBAAoB,EAAE,OAAO,CAAC,GACnC,IAAI,CACF,uBAAuB,EACrB,8BAA8B,GAC9B,4BAA4B,GAC5B,4BAA4B,GAC5B,aAAa,GACb,aAAa,CAChB,GACD,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,GAClC,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;AA87BrC,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAEtE;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;YAAW,iBAAiB;;CAoKpD,CAAC"}
1
+ {"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AA8BzE,OAAO,EAAE,gBAAgB,EAA6C,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EACL,4BAA4B,EAE7B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;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4B,GAC5B,aAAa,GACb,aAAa,CAChB,GACD,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,GAClC,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;AAw7BrC,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAEtE;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;YAAW,iBAAiB;;CAuKpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useAudioController.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageInput/hooks/useAudioController.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,wBAAwB,EAKzB,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;6CAuOyB,OAAO;;CAuD9D,CAAC"}
1
+ {"version":3,"file":"useAudioController.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageInput/hooks/useAudioController.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,wBAAwB,EAKzB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;6CAuOyB,OAAO;;CAuD9D,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FlatListProps, FlatList as FlatListType, ScrollViewProps } from 'react-native';
3
- import { MessageType } from './hooks/useMessageList';
3
+ import type { LocalMessage } from 'stream-chat';
4
4
  import { AttachmentPickerContextValue } from '../../contexts/attachmentPickerContext/AttachmentPickerContext';
5
5
  import { ChannelContextValue } from '../../contexts/channelContext/ChannelContext';
6
6
  import { ChatContextValue } from '../../contexts/chatContext/ChatContext';
@@ -9,7 +9,7 @@ import { MessagesContextValue } from '../../contexts/messagesContext/MessagesCon
9
9
  import { OverlayContextValue } from '../../contexts/overlayContext/OverlayContext';
10
10
  import { PaginatedMessageListContextValue } from '../../contexts/paginatedMessageListContext/PaginatedMessageListContext';
11
11
  import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
12
- type MessageListPropsWithContext = Pick<AttachmentPickerContextValue, 'closePicker' | 'selectedPicker' | 'setSelectedPicker'> & Pick<ChannelContextValue, 'channel' | 'channelUnreadState' | 'disabled' | 'EmptyStateIndicator' | 'hideStickyDateHeader' | 'highlightedMessageId' | 'loadChannelAroundMessage' | 'loading' | 'LoadingIndicator' | 'markRead' | 'NetworkDownIndicator' | 'reloadChannel' | 'scrollToFirstUnreadThreshold' | 'setTargetedMessage' | 'StickyHeader' | 'targetedMessage' | 'threadList'> & Pick<ChatContextValue, 'client'> & Pick<ImageGalleryContextValue, 'setMessages'> & Pick<PaginatedMessageListContextValue, 'loadMore' | 'loadMoreRecent'> & Pick<OverlayContextValue, 'overlay'> & Pick<MessagesContextValue, 'DateHeader' | 'disableTypingIndicator' | 'FlatList' | 'InlineDateSeparator' | 'InlineUnreadIndicator' | 'legacyImageViewerSwipeBehaviour' | 'Message' | 'ScrollToBottomButton' | 'MessageSystem' | 'myMessageTheme' | 'shouldShowUnreadUnderlay' | 'TypingIndicator' | 'TypingIndicatorContainer' | 'UnreadMessagesNotification'> & Pick<ThreadContextValue, 'loadMoreRecentThread' | 'loadMoreThread' | 'thread' | 'threadInstance'> & {
12
+ type MessageListPropsWithContext = Pick<AttachmentPickerContextValue, 'closePicker' | 'selectedPicker' | 'setSelectedPicker'> & Pick<ChannelContextValue, 'channel' | 'channelUnreadState' | 'disabled' | 'EmptyStateIndicator' | 'hideStickyDateHeader' | 'highlightedMessageId' | 'loadChannelAroundMessage' | 'loading' | 'LoadingIndicator' | 'markRead' | 'NetworkDownIndicator' | 'reloadChannel' | 'scrollToFirstUnreadThreshold' | 'setChannelUnreadState' | 'setTargetedMessage' | 'StickyHeader' | 'targetedMessage' | 'threadList'> & Pick<ChatContextValue, 'client'> & Pick<ImageGalleryContextValue, 'setMessages'> & Pick<PaginatedMessageListContextValue, 'loadMore' | 'loadMoreRecent'> & Pick<OverlayContextValue, 'overlay'> & Pick<MessagesContextValue, 'DateHeader' | 'disableTypingIndicator' | 'FlatList' | 'InlineDateSeparator' | 'InlineUnreadIndicator' | 'legacyImageViewerSwipeBehaviour' | 'Message' | 'ScrollToBottomButton' | 'MessageSystem' | 'myMessageTheme' | 'shouldShowUnreadUnderlay' | 'TypingIndicator' | 'TypingIndicatorContainer' | 'UnreadMessagesNotification'> & Pick<ThreadContextValue, 'loadMoreRecentThread' | 'loadMoreThread' | 'thread' | 'threadInstance'> & {
13
13
  /**
14
14
  * Besides existing (default) UX behavior of underlying FlatList of MessageList component, if you want
15
15
  * to attach some additional props to underlying FlatList, you can add it to following prop.
@@ -24,7 +24,7 @@ type MessageListPropsWithContext = Pick<AttachmentPickerContextValue, 'closePick
24
24
  * additionalFlatListProps={{ bounces: true, keyboardDismissMode: true }} />
25
25
  * ```
26
26
  */
27
- additionalFlatListProps?: Partial<FlatListProps<MessageType>>;
27
+ additionalFlatListProps?: Partial<FlatListProps<LocalMessage>>;
28
28
  /**
29
29
  * UI component for footer of message list. By default message list will use `InlineLoadingMoreIndicator`
30
30
  * as FooterComponent. If you want to implement your own inline loading indicator, you can access `loadingMore`
@@ -66,7 +66,7 @@ type MessageListPropsWithContext = Pick<AttachmentPickerContextValue, 'closePick
66
66
  * }}
67
67
  * ```
68
68
  */
69
- setFlatListRef?: (ref: FlatListType<MessageType> | null) => void;
69
+ setFlatListRef?: (ref: FlatListType<LocalMessage> | null) => void;
70
70
  };
71
71
  export type MessageListProps = Partial<MessageListPropsWithContext>;
72
72
  export declare const MessageList: (props: MessageListProps) => React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO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iCAAiC,GACjC,SAAS,GACT,sBAAsB,GACtB,eAAe,GACf,gBAAgB,GAChB,0BAA0B,GAC1B,iBAAiB,GACjB,0BAA0B,GAC1B,4BAA4B,CAC/B,GACD,IAAI,CACF,kBAAkB,EAClB,sBAAsB,GAAG,gBAAgB,GAAG,QAAQ,GAAG,gBAAgB,CACxE,GAAG;IACF;;;;;;;;;;;;;OAaG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;IAC9D;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IAC3C;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC;IACjE;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,CAAC,WAAW,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;CAClE,CAAC;AAg8BJ,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAEpE,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,sBAoGlD,CAAC"}
1
+ {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EACL,aAAa,EACb,QAAQ,IAAI,YAAY,EAExB,eAAe,EAKhB,MAAM,cAAc,CAAC;AAEtB,OAAO,K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AC1B,4BAA4B,CAC/B,GACD,IAAI,CACF,kBAAkB,EAClB,sBAAsB,GAAG,gBAAgB,GAAG,QAAQ,GAAG,gBAAgB,CACxE,GAAG;IACF;;;;;;;;;;;;;OAaG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC;IAC/D;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IAC3C;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC;IACjE;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,CAAC,YAAY,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;CACnE,CAAC;AAgiCJ,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAEpE,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,sBAsGlD,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
- import type { MessageType } from './hooks/useMessageList';
3
+ import { LocalMessage } from 'stream-chat';
4
4
  export type MessageSystemProps = {
5
5
  /** Current [message object](https://getstream.io/chat/docs/#message_format) */
6
- message: MessageType;
6
+ message: LocalMessage;
7
7
  /**
8
8
  * Additional styles for the system message container.
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"MessageSystem.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/MessageSystem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,SAAS,EAA0B,SAAS,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAO1D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,+EAA+E;IAC/E,OAAO,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAI9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa;YAAW,kBAAkB;;CA0CtD,CAAC"}
1
+ {"version":3,"file":"MessageSystem.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/MessageSystem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,SAAS,EAA0B,SAAS,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAO3C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,+EAA+E;IAC/E,OAAO,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAI9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa;YAAW,kBAAkB;;CA0CtD,CAAC"}
@@ -1,22 +1,27 @@
1
- import type { ChannelState, MessageResponse } from 'stream-chat';
1
+ import type { LocalMessage } from 'stream-chat';
2
2
  import { DeletedMessagesVisibilityType } from '../../../contexts/messagesContext/MessagesContext';
3
+ import { DateSeparators } from '../utils/getDateSeparators';
3
4
  export type UseMessageListParams = {
4
5
  deletedMessagesVisibilityType?: DeletedMessagesVisibilityType;
5
6
  noGroupByUser?: boolean;
6
7
  threadList?: boolean;
7
8
  };
8
9
  export type GroupType = string;
9
- export type MessagesWithStylesReadByAndDateSeparator = MessageResponse & {
10
- groupStyles: GroupType[];
11
- readBy: boolean | number;
12
- dateSeparator?: Date;
10
+ export type MessageGroupStyles = {
11
+ [key: string]: string[];
13
12
  };
14
- export type MessageType = ReturnType<ChannelState['formatMessage']> | MessagesWithStylesReadByAndDateSeparator;
15
- export declare const isMessageWithStylesReadByAndDateSeparator: (message: MessageType) => message is MessagesWithStylesReadByAndDateSeparator;
13
+ export declare const shouldIncludeMessageInList: (message: LocalMessage, options: {
14
+ deletedMessagesVisibilityType?: DeletedMessagesVisibilityType;
15
+ userId?: string;
16
+ }) => boolean;
16
17
  export declare const useMessageList: (params: UseMessageListParams) => {
18
+ /** Date separators */
19
+ dateSeparatorsRef: import("react").RefObject<DateSeparators>;
20
+ /** Message group styles */
21
+ messageGroupStylesRef: import("react").RefObject<MessageGroupStyles>;
17
22
  /** Messages enriched with dates/readby/groups and also reversed in order */
18
- processedMessageList: MessageType[];
23
+ processedMessageList: LocalMessage[];
19
24
  /** Raw messages from the channel state */
20
- rawMessageList: import("stream-chat").FormatMessageResponse[];
25
+ rawMessageList: LocalMessage[];
21
26
  };
22
27
  //# sourceMappingURL=useMessageList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMessageList.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/useMessageList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAMjE,OAAO,EACL,6BAA6B,EAE9B,MAAM,mDAAmD,CAAC;AAO3D,MAAM,MAAM,oBAAoB,GAAG;IACjC,6BAA6B,CAAC,EAAE,6BAA6B,CAAC;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,MAAM,wCAAwC,GAAG,eAAe,GAAG;IACvE,WAAW,EAAE,SAAS,EAAE,CAAC;IACzB,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,WAAW,GACnB,UAAU,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,GACzC,wCAAwC,CAAC;AAG7C,eAAO,MAAM,yCAAyC,GACpD,SAAS,WAAW,KACnB,OAAO,IAAI,wCAC8D,CAAC;AAE7E,eAAO,MAAM,cAAc,GAAI,QAAQ,oBAAoB;IA2DvD,4EAA4E;;IAE5E,0CAA0C;;CAG7C,CAAC"}
1
+ {"version":3,"file":"useMessageList.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/useMessageList.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,OAAO,EACL,6BAA6B,EAE9B,MAAM,mDAAmD,CAAC;AAI3D,OAAO,EAAE,cAAc,EAAqB,MAAM,4BAA4B,CAAC;AAG/E,MAAM,MAAM,oBAAoB,GAAG;IACjC,6BAA6B,CAAC,EAAE,6BAA6B,CAAC;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,SAAS,YAAY,EACrB,SAAS;IAAE,6BAA6B,CAAC,EAAE,6BAA6B,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,YAiB5F,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,oBAAoB;IAgEvD,sBAAsB;;IAEtB,2BAA2B;;IAE3B,4EAA4E;;IAE5E,0CAA0C;;CAG7C,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { FormatMessageResponse } from 'stream-chat';
2
- export declare function useShouldScrollToRecentOnNewOwnMessage(rawMessageList: FormatMessageResponse[], currentUserId?: string): import("react").RefObject<() => boolean>;
1
+ import type { LocalMessage } from 'stream-chat';
2
+ export declare function useShouldScrollToRecentOnNewOwnMessage(rawMessageList: LocalMessage[], currentUserId?: string): import("react").RefObject<() => boolean>;
3
3
  //# sourceMappingURL=useShouldScrollToRecentOnNewOwnMessage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useShouldScrollToRecentOnNewOwnMessage.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD,wBAAgB,sCAAsC,CACpD,cAAc,EAAE,qBAAqB,EAAE,EACvC,aAAa,CAAC,EAAE,MAAM,4CAoCvB"}
1
+ {"version":3,"file":"useShouldScrollToRecentOnNewOwnMessage.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,wBAAgB,sCAAsC,CACpD,cAAc,EAAE,YAAY,EAAE,EAC9B,aAAa,CAAC,EAAE,MAAM,4CAoCvB"}