stream-chat-react-native-core 5.25.0-beta.6 → 5.25.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 (659) hide show
  1. package/lib/commonjs/components/Channel/Channel.js +22 -17
  2. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  3. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +3 -1
  4. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  5. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +22 -5
  6. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  7. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  8. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +2 -2
  9. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  10. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +1 -4
  11. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  12. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  13. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  14. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
  15. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  16. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  17. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  18. package/lib/commonjs/components/Message/Message.js +11 -8
  19. package/lib/commonjs/components/Message/Message.js.map +1 -1
  20. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +7 -3
  21. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  22. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +7 -1
  23. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  24. package/lib/commonjs/components/MessageInput/MessageInput.js +5 -5
  25. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  26. package/lib/commonjs/components/MessageInput/hooks/useCountdown.js.map +1 -1
  27. package/lib/commonjs/components/MessageList/MessageList.js +32 -30
  28. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  29. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +5 -5
  30. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  31. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  32. package/lib/commonjs/contexts/chatContext/ChatContext.js +2 -2
  33. package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
  34. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  35. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +3 -1
  36. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  37. package/lib/commonjs/contexts/themeContext/ThemeContext.js.map +1 -1
  38. package/lib/commonjs/i18n/en.json +1 -1
  39. package/lib/commonjs/i18n/es.json +56 -56
  40. package/lib/commonjs/i18n/fr.json +56 -56
  41. package/lib/commonjs/i18n/he.json +56 -56
  42. package/lib/commonjs/i18n/hi.json +56 -56
  43. package/lib/commonjs/i18n/it.json +56 -56
  44. package/lib/commonjs/i18n/ja.json +56 -56
  45. package/lib/commonjs/i18n/ko.json +56 -56
  46. package/lib/commonjs/i18n/nl.json +56 -56
  47. package/lib/commonjs/i18n/ru.json +56 -56
  48. package/lib/commonjs/i18n/tr.json +56 -56
  49. package/lib/commonjs/icons/ArrowRight.js.map +1 -1
  50. package/lib/commonjs/icons/AtMentions.js.map +1 -1
  51. package/lib/commonjs/icons/Attach.js.map +1 -1
  52. package/lib/commonjs/icons/Audio.js.map +1 -1
  53. package/lib/commonjs/icons/CSV.js.map +1 -1
  54. package/lib/commonjs/icons/Camera.js.map +1 -1
  55. package/lib/commonjs/icons/Check.js.map +1 -1
  56. package/lib/commonjs/icons/CheckAll.js.map +1 -1
  57. package/lib/commonjs/icons/CheckSend.js.map +1 -1
  58. package/lib/commonjs/icons/CircleClose.js.map +1 -1
  59. package/lib/commonjs/icons/CirclePlus.js.map +1 -1
  60. package/lib/commonjs/icons/CircleRight.js.map +1 -1
  61. package/lib/commonjs/icons/Close.js.map +1 -1
  62. package/lib/commonjs/icons/Copy.js.map +1 -1
  63. package/lib/commonjs/icons/CurveLineLeftUp.js.map +1 -1
  64. package/lib/commonjs/icons/DOC.js.map +1 -1
  65. package/lib/commonjs/icons/DOCX.js.map +1 -1
  66. package/lib/commonjs/icons/Delete.js.map +1 -1
  67. package/lib/commonjs/icons/Down.js.map +1 -1
  68. package/lib/commonjs/icons/DownloadArrow.js.map +1 -1
  69. package/lib/commonjs/icons/DownloadCloud.js.map +1 -1
  70. package/lib/commonjs/icons/Edit.js.map +1 -1
  71. package/lib/commonjs/icons/Error.js.map +1 -1
  72. package/lib/commonjs/icons/Eye.js.map +1 -1
  73. package/lib/commonjs/icons/Flag.js.map +1 -1
  74. package/lib/commonjs/icons/Folder.js.map +1 -1
  75. package/lib/commonjs/icons/GenericFile.js.map +1 -1
  76. package/lib/commonjs/icons/GiphyIcon.js.map +1 -1
  77. package/lib/commonjs/icons/Grid.js.map +1 -1
  78. package/lib/commonjs/icons/Group.js.map +1 -1
  79. package/lib/commonjs/icons/HTML.js.map +1 -1
  80. package/lib/commonjs/icons/Imgur.js.map +1 -1
  81. package/lib/commonjs/icons/LOLReaction.js.map +1 -1
  82. package/lib/commonjs/icons/Lightning.js.map +1 -1
  83. package/lib/commonjs/icons/Link.js.map +1 -1
  84. package/lib/commonjs/icons/Logo.js.map +1 -1
  85. package/lib/commonjs/icons/LoveReaction.js.map +1 -1
  86. package/lib/commonjs/icons/MD.js.map +1 -1
  87. package/lib/commonjs/icons/MailOpen.js.map +1 -1
  88. package/lib/commonjs/icons/MenuPointHorizontal.js.map +1 -1
  89. package/lib/commonjs/icons/MenuPointVertical.js.map +1 -1
  90. package/lib/commonjs/icons/MessageFlag.js.map +1 -1
  91. package/lib/commonjs/icons/MessageIcon.js.map +1 -1
  92. package/lib/commonjs/icons/Mute.js.map +1 -1
  93. package/lib/commonjs/icons/Notification.js.map +1 -1
  94. package/lib/commonjs/icons/ODT.js.map +1 -1
  95. package/lib/commonjs/icons/PDF.js.map +1 -1
  96. package/lib/commonjs/icons/PPT.js.map +1 -1
  97. package/lib/commonjs/icons/PPTX.js.map +1 -1
  98. package/lib/commonjs/icons/Pause.js.map +1 -1
  99. package/lib/commonjs/icons/Picture.js.map +1 -1
  100. package/lib/commonjs/icons/Pin.js.map +1 -1
  101. package/lib/commonjs/icons/PinHeader.js.map +1 -1
  102. package/lib/commonjs/icons/Play.js.map +1 -1
  103. package/lib/commonjs/icons/RAR.js.map +1 -1
  104. package/lib/commonjs/icons/RTF.js.map +1 -1
  105. package/lib/commonjs/icons/Recorder.js.map +1 -1
  106. package/lib/commonjs/icons/Refresh.js.map +1 -1
  107. package/lib/commonjs/icons/SEVEN_Z.js.map +1 -1
  108. package/lib/commonjs/icons/Search.js.map +1 -1
  109. package/lib/commonjs/icons/SendRight.js.map +1 -1
  110. package/lib/commonjs/icons/SendUp.js.map +1 -1
  111. package/lib/commonjs/icons/Share.js.map +1 -1
  112. package/lib/commonjs/icons/ShareRightArrow.js.map +1 -1
  113. package/lib/commonjs/icons/Smile.js.map +1 -1
  114. package/lib/commonjs/icons/Sound.js.map +1 -1
  115. package/lib/commonjs/icons/TAR.js.map +1 -1
  116. package/lib/commonjs/icons/TXT.js.map +1 -1
  117. package/lib/commonjs/icons/ThreadReply.js.map +1 -1
  118. package/lib/commonjs/icons/ThumbsDownReaction.js.map +1 -1
  119. package/lib/commonjs/icons/ThumbsUpReaction.js.map +1 -1
  120. package/lib/commonjs/icons/Time.js.map +1 -1
  121. package/lib/commonjs/icons/Unknown.js.map +1 -1
  122. package/lib/commonjs/icons/Unpin.js.map +1 -1
  123. package/lib/commonjs/icons/User.js.map +1 -1
  124. package/lib/commonjs/icons/UserAdd.js.map +1 -1
  125. package/lib/commonjs/icons/UserAdmin.js.map +1 -1
  126. package/lib/commonjs/icons/UserDelete.js.map +1 -1
  127. package/lib/commonjs/icons/UserMinus.js.map +1 -1
  128. package/lib/commonjs/icons/Video.js.map +1 -1
  129. package/lib/commonjs/icons/Warning.js.map +1 -1
  130. package/lib/commonjs/icons/WutReaction.js.map +1 -1
  131. package/lib/commonjs/icons/XLS.js.map +1 -1
  132. package/lib/commonjs/icons/XLSX.js.map +1 -1
  133. package/lib/commonjs/icons/ZIP.js.map +1 -1
  134. package/lib/commonjs/icons/utils/base.js.map +1 -1
  135. package/lib/commonjs/version.json +1 -1
  136. package/lib/module/components/Channel/Channel.js +22 -17
  137. package/lib/module/components/Channel/Channel.js.map +1 -1
  138. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +3 -1
  139. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  140. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +22 -5
  141. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  142. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  143. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +2 -2
  144. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  145. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +1 -4
  146. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  147. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  148. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  149. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
  150. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  151. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  152. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  153. package/lib/module/components/Message/Message.js +11 -8
  154. package/lib/module/components/Message/Message.js.map +1 -1
  155. package/lib/module/components/Message/MessageSimple/MessageContent.js +7 -3
  156. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  157. package/lib/module/components/Message/MessageSimple/MessageSimple.js +7 -1
  158. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  159. package/lib/module/components/MessageInput/MessageInput.js +5 -5
  160. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  161. package/lib/module/components/MessageInput/hooks/useCountdown.js.map +1 -1
  162. package/lib/module/components/MessageList/MessageList.js +32 -30
  163. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  164. package/lib/module/components/MessageOverlay/MessageActionListItem.js +5 -5
  165. package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  166. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  167. package/lib/module/contexts/chatContext/ChatContext.js +2 -2
  168. package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
  169. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  170. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +3 -1
  171. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  172. package/lib/module/contexts/themeContext/ThemeContext.js.map +1 -1
  173. package/lib/module/i18n/en.json +1 -1
  174. package/lib/module/i18n/es.json +56 -56
  175. package/lib/module/i18n/fr.json +56 -56
  176. package/lib/module/i18n/he.json +56 -56
  177. package/lib/module/i18n/hi.json +56 -56
  178. package/lib/module/i18n/it.json +56 -56
  179. package/lib/module/i18n/ja.json +56 -56
  180. package/lib/module/i18n/ko.json +56 -56
  181. package/lib/module/i18n/nl.json +56 -56
  182. package/lib/module/i18n/ru.json +56 -56
  183. package/lib/module/i18n/tr.json +56 -56
  184. package/lib/module/icons/ArrowRight.js.map +1 -1
  185. package/lib/module/icons/AtMentions.js.map +1 -1
  186. package/lib/module/icons/Attach.js.map +1 -1
  187. package/lib/module/icons/Audio.js.map +1 -1
  188. package/lib/module/icons/CSV.js.map +1 -1
  189. package/lib/module/icons/Camera.js.map +1 -1
  190. package/lib/module/icons/Check.js.map +1 -1
  191. package/lib/module/icons/CheckAll.js.map +1 -1
  192. package/lib/module/icons/CheckSend.js.map +1 -1
  193. package/lib/module/icons/CircleClose.js.map +1 -1
  194. package/lib/module/icons/CirclePlus.js.map +1 -1
  195. package/lib/module/icons/CircleRight.js.map +1 -1
  196. package/lib/module/icons/Close.js.map +1 -1
  197. package/lib/module/icons/Copy.js.map +1 -1
  198. package/lib/module/icons/CurveLineLeftUp.js.map +1 -1
  199. package/lib/module/icons/DOC.js.map +1 -1
  200. package/lib/module/icons/DOCX.js.map +1 -1
  201. package/lib/module/icons/Delete.js.map +1 -1
  202. package/lib/module/icons/Down.js.map +1 -1
  203. package/lib/module/icons/DownloadArrow.js.map +1 -1
  204. package/lib/module/icons/DownloadCloud.js.map +1 -1
  205. package/lib/module/icons/Edit.js.map +1 -1
  206. package/lib/module/icons/Error.js.map +1 -1
  207. package/lib/module/icons/Eye.js.map +1 -1
  208. package/lib/module/icons/Flag.js.map +1 -1
  209. package/lib/module/icons/Folder.js.map +1 -1
  210. package/lib/module/icons/GenericFile.js.map +1 -1
  211. package/lib/module/icons/GiphyIcon.js.map +1 -1
  212. package/lib/module/icons/Grid.js.map +1 -1
  213. package/lib/module/icons/Group.js.map +1 -1
  214. package/lib/module/icons/HTML.js.map +1 -1
  215. package/lib/module/icons/Imgur.js.map +1 -1
  216. package/lib/module/icons/LOLReaction.js.map +1 -1
  217. package/lib/module/icons/Lightning.js.map +1 -1
  218. package/lib/module/icons/Link.js.map +1 -1
  219. package/lib/module/icons/Logo.js.map +1 -1
  220. package/lib/module/icons/LoveReaction.js.map +1 -1
  221. package/lib/module/icons/MD.js.map +1 -1
  222. package/lib/module/icons/MailOpen.js.map +1 -1
  223. package/lib/module/icons/MenuPointHorizontal.js.map +1 -1
  224. package/lib/module/icons/MenuPointVertical.js.map +1 -1
  225. package/lib/module/icons/MessageFlag.js.map +1 -1
  226. package/lib/module/icons/MessageIcon.js.map +1 -1
  227. package/lib/module/icons/Mute.js.map +1 -1
  228. package/lib/module/icons/Notification.js.map +1 -1
  229. package/lib/module/icons/ODT.js.map +1 -1
  230. package/lib/module/icons/PDF.js.map +1 -1
  231. package/lib/module/icons/PPT.js.map +1 -1
  232. package/lib/module/icons/PPTX.js.map +1 -1
  233. package/lib/module/icons/Pause.js.map +1 -1
  234. package/lib/module/icons/Picture.js.map +1 -1
  235. package/lib/module/icons/Pin.js.map +1 -1
  236. package/lib/module/icons/PinHeader.js.map +1 -1
  237. package/lib/module/icons/Play.js.map +1 -1
  238. package/lib/module/icons/RAR.js.map +1 -1
  239. package/lib/module/icons/RTF.js.map +1 -1
  240. package/lib/module/icons/Recorder.js.map +1 -1
  241. package/lib/module/icons/Refresh.js.map +1 -1
  242. package/lib/module/icons/SEVEN_Z.js.map +1 -1
  243. package/lib/module/icons/Search.js.map +1 -1
  244. package/lib/module/icons/SendRight.js.map +1 -1
  245. package/lib/module/icons/SendUp.js.map +1 -1
  246. package/lib/module/icons/Share.js.map +1 -1
  247. package/lib/module/icons/ShareRightArrow.js.map +1 -1
  248. package/lib/module/icons/Smile.js.map +1 -1
  249. package/lib/module/icons/Sound.js.map +1 -1
  250. package/lib/module/icons/TAR.js.map +1 -1
  251. package/lib/module/icons/TXT.js.map +1 -1
  252. package/lib/module/icons/ThreadReply.js.map +1 -1
  253. package/lib/module/icons/ThumbsDownReaction.js.map +1 -1
  254. package/lib/module/icons/ThumbsUpReaction.js.map +1 -1
  255. package/lib/module/icons/Time.js.map +1 -1
  256. package/lib/module/icons/Unknown.js.map +1 -1
  257. package/lib/module/icons/Unpin.js.map +1 -1
  258. package/lib/module/icons/User.js.map +1 -1
  259. package/lib/module/icons/UserAdd.js.map +1 -1
  260. package/lib/module/icons/UserAdmin.js.map +1 -1
  261. package/lib/module/icons/UserDelete.js.map +1 -1
  262. package/lib/module/icons/UserMinus.js.map +1 -1
  263. package/lib/module/icons/Video.js.map +1 -1
  264. package/lib/module/icons/Warning.js.map +1 -1
  265. package/lib/module/icons/WutReaction.js.map +1 -1
  266. package/lib/module/icons/XLS.js.map +1 -1
  267. package/lib/module/icons/XLSX.js.map +1 -1
  268. package/lib/module/icons/ZIP.js.map +1 -1
  269. package/lib/module/icons/utils/base.js.map +1 -1
  270. package/lib/module/version.json +1 -1
  271. package/lib/typescript/components/Attachment/Attachment.d.ts +3 -3
  272. package/lib/typescript/components/Attachment/AttachmentActions.d.ts +2 -2
  273. package/lib/typescript/components/Attachment/AudioAttachment.d.ts +2 -2
  274. package/lib/typescript/components/Attachment/Card.d.ts +2 -2
  275. package/lib/typescript/components/Attachment/FileAttachment.d.ts +3 -3
  276. package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts +2 -2
  277. package/lib/typescript/components/Attachment/FileIcon.d.ts +1 -1
  278. package/lib/typescript/components/Attachment/Gallery.d.ts +2 -2
  279. package/lib/typescript/components/Attachment/GalleryImage.d.ts +2 -2
  280. package/lib/typescript/components/Attachment/Giphy.d.ts +2 -2
  281. package/lib/typescript/components/Attachment/ImageLoadingFailedIndicator.d.ts +1 -1
  282. package/lib/typescript/components/Attachment/ImageLoadingIndicator.d.ts +1 -1
  283. package/lib/typescript/components/Attachment/VideoThumbnail.d.ts +1 -1
  284. package/lib/typescript/components/Attachment/utils/buildGallery/types.d.ts +4 -4
  285. package/lib/typescript/components/Attachment/utils/getGalleryImageBorderRadius.d.ts +1 -1
  286. package/lib/typescript/components/Attachment/utils/openUrlSafely.d.ts +1 -1
  287. package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts +1 -1
  288. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerError.d.ts +1 -1
  289. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts +1 -1
  290. package/lib/typescript/components/AttachmentPicker/components/ImageSelectorIcon.d.ts +1 -1
  291. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +2 -2
  292. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts +2 -2
  293. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +2 -2
  294. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +3 -3
  295. package/lib/typescript/components/Avatar/Avatar.d.ts +1 -1
  296. package/lib/typescript/components/Avatar/GroupAvatar.d.ts +1 -1
  297. package/lib/typescript/components/Channel/Channel.d.ts +2 -2
  298. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +62 -1
  299. package/lib/typescript/components/Channel/hooks/useTargetedMessage.d.ts +1 -1
  300. package/lib/typescript/components/ChannelList/ChannelList.d.ts +1 -1
  301. package/lib/typescript/components/ChannelList/ChannelListHeaderErrorIndicator.d.ts +1 -1
  302. package/lib/typescript/components/ChannelList/ChannelListMessenger.d.ts +2 -2
  303. package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts +1 -1
  304. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts +1 -1
  305. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts +1 -1
  306. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts +1 -1
  307. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts +1 -1
  308. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts +1 -1
  309. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts +1 -1
  310. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +1 -1
  311. package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts +1 -1
  312. package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts +1 -1
  313. package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +3 -3
  314. package/lib/typescript/components/ChannelList/utils.d.ts +2 -2
  315. package/lib/typescript/components/ChannelPreview/ChannelAvatar.d.ts +2 -2
  316. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +3 -3
  317. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts +4 -1
  318. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +2 -2
  319. package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts +1 -2
  320. package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts +5 -4
  321. package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts +5 -3
  322. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts +1 -1
  323. package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +2 -2
  324. package/lib/typescript/components/Chat/Chat.d.ts +1 -1
  325. package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts +1 -1
  326. package/lib/typescript/components/Chat/hooks/useSyncDatabase.d.ts +1 -1
  327. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +3 -3
  328. package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts +1 -1
  329. package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts +1 -1
  330. package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +6 -6
  331. package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +3 -3
  332. package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts +1 -1
  333. package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts +4 -4
  334. package/lib/typescript/components/ImageGallery/components/ImageGridHandle.d.ts +3 -3
  335. package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts +1 -1
  336. package/lib/typescript/components/Indicators/LoadingDot.d.ts +1 -1
  337. package/lib/typescript/components/Indicators/LoadingDots.d.ts +1 -1
  338. package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts +1 -1
  339. package/lib/typescript/components/Indicators/LoadingIndicator.d.ts +1 -1
  340. package/lib/typescript/components/Message/Message.d.ts +18 -9
  341. package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts +2 -2
  342. package/lib/typescript/components/Message/MessageSimple/MessageBounce.d.ts +2 -2
  343. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +2 -2
  344. package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +2 -2
  345. package/lib/typescript/components/Message/MessageSimple/MessageError.d.ts +1 -1
  346. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +2 -2
  347. package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +2 -2
  348. package/lib/typescript/components/Message/MessageSimple/MessageReplies.d.ts +2 -2
  349. package/lib/typescript/components/Message/MessageSimple/MessageRepliesAvatars.d.ts +2 -2
  350. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +2 -2
  351. package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +2 -2
  352. package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +3 -3
  353. package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +3 -3
  354. package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.d.ts +1 -1
  355. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +2 -2
  356. package/lib/typescript/components/Message/utils/messageActions.d.ts +2 -2
  357. package/lib/typescript/components/MessageInput/AttachButton.d.ts +2 -2
  358. package/lib/typescript/components/MessageInput/CommandsButton.d.ts +2 -2
  359. package/lib/typescript/components/MessageInput/CooldownTimer.d.ts +1 -1
  360. package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +2 -2
  361. package/lib/typescript/components/MessageInput/ImageUploadPreview.d.ts +2 -2
  362. package/lib/typescript/components/MessageInput/InputButtons.d.ts +2 -2
  363. package/lib/typescript/components/MessageInput/MessageInput.d.ts +2 -2
  364. package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts +2 -2
  365. package/lib/typescript/components/MessageInput/SendButton.d.ts +2 -2
  366. package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts +2 -2
  367. package/lib/typescript/components/MessageInput/UploadProgressIndicator.d.ts +1 -1
  368. package/lib/typescript/components/MessageInput/components/InputEditingStateHeader.d.ts +2 -2
  369. package/lib/typescript/components/MessageInput/components/InputGiphySearch.d.ts +2 -2
  370. package/lib/typescript/components/MessageInput/components/InputReplyStateHeader.d.ts +2 -2
  371. package/lib/typescript/components/MessageList/DateHeader.d.ts +1 -1
  372. package/lib/typescript/components/MessageList/InlineDateSeparator.d.ts +1 -1
  373. package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts +1 -1
  374. package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts +1 -1
  375. package/lib/typescript/components/MessageList/InlineLoadingMoreThreadIndicator.d.ts +1 -1
  376. package/lib/typescript/components/MessageList/MessageList.d.ts +2 -2
  377. package/lib/typescript/components/MessageList/MessageSystem.d.ts +1 -1
  378. package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts +1 -1
  379. package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts +2 -2
  380. package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +4 -4
  381. package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts +1 -1
  382. package/lib/typescript/components/MessageList/utils/getDateSeparators.d.ts +2 -2
  383. package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts +1 -1
  384. package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +1 -0
  385. package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +2 -2
  386. package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts +19 -3
  387. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +2 -2
  388. package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts +1 -1
  389. package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts +3 -3
  390. package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +2 -2
  391. package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts +1 -1
  392. package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +1 -1
  393. package/lib/typescript/components/ProgressControl/ProgressControl.d.ts +1 -1
  394. package/lib/typescript/components/RTLComponents/WritingDirectionAwareText.d.ts +1 -1
  395. package/lib/typescript/components/Reply/Reply.d.ts +2 -2
  396. package/lib/typescript/components/Spinner/Spinner.d.ts +1 -1
  397. package/lib/typescript/components/Thread/Thread.d.ts +2 -2
  398. package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +1 -1
  399. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +2 -2
  400. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +1 -1
  401. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +2 -2
  402. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +5 -5
  403. package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +1 -1
  404. package/lib/typescript/contexts/chatContext/ChatContext.d.ts +4 -1
  405. package/lib/typescript/contexts/debugContext/DebugContext.d.ts +2 -2
  406. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +2 -2
  407. package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts +1 -1
  408. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +3 -3
  409. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +6 -6
  410. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
  411. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +1 -1
  412. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +2 -2
  413. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +3 -3
  414. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +3 -3
  415. package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts +2 -2
  416. package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +1 -1
  417. package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +6 -6
  418. package/lib/typescript/contexts/themeContext/ThemeContext.d.ts +5 -5
  419. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +2 -2
  420. package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +1 -1
  421. package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +5 -5
  422. package/lib/typescript/contexts/typingContext/TypingContext.d.ts +1 -1
  423. package/lib/typescript/emoji-data/index.d.ts +2 -2
  424. package/lib/typescript/hooks/useAppStateListener.d.ts +1 -1
  425. package/lib/typescript/hooks/useStreami18n.d.ts +1 -1
  426. package/lib/typescript/hooks/useViewport.d.ts +1 -1
  427. package/lib/typescript/i18n/en.json +1 -1
  428. package/lib/typescript/i18n/es.json +56 -56
  429. package/lib/typescript/i18n/fr.json +56 -56
  430. package/lib/typescript/i18n/he.json +56 -56
  431. package/lib/typescript/i18n/hi.json +56 -56
  432. package/lib/typescript/i18n/it.json +56 -56
  433. package/lib/typescript/i18n/ja.json +56 -56
  434. package/lib/typescript/i18n/ko.json +56 -56
  435. package/lib/typescript/i18n/nl.json +56 -56
  436. package/lib/typescript/i18n/ru.json +56 -56
  437. package/lib/typescript/i18n/tr.json +56 -56
  438. package/lib/typescript/icons/ArrowRight.d.ts +2 -2
  439. package/lib/typescript/icons/AtMentions.d.ts +2 -2
  440. package/lib/typescript/icons/Attach.d.ts +2 -2
  441. package/lib/typescript/icons/Audio.d.ts +2 -2
  442. package/lib/typescript/icons/CSV.d.ts +2 -2
  443. package/lib/typescript/icons/Camera.d.ts +2 -2
  444. package/lib/typescript/icons/Check.d.ts +2 -2
  445. package/lib/typescript/icons/CheckAll.d.ts +2 -2
  446. package/lib/typescript/icons/CheckSend.d.ts +2 -2
  447. package/lib/typescript/icons/CircleClose.d.ts +2 -2
  448. package/lib/typescript/icons/CirclePlus.d.ts +2 -2
  449. package/lib/typescript/icons/CircleRight.d.ts +2 -2
  450. package/lib/typescript/icons/Close.d.ts +2 -2
  451. package/lib/typescript/icons/CurveLineLeftUp.d.ts +2 -2
  452. package/lib/typescript/icons/DOC.d.ts +2 -2
  453. package/lib/typescript/icons/DOCX.d.ts +2 -2
  454. package/lib/typescript/icons/Delete.d.ts +2 -2
  455. package/lib/typescript/icons/Down.d.ts +2 -2
  456. package/lib/typescript/icons/DownloadArrow.d.ts +2 -2
  457. package/lib/typescript/icons/DownloadCloud.d.ts +2 -2
  458. package/lib/typescript/icons/Edit.d.ts +2 -2
  459. package/lib/typescript/icons/Error.d.ts +2 -2
  460. package/lib/typescript/icons/Eye.d.ts +2 -2
  461. package/lib/typescript/icons/Flag.d.ts +2 -2
  462. package/lib/typescript/icons/Folder.d.ts +2 -2
  463. package/lib/typescript/icons/GenericFile.d.ts +2 -2
  464. package/lib/typescript/icons/GiphyIcon.d.ts +2 -2
  465. package/lib/typescript/icons/Grid.d.ts +2 -2
  466. package/lib/typescript/icons/Group.d.ts +2 -2
  467. package/lib/typescript/icons/HTML.d.ts +2 -2
  468. package/lib/typescript/icons/Imgur.d.ts +2 -2
  469. package/lib/typescript/icons/LOLReaction.d.ts +2 -2
  470. package/lib/typescript/icons/Lightning.d.ts +2 -2
  471. package/lib/typescript/icons/Link.d.ts +2 -2
  472. package/lib/typescript/icons/Loading.d.ts +1 -1
  473. package/lib/typescript/icons/Logo.d.ts +2 -2
  474. package/lib/typescript/icons/LoveReaction.d.ts +2 -2
  475. package/lib/typescript/icons/MD.d.ts +2 -2
  476. package/lib/typescript/icons/MailOpen.d.ts +2 -2
  477. package/lib/typescript/icons/MenuPointHorizontal.d.ts +2 -2
  478. package/lib/typescript/icons/MenuPointVertical.d.ts +2 -2
  479. package/lib/typescript/icons/MessageFlag.d.ts +2 -2
  480. package/lib/typescript/icons/MessageIcon.d.ts +2 -2
  481. package/lib/typescript/icons/Mute.d.ts +2 -2
  482. package/lib/typescript/icons/Notification.d.ts +2 -2
  483. package/lib/typescript/icons/ODT.d.ts +2 -2
  484. package/lib/typescript/icons/PDF.d.ts +2 -2
  485. package/lib/typescript/icons/PPT.d.ts +2 -2
  486. package/lib/typescript/icons/PPTX.d.ts +2 -2
  487. package/lib/typescript/icons/Pause.d.ts +2 -2
  488. package/lib/typescript/icons/Picture.d.ts +2 -2
  489. package/lib/typescript/icons/Pin.d.ts +2 -2
  490. package/lib/typescript/icons/PinHeader.d.ts +2 -2
  491. package/lib/typescript/icons/Play.d.ts +2 -2
  492. package/lib/typescript/icons/RAR.d.ts +2 -2
  493. package/lib/typescript/icons/RTF.d.ts +2 -2
  494. package/lib/typescript/icons/Recorder.d.ts +2 -2
  495. package/lib/typescript/icons/Refresh.d.ts +2 -2
  496. package/lib/typescript/icons/SEVEN_Z.d.ts +2 -2
  497. package/lib/typescript/icons/Search.d.ts +2 -2
  498. package/lib/typescript/icons/SendRight.d.ts +2 -2
  499. package/lib/typescript/icons/SendUp.d.ts +2 -2
  500. package/lib/typescript/icons/Share.d.ts +2 -2
  501. package/lib/typescript/icons/ShareRightArrow.d.ts +2 -2
  502. package/lib/typescript/icons/Smile.d.ts +2 -2
  503. package/lib/typescript/icons/Sound.d.ts +2 -2
  504. package/lib/typescript/icons/TAR.d.ts +2 -2
  505. package/lib/typescript/icons/TXT.d.ts +2 -2
  506. package/lib/typescript/icons/ThreadReply.d.ts +2 -2
  507. package/lib/typescript/icons/ThumbsDownReaction.d.ts +2 -2
  508. package/lib/typescript/icons/ThumbsUpReaction.d.ts +2 -2
  509. package/lib/typescript/icons/Time.d.ts +2 -2
  510. package/lib/typescript/icons/Unknown.d.ts +2 -2
  511. package/lib/typescript/icons/Unpin.d.ts +2 -2
  512. package/lib/typescript/icons/User.d.ts +2 -2
  513. package/lib/typescript/icons/UserAdd.d.ts +2 -2
  514. package/lib/typescript/icons/UserAdmin.d.ts +2 -2
  515. package/lib/typescript/icons/UserDelete.d.ts +2 -2
  516. package/lib/typescript/icons/UserMinus.d.ts +2 -2
  517. package/lib/typescript/icons/Video.d.ts +2 -2
  518. package/lib/typescript/icons/Warning.d.ts +2 -2
  519. package/lib/typescript/icons/WutReaction.d.ts +2 -2
  520. package/lib/typescript/icons/XLS.d.ts +2 -2
  521. package/lib/typescript/icons/XLSX.d.ts +2 -2
  522. package/lib/typescript/icons/ZIP.d.ts +2 -2
  523. package/lib/typescript/icons/utils/base.d.ts +5 -5
  524. package/lib/typescript/native.d.ts +26 -26
  525. package/lib/typescript/store/QuickSqliteClient.d.ts +1 -1
  526. package/lib/typescript/store/apis/upsertChannels.d.ts +2 -2
  527. package/lib/typescript/store/apis/upsertCidsForQuery.d.ts +2 -2
  528. package/lib/typescript/store/mappers/mapDateTimeToStorable.d.ts +1 -1
  529. package/lib/typescript/store/schema.d.ts +2 -2
  530. package/lib/typescript/store/sqlite-utils/appendOrderByClause.d.ts +1 -1
  531. package/lib/typescript/store/sqlite-utils/appendWhereCluase.d.ts +1 -1
  532. package/lib/typescript/store/sqlite-utils/createUpsertQuery.d.ts +1 -1
  533. package/lib/typescript/store/types.d.ts +8 -8
  534. package/lib/typescript/types/types.d.ts +7 -7
  535. package/lib/typescript/utils/StreamChatRN.d.ts +1 -1
  536. package/lib/typescript/utils/Streami18n.d.ts +2 -2
  537. package/lib/typescript/utils/compressImage.d.ts +1 -1
  538. package/lib/typescript/utils/getResizedImageUrl.d.ts +1 -1
  539. package/lib/typescript/utils/utils.d.ts +14 -14
  540. package/package.json +3 -7
  541. package/src/components/Channel/Channel.tsx +9 -3
  542. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +11 -1
  543. package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +24 -6
  544. package/src/components/ChannelPreview/ChannelPreview.tsx +1 -1
  545. package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +3 -0
  546. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +2 -3
  547. package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +1 -3
  548. package/src/components/ChannelPreview/ChannelPreviewTitle.tsx +5 -12
  549. package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx +5 -4
  550. package/src/components/Message/Message.tsx +15 -1
  551. package/src/components/Message/MessageSimple/MessageContent.tsx +5 -0
  552. package/src/components/Message/MessageSimple/MessageSimple.tsx +8 -2
  553. package/src/components/MessageInput/MessageInput.tsx +3 -7
  554. package/src/components/MessageInput/hooks/useCountdown.ts +1 -1
  555. package/src/components/MessageList/MessageList.tsx +3 -1
  556. package/src/components/MessageOverlay/MessageActionListItem.tsx +16 -0
  557. package/src/contexts/channelsContext/ChannelsContext.tsx +1 -1
  558. package/src/contexts/chatContext/ChatContext.tsx +3 -0
  559. package/src/contexts/messageInputContext/MessageInputContext.tsx +1 -1
  560. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +3 -0
  561. package/src/contexts/themeContext/ThemeContext.tsx +3 -3
  562. package/src/i18n/en.json +1 -1
  563. package/src/i18n/es.json +56 -56
  564. package/src/i18n/fr.json +56 -56
  565. package/src/i18n/he.json +56 -56
  566. package/src/i18n/hi.json +56 -56
  567. package/src/i18n/it.json +56 -56
  568. package/src/i18n/ja.json +56 -56
  569. package/src/i18n/ko.json +56 -56
  570. package/src/i18n/nl.json +56 -56
  571. package/src/i18n/ru.json +56 -56
  572. package/src/i18n/tr.json +56 -56
  573. package/src/icons/ArrowRight.tsx +1 -1
  574. package/src/icons/AtMentions.tsx +1 -1
  575. package/src/icons/Attach.tsx +1 -1
  576. package/src/icons/Audio.tsx +1 -1
  577. package/src/icons/CSV.tsx +1 -1
  578. package/src/icons/Camera.tsx +1 -1
  579. package/src/icons/Check.tsx +1 -1
  580. package/src/icons/CheckAll.tsx +1 -1
  581. package/src/icons/CheckSend.tsx +1 -1
  582. package/src/icons/CircleClose.tsx +1 -1
  583. package/src/icons/CirclePlus.tsx +1 -1
  584. package/src/icons/CircleRight.tsx +1 -1
  585. package/src/icons/Close.tsx +1 -1
  586. package/src/icons/Copy.tsx +1 -1
  587. package/src/icons/CurveLineLeftUp.tsx +1 -1
  588. package/src/icons/DOC.tsx +1 -1
  589. package/src/icons/DOCX.tsx +1 -1
  590. package/src/icons/Delete.tsx +1 -1
  591. package/src/icons/Down.tsx +1 -1
  592. package/src/icons/DownloadArrow.tsx +1 -1
  593. package/src/icons/DownloadCloud.tsx +1 -1
  594. package/src/icons/Edit.tsx +1 -1
  595. package/src/icons/Error.tsx +1 -1
  596. package/src/icons/Eye.tsx +1 -1
  597. package/src/icons/Flag.tsx +1 -1
  598. package/src/icons/Folder.tsx +1 -1
  599. package/src/icons/GenericFile.tsx +1 -1
  600. package/src/icons/GiphyIcon.tsx +1 -1
  601. package/src/icons/Grid.tsx +1 -1
  602. package/src/icons/Group.tsx +1 -1
  603. package/src/icons/HTML.tsx +1 -1
  604. package/src/icons/Imgur.tsx +1 -1
  605. package/src/icons/LOLReaction.tsx +1 -1
  606. package/src/icons/Lightning.tsx +1 -1
  607. package/src/icons/Link.tsx +1 -1
  608. package/src/icons/Logo.tsx +1 -1
  609. package/src/icons/LoveReaction.tsx +1 -1
  610. package/src/icons/MD.tsx +1 -1
  611. package/src/icons/MailOpen.tsx +1 -1
  612. package/src/icons/MenuPointHorizontal.tsx +1 -1
  613. package/src/icons/MenuPointVertical.tsx +1 -1
  614. package/src/icons/MessageFlag.tsx +1 -1
  615. package/src/icons/MessageIcon.tsx +1 -1
  616. package/src/icons/Mute.tsx +1 -1
  617. package/src/icons/Notification.tsx +1 -1
  618. package/src/icons/ODT.tsx +1 -1
  619. package/src/icons/PDF.tsx +1 -1
  620. package/src/icons/PPT.tsx +1 -1
  621. package/src/icons/PPTX.tsx +1 -1
  622. package/src/icons/Pause.tsx +1 -1
  623. package/src/icons/Picture.tsx +1 -1
  624. package/src/icons/Pin.tsx +1 -1
  625. package/src/icons/PinHeader.tsx +1 -1
  626. package/src/icons/Play.tsx +1 -1
  627. package/src/icons/RAR.tsx +1 -1
  628. package/src/icons/RTF.tsx +1 -1
  629. package/src/icons/Recorder.tsx +1 -1
  630. package/src/icons/Refresh.tsx +1 -1
  631. package/src/icons/SEVEN_Z.tsx +1 -1
  632. package/src/icons/Search.tsx +1 -1
  633. package/src/icons/SendRight.tsx +1 -1
  634. package/src/icons/SendUp.tsx +1 -1
  635. package/src/icons/Share.tsx +1 -1
  636. package/src/icons/ShareRightArrow.tsx +1 -1
  637. package/src/icons/Smile.tsx +1 -1
  638. package/src/icons/Sound.tsx +1 -1
  639. package/src/icons/TAR.tsx +1 -1
  640. package/src/icons/TXT.tsx +1 -1
  641. package/src/icons/ThreadReply.tsx +1 -1
  642. package/src/icons/ThumbsDownReaction.tsx +1 -1
  643. package/src/icons/ThumbsUpReaction.tsx +1 -1
  644. package/src/icons/Time.tsx +1 -1
  645. package/src/icons/Unknown.tsx +1 -1
  646. package/src/icons/Unpin.tsx +1 -1
  647. package/src/icons/User.tsx +1 -1
  648. package/src/icons/UserAdd.tsx +1 -1
  649. package/src/icons/UserAdmin.tsx +1 -1
  650. package/src/icons/UserDelete.tsx +1 -1
  651. package/src/icons/UserMinus.tsx +1 -1
  652. package/src/icons/Video.tsx +1 -1
  653. package/src/icons/Warning.tsx +1 -1
  654. package/src/icons/WutReaction.tsx +1 -1
  655. package/src/icons/XLS.tsx +1 -1
  656. package/src/icons/XLSX.tsx +1 -1
  657. package/src/icons/ZIP.tsx +1 -1
  658. package/src/icons/utils/base.tsx +2 -2
  659. package/src/version.json +1 -1
@@ -2,26 +2,26 @@ import type React from 'react';
2
2
  import { FlatList as DefaultFlatList, StyleProp, ViewStyle } from 'react-native';
3
3
  import type { NetInfoSubscription } from '@react-native-community/netinfo';
4
4
  import type { Asset, File } from './types/types';
5
- declare type CompressImage = ({ compressImageQuality, height, uri, width, }: {
5
+ type CompressImage = ({ compressImageQuality, height, uri, width, }: {
6
6
  compressImageQuality: number;
7
7
  height: number;
8
8
  uri: string;
9
9
  width: number;
10
10
  }) => Promise<string> | never;
11
11
  export declare let compressImage: CompressImage;
12
- declare type DeleteFile = ({ uri }: {
12
+ type DeleteFile = ({ uri }: {
13
13
  uri: string;
14
14
  }) => Promise<boolean> | never;
15
15
  export declare let deleteFile: DeleteFile;
16
- declare type GetLocalAssetUri = (uriOrAssetId: string) => Promise<string | undefined> | never;
16
+ type GetLocalAssetUri = (uriOrAssetId: string) => Promise<string | undefined> | never;
17
17
  export declare let getLocalAssetUri: GetLocalAssetUri;
18
- declare type OniOS14LibrarySelectionChange = (callback: () => void) => {
18
+ type OniOS14LibrarySelectionChange = (callback: () => void) => {
19
19
  unsubscribe: () => void;
20
20
  };
21
21
  export declare let oniOS14GalleryLibrarySelectionChange: OniOS14LibrarySelectionChange;
22
- declare type iOS14RefreshGallerySelection = () => Promise<void>;
22
+ type iOS14RefreshGallerySelection = () => Promise<void>;
23
23
  export declare let iOS14RefreshGallerySelection: iOS14RefreshGallerySelection;
24
- declare type GetPhotos = ({ after, first }: {
24
+ type GetPhotos = ({ after, first }: {
25
25
  first: number;
26
26
  after?: string;
27
27
  }) => Promise<{
@@ -33,34 +33,34 @@ declare type GetPhotos = ({ after, first }: {
33
33
  iOSLimited: boolean;
34
34
  }> | never;
35
35
  export declare let getPhotos: GetPhotos;
36
- declare type NetInfo = {
36
+ type NetInfo = {
37
37
  addEventListener: (listener: (isConnected: boolean) => void) => NetInfoSubscription | never;
38
38
  fetch: (requestedInterface?: string | undefined) => Promise<boolean> | never;
39
39
  };
40
40
  export declare let FlatList: typeof DefaultFlatList;
41
41
  export declare let NetInfo: NetInfo;
42
- declare type PickDocument = ({ maxNumberOfFiles }: {
42
+ type PickDocument = ({ maxNumberOfFiles }: {
43
43
  maxNumberOfFiles?: number;
44
44
  }) => Promise<{
45
45
  cancelled: boolean;
46
46
  assets?: File[];
47
47
  }> | never;
48
48
  export declare let pickDocument: PickDocument;
49
- declare type SaveFileOptions = {
49
+ type SaveFileOptions = {
50
50
  fileName: string;
51
51
  fromUrl: string;
52
52
  };
53
- declare type SaveFile = (options: SaveFileOptions) => Promise<string> | never;
53
+ type SaveFile = (options: SaveFileOptions) => Promise<string> | never;
54
54
  export declare let saveFile: SaveFile;
55
- declare type SetClipboardString = (text: string) => Promise<void> | never;
55
+ type SetClipboardString = (text: string) => Promise<void> | never;
56
56
  export declare let setClipboardString: SetClipboardString;
57
- declare type ShareOptions = {
57
+ type ShareOptions = {
58
58
  type?: string;
59
59
  url?: string;
60
60
  };
61
- declare type ShareImage = (options: ShareOptions) => Promise<boolean> | never;
61
+ type ShareImage = (options: ShareOptions) => Promise<boolean> | never;
62
62
  export declare let shareImage: ShareImage;
63
- declare type Photo = (Omit<Asset, 'source'> & {
63
+ type Photo = (Omit<Asset, 'source'> & {
64
64
  cancelled: false;
65
65
  source: 'camera';
66
66
  askToOpenSettings?: boolean;
@@ -68,14 +68,14 @@ declare type Photo = (Omit<Asset, 'source'> & {
68
68
  cancelled: true;
69
69
  askToOpenSettings?: boolean;
70
70
  };
71
- declare type TakePhoto = (options: {
71
+ type TakePhoto = (options: {
72
72
  compressImageQuality?: number;
73
73
  }) => Promise<Photo> | never;
74
74
  export declare let takePhoto: TakePhoto;
75
- declare type HapticFeedbackMethod = 'impactHeavy' | 'impactLight' | 'impactMedium' | 'notificationError' | 'notificationSuccess' | 'notificationWarning' | 'selection';
76
- declare type TriggerHaptic = (method: HapticFeedbackMethod) => void | never;
75
+ type HapticFeedbackMethod = 'impactHeavy' | 'impactLight' | 'impactMedium' | 'notificationError' | 'notificationSuccess' | 'notificationWarning' | 'selection';
76
+ type TriggerHaptic = (method: HapticFeedbackMethod) => void | never;
77
77
  export declare let triggerHaptic: TriggerHaptic;
78
- export declare type PlaybackStatus = {
78
+ export type PlaybackStatus = {
79
79
  didJustFinish: boolean;
80
80
  durationMillis: number;
81
81
  error: string;
@@ -85,7 +85,7 @@ export declare type PlaybackStatus = {
85
85
  isPlaying: boolean;
86
86
  positionMillis: number;
87
87
  };
88
- export declare type AVPlaybackStatusToSet = {
88
+ export type AVPlaybackStatusToSet = {
89
89
  isLooping: boolean;
90
90
  isMuted: boolean;
91
91
  positionMillis: number;
@@ -96,7 +96,7 @@ export declare type AVPlaybackStatusToSet = {
96
96
  volume: number;
97
97
  };
98
98
  export declare let SDK: string;
99
- export declare type SoundOptions = {
99
+ export type SoundOptions = {
100
100
  basePathOrCallback?: string;
101
101
  callback?: () => void;
102
102
  filenameOrFile?: string;
@@ -106,7 +106,7 @@ export declare type SoundOptions = {
106
106
  uri: string;
107
107
  };
108
108
  };
109
- export declare type SoundReturnType = {
109
+ export type SoundReturnType = {
110
110
  paused: boolean;
111
111
  testID: string;
112
112
  getDuration?: () => number;
@@ -133,19 +133,19 @@ export declare type SoundReturnType = {
133
133
  unloadAsync?: () => void;
134
134
  uri?: string;
135
135
  };
136
- export declare type SoundType = {
136
+ export type SoundType = {
137
137
  initializeSound: (source?: {
138
138
  uri: string;
139
139
  }, initialStatus?: Partial<AVPlaybackStatusToSet>, onPlaybackStatusUpdate?: (playbackStatus: PlaybackStatus) => void) => Promise<SoundReturnType | null>;
140
140
  Player: React.ComponentType<SoundReturnType> | null;
141
141
  };
142
142
  export declare let Sound: SoundType;
143
- export declare type VideoProgressData = {
143
+ export type VideoProgressData = {
144
144
  currentTime: number;
145
145
  seekableDuration: number;
146
146
  playableDuration?: number;
147
147
  };
148
- export declare type VideoPayloadData = {
148
+ export type VideoPayloadData = {
149
149
  duration: number;
150
150
  audioTracks?: {
151
151
  index: number;
@@ -173,7 +173,7 @@ export declare type VideoPayloadData = {
173
173
  width: number;
174
174
  }[];
175
175
  };
176
- export declare type VideoType = {
176
+ export type VideoType = {
177
177
  paused: boolean;
178
178
  testID: string;
179
179
  uri: string;
@@ -195,7 +195,7 @@ export declare type VideoType = {
195
195
  style?: StyleProp<ViewStyle>;
196
196
  };
197
197
  export declare let Video: React.ComponentType<VideoType>;
198
- declare type Handlers = {
198
+ type Handlers = {
199
199
  compressImage?: CompressImage;
200
200
  deleteFile?: DeleteFile;
201
201
  FlatList?: typeof DefaultFlatList;
@@ -13,7 +13,7 @@ export declare class QuickSqliteClient {
13
13
  static openDB: () => void;
14
14
  static closeDB: () => void;
15
15
  static executeSqlBatch: (queries: PreparedQueries[]) => void;
16
- static executeSql: (query: string, params?: string[] | undefined) => any[];
16
+ static executeSql: (query: string, params?: string[]) => any[];
17
17
  static dropTables: () => void;
18
18
  static deleteDatabase: () => boolean;
19
19
  static initializeDatabase: () => void;
@@ -2,8 +2,8 @@ import type { ChannelAPIResponse, ChannelFilters, ChannelSort } from 'stream-cha
2
2
  import type { PreparedQueries } from '../types';
3
3
  export declare const upsertChannels: ({ channels, filters, flush, isLatestMessagesSet, sort, }: {
4
4
  channels: ChannelAPIResponse[];
5
- filters?: ChannelFilters<import("stream-chat").DefaultGenerics> | undefined;
5
+ filters?: ChannelFilters | undefined;
6
6
  flush?: boolean | undefined;
7
7
  isLatestMessagesSet?: boolean | undefined;
8
- sort?: ChannelSort<import("stream-chat").DefaultGenerics> | undefined;
8
+ sort?: ChannelSort | undefined;
9
9
  }) => PreparedQueries[];
@@ -1,7 +1,7 @@
1
1
  import type { ChannelFilters, ChannelSort } from 'stream-chat';
2
2
  export declare const upsertCidsForQuery: ({ cids, filters, flush, sort, }: {
3
3
  cids: string[];
4
- filters?: ChannelFilters<import("stream-chat").DefaultGenerics> | undefined;
4
+ filters?: ChannelFilters | undefined;
5
5
  flush?: boolean | undefined;
6
- sort?: ChannelSort<import("stream-chat").DefaultGenerics> | undefined;
6
+ sort?: ChannelSort | undefined;
7
7
  }) => import("../types").PreparedQueries[];
@@ -1 +1 @@
1
- export declare const mapDateTimeToStorable: (datetime?: string | Date | undefined) => string;
1
+ export declare const mapDateTimeToStorable: (datetime?: string | Date) => string;
@@ -1,7 +1,7 @@
1
1
  import type { MessageLabel, Role } from 'stream-chat';
2
2
  import type { PendingTaskTypes } from './types';
3
3
  import type { ValueOf } from '../types/types';
4
- declare type Tables = {
4
+ type Tables = {
5
5
  [P in keyof Schema]: {
6
6
  columns: {
7
7
  [K in keyof Schema[P]]: string;
@@ -21,7 +21,7 @@ declare type Tables = {
21
21
  };
22
22
  };
23
23
  export declare const tables: Tables;
24
- export declare type Schema = {
24
+ export type Schema = {
25
25
  channelQueries: {
26
26
  cids: string;
27
27
  id: string;
@@ -1,3 +1,3 @@
1
1
  import type { Schema } from '../schema';
2
- import type { PreparedQueries } from '../types';
2
+ import type { PreparedQueries, TableColumnNames } from '../types';
3
3
  export declare const appendOrderByClause: <T extends keyof Schema>(selectQuery: string, orderBy?: Partial<{ [k in keyof Schema[T]]: 1 | -1; }> | undefined) => PreparedQueries;
@@ -1,3 +1,3 @@
1
1
  import type { Schema } from '../schema';
2
- import type { PreparedQueries, TableColumnValue } from '../types';
2
+ import type { PreparedQueries, TableColumnNames, TableColumnValue } from '../types';
3
3
  export declare const appendWhereClause: <T extends keyof Schema>(selectQuery: string, whereCondition?: Partial<{ [k in keyof Schema[T]]: TableColumnValue | TableColumnValue[]; }> | undefined) => PreparedQueries;
@@ -1,5 +1,5 @@
1
1
  import { Schema } from '../schema';
2
- import type { PreparedQueries, TableRow } from '../types';
2
+ import type { PreparedQueries, TableColumnNames, TableRow } from '../types';
3
3
  /**
4
4
  * Creates a simple upsert query for sqlite.
5
5
  *
@@ -1,19 +1,19 @@
1
1
  import type { Channel, StreamChat } from 'stream-chat';
2
2
  import type { Schema } from './schema';
3
- export declare type Table = keyof Schema;
4
- export declare type TableRow<T extends Table> = Schema[T];
5
- export declare type TableRowJoinedUser<T extends Table> = Schema[T] & {
3
+ export type Table = keyof Schema;
4
+ export type TableRow<T extends Table> = Schema[T];
5
+ export type TableRowJoinedUser<T extends Table> = Schema[T] & {
6
6
  user: TableRow<'users'>;
7
7
  };
8
- export declare type TableColumnNames<T extends Table> = keyof Schema[T];
9
- export declare type TableColumnValue = string | boolean | number | undefined;
10
- export declare type PreparedQueries = [string] | [string, Array<any>];
11
- export declare type PendingTaskTypes = {
8
+ export type TableColumnNames<T extends Table> = keyof Schema[T];
9
+ export type TableColumnValue = string | boolean | number | undefined;
10
+ export type PreparedQueries = [string] | [string, Array<any>];
11
+ export type PendingTaskTypes = {
12
12
  deleteMessage: 'delete-message';
13
13
  deleteReaction: 'delete-reaction';
14
14
  sendReaction: 'send-reaction';
15
15
  };
16
- export declare type PendingTask = {
16
+ export type PendingTask = {
17
17
  channelId: string;
18
18
  channelType: string;
19
19
  messageId: string;
@@ -1,6 +1,6 @@
1
1
  import type { ExtendableGenerics, LiteralStringForUnion } from 'stream-chat';
2
2
  import type { FileStateValue } from '../utils/utils';
3
- export declare type Asset = {
3
+ export type Asset = {
4
4
  duration: number;
5
5
  height: number;
6
6
  name: string;
@@ -11,7 +11,7 @@ export declare type Asset = {
11
11
  id?: string;
12
12
  size?: number;
13
13
  };
14
- export declare type File = {
14
+ export type File = {
15
15
  name: string;
16
16
  duration?: number;
17
17
  id?: string;
@@ -19,7 +19,7 @@ export declare type File = {
19
19
  size?: number;
20
20
  uri?: string;
21
21
  };
22
- export declare type FileUpload = {
22
+ export type FileUpload = {
23
23
  file: File;
24
24
  id: string;
25
25
  state: FileStateValue;
@@ -29,7 +29,7 @@ export declare type FileUpload = {
29
29
  thumb_url?: string;
30
30
  url?: string;
31
31
  };
32
- export declare type ImageUpload = {
32
+ export type ImageUpload = {
33
33
  file: Partial<Asset>;
34
34
  id: string;
35
35
  state: FileStateValue;
@@ -37,7 +37,7 @@ export declare type ImageUpload = {
37
37
  url?: string;
38
38
  width?: number;
39
39
  };
40
- export declare type DefaultAttachmentType = UnknownType & {
40
+ export type DefaultAttachmentType = UnknownType & {
41
41
  file_size?: number;
42
42
  mime_type?: string;
43
43
  originalFile?: File;
@@ -59,6 +59,6 @@ export interface DefaultStreamChatGenerics extends ExtendableGenerics {
59
59
  reactionType: UnknownType;
60
60
  userType: DefaultUserType;
61
61
  }
62
- export declare type UnknownType = Record<string, unknown>;
63
- export declare type ValueOf<T> = T[keyof T];
62
+ export type UnknownType = Record<string, unknown>;
63
+ export type ValueOf<T> = T[keyof T];
64
64
  export {};
@@ -1,4 +1,4 @@
1
- declare type StreamConfig = {
1
+ type StreamConfig = {
2
2
  resizableCDNHosts: string[];
3
3
  };
4
4
  /**
@@ -20,7 +20,7 @@ import 'dayjs/locale/tr';
20
20
  */
21
21
  import 'dayjs/locale/en';
22
22
  import type { DefaultStreamChatGenerics } from '../types/types';
23
- declare type Options = {
23
+ type Options = {
24
24
  DateTimeParser?: typeof Dayjs | typeof moment;
25
25
  dayjsLocaleConfigForLanguage?: Partial<ILocale>;
26
26
  debug?: boolean;
@@ -29,7 +29,7 @@ declare type Options = {
29
29
  logger?: (msg?: string) => void;
30
30
  translationsForLanguage?: Partial<typeof enTranslations>;
31
31
  };
32
- declare type I18NextConfig = {
32
+ type I18NextConfig = {
33
33
  debug: boolean;
34
34
  fallbackLng: false | FallbackLng;
35
35
  interpolation: {
@@ -5,4 +5,4 @@ import type { Asset } from '../types/types';
5
5
  * @param compressImageQuality
6
6
  * @returns string
7
7
  */
8
- export declare const compressedImageURI: (image: Partial<Asset>, compressImageQuality?: number | undefined) => Promise<string>;
8
+ export declare const compressedImageURI: (image: Partial<Asset>, compressImageQuality?: number) => Promise<string>;
@@ -1,4 +1,4 @@
1
- export declare type GetResizedImageUrlParams = {
1
+ export type GetResizedImageUrlParams = {
2
2
  url: string;
3
3
  height?: string | number;
4
4
  resize?: 'clip' | 'crop' | 'fill' | 'scale';
@@ -8,16 +8,16 @@ import { Emoji } from '../emoji-data';
8
8
  import type { IconProps } from '../icons/utils/base';
9
9
  import type { TableRowJoinedUser } from '../store/types';
10
10
  import type { DefaultStreamChatGenerics, ValueOf } from '../types/types';
11
- export declare type ReactionData = {
11
+ export type ReactionData = {
12
12
  Icon: React.FC<IconProps>;
13
13
  type: string;
14
14
  };
15
15
  export declare const FileState: Readonly<{
16
- FINISHED: string;
17
- NOT_SUPPORTED: string;
18
- UPLOAD_FAILED: string;
19
- UPLOADED: string;
20
- UPLOADING: string;
16
+ FINISHED: "finished";
17
+ NOT_SUPPORTED: "not_supported";
18
+ UPLOAD_FAILED: "upload_failed";
19
+ UPLOADED: "uploaded";
20
+ UPLOADING: "uploading";
21
21
  }>;
22
22
  export declare const ProgressIndicatorTypes: {
23
23
  IN_PROGRESS: 'in_progress';
@@ -30,8 +30,8 @@ export declare const MessageStatusTypes: {
30
30
  RECEIVED: string;
31
31
  SENDING: string;
32
32
  };
33
- export declare type FileStateValue = typeof FileState[keyof typeof FileState];
34
- declare type Progress = ValueOf<typeof ProgressIndicatorTypes>;
33
+ export type FileStateValue = typeof FileState[keyof typeof FileState];
34
+ type Progress = ValueOf<typeof ProgressIndicatorTypes>;
35
35
  export declare const getIndicatorTypeForFileState: (fileState: FileStateValue, enableOfflineSupport: boolean) => Progress | null;
36
36
  /**
37
37
  * Utility to check if the message is a Blocked message.
@@ -55,8 +55,8 @@ export declare const queryUsersDebounced: DebouncedFunc<(<StreamChatGenerics ext
55
55
  export declare const isCommandTrigger: (trigger: Trigger) => trigger is "/";
56
56
  export declare const isEmojiTrigger: (trigger: Trigger) => trigger is ":";
57
57
  export declare const isMentionTrigger: (trigger: Trigger) => trigger is "@";
58
- export declare type Trigger = '/' | '@' | ':';
59
- export declare type TriggerSettings<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
58
+ export type Trigger = '/' | '@' | ':';
59
+ export type TriggerSettings<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
60
60
  '/'?: {
61
61
  dataProvider: (query: CommandResponse<StreamChatGenerics>['name'], text: string, onReady?: (data: CommandResponse<StreamChatGenerics>[], q: CommandResponse<StreamChatGenerics>['name']) => void, options?: {
62
62
  limit?: number;
@@ -92,17 +92,17 @@ export declare type TriggerSettings<StreamChatGenerics extends DefaultStreamChat
92
92
  type: SuggestionComponentType;
93
93
  };
94
94
  };
95
- export declare type ACITriggerSettingsParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
95
+ export type ACITriggerSettingsParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
96
96
  channel: Channel<StreamChatGenerics>;
97
97
  client: StreamChat<StreamChatGenerics>;
98
98
  onMentionSelectItem: (item: SuggestionUser<StreamChatGenerics>) => void;
99
99
  emojiSearchIndex?: EmojiSearchIndex;
100
100
  };
101
- export declare type QueryUsersFunction<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = (client: StreamChat<StreamChatGenerics>, query: SuggestionUser<StreamChatGenerics>['name'], onReady?: (users: SuggestionUser<StreamChatGenerics>[]) => void, options?: {
101
+ export type QueryUsersFunction<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = (client: StreamChat<StreamChatGenerics>, query: SuggestionUser<StreamChatGenerics>['name'], onReady?: (users: SuggestionUser<StreamChatGenerics>[]) => void, options?: {
102
102
  limit?: number;
103
103
  mentionAllAppUsersQuery?: MentionAllAppUsersQuery<StreamChatGenerics>;
104
104
  }) => Promise<void>;
105
- export declare type QueryMembersFunction<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = (channel: Channel<StreamChatGenerics>, query: SuggestionUser<StreamChatGenerics>['name'], onReady?: (users: SuggestionUser<StreamChatGenerics>[]) => void, options?: {
105
+ export type QueryMembersFunction<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = (channel: Channel<StreamChatGenerics>, query: SuggestionUser<StreamChatGenerics>['name'], onReady?: (users: SuggestionUser<StreamChatGenerics>[]) => void, options?: {
106
106
  limit?: number;
107
107
  }) => Promise<void>;
108
108
  /**
@@ -122,7 +122,7 @@ export declare const defaultEmojiSearchIndex: EmojiSearchIndex;
122
122
  */
123
123
  export declare const ACITriggerSettings: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, client, emojiSearchIndex, onMentionSelectItem, }: ACITriggerSettingsParams<StreamChatGenerics>) => TriggerSettings<StreamChatGenerics>;
124
124
  export declare const makeImageCompatibleUrl: (url: string) => string;
125
- export declare const getUrlWithoutParams: (url?: string | undefined) => string | undefined;
125
+ export declare const getUrlWithoutParams: (url?: string) => string | undefined;
126
126
  export declare const isLocalUrl: (url: string) => boolean;
127
127
  export declare const generateRandomId: (a?: string) => string;
128
128
  export declare const hasOnlyEmojis: (text: string) => boolean;
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": "5.25.0-beta.6",
4
+ "version": "5.25.0",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -81,7 +81,7 @@
81
81
  "path": "0.12.7",
82
82
  "react-native-markdown-package": "1.8.2",
83
83
  "react-native-url-polyfill": "^1.3.0",
84
- "stream-chat": "8.15.0"
84
+ "stream-chat": "8.17.0"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "react-native-quick-sqlite": ">=5.1.0",
@@ -150,12 +150,8 @@
150
150
  "react-native-svg": "12.1.1",
151
151
  "react-native-typescript-transformer": "1.2.13",
152
152
  "react-test-renderer": "17.0.2",
153
- "typescript": "4.4.3",
153
+ "typescript": "5.0.4",
154
154
  "uuid": "^8.3.2",
155
155
  "webpack": "4.44.2"
156
- },
157
- "resolutions": {
158
- "@types/react": "17.0.5",
159
- "@types/react-native": "0.67.3"
160
156
  }
161
157
  }
@@ -1,4 +1,4 @@
1
- import React, { PropsWithChildren, useCallback, useEffect, useRef, useState } from 'react';
1
+ import React, { PropsWithChildren, useCallback, useEffect, useMemo, useRef, useState } from 'react';
2
2
  import { KeyboardAvoidingViewProps, StyleSheet, Text, View } from 'react-native';
3
3
 
4
4
  import debounce from 'lodash/debounce';
@@ -1472,8 +1472,8 @@ const ChannelWithContext = <
1472
1472
  text,
1473
1473
  type: 'regular',
1474
1474
  user: {
1475
- id: client.userID,
1476
1475
  ...messageUser,
1476
+ id: client.userID,
1477
1477
  },
1478
1478
  ...extraFields,
1479
1479
  } as unknown as MessageResponse<StreamChatGenerics>;
@@ -2093,6 +2093,11 @@ const ChannelWithContext = <
2093
2093
  }
2094
2094
  };
2095
2095
 
2096
+ const disabledValue = useMemo(
2097
+ () => !!channel?.data?.frozen && disableIfFrozenChannel,
2098
+ [channel.data?.frozen, disableIfFrozenChannel],
2099
+ );
2100
+
2096
2101
  const ownCapabilitiesContext = useCreateOwnCapabilitiesContext({
2097
2102
  channel,
2098
2103
  overrideCapabilities: overrideOwnCapabilities,
@@ -2100,7 +2105,7 @@ const ChannelWithContext = <
2100
2105
 
2101
2106
  const channelContext = useCreateChannelContext({
2102
2107
  channel,
2103
- disabled: !!channel?.data?.frozen && disableIfFrozenChannel,
2108
+ disabled: disabledValue,
2104
2109
  EmptyStateIndicator,
2105
2110
  enableMessageGroupingByUser,
2106
2111
  enforceUniqueReaction,
@@ -2147,6 +2152,7 @@ const ChannelWithContext = <
2147
2152
  CommandsButton,
2148
2153
  compressImageQuality,
2149
2154
  CooldownTimer,
2155
+ disabled: disabledValue,
2150
2156
  doDocUploadRequest,
2151
2157
  doImageUploadRequest,
2152
2158
  editing,
@@ -16,6 +16,7 @@ export const useCreateInputMessageInputContext = <
16
16
  CommandsButton,
17
17
  compressImageQuality,
18
18
  CooldownTimer,
19
+ disabled,
19
20
  doDocUploadRequest,
20
21
  doImageUploadRequest,
21
22
  editing,
@@ -72,6 +73,7 @@ export const useCreateInputMessageInputContext = <
72
73
  CommandsButton,
73
74
  compressImageQuality,
74
75
  CooldownTimer,
76
+ disabled,
75
77
  doDocUploadRequest,
76
78
  doImageUploadRequest,
77
79
  editing,
@@ -105,7 +107,15 @@ export const useCreateInputMessageInputContext = <
105
107
  ShowThreadMessageInChannelButton,
106
108
  UploadProgressIndicator,
107
109
  }),
108
- [compressImageQuality, channelId, editingDep, initialValue, maxMessageLength, quotedMessageId],
110
+ [
111
+ compressImageQuality,
112
+ channelId,
113
+ disabled,
114
+ editingDep,
115
+ initialValue,
116
+ maxMessageLength,
117
+ quotedMessageId,
118
+ ],
109
119
  );
110
120
 
111
121
  return inputMessageInputContext;
@@ -1,4 +1,4 @@
1
- import { useMemo } from 'react';
1
+ import { useEffect, useMemo, useState } from 'react';
2
2
 
3
3
  import type { Channel } from 'stream-chat';
4
4
 
@@ -18,15 +18,33 @@ export const useCreateOwnCapabilitiesContext = <
18
18
  channel: Channel<StreamChatGenerics>;
19
19
  overrideCapabilities?: Partial<OwnCapabilitiesContextValue>;
20
20
  }) => {
21
+ const [own_capabilities, setOwnCapabilites] = useState(
22
+ JSON.stringify(channel.data?.own_capabilities as Array<string>),
23
+ );
21
24
  const overrideCapabilitiesStr = overrideCapabilities
22
25
  ? JSON.stringify(Object.values(overrideCapabilities))
23
26
  : null;
24
- const ownCapabilitiesStr = channel?.data?.own_capabilities
25
- ? JSON.stringify(Object.values(channel?.data?.own_capabilities as Array<string>))
26
- : null;
27
+
28
+ // Effect to watch for changes in channel.data?.own_capabilities and update the own_capabilties state accordingly.
29
+ useEffect(() => {
30
+ setOwnCapabilites(JSON.stringify(channel.data?.own_capabilities as Array<string>));
31
+ }, [channel.data?.own_capabilities]);
32
+
33
+ // Effect to listen to the `capabilities.changed` event.
34
+ useEffect(() => {
35
+ const listener = channel.on('capabilities.changed', (event) => {
36
+ if (event.own_capabilities) {
37
+ setOwnCapabilites(JSON.stringify(event.own_capabilities as Array<string>));
38
+ }
39
+ });
40
+
41
+ return () => {
42
+ listener.unsubscribe();
43
+ };
44
+ }, []);
27
45
 
28
46
  const ownCapabilitiesContext: OwnCapabilitiesContextValue = useMemo(() => {
29
- const capabilities = (channel?.data?.own_capabilities || []) as Array<string>;
47
+ const capabilities = (own_capabilities || []) as Array<string>;
30
48
  const ownCapabilitiesContext = Object.keys(allOwnCapabilities).reduce(
31
49
  (result, capability) => ({
32
50
  ...result,
@@ -38,7 +56,7 @@ export const useCreateOwnCapabilitiesContext = <
38
56
  );
39
57
 
40
58
  return ownCapabilitiesContext;
41
- }, [channel.id, overrideCapabilitiesStr, ownCapabilitiesStr]);
59
+ }, [channel.id, overrideCapabilitiesStr, own_capabilities]);
42
60
 
43
61
  return ownCapabilitiesContext;
44
62
  };
@@ -18,7 +18,7 @@ export type ChannelPreviewPropsWithContext<
18
18
  > = Pick<ChatContextValue<StreamChatGenerics>, 'client'> &
19
19
  Pick<ChannelsContextValue<StreamChatGenerics>, 'Preview' | 'forceUpdate'> & {
20
20
  /**
21
- * The previewed channel
21
+ * Instance of Channel from stream-chat package.
22
22
  */
23
23
  channel: Channel<StreamChatGenerics>;
24
24
  };
@@ -18,6 +18,9 @@ const styles = StyleSheet.create({
18
18
  export type ChannelPreviewMessageProps<
19
19
  StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
20
20
  > = {
21
+ /**
22
+ * Latest message on a channel, formatted for preview.
23
+ */
21
24
  latestMessagePreview: LatestMessagePreview<StreamChatGenerics>;
22
25
  };
23
26
 
@@ -165,16 +165,15 @@ const ChannelPreviewMessengerWithContext = <
165
165
  testID={`channel-preview-content-${channel.id}`}
166
166
  >
167
167
  <View style={[styles.row, row]}>
168
- <PreviewTitle channel={channel} displayName={displayName} />
168
+ <PreviewTitle displayName={displayName} />
169
169
  <View style={[styles.statusContainer, row]}>
170
170
  {isChannelMuted && <PreviewMutedStatus />}
171
- <PreviewUnreadCount channel={channel} maxUnreadCount={maxUnreadCount} unread={unread} />
171
+ <PreviewUnreadCount maxUnreadCount={maxUnreadCount} unread={unread} />
172
172
  </View>
173
173
  </View>
174
174
  <View style={[styles.row, row]}>
175
175
  <PreviewMessage latestMessagePreview={latestMessagePreview} />
176
176
  <PreviewStatus
177
- channel={channel}
178
177
  formatLatestMessageDate={formatLatestMessageDate}
179
178
  latestMessagePreview={latestMessagePreview}
180
179
  />
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { StyleSheet, Text, View } from 'react-native';
3
3
 
4
- import type { ChannelPreviewProps } from './ChannelPreview';
5
4
  import type { ChannelPreviewMessengerPropsWithContext } from './ChannelPreviewMessenger';
6
5
  import { MessageReadStatus } from './hooks/useLatestMessagePreview';
7
6
 
@@ -26,8 +25,7 @@ export type ChannelPreviewStatusProps<
26
25
  > = Pick<
27
26
  ChannelPreviewMessengerPropsWithContext<StreamChatGenerics>,
28
27
  'latestMessagePreview' | 'formatLatestMessageDate'
29
- > &
30
- Pick<ChannelPreviewProps<StreamChatGenerics>, 'channel'>;
28
+ >;
31
29
 
32
30
  export const ChannelPreviewStatus = <
33
31
  StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,