stream-chat-react-native-core 6.0.0-rc.9 → 6.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 (564) hide show
  1. package/README.md +1 -1
  2. package/lib/commonjs/components/AITypingIndicatorView/AITypingIndicatorView.js +53 -0
  3. package/lib/commonjs/components/AITypingIndicatorView/AITypingIndicatorView.js.map +1 -0
  4. package/lib/commonjs/components/AITypingIndicatorView/hooks/useAIState.js +59 -0
  5. package/lib/commonjs/components/AITypingIndicatorView/hooks/useAIState.js.map +1 -0
  6. package/lib/commonjs/components/AITypingIndicatorView/index.js +26 -0
  7. package/lib/commonjs/components/AITypingIndicatorView/index.js.map +1 -0
  8. package/lib/commonjs/components/Attachment/AudioAttachment.js +27 -22
  9. package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
  10. package/lib/commonjs/components/Attachment/Gallery.js +3 -1
  11. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  12. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +2 -2
  13. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  14. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +37 -133
  15. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  16. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +6 -4
  17. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
  18. package/lib/commonjs/components/Channel/Channel.js +478 -1045
  19. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  20. package/lib/commonjs/components/Channel/hooks/useChannelDataState.js +174 -0
  21. package/lib/commonjs/components/Channel/hooks/useChannelDataState.js.map +1 -0
  22. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -0
  23. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  24. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +4 -0
  25. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  26. package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js +3 -3
  27. package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  28. package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js +324 -0
  29. package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js.map +1 -0
  30. package/lib/commonjs/components/ChannelList/Skeleton.js +7 -3
  31. package/lib/commonjs/components/ChannelList/Skeleton.js.map +1 -1
  32. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +85 -45
  33. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  34. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +17 -91
  35. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  36. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +3 -24
  37. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  38. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +2 -2
  39. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  40. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewData.js +121 -0
  41. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -0
  42. package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelMuted.js +35 -0
  43. package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelMuted.js.map +1 -0
  44. package/lib/commonjs/components/Chat/Chat.js +5 -1
  45. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  46. package/lib/commonjs/components/Chat/hooks/useAppSettings.js +15 -9
  47. package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -1
  48. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +2 -0
  49. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  50. package/lib/commonjs/components/Chat/hooks/useIsOnline.js +0 -4
  51. package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
  52. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  53. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +46 -46
  54. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  55. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +3 -4
  56. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  57. package/lib/commonjs/components/ImageGallery/hooks/useAnimatedGalleryStyle.js +2 -2
  58. package/lib/commonjs/components/ImageGallery/hooks/useAnimatedGalleryStyle.js.map +1 -1
  59. package/lib/commonjs/components/Message/Message.js +7 -0
  60. package/lib/commonjs/components/Message/Message.js.map +1 -1
  61. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +17 -4
  62. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  63. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +15 -6
  64. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  65. package/lib/commonjs/components/Message/MessageSimple/StreamingMessageView.js +36 -0
  66. package/lib/commonjs/components/Message/MessageSimple/StreamingMessageView.js.map +1 -0
  67. package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.js +9 -1
  68. package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.js.map +1 -1
  69. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +209 -23
  70. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  71. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +2 -0
  72. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  73. package/lib/commonjs/components/Message/hooks/useStreamingMessage.js +43 -0
  74. package/lib/commonjs/components/Message/hooks/useStreamingMessage.js.map +1 -0
  75. package/lib/commonjs/components/MessageInput/MessageInput.js +41 -21
  76. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  77. package/lib/commonjs/components/MessageInput/StopMessageStreamingButton.js +39 -0
  78. package/lib/commonjs/components/MessageInput/StopMessageStreamingButton.js.map +1 -0
  79. package/lib/commonjs/components/MessageList/MessageList.js +74 -73
  80. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  81. package/lib/commonjs/components/MessageList/ScrollToBottomButton.js +1 -1
  82. package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
  83. package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
  84. package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +1 -1
  85. package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +1 -1
  86. package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
  87. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +4 -2
  88. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
  89. package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js +3 -2
  90. package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
  91. package/lib/commonjs/components/Poll/CreatePollContent.js +14 -9
  92. package/lib/commonjs/components/Poll/CreatePollContent.js.map +1 -1
  93. package/lib/commonjs/components/Poll/Poll.js +2 -8
  94. package/lib/commonjs/components/Poll/Poll.js.map +1 -1
  95. package/lib/commonjs/components/Poll/components/Button.js +9 -474
  96. package/lib/commonjs/components/Poll/components/Button.js.map +1 -1
  97. package/lib/commonjs/components/Poll/components/CreatePollIcon.js +2 -2
  98. package/lib/commonjs/components/Poll/components/CreatePollIcon.js.map +1 -1
  99. package/lib/commonjs/components/Poll/components/CreatePollOptions.js +9 -4
  100. package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -1
  101. package/lib/commonjs/components/Poll/components/PollAnswersList.js +99 -26
  102. package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -1
  103. package/lib/commonjs/components/Poll/components/PollButtons.js +291 -0
  104. package/lib/commonjs/components/Poll/components/PollButtons.js.map +1 -0
  105. package/lib/commonjs/components/Poll/components/PollInputDialog.js +14 -4
  106. package/lib/commonjs/components/Poll/components/PollInputDialog.js.map +1 -1
  107. package/lib/commonjs/components/Poll/components/PollModalHeader.js +7 -1
  108. package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -1
  109. package/lib/commonjs/components/Poll/components/PollOption.js +88 -6
  110. package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
  111. package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js +2 -2
  112. package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
  113. package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js +62 -67
  114. package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
  115. package/lib/commonjs/components/Poll/components/PollResults/PollVote.js +89 -0
  116. package/lib/commonjs/components/Poll/components/PollResults/PollVote.js.map +1 -0
  117. package/lib/commonjs/components/Poll/components/index.js +11 -0
  118. package/lib/commonjs/components/Poll/components/index.js.map +1 -1
  119. package/lib/commonjs/components/ThreadList/ThreadList.js +0 -3
  120. package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
  121. package/lib/commonjs/components/UIComponents/BottomSheetModal.js +11 -5
  122. package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +1 -1
  123. package/lib/commonjs/components/index.js +66 -0
  124. package/lib/commonjs/components/index.js.map +1 -1
  125. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  126. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +0 -35
  127. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  128. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js +7 -84
  129. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
  130. package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
  131. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  132. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +4 -2
  133. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  134. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -0
  135. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  136. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  137. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  138. package/lib/commonjs/contexts/themeContext/utils/theme.js +15 -0
  139. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  140. package/lib/commonjs/i18n/en.json +2 -0
  141. package/lib/commonjs/i18n/es.json +2 -0
  142. package/lib/commonjs/i18n/fr.json +2 -0
  143. package/lib/commonjs/i18n/he.json +2 -0
  144. package/lib/commonjs/i18n/hi.json +2 -0
  145. package/lib/commonjs/i18n/it.json +2 -0
  146. package/lib/commonjs/i18n/ja.json +2 -0
  147. package/lib/commonjs/i18n/ko.json +2 -0
  148. package/lib/commonjs/i18n/nl.json +2 -0
  149. package/lib/commonjs/i18n/pt-br.json +2 -0
  150. package/lib/commonjs/i18n/ru.json +2 -0
  151. package/lib/commonjs/i18n/tr.json +2 -0
  152. package/lib/commonjs/mock-builders/event/notificationChannelMutesUpdated.js +14 -0
  153. package/lib/commonjs/mock-builders/event/notificationChannelMutesUpdated.js.map +1 -0
  154. package/lib/commonjs/mock-builders/event/notificationMarkRead.js +14 -0
  155. package/lib/commonjs/mock-builders/event/notificationMarkRead.js.map +1 -0
  156. package/lib/commonjs/mock-builders/event/notificationMarkUnread.js +17 -0
  157. package/lib/commonjs/mock-builders/event/notificationMarkUnread.js.map +1 -0
  158. package/lib/commonjs/mock-builders/generator/channel.js +1 -0
  159. package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
  160. package/lib/commonjs/store/SqliteClient.js +11 -2
  161. package/lib/commonjs/store/SqliteClient.js.map +1 -1
  162. package/lib/commonjs/utils/getTrimmedAttachmentTitle.js +8 -2
  163. package/lib/commonjs/utils/getTrimmedAttachmentTitle.js.map +1 -1
  164. package/lib/commonjs/utils/utils.js +3 -2
  165. package/lib/commonjs/utils/utils.js.map +1 -1
  166. package/lib/commonjs/version.json +1 -1
  167. package/lib/module/components/AITypingIndicatorView/AITypingIndicatorView.js +53 -0
  168. package/lib/module/components/AITypingIndicatorView/AITypingIndicatorView.js.map +1 -0
  169. package/lib/module/components/AITypingIndicatorView/hooks/useAIState.js +59 -0
  170. package/lib/module/components/AITypingIndicatorView/hooks/useAIState.js.map +1 -0
  171. package/lib/module/components/AITypingIndicatorView/index.js +26 -0
  172. package/lib/module/components/AITypingIndicatorView/index.js.map +1 -0
  173. package/lib/module/components/Attachment/AudioAttachment.js +27 -22
  174. package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
  175. package/lib/module/components/Attachment/Gallery.js +3 -1
  176. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  177. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +2 -2
  178. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  179. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +37 -133
  180. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  181. package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +6 -4
  182. package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
  183. package/lib/module/components/Channel/Channel.js +478 -1045
  184. package/lib/module/components/Channel/Channel.js.map +1 -1
  185. package/lib/module/components/Channel/hooks/useChannelDataState.js +174 -0
  186. package/lib/module/components/Channel/hooks/useChannelDataState.js.map +1 -0
  187. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -0
  188. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  189. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +4 -0
  190. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  191. package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js +3 -3
  192. package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  193. package/lib/module/components/Channel/hooks/useMessageListPagination.js +324 -0
  194. package/lib/module/components/Channel/hooks/useMessageListPagination.js.map +1 -0
  195. package/lib/module/components/ChannelList/Skeleton.js +7 -3
  196. package/lib/module/components/ChannelList/Skeleton.js.map +1 -1
  197. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +85 -45
  198. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  199. package/lib/module/components/ChannelPreview/ChannelPreview.js +17 -91
  200. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  201. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +3 -24
  202. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  203. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +2 -2
  204. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  205. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewData.js +121 -0
  206. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -0
  207. package/lib/module/components/ChannelPreview/hooks/useIsChannelMuted.js +35 -0
  208. package/lib/module/components/ChannelPreview/hooks/useIsChannelMuted.js.map +1 -0
  209. package/lib/module/components/Chat/Chat.js +5 -1
  210. package/lib/module/components/Chat/Chat.js.map +1 -1
  211. package/lib/module/components/Chat/hooks/useAppSettings.js +15 -9
  212. package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -1
  213. package/lib/module/components/Chat/hooks/useCreateChatContext.js +2 -0
  214. package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  215. package/lib/module/components/Chat/hooks/useIsOnline.js +0 -4
  216. package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
  217. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  218. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +46 -46
  219. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  220. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +3 -4
  221. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  222. package/lib/module/components/ImageGallery/hooks/useAnimatedGalleryStyle.js +2 -2
  223. package/lib/module/components/ImageGallery/hooks/useAnimatedGalleryStyle.js.map +1 -1
  224. package/lib/module/components/Message/Message.js +7 -0
  225. package/lib/module/components/Message/Message.js.map +1 -1
  226. package/lib/module/components/Message/MessageSimple/MessageContent.js +17 -4
  227. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  228. package/lib/module/components/Message/MessageSimple/MessageFooter.js +15 -6
  229. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  230. package/lib/module/components/Message/MessageSimple/StreamingMessageView.js +36 -0
  231. package/lib/module/components/Message/MessageSimple/StreamingMessageView.js.map +1 -0
  232. package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.js +9 -1
  233. package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.js.map +1 -1
  234. package/lib/module/components/Message/MessageSimple/utils/renderText.js +209 -23
  235. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  236. package/lib/module/components/Message/hooks/useCreateMessageContext.js +2 -0
  237. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  238. package/lib/module/components/Message/hooks/useStreamingMessage.js +43 -0
  239. package/lib/module/components/Message/hooks/useStreamingMessage.js.map +1 -0
  240. package/lib/module/components/MessageInput/MessageInput.js +41 -21
  241. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  242. package/lib/module/components/MessageInput/StopMessageStreamingButton.js +39 -0
  243. package/lib/module/components/MessageInput/StopMessageStreamingButton.js.map +1 -0
  244. package/lib/module/components/MessageList/MessageList.js +74 -73
  245. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  246. package/lib/module/components/MessageList/ScrollToBottomButton.js +1 -1
  247. package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
  248. package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
  249. package/lib/module/components/MessageList/utils/getReadStates.js.map +1 -1
  250. package/lib/module/components/MessageMenu/MessageUserReactions.js +1 -1
  251. package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
  252. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +4 -2
  253. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
  254. package/lib/module/components/MessageMenu/hooks/useFetchReactions.js +3 -2
  255. package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
  256. package/lib/module/components/Poll/CreatePollContent.js +14 -9
  257. package/lib/module/components/Poll/CreatePollContent.js.map +1 -1
  258. package/lib/module/components/Poll/Poll.js +2 -8
  259. package/lib/module/components/Poll/Poll.js.map +1 -1
  260. package/lib/module/components/Poll/components/Button.js +9 -474
  261. package/lib/module/components/Poll/components/Button.js.map +1 -1
  262. package/lib/module/components/Poll/components/CreatePollIcon.js +2 -2
  263. package/lib/module/components/Poll/components/CreatePollIcon.js.map +1 -1
  264. package/lib/module/components/Poll/components/CreatePollOptions.js +9 -4
  265. package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -1
  266. package/lib/module/components/Poll/components/PollAnswersList.js +99 -26
  267. package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -1
  268. package/lib/module/components/Poll/components/PollButtons.js +291 -0
  269. package/lib/module/components/Poll/components/PollButtons.js.map +1 -0
  270. package/lib/module/components/Poll/components/PollInputDialog.js +14 -4
  271. package/lib/module/components/Poll/components/PollInputDialog.js.map +1 -1
  272. package/lib/module/components/Poll/components/PollModalHeader.js +7 -1
  273. package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -1
  274. package/lib/module/components/Poll/components/PollOption.js +88 -6
  275. package/lib/module/components/Poll/components/PollOption.js.map +1 -1
  276. package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js +2 -2
  277. package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
  278. package/lib/module/components/Poll/components/PollResults/PollResultItem.js +62 -67
  279. package/lib/module/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
  280. package/lib/module/components/Poll/components/PollResults/PollVote.js +89 -0
  281. package/lib/module/components/Poll/components/PollResults/PollVote.js.map +1 -0
  282. package/lib/module/components/Poll/components/index.js +11 -0
  283. package/lib/module/components/Poll/components/index.js.map +1 -1
  284. package/lib/module/components/ThreadList/ThreadList.js +0 -3
  285. package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
  286. package/lib/module/components/UIComponents/BottomSheetModal.js +11 -5
  287. package/lib/module/components/UIComponents/BottomSheetModal.js.map +1 -1
  288. package/lib/module/components/index.js +66 -0
  289. package/lib/module/components/index.js.map +1 -1
  290. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  291. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +0 -35
  292. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  293. package/lib/module/contexts/channelsStateContext/useChannelState.js +7 -84
  294. package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
  295. package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
  296. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  297. package/lib/module/contexts/messageInputContext/MessageInputContext.js +4 -2
  298. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  299. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -0
  300. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  301. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  302. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  303. package/lib/module/contexts/themeContext/utils/theme.js +15 -0
  304. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  305. package/lib/module/i18n/en.json +2 -0
  306. package/lib/module/i18n/es.json +2 -0
  307. package/lib/module/i18n/fr.json +2 -0
  308. package/lib/module/i18n/he.json +2 -0
  309. package/lib/module/i18n/hi.json +2 -0
  310. package/lib/module/i18n/it.json +2 -0
  311. package/lib/module/i18n/ja.json +2 -0
  312. package/lib/module/i18n/ko.json +2 -0
  313. package/lib/module/i18n/nl.json +2 -0
  314. package/lib/module/i18n/pt-br.json +2 -0
  315. package/lib/module/i18n/ru.json +2 -0
  316. package/lib/module/i18n/tr.json +2 -0
  317. package/lib/module/mock-builders/event/notificationChannelMutesUpdated.js +14 -0
  318. package/lib/module/mock-builders/event/notificationChannelMutesUpdated.js.map +1 -0
  319. package/lib/module/mock-builders/event/notificationMarkRead.js +14 -0
  320. package/lib/module/mock-builders/event/notificationMarkRead.js.map +1 -0
  321. package/lib/module/mock-builders/event/notificationMarkUnread.js +17 -0
  322. package/lib/module/mock-builders/event/notificationMarkUnread.js.map +1 -0
  323. package/lib/module/mock-builders/generator/channel.js +1 -0
  324. package/lib/module/mock-builders/generator/channel.js.map +1 -1
  325. package/lib/module/store/SqliteClient.js +11 -2
  326. package/lib/module/store/SqliteClient.js.map +1 -1
  327. package/lib/module/utils/getTrimmedAttachmentTitle.js +8 -2
  328. package/lib/module/utils/getTrimmedAttachmentTitle.js.map +1 -1
  329. package/lib/module/utils/utils.js +3 -2
  330. package/lib/module/utils/utils.js.map +1 -1
  331. package/lib/module/version.json +1 -1
  332. package/lib/typescript/components/AITypingIndicatorView/AITypingIndicatorView.d.ts +11 -0
  333. package/lib/typescript/components/AITypingIndicatorView/AITypingIndicatorView.d.ts.map +1 -0
  334. package/lib/typescript/components/AITypingIndicatorView/hooks/useAIState.d.ts +18 -0
  335. package/lib/typescript/components/AITypingIndicatorView/hooks/useAIState.d.ts.map +1 -0
  336. package/lib/typescript/components/AITypingIndicatorView/index.d.ts +3 -0
  337. package/lib/typescript/components/AITypingIndicatorView/index.d.ts.map +1 -0
  338. package/lib/typescript/components/Attachment/AudioAttachment.d.ts.map +1 -1
  339. package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -1
  340. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts.map +1 -1
  341. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerSelectionBar.d.ts.map +1 -1
  342. package/lib/typescript/components/Channel/Channel.d.ts +7 -6
  343. package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
  344. package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts +75 -0
  345. package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts.map +1 -0
  346. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
  347. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
  348. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +128 -1
  349. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
  350. package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts +1 -1
  351. package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts.map +1 -1
  352. package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts +28 -0
  353. package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts.map +1 -0
  354. package/lib/typescript/components/ChannelList/Skeleton.d.ts.map +1 -1
  355. package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
  356. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +1 -2
  357. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
  358. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +2 -0
  359. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -1
  360. package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts.map +1 -1
  361. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewData.d.ts +8 -0
  362. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewData.d.ts.map +1 -0
  363. package/lib/typescript/components/ChannelPreview/hooks/useIsChannelMuted.d.ts +8 -0
  364. package/lib/typescript/components/ChannelPreview/hooks/useIsChannelMuted.d.ts.map +1 -0
  365. package/lib/typescript/components/Chat/Chat.d.ts +7 -1
  366. package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
  367. package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts.map +1 -1
  368. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -1
  369. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
  370. package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts.map +1 -1
  371. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
  372. package/lib/typescript/components/Message/Message.d.ts +1 -1
  373. package/lib/typescript/components/Message/Message.d.ts.map +1 -1
  374. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +1 -1
  375. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
  376. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts.map +1 -1
  377. package/lib/typescript/components/Message/MessageSimple/StreamingMessageView.d.ts +12 -0
  378. package/lib/typescript/components/Message/MessageSimple/StreamingMessageView.d.ts.map +1 -0
  379. package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.d.ts.map +1 -1
  380. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +16 -1
  381. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts.map +1 -1
  382. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
  383. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
  384. package/lib/typescript/components/Message/hooks/useStreamingMessage.d.ts +17 -0
  385. package/lib/typescript/components/Message/hooks/useStreamingMessage.d.ts.map +1 -0
  386. package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -1
  387. package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
  388. package/lib/typescript/components/MessageInput/StopMessageStreamingButton.d.ts +10 -0
  389. package/lib/typescript/components/MessageInput/StopMessageStreamingButton.d.ts.map +1 -0
  390. package/lib/typescript/components/MessageList/MessageList.d.ts +1 -1
  391. package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
  392. package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts.map +1 -1
  393. package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +1 -1
  394. package/lib/typescript/components/MessageList/utils/getReadStates.d.ts.map +1 -1
  395. package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +1 -1
  396. package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts +3 -2
  397. package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts.map +1 -1
  398. package/lib/typescript/components/Poll/Poll.d.ts +0 -1
  399. package/lib/typescript/components/Poll/Poll.d.ts.map +1 -1
  400. package/lib/typescript/components/Poll/components/Button.d.ts +0 -17
  401. package/lib/typescript/components/Poll/components/Button.d.ts.map +1 -1
  402. package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -1
  403. package/lib/typescript/components/Poll/components/PollAnswersList.d.ts +2 -0
  404. package/lib/typescript/components/Poll/components/PollAnswersList.d.ts.map +1 -1
  405. package/lib/typescript/components/Poll/components/PollButtons.d.ts +10 -0
  406. package/lib/typescript/components/Poll/components/PollButtons.d.ts.map +1 -0
  407. package/lib/typescript/components/Poll/components/PollInputDialog.d.ts.map +1 -1
  408. package/lib/typescript/components/Poll/components/PollOption.d.ts +2 -0
  409. package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
  410. package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts +11 -4
  411. package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts.map +1 -1
  412. package/lib/typescript/components/Poll/components/PollResults/PollVote.d.ts +6 -0
  413. package/lib/typescript/components/Poll/components/PollResults/PollVote.d.ts.map +1 -0
  414. package/lib/typescript/components/Poll/components/index.d.ts +1 -0
  415. package/lib/typescript/components/Poll/components/index.d.ts.map +1 -1
  416. package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
  417. package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +1 -1
  418. package/lib/typescript/components/index.d.ts +6 -0
  419. package/lib/typescript/components/index.d.ts.map +1 -1
  420. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +27 -25
  421. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
  422. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +0 -16
  423. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +1 -1
  424. package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +7 -13
  425. package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts.map +1 -1
  426. package/lib/typescript/contexts/chatContext/ChatContext.d.ts +2 -1
  427. package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -1
  428. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +4 -0
  429. package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
  430. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +2 -1
  431. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
  432. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
  433. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
  434. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +8 -4
  435. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
  436. package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +17 -16
  437. package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts.map +1 -1
  438. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +16 -1
  439. package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
  440. package/lib/typescript/i18n/en.json +2 -0
  441. package/lib/typescript/i18n/es.json +2 -0
  442. package/lib/typescript/i18n/fr.json +2 -0
  443. package/lib/typescript/i18n/he.json +2 -0
  444. package/lib/typescript/i18n/hi.json +2 -0
  445. package/lib/typescript/i18n/it.json +2 -0
  446. package/lib/typescript/i18n/ja.json +2 -0
  447. package/lib/typescript/i18n/ko.json +2 -0
  448. package/lib/typescript/i18n/nl.json +2 -0
  449. package/lib/typescript/i18n/pt-br.json +2 -0
  450. package/lib/typescript/i18n/ru.json +2 -0
  451. package/lib/typescript/i18n/tr.json +2 -0
  452. package/lib/typescript/store/SqliteClient.d.ts.map +1 -1
  453. package/lib/typescript/types/types.d.ts +3 -0
  454. package/lib/typescript/types/types.d.ts.map +1 -1
  455. package/lib/typescript/utils/getTrimmedAttachmentTitle.d.ts.map +1 -1
  456. package/lib/typescript/utils/i18n/Streami18n.d.ts +2 -0
  457. package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
  458. package/lib/typescript/utils/utils.d.ts.map +1 -1
  459. package/package.json +5 -5
  460. package/src/components/AITypingIndicatorView/AITypingIndicatorView.tsx +50 -0
  461. package/src/components/AITypingIndicatorView/hooks/useAIState.ts +68 -0
  462. package/src/components/AITypingIndicatorView/index.ts +2 -0
  463. package/src/components/Attachment/AudioAttachment.tsx +20 -19
  464. package/src/components/Attachment/Gallery.tsx +1 -1
  465. package/src/components/AttachmentPicker/AttachmentPicker.tsx +7 -2
  466. package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +16 -32
  467. package/src/components/AttachmentPicker/components/AttachmentPickerSelectionBar.tsx +3 -5
  468. package/src/components/Channel/Channel.tsx +262 -821
  469. package/src/components/Channel/__tests__/Channel.test.js +244 -13
  470. package/src/components/Channel/__tests__/useMessageListPagination.test.js +419 -0
  471. package/src/components/Channel/hooks/useChannelDataState.ts +235 -0
  472. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +2 -0
  473. package/src/components/Channel/hooks/useCreateMessagesContext.ts +4 -0
  474. package/src/components/Channel/hooks/useCreatePaginatedMessageListContext.ts +3 -10
  475. package/src/components/Channel/hooks/useMessageListPagination.tsx +246 -0
  476. package/src/components/ChannelList/Skeleton.tsx +9 -1
  477. package/src/components/ChannelList/hooks/usePaginatedChannels.ts +37 -30
  478. package/src/components/ChannelPreview/ChannelPreview.tsx +28 -107
  479. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +5 -15
  480. package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +2 -7
  481. package/src/components/ChannelPreview/__tests__/ChannelPreview.test.tsx +226 -10
  482. package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewDisplayName.test.tsx +1 -1
  483. package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewMuted.test.tsx +62 -0
  484. package/src/components/ChannelPreview/hooks/useChannelPreviewData.ts +138 -0
  485. package/src/components/ChannelPreview/hooks/useIsChannelMuted.ts +29 -0
  486. package/src/components/Chat/Chat.tsx +11 -2
  487. package/src/components/Chat/hooks/__tests__/useAppSettings.test.tsx +1 -0
  488. package/src/components/Chat/hooks/useAppSettings.ts +2 -0
  489. package/src/components/Chat/hooks/useCreateChatContext.ts +2 -0
  490. package/src/components/Chat/hooks/useIsOnline.ts +0 -5
  491. package/src/components/ImageGallery/ImageGallery.tsx +1 -0
  492. package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +32 -32
  493. package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +5 -6
  494. package/src/components/ImageGallery/hooks/useAnimatedGalleryStyle.tsx +2 -2
  495. package/src/components/Message/Message.tsx +16 -2
  496. package/src/components/Message/MessageSimple/MessageContent.tsx +22 -2
  497. package/src/components/Message/MessageSimple/MessageFooter.tsx +16 -5
  498. package/src/components/Message/MessageSimple/StreamingMessageView.tsx +34 -0
  499. package/src/components/Message/MessageSimple/utils/generateMarkdownText.ts +15 -1
  500. package/src/components/Message/MessageSimple/utils/renderText.tsx +207 -3
  501. package/src/components/Message/hooks/useCreateMessageContext.ts +2 -0
  502. package/src/components/Message/hooks/useStreamingMessage.ts +54 -0
  503. package/src/components/MessageInput/MessageInput.tsx +38 -20
  504. package/src/components/MessageInput/StopMessageStreamingButton.tsx +34 -0
  505. package/src/components/MessageInput/__tests__/MessageInput.test.js +116 -2
  506. package/src/components/MessageList/MessageList.tsx +53 -85
  507. package/src/components/MessageList/ScrollToBottomButton.tsx +1 -1
  508. package/src/components/MessageList/__tests__/MessageList.test.js +174 -2
  509. package/src/components/MessageList/__tests__/ScrollToBottomButton.test.js +3 -3
  510. package/src/components/MessageList/__tests__/__snapshots__/ScrollToBottomButton.test.js.snap +1 -1
  511. package/src/components/MessageList/hooks/useMessageList.ts +2 -5
  512. package/src/components/MessageList/utils/getReadStates.ts +3 -2
  513. package/src/components/MessageMenu/MessageUserReactions.tsx +1 -1
  514. package/src/components/MessageMenu/MessageUserReactionsItem.tsx +4 -2
  515. package/src/components/MessageMenu/hooks/useFetchReactions.ts +6 -3
  516. package/src/components/Poll/CreatePollContent.tsx +4 -4
  517. package/src/components/Poll/Poll.tsx +1 -20
  518. package/src/components/Poll/components/Button.tsx +8 -420
  519. package/src/components/Poll/components/CreatePollIcon.tsx +1 -1
  520. package/src/components/Poll/components/CreatePollOptions.tsx +9 -4
  521. package/src/components/Poll/components/PollAnswersList.tsx +66 -3
  522. package/src/components/Poll/components/PollButtons.tsx +241 -0
  523. package/src/components/Poll/components/PollInputDialog.tsx +9 -6
  524. package/src/components/Poll/components/PollModalHeader.tsx +3 -3
  525. package/src/components/Poll/components/PollOption.tsx +74 -4
  526. package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +1 -1
  527. package/src/components/Poll/components/PollResults/PollResultItem.tsx +68 -52
  528. package/src/components/Poll/components/PollResults/PollVote.tsx +68 -0
  529. package/src/components/Poll/components/index.ts +1 -0
  530. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +37 -4
  531. package/src/components/ThreadList/ThreadList.tsx +0 -2
  532. package/src/components/UIComponents/BottomSheetModal.tsx +7 -3
  533. package/src/components/index.ts +7 -0
  534. package/src/contexts/channelContext/ChannelContext.tsx +35 -25
  535. package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +1 -67
  536. package/src/contexts/channelsStateContext/useChannelState.ts +6 -108
  537. package/src/contexts/chatContext/ChatContext.tsx +2 -1
  538. package/src/contexts/messageContext/MessageContext.tsx +4 -0
  539. package/src/contexts/messageInputContext/MessageInputContext.tsx +5 -1
  540. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +2 -0
  541. package/src/contexts/messagesContext/MessagesContext.tsx +8 -3
  542. package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +17 -16
  543. package/src/contexts/themeContext/utils/theme.ts +30 -1
  544. package/src/i18n/en.json +2 -0
  545. package/src/i18n/es.json +2 -0
  546. package/src/i18n/fr.json +2 -0
  547. package/src/i18n/he.json +2 -0
  548. package/src/i18n/hi.json +2 -0
  549. package/src/i18n/it.json +2 -0
  550. package/src/i18n/ja.json +2 -0
  551. package/src/i18n/ko.json +2 -0
  552. package/src/i18n/nl.json +2 -0
  553. package/src/i18n/pt-br.json +2 -0
  554. package/src/i18n/ru.json +2 -0
  555. package/src/i18n/tr.json +2 -0
  556. package/src/mock-builders/event/notificationChannelMutesUpdated.js +7 -0
  557. package/src/mock-builders/event/notificationMarkRead.js +7 -0
  558. package/src/mock-builders/event/notificationMarkUnread.js +9 -0
  559. package/src/mock-builders/generator/channel.ts +1 -0
  560. package/src/store/SqliteClient.ts +5 -1
  561. package/src/types/types.ts +3 -0
  562. package/src/utils/getTrimmedAttachmentTitle.ts +10 -2
  563. package/src/utils/utils.ts +5 -2
  564. package/src/version.json +1 -1
@@ -38,6 +38,7 @@
38
38
  "Flag": "झंडा",
39
39
  "Flag Message": "झंडा संदेश",
40
40
  "Flag action failed either due to a network issue or the message is already flagged": "फ़्लैग कार्रवाई या तो नेटवर्क समस्या के कारण विफल हो गई या संदेश पहले से फ़्लैग किया गया है।",
41
+ "Generating...": "जनरेट कर रहा है...",
41
42
  "Hold to start recording.": "रिकॉर्डिंग शुरू करने के लिए दबाएं।",
42
43
  "How about sending your first message to a friend?": "किसी मित्र को अपना पहला संदेश भेजने के बारे में क्या ख़याल है?",
43
44
  "Instant Commands": "त्वरित कमांड",
@@ -95,6 +96,7 @@
95
96
  "Suggest an option": "एक विकल्प सुझाएं",
96
97
  "The message has been reported to a moderator.": "संदेश एक मॉडरेटर को सूचित किया गया है।",
97
98
  "The source message was deleted": "स्रोत संदेश हटा दिया गया है",
99
+ "Thinking...": "सोच रहा है...",
98
100
  "This is already an option": "यह पहले से एक विकल्प है",
99
101
  "This reply was deleted": "यह उत्तर हटा दिया गया है",
100
102
  "Thread Reply": "धागा जवाब",
@@ -38,6 +38,7 @@
38
38
  "Flag": "Contrassegna",
39
39
  "Flag Message": "Contrassegna Messaggio",
40
40
  "Flag action failed either due to a network issue or the message is already flagged": "L'azione di segnalazione non è riuscita a causa di un problema di rete o il messaggio è già segnalato.",
41
+ "Generating...": "Generando...",
41
42
  "Hold to start recording.": "Tieni premuto per avviare la registrazione.",
42
43
  "How about sending your first message to a friend?": "Che ne dici di inviare il tuo primo messaggio ad un amico?",
43
44
  "Instant Commands": "Comandi Istantanei",
@@ -97,6 +98,7 @@
97
98
  "Suggest an option": "Suggerisci un'opzione",
98
99
  "The message has been reported to a moderator.": "Il messaggio è stato segnalato a un moderatore.",
99
100
  "The source message was deleted": "Il messaggio originale è stato eliminato",
101
+ "Thinking...": "Pensando...",
100
102
  "This is already an option": "Questa è già un'opzione",
101
103
  "This reply was deleted": "Questa risposta è stata eliminata",
102
104
  "Thread Reply": "Rispondi alla Discussione",
@@ -38,6 +38,7 @@
38
38
  "Flag": "フラグ",
39
39
  "Flag Message": "メッセージをフラグする",
40
40
  "Flag action failed either due to a network issue or the message is already flagged": "ネットワーク接続に問題があるか、すでにフラグが設定されているため、フラグが失敗しました。",
41
+ "Generating...": "生成中...",
41
42
  "Hold to start recording.": "録音を開始するには押し続けてください。",
42
43
  "How about sending your first message to a friend?": "初めてのメッセージを友達に送ってみてはいかがでしょうか?",
43
44
  "Instant Commands": "インスタントコマンド",
@@ -95,6 +96,7 @@
95
96
  "Suggest an option": "オプションを提案",
96
97
  "The message has been reported to a moderator.": "メッセージはモデレーターに報告されました。",
97
98
  "The source message was deleted": "元のメッセージが削除されました",
99
+ "Thinking...": "考え中...",
98
100
  "This is already an option": "これはすでにオプションです",
99
101
  "This reply was deleted": "この返信は削除されました",
100
102
  "Thread Reply": "スレッドの返信",
@@ -38,6 +38,7 @@
38
38
  "Flag": "플래그",
39
39
  "Flag Message": "메시지를 플래그하기",
40
40
  "Flag action failed either due to a network issue or the message is already flagged": "네트워크 연결에 문제가 있거나 이미 플래그 되어서 플래그에 실패했습니다.",
41
+ "Generating...": "생성 중...",
41
42
  "Hold to start recording.": "녹음을 시작하려면 눌러주세요.",
42
43
  "How about sending your first message to a friend?": "친구에게 첫 번째 메시지를 보내는 것은 어떻습니까?",
43
44
  "Instant Commands": "인스턴트 명령",
@@ -95,6 +96,7 @@
95
96
  "Suggest an option": "옵션 제안",
96
97
  "The message has been reported to a moderator.": "메시지는 운영자에보고되었습니다.",
97
98
  "The source message was deleted": "원본 메시지가 삭제되었습니다",
99
+ "Thinking...": "생각 중...",
98
100
  "This is already an option": "이미 존재하는 옵션입니다",
99
101
  "This reply was deleted": "이 답글은 삭제되었습니다",
100
102
  "Thread Reply": "스레드\u3000답장",
@@ -38,6 +38,7 @@
38
38
  "Flag": "Markeer",
39
39
  "Flag Message": "Markeer bericht",
40
40
  "Flag action failed either due to a network issue or the message is already flagged": "Rapporteren mislukt door een netwerk fout of het berich is al gerapporteerd",
41
+ "Generating...": "Aan het genereren...",
41
42
  "Hold to start recording.": "Houd vast om opname te starten.",
42
43
  "How about sending your first message to a friend?": "Wat dacht je ervan om je eerste bericht naar een vriend te sturen?",
43
44
  "Instant Commands": "Directe Opdrachten",
@@ -95,6 +96,7 @@
95
96
  "Suggest an option": "Stel een optie voor",
96
97
  "The message has been reported to a moderator.": "Het bericht is gerapporteerd aan een moderator.",
97
98
  "The source message was deleted": "Het oorspronkelijke bericht is verwijderd",
99
+ "Thinking...": "Aan het denken...",
98
100
  "This is already an option": "Dit is al een optie",
99
101
  "This reply was deleted": "Deze reactie is verwijderd",
100
102
  "Thread Reply": "Discussie beantwoorden",
@@ -38,6 +38,7 @@
38
38
  "Flag": "Reportar",
39
39
  "Flag Message": "Reportar Mensagem",
40
40
  "Flag action failed either due to a network issue or the message is already flagged": "A ação para reportar a mensagem falhou devido a um problema de rede ou a mensagem já foi reportada.",
41
+ "Generating...": "Gerando...",
41
42
  "Hold to start recording.": "Mantenha pressionado para começar a gravar.",
42
43
  "How about sending your first message to a friend?": "Que tal enviar sua primeira mensagem para um amigo?",
43
44
  "Instant Commands": "Comandos Instantâneos",
@@ -97,6 +98,7 @@
97
98
  "Suggest an option": "Sugerir uma opção",
98
99
  "The message has been reported to a moderator.": "A mensagem foi relatada a um moderador.",
99
100
  "The source message was deleted": "A mensagem original foi excluída",
101
+ "Thinking...": "Pensando...",
100
102
  "This is already an option": "Isso já é uma opção",
101
103
  "This reply was deleted": "Esta resposta foi excluída",
102
104
  "Thread Reply": "Respostas de Tópico",
@@ -38,6 +38,7 @@
38
38
  "Flag": "Пометить",
39
39
  "Flag Message": "Пометить сообщение",
40
40
  "Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
41
+ "Generating...": "Генерирую...",
41
42
  "Hold to start recording.": "Удерживайте, чтобы начать запись.",
42
43
  "How about sending your first message to a friend?": "Как насчет отправки первого сообщения другу?",
43
44
  "Instant Commands": "Мгновенные Команды",
@@ -99,6 +100,7 @@
99
100
  "Suggest an option": "Предложить вариант",
100
101
  "The message has been reported to a moderator.": "Сообщение отправлено модератору.",
101
102
  "The source message was deleted": "Исходное сообщение было удалено",
103
+ "Thinking...": "Думаю...",
102
104
  "This is already an option": "Это уже вариант",
103
105
  "This reply was deleted": "Этот ответ был удалён",
104
106
  "Thread Reply": "Тема Ответить",
@@ -38,6 +38,7 @@
38
38
  "Flag": "Raporla",
39
39
  "Flag Message": "Mesajı Raporla",
40
40
  "Flag action failed either due to a network issue or the message is already flagged": "Mesajın daha önce raporlanmış olması veya bir ağ bağlantısı sorunu nedeniyle raporlama işlemi başarısız oldu.",
41
+ "Generating...": "Oluşturuluyor...",
41
42
  "Hold to start recording.": "Kayıt yapmak için basılı tutun.",
42
43
  "How about sending your first message to a friend?": "İlk mesajınızı bir arkadaşınıza göndermeye ne dersiniz?",
43
44
  "Instant Commands": "Anlık Komutlar",
@@ -95,6 +96,7 @@
95
96
  "Suggest an option": "Bir seçenek öner",
96
97
  "The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
97
98
  "The source message was deleted": "Kaynak mesaj silindi",
99
+ "Thinking...": "Düşünüyor...",
98
100
  "This is already an option": "Bu zaten bir seçenek",
99
101
  "This reply was deleted": "Bu yanıt silindi",
100
102
  "Thread Reply": "Konu Yanıtı",
@@ -1 +1 @@
1
- {"version":3,"file":"SqliteClient.d.ts","sourceRoot":"","sources":["../../../src/store/SqliteClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAY,MAAM,2BAA2B,CAAC;AAkB9D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAKrC,OAAO,KAAK,EAAE,eAAe,EAAS,MAAM,SAAS,CAAC;AAEtD;;;GAGG;AACH,qBAAa,YAAY;IACvB,MAAM,CAAC,SAAS,SAAK;IAErB,MAAM,CAAC,MAAM,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aAaZ;IAEF,MAAM,CAAC,eAAe,YAAmB,eAAe,EAAE,mBAexD;IAEF,MAAM,CAAC,UAAU,UAAiB,MAAM,WAAW,MAAM,EAAE,oBAezD;IAEF,MAAM,CAAC,UAAU,sBASf;IAEF,MAAM,CAAC,cAAc,gBAoBnB;IAEF,MAAM,CAAC,kBAAkB,sBA8BvB;IAEF,MAAM,CAAC,uBAAuB,YAAmB,MAAM,mBAMrD;IAEF,MAAM,CAAC,oBAAoB,wBAezB;IAEF,MAAM,CAAC,OAAO,sBAOZ;CACH"}
@@ -18,6 +18,7 @@ export type Asset = {
18
18
  uri: string;
19
19
  width: number;
20
20
  id?: string;
21
+ originalUri?: string;
21
22
  size?: number;
22
23
  };
23
24
  export type File = {
@@ -25,6 +26,7 @@ export type File = {
25
26
  duration?: number;
26
27
  id?: string;
27
28
  mimeType?: string;
29
+ originalUri?: string;
28
30
  size?: number;
29
31
  type?: FileTypes;
30
32
  uri?: string;
@@ -76,6 +78,7 @@ export interface DefaultStreamChatGenerics extends ExtendableGenerics {
76
78
  channelType: DefaultChannelType;
77
79
  commandType: LiteralStringForUnion;
78
80
  eventType: UnknownType;
81
+ memberType: UnknownType;
79
82
  messageType: UnknownType;
80
83
  reactionType: UnknownType;
81
84
  userType: DefaultUserType;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,cAAc,mBAAmB;CAClC;AAED,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAA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AAE,WAAW,CAAC;IACzB,YAAY,EAAE,WAAW,CAAC;IAC1B,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAElD,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getTrimmedAttachmentTitle.d.ts","sourceRoot":"","sources":["../../../src/utils/getTrimmedAttachmentTitle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,WAAY,MAAM,WAIvD,CAAC"}
1
+ {"version":3,"file":"getTrimmedAttachmentTitle.d.ts","sourceRoot":"","sources":["../../../src/utils/getTrimmedAttachmentTitle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,WAAY,MAAM,WAUvD,CAAC"}
@@ -163,6 +163,7 @@ export declare class Streami18n {
163
163
  Flag: string;
164
164
  "Flag Message": string;
165
165
  "Flag action failed either due to a network issue or the message is already flagged": string;
166
+ "Generating...": string;
166
167
  "Hold to start recording.": string;
167
168
  "How about sending your first message to a friend?": string;
168
169
  "Instant Commands": string;
@@ -220,6 +221,7 @@ export declare class Streami18n {
220
221
  "Suggest an option": string;
221
222
  "The message has been reported to a moderator.": string;
222
223
  "The source message was deleted": string;
224
+ "Thinking...": string;
223
225
  "This is already an option": string;
224
226
  "This reply was deleted": string;
225
227
  "Thread Reply": string;
@@ -1 +1 @@
1
- {"version":3,"file":"Streami18n.d.ts","sourceRoot":"","sources":["../../../../src/utils/i18n/Streami18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEvD,OAAO,KAAK,cAAc,MAAM,iBAAiB,CAAC;AAGlD,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EAErB,MAAM,wBAAwB,CAAC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C5B,QAAQ,GAAG,IAeb,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,2LAQ5B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,yIAOa,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,eAAe,yIAImC,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,gBAmCrC,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAS,MAAM,WACO,CAAC;AAE1D,eAAO,MAAM,mBAAmB,SAAU,MAAM,uBAO/C,CAAC;AAEF,eAAO,MAAM,UAAU,QAAS,MAAM,YAA8B,CAAC;AAErE,eAAO,MAAM,gBAAgB,kBAAa,MAIqC,CAAC;AAKhF,eAAO,MAAM,aAAa,SAAU,MAAM,YAazC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,8QAgBS,MAY6D,CAAC;AAEpG;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,+IAIhC,MAA+C,CAAC;AAEnD;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,SAAU,MAAM,WAI/C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,aAAc,MAAM,WAY5D,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,UAExC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-chat-react-native-core",
3
3
  "description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
4
- "version": "6.0.0-rc.9",
4
+ "version": "6.0.0",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -66,7 +66,7 @@
66
66
  ]
67
67
  },
68
68
  "dependencies": {
69
- "@gorhom/bottom-sheet": "^4.6.4",
69
+ "@gorhom/bottom-sheet": "^5.0.6",
70
70
  "dayjs": "1.10.5",
71
71
  "emoji-regex": "^10.3.0",
72
72
  "i18next": "^21.6.14",
@@ -77,14 +77,14 @@
77
77
  "path": "0.12.7",
78
78
  "react-native-markdown-package": "1.8.2",
79
79
  "react-native-url-polyfill": "^1.3.0",
80
- "stream-chat": "8.42.0"
80
+ "stream-chat": "8.46.0"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "@op-engineering/op-sqlite": ">=9.3.0",
84
84
  "@react-native-community/netinfo": ">=11.3.1",
85
85
  "react-native": ">=0.67.0",
86
- "react-native-gesture-handler": ">=2.14.0",
87
- "react-native-reanimated": ">=3.8.0",
86
+ "react-native-gesture-handler": ">=2.16.1",
87
+ "react-native-reanimated": ">=3.16.0",
88
88
  "react-native-svg": ">=12.3.0"
89
89
  },
90
90
  "peerDependenciesMeta": {
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+
3
+ import { StyleSheet, Text, View } from 'react-native';
4
+
5
+ import { Channel } from 'stream-chat';
6
+
7
+ import { AIStates, useAIState } from './hooks/useAIState';
8
+
9
+ import { useChannelContext, useTheme, useTranslationContext } from '../../contexts';
10
+ import type { DefaultStreamChatGenerics } from '../../types/types';
11
+
12
+ export type AITypingIndicatorViewProps<
13
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
14
+ > = {
15
+ channel?: Channel<StreamChatGenerics>;
16
+ };
17
+
18
+ export const AITypingIndicatorView = <
19
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
20
+ >({
21
+ channel: channelFromProps,
22
+ }: AITypingIndicatorViewProps<StreamChatGenerics>) => {
23
+ const { t } = useTranslationContext();
24
+ const { channel: channelFromContext } = useChannelContext<StreamChatGenerics>();
25
+ const channel = channelFromProps || channelFromContext;
26
+ const { aiState } = useAIState(channel);
27
+ const allowedStates = {
28
+ [AIStates.Thinking]: t('Thinking...'),
29
+ [AIStates.Generating]: t('Generating...'),
30
+ };
31
+
32
+ const {
33
+ theme: {
34
+ aiTypingIndicatorView: { container, text },
35
+ colors: { black, grey_gainsboro },
36
+ },
37
+ } = useTheme();
38
+
39
+ return aiState in allowedStates ? (
40
+ <View style={[styles.container, { backgroundColor: grey_gainsboro }, container]}>
41
+ <Text style={[{ color: black }, text]}>{allowedStates[aiState]}</Text>
42
+ </View>
43
+ ) : null;
44
+ };
45
+
46
+ AITypingIndicatorView.displayName = 'AITypingIndicatorView{messageSimple{content}}';
47
+
48
+ const styles = StyleSheet.create({
49
+ container: { paddingHorizontal: 16, paddingVertical: 18 },
50
+ });
@@ -0,0 +1,68 @@
1
+ import { useEffect, useState } from 'react';
2
+
3
+ import { AIState, Channel, Event } from 'stream-chat';
4
+
5
+ import { useChatContext } from '../../../contexts';
6
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
7
+ import { useIsOnline } from '../../Chat/hooks/useIsOnline';
8
+
9
+ export const AIStates = {
10
+ Error: 'AI_STATE_ERROR',
11
+ ExternalSources: 'AI_STATE_EXTERNAL_SOURCES',
12
+ Generating: 'AI_STATE_GENERATING',
13
+ Idle: 'AI_STATE_IDLE',
14
+ Thinking: 'AI_STATE_THINKING',
15
+ };
16
+
17
+ /**
18
+ * A hook that returns the current state of the AI.
19
+ * @param {Channel} channel - The channel for which we want to know the AI state.
20
+ * @returns {{ aiState: AIState }} The current AI state for the given channel.
21
+ */
22
+ export const useAIState = <
23
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
24
+ >(
25
+ channel?: Channel<StreamChatGenerics>,
26
+ ): { aiState: AIState } => {
27
+ const { client } = useChatContext<StreamChatGenerics>();
28
+ const { isOnline } = useIsOnline<StreamChatGenerics>(client);
29
+
30
+ const [aiState, setAiState] = useState<AIState>(AIStates.Idle);
31
+
32
+ useEffect(() => {
33
+ if (!isOnline) {
34
+ setAiState(AIStates.Idle);
35
+ }
36
+ }, [isOnline]);
37
+
38
+ useEffect(() => {
39
+ if (!channel) {
40
+ return;
41
+ }
42
+
43
+ const indicatorChangedListener = channel.on(
44
+ 'ai_indicator.update',
45
+ (event: Event<StreamChatGenerics>) => {
46
+ const { cid } = event;
47
+ const state = event.ai_state as AIState;
48
+ if (channel.cid === cid) {
49
+ setAiState(state);
50
+ }
51
+ },
52
+ );
53
+
54
+ const indicatorClearedListener = channel.on('ai_indicator.clear', (event) => {
55
+ const { cid } = event;
56
+ if (channel.cid === cid) {
57
+ setAiState(AIStates.Idle);
58
+ }
59
+ });
60
+
61
+ return () => {
62
+ indicatorChangedListener.unsubscribe();
63
+ indicatorClearedListener.unsubscribe();
64
+ };
65
+ }, [channel]);
66
+
67
+ return { aiState };
68
+ };
@@ -0,0 +1,2 @@
1
+ export * from './AITypingIndicatorView';
2
+ export * from './hooks/useAIState';
@@ -36,6 +36,7 @@ export type AudioAttachmentProps = {
36
36
  */
37
37
  export const AudioAttachment = (props: AudioAttachmentProps) => {
38
38
  const [width, setWidth] = useState(0);
39
+ const [progressControlTextWidth, setProgressControlTextWidth] = useState(0);
39
40
  const [currentSpeed, setCurrentSpeed] = useState<number>(1.0);
40
41
  const soundRef = React.useRef<SoundReturnType | null>(null);
41
42
  const {
@@ -228,9 +229,6 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
228
229
  return (
229
230
  <View
230
231
  accessibilityLabel='audio-attachment-preview'
231
- onLayout={({ nativeEvent }) => {
232
- setWidth(nativeEvent.layout.width);
233
- }}
234
232
  style={[
235
233
  styles.container,
236
234
  {
@@ -256,7 +254,12 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
256
254
  <Pause fill={static_black} height={32} width={32} />
257
255
  )}
258
256
  </Pressable>
259
- <View style={[styles.leftContainer, leftContainer]}>
257
+ <View
258
+ onLayout={({ nativeEvent }) => {
259
+ setWidth(nativeEvent.layout.width);
260
+ }}
261
+ style={[styles.leftContainer, leftContainer]}
262
+ >
260
263
  <Text
261
264
  accessibilityLabel='File Name'
262
265
  numberOfLines={1}
@@ -264,11 +267,6 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
264
267
  styles.filenameText,
265
268
  {
266
269
  color: black,
267
- width:
268
- 16 - // 16 = horizontal padding
269
- 40 - // 40 = file icon size
270
- 24 - // 24 = close icon size
271
- 24, // 24 = internal padding
272
270
  },
273
271
  I18nManager.isRTL ? { writingDirection: 'rtl' } : { writingDirection: 'ltr' },
274
272
  filenameText,
@@ -290,7 +288,12 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
290
288
  uri={item.file.uri}
291
289
  />
292
290
  )}
293
- <Text style={[styles.progressDurationText, { color: grey_dark }, progressDurationText]}>
291
+ <Text
292
+ onLayout={({ nativeEvent }) => {
293
+ setProgressControlTextWidth(nativeEvent.layout.width);
294
+ }}
295
+ style={[styles.progressDurationText, { color: grey_dark }, progressDurationText]}
296
+ >
294
297
  {progressDuration}
295
298
  </Text>
296
299
  {!hideProgressBar && (
@@ -316,7 +319,7 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
316
319
  onProgressDrag={handleProgressDrag}
317
320
  progress={item.progress as number}
318
321
  testID='progress-control'
319
- width={width / 2}
322
+ width={width - progressControlTextWidth}
320
323
  />
321
324
  )}
322
325
  </View>
@@ -365,35 +368,33 @@ const styles = StyleSheet.create({
365
368
  fontSize: 14,
366
369
  fontWeight: 'bold',
367
370
  paddingBottom: 12,
368
- paddingLeft: 8,
369
371
  },
370
372
  leftContainer: {
371
373
  justifyContent: 'space-around',
374
+ marginHorizontal: 16,
375
+ width: '60%',
372
376
  },
373
377
  playPauseButton: {
374
378
  alignItems: 'center',
375
379
  alignSelf: 'center',
376
380
  borderRadius: 50,
377
- display: 'flex',
378
381
  elevation: 4,
379
382
  justifyContent: 'center',
380
- paddingVertical: 2,
383
+ padding: 2,
381
384
  shadowOffset: {
382
385
  height: 2,
383
386
  width: 0,
384
387
  },
385
388
  shadowOpacity: 0.23,
386
389
  shadowRadius: 2.62,
387
- width: 36,
388
390
  },
389
391
  progressControlContainer: {},
390
392
  progressDurationText: {
391
393
  fontSize: 12,
392
- paddingLeft: 10,
393
- paddingRight: 8,
394
+ marginRight: 4,
394
395
  },
395
396
  rightContainer: {
396
- marginLeft: 10,
397
+ marginLeft: 'auto',
397
398
  },
398
399
  speedChangeButton: {
399
400
  alignItems: 'center',
@@ -401,6 +402,7 @@ const styles = StyleSheet.create({
401
402
  borderRadius: 50,
402
403
  elevation: 4,
403
404
  justifyContent: 'center',
405
+ paddingHorizontal: 10,
404
406
  paddingVertical: 5,
405
407
  shadowOffset: {
406
408
  height: 2,
@@ -408,7 +410,6 @@ const styles = StyleSheet.create({
408
410
  },
409
411
  shadowOpacity: 0.23,
410
412
  shadowRadius: 2.62,
411
- width: 36,
412
413
  },
413
414
  speedChangeButtonText: {
414
415
  fontSize: 12,
@@ -458,7 +458,7 @@ const GalleryImageThumbnail = <
458
458
  setLoadingImage(false);
459
459
  setLoadingImageError(true);
460
460
  }}
461
- onLoadEnd={() => setLoadingImage(false)}
461
+ onLoadEnd={() => setTimeout(() => setLoadingImage(false), 0)}
462
462
  onLoadStart={() => setLoadingImage(true)}
463
463
  resizeMode={thumbnail.resizeMode}
464
464
  style={[
@@ -237,9 +237,13 @@ export const AttachmentPicker = React.forwardRef(
237
237
  // `id` is available for Expo MediaLibrary while Cameraroll doesn't share id therefore we use `uri`
238
238
  selected:
239
239
  selectedImages.some((image) =>
240
- image.id ? image.id === asset.id : image.uri === asset.uri,
240
+ image.id
241
+ ? image.id === asset.id
242
+ : image.uri === asset.uri || image.originalUri === asset.uri,
241
243
  ) ||
242
- selectedFiles.some((file) => (file.id ? file.id === asset.id : file.uri === asset.uri)),
244
+ selectedFiles.some((file) =>
245
+ file.id ? file.id === asset.id : file.uri === asset.uri || file.originalUri === asset.uri,
246
+ ),
243
247
  selectedFiles,
244
248
  selectedImages,
245
249
  setSelectedFiles,
@@ -269,6 +273,7 @@ export const AttachmentPicker = React.forwardRef(
269
273
  */
270
274
  photoError ? null : AttachmentPickerBottomSheetHandle
271
275
  }
276
+ // @ts-ignore
272
277
  handleHeight={handleHeight}
273
278
  index={-1}
274
279
  onChange={setCurrentIndex}