stream-chat-react-native-core 9.6.2-beta.4 → 9.7.0-beta.1

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 (600) hide show
  1. package/lib/commonjs/components/Attachment/Audio/PlayPauseButton.js +5 -4
  2. package/lib/commonjs/components/Attachment/Audio/PlayPauseButton.js.map +1 -1
  3. package/lib/commonjs/components/Attachment/FileIcon.js +19 -25
  4. package/lib/commonjs/components/Attachment/FileIcon.js.map +1 -1
  5. package/lib/commonjs/components/Attachment/Giphy/Giphy.js +4 -2
  6. package/lib/commonjs/components/Attachment/Giphy/Giphy.js.map +1 -1
  7. package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js +5 -4
  8. package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
  9. package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js +5 -4
  10. package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
  11. package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +4 -2
  12. package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
  13. package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +3 -2
  14. package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
  15. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js +11 -5
  16. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
  17. package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js +17 -7
  18. package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
  19. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +11 -11
  20. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  21. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +4 -2
  22. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  23. package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js +4 -2
  24. package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js.map +1 -1
  25. package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionRoleItem.js +4 -2
  26. package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionRoleItem.js.map +1 -1
  27. package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js +15 -11
  28. package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js.map +1 -1
  29. package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js +4 -2
  30. package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
  31. package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavigationSection.js +5 -6
  32. package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavigationSection.js.map +1 -1
  33. package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js +4 -2
  34. package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
  35. package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +4 -2
  36. package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
  37. package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js +7 -10
  38. package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
  39. package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersButton.js +3 -3
  40. package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersButton.js.map +1 -1
  41. package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +4 -2
  42. package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
  43. package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -2
  44. package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
  45. package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js +4 -2
  46. package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
  47. package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +3 -3
  48. package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
  49. package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js +3 -3
  50. package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
  51. package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js +2 -2
  52. package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
  53. package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +2 -2
  54. package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
  55. package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +9 -9
  56. package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -1
  57. package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +7 -5
  58. package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
  59. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +3 -3
  60. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  61. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +4 -2
  62. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  63. package/lib/commonjs/components/ChannelPreview/ChannelPreviewPinnedStatus.js +4 -2
  64. package/lib/commonjs/components/ChannelPreview/ChannelPreviewPinnedStatus.js.map +1 -1
  65. package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js +5 -4
  66. package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
  67. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +5 -4
  68. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  69. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +4 -2
  70. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  71. package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +6 -5
  72. package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
  73. package/lib/commonjs/components/Indicators/EmptyStateIndicator.js +6 -4
  74. package/lib/commonjs/components/Indicators/EmptyStateIndicator.js.map +1 -1
  75. package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +4 -2
  76. package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
  77. package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js +4 -2
  78. package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
  79. package/lib/commonjs/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js +4 -2
  80. package/lib/commonjs/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js.map +1 -1
  81. package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js +4 -2
  82. package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
  83. package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js +2 -2
  84. package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
  85. package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js +3 -4
  86. package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js.map +1 -1
  87. package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js +7 -7
  88. package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js.map +1 -1
  89. package/lib/commonjs/components/Message/MessageItemView/MessageSwipeContent.js +4 -2
  90. package/lib/commonjs/components/Message/MessageItemView/MessageSwipeContent.js.map +1 -1
  91. package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +4 -2
  92. package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
  93. package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js +4 -2
  94. package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
  95. package/lib/commonjs/components/Message/hooks/useMessageActions.js +19 -17
  96. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  97. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +4 -2
  98. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  99. package/lib/commonjs/components/MessageInput/StopMessageStreamingButton.js +4 -2
  100. package/lib/commonjs/components/MessageInput/StopMessageStreamingButton.js.map +1 -1
  101. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +4 -2
  102. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
  103. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +11 -7
  104. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
  105. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +4 -2
  106. package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
  107. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js +15 -11
  108. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
  109. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +4 -2
  110. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
  111. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +3 -3
  112. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
  113. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +6 -6
  114. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
  115. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +5 -4
  116. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -1
  117. package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js +4 -2
  118. package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
  119. package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js +2 -2
  120. package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js.map +1 -1
  121. package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js +4 -2
  122. package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
  123. package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js +4 -2
  124. package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
  125. package/lib/commonjs/components/MessageList/ScrollToBottomButton.js +4 -2
  126. package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
  127. package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js +5 -4
  128. package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js.map +1 -1
  129. package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +4 -2
  130. package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +1 -1
  131. package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +3 -3
  132. package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
  133. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +2 -2
  134. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
  135. package/lib/commonjs/components/Notifications/Notification.js +17 -18
  136. package/lib/commonjs/components/Notifications/Notification.js.map +1 -1
  137. package/lib/commonjs/components/Poll/components/CreatePollHeader.js +6 -5
  138. package/lib/commonjs/components/Poll/components/CreatePollHeader.js.map +1 -1
  139. package/lib/commonjs/components/Poll/components/CreatePollOptions.js +6 -6
  140. package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -1
  141. package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js +5 -3
  142. package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js.map +1 -1
  143. package/lib/commonjs/components/Poll/components/PollModalHeader.js +4 -2
  144. package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -1
  145. package/lib/commonjs/components/Poll/components/PollOption.js +3 -2
  146. package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
  147. package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js +6 -5
  148. package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
  149. package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +7 -5
  150. package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
  151. package/lib/commonjs/components/UIComponents/EmptySearchResult.js +4 -2
  152. package/lib/commonjs/components/UIComponents/EmptySearchResult.js.map +1 -1
  153. package/lib/commonjs/components/UIComponents/SearchInput.js +7 -6
  154. package/lib/commonjs/components/UIComponents/SearchInput.js.map +1 -1
  155. package/lib/commonjs/components/UIComponents/SelectionCircle.js +4 -2
  156. package/lib/commonjs/components/UIComponents/SelectionCircle.js.map +1 -1
  157. package/lib/commonjs/components/UIComponents/Spinner.js +4 -2
  158. package/lib/commonjs/components/UIComponents/Spinner.js.map +1 -1
  159. package/lib/commonjs/components/index.js +55 -0
  160. package/lib/commonjs/components/index.js.map +1 -1
  161. package/lib/commonjs/components/ui/Avatar/AvatarGroup.js +5 -3
  162. package/lib/commonjs/components/ui/Avatar/AvatarGroup.js.map +1 -1
  163. package/lib/commonjs/components/ui/Avatar/UserAvatar.js +5 -3
  164. package/lib/commonjs/components/ui/Avatar/UserAvatar.js.map +1 -1
  165. package/lib/commonjs/components/ui/Badge/ErrorBadge.js +4 -2
  166. package/lib/commonjs/components/ui/Badge/ErrorBadge.js.map +1 -1
  167. package/lib/commonjs/components/ui/Badge/GiphyBadge.js +4 -2
  168. package/lib/commonjs/components/ui/Badge/GiphyBadge.js.map +1 -1
  169. package/lib/commonjs/components/ui/Badge/ImgurBadge.js +4 -2
  170. package/lib/commonjs/components/ui/Badge/ImgurBadge.js.map +1 -1
  171. package/lib/commonjs/components/ui/Badge/RetryBadge.js +4 -2
  172. package/lib/commonjs/components/ui/Badge/RetryBadge.js.map +1 -1
  173. package/lib/commonjs/components/ui/GiphyChip.js +5 -4
  174. package/lib/commonjs/components/ui/GiphyChip.js.map +1 -1
  175. package/lib/commonjs/components/ui/Input/Input.js +5 -4
  176. package/lib/commonjs/components/ui/Input/Input.js.map +1 -1
  177. package/lib/commonjs/components/ui/VideoPlayIndicator.js +4 -2
  178. package/lib/commonjs/components/ui/VideoPlayIndicator.js.map +1 -1
  179. package/lib/commonjs/components/ui/index.js +33 -0
  180. package/lib/commonjs/components/ui/index.js.map +1 -1
  181. package/lib/commonjs/contexts/componentsContext/ComponentsContext.js +16 -5
  182. package/lib/commonjs/contexts/componentsContext/ComponentsContext.js.map +1 -1
  183. package/lib/commonjs/contexts/componentsContext/defaultComponents.js +179 -1
  184. package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -1
  185. package/lib/commonjs/contexts/pollContext/pollContext.js +1 -1
  186. package/lib/commonjs/contexts/pollContext/pollContext.js.map +1 -1
  187. package/lib/commonjs/hooks/actions/useChannelActionItems.js +22 -11
  188. package/lib/commonjs/hooks/actions/useChannelActionItems.js.map +1 -1
  189. package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js +23 -11
  190. package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js.map +1 -1
  191. package/lib/commonjs/hooks/messagePreview/useMessagePreviewIcon.js +12 -17
  192. package/lib/commonjs/hooks/messagePreview/useMessagePreviewIcon.js.map +1 -1
  193. package/lib/commonjs/version.json +1 -1
  194. package/lib/module/components/Attachment/Audio/PlayPauseButton.js +5 -4
  195. package/lib/module/components/Attachment/Audio/PlayPauseButton.js.map +1 -1
  196. package/lib/module/components/Attachment/FileIcon.js +19 -25
  197. package/lib/module/components/Attachment/FileIcon.js.map +1 -1
  198. package/lib/module/components/Attachment/Giphy/Giphy.js +4 -2
  199. package/lib/module/components/Attachment/Giphy/Giphy.js.map +1 -1
  200. package/lib/module/components/Attachment/UrlPreview/URLPreview.js +5 -4
  201. package/lib/module/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
  202. package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js +5 -4
  203. package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
  204. package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +4 -2
  205. package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
  206. package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +3 -2
  207. package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
  208. package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js +11 -5
  209. package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
  210. package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js +17 -7
  211. package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
  212. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +11 -11
  213. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  214. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +4 -2
  215. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  216. package/lib/module/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js +4 -2
  217. package/lib/module/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js.map +1 -1
  218. package/lib/module/components/AutoCompleteInput/mentionItems/MentionRoleItem.js +4 -2
  219. package/lib/module/components/AutoCompleteInput/mentionItems/MentionRoleItem.js.map +1 -1
  220. package/lib/module/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js +15 -11
  221. package/lib/module/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js.map +1 -1
  222. package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js +4 -2
  223. package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
  224. package/lib/module/components/ChannelDetails/components/ChannelDetailsNavigationSection.js +5 -6
  225. package/lib/module/components/ChannelDetails/components/ChannelDetailsNavigationSection.js.map +1 -1
  226. package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js +4 -2
  227. package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
  228. package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +4 -2
  229. package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
  230. package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js +7 -10
  231. package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
  232. package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersButton.js +3 -3
  233. package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersButton.js.map +1 -1
  234. package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +4 -2
  235. package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
  236. package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -2
  237. package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
  238. package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js +4 -2
  239. package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
  240. package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +3 -3
  241. package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
  242. package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js +3 -3
  243. package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
  244. package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js +2 -2
  245. package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
  246. package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +2 -2
  247. package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
  248. package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +9 -9
  249. package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -1
  250. package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +7 -5
  251. package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
  252. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +3 -3
  253. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  254. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +4 -2
  255. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  256. package/lib/module/components/ChannelPreview/ChannelPreviewPinnedStatus.js +4 -2
  257. package/lib/module/components/ChannelPreview/ChannelPreviewPinnedStatus.js.map +1 -1
  258. package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js +5 -4
  259. package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
  260. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +5 -4
  261. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  262. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +4 -2
  263. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  264. package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +6 -5
  265. package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
  266. package/lib/module/components/Indicators/EmptyStateIndicator.js +6 -4
  267. package/lib/module/components/Indicators/EmptyStateIndicator.js.map +1 -1
  268. package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +4 -2
  269. package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
  270. package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js +4 -2
  271. package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
  272. package/lib/module/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js +4 -2
  273. package/lib/module/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js.map +1 -1
  274. package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js +4 -2
  275. package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
  276. package/lib/module/components/Message/MessageItemView/MessageDeleted.js +2 -2
  277. package/lib/module/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
  278. package/lib/module/components/Message/MessageItemView/MessageReplies.js +3 -4
  279. package/lib/module/components/Message/MessageItemView/MessageReplies.js.map +1 -1
  280. package/lib/module/components/Message/MessageItemView/MessageStatus.js +7 -7
  281. package/lib/module/components/Message/MessageItemView/MessageStatus.js.map +1 -1
  282. package/lib/module/components/Message/MessageItemView/MessageSwipeContent.js +4 -2
  283. package/lib/module/components/Message/MessageItemView/MessageSwipeContent.js.map +1 -1
  284. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +4 -2
  285. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
  286. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js +4 -2
  287. package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
  288. package/lib/module/components/Message/hooks/useMessageActions.js +19 -17
  289. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  290. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +4 -2
  291. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  292. package/lib/module/components/MessageInput/StopMessageStreamingButton.js +4 -2
  293. package/lib/module/components/MessageInput/StopMessageStreamingButton.js.map +1 -1
  294. package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +4 -2
  295. package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
  296. package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +11 -7
  297. package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
  298. package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +4 -2
  299. package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
  300. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js +15 -11
  301. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
  302. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +4 -2
  303. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
  304. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +3 -3
  305. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
  306. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +6 -6
  307. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
  308. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +5 -4
  309. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -1
  310. package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js +4 -2
  311. package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
  312. package/lib/module/components/MessageInput/components/LinkPreviewList.js +2 -2
  313. package/lib/module/components/MessageInput/components/LinkPreviewList.js.map +1 -1
  314. package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js +4 -2
  315. package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
  316. package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js +4 -2
  317. package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
  318. package/lib/module/components/MessageList/ScrollToBottomButton.js +4 -2
  319. package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
  320. package/lib/module/components/MessageList/UnreadMessagesNotification.js +5 -4
  321. package/lib/module/components/MessageList/UnreadMessagesNotification.js.map +1 -1
  322. package/lib/module/components/MessageMenu/MessageReactionPicker.js +4 -2
  323. package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +1 -1
  324. package/lib/module/components/MessageMenu/MessageUserReactions.js +3 -3
  325. package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
  326. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +2 -2
  327. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
  328. package/lib/module/components/Notifications/Notification.js +17 -18
  329. package/lib/module/components/Notifications/Notification.js.map +1 -1
  330. package/lib/module/components/Poll/components/CreatePollHeader.js +6 -5
  331. package/lib/module/components/Poll/components/CreatePollHeader.js.map +1 -1
  332. package/lib/module/components/Poll/components/CreatePollOptions.js +6 -6
  333. package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -1
  334. package/lib/module/components/Poll/components/MultipleVotesSettings.js +5 -3
  335. package/lib/module/components/Poll/components/MultipleVotesSettings.js.map +1 -1
  336. package/lib/module/components/Poll/components/PollModalHeader.js +4 -2
  337. package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -1
  338. package/lib/module/components/Poll/components/PollOption.js +3 -2
  339. package/lib/module/components/Poll/components/PollOption.js.map +1 -1
  340. package/lib/module/components/ThreadList/ThreadListUnreadBanner.js +6 -5
  341. package/lib/module/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
  342. package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +7 -5
  343. package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
  344. package/lib/module/components/UIComponents/EmptySearchResult.js +4 -2
  345. package/lib/module/components/UIComponents/EmptySearchResult.js.map +1 -1
  346. package/lib/module/components/UIComponents/SearchInput.js +7 -6
  347. package/lib/module/components/UIComponents/SearchInput.js.map +1 -1
  348. package/lib/module/components/UIComponents/SelectionCircle.js +4 -2
  349. package/lib/module/components/UIComponents/SelectionCircle.js.map +1 -1
  350. package/lib/module/components/UIComponents/Spinner.js +4 -2
  351. package/lib/module/components/UIComponents/Spinner.js.map +1 -1
  352. package/lib/module/components/index.js +55 -0
  353. package/lib/module/components/index.js.map +1 -1
  354. package/lib/module/components/ui/Avatar/AvatarGroup.js +5 -3
  355. package/lib/module/components/ui/Avatar/AvatarGroup.js.map +1 -1
  356. package/lib/module/components/ui/Avatar/UserAvatar.js +5 -3
  357. package/lib/module/components/ui/Avatar/UserAvatar.js.map +1 -1
  358. package/lib/module/components/ui/Badge/ErrorBadge.js +4 -2
  359. package/lib/module/components/ui/Badge/ErrorBadge.js.map +1 -1
  360. package/lib/module/components/ui/Badge/GiphyBadge.js +4 -2
  361. package/lib/module/components/ui/Badge/GiphyBadge.js.map +1 -1
  362. package/lib/module/components/ui/Badge/ImgurBadge.js +4 -2
  363. package/lib/module/components/ui/Badge/ImgurBadge.js.map +1 -1
  364. package/lib/module/components/ui/Badge/RetryBadge.js +4 -2
  365. package/lib/module/components/ui/Badge/RetryBadge.js.map +1 -1
  366. package/lib/module/components/ui/GiphyChip.js +5 -4
  367. package/lib/module/components/ui/GiphyChip.js.map +1 -1
  368. package/lib/module/components/ui/Input/Input.js +5 -4
  369. package/lib/module/components/ui/Input/Input.js.map +1 -1
  370. package/lib/module/components/ui/VideoPlayIndicator.js +4 -2
  371. package/lib/module/components/ui/VideoPlayIndicator.js.map +1 -1
  372. package/lib/module/components/ui/index.js +33 -0
  373. package/lib/module/components/ui/index.js.map +1 -1
  374. package/lib/module/contexts/componentsContext/ComponentsContext.js +16 -5
  375. package/lib/module/contexts/componentsContext/ComponentsContext.js.map +1 -1
  376. package/lib/module/contexts/componentsContext/defaultComponents.js +179 -1
  377. package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -1
  378. package/lib/module/contexts/pollContext/pollContext.js +1 -1
  379. package/lib/module/contexts/pollContext/pollContext.js.map +1 -1
  380. package/lib/module/hooks/actions/useChannelActionItems.js +22 -11
  381. package/lib/module/hooks/actions/useChannelActionItems.js.map +1 -1
  382. package/lib/module/hooks/actions/useChannelMemberActionItems.js +23 -11
  383. package/lib/module/hooks/actions/useChannelMemberActionItems.js.map +1 -1
  384. package/lib/module/hooks/messagePreview/useMessagePreviewIcon.js +12 -17
  385. package/lib/module/hooks/messagePreview/useMessagePreviewIcon.js.map +1 -1
  386. package/lib/module/version.json +1 -1
  387. package/lib/typescript/components/Attachment/Audio/PlayPauseButton.d.ts.map +1 -1
  388. package/lib/typescript/components/Attachment/FileIcon.d.ts.map +1 -1
  389. package/lib/typescript/components/Attachment/Giphy/Giphy.d.ts.map +1 -1
  390. package/lib/typescript/components/Attachment/UrlPreview/URLPreview.d.ts.map +1 -1
  391. package/lib/typescript/components/Attachment/UrlPreview/URLPreviewCompact.d.ts.map +1 -1
  392. package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.d.ts.map +1 -1
  393. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerContent.d.ts.map +1 -1
  394. package/lib/typescript/components/AttachmentPicker/components/AttachmentTypePickerButton.d.ts.map +1 -1
  395. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts.map +1 -1
  396. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts.map +1 -1
  397. package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.d.ts.map +1 -1
  398. package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionRoleItem.d.ts.map +1 -1
  399. package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.d.ts.map +1 -1
  400. package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavHeader.d.ts.map +1 -1
  401. package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavigationSection.d.ts.map +1 -1
  402. package/lib/typescript/components/ChannelDetails/components/ChannelDetailsProfile.d.ts.map +1 -1
  403. package/lib/typescript/components/ChannelDetails/components/ChannelEditDetailsFormHeader.d.ts.map +1 -1
  404. package/lib/typescript/components/ChannelDetails/components/ChannelEditImageSheet.d.ts.map +1 -1
  405. package/lib/typescript/components/ChannelDetails/components/members/ChannelAddMembersButton.d.ts.map +1 -1
  406. package/lib/typescript/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.d.ts.map +1 -1
  407. package/lib/typescript/components/ChannelDetails/components/members/ChannelMemberItem.d.ts.map +1 -1
  408. package/lib/typescript/components/ChannelDetails/components/modal/ModalHeader.d.ts.map +1 -1
  409. package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentList.d.ts.map +1 -1
  410. package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaItem.d.ts.map +1 -1
  411. package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaList.d.ts.map +1 -1
  412. package/lib/typescript/components/ChannelDetails/components/navigation-section/PinnedMessageList.d.ts.map +1 -1
  413. package/lib/typescript/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.d.ts.map +1 -1
  414. package/lib/typescript/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.d.ts.map +1 -1
  415. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -1
  416. package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts.map +1 -1
  417. package/lib/typescript/components/ChannelPreview/ChannelPreviewPinnedStatus.d.ts.map +1 -1
  418. package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts.map +1 -1
  419. package/lib/typescript/components/Chat/Chat.d.ts +1 -1
  420. package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -1
  421. package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
  422. package/lib/typescript/components/ImageGallery/components/ImageGalleryVideoControl.d.ts.map +1 -1
  423. package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts.map +1 -1
  424. package/lib/typescript/components/Message/MessageItemView/Headers/MessagePinnedHeader.d.ts.map +1 -1
  425. package/lib/typescript/components/Message/MessageItemView/Headers/MessageReminderHeader.d.ts.map +1 -1
  426. package/lib/typescript/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.d.ts.map +1 -1
  427. package/lib/typescript/components/Message/MessageItemView/Headers/SentToChannelHeader.d.ts.map +1 -1
  428. package/lib/typescript/components/Message/MessageItemView/MessageDeleted.d.ts.map +1 -1
  429. package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts.map +1 -1
  430. package/lib/typescript/components/Message/MessageItemView/MessageStatus.d.ts.map +1 -1
  431. package/lib/typescript/components/Message/MessageItemView/MessageSwipeContent.d.ts.map +1 -1
  432. package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListClustered.d.ts.map +1 -1
  433. package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListItem.d.ts.map +1 -1
  434. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
  435. package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts.map +1 -1
  436. package/lib/typescript/components/MessageInput/StopMessageStreamingButton.d.ts.map +1 -1
  437. package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.d.ts.map +1 -1
  438. package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.d.ts.map +1 -1
  439. package/lib/typescript/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.d.ts.map +1 -1
  440. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecorder.d.ts.map +1 -1
  441. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -1
  442. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts.map +1 -1
  443. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.d.ts.map +1 -1
  444. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.d.ts.map +1 -1
  445. package/lib/typescript/components/MessageInput/components/InputButtons/AttachButton.d.ts.map +1 -1
  446. package/lib/typescript/components/MessageInput/components/LinkPreviewList.d.ts.map +1 -1
  447. package/lib/typescript/components/MessageInput/components/OutputButtons/EditButton.d.ts.map +1 -1
  448. package/lib/typescript/components/MessageInput/components/OutputButtons/SendButton.d.ts.map +1 -1
  449. package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts.map +1 -1
  450. package/lib/typescript/components/MessageList/UnreadMessagesNotification.d.ts.map +1 -1
  451. package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts.map +1 -1
  452. package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -1
  453. package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +1 -1
  454. package/lib/typescript/components/Notifications/Notification.d.ts.map +1 -1
  455. package/lib/typescript/components/Poll/components/CreatePollHeader.d.ts.map +1 -1
  456. package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -1
  457. package/lib/typescript/components/Poll/components/MultipleVotesSettings.d.ts.map +1 -1
  458. package/lib/typescript/components/Poll/components/PollModalHeader.d.ts.map +1 -1
  459. package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
  460. package/lib/typescript/components/ThreadList/ThreadListUnreadBanner.d.ts.map +1 -1
  461. package/lib/typescript/components/ThreadList/ThreadMessagePreviewDeliveryStatus.d.ts.map +1 -1
  462. package/lib/typescript/components/UIComponents/EmptySearchResult.d.ts.map +1 -1
  463. package/lib/typescript/components/UIComponents/SearchInput.d.ts.map +1 -1
  464. package/lib/typescript/components/UIComponents/SelectionCircle.d.ts.map +1 -1
  465. package/lib/typescript/components/UIComponents/Spinner.d.ts.map +1 -1
  466. package/lib/typescript/components/index.d.ts +5 -0
  467. package/lib/typescript/components/index.d.ts.map +1 -1
  468. package/lib/typescript/components/ui/Avatar/AvatarGroup.d.ts.map +1 -1
  469. package/lib/typescript/components/ui/Avatar/UserAvatar.d.ts.map +1 -1
  470. package/lib/typescript/components/ui/Badge/ErrorBadge.d.ts.map +1 -1
  471. package/lib/typescript/components/ui/Badge/GiphyBadge.d.ts.map +1 -1
  472. package/lib/typescript/components/ui/Badge/ImgurBadge.d.ts.map +1 -1
  473. package/lib/typescript/components/ui/Badge/RetryBadge.d.ts.map +1 -1
  474. package/lib/typescript/components/ui/GiphyChip.d.ts.map +1 -1
  475. package/lib/typescript/components/ui/Input/Input.d.ts.map +1 -1
  476. package/lib/typescript/components/ui/VideoPlayIndicator.d.ts.map +1 -1
  477. package/lib/typescript/components/ui/index.d.ts +3 -0
  478. package/lib/typescript/components/ui/index.d.ts.map +1 -1
  479. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +1 -1
  480. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +1 -1
  481. package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts +16 -2
  482. package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts.map +1 -1
  483. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +215 -0
  484. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -1
  485. package/lib/typescript/hooks/actions/useChannelActionItems.d.ts +5 -1
  486. package/lib/typescript/hooks/actions/useChannelActionItems.d.ts.map +1 -1
  487. package/lib/typescript/hooks/actions/useChannelMemberActionItems.d.ts +5 -1
  488. package/lib/typescript/hooks/actions/useChannelMemberActionItems.d.ts.map +1 -1
  489. package/lib/typescript/hooks/messagePreview/useMessagePreviewIcon.d.ts.map +1 -1
  490. package/package.json +1 -1
  491. package/src/components/Attachment/Audio/PlayPauseButton.tsx +4 -4
  492. package/src/components/Attachment/FileIcon.tsx +19 -27
  493. package/src/components/Attachment/Giphy/Giphy.tsx +3 -2
  494. package/src/components/Attachment/UrlPreview/URLPreview.tsx +3 -2
  495. package/src/components/Attachment/UrlPreview/URLPreviewCompact.tsx +3 -2
  496. package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.tsx +3 -2
  497. package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx +2 -2
  498. package/src/components/AttachmentPicker/components/AttachmentPickerContent.tsx +8 -5
  499. package/src/components/AttachmentPicker/components/AttachmentTypePickerButton.tsx +13 -15
  500. package/src/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.tsx +10 -11
  501. package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +3 -2
  502. package/src/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.tsx +3 -2
  503. package/src/components/AutoCompleteInput/mentionItems/MentionRoleItem.tsx +3 -2
  504. package/src/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.tsx +13 -10
  505. package/src/components/ChannelDetails/components/ChannelDetailsNavHeader.tsx +3 -2
  506. package/src/components/ChannelDetails/components/ChannelDetailsNavigationSection.tsx +5 -7
  507. package/src/components/ChannelDetails/components/ChannelDetailsProfile.tsx +3 -2
  508. package/src/components/ChannelDetails/components/ChannelEditDetailsFormHeader.tsx +3 -2
  509. package/src/components/ChannelDetails/components/ChannelEditImageSheet.tsx +6 -10
  510. package/src/components/ChannelDetails/components/members/ChannelAddMembersButton.tsx +2 -3
  511. package/src/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.tsx +3 -2
  512. package/src/components/ChannelDetails/components/members/ChannelMemberItem.tsx +2 -3
  513. package/src/components/ChannelDetails/components/modal/ModalHeader.tsx +3 -2
  514. package/src/components/ChannelDetails/components/navigation-section/FileAttachmentList.tsx +6 -3
  515. package/src/components/ChannelDetails/components/navigation-section/MediaItem.tsx +2 -3
  516. package/src/components/ChannelDetails/components/navigation-section/MediaList.tsx +2 -3
  517. package/src/components/ChannelDetails/components/navigation-section/PinnedMessageList.tsx +2 -3
  518. package/src/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.ts +12 -13
  519. package/src/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.tsx +16 -5
  520. package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +2 -2
  521. package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +3 -2
  522. package/src/components/ChannelPreview/ChannelPreviewPinnedStatus.tsx +3 -2
  523. package/src/components/ChannelPreview/ChannelSwipableWrapper.tsx +2 -2
  524. package/src/components/Chat/Chat.tsx +1 -1
  525. package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +4 -5
  526. package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +3 -2
  527. package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +5 -5
  528. package/src/components/Indicators/EmptyStateIndicator.tsx +5 -4
  529. package/src/components/Message/MessageItemView/Headers/MessagePinnedHeader.tsx +3 -2
  530. package/src/components/Message/MessageItemView/Headers/MessageReminderHeader.tsx +3 -2
  531. package/src/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.tsx +3 -2
  532. package/src/components/Message/MessageItemView/Headers/SentToChannelHeader.tsx +3 -2
  533. package/src/components/Message/MessageItemView/MessageDeleted.tsx +2 -3
  534. package/src/components/Message/MessageItemView/MessageReplies.tsx +3 -5
  535. package/src/components/Message/MessageItemView/MessageStatus.tsx +16 -7
  536. package/src/components/Message/MessageItemView/MessageSwipeContent.tsx +3 -2
  537. package/src/components/Message/MessageItemView/ReactionList/ReactionListClustered.tsx +3 -3
  538. package/src/components/Message/MessageItemView/ReactionList/ReactionListItem.tsx +3 -3
  539. package/src/components/Message/hooks/useMessageActions.tsx +18 -31
  540. package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +8 -2
  541. package/src/components/MessageInput/StopMessageStreamingButton.tsx +3 -2
  542. package/src/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.tsx +3 -2
  543. package/src/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.tsx +6 -5
  544. package/src/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.tsx +3 -2
  545. package/src/components/MessageInput/components/AudioRecorder/AudioRecorder.tsx +16 -11
  546. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +3 -2
  547. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx +2 -3
  548. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx +5 -6
  549. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.tsx +4 -4
  550. package/src/components/MessageInput/components/InputButtons/AttachButton.tsx +3 -2
  551. package/src/components/MessageInput/components/LinkPreviewList.tsx +2 -3
  552. package/src/components/MessageInput/components/OutputButtons/EditButton.tsx +3 -2
  553. package/src/components/MessageInput/components/OutputButtons/SendButton.tsx +3 -2
  554. package/src/components/MessageList/ScrollToBottomButton.tsx +3 -2
  555. package/src/components/MessageList/UnreadMessagesNotification.tsx +4 -4
  556. package/src/components/MessageMenu/MessageReactionPicker.tsx +3 -2
  557. package/src/components/MessageMenu/MessageUserReactions.tsx +3 -4
  558. package/src/components/MessageMenu/MessageUserReactionsItem.tsx +2 -3
  559. package/src/components/MessageMenu/__tests__/MessageUserReactionsItem.test.tsx +1 -1
  560. package/src/components/Notifications/Notification.tsx +18 -17
  561. package/src/components/Poll/components/CreatePollHeader.tsx +6 -5
  562. package/src/components/Poll/components/CreatePollOptions.tsx +5 -6
  563. package/src/components/Poll/components/MultipleVotesSettings.tsx +4 -3
  564. package/src/components/Poll/components/PollModalHeader.tsx +3 -2
  565. package/src/components/Poll/components/PollOption.tsx +2 -2
  566. package/src/components/ThreadList/ThreadListUnreadBanner.tsx +5 -5
  567. package/src/components/ThreadList/ThreadMessagePreviewDeliveryStatus.tsx +11 -5
  568. package/src/components/UIComponents/EmptySearchResult.tsx +3 -2
  569. package/src/components/UIComponents/SearchInput.tsx +6 -6
  570. package/src/components/UIComponents/SelectionCircle.tsx +3 -2
  571. package/src/components/UIComponents/Spinner.tsx +3 -2
  572. package/src/components/index.ts +5 -0
  573. package/src/components/ui/Avatar/AvatarGroup.tsx +4 -3
  574. package/src/components/ui/Avatar/UserAvatar.tsx +8 -3
  575. package/src/components/ui/Badge/ErrorBadge.tsx +3 -2
  576. package/src/components/ui/Badge/GiphyBadge.tsx +3 -2
  577. package/src/components/ui/Badge/ImgurBadge.tsx +3 -2
  578. package/src/components/ui/Badge/RetryBadge.tsx +3 -2
  579. package/src/components/ui/GiphyChip.tsx +4 -4
  580. package/src/components/ui/Input/Input.tsx +4 -4
  581. package/src/components/ui/VideoPlayIndicator.tsx +3 -2
  582. package/src/components/ui/index.ts +3 -0
  583. package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +1 -1
  584. package/src/contexts/channelsContext/ChannelsContext.tsx +1 -1
  585. package/src/contexts/componentsContext/ComponentsContext.tsx +39 -9
  586. package/src/contexts/componentsContext/defaultComponents.ts +193 -0
  587. package/src/contexts/pollContext/pollContext.tsx +1 -1
  588. package/src/hooks/actions/__tests__/useChannelActionItems.test.tsx +15 -0
  589. package/src/hooks/actions/__tests__/useChannelMemberActionItems.test.tsx +9 -0
  590. package/src/hooks/actions/useChannelActionItems.tsx +31 -11
  591. package/src/hooks/actions/useChannelMemberActionItems.tsx +29 -6
  592. package/src/hooks/messagePreview/useMessagePreviewIcon.tsx +11 -17
  593. package/src/version.json +1 -1
  594. package/lib/commonjs/icons/arrow-left.js +0 -37
  595. package/lib/commonjs/icons/arrow-left.js.map +0 -1
  596. package/lib/module/icons/arrow-left.js +0 -37
  597. package/lib/module/icons/arrow-left.js.map +0 -1
  598. package/lib/typescript/icons/arrow-left.d.ts +0 -4
  599. package/lib/typescript/icons/arrow-left.d.ts.map +0 -1
  600. package/src/icons/arrow-left.tsx +0 -23
@@ -5,6 +5,7 @@ import type { Attachment } from 'stream-chat';
5
5
 
6
6
  import { GiphyImage } from './GiphyImage';
7
7
 
8
+ import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
8
9
  import {
9
10
  MessageContextValue,
10
11
  useMessageContext,
@@ -16,7 +17,6 @@ import {
16
17
  import { useTheme } from '../../../contexts/themeContext/ThemeContext';
17
18
  import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
18
19
 
19
- import { EyeOpen } from '../../../icons/EyeOpen';
20
20
  import { components, primitives } from '../../../theme';
21
21
  import { Button } from '../../ui/';
22
22
 
@@ -43,6 +43,7 @@ const GiphyWithContext = (props: GiphyPropsWithContext) => {
43
43
 
44
44
  const { actions, image_url, thumb_url } = attachment;
45
45
 
46
+ const { icons } = useComponentsContext();
46
47
  const { t } = useTranslationContext();
47
48
 
48
49
  const {
@@ -68,7 +69,7 @@ const GiphyWithContext = (props: GiphyPropsWithContext) => {
68
69
  testID='giphy-action-attachment'
69
70
  >
70
71
  <View style={[styles.header, header]}>
71
- <EyeOpen height={16} width={16} fill={semantics.chatTextOutgoing} />
72
+ <icons.EyeOpen height={16} width={16} fill={semantics.chatTextOutgoing} />
72
73
  <Text style={[styles.headerText, giphyHeaderText]}>{t('Only visible to you')}</Text>
73
74
  </View>
74
75
  <GiphyImage attachment={attachment} giphyVersion={giphyVersion} preview />
@@ -25,7 +25,6 @@ import {
25
25
  useMessagesContext,
26
26
  } from '../../../contexts/messagesContext/MessagesContext';
27
27
  import { useTheme } from '../../../contexts/themeContext/ThemeContext';
28
- import { Link } from '../../../icons/link';
29
28
  import { primitives } from '../../../theme';
30
29
  import { FileTypes } from '../../../types/types';
31
30
  import { makeImageCompatibleUrl } from '../../../utils/utils';
@@ -67,6 +66,8 @@ const URLPreviewWithContext = (props: URLPreviewPropsWithContext) => {
67
66
  styles: stylesProp = {},
68
67
  } = props;
69
68
 
69
+ const { icons } = useComponentsContext();
70
+
70
71
  const {
71
72
  theme: { semantics },
72
73
  } = useTheme();
@@ -155,7 +156,7 @@ const URLPreviewWithContext = (props: URLPreviewPropsWithContext) => {
155
156
  </Text>
156
157
  ) : null}
157
158
  <View style={[styles.linkPreview, linkPreview, stylesProp.linkPreview]}>
158
- <Link height={12} width={12} stroke={semantics.chatTextIncoming} />
159
+ <icons.Link height={12} width={12} stroke={semantics.chatTextIncoming} />
159
160
  <Text
160
161
  numberOfLines={1}
161
162
  style={[styles.linkPreviewText, linkPreviewText, stylesProp.linkPreviewText]}
@@ -25,7 +25,6 @@ import {
25
25
  useMessagesContext,
26
26
  } from '../../../contexts/messagesContext/MessagesContext';
27
27
  import { useTheme } from '../../../contexts/themeContext/ThemeContext';
28
- import { Link } from '../../../icons/link';
29
28
  import { primitives } from '../../../theme';
30
29
  import { FileTypes } from '../../../types/types';
31
30
  import { makeImageCompatibleUrl } from '../../../utils/utils';
@@ -63,6 +62,8 @@ const URLPreviewCompactWithContext = (props: URLPreviewCompactPropsWithContext)
63
62
  styles: stylesProp = {},
64
63
  } = props;
65
64
 
65
+ const { icons } = useComponentsContext();
66
+
66
67
  const {
67
68
  theme: { semantics },
68
69
  } = useTheme();
@@ -157,7 +158,7 @@ const URLPreviewCompactWithContext = (props: URLPreviewCompactPropsWithContext)
157
158
  </Text>
158
159
  ) : null}
159
160
  <View style={[styles.linkPreview, linkPreview, stylesProp.linkPreview]}>
160
- <Link height={12} width={12} stroke={semantics.chatTextIncoming} />
161
+ <icons.Link height={12} width={12} stroke={semantics.chatTextIncoming} />
161
162
  <Text
162
163
  numberOfLines={1}
163
164
  style={[styles.linkPreviewText, linkPreviewText, stylesProp.linkPreviewText]}
@@ -5,9 +5,9 @@ import { renderAttachmentPickerItem } from './AttachmentPickerItem';
5
5
  import { IOS_LIMITED_DEEPLINK, type PhotoContentItemType } from './shared';
6
6
 
7
7
  import { useAttachmentPickerContext, useTheme, useTranslationContext } from '../../../../contexts';
8
+ import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
8
9
 
9
10
  import { useStableCallback } from '../../../../hooks';
10
- import { Picture } from '../../../../icons';
11
11
 
12
12
  import { NativeHandlers } from '../../../../native';
13
13
  import { BottomSheetFlatList } from '../../../BottomSheetCompatibility/BottomSheetFlatList';
@@ -38,8 +38,9 @@ export const AttachmentMediaPickerIcon = () => {
38
38
  const {
39
39
  theme: { semantics },
40
40
  } = useTheme();
41
+ const { icons } = useComponentsContext();
41
42
 
42
- return <Picture height={22} stroke={semantics.textTertiary} width={22} />;
43
+ return <icons.Picture height={22} stroke={semantics.textTertiary} width={22} />;
43
44
  };
44
45
 
45
46
  export const AttachmentMediaPicker = (props: AttachmentPickerContentProps) => {
@@ -15,7 +15,6 @@ import { useMessageInputContext } from '../../../../contexts/messageInputContext
15
15
  import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
16
16
  import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
17
17
  import { useViewport } from '../../../../hooks/useViewport';
18
- import { Plus } from '../../../../icons/plus';
19
18
  import { NativeHandlers } from '../../../../native';
20
19
  import { primitives } from '../../../../theme';
21
20
  import type { File } from '../../../../types/types';
@@ -163,6 +162,7 @@ const AttachmentImage = (props: AttachmentPickerItemType) => {
163
162
 
164
163
  const AttachmentIosLimited = () => {
165
164
  const { numberOfAttachmentPickerImageColumns } = useAttachmentPickerContext();
165
+ const { icons } = useComponentsContext();
166
166
  const { vw } = useViewport();
167
167
  const { t } = useTranslationContext();
168
168
  const size = vw(100) / (numberOfAttachmentPickerImageColumns || 3) - 2;
@@ -178,7 +178,7 @@ const AttachmentIosLimited = () => {
178
178
  ]}
179
179
  onPress={NativeHandlers.iOS14RefreshGallerySelection}
180
180
  >
181
- <Plus width={20} height={20} stroke={styles.iosLimitedIcon.color} strokeWidth={1.5} />
181
+ <icons.Plus width={20} height={20} stroke={styles.iosLimitedIcon.color} strokeWidth={1.5} />
182
182
  <Text style={styles.iosLimitedText}>{t('Add more')}</Text>
183
183
  </BottomSheetTouchableOpacity>
184
184
  );
@@ -19,9 +19,9 @@ import {
19
19
  useMessageInputContext,
20
20
  useTranslationContext,
21
21
  } from '../../../contexts';
22
+ import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
22
23
  import { useTheme } from '../../../contexts/themeContext/ThemeContext';
23
24
  import { useAttachmentPickerState, useStableCallback } from '../../../hooks';
24
- import { Camera, FilePickerIcon, PollThumbnail, VideoIcon } from '../../../icons';
25
25
  import { primitives } from '../../../theme';
26
26
  import { CommandSuggestionItem } from '../../AutoCompleteInput/AutoCompleteSuggestionItem';
27
27
 
@@ -149,6 +149,7 @@ export const AttachmentCommandPicker = () => {
149
149
 
150
150
  export const AttachmentPollPicker = (props: AttachmentPickerContentProps) => {
151
151
  const { t } = useTranslationContext();
152
+ const { icons } = useComponentsContext();
152
153
  const { height } = props;
153
154
  const { openPollCreationDialog, sendMessage } = useMessageInputContext();
154
155
 
@@ -158,7 +159,7 @@ export const AttachmentPollPicker = (props: AttachmentPickerContentProps) => {
158
159
 
159
160
  return (
160
161
  <AttachmentPickerGenericContent
161
- Icon={PollThumbnail}
162
+ Icon={icons.PollThumbnail}
162
163
  onPress={openPollCreationModal}
163
164
  height={height}
164
165
  buttonText={t('Create Poll')}
@@ -172,6 +173,7 @@ export const AttachmentCameraPicker = (
172
173
  ) => {
173
174
  const [permissionDenied, setPermissionDenied] = useState(false);
174
175
  const { t } = useTranslationContext();
176
+ const { icons } = useComponentsContext();
175
177
  const { height, videoOnly } = props;
176
178
  const { takeAndUploadImage } = useMessageInputContext();
177
179
 
@@ -198,7 +200,7 @@ export const AttachmentCameraPicker = (
198
200
 
199
201
  return permissionDenied ? (
200
202
  <AttachmentPickerGenericContent
201
- Icon={Camera}
203
+ Icon={icons.Camera}
202
204
  onPress={openSettings}
203
205
  height={height}
204
206
  buttonText={t('Change in Settings')}
@@ -206,7 +208,7 @@ export const AttachmentCameraPicker = (
206
208
  />
207
209
  ) : (
208
210
  <AttachmentPickerGenericContent
209
- Icon={videoOnly ? VideoIcon : Camera}
211
+ Icon={videoOnly ? icons.VideoIcon : icons.Camera}
210
212
  onPress={openCameraPicker}
211
213
  height={height}
212
214
  buttonText={t('Open Camera')}
@@ -217,12 +219,13 @@ export const AttachmentCameraPicker = (
217
219
 
218
220
  export const AttachmentFilePicker = (props: AttachmentPickerContentProps) => {
219
221
  const { t } = useTranslationContext();
222
+ const { icons } = useComponentsContext();
220
223
  const { height } = props;
221
224
  const { pickFile } = useMessageInputContext();
222
225
 
223
226
  return (
224
227
  <AttachmentPickerGenericContent
225
- Icon={FilePickerIcon}
228
+ Icon={icons.FilePickerIcon}
226
229
  onPress={pickFile}
227
230
  height={height}
228
231
  buttonText={t('Open Files')}
@@ -13,17 +13,10 @@ import {
13
13
  useMessagesContext,
14
14
  useOwnCapabilitiesContext,
15
15
  } from '../../../contexts';
16
+ import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
16
17
  import { useStableCallback } from '../../../hooks';
17
18
  import { useAttachmentPickerState } from '../../../hooks/useAttachmentPickerState';
18
- import {
19
- Camera,
20
- Picture,
21
- VideoIcon,
22
- FilePickerIcon,
23
- PollThumbnail,
24
- CommandsIcon,
25
- IconProps,
26
- } from '../../../icons';
19
+ import { IconProps } from '../../../icons';
27
20
  import { Button, ButtonProps } from '../../ui';
28
21
  import { BottomSheetModal } from '../../UIComponents';
29
22
 
@@ -71,6 +64,7 @@ export const AttachmentTypePickerButton = ({
71
64
  export const MediaPickerButton = () => {
72
65
  const { hasImagePicker, pickAndUploadImageFromNativePicker } = useMessageInputContext();
73
66
  const { attachmentPickerStore, disableAttachmentPicker } = useAttachmentPickerContext();
67
+ const { icons } = useComponentsContext();
74
68
  const { selectedPicker } = useAttachmentPickerState();
75
69
 
76
70
  const setImagePicker = useStableCallback(() => {
@@ -85,7 +79,7 @@ export const MediaPickerButton = () => {
85
79
  <AttachmentTypePickerButton
86
80
  accessibilityLabelKey='a11y/Open photo picker'
87
81
  testID='upload-photo-touchable'
88
- Icon={Picture}
82
+ Icon={icons.Picture}
89
83
  selected={selectedPicker === 'images'}
90
84
  onPress={setImagePicker}
91
85
  />
@@ -94,6 +88,7 @@ export const MediaPickerButton = () => {
94
88
 
95
89
  export const CameraPickerButton = () => {
96
90
  const { attachmentPickerStore, disableAttachmentPicker } = useAttachmentPickerContext();
91
+ const { icons } = useComponentsContext();
97
92
  const { selectedPicker } = useAttachmentPickerState();
98
93
 
99
94
  const { hasCameraPicker, takeAndUploadImage } = useMessageInputContext();
@@ -119,14 +114,14 @@ export const CameraPickerButton = () => {
119
114
  <AttachmentTypePickerButton
120
115
  accessibilityLabelKey='a11y/Open camera'
121
116
  testID='take-photo-touchable'
122
- Icon={Camera}
117
+ Icon={icons.Camera}
123
118
  selected={selectedPicker === 'camera-photo'}
124
119
  onPress={onCameraPickerPress}
125
120
  />
126
121
  {Platform.OS === 'android' ? (
127
122
  <AttachmentTypePickerButton
128
123
  accessibilityLabelKey='a11y/Open video recorder'
129
- Icon={VideoIcon}
124
+ Icon={icons.VideoIcon}
130
125
  selected={selectedPicker === 'camera-video'}
131
126
  onPress={onVideoRecorderPickerPress}
132
127
  />
@@ -137,6 +132,7 @@ export const CameraPickerButton = () => {
137
132
 
138
133
  export const FilePickerButton = () => {
139
134
  const { attachmentPickerStore, disableAttachmentPicker } = useAttachmentPickerContext();
135
+ const { icons } = useComponentsContext();
140
136
  const { selectedPicker } = useAttachmentPickerState();
141
137
 
142
138
  const { hasFilePicker, pickFile } = useMessageInputContext();
@@ -152,7 +148,7 @@ export const FilePickerButton = () => {
152
148
  <AttachmentTypePickerButton
153
149
  accessibilityLabelKey='a11y/Open file picker'
154
150
  testID='upload-file-touchable'
155
- Icon={FilePickerIcon}
151
+ Icon={icons.FilePickerIcon}
156
152
  selected={selectedPicker === 'files'}
157
153
  onPress={openFilePicker}
158
154
  />
@@ -164,6 +160,7 @@ export const PollPickerButton = () => {
164
160
  const { selectedPicker } = useAttachmentPickerState();
165
161
 
166
162
  const { threadList } = useChannelContext();
163
+ const { icons } = useComponentsContext();
167
164
  const { hasCreatePoll } = useMessagesContext();
168
165
  const ownCapabilities = useOwnCapabilitiesContext();
169
166
 
@@ -180,7 +177,7 @@ export const PollPickerButton = () => {
180
177
  <AttachmentTypePickerButton
181
178
  accessibilityLabelKey='a11y/Open poll creation'
182
179
  testID='create-poll-touchable'
183
- Icon={PollThumbnail}
180
+ Icon={icons.PollThumbnail}
184
181
  selected={selectedPicker === 'polls'}
185
182
  onPress={openPollCreationModal}
186
183
  />
@@ -191,6 +188,7 @@ export const CommandsPickerButton = () => {
191
188
  const [showCommandsSheet, setShowCommandsSheet] = useState(false);
192
189
  const { hasCommands } = useMessageInputContext();
193
190
  const { attachmentPickerStore, disableAttachmentPicker } = useAttachmentPickerContext();
191
+ const { icons } = useComponentsContext();
194
192
  const { selectedPicker } = useAttachmentPickerState();
195
193
 
196
194
  const setCommandsPicker = useStableCallback(() => {
@@ -208,7 +206,7 @@ export const CommandsPickerButton = () => {
208
206
  <AttachmentTypePickerButton
209
207
  accessibilityLabelKey='a11y/Open commands'
210
208
  testID='commands-touchable'
211
- Icon={CommandsIcon}
209
+ Icon={icons.CommandsIcon}
212
210
  selected={selectedPicker === 'commands'}
213
211
  onPress={setCommandsPicker}
214
212
  />
@@ -3,32 +3,31 @@ import { StyleSheet, View } from 'react-native';
3
3
 
4
4
  import { CommandVariants } from 'stream-chat';
5
5
 
6
+ import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
6
7
  import { useTheme } from '../../contexts/themeContext/ThemeContext';
7
- import { Flag, GiphyIcon, Mute, Sound, UserAdd, UserDelete } from '../../icons';
8
- import { Lightning } from '../../icons/bolt';
9
- import { Imgur } from '../../icons/imgur';
10
8
 
11
9
  export const SuggestionCommandIcon = ({ name }: { name: CommandVariants }) => {
12
10
  const {
13
11
  theme: { semantics },
14
12
  } = useTheme();
13
+ const { icons } = useComponentsContext();
15
14
 
16
15
  if (name === 'ban') {
17
- return <UserDelete height={20} stroke={semantics.textSecondary} width={20} />;
16
+ return <icons.UserDelete height={20} stroke={semantics.textSecondary} width={20} />;
18
17
  } else if (name === 'flag') {
19
- return <Flag height={20} stroke={semantics.textSecondary} width={20} />;
18
+ return <icons.Flag height={20} stroke={semantics.textSecondary} width={20} />;
20
19
  } else if (name === 'giphy') {
21
- return <GiphyIcon height={20} width={20} />;
20
+ return <icons.GiphyIcon height={20} width={20} />;
22
21
  } else if (name === 'imgur') {
23
- return <Imgur height={20} width={20} />;
22
+ return <icons.Imgur height={20} width={20} />;
24
23
  } else if (name === 'mute') {
25
- return <Mute height={20} fill={semantics.textSecondary} width={20} />;
24
+ return <icons.Mute height={20} fill={semantics.textSecondary} width={20} />;
26
25
  } else if (name === 'unban') {
27
- return <UserAdd height={20} stroke={semantics.textSecondary} width={20} />;
26
+ return <icons.UserAdd height={20} stroke={semantics.textSecondary} width={20} />;
28
27
  } else if (name === 'unmute') {
29
- return <Sound height={20} stroke={semantics.textSecondary} width={20} />;
28
+ return <icons.Sound height={20} stroke={semantics.textSecondary} width={20} />;
30
29
  } else {
31
- return <Lightning fill={semantics.textSecondary} height={16} width={16} />;
30
+ return <icons.Lightning fill={semantics.textSecondary} height={16} width={16} />;
32
31
  }
33
32
  };
34
33
 
@@ -1,9 +1,9 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { StyleSheet, Text, View } from 'react-native';
3
3
 
4
+ import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
4
5
  import { useTheme } from '../../contexts/themeContext/ThemeContext';
5
6
 
6
- import { Smile } from '../../icons/emoji';
7
7
  import { primitives } from '../../theme';
8
8
 
9
9
  export type AutoCompleteSuggestionHeaderProps = {
@@ -48,11 +48,12 @@ export const EmojiHeader: React.FC<AutoCompleteSuggestionHeaderProps> = ({ query
48
48
  semantics,
49
49
  },
50
50
  } = useTheme();
51
+ const { icons } = useComponentsContext();
51
52
  const styles = useStyles();
52
53
 
53
54
  return (
54
55
  <View style={[styles.container, container]}>
55
- <Smile pathFill={semantics.accentPrimary} />
56
+ <icons.Smile pathFill={semantics.accentPrimary} />
56
57
  <Text accessibilityRole='header' style={[styles.title, title]} testID='emojis-header-title'>
57
58
  {`Emoji matching "${queryText}"`}
58
59
  </Text>
@@ -6,8 +6,8 @@ import { EnhancedMentionContent } from './EnhancedMentionContent';
6
6
  import { EnhancedMentionIcon } from './EnhancedMentionIcon';
7
7
  import { MentionItem } from './MentionItem';
8
8
 
9
+ import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
9
10
  import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
10
- import { Megaphone } from '../../../icons/megaphone';
11
11
 
12
12
  export type MentionBroadcastItemProps = {
13
13
  entity: ChannelMentionSuggestion | HereMentionSuggestion;
@@ -24,8 +24,9 @@ const SUBTITLE_KEY = {
24
24
 
25
25
  export const MentionBroadcastItem = ({ entity }: MentionBroadcastItemProps) => {
26
26
  const { t } = useTranslationContext();
27
+ const { icons } = useComponentsContext();
27
28
  return (
28
- <MentionItem leading={<EnhancedMentionIcon Icon={Megaphone} />}>
29
+ <MentionItem leading={<EnhancedMentionIcon Icon={icons.Megaphone} />}>
29
30
  <EnhancedMentionContent
30
31
  subtitle={t(SUBTITLE_KEY[entity.mentionType])}
31
32
  testID='mentions-item-name'
@@ -6,8 +6,8 @@ import { EnhancedMentionContent } from './EnhancedMentionContent';
6
6
  import { EnhancedMentionIcon } from './EnhancedMentionIcon';
7
7
  import { MentionItem } from './MentionItem';
8
8
 
9
+ import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
9
10
  import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
10
- import { Shield } from '../../../icons/shield';
11
11
 
12
12
  export type MentionRoleItemProps = {
13
13
  entity: RoleMentionSuggestion;
@@ -15,8 +15,9 @@ export type MentionRoleItemProps = {
15
15
 
16
16
  export const MentionRoleItem = ({ entity }: MentionRoleItemProps) => {
17
17
  const { t } = useTranslationContext();
18
+ const { icons } = useComponentsContext();
18
19
  return (
19
- <MentionItem leading={<EnhancedMentionIcon Icon={Shield} />}>
20
+ <MentionItem leading={<EnhancedMentionIcon Icon={icons.Shield} />}>
20
21
  <EnhancedMentionContent
21
22
  subtitle={t('Notify all {{ role }} members', { role: entity.name })}
22
23
  testID='mentions-item-name'
@@ -6,18 +6,21 @@ import { EnhancedMentionContent } from './EnhancedMentionContent';
6
6
  import { EnhancedMentionIcon } from './EnhancedMentionIcon';
7
7
  import { MentionItem } from './MentionItem';
8
8
 
9
- import { PeopleIcon } from '../../../icons/users';
9
+ import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
10
10
 
11
11
  export type MentionUserGroupItemProps = {
12
12
  entity: UserGroupMentionSuggestion;
13
13
  };
14
14
 
15
- export const MentionUserGroupItem = ({ entity }: MentionUserGroupItemProps) => (
16
- <MentionItem leading={<EnhancedMentionIcon Icon={PeopleIcon} />}>
17
- <EnhancedMentionContent
18
- subtitle={entity.description}
19
- testID='mentions-item-name'
20
- title={`@${entity.name}`}
21
- />
22
- </MentionItem>
23
- );
15
+ export const MentionUserGroupItem = ({ entity }: MentionUserGroupItemProps) => {
16
+ const { icons } = useComponentsContext();
17
+ return (
18
+ <MentionItem leading={<EnhancedMentionIcon Icon={icons.PeopleIcon} />}>
19
+ <EnhancedMentionContent
20
+ subtitle={entity.description}
21
+ testID='mentions-item-name'
22
+ title={`@${entity.name}`}
23
+ />
24
+ </MentionItem>
25
+ );
26
+ };
@@ -4,10 +4,10 @@ import { I18nManager, StyleSheet, Text, View } from 'react-native';
4
4
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
5
5
 
6
6
  import { useChannelDetailsContext } from '../../../contexts/channelDetailsContext/channelDetailsContext';
7
+ import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
7
8
  import { useTheme } from '../../../contexts/themeContext/ThemeContext';
8
9
  import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
9
10
  import { useIsDirectChat } from '../../../hooks/useIsDirectChat';
10
- import { ChevronLeft } from '../../../icons/chevron-left';
11
11
  import { primitives } from '../../../theme';
12
12
  import { Button } from '../../ui/Button/Button';
13
13
 
@@ -26,6 +26,7 @@ export const ChannelDetailsNavHeader = ({
26
26
  title,
27
27
  }: ChannelDetailsNavHeaderProps) => {
28
28
  const { channel } = useChannelDetailsContext();
29
+ const { icons } = useComponentsContext();
29
30
  const { t } = useTranslationContext();
30
31
  const {
31
32
  theme: {
@@ -54,7 +55,7 @@ export const ChannelDetailsNavHeader = ({
54
55
  <Button
55
56
  accessibilityLabelKey='a11y/Back'
56
57
  iconOnly
57
- LeadingIcon={ChevronLeft}
58
+ LeadingIcon={icons.ChevronLeft}
58
59
  onPress={onBack}
59
60
  size='md'
60
61
  testID='channel-details-back-button'
@@ -8,8 +8,6 @@ import { ModalHeader } from './modal/ModalHeader';
8
8
  import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
9
9
  import { useOverlayContext } from '../../../contexts/overlayContext/OverlayContext';
10
10
  import { useTheme } from '../../../contexts/themeContext/ThemeContext';
11
- import { ChevronRight } from '../../../icons';
12
- import { ChevronLeft } from '../../../icons/chevron-left';
13
11
  import { primitives } from '../../../theme';
14
12
  import { ImageGallery } from '../../ImageGallery/ImageGallery';
15
13
  import {
@@ -40,7 +38,7 @@ export const ChannelDetailsNavigationSection = ({
40
38
  },
41
39
  } = useTheme();
42
40
  const styles = useStyles();
43
- const { FileAttachmentList, MediaList, PinnedMessageList } = useComponentsContext();
41
+ const { FileAttachmentList, icons, MediaList, PinnedMessageList } = useComponentsContext();
44
42
  const items = useChannelDetailsNavigationItems({ getNavigationItems });
45
43
  const [activeSection, setActiveSection] = useState<ChannelDetailsNavigationSectionType | null>(
46
44
  null,
@@ -74,15 +72,15 @@ export const ChannelDetailsNavigationSection = ({
74
72
  const chevron = useMemo(
75
73
  () => (
76
74
  <View accessibilityElementsHidden importantForAccessibility='no-hide-descendants'>
77
- <ChevronRight height={20} stroke={semantics.textTertiary} width={20} />
75
+ <icons.ChevronRight height={20} stroke={semantics.textTertiary} width={20} />
78
76
  </View>
79
77
  ),
80
- [semantics.textTertiary],
78
+ [icons, semantics.textTertiary],
81
79
  );
82
80
 
83
81
  const closeButtonProps = useMemo(
84
- () => ({ type: 'ghost' as const, LeadingIcon: ChevronLeft }),
85
- [],
82
+ () => ({ type: 'ghost' as const, LeadingIcon: icons.ChevronLeft }),
83
+ [icons],
86
84
  );
87
85
 
88
86
  return (
@@ -3,10 +3,10 @@ import { I18nManager, StyleSheet, Text, View } from 'react-native';
3
3
 
4
4
  import { composeAccessibilityLabel } from '../../../a11y/a11yUtils';
5
5
  import { useChannelDetailsContext } from '../../../contexts/channelDetailsContext/channelDetailsContext';
6
+ import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
6
7
  import { useTheme } from '../../../contexts/themeContext/ThemeContext';
7
8
  import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
8
9
  import { useChannelMuteActive } from '../../../hooks/useChannelMuteActive';
9
- import { Mute } from '../../../icons/mute';
10
10
  import { primitives } from '../../../theme';
11
11
  import { useChannelPreviewDisplayName } from '../../ChannelPreview/hooks/useChannelPreviewDisplayName';
12
12
  import { ChannelAvatar } from '../../ui/Avatar/ChannelAvatar';
@@ -14,6 +14,7 @@ import { useChannelDetailsMemberStatusText } from '../hooks/useChannelDetailsMem
14
14
 
15
15
  export const ChannelDetailsProfile = () => {
16
16
  const { channel } = useChannelDetailsContext();
17
+ const { icons } = useComponentsContext();
17
18
  const { t } = useTranslationContext();
18
19
  const {
19
20
  theme: {
@@ -53,7 +54,7 @@ export const ChannelDetailsProfile = () => {
53
54
  {displayName ?? ''}
54
55
  </Text>
55
56
  {muted ? (
56
- <Mute
57
+ <icons.Mute
57
58
  fill={semantics.textTertiary}
58
59
  height={20}
59
60
  testID='channel-details-profile-muted-indicator'
@@ -5,9 +5,9 @@ import { ActivityIndicator, Keyboard } from 'react-native';
5
5
  import { ModalHeader } from './modal/ModalHeader';
6
6
 
7
7
  import { useChannelEditDetailsContext } from '../../../contexts/channelEditDetailsContext/ChannelEditDetailsContext';
8
+ import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
8
9
  import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
9
10
  import { useStableCallback } from '../../../hooks/useStableCallback';
10
- import { Checkmark } from '../../../icons/checkmark-1';
11
11
  import { useAreChannelDetailsEdited } from '../../../state-store/edit-channel-details-store';
12
12
  import { Button } from '../../ui/Button/Button';
13
13
 
@@ -23,6 +23,7 @@ export type ChannelEditDetailsFormHeaderProps = {
23
23
 
24
24
  export const ChannelEditDetailsFormHeader = ({ onClose }: ChannelEditDetailsFormHeaderProps) => {
25
25
  const { store, submit } = useChannelEditDetailsContext();
26
+ const { icons } = useComponentsContext();
26
27
  const { t } = useTranslationContext();
27
28
  const [saving, setSaving] = useState(false);
28
29
  const channelDetailsEdited = useAreChannelDetailsEdited(store);
@@ -52,7 +53,7 @@ export const ChannelEditDetailsFormHeader = ({ onClose }: ChannelEditDetailsForm
52
53
  accessibilityState={{ busy: saving, disabled: !confirmEnabled }}
53
54
  disabled={!confirmEnabled}
54
55
  iconOnly
55
- LeadingIcon={saving ? LoadingButtonIcon : Checkmark}
56
+ LeadingIcon={saving ? LoadingButtonIcon : icons.Checkmark}
56
57
  onPress={handleConfirm}
57
58
  testID='channel-details-edit-confirm-button'
58
59
  type='solid'
@@ -15,11 +15,7 @@ import { useComponentsContext } from '../../../contexts/componentsContext/Compon
15
15
  import { useTheme } from '../../../contexts/themeContext/ThemeContext';
16
16
  import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
17
17
  import { useStateStore } from '../../../hooks/useStateStore';
18
- import { Camera } from '../../../icons/camera';
19
- import { Delete } from '../../../icons/delete';
20
- import { Picture } from '../../../icons/image';
21
18
  import type { IconProps } from '../../../icons/utils/base';
22
- import { Cross } from '../../../icons/xmark-1';
23
19
  import type {
24
20
  EditChannelDetailsState,
25
21
  EditChannelImagePendingAction,
@@ -51,7 +47,7 @@ const keyExtractor = (item: SheetItem) => item.id;
51
47
 
52
48
  const ChannelEditImageSheetInner = () => {
53
49
  const { store } = useChannelEditDetailsContext();
54
- const { ChannelDetailsActionItem } = useComponentsContext();
50
+ const { ChannelDetailsActionItem, icons } = useComponentsContext();
55
51
  const { t } = useTranslationContext();
56
52
  const {
57
53
  theme: {
@@ -81,7 +77,7 @@ const ChannelEditImageSheetInner = () => {
81
77
  const items = useMemo<SheetItem[]>(() => {
82
78
  const base: SheetItem[] = [
83
79
  {
84
- Icon: Camera,
80
+ Icon: icons.Camera,
85
81
  id: 'take-photo',
86
82
  label: t('Take Photo'),
87
83
  onPress: () => {
@@ -90,7 +86,7 @@ const ChannelEditImageSheetInner = () => {
90
86
  testID: 'channel-edit-picture-take-photo',
91
87
  },
92
88
  {
93
- Icon: Picture,
89
+ Icon: icons.Picture,
94
90
  id: 'choose-image',
95
91
  label: t('Choose Image'),
96
92
  onPress: () => {
@@ -103,7 +99,7 @@ const ChannelEditImageSheetInner = () => {
103
99
  if (canReset) {
104
100
  base.push({
105
101
  destructive: true,
106
- Icon: Delete,
102
+ Icon: icons.Delete,
107
103
  id: 'reset-picture',
108
104
  label: t('Reset Picture'),
109
105
  onPress: () => {
@@ -114,7 +110,7 @@ const ChannelEditImageSheetInner = () => {
114
110
  }
115
111
 
116
112
  return base;
117
- }, [canReset, onSelect, t]);
113
+ }, [canReset, icons, onSelect, t]);
118
114
 
119
115
  const renderItem = useCallback<ListRenderItem<SheetItem>>(
120
116
  ({ item }) => (
@@ -136,7 +132,7 @@ const ChannelEditImageSheetInner = () => {
136
132
  <Button
137
133
  accessibilityLabelKey='a11y/Close edit picture sheet'
138
134
  iconOnly
139
- LeadingIcon={Cross}
135
+ LeadingIcon={icons.Cross}
140
136
  onPress={() => close()}
141
137
  size='md'
142
138
  testID='channel-edit-picture-sheet-close-button'